From 4e0d5c4eeddceb0d3c3ce9db69321a445045e749 Mon Sep 17 00:00:00 2001 From: aws-sdk-cpp-automation Date: Tue, 26 Mar 2024 18:58:33 +0000 Subject: [PATCH] Adds support for backfill of cost allocation tags, with new StartCostAllocationTagBackfill and ListCostAllocationTagBackfillHistory API. Add new operation delete-kx-cluster-node and add status parameter to list-kx-cluster-node operation. This is a documentation update for Amazon ECS. Documentation updates for Elastic Compute Cloud (EC2). This release adds support to customize prompts sent through the RetrieveAndGenerate API in Agents for Amazon Bedrock. --- VERSION | 2 +- .../BedrockAgentRuntimeClient.h | 6 +- .../bedrock-agent-runtime/model/Citation.h | 9 +- .../model/GeneratedResponsePart.h | 9 +- .../model/GenerationConfiguration.h | 88 ++++++ .../model/InvokeAgentRequest.h | 30 +- .../model/KnowledgeBaseQuery.h | 6 +- .../KnowledgeBaseRetrievalConfiguration.h | 37 ++- .../model/KnowledgeBaseRetrievalResult.h | 7 +- ...edgeBaseRetrieveAndGenerateConfiguration.h | 51 +++- .../KnowledgeBaseVectorSearchConfiguration.h | 32 +-- .../model/PromptTemplate.h | 166 ++++++++++++ .../model/RetrievalResultContent.h | 10 +- .../model/RetrievalResultLocation.h | 9 +- .../model/RetrievalResultS3Location.h | 10 +- .../model/RetrieveAndGenerateConfiguration.h | 7 +- .../model/RetrieveAndGenerateInput.h | 6 +- .../model/RetrieveAndGenerateOutput.h | 7 +- .../model/RetrieveAndGenerateRequest.h | 48 ++-- .../RetrieveAndGenerateSessionConfiguration.h | 7 +- .../model/RetrieveRequest.h | 42 ++- .../model/RetrievedReference.h | 10 +- .../model/SessionState.h | 4 +- .../aws/bedrock-agent-runtime/model/Span.h | 8 +- .../model/TextResponsePart.h | 8 +- .../source/model/GenerationConfiguration.cpp | 59 ++++ ...geBaseRetrieveAndGenerateConfiguration.cpp | 15 + .../source/model/PromptTemplate.cpp | 59 ++++ .../include/aws/ce/CostExplorerClient.h | 55 ++++ .../include/aws/ce/CostExplorerErrors.h | 3 +- .../aws/ce/CostExplorerServiceClientModel.h | 10 + .../model/CostAllocationTagBackfillRequest.h | 256 ++++++++++++++++++ .../model/CostAllocationTagBackfillStatus.h | 32 +++ ...tCostAllocationTagBackfillHistoryRequest.h | 125 +++++++++ ...stCostAllocationTagBackfillHistoryResult.h | 155 +++++++++++ .../StartCostAllocationTagBackfillRequest.h | 101 +++++++ .../StartCostAllocationTagBackfillResult.h | 92 +++++++ .../source/CostExplorerClient.cpp | 54 ++++ .../source/CostExplorerErrors.cpp | 5 + .../CostAllocationTagBackfillRequest.cpp | 120 ++++++++ .../model/CostAllocationTagBackfillStatus.cpp | 79 ++++++ ...ostAllocationTagBackfillHistoryRequest.cpp | 51 ++++ ...CostAllocationTagBackfillHistoryResult.cpp | 57 ++++ .../StartCostAllocationTagBackfillRequest.cpp | 43 +++ .../StartCostAllocationTagBackfillResult.cpp | 48 ++++ .../aws/ec2/model/NewDhcpConfiguration.h | 73 +++-- .../model/SearchTransitGatewayRoutesRequest.h | 12 +- .../source/model/NewDhcpConfiguration.cpp | 2 +- .../include/aws/ecs/ECSClient.h | 83 +++--- .../include/aws/finspace/FinspaceClient.h | 25 ++ .../aws/finspace/FinspaceServiceClientModel.h | 5 + .../finspace/model/CreateKxChangesetRequest.h | 16 +- .../model/DeleteKxClusterNodeRequest.h | 171 ++++++++++++ .../model/DeleteKxClusterNodeResult.h | 63 +++++ .../aws/finspace/model/KxNAS1Configuration.h | 20 +- .../include/aws/finspace/model/KxNode.h | 47 ++++ .../include/aws/finspace/model/KxNodeStatus.h | 31 +++ .../source/FinspaceClient.cpp | 48 ++++ .../model/DeleteKxClusterNodeRequest.cpp | 29 ++ .../model/DeleteKxClusterNodeResult.cpp | 42 +++ .../source/model/KxNode.cpp | 20 +- .../source/model/KxNodeStatus.cpp | 72 +++++ .../include/aws/core/VersionConfig.h | 4 +- ...drock-agent-runtime-2023-07-26.normal.json | 84 ++++-- .../ce-2017-10-25.normal.json | 122 +++++++++ .../ec2-2016-11-15.normal.json | 8 +- .../ecs-2014-11-13.normal.json | 10 +- .../finspace-2021-03-12.normal.json | 65 ++++- 68 files changed, 2877 insertions(+), 213 deletions(-) create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GenerationConfiguration.h create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/PromptTemplate.h create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GenerationConfiguration.cpp create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/PromptTemplate.cpp create mode 100644 generated/src/aws-cpp-sdk-ce/include/aws/ce/model/CostAllocationTagBackfillRequest.h create mode 100644 generated/src/aws-cpp-sdk-ce/include/aws/ce/model/CostAllocationTagBackfillStatus.h create mode 100644 generated/src/aws-cpp-sdk-ce/include/aws/ce/model/ListCostAllocationTagBackfillHistoryRequest.h create mode 100644 generated/src/aws-cpp-sdk-ce/include/aws/ce/model/ListCostAllocationTagBackfillHistoryResult.h create mode 100644 generated/src/aws-cpp-sdk-ce/include/aws/ce/model/StartCostAllocationTagBackfillRequest.h create mode 100644 generated/src/aws-cpp-sdk-ce/include/aws/ce/model/StartCostAllocationTagBackfillResult.h create mode 100644 generated/src/aws-cpp-sdk-ce/source/model/CostAllocationTagBackfillRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-ce/source/model/CostAllocationTagBackfillStatus.cpp create mode 100644 generated/src/aws-cpp-sdk-ce/source/model/ListCostAllocationTagBackfillHistoryRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-ce/source/model/ListCostAllocationTagBackfillHistoryResult.cpp create mode 100644 generated/src/aws-cpp-sdk-ce/source/model/StartCostAllocationTagBackfillRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-ce/source/model/StartCostAllocationTagBackfillResult.cpp create mode 100644 generated/src/aws-cpp-sdk-finspace/include/aws/finspace/model/DeleteKxClusterNodeRequest.h create mode 100644 generated/src/aws-cpp-sdk-finspace/include/aws/finspace/model/DeleteKxClusterNodeResult.h create mode 100644 generated/src/aws-cpp-sdk-finspace/include/aws/finspace/model/KxNodeStatus.h create mode 100644 generated/src/aws-cpp-sdk-finspace/source/model/DeleteKxClusterNodeRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-finspace/source/model/DeleteKxClusterNodeResult.cpp create mode 100644 generated/src/aws-cpp-sdk-finspace/source/model/KxNodeStatus.cpp diff --git a/VERSION b/VERSION index 85a8acdf1dc..08276cdce48 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.11.293 \ No newline at end of file +1.11.294 \ No newline at end of file diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/BedrockAgentRuntimeClient.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/BedrockAgentRuntimeClient.h index fd82feacf34..77f6e61d22c 100644 --- a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/BedrockAgentRuntimeClient.h +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/BedrockAgentRuntimeClient.h @@ -148,11 +148,7 @@ namespace BedrockAgentRuntime /** *

Queries a knowledge base and generates responses based on the retrieved * results. The response cites up to five sources but only selects the ones that - * are relevant to the query.

The numberOfResults field - * is currently unsupported for RetrieveAndGenerate. Don't include it - * in the vectorSearchConfiguration - * object.

See Also:

See Also:

AWS * API Reference

*/ diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/Citation.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/Citation.h index 4d864d6ad76..d0483bd9755 100644 --- a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/Citation.h +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/Citation.h @@ -27,8 +27,13 @@ namespace Model /** *

An object containing a segment of the generated response that is based on a - * source in the knowledge base, alongside information about the - * source.

See Also:

+ *

This data type is used in the following API operations:

See + * Also:

AWS * API Reference

*/ diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GeneratedResponsePart.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GeneratedResponsePart.h index 054596b5b9e..0a1821e0605 100644 --- a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GeneratedResponsePart.h +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GeneratedResponsePart.h @@ -25,7 +25,14 @@ namespace Model /** *

Contains metadata about a part of the generated response that is accompanied - * by a citation.

See Also:

This data type is used in the following API + * operations:

See Also:

AWS * API Reference

*/ diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GenerationConfiguration.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GenerationConfiguration.h new file mode 100644 index 00000000000..bb17bbb1d1d --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GenerationConfiguration.h @@ -0,0 +1,88 @@ +/** + * 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 BedrockAgentRuntime +{ +namespace Model +{ + + /** + *

Contains configurations for response generation based on the knowledge base + * query results.

This data type is used in the following API + * operations:

See Also:

AWS + * API Reference

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

Contains the template for the prompt that's sent to the model for response + * generation.

+ */ + inline const PromptTemplate& GetPromptTemplate() const{ return m_promptTemplate; } + + /** + *

Contains the template for the prompt that's sent to the model for response + * generation.

+ */ + inline bool PromptTemplateHasBeenSet() const { return m_promptTemplateHasBeenSet; } + + /** + *

Contains the template for the prompt that's sent to the model for response + * generation.

+ */ + inline void SetPromptTemplate(const PromptTemplate& value) { m_promptTemplateHasBeenSet = true; m_promptTemplate = value; } + + /** + *

Contains the template for the prompt that's sent to the model for response + * generation.

+ */ + inline void SetPromptTemplate(PromptTemplate&& value) { m_promptTemplateHasBeenSet = true; m_promptTemplate = std::move(value); } + + /** + *

Contains the template for the prompt that's sent to the model for response + * generation.

+ */ + inline GenerationConfiguration& WithPromptTemplate(const PromptTemplate& value) { SetPromptTemplate(value); return *this;} + + /** + *

Contains the template for the prompt that's sent to the model for response + * generation.

+ */ + inline GenerationConfiguration& WithPromptTemplate(PromptTemplate&& value) { SetPromptTemplate(std::move(value)); return *this;} + + private: + + PromptTemplate m_promptTemplate; + bool m_promptTemplateHasBeenSet = false; + }; + +} // namespace Model +} // namespace BedrockAgentRuntime +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/InvokeAgentRequest.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/InvokeAgentRequest.h index 4e0632019fb..1c1b1868d71 100644 --- a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/InvokeAgentRequest.h +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/InvokeAgentRequest.h @@ -282,32 +282,50 @@ namespace Model /** - *

Contains parameters that specify various attributes of the session.

+ *

Contains parameters that specify various attributes of the session. For more + * information, see Control + * session context.

