From ac2da09e6930e3988d1289717e2df5d4b7408f17 Mon Sep 17 00:00:00 2001 From: aws-sdk-cpp-automation Date: Thu, 29 Aug 2024 19:15:40 +0000 Subject: [PATCH] Add support for imported-model in invokeModel and InvokeModelWithResponseStream. 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 --- VERSION | 2 +- .../model/ByteContentFile.h | 5 +- .../bedrock-runtime/model/ConverseRequest.h | 14 +- .../model/ConverseStreamRequest.h | 13 +- .../model/InvokeModelRequest.h | 7 +- .../InvokeModelWithResponseStreamRequest.h | 7 +- .../source/BedrockRuntimeErrors.cpp | 2 +- .../aws/personalize/PersonalizeClient.h | 61 ++++++-- .../PersonalizeServiceClientModel.h | 5 + .../personalize/model/CreateSolutionRequest.h | 19 +-- .../model/RecommenderUpdateSummary.h | 8 +- .../include/aws/personalize/model/Solution.h | 34 +++-- .../personalize/model/SolutionUpdateConfig.h | 58 +++++++ .../personalize/model/SolutionUpdateSummary.h | 144 ++++++++++++++++++ .../personalize/model/UpdateSolutionRequest.h | 101 ++++++++++++ .../personalize/model/UpdateSolutionResult.h | 67 ++++++++ .../source/PersonalizeClient.cpp | 27 ++++ .../source/model/Solution.cpp | 16 +- .../source/model/SolutionUpdateConfig.cpp | 59 +++++++ .../source/model/SolutionUpdateSummary.cpp | 128 ++++++++++++++++ .../source/model/UpdateSolutionRequest.cpp | 58 +++++++ .../source/model/UpdateSolutionResult.cpp | 48 ++++++ .../ValidateStateMachineDefinitionRequest.h | 36 +++++ .../ValidateStateMachineDefinitionResult.h | 13 ++ .../ValidateStateMachineDefinitionSeverity.h | 3 +- .../ValidateStateMachineDefinitionRequest.cpp | 17 ++- .../ValidateStateMachineDefinitionResult.cpp | 9 +- ...ValidateStateMachineDefinitionSeverity.cpp | 7 + .../include/aws/wafv2/WAFV2Client.h | 16 +- .../include/aws/core/VersionConfig.h | 4 +- ...drock-agent-runtime-2023-07-26.normal.json | 7 +- .../bedrock-runtime-2023-09-30.normal.json | 15 +- .../personalize-2018-05-22.normal.json | 98 +++++++++++- .../quicksight-2018-04-01.normal.json | 11 +- .../states-2016-11-23.normal.json | 26 +++- .../wafv2-2019-07-29.normal.json | 4 +- 36 files changed, 1067 insertions(+), 82 deletions(-) create mode 100644 generated/src/aws-cpp-sdk-personalize/include/aws/personalize/model/SolutionUpdateConfig.h create mode 100644 generated/src/aws-cpp-sdk-personalize/include/aws/personalize/model/SolutionUpdateSummary.h create mode 100644 generated/src/aws-cpp-sdk-personalize/include/aws/personalize/model/UpdateSolutionRequest.h create mode 100644 generated/src/aws-cpp-sdk-personalize/include/aws/personalize/model/UpdateSolutionResult.h create mode 100644 generated/src/aws-cpp-sdk-personalize/source/model/SolutionUpdateConfig.cpp create mode 100644 generated/src/aws-cpp-sdk-personalize/source/model/SolutionUpdateSummary.cpp create mode 100644 generated/src/aws-cpp-sdk-personalize/source/model/UpdateSolutionRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-personalize/source/model/UpdateSolutionResult.cpp diff --git a/VERSION b/VERSION index a18d6424584..0e642dc34b0 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.11.394 \ No newline at end of file +1.11.395 \ No newline at end of file diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/ByteContentFile.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/ByteContentFile.h index 0170bfe8f16..eb0398c7b25 100644 --- a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/ByteContentFile.h +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/ByteContentFile.h @@ -41,9 +41,8 @@ namespace Model ///@{ /** - *

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. - *

+ *

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.

