Skip to content

Commit

Permalink
Add support for imported-model in invokeModel and InvokeModelWithResp…
Browse files Browse the repository at this point in the history
…onseStream.

Increased Character Limit for Dataset Calculation Field expressions
The minimum request rate for a rate-based rule is now 10. Before this, it was 100.
This release adds support for static analysis to ValidateStateMachineDefinition API, which can now return optional WARNING diagnostics for semantic errors on the definition of an Amazon States Language (ASL) state machine.
This releases ability to update automatic training scheduler for customer solutions
Lifting the maximum length on Bedrock KnowledgeBase RetrievalFilter array
  • Loading branch information
aws-sdk-cpp-automation committed Aug 29, 2024
1 parent dc96d37 commit ac2da09
Show file tree
Hide file tree
Showing 36 changed files with 1,067 additions and 82 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.11.394
1.11.395
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,8 @@ namespace Model

///@{
/**
* <p>The byte value of the file to attach, encoded as Base-64 string. The maximum
* size of all files that is attached is 10MB. You can attach a maximum of 5 files.
* </p>
* <p>The raw bytes of the file to attach. The maximum size of all files that is
* attached is 10MB. You can attach a maximum of 5 files. </p>
*/
inline const Aws::Utils::CryptoBuffer& GetData() const{ return m_data; }
inline bool DataHasBeenSet() const { return m_dataHasBeenSet; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,15 @@ namespace Model
///@{
/**
* <p>The identifier for the model that you want to call.</p> <p>The
* <code>modelId</code> to provide depends on the type of model that you use:</p>
* <ul> <li> <p>If you use a base model, specify the model ID or its ARN. For a
* list of model IDs for base models, see <a
* <code>modelId</code> to provide depends on the type of model or throughput that
* you use:</p> <ul> <li> <p>If you use a base model, specify the model ID or its
* ARN. For a list of model IDs for base models, see <a
* href="https://docs.aws.amazon.com/bedrock/latest/userguide/model-ids.html#model-ids-arns">Amazon
* Bedrock base model IDs (on-demand throughput)</a> in the Amazon Bedrock User
* Guide.</p> </li> <li> <p>If you use an inference profile, specify the inference
* profile ID or its ARN. For a list of inference profile IDs, see <a
* href="https://docs.aws.amazon.com/bedrock/latest/userguide/cross-region-inference-support.html">Supported
* Regions and models for cross-region inference</a> in the Amazon Bedrock User
* Guide.</p> </li> <li> <p>If you use a provisioned model, specify the ARN of the
* Provisioned Throughput. For more information, see <a
* href="https://docs.aws.amazon.com/bedrock/latest/userguide/prov-thru-use.html">Run
Expand All @@ -56,7 +60,9 @@ namespace Model
* more information, see <a
* href="https://docs.aws.amazon.com/bedrock/latest/userguide/model-customization-use.html">Use
* a custom model in Amazon Bedrock</a> in the Amazon Bedrock User Guide.</p> </li>
* </ul>
* </ul> <p>The Converse API doesn't support <a
* href="https://docs.aws.amazon.com/bedrock/latest/userguide/model-customization-import-model.html">imported
* models</a>.</p>
*/
inline const Aws::String& GetModelId() const{ return m_modelId; }
inline bool ModelIdHasBeenSet() const { return m_modelIdHasBeenSet; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,15 @@ namespace Model
///@{
/**
* <p>The ID for the model.</p> <p>The <code>modelId</code> to provide depends on
* the type of model that you use:</p> <ul> <li> <p>If you use a base model,
* specify the model ID or its ARN. For a list of model IDs for base models, see <a
* the type of model or throughput that you use:</p> <ul> <li> <p>If you use a base
* model, specify the model ID or its ARN. For a list of model IDs for base models,
* see <a
* href="https://docs.aws.amazon.com/bedrock/latest/userguide/model-ids.html#model-ids-arns">Amazon
* Bedrock base model IDs (on-demand throughput)</a> in the Amazon Bedrock User
* Guide.</p> </li> <li> <p>If you use an inference profile, specify the inference
* profile ID or its ARN. For a list of inference profile IDs, see <a
* href="https://docs.aws.amazon.com/bedrock/latest/userguide/cross-region-inference-support.html">Supported
* Regions and models for cross-region inference</a> in the Amazon Bedrock User
* Guide.</p> </li> <li> <p>If you use a provisioned model, specify the ARN of the
* Provisioned Throughput. For more information, see <a
* href="https://docs.aws.amazon.com/bedrock/latest/userguide/prov-thru-use.html">Run
Expand All @@ -77,7 +82,9 @@ namespace Model
* more information, see <a
* href="https://docs.aws.amazon.com/bedrock/latest/userguide/model-customization-use.html">Use
* a custom model in Amazon Bedrock</a> in the Amazon Bedrock User Guide.</p> </li>
* </ul>
* </ul> <p>The Converse API doesn't support <a
* href="https://docs.aws.amazon.com/bedrock/latest/userguide/model-customization-import-model.html">imported
* models</a>.</p>
*/
inline const Aws::String& GetModelId() const{ return m_modelId; }
inline bool ModelIdHasBeenSet() const { return m_modelIdHasBeenSet; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,12 @@ namespace Model
* more information, see <a
* href="https://docs.aws.amazon.com/bedrock/latest/userguide/model-customization-use.html">Use
* a custom model in Amazon Bedrock</a> in the Amazon Bedrock User Guide.</p> </li>
* </ul>
* <li> <p>If you use an <a
* href="https://docs.aws.amazon.com/bedrock/latest/userguide/model-customization-import-model.html">imported
* model</a>, specify the ARN of the imported model. You can get the model ARN from
* a successful call to <a
* href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_CreateModelImportJob.html">CreateModelImportJob</a>
* or from the Imported models page in the Amazon Bedrock console.</p> </li> </ul>
*/
inline const Aws::String& GetModelId() const{ return m_modelId; }
inline bool ModelIdHasBeenSet() const { return m_modelIdHasBeenSet; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,12 @@ namespace Model
* more information, see <a
* href="https://docs.aws.amazon.com/bedrock/latest/userguide/model-customization-use.html">Use
* a custom model in Amazon Bedrock</a> in the Amazon Bedrock User Guide.</p> </li>
* </ul>
* <li> <p>If you use an <a
* href="https://docs.aws.amazon.com/bedrock/latest/userguide/model-customization-import-model.html">imported
* model</a>, specify the ARN of the imported model. You can get the model ARN from
* a successful call to <a
* href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_CreateModelImportJob.html">CreateModelImportJob</a>
* or from the Imported models page in the Amazon Bedrock console.</p> </li> </ul>
*/
inline const Aws::String& GetModelId() const{ return m_modelId; }
inline bool ModelIdHasBeenSet() const { return m_modelIdHasBeenSet; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ AWSError<CoreErrors> GetErrorForName(const char* errorName)
}
else if (hashCode == MODEL_NOT_READY_HASH)
{
return AWSError<CoreErrors>(static_cast<CoreErrors>(BedrockRuntimeErrors::MODEL_NOT_READY), RetryableType::NOT_RETRYABLE);
return AWSError<CoreErrors>(static_cast<CoreErrors>(BedrockRuntimeErrors::MODEL_NOT_READY), RetryableType::RETRYABLE);
}
else if (hashCode == MODEL_ERROR_HASH)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -696,21 +696,21 @@ namespace Personalize
}

/**
* <p>After you create a solution, you can’t change its configuration.
* By default, all new solutions use automatic training. With automatic training,
* you incur training costs while your solution is active. You can't stop automatic
* training for a solution. To avoid unnecessary costs, make sure to delete the
* solution when you are finished. For information about training costs, see <a
* href="https://aws.amazon.com/personalize/pricing/">Amazon Personalize
* pricing</a>.</p> <p>Creates the configuration for training a model
* (creating a solution version). This configuration includes the recipe to use for
* model training and optional training configuration, such as columns to use in
* training and feature transformation parameters. For more information about
* configuring a solution, see <a
* <p>By default, all new solutions use automatic training. With
* automatic training, you incur training costs while your solution is active. To
* avoid unnecessary costs, when you are finished you can <a
* href="https://docs.aws.amazon.com/personalize/latest/dg/API_UpdateSolution.html">update
* the solution</a> to turn off automatic training. For information about training
* costs, see <a href="https://aws.amazon.com/personalize/pricing/">Amazon
* Personalize pricing</a>.</p> <p>Creates the configuration for
* training a model (creating a solution version). This configuration includes the
* recipe to use for model training and optional training configuration, such as
* columns to use in training and feature transformation parameters. For more
* information about configuring a solution, see <a
* href="https://docs.aws.amazon.com/personalize/latest/dg/customizing-solution-config.html">Creating
* and configuring a solution</a>. </p> <p> By default, new solutions use automatic
* training to create solution versions every 7 days. You can change the training
* frequency. Automatic solution version creation starts one hour after the
* frequency. Automatic solution version creation starts within one hour after the
* solution is ACTIVE. If you manually create a solution version within the hour,
* the solution skips the first automatic training. For more information, see <a
* href="https://docs.aws.amazon.com/personalize/latest/dg/solution-config-auto-training.html">Configuring
Expand Down Expand Up @@ -739,6 +739,8 @@ namespace Personalize
* If you use manual training, the status must be ACTIVE before you call
* <code>CreateSolutionVersion</code>.</p> <p class="title"> <b>Related APIs</b>
* </p> <ul> <li> <p> <a
* href="https://docs.aws.amazon.com/personalize/latest/dg/API_UpdateSolution.html">UpdateSolution</a>
* </p> </li> <li> <p> <a
* href="https://docs.aws.amazon.com/personalize/latest/dg/API_ListSolutions.html">ListSolutions</a>
* </p> </li> <li> <p> <a
* href="https://docs.aws.amazon.com/personalize/latest/dg/API_CreateSolutionVersion.html">CreateSolutionVersion</a>
Expand Down Expand Up @@ -2393,6 +2395,41 @@ namespace Personalize
return SubmitAsync(&PersonalizeClient::UpdateRecommender, request, handler, context);
}

/**
* <p>Updates an Amazon Personalize solution to use a different automatic training
* configuration. When you update a solution, you can change whether the solution
* uses automatic training, and you can change the training frequency. For more
* information about updating a solution, see <a
* href="https://docs.aws.amazon.com/personalize/latest/dg/updating-solution.html">Updating
* a solution</a>.</p> <p>A solution update can be in one of the following
* states:</p> <p>CREATE PENDING &gt; CREATE IN_PROGRESS &gt; ACTIVE -or- CREATE
* FAILED</p> <p>To get the status of a solution update, call the <a
* href="https://docs.aws.amazon.com/personalize/latest/dg/API_DescribeSolution.html">DescribeSolution</a>
* API operation and find the status in the <code>latestSolutionUpdate</code>.
* </p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/personalize-2018-05-22/UpdateSolution">AWS
* API Reference</a></p>
*/
virtual Model::UpdateSolutionOutcome UpdateSolution(const Model::UpdateSolutionRequest& request) const;

/**
* A Callable wrapper for UpdateSolution that returns a future to the operation so that it can be executed in parallel to other requests.
*/
template<typename UpdateSolutionRequestT = Model::UpdateSolutionRequest>
Model::UpdateSolutionOutcomeCallable UpdateSolutionCallable(const UpdateSolutionRequestT& request) const
{
return SubmitCallable(&PersonalizeClient::UpdateSolution, request);
}

/**
* An Async wrapper for UpdateSolution that queues the request into a thread executor and triggers associated callback when operation has finished.
*/
template<typename UpdateSolutionRequestT = Model::UpdateSolutionRequest>
void UpdateSolutionAsync(const UpdateSolutionRequestT& request, const UpdateSolutionResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
{
return SubmitAsync(&PersonalizeClient::UpdateSolution, request, handler, context);
}


void OverrideEndpoint(const Aws::String& endpoint);
std::shared_ptr<PersonalizeEndpointProviderBase>& accessEndpointProvider();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@
#include <aws/personalize/model/UpdateDatasetResult.h>
#include <aws/personalize/model/UpdateMetricAttributionResult.h>
#include <aws/personalize/model/UpdateRecommenderResult.h>
#include <aws/personalize/model/UpdateSolutionResult.h>
#include <aws/personalize/model/ListDatasetGroupsRequest.h>
#include <aws/personalize/model/ListDatasetImportJobsRequest.h>
#include <aws/personalize/model/ListRecipesRequest.h>
Expand Down Expand Up @@ -207,6 +208,7 @@ namespace Aws
class UpdateDatasetRequest;
class UpdateMetricAttributionRequest;
class UpdateRecommenderRequest;
class UpdateSolutionRequest;
/* End of service model forward declarations required in PersonalizeClient header */

/* Service model Outcome class definitions */
Expand Down Expand Up @@ -280,6 +282,7 @@ namespace Aws
typedef Aws::Utils::Outcome<UpdateDatasetResult, PersonalizeError> UpdateDatasetOutcome;
typedef Aws::Utils::Outcome<UpdateMetricAttributionResult, PersonalizeError> UpdateMetricAttributionOutcome;
typedef Aws::Utils::Outcome<UpdateRecommenderResult, PersonalizeError> UpdateRecommenderOutcome;
typedef Aws::Utils::Outcome<UpdateSolutionResult, PersonalizeError> UpdateSolutionOutcome;
/* End of service model Outcome class definitions */

/* Service model Outcome callable definitions */
Expand Down Expand Up @@ -353,6 +356,7 @@ namespace Aws
typedef std::future<UpdateDatasetOutcome> UpdateDatasetOutcomeCallable;
typedef std::future<UpdateMetricAttributionOutcome> UpdateMetricAttributionOutcomeCallable;
typedef std::future<UpdateRecommenderOutcome> UpdateRecommenderOutcomeCallable;
typedef std::future<UpdateSolutionOutcome> UpdateSolutionOutcomeCallable;
/* End of service model Outcome callable definitions */
} // namespace Model

Expand Down Expand Up @@ -429,6 +433,7 @@ namespace Aws
typedef std::function<void(const PersonalizeClient*, const Model::UpdateDatasetRequest&, const Model::UpdateDatasetOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > UpdateDatasetResponseReceivedHandler;
typedef std::function<void(const PersonalizeClient*, const Model::UpdateMetricAttributionRequest&, const Model::UpdateMetricAttributionOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > UpdateMetricAttributionResponseReceivedHandler;
typedef std::function<void(const PersonalizeClient*, const Model::UpdateRecommenderRequest&, const Model::UpdateRecommenderOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > UpdateRecommenderResponseReceivedHandler;
typedef std::function<void(const PersonalizeClient*, const Model::UpdateSolutionRequest&, const Model::UpdateSolutionOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > UpdateSolutionResponseReceivedHandler;
/* End of service model async handlers definitions */
} // namespace Personalize
} // namespace Aws
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,11 @@ namespace Model
* <code>AutoTrainingConfig</code> as part of solution configuration. For more
* information about automatic training, see <a
* href="https://docs.aws.amazon.com/personalize/latest/dg/solution-config-auto-training.html">Configuring
* automatic training</a>.</p> <p> Automatic solution version creation starts one
* hour after the solution is ACTIVE. If you manually create a solution version
* within the hour, the solution skips the first automatic training. </p> <p> After
* training starts, you can get the solution version's Amazon Resource Name (ARN)
* with the <a
* automatic training</a>.</p> <p> Automatic solution version creation starts
* within one hour after the solution is ACTIVE. If you manually create a solution
* version within the hour, the solution skips the first automatic training. </p>
* <p> After training starts, you can get the solution version's Amazon Resource
* Name (ARN) with the <a
* href="https://docs.aws.amazon.com/personalize/latest/dg/API_ListSolutionVersions.html">ListSolutionVersions</a>
* API operation. To get its status, use the <a
* href="https://docs.aws.amazon.com/personalize/latest/dg/API_DescribeSolutionVersion.html">DescribeSolutionVersion</a>.
Expand Down Expand Up @@ -163,10 +163,11 @@ namespace Model

///@{
/**
* <p>The configuration to use with the solution. When <code>performAutoML</code>
* is set to true, Amazon Personalize only evaluates the <code>autoMLConfig</code>
* section of the solution configuration.</p> <p>Amazon Personalize doesn't
* support configuring the <code>hpoObjective</code> at this time.</p>
* <p>The configuration properties for the solution. When
* <code>performAutoML</code> is set to true, Amazon Personalize only evaluates the
* <code>autoMLConfig</code> section of the solution configuration.</p>
* <p>Amazon Personalize doesn't support configuring the <code>hpoObjective</code>
* at this time.</p>
*/
inline const SolutionConfig& GetSolutionConfig() const{ return m_solutionConfig; }
inline bool SolutionConfigHasBeenSet() const { return m_solutionConfigHasBeenSet; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,9 @@ namespace Model

///@{
/**
* <p>The status of the recommender update.</p> <p>A recommender can be in one of
* the following states:</p> <ul> <li> <p>CREATE PENDING &gt; CREATE IN_PROGRESS
* &gt; ACTIVE -or- CREATE FAILED</p> </li> <li> <p>STOP PENDING &gt; STOP
* IN_PROGRESS &gt; INACTIVE &gt; START PENDING &gt; START IN_PROGRESS &gt;
* ACTIVE</p> </li> <li> <p>DELETE PENDING &gt; DELETE IN_PROGRESS</p> </li> </ul>
* <p>The status of the recommender update. A recommender update can be in one of
* the following states:</p> <p>CREATE PENDING &gt; CREATE IN_PROGRESS &gt; ACTIVE
* -or- CREATE FAILED</p>
*/
inline const Aws::String& GetStatus() const{ return m_status; }
inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
Expand Down
Loading

0 comments on commit ac2da09

Please sign in to comment.