*/ inline const SessionState& GetSessionState() const{ return m_sessionState; } /** - *

Contains parameters that specify various attributes of the session.

+ *

Contains parameters that specify various attributes of the session. For more + * information, see Control + * session context.

*/ inline bool SessionStateHasBeenSet() const { return m_sessionStateHasBeenSet; } /** - *

Contains parameters that specify various attributes of the session.

+ *

Contains parameters that specify various attributes of the session. For more + * information, see Control + * session context.

*/ inline void SetSessionState(const SessionState& value) { m_sessionStateHasBeenSet = true; m_sessionState = value; } /** - *

Contains parameters that specify various attributes of the session.

+ *

Contains parameters that specify various attributes of the session. For more + * information, see Control + * session context.

*/ inline void SetSessionState(SessionState&& value) { m_sessionStateHasBeenSet = true; m_sessionState = std::move(value); } /** - *

Contains parameters that specify various attributes of the session.

+ *

Contains parameters that specify various attributes of the session. For more + * information, see Control + * session context.

*/ inline InvokeAgentRequest& WithSessionState(const SessionState& value) { SetSessionState(value); return *this;} /** - *

Contains parameters that specify various attributes of the session.

+ *

Contains parameters that specify various attributes of the session. For more + * information, see Control + * session context.

*/ inline InvokeAgentRequest& WithSessionState(SessionState&& value) { SetSessionState(std::move(value)); return *this;} diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/KnowledgeBaseQuery.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/KnowledgeBaseQuery.h index c1c0e0670cb..fc9b6c7dc03 100644 --- a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/KnowledgeBaseQuery.h +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/KnowledgeBaseQuery.h @@ -24,7 +24,11 @@ namespace Model { /** - *

Contains the query made to the knowledge base.

See Also:

Contains the query made to the knowledge base.

This data type is used + * in the following API operations:

See + * Also:

AWS * API Reference

*/ diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/KnowledgeBaseRetrievalConfiguration.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/KnowledgeBaseRetrievalConfiguration.h index 82a7e899f3e..1a089eb5c23 100644 --- a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/KnowledgeBaseRetrievalConfiguration.h +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/KnowledgeBaseRetrievalConfiguration.h @@ -24,12 +24,17 @@ namespace Model { /** - *

Contains details about how the results should be returned.

This data - * type is used in the following API operations:

See Also:

AWS * API Reference

*/ @@ -44,37 +49,49 @@ namespace Model /** *

Contains details about how the results from the vector search should be - * returned.

+ * returned. For more information, see Query + * configurations.

*/ inline const KnowledgeBaseVectorSearchConfiguration& GetVectorSearchConfiguration() const{ return m_vectorSearchConfiguration; } /** *

Contains details about how the results from the vector search should be - * returned.

+ * returned. For more information, see Query + * configurations.

*/ inline bool VectorSearchConfigurationHasBeenSet() const { return m_vectorSearchConfigurationHasBeenSet; } /** *

Contains details about how the results from the vector search should be - * returned.

+ * returned. For more information, see Query + * configurations.

*/ inline void SetVectorSearchConfiguration(const KnowledgeBaseVectorSearchConfiguration& value) { m_vectorSearchConfigurationHasBeenSet = true; m_vectorSearchConfiguration = value; } /** *

Contains details about how the results from the vector search should be - * returned.

+ * returned. For more information, see Query + * configurations.

*/ inline void SetVectorSearchConfiguration(KnowledgeBaseVectorSearchConfiguration&& value) { m_vectorSearchConfigurationHasBeenSet = true; m_vectorSearchConfiguration = std::move(value); } /** *

Contains details about how the results from the vector search should be - * returned.

+ * returned. For more information, see Query + * configurations.

*/ inline KnowledgeBaseRetrievalConfiguration& WithVectorSearchConfiguration(const KnowledgeBaseVectorSearchConfiguration& value) { SetVectorSearchConfiguration(value); return *this;} /** *

Contains details about how the results from the vector search should be - * returned.

+ * returned. For more information, see Query + * configurations.

*/ inline KnowledgeBaseRetrievalConfiguration& WithVectorSearchConfiguration(KnowledgeBaseVectorSearchConfiguration&& value) { SetVectorSearchConfiguration(std::move(value)); return *this;} diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/KnowledgeBaseRetrievalResult.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/KnowledgeBaseRetrievalResult.h index 19b487698fe..0241b87ac63 100644 --- a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/KnowledgeBaseRetrievalResult.h +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/KnowledgeBaseRetrievalResult.h @@ -25,8 +25,11 @@ namespace Model { /** - *

Details about a result from querying the knowledge base.

See - * Also:

Details about a result from querying the knowledge base.

This data + * type is used in the following API operations:

See Also:

AWS * API Reference

*/ diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/KnowledgeBaseRetrieveAndGenerateConfiguration.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/KnowledgeBaseRetrieveAndGenerateConfiguration.h index 02a864de808..2b1a13db8b1 100644 --- a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/KnowledgeBaseRetrieveAndGenerateConfiguration.h +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/KnowledgeBaseRetrieveAndGenerateConfiguration.h @@ -5,6 +5,7 @@ #pragma once #include +#include #include #include #include @@ -25,8 +26,14 @@ namespace Model { /** - *

Contains details about the resource being queried.

See Also:

- * Contains details about the resource being queried.

This data type is + * used in the following API operations:

See Also:

AWS * API Reference

*/ @@ -39,6 +46,43 @@ namespace Model AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const; + /** + *

Contains configurations for response generation based on the knowwledge base + * query results.

+ */ + inline const GenerationConfiguration& GetGenerationConfiguration() const{ return m_generationConfiguration; } + + /** + *

Contains configurations for response generation based on the knowwledge base + * query results.

+ */ + inline bool GenerationConfigurationHasBeenSet() const { return m_generationConfigurationHasBeenSet; } + + /** + *

Contains configurations for response generation based on the knowwledge base + * query results.

+ */ + inline void SetGenerationConfiguration(const GenerationConfiguration& value) { m_generationConfigurationHasBeenSet = true; m_generationConfiguration = value; } + + /** + *

Contains configurations for response generation based on the knowwledge base + * query results.

+ */ + inline void SetGenerationConfiguration(GenerationConfiguration&& value) { m_generationConfigurationHasBeenSet = true; m_generationConfiguration = std::move(value); } + + /** + *

Contains configurations for response generation based on the knowwledge base + * query results.

+ */ + inline KnowledgeBaseRetrieveAndGenerateConfiguration& WithGenerationConfiguration(const GenerationConfiguration& value) { SetGenerationConfiguration(value); return *this;} + + /** + *

Contains configurations for response generation based on the knowwledge base + * query results.

+ */ + inline KnowledgeBaseRetrieveAndGenerateConfiguration& WithGenerationConfiguration(GenerationConfiguration&& value) { SetGenerationConfiguration(std::move(value)); return *this;} + + /** *

The unique identifier of the knowledge base that is queried and the * foundation model used for generation.

@@ -167,6 +211,9 @@ namespace Model private: + GenerationConfiguration m_generationConfiguration; + bool m_generationConfigurationHasBeenSet = false; + Aws::String m_knowledgeBaseId; bool m_knowledgeBaseIdHasBeenSet = false; diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/KnowledgeBaseVectorSearchConfiguration.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/KnowledgeBaseVectorSearchConfiguration.h index a49e88bd5b8..8f4d4f0971f 100644 --- a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/KnowledgeBaseVectorSearchConfiguration.h +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/KnowledgeBaseVectorSearchConfiguration.h @@ -24,7 +24,17 @@ namespace Model { /** - *

Configurations for how to carry out the search.

See Also:

Configurations for how to perform the search query and return results. For + * more information, see Query + * configurations.

This data type is used in the following API + * operations:

See Also:

AWS * API Reference

*/ @@ -38,34 +48,22 @@ namespace Model /** - *

The number of results to return.

The - * numberOfResults field is currently unsupported for - * RetrieveAndGenerate. Don't include it in this field if you are - * sending a RetrieveAndGenerate request.

+ *

The number of source chunks to retrieve.

*/ inline int GetNumberOfResults() const{ return m_numberOfResults; } /** - *

The number of results to return.

The - * numberOfResults field is currently unsupported for - * RetrieveAndGenerate. Don't include it in this field if you are - * sending a RetrieveAndGenerate request.

+ *

The number of source chunks to retrieve.

*/ inline bool NumberOfResultsHasBeenSet() const { return m_numberOfResultsHasBeenSet; } /** - *

The number of results to return.

The - * numberOfResults field is currently unsupported for - * RetrieveAndGenerate. Don't include it in this field if you are - * sending a RetrieveAndGenerate request.

+ *

The number of source chunks to retrieve.

*/ inline void SetNumberOfResults(int value) { m_numberOfResultsHasBeenSet = true; m_numberOfResults = value; } /** - *

The number of results to return.

The - * numberOfResults field is currently unsupported for - * RetrieveAndGenerate. Don't include it in this field if you are - * sending a RetrieveAndGenerate request.

+ *

The number of source chunks to retrieve.

*/ inline KnowledgeBaseVectorSearchConfiguration& WithNumberOfResults(int value) { SetNumberOfResults(value); return *this;} diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/PromptTemplate.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/PromptTemplate.h new file mode 100644 index 00000000000..1a1a6a716b7 --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/PromptTemplate.h @@ -0,0 +1,166 @@ +/** + * 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 BedrockAgentRuntime +{ +namespace Model +{ + + /** + *

Contains the template for the prompt that's sent to the model for response + * generation. For more information, see Knowledge + * base prompt templates.

This data type is used in the following API + * operations:

See Also:

AWS + * API Reference

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

The template for the prompt that's sent to the model for response generation. + * You can include prompt placeholders, which become replaced before the prompt is + * sent to the model to provide instructions and context to the model. In addition, + * you can include XML tags to delineate meaningful sections of the prompt + * template.

For more information, see the following resources:

+ */ + inline const Aws::String& GetTextPromptTemplate() const{ return m_textPromptTemplate; } + + /** + *

The template for the prompt that's sent to the model for response generation. + * You can include prompt placeholders, which become replaced before the prompt is + * sent to the model to provide instructions and context to the model. In addition, + * you can include XML tags to delineate meaningful sections of the prompt + * template.

For more information, see the following resources:

+ */ + inline bool TextPromptTemplateHasBeenSet() const { return m_textPromptTemplateHasBeenSet; } + + /** + *

The template for the prompt that's sent to the model for response generation. + * You can include prompt placeholders, which become replaced before the prompt is + * sent to the model to provide instructions and context to the model. In addition, + * you can include XML tags to delineate meaningful sections of the prompt + * template.

For more information, see the following resources:

+ */ + inline void SetTextPromptTemplate(const Aws::String& value) { m_textPromptTemplateHasBeenSet = true; m_textPromptTemplate = value; } + + /** + *

The template for the prompt that's sent to the model for response generation. + * You can include prompt placeholders, which become replaced before the prompt is + * sent to the model to provide instructions and context to the model. In addition, + * you can include XML tags to delineate meaningful sections of the prompt + * template.

For more information, see the following resources:

+ */ + inline void SetTextPromptTemplate(Aws::String&& value) { m_textPromptTemplateHasBeenSet = true; m_textPromptTemplate = std::move(value); } + + /** + *

The template for the prompt that's sent to the model for response generation. + * You can include prompt placeholders, which become replaced before the prompt is + * sent to the model to provide instructions and context to the model. In addition, + * you can include XML tags to delineate meaningful sections of the prompt + * template.

For more information, see the following resources:

+ */ + inline void SetTextPromptTemplate(const char* value) { m_textPromptTemplateHasBeenSet = true; m_textPromptTemplate.assign(value); } + + /** + *

The template for the prompt that's sent to the model for response generation. + * You can include prompt placeholders, which become replaced before the prompt is + * sent to the model to provide instructions and context to the model. In addition, + * you can include XML tags to delineate meaningful sections of the prompt + * template.

For more information, see the following resources:

+ */ + inline PromptTemplate& WithTextPromptTemplate(const Aws::String& value) { SetTextPromptTemplate(value); return *this;} + + /** + *

The template for the prompt that's sent to the model for response generation. + * You can include prompt placeholders, which become replaced before the prompt is + * sent to the model to provide instructions and context to the model. In addition, + * you can include XML tags to delineate meaningful sections of the prompt + * template.

For more information, see the following resources:

+ */ + inline PromptTemplate& WithTextPromptTemplate(Aws::String&& value) { SetTextPromptTemplate(std::move(value)); return *this;} + + /** + *

The template for the prompt that's sent to the model for response generation. + * You can include prompt placeholders, which become replaced before the prompt is + * sent to the model to provide instructions and context to the model. In addition, + * you can include XML tags to delineate meaningful sections of the prompt + * template.

For more information, see the following resources:

+ */ + inline PromptTemplate& WithTextPromptTemplate(const char* value) { SetTextPromptTemplate(value); return *this;} + + private: + + Aws::String m_textPromptTemplate; + bool m_textPromptTemplateHasBeenSet = false; + }; + +} // namespace Model +} // namespace BedrockAgentRuntime +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/RetrievalResultContent.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/RetrievalResultContent.h index aa2c3d5bf5e..a2d0f7db33f 100644 --- a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/RetrievalResultContent.h +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/RetrievalResultContent.h @@ -24,7 +24,15 @@ namespace Model { /** - *

Contains the cited text from the data source.

See Also:

Contains the cited text from the data source.

This data type is used + * in the following API operations:

See + * Also:

AWS * API Reference

*/ diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/RetrievalResultLocation.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/RetrievalResultLocation.h index a18ebb29195..9700b7bbec5 100644 --- a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/RetrievalResultLocation.h +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/RetrievalResultLocation.h @@ -25,7 +25,14 @@ namespace Model { /** - *

Contains information about the location of the data source.

See + *

Contains information about the location of the data source.

This data + * type is used in the following API operations:

See * Also:

AWS * API Reference

diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/RetrievalResultS3Location.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/RetrievalResultS3Location.h index 2f6a9ad512b..ce0d3139ada 100644 --- a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/RetrievalResultS3Location.h +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/RetrievalResultS3Location.h @@ -24,7 +24,15 @@ namespace Model { /** - *

Contains the S3 location of the data source.

See Also:

Contains the S3 location of the data source.

This data type is used in + * the following API operations:

See + * Also:

AWS * API Reference

*/ diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/RetrieveAndGenerateConfiguration.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/RetrieveAndGenerateConfiguration.h index 5af595c63b0..fe54a6c0328 100644 --- a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/RetrieveAndGenerateConfiguration.h +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/RetrieveAndGenerateConfiguration.h @@ -25,8 +25,11 @@ namespace Model { /** - *

Contains details about the resource being queried.

See Also:

- * Contains details about the resource being queried.

This data type is + * used in the following API operations:

See Also:

AWS * API Reference

*/ diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/RetrieveAndGenerateInput.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/RetrieveAndGenerateInput.h index 0f7f5ecd065..d406ae0fd16 100644 --- a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/RetrieveAndGenerateInput.h +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/RetrieveAndGenerateInput.h @@ -24,7 +24,11 @@ namespace Model { /** - *

Contains the query made to the knowledge base.

See Also:

Contains the query made to the knowledge base.

This data type is used + * in the following API operations:

See + * Also:

AWS * API Reference

*/ diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/RetrieveAndGenerateOutput.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/RetrieveAndGenerateOutput.h index 52dc9754484..235ca3080a5 100644 --- a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/RetrieveAndGenerateOutput.h +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/RetrieveAndGenerateOutput.h @@ -24,8 +24,11 @@ namespace Model { /** - *

Contains the response generated from querying the knowledge - * base.

See Also:

Contains the response generated from querying the knowledge base.

This + * data type is used in the following API operations:

See + * Also:

AWS * API Reference

*/ diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/RetrieveAndGenerateRequest.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/RetrieveAndGenerateRequest.h index 1587c73e637..776e93b3e32 100644 --- a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/RetrieveAndGenerateRequest.h +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/RetrieveAndGenerateRequest.h @@ -36,69 +36,81 @@ namespace Model /** - *

Contains the query made to the knowledge base.

+ *

Contains the query to be made to the knowledge base.

*/ inline const RetrieveAndGenerateInput& GetInput() const{ return m_input; } /** - *

Contains the query made to the knowledge base.

+ *

Contains the query to be made to the knowledge base.

*/ inline bool InputHasBeenSet() const { return m_inputHasBeenSet; } /** - *

Contains the query made to the knowledge base.

+ *

Contains the query to be made to the knowledge base.

*/ inline void SetInput(const RetrieveAndGenerateInput& value) { m_inputHasBeenSet = true; m_input = value; } /** - *

Contains the query made to the knowledge base.

+ *

Contains the query to be made to the knowledge base.

*/ inline void SetInput(RetrieveAndGenerateInput&& value) { m_inputHasBeenSet = true; m_input = std::move(value); } /** - *

Contains the query made to the knowledge base.

+ *

Contains the query to be made to the knowledge base.

*/ inline RetrieveAndGenerateRequest& WithInput(const RetrieveAndGenerateInput& value) { SetInput(value); return *this;} /** - *

Contains the query made to the knowledge base.

+ *

Contains the query to be made to the knowledge base.

*/ inline RetrieveAndGenerateRequest& WithInput(RetrieveAndGenerateInput&& value) { SetInput(std::move(value)); return *this;} /** - *

Contains details about the resource being queried and the foundation model - * used for generation.

+ *

Contains configurations for the knowledge base query and retrieval process. + * For more information, see Query + * configurations.

*/ inline const RetrieveAndGenerateConfiguration& GetRetrieveAndGenerateConfiguration() const{ return m_retrieveAndGenerateConfiguration; } /** - *

Contains details about the resource being queried and the foundation model - * used for generation.

+ *

Contains configurations for the knowledge base query and retrieval process. + * For more information, see Query + * configurations.

*/ inline bool RetrieveAndGenerateConfigurationHasBeenSet() const { return m_retrieveAndGenerateConfigurationHasBeenSet; } /** - *

Contains details about the resource being queried and the foundation model - * used for generation.

+ *

Contains configurations for the knowledge base query and retrieval process. + * For more information, see Query + * configurations.

*/ inline void SetRetrieveAndGenerateConfiguration(const RetrieveAndGenerateConfiguration& value) { m_retrieveAndGenerateConfigurationHasBeenSet = true; m_retrieveAndGenerateConfiguration = value; } /** - *

Contains details about the resource being queried and the foundation model - * used for generation.

+ *

Contains configurations for the knowledge base query and retrieval process. + * For more information, see Query + * configurations.

*/ inline void SetRetrieveAndGenerateConfiguration(RetrieveAndGenerateConfiguration&& value) { m_retrieveAndGenerateConfigurationHasBeenSet = true; m_retrieveAndGenerateConfiguration = std::move(value); } /** - *

Contains details about the resource being queried and the foundation model - * used for generation.

+ *

Contains configurations for the knowledge base query and retrieval process. + * For more information, see Query + * configurations.

*/ inline RetrieveAndGenerateRequest& WithRetrieveAndGenerateConfiguration(const RetrieveAndGenerateConfiguration& value) { SetRetrieveAndGenerateConfiguration(value); return *this;} /** - *

Contains details about the resource being queried and the foundation model - * used for generation.

+ *

Contains configurations for the knowledge base query and retrieval process. + * For more information, see Query + * configurations.

*/ inline RetrieveAndGenerateRequest& WithRetrieveAndGenerateConfiguration(RetrieveAndGenerateConfiguration&& value) { SetRetrieveAndGenerateConfiguration(std::move(value)); return *this;} diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/RetrieveAndGenerateSessionConfiguration.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/RetrieveAndGenerateSessionConfiguration.h index 3bb40fa6fec..2fccc8ecb1e 100644 --- a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/RetrieveAndGenerateSessionConfiguration.h +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/RetrieveAndGenerateSessionConfiguration.h @@ -24,8 +24,11 @@ namespace Model { /** - *

Contains configuration about the session with the knowledge - * base.

See Also:

Contains configuration about the session with the knowledge base.

This + * data type is used in the following API operations:

See Also:

AWS * API Reference

*/ diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/RetrieveRequest.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/RetrieveRequest.h index 29dfd9b7030..303dfa1d79f 100644 --- a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/RetrieveRequest.h +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/RetrieveRequest.h @@ -133,63 +133,81 @@ namespace Model /** - *

Contains details about how the results should be returned.

+ *

Contains configurations for the knowledge base query and retrieval process. + * For more information, see Query + * configurations.

*/ inline const KnowledgeBaseRetrievalConfiguration& GetRetrievalConfiguration() const{ return m_retrievalConfiguration; } /** - *

Contains details about how the results should be returned.

+ *

Contains configurations for the knowledge base query and retrieval process. + * For more information, see Query + * configurations.

*/ inline bool RetrievalConfigurationHasBeenSet() const { return m_retrievalConfigurationHasBeenSet; } /** - *

Contains details about how the results should be returned.

+ *

Contains configurations for the knowledge base query and retrieval process. + * For more information, see Query + * configurations.

*/ inline void SetRetrievalConfiguration(const KnowledgeBaseRetrievalConfiguration& value) { m_retrievalConfigurationHasBeenSet = true; m_retrievalConfiguration = value; } /** - *

Contains details about how the results should be returned.

+ *

Contains configurations for the knowledge base query and retrieval process. + * For more information, see Query + * configurations.

*/ inline void SetRetrievalConfiguration(KnowledgeBaseRetrievalConfiguration&& value) { m_retrievalConfigurationHasBeenSet = true; m_retrievalConfiguration = std::move(value); } /** - *

Contains details about how the results should be returned.

+ *

Contains configurations for the knowledge base query and retrieval process. + * For more information, see Query + * configurations.

*/ inline RetrieveRequest& WithRetrievalConfiguration(const KnowledgeBaseRetrievalConfiguration& value) { SetRetrievalConfiguration(value); return *this;} /** - *

Contains details about how the results should be returned.

+ *

Contains configurations for the knowledge base query and retrieval process. + * For more information, see Query + * configurations.

*/ inline RetrieveRequest& WithRetrievalConfiguration(KnowledgeBaseRetrievalConfiguration&& value) { SetRetrievalConfiguration(std::move(value)); return *this;} /** - *

The query to send the knowledge base.

+ *

Contains the query to send the knowledge base.

*/ inline const KnowledgeBaseQuery& GetRetrievalQuery() const{ return m_retrievalQuery; } /** - *

The query to send the knowledge base.

+ *

Contains the query to send the knowledge base.

*/ inline bool RetrievalQueryHasBeenSet() const { return m_retrievalQueryHasBeenSet; } /** - *

The query to send the knowledge base.

+ *

Contains the query to send the knowledge base.

*/ inline void SetRetrievalQuery(const KnowledgeBaseQuery& value) { m_retrievalQueryHasBeenSet = true; m_retrievalQuery = value; } /** - *

The query to send the knowledge base.

+ *

Contains the query to send the knowledge base.

*/ inline void SetRetrievalQuery(KnowledgeBaseQuery&& value) { m_retrievalQueryHasBeenSet = true; m_retrievalQuery = std::move(value); } /** - *

The query to send the knowledge base.

+ *

Contains the query to send the knowledge base.

*/ inline RetrieveRequest& WithRetrievalQuery(const KnowledgeBaseQuery& value) { SetRetrievalQuery(value); return *this;} /** - *

The query to send the knowledge base.

+ *

Contains the query to send the knowledge base.

*/ inline RetrieveRequest& WithRetrievalQuery(KnowledgeBaseQuery&& value) { SetRetrievalQuery(std::move(value)); return *this;} diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/RetrievedReference.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/RetrievedReference.h index 7cb428ce5ff..14afc836ec9 100644 --- a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/RetrievedReference.h +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/RetrievedReference.h @@ -25,8 +25,14 @@ namespace Model { /** - *

Contains metadata about a sources cited for the generated - * response.

See Also:

Contains metadata about a source cited for the generated response.

+ *

This data type is used in the following API operations:

See Also:

AWS * API Reference

*/ diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/SessionState.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/SessionState.h index ab605fc3847..d99966d52ec 100644 --- a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/SessionState.h +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/SessionState.h @@ -34,8 +34,8 @@ namespace Model * request. Use session state attributes to control and provide conversational * context for your agent and to help customize your agent's behavior. For more * information, see Session - * context.

See Also:

Control + * session context.

See Also:

AWS * API Reference

*/ diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/Span.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/Span.h index d059fa648e7..6d7272ce8dc 100644 --- a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/Span.h +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/Span.h @@ -23,7 +23,13 @@ namespace Model /** *

Contains information about where the text with a citation begins and ends in - * the generated output.

See Also:

This data type is used in the following API + * operations:

See + * Also:

AWS * API Reference

*/ diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/TextResponsePart.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/TextResponsePart.h index 891448001eb..caf9de18816 100644 --- a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/TextResponsePart.h +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/TextResponsePart.h @@ -26,7 +26,13 @@ namespace Model /** *

Contains the part of the generated text that contains a citation, alongside - * where it begins and ends.

See Also:

This data type is used in the following API + * operations:

See Also:

AWS * API Reference

*/ diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GenerationConfiguration.cpp b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GenerationConfiguration.cpp new file mode 100644 index 00000000000..10527ccbc9c --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GenerationConfiguration.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 BedrockAgentRuntime +{ +namespace Model +{ + +GenerationConfiguration::GenerationConfiguration() : + m_promptTemplateHasBeenSet(false) +{ +} + +GenerationConfiguration::GenerationConfiguration(JsonView jsonValue) : + m_promptTemplateHasBeenSet(false) +{ + *this = jsonValue; +} + +GenerationConfiguration& GenerationConfiguration::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("promptTemplate")) + { + m_promptTemplate = jsonValue.GetObject("promptTemplate"); + + m_promptTemplateHasBeenSet = true; + } + + return *this; +} + +JsonValue GenerationConfiguration::Jsonize() const +{ + JsonValue payload; + + if(m_promptTemplateHasBeenSet) + { + payload.WithObject("promptTemplate", m_promptTemplate.Jsonize()); + + } + + return payload; +} + +} // namespace Model +} // namespace BedrockAgentRuntime +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/KnowledgeBaseRetrieveAndGenerateConfiguration.cpp b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/KnowledgeBaseRetrieveAndGenerateConfiguration.cpp index 47be4713901..2fc7b055fb3 100644 --- a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/KnowledgeBaseRetrieveAndGenerateConfiguration.cpp +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/KnowledgeBaseRetrieveAndGenerateConfiguration.cpp @@ -19,6 +19,7 @@ namespace Model { KnowledgeBaseRetrieveAndGenerateConfiguration::KnowledgeBaseRetrieveAndGenerateConfiguration() : + m_generationConfigurationHasBeenSet(false), m_knowledgeBaseIdHasBeenSet(false), m_modelArnHasBeenSet(false), m_retrievalConfigurationHasBeenSet(false) @@ -26,6 +27,7 @@ KnowledgeBaseRetrieveAndGenerateConfiguration::KnowledgeBaseRetrieveAndGenerateC } KnowledgeBaseRetrieveAndGenerateConfiguration::KnowledgeBaseRetrieveAndGenerateConfiguration(JsonView jsonValue) : + m_generationConfigurationHasBeenSet(false), m_knowledgeBaseIdHasBeenSet(false), m_modelArnHasBeenSet(false), m_retrievalConfigurationHasBeenSet(false) @@ -35,6 +37,13 @@ KnowledgeBaseRetrieveAndGenerateConfiguration::KnowledgeBaseRetrieveAndGenerateC KnowledgeBaseRetrieveAndGenerateConfiguration& KnowledgeBaseRetrieveAndGenerateConfiguration::operator =(JsonView jsonValue) { + if(jsonValue.ValueExists("generationConfiguration")) + { + m_generationConfiguration = jsonValue.GetObject("generationConfiguration"); + + m_generationConfigurationHasBeenSet = true; + } + if(jsonValue.ValueExists("knowledgeBaseId")) { m_knowledgeBaseId = jsonValue.GetString("knowledgeBaseId"); @@ -63,6 +72,12 @@ JsonValue KnowledgeBaseRetrieveAndGenerateConfiguration::Jsonize() const { JsonValue payload; + if(m_generationConfigurationHasBeenSet) + { + payload.WithObject("generationConfiguration", m_generationConfiguration.Jsonize()); + + } + if(m_knowledgeBaseIdHasBeenSet) { payload.WithString("knowledgeBaseId", m_knowledgeBaseId); diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/PromptTemplate.cpp b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/PromptTemplate.cpp new file mode 100644 index 00000000000..258194410a7 --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/PromptTemplate.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 BedrockAgentRuntime +{ +namespace Model +{ + +PromptTemplate::PromptTemplate() : + m_textPromptTemplateHasBeenSet(false) +{ +} + +PromptTemplate::PromptTemplate(JsonView jsonValue) : + m_textPromptTemplateHasBeenSet(false) +{ + *this = jsonValue; +} + +PromptTemplate& PromptTemplate::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("textPromptTemplate")) + { + m_textPromptTemplate = jsonValue.GetString("textPromptTemplate"); + + m_textPromptTemplateHasBeenSet = true; + } + + return *this; +} + +JsonValue PromptTemplate::Jsonize() const +{ + JsonValue payload; + + if(m_textPromptTemplateHasBeenSet) + { + payload.WithString("textPromptTemplate", m_textPromptTemplate); + + } + + return payload; +} + +} // namespace Model +} // namespace BedrockAgentRuntime +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-ce/include/aws/ce/CostExplorerClient.h b/generated/src/aws-cpp-sdk-ce/include/aws/ce/CostExplorerClient.h index 71e7da982d4..0181c941386 100644 --- a/generated/src/aws-cpp-sdk-ce/include/aws/ce/CostExplorerClient.h +++ b/generated/src/aws-cpp-sdk-ce/include/aws/ce/CostExplorerClient.h @@ -882,6 +882,32 @@ namespace CostExplorer return SubmitAsync(&CostExplorerClient::GetUsageForecast, request, handler, context); } + /** + *

Retrieves a list of your historical cost allocation tag backfill requests. + *

See Also:

AWS + * API Reference

+ */ + virtual Model::ListCostAllocationTagBackfillHistoryOutcome ListCostAllocationTagBackfillHistory(const Model::ListCostAllocationTagBackfillHistoryRequest& request) const; + + /** + * A Callable wrapper for ListCostAllocationTagBackfillHistory that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::ListCostAllocationTagBackfillHistoryOutcomeCallable ListCostAllocationTagBackfillHistoryCallable(const ListCostAllocationTagBackfillHistoryRequestT& request) const + { + return SubmitCallable(&CostExplorerClient::ListCostAllocationTagBackfillHistory, request); + } + + /** + * An Async wrapper for ListCostAllocationTagBackfillHistory that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void ListCostAllocationTagBackfillHistoryAsync(const ListCostAllocationTagBackfillHistoryRequestT& request, const ListCostAllocationTagBackfillHistoryResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&CostExplorerClient::ListCostAllocationTagBackfillHistory, request, handler, context); + } + /** *

Get a list of cost allocation tags. All inputs in the API are optional and * serve as filters. By default, all cost allocation tags are returned. @@ -1020,6 +1046,35 @@ namespace CostExplorer return SubmitAsync(&CostExplorerClient::ProvideAnomalyFeedback, request, handler, context); } + /** + *

Request a cost allocation tag backfill. This will backfill the activation + * status (either active or inactive) for all tag keys + * from para:BackfillFrom up to the when this request is made.

+ *

You can request a backfill once every 24 hours.

See Also:

+ * AWS + * API Reference

+ */ + virtual Model::StartCostAllocationTagBackfillOutcome StartCostAllocationTagBackfill(const Model::StartCostAllocationTagBackfillRequest& request) const; + + /** + * A Callable wrapper for StartCostAllocationTagBackfill that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::StartCostAllocationTagBackfillOutcomeCallable StartCostAllocationTagBackfillCallable(const StartCostAllocationTagBackfillRequestT& request) const + { + return SubmitCallable(&CostExplorerClient::StartCostAllocationTagBackfill, request); + } + + /** + * An Async wrapper for StartCostAllocationTagBackfill that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void StartCostAllocationTagBackfillAsync(const StartCostAllocationTagBackfillRequestT& request, const StartCostAllocationTagBackfillResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&CostExplorerClient::StartCostAllocationTagBackfill, request, handler, context); + } + /** *

Requests a Savings Plans recommendation generation. This enables you to * calculate a fresh set of Savings Plans recommendations that takes your latest diff --git a/generated/src/aws-cpp-sdk-ce/include/aws/ce/CostExplorerErrors.h b/generated/src/aws-cpp-sdk-ce/include/aws/ce/CostExplorerErrors.h index 4816576cbc2..ac3388c80ab 100644 --- a/generated/src/aws-cpp-sdk-ce/include/aws/ce/CostExplorerErrors.h +++ b/generated/src/aws-cpp-sdk-ce/include/aws/ce/CostExplorerErrors.h @@ -47,7 +47,8 @@ enum class CostExplorerErrors UNKNOWN = 100, /////////////////////////////////////////////////////////////////////////////////////////// - BILL_EXPIRATION= static_cast(Aws::Client::CoreErrors::SERVICE_EXTENSION_START_RANGE) + 1, + BACKFILL_LIMIT_EXCEEDED= static_cast(Aws::Client::CoreErrors::SERVICE_EXTENSION_START_RANGE) + 1, + BILL_EXPIRATION, DATA_UNAVAILABLE, GENERATION_EXISTS, INVALID_NEXT_TOKEN, diff --git a/generated/src/aws-cpp-sdk-ce/include/aws/ce/CostExplorerServiceClientModel.h b/generated/src/aws-cpp-sdk-ce/include/aws/ce/CostExplorerServiceClientModel.h index 442dfeeb6b1..3750c29b713 100644 --- a/generated/src/aws-cpp-sdk-ce/include/aws/ce/CostExplorerServiceClientModel.h +++ b/generated/src/aws-cpp-sdk-ce/include/aws/ce/CostExplorerServiceClientModel.h @@ -45,11 +45,13 @@ #include #include #include +#include #include #include #include #include #include +#include #include #include #include @@ -124,11 +126,13 @@ namespace Aws class GetSavingsPlansUtilizationDetailsRequest; class GetTagsRequest; class GetUsageForecastRequest; + class ListCostAllocationTagBackfillHistoryRequest; class ListCostAllocationTagsRequest; class ListCostCategoryDefinitionsRequest; class ListSavingsPlansPurchaseRecommendationGenerationRequest; class ListTagsForResourceRequest; class ProvideAnomalyFeedbackRequest; + class StartCostAllocationTagBackfillRequest; class StartSavingsPlansPurchaseRecommendationGenerationRequest; class TagResourceRequest; class UntagResourceRequest; @@ -166,11 +170,13 @@ namespace Aws typedef Aws::Utils::Outcome GetSavingsPlansUtilizationDetailsOutcome; typedef Aws::Utils::Outcome GetTagsOutcome; typedef Aws::Utils::Outcome GetUsageForecastOutcome; + typedef Aws::Utils::Outcome ListCostAllocationTagBackfillHistoryOutcome; typedef Aws::Utils::Outcome ListCostAllocationTagsOutcome; typedef Aws::Utils::Outcome ListCostCategoryDefinitionsOutcome; typedef Aws::Utils::Outcome ListSavingsPlansPurchaseRecommendationGenerationOutcome; typedef Aws::Utils::Outcome ListTagsForResourceOutcome; typedef Aws::Utils::Outcome ProvideAnomalyFeedbackOutcome; + typedef Aws::Utils::Outcome StartCostAllocationTagBackfillOutcome; typedef Aws::Utils::Outcome StartSavingsPlansPurchaseRecommendationGenerationOutcome; typedef Aws::Utils::Outcome TagResourceOutcome; typedef Aws::Utils::Outcome UntagResourceOutcome; @@ -208,11 +214,13 @@ namespace Aws typedef std::future GetSavingsPlansUtilizationDetailsOutcomeCallable; typedef std::future GetTagsOutcomeCallable; typedef std::future GetUsageForecastOutcomeCallable; + typedef std::future ListCostAllocationTagBackfillHistoryOutcomeCallable; typedef std::future ListCostAllocationTagsOutcomeCallable; typedef std::future ListCostCategoryDefinitionsOutcomeCallable; typedef std::future ListSavingsPlansPurchaseRecommendationGenerationOutcomeCallable; typedef std::future ListTagsForResourceOutcomeCallable; typedef std::future ProvideAnomalyFeedbackOutcomeCallable; + typedef std::future StartCostAllocationTagBackfillOutcomeCallable; typedef std::future StartSavingsPlansPurchaseRecommendationGenerationOutcomeCallable; typedef std::future TagResourceOutcomeCallable; typedef std::future UntagResourceOutcomeCallable; @@ -253,11 +261,13 @@ namespace Aws typedef std::function&) > GetSavingsPlansUtilizationDetailsResponseReceivedHandler; typedef std::function&) > GetTagsResponseReceivedHandler; typedef std::function&) > GetUsageForecastResponseReceivedHandler; + typedef std::function&) > ListCostAllocationTagBackfillHistoryResponseReceivedHandler; typedef std::function&) > ListCostAllocationTagsResponseReceivedHandler; typedef std::function&) > ListCostCategoryDefinitionsResponseReceivedHandler; typedef std::function&) > ListSavingsPlansPurchaseRecommendationGenerationResponseReceivedHandler; typedef std::function&) > ListTagsForResourceResponseReceivedHandler; typedef std::function&) > ProvideAnomalyFeedbackResponseReceivedHandler; + typedef std::function&) > StartCostAllocationTagBackfillResponseReceivedHandler; typedef std::function&) > StartSavingsPlansPurchaseRecommendationGenerationResponseReceivedHandler; typedef std::function&) > TagResourceResponseReceivedHandler; typedef std::function&) > UntagResourceResponseReceivedHandler; diff --git a/generated/src/aws-cpp-sdk-ce/include/aws/ce/model/CostAllocationTagBackfillRequest.h b/generated/src/aws-cpp-sdk-ce/include/aws/ce/model/CostAllocationTagBackfillRequest.h new file mode 100644 index 00000000000..1d65db1a6e7 --- /dev/null +++ b/generated/src/aws-cpp-sdk-ce/include/aws/ce/model/CostAllocationTagBackfillRequest.h @@ -0,0 +1,256 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace CostExplorer +{ +namespace Model +{ + + /** + *

The cost allocation tag backfill request structure that contains metadata + * and details of a certain backfill.

See Also:

AWS + * API Reference

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

The date the backfill starts from.

+ */ + inline const Aws::String& GetBackfillFrom() const{ return m_backfillFrom; } + + /** + *

The date the backfill starts from.

+ */ + inline bool BackfillFromHasBeenSet() const { return m_backfillFromHasBeenSet; } + + /** + *

The date the backfill starts from.

+ */ + inline void SetBackfillFrom(const Aws::String& value) { m_backfillFromHasBeenSet = true; m_backfillFrom = value; } + + /** + *

The date the backfill starts from.

+ */ + inline void SetBackfillFrom(Aws::String&& value) { m_backfillFromHasBeenSet = true; m_backfillFrom = std::move(value); } + + /** + *

The date the backfill starts from.

+ */ + inline void SetBackfillFrom(const char* value) { m_backfillFromHasBeenSet = true; m_backfillFrom.assign(value); } + + /** + *

The date the backfill starts from.

+ */ + inline CostAllocationTagBackfillRequest& WithBackfillFrom(const Aws::String& value) { SetBackfillFrom(value); return *this;} + + /** + *

The date the backfill starts from.

+ */ + inline CostAllocationTagBackfillRequest& WithBackfillFrom(Aws::String&& value) { SetBackfillFrom(std::move(value)); return *this;} + + /** + *

The date the backfill starts from.

+ */ + inline CostAllocationTagBackfillRequest& WithBackfillFrom(const char* value) { SetBackfillFrom(value); return *this;} + + + /** + *

The time when the backfill was requested.

+ */ + inline const Aws::String& GetRequestedAt() const{ return m_requestedAt; } + + /** + *

The time when the backfill was requested.

+ */ + inline bool RequestedAtHasBeenSet() const { return m_requestedAtHasBeenSet; } + + /** + *

The time when the backfill was requested.

+ */ + inline void SetRequestedAt(const Aws::String& value) { m_requestedAtHasBeenSet = true; m_requestedAt = value; } + + /** + *

The time when the backfill was requested.

+ */ + inline void SetRequestedAt(Aws::String&& value) { m_requestedAtHasBeenSet = true; m_requestedAt = std::move(value); } + + /** + *

The time when the backfill was requested.

+ */ + inline void SetRequestedAt(const char* value) { m_requestedAtHasBeenSet = true; m_requestedAt.assign(value); } + + /** + *

The time when the backfill was requested.

+ */ + inline CostAllocationTagBackfillRequest& WithRequestedAt(const Aws::String& value) { SetRequestedAt(value); return *this;} + + /** + *

The time when the backfill was requested.

+ */ + inline CostAllocationTagBackfillRequest& WithRequestedAt(Aws::String&& value) { SetRequestedAt(std::move(value)); return *this;} + + /** + *

The time when the backfill was requested.

+ */ + inline CostAllocationTagBackfillRequest& WithRequestedAt(const char* value) { SetRequestedAt(value); return *this;} + + + /** + *

The backfill completion time.

+ */ + inline const Aws::String& GetCompletedAt() const{ return m_completedAt; } + + /** + *

The backfill completion time.

+ */ + inline bool CompletedAtHasBeenSet() const { return m_completedAtHasBeenSet; } + + /** + *

The backfill completion time.

+ */ + inline void SetCompletedAt(const Aws::String& value) { m_completedAtHasBeenSet = true; m_completedAt = value; } + + /** + *

The backfill completion time.

+ */ + inline void SetCompletedAt(Aws::String&& value) { m_completedAtHasBeenSet = true; m_completedAt = std::move(value); } + + /** + *

The backfill completion time.

+ */ + inline void SetCompletedAt(const char* value) { m_completedAtHasBeenSet = true; m_completedAt.assign(value); } + + /** + *

The backfill completion time.

+ */ + inline CostAllocationTagBackfillRequest& WithCompletedAt(const Aws::String& value) { SetCompletedAt(value); return *this;} + + /** + *

The backfill completion time.

+ */ + inline CostAllocationTagBackfillRequest& WithCompletedAt(Aws::String&& value) { SetCompletedAt(std::move(value)); return *this;} + + /** + *

The backfill completion time.

+ */ + inline CostAllocationTagBackfillRequest& WithCompletedAt(const char* value) { SetCompletedAt(value); return *this;} + + + /** + *

The status of the cost allocation tag backfill request.

+ */ + inline const CostAllocationTagBackfillStatus& GetBackfillStatus() const{ return m_backfillStatus; } + + /** + *

The status of the cost allocation tag backfill request.

+ */ + inline bool BackfillStatusHasBeenSet() const { return m_backfillStatusHasBeenSet; } + + /** + *

The status of the cost allocation tag backfill request.

+ */ + inline void SetBackfillStatus(const CostAllocationTagBackfillStatus& value) { m_backfillStatusHasBeenSet = true; m_backfillStatus = value; } + + /** + *

The status of the cost allocation tag backfill request.

+ */ + inline void SetBackfillStatus(CostAllocationTagBackfillStatus&& value) { m_backfillStatusHasBeenSet = true; m_backfillStatus = std::move(value); } + + /** + *

The status of the cost allocation tag backfill request.

+ */ + inline CostAllocationTagBackfillRequest& WithBackfillStatus(const CostAllocationTagBackfillStatus& value) { SetBackfillStatus(value); return *this;} + + /** + *

The status of the cost allocation tag backfill request.

+ */ + inline CostAllocationTagBackfillRequest& WithBackfillStatus(CostAllocationTagBackfillStatus&& value) { SetBackfillStatus(std::move(value)); return *this;} + + + /** + *

The time when the backfill status was last updated.

+ */ + inline const Aws::String& GetLastUpdatedAt() const{ return m_lastUpdatedAt; } + + /** + *

The time when the backfill status was last updated.

+ */ + inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; } + + /** + *

The time when the backfill status was last updated.

+ */ + inline void SetLastUpdatedAt(const Aws::String& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = value; } + + /** + *

The time when the backfill status was last updated.

+ */ + inline void SetLastUpdatedAt(Aws::String&& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = std::move(value); } + + /** + *

The time when the backfill status was last updated.

+ */ + inline void SetLastUpdatedAt(const char* value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt.assign(value); } + + /** + *

The time when the backfill status was last updated.

+ */ + inline CostAllocationTagBackfillRequest& WithLastUpdatedAt(const Aws::String& value) { SetLastUpdatedAt(value); return *this;} + + /** + *

The time when the backfill status was last updated.

+ */ + inline CostAllocationTagBackfillRequest& WithLastUpdatedAt(Aws::String&& value) { SetLastUpdatedAt(std::move(value)); return *this;} + + /** + *

The time when the backfill status was last updated.

+ */ + inline CostAllocationTagBackfillRequest& WithLastUpdatedAt(const char* value) { SetLastUpdatedAt(value); return *this;} + + private: + + Aws::String m_backfillFrom; + bool m_backfillFromHasBeenSet = false; + + Aws::String m_requestedAt; + bool m_requestedAtHasBeenSet = false; + + Aws::String m_completedAt; + bool m_completedAtHasBeenSet = false; + + CostAllocationTagBackfillStatus m_backfillStatus; + bool m_backfillStatusHasBeenSet = false; + + Aws::String m_lastUpdatedAt; + bool m_lastUpdatedAtHasBeenSet = false; + }; + +} // namespace Model +} // namespace CostExplorer +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-ce/include/aws/ce/model/CostAllocationTagBackfillStatus.h b/generated/src/aws-cpp-sdk-ce/include/aws/ce/model/CostAllocationTagBackfillStatus.h new file mode 100644 index 00000000000..67de241cbae --- /dev/null +++ b/generated/src/aws-cpp-sdk-ce/include/aws/ce/model/CostAllocationTagBackfillStatus.h @@ -0,0 +1,32 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace CostExplorer +{ +namespace Model +{ + enum class CostAllocationTagBackfillStatus + { + NOT_SET, + SUCCEEDED, + PROCESSING, + FAILED + }; + +namespace CostAllocationTagBackfillStatusMapper +{ +AWS_COSTEXPLORER_API CostAllocationTagBackfillStatus GetCostAllocationTagBackfillStatusForName(const Aws::String& name); + +AWS_COSTEXPLORER_API Aws::String GetNameForCostAllocationTagBackfillStatus(CostAllocationTagBackfillStatus value); +} // namespace CostAllocationTagBackfillStatusMapper +} // namespace Model +} // namespace CostExplorer +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-ce/include/aws/ce/model/ListCostAllocationTagBackfillHistoryRequest.h b/generated/src/aws-cpp-sdk-ce/include/aws/ce/model/ListCostAllocationTagBackfillHistoryRequest.h new file mode 100644 index 00000000000..272a2dff95a --- /dev/null +++ b/generated/src/aws-cpp-sdk-ce/include/aws/ce/model/ListCostAllocationTagBackfillHistoryRequest.h @@ -0,0 +1,125 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace CostExplorer +{ +namespace Model +{ + + /** + */ + class ListCostAllocationTagBackfillHistoryRequest : public CostExplorerRequest + { + public: + AWS_COSTEXPLORER_API ListCostAllocationTagBackfillHistoryRequest(); + + // 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 "ListCostAllocationTagBackfillHistory"; } + + AWS_COSTEXPLORER_API Aws::String SerializePayload() const override; + + AWS_COSTEXPLORER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; + + + /** + *

The token to retrieve the next set of results. Amazon Web Services provides + * the token when the response from a previous call has more results than the + * maximum page size.

+ */ + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + + /** + *

The token to retrieve the next set of results. Amazon Web Services provides + * the token when the response from a previous call has more results than the + * maximum page size.

+ */ + inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } + + /** + *

The token to retrieve the next set of results. Amazon Web Services provides + * the token when the response from a previous call has more results than the + * maximum page size.

+ */ + inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } + + /** + *

The token to retrieve the next set of results. Amazon Web Services provides + * the token when the response from a previous call has more results than the + * maximum page size.

+ */ + inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } + + /** + *

The token to retrieve the next set of results. Amazon Web Services provides + * the token when the response from a previous call has more results than the + * maximum page size.

+ */ + inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } + + /** + *

The token to retrieve the next set of results. Amazon Web Services provides + * the token when the response from a previous call has more results than the + * maximum page size.

+ */ + inline ListCostAllocationTagBackfillHistoryRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + + /** + *

The token to retrieve the next set of results. Amazon Web Services provides + * the token when the response from a previous call has more results than the + * maximum page size.

+ */ + inline ListCostAllocationTagBackfillHistoryRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + + /** + *

The token to retrieve the next set of results. Amazon Web Services provides + * the token when the response from a previous call has more results than the + * maximum page size.

+ */ + inline ListCostAllocationTagBackfillHistoryRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} + + + /** + *

The maximum number of objects that are returned for this request.

+ */ + inline int GetMaxResults() const{ return m_maxResults; } + + /** + *

The maximum number of objects that are returned for this request.

+ */ + inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } + + /** + *

The maximum number of objects that are returned for this request.

+ */ + inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } + + /** + *

The maximum number of objects that are returned for this request.

+ */ + inline ListCostAllocationTagBackfillHistoryRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} + + private: + + Aws::String m_nextToken; + bool m_nextTokenHasBeenSet = false; + + int m_maxResults; + bool m_maxResultsHasBeenSet = false; + }; + +} // namespace Model +} // namespace CostExplorer +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-ce/include/aws/ce/model/ListCostAllocationTagBackfillHistoryResult.h b/generated/src/aws-cpp-sdk-ce/include/aws/ce/model/ListCostAllocationTagBackfillHistoryResult.h new file mode 100644 index 00000000000..e36a675974a --- /dev/null +++ b/generated/src/aws-cpp-sdk-ce/include/aws/ce/model/ListCostAllocationTagBackfillHistoryResult.h @@ -0,0 +1,155 @@ +/** + * 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 +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace CostExplorer +{ +namespace Model +{ + class ListCostAllocationTagBackfillHistoryResult + { + public: + AWS_COSTEXPLORER_API ListCostAllocationTagBackfillHistoryResult(); + AWS_COSTEXPLORER_API ListCostAllocationTagBackfillHistoryResult(const Aws::AmazonWebServiceResult& result); + AWS_COSTEXPLORER_API ListCostAllocationTagBackfillHistoryResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