*/ inline const Aws::Utils::CryptoBuffer& GetData() const{ return m_data; } inline bool DataHasBeenSet() const { return m_dataHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-bedrock-runtime/include/aws/bedrock-runtime/model/ConverseRequest.h b/generated/src/aws-cpp-sdk-bedrock-runtime/include/aws/bedrock-runtime/model/ConverseRequest.h index 73c5da46aac..b5d7215b21a 100644 --- a/generated/src/aws-cpp-sdk-bedrock-runtime/include/aws/bedrock-runtime/model/ConverseRequest.h +++ b/generated/src/aws-cpp-sdk-bedrock-runtime/include/aws/bedrock-runtime/model/ConverseRequest.h @@ -42,11 +42,15 @@ namespace Model ///@{ /** *

The identifier for the model that you want to call.

The - * modelId to provide depends on the type of model that you use:

- *

The Converse API doesn't support imported + * models.

*/ inline const Aws::String& GetModelId() const{ return m_modelId; } inline bool ModelIdHasBeenSet() const { return m_modelIdHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-bedrock-runtime/include/aws/bedrock-runtime/model/ConverseStreamRequest.h b/generated/src/aws-cpp-sdk-bedrock-runtime/include/aws/bedrock-runtime/model/ConverseStreamRequest.h index 32b14427b96..da016e100eb 100644 --- a/generated/src/aws-cpp-sdk-bedrock-runtime/include/aws/bedrock-runtime/model/ConverseStreamRequest.h +++ b/generated/src/aws-cpp-sdk-bedrock-runtime/include/aws/bedrock-runtime/model/ConverseStreamRequest.h @@ -64,10 +64,15 @@ namespace Model ///@{ /** *

The ID for the model.

The modelId to provide depends on - * the type of model that you use:

The Converse API doesn't support imported + * models.

*/ inline const Aws::String& GetModelId() const{ return m_modelId; } inline bool ModelIdHasBeenSet() const { return m_modelIdHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-bedrock-runtime/include/aws/bedrock-runtime/model/InvokeModelRequest.h b/generated/src/aws-cpp-sdk-bedrock-runtime/include/aws/bedrock-runtime/model/InvokeModelRequest.h index 0f67fac75ae..878344c6f87 100644 --- a/generated/src/aws-cpp-sdk-bedrock-runtime/include/aws/bedrock-runtime/model/InvokeModelRequest.h +++ b/generated/src/aws-cpp-sdk-bedrock-runtime/include/aws/bedrock-runtime/model/InvokeModelRequest.h @@ -66,7 +66,12 @@ namespace Model * more information, see Use * a custom model in Amazon Bedrock in the Amazon Bedrock User Guide.

- * + *
  • If you use an imported + * model, specify the ARN of the imported model. You can get the model ARN from + * a successful call to CreateModelImportJob + * or from the Imported models page in the Amazon Bedrock console.

  • */ inline const Aws::String& GetModelId() const{ return m_modelId; } inline bool ModelIdHasBeenSet() const { return m_modelIdHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-bedrock-runtime/include/aws/bedrock-runtime/model/InvokeModelWithResponseStreamRequest.h b/generated/src/aws-cpp-sdk-bedrock-runtime/include/aws/bedrock-runtime/model/InvokeModelWithResponseStreamRequest.h index 9168b6e9388..ff86c2816e6 100644 --- a/generated/src/aws-cpp-sdk-bedrock-runtime/include/aws/bedrock-runtime/model/InvokeModelWithResponseStreamRequest.h +++ b/generated/src/aws-cpp-sdk-bedrock-runtime/include/aws/bedrock-runtime/model/InvokeModelWithResponseStreamRequest.h @@ -88,7 +88,12 @@ namespace Model * more information, see Use * a custom model in Amazon Bedrock in the Amazon Bedrock User Guide.

    - * + *
  • If you use an imported + * model, specify the ARN of the imported model. You can get the model ARN from + * a successful call to CreateModelImportJob + * or from the Imported models page in the Amazon Bedrock console.

  • */ inline const Aws::String& GetModelId() const{ return m_modelId; } inline bool ModelIdHasBeenSet() const { return m_modelIdHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-bedrock-runtime/source/BedrockRuntimeErrors.cpp b/generated/src/aws-cpp-sdk-bedrock-runtime/source/BedrockRuntimeErrors.cpp index 0d5f471901f..b3d71b1e3e4 100644 --- a/generated/src/aws-cpp-sdk-bedrock-runtime/source/BedrockRuntimeErrors.cpp +++ b/generated/src/aws-cpp-sdk-bedrock-runtime/source/BedrockRuntimeErrors.cpp @@ -63,7 +63,7 @@ AWSError GetErrorForName(const char* errorName) } else if (hashCode == MODEL_NOT_READY_HASH) { - return AWSError(static_cast(BedrockRuntimeErrors::MODEL_NOT_READY), RetryableType::NOT_RETRYABLE); + return AWSError(static_cast(BedrockRuntimeErrors::MODEL_NOT_READY), RetryableType::RETRYABLE); } else if (hashCode == MODEL_ERROR_HASH) { diff --git a/generated/src/aws-cpp-sdk-personalize/include/aws/personalize/PersonalizeClient.h b/generated/src/aws-cpp-sdk-personalize/include/aws/personalize/PersonalizeClient.h index fe033652dd7..5f9488b6542 100644 --- a/generated/src/aws-cpp-sdk-personalize/include/aws/personalize/PersonalizeClient.h +++ b/generated/src/aws-cpp-sdk-personalize/include/aws/personalize/PersonalizeClient.h @@ -696,21 +696,21 @@ namespace Personalize } /** - *

    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 Amazon Personalize - * pricing.

    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 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 update + * the solution to turn off automatic training. For information about training + * costs, see Amazon + * Personalize pricing.

    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 Creating * and configuring a solution.

    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 Configuring @@ -739,6 +739,8 @@ namespace Personalize * If you use manual training, the status must be ACTIVE before you call * CreateSolutionVersion.

    Related APIs *

    • UpdateSolution + *

    • ListSolutions *

    • CreateSolutionVersion @@ -2393,6 +2395,41 @@ namespace Personalize return SubmitAsync(&PersonalizeClient::UpdateRecommender, request, handler, context); } + /** + *

      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 Updating + * a solution.

      A solution update can be in one of the following + * states:

      CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- CREATE + * FAILED

      To get the status of a solution update, call the DescribeSolution + * API operation and find the status in the latestSolutionUpdate. + *

      See Also:

      AWS + * API Reference

      + */ + 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 + 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 + void UpdateSolutionAsync(const UpdateSolutionRequestT& request, const UpdateSolutionResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&PersonalizeClient::UpdateSolution, request, handler, context); + } + void OverrideEndpoint(const Aws::String& endpoint); std::shared_ptr& accessEndpointProvider(); diff --git a/generated/src/aws-cpp-sdk-personalize/include/aws/personalize/PersonalizeServiceClientModel.h b/generated/src/aws-cpp-sdk-personalize/include/aws/personalize/PersonalizeServiceClientModel.h index 8ce205187d1..7e6403b9ccd 100644 --- a/generated/src/aws-cpp-sdk-personalize/include/aws/personalize/PersonalizeServiceClientModel.h +++ b/generated/src/aws-cpp-sdk-personalize/include/aws/personalize/PersonalizeServiceClientModel.h @@ -78,6 +78,7 @@ #include #include #include +#include #include #include #include @@ -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 */ @@ -280,6 +282,7 @@ namespace Aws typedef Aws::Utils::Outcome UpdateDatasetOutcome; typedef Aws::Utils::Outcome UpdateMetricAttributionOutcome; typedef Aws::Utils::Outcome UpdateRecommenderOutcome; + typedef Aws::Utils::Outcome UpdateSolutionOutcome; /* End of service model Outcome class definitions */ /* Service model Outcome callable definitions */ @@ -353,6 +356,7 @@ namespace Aws typedef std::future UpdateDatasetOutcomeCallable; typedef std::future UpdateMetricAttributionOutcomeCallable; typedef std::future UpdateRecommenderOutcomeCallable; + typedef std::future UpdateSolutionOutcomeCallable; /* End of service model Outcome callable definitions */ } // namespace Model @@ -429,6 +433,7 @@ namespace Aws typedef std::function&) > UpdateDatasetResponseReceivedHandler; typedef std::function&) > UpdateMetricAttributionResponseReceivedHandler; typedef std::function&) > UpdateRecommenderResponseReceivedHandler; + typedef std::function&) > UpdateSolutionResponseReceivedHandler; /* End of service model async handlers definitions */ } // namespace Personalize } // namespace Aws diff --git a/generated/src/aws-cpp-sdk-personalize/include/aws/personalize/model/CreateSolutionRequest.h b/generated/src/aws-cpp-sdk-personalize/include/aws/personalize/model/CreateSolutionRequest.h index 5142928950d..bcc5fd5c7ef 100644 --- a/generated/src/aws-cpp-sdk-personalize/include/aws/personalize/model/CreateSolutionRequest.h +++ b/generated/src/aws-cpp-sdk-personalize/include/aws/personalize/model/CreateSolutionRequest.h @@ -94,11 +94,11 @@ namespace Model * AutoTrainingConfig as part of solution configuration. For more * information about automatic training, see Configuring - * automatic training.

      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.

      After - * training starts, you can get the solution version's Amazon Resource Name (ARN) - * with the .

      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.

      + *

      After training starts, you can get the solution version's Amazon Resource + * Name (ARN) with the ListSolutionVersions * API operation. To get its status, use the DescribeSolutionVersion. @@ -163,10 +163,11 @@ namespace Model ///@{ /** - *

      The configuration to use with the solution. When performAutoML - * is set to true, Amazon Personalize only evaluates the autoMLConfig - * section of the solution configuration.

      Amazon Personalize doesn't - * support configuring the hpoObjective at this time.

      + *

      The configuration properties for the solution. When + * performAutoML is set to true, Amazon Personalize only evaluates the + * autoMLConfig section of the solution configuration.

      + *

      Amazon Personalize doesn't support configuring the hpoObjective + * at this time.

      */ inline const SolutionConfig& GetSolutionConfig() const{ return m_solutionConfig; } inline bool SolutionConfigHasBeenSet() const { return m_solutionConfigHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-personalize/include/aws/personalize/model/RecommenderUpdateSummary.h b/generated/src/aws-cpp-sdk-personalize/include/aws/personalize/model/RecommenderUpdateSummary.h index 6b9361a01c3..74e5ffd32af 100644 --- a/generated/src/aws-cpp-sdk-personalize/include/aws/personalize/model/RecommenderUpdateSummary.h +++ b/generated/src/aws-cpp-sdk-personalize/include/aws/personalize/model/RecommenderUpdateSummary.h @@ -82,11 +82,9 @@ namespace Model ///@{ /** - *

      The status of the recommender update.

      A recommender can be in one of - * the following states:

      • CREATE PENDING > CREATE IN_PROGRESS - * > ACTIVE -or- CREATE FAILED

      • STOP PENDING > STOP - * IN_PROGRESS > INACTIVE > START PENDING > START IN_PROGRESS > - * ACTIVE

      • DELETE PENDING > DELETE IN_PROGRESS

      + *

      The status of the recommender update. A recommender update can be in one of + * the following states:

      CREATE PENDING > CREATE IN_PROGRESS > ACTIVE + * -or- CREATE FAILED

      */ inline const Aws::String& GetStatus() const{ return m_status; } inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-personalize/include/aws/personalize/model/Solution.h b/generated/src/aws-cpp-sdk-personalize/include/aws/personalize/model/Solution.h index 4f88ad611bc..d1f4a065b53 100644 --- a/generated/src/aws-cpp-sdk-personalize/include/aws/personalize/model/Solution.h +++ b/generated/src/aws-cpp-sdk-personalize/include/aws/personalize/model/Solution.h @@ -10,6 +10,7 @@ #include #include #include +#include #include namespace Aws @@ -28,15 +29,15 @@ namespace Model { /** - *

      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 Amazon Personalize - * pricing.

      An object that provides information about a - * solution. A solution includes the custom recipe, customized parameters, and - * trained models (Solution Versions) that Amazon Personalize uses to generate + *

      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 update + * the solution to turn off automatic training. For information about training + * costs, see Amazon + * Personalize pricing.

      An object that provides information + * about a solution. A solution includes the custom recipe, customized parameters, + * and trained models (Solution Versions) that Amazon Personalize uses to generate * recommendations.

      After you create a solution, you can’t change its * configuration. If you need to make changes, you can clone @@ -248,6 +249,18 @@ namespace Model inline Solution& WithLatestSolutionVersion(const SolutionVersionSummary& value) { SetLatestSolutionVersion(value); return *this;} inline Solution& WithLatestSolutionVersion(SolutionVersionSummary&& value) { SetLatestSolutionVersion(std::move(value)); return *this;} ///@} + + ///@{ + /** + *

      Provides a summary of the latest updates to the solution.

      + */ + inline const SolutionUpdateSummary& GetLatestSolutionUpdate() const{ return m_latestSolutionUpdate; } + inline bool LatestSolutionUpdateHasBeenSet() const { return m_latestSolutionUpdateHasBeenSet; } + inline void SetLatestSolutionUpdate(const SolutionUpdateSummary& value) { m_latestSolutionUpdateHasBeenSet = true; m_latestSolutionUpdate = value; } + inline void SetLatestSolutionUpdate(SolutionUpdateSummary&& value) { m_latestSolutionUpdateHasBeenSet = true; m_latestSolutionUpdate = std::move(value); } + inline Solution& WithLatestSolutionUpdate(const SolutionUpdateSummary& value) { SetLatestSolutionUpdate(value); return *this;} + inline Solution& WithLatestSolutionUpdate(SolutionUpdateSummary&& value) { SetLatestSolutionUpdate(std::move(value)); return *this;} + ///@} private: Aws::String m_name; @@ -291,6 +304,9 @@ namespace Model SolutionVersionSummary m_latestSolutionVersion; bool m_latestSolutionVersionHasBeenSet = false; + + SolutionUpdateSummary m_latestSolutionUpdate; + bool m_latestSolutionUpdateHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-personalize/include/aws/personalize/model/SolutionUpdateConfig.h b/generated/src/aws-cpp-sdk-personalize/include/aws/personalize/model/SolutionUpdateConfig.h new file mode 100644 index 00000000000..32b714eeeaa --- /dev/null +++ b/generated/src/aws-cpp-sdk-personalize/include/aws/personalize/model/SolutionUpdateConfig.h @@ -0,0 +1,58 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace Personalize +{ +namespace Model +{ + + /** + *

      The configuration details of the solution update.

      See Also:

      + *
      AWS + * API Reference

      + */ + class SolutionUpdateConfig + { + public: + AWS_PERSONALIZE_API SolutionUpdateConfig(); + AWS_PERSONALIZE_API SolutionUpdateConfig(Aws::Utils::Json::JsonView jsonValue); + AWS_PERSONALIZE_API SolutionUpdateConfig& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_PERSONALIZE_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + + inline const AutoTrainingConfig& GetAutoTrainingConfig() const{ return m_autoTrainingConfig; } + inline bool AutoTrainingConfigHasBeenSet() const { return m_autoTrainingConfigHasBeenSet; } + inline void SetAutoTrainingConfig(const AutoTrainingConfig& value) { m_autoTrainingConfigHasBeenSet = true; m_autoTrainingConfig = value; } + inline void SetAutoTrainingConfig(AutoTrainingConfig&& value) { m_autoTrainingConfigHasBeenSet = true; m_autoTrainingConfig = std::move(value); } + inline SolutionUpdateConfig& WithAutoTrainingConfig(const AutoTrainingConfig& value) { SetAutoTrainingConfig(value); return *this;} + inline SolutionUpdateConfig& WithAutoTrainingConfig(AutoTrainingConfig&& value) { SetAutoTrainingConfig(std::move(value)); return *this;} + ///@} + private: + + AutoTrainingConfig m_autoTrainingConfig; + bool m_autoTrainingConfigHasBeenSet = false; + }; + +} // namespace Model +} // namespace Personalize +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-personalize/include/aws/personalize/model/SolutionUpdateSummary.h b/generated/src/aws-cpp-sdk-personalize/include/aws/personalize/model/SolutionUpdateSummary.h new file mode 100644 index 00000000000..a7ef1195159 --- /dev/null +++ b/generated/src/aws-cpp-sdk-personalize/include/aws/personalize/model/SolutionUpdateSummary.h @@ -0,0 +1,144 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace Personalize +{ +namespace Model +{ + + /** + *

      Provides a summary of the properties of a solution update. For a complete + * listing, call the DescribeSolution + * API.

      See Also:

      AWS + * API Reference

      + */ + class SolutionUpdateSummary + { + public: + AWS_PERSONALIZE_API SolutionUpdateSummary(); + AWS_PERSONALIZE_API SolutionUpdateSummary(Aws::Utils::Json::JsonView jsonValue); + AWS_PERSONALIZE_API SolutionUpdateSummary& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_PERSONALIZE_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + /** + *

      The configuration details of the solution.

      + */ + inline const SolutionUpdateConfig& GetSolutionUpdateConfig() const{ return m_solutionUpdateConfig; } + inline bool SolutionUpdateConfigHasBeenSet() const { return m_solutionUpdateConfigHasBeenSet; } + inline void SetSolutionUpdateConfig(const SolutionUpdateConfig& value) { m_solutionUpdateConfigHasBeenSet = true; m_solutionUpdateConfig = value; } + inline void SetSolutionUpdateConfig(SolutionUpdateConfig&& value) { m_solutionUpdateConfigHasBeenSet = true; m_solutionUpdateConfig = std::move(value); } + inline SolutionUpdateSummary& WithSolutionUpdateConfig(const SolutionUpdateConfig& value) { SetSolutionUpdateConfig(value); return *this;} + inline SolutionUpdateSummary& WithSolutionUpdateConfig(SolutionUpdateConfig&& value) { SetSolutionUpdateConfig(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

      The status of the solution update. A solution update can be in one of the + * following states:

      CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- + * CREATE FAILED

      + */ + inline const Aws::String& GetStatus() const{ return m_status; } + inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } + inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; } + inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } + inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); } + inline SolutionUpdateSummary& WithStatus(const Aws::String& value) { SetStatus(value); return *this;} + inline SolutionUpdateSummary& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;} + inline SolutionUpdateSummary& WithStatus(const char* value) { SetStatus(value); return *this;} + ///@} + + ///@{ + /** + *

      Whether the solution automatically creates solution versions.

      + */ + inline bool GetPerformAutoTraining() const{ return m_performAutoTraining; } + inline bool PerformAutoTrainingHasBeenSet() const { return m_performAutoTrainingHasBeenSet; } + inline void SetPerformAutoTraining(bool value) { m_performAutoTrainingHasBeenSet = true; m_performAutoTraining = value; } + inline SolutionUpdateSummary& WithPerformAutoTraining(bool value) { SetPerformAutoTraining(value); return *this;} + ///@} + + ///@{ + /** + *

      The date and time (in Unix format) that the solution update was created.

      + */ + inline const Aws::Utils::DateTime& GetCreationDateTime() const{ return m_creationDateTime; } + inline bool CreationDateTimeHasBeenSet() const { return m_creationDateTimeHasBeenSet; } + inline void SetCreationDateTime(const Aws::Utils::DateTime& value) { m_creationDateTimeHasBeenSet = true; m_creationDateTime = value; } + inline void SetCreationDateTime(Aws::Utils::DateTime&& value) { m_creationDateTimeHasBeenSet = true; m_creationDateTime = std::move(value); } + inline SolutionUpdateSummary& WithCreationDateTime(const Aws::Utils::DateTime& value) { SetCreationDateTime(value); return *this;} + inline SolutionUpdateSummary& WithCreationDateTime(Aws::Utils::DateTime&& value) { SetCreationDateTime(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

      The date and time (in Unix time) that the solution update was last + * updated.

      + */ + inline const Aws::Utils::DateTime& GetLastUpdatedDateTime() const{ return m_lastUpdatedDateTime; } + inline bool LastUpdatedDateTimeHasBeenSet() const { return m_lastUpdatedDateTimeHasBeenSet; } + inline void SetLastUpdatedDateTime(const Aws::Utils::DateTime& value) { m_lastUpdatedDateTimeHasBeenSet = true; m_lastUpdatedDateTime = value; } + inline void SetLastUpdatedDateTime(Aws::Utils::DateTime&& value) { m_lastUpdatedDateTimeHasBeenSet = true; m_lastUpdatedDateTime = std::move(value); } + inline SolutionUpdateSummary& WithLastUpdatedDateTime(const Aws::Utils::DateTime& value) { SetLastUpdatedDateTime(value); return *this;} + inline SolutionUpdateSummary& WithLastUpdatedDateTime(Aws::Utils::DateTime&& value) { SetLastUpdatedDateTime(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

      If a solution update fails, the reason behind the failure.

      + */ + inline const Aws::String& GetFailureReason() const{ return m_failureReason; } + inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; } + inline void SetFailureReason(const Aws::String& value) { m_failureReasonHasBeenSet = true; m_failureReason = value; } + inline void SetFailureReason(Aws::String&& value) { m_failureReasonHasBeenSet = true; m_failureReason = std::move(value); } + inline void SetFailureReason(const char* value) { m_failureReasonHasBeenSet = true; m_failureReason.assign(value); } + inline SolutionUpdateSummary& WithFailureReason(const Aws::String& value) { SetFailureReason(value); return *this;} + inline SolutionUpdateSummary& WithFailureReason(Aws::String&& value) { SetFailureReason(std::move(value)); return *this;} + inline SolutionUpdateSummary& WithFailureReason(const char* value) { SetFailureReason(value); return *this;} + ///@} + private: + + SolutionUpdateConfig m_solutionUpdateConfig; + bool m_solutionUpdateConfigHasBeenSet = false; + + Aws::String m_status; + bool m_statusHasBeenSet = false; + + bool m_performAutoTraining; + bool m_performAutoTrainingHasBeenSet = false; + + Aws::Utils::DateTime m_creationDateTime; + bool m_creationDateTimeHasBeenSet = false; + + Aws::Utils::DateTime m_lastUpdatedDateTime; + bool m_lastUpdatedDateTimeHasBeenSet = false; + + Aws::String m_failureReason; + bool m_failureReasonHasBeenSet = false; + }; + +} // namespace Model +} // namespace Personalize +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-personalize/include/aws/personalize/model/UpdateSolutionRequest.h b/generated/src/aws-cpp-sdk-personalize/include/aws/personalize/model/UpdateSolutionRequest.h new file mode 100644 index 00000000000..ef00f4f927f --- /dev/null +++ b/generated/src/aws-cpp-sdk-personalize/include/aws/personalize/model/UpdateSolutionRequest.h @@ -0,0 +1,101 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Personalize +{ +namespace Model +{ + + /** + */ + class UpdateSolutionRequest : public PersonalizeRequest + { + public: + AWS_PERSONALIZE_API UpdateSolutionRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "UpdateSolution"; } + + AWS_PERSONALIZE_API Aws::String SerializePayload() const override; + + AWS_PERSONALIZE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; + + + ///@{ + /** + *

      The Amazon Resource Name (ARN) of the solution to update.

      + */ + inline const Aws::String& GetSolutionArn() const{ return m_solutionArn; } + inline bool SolutionArnHasBeenSet() const { return m_solutionArnHasBeenSet; } + inline void SetSolutionArn(const Aws::String& value) { m_solutionArnHasBeenSet = true; m_solutionArn = value; } + inline void SetSolutionArn(Aws::String&& value) { m_solutionArnHasBeenSet = true; m_solutionArn = std::move(value); } + inline void SetSolutionArn(const char* value) { m_solutionArnHasBeenSet = true; m_solutionArn.assign(value); } + inline UpdateSolutionRequest& WithSolutionArn(const Aws::String& value) { SetSolutionArn(value); return *this;} + inline UpdateSolutionRequest& WithSolutionArn(Aws::String&& value) { SetSolutionArn(std::move(value)); return *this;} + inline UpdateSolutionRequest& WithSolutionArn(const char* value) { SetSolutionArn(value); return *this;} + ///@} + + ///@{ + /** + *

      Whether the solution uses automatic training to create new solution versions + * (trained models). You can change the training frequency by specifying a + * schedulingExpression in the AutoTrainingConfig as part + * of solution configuration.

      If you turn on automatic training, the first + * automatic training starts within one hour after the solution update completes. + * If you manually create a solution version within the hour, the solution skips + * the first automatic training. For more information about automatic training, see + * Configuring + * automatic training.

      After training starts, you can get the solution + * version's Amazon Resource Name (ARN) with the ListSolutionVersions + * API operation. To get its status, use the DescribeSolutionVersion. + *

      + */ + inline bool GetPerformAutoTraining() const{ return m_performAutoTraining; } + inline bool PerformAutoTrainingHasBeenSet() const { return m_performAutoTrainingHasBeenSet; } + inline void SetPerformAutoTraining(bool value) { m_performAutoTrainingHasBeenSet = true; m_performAutoTraining = value; } + inline UpdateSolutionRequest& WithPerformAutoTraining(bool value) { SetPerformAutoTraining(value); return *this;} + ///@} + + ///@{ + /** + *

      The new configuration details of the solution.

      + */ + inline const SolutionUpdateConfig& GetSolutionUpdateConfig() const{ return m_solutionUpdateConfig; } + inline bool SolutionUpdateConfigHasBeenSet() const { return m_solutionUpdateConfigHasBeenSet; } + inline void SetSolutionUpdateConfig(const SolutionUpdateConfig& value) { m_solutionUpdateConfigHasBeenSet = true; m_solutionUpdateConfig = value; } + inline void SetSolutionUpdateConfig(SolutionUpdateConfig&& value) { m_solutionUpdateConfigHasBeenSet = true; m_solutionUpdateConfig = std::move(value); } + inline UpdateSolutionRequest& WithSolutionUpdateConfig(const SolutionUpdateConfig& value) { SetSolutionUpdateConfig(value); return *this;} + inline UpdateSolutionRequest& WithSolutionUpdateConfig(SolutionUpdateConfig&& value) { SetSolutionUpdateConfig(std::move(value)); return *this;} + ///@} + private: + + Aws::String m_solutionArn; + bool m_solutionArnHasBeenSet = false; + + bool m_performAutoTraining; + bool m_performAutoTrainingHasBeenSet = false; + + SolutionUpdateConfig m_solutionUpdateConfig; + bool m_solutionUpdateConfigHasBeenSet = false; + }; + +} // namespace Model +} // namespace Personalize +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-personalize/include/aws/personalize/model/UpdateSolutionResult.h b/generated/src/aws-cpp-sdk-personalize/include/aws/personalize/model/UpdateSolutionResult.h new file mode 100644 index 00000000000..3e7e9df5717 --- /dev/null +++ b/generated/src/aws-cpp-sdk-personalize/include/aws/personalize/model/UpdateSolutionResult.h @@ -0,0 +1,67 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace Personalize +{ +namespace Model +{ + class UpdateSolutionResult + { + public: + AWS_PERSONALIZE_API UpdateSolutionResult(); + AWS_PERSONALIZE_API UpdateSolutionResult(const Aws::AmazonWebServiceResult& result); + AWS_PERSONALIZE_API UpdateSolutionResult& operator=(const Aws::AmazonWebServiceResult& result); + + + ///@{ + /** + *

      The same solution Amazon Resource Name (ARN) as given in the request.

      + */ + inline const Aws::String& GetSolutionArn() const{ return m_solutionArn; } + inline void SetSolutionArn(const Aws::String& value) { m_solutionArn = value; } + inline void SetSolutionArn(Aws::String&& value) { m_solutionArn = std::move(value); } + inline void SetSolutionArn(const char* value) { m_solutionArn.assign(value); } + inline UpdateSolutionResult& WithSolutionArn(const Aws::String& value) { SetSolutionArn(value); return *this;} + inline UpdateSolutionResult& WithSolutionArn(Aws::String&& value) { SetSolutionArn(std::move(value)); return *this;} + inline UpdateSolutionResult& WithSolutionArn(const char* value) { SetSolutionArn(value); return *this;} + ///@} + + ///@{ + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + inline UpdateSolutionResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + inline UpdateSolutionResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + inline UpdateSolutionResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + ///@} + private: + + Aws::String m_solutionArn; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace Personalize +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-personalize/source/PersonalizeClient.cpp b/generated/src/aws-cpp-sdk-personalize/source/PersonalizeClient.cpp index 947e80f48c8..8e054eb50d7 100644 --- a/generated/src/aws-cpp-sdk-personalize/source/PersonalizeClient.cpp +++ b/generated/src/aws-cpp-sdk-personalize/source/PersonalizeClient.cpp @@ -91,6 +91,7 @@ #include #include #include +#include #include @@ -2054,3 +2055,29 @@ UpdateRecommenderOutcome PersonalizeClient::UpdateRecommender(const UpdateRecomm {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +UpdateSolutionOutcome PersonalizeClient::UpdateSolution(const UpdateSolutionRequest& request) const +{ + AWS_OPERATION_GUARD(UpdateSolution); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, UpdateSolution, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, UpdateSolution, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, UpdateSolution, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".UpdateSolution", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> UpdateSolutionOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, UpdateSolution, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return UpdateSolutionOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + diff --git a/generated/src/aws-cpp-sdk-personalize/source/model/Solution.cpp b/generated/src/aws-cpp-sdk-personalize/source/model/Solution.cpp index e2adf11017d..5ea184a1b7e 100644 --- a/generated/src/aws-cpp-sdk-personalize/source/model/Solution.cpp +++ b/generated/src/aws-cpp-sdk-personalize/source/model/Solution.cpp @@ -35,7 +35,8 @@ Solution::Solution() : m_statusHasBeenSet(false), m_creationDateTimeHasBeenSet(false), m_lastUpdatedDateTimeHasBeenSet(false), - m_latestSolutionVersionHasBeenSet(false) + m_latestSolutionVersionHasBeenSet(false), + m_latestSolutionUpdateHasBeenSet(false) { } @@ -145,6 +146,13 @@ Solution& Solution::operator =(JsonView jsonValue) m_latestSolutionVersionHasBeenSet = true; } + if(jsonValue.ValueExists("latestSolutionUpdate")) + { + m_latestSolutionUpdate = jsonValue.GetObject("latestSolutionUpdate"); + + m_latestSolutionUpdateHasBeenSet = true; + } + return *this; } @@ -234,6 +242,12 @@ JsonValue Solution::Jsonize() const } + if(m_latestSolutionUpdateHasBeenSet) + { + payload.WithObject("latestSolutionUpdate", m_latestSolutionUpdate.Jsonize()); + + } + return payload; } diff --git a/generated/src/aws-cpp-sdk-personalize/source/model/SolutionUpdateConfig.cpp b/generated/src/aws-cpp-sdk-personalize/source/model/SolutionUpdateConfig.cpp new file mode 100644 index 00000000000..fca4e6564c9 --- /dev/null +++ b/generated/src/aws-cpp-sdk-personalize/source/model/SolutionUpdateConfig.cpp @@ -0,0 +1,59 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace Personalize +{ +namespace Model +{ + +SolutionUpdateConfig::SolutionUpdateConfig() : + m_autoTrainingConfigHasBeenSet(false) +{ +} + +SolutionUpdateConfig::SolutionUpdateConfig(JsonView jsonValue) + : SolutionUpdateConfig() +{ + *this = jsonValue; +} + +SolutionUpdateConfig& SolutionUpdateConfig::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("autoTrainingConfig")) + { + m_autoTrainingConfig = jsonValue.GetObject("autoTrainingConfig"); + + m_autoTrainingConfigHasBeenSet = true; + } + + return *this; +} + +JsonValue SolutionUpdateConfig::Jsonize() const +{ + JsonValue payload; + + if(m_autoTrainingConfigHasBeenSet) + { + payload.WithObject("autoTrainingConfig", m_autoTrainingConfig.Jsonize()); + + } + + return payload; +} + +} // namespace Model +} // namespace Personalize +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-personalize/source/model/SolutionUpdateSummary.cpp b/generated/src/aws-cpp-sdk-personalize/source/model/SolutionUpdateSummary.cpp new file mode 100644 index 00000000000..ddcefdb056e --- /dev/null +++ b/generated/src/aws-cpp-sdk-personalize/source/model/SolutionUpdateSummary.cpp @@ -0,0 +1,128 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace Personalize +{ +namespace Model +{ + +SolutionUpdateSummary::SolutionUpdateSummary() : + m_solutionUpdateConfigHasBeenSet(false), + m_statusHasBeenSet(false), + m_performAutoTraining(false), + m_performAutoTrainingHasBeenSet(false), + m_creationDateTimeHasBeenSet(false), + m_lastUpdatedDateTimeHasBeenSet(false), + m_failureReasonHasBeenSet(false) +{ +} + +SolutionUpdateSummary::SolutionUpdateSummary(JsonView jsonValue) + : SolutionUpdateSummary() +{ + *this = jsonValue; +} + +SolutionUpdateSummary& SolutionUpdateSummary::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("solutionUpdateConfig")) + { + m_solutionUpdateConfig = jsonValue.GetObject("solutionUpdateConfig"); + + m_solutionUpdateConfigHasBeenSet = true; + } + + if(jsonValue.ValueExists("status")) + { + m_status = jsonValue.GetString("status"); + + m_statusHasBeenSet = true; + } + + if(jsonValue.ValueExists("performAutoTraining")) + { + m_performAutoTraining = jsonValue.GetBool("performAutoTraining"); + + m_performAutoTrainingHasBeenSet = true; + } + + if(jsonValue.ValueExists("creationDateTime")) + { + m_creationDateTime = jsonValue.GetDouble("creationDateTime"); + + m_creationDateTimeHasBeenSet = true; + } + + if(jsonValue.ValueExists("lastUpdatedDateTime")) + { + m_lastUpdatedDateTime = jsonValue.GetDouble("lastUpdatedDateTime"); + + m_lastUpdatedDateTimeHasBeenSet = true; + } + + if(jsonValue.ValueExists("failureReason")) + { + m_failureReason = jsonValue.GetString("failureReason"); + + m_failureReasonHasBeenSet = true; + } + + return *this; +} + +JsonValue SolutionUpdateSummary::Jsonize() const +{ + JsonValue payload; + + if(m_solutionUpdateConfigHasBeenSet) + { + payload.WithObject("solutionUpdateConfig", m_solutionUpdateConfig.Jsonize()); + + } + + if(m_statusHasBeenSet) + { + payload.WithString("status", m_status); + + } + + if(m_performAutoTrainingHasBeenSet) + { + payload.WithBool("performAutoTraining", m_performAutoTraining); + + } + + if(m_creationDateTimeHasBeenSet) + { + payload.WithDouble("creationDateTime", m_creationDateTime.SecondsWithMSPrecision()); + } + + if(m_lastUpdatedDateTimeHasBeenSet) + { + payload.WithDouble("lastUpdatedDateTime", m_lastUpdatedDateTime.SecondsWithMSPrecision()); + } + + if(m_failureReasonHasBeenSet) + { + payload.WithString("failureReason", m_failureReason); + + } + + return payload; +} + +} // namespace Model +} // namespace Personalize +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-personalize/source/model/UpdateSolutionRequest.cpp b/generated/src/aws-cpp-sdk-personalize/source/model/UpdateSolutionRequest.cpp new file mode 100644 index 00000000000..c507371d4bf --- /dev/null +++ b/generated/src/aws-cpp-sdk-personalize/source/model/UpdateSolutionRequest.cpp @@ -0,0 +1,58 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Personalize::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +UpdateSolutionRequest::UpdateSolutionRequest() : + m_solutionArnHasBeenSet(false), + m_performAutoTraining(false), + m_performAutoTrainingHasBeenSet(false), + m_solutionUpdateConfigHasBeenSet(false) +{ +} + +Aws::String UpdateSolutionRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_solutionArnHasBeenSet) + { + payload.WithString("solutionArn", m_solutionArn); + + } + + if(m_performAutoTrainingHasBeenSet) + { + payload.WithBool("performAutoTraining", m_performAutoTraining); + + } + + if(m_solutionUpdateConfigHasBeenSet) + { + payload.WithObject("solutionUpdateConfig", m_solutionUpdateConfig.Jsonize()); + + } + + return payload.View().WriteReadable(); +} + +Aws::Http::HeaderValueCollection UpdateSolutionRequest::GetRequestSpecificHeaders() const +{ + Aws::Http::HeaderValueCollection headers; + headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AmazonPersonalize.UpdateSolution")); + return headers; + +} + + + + diff --git a/generated/src/aws-cpp-sdk-personalize/source/model/UpdateSolutionResult.cpp b/generated/src/aws-cpp-sdk-personalize/source/model/UpdateSolutionResult.cpp new file mode 100644 index 00000000000..7401ba3c247 --- /dev/null +++ b/generated/src/aws-cpp-sdk-personalize/source/model/UpdateSolutionResult.cpp @@ -0,0 +1,48 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::Personalize::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +UpdateSolutionResult::UpdateSolutionResult() +{ +} + +UpdateSolutionResult::UpdateSolutionResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +UpdateSolutionResult& UpdateSolutionResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("solutionArn")) + { + m_solutionArn = jsonValue.GetString("solutionArn"); + + } + + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-states/include/aws/states/model/ValidateStateMachineDefinitionRequest.h b/generated/src/aws-cpp-sdk-states/include/aws/states/model/ValidateStateMachineDefinitionRequest.h index 365bdfdd59e..fc6c1bf286c 100644 --- a/generated/src/aws-cpp-sdk-states/include/aws/states/model/ValidateStateMachineDefinitionRequest.h +++ b/generated/src/aws-cpp-sdk-states/include/aws/states/model/ValidateStateMachineDefinitionRequest.h @@ -8,6 +8,7 @@ #include #include #include +#include #include namespace Aws @@ -64,6 +65,35 @@ namespace Model inline ValidateStateMachineDefinitionRequest& WithType(const StateMachineType& value) { SetType(value); return *this;} inline ValidateStateMachineDefinitionRequest& WithType(StateMachineType&& value) { SetType(std::move(value)); return *this;} ///@} + + ///@{ + /** + *

      Minimum level of diagnostics to return. ERROR returns only + * ERROR diagnostics, whereas WARNING returns both + * WARNING and ERROR diagnostics. The default is + * ERROR.

      + */ + inline const ValidateStateMachineDefinitionSeverity& GetSeverity() const{ return m_severity; } + inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; } + inline void SetSeverity(const ValidateStateMachineDefinitionSeverity& value) { m_severityHasBeenSet = true; m_severity = value; } + inline void SetSeverity(ValidateStateMachineDefinitionSeverity&& value) { m_severityHasBeenSet = true; m_severity = std::move(value); } + inline ValidateStateMachineDefinitionRequest& WithSeverity(const ValidateStateMachineDefinitionSeverity& value) { SetSeverity(value); return *this;} + inline ValidateStateMachineDefinitionRequest& WithSeverity(ValidateStateMachineDefinitionSeverity&& value) { SetSeverity(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

      The maximum number of diagnostics that are returned per call. The default and + * maximum value is 100. Setting the value to 0 will also use the default of + * 100.

      If the number of diagnostics returned in the response exceeds + * maxResults, the value of the truncated field in the + * response will be set to true.

      + */ + inline int GetMaxResults() const{ return m_maxResults; } + inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } + inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } + inline ValidateStateMachineDefinitionRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} + ///@} private: Aws::String m_definition; @@ -71,6 +101,12 @@ namespace Model StateMachineType m_type; bool m_typeHasBeenSet = false; + + ValidateStateMachineDefinitionSeverity m_severity; + bool m_severityHasBeenSet = false; + + int m_maxResults; + bool m_maxResultsHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-states/include/aws/states/model/ValidateStateMachineDefinitionResult.h b/generated/src/aws-cpp-sdk-states/include/aws/states/model/ValidateStateMachineDefinitionResult.h index 4bc9e07c25e..e530a0a4191 100644 --- a/generated/src/aws-cpp-sdk-states/include/aws/states/model/ValidateStateMachineDefinitionResult.h +++ b/generated/src/aws-cpp-sdk-states/include/aws/states/model/ValidateStateMachineDefinitionResult.h @@ -62,6 +62,17 @@ namespace Model inline ValidateStateMachineDefinitionResult& AddDiagnostics(ValidateStateMachineDefinitionDiagnostic&& value) { m_diagnostics.push_back(std::move(value)); return *this; } ///@} + ///@{ + /** + *

      The result value will be true if the number of diagnostics found + * in the workflow definition exceeds maxResults. When all diagnostics + * results are returned, the value will be false.

      + */ + inline bool GetTruncated() const{ return m_truncated; } + inline void SetTruncated(bool value) { m_truncated = value; } + inline ValidateStateMachineDefinitionResult& WithTruncated(bool value) { SetTruncated(value); return *this;} + ///@} + ///@{ inline const Aws::String& GetRequestId() const{ return m_requestId; } @@ -78,6 +89,8 @@ namespace Model Aws::Vector m_diagnostics; + bool m_truncated; + Aws::String m_requestId; }; diff --git a/generated/src/aws-cpp-sdk-states/include/aws/states/model/ValidateStateMachineDefinitionSeverity.h b/generated/src/aws-cpp-sdk-states/include/aws/states/model/ValidateStateMachineDefinitionSeverity.h index deda146d6be..37e04b1ec41 100644 --- a/generated/src/aws-cpp-sdk-states/include/aws/states/model/ValidateStateMachineDefinitionSeverity.h +++ b/generated/src/aws-cpp-sdk-states/include/aws/states/model/ValidateStateMachineDefinitionSeverity.h @@ -16,7 +16,8 @@ namespace Model enum class ValidateStateMachineDefinitionSeverity { NOT_SET, - ERROR_ + ERROR_, + WARNING }; namespace ValidateStateMachineDefinitionSeverityMapper diff --git a/generated/src/aws-cpp-sdk-states/source/model/ValidateStateMachineDefinitionRequest.cpp b/generated/src/aws-cpp-sdk-states/source/model/ValidateStateMachineDefinitionRequest.cpp index aed332301b5..ce3f95e9057 100644 --- a/generated/src/aws-cpp-sdk-states/source/model/ValidateStateMachineDefinitionRequest.cpp +++ b/generated/src/aws-cpp-sdk-states/source/model/ValidateStateMachineDefinitionRequest.cpp @@ -15,7 +15,11 @@ using namespace Aws::Utils; ValidateStateMachineDefinitionRequest::ValidateStateMachineDefinitionRequest() : m_definitionHasBeenSet(false), m_type(StateMachineType::NOT_SET), - m_typeHasBeenSet(false) + m_typeHasBeenSet(false), + m_severity(ValidateStateMachineDefinitionSeverity::NOT_SET), + m_severityHasBeenSet(false), + m_maxResults(0), + m_maxResultsHasBeenSet(false) { } @@ -34,6 +38,17 @@ Aws::String ValidateStateMachineDefinitionRequest::SerializePayload() const payload.WithString("type", StateMachineTypeMapper::GetNameForStateMachineType(m_type)); } + if(m_severityHasBeenSet) + { + payload.WithString("severity", ValidateStateMachineDefinitionSeverityMapper::GetNameForValidateStateMachineDefinitionSeverity(m_severity)); + } + + if(m_maxResultsHasBeenSet) + { + payload.WithInteger("maxResults", m_maxResults); + + } + return payload.View().WriteReadable(); } diff --git a/generated/src/aws-cpp-sdk-states/source/model/ValidateStateMachineDefinitionResult.cpp b/generated/src/aws-cpp-sdk-states/source/model/ValidateStateMachineDefinitionResult.cpp index 6e4aae9282a..68bb4e6073c 100644 --- a/generated/src/aws-cpp-sdk-states/source/model/ValidateStateMachineDefinitionResult.cpp +++ b/generated/src/aws-cpp-sdk-states/source/model/ValidateStateMachineDefinitionResult.cpp @@ -18,7 +18,8 @@ using namespace Aws::Utils; using namespace Aws; ValidateStateMachineDefinitionResult::ValidateStateMachineDefinitionResult() : - m_result(ValidateStateMachineDefinitionResultCode::NOT_SET) + m_result(ValidateStateMachineDefinitionResultCode::NOT_SET), + m_truncated(false) { } @@ -46,6 +47,12 @@ ValidateStateMachineDefinitionResult& ValidateStateMachineDefinitionResult::oper } } + if(jsonValue.ValueExists("truncated")) + { + m_truncated = jsonValue.GetBool("truncated"); + + } + const auto& headers = result.GetHeaderValueCollection(); const auto& requestIdIter = headers.find("x-amzn-requestid"); diff --git a/generated/src/aws-cpp-sdk-states/source/model/ValidateStateMachineDefinitionSeverity.cpp b/generated/src/aws-cpp-sdk-states/source/model/ValidateStateMachineDefinitionSeverity.cpp index 91437d5a6a1..def475e1dba 100644 --- a/generated/src/aws-cpp-sdk-states/source/model/ValidateStateMachineDefinitionSeverity.cpp +++ b/generated/src/aws-cpp-sdk-states/source/model/ValidateStateMachineDefinitionSeverity.cpp @@ -21,6 +21,7 @@ namespace Aws { static const int ERROR__HASH = HashingUtils::HashString("ERROR"); + static const int WARNING_HASH = HashingUtils::HashString("WARNING"); ValidateStateMachineDefinitionSeverity GetValidateStateMachineDefinitionSeverityForName(const Aws::String& name) @@ -30,6 +31,10 @@ namespace Aws { return ValidateStateMachineDefinitionSeverity::ERROR_; } + else if (hashCode == WARNING_HASH) + { + return ValidateStateMachineDefinitionSeverity::WARNING; + } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { @@ -48,6 +53,8 @@ namespace Aws return {}; case ValidateStateMachineDefinitionSeverity::ERROR_: return "ERROR"; + case ValidateStateMachineDefinitionSeverity::WARNING: + return "WARNING"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) diff --git a/generated/src/aws-cpp-sdk-wafv2/include/aws/wafv2/WAFV2Client.h b/generated/src/aws-cpp-sdk-wafv2/include/aws/wafv2/WAFV2Client.h index 86e81e73f2f..f6676d8a0ab 100644 --- a/generated/src/aws-cpp-sdk-wafv2/include/aws/wafv2/WAFV2Client.h +++ b/generated/src/aws-cpp-sdk-wafv2/include/aws/wafv2/WAFV2Client.h @@ -1552,14 +1552,18 @@ namespace WAFV2 } /** - *

      Attaches an IAM policy to the specified resource. Use this to share a rule - * group across accounts.

      You must be the owner of the rule group to perform - * this operation.

      This action is subject to the following restrictions:

      - *
      • You can attach only one policy with each - * PutPermissionPolicy request.

      • The ARN in the + *

        Use this to share a rule group with other accounts.

        This action + * attaches an IAM policy to the specified resource. You must be the owner of the + * rule group to perform this operation.

        This action is subject to the + * following restrictions:

        • You can attach only one policy with + * each PutPermissionPolicy request.

        • The ARN in the * request must be a valid WAF RuleGroup ARN and the rule group must exist * in the same Region.

        • The user making the request must be the - * owner of the rule group.

        See Also:

      If a rule group has been shared with + * your account, you can access it through the call GetRuleGroup, and + * you can reference it in CreateWebACL and UpdateWebACL. + * Rule groups that are shared with you don't appear in your WAF console rule + * groups listing.

      See Also:

      AWS * API Reference

      */ diff --git a/src/aws-cpp-sdk-core/include/aws/core/VersionConfig.h b/src/aws-cpp-sdk-core/include/aws/core/VersionConfig.h index d9b4f42b99d..44b3826aaf7 100644 --- a/src/aws-cpp-sdk-core/include/aws/core/VersionConfig.h +++ b/src/aws-cpp-sdk-core/include/aws/core/VersionConfig.h @@ -4,7 +4,7 @@ */ #pragma once -#define AWS_SDK_VERSION_STRING "1.11.394" +#define AWS_SDK_VERSION_STRING "1.11.395" #define AWS_SDK_VERSION_MAJOR 1 #define AWS_SDK_VERSION_MINOR 11 -#define AWS_SDK_VERSION_PATCH 394 +#define AWS_SDK_VERSION_PATCH 395 diff --git a/tools/code-generation/api-descriptions/bedrock-agent-runtime-2023-07-26.normal.json b/tools/code-generation/api-descriptions/bedrock-agent-runtime-2023-07-26.normal.json index 7dd578eb438..0108a86c963 100644 --- a/tools/code-generation/api-descriptions/bedrock-agent-runtime-2023-07-26.normal.json +++ b/tools/code-generation/api-descriptions/bedrock-agent-runtime-2023-07-26.normal.json @@ -5,11 +5,13 @@ "endpointPrefix":"bedrock-agent-runtime", "jsonVersion":"1.1", "protocol":"rest-json", + "protocols":["rest-json"], "serviceFullName":"Agents for Amazon Bedrock Runtime", "serviceId":"Bedrock Agent Runtime", "signatureVersion":"v4", "signingName":"bedrock", - "uid":"bedrock-agent-runtime-2023-07-26" + "uid":"bedrock-agent-runtime-2023-07-26", + "auth":["aws.auth#sigv4"] }, "operations":{ "DeleteAgentMemory":{ @@ -436,7 +438,7 @@ "members":{ "data":{ "shape":"ByteContentBlob", - "documentation":"

      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.

      " + "documentation":"

      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.

      " }, "mediaType":{ "shape":"MimeType", @@ -2628,7 +2630,6 @@ "RetrievalFilterList":{ "type":"list", "member":{"shape":"RetrievalFilter"}, - "max":5, "min":2 }, "RetrievalResultConfluenceLocation":{ diff --git a/tools/code-generation/api-descriptions/bedrock-runtime-2023-09-30.normal.json b/tools/code-generation/api-descriptions/bedrock-runtime-2023-09-30.normal.json index 0989dc48c81..283f7d6eb4a 100644 --- a/tools/code-generation/api-descriptions/bedrock-runtime-2023-09-30.normal.json +++ b/tools/code-generation/api-descriptions/bedrock-runtime-2023-09-30.normal.json @@ -368,7 +368,7 @@ "members":{ "modelId":{ "shape":"ConversationalModelId", - "documentation":"

      The identifier for the model that you want to call.

      The modelId to provide depends on the type of model that you use:

      ", + "documentation":"

      The identifier for the model that you want to call.

      The modelId to provide depends on the type of model or throughput that you use:

      The Converse API doesn't support imported models.

      ", "location":"uri", "locationName":"modelId" }, @@ -542,7 +542,7 @@ "members":{ "modelId":{ "shape":"ConversationalModelId", - "documentation":"

      The ID for the model.

      The modelId to provide depends on the type of model that you use:

      ", + "documentation":"

      The ID for the model.

      The modelId to provide depends on the type of model or throughput that you use:

      The Converse API doesn't support imported models.

      ", "location":"uri", "locationName":"modelId" }, @@ -1448,7 +1448,7 @@ "type":"string", "max":2048, "min":1, - "pattern":"(arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:(([0-9]{12}:custom-model/[a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}/[a-z0-9]{12})|(:foundation-model/[a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([.:]?[a-z0-9-]{1,63}))|([0-9]{12}:provisioned-model/[a-z0-9]{12})|([0-9]{12}:inference-profile/[a-zA-Z0-9-:.]+)))|([a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([.:]?[a-z0-9-]{1,63}))|(([0-9a-zA-Z][_-]?)+)|([a-zA-Z0-9-:.]+)" + "pattern":"(arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:(([0-9]{12}:custom-model/[a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}/[a-z0-9]{12})|(:foundation-model/[a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([.:]?[a-z0-9-]{1,63}))|([0-9]{12}:imported-model/[a-z0-9]{12})|([0-9]{12}:provisioned-model/[a-z0-9]{12})|([0-9]{12}:inference-profile/[a-zA-Z0-9-:.]+)))|([a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([.:]?[a-z0-9-]{1,63}))|(([0-9a-zA-Z][_-]?)+)|([a-zA-Z0-9-:.]+)" }, "InvokeModelRequest":{ "type":"structure", @@ -1475,7 +1475,7 @@ }, "modelId":{ "shape":"InvokeModelIdentifier", - "documentation":"

      The unique identifier of the model to invoke to run inference.

      The modelId to provide depends on the type of model that you use:

      ", + "documentation":"

      The unique identifier of the model to invoke to run inference.

      The modelId to provide depends on the type of model that you use:

      ", "location":"uri", "locationName":"modelId" }, @@ -1545,7 +1545,7 @@ }, "modelId":{ "shape":"InvokeModelIdentifier", - "documentation":"

      The unique identifier of the model to invoke to run inference.

      The modelId to provide depends on the type of model that you use:

      ", + "documentation":"

      The unique identifier of the model to invoke to run inference.

      The modelId to provide depends on the type of model that you use:

      ", "location":"uri", "locationName":"modelId" }, @@ -1670,12 +1670,13 @@ "members":{ "message":{"shape":"NonBlankString"} }, - "documentation":"

      The model specified in the request is not ready to serve inference requests.

      ", + "documentation":"

      The model specified in the request is not ready to serve inference requests. The AWS SDK will automatically retry the operation up to 5 times. For information about configuring automatic retries, see Retry behavior in the AWS SDKs and Tools reference guide.

      ", "error":{ "httpStatusCode":429, "senderFault":true }, - "exception":true + "exception":true, + "retryable":{"throttling":false} }, "ModelOutputs":{ "type":"list", diff --git a/tools/code-generation/api-descriptions/personalize-2018-05-22.normal.json b/tools/code-generation/api-descriptions/personalize-2018-05-22.normal.json index 6e547142686..b0a368f1c59 100644 --- a/tools/code-generation/api-descriptions/personalize-2018-05-22.normal.json +++ b/tools/code-generation/api-descriptions/personalize-2018-05-22.normal.json @@ -11,7 +11,8 @@ "signatureVersion":"v4", "signingName":"personalize", "targetPrefix":"AmazonPersonalize", - "uid":"personalize-2018-05-22" + "uid":"personalize-2018-05-22", + "auth":["aws.auth#sigv4"] }, "operations":{ "CreateBatchInferenceJob":{ @@ -263,7 +264,7 @@ {"shape":"ResourceInUseException"}, {"shape":"TooManyTagsException"} ], - "documentation":"

      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 Amazon Personalize pricing.

      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 Creating and configuring a solution.

      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 solution is ACTIVE. If you manually create a solution version within the hour, the solution skips the first automatic training. For more information, see Configuring automatic training.

      To turn off automatic training, set performAutoTraining to false. If you turn off automatic training, you must manually create a solution version by calling the CreateSolutionVersion operation.

      After training starts, you can get the solution version's Amazon Resource Name (ARN) with the ListSolutionVersions API operation. To get its status, use the DescribeSolutionVersion.

      After training completes you can evaluate model accuracy by calling GetSolutionMetrics. When you are satisfied with the solution version, you deploy it using CreateCampaign. The campaign provides recommendations to a client through the GetRecommendations API.

      Amazon Personalize doesn't support configuring the hpoObjective for solution hyperparameter optimization at this time.

      Status

      A solution can be in one of the following states:

      • CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- CREATE FAILED

      • DELETE PENDING > DELETE IN_PROGRESS

      To get the status of the solution, call DescribeSolution. If you use manual training, the status must be ACTIVE before you call CreateSolutionVersion.

      Related APIs

      " + "documentation":"

      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 update the solution to turn off automatic training. For information about training costs, see Amazon Personalize pricing.

      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 Creating and configuring a solution.

      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 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 Configuring automatic training.

      To turn off automatic training, set performAutoTraining to false. If you turn off automatic training, you must manually create a solution version by calling the CreateSolutionVersion operation.

      After training starts, you can get the solution version's Amazon Resource Name (ARN) with the ListSolutionVersions API operation. To get its status, use the DescribeSolutionVersion.

      After training completes you can evaluate model accuracy by calling GetSolutionMetrics. When you are satisfied with the solution version, you deploy it using CreateCampaign. The campaign provides recommendations to a client through the GetRecommendations API.

      Amazon Personalize doesn't support configuring the hpoObjective for solution hyperparameter optimization at this time.

      Status

      A solution can be in one of the following states:

      • CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- CREATE FAILED

      • DELETE PENDING > DELETE IN_PROGRESS

      To get the status of the solution, call DescribeSolution. If you use manual training, the status must be ACTIVE before you call CreateSolutionVersion.

      Related APIs

      " }, "CreateSolutionVersion":{ "name":"CreateSolutionVersion", @@ -1113,6 +1114,23 @@ ], "documentation":"

      Updates the recommender to modify the recommender configuration. If you update the recommender to modify the columns used in training, Amazon Personalize automatically starts a full retraining of the models backing your recommender. While the update completes, you can still get recommendations from the recommender. The recommender uses the previous configuration until the update completes. To track the status of this update, use the latestRecommenderUpdate returned in the DescribeRecommender operation.

      ", "idempotent":true + }, + "UpdateSolution":{ + "name":"UpdateSolution", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdateSolutionRequest"}, + "output":{"shape":"UpdateSolutionResponse"}, + "errors":[ + {"shape":"InvalidInputException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ResourceInUseException"}, + {"shape":"LimitExceededException"}, + {"shape":"ResourceInUseException"} + ], + "documentation":"

      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 Updating a solution.

      A solution update can be in one of the following states:

      CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- CREATE FAILED

      To get the status of a solution update, call the DescribeSolution API operation and find the status in the latestSolutionUpdate.

      " } }, "shapes":{ @@ -2244,7 +2262,7 @@ }, "performAutoTraining":{ "shape":"PerformAutoTraining", - "documentation":"

      Whether the solution uses automatic training to create new solution versions (trained models). The default is True and the solution automatically creates new solution versions every 7 days. You can change the training frequency by specifying a schedulingExpression in the AutoTrainingConfig as part of solution configuration. For more information about automatic training, see Configuring automatic training.

      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.

      After training starts, you can get the solution version's Amazon Resource Name (ARN) with the ListSolutionVersions API operation. To get its status, use the DescribeSolutionVersion.

      " + "documentation":"

      Whether the solution uses automatic training to create new solution versions (trained models). The default is True and the solution automatically creates new solution versions every 7 days. You can change the training frequency by specifying a schedulingExpression in the AutoTrainingConfig as part of solution configuration. For more information about automatic training, see Configuring automatic training.

      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.

      After training starts, you can get the solution version's Amazon Resource Name (ARN) with the ListSolutionVersions API operation. To get its status, use the DescribeSolutionVersion.

      " }, "recipeArn":{ "shape":"Arn", @@ -2260,7 +2278,7 @@ }, "solutionConfig":{ "shape":"SolutionConfig", - "documentation":"

      The configuration to use with the solution. When performAutoML is set to true, Amazon Personalize only evaluates the autoMLConfig section of the solution configuration.

      Amazon Personalize doesn't support configuring the hpoObjective at this time.

      " + "documentation":"

      The configuration properties for the solution. When performAutoML is set to true, Amazon Personalize only evaluates the autoMLConfig section of the solution configuration.

      Amazon Personalize doesn't support configuring the hpoObjective at this time.

      " }, "tags":{ "shape":"Tags", @@ -4701,7 +4719,7 @@ }, "status":{ "shape":"Status", - "documentation":"

      The status of the recommender update.

      A recommender can be in one of the following states:

      • CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- CREATE FAILED

      • STOP PENDING > STOP IN_PROGRESS > INACTIVE > START PENDING > START IN_PROGRESS > ACTIVE

      • DELETE PENDING > DELETE IN_PROGRESS

      " + "documentation":"

      The status of the recommender update. A recommender update can be in one of the following states:

      CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- CREATE FAILED

      " }, "failureReason":{ "shape":"FailureReason", @@ -4839,9 +4857,13 @@ "latestSolutionVersion":{ "shape":"SolutionVersionSummary", "documentation":"

      Describes the latest version of the solution, including the status and the ARN.

      " + }, + "latestSolutionUpdate":{ + "shape":"SolutionUpdateSummary", + "documentation":"

      Provides a summary of the latest updates to the solution.

      " } }, - "documentation":"

      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 Amazon Personalize pricing.

      An object that provides information about a solution. A solution includes the custom recipe, customized parameters, and trained models (Solution Versions) that Amazon Personalize uses to generate recommendations.

      After you create a solution, you can’t change its configuration. If you need to make changes, you can clone the solution with the Amazon Personalize console or create a new one.

      " + "documentation":"

      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 update the solution to turn off automatic training. For information about training costs, see Amazon Personalize pricing.

      An object that provides information about a solution. A solution includes the custom recipe, customized parameters, and trained models (Solution Versions) that Amazon Personalize uses to generate recommendations.

      After you create a solution, you can’t change its configuration. If you need to make changes, you can clone the solution with the Amazon Personalize console or create a new one.

      " }, "SolutionConfig":{ "type":"structure", @@ -4911,6 +4933,43 @@ }, "documentation":"

      Provides a summary of the properties of a solution. For a complete listing, call the DescribeSolution API.

      " }, + "SolutionUpdateConfig":{ + "type":"structure", + "members":{ + "autoTrainingConfig":{"shape":"AutoTrainingConfig"} + }, + "documentation":"

      The configuration details of the solution update.

      " + }, + "SolutionUpdateSummary":{ + "type":"structure", + "members":{ + "solutionUpdateConfig":{ + "shape":"SolutionUpdateConfig", + "documentation":"

      The configuration details of the solution.

      " + }, + "status":{ + "shape":"Status", + "documentation":"

      The status of the solution update. A solution update can be in one of the following states:

      CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- CREATE FAILED

      " + }, + "performAutoTraining":{ + "shape":"PerformAutoTraining", + "documentation":"

      Whether the solution automatically creates solution versions.

      " + }, + "creationDateTime":{ + "shape":"Date", + "documentation":"

      The date and time (in Unix format) that the solution update was created.

      " + }, + "lastUpdatedDateTime":{ + "shape":"Date", + "documentation":"

      The date and time (in Unix time) that the solution update was last updated.

      " + }, + "failureReason":{ + "shape":"FailureReason", + "documentation":"

      If a solution update fails, the reason behind the failure.

      " + } + }, + "documentation":"

      Provides a summary of the properties of a solution update. For a complete listing, call the DescribeSolution API.

      " + }, "SolutionVersion":{ "type":"structure", "members":{ @@ -5358,6 +5417,33 @@ "documentation":"

      The same recommender Amazon Resource Name (ARN) as given in the request.

      " } } + }, + "UpdateSolutionRequest":{ + "type":"structure", + "required":["solutionArn"], + "members":{ + "solutionArn":{ + "shape":"Arn", + "documentation":"

      The Amazon Resource Name (ARN) of the solution to update.

      " + }, + "performAutoTraining":{ + "shape":"PerformAutoTraining", + "documentation":"

      Whether the solution uses automatic training to create new solution versions (trained models). You can change the training frequency by specifying a schedulingExpression in the AutoTrainingConfig as part of solution configuration.

      If you turn on automatic training, the first automatic training starts within one hour after the solution update completes. If you manually create a solution version within the hour, the solution skips the first automatic training. For more information about automatic training, see Configuring automatic training.

      After training starts, you can get the solution version's Amazon Resource Name (ARN) with the ListSolutionVersions API operation. To get its status, use the DescribeSolutionVersion.

      " + }, + "solutionUpdateConfig":{ + "shape":"SolutionUpdateConfig", + "documentation":"

      The new configuration details of the solution.

      " + } + } + }, + "UpdateSolutionResponse":{ + "type":"structure", + "members":{ + "solutionArn":{ + "shape":"Arn", + "documentation":"

      The same solution Amazon Resource Name (ARN) as given in the request.

      " + } + } } }, "documentation":"

      Amazon Personalize is a machine learning service that makes it easy to add individualized recommendations to customers.

      " diff --git a/tools/code-generation/api-descriptions/quicksight-2018-04-01.normal.json b/tools/code-generation/api-descriptions/quicksight-2018-04-01.normal.json index 23bd0af6f83..65faa8277bb 100644 --- a/tools/code-generation/api-descriptions/quicksight-2018-04-01.normal.json +++ b/tools/code-generation/api-descriptions/quicksight-2018-04-01.normal.json @@ -6335,7 +6335,7 @@ "documentation":"

      A unique ID to identify a calculated column. During a dataset update, if the column ID of a calculated column matches that of an existing calculated column, Amazon QuickSight preserves the existing calculated column.

      " }, "Expression":{ - "shape":"Expression", + "shape":"DataSetCalculatedFieldExpression", "documentation":"

      An expression that defines the calculated column.

      " } }, @@ -6891,7 +6891,8 @@ "ColumnDescriptiveText":{ "type":"string", "max":500, - "min":0 + "min":0, + "sensitive":true }, "ColumnGroup":{ "type":"structure", @@ -10433,6 +10434,12 @@ "member":{"shape":"Arn"}, "max":100 }, + "DataSetCalculatedFieldExpression":{ + "type":"string", + "max":250000, + "min":1, + "sensitive":true + }, "DataSetConfiguration":{ "type":"structure", "members":{ diff --git a/tools/code-generation/api-descriptions/states-2016-11-23.normal.json b/tools/code-generation/api-descriptions/states-2016-11-23.normal.json index 9462c7dfec0..b7e565c574a 100644 --- a/tools/code-generation/api-descriptions/states-2016-11-23.normal.json +++ b/tools/code-generation/api-descriptions/states-2016-11-23.normal.json @@ -3964,10 +3964,23 @@ "type":{ "shape":"StateMachineType", "documentation":"

      The target type of state machine for this definition. The default is STANDARD.

      " + }, + "severity":{ + "shape":"ValidateStateMachineDefinitionSeverity", + "documentation":"

      Minimum level of diagnostics to return. ERROR returns only ERROR diagnostics, whereas WARNING returns both WARNING and ERROR diagnostics. The default is ERROR.

      " + }, + "maxResults":{ + "shape":"ValidateStateMachineDefinitionMaxResult", + "documentation":"

      The maximum number of diagnostics that are returned per call. The default and maximum value is 100. Setting the value to 0 will also use the default of 100.

      If the number of diagnostics returned in the response exceeds maxResults, the value of the truncated field in the response will be set to true.

      " } } }, "ValidateStateMachineDefinitionLocation":{"type":"string"}, + "ValidateStateMachineDefinitionMaxResult":{ + "type":"integer", + "max":100, + "min":0 + }, "ValidateStateMachineDefinitionMessage":{"type":"string"}, "ValidateStateMachineDefinitionOutput":{ "type":"structure", @@ -3983,6 +3996,10 @@ "diagnostics":{ "shape":"ValidateStateMachineDefinitionDiagnosticList", "documentation":"

      If the result is OK, this field will be empty. When there are errors, this field will contain an array of Diagnostic objects to help you troubleshoot.

      " + }, + "truncated":{ + "shape":"ValidateStateMachineDefinitionTruncated", + "documentation":"

      The result value will be true if the number of diagnostics found in the workflow definition exceeds maxResults. When all diagnostics results are returned, the value will be false.

      " } } }, @@ -3995,7 +4012,14 @@ }, "ValidateStateMachineDefinitionSeverity":{ "type":"string", - "enum":["ERROR"] + "enum":[ + "ERROR", + "WARNING" + ] + }, + "ValidateStateMachineDefinitionTruncated":{ + "type":"boolean", + "box":true }, "ValidationException":{ "type":"structure", diff --git a/tools/code-generation/api-descriptions/wafv2-2019-07-29.normal.json b/tools/code-generation/api-descriptions/wafv2-2019-07-29.normal.json index ffe0d4ef941..3d705697c16 100644 --- a/tools/code-generation/api-descriptions/wafv2-2019-07-29.normal.json +++ b/tools/code-generation/api-descriptions/wafv2-2019-07-29.normal.json @@ -814,7 +814,7 @@ {"shape":"WAFInvalidParameterException"}, {"shape":"WAFInvalidPermissionPolicyException"} ], - "documentation":"

      Attaches an IAM policy to the specified resource. Use this to share a rule group across accounts.

      You must be the owner of the rule group to perform this operation.

      This action is subject to the following restrictions:

      • You can attach only one policy with each PutPermissionPolicy request.

      • The ARN in the request must be a valid WAF RuleGroup ARN and the rule group must exist in the same Region.

      • The user making the request must be the owner of the rule group.

      " + "documentation":"

      Use this to share a rule group with other accounts.

      This action attaches an IAM policy to the specified resource. You must be the owner of the rule group to perform this operation.

      This action is subject to the following restrictions:

      • You can attach only one policy with each PutPermissionPolicy request.

      • The ARN in the request must be a valid WAF RuleGroup ARN and the rule group must exist in the same Region.

      • The user making the request must be the owner of the rule group.

      If a rule group has been shared with your account, you can access it through the call GetRuleGroup, and you can reference it in CreateWebACL and UpdateWebACL. Rule groups that are shared with you don't appear in your WAF console rule groups listing.

      " }, "TagResource":{ "name":"TagResource", @@ -4693,7 +4693,7 @@ "RateLimit":{ "type":"long", "max":2000000000, - "min":100 + "min":10 }, "RateLimitCookie":{ "type":"structure",