The list of historical cost allocation tag backfill requests.

+ */ + inline const Aws::Vector& GetBackfillRequests() const{ return m_backfillRequests; } + + /** + *

The list of historical cost allocation tag backfill requests.

+ */ + inline void SetBackfillRequests(const Aws::Vector& value) { m_backfillRequests = value; } + + /** + *

The list of historical cost allocation tag backfill requests.

+ */ + inline void SetBackfillRequests(Aws::Vector&& value) { m_backfillRequests = std::move(value); } + + /** + *

The list of historical cost allocation tag backfill requests.

+ */ + inline ListCostAllocationTagBackfillHistoryResult& WithBackfillRequests(const Aws::Vector& value) { SetBackfillRequests(value); return *this;} + + /** + *

The list of historical cost allocation tag backfill requests.

+ */ + inline ListCostAllocationTagBackfillHistoryResult& WithBackfillRequests(Aws::Vector&& value) { SetBackfillRequests(std::move(value)); return *this;} + + /** + *

The list of historical cost allocation tag backfill requests.

+ */ + inline ListCostAllocationTagBackfillHistoryResult& AddBackfillRequests(const CostAllocationTagBackfillRequest& value) { m_backfillRequests.push_back(value); return *this; } + + /** + *

The list of historical cost allocation tag backfill requests.

+ */ + inline ListCostAllocationTagBackfillHistoryResult& AddBackfillRequests(CostAllocationTagBackfillRequest&& value) { m_backfillRequests.push_back(std::move(value)); return *this; } + + + /** + *

The token to retrieve the next set of results. Amazon Web Services provides + * the token when the response from a previous call has more results than the + * maximum page size.

+ */ + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + + /** + *

The token to retrieve the next set of results. Amazon Web Services provides + * the token when the response from a previous call has more results than the + * maximum page size.

+ */ + inline void SetNextToken(const Aws::String& value) { m_nextToken = value; } + + /** + *

The token to retrieve the next set of results. Amazon Web Services provides + * the token when the response from a previous call has more results than the + * maximum page size.

+ */ + inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); } + + /** + *

The token to retrieve the next set of results. Amazon Web Services provides + * the token when the response from a previous call has more results than the + * maximum page size.

+ */ + inline void SetNextToken(const char* value) { m_nextToken.assign(value); } + + /** + *

The token to retrieve the next set of results. Amazon Web Services provides + * the token when the response from a previous call has more results than the + * maximum page size.

+ */ + inline ListCostAllocationTagBackfillHistoryResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + + /** + *

The token to retrieve the next set of results. Amazon Web Services provides + * the token when the response from a previous call has more results than the + * maximum page size.

+ */ + inline ListCostAllocationTagBackfillHistoryResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + + /** + *

The token to retrieve the next set of results. Amazon Web Services provides + * the token when the response from a previous call has more results than the + * maximum page size.

+ */ + inline ListCostAllocationTagBackfillHistoryResult& WithNextToken(const char* value) { SetNextToken(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 ListCostAllocationTagBackfillHistoryResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + + + inline ListCostAllocationTagBackfillHistoryResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + + + inline ListCostAllocationTagBackfillHistoryResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + + private: + + Aws::Vector m_backfillRequests; + + Aws::String m_nextToken; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace CostExplorer +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-ce/include/aws/ce/model/StartCostAllocationTagBackfillRequest.h b/generated/src/aws-cpp-sdk-ce/include/aws/ce/model/StartCostAllocationTagBackfillRequest.h new file mode 100644 index 00000000000..973a35b1c5f --- /dev/null +++ b/generated/src/aws-cpp-sdk-ce/include/aws/ce/model/StartCostAllocationTagBackfillRequest.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 + +namespace Aws +{ +namespace CostExplorer +{ +namespace Model +{ + + /** + */ + class StartCostAllocationTagBackfillRequest : public CostExplorerRequest + { + public: + AWS_COSTEXPLORER_API StartCostAllocationTagBackfillRequest(); + + // 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 "StartCostAllocationTagBackfill"; } + + AWS_COSTEXPLORER_API Aws::String SerializePayload() const override; + + AWS_COSTEXPLORER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; + + + /** + *

The date you want the backfill to start from. The date can only be a first + * day of the month (a billing start date). Dates can't precede the previous twelve + * months, or in the future.

+ */ + inline const Aws::String& GetBackfillFrom() const{ return m_backfillFrom; } + + /** + *

The date you want the backfill to start from. The date can only be a first + * day of the month (a billing start date). Dates can't precede the previous twelve + * months, or in the future.

+ */ + inline bool BackfillFromHasBeenSet() const { return m_backfillFromHasBeenSet; } + + /** + *

The date you want the backfill to start from. The date can only be a first + * day of the month (a billing start date). Dates can't precede the previous twelve + * months, or in the future.

+ */ + inline void SetBackfillFrom(const Aws::String& value) { m_backfillFromHasBeenSet = true; m_backfillFrom = value; } + + /** + *

The date you want the backfill to start from. The date can only be a first + * day of the month (a billing start date). Dates can't precede the previous twelve + * months, or in the future.

+ */ + inline void SetBackfillFrom(Aws::String&& value) { m_backfillFromHasBeenSet = true; m_backfillFrom = std::move(value); } + + /** + *

The date you want the backfill to start from. The date can only be a first + * day of the month (a billing start date). Dates can't precede the previous twelve + * months, or in the future.

+ */ + inline void SetBackfillFrom(const char* value) { m_backfillFromHasBeenSet = true; m_backfillFrom.assign(value); } + + /** + *

The date you want the backfill to start from. The date can only be a first + * day of the month (a billing start date). Dates can't precede the previous twelve + * months, or in the future.

+ */ + inline StartCostAllocationTagBackfillRequest& WithBackfillFrom(const Aws::String& value) { SetBackfillFrom(value); return *this;} + + /** + *

The date you want the backfill to start from. The date can only be a first + * day of the month (a billing start date). Dates can't precede the previous twelve + * months, or in the future.

+ */ + inline StartCostAllocationTagBackfillRequest& WithBackfillFrom(Aws::String&& value) { SetBackfillFrom(std::move(value)); return *this;} + + /** + *

The date you want the backfill to start from. The date can only be a first + * day of the month (a billing start date). Dates can't precede the previous twelve + * months, or in the future.

+ */ + inline StartCostAllocationTagBackfillRequest& WithBackfillFrom(const char* value) { SetBackfillFrom(value); return *this;} + + private: + + Aws::String m_backfillFrom; + bool m_backfillFromHasBeenSet = false; + }; + +} // namespace Model +} // namespace CostExplorer +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-ce/include/aws/ce/model/StartCostAllocationTagBackfillResult.h b/generated/src/aws-cpp-sdk-ce/include/aws/ce/model/StartCostAllocationTagBackfillResult.h new file mode 100644 index 00000000000..98e91b2cead --- /dev/null +++ b/generated/src/aws-cpp-sdk-ce/include/aws/ce/model/StartCostAllocationTagBackfillResult.h @@ -0,0 +1,92 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace CostExplorer +{ +namespace Model +{ + class StartCostAllocationTagBackfillResult + { + public: + AWS_COSTEXPLORER_API StartCostAllocationTagBackfillResult(); + AWS_COSTEXPLORER_API StartCostAllocationTagBackfillResult(const Aws::AmazonWebServiceResult& result); + AWS_COSTEXPLORER_API StartCostAllocationTagBackfillResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

An object containing detailed metadata of your new backfill request.

+ */ + inline const CostAllocationTagBackfillRequest& GetBackfillRequest() const{ return m_backfillRequest; } + + /** + *

An object containing detailed metadata of your new backfill request.

+ */ + inline void SetBackfillRequest(const CostAllocationTagBackfillRequest& value) { m_backfillRequest = value; } + + /** + *

An object containing detailed metadata of your new backfill request.

+ */ + inline void SetBackfillRequest(CostAllocationTagBackfillRequest&& value) { m_backfillRequest = std::move(value); } + + /** + *

An object containing detailed metadata of your new backfill request.

+ */ + inline StartCostAllocationTagBackfillResult& WithBackfillRequest(const CostAllocationTagBackfillRequest& value) { SetBackfillRequest(value); return *this;} + + /** + *

An object containing detailed metadata of your new backfill request.

+ */ + inline StartCostAllocationTagBackfillResult& WithBackfillRequest(CostAllocationTagBackfillRequest&& value) { SetBackfillRequest(std::move(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 StartCostAllocationTagBackfillResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + + + inline StartCostAllocationTagBackfillResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + + + inline StartCostAllocationTagBackfillResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + + private: + + CostAllocationTagBackfillRequest m_backfillRequest; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace CostExplorer +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-ce/source/CostExplorerClient.cpp b/generated/src/aws-cpp-sdk-ce/source/CostExplorerClient.cpp index 57ecbab99b5..f2292829e09 100644 --- a/generated/src/aws-cpp-sdk-ce/source/CostExplorerClient.cpp +++ b/generated/src/aws-cpp-sdk-ce/source/CostExplorerClient.cpp @@ -48,11 +48,13 @@ #include #include #include +#include #include #include #include #include #include +#include #include #include #include @@ -903,6 +905,32 @@ GetUsageForecastOutcome CostExplorerClient::GetUsageForecast(const GetUsageForec {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +ListCostAllocationTagBackfillHistoryOutcome CostExplorerClient::ListCostAllocationTagBackfillHistory(const ListCostAllocationTagBackfillHistoryRequest& request) const +{ + AWS_OPERATION_GUARD(ListCostAllocationTagBackfillHistory); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListCostAllocationTagBackfillHistory, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListCostAllocationTagBackfillHistory, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, ListCostAllocationTagBackfillHistory, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListCostAllocationTagBackfillHistory", + {{ 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( + [&]()-> ListCostAllocationTagBackfillHistoryOutcome { + 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, ListCostAllocationTagBackfillHistory, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return ListCostAllocationTagBackfillHistoryOutcome(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()}}); +} + ListCostAllocationTagsOutcome CostExplorerClient::ListCostAllocationTags(const ListCostAllocationTagsRequest& request) const { AWS_OPERATION_GUARD(ListCostAllocationTags); @@ -1033,6 +1061,32 @@ ProvideAnomalyFeedbackOutcome CostExplorerClient::ProvideAnomalyFeedback(const P {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +StartCostAllocationTagBackfillOutcome CostExplorerClient::StartCostAllocationTagBackfill(const StartCostAllocationTagBackfillRequest& request) const +{ + AWS_OPERATION_GUARD(StartCostAllocationTagBackfill); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, StartCostAllocationTagBackfill, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, StartCostAllocationTagBackfill, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, StartCostAllocationTagBackfill, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".StartCostAllocationTagBackfill", + {{ 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( + [&]()-> StartCostAllocationTagBackfillOutcome { + 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, StartCostAllocationTagBackfill, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return StartCostAllocationTagBackfillOutcome(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()}}); +} + StartSavingsPlansPurchaseRecommendationGenerationOutcome CostExplorerClient::StartSavingsPlansPurchaseRecommendationGeneration(const StartSavingsPlansPurchaseRecommendationGenerationRequest& request) const { AWS_OPERATION_GUARD(StartSavingsPlansPurchaseRecommendationGeneration); diff --git a/generated/src/aws-cpp-sdk-ce/source/CostExplorerErrors.cpp b/generated/src/aws-cpp-sdk-ce/source/CostExplorerErrors.cpp index ab00235ccb3..0def33d42d8 100644 --- a/generated/src/aws-cpp-sdk-ce/source/CostExplorerErrors.cpp +++ b/generated/src/aws-cpp-sdk-ce/source/CostExplorerErrors.cpp @@ -43,6 +43,7 @@ static const int UNKNOWN_MONITOR_HASH = HashingUtils::HashString("UnknownMonitor static const int BILL_EXPIRATION_HASH = HashingUtils::HashString("BillExpirationException"); static const int INVALID_NEXT_TOKEN_HASH = HashingUtils::HashString("InvalidNextTokenException"); static const int DATA_UNAVAILABLE_HASH = HashingUtils::HashString("DataUnavailableException"); +static const int BACKFILL_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("BackfillLimitExceededException"); static const int GENERATION_EXISTS_HASH = HashingUtils::HashString("GenerationExistsException"); @@ -90,6 +91,10 @@ AWSError GetErrorForName(const char* errorName) { return AWSError(static_cast(CostExplorerErrors::DATA_UNAVAILABLE), RetryableType::NOT_RETRYABLE); } + else if (hashCode == BACKFILL_LIMIT_EXCEEDED_HASH) + { + return AWSError(static_cast(CostExplorerErrors::BACKFILL_LIMIT_EXCEEDED), RetryableType::NOT_RETRYABLE); + } else if (hashCode == GENERATION_EXISTS_HASH) { return AWSError(static_cast(CostExplorerErrors::GENERATION_EXISTS), RetryableType::NOT_RETRYABLE); diff --git a/generated/src/aws-cpp-sdk-ce/source/model/CostAllocationTagBackfillRequest.cpp b/generated/src/aws-cpp-sdk-ce/source/model/CostAllocationTagBackfillRequest.cpp new file mode 100644 index 00000000000..ae0cc6f4b38 --- /dev/null +++ b/generated/src/aws-cpp-sdk-ce/source/model/CostAllocationTagBackfillRequest.cpp @@ -0,0 +1,120 @@ +/** + * 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 CostExplorer +{ +namespace Model +{ + +CostAllocationTagBackfillRequest::CostAllocationTagBackfillRequest() : + m_backfillFromHasBeenSet(false), + m_requestedAtHasBeenSet(false), + m_completedAtHasBeenSet(false), + m_backfillStatus(CostAllocationTagBackfillStatus::NOT_SET), + m_backfillStatusHasBeenSet(false), + m_lastUpdatedAtHasBeenSet(false) +{ +} + +CostAllocationTagBackfillRequest::CostAllocationTagBackfillRequest(JsonView jsonValue) : + m_backfillFromHasBeenSet(false), + m_requestedAtHasBeenSet(false), + m_completedAtHasBeenSet(false), + m_backfillStatus(CostAllocationTagBackfillStatus::NOT_SET), + m_backfillStatusHasBeenSet(false), + m_lastUpdatedAtHasBeenSet(false) +{ + *this = jsonValue; +} + +CostAllocationTagBackfillRequest& CostAllocationTagBackfillRequest::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("BackfillFrom")) + { + m_backfillFrom = jsonValue.GetString("BackfillFrom"); + + m_backfillFromHasBeenSet = true; + } + + if(jsonValue.ValueExists("RequestedAt")) + { + m_requestedAt = jsonValue.GetString("RequestedAt"); + + m_requestedAtHasBeenSet = true; + } + + if(jsonValue.ValueExists("CompletedAt")) + { + m_completedAt = jsonValue.GetString("CompletedAt"); + + m_completedAtHasBeenSet = true; + } + + if(jsonValue.ValueExists("BackfillStatus")) + { + m_backfillStatus = CostAllocationTagBackfillStatusMapper::GetCostAllocationTagBackfillStatusForName(jsonValue.GetString("BackfillStatus")); + + m_backfillStatusHasBeenSet = true; + } + + if(jsonValue.ValueExists("LastUpdatedAt")) + { + m_lastUpdatedAt = jsonValue.GetString("LastUpdatedAt"); + + m_lastUpdatedAtHasBeenSet = true; + } + + return *this; +} + +JsonValue CostAllocationTagBackfillRequest::Jsonize() const +{ + JsonValue payload; + + if(m_backfillFromHasBeenSet) + { + payload.WithString("BackfillFrom", m_backfillFrom); + + } + + if(m_requestedAtHasBeenSet) + { + payload.WithString("RequestedAt", m_requestedAt); + + } + + if(m_completedAtHasBeenSet) + { + payload.WithString("CompletedAt", m_completedAt); + + } + + if(m_backfillStatusHasBeenSet) + { + payload.WithString("BackfillStatus", CostAllocationTagBackfillStatusMapper::GetNameForCostAllocationTagBackfillStatus(m_backfillStatus)); + } + + if(m_lastUpdatedAtHasBeenSet) + { + payload.WithString("LastUpdatedAt", m_lastUpdatedAt); + + } + + return payload; +} + +} // namespace Model +} // namespace CostExplorer +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-ce/source/model/CostAllocationTagBackfillStatus.cpp b/generated/src/aws-cpp-sdk-ce/source/model/CostAllocationTagBackfillStatus.cpp new file mode 100644 index 00000000000..8ee8363db30 --- /dev/null +++ b/generated/src/aws-cpp-sdk-ce/source/model/CostAllocationTagBackfillStatus.cpp @@ -0,0 +1,79 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace CostExplorer + { + namespace Model + { + namespace CostAllocationTagBackfillStatusMapper + { + + static const int SUCCEEDED_HASH = HashingUtils::HashString("SUCCEEDED"); + static const int PROCESSING_HASH = HashingUtils::HashString("PROCESSING"); + static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + + + CostAllocationTagBackfillStatus GetCostAllocationTagBackfillStatusForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == SUCCEEDED_HASH) + { + return CostAllocationTagBackfillStatus::SUCCEEDED; + } + else if (hashCode == PROCESSING_HASH) + { + return CostAllocationTagBackfillStatus::PROCESSING; + } + else if (hashCode == FAILED_HASH) + { + return CostAllocationTagBackfillStatus::FAILED; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return CostAllocationTagBackfillStatus::NOT_SET; + } + + Aws::String GetNameForCostAllocationTagBackfillStatus(CostAllocationTagBackfillStatus enumValue) + { + switch(enumValue) + { + case CostAllocationTagBackfillStatus::NOT_SET: + return {}; + case CostAllocationTagBackfillStatus::SUCCEEDED: + return "SUCCEEDED"; + case CostAllocationTagBackfillStatus::PROCESSING: + return "PROCESSING"; + case CostAllocationTagBackfillStatus::FAILED: + return "FAILED"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace CostAllocationTagBackfillStatusMapper + } // namespace Model + } // namespace CostExplorer +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-ce/source/model/ListCostAllocationTagBackfillHistoryRequest.cpp b/generated/src/aws-cpp-sdk-ce/source/model/ListCostAllocationTagBackfillHistoryRequest.cpp new file mode 100644 index 00000000000..9e2c6170cba --- /dev/null +++ b/generated/src/aws-cpp-sdk-ce/source/model/ListCostAllocationTagBackfillHistoryRequest.cpp @@ -0,0 +1,51 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::CostExplorer::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +ListCostAllocationTagBackfillHistoryRequest::ListCostAllocationTagBackfillHistoryRequest() : + m_nextTokenHasBeenSet(false), + m_maxResults(0), + m_maxResultsHasBeenSet(false) +{ +} + +Aws::String ListCostAllocationTagBackfillHistoryRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_nextTokenHasBeenSet) + { + payload.WithString("NextToken", m_nextToken); + + } + + if(m_maxResultsHasBeenSet) + { + payload.WithInteger("MaxResults", m_maxResults); + + } + + return payload.View().WriteReadable(); +} + +Aws::Http::HeaderValueCollection ListCostAllocationTagBackfillHistoryRequest::GetRequestSpecificHeaders() const +{ + Aws::Http::HeaderValueCollection headers; + headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AWSInsightsIndexService.ListCostAllocationTagBackfillHistory")); + return headers; + +} + + + + diff --git a/generated/src/aws-cpp-sdk-ce/source/model/ListCostAllocationTagBackfillHistoryResult.cpp b/generated/src/aws-cpp-sdk-ce/source/model/ListCostAllocationTagBackfillHistoryResult.cpp new file mode 100644 index 00000000000..e40f909aa51 --- /dev/null +++ b/generated/src/aws-cpp-sdk-ce/source/model/ListCostAllocationTagBackfillHistoryResult.cpp @@ -0,0 +1,57 @@ +/** + * 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::CostExplorer::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +ListCostAllocationTagBackfillHistoryResult::ListCostAllocationTagBackfillHistoryResult() +{ +} + +ListCostAllocationTagBackfillHistoryResult::ListCostAllocationTagBackfillHistoryResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +ListCostAllocationTagBackfillHistoryResult& ListCostAllocationTagBackfillHistoryResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("BackfillRequests")) + { + Aws::Utils::Array backfillRequestsJsonList = jsonValue.GetArray("BackfillRequests"); + for(unsigned backfillRequestsIndex = 0; backfillRequestsIndex < backfillRequestsJsonList.GetLength(); ++backfillRequestsIndex) + { + m_backfillRequests.push_back(backfillRequestsJsonList[backfillRequestsIndex].AsObject()); + } + } + + if(jsonValue.ValueExists("NextToken")) + { + m_nextToken = jsonValue.GetString("NextToken"); + + } + + + 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-ce/source/model/StartCostAllocationTagBackfillRequest.cpp b/generated/src/aws-cpp-sdk-ce/source/model/StartCostAllocationTagBackfillRequest.cpp new file mode 100644 index 00000000000..5680291e9b1 --- /dev/null +++ b/generated/src/aws-cpp-sdk-ce/source/model/StartCostAllocationTagBackfillRequest.cpp @@ -0,0 +1,43 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::CostExplorer::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +StartCostAllocationTagBackfillRequest::StartCostAllocationTagBackfillRequest() : + m_backfillFromHasBeenSet(false) +{ +} + +Aws::String StartCostAllocationTagBackfillRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_backfillFromHasBeenSet) + { + payload.WithString("BackfillFrom", m_backfillFrom); + + } + + return payload.View().WriteReadable(); +} + +Aws::Http::HeaderValueCollection StartCostAllocationTagBackfillRequest::GetRequestSpecificHeaders() const +{ + Aws::Http::HeaderValueCollection headers; + headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AWSInsightsIndexService.StartCostAllocationTagBackfill")); + return headers; + +} + + + + diff --git a/generated/src/aws-cpp-sdk-ce/source/model/StartCostAllocationTagBackfillResult.cpp b/generated/src/aws-cpp-sdk-ce/source/model/StartCostAllocationTagBackfillResult.cpp new file mode 100644 index 00000000000..aa4775b5819 --- /dev/null +++ b/generated/src/aws-cpp-sdk-ce/source/model/StartCostAllocationTagBackfillResult.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::CostExplorer::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +StartCostAllocationTagBackfillResult::StartCostAllocationTagBackfillResult() +{ +} + +StartCostAllocationTagBackfillResult::StartCostAllocationTagBackfillResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +StartCostAllocationTagBackfillResult& StartCostAllocationTagBackfillResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("BackfillRequest")) + { + m_backfillRequest = jsonValue.GetObject("BackfillRequest"); + + } + + + 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-ec2/include/aws/ec2/model/NewDhcpConfiguration.h b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/NewDhcpConfiguration.h index ea26a6fb87f..d55ca96815e 100644 --- a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/NewDhcpConfiguration.h +++ b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/NewDhcpConfiguration.h @@ -24,6 +24,11 @@ namespace EC2 namespace Model { + /** + *

Describes a DHCP configuration option.

See Also:

AWS + * API Reference

+ */ class NewDhcpConfiguration { public: @@ -35,56 +40,90 @@ namespace Model AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const; - + /** + *

The name of a DHCP option.

+ */ inline const Aws::String& GetKey() const{ return m_key; } - + /** + *

The name of a DHCP option.

+ */ inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; } - + /** + *

The name of a DHCP option.

+ */ inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; } - + /** + *

The name of a DHCP option.

+ */ inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); } - + /** + *

The name of a DHCP option.

+ */ inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); } - + /** + *

The name of a DHCP option.

+ */ inline NewDhcpConfiguration& WithKey(const Aws::String& value) { SetKey(value); return *this;} - + /** + *

The name of a DHCP option.

+ */ inline NewDhcpConfiguration& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;} - + /** + *

The name of a DHCP option.

+ */ inline NewDhcpConfiguration& WithKey(const char* value) { SetKey(value); return *this;} - + /** + *

The values for the DHCP option.

+ */ inline const Aws::Vector& GetValues() const{ return m_values; } - + /** + *

The values for the DHCP option.

+ */ inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; } - + /** + *

The values for the DHCP option.

+ */ inline void SetValues(const Aws::Vector& value) { m_valuesHasBeenSet = true; m_values = value; } - + /** + *

The values for the DHCP option.

+ */ inline void SetValues(Aws::Vector&& value) { m_valuesHasBeenSet = true; m_values = std::move(value); } - + /** + *

The values for the DHCP option.

+ */ inline NewDhcpConfiguration& WithValues(const Aws::Vector& value) { SetValues(value); return *this;} - + /** + *

The values for the DHCP option.

+ */ inline NewDhcpConfiguration& WithValues(Aws::Vector&& value) { SetValues(std::move(value)); return *this;} - + /** + *

The values for the DHCP option.

+ */ inline NewDhcpConfiguration& AddValues(const Aws::String& value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; } - + /** + *

The values for the DHCP option.

+ */ inline NewDhcpConfiguration& AddValues(Aws::String&& value) { m_valuesHasBeenSet = true; m_values.push_back(std::move(value)); return *this; } - + /** + *

The values for the DHCP option.

+ */ inline NewDhcpConfiguration& AddValues(const char* value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; } private: diff --git a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/SearchTransitGatewayRoutesRequest.h b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/SearchTransitGatewayRoutesRequest.h index bbc949f159a..da8491c7e41 100644 --- a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/SearchTransitGatewayRoutesRequest.h +++ b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/SearchTransitGatewayRoutesRequest.h @@ -273,26 +273,22 @@ namespace Model /** - *

The maximum number of routes to return. If a value is not provided, the - * default is 1000.

+ *

The maximum number of routes to return.

*/ inline int GetMaxResults() const{ return m_maxResults; } /** - *

The maximum number of routes to return. If a value is not provided, the - * default is 1000.

+ *

The maximum number of routes to return.

*/ inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } /** - *

The maximum number of routes to return. If a value is not provided, the - * default is 1000.

+ *

The maximum number of routes to return.

*/ inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } /** - *

The maximum number of routes to return. If a value is not provided, the - * default is 1000.

+ *

The maximum number of routes to return.

*/ inline SearchTransitGatewayRoutesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/NewDhcpConfiguration.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/NewDhcpConfiguration.cpp index db08f37d202..7e99ba7017d 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/model/NewDhcpConfiguration.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/model/NewDhcpConfiguration.cpp @@ -39,7 +39,7 @@ NewDhcpConfiguration& NewDhcpConfiguration::operator =(const XmlNode& xmlNode) if(!resultNode.IsNull()) { - XmlNode keyNode = resultNode.FirstChild("key"); + XmlNode keyNode = resultNode.FirstChild("Key"); if(!keyNode.IsNull()) { m_key = Aws::Utils::Xml::DecodeEscapedXmlText(keyNode.GetText()); diff --git a/generated/src/aws-cpp-sdk-ecs/include/aws/ecs/ECSClient.h b/generated/src/aws-cpp-sdk-ecs/include/aws/ecs/ECSClient.h index 95c8575c041..b908876e7e3 100644 --- a/generated/src/aws-cpp-sdk-ecs/include/aws/ecs/ECSClient.h +++ b/generated/src/aws-cpp-sdk-ecs/include/aws/ecs/ECSClient.h @@ -162,13 +162,13 @@ namespace ECS * definition. If the number of tasks running in a service drops below the * desiredCount, Amazon ECS runs another copy of the task in the * specified cluster. To update an existing service, see the UpdateService - * action.

The following change began on March 21, 2024. When the - * task definition revision is not specified, Amazon ECS resolves the task - * definition revision before it authorizes the task definition.

In - * addition to maintaining the desired count of tasks in your service, you can - * optionally run your service behind one or more load balancers. The load - * balancers distribute traffic across the tasks that are associated with the - * service. For more information, see

On March 21, 2024, a change was made to resolve the task + * definition revision before authorization. When a task definition revision is not + * specified, authorization will occur using the latest revision of a task + * definition.

In addition to maintaining the desired count of tasks + * in your service, you can optionally run your service behind one or more load + * balancers. The load balancers distribute traffic across the tasks that are + * associated with the service. For more information, see Service * load balancing in the Amazon Elastic Container Service Developer * Guide.

You can attach Amazon EBS volumes to Amazon ECS tasks by @@ -289,10 +289,11 @@ namespace ECS * information, see Amazon * ECS deployment types in the Amazon Elastic Container Service Developer - * Guide.

The following change began on March 21, 2024. When the - * task definition revision is not specified, Amazon ECS resolves the task - * definition revision before it authorizes the task definition.

For - * information about the maximum number of task sets and otther quotas, see .

On March 21, 2024, a change was made to resolve the + * task definition revision before authorization. When a task definition revision + * is not specified, authorization will occur using the latest revision of a task + * definition.

For information about the maximum number of task sets + * and otther quotas, see Amazon * ECS service quotas in the Amazon Elastic Container Service Developer * Guide.

See Also:

Starts a new task using the specified task definition.

The - * following change began on March 21, 2024. When the task definition revision is - * not specified, Amazon ECS resolves the task definition revision before it - * authorizes the task definition.

You can allow Amazon ECS to place - * tasks for you, or you can customize how Amazon ECS places tasks using placement - * constraints and placement strategies. For more information, see Starts a new task using the specified task definition.

On March + * 21, 2024, a change was made to resolve the task definition revision before + * authorization. When a task definition revision is not specified, authorization + * will occur using the latest revision of a task definition.

You + * can allow Amazon ECS to place tasks for you, or you can customize how Amazon ECS + * places tasks using placement constraints and placement strategies. For more + * information, see Scheduling * Tasks in the Amazon Elastic Container Service Developer Guide.

*

Alternatively, you can use StartTask to use your own scheduler or @@ -1468,18 +1470,18 @@ namespace ECS /** *

Starts a new task from the specified task definition on the specified - * container instance or instances.

The following change began on - * March 21, 2024. When the task definition revision is not specified, Amazon ECS - * resolves the task definition revision before it authorizes the task - * definition.

Starting April 15, 2023, Amazon Web Services will not - * onboard new customers to Amazon Elastic Inference (EI), and will help current - * customers migrate their workloads to options that offer better price and - * performance. After April 15, 2023, new customers will not be able to launch - * instances with Amazon EI accelerators in Amazon SageMaker, Amazon ECS, or Amazon - * EC2. However, customers who have used Amazon EI at least once during the past - * 30-day period are considered current customers and will be able to continue - * using the service.

Alternatively, you can use RunTask to place - * tasks for you. For more information, see

On March 21, 2024, a change was + * made to resolve the task definition revision before authorization. When a task + * definition revision is not specified, authorization will occur using the latest + * revision of a task definition.

Starting April 15, 2023, Amazon + * Web Services will not onboard new customers to Amazon Elastic Inference (EI), + * and will help current customers migrate their workloads to options that offer + * better price and performance. After April 15, 2023, new customers will not be + * able to launch instances with Amazon EI accelerators in Amazon SageMaker, Amazon + * ECS, or Amazon EC2. However, customers who have used Amazon EI at least once + * during the past 30-day period are considered current customers and will be able + * to continue using the service.

Alternatively, you can use RunTask + * to place tasks for you. For more information, see Scheduling * Tasks in the Amazon Elastic Container Service Developer Guide.

*

You can attach Amazon EBS volumes to Amazon ECS tasks by configuring the @@ -1870,17 +1872,18 @@ namespace ECS } /** - *

Modifies the parameters of a service.

The following change - * began on March 21, 2024. When the task definition revision is not specified, - * Amazon ECS resolves the task definition revision before it authorizes the task - * definition.

For services using the rolling update - * (ECS) you can update the desired count, deployment configuration, - * network configuration, load balancers, service registries, enable ECS managed - * tags option, propagate tags option, task placement constraints and strategies, - * and task definition. When you update any of these parameters, Amazon ECS starts - * new tasks with the new configuration.

You can attach Amazon EBS volumes - * to Amazon ECS tasks by configuring the volume when starting or running a task, - * or when creating or updating a service. For more infomation, see Modifies the parameters of a service.

On March 21, 2024, a + * change was made to resolve the task definition revision before authorization. + * When a task definition revision is not specified, authorization will occur using + * the latest revision of a task definition.

For services using the + * rolling update (ECS) you can update the desired count, deployment + * configuration, network configuration, load balancers, service registries, enable + * ECS managed tags option, propagate tags option, task placement constraints and + * strategies, and task definition. When you update any of these parameters, Amazon + * ECS starts new tasks with the new configuration.

You can attach Amazon + * EBS volumes to Amazon ECS tasks by configuring the volume when starting or + * running a task, or when creating or updating a service. For more infomation, see + * Amazon * EBS volumes in the Amazon Elastic Container Service Developer Guide. * You can update your volume configurations and trigger a new deployment. diff --git a/generated/src/aws-cpp-sdk-finspace/include/aws/finspace/FinspaceClient.h b/generated/src/aws-cpp-sdk-finspace/include/aws/finspace/FinspaceClient.h index d7f4586d8c4..a3cd86971c9 100644 --- a/generated/src/aws-cpp-sdk-finspace/include/aws/finspace/FinspaceClient.h +++ b/generated/src/aws-cpp-sdk-finspace/include/aws/finspace/FinspaceClient.h @@ -310,6 +310,31 @@ namespace finspace return SubmitAsync(&FinspaceClient::DeleteKxCluster, request, handler, context); } + /** + *

Deletes the specified nodes from a cluster.

See Also:

AWS + * API Reference

+ */ + virtual Model::DeleteKxClusterNodeOutcome DeleteKxClusterNode(const Model::DeleteKxClusterNodeRequest& request) const; + + /** + * A Callable wrapper for DeleteKxClusterNode that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::DeleteKxClusterNodeOutcomeCallable DeleteKxClusterNodeCallable(const DeleteKxClusterNodeRequestT& request) const + { + return SubmitCallable(&FinspaceClient::DeleteKxClusterNode, request); + } + + /** + * An Async wrapper for DeleteKxClusterNode that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void DeleteKxClusterNodeAsync(const DeleteKxClusterNodeRequestT& request, const DeleteKxClusterNodeResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&FinspaceClient::DeleteKxClusterNode, request, handler, context); + } + /** *

Deletes the specified database and all of its associated data. This action is * irreversible. You must copy any data out of the database before deleting it if diff --git a/generated/src/aws-cpp-sdk-finspace/include/aws/finspace/FinspaceServiceClientModel.h b/generated/src/aws-cpp-sdk-finspace/include/aws/finspace/FinspaceServiceClientModel.h index 4ee673bce2e..d5045c2586a 100644 --- a/generated/src/aws-cpp-sdk-finspace/include/aws/finspace/FinspaceServiceClientModel.h +++ b/generated/src/aws-cpp-sdk-finspace/include/aws/finspace/FinspaceServiceClientModel.h @@ -27,6 +27,7 @@ #include #include #include +#include #include #include #include @@ -111,6 +112,7 @@ namespace Aws class CreateKxUserRequest; class CreateKxVolumeRequest; class DeleteKxClusterRequest; + class DeleteKxClusterNodeRequest; class DeleteKxDatabaseRequest; class DeleteKxDataviewRequest; class DeleteKxEnvironmentRequest; @@ -158,6 +160,7 @@ namespace Aws typedef Aws::Utils::Outcome CreateKxUserOutcome; typedef Aws::Utils::Outcome CreateKxVolumeOutcome; typedef Aws::Utils::Outcome DeleteKxClusterOutcome; + typedef Aws::Utils::Outcome DeleteKxClusterNodeOutcome; typedef Aws::Utils::Outcome DeleteKxDatabaseOutcome; typedef Aws::Utils::Outcome DeleteKxDataviewOutcome; typedef Aws::Utils::Outcome DeleteKxEnvironmentOutcome; @@ -205,6 +208,7 @@ namespace Aws typedef std::future CreateKxUserOutcomeCallable; typedef std::future CreateKxVolumeOutcomeCallable; typedef std::future DeleteKxClusterOutcomeCallable; + typedef std::future DeleteKxClusterNodeOutcomeCallable; typedef std::future DeleteKxDatabaseOutcomeCallable; typedef std::future DeleteKxDataviewOutcomeCallable; typedef std::future DeleteKxEnvironmentOutcomeCallable; @@ -255,6 +259,7 @@ namespace Aws typedef std::function&) > CreateKxUserResponseReceivedHandler; typedef std::function&) > CreateKxVolumeResponseReceivedHandler; typedef std::function&) > DeleteKxClusterResponseReceivedHandler; + typedef std::function&) > DeleteKxClusterNodeResponseReceivedHandler; typedef std::function&) > DeleteKxDatabaseResponseReceivedHandler; typedef std::function&) > DeleteKxDataviewResponseReceivedHandler; typedef std::function&) > DeleteKxEnvironmentResponseReceivedHandler; diff --git a/generated/src/aws-cpp-sdk-finspace/include/aws/finspace/model/CreateKxChangesetRequest.h b/generated/src/aws-cpp-sdk-finspace/include/aws/finspace/model/CreateKxChangesetRequest.h index 5cf61d21756..407421ce66d 100644 --- a/generated/src/aws-cpp-sdk-finspace/include/aws/finspace/model/CreateKxChangesetRequest.h +++ b/generated/src/aws-cpp-sdk-finspace/include/aws/finspace/model/CreateKxChangesetRequest.h @@ -120,7 +120,7 @@ namespace Model /** *

A list of change request objects that are run in order. A change request * object consists of changeType , s3Path, and - * dbPath. A changeType can has the following values:

  • + * dbPath. A changeType can have the following values:

    • *

      PUT – Adds or updates files in a database.

    • DELETE – Deletes * files in a database.

    All the change requests require a * mandatory dbPath attribute that defines the path within the @@ -152,7 +152,7 @@ namespace Model /** *

    A list of change request objects that are run in order. A change request * object consists of changeType , s3Path, and - * dbPath. A changeType can has the following values:

    • + * dbPath. A changeType can have the following values:

      • *

        PUT – Adds or updates files in a database.

      • DELETE – Deletes * files in a database.

      All the change requests require a * mandatory dbPath attribute that defines the path within the @@ -184,7 +184,7 @@ namespace Model /** *

      A list of change request objects that are run in order. A change request * object consists of changeType , s3Path, and - * dbPath. A changeType can has the following values:

      • + * dbPath. A changeType can have the following values:

        • *

          PUT – Adds or updates files in a database.

        • DELETE – Deletes * files in a database.

        All the change requests require a * mandatory dbPath attribute that defines the path within the @@ -216,7 +216,7 @@ namespace Model /** *

        A list of change request objects that are run in order. A change request * object consists of changeType , s3Path, and - * dbPath. A changeType can has the following values:

        • + * dbPath. A changeType can have the following values:

          • *

            PUT – Adds or updates files in a database.

          • DELETE – Deletes * files in a database.

          All the change requests require a * mandatory dbPath attribute that defines the path within the @@ -248,7 +248,7 @@ namespace Model /** *

          A list of change request objects that are run in order. A change request * object consists of changeType , s3Path, and - * dbPath. A changeType can has the following values:

          • + * dbPath. A changeType can have the following values:

            • *

              PUT – Adds or updates files in a database.

            • DELETE – Deletes * files in a database.

            All the change requests require a * mandatory dbPath attribute that defines the path within the @@ -280,7 +280,7 @@ namespace Model /** *

            A list of change request objects that are run in order. A change request * object consists of changeType , s3Path, and - * dbPath. A changeType can has the following values:

            • + * dbPath. A changeType can have the following values:

              • *

                PUT – Adds or updates files in a database.

              • DELETE – Deletes * files in a database.

              All the change requests require a * mandatory dbPath attribute that defines the path within the @@ -312,7 +312,7 @@ namespace Model /** *

              A list of change request objects that are run in order. A change request * object consists of changeType , s3Path, and - * dbPath. A changeType can has the following values:

              • + * dbPath. A changeType can have the following values:

                • *

                  PUT – Adds or updates files in a database.

                • DELETE – Deletes * files in a database.

                All the change requests require a * mandatory dbPath attribute that defines the path within the @@ -344,7 +344,7 @@ namespace Model /** *

                A list of change request objects that are run in order. A change request * object consists of changeType , s3Path, and - * dbPath. A changeType can has the following values:

                • + * dbPath. A changeType can have the following values:

                  • *

                    PUT – Adds or updates files in a database.

                  • DELETE – Deletes * files in a database.

                  All the change requests require a * mandatory dbPath attribute that defines the path within the diff --git a/generated/src/aws-cpp-sdk-finspace/include/aws/finspace/model/DeleteKxClusterNodeRequest.h b/generated/src/aws-cpp-sdk-finspace/include/aws/finspace/model/DeleteKxClusterNodeRequest.h new file mode 100644 index 00000000000..dc8b99374a0 --- /dev/null +++ b/generated/src/aws-cpp-sdk-finspace/include/aws/finspace/model/DeleteKxClusterNodeRequest.h @@ -0,0 +1,171 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace finspace +{ +namespace Model +{ + + /** + */ + class DeleteKxClusterNodeRequest : public FinspaceRequest + { + public: + AWS_FINSPACE_API DeleteKxClusterNodeRequest(); + + // 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 "DeleteKxClusterNode"; } + + AWS_FINSPACE_API Aws::String SerializePayload() const override; + + + /** + *

                  A unique identifier for the kdb environment.

                  + */ + inline const Aws::String& GetEnvironmentId() const{ return m_environmentId; } + + /** + *

                  A unique identifier for the kdb environment.

                  + */ + inline bool EnvironmentIdHasBeenSet() const { return m_environmentIdHasBeenSet; } + + /** + *

                  A unique identifier for the kdb environment.

                  + */ + inline void SetEnvironmentId(const Aws::String& value) { m_environmentIdHasBeenSet = true; m_environmentId = value; } + + /** + *

                  A unique identifier for the kdb environment.

                  + */ + inline void SetEnvironmentId(Aws::String&& value) { m_environmentIdHasBeenSet = true; m_environmentId = std::move(value); } + + /** + *

                  A unique identifier for the kdb environment.

                  + */ + inline void SetEnvironmentId(const char* value) { m_environmentIdHasBeenSet = true; m_environmentId.assign(value); } + + /** + *

                  A unique identifier for the kdb environment.

                  + */ + inline DeleteKxClusterNodeRequest& WithEnvironmentId(const Aws::String& value) { SetEnvironmentId(value); return *this;} + + /** + *

                  A unique identifier for the kdb environment.

                  + */ + inline DeleteKxClusterNodeRequest& WithEnvironmentId(Aws::String&& value) { SetEnvironmentId(std::move(value)); return *this;} + + /** + *

                  A unique identifier for the kdb environment.

                  + */ + inline DeleteKxClusterNodeRequest& WithEnvironmentId(const char* value) { SetEnvironmentId(value); return *this;} + + + /** + *

                  The name of the cluster, for which you want to delete the nodes.

                  + */ + inline const Aws::String& GetClusterName() const{ return m_clusterName; } + + /** + *

                  The name of the cluster, for which you want to delete the nodes.

                  + */ + inline bool ClusterNameHasBeenSet() const { return m_clusterNameHasBeenSet; } + + /** + *

                  The name of the cluster, for which you want to delete the nodes.

                  + */ + inline void SetClusterName(const Aws::String& value) { m_clusterNameHasBeenSet = true; m_clusterName = value; } + + /** + *

                  The name of the cluster, for which you want to delete the nodes.

                  + */ + inline void SetClusterName(Aws::String&& value) { m_clusterNameHasBeenSet = true; m_clusterName = std::move(value); } + + /** + *

                  The name of the cluster, for which you want to delete the nodes.

                  + */ + inline void SetClusterName(const char* value) { m_clusterNameHasBeenSet = true; m_clusterName.assign(value); } + + /** + *

                  The name of the cluster, for which you want to delete the nodes.

                  + */ + inline DeleteKxClusterNodeRequest& WithClusterName(const Aws::String& value) { SetClusterName(value); return *this;} + + /** + *

                  The name of the cluster, for which you want to delete the nodes.

                  + */ + inline DeleteKxClusterNodeRequest& WithClusterName(Aws::String&& value) { SetClusterName(std::move(value)); return *this;} + + /** + *

                  The name of the cluster, for which you want to delete the nodes.

                  + */ + inline DeleteKxClusterNodeRequest& WithClusterName(const char* value) { SetClusterName(value); return *this;} + + + /** + *

                  A unique identifier for the node that you want to delete.

                  + */ + inline const Aws::String& GetNodeId() const{ return m_nodeId; } + + /** + *

                  A unique identifier for the node that you want to delete.

                  + */ + inline bool NodeIdHasBeenSet() const { return m_nodeIdHasBeenSet; } + + /** + *

                  A unique identifier for the node that you want to delete.

                  + */ + inline void SetNodeId(const Aws::String& value) { m_nodeIdHasBeenSet = true; m_nodeId = value; } + + /** + *

                  A unique identifier for the node that you want to delete.

                  + */ + inline void SetNodeId(Aws::String&& value) { m_nodeIdHasBeenSet = true; m_nodeId = std::move(value); } + + /** + *

                  A unique identifier for the node that you want to delete.

                  + */ + inline void SetNodeId(const char* value) { m_nodeIdHasBeenSet = true; m_nodeId.assign(value); } + + /** + *

                  A unique identifier for the node that you want to delete.

                  + */ + inline DeleteKxClusterNodeRequest& WithNodeId(const Aws::String& value) { SetNodeId(value); return *this;} + + /** + *

                  A unique identifier for the node that you want to delete.

                  + */ + inline DeleteKxClusterNodeRequest& WithNodeId(Aws::String&& value) { SetNodeId(std::move(value)); return *this;} + + /** + *

                  A unique identifier for the node that you want to delete.

                  + */ + inline DeleteKxClusterNodeRequest& WithNodeId(const char* value) { SetNodeId(value); return *this;} + + private: + + Aws::String m_environmentId; + bool m_environmentIdHasBeenSet = false; + + Aws::String m_clusterName; + bool m_clusterNameHasBeenSet = false; + + Aws::String m_nodeId; + bool m_nodeIdHasBeenSet = false; + }; + +} // namespace Model +} // namespace finspace +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-finspace/include/aws/finspace/model/DeleteKxClusterNodeResult.h b/generated/src/aws-cpp-sdk-finspace/include/aws/finspace/model/DeleteKxClusterNodeResult.h new file mode 100644 index 00000000000..d3f7b98f4a6 --- /dev/null +++ b/generated/src/aws-cpp-sdk-finspace/include/aws/finspace/model/DeleteKxClusterNodeResult.h @@ -0,0 +1,63 @@ +/** + * 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 finspace +{ +namespace Model +{ + class DeleteKxClusterNodeResult + { + public: + AWS_FINSPACE_API DeleteKxClusterNodeResult(); + AWS_FINSPACE_API DeleteKxClusterNodeResult(const Aws::AmazonWebServiceResult& result); + AWS_FINSPACE_API DeleteKxClusterNodeResult& operator=(const Aws::AmazonWebServiceResult& result); + + + + 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 DeleteKxClusterNodeResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + + + inline DeleteKxClusterNodeResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + + + inline DeleteKxClusterNodeResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + + private: + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace finspace +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-finspace/include/aws/finspace/model/KxNAS1Configuration.h b/generated/src/aws-cpp-sdk-finspace/include/aws/finspace/model/KxNAS1Configuration.h index 06d75087327..aa87c7ed557 100644 --- a/generated/src/aws-cpp-sdk-finspace/include/aws/finspace/model/KxNAS1Configuration.h +++ b/generated/src/aws-cpp-sdk-finspace/include/aws/finspace/model/KxNAS1Configuration.h @@ -70,22 +70,34 @@ namespace Model /** - *

                  The size of the network attached storage.

                  + *

                  The size of the network attached storage. For storage type + * SSD_1000 and SSD_250 you can select the minimum size + * as 1200 GB or increments of 2400 GB. For storage type HDD_12 you + * can select the minimum size as 6000 GB or increments of 6000 GB.

                  */ inline int GetSize() const{ return m_size; } /** - *

                  The size of the network attached storage.

                  + *

                  The size of the network attached storage. For storage type + * SSD_1000 and SSD_250 you can select the minimum size + * as 1200 GB or increments of 2400 GB. For storage type HDD_12 you + * can select the minimum size as 6000 GB or increments of 6000 GB.

                  */ inline bool SizeHasBeenSet() const { return m_sizeHasBeenSet; } /** - *

                  The size of the network attached storage.

                  + *

                  The size of the network attached storage. For storage type + * SSD_1000 and SSD_250 you can select the minimum size + * as 1200 GB or increments of 2400 GB. For storage type HDD_12 you + * can select the minimum size as 6000 GB or increments of 6000 GB.

                  */ inline void SetSize(int value) { m_sizeHasBeenSet = true; m_size = value; } /** - *

                  The size of the network attached storage.

                  + *

                  The size of the network attached storage. For storage type + * SSD_1000 and SSD_250 you can select the minimum size + * as 1200 GB or increments of 2400 GB. For storage type HDD_12 you + * can select the minimum size as 6000 GB or increments of 6000 GB.

                  */ inline KxNAS1Configuration& WithSize(int value) { SetSize(value); return *this;} diff --git a/generated/src/aws-cpp-sdk-finspace/include/aws/finspace/model/KxNode.h b/generated/src/aws-cpp-sdk-finspace/include/aws/finspace/model/KxNode.h index e5b9e955c84..aed5a45541c 100644 --- a/generated/src/aws-cpp-sdk-finspace/include/aws/finspace/model/KxNode.h +++ b/generated/src/aws-cpp-sdk-finspace/include/aws/finspace/model/KxNode.h @@ -7,6 +7,7 @@ #include #include #include +#include #include namespace Aws @@ -170,6 +171,49 @@ namespace Model */ inline KxNode& WithLaunchTime(Aws::Utils::DateTime&& value) { SetLaunchTime(std::move(value)); return *this;} + + /** + *

                  Specifies the status of the cluster nodes.

                  • + * RUNNING – The node is actively serving.

                  • + * PROVISIONING – The node is being prepared.

                  + */ + inline const KxNodeStatus& GetStatus() const{ return m_status; } + + /** + *

                  Specifies the status of the cluster nodes.

                  • + * RUNNING – The node is actively serving.

                  • + * PROVISIONING – The node is being prepared.

                  + */ + inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } + + /** + *

                  Specifies the status of the cluster nodes.

                  • + * RUNNING – The node is actively serving.

                  • + * PROVISIONING – The node is being prepared.

                  + */ + inline void SetStatus(const KxNodeStatus& value) { m_statusHasBeenSet = true; m_status = value; } + + /** + *

                  Specifies the status of the cluster nodes.

                  • + * RUNNING – The node is actively serving.

                  • + * PROVISIONING – The node is being prepared.

                  + */ + inline void SetStatus(KxNodeStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } + + /** + *

                  Specifies the status of the cluster nodes.

                  • + * RUNNING – The node is actively serving.

                  • + * PROVISIONING – The node is being prepared.

                  + */ + inline KxNode& WithStatus(const KxNodeStatus& value) { SetStatus(value); return *this;} + + /** + *

                  Specifies the status of the cluster nodes.

                  • + * RUNNING – The node is actively serving.

                  • + * PROVISIONING – The node is being prepared.

                  + */ + inline KxNode& WithStatus(KxNodeStatus&& value) { SetStatus(std::move(value)); return *this;} + private: Aws::String m_nodeId; @@ -180,6 +224,9 @@ namespace Model Aws::Utils::DateTime m_launchTime; bool m_launchTimeHasBeenSet = false; + + KxNodeStatus m_status; + bool m_statusHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-finspace/include/aws/finspace/model/KxNodeStatus.h b/generated/src/aws-cpp-sdk-finspace/include/aws/finspace/model/KxNodeStatus.h new file mode 100644 index 00000000000..5f17d0fd816 --- /dev/null +++ b/generated/src/aws-cpp-sdk-finspace/include/aws/finspace/model/KxNodeStatus.h @@ -0,0 +1,31 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace finspace +{ +namespace Model +{ + enum class KxNodeStatus + { + NOT_SET, + RUNNING, + PROVISIONING + }; + +namespace KxNodeStatusMapper +{ +AWS_FINSPACE_API KxNodeStatus GetKxNodeStatusForName(const Aws::String& name); + +AWS_FINSPACE_API Aws::String GetNameForKxNodeStatus(KxNodeStatus value); +} // namespace KxNodeStatusMapper +} // namespace Model +} // namespace finspace +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-finspace/source/FinspaceClient.cpp b/generated/src/aws-cpp-sdk-finspace/source/FinspaceClient.cpp index 86c7dc811cd..84fdfb0478a 100644 --- a/generated/src/aws-cpp-sdk-finspace/source/FinspaceClient.cpp +++ b/generated/src/aws-cpp-sdk-finspace/source/FinspaceClient.cpp @@ -30,6 +30,7 @@ #include #include #include +#include #include #include #include @@ -525,6 +526,53 @@ DeleteKxClusterOutcome FinspaceClient::DeleteKxCluster(const DeleteKxClusterRequ {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +DeleteKxClusterNodeOutcome FinspaceClient::DeleteKxClusterNode(const DeleteKxClusterNodeRequest& request) const +{ + AWS_OPERATION_GUARD(DeleteKxClusterNode); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteKxClusterNode, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.EnvironmentIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("DeleteKxClusterNode", "Required field: EnvironmentId, is not set"); + return DeleteKxClusterNodeOutcome(Aws::Client::AWSError(FinspaceErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [EnvironmentId]", false)); + } + if (!request.ClusterNameHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("DeleteKxClusterNode", "Required field: ClusterName, is not set"); + return DeleteKxClusterNodeOutcome(Aws::Client::AWSError(FinspaceErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ClusterName]", false)); + } + if (!request.NodeIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("DeleteKxClusterNode", "Required field: NodeId, is not set"); + return DeleteKxClusterNodeOutcome(Aws::Client::AWSError(FinspaceErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [NodeId]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteKxClusterNode, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, DeleteKxClusterNode, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DeleteKxClusterNode", + {{ 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( + [&]()-> DeleteKxClusterNodeOutcome { + 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, DeleteKxClusterNode, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/kx/environments/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetEnvironmentId()); + endpointResolutionOutcome.GetResult().AddPathSegments("/clusters/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetClusterName()); + endpointResolutionOutcome.GetResult().AddPathSegments("/nodes/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetNodeId()); + return DeleteKxClusterNodeOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_DELETE, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + DeleteKxDatabaseOutcome FinspaceClient::DeleteKxDatabase(const DeleteKxDatabaseRequest& request) const { AWS_OPERATION_GUARD(DeleteKxDatabase); diff --git a/generated/src/aws-cpp-sdk-finspace/source/model/DeleteKxClusterNodeRequest.cpp b/generated/src/aws-cpp-sdk-finspace/source/model/DeleteKxClusterNodeRequest.cpp new file mode 100644 index 00000000000..14cbbfc7bfe --- /dev/null +++ b/generated/src/aws-cpp-sdk-finspace/source/model/DeleteKxClusterNodeRequest.cpp @@ -0,0 +1,29 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::finspace::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +DeleteKxClusterNodeRequest::DeleteKxClusterNodeRequest() : + m_environmentIdHasBeenSet(false), + m_clusterNameHasBeenSet(false), + m_nodeIdHasBeenSet(false) +{ +} + +Aws::String DeleteKxClusterNodeRequest::SerializePayload() const +{ + return {}; +} + + + + diff --git a/generated/src/aws-cpp-sdk-finspace/source/model/DeleteKxClusterNodeResult.cpp b/generated/src/aws-cpp-sdk-finspace/source/model/DeleteKxClusterNodeResult.cpp new file mode 100644 index 00000000000..ccede2f52fc --- /dev/null +++ b/generated/src/aws-cpp-sdk-finspace/source/model/DeleteKxClusterNodeResult.cpp @@ -0,0 +1,42 @@ +/** + * 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::finspace::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +DeleteKxClusterNodeResult::DeleteKxClusterNodeResult() +{ +} + +DeleteKxClusterNodeResult::DeleteKxClusterNodeResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +DeleteKxClusterNodeResult& DeleteKxClusterNodeResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + AWS_UNREFERENCED_PARAM(result); + + 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-finspace/source/model/KxNode.cpp b/generated/src/aws-cpp-sdk-finspace/source/model/KxNode.cpp index 72c41aaa0f6..150be31de0d 100644 --- a/generated/src/aws-cpp-sdk-finspace/source/model/KxNode.cpp +++ b/generated/src/aws-cpp-sdk-finspace/source/model/KxNode.cpp @@ -21,14 +21,18 @@ namespace Model KxNode::KxNode() : m_nodeIdHasBeenSet(false), m_availabilityZoneIdHasBeenSet(false), - m_launchTimeHasBeenSet(false) + m_launchTimeHasBeenSet(false), + m_status(KxNodeStatus::NOT_SET), + m_statusHasBeenSet(false) { } KxNode::KxNode(JsonView jsonValue) : m_nodeIdHasBeenSet(false), m_availabilityZoneIdHasBeenSet(false), - m_launchTimeHasBeenSet(false) + m_launchTimeHasBeenSet(false), + m_status(KxNodeStatus::NOT_SET), + m_statusHasBeenSet(false) { *this = jsonValue; } @@ -56,6 +60,13 @@ KxNode& KxNode::operator =(JsonView jsonValue) m_launchTimeHasBeenSet = true; } + if(jsonValue.ValueExists("status")) + { + m_status = KxNodeStatusMapper::GetKxNodeStatusForName(jsonValue.GetString("status")); + + m_statusHasBeenSet = true; + } + return *this; } @@ -80,6 +91,11 @@ JsonValue KxNode::Jsonize() const payload.WithDouble("launchTime", m_launchTime.SecondsWithMSPrecision()); } + if(m_statusHasBeenSet) + { + payload.WithString("status", KxNodeStatusMapper::GetNameForKxNodeStatus(m_status)); + } + return payload; } diff --git a/generated/src/aws-cpp-sdk-finspace/source/model/KxNodeStatus.cpp b/generated/src/aws-cpp-sdk-finspace/source/model/KxNodeStatus.cpp new file mode 100644 index 00000000000..a7346d96a92 --- /dev/null +++ b/generated/src/aws-cpp-sdk-finspace/source/model/KxNodeStatus.cpp @@ -0,0 +1,72 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace finspace + { + namespace Model + { + namespace KxNodeStatusMapper + { + + static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); + static const int PROVISIONING_HASH = HashingUtils::HashString("PROVISIONING"); + + + KxNodeStatus GetKxNodeStatusForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == RUNNING_HASH) + { + return KxNodeStatus::RUNNING; + } + else if (hashCode == PROVISIONING_HASH) + { + return KxNodeStatus::PROVISIONING; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return KxNodeStatus::NOT_SET; + } + + Aws::String GetNameForKxNodeStatus(KxNodeStatus enumValue) + { + switch(enumValue) + { + case KxNodeStatus::NOT_SET: + return {}; + case KxNodeStatus::RUNNING: + return "RUNNING"; + case KxNodeStatus::PROVISIONING: + return "PROVISIONING"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace KxNodeStatusMapper + } // namespace Model + } // namespace finspace +} // namespace Aws 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 6cb15ea25cb..9b55319a0f2 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.293" +#define AWS_SDK_VERSION_STRING "1.11.294" #define AWS_SDK_VERSION_MAJOR 1 #define AWS_SDK_VERSION_MINOR 11 -#define AWS_SDK_VERSION_PATCH 293 +#define AWS_SDK_VERSION_PATCH 294 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 236718cc109..95905d61674 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 @@ -76,7 +76,7 @@ {"shape":"AccessDeniedException"}, {"shape":"ServiceQuotaExceededException"} ], - "documentation":"

                  Queries a knowledge base and generates responses based on the retrieved results. The response cites up to five sources but only selects the ones that are relevant to the query.

                  The numberOfResults field is currently unsupported for RetrieveAndGenerate. Don't include it in the vectorSearchConfiguration object.

                  " + "documentation":"

                  Queries a knowledge base and generates responses based on the retrieved results. The response cites up to five sources but only selects the ones that are relevant to the query.

                  " } }, "shapes":{ @@ -198,7 +198,7 @@ "documentation":"

                  Contains metadata about the sources cited for the generated response.

                  " } }, - "documentation":"

                  An object containing a segment of the generated response that is based on a source in the knowledge base, alongside information about the source.

                  " + "documentation":"

                  An object containing a segment of the generated response that is based on a source in the knowledge base, alongside information about the source.

                  This data type is used in the following API operations:

                  " }, "Citations":{ "type":"list", @@ -289,7 +289,17 @@ "documentation":"

                  Contains metadata about a textual part of the generated response that is accompanied by a citation.

                  " } }, - "documentation":"

                  Contains metadata about a part of the generated response that is accompanied by a citation.

                  " + "documentation":"

                  Contains metadata about a part of the generated response that is accompanied by a citation.

                  This data type is used in the following API operations:

                  " + }, + "GenerationConfiguration":{ + "type":"structure", + "members":{ + "promptTemplate":{ + "shape":"PromptTemplate", + "documentation":"

                  Contains the template for the prompt that's sent to the model for response generation.

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

                  Contains configurations for response generation based on the knowledge base query results.

                  This data type is used in the following API operations:

                  " }, "InferenceConfiguration":{ "type":"structure", @@ -405,7 +415,7 @@ }, "sessionState":{ "shape":"SessionState", - "documentation":"

                  Contains parameters that specify various attributes of the session.

                  " + "documentation":"

                  Contains parameters that specify various attributes of the session. For more information, see Control session context.

                  " } } }, @@ -485,7 +495,7 @@ "documentation":"

                  The text of the query made to the knowledge base.

                  " } }, - "documentation":"

                  Contains the query made to the knowledge base.

                  ", + "documentation":"

                  Contains the query made to the knowledge base.

                  This data type is used in the following API operations:

                  ", "sensitive":true }, "KnowledgeBaseQueryTextString":{ @@ -499,10 +509,10 @@ "members":{ "vectorSearchConfiguration":{ "shape":"KnowledgeBaseVectorSearchConfiguration", - "documentation":"

                  Contains details about how the results from the vector search should be returned.

                  " + "documentation":"

                  Contains details about how the results from the vector search should be returned. For more information, see Query configurations.

                  " } }, - "documentation":"

                  Contains details about how the results should be returned.

                  This data type is used in the following API operations:

                  " + "documentation":"

                  Contains configurations for the knowledge base query and retrieval process. For more information, see Query configurations.

                  This data type is used in the following API operations:

                  " }, "KnowledgeBaseRetrievalResult":{ "type":"structure", @@ -521,7 +531,7 @@ "documentation":"

                  The level of relevance of the result to the query.

                  " } }, - "documentation":"

                  Details about a result from querying the knowledge base.

                  " + "documentation":"

                  Details about a result from querying the knowledge base.

                  This data type is used in the following API operations:

                  " }, "KnowledgeBaseRetrievalResults":{ "type":"list", @@ -535,6 +545,10 @@ "modelArn" ], "members":{ + "generationConfiguration":{ + "shape":"GenerationConfiguration", + "documentation":"

                  Contains configurations for response generation based on the knowwledge base query results.

                  " + }, "knowledgeBaseId":{ "shape":"KnowledgeBaseId", "documentation":"

                  The unique identifier of the knowledge base that is queried and the foundation model used for generation.

                  " @@ -548,14 +562,14 @@ "documentation":"

                  Contains configurations for how to retrieve and return the knowledge base query.

                  " } }, - "documentation":"

                  Contains details about the resource being queried.

                  " + "documentation":"

                  Contains details about the resource being queried.

                  This data type is used in the following API operations:

                  " }, "KnowledgeBaseVectorSearchConfiguration":{ "type":"structure", "members":{ "numberOfResults":{ "shape":"KnowledgeBaseVectorSearchConfigurationNumberOfResultsInteger", - "documentation":"

                  The number of results to return.

                  The numberOfResults field is currently unsupported for RetrieveAndGenerate. Don't include it in this field if you are sending a RetrieveAndGenerate request.

                  ", + "documentation":"

                  The number of source chunks to retrieve.

                  ", "box":true }, "overrideSearchType":{ @@ -563,12 +577,12 @@ "documentation":"

                  By default, Amazon Bedrock decides a search strategy for you. If you're using an Amazon OpenSearch Serverless vector store that contains a filterable text field, you can specify whether to query the knowledge base with a HYBRID search using both vector embeddings and raw text, or SEMANTIC search using only vector embeddings. For other vector store configurations, only SEMANTIC search is available. For more information, see Test a knowledge base.

                  " } }, - "documentation":"

                  Configurations for how to carry out the search.

                  " + "documentation":"

                  Configurations for how to perform the search query and return results. For more information, see Query configurations.

                  This data type is used in the following API operations:

                  " }, "KnowledgeBaseVectorSearchConfigurationNumberOfResultsInteger":{ "type":"integer", "box":true, - "max":25, + "max":100, "min":1 }, "LambdaArn":{"type":"string"}, @@ -820,6 +834,16 @@ "key":{"shape":"String"}, "value":{"shape":"String"} }, + "PromptTemplate":{ + "type":"structure", + "members":{ + "textPromptTemplate":{ + "shape":"TextPromptTemplate", + "documentation":"

                  The template for the prompt that's sent to the model for response generation. You can include prompt placeholders, which become replaced before the prompt is sent to the model to provide instructions and context to the model. In addition, you can include XML tags to delineate meaningful sections of the prompt template.

                  For more information, see the following resources:

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

                  Contains the template for the prompt that's sent to the model for response generation. For more information, see Knowledge base prompt templates.

                  This data type is used in the following API operations:

                  " + }, "PromptText":{ "type":"string", "sensitive":true @@ -949,7 +973,7 @@ "documentation":"

                  The cited text from the data source.

                  " } }, - "documentation":"

                  Contains the cited text from the data source.

                  ", + "documentation":"

                  Contains the cited text from the data source.

                  This data type is used in the following API operations:

                  ", "sensitive":true }, "RetrievalResultLocation":{ @@ -965,7 +989,7 @@ "documentation":"

                  The type of the location of the data source.

                  " } }, - "documentation":"

                  Contains information about the location of the data source.

                  ", + "documentation":"

                  Contains information about the location of the data source.

                  This data type is used in the following API operations:

                  ", "sensitive":true }, "RetrievalResultLocationType":{ @@ -980,7 +1004,7 @@ "documentation":"

                  The S3 URI of the data source.

                  " } }, - "documentation":"

                  Contains the S3 location of the data source.

                  " + "documentation":"

                  Contains the S3 location of the data source.

                  This data type is used in the following API operations:

                  " }, "RetrieveAndGenerateConfiguration":{ "type":"structure", @@ -995,7 +1019,7 @@ "documentation":"

                  The type of resource that is queried by the request.

                  " } }, - "documentation":"

                  Contains details about the resource being queried.

                  " + "documentation":"

                  Contains details about the resource being queried.

                  This data type is used in the following API operations:

                  " }, "RetrieveAndGenerateInput":{ "type":"structure", @@ -1006,7 +1030,7 @@ "documentation":"

                  The query made to the knowledge base.

                  " } }, - "documentation":"

                  Contains the query made to the knowledge base.

                  ", + "documentation":"

                  Contains the query made to the knowledge base.

                  This data type is used in the following API operations:

                  ", "sensitive":true }, "RetrieveAndGenerateInputTextString":{ @@ -1023,7 +1047,7 @@ "documentation":"

                  The response generated from querying the knowledge base.

                  " } }, - "documentation":"

                  Contains the response generated from querying the knowledge base.

                  ", + "documentation":"

                  Contains the response generated from querying the knowledge base.

                  This data type is used in the following API operations:

                  ", "sensitive":true }, "RetrieveAndGenerateRequest":{ @@ -1032,11 +1056,11 @@ "members":{ "input":{ "shape":"RetrieveAndGenerateInput", - "documentation":"

                  Contains the query made to the knowledge base.

                  " + "documentation":"

                  Contains the query to be made to the knowledge base.

                  " }, "retrieveAndGenerateConfiguration":{ "shape":"RetrieveAndGenerateConfiguration", - "documentation":"

                  Contains details about the resource being queried and the foundation model used for generation.

                  " + "documentation":"

                  Contains configurations for the knowledge base query and retrieval process. For more information, see Query configurations.

                  " }, "sessionConfiguration":{ "shape":"RetrieveAndGenerateSessionConfiguration", @@ -1078,7 +1102,7 @@ "documentation":"

                  The ARN of the KMS key encrypting the session.

                  " } }, - "documentation":"

                  Contains configuration about the session with the knowledge base.

                  " + "documentation":"

                  Contains configuration about the session with the knowledge base.

                  This data type is used in the following API operations:

                  " }, "RetrieveAndGenerateType":{ "type":"string", @@ -1103,11 +1127,11 @@ }, "retrievalConfiguration":{ "shape":"KnowledgeBaseRetrievalConfiguration", - "documentation":"

                  Contains details about how the results should be returned.

                  " + "documentation":"

                  Contains configurations for the knowledge base query and retrieval process. For more information, see Query configurations.

                  " }, "retrievalQuery":{ "shape":"KnowledgeBaseQuery", - "documentation":"

                  The query to send the knowledge base.

                  " + "documentation":"

                  Contains the query to send the knowledge base.

                  " } } }, @@ -1137,7 +1161,7 @@ "documentation":"

                  Contains information about the location of the data source.

                  " } }, - "documentation":"

                  Contains metadata about a sources cited for the generated response.

                  " + "documentation":"

                  Contains metadata about a source cited for the generated response.

                  This data type is used in the following API operations:

                  " }, "RetrievedReferences":{ "type":"list", @@ -1185,7 +1209,7 @@ "documentation":"

                  Contains attributes that persist across a session and the values of those attributes.

                  " } }, - "documentation":"

                  Contains parameters that specify various attributes that persist across a session or prompt. You can define session state attributes as key-value pairs when writing a Lambda function for an action group or pass them when making an InvokeAgent request. Use session state attributes to control and provide conversational context for your agent and to help customize your agent's behavior. For more information, see Session context.

                  " + "documentation":"

                  Contains parameters that specify various attributes that persist across a session or prompt. You can define session state attributes as key-value pairs when writing a Lambda function for an action group or pass them when making an InvokeAgent request. Use session state attributes to control and provide conversational context for your agent and to help customize your agent's behavior. For more information, see Control session context.

                  " }, "Source":{ "type":"string", @@ -1208,7 +1232,7 @@ "documentation":"

                  Where the text with a citation starts in the generated output.

                  " } }, - "documentation":"

                  Contains information about where the text with a citation begins and ends in the generated output.

                  " + "documentation":"

                  Contains information about where the text with a citation begins and ends in the generated output.

                  This data type is used in the following API operations:

                  " }, "SpanEndInteger":{ "type":"integer", @@ -1233,6 +1257,12 @@ "max":1, "min":0 }, + "TextPromptTemplate":{ + "type":"string", + "max":4000, + "min":1, + "sensitive":true + }, "TextResponsePart":{ "type":"structure", "members":{ @@ -1245,7 +1275,7 @@ "documentation":"

                  The part of the generated text that contains a citation.

                  " } }, - "documentation":"

                  Contains the part of the generated text that contains a citation, alongside where it begins and ends.

                  ", + "documentation":"

                  Contains the part of the generated text that contains a citation, alongside where it begins and ends.

                  This data type is used in the following API operations:

                  ", "sensitive":true }, "ThrottlingException":{ diff --git a/tools/code-generation/api-descriptions/ce-2017-10-25.normal.json b/tools/code-generation/api-descriptions/ce-2017-10-25.normal.json index fc065683209..db0850939f3 100644 --- a/tools/code-generation/api-descriptions/ce-2017-10-25.normal.json +++ b/tools/code-generation/api-descriptions/ce-2017-10-25.normal.json @@ -414,6 +414,20 @@ ], "documentation":"

                  Retrieves a forecast for how much Amazon Web Services predicts that you will use over the forecast time period that you select, based on your past usage.

                  " }, + "ListCostAllocationTagBackfillHistory":{ + "name":"ListCostAllocationTagBackfillHistory", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListCostAllocationTagBackfillHistoryRequest"}, + "output":{"shape":"ListCostAllocationTagBackfillHistoryResponse"}, + "errors":[ + {"shape":"LimitExceededException"}, + {"shape":"InvalidNextTokenException"} + ], + "documentation":"

                  Retrieves a list of your historical cost allocation tag backfill requests.

                  " + }, "ListCostAllocationTags":{ "name":"ListCostAllocationTags", "http":{ @@ -483,6 +497,20 @@ ], "documentation":"

                  Modifies the feedback property of a given cost anomaly.

                  " }, + "StartCostAllocationTagBackfill":{ + "name":"StartCostAllocationTagBackfill", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"StartCostAllocationTagBackfillRequest"}, + "output":{"shape":"StartCostAllocationTagBackfillResponse"}, + "errors":[ + {"shape":"LimitExceededException"}, + {"shape":"BackfillLimitExceededException"} + ], + "documentation":"

                  Request a cost allocation tag backfill. This will backfill the activation status (either active or inactive) for all tag keys from para:BackfillFrom up to the when this request is made.

                  You can request a backfill once every 24 hours.

                  " + }, "StartSavingsPlansPurchaseRecommendationGeneration":{ "name":"StartSavingsPlansPurchaseRecommendationGeneration", "http":{ @@ -819,6 +847,14 @@ "key":{"shape":"AttributeType"}, "value":{"shape":"AttributeValue"} }, + "BackfillLimitExceededException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessage"} + }, + "documentation":"

                  A request to backfill is already in progress. Once the previous request is complete, you can create another request.

                  ", + "exception":true + }, "BillExpirationException":{ "type":"structure", "members":{ @@ -866,6 +902,46 @@ }, "documentation":"

                  The cost allocation tag structure. This includes detailed metadata for the CostAllocationTag object.

                  " }, + "CostAllocationTagBackfillRequest":{ + "type":"structure", + "members":{ + "BackfillFrom":{ + "shape":"ZonedDateTime", + "documentation":"

                  The date the backfill starts from.

                  " + }, + "RequestedAt":{ + "shape":"ZonedDateTime", + "documentation":"

                  The time when the backfill was requested.

                  " + }, + "CompletedAt":{ + "shape":"ZonedDateTime", + "documentation":"

                  The backfill completion time.

                  " + }, + "BackfillStatus":{ + "shape":"CostAllocationTagBackfillStatus", + "documentation":"

                  The status of the cost allocation tag backfill request.

                  " + }, + "LastUpdatedAt":{ + "shape":"ZonedDateTime", + "documentation":"

                  The time when the backfill status was last updated.

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

                  The cost allocation tag backfill request structure that contains metadata and details of a certain backfill.

                  " + }, + "CostAllocationTagBackfillRequestList":{ + "type":"list", + "member":{"shape":"CostAllocationTagBackfillRequest"}, + "max":1000, + "min":0 + }, + "CostAllocationTagBackfillStatus":{ + "type":"string", + "enum":[ + "SUCCEEDED", + "PROCESSING", + "FAILED" + ] + }, "CostAllocationTagKeyList":{ "type":"list", "member":{"shape":"TagKey"}, @@ -3078,6 +3154,33 @@ "documentation":"

                  You made too many calls in a short period of time. Try again later.

                  ", "exception":true }, + "ListCostAllocationTagBackfillHistoryRequest":{ + "type":"structure", + "members":{ + "NextToken":{ + "shape":"NextPageToken", + "documentation":"

                  The token to retrieve the next set of results. Amazon Web Services provides the token when the response from a previous call has more results than the maximum page size.

                  " + }, + "MaxResults":{ + "shape":"CostAllocationTagsMaxResults", + "documentation":"

                  The maximum number of objects that are returned for this request.

                  ", + "box":true + } + } + }, + "ListCostAllocationTagBackfillHistoryResponse":{ + "type":"structure", + "members":{ + "BackfillRequests":{ + "shape":"CostAllocationTagBackfillRequestList", + "documentation":"

                  The list of historical cost allocation tag backfill requests.

                  " + }, + "NextToken":{ + "shape":"NextPageToken", + "documentation":"

                  The token to retrieve the next set of results. Amazon Web Services provides the token when the response from a previous call has more results than the maximum page size.

                  " + } + } + }, "ListCostAllocationTagsRequest":{ "type":"structure", "members":{ @@ -4638,6 +4741,25 @@ "DESCENDING" ] }, + "StartCostAllocationTagBackfillRequest":{ + "type":"structure", + "required":["BackfillFrom"], + "members":{ + "BackfillFrom":{ + "shape":"ZonedDateTime", + "documentation":"

                  The date you want the backfill to start from. The date can only be a first day of the month (a billing start date). Dates can't precede the previous twelve months, or in the future.

                  " + } + } + }, + "StartCostAllocationTagBackfillResponse":{ + "type":"structure", + "members":{ + "BackfillRequest":{ + "shape":"CostAllocationTagBackfillRequest", + "documentation":"

                  An object containing detailed metadata of your new backfill request.

                  " + } + } + }, "StartSavingsPlansPurchaseRecommendationGenerationRequest":{ "type":"structure", "members":{ diff --git a/tools/code-generation/api-descriptions/ec2-2016-11-15.normal.json b/tools/code-generation/api-descriptions/ec2-2016-11-15.normal.json index 4a38230caa3..c2569f20a51 100644 --- a/tools/code-generation/api-descriptions/ec2-2016-11-15.normal.json +++ b/tools/code-generation/api-descriptions/ec2-2016-11-15.normal.json @@ -46103,13 +46103,15 @@ "members":{ "Key":{ "shape":"String", - "locationName":"key" + "documentation":"

                  The name of a DHCP option.

                  " }, "Values":{ "shape":"ValueStringList", + "documentation":"

                  The values for the DHCP option.

                  ", "locationName":"Value" } - } + }, + "documentation":"

                  Describes a DHCP configuration option.

                  " }, "NewDhcpConfigurationList":{ "type":"list", @@ -52481,7 +52483,7 @@ }, "MaxResults":{ "shape":"TransitGatewayMaxResults", - "documentation":"

                  The maximum number of routes to return. If a value is not provided, the default is 1000.

                  " + "documentation":"

                  The maximum number of routes to return.

                  " }, "DryRun":{ "shape":"Boolean", diff --git a/tools/code-generation/api-descriptions/ecs-2014-11-13.normal.json b/tools/code-generation/api-descriptions/ecs-2014-11-13.normal.json index 48b73003583..1c5d8e34a6b 100644 --- a/tools/code-generation/api-descriptions/ecs-2014-11-13.normal.json +++ b/tools/code-generation/api-descriptions/ecs-2014-11-13.normal.json @@ -65,7 +65,7 @@ {"shape":"AccessDeniedException"}, {"shape":"NamespaceNotFoundException"} ], - "documentation":"

                  Runs and maintains your desired number of tasks from a specified task definition. If the number of tasks running in a service drops below the desiredCount, Amazon ECS runs another copy of the task in the specified cluster. To update an existing service, see the UpdateService action.

                  The following change began on March 21, 2024. When the task definition revision is not specified, Amazon ECS resolves the task definition revision before it authorizes the task definition.

                  In addition to maintaining the desired count of tasks in your service, you can optionally run your service behind one or more load balancers. The load balancers distribute traffic across the tasks that are associated with the service. For more information, see Service load balancing in the Amazon Elastic Container Service Developer Guide.

                  You can attach Amazon EBS volumes to Amazon ECS tasks by configuring the volume when creating or updating a service. volumeConfigurations is only supported for REPLICA service and not DAEMON service. For more infomation, see Amazon EBS volumes in the Amazon Elastic Container Service Developer Guide.

                  Tasks for services that don't use a load balancer are considered healthy if they're in the RUNNING state. Tasks for services that use a load balancer are considered healthy if they're in the RUNNING state and are reported as healthy by the load balancer.

                  There are two service scheduler strategies available:

                  • REPLICA - The replica scheduling strategy places and maintains your desired number of tasks across your cluster. By default, the service scheduler spreads tasks across Availability Zones. You can use task placement strategies and constraints to customize task placement decisions. For more information, see Service scheduler concepts in the Amazon Elastic Container Service Developer Guide.

                  • DAEMON - The daemon scheduling strategy deploys exactly one task on each active container instance that meets all of the task placement constraints that you specify in your cluster. The service scheduler also evaluates the task placement constraints for running tasks. It also stops tasks that don't meet the placement constraints. When using this strategy, you don't need to specify a desired number of tasks, a task placement strategy, or use Service Auto Scaling policies. For more information, see Service scheduler concepts in the Amazon Elastic Container Service Developer Guide.

                  You can optionally specify a deployment configuration for your service. The deployment is initiated by changing properties. For example, the deployment might be initiated by the task definition or by your desired count of a service. This is done with an UpdateService operation. The default value for a replica service for minimumHealthyPercent is 100%. The default value for a daemon service for minimumHealthyPercent is 0%.

                  If a service uses the ECS deployment controller, the minimum healthy percent represents a lower limit on the number of tasks in a service that must remain in the RUNNING state during a deployment. Specifically, it represents it as a percentage of your desired number of tasks (rounded up to the nearest integer). This happens when any of your container instances are in the DRAINING state if the service contains tasks using the EC2 launch type. Using this parameter, you can deploy without using additional cluster capacity. For example, if you set your service to have desired number of four tasks and a minimum healthy percent of 50%, the scheduler might stop two existing tasks to free up cluster capacity before starting two new tasks. If they're in the RUNNING state, tasks for services that don't use a load balancer are considered healthy . If they're in the RUNNING state and reported as healthy by the load balancer, tasks for services that do use a load balancer are considered healthy . The default value for minimum healthy percent is 100%.

                  If a service uses the ECS deployment controller, the maximum percent parameter represents an upper limit on the number of tasks in a service that are allowed in the RUNNING or PENDING state during a deployment. Specifically, it represents it as a percentage of the desired number of tasks (rounded down to the nearest integer). This happens when any of your container instances are in the DRAINING state if the service contains tasks using the EC2 launch type. Using this parameter, you can define the deployment batch size. For example, if your service has a desired number of four tasks and a maximum percent value of 200%, the scheduler may start four new tasks before stopping the four older tasks (provided that the cluster resources required to do this are available). The default value for maximum percent is 200%.

                  If a service uses either the CODE_DEPLOY or EXTERNAL deployment controller types and tasks that use the EC2 launch type, the minimum healthy percent and maximum percent values are used only to define the lower and upper limit on the number of the tasks in the service that remain in the RUNNING state. This is while the container instances are in the DRAINING state. If the tasks in the service use the Fargate launch type, the minimum healthy percent and maximum percent values aren't used. This is the case even if they're currently visible when describing your service.

                  When creating a service that uses the EXTERNAL deployment controller, you can specify only parameters that aren't controlled at the task set level. The only required parameter is the service name. You control your services using the CreateTaskSet operation. For more information, see Amazon ECS deployment types in the Amazon Elastic Container Service Developer Guide.

                  When the service scheduler launches new tasks, it determines task placement. For information about task placement and task placement strategies, see Amazon ECS task placement in the Amazon Elastic Container Service Developer Guide

                  Starting April 15, 2023, Amazon Web Services will not onboard new customers to Amazon Elastic Inference (EI), and will help current customers migrate their workloads to options that offer better price and performance. After April 15, 2023, new customers will not be able to launch instances with Amazon EI accelerators in Amazon SageMaker, Amazon ECS, or Amazon EC2. However, customers who have used Amazon EI at least once during the past 30-day period are considered current customers and will be able to continue using the service.

                  " + "documentation":"

                  Runs and maintains your desired number of tasks from a specified task definition. If the number of tasks running in a service drops below the desiredCount, Amazon ECS runs another copy of the task in the specified cluster. To update an existing service, see the UpdateService action.

                  On March 21, 2024, a change was made to resolve the task definition revision before authorization. When a task definition revision is not specified, authorization will occur using the latest revision of a task definition.

                  In addition to maintaining the desired count of tasks in your service, you can optionally run your service behind one or more load balancers. The load balancers distribute traffic across the tasks that are associated with the service. For more information, see Service load balancing in the Amazon Elastic Container Service Developer Guide.

                  You can attach Amazon EBS volumes to Amazon ECS tasks by configuring the volume when creating or updating a service. volumeConfigurations is only supported for REPLICA service and not DAEMON service. For more infomation, see Amazon EBS volumes in the Amazon Elastic Container Service Developer Guide.

                  Tasks for services that don't use a load balancer are considered healthy if they're in the RUNNING state. Tasks for services that use a load balancer are considered healthy if they're in the RUNNING state and are reported as healthy by the load balancer.

                  There are two service scheduler strategies available:

                  • REPLICA - The replica scheduling strategy places and maintains your desired number of tasks across your cluster. By default, the service scheduler spreads tasks across Availability Zones. You can use task placement strategies and constraints to customize task placement decisions. For more information, see Service scheduler concepts in the Amazon Elastic Container Service Developer Guide.

                  • DAEMON - The daemon scheduling strategy deploys exactly one task on each active container instance that meets all of the task placement constraints that you specify in your cluster. The service scheduler also evaluates the task placement constraints for running tasks. It also stops tasks that don't meet the placement constraints. When using this strategy, you don't need to specify a desired number of tasks, a task placement strategy, or use Service Auto Scaling policies. For more information, see Service scheduler concepts in the Amazon Elastic Container Service Developer Guide.

                  You can optionally specify a deployment configuration for your service. The deployment is initiated by changing properties. For example, the deployment might be initiated by the task definition or by your desired count of a service. This is done with an UpdateService operation. The default value for a replica service for minimumHealthyPercent is 100%. The default value for a daemon service for minimumHealthyPercent is 0%.

                  If a service uses the ECS deployment controller, the minimum healthy percent represents a lower limit on the number of tasks in a service that must remain in the RUNNING state during a deployment. Specifically, it represents it as a percentage of your desired number of tasks (rounded up to the nearest integer). This happens when any of your container instances are in the DRAINING state if the service contains tasks using the EC2 launch type. Using this parameter, you can deploy without using additional cluster capacity. For example, if you set your service to have desired number of four tasks and a minimum healthy percent of 50%, the scheduler might stop two existing tasks to free up cluster capacity before starting two new tasks. If they're in the RUNNING state, tasks for services that don't use a load balancer are considered healthy . If they're in the RUNNING state and reported as healthy by the load balancer, tasks for services that do use a load balancer are considered healthy . The default value for minimum healthy percent is 100%.

                  If a service uses the ECS deployment controller, the maximum percent parameter represents an upper limit on the number of tasks in a service that are allowed in the RUNNING or PENDING state during a deployment. Specifically, it represents it as a percentage of the desired number of tasks (rounded down to the nearest integer). This happens when any of your container instances are in the DRAINING state if the service contains tasks using the EC2 launch type. Using this parameter, you can define the deployment batch size. For example, if your service has a desired number of four tasks and a maximum percent value of 200%, the scheduler may start four new tasks before stopping the four older tasks (provided that the cluster resources required to do this are available). The default value for maximum percent is 200%.

                  If a service uses either the CODE_DEPLOY or EXTERNAL deployment controller types and tasks that use the EC2 launch type, the minimum healthy percent and maximum percent values are used only to define the lower and upper limit on the number of the tasks in the service that remain in the RUNNING state. This is while the container instances are in the DRAINING state. If the tasks in the service use the Fargate launch type, the minimum healthy percent and maximum percent values aren't used. This is the case even if they're currently visible when describing your service.

                  When creating a service that uses the EXTERNAL deployment controller, you can specify only parameters that aren't controlled at the task set level. The only required parameter is the service name. You control your services using the CreateTaskSet operation. For more information, see Amazon ECS deployment types in the Amazon Elastic Container Service Developer Guide.

                  When the service scheduler launches new tasks, it determines task placement. For information about task placement and task placement strategies, see Amazon ECS task placement in the Amazon Elastic Container Service Developer Guide

                  Starting April 15, 2023, Amazon Web Services will not onboard new customers to Amazon Elastic Inference (EI), and will help current customers migrate their workloads to options that offer better price and performance. After April 15, 2023, new customers will not be able to launch instances with Amazon EI accelerators in Amazon SageMaker, Amazon ECS, or Amazon EC2. However, customers who have used Amazon EI at least once during the past 30-day period are considered current customers and will be able to continue using the service.

                  " }, "CreateTaskSet":{ "name":"CreateTaskSet", @@ -88,7 +88,7 @@ {"shape":"ServiceNotActiveException"}, {"shape":"NamespaceNotFoundException"} ], - "documentation":"

                  Create a task set in the specified cluster and service. This is used when a service uses the EXTERNAL deployment controller type. For more information, see Amazon ECS deployment types in the Amazon Elastic Container Service Developer Guide.

                  The following change began on March 21, 2024. When the task definition revision is not specified, Amazon ECS resolves the task definition revision before it authorizes the task definition.

                  For information about the maximum number of task sets and otther quotas, see Amazon ECS service quotas in the Amazon Elastic Container Service Developer Guide.

                  " + "documentation":"

                  Create a task set in the specified cluster and service. This is used when a service uses the EXTERNAL deployment controller type. For more information, see Amazon ECS deployment types in the Amazon Elastic Container Service Developer Guide.

                  On March 21, 2024, a change was made to resolve the task definition revision before authorization. When a task definition revision is not specified, authorization will occur using the latest revision of a task definition.

                  For information about the maximum number of task sets and otther quotas, see Amazon ECS service quotas in the Amazon Elastic Container Service Developer Guide.

                  " }, "DeleteAccountSetting":{ "name":"DeleteAccountSetting", @@ -673,7 +673,7 @@ {"shape":"BlockedException"}, {"shape":"ConflictException"} ], - "documentation":"

                  Starts a new task using the specified task definition.

                  The following change began on March 21, 2024. When the task definition revision is not specified, Amazon ECS resolves the task definition revision before it authorizes the task definition.

                  You can allow Amazon ECS to place tasks for you, or you can customize how Amazon ECS places tasks using placement constraints and placement strategies. For more information, see Scheduling Tasks in the Amazon Elastic Container Service Developer Guide.

                  Alternatively, you can use StartTask to use your own scheduler or place tasks manually on specific container instances.

                  Starting April 15, 2023, Amazon Web Services will not onboard new customers to Amazon Elastic Inference (EI), and will help current customers migrate their workloads to options that offer better price and performance. After April 15, 2023, new customers will not be able to launch instances with Amazon EI accelerators in Amazon SageMaker, Amazon ECS, or Amazon EC2. However, customers who have used Amazon EI at least once during the past 30-day period are considered current customers and will be able to continue using the service.

                  You can attach Amazon EBS volumes to Amazon ECS tasks by configuring the volume when creating or updating a service. For more infomation, see Amazon EBS volumes in the Amazon Elastic Container Service Developer Guide.

                  The Amazon ECS API follows an eventual consistency model. This is because of the distributed nature of the system supporting the API. This means that the result of an API command you run that affects your Amazon ECS resources might not be immediately visible to all subsequent commands you run. Keep this in mind when you carry out an API command that immediately follows a previous API command.

                  To manage eventual consistency, you can do the following:

                  • Confirm the state of the resource before you run a command to modify it. Run the DescribeTasks command using an exponential backoff algorithm to ensure that you allow enough time for the previous command to propagate through the system. To do this, run the DescribeTasks command repeatedly, starting with a couple of seconds of wait time and increasing gradually up to five minutes of wait time.

                  • Add wait time between subsequent commands, even if the DescribeTasks command returns an accurate response. Apply an exponential backoff algorithm starting with a couple of seconds of wait time, and increase gradually up to about five minutes of wait time.

                  " + "documentation":"

                  Starts a new task using the specified task definition.

                  On March 21, 2024, a change was made to resolve the task definition revision before authorization. When a task definition revision is not specified, authorization will occur using the latest revision of a task definition.

                  You can allow Amazon ECS to place tasks for you, or you can customize how Amazon ECS places tasks using placement constraints and placement strategies. For more information, see Scheduling Tasks in the Amazon Elastic Container Service Developer Guide.

                  Alternatively, you can use StartTask to use your own scheduler or place tasks manually on specific container instances.

                  Starting April 15, 2023, Amazon Web Services will not onboard new customers to Amazon Elastic Inference (EI), and will help current customers migrate their workloads to options that offer better price and performance. After April 15, 2023, new customers will not be able to launch instances with Amazon EI accelerators in Amazon SageMaker, Amazon ECS, or Amazon EC2. However, customers who have used Amazon EI at least once during the past 30-day period are considered current customers and will be able to continue using the service.

                  You can attach Amazon EBS volumes to Amazon ECS tasks by configuring the volume when creating or updating a service. For more infomation, see Amazon EBS volumes in the Amazon Elastic Container Service Developer Guide.

                  The Amazon ECS API follows an eventual consistency model. This is because of the distributed nature of the system supporting the API. This means that the result of an API command you run that affects your Amazon ECS resources might not be immediately visible to all subsequent commands you run. Keep this in mind when you carry out an API command that immediately follows a previous API command.

                  To manage eventual consistency, you can do the following:

                  • Confirm the state of the resource before you run a command to modify it. Run the DescribeTasks command using an exponential backoff algorithm to ensure that you allow enough time for the previous command to propagate through the system. To do this, run the DescribeTasks command repeatedly, starting with a couple of seconds of wait time and increasing gradually up to five minutes of wait time.

                  • Add wait time between subsequent commands, even if the DescribeTasks command returns an accurate response. Apply an exponential backoff algorithm starting with a couple of seconds of wait time, and increase gradually up to about five minutes of wait time.

                  " }, "StartTask":{ "name":"StartTask", @@ -690,7 +690,7 @@ {"shape":"ClusterNotFoundException"}, {"shape":"UnsupportedFeatureException"} ], - "documentation":"

                  Starts a new task from the specified task definition on the specified container instance or instances.

                  The following change began on March 21, 2024. When the task definition revision is not specified, Amazon ECS resolves the task definition revision before it authorizes the task definition.

                  Starting April 15, 2023, Amazon Web Services will not onboard new customers to Amazon Elastic Inference (EI), and will help current customers migrate their workloads to options that offer better price and performance. After April 15, 2023, new customers will not be able to launch instances with Amazon EI accelerators in Amazon SageMaker, Amazon ECS, or Amazon EC2. However, customers who have used Amazon EI at least once during the past 30-day period are considered current customers and will be able to continue using the service.

                  Alternatively, you can use RunTask to place tasks for you. For more information, see Scheduling Tasks in the Amazon Elastic Container Service Developer Guide.

                  You can attach Amazon EBS volumes to Amazon ECS tasks by configuring the volume when creating or updating a service. For more infomation, see Amazon EBS volumes in the Amazon Elastic Container Service Developer Guide.

                  " + "documentation":"

                  Starts a new task from the specified task definition on the specified container instance or instances.

                  On March 21, 2024, a change was made to resolve the task definition revision before authorization. When a task definition revision is not specified, authorization will occur using the latest revision of a task definition.

                  Starting April 15, 2023, Amazon Web Services will not onboard new customers to Amazon Elastic Inference (EI), and will help current customers migrate their workloads to options that offer better price and performance. After April 15, 2023, new customers will not be able to launch instances with Amazon EI accelerators in Amazon SageMaker, Amazon ECS, or Amazon EC2. However, customers who have used Amazon EI at least once during the past 30-day period are considered current customers and will be able to continue using the service.

                  Alternatively, you can use RunTask to place tasks for you. For more information, see Scheduling Tasks in the Amazon Elastic Container Service Developer Guide.

                  You can attach Amazon EBS volumes to Amazon ECS tasks by configuring the volume when creating or updating a service. For more infomation, see Amazon EBS volumes in the Amazon Elastic Container Service Developer Guide.

                  " }, "StopTask":{ "name":"StopTask", @@ -893,7 +893,7 @@ {"shape":"NamespaceNotFoundException"}, {"shape":"UnsupportedFeatureException"} ], - "documentation":"

                  Modifies the parameters of a service.

                  The following change began on March 21, 2024. When the task definition revision is not specified, Amazon ECS resolves the task definition revision before it authorizes the task definition.

                  For services using the rolling update (ECS) you can update the desired count, deployment configuration, network configuration, load balancers, service registries, enable ECS managed tags option, propagate tags option, task placement constraints and strategies, and task definition. When you update any of these parameters, Amazon ECS starts new tasks with the new configuration.

                  You can attach Amazon EBS volumes to Amazon ECS tasks by configuring the volume when starting or running a task, or when creating or updating a service. For more infomation, see Amazon EBS volumes in the Amazon Elastic Container Service Developer Guide. You can update your volume configurations and trigger a new deployment. volumeConfigurations is only supported for REPLICA service and not DAEMON service. If you leave volumeConfigurations null, it doesn't trigger a new deployment. For more infomation on volumes, see Amazon EBS volumes in the Amazon Elastic Container Service Developer Guide.

                  For services using the blue/green (CODE_DEPLOY) deployment controller, only the desired count, deployment configuration, health check grace period, task placement constraints and strategies, enable ECS managed tags option, and propagate tags can be updated using this API. If the network configuration, platform version, task definition, or load balancer need to be updated, create a new CodeDeploy deployment. For more information, see CreateDeployment in the CodeDeploy API Reference.

                  For services using an external deployment controller, you can update only the desired count, task placement constraints and strategies, health check grace period, enable ECS managed tags option, and propagate tags option, using this API. If the launch type, load balancer, network configuration, platform version, or task definition need to be updated, create a new task set For more information, see CreateTaskSet.

                  You can add to or subtract from the number of instantiations of a task definition in a service by specifying the cluster that the service is running in and a new desiredCount parameter.

                  You can attach Amazon EBS volumes to Amazon ECS tasks by configuring the volume when starting or running a task, or when creating or updating a service. For more infomation, see Amazon EBS volumes in the Amazon Elastic Container Service Developer Guide.

                  If you have updated the container image of your application, you can create a new task definition with that image and deploy it to your service. The service scheduler uses the minimum healthy percent and maximum percent parameters (in the service's deployment configuration) to determine the deployment strategy.

                  If your updated Docker image uses the same tag as what is in the existing task definition for your service (for example, my_image:latest), you don't need to create a new revision of your task definition. You can update the service using the forceNewDeployment option. The new tasks launched by the deployment pull the current image/tag combination from your repository when they start.

                  You can also update the deployment configuration of a service. When a deployment is triggered by updating the task definition of a service, the service scheduler uses the deployment configuration parameters, minimumHealthyPercent and maximumPercent, to determine the deployment strategy.

                  • If minimumHealthyPercent is below 100%, the scheduler can ignore desiredCount temporarily during a deployment. For example, if desiredCount is four tasks, a minimum of 50% allows the scheduler to stop two existing tasks before starting two new tasks. Tasks for services that don't use a load balancer are considered healthy if they're in the RUNNING state. Tasks for services that use a load balancer are considered healthy if they're in the RUNNING state and are reported as healthy by the load balancer.

                  • The maximumPercent parameter represents an upper limit on the number of running tasks during a deployment. You can use it to define the deployment batch size. For example, if desiredCount is four tasks, a maximum of 200% starts four new tasks before stopping the four older tasks (provided that the cluster resources required to do this are available).

                  When UpdateService stops a task during a deployment, the equivalent of docker stop is issued to the containers running in the task. This results in a SIGTERM and a 30-second timeout. After this, SIGKILL is sent and the containers are forcibly stopped. If the container handles the SIGTERM gracefully and exits within 30 seconds from receiving it, no SIGKILL is sent.

                  When the service scheduler launches new tasks, it determines task placement in your cluster with the following logic.

                  • Determine which of the container instances in your cluster can support your service's task definition. For example, they have the required CPU, memory, ports, and container instance attributes.

                  • By default, the service scheduler attempts to balance tasks across Availability Zones in this manner even though you can choose a different placement strategy.

                    • Sort the valid container instances by the fewest number of running tasks for this service in the same Availability Zone as the instance. For example, if zone A has one running service task and zones B and C each have zero, valid container instances in either zone B or C are considered optimal for placement.

                    • Place the new service task on a valid container instance in an optimal Availability Zone (based on the previous steps), favoring container instances with the fewest number of running tasks for this service.

                  When the service scheduler stops running tasks, it attempts to maintain balance across the Availability Zones in your cluster using the following logic:

                  • Sort the container instances by the largest number of running tasks for this service in the same Availability Zone as the instance. For example, if zone A has one running service task and zones B and C each have two, container instances in either zone B or C are considered optimal for termination.

                  • Stop the task on a container instance in an optimal Availability Zone (based on the previous steps), favoring container instances with the largest number of running tasks for this service.

                  You must have a service-linked role when you update any of the following service properties:

                  • loadBalancers,

                  • serviceRegistries

                  For more information about the role see the CreateService request parameter role .

                  " + "documentation":"

                  Modifies the parameters of a service.

                  On March 21, 2024, a change was made to resolve the task definition revision before authorization. When a task definition revision is not specified, authorization will occur using the latest revision of a task definition.

                  For services using the rolling update (ECS) you can update the desired count, deployment configuration, network configuration, load balancers, service registries, enable ECS managed tags option, propagate tags option, task placement constraints and strategies, and task definition. When you update any of these parameters, Amazon ECS starts new tasks with the new configuration.

                  You can attach Amazon EBS volumes to Amazon ECS tasks by configuring the volume when starting or running a task, or when creating or updating a service. For more infomation, see Amazon EBS volumes in the Amazon Elastic Container Service Developer Guide. You can update your volume configurations and trigger a new deployment. volumeConfigurations is only supported for REPLICA service and not DAEMON service. If you leave volumeConfigurations null, it doesn't trigger a new deployment. For more infomation on volumes, see Amazon EBS volumes in the Amazon Elastic Container Service Developer Guide.

                  For services using the blue/green (CODE_DEPLOY) deployment controller, only the desired count, deployment configuration, health check grace period, task placement constraints and strategies, enable ECS managed tags option, and propagate tags can be updated using this API. If the network configuration, platform version, task definition, or load balancer need to be updated, create a new CodeDeploy deployment. For more information, see CreateDeployment in the CodeDeploy API Reference.

                  For services using an external deployment controller, you can update only the desired count, task placement constraints and strategies, health check grace period, enable ECS managed tags option, and propagate tags option, using this API. If the launch type, load balancer, network configuration, platform version, or task definition need to be updated, create a new task set For more information, see CreateTaskSet.

                  You can add to or subtract from the number of instantiations of a task definition in a service by specifying the cluster that the service is running in and a new desiredCount parameter.

                  You can attach Amazon EBS volumes to Amazon ECS tasks by configuring the volume when starting or running a task, or when creating or updating a service. For more infomation, see Amazon EBS volumes in the Amazon Elastic Container Service Developer Guide.

                  If you have updated the container image of your application, you can create a new task definition with that image and deploy it to your service. The service scheduler uses the minimum healthy percent and maximum percent parameters (in the service's deployment configuration) to determine the deployment strategy.

                  If your updated Docker image uses the same tag as what is in the existing task definition for your service (for example, my_image:latest), you don't need to create a new revision of your task definition. You can update the service using the forceNewDeployment option. The new tasks launched by the deployment pull the current image/tag combination from your repository when they start.

                  You can also update the deployment configuration of a service. When a deployment is triggered by updating the task definition of a service, the service scheduler uses the deployment configuration parameters, minimumHealthyPercent and maximumPercent, to determine the deployment strategy.

                  • If minimumHealthyPercent is below 100%, the scheduler can ignore desiredCount temporarily during a deployment. For example, if desiredCount is four tasks, a minimum of 50% allows the scheduler to stop two existing tasks before starting two new tasks. Tasks for services that don't use a load balancer are considered healthy if they're in the RUNNING state. Tasks for services that use a load balancer are considered healthy if they're in the RUNNING state and are reported as healthy by the load balancer.

                  • The maximumPercent parameter represents an upper limit on the number of running tasks during a deployment. You can use it to define the deployment batch size. For example, if desiredCount is four tasks, a maximum of 200% starts four new tasks before stopping the four older tasks (provided that the cluster resources required to do this are available).

                  When UpdateService stops a task during a deployment, the equivalent of docker stop is issued to the containers running in the task. This results in a SIGTERM and a 30-second timeout. After this, SIGKILL is sent and the containers are forcibly stopped. If the container handles the SIGTERM gracefully and exits within 30 seconds from receiving it, no SIGKILL is sent.

                  When the service scheduler launches new tasks, it determines task placement in your cluster with the following logic.

                  • Determine which of the container instances in your cluster can support your service's task definition. For example, they have the required CPU, memory, ports, and container instance attributes.

                  • By default, the service scheduler attempts to balance tasks across Availability Zones in this manner even though you can choose a different placement strategy.

                    • Sort the valid container instances by the fewest number of running tasks for this service in the same Availability Zone as the instance. For example, if zone A has one running service task and zones B and C each have zero, valid container instances in either zone B or C are considered optimal for placement.

                    • Place the new service task on a valid container instance in an optimal Availability Zone (based on the previous steps), favoring container instances with the fewest number of running tasks for this service.

                  When the service scheduler stops running tasks, it attempts to maintain balance across the Availability Zones in your cluster using the following logic:

                  • Sort the container instances by the largest number of running tasks for this service in the same Availability Zone as the instance. For example, if zone A has one running service task and zones B and C each have two, container instances in either zone B or C are considered optimal for termination.

                  • Stop the task on a container instance in an optimal Availability Zone (based on the previous steps), favoring container instances with the largest number of running tasks for this service.

                  You must have a service-linked role when you update any of the following service properties:

                  • loadBalancers,

                  • serviceRegistries

                  For more information about the role see the CreateService request parameter role .

                  " }, "UpdateServicePrimaryTaskSet":{ "name":"UpdateServicePrimaryTaskSet", diff --git a/tools/code-generation/api-descriptions/finspace-2021-03-12.normal.json b/tools/code-generation/api-descriptions/finspace-2021-03-12.normal.json index 0e317ea75f4..71509febcd1 100644 --- a/tools/code-generation/api-descriptions/finspace-2021-03-12.normal.json +++ b/tools/code-generation/api-descriptions/finspace-2021-03-12.normal.json @@ -230,6 +230,23 @@ ], "documentation":"

                  Deletes a kdb cluster.

                  " }, + "DeleteKxClusterNode":{ + "name":"DeleteKxClusterNode", + "http":{ + "method":"DELETE", + "requestUri":"/kx/environments/{environmentId}/clusters/{clusterName}/nodes/{nodeId}" + }, + "input":{"shape":"DeleteKxClusterNodeRequest"}, + "output":{"shape":"DeleteKxClusterNodeResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ValidationException"}, + {"shape":"ResourceNotFoundException"} + ], + "documentation":"

                  Deletes the specified nodes from a cluster.

                  " + }, "DeleteKxDatabase":{ "name":"DeleteKxDatabase", "http":{ @@ -1176,7 +1193,7 @@ }, "changeRequests":{ "shape":"ChangeRequests", - "documentation":"

                  A list of change request objects that are run in order. A change request object consists of changeType , s3Path, and dbPath. A changeType can has the following values:

                  • PUT – Adds or updates files in a database.

                  • DELETE – Deletes files in a database.

                  All the change requests require a mandatory dbPath attribute that defines the path within the database directory. All database paths must start with a leading / and end with a trailing /. The s3Path attribute defines the s3 source file path and is required for a PUT change type. The s3path must end with a trailing / if it is a directory and must end without a trailing / if it is a file.

                  Here are few examples of how you can use the change request object:

                  1. This request adds a single sym file at database root location.

                    { \"changeType\": \"PUT\", \"s3Path\":\"s3://bucket/db/sym\", \"dbPath\":\"/\"}

                  2. This request adds files in the given s3Path under the 2020.01.02 partition of the database.

                    { \"changeType\": \"PUT\", \"s3Path\":\"s3://bucket/db/2020.01.02/\", \"dbPath\":\"/2020.01.02/\"}

                  3. This request adds files in the given s3Path under the taq table partition of the database.

                    [ { \"changeType\": \"PUT\", \"s3Path\":\"s3://bucket/db/2020.01.02/taq/\", \"dbPath\":\"/2020.01.02/taq/\"}]

                  4. This request deletes the 2020.01.02 partition of the database.

                    [{ \"changeType\": \"DELETE\", \"dbPath\": \"/2020.01.02/\"} ]

                  5. The DELETE request allows you to delete the existing files under the 2020.01.02 partition of the database, and the PUT request adds a new taq table under it.

                    [ {\"changeType\": \"DELETE\", \"dbPath\":\"/2020.01.02/\"}, {\"changeType\": \"PUT\", \"s3Path\":\"s3://bucket/db/2020.01.02/taq/\", \"dbPath\":\"/2020.01.02/taq/\"}]

                  " + "documentation":"

                  A list of change request objects that are run in order. A change request object consists of changeType , s3Path, and dbPath. A changeType can have the following values:

                  • PUT – Adds or updates files in a database.

                  • DELETE – Deletes files in a database.

                  All the change requests require a mandatory dbPath attribute that defines the path within the database directory. All database paths must start with a leading / and end with a trailing /. The s3Path attribute defines the s3 source file path and is required for a PUT change type. The s3path must end with a trailing / if it is a directory and must end without a trailing / if it is a file.

                  Here are few examples of how you can use the change request object:

                  1. This request adds a single sym file at database root location.

                    { \"changeType\": \"PUT\", \"s3Path\":\"s3://bucket/db/sym\", \"dbPath\":\"/\"}

                  2. This request adds files in the given s3Path under the 2020.01.02 partition of the database.

                    { \"changeType\": \"PUT\", \"s3Path\":\"s3://bucket/db/2020.01.02/\", \"dbPath\":\"/2020.01.02/\"}

                  3. This request adds files in the given s3Path under the taq table partition of the database.

                    [ { \"changeType\": \"PUT\", \"s3Path\":\"s3://bucket/db/2020.01.02/taq/\", \"dbPath\":\"/2020.01.02/taq/\"}]

                  4. This request deletes the 2020.01.02 partition of the database.

                    [{ \"changeType\": \"DELETE\", \"dbPath\": \"/2020.01.02/\"} ]

                  5. The DELETE request allows you to delete the existing files under the 2020.01.02 partition of the database, and the PUT request adds a new taq table under it.

                    [ {\"changeType\": \"DELETE\", \"dbPath\":\"/2020.01.02/\"}, {\"changeType\": \"PUT\", \"s3Path\":\"s3://bucket/db/2020.01.02/taq/\", \"dbPath\":\"/2020.01.02/taq/\"}]

                  " }, "clientToken":{ "shape":"ClientTokenString", @@ -1960,6 +1977,39 @@ "members":{ } }, + "DeleteKxClusterNodeRequest":{ + "type":"structure", + "required":[ + "clusterName", + "nodeId", + "environmentId" + ], + "members":{ + "environmentId":{ + "shape":"KxEnvironmentId", + "documentation":"

                  A unique identifier for the kdb environment.

                  ", + "location":"uri", + "locationName":"environmentId" + }, + "clusterName":{ + "shape":"KxClusterName", + "documentation":"

                  The name of the cluster, for which you want to delete the nodes.

                  ", + "location":"uri", + "locationName":"clusterName" + }, + "nodeId":{ + "shape":"KxClusterNodeIdString", + "documentation":"

                  A unique identifier for the node that you want to delete.

                  ", + "location":"uri", + "locationName":"nodeId" + } + } + }, + "DeleteKxClusterNodeResponse":{ + "type":"structure", + "members":{ + } + }, "DeleteKxClusterRequest":{ "type":"structure", "required":[ @@ -3751,7 +3801,7 @@ }, "size":{ "shape":"KxNAS1Size", - "documentation":"

                  The size of the network attached storage.

                  " + "documentation":"

                  The size of the network attached storage. For storage type SSD_1000 and SSD_250 you can select the minimum size as 1200 GB or increments of 2400 GB. For storage type HDD_12 you can select the minimum size as 6000 GB or increments of 6000 GB.

                  " } }, "documentation":"

                  The structure containing the size and type of the network attached storage (NAS_1) file system volume.

                  " @@ -3782,10 +3832,21 @@ "launchTime":{ "shape":"Timestamp", "documentation":"

                  The time when a particular node is started. The value is determined as epoch time in milliseconds. For example, the value for Monday, November 1, 2021 12:00:00 PM UTC is specified as 1635768000000.

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

                  Specifies the status of the cluster nodes.

                  • RUNNING – The node is actively serving.

                  • PROVISIONING – The node is being prepared.

                  " } }, "documentation":"

                  A structure that stores metadata for a kdb node.

                  " }, + "KxNodeStatus":{ + "type":"string", + "enum":[ + "RUNNING", + "PROVISIONING" + ] + }, "KxNodeSummaries":{ "type":"list", "member":{"shape":"KxNode"}