From 960b455f2942ba12d03a990a4889f0d53e0ac6b1 Mon Sep 17 00:00:00 2001 From: aws-sdk-cpp-automation Date: Mon, 20 May 2024 18:21:42 +0000 Subject: [PATCH] This release adds support for EngineLifecycleSupport on DBInstances, DBClusters, and GlobalClusters. add v2 smoke tests and smithy smokeTests trait for SDK testing Added ListControlOperations API and filtering support for ListEnabledControls API. Updates also includes added metadata for enabled controls and control operations. This release adds support for using Guardrails with Bedrock Agents. This release adds support for using Guardrails with Bedrock Agents. Add support for creating an OpenSearch Ingestion pipeline that is attached to a provided VPC. Add information about the destinations of an OpenSearch Ingestion pipeline to the GetPipeline and ListPipelines APIs. --- VERSION | 2 +- .../model/GuardrailAction.h | 31 ++ .../model/GuardrailAssessment.h | 184 ++++++++ .../model/GuardrailContentFilter.h | 155 +++++++ .../model/GuardrailContentFilterConfidence.h | 33 ++ .../model/GuardrailContentFilterType.h | 35 ++ .../model/GuardrailContentPolicyAction.h | 30 ++ .../model/GuardrailContentPolicyAssessment.h | 98 +++++ .../model/GuardrailCustomWord.h | 124 ++++++ .../model/GuardrailManagedWord.h | 159 +++++++ .../model/GuardrailManagedWordType.h | 30 ++ .../model/GuardrailPiiEntityFilter.h | 159 +++++++ .../model/GuardrailPiiEntityType.h | 60 +++ .../model/GuardrailRegexFilter.h | 212 +++++++++ ...uardrailSensitiveInformationPolicyAction.h | 31 ++ ...railSensitiveInformationPolicyAssessment.h | 151 +++++++ .../model/GuardrailTopic.h | 159 +++++++ .../model/GuardrailTopicPolicyAction.h | 30 ++ .../model/GuardrailTopicPolicyAssessment.h | 90 ++++ .../model/GuardrailTopicType.h | 30 ++ .../model/GuardrailTrace.h | 213 +++++++++ .../model/GuardrailWordPolicyAction.h | 30 ++ .../model/GuardrailWordPolicyAssessment.h | 135 ++++++ .../aws/bedrock-agent-runtime/model/Trace.h | 35 ++ .../source/model/GuardrailAction.cpp | 72 ++++ .../source/model/GuardrailAssessment.cpp | 104 +++++ .../source/model/GuardrailContentFilter.cpp | 92 ++++ .../GuardrailContentFilterConfidence.cpp | 86 ++++ .../model/GuardrailContentFilterType.cpp | 100 +++++ .../model/GuardrailContentPolicyAction.cpp | 65 +++ .../GuardrailContentPolicyAssessment.cpp | 67 +++ .../source/model/GuardrailCustomWord.cpp | 75 ++++ .../source/model/GuardrailManagedWord.cpp | 91 ++++ .../source/model/GuardrailManagedWordType.cpp | 65 +++ .../source/model/GuardrailPiiEntityFilter.cpp | 91 ++++ .../source/model/GuardrailPiiEntityType.cpp | 275 ++++++++++++ .../source/model/GuardrailRegexFilter.cpp | 105 +++++ ...rdrailSensitiveInformationPolicyAction.cpp | 72 ++++ ...ilSensitiveInformationPolicyAssessment.cpp | 90 ++++ .../source/model/GuardrailTopic.cpp | 91 ++++ .../model/GuardrailTopicPolicyAction.cpp | 65 +++ .../model/GuardrailTopicPolicyAssessment.cpp | 67 +++ .../source/model/GuardrailTopicType.cpp | 65 +++ .../source/model/GuardrailTrace.cpp | 121 ++++++ .../model/GuardrailWordPolicyAction.cpp | 65 +++ .../model/GuardrailWordPolicyAssessment.cpp | 90 ++++ .../source/model/Trace.cpp | 15 + .../include/aws/bedrock-agent/model/Agent.h | 35 ++ .../aws/bedrock-agent/model/AgentSummary.h | 35 ++ .../aws/bedrock-agent/model/AgentVersion.h | 35 ++ .../bedrock-agent/model/AgentVersionSummary.h | 35 ++ .../bedrock-agent/model/CreateAgentRequest.h | 41 ++ .../model/GuardrailConfiguration.h | 132 ++++++ .../bedrock-agent/model/PromptConfiguration.h | 32 +- .../model/PromptOverrideConfiguration.h | 32 +- .../bedrock-agent/model/UpdateAgentRequest.h | 41 ++ .../source/model/Agent.cpp | 15 + .../source/model/AgentSummary.cpp | 15 + .../source/model/AgentVersion.cpp | 15 + .../source/model/AgentVersionSummary.cpp | 15 + .../source/model/CreateAgentRequest.cpp | 7 + .../source/model/GuardrailConfiguration.cpp | 74 ++++ .../source/model/UpdateAgentRequest.cpp | 7 + .../aws/controltower/ControlTowerClient.h | 154 +++++-- .../ControlTowerServiceClientModel.h | 5 + .../aws/controltower/model/ControlOperation.h | 178 +++++++- .../model/ControlOperationFilter.h | 292 +++++++++++++ .../model/ControlOperationSummary.h | 404 ++++++++++++++++++ .../model/CreateLandingZoneRequest.h | 36 +- .../controltower/model/EnabledControlFilter.h | 186 ++++++++ .../controltower/model/LandingZoneDetail.h | 24 +- .../model/ListControlOperationsRequest.h | 148 +++++++ .../model/ListControlOperationsResult.h | 141 ++++++ .../model/ListEnabledControlsRequest.h | 41 ++ .../model/UpdateLandingZoneRequest.h | 48 +-- .../source/ControlTowerClient.cpp | 28 ++ .../source/model/ControlOperation.cpp | 64 ++- .../source/model/ControlOperationFilter.cpp | 159 +++++++ .../source/model/ControlOperationSummary.cpp | 179 ++++++++ .../source/model/EnabledControlFilter.cpp | 113 +++++ .../model/ListControlOperationsRequest.cpp | 50 +++ .../model/ListControlOperationsResult.cpp | 57 +++ .../model/ListEnabledControlsRequest.cpp | 7 + .../include/aws/osis/OSISErrors.h | 1 + .../include/aws/osis/model/BufferOptions.h | 4 +- .../aws/osis/model/CloudWatchLogDestination.h | 16 +- .../aws/osis/model/EncryptionAtRestOptions.h | 34 +- .../osis/model/GetPipelineBlueprintRequest.h | 50 +++ .../osis/model/GetPipelineBlueprintResult.h | 38 ++ .../aws/osis/model/GetPipelineRequest.h | 16 +- .../include/aws/osis/model/Pipeline.h | 77 +++- .../aws/osis/model/PipelineBlueprint.h | 176 ++++++++ .../aws/osis/model/PipelineBlueprintSummary.h | 176 ++++++++ .../aws/osis/model/PipelineDestination.h | 133 ++++++ .../include/aws/osis/model/PipelineSummary.h | 45 ++ .../aws/osis/model/ServiceVpcEndpoint.h | 16 +- .../aws/osis/model/VpcAttachmentOptions.h | 120 ++++++ .../include/aws/osis/model/VpcOptions.h | 35 ++ .../aws-cpp-sdk-osis/source/OSISErrors.cpp | 7 +- .../model/GetPipelineBlueprintRequest.cpp | 17 +- .../model/GetPipelineBlueprintResult.cpp | 6 + .../source/model/Pipeline.cpp | 23 + .../source/model/PipelineBlueprint.cpp | 64 ++- .../source/model/PipelineBlueprintSummary.cpp | 64 ++- .../source/model/PipelineDestination.cpp | 74 ++++ .../source/model/PipelineSummary.cpp | 23 + .../source/model/VpcAttachmentOptions.cpp | 76 ++++ .../source/model/VpcOptions.cpp | 19 +- .../aws/rds/model/CreateDBClusterRequest.h | 376 +++++++++++++--- .../aws/rds/model/CreateDBInstanceRequest.h | 172 ++++++++ .../model/CreateEventSubscriptionRequest.h | 72 ++-- .../rds/model/CreateGlobalClusterRequest.h | 164 +++++++ .../include/aws/rds/model/DBCluster.h | 52 +++ .../include/aws/rds/model/DBInstance.h | 52 +++ .../include/aws/rds/model/GlobalCluster.h | 52 +++ .../model/ModifyEventSubscriptionRequest.h | 72 ++-- .../aws/rds/model/PendingMaintenanceAction.h | 48 ++- .../rds/model/RestoreDBClusterFromS3Request.h | 204 +++++++++ .../RestoreDBClusterFromSnapshotRequest.h | 204 +++++++++ .../RestoreDBClusterToPointInTimeRequest.h | 204 +++++++++ .../RestoreDBInstanceFromDBSnapshotRequest.h | 180 ++++++++ .../model/RestoreDBInstanceFromS3Request.h | 180 ++++++++ .../RestoreDBInstanceToPointInTimeRequest.h | 180 ++++++++ .../include/aws/rds/model/UpgradeTarget.h | 12 +- .../source/model/CreateDBClusterRequest.cpp | 6 + .../source/model/CreateDBInstanceRequest.cpp | 8 +- .../model/CreateGlobalClusterRequest.cpp | 6 + .../source/model/DBCluster.cpp | 21 +- .../source/model/DBInstance.cpp | 21 +- .../source/model/GlobalCluster.cpp | 17 + .../model/RestoreDBClusterFromS3Request.cpp | 8 +- .../RestoreDBClusterFromSnapshotRequest.cpp | 8 +- .../RestoreDBClusterToPointInTimeRequest.cpp | 8 +- ...RestoreDBInstanceFromDBSnapshotRequest.cpp | 8 +- .../model/RestoreDBInstanceFromS3Request.cpp | 8 +- .../RestoreDBInstanceToPointInTimeRequest.cpp | 8 +- .../model/DescribeSecretResult.h | 15 +- .../model/GetSecretValueRequest.h | 40 +- .../model/RotateSecretRequest.h | 8 +- .../model/ValidateResourcePolicyRequest.h | 24 +- .../include/aws/core/VersionConfig.h | 4 +- .../bedrock-agent-2023-06-05.normal.json | 60 ++- ...drock-agent-runtime-2023-07-26.normal.json | 340 +++++++++++++++ .../controltower-2018-05-10.normal.json | 238 ++++++++++- .../osis-2022-01-01.normal.json | 132 +++++- .../rds-2014-10-31.normal.json | 62 ++- .../secretsmanager-2017-10-17.normal.json | 8 +- 147 files changed, 11274 insertions(+), 443 deletions(-) create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailAction.h create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailAssessment.h create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailContentFilter.h create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailContentFilterConfidence.h create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailContentFilterType.h create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailContentPolicyAction.h create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailContentPolicyAssessment.h create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailCustomWord.h create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailManagedWord.h create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailManagedWordType.h create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailPiiEntityFilter.h create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailPiiEntityType.h create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailRegexFilter.h create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailSensitiveInformationPolicyAction.h create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailSensitiveInformationPolicyAssessment.h create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailTopic.h create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailTopicPolicyAction.h create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailTopicPolicyAssessment.h create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailTopicType.h create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailTrace.h create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailWordPolicyAction.h create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailWordPolicyAssessment.h create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailAction.cpp create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailAssessment.cpp create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailContentFilter.cpp create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailContentFilterConfidence.cpp create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailContentFilterType.cpp create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailContentPolicyAction.cpp create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailContentPolicyAssessment.cpp create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailCustomWord.cpp create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailManagedWord.cpp create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailManagedWordType.cpp create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailPiiEntityFilter.cpp create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailPiiEntityType.cpp create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailRegexFilter.cpp create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailSensitiveInformationPolicyAction.cpp create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailSensitiveInformationPolicyAssessment.cpp create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailTopic.cpp create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailTopicPolicyAction.cpp create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailTopicPolicyAssessment.cpp create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailTopicType.cpp create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailTrace.cpp create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailWordPolicyAction.cpp create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailWordPolicyAssessment.cpp create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/GuardrailConfiguration.h create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent/source/model/GuardrailConfiguration.cpp create mode 100644 generated/src/aws-cpp-sdk-controltower/include/aws/controltower/model/ControlOperationFilter.h create mode 100644 generated/src/aws-cpp-sdk-controltower/include/aws/controltower/model/ControlOperationSummary.h create mode 100644 generated/src/aws-cpp-sdk-controltower/include/aws/controltower/model/EnabledControlFilter.h create mode 100644 generated/src/aws-cpp-sdk-controltower/include/aws/controltower/model/ListControlOperationsRequest.h create mode 100644 generated/src/aws-cpp-sdk-controltower/include/aws/controltower/model/ListControlOperationsResult.h create mode 100644 generated/src/aws-cpp-sdk-controltower/source/model/ControlOperationFilter.cpp create mode 100644 generated/src/aws-cpp-sdk-controltower/source/model/ControlOperationSummary.cpp create mode 100644 generated/src/aws-cpp-sdk-controltower/source/model/EnabledControlFilter.cpp create mode 100644 generated/src/aws-cpp-sdk-controltower/source/model/ListControlOperationsRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-controltower/source/model/ListControlOperationsResult.cpp create mode 100644 generated/src/aws-cpp-sdk-osis/include/aws/osis/model/PipelineDestination.h create mode 100644 generated/src/aws-cpp-sdk-osis/include/aws/osis/model/VpcAttachmentOptions.h create mode 100644 generated/src/aws-cpp-sdk-osis/source/model/PipelineDestination.cpp create mode 100644 generated/src/aws-cpp-sdk-osis/source/model/VpcAttachmentOptions.cpp diff --git a/VERSION b/VERSION index e2aa0a5b291..b9f074d3abb 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.11.331 \ No newline at end of file +1.11.332 \ No newline at end of file diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailAction.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailAction.h new file mode 100644 index 00000000000..1c835d82eb7 --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailAction.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 BedrockAgentRuntime +{ +namespace Model +{ + enum class GuardrailAction + { + NOT_SET, + INTERVENED, + NONE + }; + +namespace GuardrailActionMapper +{ +AWS_BEDROCKAGENTRUNTIME_API GuardrailAction GetGuardrailActionForName(const Aws::String& name); + +AWS_BEDROCKAGENTRUNTIME_API Aws::String GetNameForGuardrailAction(GuardrailAction value); +} // namespace GuardrailActionMapper +} // namespace Model +} // namespace BedrockAgentRuntime +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailAssessment.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailAssessment.h new file mode 100644 index 00000000000..9f417a3753b --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailAssessment.h @@ -0,0 +1,184 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace BedrockAgentRuntime +{ +namespace Model +{ + + /** + *

Assessment details of the content analyzed by Guardrails.

See + * Also:

AWS + * API Reference

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

Content policy details of the Guardrail.

+ */ + inline const GuardrailContentPolicyAssessment& GetContentPolicy() const{ return m_contentPolicy; } + + /** + *

Content policy details of the Guardrail.

+ */ + inline bool ContentPolicyHasBeenSet() const { return m_contentPolicyHasBeenSet; } + + /** + *

Content policy details of the Guardrail.

+ */ + inline void SetContentPolicy(const GuardrailContentPolicyAssessment& value) { m_contentPolicyHasBeenSet = true; m_contentPolicy = value; } + + /** + *

Content policy details of the Guardrail.

+ */ + inline void SetContentPolicy(GuardrailContentPolicyAssessment&& value) { m_contentPolicyHasBeenSet = true; m_contentPolicy = std::move(value); } + + /** + *

Content policy details of the Guardrail.

+ */ + inline GuardrailAssessment& WithContentPolicy(const GuardrailContentPolicyAssessment& value) { SetContentPolicy(value); return *this;} + + /** + *

Content policy details of the Guardrail.

+ */ + inline GuardrailAssessment& WithContentPolicy(GuardrailContentPolicyAssessment&& value) { SetContentPolicy(std::move(value)); return *this;} + + + /** + *

Sensitive Information policy details of Guardrail.

+ */ + inline const GuardrailSensitiveInformationPolicyAssessment& GetSensitiveInformationPolicy() const{ return m_sensitiveInformationPolicy; } + + /** + *

Sensitive Information policy details of Guardrail.

+ */ + inline bool SensitiveInformationPolicyHasBeenSet() const { return m_sensitiveInformationPolicyHasBeenSet; } + + /** + *

Sensitive Information policy details of Guardrail.

+ */ + inline void SetSensitiveInformationPolicy(const GuardrailSensitiveInformationPolicyAssessment& value) { m_sensitiveInformationPolicyHasBeenSet = true; m_sensitiveInformationPolicy = value; } + + /** + *

Sensitive Information policy details of Guardrail.

+ */ + inline void SetSensitiveInformationPolicy(GuardrailSensitiveInformationPolicyAssessment&& value) { m_sensitiveInformationPolicyHasBeenSet = true; m_sensitiveInformationPolicy = std::move(value); } + + /** + *

Sensitive Information policy details of Guardrail.

+ */ + inline GuardrailAssessment& WithSensitiveInformationPolicy(const GuardrailSensitiveInformationPolicyAssessment& value) { SetSensitiveInformationPolicy(value); return *this;} + + /** + *

Sensitive Information policy details of Guardrail.

+ */ + inline GuardrailAssessment& WithSensitiveInformationPolicy(GuardrailSensitiveInformationPolicyAssessment&& value) { SetSensitiveInformationPolicy(std::move(value)); return *this;} + + + /** + *

Topic policy details of the Guardrail.

+ */ + inline const GuardrailTopicPolicyAssessment& GetTopicPolicy() const{ return m_topicPolicy; } + + /** + *

Topic policy details of the Guardrail.

+ */ + inline bool TopicPolicyHasBeenSet() const { return m_topicPolicyHasBeenSet; } + + /** + *

Topic policy details of the Guardrail.

+ */ + inline void SetTopicPolicy(const GuardrailTopicPolicyAssessment& value) { m_topicPolicyHasBeenSet = true; m_topicPolicy = value; } + + /** + *

Topic policy details of the Guardrail.

+ */ + inline void SetTopicPolicy(GuardrailTopicPolicyAssessment&& value) { m_topicPolicyHasBeenSet = true; m_topicPolicy = std::move(value); } + + /** + *

Topic policy details of the Guardrail.

+ */ + inline GuardrailAssessment& WithTopicPolicy(const GuardrailTopicPolicyAssessment& value) { SetTopicPolicy(value); return *this;} + + /** + *

Topic policy details of the Guardrail.

+ */ + inline GuardrailAssessment& WithTopicPolicy(GuardrailTopicPolicyAssessment&& value) { SetTopicPolicy(std::move(value)); return *this;} + + + /** + *

Word policy details of the Guardrail.

+ */ + inline const GuardrailWordPolicyAssessment& GetWordPolicy() const{ return m_wordPolicy; } + + /** + *

Word policy details of the Guardrail.

+ */ + inline bool WordPolicyHasBeenSet() const { return m_wordPolicyHasBeenSet; } + + /** + *

Word policy details of the Guardrail.

+ */ + inline void SetWordPolicy(const GuardrailWordPolicyAssessment& value) { m_wordPolicyHasBeenSet = true; m_wordPolicy = value; } + + /** + *

Word policy details of the Guardrail.

+ */ + inline void SetWordPolicy(GuardrailWordPolicyAssessment&& value) { m_wordPolicyHasBeenSet = true; m_wordPolicy = std::move(value); } + + /** + *

Word policy details of the Guardrail.

+ */ + inline GuardrailAssessment& WithWordPolicy(const GuardrailWordPolicyAssessment& value) { SetWordPolicy(value); return *this;} + + /** + *

Word policy details of the Guardrail.

+ */ + inline GuardrailAssessment& WithWordPolicy(GuardrailWordPolicyAssessment&& value) { SetWordPolicy(std::move(value)); return *this;} + + private: + + GuardrailContentPolicyAssessment m_contentPolicy; + bool m_contentPolicyHasBeenSet = false; + + GuardrailSensitiveInformationPolicyAssessment m_sensitiveInformationPolicy; + bool m_sensitiveInformationPolicyHasBeenSet = false; + + GuardrailTopicPolicyAssessment m_topicPolicy; + bool m_topicPolicyHasBeenSet = false; + + GuardrailWordPolicyAssessment m_wordPolicy; + bool m_wordPolicyHasBeenSet = false; + }; + +} // namespace Model +} // namespace BedrockAgentRuntime +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailContentFilter.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailContentFilter.h new file mode 100644 index 00000000000..ffa7a1516a6 --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailContentFilter.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 +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace BedrockAgentRuntime +{ +namespace Model +{ + + /** + *

Details of the content filter used in the Guardrail.

See Also:

+ * AWS + * API Reference

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

The action placed on the content by the Guardrail filter.

+ */ + inline const GuardrailContentPolicyAction& GetAction() const{ return m_action; } + + /** + *

The action placed on the content by the Guardrail filter.

+ */ + inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; } + + /** + *

The action placed on the content by the Guardrail filter.

+ */ + inline void SetAction(const GuardrailContentPolicyAction& value) { m_actionHasBeenSet = true; m_action = value; } + + /** + *

The action placed on the content by the Guardrail filter.

+ */ + inline void SetAction(GuardrailContentPolicyAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); } + + /** + *

The action placed on the content by the Guardrail filter.

+ */ + inline GuardrailContentFilter& WithAction(const GuardrailContentPolicyAction& value) { SetAction(value); return *this;} + + /** + *

The action placed on the content by the Guardrail filter.

+ */ + inline GuardrailContentFilter& WithAction(GuardrailContentPolicyAction&& value) { SetAction(std::move(value)); return *this;} + + + /** + *

The confidence level regarding the content detected in the filter by the + * Guardrail.

+ */ + inline const GuardrailContentFilterConfidence& GetConfidence() const{ return m_confidence; } + + /** + *

The confidence level regarding the content detected in the filter by the + * Guardrail.

+ */ + inline bool ConfidenceHasBeenSet() const { return m_confidenceHasBeenSet; } + + /** + *

The confidence level regarding the content detected in the filter by the + * Guardrail.

+ */ + inline void SetConfidence(const GuardrailContentFilterConfidence& value) { m_confidenceHasBeenSet = true; m_confidence = value; } + + /** + *

The confidence level regarding the content detected in the filter by the + * Guardrail.

+ */ + inline void SetConfidence(GuardrailContentFilterConfidence&& value) { m_confidenceHasBeenSet = true; m_confidence = std::move(value); } + + /** + *

The confidence level regarding the content detected in the filter by the + * Guardrail.

+ */ + inline GuardrailContentFilter& WithConfidence(const GuardrailContentFilterConfidence& value) { SetConfidence(value); return *this;} + + /** + *

The confidence level regarding the content detected in the filter by the + * Guardrail.

+ */ + inline GuardrailContentFilter& WithConfidence(GuardrailContentFilterConfidence&& value) { SetConfidence(std::move(value)); return *this;} + + + /** + *

The type of content detected in the filter by the Guardrail.

+ */ + inline const GuardrailContentFilterType& GetType() const{ return m_type; } + + /** + *

The type of content detected in the filter by the Guardrail.

+ */ + inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } + + /** + *

The type of content detected in the filter by the Guardrail.

+ */ + inline void SetType(const GuardrailContentFilterType& value) { m_typeHasBeenSet = true; m_type = value; } + + /** + *

The type of content detected in the filter by the Guardrail.

+ */ + inline void SetType(GuardrailContentFilterType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } + + /** + *

The type of content detected in the filter by the Guardrail.

+ */ + inline GuardrailContentFilter& WithType(const GuardrailContentFilterType& value) { SetType(value); return *this;} + + /** + *

The type of content detected in the filter by the Guardrail.

+ */ + inline GuardrailContentFilter& WithType(GuardrailContentFilterType&& value) { SetType(std::move(value)); return *this;} + + private: + + GuardrailContentPolicyAction m_action; + bool m_actionHasBeenSet = false; + + GuardrailContentFilterConfidence m_confidence; + bool m_confidenceHasBeenSet = false; + + GuardrailContentFilterType m_type; + bool m_typeHasBeenSet = false; + }; + +} // namespace Model +} // namespace BedrockAgentRuntime +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailContentFilterConfidence.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailContentFilterConfidence.h new file mode 100644 index 00000000000..fc6e3af462b --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailContentFilterConfidence.h @@ -0,0 +1,33 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace BedrockAgentRuntime +{ +namespace Model +{ + enum class GuardrailContentFilterConfidence + { + NOT_SET, + NONE, + LOW, + MEDIUM, + HIGH + }; + +namespace GuardrailContentFilterConfidenceMapper +{ +AWS_BEDROCKAGENTRUNTIME_API GuardrailContentFilterConfidence GetGuardrailContentFilterConfidenceForName(const Aws::String& name); + +AWS_BEDROCKAGENTRUNTIME_API Aws::String GetNameForGuardrailContentFilterConfidence(GuardrailContentFilterConfidence value); +} // namespace GuardrailContentFilterConfidenceMapper +} // namespace Model +} // namespace BedrockAgentRuntime +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailContentFilterType.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailContentFilterType.h new file mode 100644 index 00000000000..f5c8b927bac --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailContentFilterType.h @@ -0,0 +1,35 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace BedrockAgentRuntime +{ +namespace Model +{ + enum class GuardrailContentFilterType + { + NOT_SET, + INSULTS, + HATE, + SEXUAL, + VIOLENCE, + MISCONDUCT, + PROMPT_ATTACK + }; + +namespace GuardrailContentFilterTypeMapper +{ +AWS_BEDROCKAGENTRUNTIME_API GuardrailContentFilterType GetGuardrailContentFilterTypeForName(const Aws::String& name); + +AWS_BEDROCKAGENTRUNTIME_API Aws::String GetNameForGuardrailContentFilterType(GuardrailContentFilterType value); +} // namespace GuardrailContentFilterTypeMapper +} // namespace Model +} // namespace BedrockAgentRuntime +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailContentPolicyAction.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailContentPolicyAction.h new file mode 100644 index 00000000000..dda55a2f134 --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailContentPolicyAction.h @@ -0,0 +1,30 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace BedrockAgentRuntime +{ +namespace Model +{ + enum class GuardrailContentPolicyAction + { + NOT_SET, + BLOCKED + }; + +namespace GuardrailContentPolicyActionMapper +{ +AWS_BEDROCKAGENTRUNTIME_API GuardrailContentPolicyAction GetGuardrailContentPolicyActionForName(const Aws::String& name); + +AWS_BEDROCKAGENTRUNTIME_API Aws::String GetNameForGuardrailContentPolicyAction(GuardrailContentPolicyAction value); +} // namespace GuardrailContentPolicyActionMapper +} // namespace Model +} // namespace BedrockAgentRuntime +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailContentPolicyAssessment.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailContentPolicyAssessment.h new file mode 100644 index 00000000000..76fc63063cb --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailContentPolicyAssessment.h @@ -0,0 +1,98 @@ +/** + * 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 BedrockAgentRuntime +{ +namespace Model +{ + + /** + *

The details of the policy assessment in the Guardrails filter.

See + * Also:

AWS + * API Reference

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

The filter details of the policy assessment used in the Guardrails + * filter.

+ */ + inline const Aws::Vector& GetFilters() const{ return m_filters; } + + /** + *

The filter details of the policy assessment used in the Guardrails + * filter.

+ */ + inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; } + + /** + *

The filter details of the policy assessment used in the Guardrails + * filter.

+ */ + inline void SetFilters(const Aws::Vector& value) { m_filtersHasBeenSet = true; m_filters = value; } + + /** + *

The filter details of the policy assessment used in the Guardrails + * filter.

+ */ + inline void SetFilters(Aws::Vector&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); } + + /** + *

The filter details of the policy assessment used in the Guardrails + * filter.

+ */ + inline GuardrailContentPolicyAssessment& WithFilters(const Aws::Vector& value) { SetFilters(value); return *this;} + + /** + *

The filter details of the policy assessment used in the Guardrails + * filter.

+ */ + inline GuardrailContentPolicyAssessment& WithFilters(Aws::Vector&& value) { SetFilters(std::move(value)); return *this;} + + /** + *

The filter details of the policy assessment used in the Guardrails + * filter.

+ */ + inline GuardrailContentPolicyAssessment& AddFilters(const GuardrailContentFilter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; } + + /** + *

The filter details of the policy assessment used in the Guardrails + * filter.

+ */ + inline GuardrailContentPolicyAssessment& AddFilters(GuardrailContentFilter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; } + + private: + + Aws::Vector m_filters; + bool m_filtersHasBeenSet = false; + }; + +} // namespace Model +} // namespace BedrockAgentRuntime +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailCustomWord.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailCustomWord.h new file mode 100644 index 00000000000..5c685cb06fc --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailCustomWord.h @@ -0,0 +1,124 @@ +/** + * 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 BedrockAgentRuntime +{ +namespace Model +{ + + /** + *

The custom word details for the filter in the Guardrail.

See + * Also:

AWS + * API Reference

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

The action details for the custom word filter in the Guardrail.

+ */ + inline const GuardrailWordPolicyAction& GetAction() const{ return m_action; } + + /** + *

The action details for the custom word filter in the Guardrail.

+ */ + inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; } + + /** + *

The action details for the custom word filter in the Guardrail.

+ */ + inline void SetAction(const GuardrailWordPolicyAction& value) { m_actionHasBeenSet = true; m_action = value; } + + /** + *

The action details for the custom word filter in the Guardrail.

+ */ + inline void SetAction(GuardrailWordPolicyAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); } + + /** + *

The action details for the custom word filter in the Guardrail.

+ */ + inline GuardrailCustomWord& WithAction(const GuardrailWordPolicyAction& value) { SetAction(value); return *this;} + + /** + *

The action details for the custom word filter in the Guardrail.

+ */ + inline GuardrailCustomWord& WithAction(GuardrailWordPolicyAction&& value) { SetAction(std::move(value)); return *this;} + + + /** + *

The match details for the custom word filter in the Guardrail.

+ */ + inline const Aws::String& GetMatch() const{ return m_match; } + + /** + *

The match details for the custom word filter in the Guardrail.

+ */ + inline bool MatchHasBeenSet() const { return m_matchHasBeenSet; } + + /** + *

The match details for the custom word filter in the Guardrail.

+ */ + inline void SetMatch(const Aws::String& value) { m_matchHasBeenSet = true; m_match = value; } + + /** + *

The match details for the custom word filter in the Guardrail.

+ */ + inline void SetMatch(Aws::String&& value) { m_matchHasBeenSet = true; m_match = std::move(value); } + + /** + *

The match details for the custom word filter in the Guardrail.

+ */ + inline void SetMatch(const char* value) { m_matchHasBeenSet = true; m_match.assign(value); } + + /** + *

The match details for the custom word filter in the Guardrail.

+ */ + inline GuardrailCustomWord& WithMatch(const Aws::String& value) { SetMatch(value); return *this;} + + /** + *

The match details for the custom word filter in the Guardrail.

+ */ + inline GuardrailCustomWord& WithMatch(Aws::String&& value) { SetMatch(std::move(value)); return *this;} + + /** + *

The match details for the custom word filter in the Guardrail.

+ */ + inline GuardrailCustomWord& WithMatch(const char* value) { SetMatch(value); return *this;} + + private: + + GuardrailWordPolicyAction m_action; + bool m_actionHasBeenSet = false; + + Aws::String m_match; + bool m_matchHasBeenSet = false; + }; + +} // namespace Model +} // namespace BedrockAgentRuntime +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailManagedWord.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailManagedWord.h new file mode 100644 index 00000000000..1bf29fcbbf9 --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailManagedWord.h @@ -0,0 +1,159 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace BedrockAgentRuntime +{ +namespace Model +{ + + /** + *

The managed word details for the filter in the Guardrail.

See + * Also:

AWS + * API Reference

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

The action details for the managed word filter in the Guardrail.

+ */ + inline const GuardrailWordPolicyAction& GetAction() const{ return m_action; } + + /** + *

The action details for the managed word filter in the Guardrail.

+ */ + inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; } + + /** + *

The action details for the managed word filter in the Guardrail.

+ */ + inline void SetAction(const GuardrailWordPolicyAction& value) { m_actionHasBeenSet = true; m_action = value; } + + /** + *

The action details for the managed word filter in the Guardrail.

+ */ + inline void SetAction(GuardrailWordPolicyAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); } + + /** + *

The action details for the managed word filter in the Guardrail.

+ */ + inline GuardrailManagedWord& WithAction(const GuardrailWordPolicyAction& value) { SetAction(value); return *this;} + + /** + *

The action details for the managed word filter in the Guardrail.

+ */ + inline GuardrailManagedWord& WithAction(GuardrailWordPolicyAction&& value) { SetAction(std::move(value)); return *this;} + + + /** + *

The match details for the managed word filter in the Guardrail.

+ */ + inline const Aws::String& GetMatch() const{ return m_match; } + + /** + *

The match details for the managed word filter in the Guardrail.

+ */ + inline bool MatchHasBeenSet() const { return m_matchHasBeenSet; } + + /** + *

The match details for the managed word filter in the Guardrail.

+ */ + inline void SetMatch(const Aws::String& value) { m_matchHasBeenSet = true; m_match = value; } + + /** + *

The match details for the managed word filter in the Guardrail.

+ */ + inline void SetMatch(Aws::String&& value) { m_matchHasBeenSet = true; m_match = std::move(value); } + + /** + *

The match details for the managed word filter in the Guardrail.

+ */ + inline void SetMatch(const char* value) { m_matchHasBeenSet = true; m_match.assign(value); } + + /** + *

The match details for the managed word filter in the Guardrail.

+ */ + inline GuardrailManagedWord& WithMatch(const Aws::String& value) { SetMatch(value); return *this;} + + /** + *

The match details for the managed word filter in the Guardrail.

+ */ + inline GuardrailManagedWord& WithMatch(Aws::String&& value) { SetMatch(std::move(value)); return *this;} + + /** + *

The match details for the managed word filter in the Guardrail.

+ */ + inline GuardrailManagedWord& WithMatch(const char* value) { SetMatch(value); return *this;} + + + /** + *

The type details for the managed word filter in the Guardrail.

+ */ + inline const GuardrailManagedWordType& GetType() const{ return m_type; } + + /** + *

The type details for the managed word filter in the Guardrail.

+ */ + inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } + + /** + *

The type details for the managed word filter in the Guardrail.

+ */ + inline void SetType(const GuardrailManagedWordType& value) { m_typeHasBeenSet = true; m_type = value; } + + /** + *

The type details for the managed word filter in the Guardrail.

+ */ + inline void SetType(GuardrailManagedWordType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } + + /** + *

The type details for the managed word filter in the Guardrail.

+ */ + inline GuardrailManagedWord& WithType(const GuardrailManagedWordType& value) { SetType(value); return *this;} + + /** + *

The type details for the managed word filter in the Guardrail.

+ */ + inline GuardrailManagedWord& WithType(GuardrailManagedWordType&& value) { SetType(std::move(value)); return *this;} + + private: + + GuardrailWordPolicyAction m_action; + bool m_actionHasBeenSet = false; + + Aws::String m_match; + bool m_matchHasBeenSet = false; + + GuardrailManagedWordType m_type; + bool m_typeHasBeenSet = false; + }; + +} // namespace Model +} // namespace BedrockAgentRuntime +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailManagedWordType.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailManagedWordType.h new file mode 100644 index 00000000000..3280cccfb7a --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailManagedWordType.h @@ -0,0 +1,30 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace BedrockAgentRuntime +{ +namespace Model +{ + enum class GuardrailManagedWordType + { + NOT_SET, + PROFANITY + }; + +namespace GuardrailManagedWordTypeMapper +{ +AWS_BEDROCKAGENTRUNTIME_API GuardrailManagedWordType GetGuardrailManagedWordTypeForName(const Aws::String& name); + +AWS_BEDROCKAGENTRUNTIME_API Aws::String GetNameForGuardrailManagedWordType(GuardrailManagedWordType value); +} // namespace GuardrailManagedWordTypeMapper +} // namespace Model +} // namespace BedrockAgentRuntime +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailPiiEntityFilter.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailPiiEntityFilter.h new file mode 100644 index 00000000000..af8d418d336 --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailPiiEntityFilter.h @@ -0,0 +1,159 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace BedrockAgentRuntime +{ +namespace Model +{ + + /** + *

The Guardrail filter to identify and remove personally identifiable + * information (PII).

See Also:

AWS + * API Reference

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

The action of the Guardrail filter to identify and remove PII.

+ */ + inline const GuardrailSensitiveInformationPolicyAction& GetAction() const{ return m_action; } + + /** + *

The action of the Guardrail filter to identify and remove PII.

+ */ + inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; } + + /** + *

The action of the Guardrail filter to identify and remove PII.

+ */ + inline void SetAction(const GuardrailSensitiveInformationPolicyAction& value) { m_actionHasBeenSet = true; m_action = value; } + + /** + *

The action of the Guardrail filter to identify and remove PII.

+ */ + inline void SetAction(GuardrailSensitiveInformationPolicyAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); } + + /** + *

The action of the Guardrail filter to identify and remove PII.

+ */ + inline GuardrailPiiEntityFilter& WithAction(const GuardrailSensitiveInformationPolicyAction& value) { SetAction(value); return *this;} + + /** + *

The action of the Guardrail filter to identify and remove PII.

+ */ + inline GuardrailPiiEntityFilter& WithAction(GuardrailSensitiveInformationPolicyAction&& value) { SetAction(std::move(value)); return *this;} + + + /** + *

The match to settings in the Guardrail filter to identify and remove PII.

+ */ + inline const Aws::String& GetMatch() const{ return m_match; } + + /** + *

The match to settings in the Guardrail filter to identify and remove PII.

+ */ + inline bool MatchHasBeenSet() const { return m_matchHasBeenSet; } + + /** + *

The match to settings in the Guardrail filter to identify and remove PII.

+ */ + inline void SetMatch(const Aws::String& value) { m_matchHasBeenSet = true; m_match = value; } + + /** + *

The match to settings in the Guardrail filter to identify and remove PII.

+ */ + inline void SetMatch(Aws::String&& value) { m_matchHasBeenSet = true; m_match = std::move(value); } + + /** + *

The match to settings in the Guardrail filter to identify and remove PII.

+ */ + inline void SetMatch(const char* value) { m_matchHasBeenSet = true; m_match.assign(value); } + + /** + *

The match to settings in the Guardrail filter to identify and remove PII.

+ */ + inline GuardrailPiiEntityFilter& WithMatch(const Aws::String& value) { SetMatch(value); return *this;} + + /** + *

The match to settings in the Guardrail filter to identify and remove PII.

+ */ + inline GuardrailPiiEntityFilter& WithMatch(Aws::String&& value) { SetMatch(std::move(value)); return *this;} + + /** + *

The match to settings in the Guardrail filter to identify and remove PII.

+ */ + inline GuardrailPiiEntityFilter& WithMatch(const char* value) { SetMatch(value); return *this;} + + + /** + *

The type of PII the Guardrail filter has identified and removed.

+ */ + inline const GuardrailPiiEntityType& GetType() const{ return m_type; } + + /** + *

The type of PII the Guardrail filter has identified and removed.

+ */ + inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } + + /** + *

The type of PII the Guardrail filter has identified and removed.

+ */ + inline void SetType(const GuardrailPiiEntityType& value) { m_typeHasBeenSet = true; m_type = value; } + + /** + *

The type of PII the Guardrail filter has identified and removed.

+ */ + inline void SetType(GuardrailPiiEntityType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } + + /** + *

The type of PII the Guardrail filter has identified and removed.

+ */ + inline GuardrailPiiEntityFilter& WithType(const GuardrailPiiEntityType& value) { SetType(value); return *this;} + + /** + *

The type of PII the Guardrail filter has identified and removed.

+ */ + inline GuardrailPiiEntityFilter& WithType(GuardrailPiiEntityType&& value) { SetType(std::move(value)); return *this;} + + private: + + GuardrailSensitiveInformationPolicyAction m_action; + bool m_actionHasBeenSet = false; + + Aws::String m_match; + bool m_matchHasBeenSet = false; + + GuardrailPiiEntityType m_type; + bool m_typeHasBeenSet = false; + }; + +} // namespace Model +} // namespace BedrockAgentRuntime +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailPiiEntityType.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailPiiEntityType.h new file mode 100644 index 00000000000..fab73b049e9 --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailPiiEntityType.h @@ -0,0 +1,60 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace BedrockAgentRuntime +{ +namespace Model +{ + enum class GuardrailPiiEntityType + { + NOT_SET, + ADDRESS, + AGE, + AWS_ACCESS_KEY, + AWS_SECRET_KEY, + CA_HEALTH_NUMBER, + CA_SOCIAL_INSURANCE_NUMBER, + CREDIT_DEBIT_CARD_CVV, + CREDIT_DEBIT_CARD_EXPIRY, + CREDIT_DEBIT_CARD_NUMBER, + DRIVER_ID, + EMAIL, + INTERNATIONAL_BANK_ACCOUNT_NUMBER, + IP_ADDRESS, + LICENSE_PLATE, + MAC_ADDRESS, + NAME, + PASSWORD, + PHONE, + PIN, + SWIFT_CODE, + UK_NATIONAL_HEALTH_SERVICE_NUMBER, + UK_NATIONAL_INSURANCE_NUMBER, + UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER, + URL, + USERNAME, + US_BANK_ACCOUNT_NUMBER, + US_BANK_ROUTING_NUMBER, + US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER, + US_PASSPORT_NUMBER, + US_SOCIAL_SECURITY_NUMBER, + VEHICLE_IDENTIFICATION_NUMBER + }; + +namespace GuardrailPiiEntityTypeMapper +{ +AWS_BEDROCKAGENTRUNTIME_API GuardrailPiiEntityType GetGuardrailPiiEntityTypeForName(const Aws::String& name); + +AWS_BEDROCKAGENTRUNTIME_API Aws::String GetNameForGuardrailPiiEntityType(GuardrailPiiEntityType value); +} // namespace GuardrailPiiEntityTypeMapper +} // namespace Model +} // namespace BedrockAgentRuntime +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailRegexFilter.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailRegexFilter.h new file mode 100644 index 00000000000..9c61c3e686a --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailRegexFilter.h @@ -0,0 +1,212 @@ +/** + * 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 BedrockAgentRuntime +{ +namespace Model +{ + + /** + *

The details for the regex filter used in the Guardrail.

See + * Also:

AWS + * API Reference

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

The action details for the regex filter used in the Guardrail.

+ */ + inline const GuardrailSensitiveInformationPolicyAction& GetAction() const{ return m_action; } + + /** + *

The action details for the regex filter used in the Guardrail.

+ */ + inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; } + + /** + *

The action details for the regex filter used in the Guardrail.

+ */ + inline void SetAction(const GuardrailSensitiveInformationPolicyAction& value) { m_actionHasBeenSet = true; m_action = value; } + + /** + *

The action details for the regex filter used in the Guardrail.

+ */ + inline void SetAction(GuardrailSensitiveInformationPolicyAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); } + + /** + *

The action details for the regex filter used in the Guardrail.

+ */ + inline GuardrailRegexFilter& WithAction(const GuardrailSensitiveInformationPolicyAction& value) { SetAction(value); return *this;} + + /** + *

The action details for the regex filter used in the Guardrail.

+ */ + inline GuardrailRegexFilter& WithAction(GuardrailSensitiveInformationPolicyAction&& value) { SetAction(std::move(value)); return *this;} + + + /** + *

The match details for the regex filter used in the Guardrail.

+ */ + inline const Aws::String& GetMatch() const{ return m_match; } + + /** + *

The match details for the regex filter used in the Guardrail.

+ */ + inline bool MatchHasBeenSet() const { return m_matchHasBeenSet; } + + /** + *

The match details for the regex filter used in the Guardrail.

+ */ + inline void SetMatch(const Aws::String& value) { m_matchHasBeenSet = true; m_match = value; } + + /** + *

The match details for the regex filter used in the Guardrail.

+ */ + inline void SetMatch(Aws::String&& value) { m_matchHasBeenSet = true; m_match = std::move(value); } + + /** + *

The match details for the regex filter used in the Guardrail.

+ */ + inline void SetMatch(const char* value) { m_matchHasBeenSet = true; m_match.assign(value); } + + /** + *

The match details for the regex filter used in the Guardrail.

+ */ + inline GuardrailRegexFilter& WithMatch(const Aws::String& value) { SetMatch(value); return *this;} + + /** + *

The match details for the regex filter used in the Guardrail.

+ */ + inline GuardrailRegexFilter& WithMatch(Aws::String&& value) { SetMatch(std::move(value)); return *this;} + + /** + *

The match details for the regex filter used in the Guardrail.

+ */ + inline GuardrailRegexFilter& WithMatch(const char* value) { SetMatch(value); return *this;} + + + /** + *

The name details for the regex filter used in the Guardrail.

+ */ + inline const Aws::String& GetName() const{ return m_name; } + + /** + *

The name details for the regex filter used in the Guardrail.

+ */ + inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } + + /** + *

The name details for the regex filter used in the Guardrail.

+ */ + inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } + + /** + *

The name details for the regex filter used in the Guardrail.

+ */ + inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } + + /** + *

The name details for the regex filter used in the Guardrail.

+ */ + inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } + + /** + *

The name details for the regex filter used in the Guardrail.

+ */ + inline GuardrailRegexFilter& WithName(const Aws::String& value) { SetName(value); return *this;} + + /** + *

The name details for the regex filter used in the Guardrail.

+ */ + inline GuardrailRegexFilter& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} + + /** + *

The name details for the regex filter used in the Guardrail.

+ */ + inline GuardrailRegexFilter& WithName(const char* value) { SetName(value); return *this;} + + + /** + *

The regex details for the regex filter used in the Guardrail.

+ */ + inline const Aws::String& GetRegex() const{ return m_regex; } + + /** + *

The regex details for the regex filter used in the Guardrail.

+ */ + inline bool RegexHasBeenSet() const { return m_regexHasBeenSet; } + + /** + *

The regex details for the regex filter used in the Guardrail.

+ */ + inline void SetRegex(const Aws::String& value) { m_regexHasBeenSet = true; m_regex = value; } + + /** + *

The regex details for the regex filter used in the Guardrail.

+ */ + inline void SetRegex(Aws::String&& value) { m_regexHasBeenSet = true; m_regex = std::move(value); } + + /** + *

The regex details for the regex filter used in the Guardrail.

+ */ + inline void SetRegex(const char* value) { m_regexHasBeenSet = true; m_regex.assign(value); } + + /** + *

The regex details for the regex filter used in the Guardrail.

+ */ + inline GuardrailRegexFilter& WithRegex(const Aws::String& value) { SetRegex(value); return *this;} + + /** + *

The regex details for the regex filter used in the Guardrail.

+ */ + inline GuardrailRegexFilter& WithRegex(Aws::String&& value) { SetRegex(std::move(value)); return *this;} + + /** + *

The regex details for the regex filter used in the Guardrail.

+ */ + inline GuardrailRegexFilter& WithRegex(const char* value) { SetRegex(value); return *this;} + + private: + + GuardrailSensitiveInformationPolicyAction m_action; + bool m_actionHasBeenSet = false; + + Aws::String m_match; + bool m_matchHasBeenSet = false; + + Aws::String m_name; + bool m_nameHasBeenSet = false; + + Aws::String m_regex; + bool m_regexHasBeenSet = false; + }; + +} // namespace Model +} // namespace BedrockAgentRuntime +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailSensitiveInformationPolicyAction.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailSensitiveInformationPolicyAction.h new file mode 100644 index 00000000000..1b7800cbc91 --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailSensitiveInformationPolicyAction.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 BedrockAgentRuntime +{ +namespace Model +{ + enum class GuardrailSensitiveInformationPolicyAction + { + NOT_SET, + BLOCKED, + ANONYMIZED + }; + +namespace GuardrailSensitiveInformationPolicyActionMapper +{ +AWS_BEDROCKAGENTRUNTIME_API GuardrailSensitiveInformationPolicyAction GetGuardrailSensitiveInformationPolicyActionForName(const Aws::String& name); + +AWS_BEDROCKAGENTRUNTIME_API Aws::String GetNameForGuardrailSensitiveInformationPolicyAction(GuardrailSensitiveInformationPolicyAction value); +} // namespace GuardrailSensitiveInformationPolicyActionMapper +} // namespace Model +} // namespace BedrockAgentRuntime +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailSensitiveInformationPolicyAssessment.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailSensitiveInformationPolicyAssessment.h new file mode 100644 index 00000000000..a6d12b354f5 --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailSensitiveInformationPolicyAssessment.h @@ -0,0 +1,151 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace BedrockAgentRuntime +{ +namespace Model +{ + + /** + *

The details of the sensitive policy assessment used in the + * Guardrail.

See Also:

AWS + * API Reference

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

The details of the PII entities used in the sensitive policy assessment for + * the Guardrail.

+ */ + inline const Aws::Vector& GetPiiEntities() const{ return m_piiEntities; } + + /** + *

The details of the PII entities used in the sensitive policy assessment for + * the Guardrail.

+ */ + inline bool PiiEntitiesHasBeenSet() const { return m_piiEntitiesHasBeenSet; } + + /** + *

The details of the PII entities used in the sensitive policy assessment for + * the Guardrail.

+ */ + inline void SetPiiEntities(const Aws::Vector& value) { m_piiEntitiesHasBeenSet = true; m_piiEntities = value; } + + /** + *

The details of the PII entities used in the sensitive policy assessment for + * the Guardrail.

+ */ + inline void SetPiiEntities(Aws::Vector&& value) { m_piiEntitiesHasBeenSet = true; m_piiEntities = std::move(value); } + + /** + *

The details of the PII entities used in the sensitive policy assessment for + * the Guardrail.

+ */ + inline GuardrailSensitiveInformationPolicyAssessment& WithPiiEntities(const Aws::Vector& value) { SetPiiEntities(value); return *this;} + + /** + *

The details of the PII entities used in the sensitive policy assessment for + * the Guardrail.

+ */ + inline GuardrailSensitiveInformationPolicyAssessment& WithPiiEntities(Aws::Vector&& value) { SetPiiEntities(std::move(value)); return *this;} + + /** + *

The details of the PII entities used in the sensitive policy assessment for + * the Guardrail.

+ */ + inline GuardrailSensitiveInformationPolicyAssessment& AddPiiEntities(const GuardrailPiiEntityFilter& value) { m_piiEntitiesHasBeenSet = true; m_piiEntities.push_back(value); return *this; } + + /** + *

The details of the PII entities used in the sensitive policy assessment for + * the Guardrail.

+ */ + inline GuardrailSensitiveInformationPolicyAssessment& AddPiiEntities(GuardrailPiiEntityFilter&& value) { m_piiEntitiesHasBeenSet = true; m_piiEntities.push_back(std::move(value)); return *this; } + + + /** + *

The details of the regexes used in the sensitive policy assessment for the + * Guardrail.

+ */ + inline const Aws::Vector& GetRegexes() const{ return m_regexes; } + + /** + *

The details of the regexes used in the sensitive policy assessment for the + * Guardrail.

+ */ + inline bool RegexesHasBeenSet() const { return m_regexesHasBeenSet; } + + /** + *

The details of the regexes used in the sensitive policy assessment for the + * Guardrail.

+ */ + inline void SetRegexes(const Aws::Vector& value) { m_regexesHasBeenSet = true; m_regexes = value; } + + /** + *

The details of the regexes used in the sensitive policy assessment for the + * Guardrail.

+ */ + inline void SetRegexes(Aws::Vector&& value) { m_regexesHasBeenSet = true; m_regexes = std::move(value); } + + /** + *

The details of the regexes used in the sensitive policy assessment for the + * Guardrail.

+ */ + inline GuardrailSensitiveInformationPolicyAssessment& WithRegexes(const Aws::Vector& value) { SetRegexes(value); return *this;} + + /** + *

The details of the regexes used in the sensitive policy assessment for the + * Guardrail.

+ */ + inline GuardrailSensitiveInformationPolicyAssessment& WithRegexes(Aws::Vector&& value) { SetRegexes(std::move(value)); return *this;} + + /** + *

The details of the regexes used in the sensitive policy assessment for the + * Guardrail.

+ */ + inline GuardrailSensitiveInformationPolicyAssessment& AddRegexes(const GuardrailRegexFilter& value) { m_regexesHasBeenSet = true; m_regexes.push_back(value); return *this; } + + /** + *

The details of the regexes used in the sensitive policy assessment for the + * Guardrail.

+ */ + inline GuardrailSensitiveInformationPolicyAssessment& AddRegexes(GuardrailRegexFilter&& value) { m_regexesHasBeenSet = true; m_regexes.push_back(std::move(value)); return *this; } + + private: + + Aws::Vector m_piiEntities; + bool m_piiEntitiesHasBeenSet = false; + + Aws::Vector m_regexes; + bool m_regexesHasBeenSet = false; + }; + +} // namespace Model +} // namespace BedrockAgentRuntime +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailTopic.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailTopic.h new file mode 100644 index 00000000000..851c766cb02 --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailTopic.h @@ -0,0 +1,159 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace BedrockAgentRuntime +{ +namespace Model +{ + + /** + *

The details for a specific topic defined in the Guardrail.

See + * Also:

AWS + * API Reference

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

The action details on a specific topic in the Guardrail.

+ */ + inline const GuardrailTopicPolicyAction& GetAction() const{ return m_action; } + + /** + *

The action details on a specific topic in the Guardrail.

+ */ + inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; } + + /** + *

The action details on a specific topic in the Guardrail.

+ */ + inline void SetAction(const GuardrailTopicPolicyAction& value) { m_actionHasBeenSet = true; m_action = value; } + + /** + *

The action details on a specific topic in the Guardrail.

+ */ + inline void SetAction(GuardrailTopicPolicyAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); } + + /** + *

The action details on a specific topic in the Guardrail.

+ */ + inline GuardrailTopic& WithAction(const GuardrailTopicPolicyAction& value) { SetAction(value); return *this;} + + /** + *

The action details on a specific topic in the Guardrail.

+ */ + inline GuardrailTopic& WithAction(GuardrailTopicPolicyAction&& value) { SetAction(std::move(value)); return *this;} + + + /** + *

The name details on a specific topic in the Guardrail.

+ */ + inline const Aws::String& GetName() const{ return m_name; } + + /** + *

The name details on a specific topic in the Guardrail.

+ */ + inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } + + /** + *

The name details on a specific topic in the Guardrail.

+ */ + inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } + + /** + *

The name details on a specific topic in the Guardrail.

+ */ + inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } + + /** + *

The name details on a specific topic in the Guardrail.

+ */ + inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } + + /** + *

The name details on a specific topic in the Guardrail.

+ */ + inline GuardrailTopic& WithName(const Aws::String& value) { SetName(value); return *this;} + + /** + *

The name details on a specific topic in the Guardrail.

+ */ + inline GuardrailTopic& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} + + /** + *

The name details on a specific topic in the Guardrail.

+ */ + inline GuardrailTopic& WithName(const char* value) { SetName(value); return *this;} + + + /** + *

The type details on a specific topic in the Guardrail.

+ */ + inline const GuardrailTopicType& GetType() const{ return m_type; } + + /** + *

The type details on a specific topic in the Guardrail.

+ */ + inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } + + /** + *

The type details on a specific topic in the Guardrail.

+ */ + inline void SetType(const GuardrailTopicType& value) { m_typeHasBeenSet = true; m_type = value; } + + /** + *

The type details on a specific topic in the Guardrail.

+ */ + inline void SetType(GuardrailTopicType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } + + /** + *

The type details on a specific topic in the Guardrail.

+ */ + inline GuardrailTopic& WithType(const GuardrailTopicType& value) { SetType(value); return *this;} + + /** + *

The type details on a specific topic in the Guardrail.

+ */ + inline GuardrailTopic& WithType(GuardrailTopicType&& value) { SetType(std::move(value)); return *this;} + + private: + + GuardrailTopicPolicyAction m_action; + bool m_actionHasBeenSet = false; + + Aws::String m_name; + bool m_nameHasBeenSet = false; + + GuardrailTopicType m_type; + bool m_typeHasBeenSet = false; + }; + +} // namespace Model +} // namespace BedrockAgentRuntime +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailTopicPolicyAction.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailTopicPolicyAction.h new file mode 100644 index 00000000000..ff21b8338c5 --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailTopicPolicyAction.h @@ -0,0 +1,30 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace BedrockAgentRuntime +{ +namespace Model +{ + enum class GuardrailTopicPolicyAction + { + NOT_SET, + BLOCKED + }; + +namespace GuardrailTopicPolicyActionMapper +{ +AWS_BEDROCKAGENTRUNTIME_API GuardrailTopicPolicyAction GetGuardrailTopicPolicyActionForName(const Aws::String& name); + +AWS_BEDROCKAGENTRUNTIME_API Aws::String GetNameForGuardrailTopicPolicyAction(GuardrailTopicPolicyAction value); +} // namespace GuardrailTopicPolicyActionMapper +} // namespace Model +} // namespace BedrockAgentRuntime +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailTopicPolicyAssessment.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailTopicPolicyAssessment.h new file mode 100644 index 00000000000..606183c0e9d --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailTopicPolicyAssessment.h @@ -0,0 +1,90 @@ +/** + * 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 BedrockAgentRuntime +{ +namespace Model +{ + + /** + *

The details of the policy assessment used in the Guardrail.

See + * Also:

AWS + * API Reference

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

The topic details of the policy assessment used in the Guardrail.

+ */ + inline const Aws::Vector& GetTopics() const{ return m_topics; } + + /** + *

The topic details of the policy assessment used in the Guardrail.

+ */ + inline bool TopicsHasBeenSet() const { return m_topicsHasBeenSet; } + + /** + *

The topic details of the policy assessment used in the Guardrail.

+ */ + inline void SetTopics(const Aws::Vector& value) { m_topicsHasBeenSet = true; m_topics = value; } + + /** + *

The topic details of the policy assessment used in the Guardrail.

+ */ + inline void SetTopics(Aws::Vector&& value) { m_topicsHasBeenSet = true; m_topics = std::move(value); } + + /** + *

The topic details of the policy assessment used in the Guardrail.

+ */ + inline GuardrailTopicPolicyAssessment& WithTopics(const Aws::Vector& value) { SetTopics(value); return *this;} + + /** + *

The topic details of the policy assessment used in the Guardrail.

+ */ + inline GuardrailTopicPolicyAssessment& WithTopics(Aws::Vector&& value) { SetTopics(std::move(value)); return *this;} + + /** + *

The topic details of the policy assessment used in the Guardrail.

+ */ + inline GuardrailTopicPolicyAssessment& AddTopics(const GuardrailTopic& value) { m_topicsHasBeenSet = true; m_topics.push_back(value); return *this; } + + /** + *

The topic details of the policy assessment used in the Guardrail.

+ */ + inline GuardrailTopicPolicyAssessment& AddTopics(GuardrailTopic&& value) { m_topicsHasBeenSet = true; m_topics.push_back(std::move(value)); return *this; } + + private: + + Aws::Vector m_topics; + bool m_topicsHasBeenSet = false; + }; + +} // namespace Model +} // namespace BedrockAgentRuntime +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailTopicType.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailTopicType.h new file mode 100644 index 00000000000..4fcd337f4be --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailTopicType.h @@ -0,0 +1,30 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace BedrockAgentRuntime +{ +namespace Model +{ + enum class GuardrailTopicType + { + NOT_SET, + DENY + }; + +namespace GuardrailTopicTypeMapper +{ +AWS_BEDROCKAGENTRUNTIME_API GuardrailTopicType GetGuardrailTopicTypeForName(const Aws::String& name); + +AWS_BEDROCKAGENTRUNTIME_API Aws::String GetNameForGuardrailTopicType(GuardrailTopicType value); +} // namespace GuardrailTopicTypeMapper +} // namespace Model +} // namespace BedrockAgentRuntime +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailTrace.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailTrace.h new file mode 100644 index 00000000000..c8043d0151b --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailTrace.h @@ -0,0 +1,213 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace BedrockAgentRuntime +{ +namespace Model +{ + + /** + *

The trace details used in the Guardrail.

See Also:

AWS + * API Reference

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

The trace action details used with the Guardrail.

+ */ + inline const GuardrailAction& GetAction() const{ return m_action; } + + /** + *

The trace action details used with the Guardrail.

+ */ + inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; } + + /** + *

The trace action details used with the Guardrail.

+ */ + inline void SetAction(const GuardrailAction& value) { m_actionHasBeenSet = true; m_action = value; } + + /** + *

The trace action details used with the Guardrail.

+ */ + inline void SetAction(GuardrailAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); } + + /** + *

The trace action details used with the Guardrail.

+ */ + inline GuardrailTrace& WithAction(const GuardrailAction& value) { SetAction(value); return *this;} + + /** + *

The trace action details used with the Guardrail.

+ */ + inline GuardrailTrace& WithAction(GuardrailAction&& value) { SetAction(std::move(value)); return *this;} + + + /** + *

The details of the input assessments used in the Guardrail Trace.

+ */ + inline const Aws::Vector& GetInputAssessments() const{ return m_inputAssessments; } + + /** + *

The details of the input assessments used in the Guardrail Trace.

+ */ + inline bool InputAssessmentsHasBeenSet() const { return m_inputAssessmentsHasBeenSet; } + + /** + *

The details of the input assessments used in the Guardrail Trace.

+ */ + inline void SetInputAssessments(const Aws::Vector& value) { m_inputAssessmentsHasBeenSet = true; m_inputAssessments = value; } + + /** + *

The details of the input assessments used in the Guardrail Trace.

+ */ + inline void SetInputAssessments(Aws::Vector&& value) { m_inputAssessmentsHasBeenSet = true; m_inputAssessments = std::move(value); } + + /** + *

The details of the input assessments used in the Guardrail Trace.

+ */ + inline GuardrailTrace& WithInputAssessments(const Aws::Vector& value) { SetInputAssessments(value); return *this;} + + /** + *

The details of the input assessments used in the Guardrail Trace.

+ */ + inline GuardrailTrace& WithInputAssessments(Aws::Vector&& value) { SetInputAssessments(std::move(value)); return *this;} + + /** + *

The details of the input assessments used in the Guardrail Trace.

+ */ + inline GuardrailTrace& AddInputAssessments(const GuardrailAssessment& value) { m_inputAssessmentsHasBeenSet = true; m_inputAssessments.push_back(value); return *this; } + + /** + *

The details of the input assessments used in the Guardrail Trace.

+ */ + inline GuardrailTrace& AddInputAssessments(GuardrailAssessment&& value) { m_inputAssessmentsHasBeenSet = true; m_inputAssessments.push_back(std::move(value)); return *this; } + + + /** + *

The details of the output assessments used in the Guardrail Trace.

+ */ + inline const Aws::Vector& GetOutputAssessments() const{ return m_outputAssessments; } + + /** + *

The details of the output assessments used in the Guardrail Trace.

+ */ + inline bool OutputAssessmentsHasBeenSet() const { return m_outputAssessmentsHasBeenSet; } + + /** + *

The details of the output assessments used in the Guardrail Trace.

+ */ + inline void SetOutputAssessments(const Aws::Vector& value) { m_outputAssessmentsHasBeenSet = true; m_outputAssessments = value; } + + /** + *

The details of the output assessments used in the Guardrail Trace.

+ */ + inline void SetOutputAssessments(Aws::Vector&& value) { m_outputAssessmentsHasBeenSet = true; m_outputAssessments = std::move(value); } + + /** + *

The details of the output assessments used in the Guardrail Trace.

+ */ + inline GuardrailTrace& WithOutputAssessments(const Aws::Vector& value) { SetOutputAssessments(value); return *this;} + + /** + *

The details of the output assessments used in the Guardrail Trace.

+ */ + inline GuardrailTrace& WithOutputAssessments(Aws::Vector&& value) { SetOutputAssessments(std::move(value)); return *this;} + + /** + *

The details of the output assessments used in the Guardrail Trace.

+ */ + inline GuardrailTrace& AddOutputAssessments(const GuardrailAssessment& value) { m_outputAssessmentsHasBeenSet = true; m_outputAssessments.push_back(value); return *this; } + + /** + *

The details of the output assessments used in the Guardrail Trace.

+ */ + inline GuardrailTrace& AddOutputAssessments(GuardrailAssessment&& value) { m_outputAssessmentsHasBeenSet = true; m_outputAssessments.push_back(std::move(value)); return *this; } + + + /** + *

The details of the trace Id used in the Guardrail Trace.

+ */ + inline const Aws::String& GetTraceId() const{ return m_traceId; } + + /** + *

The details of the trace Id used in the Guardrail Trace.

+ */ + inline bool TraceIdHasBeenSet() const { return m_traceIdHasBeenSet; } + + /** + *

The details of the trace Id used in the Guardrail Trace.

+ */ + inline void SetTraceId(const Aws::String& value) { m_traceIdHasBeenSet = true; m_traceId = value; } + + /** + *

The details of the trace Id used in the Guardrail Trace.

+ */ + inline void SetTraceId(Aws::String&& value) { m_traceIdHasBeenSet = true; m_traceId = std::move(value); } + + /** + *

The details of the trace Id used in the Guardrail Trace.

+ */ + inline void SetTraceId(const char* value) { m_traceIdHasBeenSet = true; m_traceId.assign(value); } + + /** + *

The details of the trace Id used in the Guardrail Trace.

+ */ + inline GuardrailTrace& WithTraceId(const Aws::String& value) { SetTraceId(value); return *this;} + + /** + *

The details of the trace Id used in the Guardrail Trace.

+ */ + inline GuardrailTrace& WithTraceId(Aws::String&& value) { SetTraceId(std::move(value)); return *this;} + + /** + *

The details of the trace Id used in the Guardrail Trace.

+ */ + inline GuardrailTrace& WithTraceId(const char* value) { SetTraceId(value); return *this;} + + private: + + GuardrailAction m_action; + bool m_actionHasBeenSet = false; + + Aws::Vector m_inputAssessments; + bool m_inputAssessmentsHasBeenSet = false; + + Aws::Vector m_outputAssessments; + bool m_outputAssessmentsHasBeenSet = false; + + Aws::String m_traceId; + bool m_traceIdHasBeenSet = false; + }; + +} // namespace Model +} // namespace BedrockAgentRuntime +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailWordPolicyAction.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailWordPolicyAction.h new file mode 100644 index 00000000000..1d062a5f3cf --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailWordPolicyAction.h @@ -0,0 +1,30 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace BedrockAgentRuntime +{ +namespace Model +{ + enum class GuardrailWordPolicyAction + { + NOT_SET, + BLOCKED + }; + +namespace GuardrailWordPolicyActionMapper +{ +AWS_BEDROCKAGENTRUNTIME_API GuardrailWordPolicyAction GetGuardrailWordPolicyActionForName(const Aws::String& name); + +AWS_BEDROCKAGENTRUNTIME_API Aws::String GetNameForGuardrailWordPolicyAction(GuardrailWordPolicyAction value); +} // namespace GuardrailWordPolicyActionMapper +} // namespace Model +} // namespace BedrockAgentRuntime +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailWordPolicyAssessment.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailWordPolicyAssessment.h new file mode 100644 index 00000000000..db3c85656ec --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/GuardrailWordPolicyAssessment.h @@ -0,0 +1,135 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace BedrockAgentRuntime +{ +namespace Model +{ + + /** + *

The assessment details for words defined in the Guardrail + * filter.

See Also:

AWS + * API Reference

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

The custom word details for words defined in the Guardrail filter.

+ */ + inline const Aws::Vector& GetCustomWords() const{ return m_customWords; } + + /** + *

The custom word details for words defined in the Guardrail filter.

+ */ + inline bool CustomWordsHasBeenSet() const { return m_customWordsHasBeenSet; } + + /** + *

The custom word details for words defined in the Guardrail filter.

+ */ + inline void SetCustomWords(const Aws::Vector& value) { m_customWordsHasBeenSet = true; m_customWords = value; } + + /** + *

The custom word details for words defined in the Guardrail filter.

+ */ + inline void SetCustomWords(Aws::Vector&& value) { m_customWordsHasBeenSet = true; m_customWords = std::move(value); } + + /** + *

The custom word details for words defined in the Guardrail filter.

+ */ + inline GuardrailWordPolicyAssessment& WithCustomWords(const Aws::Vector& value) { SetCustomWords(value); return *this;} + + /** + *

The custom word details for words defined in the Guardrail filter.

+ */ + inline GuardrailWordPolicyAssessment& WithCustomWords(Aws::Vector&& value) { SetCustomWords(std::move(value)); return *this;} + + /** + *

The custom word details for words defined in the Guardrail filter.

+ */ + inline GuardrailWordPolicyAssessment& AddCustomWords(const GuardrailCustomWord& value) { m_customWordsHasBeenSet = true; m_customWords.push_back(value); return *this; } + + /** + *

The custom word details for words defined in the Guardrail filter.

+ */ + inline GuardrailWordPolicyAssessment& AddCustomWords(GuardrailCustomWord&& value) { m_customWordsHasBeenSet = true; m_customWords.push_back(std::move(value)); return *this; } + + + /** + *

The managed word lists for words defined in the Guardrail filter.

+ */ + inline const Aws::Vector& GetManagedWordLists() const{ return m_managedWordLists; } + + /** + *

The managed word lists for words defined in the Guardrail filter.

+ */ + inline bool ManagedWordListsHasBeenSet() const { return m_managedWordListsHasBeenSet; } + + /** + *

The managed word lists for words defined in the Guardrail filter.

+ */ + inline void SetManagedWordLists(const Aws::Vector& value) { m_managedWordListsHasBeenSet = true; m_managedWordLists = value; } + + /** + *

The managed word lists for words defined in the Guardrail filter.

+ */ + inline void SetManagedWordLists(Aws::Vector&& value) { m_managedWordListsHasBeenSet = true; m_managedWordLists = std::move(value); } + + /** + *

The managed word lists for words defined in the Guardrail filter.

+ */ + inline GuardrailWordPolicyAssessment& WithManagedWordLists(const Aws::Vector& value) { SetManagedWordLists(value); return *this;} + + /** + *

The managed word lists for words defined in the Guardrail filter.

+ */ + inline GuardrailWordPolicyAssessment& WithManagedWordLists(Aws::Vector&& value) { SetManagedWordLists(std::move(value)); return *this;} + + /** + *

The managed word lists for words defined in the Guardrail filter.

+ */ + inline GuardrailWordPolicyAssessment& AddManagedWordLists(const GuardrailManagedWord& value) { m_managedWordListsHasBeenSet = true; m_managedWordLists.push_back(value); return *this; } + + /** + *

The managed word lists for words defined in the Guardrail filter.

+ */ + inline GuardrailWordPolicyAssessment& AddManagedWordLists(GuardrailManagedWord&& value) { m_managedWordListsHasBeenSet = true; m_managedWordLists.push_back(std::move(value)); return *this; } + + private: + + Aws::Vector m_customWords; + bool m_customWordsHasBeenSet = false; + + Aws::Vector m_managedWordLists; + bool m_managedWordListsHasBeenSet = false; + }; + +} // namespace Model +} // namespace BedrockAgentRuntime +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/Trace.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/Trace.h index 433e75ed40f..ee9408c9e01 100644 --- a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/Trace.h +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/Trace.h @@ -6,6 +6,7 @@ #pragma once #include #include +#include #include #include #include @@ -76,6 +77,37 @@ namespace Model inline Trace& WithFailureTrace(FailureTrace&& value) { SetFailureTrace(std::move(value)); return *this;} + /** + *

The trace details for a trace defined in the Guardrail filter.

+ */ + inline const GuardrailTrace& GetGuardrailTrace() const{ return m_guardrailTrace; } + + /** + *

The trace details for a trace defined in the Guardrail filter.

+ */ + inline bool GuardrailTraceHasBeenSet() const { return m_guardrailTraceHasBeenSet; } + + /** + *

The trace details for a trace defined in the Guardrail filter.

+ */ + inline void SetGuardrailTrace(const GuardrailTrace& value) { m_guardrailTraceHasBeenSet = true; m_guardrailTrace = value; } + + /** + *

The trace details for a trace defined in the Guardrail filter.

+ */ + inline void SetGuardrailTrace(GuardrailTrace&& value) { m_guardrailTraceHasBeenSet = true; m_guardrailTrace = std::move(value); } + + /** + *

The trace details for a trace defined in the Guardrail filter.

+ */ + inline Trace& WithGuardrailTrace(const GuardrailTrace& value) { SetGuardrailTrace(value); return *this;} + + /** + *

The trace details for a trace defined in the Guardrail filter.

+ */ + inline Trace& WithGuardrailTrace(GuardrailTrace&& value) { SetGuardrailTrace(std::move(value)); return *this;} + + /** *

Details about the orchestration step, in which the agent determines the order * in which actions are executed and which knowledge bases are retrieved.

@@ -191,6 +223,9 @@ namespace Model FailureTrace m_failureTrace; bool m_failureTraceHasBeenSet = false; + GuardrailTrace m_guardrailTrace; + bool m_guardrailTraceHasBeenSet = false; + OrchestrationTrace m_orchestrationTrace; bool m_orchestrationTraceHasBeenSet = false; diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailAction.cpp b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailAction.cpp new file mode 100644 index 00000000000..d98e8a9fa6a --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailAction.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 BedrockAgentRuntime + { + namespace Model + { + namespace GuardrailActionMapper + { + + static const int INTERVENED_HASH = HashingUtils::HashString("INTERVENED"); + static const int NONE_HASH = HashingUtils::HashString("NONE"); + + + GuardrailAction GetGuardrailActionForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == INTERVENED_HASH) + { + return GuardrailAction::INTERVENED; + } + else if (hashCode == NONE_HASH) + { + return GuardrailAction::NONE; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return GuardrailAction::NOT_SET; + } + + Aws::String GetNameForGuardrailAction(GuardrailAction enumValue) + { + switch(enumValue) + { + case GuardrailAction::NOT_SET: + return {}; + case GuardrailAction::INTERVENED: + return "INTERVENED"; + case GuardrailAction::NONE: + return "NONE"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace GuardrailActionMapper + } // namespace Model + } // namespace BedrockAgentRuntime +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailAssessment.cpp b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailAssessment.cpp new file mode 100644 index 00000000000..380db321de8 --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailAssessment.cpp @@ -0,0 +1,104 @@ +/** + * 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 +{ + +GuardrailAssessment::GuardrailAssessment() : + m_contentPolicyHasBeenSet(false), + m_sensitiveInformationPolicyHasBeenSet(false), + m_topicPolicyHasBeenSet(false), + m_wordPolicyHasBeenSet(false) +{ +} + +GuardrailAssessment::GuardrailAssessment(JsonView jsonValue) : + m_contentPolicyHasBeenSet(false), + m_sensitiveInformationPolicyHasBeenSet(false), + m_topicPolicyHasBeenSet(false), + m_wordPolicyHasBeenSet(false) +{ + *this = jsonValue; +} + +GuardrailAssessment& GuardrailAssessment::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("contentPolicy")) + { + m_contentPolicy = jsonValue.GetObject("contentPolicy"); + + m_contentPolicyHasBeenSet = true; + } + + if(jsonValue.ValueExists("sensitiveInformationPolicy")) + { + m_sensitiveInformationPolicy = jsonValue.GetObject("sensitiveInformationPolicy"); + + m_sensitiveInformationPolicyHasBeenSet = true; + } + + if(jsonValue.ValueExists("topicPolicy")) + { + m_topicPolicy = jsonValue.GetObject("topicPolicy"); + + m_topicPolicyHasBeenSet = true; + } + + if(jsonValue.ValueExists("wordPolicy")) + { + m_wordPolicy = jsonValue.GetObject("wordPolicy"); + + m_wordPolicyHasBeenSet = true; + } + + return *this; +} + +JsonValue GuardrailAssessment::Jsonize() const +{ + JsonValue payload; + + if(m_contentPolicyHasBeenSet) + { + payload.WithObject("contentPolicy", m_contentPolicy.Jsonize()); + + } + + if(m_sensitiveInformationPolicyHasBeenSet) + { + payload.WithObject("sensitiveInformationPolicy", m_sensitiveInformationPolicy.Jsonize()); + + } + + if(m_topicPolicyHasBeenSet) + { + payload.WithObject("topicPolicy", m_topicPolicy.Jsonize()); + + } + + if(m_wordPolicyHasBeenSet) + { + payload.WithObject("wordPolicy", m_wordPolicy.Jsonize()); + + } + + return payload; +} + +} // namespace Model +} // namespace BedrockAgentRuntime +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailContentFilter.cpp b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailContentFilter.cpp new file mode 100644 index 00000000000..27ffcd07bde --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailContentFilter.cpp @@ -0,0 +1,92 @@ +/** + * 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 +{ + +GuardrailContentFilter::GuardrailContentFilter() : + m_action(GuardrailContentPolicyAction::NOT_SET), + m_actionHasBeenSet(false), + m_confidence(GuardrailContentFilterConfidence::NOT_SET), + m_confidenceHasBeenSet(false), + m_type(GuardrailContentFilterType::NOT_SET), + m_typeHasBeenSet(false) +{ +} + +GuardrailContentFilter::GuardrailContentFilter(JsonView jsonValue) : + m_action(GuardrailContentPolicyAction::NOT_SET), + m_actionHasBeenSet(false), + m_confidence(GuardrailContentFilterConfidence::NOT_SET), + m_confidenceHasBeenSet(false), + m_type(GuardrailContentFilterType::NOT_SET), + m_typeHasBeenSet(false) +{ + *this = jsonValue; +} + +GuardrailContentFilter& GuardrailContentFilter::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("action")) + { + m_action = GuardrailContentPolicyActionMapper::GetGuardrailContentPolicyActionForName(jsonValue.GetString("action")); + + m_actionHasBeenSet = true; + } + + if(jsonValue.ValueExists("confidence")) + { + m_confidence = GuardrailContentFilterConfidenceMapper::GetGuardrailContentFilterConfidenceForName(jsonValue.GetString("confidence")); + + m_confidenceHasBeenSet = true; + } + + if(jsonValue.ValueExists("type")) + { + m_type = GuardrailContentFilterTypeMapper::GetGuardrailContentFilterTypeForName(jsonValue.GetString("type")); + + m_typeHasBeenSet = true; + } + + return *this; +} + +JsonValue GuardrailContentFilter::Jsonize() const +{ + JsonValue payload; + + if(m_actionHasBeenSet) + { + payload.WithString("action", GuardrailContentPolicyActionMapper::GetNameForGuardrailContentPolicyAction(m_action)); + } + + if(m_confidenceHasBeenSet) + { + payload.WithString("confidence", GuardrailContentFilterConfidenceMapper::GetNameForGuardrailContentFilterConfidence(m_confidence)); + } + + if(m_typeHasBeenSet) + { + payload.WithString("type", GuardrailContentFilterTypeMapper::GetNameForGuardrailContentFilterType(m_type)); + } + + return payload; +} + +} // namespace Model +} // namespace BedrockAgentRuntime +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailContentFilterConfidence.cpp b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailContentFilterConfidence.cpp new file mode 100644 index 00000000000..bd83bab8395 --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailContentFilterConfidence.cpp @@ -0,0 +1,86 @@ +/** + * 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 BedrockAgentRuntime + { + namespace Model + { + namespace GuardrailContentFilterConfidenceMapper + { + + static const int NONE_HASH = HashingUtils::HashString("NONE"); + static const int LOW_HASH = HashingUtils::HashString("LOW"); + static const int MEDIUM_HASH = HashingUtils::HashString("MEDIUM"); + static const int HIGH_HASH = HashingUtils::HashString("HIGH"); + + + GuardrailContentFilterConfidence GetGuardrailContentFilterConfidenceForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == NONE_HASH) + { + return GuardrailContentFilterConfidence::NONE; + } + else if (hashCode == LOW_HASH) + { + return GuardrailContentFilterConfidence::LOW; + } + else if (hashCode == MEDIUM_HASH) + { + return GuardrailContentFilterConfidence::MEDIUM; + } + else if (hashCode == HIGH_HASH) + { + return GuardrailContentFilterConfidence::HIGH; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return GuardrailContentFilterConfidence::NOT_SET; + } + + Aws::String GetNameForGuardrailContentFilterConfidence(GuardrailContentFilterConfidence enumValue) + { + switch(enumValue) + { + case GuardrailContentFilterConfidence::NOT_SET: + return {}; + case GuardrailContentFilterConfidence::NONE: + return "NONE"; + case GuardrailContentFilterConfidence::LOW: + return "LOW"; + case GuardrailContentFilterConfidence::MEDIUM: + return "MEDIUM"; + case GuardrailContentFilterConfidence::HIGH: + return "HIGH"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace GuardrailContentFilterConfidenceMapper + } // namespace Model + } // namespace BedrockAgentRuntime +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailContentFilterType.cpp b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailContentFilterType.cpp new file mode 100644 index 00000000000..ff05a99b305 --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailContentFilterType.cpp @@ -0,0 +1,100 @@ +/** + * 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 BedrockAgentRuntime + { + namespace Model + { + namespace GuardrailContentFilterTypeMapper + { + + static const int INSULTS_HASH = HashingUtils::HashString("INSULTS"); + static const int HATE_HASH = HashingUtils::HashString("HATE"); + static const int SEXUAL_HASH = HashingUtils::HashString("SEXUAL"); + static const int VIOLENCE_HASH = HashingUtils::HashString("VIOLENCE"); + static const int MISCONDUCT_HASH = HashingUtils::HashString("MISCONDUCT"); + static const int PROMPT_ATTACK_HASH = HashingUtils::HashString("PROMPT_ATTACK"); + + + GuardrailContentFilterType GetGuardrailContentFilterTypeForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == INSULTS_HASH) + { + return GuardrailContentFilterType::INSULTS; + } + else if (hashCode == HATE_HASH) + { + return GuardrailContentFilterType::HATE; + } + else if (hashCode == SEXUAL_HASH) + { + return GuardrailContentFilterType::SEXUAL; + } + else if (hashCode == VIOLENCE_HASH) + { + return GuardrailContentFilterType::VIOLENCE; + } + else if (hashCode == MISCONDUCT_HASH) + { + return GuardrailContentFilterType::MISCONDUCT; + } + else if (hashCode == PROMPT_ATTACK_HASH) + { + return GuardrailContentFilterType::PROMPT_ATTACK; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return GuardrailContentFilterType::NOT_SET; + } + + Aws::String GetNameForGuardrailContentFilterType(GuardrailContentFilterType enumValue) + { + switch(enumValue) + { + case GuardrailContentFilterType::NOT_SET: + return {}; + case GuardrailContentFilterType::INSULTS: + return "INSULTS"; + case GuardrailContentFilterType::HATE: + return "HATE"; + case GuardrailContentFilterType::SEXUAL: + return "SEXUAL"; + case GuardrailContentFilterType::VIOLENCE: + return "VIOLENCE"; + case GuardrailContentFilterType::MISCONDUCT: + return "MISCONDUCT"; + case GuardrailContentFilterType::PROMPT_ATTACK: + return "PROMPT_ATTACK"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace GuardrailContentFilterTypeMapper + } // namespace Model + } // namespace BedrockAgentRuntime +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailContentPolicyAction.cpp b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailContentPolicyAction.cpp new file mode 100644 index 00000000000..2a5cd6dd4e9 --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailContentPolicyAction.cpp @@ -0,0 +1,65 @@ +/** + * 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 BedrockAgentRuntime + { + namespace Model + { + namespace GuardrailContentPolicyActionMapper + { + + static const int BLOCKED_HASH = HashingUtils::HashString("BLOCKED"); + + + GuardrailContentPolicyAction GetGuardrailContentPolicyActionForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == BLOCKED_HASH) + { + return GuardrailContentPolicyAction::BLOCKED; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return GuardrailContentPolicyAction::NOT_SET; + } + + Aws::String GetNameForGuardrailContentPolicyAction(GuardrailContentPolicyAction enumValue) + { + switch(enumValue) + { + case GuardrailContentPolicyAction::NOT_SET: + return {}; + case GuardrailContentPolicyAction::BLOCKED: + return "BLOCKED"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace GuardrailContentPolicyActionMapper + } // namespace Model + } // namespace BedrockAgentRuntime +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailContentPolicyAssessment.cpp b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailContentPolicyAssessment.cpp new file mode 100644 index 00000000000..8d7e96c2471 --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailContentPolicyAssessment.cpp @@ -0,0 +1,67 @@ +/** + * 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 +{ + +GuardrailContentPolicyAssessment::GuardrailContentPolicyAssessment() : + m_filtersHasBeenSet(false) +{ +} + +GuardrailContentPolicyAssessment::GuardrailContentPolicyAssessment(JsonView jsonValue) : + m_filtersHasBeenSet(false) +{ + *this = jsonValue; +} + +GuardrailContentPolicyAssessment& GuardrailContentPolicyAssessment::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("filters")) + { + Aws::Utils::Array filtersJsonList = jsonValue.GetArray("filters"); + for(unsigned filtersIndex = 0; filtersIndex < filtersJsonList.GetLength(); ++filtersIndex) + { + m_filters.push_back(filtersJsonList[filtersIndex].AsObject()); + } + m_filtersHasBeenSet = true; + } + + return *this; +} + +JsonValue GuardrailContentPolicyAssessment::Jsonize() const +{ + JsonValue payload; + + if(m_filtersHasBeenSet) + { + Aws::Utils::Array filtersJsonList(m_filters.size()); + for(unsigned filtersIndex = 0; filtersIndex < filtersJsonList.GetLength(); ++filtersIndex) + { + filtersJsonList[filtersIndex].AsObject(m_filters[filtersIndex].Jsonize()); + } + payload.WithArray("filters", std::move(filtersJsonList)); + + } + + return payload; +} + +} // namespace Model +} // namespace BedrockAgentRuntime +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailCustomWord.cpp b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailCustomWord.cpp new file mode 100644 index 00000000000..e8f706300f2 --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailCustomWord.cpp @@ -0,0 +1,75 @@ +/** + * 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 +{ + +GuardrailCustomWord::GuardrailCustomWord() : + m_action(GuardrailWordPolicyAction::NOT_SET), + m_actionHasBeenSet(false), + m_matchHasBeenSet(false) +{ +} + +GuardrailCustomWord::GuardrailCustomWord(JsonView jsonValue) : + m_action(GuardrailWordPolicyAction::NOT_SET), + m_actionHasBeenSet(false), + m_matchHasBeenSet(false) +{ + *this = jsonValue; +} + +GuardrailCustomWord& GuardrailCustomWord::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("action")) + { + m_action = GuardrailWordPolicyActionMapper::GetGuardrailWordPolicyActionForName(jsonValue.GetString("action")); + + m_actionHasBeenSet = true; + } + + if(jsonValue.ValueExists("match")) + { + m_match = jsonValue.GetString("match"); + + m_matchHasBeenSet = true; + } + + return *this; +} + +JsonValue GuardrailCustomWord::Jsonize() const +{ + JsonValue payload; + + if(m_actionHasBeenSet) + { + payload.WithString("action", GuardrailWordPolicyActionMapper::GetNameForGuardrailWordPolicyAction(m_action)); + } + + if(m_matchHasBeenSet) + { + payload.WithString("match", m_match); + + } + + return payload; +} + +} // namespace Model +} // namespace BedrockAgentRuntime +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailManagedWord.cpp b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailManagedWord.cpp new file mode 100644 index 00000000000..b66fe0db5e5 --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailManagedWord.cpp @@ -0,0 +1,91 @@ +/** + * 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 +{ + +GuardrailManagedWord::GuardrailManagedWord() : + m_action(GuardrailWordPolicyAction::NOT_SET), + m_actionHasBeenSet(false), + m_matchHasBeenSet(false), + m_type(GuardrailManagedWordType::NOT_SET), + m_typeHasBeenSet(false) +{ +} + +GuardrailManagedWord::GuardrailManagedWord(JsonView jsonValue) : + m_action(GuardrailWordPolicyAction::NOT_SET), + m_actionHasBeenSet(false), + m_matchHasBeenSet(false), + m_type(GuardrailManagedWordType::NOT_SET), + m_typeHasBeenSet(false) +{ + *this = jsonValue; +} + +GuardrailManagedWord& GuardrailManagedWord::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("action")) + { + m_action = GuardrailWordPolicyActionMapper::GetGuardrailWordPolicyActionForName(jsonValue.GetString("action")); + + m_actionHasBeenSet = true; + } + + if(jsonValue.ValueExists("match")) + { + m_match = jsonValue.GetString("match"); + + m_matchHasBeenSet = true; + } + + if(jsonValue.ValueExists("type")) + { + m_type = GuardrailManagedWordTypeMapper::GetGuardrailManagedWordTypeForName(jsonValue.GetString("type")); + + m_typeHasBeenSet = true; + } + + return *this; +} + +JsonValue GuardrailManagedWord::Jsonize() const +{ + JsonValue payload; + + if(m_actionHasBeenSet) + { + payload.WithString("action", GuardrailWordPolicyActionMapper::GetNameForGuardrailWordPolicyAction(m_action)); + } + + if(m_matchHasBeenSet) + { + payload.WithString("match", m_match); + + } + + if(m_typeHasBeenSet) + { + payload.WithString("type", GuardrailManagedWordTypeMapper::GetNameForGuardrailManagedWordType(m_type)); + } + + return payload; +} + +} // namespace Model +} // namespace BedrockAgentRuntime +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailManagedWordType.cpp b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailManagedWordType.cpp new file mode 100644 index 00000000000..dd72b764ae2 --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailManagedWordType.cpp @@ -0,0 +1,65 @@ +/** + * 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 BedrockAgentRuntime + { + namespace Model + { + namespace GuardrailManagedWordTypeMapper + { + + static const int PROFANITY_HASH = HashingUtils::HashString("PROFANITY"); + + + GuardrailManagedWordType GetGuardrailManagedWordTypeForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == PROFANITY_HASH) + { + return GuardrailManagedWordType::PROFANITY; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return GuardrailManagedWordType::NOT_SET; + } + + Aws::String GetNameForGuardrailManagedWordType(GuardrailManagedWordType enumValue) + { + switch(enumValue) + { + case GuardrailManagedWordType::NOT_SET: + return {}; + case GuardrailManagedWordType::PROFANITY: + return "PROFANITY"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace GuardrailManagedWordTypeMapper + } // namespace Model + } // namespace BedrockAgentRuntime +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailPiiEntityFilter.cpp b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailPiiEntityFilter.cpp new file mode 100644 index 00000000000..09501962431 --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailPiiEntityFilter.cpp @@ -0,0 +1,91 @@ +/** + * 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 +{ + +GuardrailPiiEntityFilter::GuardrailPiiEntityFilter() : + m_action(GuardrailSensitiveInformationPolicyAction::NOT_SET), + m_actionHasBeenSet(false), + m_matchHasBeenSet(false), + m_type(GuardrailPiiEntityType::NOT_SET), + m_typeHasBeenSet(false) +{ +} + +GuardrailPiiEntityFilter::GuardrailPiiEntityFilter(JsonView jsonValue) : + m_action(GuardrailSensitiveInformationPolicyAction::NOT_SET), + m_actionHasBeenSet(false), + m_matchHasBeenSet(false), + m_type(GuardrailPiiEntityType::NOT_SET), + m_typeHasBeenSet(false) +{ + *this = jsonValue; +} + +GuardrailPiiEntityFilter& GuardrailPiiEntityFilter::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("action")) + { + m_action = GuardrailSensitiveInformationPolicyActionMapper::GetGuardrailSensitiveInformationPolicyActionForName(jsonValue.GetString("action")); + + m_actionHasBeenSet = true; + } + + if(jsonValue.ValueExists("match")) + { + m_match = jsonValue.GetString("match"); + + m_matchHasBeenSet = true; + } + + if(jsonValue.ValueExists("type")) + { + m_type = GuardrailPiiEntityTypeMapper::GetGuardrailPiiEntityTypeForName(jsonValue.GetString("type")); + + m_typeHasBeenSet = true; + } + + return *this; +} + +JsonValue GuardrailPiiEntityFilter::Jsonize() const +{ + JsonValue payload; + + if(m_actionHasBeenSet) + { + payload.WithString("action", GuardrailSensitiveInformationPolicyActionMapper::GetNameForGuardrailSensitiveInformationPolicyAction(m_action)); + } + + if(m_matchHasBeenSet) + { + payload.WithString("match", m_match); + + } + + if(m_typeHasBeenSet) + { + payload.WithString("type", GuardrailPiiEntityTypeMapper::GetNameForGuardrailPiiEntityType(m_type)); + } + + return payload; +} + +} // namespace Model +} // namespace BedrockAgentRuntime +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailPiiEntityType.cpp b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailPiiEntityType.cpp new file mode 100644 index 00000000000..08fcf4dfa9e --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailPiiEntityType.cpp @@ -0,0 +1,275 @@ +/** + * 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 BedrockAgentRuntime + { + namespace Model + { + namespace GuardrailPiiEntityTypeMapper + { + + static const int ADDRESS_HASH = HashingUtils::HashString("ADDRESS"); + static const int AGE_HASH = HashingUtils::HashString("AGE"); + static const int AWS_ACCESS_KEY_HASH = HashingUtils::HashString("AWS_ACCESS_KEY"); + static const int AWS_SECRET_KEY_HASH = HashingUtils::HashString("AWS_SECRET_KEY"); + static const int CA_HEALTH_NUMBER_HASH = HashingUtils::HashString("CA_HEALTH_NUMBER"); + static const int CA_SOCIAL_INSURANCE_NUMBER_HASH = HashingUtils::HashString("CA_SOCIAL_INSURANCE_NUMBER"); + static const int CREDIT_DEBIT_CARD_CVV_HASH = HashingUtils::HashString("CREDIT_DEBIT_CARD_CVV"); + static const int CREDIT_DEBIT_CARD_EXPIRY_HASH = HashingUtils::HashString("CREDIT_DEBIT_CARD_EXPIRY"); + static const int CREDIT_DEBIT_CARD_NUMBER_HASH = HashingUtils::HashString("CREDIT_DEBIT_CARD_NUMBER"); + static const int DRIVER_ID_HASH = HashingUtils::HashString("DRIVER_ID"); + static const int EMAIL_HASH = HashingUtils::HashString("EMAIL"); + static const int INTERNATIONAL_BANK_ACCOUNT_NUMBER_HASH = HashingUtils::HashString("INTERNATIONAL_BANK_ACCOUNT_NUMBER"); + static const int IP_ADDRESS_HASH = HashingUtils::HashString("IP_ADDRESS"); + static const int LICENSE_PLATE_HASH = HashingUtils::HashString("LICENSE_PLATE"); + static const int MAC_ADDRESS_HASH = HashingUtils::HashString("MAC_ADDRESS"); + static const int NAME_HASH = HashingUtils::HashString("NAME"); + static const int PASSWORD_HASH = HashingUtils::HashString("PASSWORD"); + static const int PHONE_HASH = HashingUtils::HashString("PHONE"); + static const int PIN_HASH = HashingUtils::HashString("PIN"); + static const int SWIFT_CODE_HASH = HashingUtils::HashString("SWIFT_CODE"); + static const int UK_NATIONAL_HEALTH_SERVICE_NUMBER_HASH = HashingUtils::HashString("UK_NATIONAL_HEALTH_SERVICE_NUMBER"); + static const int UK_NATIONAL_INSURANCE_NUMBER_HASH = HashingUtils::HashString("UK_NATIONAL_INSURANCE_NUMBER"); + static const int UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER_HASH = HashingUtils::HashString("UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER"); + static const int URL_HASH = HashingUtils::HashString("URL"); + static const int USERNAME_HASH = HashingUtils::HashString("USERNAME"); + static const int US_BANK_ACCOUNT_NUMBER_HASH = HashingUtils::HashString("US_BANK_ACCOUNT_NUMBER"); + static const int US_BANK_ROUTING_NUMBER_HASH = HashingUtils::HashString("US_BANK_ROUTING_NUMBER"); + static const int US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER_HASH = HashingUtils::HashString("US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER"); + static const int US_PASSPORT_NUMBER_HASH = HashingUtils::HashString("US_PASSPORT_NUMBER"); + static const int US_SOCIAL_SECURITY_NUMBER_HASH = HashingUtils::HashString("US_SOCIAL_SECURITY_NUMBER"); + static const int VEHICLE_IDENTIFICATION_NUMBER_HASH = HashingUtils::HashString("VEHICLE_IDENTIFICATION_NUMBER"); + + + GuardrailPiiEntityType GetGuardrailPiiEntityTypeForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == ADDRESS_HASH) + { + return GuardrailPiiEntityType::ADDRESS; + } + else if (hashCode == AGE_HASH) + { + return GuardrailPiiEntityType::AGE; + } + else if (hashCode == AWS_ACCESS_KEY_HASH) + { + return GuardrailPiiEntityType::AWS_ACCESS_KEY; + } + else if (hashCode == AWS_SECRET_KEY_HASH) + { + return GuardrailPiiEntityType::AWS_SECRET_KEY; + } + else if (hashCode == CA_HEALTH_NUMBER_HASH) + { + return GuardrailPiiEntityType::CA_HEALTH_NUMBER; + } + else if (hashCode == CA_SOCIAL_INSURANCE_NUMBER_HASH) + { + return GuardrailPiiEntityType::CA_SOCIAL_INSURANCE_NUMBER; + } + else if (hashCode == CREDIT_DEBIT_CARD_CVV_HASH) + { + return GuardrailPiiEntityType::CREDIT_DEBIT_CARD_CVV; + } + else if (hashCode == CREDIT_DEBIT_CARD_EXPIRY_HASH) + { + return GuardrailPiiEntityType::CREDIT_DEBIT_CARD_EXPIRY; + } + else if (hashCode == CREDIT_DEBIT_CARD_NUMBER_HASH) + { + return GuardrailPiiEntityType::CREDIT_DEBIT_CARD_NUMBER; + } + else if (hashCode == DRIVER_ID_HASH) + { + return GuardrailPiiEntityType::DRIVER_ID; + } + else if (hashCode == EMAIL_HASH) + { + return GuardrailPiiEntityType::EMAIL; + } + else if (hashCode == INTERNATIONAL_BANK_ACCOUNT_NUMBER_HASH) + { + return GuardrailPiiEntityType::INTERNATIONAL_BANK_ACCOUNT_NUMBER; + } + else if (hashCode == IP_ADDRESS_HASH) + { + return GuardrailPiiEntityType::IP_ADDRESS; + } + else if (hashCode == LICENSE_PLATE_HASH) + { + return GuardrailPiiEntityType::LICENSE_PLATE; + } + else if (hashCode == MAC_ADDRESS_HASH) + { + return GuardrailPiiEntityType::MAC_ADDRESS; + } + else if (hashCode == NAME_HASH) + { + return GuardrailPiiEntityType::NAME; + } + else if (hashCode == PASSWORD_HASH) + { + return GuardrailPiiEntityType::PASSWORD; + } + else if (hashCode == PHONE_HASH) + { + return GuardrailPiiEntityType::PHONE; + } + else if (hashCode == PIN_HASH) + { + return GuardrailPiiEntityType::PIN; + } + else if (hashCode == SWIFT_CODE_HASH) + { + return GuardrailPiiEntityType::SWIFT_CODE; + } + else if (hashCode == UK_NATIONAL_HEALTH_SERVICE_NUMBER_HASH) + { + return GuardrailPiiEntityType::UK_NATIONAL_HEALTH_SERVICE_NUMBER; + } + else if (hashCode == UK_NATIONAL_INSURANCE_NUMBER_HASH) + { + return GuardrailPiiEntityType::UK_NATIONAL_INSURANCE_NUMBER; + } + else if (hashCode == UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER_HASH) + { + return GuardrailPiiEntityType::UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER; + } + else if (hashCode == URL_HASH) + { + return GuardrailPiiEntityType::URL; + } + else if (hashCode == USERNAME_HASH) + { + return GuardrailPiiEntityType::USERNAME; + } + else if (hashCode == US_BANK_ACCOUNT_NUMBER_HASH) + { + return GuardrailPiiEntityType::US_BANK_ACCOUNT_NUMBER; + } + else if (hashCode == US_BANK_ROUTING_NUMBER_HASH) + { + return GuardrailPiiEntityType::US_BANK_ROUTING_NUMBER; + } + else if (hashCode == US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER_HASH) + { + return GuardrailPiiEntityType::US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER; + } + else if (hashCode == US_PASSPORT_NUMBER_HASH) + { + return GuardrailPiiEntityType::US_PASSPORT_NUMBER; + } + else if (hashCode == US_SOCIAL_SECURITY_NUMBER_HASH) + { + return GuardrailPiiEntityType::US_SOCIAL_SECURITY_NUMBER; + } + else if (hashCode == VEHICLE_IDENTIFICATION_NUMBER_HASH) + { + return GuardrailPiiEntityType::VEHICLE_IDENTIFICATION_NUMBER; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return GuardrailPiiEntityType::NOT_SET; + } + + Aws::String GetNameForGuardrailPiiEntityType(GuardrailPiiEntityType enumValue) + { + switch(enumValue) + { + case GuardrailPiiEntityType::NOT_SET: + return {}; + case GuardrailPiiEntityType::ADDRESS: + return "ADDRESS"; + case GuardrailPiiEntityType::AGE: + return "AGE"; + case GuardrailPiiEntityType::AWS_ACCESS_KEY: + return "AWS_ACCESS_KEY"; + case GuardrailPiiEntityType::AWS_SECRET_KEY: + return "AWS_SECRET_KEY"; + case GuardrailPiiEntityType::CA_HEALTH_NUMBER: + return "CA_HEALTH_NUMBER"; + case GuardrailPiiEntityType::CA_SOCIAL_INSURANCE_NUMBER: + return "CA_SOCIAL_INSURANCE_NUMBER"; + case GuardrailPiiEntityType::CREDIT_DEBIT_CARD_CVV: + return "CREDIT_DEBIT_CARD_CVV"; + case GuardrailPiiEntityType::CREDIT_DEBIT_CARD_EXPIRY: + return "CREDIT_DEBIT_CARD_EXPIRY"; + case GuardrailPiiEntityType::CREDIT_DEBIT_CARD_NUMBER: + return "CREDIT_DEBIT_CARD_NUMBER"; + case GuardrailPiiEntityType::DRIVER_ID: + return "DRIVER_ID"; + case GuardrailPiiEntityType::EMAIL: + return "EMAIL"; + case GuardrailPiiEntityType::INTERNATIONAL_BANK_ACCOUNT_NUMBER: + return "INTERNATIONAL_BANK_ACCOUNT_NUMBER"; + case GuardrailPiiEntityType::IP_ADDRESS: + return "IP_ADDRESS"; + case GuardrailPiiEntityType::LICENSE_PLATE: + return "LICENSE_PLATE"; + case GuardrailPiiEntityType::MAC_ADDRESS: + return "MAC_ADDRESS"; + case GuardrailPiiEntityType::NAME: + return "NAME"; + case GuardrailPiiEntityType::PASSWORD: + return "PASSWORD"; + case GuardrailPiiEntityType::PHONE: + return "PHONE"; + case GuardrailPiiEntityType::PIN: + return "PIN"; + case GuardrailPiiEntityType::SWIFT_CODE: + return "SWIFT_CODE"; + case GuardrailPiiEntityType::UK_NATIONAL_HEALTH_SERVICE_NUMBER: + return "UK_NATIONAL_HEALTH_SERVICE_NUMBER"; + case GuardrailPiiEntityType::UK_NATIONAL_INSURANCE_NUMBER: + return "UK_NATIONAL_INSURANCE_NUMBER"; + case GuardrailPiiEntityType::UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER: + return "UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER"; + case GuardrailPiiEntityType::URL: + return "URL"; + case GuardrailPiiEntityType::USERNAME: + return "USERNAME"; + case GuardrailPiiEntityType::US_BANK_ACCOUNT_NUMBER: + return "US_BANK_ACCOUNT_NUMBER"; + case GuardrailPiiEntityType::US_BANK_ROUTING_NUMBER: + return "US_BANK_ROUTING_NUMBER"; + case GuardrailPiiEntityType::US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER: + return "US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER"; + case GuardrailPiiEntityType::US_PASSPORT_NUMBER: + return "US_PASSPORT_NUMBER"; + case GuardrailPiiEntityType::US_SOCIAL_SECURITY_NUMBER: + return "US_SOCIAL_SECURITY_NUMBER"; + case GuardrailPiiEntityType::VEHICLE_IDENTIFICATION_NUMBER: + return "VEHICLE_IDENTIFICATION_NUMBER"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace GuardrailPiiEntityTypeMapper + } // namespace Model + } // namespace BedrockAgentRuntime +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailRegexFilter.cpp b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailRegexFilter.cpp new file mode 100644 index 00000000000..f8b0f3c6fe2 --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailRegexFilter.cpp @@ -0,0 +1,105 @@ +/** + * 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 +{ + +GuardrailRegexFilter::GuardrailRegexFilter() : + m_action(GuardrailSensitiveInformationPolicyAction::NOT_SET), + m_actionHasBeenSet(false), + m_matchHasBeenSet(false), + m_nameHasBeenSet(false), + m_regexHasBeenSet(false) +{ +} + +GuardrailRegexFilter::GuardrailRegexFilter(JsonView jsonValue) : + m_action(GuardrailSensitiveInformationPolicyAction::NOT_SET), + m_actionHasBeenSet(false), + m_matchHasBeenSet(false), + m_nameHasBeenSet(false), + m_regexHasBeenSet(false) +{ + *this = jsonValue; +} + +GuardrailRegexFilter& GuardrailRegexFilter::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("action")) + { + m_action = GuardrailSensitiveInformationPolicyActionMapper::GetGuardrailSensitiveInformationPolicyActionForName(jsonValue.GetString("action")); + + m_actionHasBeenSet = true; + } + + if(jsonValue.ValueExists("match")) + { + m_match = jsonValue.GetString("match"); + + m_matchHasBeenSet = true; + } + + if(jsonValue.ValueExists("name")) + { + m_name = jsonValue.GetString("name"); + + m_nameHasBeenSet = true; + } + + if(jsonValue.ValueExists("regex")) + { + m_regex = jsonValue.GetString("regex"); + + m_regexHasBeenSet = true; + } + + return *this; +} + +JsonValue GuardrailRegexFilter::Jsonize() const +{ + JsonValue payload; + + if(m_actionHasBeenSet) + { + payload.WithString("action", GuardrailSensitiveInformationPolicyActionMapper::GetNameForGuardrailSensitiveInformationPolicyAction(m_action)); + } + + if(m_matchHasBeenSet) + { + payload.WithString("match", m_match); + + } + + if(m_nameHasBeenSet) + { + payload.WithString("name", m_name); + + } + + if(m_regexHasBeenSet) + { + payload.WithString("regex", m_regex); + + } + + return payload; +} + +} // namespace Model +} // namespace BedrockAgentRuntime +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailSensitiveInformationPolicyAction.cpp b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailSensitiveInformationPolicyAction.cpp new file mode 100644 index 00000000000..bbc7dab31cf --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailSensitiveInformationPolicyAction.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 BedrockAgentRuntime + { + namespace Model + { + namespace GuardrailSensitiveInformationPolicyActionMapper + { + + static const int BLOCKED_HASH = HashingUtils::HashString("BLOCKED"); + static const int ANONYMIZED_HASH = HashingUtils::HashString("ANONYMIZED"); + + + GuardrailSensitiveInformationPolicyAction GetGuardrailSensitiveInformationPolicyActionForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == BLOCKED_HASH) + { + return GuardrailSensitiveInformationPolicyAction::BLOCKED; + } + else if (hashCode == ANONYMIZED_HASH) + { + return GuardrailSensitiveInformationPolicyAction::ANONYMIZED; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return GuardrailSensitiveInformationPolicyAction::NOT_SET; + } + + Aws::String GetNameForGuardrailSensitiveInformationPolicyAction(GuardrailSensitiveInformationPolicyAction enumValue) + { + switch(enumValue) + { + case GuardrailSensitiveInformationPolicyAction::NOT_SET: + return {}; + case GuardrailSensitiveInformationPolicyAction::BLOCKED: + return "BLOCKED"; + case GuardrailSensitiveInformationPolicyAction::ANONYMIZED: + return "ANONYMIZED"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace GuardrailSensitiveInformationPolicyActionMapper + } // namespace Model + } // namespace BedrockAgentRuntime +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailSensitiveInformationPolicyAssessment.cpp b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailSensitiveInformationPolicyAssessment.cpp new file mode 100644 index 00000000000..96fb0b72e8a --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailSensitiveInformationPolicyAssessment.cpp @@ -0,0 +1,90 @@ +/** + * 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 +{ + +GuardrailSensitiveInformationPolicyAssessment::GuardrailSensitiveInformationPolicyAssessment() : + m_piiEntitiesHasBeenSet(false), + m_regexesHasBeenSet(false) +{ +} + +GuardrailSensitiveInformationPolicyAssessment::GuardrailSensitiveInformationPolicyAssessment(JsonView jsonValue) : + m_piiEntitiesHasBeenSet(false), + m_regexesHasBeenSet(false) +{ + *this = jsonValue; +} + +GuardrailSensitiveInformationPolicyAssessment& GuardrailSensitiveInformationPolicyAssessment::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("piiEntities")) + { + Aws::Utils::Array piiEntitiesJsonList = jsonValue.GetArray("piiEntities"); + for(unsigned piiEntitiesIndex = 0; piiEntitiesIndex < piiEntitiesJsonList.GetLength(); ++piiEntitiesIndex) + { + m_piiEntities.push_back(piiEntitiesJsonList[piiEntitiesIndex].AsObject()); + } + m_piiEntitiesHasBeenSet = true; + } + + if(jsonValue.ValueExists("regexes")) + { + Aws::Utils::Array regexesJsonList = jsonValue.GetArray("regexes"); + for(unsigned regexesIndex = 0; regexesIndex < regexesJsonList.GetLength(); ++regexesIndex) + { + m_regexes.push_back(regexesJsonList[regexesIndex].AsObject()); + } + m_regexesHasBeenSet = true; + } + + return *this; +} + +JsonValue GuardrailSensitiveInformationPolicyAssessment::Jsonize() const +{ + JsonValue payload; + + if(m_piiEntitiesHasBeenSet) + { + Aws::Utils::Array piiEntitiesJsonList(m_piiEntities.size()); + for(unsigned piiEntitiesIndex = 0; piiEntitiesIndex < piiEntitiesJsonList.GetLength(); ++piiEntitiesIndex) + { + piiEntitiesJsonList[piiEntitiesIndex].AsObject(m_piiEntities[piiEntitiesIndex].Jsonize()); + } + payload.WithArray("piiEntities", std::move(piiEntitiesJsonList)); + + } + + if(m_regexesHasBeenSet) + { + Aws::Utils::Array regexesJsonList(m_regexes.size()); + for(unsigned regexesIndex = 0; regexesIndex < regexesJsonList.GetLength(); ++regexesIndex) + { + regexesJsonList[regexesIndex].AsObject(m_regexes[regexesIndex].Jsonize()); + } + payload.WithArray("regexes", std::move(regexesJsonList)); + + } + + return payload; +} + +} // namespace Model +} // namespace BedrockAgentRuntime +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailTopic.cpp b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailTopic.cpp new file mode 100644 index 00000000000..363e7b29463 --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailTopic.cpp @@ -0,0 +1,91 @@ +/** + * 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 +{ + +GuardrailTopic::GuardrailTopic() : + m_action(GuardrailTopicPolicyAction::NOT_SET), + m_actionHasBeenSet(false), + m_nameHasBeenSet(false), + m_type(GuardrailTopicType::NOT_SET), + m_typeHasBeenSet(false) +{ +} + +GuardrailTopic::GuardrailTopic(JsonView jsonValue) : + m_action(GuardrailTopicPolicyAction::NOT_SET), + m_actionHasBeenSet(false), + m_nameHasBeenSet(false), + m_type(GuardrailTopicType::NOT_SET), + m_typeHasBeenSet(false) +{ + *this = jsonValue; +} + +GuardrailTopic& GuardrailTopic::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("action")) + { + m_action = GuardrailTopicPolicyActionMapper::GetGuardrailTopicPolicyActionForName(jsonValue.GetString("action")); + + m_actionHasBeenSet = true; + } + + if(jsonValue.ValueExists("name")) + { + m_name = jsonValue.GetString("name"); + + m_nameHasBeenSet = true; + } + + if(jsonValue.ValueExists("type")) + { + m_type = GuardrailTopicTypeMapper::GetGuardrailTopicTypeForName(jsonValue.GetString("type")); + + m_typeHasBeenSet = true; + } + + return *this; +} + +JsonValue GuardrailTopic::Jsonize() const +{ + JsonValue payload; + + if(m_actionHasBeenSet) + { + payload.WithString("action", GuardrailTopicPolicyActionMapper::GetNameForGuardrailTopicPolicyAction(m_action)); + } + + if(m_nameHasBeenSet) + { + payload.WithString("name", m_name); + + } + + if(m_typeHasBeenSet) + { + payload.WithString("type", GuardrailTopicTypeMapper::GetNameForGuardrailTopicType(m_type)); + } + + return payload; +} + +} // namespace Model +} // namespace BedrockAgentRuntime +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailTopicPolicyAction.cpp b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailTopicPolicyAction.cpp new file mode 100644 index 00000000000..833851f90b3 --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailTopicPolicyAction.cpp @@ -0,0 +1,65 @@ +/** + * 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 BedrockAgentRuntime + { + namespace Model + { + namespace GuardrailTopicPolicyActionMapper + { + + static const int BLOCKED_HASH = HashingUtils::HashString("BLOCKED"); + + + GuardrailTopicPolicyAction GetGuardrailTopicPolicyActionForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == BLOCKED_HASH) + { + return GuardrailTopicPolicyAction::BLOCKED; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return GuardrailTopicPolicyAction::NOT_SET; + } + + Aws::String GetNameForGuardrailTopicPolicyAction(GuardrailTopicPolicyAction enumValue) + { + switch(enumValue) + { + case GuardrailTopicPolicyAction::NOT_SET: + return {}; + case GuardrailTopicPolicyAction::BLOCKED: + return "BLOCKED"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace GuardrailTopicPolicyActionMapper + } // namespace Model + } // namespace BedrockAgentRuntime +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailTopicPolicyAssessment.cpp b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailTopicPolicyAssessment.cpp new file mode 100644 index 00000000000..d03121bdfa2 --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailTopicPolicyAssessment.cpp @@ -0,0 +1,67 @@ +/** + * 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 +{ + +GuardrailTopicPolicyAssessment::GuardrailTopicPolicyAssessment() : + m_topicsHasBeenSet(false) +{ +} + +GuardrailTopicPolicyAssessment::GuardrailTopicPolicyAssessment(JsonView jsonValue) : + m_topicsHasBeenSet(false) +{ + *this = jsonValue; +} + +GuardrailTopicPolicyAssessment& GuardrailTopicPolicyAssessment::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("topics")) + { + Aws::Utils::Array topicsJsonList = jsonValue.GetArray("topics"); + for(unsigned topicsIndex = 0; topicsIndex < topicsJsonList.GetLength(); ++topicsIndex) + { + m_topics.push_back(topicsJsonList[topicsIndex].AsObject()); + } + m_topicsHasBeenSet = true; + } + + return *this; +} + +JsonValue GuardrailTopicPolicyAssessment::Jsonize() const +{ + JsonValue payload; + + if(m_topicsHasBeenSet) + { + Aws::Utils::Array topicsJsonList(m_topics.size()); + for(unsigned topicsIndex = 0; topicsIndex < topicsJsonList.GetLength(); ++topicsIndex) + { + topicsJsonList[topicsIndex].AsObject(m_topics[topicsIndex].Jsonize()); + } + payload.WithArray("topics", std::move(topicsJsonList)); + + } + + return payload; +} + +} // namespace Model +} // namespace BedrockAgentRuntime +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailTopicType.cpp b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailTopicType.cpp new file mode 100644 index 00000000000..5d77abed7f1 --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailTopicType.cpp @@ -0,0 +1,65 @@ +/** + * 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 BedrockAgentRuntime + { + namespace Model + { + namespace GuardrailTopicTypeMapper + { + + static const int DENY_HASH = HashingUtils::HashString("DENY"); + + + GuardrailTopicType GetGuardrailTopicTypeForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == DENY_HASH) + { + return GuardrailTopicType::DENY; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return GuardrailTopicType::NOT_SET; + } + + Aws::String GetNameForGuardrailTopicType(GuardrailTopicType enumValue) + { + switch(enumValue) + { + case GuardrailTopicType::NOT_SET: + return {}; + case GuardrailTopicType::DENY: + return "DENY"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace GuardrailTopicTypeMapper + } // namespace Model + } // namespace BedrockAgentRuntime +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailTrace.cpp b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailTrace.cpp new file mode 100644 index 00000000000..22c26dad95a --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailTrace.cpp @@ -0,0 +1,121 @@ +/** + * 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 +{ + +GuardrailTrace::GuardrailTrace() : + m_action(GuardrailAction::NOT_SET), + m_actionHasBeenSet(false), + m_inputAssessmentsHasBeenSet(false), + m_outputAssessmentsHasBeenSet(false), + m_traceIdHasBeenSet(false) +{ +} + +GuardrailTrace::GuardrailTrace(JsonView jsonValue) : + m_action(GuardrailAction::NOT_SET), + m_actionHasBeenSet(false), + m_inputAssessmentsHasBeenSet(false), + m_outputAssessmentsHasBeenSet(false), + m_traceIdHasBeenSet(false) +{ + *this = jsonValue; +} + +GuardrailTrace& GuardrailTrace::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("action")) + { + m_action = GuardrailActionMapper::GetGuardrailActionForName(jsonValue.GetString("action")); + + m_actionHasBeenSet = true; + } + + if(jsonValue.ValueExists("inputAssessments")) + { + Aws::Utils::Array inputAssessmentsJsonList = jsonValue.GetArray("inputAssessments"); + for(unsigned inputAssessmentsIndex = 0; inputAssessmentsIndex < inputAssessmentsJsonList.GetLength(); ++inputAssessmentsIndex) + { + m_inputAssessments.push_back(inputAssessmentsJsonList[inputAssessmentsIndex].AsObject()); + } + m_inputAssessmentsHasBeenSet = true; + } + + if(jsonValue.ValueExists("outputAssessments")) + { + Aws::Utils::Array outputAssessmentsJsonList = jsonValue.GetArray("outputAssessments"); + for(unsigned outputAssessmentsIndex = 0; outputAssessmentsIndex < outputAssessmentsJsonList.GetLength(); ++outputAssessmentsIndex) + { + m_outputAssessments.push_back(outputAssessmentsJsonList[outputAssessmentsIndex].AsObject()); + } + m_outputAssessmentsHasBeenSet = true; + } + + if(jsonValue.ValueExists("traceId")) + { + m_traceId = jsonValue.GetString("traceId"); + + m_traceIdHasBeenSet = true; + } + + return *this; +} + +JsonValue GuardrailTrace::Jsonize() const +{ + JsonValue payload; + + if(m_actionHasBeenSet) + { + payload.WithString("action", GuardrailActionMapper::GetNameForGuardrailAction(m_action)); + } + + if(m_inputAssessmentsHasBeenSet) + { + Aws::Utils::Array inputAssessmentsJsonList(m_inputAssessments.size()); + for(unsigned inputAssessmentsIndex = 0; inputAssessmentsIndex < inputAssessmentsJsonList.GetLength(); ++inputAssessmentsIndex) + { + inputAssessmentsJsonList[inputAssessmentsIndex].AsObject(m_inputAssessments[inputAssessmentsIndex].Jsonize()); + } + payload.WithArray("inputAssessments", std::move(inputAssessmentsJsonList)); + + } + + if(m_outputAssessmentsHasBeenSet) + { + Aws::Utils::Array outputAssessmentsJsonList(m_outputAssessments.size()); + for(unsigned outputAssessmentsIndex = 0; outputAssessmentsIndex < outputAssessmentsJsonList.GetLength(); ++outputAssessmentsIndex) + { + outputAssessmentsJsonList[outputAssessmentsIndex].AsObject(m_outputAssessments[outputAssessmentsIndex].Jsonize()); + } + payload.WithArray("outputAssessments", std::move(outputAssessmentsJsonList)); + + } + + if(m_traceIdHasBeenSet) + { + payload.WithString("traceId", m_traceId); + + } + + return payload; +} + +} // namespace Model +} // namespace BedrockAgentRuntime +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailWordPolicyAction.cpp b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailWordPolicyAction.cpp new file mode 100644 index 00000000000..ec2725d0a64 --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailWordPolicyAction.cpp @@ -0,0 +1,65 @@ +/** + * 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 BedrockAgentRuntime + { + namespace Model + { + namespace GuardrailWordPolicyActionMapper + { + + static const int BLOCKED_HASH = HashingUtils::HashString("BLOCKED"); + + + GuardrailWordPolicyAction GetGuardrailWordPolicyActionForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == BLOCKED_HASH) + { + return GuardrailWordPolicyAction::BLOCKED; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return GuardrailWordPolicyAction::NOT_SET; + } + + Aws::String GetNameForGuardrailWordPolicyAction(GuardrailWordPolicyAction enumValue) + { + switch(enumValue) + { + case GuardrailWordPolicyAction::NOT_SET: + return {}; + case GuardrailWordPolicyAction::BLOCKED: + return "BLOCKED"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace GuardrailWordPolicyActionMapper + } // namespace Model + } // namespace BedrockAgentRuntime +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailWordPolicyAssessment.cpp b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailWordPolicyAssessment.cpp new file mode 100644 index 00000000000..da143ae282d --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/GuardrailWordPolicyAssessment.cpp @@ -0,0 +1,90 @@ +/** + * 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 +{ + +GuardrailWordPolicyAssessment::GuardrailWordPolicyAssessment() : + m_customWordsHasBeenSet(false), + m_managedWordListsHasBeenSet(false) +{ +} + +GuardrailWordPolicyAssessment::GuardrailWordPolicyAssessment(JsonView jsonValue) : + m_customWordsHasBeenSet(false), + m_managedWordListsHasBeenSet(false) +{ + *this = jsonValue; +} + +GuardrailWordPolicyAssessment& GuardrailWordPolicyAssessment::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("customWords")) + { + Aws::Utils::Array customWordsJsonList = jsonValue.GetArray("customWords"); + for(unsigned customWordsIndex = 0; customWordsIndex < customWordsJsonList.GetLength(); ++customWordsIndex) + { + m_customWords.push_back(customWordsJsonList[customWordsIndex].AsObject()); + } + m_customWordsHasBeenSet = true; + } + + if(jsonValue.ValueExists("managedWordLists")) + { + Aws::Utils::Array managedWordListsJsonList = jsonValue.GetArray("managedWordLists"); + for(unsigned managedWordListsIndex = 0; managedWordListsIndex < managedWordListsJsonList.GetLength(); ++managedWordListsIndex) + { + m_managedWordLists.push_back(managedWordListsJsonList[managedWordListsIndex].AsObject()); + } + m_managedWordListsHasBeenSet = true; + } + + return *this; +} + +JsonValue GuardrailWordPolicyAssessment::Jsonize() const +{ + JsonValue payload; + + if(m_customWordsHasBeenSet) + { + Aws::Utils::Array customWordsJsonList(m_customWords.size()); + for(unsigned customWordsIndex = 0; customWordsIndex < customWordsJsonList.GetLength(); ++customWordsIndex) + { + customWordsJsonList[customWordsIndex].AsObject(m_customWords[customWordsIndex].Jsonize()); + } + payload.WithArray("customWords", std::move(customWordsJsonList)); + + } + + if(m_managedWordListsHasBeenSet) + { + Aws::Utils::Array managedWordListsJsonList(m_managedWordLists.size()); + for(unsigned managedWordListsIndex = 0; managedWordListsIndex < managedWordListsJsonList.GetLength(); ++managedWordListsIndex) + { + managedWordListsJsonList[managedWordListsIndex].AsObject(m_managedWordLists[managedWordListsIndex].Jsonize()); + } + payload.WithArray("managedWordLists", std::move(managedWordListsJsonList)); + + } + + return payload; +} + +} // namespace Model +} // namespace BedrockAgentRuntime +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/Trace.cpp b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/Trace.cpp index 6e2aa325bcb..a209386d541 100644 --- a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/Trace.cpp +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/Trace.cpp @@ -20,6 +20,7 @@ namespace Model Trace::Trace() : m_failureTraceHasBeenSet(false), + m_guardrailTraceHasBeenSet(false), m_orchestrationTraceHasBeenSet(false), m_postProcessingTraceHasBeenSet(false), m_preProcessingTraceHasBeenSet(false) @@ -28,6 +29,7 @@ Trace::Trace() : Trace::Trace(JsonView jsonValue) : m_failureTraceHasBeenSet(false), + m_guardrailTraceHasBeenSet(false), m_orchestrationTraceHasBeenSet(false), m_postProcessingTraceHasBeenSet(false), m_preProcessingTraceHasBeenSet(false) @@ -44,6 +46,13 @@ Trace& Trace::operator =(JsonView jsonValue) m_failureTraceHasBeenSet = true; } + if(jsonValue.ValueExists("guardrailTrace")) + { + m_guardrailTrace = jsonValue.GetObject("guardrailTrace"); + + m_guardrailTraceHasBeenSet = true; + } + if(jsonValue.ValueExists("orchestrationTrace")) { m_orchestrationTrace = jsonValue.GetObject("orchestrationTrace"); @@ -78,6 +87,12 @@ JsonValue Trace::Jsonize() const } + if(m_guardrailTraceHasBeenSet) + { + payload.WithObject("guardrailTrace", m_guardrailTrace.Jsonize()); + + } + if(m_orchestrationTraceHasBeenSet) { payload.WithObject("orchestrationTrace", m_orchestrationTrace.Jsonize()); diff --git a/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/Agent.h b/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/Agent.h index a3f8be75158..6c6cad836d3 100644 --- a/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/Agent.h +++ b/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/Agent.h @@ -9,6 +9,7 @@ #include #include #include +#include #include #include @@ -600,6 +601,37 @@ namespace Model inline Agent& WithFoundationModel(const char* value) { SetFoundationModel(value); return *this;} + /** + *

The guardrails configuration assigned to the agent.

+ */ + inline const GuardrailConfiguration& GetGuardrailConfiguration() const{ return m_guardrailConfiguration; } + + /** + *

The guardrails configuration assigned to the agent.

+ */ + inline bool GuardrailConfigurationHasBeenSet() const { return m_guardrailConfigurationHasBeenSet; } + + /** + *

The guardrails configuration assigned to the agent.

+ */ + inline void SetGuardrailConfiguration(const GuardrailConfiguration& value) { m_guardrailConfigurationHasBeenSet = true; m_guardrailConfiguration = value; } + + /** + *

The guardrails configuration assigned to the agent.

+ */ + inline void SetGuardrailConfiguration(GuardrailConfiguration&& value) { m_guardrailConfigurationHasBeenSet = true; m_guardrailConfiguration = std::move(value); } + + /** + *

The guardrails configuration assigned to the agent.

+ */ + inline Agent& WithGuardrailConfiguration(const GuardrailConfiguration& value) { SetGuardrailConfiguration(value); return *this;} + + /** + *

The guardrails configuration assigned to the agent.

+ */ + inline Agent& WithGuardrailConfiguration(GuardrailConfiguration&& value) { SetGuardrailConfiguration(std::move(value)); return *this;} + + /** *

The number of seconds for which Amazon Bedrock keeps information about a * user's conversation with the agent.

A user interaction remains active for @@ -889,6 +921,9 @@ namespace Model Aws::String m_foundationModel; bool m_foundationModelHasBeenSet = false; + GuardrailConfiguration m_guardrailConfiguration; + bool m_guardrailConfigurationHasBeenSet = false; + int m_idleSessionTTLInSeconds; bool m_idleSessionTTLInSecondsHasBeenSet = false; diff --git a/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/AgentSummary.h b/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/AgentSummary.h index 5b7ecb206f6..356c656a0ca 100644 --- a/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/AgentSummary.h +++ b/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/AgentSummary.h @@ -7,6 +7,7 @@ #include #include #include +#include #include #include @@ -193,6 +194,37 @@ namespace Model inline AgentSummary& WithDescription(const char* value) { SetDescription(value); return *this;} + /** + *

The details of the guardrails configuration in the agent summary.

+ */ + inline const GuardrailConfiguration& GetGuardrailConfiguration() const{ return m_guardrailConfiguration; } + + /** + *

The details of the guardrails configuration in the agent summary.

+ */ + inline bool GuardrailConfigurationHasBeenSet() const { return m_guardrailConfigurationHasBeenSet; } + + /** + *

The details of the guardrails configuration in the agent summary.

+ */ + inline void SetGuardrailConfiguration(const GuardrailConfiguration& value) { m_guardrailConfigurationHasBeenSet = true; m_guardrailConfiguration = value; } + + /** + *

The details of the guardrails configuration in the agent summary.

+ */ + inline void SetGuardrailConfiguration(GuardrailConfiguration&& value) { m_guardrailConfigurationHasBeenSet = true; m_guardrailConfiguration = std::move(value); } + + /** + *

The details of the guardrails configuration in the agent summary.

+ */ + inline AgentSummary& WithGuardrailConfiguration(const GuardrailConfiguration& value) { SetGuardrailConfiguration(value); return *this;} + + /** + *

The details of the guardrails configuration in the agent summary.

+ */ + inline AgentSummary& WithGuardrailConfiguration(GuardrailConfiguration&& value) { SetGuardrailConfiguration(std::move(value)); return *this;} + + /** *

The latest version of the agent.

*/ @@ -278,6 +310,9 @@ namespace Model Aws::String m_description; bool m_descriptionHasBeenSet = false; + GuardrailConfiguration m_guardrailConfiguration; + bool m_guardrailConfigurationHasBeenSet = false; + Aws::String m_latestAgentVersion; bool m_latestAgentVersionHasBeenSet = false; diff --git a/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/AgentVersion.h b/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/AgentVersion.h index c47f0a84dff..20dca06466b 100644 --- a/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/AgentVersion.h +++ b/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/AgentVersion.h @@ -9,6 +9,7 @@ #include #include #include +#include #include #include @@ -444,6 +445,37 @@ namespace Model inline AgentVersion& WithFoundationModel(const char* value) { SetFoundationModel(value); return *this;} + /** + *

The guardrails configuration assigned to the agent version.

+ */ + inline const GuardrailConfiguration& GetGuardrailConfiguration() const{ return m_guardrailConfiguration; } + + /** + *

The guardrails configuration assigned to the agent version.

+ */ + inline bool GuardrailConfigurationHasBeenSet() const { return m_guardrailConfigurationHasBeenSet; } + + /** + *

The guardrails configuration assigned to the agent version.

+ */ + inline void SetGuardrailConfiguration(const GuardrailConfiguration& value) { m_guardrailConfigurationHasBeenSet = true; m_guardrailConfiguration = value; } + + /** + *

The guardrails configuration assigned to the agent version.

+ */ + inline void SetGuardrailConfiguration(GuardrailConfiguration&& value) { m_guardrailConfigurationHasBeenSet = true; m_guardrailConfiguration = std::move(value); } + + /** + *

The guardrails configuration assigned to the agent version.

+ */ + inline AgentVersion& WithGuardrailConfiguration(const GuardrailConfiguration& value) { SetGuardrailConfiguration(value); return *this;} + + /** + *

The guardrails configuration assigned to the agent version.

+ */ + inline AgentVersion& WithGuardrailConfiguration(GuardrailConfiguration&& value) { SetGuardrailConfiguration(std::move(value)); return *this;} + + /** *

The number of seconds for which Amazon Bedrock keeps information about a * user's conversation with the agent.

A user interaction remains active for @@ -729,6 +761,9 @@ namespace Model Aws::String m_foundationModel; bool m_foundationModelHasBeenSet = false; + GuardrailConfiguration m_guardrailConfiguration; + bool m_guardrailConfigurationHasBeenSet = false; + int m_idleSessionTTLInSeconds; bool m_idleSessionTTLInSecondsHasBeenSet = false; diff --git a/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/AgentVersionSummary.h b/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/AgentVersionSummary.h index 887de126e2a..86349818f2f 100644 --- a/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/AgentVersionSummary.h +++ b/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/AgentVersionSummary.h @@ -8,6 +8,7 @@ #include #include #include +#include #include namespace Aws @@ -224,6 +225,37 @@ namespace Model inline AgentVersionSummary& WithDescription(const char* value) { SetDescription(value); return *this;} + /** + *

The details of the guardrails configuration in the agent version summary.

+ */ + inline const GuardrailConfiguration& GetGuardrailConfiguration() const{ return m_guardrailConfiguration; } + + /** + *

The details of the guardrails configuration in the agent version summary.

+ */ + inline bool GuardrailConfigurationHasBeenSet() const { return m_guardrailConfigurationHasBeenSet; } + + /** + *

The details of the guardrails configuration in the agent version summary.

+ */ + inline void SetGuardrailConfiguration(const GuardrailConfiguration& value) { m_guardrailConfigurationHasBeenSet = true; m_guardrailConfiguration = value; } + + /** + *

The details of the guardrails configuration in the agent version summary.

+ */ + inline void SetGuardrailConfiguration(GuardrailConfiguration&& value) { m_guardrailConfigurationHasBeenSet = true; m_guardrailConfiguration = std::move(value); } + + /** + *

The details of the guardrails configuration in the agent version summary.

+ */ + inline AgentVersionSummary& WithGuardrailConfiguration(const GuardrailConfiguration& value) { SetGuardrailConfiguration(value); return *this;} + + /** + *

The details of the guardrails configuration in the agent version summary.

+ */ + inline AgentVersionSummary& WithGuardrailConfiguration(GuardrailConfiguration&& value) { SetGuardrailConfiguration(std::move(value)); return *this;} + + /** *

The time at which the version was last updated.

*/ @@ -271,6 +303,9 @@ namespace Model Aws::String m_description; bool m_descriptionHasBeenSet = false; + GuardrailConfiguration m_guardrailConfiguration; + bool m_guardrailConfigurationHasBeenSet = false; + Aws::Utils::DateTime m_updatedAt; bool m_updatedAtHasBeenSet = false; }; diff --git a/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/CreateAgentRequest.h b/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/CreateAgentRequest.h index 3ee43feb01d..ce22ec36829 100644 --- a/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/CreateAgentRequest.h +++ b/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/CreateAgentRequest.h @@ -7,6 +7,7 @@ #include #include #include +#include #include #include #include @@ -337,6 +338,43 @@ namespace Model inline CreateAgentRequest& WithFoundationModel(const char* value) { SetFoundationModel(value); return *this;} + /** + *

The unique Guardrail configuration assigned to the agent when it is + * created.

+ */ + inline const GuardrailConfiguration& GetGuardrailConfiguration() const{ return m_guardrailConfiguration; } + + /** + *

The unique Guardrail configuration assigned to the agent when it is + * created.

+ */ + inline bool GuardrailConfigurationHasBeenSet() const { return m_guardrailConfigurationHasBeenSet; } + + /** + *

The unique Guardrail configuration assigned to the agent when it is + * created.

+ */ + inline void SetGuardrailConfiguration(const GuardrailConfiguration& value) { m_guardrailConfigurationHasBeenSet = true; m_guardrailConfiguration = value; } + + /** + *

The unique Guardrail configuration assigned to the agent when it is + * created.

+ */ + inline void SetGuardrailConfiguration(GuardrailConfiguration&& value) { m_guardrailConfigurationHasBeenSet = true; m_guardrailConfiguration = std::move(value); } + + /** + *

The unique Guardrail configuration assigned to the agent when it is + * created.

+ */ + inline CreateAgentRequest& WithGuardrailConfiguration(const GuardrailConfiguration& value) { SetGuardrailConfiguration(value); return *this;} + + /** + *

The unique Guardrail configuration assigned to the agent when it is + * created.

+ */ + inline CreateAgentRequest& WithGuardrailConfiguration(GuardrailConfiguration&& value) { SetGuardrailConfiguration(std::move(value)); return *this;} + + /** *

The number of seconds for which Amazon Bedrock keeps information about a * user's conversation with the agent.

A user interaction remains active for @@ -557,6 +595,9 @@ namespace Model Aws::String m_foundationModel; bool m_foundationModelHasBeenSet = false; + GuardrailConfiguration m_guardrailConfiguration; + bool m_guardrailConfigurationHasBeenSet = false; + int m_idleSessionTTLInSeconds; bool m_idleSessionTTLInSecondsHasBeenSet = false; diff --git a/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/GuardrailConfiguration.h b/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/GuardrailConfiguration.h new file mode 100644 index 00000000000..ceccfab4cb4 --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/GuardrailConfiguration.h @@ -0,0 +1,132 @@ +/** + * 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 BedrockAgent +{ +namespace Model +{ + + /** + *

The details of the guardrails configuration.

See Also:

AWS + * API Reference

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

The guardrails identifier assigned to the guardrails configuration.

+ */ + inline const Aws::String& GetGuardrailIdentifier() const{ return m_guardrailIdentifier; } + + /** + *

The guardrails identifier assigned to the guardrails configuration.

+ */ + inline bool GuardrailIdentifierHasBeenSet() const { return m_guardrailIdentifierHasBeenSet; } + + /** + *

The guardrails identifier assigned to the guardrails configuration.

+ */ + inline void SetGuardrailIdentifier(const Aws::String& value) { m_guardrailIdentifierHasBeenSet = true; m_guardrailIdentifier = value; } + + /** + *

The guardrails identifier assigned to the guardrails configuration.

+ */ + inline void SetGuardrailIdentifier(Aws::String&& value) { m_guardrailIdentifierHasBeenSet = true; m_guardrailIdentifier = std::move(value); } + + /** + *

The guardrails identifier assigned to the guardrails configuration.

+ */ + inline void SetGuardrailIdentifier(const char* value) { m_guardrailIdentifierHasBeenSet = true; m_guardrailIdentifier.assign(value); } + + /** + *

The guardrails identifier assigned to the guardrails configuration.

+ */ + inline GuardrailConfiguration& WithGuardrailIdentifier(const Aws::String& value) { SetGuardrailIdentifier(value); return *this;} + + /** + *

The guardrails identifier assigned to the guardrails configuration.

+ */ + inline GuardrailConfiguration& WithGuardrailIdentifier(Aws::String&& value) { SetGuardrailIdentifier(std::move(value)); return *this;} + + /** + *

The guardrails identifier assigned to the guardrails configuration.

+ */ + inline GuardrailConfiguration& WithGuardrailIdentifier(const char* value) { SetGuardrailIdentifier(value); return *this;} + + + /** + *

The guardrails version assigned to the guardrails configuration.

+ */ + inline const Aws::String& GetGuardrailVersion() const{ return m_guardrailVersion; } + + /** + *

The guardrails version assigned to the guardrails configuration.

+ */ + inline bool GuardrailVersionHasBeenSet() const { return m_guardrailVersionHasBeenSet; } + + /** + *

The guardrails version assigned to the guardrails configuration.

+ */ + inline void SetGuardrailVersion(const Aws::String& value) { m_guardrailVersionHasBeenSet = true; m_guardrailVersion = value; } + + /** + *

The guardrails version assigned to the guardrails configuration.

+ */ + inline void SetGuardrailVersion(Aws::String&& value) { m_guardrailVersionHasBeenSet = true; m_guardrailVersion = std::move(value); } + + /** + *

The guardrails version assigned to the guardrails configuration.

+ */ + inline void SetGuardrailVersion(const char* value) { m_guardrailVersionHasBeenSet = true; m_guardrailVersion.assign(value); } + + /** + *

The guardrails version assigned to the guardrails configuration.

+ */ + inline GuardrailConfiguration& WithGuardrailVersion(const Aws::String& value) { SetGuardrailVersion(value); return *this;} + + /** + *

The guardrails version assigned to the guardrails configuration.

+ */ + inline GuardrailConfiguration& WithGuardrailVersion(Aws::String&& value) { SetGuardrailVersion(std::move(value)); return *this;} + + /** + *

The guardrails version assigned to the guardrails configuration.

+ */ + inline GuardrailConfiguration& WithGuardrailVersion(const char* value) { SetGuardrailVersion(value); return *this;} + + private: + + Aws::String m_guardrailIdentifier; + bool m_guardrailIdentifierHasBeenSet = false; + + Aws::String m_guardrailVersion; + bool m_guardrailVersionHasBeenSet = false; + }; + +} // namespace Model +} // namespace BedrockAgent +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/PromptConfiguration.h b/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/PromptConfiguration.h index 88ccccbdb99..03bed4fb757 100644 --- a/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/PromptConfiguration.h +++ b/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/PromptConfiguration.h @@ -49,7 +49,9 @@ namespace Model * template. You can use placeholder variables in the base prompt template to * customize the prompt. For more information, see Prompt - * template placeholder variables.

+ * template placeholder variables. For more information, see Configure + * the prompt templates.

*/ inline const Aws::String& GetBasePromptTemplate() const{ return m_basePromptTemplate; } @@ -58,7 +60,9 @@ namespace Model * template. You can use placeholder variables in the base prompt template to * customize the prompt. For more information, see Prompt - * template placeholder variables.

+ * template placeholder variables. For more information, see Configure + * the prompt templates.

*/ inline bool BasePromptTemplateHasBeenSet() const { return m_basePromptTemplateHasBeenSet; } @@ -67,7 +71,9 @@ namespace Model * template. You can use placeholder variables in the base prompt template to * customize the prompt. For more information, see Prompt - * template placeholder variables.

+ * template placeholder variables. For more information, see Configure + * the prompt templates.

*/ inline void SetBasePromptTemplate(const Aws::String& value) { m_basePromptTemplateHasBeenSet = true; m_basePromptTemplate = value; } @@ -76,7 +82,9 @@ namespace Model * template. You can use placeholder variables in the base prompt template to * customize the prompt. For more information, see Prompt - * template placeholder variables.

+ * template placeholder variables. For more information, see Configure + * the prompt templates.

*/ inline void SetBasePromptTemplate(Aws::String&& value) { m_basePromptTemplateHasBeenSet = true; m_basePromptTemplate = std::move(value); } @@ -85,7 +93,9 @@ namespace Model * template. You can use placeholder variables in the base prompt template to * customize the prompt. For more information, see Prompt - * template placeholder variables.

+ * template placeholder variables. For more information, see Configure + * the prompt templates.

*/ inline void SetBasePromptTemplate(const char* value) { m_basePromptTemplateHasBeenSet = true; m_basePromptTemplate.assign(value); } @@ -94,7 +104,9 @@ namespace Model * template. You can use placeholder variables in the base prompt template to * customize the prompt. For more information, see Prompt - * template placeholder variables.

+ * template placeholder variables. For more information, see Configure + * the prompt templates.

*/ inline PromptConfiguration& WithBasePromptTemplate(const Aws::String& value) { SetBasePromptTemplate(value); return *this;} @@ -103,7 +115,9 @@ namespace Model * template. You can use placeholder variables in the base prompt template to * customize the prompt. For more information, see Prompt - * template placeholder variables.

+ * template placeholder variables. For more information, see Configure + * the prompt templates.

*/ inline PromptConfiguration& WithBasePromptTemplate(Aws::String&& value) { SetBasePromptTemplate(std::move(value)); return *this;} @@ -112,7 +126,9 @@ namespace Model * template. You can use placeholder variables in the base prompt template to * customize the prompt. For more information, see Prompt - * template placeholder variables.

+ * template placeholder variables. For more information, see Configure + * the prompt templates.

*/ inline PromptConfiguration& WithBasePromptTemplate(const char* value) { SetBasePromptTemplate(value); return *this;} diff --git a/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/PromptOverrideConfiguration.h b/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/PromptOverrideConfiguration.h index fc51a43c498..801398fce35 100644 --- a/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/PromptOverrideConfiguration.h +++ b/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/PromptOverrideConfiguration.h @@ -46,7 +46,9 @@ namespace Model *

The ARN of the Lambda function to use when parsing the raw foundation model * output in parts of the agent sequence. If you specify this field, at least one * of the promptConfigurations must contain a parserMode - * value that is set to OVERRIDDEN.

+ * value that is set to OVERRIDDEN. For more information, see Parser + * Lambda function in Agents for Amazon Bedrock.

*/ inline const Aws::String& GetOverrideLambda() const{ return m_overrideLambda; } @@ -54,7 +56,9 @@ namespace Model *

The ARN of the Lambda function to use when parsing the raw foundation model * output in parts of the agent sequence. If you specify this field, at least one * of the promptConfigurations must contain a parserMode - * value that is set to OVERRIDDEN.

+ * value that is set to OVERRIDDEN. For more information, see Parser + * Lambda function in Agents for Amazon Bedrock.

*/ inline bool OverrideLambdaHasBeenSet() const { return m_overrideLambdaHasBeenSet; } @@ -62,7 +66,9 @@ namespace Model *

The ARN of the Lambda function to use when parsing the raw foundation model * output in parts of the agent sequence. If you specify this field, at least one * of the promptConfigurations must contain a parserMode - * value that is set to OVERRIDDEN.

+ * value that is set to OVERRIDDEN. For more information, see Parser + * Lambda function in Agents for Amazon Bedrock.

*/ inline void SetOverrideLambda(const Aws::String& value) { m_overrideLambdaHasBeenSet = true; m_overrideLambda = value; } @@ -70,7 +76,9 @@ namespace Model *

The ARN of the Lambda function to use when parsing the raw foundation model * output in parts of the agent sequence. If you specify this field, at least one * of the promptConfigurations must contain a parserMode - * value that is set to OVERRIDDEN.

+ * value that is set to OVERRIDDEN. For more information, see Parser + * Lambda function in Agents for Amazon Bedrock.

*/ inline void SetOverrideLambda(Aws::String&& value) { m_overrideLambdaHasBeenSet = true; m_overrideLambda = std::move(value); } @@ -78,7 +86,9 @@ namespace Model *

The ARN of the Lambda function to use when parsing the raw foundation model * output in parts of the agent sequence. If you specify this field, at least one * of the promptConfigurations must contain a parserMode - * value that is set to OVERRIDDEN.

+ * value that is set to OVERRIDDEN. For more information, see Parser + * Lambda function in Agents for Amazon Bedrock.

*/ inline void SetOverrideLambda(const char* value) { m_overrideLambdaHasBeenSet = true; m_overrideLambda.assign(value); } @@ -86,7 +96,9 @@ namespace Model *

The ARN of the Lambda function to use when parsing the raw foundation model * output in parts of the agent sequence. If you specify this field, at least one * of the promptConfigurations must contain a parserMode - * value that is set to OVERRIDDEN.

+ * value that is set to OVERRIDDEN. For more information, see Parser + * Lambda function in Agents for Amazon Bedrock.

*/ inline PromptOverrideConfiguration& WithOverrideLambda(const Aws::String& value) { SetOverrideLambda(value); return *this;} @@ -94,7 +106,9 @@ namespace Model *

The ARN of the Lambda function to use when parsing the raw foundation model * output in parts of the agent sequence. If you specify this field, at least one * of the promptConfigurations must contain a parserMode - * value that is set to OVERRIDDEN.

+ * value that is set to OVERRIDDEN. For more information, see Parser + * Lambda function in Agents for Amazon Bedrock.

*/ inline PromptOverrideConfiguration& WithOverrideLambda(Aws::String&& value) { SetOverrideLambda(std::move(value)); return *this;} @@ -102,7 +116,9 @@ namespace Model *

The ARN of the Lambda function to use when parsing the raw foundation model * output in parts of the agent sequence. If you specify this field, at least one * of the promptConfigurations must contain a parserMode - * value that is set to OVERRIDDEN.

+ * value that is set to OVERRIDDEN. For more information, see Parser + * Lambda function in Agents for Amazon Bedrock.

*/ inline PromptOverrideConfiguration& WithOverrideLambda(const char* value) { SetOverrideLambda(value); return *this;} diff --git a/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/UpdateAgentRequest.h b/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/UpdateAgentRequest.h index b4d3ed22c10..3db21fdd3bb 100644 --- a/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/UpdateAgentRequest.h +++ b/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/UpdateAgentRequest.h @@ -7,6 +7,7 @@ #include #include #include +#include #include #include @@ -303,6 +304,43 @@ namespace Model inline UpdateAgentRequest& WithFoundationModel(const char* value) { SetFoundationModel(value); return *this;} + /** + *

The unique Guardrail configuration assigned to the agent when it is + * updated.

+ */ + inline const GuardrailConfiguration& GetGuardrailConfiguration() const{ return m_guardrailConfiguration; } + + /** + *

The unique Guardrail configuration assigned to the agent when it is + * updated.

+ */ + inline bool GuardrailConfigurationHasBeenSet() const { return m_guardrailConfigurationHasBeenSet; } + + /** + *

The unique Guardrail configuration assigned to the agent when it is + * updated.

+ */ + inline void SetGuardrailConfiguration(const GuardrailConfiguration& value) { m_guardrailConfigurationHasBeenSet = true; m_guardrailConfiguration = value; } + + /** + *

The unique Guardrail configuration assigned to the agent when it is + * updated.

+ */ + inline void SetGuardrailConfiguration(GuardrailConfiguration&& value) { m_guardrailConfigurationHasBeenSet = true; m_guardrailConfiguration = std::move(value); } + + /** + *

The unique Guardrail configuration assigned to the agent when it is + * updated.

+ */ + inline UpdateAgentRequest& WithGuardrailConfiguration(const GuardrailConfiguration& value) { SetGuardrailConfiguration(value); return *this;} + + /** + *

The unique Guardrail configuration assigned to the agent when it is + * updated.

+ */ + inline UpdateAgentRequest& WithGuardrailConfiguration(GuardrailConfiguration&& value) { SetGuardrailConfiguration(std::move(value)); return *this;} + + /** *

The number of seconds for which Amazon Bedrock keeps information about a * user's conversation with the agent.

A user interaction remains active for @@ -457,6 +495,9 @@ namespace Model Aws::String m_foundationModel; bool m_foundationModelHasBeenSet = false; + GuardrailConfiguration m_guardrailConfiguration; + bool m_guardrailConfigurationHasBeenSet = false; + int m_idleSessionTTLInSeconds; bool m_idleSessionTTLInSecondsHasBeenSet = false; diff --git a/generated/src/aws-cpp-sdk-bedrock-agent/source/model/Agent.cpp b/generated/src/aws-cpp-sdk-bedrock-agent/source/model/Agent.cpp index 2a7089db5b4..7da316d1429 100644 --- a/generated/src/aws-cpp-sdk-bedrock-agent/source/model/Agent.cpp +++ b/generated/src/aws-cpp-sdk-bedrock-agent/source/model/Agent.cpp @@ -32,6 +32,7 @@ Agent::Agent() : m_descriptionHasBeenSet(false), m_failureReasonsHasBeenSet(false), m_foundationModelHasBeenSet(false), + m_guardrailConfigurationHasBeenSet(false), m_idleSessionTTLInSeconds(0), m_idleSessionTTLInSecondsHasBeenSet(false), m_instructionHasBeenSet(false), @@ -56,6 +57,7 @@ Agent::Agent(JsonView jsonValue) : m_descriptionHasBeenSet(false), m_failureReasonsHasBeenSet(false), m_foundationModelHasBeenSet(false), + m_guardrailConfigurationHasBeenSet(false), m_idleSessionTTLInSeconds(0), m_idleSessionTTLInSecondsHasBeenSet(false), m_instructionHasBeenSet(false), @@ -156,6 +158,13 @@ Agent& Agent::operator =(JsonView jsonValue) m_foundationModelHasBeenSet = true; } + if(jsonValue.ValueExists("guardrailConfiguration")) + { + m_guardrailConfiguration = jsonValue.GetObject("guardrailConfiguration"); + + m_guardrailConfigurationHasBeenSet = true; + } + if(jsonValue.ValueExists("idleSessionTTLInSeconds")) { m_idleSessionTTLInSeconds = jsonValue.GetInteger("idleSessionTTLInSeconds"); @@ -283,6 +292,12 @@ JsonValue Agent::Jsonize() const } + if(m_guardrailConfigurationHasBeenSet) + { + payload.WithObject("guardrailConfiguration", m_guardrailConfiguration.Jsonize()); + + } + if(m_idleSessionTTLInSecondsHasBeenSet) { payload.WithInteger("idleSessionTTLInSeconds", m_idleSessionTTLInSeconds); diff --git a/generated/src/aws-cpp-sdk-bedrock-agent/source/model/AgentSummary.cpp b/generated/src/aws-cpp-sdk-bedrock-agent/source/model/AgentSummary.cpp index 88431f25268..592c236a631 100644 --- a/generated/src/aws-cpp-sdk-bedrock-agent/source/model/AgentSummary.cpp +++ b/generated/src/aws-cpp-sdk-bedrock-agent/source/model/AgentSummary.cpp @@ -24,6 +24,7 @@ AgentSummary::AgentSummary() : m_agentStatus(AgentStatus::NOT_SET), m_agentStatusHasBeenSet(false), m_descriptionHasBeenSet(false), + m_guardrailConfigurationHasBeenSet(false), m_latestAgentVersionHasBeenSet(false), m_updatedAtHasBeenSet(false) { @@ -35,6 +36,7 @@ AgentSummary::AgentSummary(JsonView jsonValue) : m_agentStatus(AgentStatus::NOT_SET), m_agentStatusHasBeenSet(false), m_descriptionHasBeenSet(false), + m_guardrailConfigurationHasBeenSet(false), m_latestAgentVersionHasBeenSet(false), m_updatedAtHasBeenSet(false) { @@ -71,6 +73,13 @@ AgentSummary& AgentSummary::operator =(JsonView jsonValue) m_descriptionHasBeenSet = true; } + if(jsonValue.ValueExists("guardrailConfiguration")) + { + m_guardrailConfiguration = jsonValue.GetObject("guardrailConfiguration"); + + m_guardrailConfigurationHasBeenSet = true; + } + if(jsonValue.ValueExists("latestAgentVersion")) { m_latestAgentVersion = jsonValue.GetString("latestAgentVersion"); @@ -115,6 +124,12 @@ JsonValue AgentSummary::Jsonize() const } + if(m_guardrailConfigurationHasBeenSet) + { + payload.WithObject("guardrailConfiguration", m_guardrailConfiguration.Jsonize()); + + } + if(m_latestAgentVersionHasBeenSet) { payload.WithString("latestAgentVersion", m_latestAgentVersion); diff --git a/generated/src/aws-cpp-sdk-bedrock-agent/source/model/AgentVersion.cpp b/generated/src/aws-cpp-sdk-bedrock-agent/source/model/AgentVersion.cpp index 5c625176e51..ed58631fe2a 100644 --- a/generated/src/aws-cpp-sdk-bedrock-agent/source/model/AgentVersion.cpp +++ b/generated/src/aws-cpp-sdk-bedrock-agent/source/model/AgentVersion.cpp @@ -30,6 +30,7 @@ AgentVersion::AgentVersion() : m_descriptionHasBeenSet(false), m_failureReasonsHasBeenSet(false), m_foundationModelHasBeenSet(false), + m_guardrailConfigurationHasBeenSet(false), m_idleSessionTTLInSeconds(0), m_idleSessionTTLInSecondsHasBeenSet(false), m_instructionHasBeenSet(false), @@ -52,6 +53,7 @@ AgentVersion::AgentVersion(JsonView jsonValue) : m_descriptionHasBeenSet(false), m_failureReasonsHasBeenSet(false), m_foundationModelHasBeenSet(false), + m_guardrailConfigurationHasBeenSet(false), m_idleSessionTTLInSeconds(0), m_idleSessionTTLInSecondsHasBeenSet(false), m_instructionHasBeenSet(false), @@ -138,6 +140,13 @@ AgentVersion& AgentVersion::operator =(JsonView jsonValue) m_foundationModelHasBeenSet = true; } + if(jsonValue.ValueExists("guardrailConfiguration")) + { + m_guardrailConfiguration = jsonValue.GetObject("guardrailConfiguration"); + + m_guardrailConfigurationHasBeenSet = true; + } + if(jsonValue.ValueExists("idleSessionTTLInSeconds")) { m_idleSessionTTLInSeconds = jsonValue.GetInteger("idleSessionTTLInSeconds"); @@ -253,6 +262,12 @@ JsonValue AgentVersion::Jsonize() const } + if(m_guardrailConfigurationHasBeenSet) + { + payload.WithObject("guardrailConfiguration", m_guardrailConfiguration.Jsonize()); + + } + if(m_idleSessionTTLInSecondsHasBeenSet) { payload.WithInteger("idleSessionTTLInSeconds", m_idleSessionTTLInSeconds); diff --git a/generated/src/aws-cpp-sdk-bedrock-agent/source/model/AgentVersionSummary.cpp b/generated/src/aws-cpp-sdk-bedrock-agent/source/model/AgentVersionSummary.cpp index 37b85ba9d1f..3a1742cc8d2 100644 --- a/generated/src/aws-cpp-sdk-bedrock-agent/source/model/AgentVersionSummary.cpp +++ b/generated/src/aws-cpp-sdk-bedrock-agent/source/model/AgentVersionSummary.cpp @@ -25,6 +25,7 @@ AgentVersionSummary::AgentVersionSummary() : m_agentVersionHasBeenSet(false), m_createdAtHasBeenSet(false), m_descriptionHasBeenSet(false), + m_guardrailConfigurationHasBeenSet(false), m_updatedAtHasBeenSet(false) { } @@ -36,6 +37,7 @@ AgentVersionSummary::AgentVersionSummary(JsonView jsonValue) : m_agentVersionHasBeenSet(false), m_createdAtHasBeenSet(false), m_descriptionHasBeenSet(false), + m_guardrailConfigurationHasBeenSet(false), m_updatedAtHasBeenSet(false) { *this = jsonValue; @@ -78,6 +80,13 @@ AgentVersionSummary& AgentVersionSummary::operator =(JsonView jsonValue) m_descriptionHasBeenSet = true; } + if(jsonValue.ValueExists("guardrailConfiguration")) + { + m_guardrailConfiguration = jsonValue.GetObject("guardrailConfiguration"); + + m_guardrailConfigurationHasBeenSet = true; + } + if(jsonValue.ValueExists("updatedAt")) { m_updatedAt = jsonValue.GetString("updatedAt"); @@ -120,6 +129,12 @@ JsonValue AgentVersionSummary::Jsonize() const } + if(m_guardrailConfigurationHasBeenSet) + { + payload.WithObject("guardrailConfiguration", m_guardrailConfiguration.Jsonize()); + + } + if(m_updatedAtHasBeenSet) { payload.WithString("updatedAt", m_updatedAt.ToGmtString(Aws::Utils::DateFormat::ISO_8601)); diff --git a/generated/src/aws-cpp-sdk-bedrock-agent/source/model/CreateAgentRequest.cpp b/generated/src/aws-cpp-sdk-bedrock-agent/source/model/CreateAgentRequest.cpp index 100dc7d62e8..b0577cddddd 100644 --- a/generated/src/aws-cpp-sdk-bedrock-agent/source/model/CreateAgentRequest.cpp +++ b/generated/src/aws-cpp-sdk-bedrock-agent/source/model/CreateAgentRequest.cpp @@ -20,6 +20,7 @@ CreateAgentRequest::CreateAgentRequest() : m_customerEncryptionKeyArnHasBeenSet(false), m_descriptionHasBeenSet(false), m_foundationModelHasBeenSet(false), + m_guardrailConfigurationHasBeenSet(false), m_idleSessionTTLInSeconds(0), m_idleSessionTTLInSecondsHasBeenSet(false), m_instructionHasBeenSet(false), @@ -68,6 +69,12 @@ Aws::String CreateAgentRequest::SerializePayload() const } + if(m_guardrailConfigurationHasBeenSet) + { + payload.WithObject("guardrailConfiguration", m_guardrailConfiguration.Jsonize()); + + } + if(m_idleSessionTTLInSecondsHasBeenSet) { payload.WithInteger("idleSessionTTLInSeconds", m_idleSessionTTLInSeconds); diff --git a/generated/src/aws-cpp-sdk-bedrock-agent/source/model/GuardrailConfiguration.cpp b/generated/src/aws-cpp-sdk-bedrock-agent/source/model/GuardrailConfiguration.cpp new file mode 100644 index 00000000000..6f0db6f023f --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock-agent/source/model/GuardrailConfiguration.cpp @@ -0,0 +1,74 @@ +/** + * 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 BedrockAgent +{ +namespace Model +{ + +GuardrailConfiguration::GuardrailConfiguration() : + m_guardrailIdentifierHasBeenSet(false), + m_guardrailVersionHasBeenSet(false) +{ +} + +GuardrailConfiguration::GuardrailConfiguration(JsonView jsonValue) : + m_guardrailIdentifierHasBeenSet(false), + m_guardrailVersionHasBeenSet(false) +{ + *this = jsonValue; +} + +GuardrailConfiguration& GuardrailConfiguration::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("guardrailIdentifier")) + { + m_guardrailIdentifier = jsonValue.GetString("guardrailIdentifier"); + + m_guardrailIdentifierHasBeenSet = true; + } + + if(jsonValue.ValueExists("guardrailVersion")) + { + m_guardrailVersion = jsonValue.GetString("guardrailVersion"); + + m_guardrailVersionHasBeenSet = true; + } + + return *this; +} + +JsonValue GuardrailConfiguration::Jsonize() const +{ + JsonValue payload; + + if(m_guardrailIdentifierHasBeenSet) + { + payload.WithString("guardrailIdentifier", m_guardrailIdentifier); + + } + + if(m_guardrailVersionHasBeenSet) + { + payload.WithString("guardrailVersion", m_guardrailVersion); + + } + + return payload; +} + +} // namespace Model +} // namespace BedrockAgent +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock-agent/source/model/UpdateAgentRequest.cpp b/generated/src/aws-cpp-sdk-bedrock-agent/source/model/UpdateAgentRequest.cpp index a2132ca6983..fbf3da91527 100644 --- a/generated/src/aws-cpp-sdk-bedrock-agent/source/model/UpdateAgentRequest.cpp +++ b/generated/src/aws-cpp-sdk-bedrock-agent/source/model/UpdateAgentRequest.cpp @@ -19,6 +19,7 @@ UpdateAgentRequest::UpdateAgentRequest() : m_customerEncryptionKeyArnHasBeenSet(false), m_descriptionHasBeenSet(false), m_foundationModelHasBeenSet(false), + m_guardrailConfigurationHasBeenSet(false), m_idleSessionTTLInSeconds(0), m_idleSessionTTLInSecondsHasBeenSet(false), m_instructionHasBeenSet(false), @@ -60,6 +61,12 @@ Aws::String UpdateAgentRequest::SerializePayload() const } + if(m_guardrailConfigurationHasBeenSet) + { + payload.WithObject("guardrailConfiguration", m_guardrailConfiguration.Jsonize()); + + } + if(m_idleSessionTTLInSecondsHasBeenSet) { payload.WithInteger("idleSessionTTLInSeconds", m_idleSessionTTLInSeconds); diff --git a/generated/src/aws-cpp-sdk-controltower/include/aws/controltower/ControlTowerClient.h b/generated/src/aws-cpp-sdk-controltower/include/aws/controltower/ControlTowerClient.h index 4f1d08f9de5..76434a456a5 100644 --- a/generated/src/aws-cpp-sdk-controltower/include/aws/controltower/ControlTowerClient.h +++ b/generated/src/aws-cpp-sdk-controltower/include/aws/controltower/ControlTowerClient.h @@ -16,25 +16,40 @@ namespace Aws namespace ControlTower { /** - *

These interfaces allow you to apply the Amazon Web Services library of - * pre-defined controls to your organizational units, programmatically. In - * Amazon Web Services Control Tower, the terms "control" and "guardrail" are - * synonyms.

To call these APIs, you'll need to know:

  • the - * controlIdentifier for the control--or guardrail--you are - * targeting.

  • the ARN associated with the target organizational - * unit (OU), which we call the targetIdentifier.

  • - *

    the ARN associated with a resource that you wish to tag or untag.

  • - *

To get the controlIdentifier for your Amazon Web - * Services Control Tower control:

The controlIdentifier - * is an ARN that is specified for each control. You can view the - * controlIdentifier in the console on the Control details - * page, as well as in the documentation.

The controlIdentifier - * is unique in each Amazon Web Services Region for each control. You can find the + *

Amazon Web Services Control Tower offers application programming interface + * (API) operations that support programmatic interaction with these types of + * resources:

For more information about these types + * of resources, see the + * Amazon Web Services Control Tower User Guide .

About + * control APIs

These interfaces allow you to apply the Amazon Web + * Services library of pre-defined controls to your organizational units, + * programmatically. In Amazon Web Services Control Tower, the terms "control" and + * "guardrail" are synonyms.

To call these APIs, you'll need to know:

+ *
  • the controlIdentifier for the control--or + * guardrail--you are targeting.

  • the ARN associated with the + * target organizational unit (OU), which we call the + * targetIdentifier.

  • the ARN associated with a + * resource that you wish to tag or untag.

To get the + * controlIdentifier for your Amazon Web Services Control Tower + * control:

The controlIdentifier is an ARN that is + * specified for each control. You can view the controlIdentifier in + * the console on the Control details page, as well as in the + * documentation.

The controlIdentifier is unique in each + * Amazon Web Services Region for each control. You can find the * controlIdentifier for each Region and control in the Tables - * of control metadata in the Amazon Web Services Control Tower User - * Guide.

A quick-reference list of control identifers for the Amazon - * Web Services Control Tower legacy Strongly recommended and + * of control metadata or the Control + * availability by Region tables in the Amazon Web Services Control Tower + * User Guide.

A quick-reference list of control identifers for the + * Amazon Web Services Control Tower legacy Strongly recommended and * Elective controls is given in Resource * identifiers for APIs and controls in the Organizational unit details page associated with that OU.

* OU ARN format:

* arn:${Partition}:organizations::${MasterAccountId}:ou/o-${OrganizationId}/ou-${OrganizationalUnitId} - *

Details and examples

  • About landing zone APIs

    You can configure and + * launch an Amazon Web Services Control Tower landing zone with APIs. For an + * introduction and steps, see Getting + * started with Amazon Web Services Control Tower using APIs.

    For an + * overview of landing zone API operations, see + * Amazon Web Services Control Tower supports landing zone APIs. The individual + * API operations for landing zones are detailed in this document, the API + * reference manual, in the "Actions" section.

    About baseline + * APIs

    You can apply the AWSControlTowerBaseline baseline + * to an organizational unit (OU) as a way to register the OU with Amazon Web + * Services Control Tower, programmatically. For a general overview of this + * capability, see Amazon + * Web Services Control Tower supports APIs for OU registration and configuration + * with baselines.

    You can call the baseline API operations to view the + * baselines that Amazon Web Services Control Tower enables for your landing zone, + * on your behalf, when setting up the landing zone. These baselines are read-only + * baselines.

    The individual API operations for baselines are detailed in + * this document, the API + * reference manual, in the "Actions" section. For usage examples, see Baseline + * API input and output examples with CLI.

    Details and + * examples

    • Control * API input and output examples with CLI

    • Baseline + * API input and output examples with CLI

    • Enable * controls with CloudFormation

    • Launch + * a landing zone with CloudFormation

    • Control - * metadata tables

    • Control + * availability by Region tables (large page)

    • List * of identifiers for legacy controls

    • Controls @@ -198,7 +245,10 @@ namespace ControlTower *

      Disable an EnabledBaseline resource on the specified Target. * This API starts an asynchronous operation to remove all resources deployed as * part of the baseline enablement. The resource will vary depending on the enabled - * baseline.

      See Also:

      + * the Amazon Web Services Control Tower User Guide .

      See + * Also:

      AWS * API Reference

      */ @@ -256,7 +306,10 @@ namespace ControlTower /** *

      Enable (apply) a Baseline to a Target. This API starts an * asynchronous operation to deploy resources specified by the - * Baseline to the specified Target.

      See Also:

      Baseline to the specified Target. For usage examples, see + * the Amazon Web Services Control Tower User Guide .

      See + * Also:

      AWS * API Reference

      */ @@ -313,7 +366,10 @@ namespace ControlTower /** *

      Retrieve details about an existing Baseline resource by - * specifying its identifier.

      See Also:

      + * the Amazon Web Services Control Tower User Guide .

      See + * Also:

      AWS * API Reference

      */ @@ -341,7 +397,10 @@ namespace ControlTower *

      Returns the details of an asynchronous baseline operation, as initiated by * any of these APIs: EnableBaseline, DisableBaseline, * UpdateEnabledBaseline, ResetEnabledBaseline. A status - * message is displayed in case of operation failure.

      See Also:

      + * the Amazon Web Services Control Tower User Guide .

      See + * Also:

      AWS * API Reference

      */ @@ -477,7 +536,7 @@ namespace ControlTower /** *

      Returns the status of the specified landing zone operation. Details for an - * operation are available for 60 days.

      See Also:

      See Also:

      AWS * API Reference

      */ @@ -502,8 +561,10 @@ namespace ControlTower } /** - *

      Returns a summary list of all available baselines.

      See Also:

      - * Returns a summary list of all available baselines. For usage examples, see + * the Amazon Web Services Control Tower User Guide .

      See + * Also:

      AWS * API Reference

      */ @@ -527,10 +588,39 @@ namespace ControlTower return SubmitAsync(&ControlTowerClient::ListBaselines, request, handler, context); } + /** + *

      Provides a list of operations in progress or queued.

      See Also:

      + * AWS + * API Reference

      + */ + virtual Model::ListControlOperationsOutcome ListControlOperations(const Model::ListControlOperationsRequest& request) const; + + /** + * A Callable wrapper for ListControlOperations that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::ListControlOperationsOutcomeCallable ListControlOperationsCallable(const ListControlOperationsRequestT& request) const + { + return SubmitCallable(&ControlTowerClient::ListControlOperations, request); + } + + /** + * An Async wrapper for ListControlOperations that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void ListControlOperationsAsync(const ListControlOperationsRequestT& request, const ListControlOperationsResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&ControlTowerClient::ListControlOperations, request, handler, context); + } + /** *

      Returns a list of summaries describing EnabledBaseline * resources. You can filter the list by the corresponding Baseline or - * Target of the EnabledBaseline resources.

      See + * Target of the EnabledBaseline resources. For usage + * examples, see + * the Amazon Web Services Control Tower User Guide .

      See * Also:

      AWS * API Reference

      @@ -645,7 +735,10 @@ namespace ControlTower /** *

      Re-enables an EnabledBaseline resource. For example, this API * can re-apply the existing Baseline after a new member account is - * moved to the target OU.

      See Also:

      + * the Amazon Web Services Control Tower User Guide .

      See + * Also:

      AWS * API Reference

      */ @@ -754,7 +847,10 @@ namespace ControlTower /** *

      Updates an EnabledBaseline resource's applied parameters or - * version.

      See Also:

      + * the Amazon Web Services Control Tower User Guide .

      See + * Also:

      AWS * API Reference

      */ diff --git a/generated/src/aws-cpp-sdk-controltower/include/aws/controltower/ControlTowerServiceClientModel.h b/generated/src/aws-cpp-sdk-controltower/include/aws/controltower/ControlTowerServiceClientModel.h index e761bd8f1e6..f4dd9b3107f 100644 --- a/generated/src/aws-cpp-sdk-controltower/include/aws/controltower/ControlTowerServiceClientModel.h +++ b/generated/src/aws-cpp-sdk-controltower/include/aws/controltower/ControlTowerServiceClientModel.h @@ -32,6 +32,7 @@ #include #include #include +#include #include #include #include @@ -97,6 +98,7 @@ namespace Aws class GetLandingZoneRequest; class GetLandingZoneOperationRequest; class ListBaselinesRequest; + class ListControlOperationsRequest; class ListEnabledBaselinesRequest; class ListEnabledControlsRequest; class ListLandingZonesRequest; @@ -125,6 +127,7 @@ namespace Aws typedef Aws::Utils::Outcome GetLandingZoneOutcome; typedef Aws::Utils::Outcome GetLandingZoneOperationOutcome; typedef Aws::Utils::Outcome ListBaselinesOutcome; + typedef Aws::Utils::Outcome ListControlOperationsOutcome; typedef Aws::Utils::Outcome ListEnabledBaselinesOutcome; typedef Aws::Utils::Outcome ListEnabledControlsOutcome; typedef Aws::Utils::Outcome ListLandingZonesOutcome; @@ -153,6 +156,7 @@ namespace Aws typedef std::future GetLandingZoneOutcomeCallable; typedef std::future GetLandingZoneOperationOutcomeCallable; typedef std::future ListBaselinesOutcomeCallable; + typedef std::future ListControlOperationsOutcomeCallable; typedef std::future ListEnabledBaselinesOutcomeCallable; typedef std::future ListEnabledControlsOutcomeCallable; typedef std::future ListLandingZonesOutcomeCallable; @@ -184,6 +188,7 @@ namespace Aws typedef std::function&) > GetLandingZoneResponseReceivedHandler; typedef std::function&) > GetLandingZoneOperationResponseReceivedHandler; typedef std::function&) > ListBaselinesResponseReceivedHandler; + typedef std::function&) > ListControlOperationsResponseReceivedHandler; typedef std::function&) > ListEnabledBaselinesResponseReceivedHandler; typedef std::function&) > ListEnabledControlsResponseReceivedHandler; typedef std::function&) > ListLandingZonesResponseReceivedHandler; diff --git a/generated/src/aws-cpp-sdk-controltower/include/aws/controltower/model/ControlOperation.h b/generated/src/aws-cpp-sdk-controltower/include/aws/controltower/model/ControlOperation.h index c43215e75db..c9935bd50bf 100644 --- a/generated/src/aws-cpp-sdk-controltower/include/aws/controltower/model/ControlOperation.h +++ b/generated/src/aws-cpp-sdk-controltower/include/aws/controltower/model/ControlOperation.h @@ -5,10 +5,10 @@ #pragma once #include +#include #include #include #include -#include #include namespace Aws @@ -40,6 +40,88 @@ namespace Model AWS_CONTROLTOWER_API Aws::Utils::Json::JsonValue Jsonize() const; + /** + *

      The controlIdentifier of the control for the operation.

      + */ + inline const Aws::String& GetControlIdentifier() const{ return m_controlIdentifier; } + + /** + *

      The controlIdentifier of the control for the operation.

      + */ + inline bool ControlIdentifierHasBeenSet() const { return m_controlIdentifierHasBeenSet; } + + /** + *

      The controlIdentifier of the control for the operation.

      + */ + inline void SetControlIdentifier(const Aws::String& value) { m_controlIdentifierHasBeenSet = true; m_controlIdentifier = value; } + + /** + *

      The controlIdentifier of the control for the operation.

      + */ + inline void SetControlIdentifier(Aws::String&& value) { m_controlIdentifierHasBeenSet = true; m_controlIdentifier = std::move(value); } + + /** + *

      The controlIdentifier of the control for the operation.

      + */ + inline void SetControlIdentifier(const char* value) { m_controlIdentifierHasBeenSet = true; m_controlIdentifier.assign(value); } + + /** + *

      The controlIdentifier of the control for the operation.

      + */ + inline ControlOperation& WithControlIdentifier(const Aws::String& value) { SetControlIdentifier(value); return *this;} + + /** + *

      The controlIdentifier of the control for the operation.

      + */ + inline ControlOperation& WithControlIdentifier(Aws::String&& value) { SetControlIdentifier(std::move(value)); return *this;} + + /** + *

      The controlIdentifier of the control for the operation.

      + */ + inline ControlOperation& WithControlIdentifier(const char* value) { SetControlIdentifier(value); return *this;} + + + /** + *

      The controlIdentifier of the enabled control.

      + */ + inline const Aws::String& GetEnabledControlIdentifier() const{ return m_enabledControlIdentifier; } + + /** + *

      The controlIdentifier of the enabled control.

      + */ + inline bool EnabledControlIdentifierHasBeenSet() const { return m_enabledControlIdentifierHasBeenSet; } + + /** + *

      The controlIdentifier of the enabled control.

      + */ + inline void SetEnabledControlIdentifier(const Aws::String& value) { m_enabledControlIdentifierHasBeenSet = true; m_enabledControlIdentifier = value; } + + /** + *

      The controlIdentifier of the enabled control.

      + */ + inline void SetEnabledControlIdentifier(Aws::String&& value) { m_enabledControlIdentifierHasBeenSet = true; m_enabledControlIdentifier = std::move(value); } + + /** + *

      The controlIdentifier of the enabled control.

      + */ + inline void SetEnabledControlIdentifier(const char* value) { m_enabledControlIdentifierHasBeenSet = true; m_enabledControlIdentifier.assign(value); } + + /** + *

      The controlIdentifier of the enabled control.

      + */ + inline ControlOperation& WithEnabledControlIdentifier(const Aws::String& value) { SetEnabledControlIdentifier(value); return *this;} + + /** + *

      The controlIdentifier of the enabled control.

      + */ + inline ControlOperation& WithEnabledControlIdentifier(Aws::String&& value) { SetEnabledControlIdentifier(std::move(value)); return *this;} + + /** + *

      The controlIdentifier of the enabled control.

      + */ + inline ControlOperation& WithEnabledControlIdentifier(const char* value) { SetEnabledControlIdentifier(value); return *this;} + + /** *

      The time that the operation finished.

      */ @@ -71,6 +153,47 @@ namespace Model inline ControlOperation& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;} + /** + *

      The identifier of the specified operation.

      + */ + inline const Aws::String& GetOperationIdentifier() const{ return m_operationIdentifier; } + + /** + *

      The identifier of the specified operation.

      + */ + inline bool OperationIdentifierHasBeenSet() const { return m_operationIdentifierHasBeenSet; } + + /** + *

      The identifier of the specified operation.

      + */ + inline void SetOperationIdentifier(const Aws::String& value) { m_operationIdentifierHasBeenSet = true; m_operationIdentifier = value; } + + /** + *

      The identifier of the specified operation.

      + */ + inline void SetOperationIdentifier(Aws::String&& value) { m_operationIdentifierHasBeenSet = true; m_operationIdentifier = std::move(value); } + + /** + *

      The identifier of the specified operation.

      + */ + inline void SetOperationIdentifier(const char* value) { m_operationIdentifierHasBeenSet = true; m_operationIdentifier.assign(value); } + + /** + *

      The identifier of the specified operation.

      + */ + inline ControlOperation& WithOperationIdentifier(const Aws::String& value) { SetOperationIdentifier(value); return *this;} + + /** + *

      The identifier of the specified operation.

      + */ + inline ControlOperation& WithOperationIdentifier(Aws::String&& value) { SetOperationIdentifier(std::move(value)); return *this;} + + /** + *

      The identifier of the specified operation.

      + */ + inline ControlOperation& WithOperationIdentifier(const char* value) { SetOperationIdentifier(value); return *this;} + + /** *

      One of ENABLE_CONTROL or DISABLE_CONTROL.

      */ @@ -218,11 +341,61 @@ namespace Model */ inline ControlOperation& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;} + + /** + *

      The target upon which the control operation is working.

      + */ + inline const Aws::String& GetTargetIdentifier() const{ return m_targetIdentifier; } + + /** + *

      The target upon which the control operation is working.

      + */ + inline bool TargetIdentifierHasBeenSet() const { return m_targetIdentifierHasBeenSet; } + + /** + *

      The target upon which the control operation is working.

      + */ + inline void SetTargetIdentifier(const Aws::String& value) { m_targetIdentifierHasBeenSet = true; m_targetIdentifier = value; } + + /** + *

      The target upon which the control operation is working.

      + */ + inline void SetTargetIdentifier(Aws::String&& value) { m_targetIdentifierHasBeenSet = true; m_targetIdentifier = std::move(value); } + + /** + *

      The target upon which the control operation is working.

      + */ + inline void SetTargetIdentifier(const char* value) { m_targetIdentifierHasBeenSet = true; m_targetIdentifier.assign(value); } + + /** + *

      The target upon which the control operation is working.

      + */ + inline ControlOperation& WithTargetIdentifier(const Aws::String& value) { SetTargetIdentifier(value); return *this;} + + /** + *

      The target upon which the control operation is working.

      + */ + inline ControlOperation& WithTargetIdentifier(Aws::String&& value) { SetTargetIdentifier(std::move(value)); return *this;} + + /** + *

      The target upon which the control operation is working.

      + */ + inline ControlOperation& WithTargetIdentifier(const char* value) { SetTargetIdentifier(value); return *this;} + private: + Aws::String m_controlIdentifier; + bool m_controlIdentifierHasBeenSet = false; + + Aws::String m_enabledControlIdentifier; + bool m_enabledControlIdentifierHasBeenSet = false; + Aws::Utils::DateTime m_endTime; bool m_endTimeHasBeenSet = false; + Aws::String m_operationIdentifier; + bool m_operationIdentifierHasBeenSet = false; + ControlOperationType m_operationType; bool m_operationTypeHasBeenSet = false; @@ -234,6 +407,9 @@ namespace Model Aws::String m_statusMessage; bool m_statusMessageHasBeenSet = false; + + Aws::String m_targetIdentifier; + bool m_targetIdentifierHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-controltower/include/aws/controltower/model/ControlOperationFilter.h b/generated/src/aws-cpp-sdk-controltower/include/aws/controltower/model/ControlOperationFilter.h new file mode 100644 index 00000000000..a30ba502b59 --- /dev/null +++ b/generated/src/aws-cpp-sdk-controltower/include/aws/controltower/model/ControlOperationFilter.h @@ -0,0 +1,292 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace ControlTower +{ +namespace Model +{ + + /** + *

      A filter object that lets you call ListCOntrolOperations with a + * specific filter.

      See Also:

      AWS + * API Reference

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

      The set of controlIdentifier returned by the filter.

      + */ + inline const Aws::Vector& GetControlIdentifiers() const{ return m_controlIdentifiers; } + + /** + *

      The set of controlIdentifier returned by the filter.

      + */ + inline bool ControlIdentifiersHasBeenSet() const { return m_controlIdentifiersHasBeenSet; } + + /** + *

      The set of controlIdentifier returned by the filter.

      + */ + inline void SetControlIdentifiers(const Aws::Vector& value) { m_controlIdentifiersHasBeenSet = true; m_controlIdentifiers = value; } + + /** + *

      The set of controlIdentifier returned by the filter.

      + */ + inline void SetControlIdentifiers(Aws::Vector&& value) { m_controlIdentifiersHasBeenSet = true; m_controlIdentifiers = std::move(value); } + + /** + *

      The set of controlIdentifier returned by the filter.

      + */ + inline ControlOperationFilter& WithControlIdentifiers(const Aws::Vector& value) { SetControlIdentifiers(value); return *this;} + + /** + *

      The set of controlIdentifier returned by the filter.

      + */ + inline ControlOperationFilter& WithControlIdentifiers(Aws::Vector&& value) { SetControlIdentifiers(std::move(value)); return *this;} + + /** + *

      The set of controlIdentifier returned by the filter.

      + */ + inline ControlOperationFilter& AddControlIdentifiers(const Aws::String& value) { m_controlIdentifiersHasBeenSet = true; m_controlIdentifiers.push_back(value); return *this; } + + /** + *

      The set of controlIdentifier returned by the filter.

      + */ + inline ControlOperationFilter& AddControlIdentifiers(Aws::String&& value) { m_controlIdentifiersHasBeenSet = true; m_controlIdentifiers.push_back(std::move(value)); return *this; } + + /** + *

      The set of controlIdentifier returned by the filter.

      + */ + inline ControlOperationFilter& AddControlIdentifiers(const char* value) { m_controlIdentifiersHasBeenSet = true; m_controlIdentifiers.push_back(value); return *this; } + + + /** + *

      The set of ControlOperation objects returned by the filter.

      + */ + inline const Aws::Vector& GetControlOperationTypes() const{ return m_controlOperationTypes; } + + /** + *

      The set of ControlOperation objects returned by the filter.

      + */ + inline bool ControlOperationTypesHasBeenSet() const { return m_controlOperationTypesHasBeenSet; } + + /** + *

      The set of ControlOperation objects returned by the filter.

      + */ + inline void SetControlOperationTypes(const Aws::Vector& value) { m_controlOperationTypesHasBeenSet = true; m_controlOperationTypes = value; } + + /** + *

      The set of ControlOperation objects returned by the filter.

      + */ + inline void SetControlOperationTypes(Aws::Vector&& value) { m_controlOperationTypesHasBeenSet = true; m_controlOperationTypes = std::move(value); } + + /** + *

      The set of ControlOperation objects returned by the filter.

      + */ + inline ControlOperationFilter& WithControlOperationTypes(const Aws::Vector& value) { SetControlOperationTypes(value); return *this;} + + /** + *

      The set of ControlOperation objects returned by the filter.

      + */ + inline ControlOperationFilter& WithControlOperationTypes(Aws::Vector&& value) { SetControlOperationTypes(std::move(value)); return *this;} + + /** + *

      The set of ControlOperation objects returned by the filter.

      + */ + inline ControlOperationFilter& AddControlOperationTypes(const ControlOperationType& value) { m_controlOperationTypesHasBeenSet = true; m_controlOperationTypes.push_back(value); return *this; } + + /** + *

      The set of ControlOperation objects returned by the filter.

      + */ + inline ControlOperationFilter& AddControlOperationTypes(ControlOperationType&& value) { m_controlOperationTypesHasBeenSet = true; m_controlOperationTypes.push_back(std::move(value)); return *this; } + + + /** + *

      The set controlIdentifier of enabled controls selected by the + * filter.

      + */ + inline const Aws::Vector& GetEnabledControlIdentifiers() const{ return m_enabledControlIdentifiers; } + + /** + *

      The set controlIdentifier of enabled controls selected by the + * filter.

      + */ + inline bool EnabledControlIdentifiersHasBeenSet() const { return m_enabledControlIdentifiersHasBeenSet; } + + /** + *

      The set controlIdentifier of enabled controls selected by the + * filter.

      + */ + inline void SetEnabledControlIdentifiers(const Aws::Vector& value) { m_enabledControlIdentifiersHasBeenSet = true; m_enabledControlIdentifiers = value; } + + /** + *

      The set controlIdentifier of enabled controls selected by the + * filter.

      + */ + inline void SetEnabledControlIdentifiers(Aws::Vector&& value) { m_enabledControlIdentifiersHasBeenSet = true; m_enabledControlIdentifiers = std::move(value); } + + /** + *

      The set controlIdentifier of enabled controls selected by the + * filter.

      + */ + inline ControlOperationFilter& WithEnabledControlIdentifiers(const Aws::Vector& value) { SetEnabledControlIdentifiers(value); return *this;} + + /** + *

      The set controlIdentifier of enabled controls selected by the + * filter.

      + */ + inline ControlOperationFilter& WithEnabledControlIdentifiers(Aws::Vector&& value) { SetEnabledControlIdentifiers(std::move(value)); return *this;} + + /** + *

      The set controlIdentifier of enabled controls selected by the + * filter.

      + */ + inline ControlOperationFilter& AddEnabledControlIdentifiers(const Aws::String& value) { m_enabledControlIdentifiersHasBeenSet = true; m_enabledControlIdentifiers.push_back(value); return *this; } + + /** + *

      The set controlIdentifier of enabled controls selected by the + * filter.

      + */ + inline ControlOperationFilter& AddEnabledControlIdentifiers(Aws::String&& value) { m_enabledControlIdentifiersHasBeenSet = true; m_enabledControlIdentifiers.push_back(std::move(value)); return *this; } + + /** + *

      The set controlIdentifier of enabled controls selected by the + * filter.

      + */ + inline ControlOperationFilter& AddEnabledControlIdentifiers(const char* value) { m_enabledControlIdentifiersHasBeenSet = true; m_enabledControlIdentifiers.push_back(value); return *this; } + + + /** + *

      Lists the status of control operations.

      + */ + inline const Aws::Vector& GetStatuses() const{ return m_statuses; } + + /** + *

      Lists the status of control operations.

      + */ + inline bool StatusesHasBeenSet() const { return m_statusesHasBeenSet; } + + /** + *

      Lists the status of control operations.

      + */ + inline void SetStatuses(const Aws::Vector& value) { m_statusesHasBeenSet = true; m_statuses = value; } + + /** + *

      Lists the status of control operations.

      + */ + inline void SetStatuses(Aws::Vector&& value) { m_statusesHasBeenSet = true; m_statuses = std::move(value); } + + /** + *

      Lists the status of control operations.

      + */ + inline ControlOperationFilter& WithStatuses(const Aws::Vector& value) { SetStatuses(value); return *this;} + + /** + *

      Lists the status of control operations.

      + */ + inline ControlOperationFilter& WithStatuses(Aws::Vector&& value) { SetStatuses(std::move(value)); return *this;} + + /** + *

      Lists the status of control operations.

      + */ + inline ControlOperationFilter& AddStatuses(const ControlOperationStatus& value) { m_statusesHasBeenSet = true; m_statuses.push_back(value); return *this; } + + /** + *

      Lists the status of control operations.

      + */ + inline ControlOperationFilter& AddStatuses(ControlOperationStatus&& value) { m_statusesHasBeenSet = true; m_statuses.push_back(std::move(value)); return *this; } + + + /** + *

      The set of targetIdentifier objects returned by the filter.

      + */ + inline const Aws::Vector& GetTargetIdentifiers() const{ return m_targetIdentifiers; } + + /** + *

      The set of targetIdentifier objects returned by the filter.

      + */ + inline bool TargetIdentifiersHasBeenSet() const { return m_targetIdentifiersHasBeenSet; } + + /** + *

      The set of targetIdentifier objects returned by the filter.

      + */ + inline void SetTargetIdentifiers(const Aws::Vector& value) { m_targetIdentifiersHasBeenSet = true; m_targetIdentifiers = value; } + + /** + *

      The set of targetIdentifier objects returned by the filter.

      + */ + inline void SetTargetIdentifiers(Aws::Vector&& value) { m_targetIdentifiersHasBeenSet = true; m_targetIdentifiers = std::move(value); } + + /** + *

      The set of targetIdentifier objects returned by the filter.

      + */ + inline ControlOperationFilter& WithTargetIdentifiers(const Aws::Vector& value) { SetTargetIdentifiers(value); return *this;} + + /** + *

      The set of targetIdentifier objects returned by the filter.

      + */ + inline ControlOperationFilter& WithTargetIdentifiers(Aws::Vector&& value) { SetTargetIdentifiers(std::move(value)); return *this;} + + /** + *

      The set of targetIdentifier objects returned by the filter.

      + */ + inline ControlOperationFilter& AddTargetIdentifiers(const Aws::String& value) { m_targetIdentifiersHasBeenSet = true; m_targetIdentifiers.push_back(value); return *this; } + + /** + *

      The set of targetIdentifier objects returned by the filter.

      + */ + inline ControlOperationFilter& AddTargetIdentifiers(Aws::String&& value) { m_targetIdentifiersHasBeenSet = true; m_targetIdentifiers.push_back(std::move(value)); return *this; } + + /** + *

      The set of targetIdentifier objects returned by the filter.

      + */ + inline ControlOperationFilter& AddTargetIdentifiers(const char* value) { m_targetIdentifiersHasBeenSet = true; m_targetIdentifiers.push_back(value); return *this; } + + private: + + Aws::Vector m_controlIdentifiers; + bool m_controlIdentifiersHasBeenSet = false; + + Aws::Vector m_controlOperationTypes; + bool m_controlOperationTypesHasBeenSet = false; + + Aws::Vector m_enabledControlIdentifiers; + bool m_enabledControlIdentifiersHasBeenSet = false; + + Aws::Vector m_statuses; + bool m_statusesHasBeenSet = false; + + Aws::Vector m_targetIdentifiers; + bool m_targetIdentifiersHasBeenSet = false; + }; + +} // namespace Model +} // namespace ControlTower +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-controltower/include/aws/controltower/model/ControlOperationSummary.h b/generated/src/aws-cpp-sdk-controltower/include/aws/controltower/model/ControlOperationSummary.h new file mode 100644 index 00000000000..f22d11a0bb1 --- /dev/null +++ b/generated/src/aws-cpp-sdk-controltower/include/aws/controltower/model/ControlOperationSummary.h @@ -0,0 +1,404 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace ControlTower +{ +namespace Model +{ + + /** + *

      A summary of information about the specified control operation.

      See + * Also:

      AWS + * API Reference

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

      The controlIdentifier of a control.

      + */ + inline const Aws::String& GetControlIdentifier() const{ return m_controlIdentifier; } + + /** + *

      The controlIdentifier of a control.

      + */ + inline bool ControlIdentifierHasBeenSet() const { return m_controlIdentifierHasBeenSet; } + + /** + *

      The controlIdentifier of a control.

      + */ + inline void SetControlIdentifier(const Aws::String& value) { m_controlIdentifierHasBeenSet = true; m_controlIdentifier = value; } + + /** + *

      The controlIdentifier of a control.

      + */ + inline void SetControlIdentifier(Aws::String&& value) { m_controlIdentifierHasBeenSet = true; m_controlIdentifier = std::move(value); } + + /** + *

      The controlIdentifier of a control.

      + */ + inline void SetControlIdentifier(const char* value) { m_controlIdentifierHasBeenSet = true; m_controlIdentifier.assign(value); } + + /** + *

      The controlIdentifier of a control.

      + */ + inline ControlOperationSummary& WithControlIdentifier(const Aws::String& value) { SetControlIdentifier(value); return *this;} + + /** + *

      The controlIdentifier of a control.

      + */ + inline ControlOperationSummary& WithControlIdentifier(Aws::String&& value) { SetControlIdentifier(std::move(value)); return *this;} + + /** + *

      The controlIdentifier of a control.

      + */ + inline ControlOperationSummary& WithControlIdentifier(const char* value) { SetControlIdentifier(value); return *this;} + + + /** + *

      The controlIdentifier of an enabled control.

      + */ + inline const Aws::String& GetEnabledControlIdentifier() const{ return m_enabledControlIdentifier; } + + /** + *

      The controlIdentifier of an enabled control.

      + */ + inline bool EnabledControlIdentifierHasBeenSet() const { return m_enabledControlIdentifierHasBeenSet; } + + /** + *

      The controlIdentifier of an enabled control.

      + */ + inline void SetEnabledControlIdentifier(const Aws::String& value) { m_enabledControlIdentifierHasBeenSet = true; m_enabledControlIdentifier = value; } + + /** + *

      The controlIdentifier of an enabled control.

      + */ + inline void SetEnabledControlIdentifier(Aws::String&& value) { m_enabledControlIdentifierHasBeenSet = true; m_enabledControlIdentifier = std::move(value); } + + /** + *

      The controlIdentifier of an enabled control.

      + */ + inline void SetEnabledControlIdentifier(const char* value) { m_enabledControlIdentifierHasBeenSet = true; m_enabledControlIdentifier.assign(value); } + + /** + *

      The controlIdentifier of an enabled control.

      + */ + inline ControlOperationSummary& WithEnabledControlIdentifier(const Aws::String& value) { SetEnabledControlIdentifier(value); return *this;} + + /** + *

      The controlIdentifier of an enabled control.

      + */ + inline ControlOperationSummary& WithEnabledControlIdentifier(Aws::String&& value) { SetEnabledControlIdentifier(std::move(value)); return *this;} + + /** + *

      The controlIdentifier of an enabled control.

      + */ + inline ControlOperationSummary& WithEnabledControlIdentifier(const char* value) { SetEnabledControlIdentifier(value); return *this;} + + + /** + *

      The time at which the control operation was completed.

      + */ + inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; } + + /** + *

      The time at which the control operation was completed.

      + */ + inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; } + + /** + *

      The time at which the control operation was completed.

      + */ + inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; } + + /** + *

      The time at which the control operation was completed.

      + */ + inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); } + + /** + *

      The time at which the control operation was completed.

      + */ + inline ControlOperationSummary& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;} + + /** + *

      The time at which the control operation was completed.

      + */ + inline ControlOperationSummary& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;} + + + /** + *

      The unique identifier of a control operation.

      + */ + inline const Aws::String& GetOperationIdentifier() const{ return m_operationIdentifier; } + + /** + *

      The unique identifier of a control operation.

      + */ + inline bool OperationIdentifierHasBeenSet() const { return m_operationIdentifierHasBeenSet; } + + /** + *

      The unique identifier of a control operation.

      + */ + inline void SetOperationIdentifier(const Aws::String& value) { m_operationIdentifierHasBeenSet = true; m_operationIdentifier = value; } + + /** + *

      The unique identifier of a control operation.

      + */ + inline void SetOperationIdentifier(Aws::String&& value) { m_operationIdentifierHasBeenSet = true; m_operationIdentifier = std::move(value); } + + /** + *

      The unique identifier of a control operation.

      + */ + inline void SetOperationIdentifier(const char* value) { m_operationIdentifierHasBeenSet = true; m_operationIdentifier.assign(value); } + + /** + *

      The unique identifier of a control operation.

      + */ + inline ControlOperationSummary& WithOperationIdentifier(const Aws::String& value) { SetOperationIdentifier(value); return *this;} + + /** + *

      The unique identifier of a control operation.

      + */ + inline ControlOperationSummary& WithOperationIdentifier(Aws::String&& value) { SetOperationIdentifier(std::move(value)); return *this;} + + /** + *

      The unique identifier of a control operation.

      + */ + inline ControlOperationSummary& WithOperationIdentifier(const char* value) { SetOperationIdentifier(value); return *this;} + + + /** + *

      The type of operation.

      + */ + inline const ControlOperationType& GetOperationType() const{ return m_operationType; } + + /** + *

      The type of operation.

      + */ + inline bool OperationTypeHasBeenSet() const { return m_operationTypeHasBeenSet; } + + /** + *

      The type of operation.

      + */ + inline void SetOperationType(const ControlOperationType& value) { m_operationTypeHasBeenSet = true; m_operationType = value; } + + /** + *

      The type of operation.

      + */ + inline void SetOperationType(ControlOperationType&& value) { m_operationTypeHasBeenSet = true; m_operationType = std::move(value); } + + /** + *

      The type of operation.

      + */ + inline ControlOperationSummary& WithOperationType(const ControlOperationType& value) { SetOperationType(value); return *this;} + + /** + *

      The type of operation.

      + */ + inline ControlOperationSummary& WithOperationType(ControlOperationType&& value) { SetOperationType(std::move(value)); return *this;} + + + /** + *

      The time at which a control operation began.

      + */ + inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; } + + /** + *

      The time at which a control operation began.

      + */ + inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; } + + /** + *

      The time at which a control operation began.

      + */ + inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; } + + /** + *

      The time at which a control operation began.

      + */ + inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); } + + /** + *

      The time at which a control operation began.

      + */ + inline ControlOperationSummary& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;} + + /** + *

      The time at which a control operation began.

      + */ + inline ControlOperationSummary& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;} + + + /** + *

      The status of the specified control operation.

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

      The status of the specified control operation.

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

      The status of the specified control operation.

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

      The status of the specified control operation.

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

      The status of the specified control operation.

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

      The status of the specified control operation.

      + */ + inline ControlOperationSummary& WithStatus(ControlOperationStatus&& value) { SetStatus(std::move(value)); return *this;} + + + /** + *

      A speficic message displayed as part of the control status.

      + */ + inline const Aws::String& GetStatusMessage() const{ return m_statusMessage; } + + /** + *

      A speficic message displayed as part of the control status.

      + */ + inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; } + + /** + *

      A speficic message displayed as part of the control status.

      + */ + inline void SetStatusMessage(const Aws::String& value) { m_statusMessageHasBeenSet = true; m_statusMessage = value; } + + /** + *

      A speficic message displayed as part of the control status.

      + */ + inline void SetStatusMessage(Aws::String&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::move(value); } + + /** + *

      A speficic message displayed as part of the control status.

      + */ + inline void SetStatusMessage(const char* value) { m_statusMessageHasBeenSet = true; m_statusMessage.assign(value); } + + /** + *

      A speficic message displayed as part of the control status.

      + */ + inline ControlOperationSummary& WithStatusMessage(const Aws::String& value) { SetStatusMessage(value); return *this;} + + /** + *

      A speficic message displayed as part of the control status.

      + */ + inline ControlOperationSummary& WithStatusMessage(Aws::String&& value) { SetStatusMessage(std::move(value)); return *this;} + + /** + *

      A speficic message displayed as part of the control status.

      + */ + inline ControlOperationSummary& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;} + + + /** + *

      The unique identifier of the target of a control operation.

      + */ + inline const Aws::String& GetTargetIdentifier() const{ return m_targetIdentifier; } + + /** + *

      The unique identifier of the target of a control operation.

      + */ + inline bool TargetIdentifierHasBeenSet() const { return m_targetIdentifierHasBeenSet; } + + /** + *

      The unique identifier of the target of a control operation.

      + */ + inline void SetTargetIdentifier(const Aws::String& value) { m_targetIdentifierHasBeenSet = true; m_targetIdentifier = value; } + + /** + *

      The unique identifier of the target of a control operation.

      + */ + inline void SetTargetIdentifier(Aws::String&& value) { m_targetIdentifierHasBeenSet = true; m_targetIdentifier = std::move(value); } + + /** + *

      The unique identifier of the target of a control operation.

      + */ + inline void SetTargetIdentifier(const char* value) { m_targetIdentifierHasBeenSet = true; m_targetIdentifier.assign(value); } + + /** + *

      The unique identifier of the target of a control operation.

      + */ + inline ControlOperationSummary& WithTargetIdentifier(const Aws::String& value) { SetTargetIdentifier(value); return *this;} + + /** + *

      The unique identifier of the target of a control operation.

      + */ + inline ControlOperationSummary& WithTargetIdentifier(Aws::String&& value) { SetTargetIdentifier(std::move(value)); return *this;} + + /** + *

      The unique identifier of the target of a control operation.

      + */ + inline ControlOperationSummary& WithTargetIdentifier(const char* value) { SetTargetIdentifier(value); return *this;} + + private: + + Aws::String m_controlIdentifier; + bool m_controlIdentifierHasBeenSet = false; + + Aws::String m_enabledControlIdentifier; + bool m_enabledControlIdentifierHasBeenSet = false; + + Aws::Utils::DateTime m_endTime; + bool m_endTimeHasBeenSet = false; + + Aws::String m_operationIdentifier; + bool m_operationIdentifierHasBeenSet = false; + + ControlOperationType m_operationType; + bool m_operationTypeHasBeenSet = false; + + Aws::Utils::DateTime m_startTime; + bool m_startTimeHasBeenSet = false; + + ControlOperationStatus m_status; + bool m_statusHasBeenSet = false; + + Aws::String m_statusMessage; + bool m_statusMessageHasBeenSet = false; + + Aws::String m_targetIdentifier; + bool m_targetIdentifierHasBeenSet = false; + }; + +} // namespace Model +} // namespace ControlTower +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-controltower/include/aws/controltower/model/CreateLandingZoneRequest.h b/generated/src/aws-cpp-sdk-controltower/include/aws/controltower/model/CreateLandingZoneRequest.h index 65b5a3366de..95c3854275f 100644 --- a/generated/src/aws-cpp-sdk-controltower/include/aws/controltower/model/CreateLandingZoneRequest.h +++ b/generated/src/aws-cpp-sdk-controltower/include/aws/controltower/model/CreateLandingZoneRequest.h @@ -35,50 +35,50 @@ namespace Model /** - *

      The manifest.yaml file is a text file that describes your Amazon Web Services + *

      The manifest JSON file is a text file that describes your Amazon Web Services * resources. For examples, review The - * manifest file.

      + * href="https://docs.aws.amazon.com/controltower/latest/userguide/lz-api-launch">Launch + * your landing zone.

      */ inline Aws::Utils::DocumentView GetManifest() const{ return m_manifest; } /** - *

      The manifest.yaml file is a text file that describes your Amazon Web Services + *

      The manifest JSON file is a text file that describes your Amazon Web Services * resources. For examples, review The - * manifest file.

      + * href="https://docs.aws.amazon.com/controltower/latest/userguide/lz-api-launch">Launch + * your landing zone.

      */ inline bool ManifestHasBeenSet() const { return m_manifestHasBeenSet; } /** - *

      The manifest.yaml file is a text file that describes your Amazon Web Services + *

      The manifest JSON file is a text file that describes your Amazon Web Services * resources. For examples, review The - * manifest file.

      + * href="https://docs.aws.amazon.com/controltower/latest/userguide/lz-api-launch">Launch + * your landing zone.

      */ inline void SetManifest(const Aws::Utils::Document& value) { m_manifestHasBeenSet = true; m_manifest = value; } /** - *

      The manifest.yaml file is a text file that describes your Amazon Web Services + *

      The manifest JSON file is a text file that describes your Amazon Web Services * resources. For examples, review The - * manifest file.

      + * href="https://docs.aws.amazon.com/controltower/latest/userguide/lz-api-launch">Launch + * your landing zone.

      */ inline void SetManifest(Aws::Utils::Document&& value) { m_manifestHasBeenSet = true; m_manifest = std::move(value); } /** - *

      The manifest.yaml file is a text file that describes your Amazon Web Services + *

      The manifest JSON file is a text file that describes your Amazon Web Services * resources. For examples, review The - * manifest file.

      + * href="https://docs.aws.amazon.com/controltower/latest/userguide/lz-api-launch">Launch + * your landing zone.

      */ inline CreateLandingZoneRequest& WithManifest(const Aws::Utils::Document& value) { SetManifest(value); return *this;} /** - *

      The manifest.yaml file is a text file that describes your Amazon Web Services + *

      The manifest JSON file is a text file that describes your Amazon Web Services * resources. For examples, review The - * manifest file.

      + * href="https://docs.aws.amazon.com/controltower/latest/userguide/lz-api-launch">Launch + * your landing zone.

      */ inline CreateLandingZoneRequest& WithManifest(Aws::Utils::Document&& value) { SetManifest(std::move(value)); return *this;} diff --git a/generated/src/aws-cpp-sdk-controltower/include/aws/controltower/model/EnabledControlFilter.h b/generated/src/aws-cpp-sdk-controltower/include/aws/controltower/model/EnabledControlFilter.h new file mode 100644 index 00000000000..28c1dacf898 --- /dev/null +++ b/generated/src/aws-cpp-sdk-controltower/include/aws/controltower/model/EnabledControlFilter.h @@ -0,0 +1,186 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace ControlTower +{ +namespace Model +{ + + /** + *

      A structure that returns a set of control identifiers, the control status for + * each control in the set, and the drift status for each control in the + * set.

      See Also:

      AWS + * API Reference

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

      The set of controlIdentifier returned by the filter.

      + */ + inline const Aws::Vector& GetControlIdentifiers() const{ return m_controlIdentifiers; } + + /** + *

      The set of controlIdentifier returned by the filter.

      + */ + inline bool ControlIdentifiersHasBeenSet() const { return m_controlIdentifiersHasBeenSet; } + + /** + *

      The set of controlIdentifier returned by the filter.

      + */ + inline void SetControlIdentifiers(const Aws::Vector& value) { m_controlIdentifiersHasBeenSet = true; m_controlIdentifiers = value; } + + /** + *

      The set of controlIdentifier returned by the filter.

      + */ + inline void SetControlIdentifiers(Aws::Vector&& value) { m_controlIdentifiersHasBeenSet = true; m_controlIdentifiers = std::move(value); } + + /** + *

      The set of controlIdentifier returned by the filter.

      + */ + inline EnabledControlFilter& WithControlIdentifiers(const Aws::Vector& value) { SetControlIdentifiers(value); return *this;} + + /** + *

      The set of controlIdentifier returned by the filter.

      + */ + inline EnabledControlFilter& WithControlIdentifiers(Aws::Vector&& value) { SetControlIdentifiers(std::move(value)); return *this;} + + /** + *

      The set of controlIdentifier returned by the filter.

      + */ + inline EnabledControlFilter& AddControlIdentifiers(const Aws::String& value) { m_controlIdentifiersHasBeenSet = true; m_controlIdentifiers.push_back(value); return *this; } + + /** + *

      The set of controlIdentifier returned by the filter.

      + */ + inline EnabledControlFilter& AddControlIdentifiers(Aws::String&& value) { m_controlIdentifiersHasBeenSet = true; m_controlIdentifiers.push_back(std::move(value)); return *this; } + + /** + *

      The set of controlIdentifier returned by the filter.

      + */ + inline EnabledControlFilter& AddControlIdentifiers(const char* value) { m_controlIdentifiersHasBeenSet = true; m_controlIdentifiers.push_back(value); return *this; } + + + /** + *

      A list of DriftStatus items.

      + */ + inline const Aws::Vector& GetDriftStatuses() const{ return m_driftStatuses; } + + /** + *

      A list of DriftStatus items.

      + */ + inline bool DriftStatusesHasBeenSet() const { return m_driftStatusesHasBeenSet; } + + /** + *

      A list of DriftStatus items.

      + */ + inline void SetDriftStatuses(const Aws::Vector& value) { m_driftStatusesHasBeenSet = true; m_driftStatuses = value; } + + /** + *

      A list of DriftStatus items.

      + */ + inline void SetDriftStatuses(Aws::Vector&& value) { m_driftStatusesHasBeenSet = true; m_driftStatuses = std::move(value); } + + /** + *

      A list of DriftStatus items.

      + */ + inline EnabledControlFilter& WithDriftStatuses(const Aws::Vector& value) { SetDriftStatuses(value); return *this;} + + /** + *

      A list of DriftStatus items.

      + */ + inline EnabledControlFilter& WithDriftStatuses(Aws::Vector&& value) { SetDriftStatuses(std::move(value)); return *this;} + + /** + *

      A list of DriftStatus items.

      + */ + inline EnabledControlFilter& AddDriftStatuses(const DriftStatus& value) { m_driftStatusesHasBeenSet = true; m_driftStatuses.push_back(value); return *this; } + + /** + *

      A list of DriftStatus items.

      + */ + inline EnabledControlFilter& AddDriftStatuses(DriftStatus&& value) { m_driftStatusesHasBeenSet = true; m_driftStatuses.push_back(std::move(value)); return *this; } + + + /** + *

      A list of EnablementStatus items.

      + */ + inline const Aws::Vector& GetStatuses() const{ return m_statuses; } + + /** + *

      A list of EnablementStatus items.

      + */ + inline bool StatusesHasBeenSet() const { return m_statusesHasBeenSet; } + + /** + *

      A list of EnablementStatus items.

      + */ + inline void SetStatuses(const Aws::Vector& value) { m_statusesHasBeenSet = true; m_statuses = value; } + + /** + *

      A list of EnablementStatus items.

      + */ + inline void SetStatuses(Aws::Vector&& value) { m_statusesHasBeenSet = true; m_statuses = std::move(value); } + + /** + *

      A list of EnablementStatus items.

      + */ + inline EnabledControlFilter& WithStatuses(const Aws::Vector& value) { SetStatuses(value); return *this;} + + /** + *

      A list of EnablementStatus items.

      + */ + inline EnabledControlFilter& WithStatuses(Aws::Vector&& value) { SetStatuses(std::move(value)); return *this;} + + /** + *

      A list of EnablementStatus items.

      + */ + inline EnabledControlFilter& AddStatuses(const EnablementStatus& value) { m_statusesHasBeenSet = true; m_statuses.push_back(value); return *this; } + + /** + *

      A list of EnablementStatus items.

      + */ + inline EnabledControlFilter& AddStatuses(EnablementStatus&& value) { m_statusesHasBeenSet = true; m_statuses.push_back(std::move(value)); return *this; } + + private: + + Aws::Vector m_controlIdentifiers; + bool m_controlIdentifiersHasBeenSet = false; + + Aws::Vector m_driftStatuses; + bool m_driftStatusesHasBeenSet = false; + + Aws::Vector m_statuses; + bool m_statusesHasBeenSet = false; + }; + +} // namespace Model +} // namespace ControlTower +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-controltower/include/aws/controltower/model/LandingZoneDetail.h b/generated/src/aws-cpp-sdk-controltower/include/aws/controltower/model/LandingZoneDetail.h index c9a4e846c8e..9bc42baaeea 100644 --- a/generated/src/aws-cpp-sdk-controltower/include/aws/controltower/model/LandingZoneDetail.h +++ b/generated/src/aws-cpp-sdk-controltower/include/aws/controltower/model/LandingZoneDetail.h @@ -154,38 +154,38 @@ namespace Model /** - *

      The landing zone manifest.yaml text file that specifies the - * landing zone configurations.

      + *

      The landing zone manifest JSON text file that specifies the landing zone + * configurations.

      */ inline Aws::Utils::DocumentView GetManifest() const{ return m_manifest; } /** - *

      The landing zone manifest.yaml text file that specifies the - * landing zone configurations.

      + *

      The landing zone manifest JSON text file that specifies the landing zone + * configurations.

      */ inline bool ManifestHasBeenSet() const { return m_manifestHasBeenSet; } /** - *

      The landing zone manifest.yaml text file that specifies the - * landing zone configurations.

      + *

      The landing zone manifest JSON text file that specifies the landing zone + * configurations.

      */ inline void SetManifest(const Aws::Utils::Document& value) { m_manifestHasBeenSet = true; m_manifest = value; } /** - *

      The landing zone manifest.yaml text file that specifies the - * landing zone configurations.

      + *

      The landing zone manifest JSON text file that specifies the landing zone + * configurations.

      */ inline void SetManifest(Aws::Utils::Document&& value) { m_manifestHasBeenSet = true; m_manifest = std::move(value); } /** - *

      The landing zone manifest.yaml text file that specifies the - * landing zone configurations.

      + *

      The landing zone manifest JSON text file that specifies the landing zone + * configurations.

      */ inline LandingZoneDetail& WithManifest(const Aws::Utils::Document& value) { SetManifest(value); return *this;} /** - *

      The landing zone manifest.yaml text file that specifies the - * landing zone configurations.

      + *

      The landing zone manifest JSON text file that specifies the landing zone + * configurations.

      */ inline LandingZoneDetail& WithManifest(Aws::Utils::Document&& value) { SetManifest(std::move(value)); return *this;} diff --git a/generated/src/aws-cpp-sdk-controltower/include/aws/controltower/model/ListControlOperationsRequest.h b/generated/src/aws-cpp-sdk-controltower/include/aws/controltower/model/ListControlOperationsRequest.h new file mode 100644 index 00000000000..63284c2a37e --- /dev/null +++ b/generated/src/aws-cpp-sdk-controltower/include/aws/controltower/model/ListControlOperationsRequest.h @@ -0,0 +1,148 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace ControlTower +{ +namespace Model +{ + + /** + */ + class ListControlOperationsRequest : public ControlTowerRequest + { + public: + AWS_CONTROLTOWER_API ListControlOperationsRequest(); + + // 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 "ListControlOperations"; } + + AWS_CONTROLTOWER_API Aws::String SerializePayload() const override; + + + /** + *

      An input filter for the ListControlOperations API that lets you + * select the types of control operations to view.

      + */ + inline const ControlOperationFilter& GetFilter() const{ return m_filter; } + + /** + *

      An input filter for the ListControlOperations API that lets you + * select the types of control operations to view.

      + */ + inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; } + + /** + *

      An input filter for the ListControlOperations API that lets you + * select the types of control operations to view.

      + */ + inline void SetFilter(const ControlOperationFilter& value) { m_filterHasBeenSet = true; m_filter = value; } + + /** + *

      An input filter for the ListControlOperations API that lets you + * select the types of control operations to view.

      + */ + inline void SetFilter(ControlOperationFilter&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); } + + /** + *

      An input filter for the ListControlOperations API that lets you + * select the types of control operations to view.

      + */ + inline ListControlOperationsRequest& WithFilter(const ControlOperationFilter& value) { SetFilter(value); return *this;} + + /** + *

      An input filter for the ListControlOperations API that lets you + * select the types of control operations to view.

      + */ + inline ListControlOperationsRequest& WithFilter(ControlOperationFilter&& value) { SetFilter(std::move(value)); return *this;} + + + /** + *

      The maximum number of results to be shown.

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

      The maximum number of results to be shown.

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

      The maximum number of results to be shown.

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

      The maximum number of results to be shown.

      + */ + inline ListControlOperationsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} + + + /** + *

      A pagination token.

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

      A pagination token.

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

      A pagination token.

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

      A pagination token.

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

      A pagination token.

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

      A pagination token.

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

      A pagination token.

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

      A pagination token.

      + */ + inline ListControlOperationsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} + + private: + + ControlOperationFilter m_filter; + bool m_filterHasBeenSet = false; + + int m_maxResults; + bool m_maxResultsHasBeenSet = false; + + Aws::String m_nextToken; + bool m_nextTokenHasBeenSet = false; + }; + +} // namespace Model +} // namespace ControlTower +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-controltower/include/aws/controltower/model/ListControlOperationsResult.h b/generated/src/aws-cpp-sdk-controltower/include/aws/controltower/model/ListControlOperationsResult.h new file mode 100644 index 00000000000..cf0d05af65f --- /dev/null +++ b/generated/src/aws-cpp-sdk-controltower/include/aws/controltower/model/ListControlOperationsResult.h @@ -0,0 +1,141 @@ +/** + * 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 ControlTower +{ +namespace Model +{ + class ListControlOperationsResult + { + public: + AWS_CONTROLTOWER_API ListControlOperationsResult(); + AWS_CONTROLTOWER_API ListControlOperationsResult(const Aws::AmazonWebServiceResult& result); + AWS_CONTROLTOWER_API ListControlOperationsResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

      Returns a list of output from control operations. PLACEHOLDER

      + */ + inline const Aws::Vector& GetControlOperations() const{ return m_controlOperations; } + + /** + *

      Returns a list of output from control operations. PLACEHOLDER

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

      Returns a list of output from control operations. PLACEHOLDER

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

      Returns a list of output from control operations. PLACEHOLDER

      + */ + inline ListControlOperationsResult& WithControlOperations(const Aws::Vector& value) { SetControlOperations(value); return *this;} + + /** + *

      Returns a list of output from control operations. PLACEHOLDER

      + */ + inline ListControlOperationsResult& WithControlOperations(Aws::Vector&& value) { SetControlOperations(std::move(value)); return *this;} + + /** + *

      Returns a list of output from control operations. PLACEHOLDER

      + */ + inline ListControlOperationsResult& AddControlOperations(const ControlOperationSummary& value) { m_controlOperations.push_back(value); return *this; } + + /** + *

      Returns a list of output from control operations. PLACEHOLDER

      + */ + inline ListControlOperationsResult& AddControlOperations(ControlOperationSummary&& value) { m_controlOperations.push_back(std::move(value)); return *this; } + + + /** + *

      A pagination token.

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

      A pagination token.

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

      A pagination token.

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

      A pagination token.

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

      A pagination token.

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

      A pagination token.

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

      A pagination token.

      + */ + inline ListControlOperationsResult& 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 ListControlOperationsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + + + inline ListControlOperationsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + + + inline ListControlOperationsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + + private: + + Aws::Vector m_controlOperations; + + Aws::String m_nextToken; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace ControlTower +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-controltower/include/aws/controltower/model/ListEnabledControlsRequest.h b/generated/src/aws-cpp-sdk-controltower/include/aws/controltower/model/ListEnabledControlsRequest.h index 9e651d316a5..1dde1b16bfe 100644 --- a/generated/src/aws-cpp-sdk-controltower/include/aws/controltower/model/ListEnabledControlsRequest.h +++ b/generated/src/aws-cpp-sdk-controltower/include/aws/controltower/model/ListEnabledControlsRequest.h @@ -6,6 +6,7 @@ #pragma once #include #include +#include #include #include @@ -32,6 +33,43 @@ namespace Model AWS_CONTROLTOWER_API Aws::String SerializePayload() const override; + /** + *

      An input filter for the ListCEnabledControls API that lets you + * select the types of control operations to view.

      + */ + inline const EnabledControlFilter& GetFilter() const{ return m_filter; } + + /** + *

      An input filter for the ListCEnabledControls API that lets you + * select the types of control operations to view.

      + */ + inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; } + + /** + *

      An input filter for the ListCEnabledControls API that lets you + * select the types of control operations to view.

      + */ + inline void SetFilter(const EnabledControlFilter& value) { m_filterHasBeenSet = true; m_filter = value; } + + /** + *

      An input filter for the ListCEnabledControls API that lets you + * select the types of control operations to view.

      + */ + inline void SetFilter(EnabledControlFilter&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); } + + /** + *

      An input filter for the ListCEnabledControls API that lets you + * select the types of control operations to view.

      + */ + inline ListEnabledControlsRequest& WithFilter(const EnabledControlFilter& value) { SetFilter(value); return *this;} + + /** + *

      An input filter for the ListCEnabledControls API that lets you + * select the types of control operations to view.

      + */ + inline ListEnabledControlsRequest& WithFilter(EnabledControlFilter&& value) { SetFilter(std::move(value)); return *this;} + + /** *

      How many results to return per API call.

      */ @@ -168,6 +206,9 @@ namespace Model private: + EnabledControlFilter m_filter; + bool m_filterHasBeenSet = false; + int m_maxResults; bool m_maxResultsHasBeenSet = false; diff --git a/generated/src/aws-cpp-sdk-controltower/include/aws/controltower/model/UpdateLandingZoneRequest.h b/generated/src/aws-cpp-sdk-controltower/include/aws/controltower/model/UpdateLandingZoneRequest.h index 6c61edd9e66..fe311dcc640 100644 --- a/generated/src/aws-cpp-sdk-controltower/include/aws/controltower/model/UpdateLandingZoneRequest.h +++ b/generated/src/aws-cpp-sdk-controltower/include/aws/controltower/model/UpdateLandingZoneRequest.h @@ -75,50 +75,50 @@ namespace Model /** - *

      The manifest.yaml file is a text file that describes your Amazon - * Web Services resources. For examples, review The - * manifest file.

      + *

      The manifest JSON file is a text file that describes your Amazon Web Services + * resources. For examples, review Launch + * your landing zone.

      */ inline Aws::Utils::DocumentView GetManifest() const{ return m_manifest; } /** - *

      The manifest.yaml file is a text file that describes your Amazon - * Web Services resources. For examples, review The - * manifest file.

      + *

      The manifest JSON file is a text file that describes your Amazon Web Services + * resources. For examples, review Launch + * your landing zone.

      */ inline bool ManifestHasBeenSet() const { return m_manifestHasBeenSet; } /** - *

      The manifest.yaml file is a text file that describes your Amazon - * Web Services resources. For examples, review The - * manifest file.

      + *

      The manifest JSON file is a text file that describes your Amazon Web Services + * resources. For examples, review Launch + * your landing zone.

      */ inline void SetManifest(const Aws::Utils::Document& value) { m_manifestHasBeenSet = true; m_manifest = value; } /** - *

      The manifest.yaml file is a text file that describes your Amazon - * Web Services resources. For examples, review The - * manifest file.

      + *

      The manifest JSON file is a text file that describes your Amazon Web Services + * resources. For examples, review Launch + * your landing zone.

      */ inline void SetManifest(Aws::Utils::Document&& value) { m_manifestHasBeenSet = true; m_manifest = std::move(value); } /** - *

      The manifest.yaml file is a text file that describes your Amazon - * Web Services resources. For examples, review The - * manifest file.

      + *

      The manifest JSON file is a text file that describes your Amazon Web Services + * resources. For examples, review Launch + * your landing zone.

      */ inline UpdateLandingZoneRequest& WithManifest(const Aws::Utils::Document& value) { SetManifest(value); return *this;} /** - *

      The manifest.yaml file is a text file that describes your Amazon - * Web Services resources. For examples, review The - * manifest file.

      + *

      The manifest JSON file is a text file that describes your Amazon Web Services + * resources. For examples, review Launch + * your landing zone.

      */ inline UpdateLandingZoneRequest& WithManifest(Aws::Utils::Document&& value) { SetManifest(std::move(value)); return *this;} diff --git a/generated/src/aws-cpp-sdk-controltower/source/ControlTowerClient.cpp b/generated/src/aws-cpp-sdk-controltower/source/ControlTowerClient.cpp index 1b6bd30876a..269d975cb50 100644 --- a/generated/src/aws-cpp-sdk-controltower/source/ControlTowerClient.cpp +++ b/generated/src/aws-cpp-sdk-controltower/source/ControlTowerClient.cpp @@ -35,6 +35,7 @@ #include #include #include +#include #include #include #include @@ -565,6 +566,33 @@ ListBaselinesOutcome ControlTowerClient::ListBaselines(const ListBaselinesReques {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +ListControlOperationsOutcome ControlTowerClient::ListControlOperations(const ListControlOperationsRequest& request) const +{ + AWS_OPERATION_GUARD(ListControlOperations); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListControlOperations, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListControlOperations, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, ListControlOperations, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListControlOperations", + {{ 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( + [&]()-> ListControlOperationsOutcome { + 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, ListControlOperations, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/list-control-operations"); + return ListControlOperationsOutcome(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()}}); +} + ListEnabledBaselinesOutcome ControlTowerClient::ListEnabledBaselines(const ListEnabledBaselinesRequest& request) const { AWS_OPERATION_GUARD(ListEnabledBaselines); diff --git a/generated/src/aws-cpp-sdk-controltower/source/model/ControlOperation.cpp b/generated/src/aws-cpp-sdk-controltower/source/model/ControlOperation.cpp index b5aa9e37c8e..8c9a567c37f 100644 --- a/generated/src/aws-cpp-sdk-controltower/source/model/ControlOperation.cpp +++ b/generated/src/aws-cpp-sdk-controltower/source/model/ControlOperation.cpp @@ -19,30 +19,52 @@ namespace Model { ControlOperation::ControlOperation() : + m_controlIdentifierHasBeenSet(false), + m_enabledControlIdentifierHasBeenSet(false), m_endTimeHasBeenSet(false), + m_operationIdentifierHasBeenSet(false), m_operationType(ControlOperationType::NOT_SET), m_operationTypeHasBeenSet(false), m_startTimeHasBeenSet(false), m_status(ControlOperationStatus::NOT_SET), m_statusHasBeenSet(false), - m_statusMessageHasBeenSet(false) + m_statusMessageHasBeenSet(false), + m_targetIdentifierHasBeenSet(false) { } ControlOperation::ControlOperation(JsonView jsonValue) : + m_controlIdentifierHasBeenSet(false), + m_enabledControlIdentifierHasBeenSet(false), m_endTimeHasBeenSet(false), + m_operationIdentifierHasBeenSet(false), m_operationType(ControlOperationType::NOT_SET), m_operationTypeHasBeenSet(false), m_startTimeHasBeenSet(false), m_status(ControlOperationStatus::NOT_SET), m_statusHasBeenSet(false), - m_statusMessageHasBeenSet(false) + m_statusMessageHasBeenSet(false), + m_targetIdentifierHasBeenSet(false) { *this = jsonValue; } ControlOperation& ControlOperation::operator =(JsonView jsonValue) { + if(jsonValue.ValueExists("controlIdentifier")) + { + m_controlIdentifier = jsonValue.GetString("controlIdentifier"); + + m_controlIdentifierHasBeenSet = true; + } + + if(jsonValue.ValueExists("enabledControlIdentifier")) + { + m_enabledControlIdentifier = jsonValue.GetString("enabledControlIdentifier"); + + m_enabledControlIdentifierHasBeenSet = true; + } + if(jsonValue.ValueExists("endTime")) { m_endTime = jsonValue.GetString("endTime"); @@ -50,6 +72,13 @@ ControlOperation& ControlOperation::operator =(JsonView jsonValue) m_endTimeHasBeenSet = true; } + if(jsonValue.ValueExists("operationIdentifier")) + { + m_operationIdentifier = jsonValue.GetString("operationIdentifier"); + + m_operationIdentifierHasBeenSet = true; + } + if(jsonValue.ValueExists("operationType")) { m_operationType = ControlOperationTypeMapper::GetControlOperationTypeForName(jsonValue.GetString("operationType")); @@ -78,6 +107,13 @@ ControlOperation& ControlOperation::operator =(JsonView jsonValue) m_statusMessageHasBeenSet = true; } + if(jsonValue.ValueExists("targetIdentifier")) + { + m_targetIdentifier = jsonValue.GetString("targetIdentifier"); + + m_targetIdentifierHasBeenSet = true; + } + return *this; } @@ -85,11 +121,29 @@ JsonValue ControlOperation::Jsonize() const { JsonValue payload; + if(m_controlIdentifierHasBeenSet) + { + payload.WithString("controlIdentifier", m_controlIdentifier); + + } + + if(m_enabledControlIdentifierHasBeenSet) + { + payload.WithString("enabledControlIdentifier", m_enabledControlIdentifier); + + } + if(m_endTimeHasBeenSet) { payload.WithString("endTime", m_endTime.ToGmtString(Aws::Utils::DateFormat::ISO_8601)); } + if(m_operationIdentifierHasBeenSet) + { + payload.WithString("operationIdentifier", m_operationIdentifier); + + } + if(m_operationTypeHasBeenSet) { payload.WithString("operationType", ControlOperationTypeMapper::GetNameForControlOperationType(m_operationType)); @@ -111,6 +165,12 @@ JsonValue ControlOperation::Jsonize() const } + if(m_targetIdentifierHasBeenSet) + { + payload.WithString("targetIdentifier", m_targetIdentifier); + + } + return payload; } diff --git a/generated/src/aws-cpp-sdk-controltower/source/model/ControlOperationFilter.cpp b/generated/src/aws-cpp-sdk-controltower/source/model/ControlOperationFilter.cpp new file mode 100644 index 00000000000..73f58c97c51 --- /dev/null +++ b/generated/src/aws-cpp-sdk-controltower/source/model/ControlOperationFilter.cpp @@ -0,0 +1,159 @@ +/** + * 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 ControlTower +{ +namespace Model +{ + +ControlOperationFilter::ControlOperationFilter() : + m_controlIdentifiersHasBeenSet(false), + m_controlOperationTypesHasBeenSet(false), + m_enabledControlIdentifiersHasBeenSet(false), + m_statusesHasBeenSet(false), + m_targetIdentifiersHasBeenSet(false) +{ +} + +ControlOperationFilter::ControlOperationFilter(JsonView jsonValue) : + m_controlIdentifiersHasBeenSet(false), + m_controlOperationTypesHasBeenSet(false), + m_enabledControlIdentifiersHasBeenSet(false), + m_statusesHasBeenSet(false), + m_targetIdentifiersHasBeenSet(false) +{ + *this = jsonValue; +} + +ControlOperationFilter& ControlOperationFilter::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("controlIdentifiers")) + { + Aws::Utils::Array controlIdentifiersJsonList = jsonValue.GetArray("controlIdentifiers"); + for(unsigned controlIdentifiersIndex = 0; controlIdentifiersIndex < controlIdentifiersJsonList.GetLength(); ++controlIdentifiersIndex) + { + m_controlIdentifiers.push_back(controlIdentifiersJsonList[controlIdentifiersIndex].AsString()); + } + m_controlIdentifiersHasBeenSet = true; + } + + if(jsonValue.ValueExists("controlOperationTypes")) + { + Aws::Utils::Array controlOperationTypesJsonList = jsonValue.GetArray("controlOperationTypes"); + for(unsigned controlOperationTypesIndex = 0; controlOperationTypesIndex < controlOperationTypesJsonList.GetLength(); ++controlOperationTypesIndex) + { + m_controlOperationTypes.push_back(ControlOperationTypeMapper::GetControlOperationTypeForName(controlOperationTypesJsonList[controlOperationTypesIndex].AsString())); + } + m_controlOperationTypesHasBeenSet = true; + } + + if(jsonValue.ValueExists("enabledControlIdentifiers")) + { + Aws::Utils::Array enabledControlIdentifiersJsonList = jsonValue.GetArray("enabledControlIdentifiers"); + for(unsigned enabledControlIdentifiersIndex = 0; enabledControlIdentifiersIndex < enabledControlIdentifiersJsonList.GetLength(); ++enabledControlIdentifiersIndex) + { + m_enabledControlIdentifiers.push_back(enabledControlIdentifiersJsonList[enabledControlIdentifiersIndex].AsString()); + } + m_enabledControlIdentifiersHasBeenSet = true; + } + + if(jsonValue.ValueExists("statuses")) + { + Aws::Utils::Array statusesJsonList = jsonValue.GetArray("statuses"); + for(unsigned statusesIndex = 0; statusesIndex < statusesJsonList.GetLength(); ++statusesIndex) + { + m_statuses.push_back(ControlOperationStatusMapper::GetControlOperationStatusForName(statusesJsonList[statusesIndex].AsString())); + } + m_statusesHasBeenSet = true; + } + + if(jsonValue.ValueExists("targetIdentifiers")) + { + Aws::Utils::Array targetIdentifiersJsonList = jsonValue.GetArray("targetIdentifiers"); + for(unsigned targetIdentifiersIndex = 0; targetIdentifiersIndex < targetIdentifiersJsonList.GetLength(); ++targetIdentifiersIndex) + { + m_targetIdentifiers.push_back(targetIdentifiersJsonList[targetIdentifiersIndex].AsString()); + } + m_targetIdentifiersHasBeenSet = true; + } + + return *this; +} + +JsonValue ControlOperationFilter::Jsonize() const +{ + JsonValue payload; + + if(m_controlIdentifiersHasBeenSet) + { + Aws::Utils::Array controlIdentifiersJsonList(m_controlIdentifiers.size()); + for(unsigned controlIdentifiersIndex = 0; controlIdentifiersIndex < controlIdentifiersJsonList.GetLength(); ++controlIdentifiersIndex) + { + controlIdentifiersJsonList[controlIdentifiersIndex].AsString(m_controlIdentifiers[controlIdentifiersIndex]); + } + payload.WithArray("controlIdentifiers", std::move(controlIdentifiersJsonList)); + + } + + if(m_controlOperationTypesHasBeenSet) + { + Aws::Utils::Array controlOperationTypesJsonList(m_controlOperationTypes.size()); + for(unsigned controlOperationTypesIndex = 0; controlOperationTypesIndex < controlOperationTypesJsonList.GetLength(); ++controlOperationTypesIndex) + { + controlOperationTypesJsonList[controlOperationTypesIndex].AsString(ControlOperationTypeMapper::GetNameForControlOperationType(m_controlOperationTypes[controlOperationTypesIndex])); + } + payload.WithArray("controlOperationTypes", std::move(controlOperationTypesJsonList)); + + } + + if(m_enabledControlIdentifiersHasBeenSet) + { + Aws::Utils::Array enabledControlIdentifiersJsonList(m_enabledControlIdentifiers.size()); + for(unsigned enabledControlIdentifiersIndex = 0; enabledControlIdentifiersIndex < enabledControlIdentifiersJsonList.GetLength(); ++enabledControlIdentifiersIndex) + { + enabledControlIdentifiersJsonList[enabledControlIdentifiersIndex].AsString(m_enabledControlIdentifiers[enabledControlIdentifiersIndex]); + } + payload.WithArray("enabledControlIdentifiers", std::move(enabledControlIdentifiersJsonList)); + + } + + if(m_statusesHasBeenSet) + { + Aws::Utils::Array statusesJsonList(m_statuses.size()); + for(unsigned statusesIndex = 0; statusesIndex < statusesJsonList.GetLength(); ++statusesIndex) + { + statusesJsonList[statusesIndex].AsString(ControlOperationStatusMapper::GetNameForControlOperationStatus(m_statuses[statusesIndex])); + } + payload.WithArray("statuses", std::move(statusesJsonList)); + + } + + if(m_targetIdentifiersHasBeenSet) + { + Aws::Utils::Array targetIdentifiersJsonList(m_targetIdentifiers.size()); + for(unsigned targetIdentifiersIndex = 0; targetIdentifiersIndex < targetIdentifiersJsonList.GetLength(); ++targetIdentifiersIndex) + { + targetIdentifiersJsonList[targetIdentifiersIndex].AsString(m_targetIdentifiers[targetIdentifiersIndex]); + } + payload.WithArray("targetIdentifiers", std::move(targetIdentifiersJsonList)); + + } + + return payload; +} + +} // namespace Model +} // namespace ControlTower +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-controltower/source/model/ControlOperationSummary.cpp b/generated/src/aws-cpp-sdk-controltower/source/model/ControlOperationSummary.cpp new file mode 100644 index 00000000000..17ca1011bb9 --- /dev/null +++ b/generated/src/aws-cpp-sdk-controltower/source/model/ControlOperationSummary.cpp @@ -0,0 +1,179 @@ +/** + * 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 ControlTower +{ +namespace Model +{ + +ControlOperationSummary::ControlOperationSummary() : + m_controlIdentifierHasBeenSet(false), + m_enabledControlIdentifierHasBeenSet(false), + m_endTimeHasBeenSet(false), + m_operationIdentifierHasBeenSet(false), + m_operationType(ControlOperationType::NOT_SET), + m_operationTypeHasBeenSet(false), + m_startTimeHasBeenSet(false), + m_status(ControlOperationStatus::NOT_SET), + m_statusHasBeenSet(false), + m_statusMessageHasBeenSet(false), + m_targetIdentifierHasBeenSet(false) +{ +} + +ControlOperationSummary::ControlOperationSummary(JsonView jsonValue) : + m_controlIdentifierHasBeenSet(false), + m_enabledControlIdentifierHasBeenSet(false), + m_endTimeHasBeenSet(false), + m_operationIdentifierHasBeenSet(false), + m_operationType(ControlOperationType::NOT_SET), + m_operationTypeHasBeenSet(false), + m_startTimeHasBeenSet(false), + m_status(ControlOperationStatus::NOT_SET), + m_statusHasBeenSet(false), + m_statusMessageHasBeenSet(false), + m_targetIdentifierHasBeenSet(false) +{ + *this = jsonValue; +} + +ControlOperationSummary& ControlOperationSummary::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("controlIdentifier")) + { + m_controlIdentifier = jsonValue.GetString("controlIdentifier"); + + m_controlIdentifierHasBeenSet = true; + } + + if(jsonValue.ValueExists("enabledControlIdentifier")) + { + m_enabledControlIdentifier = jsonValue.GetString("enabledControlIdentifier"); + + m_enabledControlIdentifierHasBeenSet = true; + } + + if(jsonValue.ValueExists("endTime")) + { + m_endTime = jsonValue.GetString("endTime"); + + m_endTimeHasBeenSet = true; + } + + if(jsonValue.ValueExists("operationIdentifier")) + { + m_operationIdentifier = jsonValue.GetString("operationIdentifier"); + + m_operationIdentifierHasBeenSet = true; + } + + if(jsonValue.ValueExists("operationType")) + { + m_operationType = ControlOperationTypeMapper::GetControlOperationTypeForName(jsonValue.GetString("operationType")); + + m_operationTypeHasBeenSet = true; + } + + if(jsonValue.ValueExists("startTime")) + { + m_startTime = jsonValue.GetString("startTime"); + + m_startTimeHasBeenSet = true; + } + + if(jsonValue.ValueExists("status")) + { + m_status = ControlOperationStatusMapper::GetControlOperationStatusForName(jsonValue.GetString("status")); + + m_statusHasBeenSet = true; + } + + if(jsonValue.ValueExists("statusMessage")) + { + m_statusMessage = jsonValue.GetString("statusMessage"); + + m_statusMessageHasBeenSet = true; + } + + if(jsonValue.ValueExists("targetIdentifier")) + { + m_targetIdentifier = jsonValue.GetString("targetIdentifier"); + + m_targetIdentifierHasBeenSet = true; + } + + return *this; +} + +JsonValue ControlOperationSummary::Jsonize() const +{ + JsonValue payload; + + if(m_controlIdentifierHasBeenSet) + { + payload.WithString("controlIdentifier", m_controlIdentifier); + + } + + if(m_enabledControlIdentifierHasBeenSet) + { + payload.WithString("enabledControlIdentifier", m_enabledControlIdentifier); + + } + + if(m_endTimeHasBeenSet) + { + payload.WithString("endTime", m_endTime.ToGmtString(Aws::Utils::DateFormat::ISO_8601)); + } + + if(m_operationIdentifierHasBeenSet) + { + payload.WithString("operationIdentifier", m_operationIdentifier); + + } + + if(m_operationTypeHasBeenSet) + { + payload.WithString("operationType", ControlOperationTypeMapper::GetNameForControlOperationType(m_operationType)); + } + + if(m_startTimeHasBeenSet) + { + payload.WithString("startTime", m_startTime.ToGmtString(Aws::Utils::DateFormat::ISO_8601)); + } + + if(m_statusHasBeenSet) + { + payload.WithString("status", ControlOperationStatusMapper::GetNameForControlOperationStatus(m_status)); + } + + if(m_statusMessageHasBeenSet) + { + payload.WithString("statusMessage", m_statusMessage); + + } + + if(m_targetIdentifierHasBeenSet) + { + payload.WithString("targetIdentifier", m_targetIdentifier); + + } + + return payload; +} + +} // namespace Model +} // namespace ControlTower +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-controltower/source/model/EnabledControlFilter.cpp b/generated/src/aws-cpp-sdk-controltower/source/model/EnabledControlFilter.cpp new file mode 100644 index 00000000000..f578a331a45 --- /dev/null +++ b/generated/src/aws-cpp-sdk-controltower/source/model/EnabledControlFilter.cpp @@ -0,0 +1,113 @@ +/** + * 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 ControlTower +{ +namespace Model +{ + +EnabledControlFilter::EnabledControlFilter() : + m_controlIdentifiersHasBeenSet(false), + m_driftStatusesHasBeenSet(false), + m_statusesHasBeenSet(false) +{ +} + +EnabledControlFilter::EnabledControlFilter(JsonView jsonValue) : + m_controlIdentifiersHasBeenSet(false), + m_driftStatusesHasBeenSet(false), + m_statusesHasBeenSet(false) +{ + *this = jsonValue; +} + +EnabledControlFilter& EnabledControlFilter::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("controlIdentifiers")) + { + Aws::Utils::Array controlIdentifiersJsonList = jsonValue.GetArray("controlIdentifiers"); + for(unsigned controlIdentifiersIndex = 0; controlIdentifiersIndex < controlIdentifiersJsonList.GetLength(); ++controlIdentifiersIndex) + { + m_controlIdentifiers.push_back(controlIdentifiersJsonList[controlIdentifiersIndex].AsString()); + } + m_controlIdentifiersHasBeenSet = true; + } + + if(jsonValue.ValueExists("driftStatuses")) + { + Aws::Utils::Array driftStatusesJsonList = jsonValue.GetArray("driftStatuses"); + for(unsigned driftStatusesIndex = 0; driftStatusesIndex < driftStatusesJsonList.GetLength(); ++driftStatusesIndex) + { + m_driftStatuses.push_back(DriftStatusMapper::GetDriftStatusForName(driftStatusesJsonList[driftStatusesIndex].AsString())); + } + m_driftStatusesHasBeenSet = true; + } + + if(jsonValue.ValueExists("statuses")) + { + Aws::Utils::Array statusesJsonList = jsonValue.GetArray("statuses"); + for(unsigned statusesIndex = 0; statusesIndex < statusesJsonList.GetLength(); ++statusesIndex) + { + m_statuses.push_back(EnablementStatusMapper::GetEnablementStatusForName(statusesJsonList[statusesIndex].AsString())); + } + m_statusesHasBeenSet = true; + } + + return *this; +} + +JsonValue EnabledControlFilter::Jsonize() const +{ + JsonValue payload; + + if(m_controlIdentifiersHasBeenSet) + { + Aws::Utils::Array controlIdentifiersJsonList(m_controlIdentifiers.size()); + for(unsigned controlIdentifiersIndex = 0; controlIdentifiersIndex < controlIdentifiersJsonList.GetLength(); ++controlIdentifiersIndex) + { + controlIdentifiersJsonList[controlIdentifiersIndex].AsString(m_controlIdentifiers[controlIdentifiersIndex]); + } + payload.WithArray("controlIdentifiers", std::move(controlIdentifiersJsonList)); + + } + + if(m_driftStatusesHasBeenSet) + { + Aws::Utils::Array driftStatusesJsonList(m_driftStatuses.size()); + for(unsigned driftStatusesIndex = 0; driftStatusesIndex < driftStatusesJsonList.GetLength(); ++driftStatusesIndex) + { + driftStatusesJsonList[driftStatusesIndex].AsString(DriftStatusMapper::GetNameForDriftStatus(m_driftStatuses[driftStatusesIndex])); + } + payload.WithArray("driftStatuses", std::move(driftStatusesJsonList)); + + } + + if(m_statusesHasBeenSet) + { + Aws::Utils::Array statusesJsonList(m_statuses.size()); + for(unsigned statusesIndex = 0; statusesIndex < statusesJsonList.GetLength(); ++statusesIndex) + { + statusesJsonList[statusesIndex].AsString(EnablementStatusMapper::GetNameForEnablementStatus(m_statuses[statusesIndex])); + } + payload.WithArray("statuses", std::move(statusesJsonList)); + + } + + return payload; +} + +} // namespace Model +} // namespace ControlTower +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-controltower/source/model/ListControlOperationsRequest.cpp b/generated/src/aws-cpp-sdk-controltower/source/model/ListControlOperationsRequest.cpp new file mode 100644 index 00000000000..6735eeeb799 --- /dev/null +++ b/generated/src/aws-cpp-sdk-controltower/source/model/ListControlOperationsRequest.cpp @@ -0,0 +1,50 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::ControlTower::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +ListControlOperationsRequest::ListControlOperationsRequest() : + m_filterHasBeenSet(false), + m_maxResults(0), + m_maxResultsHasBeenSet(false), + m_nextTokenHasBeenSet(false) +{ +} + +Aws::String ListControlOperationsRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_filterHasBeenSet) + { + payload.WithObject("filter", m_filter.Jsonize()); + + } + + if(m_maxResultsHasBeenSet) + { + payload.WithInteger("maxResults", m_maxResults); + + } + + if(m_nextTokenHasBeenSet) + { + payload.WithString("nextToken", m_nextToken); + + } + + return payload.View().WriteReadable(); +} + + + + diff --git a/generated/src/aws-cpp-sdk-controltower/source/model/ListControlOperationsResult.cpp b/generated/src/aws-cpp-sdk-controltower/source/model/ListControlOperationsResult.cpp new file mode 100644 index 00000000000..428a5b132f9 --- /dev/null +++ b/generated/src/aws-cpp-sdk-controltower/source/model/ListControlOperationsResult.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::ControlTower::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +ListControlOperationsResult::ListControlOperationsResult() +{ +} + +ListControlOperationsResult::ListControlOperationsResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +ListControlOperationsResult& ListControlOperationsResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("controlOperations")) + { + Aws::Utils::Array controlOperationsJsonList = jsonValue.GetArray("controlOperations"); + for(unsigned controlOperationsIndex = 0; controlOperationsIndex < controlOperationsJsonList.GetLength(); ++controlOperationsIndex) + { + m_controlOperations.push_back(controlOperationsJsonList[controlOperationsIndex].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-controltower/source/model/ListEnabledControlsRequest.cpp b/generated/src/aws-cpp-sdk-controltower/source/model/ListEnabledControlsRequest.cpp index 791069bdf8d..4ebb1a7f2f4 100644 --- a/generated/src/aws-cpp-sdk-controltower/source/model/ListEnabledControlsRequest.cpp +++ b/generated/src/aws-cpp-sdk-controltower/source/model/ListEnabledControlsRequest.cpp @@ -13,6 +13,7 @@ using namespace Aws::Utils::Json; using namespace Aws::Utils; ListEnabledControlsRequest::ListEnabledControlsRequest() : + m_filterHasBeenSet(false), m_maxResults(0), m_maxResultsHasBeenSet(false), m_nextTokenHasBeenSet(false), @@ -24,6 +25,12 @@ Aws::String ListEnabledControlsRequest::SerializePayload() const { JsonValue payload; + if(m_filterHasBeenSet) + { + payload.WithObject("filter", m_filter.Jsonize()); + + } + if(m_maxResultsHasBeenSet) { payload.WithInteger("maxResults", m_maxResults); diff --git a/generated/src/aws-cpp-sdk-osis/include/aws/osis/OSISErrors.h b/generated/src/aws-cpp-sdk-osis/include/aws/osis/OSISErrors.h index db8d658dbd6..d36358cd709 100644 --- a/generated/src/aws-cpp-sdk-osis/include/aws/osis/OSISErrors.h +++ b/generated/src/aws-cpp-sdk-osis/include/aws/osis/OSISErrors.h @@ -48,6 +48,7 @@ enum class OSISErrors /////////////////////////////////////////////////////////////////////////////////////////// CONFLICT= static_cast(Aws::Client::CoreErrors::SERVICE_EXTENSION_START_RANGE) + 1, + DISABLED_OPERATION, INTERNAL, INVALID_PAGINATION_TOKEN, LIMIT_EXCEEDED, diff --git a/generated/src/aws-cpp-sdk-osis/include/aws/osis/model/BufferOptions.h b/generated/src/aws-cpp-sdk-osis/include/aws/osis/model/BufferOptions.h index 02b20a39596..50908a339f0 100644 --- a/generated/src/aws-cpp-sdk-osis/include/aws/osis/model/BufferOptions.h +++ b/generated/src/aws-cpp-sdk-osis/include/aws/osis/model/BufferOptions.h @@ -24,7 +24,9 @@ namespace Model /** *

      Options that specify the configuration of a persistent buffer. To configure * how OpenSearch Ingestion encrypts this data, set the - * EncryptionAtRestOptions.

      See Also:

      EncryptionAtRestOptions. For more information, see Persistent + * buffering.

      See Also:

      AWS * API Reference

      */ diff --git a/generated/src/aws-cpp-sdk-osis/include/aws/osis/model/CloudWatchLogDestination.h b/generated/src/aws-cpp-sdk-osis/include/aws/osis/model/CloudWatchLogDestination.h index a6a97404fb1..ffcedab3c5f 100644 --- a/generated/src/aws-cpp-sdk-osis/include/aws/osis/model/CloudWatchLogDestination.h +++ b/generated/src/aws-cpp-sdk-osis/include/aws/osis/model/CloudWatchLogDestination.h @@ -41,56 +41,56 @@ namespace Model /** *

      The name of the CloudWatch Logs group to send pipeline logs to. You can * specify an existing log group or create a new one. For example, - * /aws/OpenSearchService/IngestionService/my-pipeline.

      + * /aws/vendedlogs/OpenSearchService/pipelines.

      */ inline const Aws::String& GetLogGroup() const{ return m_logGroup; } /** *

      The name of the CloudWatch Logs group to send pipeline logs to. You can * specify an existing log group or create a new one. For example, - * /aws/OpenSearchService/IngestionService/my-pipeline.

      + * /aws/vendedlogs/OpenSearchService/pipelines.

      */ inline bool LogGroupHasBeenSet() const { return m_logGroupHasBeenSet; } /** *

      The name of the CloudWatch Logs group to send pipeline logs to. You can * specify an existing log group or create a new one. For example, - * /aws/OpenSearchService/IngestionService/my-pipeline.

      + * /aws/vendedlogs/OpenSearchService/pipelines.

      */ inline void SetLogGroup(const Aws::String& value) { m_logGroupHasBeenSet = true; m_logGroup = value; } /** *

      The name of the CloudWatch Logs group to send pipeline logs to. You can * specify an existing log group or create a new one. For example, - * /aws/OpenSearchService/IngestionService/my-pipeline.

      + * /aws/vendedlogs/OpenSearchService/pipelines.

      */ inline void SetLogGroup(Aws::String&& value) { m_logGroupHasBeenSet = true; m_logGroup = std::move(value); } /** *

      The name of the CloudWatch Logs group to send pipeline logs to. You can * specify an existing log group or create a new one. For example, - * /aws/OpenSearchService/IngestionService/my-pipeline.

      + * /aws/vendedlogs/OpenSearchService/pipelines.

      */ inline void SetLogGroup(const char* value) { m_logGroupHasBeenSet = true; m_logGroup.assign(value); } /** *

      The name of the CloudWatch Logs group to send pipeline logs to. You can * specify an existing log group or create a new one. For example, - * /aws/OpenSearchService/IngestionService/my-pipeline.

      + * /aws/vendedlogs/OpenSearchService/pipelines.

      */ inline CloudWatchLogDestination& WithLogGroup(const Aws::String& value) { SetLogGroup(value); return *this;} /** *

      The name of the CloudWatch Logs group to send pipeline logs to. You can * specify an existing log group or create a new one. For example, - * /aws/OpenSearchService/IngestionService/my-pipeline.

      + * /aws/vendedlogs/OpenSearchService/pipelines.

      */ inline CloudWatchLogDestination& WithLogGroup(Aws::String&& value) { SetLogGroup(std::move(value)); return *this;} /** *

      The name of the CloudWatch Logs group to send pipeline logs to. You can * specify an existing log group or create a new one. For example, - * /aws/OpenSearchService/IngestionService/my-pipeline.

      + * /aws/vendedlogs/OpenSearchService/pipelines.

      */ inline CloudWatchLogDestination& WithLogGroup(const char* value) { SetLogGroup(value); return *this;} diff --git a/generated/src/aws-cpp-sdk-osis/include/aws/osis/model/EncryptionAtRestOptions.h b/generated/src/aws-cpp-sdk-osis/include/aws/osis/model/EncryptionAtRestOptions.h index 8dbc8a7da3d..4f6fbdb1641 100644 --- a/generated/src/aws-cpp-sdk-osis/include/aws/osis/model/EncryptionAtRestOptions.h +++ b/generated/src/aws-cpp-sdk-osis/include/aws/osis/model/EncryptionAtRestOptions.h @@ -24,7 +24,7 @@ namespace Model { /** - *

      Options to control how OpenSearch encrypts all data-at-rest.

      See + *

      Options to control how OpenSearch encrypts buffer data.

      See * Also:

      AWS * API Reference

      @@ -39,50 +39,50 @@ namespace Model /** - *

      The ARN of the KMS key used to encrypt data-at-rest in OpenSearch Ingestion. - * By default, data is encrypted using an AWS owned key.

      + *

      The ARN of the KMS key used to encrypt buffer data. By default, data is + * encrypted using an Amazon Web Services owned key.

      */ inline const Aws::String& GetKmsKeyArn() const{ return m_kmsKeyArn; } /** - *

      The ARN of the KMS key used to encrypt data-at-rest in OpenSearch Ingestion. - * By default, data is encrypted using an AWS owned key.

      + *

      The ARN of the KMS key used to encrypt buffer data. By default, data is + * encrypted using an Amazon Web Services owned key.

      */ inline bool KmsKeyArnHasBeenSet() const { return m_kmsKeyArnHasBeenSet; } /** - *

      The ARN of the KMS key used to encrypt data-at-rest in OpenSearch Ingestion. - * By default, data is encrypted using an AWS owned key.

      + *

      The ARN of the KMS key used to encrypt buffer data. By default, data is + * encrypted using an Amazon Web Services owned key.

      */ inline void SetKmsKeyArn(const Aws::String& value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn = value; } /** - *

      The ARN of the KMS key used to encrypt data-at-rest in OpenSearch Ingestion. - * By default, data is encrypted using an AWS owned key.

      + *

      The ARN of the KMS key used to encrypt buffer data. By default, data is + * encrypted using an Amazon Web Services owned key.

      */ inline void SetKmsKeyArn(Aws::String&& value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn = std::move(value); } /** - *

      The ARN of the KMS key used to encrypt data-at-rest in OpenSearch Ingestion. - * By default, data is encrypted using an AWS owned key.

      + *

      The ARN of the KMS key used to encrypt buffer data. By default, data is + * encrypted using an Amazon Web Services owned key.

      */ inline void SetKmsKeyArn(const char* value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn.assign(value); } /** - *

      The ARN of the KMS key used to encrypt data-at-rest in OpenSearch Ingestion. - * By default, data is encrypted using an AWS owned key.

      + *

      The ARN of the KMS key used to encrypt buffer data. By default, data is + * encrypted using an Amazon Web Services owned key.

      */ inline EncryptionAtRestOptions& WithKmsKeyArn(const Aws::String& value) { SetKmsKeyArn(value); return *this;} /** - *

      The ARN of the KMS key used to encrypt data-at-rest in OpenSearch Ingestion. - * By default, data is encrypted using an AWS owned key.

      + *

      The ARN of the KMS key used to encrypt buffer data. By default, data is + * encrypted using an Amazon Web Services owned key.

      */ inline EncryptionAtRestOptions& WithKmsKeyArn(Aws::String&& value) { SetKmsKeyArn(std::move(value)); return *this;} /** - *

      The ARN of the KMS key used to encrypt data-at-rest in OpenSearch Ingestion. - * By default, data is encrypted using an AWS owned key.

      + *

      The ARN of the KMS key used to encrypt buffer data. By default, data is + * encrypted using an Amazon Web Services owned key.

      */ inline EncryptionAtRestOptions& WithKmsKeyArn(const char* value) { SetKmsKeyArn(value); return *this;} diff --git a/generated/src/aws-cpp-sdk-osis/include/aws/osis/model/GetPipelineBlueprintRequest.h b/generated/src/aws-cpp-sdk-osis/include/aws/osis/model/GetPipelineBlueprintRequest.h index 96ea6842dae..119f09603b7 100644 --- a/generated/src/aws-cpp-sdk-osis/include/aws/osis/model/GetPipelineBlueprintRequest.h +++ b/generated/src/aws-cpp-sdk-osis/include/aws/osis/model/GetPipelineBlueprintRequest.h @@ -11,6 +11,10 @@ namespace Aws { +namespace Http +{ + class URI; +} //namespace Http namespace OSIS { namespace Model @@ -31,6 +35,8 @@ namespace Model AWS_OSIS_API Aws::String SerializePayload() const override; + AWS_OSIS_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; + /** *

      The name of the blueprint to retrieve.

      @@ -72,10 +78,54 @@ namespace Model */ inline GetPipelineBlueprintRequest& WithBlueprintName(const char* value) { SetBlueprintName(value); return *this;} + + /** + *

      The format format of the blueprint to retrieve.

      + */ + inline const Aws::String& GetFormat() const{ return m_format; } + + /** + *

      The format format of the blueprint to retrieve.

      + */ + inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; } + + /** + *

      The format format of the blueprint to retrieve.

      + */ + inline void SetFormat(const Aws::String& value) { m_formatHasBeenSet = true; m_format = value; } + + /** + *

      The format format of the blueprint to retrieve.

      + */ + inline void SetFormat(Aws::String&& value) { m_formatHasBeenSet = true; m_format = std::move(value); } + + /** + *

      The format format of the blueprint to retrieve.

      + */ + inline void SetFormat(const char* value) { m_formatHasBeenSet = true; m_format.assign(value); } + + /** + *

      The format format of the blueprint to retrieve.

      + */ + inline GetPipelineBlueprintRequest& WithFormat(const Aws::String& value) { SetFormat(value); return *this;} + + /** + *

      The format format of the blueprint to retrieve.

      + */ + inline GetPipelineBlueprintRequest& WithFormat(Aws::String&& value) { SetFormat(std::move(value)); return *this;} + + /** + *

      The format format of the blueprint to retrieve.

      + */ + inline GetPipelineBlueprintRequest& WithFormat(const char* value) { SetFormat(value); return *this;} + private: Aws::String m_blueprintName; bool m_blueprintNameHasBeenSet = false; + + Aws::String m_format; + bool m_formatHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-osis/include/aws/osis/model/GetPipelineBlueprintResult.h b/generated/src/aws-cpp-sdk-osis/include/aws/osis/model/GetPipelineBlueprintResult.h index cdda2a1ba18..c2fef7f17a5 100644 --- a/generated/src/aws-cpp-sdk-osis/include/aws/osis/model/GetPipelineBlueprintResult.h +++ b/generated/src/aws-cpp-sdk-osis/include/aws/osis/model/GetPipelineBlueprintResult.h @@ -59,6 +59,42 @@ namespace Model inline GetPipelineBlueprintResult& WithBlueprint(PipelineBlueprint&& value) { SetBlueprint(std::move(value)); return *this;} + /** + *

      The format of the blueprint.

      + */ + inline const Aws::String& GetFormat() const{ return m_format; } + + /** + *

      The format of the blueprint.

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

      The format of the blueprint.

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

      The format of the blueprint.

      + */ + inline void SetFormat(const char* value) { m_format.assign(value); } + + /** + *

      The format of the blueprint.

      + */ + inline GetPipelineBlueprintResult& WithFormat(const Aws::String& value) { SetFormat(value); return *this;} + + /** + *

      The format of the blueprint.

      + */ + inline GetPipelineBlueprintResult& WithFormat(Aws::String&& value) { SetFormat(std::move(value)); return *this;} + + /** + *

      The format of the blueprint.

      + */ + inline GetPipelineBlueprintResult& WithFormat(const char* value) { SetFormat(value); return *this;} + + inline const Aws::String& GetRequestId() const{ return m_requestId; } @@ -84,6 +120,8 @@ namespace Model PipelineBlueprint m_blueprint; + Aws::String m_format; + Aws::String m_requestId; }; diff --git a/generated/src/aws-cpp-sdk-osis/include/aws/osis/model/GetPipelineRequest.h b/generated/src/aws-cpp-sdk-osis/include/aws/osis/model/GetPipelineRequest.h index 8d80502eceb..fce1b194676 100644 --- a/generated/src/aws-cpp-sdk-osis/include/aws/osis/model/GetPipelineRequest.h +++ b/generated/src/aws-cpp-sdk-osis/include/aws/osis/model/GetPipelineRequest.h @@ -33,42 +33,42 @@ namespace Model /** - *

      The name of the pipeline to get information about.

      + *

      The name of the pipeline.

      */ inline const Aws::String& GetPipelineName() const{ return m_pipelineName; } /** - *

      The name of the pipeline to get information about.

      + *

      The name of the pipeline.

      */ inline bool PipelineNameHasBeenSet() const { return m_pipelineNameHasBeenSet; } /** - *

      The name of the pipeline to get information about.

      + *

      The name of the pipeline.

      */ inline void SetPipelineName(const Aws::String& value) { m_pipelineNameHasBeenSet = true; m_pipelineName = value; } /** - *

      The name of the pipeline to get information about.

      + *

      The name of the pipeline.

      */ inline void SetPipelineName(Aws::String&& value) { m_pipelineNameHasBeenSet = true; m_pipelineName = std::move(value); } /** - *

      The name of the pipeline to get information about.

      + *

      The name of the pipeline.

      */ inline void SetPipelineName(const char* value) { m_pipelineNameHasBeenSet = true; m_pipelineName.assign(value); } /** - *

      The name of the pipeline to get information about.

      + *

      The name of the pipeline.

      */ inline GetPipelineRequest& WithPipelineName(const Aws::String& value) { SetPipelineName(value); return *this;} /** - *

      The name of the pipeline to get information about.

      + *

      The name of the pipeline.

      */ inline GetPipelineRequest& WithPipelineName(Aws::String&& value) { SetPipelineName(std::move(value)); return *this;} /** - *

      The name of the pipeline to get information about.

      + *

      The name of the pipeline.

      */ inline GetPipelineRequest& WithPipelineName(const char* value) { SetPipelineName(value); return *this;} diff --git a/generated/src/aws-cpp-sdk-osis/include/aws/osis/model/Pipeline.h b/generated/src/aws-cpp-sdk-osis/include/aws/osis/model/Pipeline.h index 2605699bca7..898b11a8689 100644 --- a/generated/src/aws-cpp-sdk-osis/include/aws/osis/model/Pipeline.h +++ b/generated/src/aws-cpp-sdk-osis/include/aws/osis/model/Pipeline.h @@ -15,6 +15,7 @@ #include #include #include +#include #include #include @@ -494,54 +495,95 @@ namespace Model /** - *

      A list of VPC endpoints that OpenSearch Ingestion has created to other AWS - * services.

      + *

      A list of VPC endpoints that OpenSearch Ingestion has created to other Amazon + * Web Services services.

      */ inline const Aws::Vector& GetServiceVpcEndpoints() const{ return m_serviceVpcEndpoints; } /** - *

      A list of VPC endpoints that OpenSearch Ingestion has created to other AWS - * services.

      + *

      A list of VPC endpoints that OpenSearch Ingestion has created to other Amazon + * Web Services services.

      */ inline bool ServiceVpcEndpointsHasBeenSet() const { return m_serviceVpcEndpointsHasBeenSet; } /** - *

      A list of VPC endpoints that OpenSearch Ingestion has created to other AWS - * services.

      + *

      A list of VPC endpoints that OpenSearch Ingestion has created to other Amazon + * Web Services services.

      */ inline void SetServiceVpcEndpoints(const Aws::Vector& value) { m_serviceVpcEndpointsHasBeenSet = true; m_serviceVpcEndpoints = value; } /** - *

      A list of VPC endpoints that OpenSearch Ingestion has created to other AWS - * services.

      + *

      A list of VPC endpoints that OpenSearch Ingestion has created to other Amazon + * Web Services services.

      */ inline void SetServiceVpcEndpoints(Aws::Vector&& value) { m_serviceVpcEndpointsHasBeenSet = true; m_serviceVpcEndpoints = std::move(value); } /** - *

      A list of VPC endpoints that OpenSearch Ingestion has created to other AWS - * services.

      + *

      A list of VPC endpoints that OpenSearch Ingestion has created to other Amazon + * Web Services services.

      */ inline Pipeline& WithServiceVpcEndpoints(const Aws::Vector& value) { SetServiceVpcEndpoints(value); return *this;} /** - *

      A list of VPC endpoints that OpenSearch Ingestion has created to other AWS - * services.

      + *

      A list of VPC endpoints that OpenSearch Ingestion has created to other Amazon + * Web Services services.

      */ inline Pipeline& WithServiceVpcEndpoints(Aws::Vector&& value) { SetServiceVpcEndpoints(std::move(value)); return *this;} /** - *

      A list of VPC endpoints that OpenSearch Ingestion has created to other AWS - * services.

      + *

      A list of VPC endpoints that OpenSearch Ingestion has created to other Amazon + * Web Services services.

      */ inline Pipeline& AddServiceVpcEndpoints(const ServiceVpcEndpoint& value) { m_serviceVpcEndpointsHasBeenSet = true; m_serviceVpcEndpoints.push_back(value); return *this; } /** - *

      A list of VPC endpoints that OpenSearch Ingestion has created to other AWS - * services.

      + *

      A list of VPC endpoints that OpenSearch Ingestion has created to other Amazon + * Web Services services.

      */ inline Pipeline& AddServiceVpcEndpoints(ServiceVpcEndpoint&& value) { m_serviceVpcEndpointsHasBeenSet = true; m_serviceVpcEndpoints.push_back(std::move(value)); return *this; } + /** + *

      Destinations to which the pipeline writes data.

      + */ + inline const Aws::Vector& GetDestinations() const{ return m_destinations; } + + /** + *

      Destinations to which the pipeline writes data.

      + */ + inline bool DestinationsHasBeenSet() const { return m_destinationsHasBeenSet; } + + /** + *

      Destinations to which the pipeline writes data.

      + */ + inline void SetDestinations(const Aws::Vector& value) { m_destinationsHasBeenSet = true; m_destinations = value; } + + /** + *

      Destinations to which the pipeline writes data.

      + */ + inline void SetDestinations(Aws::Vector&& value) { m_destinationsHasBeenSet = true; m_destinations = std::move(value); } + + /** + *

      Destinations to which the pipeline writes data.

      + */ + inline Pipeline& WithDestinations(const Aws::Vector& value) { SetDestinations(value); return *this;} + + /** + *

      Destinations to which the pipeline writes data.

      + */ + inline Pipeline& WithDestinations(Aws::Vector&& value) { SetDestinations(std::move(value)); return *this;} + + /** + *

      Destinations to which the pipeline writes data.

      + */ + inline Pipeline& AddDestinations(const PipelineDestination& value) { m_destinationsHasBeenSet = true; m_destinations.push_back(value); return *this; } + + /** + *

      Destinations to which the pipeline writes data.

      + */ + inline Pipeline& AddDestinations(PipelineDestination&& value) { m_destinationsHasBeenSet = true; m_destinations.push_back(std::move(value)); return *this; } + + /** *

      A list of tags associated with the given pipeline.

      */ @@ -629,6 +671,9 @@ namespace Model Aws::Vector m_serviceVpcEndpoints; bool m_serviceVpcEndpointsHasBeenSet = false; + Aws::Vector m_destinations; + bool m_destinationsHasBeenSet = false; + Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; diff --git a/generated/src/aws-cpp-sdk-osis/include/aws/osis/model/PipelineBlueprint.h b/generated/src/aws-cpp-sdk-osis/include/aws/osis/model/PipelineBlueprint.h index 8d60c05bea1..bd247155e7a 100644 --- a/generated/src/aws-cpp-sdk-osis/include/aws/osis/model/PipelineBlueprint.h +++ b/generated/src/aws-cpp-sdk-osis/include/aws/osis/model/PipelineBlueprint.h @@ -119,6 +119,170 @@ namespace Model */ inline PipelineBlueprint& WithPipelineConfigurationBody(const char* value) { SetPipelineConfigurationBody(value); return *this;} + + /** + *

      The display name of the blueprint.

      + */ + inline const Aws::String& GetDisplayName() const{ return m_displayName; } + + /** + *

      The display name of the blueprint.

      + */ + inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; } + + /** + *

      The display name of the blueprint.

      + */ + inline void SetDisplayName(const Aws::String& value) { m_displayNameHasBeenSet = true; m_displayName = value; } + + /** + *

      The display name of the blueprint.

      + */ + inline void SetDisplayName(Aws::String&& value) { m_displayNameHasBeenSet = true; m_displayName = std::move(value); } + + /** + *

      The display name of the blueprint.

      + */ + inline void SetDisplayName(const char* value) { m_displayNameHasBeenSet = true; m_displayName.assign(value); } + + /** + *

      The display name of the blueprint.

      + */ + inline PipelineBlueprint& WithDisplayName(const Aws::String& value) { SetDisplayName(value); return *this;} + + /** + *

      The display name of the blueprint.

      + */ + inline PipelineBlueprint& WithDisplayName(Aws::String&& value) { SetDisplayName(std::move(value)); return *this;} + + /** + *

      The display name of the blueprint.

      + */ + inline PipelineBlueprint& WithDisplayName(const char* value) { SetDisplayName(value); return *this;} + + + /** + *

      A description of the blueprint.

      + */ + inline const Aws::String& GetDisplayDescription() const{ return m_displayDescription; } + + /** + *

      A description of the blueprint.

      + */ + inline bool DisplayDescriptionHasBeenSet() const { return m_displayDescriptionHasBeenSet; } + + /** + *

      A description of the blueprint.

      + */ + inline void SetDisplayDescription(const Aws::String& value) { m_displayDescriptionHasBeenSet = true; m_displayDescription = value; } + + /** + *

      A description of the blueprint.

      + */ + inline void SetDisplayDescription(Aws::String&& value) { m_displayDescriptionHasBeenSet = true; m_displayDescription = std::move(value); } + + /** + *

      A description of the blueprint.

      + */ + inline void SetDisplayDescription(const char* value) { m_displayDescriptionHasBeenSet = true; m_displayDescription.assign(value); } + + /** + *

      A description of the blueprint.

      + */ + inline PipelineBlueprint& WithDisplayDescription(const Aws::String& value) { SetDisplayDescription(value); return *this;} + + /** + *

      A description of the blueprint.

      + */ + inline PipelineBlueprint& WithDisplayDescription(Aws::String&& value) { SetDisplayDescription(std::move(value)); return *this;} + + /** + *

      A description of the blueprint.

      + */ + inline PipelineBlueprint& WithDisplayDescription(const char* value) { SetDisplayDescription(value); return *this;} + + + /** + *

      The name of the service that the blueprint is associated with.

      + */ + inline const Aws::String& GetService() const{ return m_service; } + + /** + *

      The name of the service that the blueprint is associated with.

      + */ + inline bool ServiceHasBeenSet() const { return m_serviceHasBeenSet; } + + /** + *

      The name of the service that the blueprint is associated with.

      + */ + inline void SetService(const Aws::String& value) { m_serviceHasBeenSet = true; m_service = value; } + + /** + *

      The name of the service that the blueprint is associated with.

      + */ + inline void SetService(Aws::String&& value) { m_serviceHasBeenSet = true; m_service = std::move(value); } + + /** + *

      The name of the service that the blueprint is associated with.

      + */ + inline void SetService(const char* value) { m_serviceHasBeenSet = true; m_service.assign(value); } + + /** + *

      The name of the service that the blueprint is associated with.

      + */ + inline PipelineBlueprint& WithService(const Aws::String& value) { SetService(value); return *this;} + + /** + *

      The name of the service that the blueprint is associated with.

      + */ + inline PipelineBlueprint& WithService(Aws::String&& value) { SetService(std::move(value)); return *this;} + + /** + *

      The name of the service that the blueprint is associated with.

      + */ + inline PipelineBlueprint& WithService(const char* value) { SetService(value); return *this;} + + + /** + *

      The use case that the blueprint relates to.

      + */ + inline const Aws::String& GetUseCase() const{ return m_useCase; } + + /** + *

      The use case that the blueprint relates to.

      + */ + inline bool UseCaseHasBeenSet() const { return m_useCaseHasBeenSet; } + + /** + *

      The use case that the blueprint relates to.

      + */ + inline void SetUseCase(const Aws::String& value) { m_useCaseHasBeenSet = true; m_useCase = value; } + + /** + *

      The use case that the blueprint relates to.

      + */ + inline void SetUseCase(Aws::String&& value) { m_useCaseHasBeenSet = true; m_useCase = std::move(value); } + + /** + *

      The use case that the blueprint relates to.

      + */ + inline void SetUseCase(const char* value) { m_useCaseHasBeenSet = true; m_useCase.assign(value); } + + /** + *

      The use case that the blueprint relates to.

      + */ + inline PipelineBlueprint& WithUseCase(const Aws::String& value) { SetUseCase(value); return *this;} + + /** + *

      The use case that the blueprint relates to.

      + */ + inline PipelineBlueprint& WithUseCase(Aws::String&& value) { SetUseCase(std::move(value)); return *this;} + + /** + *

      The use case that the blueprint relates to.

      + */ + inline PipelineBlueprint& WithUseCase(const char* value) { SetUseCase(value); return *this;} + private: Aws::String m_blueprintName; @@ -126,6 +290,18 @@ namespace Model Aws::String m_pipelineConfigurationBody; bool m_pipelineConfigurationBodyHasBeenSet = false; + + Aws::String m_displayName; + bool m_displayNameHasBeenSet = false; + + Aws::String m_displayDescription; + bool m_displayDescriptionHasBeenSet = false; + + Aws::String m_service; + bool m_serviceHasBeenSet = false; + + Aws::String m_useCase; + bool m_useCaseHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-osis/include/aws/osis/model/PipelineBlueprintSummary.h b/generated/src/aws-cpp-sdk-osis/include/aws/osis/model/PipelineBlueprintSummary.h index d7d4c25cd59..bc4cd0e9480 100644 --- a/generated/src/aws-cpp-sdk-osis/include/aws/osis/model/PipelineBlueprintSummary.h +++ b/generated/src/aws-cpp-sdk-osis/include/aws/osis/model/PipelineBlueprintSummary.h @@ -77,10 +77,186 @@ namespace Model */ inline PipelineBlueprintSummary& WithBlueprintName(const char* value) { SetBlueprintName(value); return *this;} + + /** + *

      The display name of the blueprint.

      + */ + inline const Aws::String& GetDisplayName() const{ return m_displayName; } + + /** + *

      The display name of the blueprint.

      + */ + inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; } + + /** + *

      The display name of the blueprint.

      + */ + inline void SetDisplayName(const Aws::String& value) { m_displayNameHasBeenSet = true; m_displayName = value; } + + /** + *

      The display name of the blueprint.

      + */ + inline void SetDisplayName(Aws::String&& value) { m_displayNameHasBeenSet = true; m_displayName = std::move(value); } + + /** + *

      The display name of the blueprint.

      + */ + inline void SetDisplayName(const char* value) { m_displayNameHasBeenSet = true; m_displayName.assign(value); } + + /** + *

      The display name of the blueprint.

      + */ + inline PipelineBlueprintSummary& WithDisplayName(const Aws::String& value) { SetDisplayName(value); return *this;} + + /** + *

      The display name of the blueprint.

      + */ + inline PipelineBlueprintSummary& WithDisplayName(Aws::String&& value) { SetDisplayName(std::move(value)); return *this;} + + /** + *

      The display name of the blueprint.

      + */ + inline PipelineBlueprintSummary& WithDisplayName(const char* value) { SetDisplayName(value); return *this;} + + + /** + *

      A description of the blueprint.

      + */ + inline const Aws::String& GetDisplayDescription() const{ return m_displayDescription; } + + /** + *

      A description of the blueprint.

      + */ + inline bool DisplayDescriptionHasBeenSet() const { return m_displayDescriptionHasBeenSet; } + + /** + *

      A description of the blueprint.

      + */ + inline void SetDisplayDescription(const Aws::String& value) { m_displayDescriptionHasBeenSet = true; m_displayDescription = value; } + + /** + *

      A description of the blueprint.

      + */ + inline void SetDisplayDescription(Aws::String&& value) { m_displayDescriptionHasBeenSet = true; m_displayDescription = std::move(value); } + + /** + *

      A description of the blueprint.

      + */ + inline void SetDisplayDescription(const char* value) { m_displayDescriptionHasBeenSet = true; m_displayDescription.assign(value); } + + /** + *

      A description of the blueprint.

      + */ + inline PipelineBlueprintSummary& WithDisplayDescription(const Aws::String& value) { SetDisplayDescription(value); return *this;} + + /** + *

      A description of the blueprint.

      + */ + inline PipelineBlueprintSummary& WithDisplayDescription(Aws::String&& value) { SetDisplayDescription(std::move(value)); return *this;} + + /** + *

      A description of the blueprint.

      + */ + inline PipelineBlueprintSummary& WithDisplayDescription(const char* value) { SetDisplayDescription(value); return *this;} + + + /** + *

      The name of the service that the blueprint is associated with.

      + */ + inline const Aws::String& GetService() const{ return m_service; } + + /** + *

      The name of the service that the blueprint is associated with.

      + */ + inline bool ServiceHasBeenSet() const { return m_serviceHasBeenSet; } + + /** + *

      The name of the service that the blueprint is associated with.

      + */ + inline void SetService(const Aws::String& value) { m_serviceHasBeenSet = true; m_service = value; } + + /** + *

      The name of the service that the blueprint is associated with.

      + */ + inline void SetService(Aws::String&& value) { m_serviceHasBeenSet = true; m_service = std::move(value); } + + /** + *

      The name of the service that the blueprint is associated with.

      + */ + inline void SetService(const char* value) { m_serviceHasBeenSet = true; m_service.assign(value); } + + /** + *

      The name of the service that the blueprint is associated with.

      + */ + inline PipelineBlueprintSummary& WithService(const Aws::String& value) { SetService(value); return *this;} + + /** + *

      The name of the service that the blueprint is associated with.

      + */ + inline PipelineBlueprintSummary& WithService(Aws::String&& value) { SetService(std::move(value)); return *this;} + + /** + *

      The name of the service that the blueprint is associated with.

      + */ + inline PipelineBlueprintSummary& WithService(const char* value) { SetService(value); return *this;} + + + /** + *

      The use case that the blueprint relates to.

      + */ + inline const Aws::String& GetUseCase() const{ return m_useCase; } + + /** + *

      The use case that the blueprint relates to.

      + */ + inline bool UseCaseHasBeenSet() const { return m_useCaseHasBeenSet; } + + /** + *

      The use case that the blueprint relates to.

      + */ + inline void SetUseCase(const Aws::String& value) { m_useCaseHasBeenSet = true; m_useCase = value; } + + /** + *

      The use case that the blueprint relates to.

      + */ + inline void SetUseCase(Aws::String&& value) { m_useCaseHasBeenSet = true; m_useCase = std::move(value); } + + /** + *

      The use case that the blueprint relates to.

      + */ + inline void SetUseCase(const char* value) { m_useCaseHasBeenSet = true; m_useCase.assign(value); } + + /** + *

      The use case that the blueprint relates to.

      + */ + inline PipelineBlueprintSummary& WithUseCase(const Aws::String& value) { SetUseCase(value); return *this;} + + /** + *

      The use case that the blueprint relates to.

      + */ + inline PipelineBlueprintSummary& WithUseCase(Aws::String&& value) { SetUseCase(std::move(value)); return *this;} + + /** + *

      The use case that the blueprint relates to.

      + */ + inline PipelineBlueprintSummary& WithUseCase(const char* value) { SetUseCase(value); return *this;} + private: Aws::String m_blueprintName; bool m_blueprintNameHasBeenSet = false; + + Aws::String m_displayName; + bool m_displayNameHasBeenSet = false; + + Aws::String m_displayDescription; + bool m_displayDescriptionHasBeenSet = false; + + Aws::String m_service; + bool m_serviceHasBeenSet = false; + + Aws::String m_useCase; + bool m_useCaseHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-osis/include/aws/osis/model/PipelineDestination.h b/generated/src/aws-cpp-sdk-osis/include/aws/osis/model/PipelineDestination.h new file mode 100644 index 00000000000..9a71b7b7295 --- /dev/null +++ b/generated/src/aws-cpp-sdk-osis/include/aws/osis/model/PipelineDestination.h @@ -0,0 +1,133 @@ +/** + * 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 OSIS +{ +namespace Model +{ + + /** + *

      An object representing the destination of a pipeline.

      See + * Also:

      AWS + * API Reference

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

      The name of the service receiving data from the pipeline.

      + */ + inline const Aws::String& GetServiceName() const{ return m_serviceName; } + + /** + *

      The name of the service receiving data from the pipeline.

      + */ + inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; } + + /** + *

      The name of the service receiving data from the pipeline.

      + */ + inline void SetServiceName(const Aws::String& value) { m_serviceNameHasBeenSet = true; m_serviceName = value; } + + /** + *

      The name of the service receiving data from the pipeline.

      + */ + inline void SetServiceName(Aws::String&& value) { m_serviceNameHasBeenSet = true; m_serviceName = std::move(value); } + + /** + *

      The name of the service receiving data from the pipeline.

      + */ + inline void SetServiceName(const char* value) { m_serviceNameHasBeenSet = true; m_serviceName.assign(value); } + + /** + *

      The name of the service receiving data from the pipeline.

      + */ + inline PipelineDestination& WithServiceName(const Aws::String& value) { SetServiceName(value); return *this;} + + /** + *

      The name of the service receiving data from the pipeline.

      + */ + inline PipelineDestination& WithServiceName(Aws::String&& value) { SetServiceName(std::move(value)); return *this;} + + /** + *

      The name of the service receiving data from the pipeline.

      + */ + inline PipelineDestination& WithServiceName(const char* value) { SetServiceName(value); return *this;} + + + /** + *

      The endpoint receiving data from the pipeline.

      + */ + inline const Aws::String& GetEndpoint() const{ return m_endpoint; } + + /** + *

      The endpoint receiving data from the pipeline.

      + */ + inline bool EndpointHasBeenSet() const { return m_endpointHasBeenSet; } + + /** + *

      The endpoint receiving data from the pipeline.

      + */ + inline void SetEndpoint(const Aws::String& value) { m_endpointHasBeenSet = true; m_endpoint = value; } + + /** + *

      The endpoint receiving data from the pipeline.

      + */ + inline void SetEndpoint(Aws::String&& value) { m_endpointHasBeenSet = true; m_endpoint = std::move(value); } + + /** + *

      The endpoint receiving data from the pipeline.

      + */ + inline void SetEndpoint(const char* value) { m_endpointHasBeenSet = true; m_endpoint.assign(value); } + + /** + *

      The endpoint receiving data from the pipeline.

      + */ + inline PipelineDestination& WithEndpoint(const Aws::String& value) { SetEndpoint(value); return *this;} + + /** + *

      The endpoint receiving data from the pipeline.

      + */ + inline PipelineDestination& WithEndpoint(Aws::String&& value) { SetEndpoint(std::move(value)); return *this;} + + /** + *

      The endpoint receiving data from the pipeline.

      + */ + inline PipelineDestination& WithEndpoint(const char* value) { SetEndpoint(value); return *this;} + + private: + + Aws::String m_serviceName; + bool m_serviceNameHasBeenSet = false; + + Aws::String m_endpoint; + bool m_endpointHasBeenSet = false; + }; + +} // namespace Model +} // namespace OSIS +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-osis/include/aws/osis/model/PipelineSummary.h b/generated/src/aws-cpp-sdk-osis/include/aws/osis/model/PipelineSummary.h index d667f4996c4..462b304b68d 100644 --- a/generated/src/aws-cpp-sdk-osis/include/aws/osis/model/PipelineSummary.h +++ b/generated/src/aws-cpp-sdk-osis/include/aws/osis/model/PipelineSummary.h @@ -10,6 +10,7 @@ #include #include #include +#include #include #include @@ -279,6 +280,47 @@ namespace Model inline PipelineSummary& WithLastUpdatedAt(Aws::Utils::DateTime&& value) { SetLastUpdatedAt(std::move(value)); return *this;} + /** + *

      A list of destinations to which the pipeline writes data.

      + */ + inline const Aws::Vector& GetDestinations() const{ return m_destinations; } + + /** + *

      A list of destinations to which the pipeline writes data.

      + */ + inline bool DestinationsHasBeenSet() const { return m_destinationsHasBeenSet; } + + /** + *

      A list of destinations to which the pipeline writes data.

      + */ + inline void SetDestinations(const Aws::Vector& value) { m_destinationsHasBeenSet = true; m_destinations = value; } + + /** + *

      A list of destinations to which the pipeline writes data.

      + */ + inline void SetDestinations(Aws::Vector&& value) { m_destinationsHasBeenSet = true; m_destinations = std::move(value); } + + /** + *

      A list of destinations to which the pipeline writes data.

      + */ + inline PipelineSummary& WithDestinations(const Aws::Vector& value) { SetDestinations(value); return *this;} + + /** + *

      A list of destinations to which the pipeline writes data.

      + */ + inline PipelineSummary& WithDestinations(Aws::Vector&& value) { SetDestinations(std::move(value)); return *this;} + + /** + *

      A list of destinations to which the pipeline writes data.

      + */ + inline PipelineSummary& AddDestinations(const PipelineDestination& value) { m_destinationsHasBeenSet = true; m_destinations.push_back(value); return *this; } + + /** + *

      A list of destinations to which the pipeline writes data.

      + */ + inline PipelineSummary& AddDestinations(PipelineDestination&& value) { m_destinationsHasBeenSet = true; m_destinations.push_back(std::move(value)); return *this; } + + /** *

      A list of tags associated with the given pipeline.

      */ @@ -345,6 +387,9 @@ namespace Model Aws::Utils::DateTime m_lastUpdatedAt; bool m_lastUpdatedAtHasBeenSet = false; + Aws::Vector m_destinations; + bool m_destinationsHasBeenSet = false; + Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; diff --git a/generated/src/aws-cpp-sdk-osis/include/aws/osis/model/ServiceVpcEndpoint.h b/generated/src/aws-cpp-sdk-osis/include/aws/osis/model/ServiceVpcEndpoint.h index 4cc77d777af..ac3bc306d2c 100644 --- a/generated/src/aws-cpp-sdk-osis/include/aws/osis/model/ServiceVpcEndpoint.h +++ b/generated/src/aws-cpp-sdk-osis/include/aws/osis/model/ServiceVpcEndpoint.h @@ -71,42 +71,42 @@ namespace Model /** - *

      The ID of the VPC endpoint that was created.

      + *

      The unique identifier of the VPC endpoint that was created.

      */ inline const Aws::String& GetVpcEndpointId() const{ return m_vpcEndpointId; } /** - *

      The ID of the VPC endpoint that was created.

      + *

      The unique identifier of the VPC endpoint that was created.

      */ inline bool VpcEndpointIdHasBeenSet() const { return m_vpcEndpointIdHasBeenSet; } /** - *

      The ID of the VPC endpoint that was created.

      + *

      The unique identifier of the VPC endpoint that was created.

      */ inline void SetVpcEndpointId(const Aws::String& value) { m_vpcEndpointIdHasBeenSet = true; m_vpcEndpointId = value; } /** - *

      The ID of the VPC endpoint that was created.

      + *

      The unique identifier of the VPC endpoint that was created.

      */ inline void SetVpcEndpointId(Aws::String&& value) { m_vpcEndpointIdHasBeenSet = true; m_vpcEndpointId = std::move(value); } /** - *

      The ID of the VPC endpoint that was created.

      + *

      The unique identifier of the VPC endpoint that was created.

      */ inline void SetVpcEndpointId(const char* value) { m_vpcEndpointIdHasBeenSet = true; m_vpcEndpointId.assign(value); } /** - *

      The ID of the VPC endpoint that was created.

      + *

      The unique identifier of the VPC endpoint that was created.

      */ inline ServiceVpcEndpoint& WithVpcEndpointId(const Aws::String& value) { SetVpcEndpointId(value); return *this;} /** - *

      The ID of the VPC endpoint that was created.

      + *

      The unique identifier of the VPC endpoint that was created.

      */ inline ServiceVpcEndpoint& WithVpcEndpointId(Aws::String&& value) { SetVpcEndpointId(std::move(value)); return *this;} /** - *

      The ID of the VPC endpoint that was created.

      + *

      The unique identifier of the VPC endpoint that was created.

      */ inline ServiceVpcEndpoint& WithVpcEndpointId(const char* value) { SetVpcEndpointId(value); return *this;} diff --git a/generated/src/aws-cpp-sdk-osis/include/aws/osis/model/VpcAttachmentOptions.h b/generated/src/aws-cpp-sdk-osis/include/aws/osis/model/VpcAttachmentOptions.h new file mode 100644 index 00000000000..92f84a29277 --- /dev/null +++ b/generated/src/aws-cpp-sdk-osis/include/aws/osis/model/VpcAttachmentOptions.h @@ -0,0 +1,120 @@ +/** + * 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 OSIS +{ +namespace Model +{ + + /** + *

      Options for attaching a VPC to pipeline.

      See Also:

      AWS + * API Reference

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

      Whether a VPC is attached to the pipeline.

      + */ + inline bool GetAttachToVpc() const{ return m_attachToVpc; } + + /** + *

      Whether a VPC is attached to the pipeline.

      + */ + inline bool AttachToVpcHasBeenSet() const { return m_attachToVpcHasBeenSet; } + + /** + *

      Whether a VPC is attached to the pipeline.

      + */ + inline void SetAttachToVpc(bool value) { m_attachToVpcHasBeenSet = true; m_attachToVpc = value; } + + /** + *

      Whether a VPC is attached to the pipeline.

      + */ + inline VpcAttachmentOptions& WithAttachToVpc(bool value) { SetAttachToVpc(value); return *this;} + + + /** + *

      The CIDR block to be reserved for OpenSearch Ingestion to create elastic + * network interfaces (ENIs).

      + */ + inline const Aws::String& GetCidrBlock() const{ return m_cidrBlock; } + + /** + *

      The CIDR block to be reserved for OpenSearch Ingestion to create elastic + * network interfaces (ENIs).

      + */ + inline bool CidrBlockHasBeenSet() const { return m_cidrBlockHasBeenSet; } + + /** + *

      The CIDR block to be reserved for OpenSearch Ingestion to create elastic + * network interfaces (ENIs).

      + */ + inline void SetCidrBlock(const Aws::String& value) { m_cidrBlockHasBeenSet = true; m_cidrBlock = value; } + + /** + *

      The CIDR block to be reserved for OpenSearch Ingestion to create elastic + * network interfaces (ENIs).

      + */ + inline void SetCidrBlock(Aws::String&& value) { m_cidrBlockHasBeenSet = true; m_cidrBlock = std::move(value); } + + /** + *

      The CIDR block to be reserved for OpenSearch Ingestion to create elastic + * network interfaces (ENIs).

      + */ + inline void SetCidrBlock(const char* value) { m_cidrBlockHasBeenSet = true; m_cidrBlock.assign(value); } + + /** + *

      The CIDR block to be reserved for OpenSearch Ingestion to create elastic + * network interfaces (ENIs).

      + */ + inline VpcAttachmentOptions& WithCidrBlock(const Aws::String& value) { SetCidrBlock(value); return *this;} + + /** + *

      The CIDR block to be reserved for OpenSearch Ingestion to create elastic + * network interfaces (ENIs).

      + */ + inline VpcAttachmentOptions& WithCidrBlock(Aws::String&& value) { SetCidrBlock(std::move(value)); return *this;} + + /** + *

      The CIDR block to be reserved for OpenSearch Ingestion to create elastic + * network interfaces (ENIs).

      + */ + inline VpcAttachmentOptions& WithCidrBlock(const char* value) { SetCidrBlock(value); return *this;} + + private: + + bool m_attachToVpc; + bool m_attachToVpcHasBeenSet = false; + + Aws::String m_cidrBlock; + bool m_cidrBlockHasBeenSet = false; + }; + +} // namespace Model +} // namespace OSIS +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-osis/include/aws/osis/model/VpcOptions.h b/generated/src/aws-cpp-sdk-osis/include/aws/osis/model/VpcOptions.h index 68af1e6608a..b32bb35c6a8 100644 --- a/generated/src/aws-cpp-sdk-osis/include/aws/osis/model/VpcOptions.h +++ b/generated/src/aws-cpp-sdk-osis/include/aws/osis/model/VpcOptions.h @@ -6,6 +6,7 @@ #pragma once #include #include +#include #include #include @@ -130,6 +131,37 @@ namespace Model */ inline VpcOptions& AddSecurityGroupIds(const char* value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; } + + /** + *

      Options for attaching a VPC to a pipeline.

      + */ + inline const VpcAttachmentOptions& GetVpcAttachmentOptions() const{ return m_vpcAttachmentOptions; } + + /** + *

      Options for attaching a VPC to a pipeline.

      + */ + inline bool VpcAttachmentOptionsHasBeenSet() const { return m_vpcAttachmentOptionsHasBeenSet; } + + /** + *

      Options for attaching a VPC to a pipeline.

      + */ + inline void SetVpcAttachmentOptions(const VpcAttachmentOptions& value) { m_vpcAttachmentOptionsHasBeenSet = true; m_vpcAttachmentOptions = value; } + + /** + *

      Options for attaching a VPC to a pipeline.

      + */ + inline void SetVpcAttachmentOptions(VpcAttachmentOptions&& value) { m_vpcAttachmentOptionsHasBeenSet = true; m_vpcAttachmentOptions = std::move(value); } + + /** + *

      Options for attaching a VPC to a pipeline.

      + */ + inline VpcOptions& WithVpcAttachmentOptions(const VpcAttachmentOptions& value) { SetVpcAttachmentOptions(value); return *this;} + + /** + *

      Options for attaching a VPC to a pipeline.

      + */ + inline VpcOptions& WithVpcAttachmentOptions(VpcAttachmentOptions&& value) { SetVpcAttachmentOptions(std::move(value)); return *this;} + private: Aws::Vector m_subnetIds; @@ -137,6 +169,9 @@ namespace Model Aws::Vector m_securityGroupIds; bool m_securityGroupIdsHasBeenSet = false; + + VpcAttachmentOptions m_vpcAttachmentOptions; + bool m_vpcAttachmentOptionsHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-osis/source/OSISErrors.cpp b/generated/src/aws-cpp-sdk-osis/source/OSISErrors.cpp index 18691736a62..29ff36a55c7 100644 --- a/generated/src/aws-cpp-sdk-osis/source/OSISErrors.cpp +++ b/generated/src/aws-cpp-sdk-osis/source/OSISErrors.cpp @@ -18,6 +18,7 @@ namespace OSIS namespace OSISErrorMapper { +static const int DISABLED_OPERATION_HASH = HashingUtils::HashString("DisabledOperationException"); static const int INTERNAL_HASH = HashingUtils::HashString("InternalException"); static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); static const int RESOURCE_ALREADY_EXISTS_HASH = HashingUtils::HashString("ResourceAlreadyExistsException"); @@ -29,7 +30,11 @@ AWSError GetErrorForName(const char* errorName) { int hashCode = HashingUtils::HashString(errorName); - if (hashCode == INTERNAL_HASH) + if (hashCode == DISABLED_OPERATION_HASH) + { + return AWSError(static_cast(OSISErrors::DISABLED_OPERATION), RetryableType::NOT_RETRYABLE); + } + else if (hashCode == INTERNAL_HASH) { return AWSError(static_cast(OSISErrors::INTERNAL), RetryableType::NOT_RETRYABLE); } diff --git a/generated/src/aws-cpp-sdk-osis/source/model/GetPipelineBlueprintRequest.cpp b/generated/src/aws-cpp-sdk-osis/source/model/GetPipelineBlueprintRequest.cpp index 9f8a4c0477e..b219cb1ea52 100644 --- a/generated/src/aws-cpp-sdk-osis/source/model/GetPipelineBlueprintRequest.cpp +++ b/generated/src/aws-cpp-sdk-osis/source/model/GetPipelineBlueprintRequest.cpp @@ -5,15 +5,19 @@ #include #include +#include +#include #include using namespace Aws::OSIS::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; +using namespace Aws::Http; GetPipelineBlueprintRequest::GetPipelineBlueprintRequest() : - m_blueprintNameHasBeenSet(false) + m_blueprintNameHasBeenSet(false), + m_formatHasBeenSet(false) { } @@ -22,6 +26,17 @@ Aws::String GetPipelineBlueprintRequest::SerializePayload() const return {}; } +void GetPipelineBlueprintRequest::AddQueryStringParameters(URI& uri) const +{ + Aws::StringStream ss; + if(m_formatHasBeenSet) + { + ss << m_format; + uri.AddQueryStringParameter("format", ss.str()); + ss.str(""); + } + +} diff --git a/generated/src/aws-cpp-sdk-osis/source/model/GetPipelineBlueprintResult.cpp b/generated/src/aws-cpp-sdk-osis/source/model/GetPipelineBlueprintResult.cpp index b2a50846519..d3ad699560b 100644 --- a/generated/src/aws-cpp-sdk-osis/source/model/GetPipelineBlueprintResult.cpp +++ b/generated/src/aws-cpp-sdk-osis/source/model/GetPipelineBlueprintResult.cpp @@ -35,6 +35,12 @@ GetPipelineBlueprintResult& GetPipelineBlueprintResult::operator =(const Aws::Am } + if(jsonValue.ValueExists("Format")) + { + m_format = jsonValue.GetString("Format"); + + } + const auto& headers = result.GetHeaderValueCollection(); const auto& requestIdIter = headers.find("x-amzn-requestid"); diff --git a/generated/src/aws-cpp-sdk-osis/source/model/Pipeline.cpp b/generated/src/aws-cpp-sdk-osis/source/model/Pipeline.cpp index 91f4d1ffb3c..9f3d02e9488 100644 --- a/generated/src/aws-cpp-sdk-osis/source/model/Pipeline.cpp +++ b/generated/src/aws-cpp-sdk-osis/source/model/Pipeline.cpp @@ -37,6 +37,7 @@ Pipeline::Pipeline() : m_bufferOptionsHasBeenSet(false), m_encryptionAtRestOptionsHasBeenSet(false), m_serviceVpcEndpointsHasBeenSet(false), + m_destinationsHasBeenSet(false), m_tagsHasBeenSet(false) { } @@ -60,6 +61,7 @@ Pipeline::Pipeline(JsonView jsonValue) : m_bufferOptionsHasBeenSet(false), m_encryptionAtRestOptionsHasBeenSet(false), m_serviceVpcEndpointsHasBeenSet(false), + m_destinationsHasBeenSet(false), m_tagsHasBeenSet(false) { *this = jsonValue; @@ -181,6 +183,16 @@ Pipeline& Pipeline::operator =(JsonView jsonValue) m_serviceVpcEndpointsHasBeenSet = true; } + if(jsonValue.ValueExists("Destinations")) + { + Aws::Utils::Array destinationsJsonList = jsonValue.GetArray("Destinations"); + for(unsigned destinationsIndex = 0; destinationsIndex < destinationsJsonList.GetLength(); ++destinationsIndex) + { + m_destinations.push_back(destinationsJsonList[destinationsIndex].AsObject()); + } + m_destinationsHasBeenSet = true; + } + if(jsonValue.ValueExists("Tags")) { Aws::Utils::Array tagsJsonList = jsonValue.GetArray("Tags"); @@ -300,6 +312,17 @@ JsonValue Pipeline::Jsonize() const } + if(m_destinationsHasBeenSet) + { + Aws::Utils::Array destinationsJsonList(m_destinations.size()); + for(unsigned destinationsIndex = 0; destinationsIndex < destinationsJsonList.GetLength(); ++destinationsIndex) + { + destinationsJsonList[destinationsIndex].AsObject(m_destinations[destinationsIndex].Jsonize()); + } + payload.WithArray("Destinations", std::move(destinationsJsonList)); + + } + if(m_tagsHasBeenSet) { Aws::Utils::Array tagsJsonList(m_tags.size()); diff --git a/generated/src/aws-cpp-sdk-osis/source/model/PipelineBlueprint.cpp b/generated/src/aws-cpp-sdk-osis/source/model/PipelineBlueprint.cpp index 82656dd2e45..13b4d534f8f 100644 --- a/generated/src/aws-cpp-sdk-osis/source/model/PipelineBlueprint.cpp +++ b/generated/src/aws-cpp-sdk-osis/source/model/PipelineBlueprint.cpp @@ -20,13 +20,21 @@ namespace Model PipelineBlueprint::PipelineBlueprint() : m_blueprintNameHasBeenSet(false), - m_pipelineConfigurationBodyHasBeenSet(false) + m_pipelineConfigurationBodyHasBeenSet(false), + m_displayNameHasBeenSet(false), + m_displayDescriptionHasBeenSet(false), + m_serviceHasBeenSet(false), + m_useCaseHasBeenSet(false) { } PipelineBlueprint::PipelineBlueprint(JsonView jsonValue) : m_blueprintNameHasBeenSet(false), - m_pipelineConfigurationBodyHasBeenSet(false) + m_pipelineConfigurationBodyHasBeenSet(false), + m_displayNameHasBeenSet(false), + m_displayDescriptionHasBeenSet(false), + m_serviceHasBeenSet(false), + m_useCaseHasBeenSet(false) { *this = jsonValue; } @@ -47,6 +55,34 @@ PipelineBlueprint& PipelineBlueprint::operator =(JsonView jsonValue) m_pipelineConfigurationBodyHasBeenSet = true; } + if(jsonValue.ValueExists("DisplayName")) + { + m_displayName = jsonValue.GetString("DisplayName"); + + m_displayNameHasBeenSet = true; + } + + if(jsonValue.ValueExists("DisplayDescription")) + { + m_displayDescription = jsonValue.GetString("DisplayDescription"); + + m_displayDescriptionHasBeenSet = true; + } + + if(jsonValue.ValueExists("Service")) + { + m_service = jsonValue.GetString("Service"); + + m_serviceHasBeenSet = true; + } + + if(jsonValue.ValueExists("UseCase")) + { + m_useCase = jsonValue.GetString("UseCase"); + + m_useCaseHasBeenSet = true; + } + return *this; } @@ -66,6 +102,30 @@ JsonValue PipelineBlueprint::Jsonize() const } + if(m_displayNameHasBeenSet) + { + payload.WithString("DisplayName", m_displayName); + + } + + if(m_displayDescriptionHasBeenSet) + { + payload.WithString("DisplayDescription", m_displayDescription); + + } + + if(m_serviceHasBeenSet) + { + payload.WithString("Service", m_service); + + } + + if(m_useCaseHasBeenSet) + { + payload.WithString("UseCase", m_useCase); + + } + return payload; } diff --git a/generated/src/aws-cpp-sdk-osis/source/model/PipelineBlueprintSummary.cpp b/generated/src/aws-cpp-sdk-osis/source/model/PipelineBlueprintSummary.cpp index e1ddc02e20b..723cbe7995f 100644 --- a/generated/src/aws-cpp-sdk-osis/source/model/PipelineBlueprintSummary.cpp +++ b/generated/src/aws-cpp-sdk-osis/source/model/PipelineBlueprintSummary.cpp @@ -19,12 +19,20 @@ namespace Model { PipelineBlueprintSummary::PipelineBlueprintSummary() : - m_blueprintNameHasBeenSet(false) + m_blueprintNameHasBeenSet(false), + m_displayNameHasBeenSet(false), + m_displayDescriptionHasBeenSet(false), + m_serviceHasBeenSet(false), + m_useCaseHasBeenSet(false) { } PipelineBlueprintSummary::PipelineBlueprintSummary(JsonView jsonValue) : - m_blueprintNameHasBeenSet(false) + m_blueprintNameHasBeenSet(false), + m_displayNameHasBeenSet(false), + m_displayDescriptionHasBeenSet(false), + m_serviceHasBeenSet(false), + m_useCaseHasBeenSet(false) { *this = jsonValue; } @@ -38,6 +46,34 @@ PipelineBlueprintSummary& PipelineBlueprintSummary::operator =(JsonView jsonValu m_blueprintNameHasBeenSet = true; } + if(jsonValue.ValueExists("DisplayName")) + { + m_displayName = jsonValue.GetString("DisplayName"); + + m_displayNameHasBeenSet = true; + } + + if(jsonValue.ValueExists("DisplayDescription")) + { + m_displayDescription = jsonValue.GetString("DisplayDescription"); + + m_displayDescriptionHasBeenSet = true; + } + + if(jsonValue.ValueExists("Service")) + { + m_service = jsonValue.GetString("Service"); + + m_serviceHasBeenSet = true; + } + + if(jsonValue.ValueExists("UseCase")) + { + m_useCase = jsonValue.GetString("UseCase"); + + m_useCaseHasBeenSet = true; + } + return *this; } @@ -51,6 +87,30 @@ JsonValue PipelineBlueprintSummary::Jsonize() const } + if(m_displayNameHasBeenSet) + { + payload.WithString("DisplayName", m_displayName); + + } + + if(m_displayDescriptionHasBeenSet) + { + payload.WithString("DisplayDescription", m_displayDescription); + + } + + if(m_serviceHasBeenSet) + { + payload.WithString("Service", m_service); + + } + + if(m_useCaseHasBeenSet) + { + payload.WithString("UseCase", m_useCase); + + } + return payload; } diff --git a/generated/src/aws-cpp-sdk-osis/source/model/PipelineDestination.cpp b/generated/src/aws-cpp-sdk-osis/source/model/PipelineDestination.cpp new file mode 100644 index 00000000000..af9fbef6cb4 --- /dev/null +++ b/generated/src/aws-cpp-sdk-osis/source/model/PipelineDestination.cpp @@ -0,0 +1,74 @@ +/** + * 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 OSIS +{ +namespace Model +{ + +PipelineDestination::PipelineDestination() : + m_serviceNameHasBeenSet(false), + m_endpointHasBeenSet(false) +{ +} + +PipelineDestination::PipelineDestination(JsonView jsonValue) : + m_serviceNameHasBeenSet(false), + m_endpointHasBeenSet(false) +{ + *this = jsonValue; +} + +PipelineDestination& PipelineDestination::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("ServiceName")) + { + m_serviceName = jsonValue.GetString("ServiceName"); + + m_serviceNameHasBeenSet = true; + } + + if(jsonValue.ValueExists("Endpoint")) + { + m_endpoint = jsonValue.GetString("Endpoint"); + + m_endpointHasBeenSet = true; + } + + return *this; +} + +JsonValue PipelineDestination::Jsonize() const +{ + JsonValue payload; + + if(m_serviceNameHasBeenSet) + { + payload.WithString("ServiceName", m_serviceName); + + } + + if(m_endpointHasBeenSet) + { + payload.WithString("Endpoint", m_endpoint); + + } + + return payload; +} + +} // namespace Model +} // namespace OSIS +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-osis/source/model/PipelineSummary.cpp b/generated/src/aws-cpp-sdk-osis/source/model/PipelineSummary.cpp index c4327c686e6..52837edddda 100644 --- a/generated/src/aws-cpp-sdk-osis/source/model/PipelineSummary.cpp +++ b/generated/src/aws-cpp-sdk-osis/source/model/PipelineSummary.cpp @@ -30,6 +30,7 @@ PipelineSummary::PipelineSummary() : m_maxUnitsHasBeenSet(false), m_createdAtHasBeenSet(false), m_lastUpdatedAtHasBeenSet(false), + m_destinationsHasBeenSet(false), m_tagsHasBeenSet(false) { } @@ -46,6 +47,7 @@ PipelineSummary::PipelineSummary(JsonView jsonValue) : m_maxUnitsHasBeenSet(false), m_createdAtHasBeenSet(false), m_lastUpdatedAtHasBeenSet(false), + m_destinationsHasBeenSet(false), m_tagsHasBeenSet(false) { *this = jsonValue; @@ -109,6 +111,16 @@ PipelineSummary& PipelineSummary::operator =(JsonView jsonValue) m_lastUpdatedAtHasBeenSet = true; } + if(jsonValue.ValueExists("Destinations")) + { + Aws::Utils::Array destinationsJsonList = jsonValue.GetArray("Destinations"); + for(unsigned destinationsIndex = 0; destinationsIndex < destinationsJsonList.GetLength(); ++destinationsIndex) + { + m_destinations.push_back(destinationsJsonList[destinationsIndex].AsObject()); + } + m_destinationsHasBeenSet = true; + } + if(jsonValue.ValueExists("Tags")) { Aws::Utils::Array tagsJsonList = jsonValue.GetArray("Tags"); @@ -171,6 +183,17 @@ JsonValue PipelineSummary::Jsonize() const payload.WithDouble("LastUpdatedAt", m_lastUpdatedAt.SecondsWithMSPrecision()); } + if(m_destinationsHasBeenSet) + { + Aws::Utils::Array destinationsJsonList(m_destinations.size()); + for(unsigned destinationsIndex = 0; destinationsIndex < destinationsJsonList.GetLength(); ++destinationsIndex) + { + destinationsJsonList[destinationsIndex].AsObject(m_destinations[destinationsIndex].Jsonize()); + } + payload.WithArray("Destinations", std::move(destinationsJsonList)); + + } + if(m_tagsHasBeenSet) { Aws::Utils::Array tagsJsonList(m_tags.size()); diff --git a/generated/src/aws-cpp-sdk-osis/source/model/VpcAttachmentOptions.cpp b/generated/src/aws-cpp-sdk-osis/source/model/VpcAttachmentOptions.cpp new file mode 100644 index 00000000000..488baed283b --- /dev/null +++ b/generated/src/aws-cpp-sdk-osis/source/model/VpcAttachmentOptions.cpp @@ -0,0 +1,76 @@ +/** + * 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 OSIS +{ +namespace Model +{ + +VpcAttachmentOptions::VpcAttachmentOptions() : + m_attachToVpc(false), + m_attachToVpcHasBeenSet(false), + m_cidrBlockHasBeenSet(false) +{ +} + +VpcAttachmentOptions::VpcAttachmentOptions(JsonView jsonValue) : + m_attachToVpc(false), + m_attachToVpcHasBeenSet(false), + m_cidrBlockHasBeenSet(false) +{ + *this = jsonValue; +} + +VpcAttachmentOptions& VpcAttachmentOptions::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("AttachToVpc")) + { + m_attachToVpc = jsonValue.GetBool("AttachToVpc"); + + m_attachToVpcHasBeenSet = true; + } + + if(jsonValue.ValueExists("CidrBlock")) + { + m_cidrBlock = jsonValue.GetString("CidrBlock"); + + m_cidrBlockHasBeenSet = true; + } + + return *this; +} + +JsonValue VpcAttachmentOptions::Jsonize() const +{ + JsonValue payload; + + if(m_attachToVpcHasBeenSet) + { + payload.WithBool("AttachToVpc", m_attachToVpc); + + } + + if(m_cidrBlockHasBeenSet) + { + payload.WithString("CidrBlock", m_cidrBlock); + + } + + return payload; +} + +} // namespace Model +} // namespace OSIS +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-osis/source/model/VpcOptions.cpp b/generated/src/aws-cpp-sdk-osis/source/model/VpcOptions.cpp index 926aedce78e..e16e52b3c0e 100644 --- a/generated/src/aws-cpp-sdk-osis/source/model/VpcOptions.cpp +++ b/generated/src/aws-cpp-sdk-osis/source/model/VpcOptions.cpp @@ -20,13 +20,15 @@ namespace Model VpcOptions::VpcOptions() : m_subnetIdsHasBeenSet(false), - m_securityGroupIdsHasBeenSet(false) + m_securityGroupIdsHasBeenSet(false), + m_vpcAttachmentOptionsHasBeenSet(false) { } VpcOptions::VpcOptions(JsonView jsonValue) : m_subnetIdsHasBeenSet(false), - m_securityGroupIdsHasBeenSet(false) + m_securityGroupIdsHasBeenSet(false), + m_vpcAttachmentOptionsHasBeenSet(false) { *this = jsonValue; } @@ -53,6 +55,13 @@ VpcOptions& VpcOptions::operator =(JsonView jsonValue) m_securityGroupIdsHasBeenSet = true; } + if(jsonValue.ValueExists("VpcAttachmentOptions")) + { + m_vpcAttachmentOptions = jsonValue.GetObject("VpcAttachmentOptions"); + + m_vpcAttachmentOptionsHasBeenSet = true; + } + return *this; } @@ -82,6 +91,12 @@ JsonValue VpcOptions::Jsonize() const } + if(m_vpcAttachmentOptionsHasBeenSet) + { + payload.WithObject("VpcAttachmentOptions", m_vpcAttachmentOptions.Jsonize()); + + } + return payload; } diff --git a/generated/src/aws-cpp-sdk-rds/include/aws/rds/model/CreateDBClusterRequest.h b/generated/src/aws-cpp-sdk-rds/include/aws/rds/model/CreateDBClusterRequest.h index 4767adf8682..dac1cc798b9 100644 --- a/generated/src/aws-cpp-sdk-rds/include/aws/rds/model/CreateDBClusterRequest.h +++ b/generated/src/aws-cpp-sdk-rds/include/aws/rds/model/CreateDBClusterRequest.h @@ -45,92 +45,92 @@ namespace Model public: /** - *

      A list of Availability Zones (AZs) where DB instances in the DB cluster can - * be created.

      For information on Amazon Web Services Regions and - * Availability Zones, see Choosing - * the Regions and Availability Zones in the Amazon Aurora User - * Guide.

      Valid for Cluster Type: Aurora DB clusters only

      + *

      A list of Availability Zones (AZs) where you specifically want to create DB + * instances in the DB cluster.

      For information on AZs, see Availability + * Zones in the Amazon Aurora User Guide.

      Valid for Cluster Type: + * Aurora DB clusters only

      Constraints:

      • Can't specify more + * than three AZs.

      */ inline const Aws::Vector& GetAvailabilityZones() const{ return m_availabilityZones; } /** - *

      A list of Availability Zones (AZs) where DB instances in the DB cluster can - * be created.

      For information on Amazon Web Services Regions and - * Availability Zones, see Choosing - * the Regions and Availability Zones in the Amazon Aurora User - * Guide.

      Valid for Cluster Type: Aurora DB clusters only

      + *

      A list of Availability Zones (AZs) where you specifically want to create DB + * instances in the DB cluster.

      For information on AZs, see Availability + * Zones in the Amazon Aurora User Guide.

      Valid for Cluster Type: + * Aurora DB clusters only

      Constraints:

      • Can't specify more + * than three AZs.

      */ inline bool AvailabilityZonesHasBeenSet() const { return m_availabilityZonesHasBeenSet; } /** - *

      A list of Availability Zones (AZs) where DB instances in the DB cluster can - * be created.

      For information on Amazon Web Services Regions and - * Availability Zones, see Choosing - * the Regions and Availability Zones in the Amazon Aurora User - * Guide.

      Valid for Cluster Type: Aurora DB clusters only

      + *

      A list of Availability Zones (AZs) where you specifically want to create DB + * instances in the DB cluster.

      For information on AZs, see Availability + * Zones in the Amazon Aurora User Guide.

      Valid for Cluster Type: + * Aurora DB clusters only

      Constraints:

      • Can't specify more + * than three AZs.

      */ inline void SetAvailabilityZones(const Aws::Vector& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones = value; } /** - *

      A list of Availability Zones (AZs) where DB instances in the DB cluster can - * be created.

      For information on Amazon Web Services Regions and - * Availability Zones, see Choosing - * the Regions and Availability Zones in the Amazon Aurora User - * Guide.

      Valid for Cluster Type: Aurora DB clusters only

      + *

      A list of Availability Zones (AZs) where you specifically want to create DB + * instances in the DB cluster.

      For information on AZs, see Availability + * Zones in the Amazon Aurora User Guide.

      Valid for Cluster Type: + * Aurora DB clusters only

      Constraints:

      • Can't specify more + * than three AZs.

      */ inline void SetAvailabilityZones(Aws::Vector&& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones = std::move(value); } /** - *

      A list of Availability Zones (AZs) where DB instances in the DB cluster can - * be created.

      For information on Amazon Web Services Regions and - * Availability Zones, see Choosing - * the Regions and Availability Zones in the Amazon Aurora User - * Guide.

      Valid for Cluster Type: Aurora DB clusters only

      + *

      A list of Availability Zones (AZs) where you specifically want to create DB + * instances in the DB cluster.

      For information on AZs, see Availability + * Zones in the Amazon Aurora User Guide.

      Valid for Cluster Type: + * Aurora DB clusters only

      Constraints:

      • Can't specify more + * than three AZs.

      */ inline CreateDBClusterRequest& WithAvailabilityZones(const Aws::Vector& value) { SetAvailabilityZones(value); return *this;} /** - *

      A list of Availability Zones (AZs) where DB instances in the DB cluster can - * be created.

      For information on Amazon Web Services Regions and - * Availability Zones, see Choosing - * the Regions and Availability Zones in the Amazon Aurora User - * Guide.

      Valid for Cluster Type: Aurora DB clusters only

      + *

      A list of Availability Zones (AZs) where you specifically want to create DB + * instances in the DB cluster.

      For information on AZs, see Availability + * Zones in the Amazon Aurora User Guide.

      Valid for Cluster Type: + * Aurora DB clusters only

      Constraints:

      • Can't specify more + * than three AZs.

      */ inline CreateDBClusterRequest& WithAvailabilityZones(Aws::Vector&& value) { SetAvailabilityZones(std::move(value)); return *this;} /** - *

      A list of Availability Zones (AZs) where DB instances in the DB cluster can - * be created.

      For information on Amazon Web Services Regions and - * Availability Zones, see Choosing - * the Regions and Availability Zones in the Amazon Aurora User - * Guide.

      Valid for Cluster Type: Aurora DB clusters only

      + *

      A list of Availability Zones (AZs) where you specifically want to create DB + * instances in the DB cluster.

      For information on AZs, see Availability + * Zones in the Amazon Aurora User Guide.

      Valid for Cluster Type: + * Aurora DB clusters only

      Constraints:

      • Can't specify more + * than three AZs.

      */ inline CreateDBClusterRequest& AddAvailabilityZones(const Aws::String& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones.push_back(value); return *this; } /** - *

      A list of Availability Zones (AZs) where DB instances in the DB cluster can - * be created.

      For information on Amazon Web Services Regions and - * Availability Zones, see Choosing - * the Regions and Availability Zones in the Amazon Aurora User - * Guide.

      Valid for Cluster Type: Aurora DB clusters only

      + *

      A list of Availability Zones (AZs) where you specifically want to create DB + * instances in the DB cluster.

      For information on AZs, see Availability + * Zones in the Amazon Aurora User Guide.

      Valid for Cluster Type: + * Aurora DB clusters only

      Constraints:

      • Can't specify more + * than three AZs.

      */ inline CreateDBClusterRequest& AddAvailabilityZones(Aws::String&& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones.push_back(std::move(value)); return *this; } /** - *

      A list of Availability Zones (AZs) where DB instances in the DB cluster can - * be created.

      For information on Amazon Web Services Regions and - * Availability Zones, see Choosing - * the Regions and Availability Zones in the Amazon Aurora User - * Guide.

      Valid for Cluster Type: Aurora DB clusters only

      + *

      A list of Availability Zones (AZs) where you specifically want to create DB + * instances in the DB cluster.

      For information on AZs, see Availability + * Zones in the Amazon Aurora User Guide.

      Valid for Cluster Type: + * Aurora DB clusters only

      Constraints:

      • Can't specify more + * than three AZs.

      */ inline CreateDBClusterRequest& AddAvailabilityZones(const char* value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones.push_back(value); return *this; } @@ -590,57 +590,97 @@ namespace Model /** *

      The database engine to use for this DB cluster.

      Valid for Cluster - * Type: Aurora DB clusters and Multi-AZ DB clusters

      Valid Values: - * aurora-mysql | aurora-postgresql | mysql | postgres

      + * Type: Aurora DB clusters and Multi-AZ DB clusters

      Valid Values:

        + *
      • aurora-mysql

      • + * aurora-postgresql

      • mysql

      • + *
      • postgres

      • neptune - For + * information about using Amazon Neptune, see the + * Amazon Neptune User Guide .

      */ inline const Aws::String& GetEngine() const{ return m_engine; } /** *

      The database engine to use for this DB cluster.

      Valid for Cluster - * Type: Aurora DB clusters and Multi-AZ DB clusters

      Valid Values: - * aurora-mysql | aurora-postgresql | mysql | postgres

      + * Type: Aurora DB clusters and Multi-AZ DB clusters

      Valid Values:

        + *
      • aurora-mysql

      • + * aurora-postgresql

      • mysql

      • + *
      • postgres

      • neptune - For + * information about using Amazon Neptune, see the + * Amazon Neptune User Guide .

      */ inline bool EngineHasBeenSet() const { return m_engineHasBeenSet; } /** *

      The database engine to use for this DB cluster.

      Valid for Cluster - * Type: Aurora DB clusters and Multi-AZ DB clusters

      Valid Values: - * aurora-mysql | aurora-postgresql | mysql | postgres

      + * Type: Aurora DB clusters and Multi-AZ DB clusters

      Valid Values:

        + *
      • aurora-mysql

      • + * aurora-postgresql

      • mysql

      • + *
      • postgres

      • neptune - For + * information about using Amazon Neptune, see the + * Amazon Neptune User Guide .

      */ inline void SetEngine(const Aws::String& value) { m_engineHasBeenSet = true; m_engine = value; } /** *

      The database engine to use for this DB cluster.

      Valid for Cluster - * Type: Aurora DB clusters and Multi-AZ DB clusters

      Valid Values: - * aurora-mysql | aurora-postgresql | mysql | postgres

      + * Type: Aurora DB clusters and Multi-AZ DB clusters

      Valid Values:

        + *
      • aurora-mysql

      • + * aurora-postgresql

      • mysql

      • + *
      • postgres

      • neptune - For + * information about using Amazon Neptune, see the + * Amazon Neptune User Guide .

      */ inline void SetEngine(Aws::String&& value) { m_engineHasBeenSet = true; m_engine = std::move(value); } /** *

      The database engine to use for this DB cluster.

      Valid for Cluster - * Type: Aurora DB clusters and Multi-AZ DB clusters

      Valid Values: - * aurora-mysql | aurora-postgresql | mysql | postgres

      + * Type: Aurora DB clusters and Multi-AZ DB clusters

      Valid Values:

        + *
      • aurora-mysql

      • + * aurora-postgresql

      • mysql

      • + *
      • postgres

      • neptune - For + * information about using Amazon Neptune, see the + * Amazon Neptune User Guide .

      */ inline void SetEngine(const char* value) { m_engineHasBeenSet = true; m_engine.assign(value); } /** *

      The database engine to use for this DB cluster.

      Valid for Cluster - * Type: Aurora DB clusters and Multi-AZ DB clusters

      Valid Values: - * aurora-mysql | aurora-postgresql | mysql | postgres

      + * Type: Aurora DB clusters and Multi-AZ DB clusters

      Valid Values:

        + *
      • aurora-mysql

      • + * aurora-postgresql

      • mysql

      • + *
      • postgres

      • neptune - For + * information about using Amazon Neptune, see the + * Amazon Neptune User Guide .

      */ inline CreateDBClusterRequest& WithEngine(const Aws::String& value) { SetEngine(value); return *this;} /** *

      The database engine to use for this DB cluster.

      Valid for Cluster - * Type: Aurora DB clusters and Multi-AZ DB clusters

      Valid Values: - * aurora-mysql | aurora-postgresql | mysql | postgres

      + * Type: Aurora DB clusters and Multi-AZ DB clusters

      Valid Values:

        + *
      • aurora-mysql

      • + * aurora-postgresql

      • mysql

      • + *
      • postgres

      • neptune - For + * information about using Amazon Neptune, see the + * Amazon Neptune User Guide .

      */ inline CreateDBClusterRequest& WithEngine(Aws::String&& value) { SetEngine(std::move(value)); return *this;} /** *

      The database engine to use for this DB cluster.

      Valid for Cluster - * Type: Aurora DB clusters and Multi-AZ DB clusters

      Valid Values: - * aurora-mysql | aurora-postgresql | mysql | postgres

      + * Type: Aurora DB clusters and Multi-AZ DB clusters

      Valid Values:

        + *
      • aurora-mysql

      • + * aurora-postgresql

      • mysql

      • + *
      • postgres

      • neptune - For + * information about using Amazon Neptune, see the + * Amazon Neptune User Guide .

      */ inline CreateDBClusterRequest& WithEngine(const char* value) { SetEngine(value); return *this;} @@ -4186,6 +4226,199 @@ namespace Model inline CreateDBClusterRequest& WithCACertificateIdentifier(const char* value) { SetCACertificateIdentifier(value); return *this;} + /** + *

      The life cycle type for this DB cluster.

      By default, this value + * is set to open-source-rds-extended-support, which enrolls your DB + * cluster into Amazon RDS Extended Support. At the end of standard support, you + * can avoid charges for Extended Support by setting the value to + * open-source-rds-extended-support-disabled. In this case, creating + * the DB cluster will fail if the DB major version is past its end of standard + * support date.

      You can use this setting to enroll your DB cluster + * into Amazon RDS Extended Support. With RDS Extended Support, you can run the + * selected major engine version on your DB cluster past the end of standard + * support for that engine version. For more information, see the following + * sections:

      Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters

      + *

      Valid Values: open-source-rds-extended-support | + * open-source-rds-extended-support-disabled

      Default: + * open-source-rds-extended-support

      + */ + inline const Aws::String& GetEngineLifecycleSupport() const{ return m_engineLifecycleSupport; } + + /** + *

      The life cycle type for this DB cluster.

      By default, this value + * is set to open-source-rds-extended-support, which enrolls your DB + * cluster into Amazon RDS Extended Support. At the end of standard support, you + * can avoid charges for Extended Support by setting the value to + * open-source-rds-extended-support-disabled. In this case, creating + * the DB cluster will fail if the DB major version is past its end of standard + * support date.

      You can use this setting to enroll your DB cluster + * into Amazon RDS Extended Support. With RDS Extended Support, you can run the + * selected major engine version on your DB cluster past the end of standard + * support for that engine version. For more information, see the following + * sections:

      Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters

      + *

      Valid Values: open-source-rds-extended-support | + * open-source-rds-extended-support-disabled

      Default: + * open-source-rds-extended-support

      + */ + inline bool EngineLifecycleSupportHasBeenSet() const { return m_engineLifecycleSupportHasBeenSet; } + + /** + *

      The life cycle type for this DB cluster.

      By default, this value + * is set to open-source-rds-extended-support, which enrolls your DB + * cluster into Amazon RDS Extended Support. At the end of standard support, you + * can avoid charges for Extended Support by setting the value to + * open-source-rds-extended-support-disabled. In this case, creating + * the DB cluster will fail if the DB major version is past its end of standard + * support date.

      You can use this setting to enroll your DB cluster + * into Amazon RDS Extended Support. With RDS Extended Support, you can run the + * selected major engine version on your DB cluster past the end of standard + * support for that engine version. For more information, see the following + * sections:

      Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters

      + *

      Valid Values: open-source-rds-extended-support | + * open-source-rds-extended-support-disabled

      Default: + * open-source-rds-extended-support

      + */ + inline void SetEngineLifecycleSupport(const Aws::String& value) { m_engineLifecycleSupportHasBeenSet = true; m_engineLifecycleSupport = value; } + + /** + *

      The life cycle type for this DB cluster.

      By default, this value + * is set to open-source-rds-extended-support, which enrolls your DB + * cluster into Amazon RDS Extended Support. At the end of standard support, you + * can avoid charges for Extended Support by setting the value to + * open-source-rds-extended-support-disabled. In this case, creating + * the DB cluster will fail if the DB major version is past its end of standard + * support date.

      You can use this setting to enroll your DB cluster + * into Amazon RDS Extended Support. With RDS Extended Support, you can run the + * selected major engine version on your DB cluster past the end of standard + * support for that engine version. For more information, see the following + * sections:

      Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters

      + *

      Valid Values: open-source-rds-extended-support | + * open-source-rds-extended-support-disabled

      Default: + * open-source-rds-extended-support

      + */ + inline void SetEngineLifecycleSupport(Aws::String&& value) { m_engineLifecycleSupportHasBeenSet = true; m_engineLifecycleSupport = std::move(value); } + + /** + *

      The life cycle type for this DB cluster.

      By default, this value + * is set to open-source-rds-extended-support, which enrolls your DB + * cluster into Amazon RDS Extended Support. At the end of standard support, you + * can avoid charges for Extended Support by setting the value to + * open-source-rds-extended-support-disabled. In this case, creating + * the DB cluster will fail if the DB major version is past its end of standard + * support date.

      You can use this setting to enroll your DB cluster + * into Amazon RDS Extended Support. With RDS Extended Support, you can run the + * selected major engine version on your DB cluster past the end of standard + * support for that engine version. For more information, see the following + * sections:

      Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters

      + *

      Valid Values: open-source-rds-extended-support | + * open-source-rds-extended-support-disabled

      Default: + * open-source-rds-extended-support

      + */ + inline void SetEngineLifecycleSupport(const char* value) { m_engineLifecycleSupportHasBeenSet = true; m_engineLifecycleSupport.assign(value); } + + /** + *

      The life cycle type for this DB cluster.

      By default, this value + * is set to open-source-rds-extended-support, which enrolls your DB + * cluster into Amazon RDS Extended Support. At the end of standard support, you + * can avoid charges for Extended Support by setting the value to + * open-source-rds-extended-support-disabled. In this case, creating + * the DB cluster will fail if the DB major version is past its end of standard + * support date.

      You can use this setting to enroll your DB cluster + * into Amazon RDS Extended Support. With RDS Extended Support, you can run the + * selected major engine version on your DB cluster past the end of standard + * support for that engine version. For more information, see the following + * sections:

      Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters

      + *

      Valid Values: open-source-rds-extended-support | + * open-source-rds-extended-support-disabled

      Default: + * open-source-rds-extended-support

      + */ + inline CreateDBClusterRequest& WithEngineLifecycleSupport(const Aws::String& value) { SetEngineLifecycleSupport(value); return *this;} + + /** + *

      The life cycle type for this DB cluster.

      By default, this value + * is set to open-source-rds-extended-support, which enrolls your DB + * cluster into Amazon RDS Extended Support. At the end of standard support, you + * can avoid charges for Extended Support by setting the value to + * open-source-rds-extended-support-disabled. In this case, creating + * the DB cluster will fail if the DB major version is past its end of standard + * support date.

      You can use this setting to enroll your DB cluster + * into Amazon RDS Extended Support. With RDS Extended Support, you can run the + * selected major engine version on your DB cluster past the end of standard + * support for that engine version. For more information, see the following + * sections:

      Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters

      + *

      Valid Values: open-source-rds-extended-support | + * open-source-rds-extended-support-disabled

      Default: + * open-source-rds-extended-support

      + */ + inline CreateDBClusterRequest& WithEngineLifecycleSupport(Aws::String&& value) { SetEngineLifecycleSupport(std::move(value)); return *this;} + + /** + *

      The life cycle type for this DB cluster.

      By default, this value + * is set to open-source-rds-extended-support, which enrolls your DB + * cluster into Amazon RDS Extended Support. At the end of standard support, you + * can avoid charges for Extended Support by setting the value to + * open-source-rds-extended-support-disabled. In this case, creating + * the DB cluster will fail if the DB major version is past its end of standard + * support date.

      You can use this setting to enroll your DB cluster + * into Amazon RDS Extended Support. With RDS Extended Support, you can run the + * selected major engine version on your DB cluster past the end of standard + * support for that engine version. For more information, see the following + * sections:

      Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters

      + *

      Valid Values: open-source-rds-extended-support | + * open-source-rds-extended-support-disabled

      Default: + * open-source-rds-extended-support

      + */ + inline CreateDBClusterRequest& WithEngineLifecycleSupport(const char* value) { SetEngineLifecycleSupport(value); return *this;} + + /** * If SourceRegion is specified, SDKs will generate pre-signed URLs and populate the pre-signed URL field. */ @@ -4387,6 +4620,9 @@ namespace Model Aws::String m_cACertificateIdentifier; bool m_cACertificateIdentifierHasBeenSet = false; + Aws::String m_engineLifecycleSupport; + bool m_engineLifecycleSupportHasBeenSet = false; + Aws::String m_sourceRegion; bool m_sourceRegionHasBeenSet = false; }; diff --git a/generated/src/aws-cpp-sdk-rds/include/aws/rds/model/CreateDBInstanceRequest.h b/generated/src/aws-cpp-sdk-rds/include/aws/rds/model/CreateDBInstanceRequest.h index 5c74ef8e957..acbe03c6600 100644 --- a/generated/src/aws-cpp-sdk-rds/include/aws/rds/model/CreateDBInstanceRequest.h +++ b/generated/src/aws-cpp-sdk-rds/include/aws/rds/model/CreateDBInstanceRequest.h @@ -5611,6 +5611,175 @@ namespace Model */ inline CreateDBInstanceRequest& WithMultiTenant(bool value) { SetMultiTenant(value); return *this;} + + /** + *

      The life cycle type for this DB instance.

      By default, this + * value is set to open-source-rds-extended-support, which enrolls + * your DB instance into Amazon RDS Extended Support. At the end of standard + * support, you can avoid charges for Extended Support by setting the value to + * open-source-rds-extended-support-disabled. In this case, creating + * the DB instance will fail if the DB major version is past its end of standard + * support date.

      This setting applies only to RDS for MySQL and RDS + * for PostgreSQL. For Amazon Aurora DB instances, the life cycle type is managed + * by the DB cluster.

      You can use this setting to enroll your DB instance + * into Amazon RDS Extended Support. With RDS Extended Support, you can run the + * selected major engine version on your DB instance past the end of standard + * support for that engine version. For more information, see Using + * Amazon RDS Extended Support in the Amazon RDS User Guide.

      + *

      Valid Values: open-source-rds-extended-support | + * open-source-rds-extended-support-disabled

      Default: + * open-source-rds-extended-support

      + */ + inline const Aws::String& GetEngineLifecycleSupport() const{ return m_engineLifecycleSupport; } + + /** + *

      The life cycle type for this DB instance.

      By default, this + * value is set to open-source-rds-extended-support, which enrolls + * your DB instance into Amazon RDS Extended Support. At the end of standard + * support, you can avoid charges for Extended Support by setting the value to + * open-source-rds-extended-support-disabled. In this case, creating + * the DB instance will fail if the DB major version is past its end of standard + * support date.

      This setting applies only to RDS for MySQL and RDS + * for PostgreSQL. For Amazon Aurora DB instances, the life cycle type is managed + * by the DB cluster.

      You can use this setting to enroll your DB instance + * into Amazon RDS Extended Support. With RDS Extended Support, you can run the + * selected major engine version on your DB instance past the end of standard + * support for that engine version. For more information, see Using + * Amazon RDS Extended Support in the Amazon RDS User Guide.

      + *

      Valid Values: open-source-rds-extended-support | + * open-source-rds-extended-support-disabled

      Default: + * open-source-rds-extended-support

      + */ + inline bool EngineLifecycleSupportHasBeenSet() const { return m_engineLifecycleSupportHasBeenSet; } + + /** + *

      The life cycle type for this DB instance.

      By default, this + * value is set to open-source-rds-extended-support, which enrolls + * your DB instance into Amazon RDS Extended Support. At the end of standard + * support, you can avoid charges for Extended Support by setting the value to + * open-source-rds-extended-support-disabled. In this case, creating + * the DB instance will fail if the DB major version is past its end of standard + * support date.

      This setting applies only to RDS for MySQL and RDS + * for PostgreSQL. For Amazon Aurora DB instances, the life cycle type is managed + * by the DB cluster.

      You can use this setting to enroll your DB instance + * into Amazon RDS Extended Support. With RDS Extended Support, you can run the + * selected major engine version on your DB instance past the end of standard + * support for that engine version. For more information, see Using + * Amazon RDS Extended Support in the Amazon RDS User Guide.

      + *

      Valid Values: open-source-rds-extended-support | + * open-source-rds-extended-support-disabled

      Default: + * open-source-rds-extended-support

      + */ + inline void SetEngineLifecycleSupport(const Aws::String& value) { m_engineLifecycleSupportHasBeenSet = true; m_engineLifecycleSupport = value; } + + /** + *

      The life cycle type for this DB instance.

      By default, this + * value is set to open-source-rds-extended-support, which enrolls + * your DB instance into Amazon RDS Extended Support. At the end of standard + * support, you can avoid charges for Extended Support by setting the value to + * open-source-rds-extended-support-disabled. In this case, creating + * the DB instance will fail if the DB major version is past its end of standard + * support date.

      This setting applies only to RDS for MySQL and RDS + * for PostgreSQL. For Amazon Aurora DB instances, the life cycle type is managed + * by the DB cluster.

      You can use this setting to enroll your DB instance + * into Amazon RDS Extended Support. With RDS Extended Support, you can run the + * selected major engine version on your DB instance past the end of standard + * support for that engine version. For more information, see Using + * Amazon RDS Extended Support in the Amazon RDS User Guide.

      + *

      Valid Values: open-source-rds-extended-support | + * open-source-rds-extended-support-disabled

      Default: + * open-source-rds-extended-support

      + */ + inline void SetEngineLifecycleSupport(Aws::String&& value) { m_engineLifecycleSupportHasBeenSet = true; m_engineLifecycleSupport = std::move(value); } + + /** + *

      The life cycle type for this DB instance.

      By default, this + * value is set to open-source-rds-extended-support, which enrolls + * your DB instance into Amazon RDS Extended Support. At the end of standard + * support, you can avoid charges for Extended Support by setting the value to + * open-source-rds-extended-support-disabled. In this case, creating + * the DB instance will fail if the DB major version is past its end of standard + * support date.

      This setting applies only to RDS for MySQL and RDS + * for PostgreSQL. For Amazon Aurora DB instances, the life cycle type is managed + * by the DB cluster.

      You can use this setting to enroll your DB instance + * into Amazon RDS Extended Support. With RDS Extended Support, you can run the + * selected major engine version on your DB instance past the end of standard + * support for that engine version. For more information, see Using + * Amazon RDS Extended Support in the Amazon RDS User Guide.

      + *

      Valid Values: open-source-rds-extended-support | + * open-source-rds-extended-support-disabled

      Default: + * open-source-rds-extended-support

      + */ + inline void SetEngineLifecycleSupport(const char* value) { m_engineLifecycleSupportHasBeenSet = true; m_engineLifecycleSupport.assign(value); } + + /** + *

      The life cycle type for this DB instance.

      By default, this + * value is set to open-source-rds-extended-support, which enrolls + * your DB instance into Amazon RDS Extended Support. At the end of standard + * support, you can avoid charges for Extended Support by setting the value to + * open-source-rds-extended-support-disabled. In this case, creating + * the DB instance will fail if the DB major version is past its end of standard + * support date.

      This setting applies only to RDS for MySQL and RDS + * for PostgreSQL. For Amazon Aurora DB instances, the life cycle type is managed + * by the DB cluster.

      You can use this setting to enroll your DB instance + * into Amazon RDS Extended Support. With RDS Extended Support, you can run the + * selected major engine version on your DB instance past the end of standard + * support for that engine version. For more information, see Using + * Amazon RDS Extended Support in the Amazon RDS User Guide.

      + *

      Valid Values: open-source-rds-extended-support | + * open-source-rds-extended-support-disabled

      Default: + * open-source-rds-extended-support

      + */ + inline CreateDBInstanceRequest& WithEngineLifecycleSupport(const Aws::String& value) { SetEngineLifecycleSupport(value); return *this;} + + /** + *

      The life cycle type for this DB instance.

      By default, this + * value is set to open-source-rds-extended-support, which enrolls + * your DB instance into Amazon RDS Extended Support. At the end of standard + * support, you can avoid charges for Extended Support by setting the value to + * open-source-rds-extended-support-disabled. In this case, creating + * the DB instance will fail if the DB major version is past its end of standard + * support date.

      This setting applies only to RDS for MySQL and RDS + * for PostgreSQL. For Amazon Aurora DB instances, the life cycle type is managed + * by the DB cluster.

      You can use this setting to enroll your DB instance + * into Amazon RDS Extended Support. With RDS Extended Support, you can run the + * selected major engine version on your DB instance past the end of standard + * support for that engine version. For more information, see Using + * Amazon RDS Extended Support in the Amazon RDS User Guide.

      + *

      Valid Values: open-source-rds-extended-support | + * open-source-rds-extended-support-disabled

      Default: + * open-source-rds-extended-support

      + */ + inline CreateDBInstanceRequest& WithEngineLifecycleSupport(Aws::String&& value) { SetEngineLifecycleSupport(std::move(value)); return *this;} + + /** + *

      The life cycle type for this DB instance.

      By default, this + * value is set to open-source-rds-extended-support, which enrolls + * your DB instance into Amazon RDS Extended Support. At the end of standard + * support, you can avoid charges for Extended Support by setting the value to + * open-source-rds-extended-support-disabled. In this case, creating + * the DB instance will fail if the DB major version is past its end of standard + * support date.

      This setting applies only to RDS for MySQL and RDS + * for PostgreSQL. For Amazon Aurora DB instances, the life cycle type is managed + * by the DB cluster.

      You can use this setting to enroll your DB instance + * into Amazon RDS Extended Support. With RDS Extended Support, you can run the + * selected major engine version on your DB instance past the end of standard + * support for that engine version. For more information, see Using + * Amazon RDS Extended Support in the Amazon RDS User Guide.

      + *

      Valid Values: open-source-rds-extended-support | + * open-source-rds-extended-support-disabled

      Default: + * open-source-rds-extended-support

      + */ + inline CreateDBInstanceRequest& WithEngineLifecycleSupport(const char* value) { SetEngineLifecycleSupport(value); return *this;} + private: Aws::String m_dBName; @@ -5798,6 +5967,9 @@ namespace Model bool m_multiTenant; bool m_multiTenantHasBeenSet = false; + + Aws::String m_engineLifecycleSupport; + bool m_engineLifecycleSupportHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-rds/include/aws/rds/model/CreateEventSubscriptionRequest.h b/generated/src/aws-cpp-sdk-rds/include/aws/rds/model/CreateEventSubscriptionRequest.h index 50846ac79f4..1cc1d562f94 100644 --- a/generated/src/aws-cpp-sdk-rds/include/aws/rds/model/CreateEventSubscriptionRequest.h +++ b/generated/src/aws-cpp-sdk-rds/include/aws/rds/model/CreateEventSubscriptionRequest.h @@ -183,11 +183,10 @@ namespace Model *

      The type of source that is generating the events. For example, if you want to * be notified of events generated by a DB instance, you set this parameter to * db-instance. For RDS Proxy events, specify db-proxy. - * If this value isn't specified, all events are returned.

      Valid Values: - * db-instance | db-cluster | - * db-parameter-group | db-security-group | - * db-snapshot | db-cluster-snapshot | - * db-proxy

      + * If this value isn't specified, all events are returned.

      Valid + * Values: db-instance | db-cluster | db-parameter-group | db-security-group + * | db-snapshot | db-cluster-snapshot | db-proxy | zero-etl | + * custom-engine-version | blue-green-deployment

      */ inline const Aws::String& GetSourceType() const{ return m_sourceType; } @@ -195,11 +194,10 @@ namespace Model *

      The type of source that is generating the events. For example, if you want to * be notified of events generated by a DB instance, you set this parameter to * db-instance. For RDS Proxy events, specify db-proxy. - * If this value isn't specified, all events are returned.

      Valid Values: - * db-instance | db-cluster | - * db-parameter-group | db-security-group | - * db-snapshot | db-cluster-snapshot | - * db-proxy

      + * If this value isn't specified, all events are returned.

      Valid + * Values: db-instance | db-cluster | db-parameter-group | db-security-group + * | db-snapshot | db-cluster-snapshot | db-proxy | zero-etl | + * custom-engine-version | blue-green-deployment

      */ inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; } @@ -207,11 +205,10 @@ namespace Model *

      The type of source that is generating the events. For example, if you want to * be notified of events generated by a DB instance, you set this parameter to * db-instance. For RDS Proxy events, specify db-proxy. - * If this value isn't specified, all events are returned.

      Valid Values: - * db-instance | db-cluster | - * db-parameter-group | db-security-group | - * db-snapshot | db-cluster-snapshot | - * db-proxy

      + * If this value isn't specified, all events are returned.

      Valid + * Values: db-instance | db-cluster | db-parameter-group | db-security-group + * | db-snapshot | db-cluster-snapshot | db-proxy | zero-etl | + * custom-engine-version | blue-green-deployment

      */ inline void SetSourceType(const Aws::String& value) { m_sourceTypeHasBeenSet = true; m_sourceType = value; } @@ -219,11 +216,10 @@ namespace Model *

      The type of source that is generating the events. For example, if you want to * be notified of events generated by a DB instance, you set this parameter to * db-instance. For RDS Proxy events, specify db-proxy. - * If this value isn't specified, all events are returned.

      Valid Values: - * db-instance | db-cluster | - * db-parameter-group | db-security-group | - * db-snapshot | db-cluster-snapshot | - * db-proxy

      + * If this value isn't specified, all events are returned.

      Valid + * Values: db-instance | db-cluster | db-parameter-group | db-security-group + * | db-snapshot | db-cluster-snapshot | db-proxy | zero-etl | + * custom-engine-version | blue-green-deployment

      */ inline void SetSourceType(Aws::String&& value) { m_sourceTypeHasBeenSet = true; m_sourceType = std::move(value); } @@ -231,11 +227,10 @@ namespace Model *

      The type of source that is generating the events. For example, if you want to * be notified of events generated by a DB instance, you set this parameter to * db-instance. For RDS Proxy events, specify db-proxy. - * If this value isn't specified, all events are returned.

      Valid Values: - * db-instance | db-cluster | - * db-parameter-group | db-security-group | - * db-snapshot | db-cluster-snapshot | - * db-proxy

      + * If this value isn't specified, all events are returned.

      Valid + * Values: db-instance | db-cluster | db-parameter-group | db-security-group + * | db-snapshot | db-cluster-snapshot | db-proxy | zero-etl | + * custom-engine-version | blue-green-deployment

      */ inline void SetSourceType(const char* value) { m_sourceTypeHasBeenSet = true; m_sourceType.assign(value); } @@ -243,11 +238,10 @@ namespace Model *

      The type of source that is generating the events. For example, if you want to * be notified of events generated by a DB instance, you set this parameter to * db-instance. For RDS Proxy events, specify db-proxy. - * If this value isn't specified, all events are returned.

      Valid Values: - * db-instance | db-cluster | - * db-parameter-group | db-security-group | - * db-snapshot | db-cluster-snapshot | - * db-proxy

      + * If this value isn't specified, all events are returned.

      Valid + * Values: db-instance | db-cluster | db-parameter-group | db-security-group + * | db-snapshot | db-cluster-snapshot | db-proxy | zero-etl | + * custom-engine-version | blue-green-deployment

      */ inline CreateEventSubscriptionRequest& WithSourceType(const Aws::String& value) { SetSourceType(value); return *this;} @@ -255,11 +249,10 @@ namespace Model *

      The type of source that is generating the events. For example, if you want to * be notified of events generated by a DB instance, you set this parameter to * db-instance. For RDS Proxy events, specify db-proxy. - * If this value isn't specified, all events are returned.

      Valid Values: - * db-instance | db-cluster | - * db-parameter-group | db-security-group | - * db-snapshot | db-cluster-snapshot | - * db-proxy

      + * If this value isn't specified, all events are returned.

      Valid + * Values: db-instance | db-cluster | db-parameter-group | db-security-group + * | db-snapshot | db-cluster-snapshot | db-proxy | zero-etl | + * custom-engine-version | blue-green-deployment

      */ inline CreateEventSubscriptionRequest& WithSourceType(Aws::String&& value) { SetSourceType(std::move(value)); return *this;} @@ -267,11 +260,10 @@ namespace Model *

      The type of source that is generating the events. For example, if you want to * be notified of events generated by a DB instance, you set this parameter to * db-instance. For RDS Proxy events, specify db-proxy. - * If this value isn't specified, all events are returned.

      Valid Values: - * db-instance | db-cluster | - * db-parameter-group | db-security-group | - * db-snapshot | db-cluster-snapshot | - * db-proxy

      + * If this value isn't specified, all events are returned.

      Valid + * Values: db-instance | db-cluster | db-parameter-group | db-security-group + * | db-snapshot | db-cluster-snapshot | db-proxy | zero-etl | + * custom-engine-version | blue-green-deployment

      */ inline CreateEventSubscriptionRequest& WithSourceType(const char* value) { SetSourceType(value); return *this;} diff --git a/generated/src/aws-cpp-sdk-rds/include/aws/rds/model/CreateGlobalClusterRequest.h b/generated/src/aws-cpp-sdk-rds/include/aws/rds/model/CreateGlobalClusterRequest.h index ec4d5ae73e3..b40c004c8e4 100644 --- a/generated/src/aws-cpp-sdk-rds/include/aws/rds/model/CreateGlobalClusterRequest.h +++ b/generated/src/aws-cpp-sdk-rds/include/aws/rds/model/CreateGlobalClusterRequest.h @@ -312,6 +312,167 @@ namespace Model inline CreateGlobalClusterRequest& WithEngineVersion(const char* value) { SetEngineVersion(value); return *this;} + /** + *

      The life cycle type for this global database cluster.

      By + * default, this value is set to open-source-rds-extended-support, + * which enrolls your global cluster into Amazon RDS Extended Support. At the end + * of standard support, you can avoid charges for Extended Support by setting the + * value to open-source-rds-extended-support-disabled. In this case, + * creating the global cluster will fail if the DB major version is past its end of + * standard support date.

      This setting only applies to Aurora + * PostgreSQL-based global databases.

      You can use this setting to enroll + * your global cluster into Amazon RDS Extended Support. With RDS Extended Support, + * you can run the selected major engine version on your global cluster past the + * end of standard support for that engine version. For more information, see Using + * Amazon RDS Extended Support in the Amazon Aurora User Guide.

      + *

      Valid Values: open-source-rds-extended-support | + * open-source-rds-extended-support-disabled

      Default: + * open-source-rds-extended-support

      + */ + inline const Aws::String& GetEngineLifecycleSupport() const{ return m_engineLifecycleSupport; } + + /** + *

      The life cycle type for this global database cluster.

      By + * default, this value is set to open-source-rds-extended-support, + * which enrolls your global cluster into Amazon RDS Extended Support. At the end + * of standard support, you can avoid charges for Extended Support by setting the + * value to open-source-rds-extended-support-disabled. In this case, + * creating the global cluster will fail if the DB major version is past its end of + * standard support date.

      This setting only applies to Aurora + * PostgreSQL-based global databases.

      You can use this setting to enroll + * your global cluster into Amazon RDS Extended Support. With RDS Extended Support, + * you can run the selected major engine version on your global cluster past the + * end of standard support for that engine version. For more information, see Using + * Amazon RDS Extended Support in the Amazon Aurora User Guide.

      + *

      Valid Values: open-source-rds-extended-support | + * open-source-rds-extended-support-disabled

      Default: + * open-source-rds-extended-support

      + */ + inline bool EngineLifecycleSupportHasBeenSet() const { return m_engineLifecycleSupportHasBeenSet; } + + /** + *

      The life cycle type for this global database cluster.

      By + * default, this value is set to open-source-rds-extended-support, + * which enrolls your global cluster into Amazon RDS Extended Support. At the end + * of standard support, you can avoid charges for Extended Support by setting the + * value to open-source-rds-extended-support-disabled. In this case, + * creating the global cluster will fail if the DB major version is past its end of + * standard support date.

      This setting only applies to Aurora + * PostgreSQL-based global databases.

      You can use this setting to enroll + * your global cluster into Amazon RDS Extended Support. With RDS Extended Support, + * you can run the selected major engine version on your global cluster past the + * end of standard support for that engine version. For more information, see Using + * Amazon RDS Extended Support in the Amazon Aurora User Guide.

      + *

      Valid Values: open-source-rds-extended-support | + * open-source-rds-extended-support-disabled

      Default: + * open-source-rds-extended-support

      + */ + inline void SetEngineLifecycleSupport(const Aws::String& value) { m_engineLifecycleSupportHasBeenSet = true; m_engineLifecycleSupport = value; } + + /** + *

      The life cycle type for this global database cluster.

      By + * default, this value is set to open-source-rds-extended-support, + * which enrolls your global cluster into Amazon RDS Extended Support. At the end + * of standard support, you can avoid charges for Extended Support by setting the + * value to open-source-rds-extended-support-disabled. In this case, + * creating the global cluster will fail if the DB major version is past its end of + * standard support date.

      This setting only applies to Aurora + * PostgreSQL-based global databases.

      You can use this setting to enroll + * your global cluster into Amazon RDS Extended Support. With RDS Extended Support, + * you can run the selected major engine version on your global cluster past the + * end of standard support for that engine version. For more information, see Using + * Amazon RDS Extended Support in the Amazon Aurora User Guide.

      + *

      Valid Values: open-source-rds-extended-support | + * open-source-rds-extended-support-disabled

      Default: + * open-source-rds-extended-support

      + */ + inline void SetEngineLifecycleSupport(Aws::String&& value) { m_engineLifecycleSupportHasBeenSet = true; m_engineLifecycleSupport = std::move(value); } + + /** + *

      The life cycle type for this global database cluster.

      By + * default, this value is set to open-source-rds-extended-support, + * which enrolls your global cluster into Amazon RDS Extended Support. At the end + * of standard support, you can avoid charges for Extended Support by setting the + * value to open-source-rds-extended-support-disabled. In this case, + * creating the global cluster will fail if the DB major version is past its end of + * standard support date.

      This setting only applies to Aurora + * PostgreSQL-based global databases.

      You can use this setting to enroll + * your global cluster into Amazon RDS Extended Support. With RDS Extended Support, + * you can run the selected major engine version on your global cluster past the + * end of standard support for that engine version. For more information, see Using + * Amazon RDS Extended Support in the Amazon Aurora User Guide.

      + *

      Valid Values: open-source-rds-extended-support | + * open-source-rds-extended-support-disabled

      Default: + * open-source-rds-extended-support

      + */ + inline void SetEngineLifecycleSupport(const char* value) { m_engineLifecycleSupportHasBeenSet = true; m_engineLifecycleSupport.assign(value); } + + /** + *

      The life cycle type for this global database cluster.

      By + * default, this value is set to open-source-rds-extended-support, + * which enrolls your global cluster into Amazon RDS Extended Support. At the end + * of standard support, you can avoid charges for Extended Support by setting the + * value to open-source-rds-extended-support-disabled. In this case, + * creating the global cluster will fail if the DB major version is past its end of + * standard support date.

      This setting only applies to Aurora + * PostgreSQL-based global databases.

      You can use this setting to enroll + * your global cluster into Amazon RDS Extended Support. With RDS Extended Support, + * you can run the selected major engine version on your global cluster past the + * end of standard support for that engine version. For more information, see Using + * Amazon RDS Extended Support in the Amazon Aurora User Guide.

      + *

      Valid Values: open-source-rds-extended-support | + * open-source-rds-extended-support-disabled

      Default: + * open-source-rds-extended-support

      + */ + inline CreateGlobalClusterRequest& WithEngineLifecycleSupport(const Aws::String& value) { SetEngineLifecycleSupport(value); return *this;} + + /** + *

      The life cycle type for this global database cluster.

      By + * default, this value is set to open-source-rds-extended-support, + * which enrolls your global cluster into Amazon RDS Extended Support. At the end + * of standard support, you can avoid charges for Extended Support by setting the + * value to open-source-rds-extended-support-disabled. In this case, + * creating the global cluster will fail if the DB major version is past its end of + * standard support date.

      This setting only applies to Aurora + * PostgreSQL-based global databases.

      You can use this setting to enroll + * your global cluster into Amazon RDS Extended Support. With RDS Extended Support, + * you can run the selected major engine version on your global cluster past the + * end of standard support for that engine version. For more information, see Using + * Amazon RDS Extended Support in the Amazon Aurora User Guide.

      + *

      Valid Values: open-source-rds-extended-support | + * open-source-rds-extended-support-disabled

      Default: + * open-source-rds-extended-support

      + */ + inline CreateGlobalClusterRequest& WithEngineLifecycleSupport(Aws::String&& value) { SetEngineLifecycleSupport(std::move(value)); return *this;} + + /** + *

      The life cycle type for this global database cluster.

      By + * default, this value is set to open-source-rds-extended-support, + * which enrolls your global cluster into Amazon RDS Extended Support. At the end + * of standard support, you can avoid charges for Extended Support by setting the + * value to open-source-rds-extended-support-disabled. In this case, + * creating the global cluster will fail if the DB major version is past its end of + * standard support date.

      This setting only applies to Aurora + * PostgreSQL-based global databases.

      You can use this setting to enroll + * your global cluster into Amazon RDS Extended Support. With RDS Extended Support, + * you can run the selected major engine version on your global cluster past the + * end of standard support for that engine version. For more information, see Using + * Amazon RDS Extended Support in the Amazon Aurora User Guide.

      + *

      Valid Values: open-source-rds-extended-support | + * open-source-rds-extended-support-disabled

      Default: + * open-source-rds-extended-support

      + */ + inline CreateGlobalClusterRequest& WithEngineLifecycleSupport(const char* value) { SetEngineLifecycleSupport(value); return *this;} + + /** *

      Specifies whether to enable deletion protection for the new global database * cluster. The global database can't be deleted when deletion protection is @@ -460,6 +621,9 @@ namespace Model Aws::String m_engineVersion; bool m_engineVersionHasBeenSet = false; + Aws::String m_engineLifecycleSupport; + bool m_engineLifecycleSupportHasBeenSet = false; + bool m_deletionProtection; bool m_deletionProtectionHasBeenSet = false; diff --git a/generated/src/aws-cpp-sdk-rds/include/aws/rds/model/DBCluster.h b/generated/src/aws-cpp-sdk-rds/include/aws/rds/model/DBCluster.h index cba4713bd53..56b00162929 100644 --- a/generated/src/aws-cpp-sdk-rds/include/aws/rds/model/DBCluster.h +++ b/generated/src/aws-cpp-sdk-rds/include/aws/rds/model/DBCluster.h @@ -3393,6 +3393,55 @@ namespace Model inline DBCluster& WithCertificateDetails(CertificateDetails&& value) { SetCertificateDetails(std::move(value)); return *this;} + + /** + *

      The life cycle type for the DB cluster.

      For more information, see + * CreateDBCluster.

      + */ + inline const Aws::String& GetEngineLifecycleSupport() const{ return m_engineLifecycleSupport; } + + /** + *

      The life cycle type for the DB cluster.

      For more information, see + * CreateDBCluster.

      + */ + inline bool EngineLifecycleSupportHasBeenSet() const { return m_engineLifecycleSupportHasBeenSet; } + + /** + *

      The life cycle type for the DB cluster.

      For more information, see + * CreateDBCluster.

      + */ + inline void SetEngineLifecycleSupport(const Aws::String& value) { m_engineLifecycleSupportHasBeenSet = true; m_engineLifecycleSupport = value; } + + /** + *

      The life cycle type for the DB cluster.

      For more information, see + * CreateDBCluster.

      + */ + inline void SetEngineLifecycleSupport(Aws::String&& value) { m_engineLifecycleSupportHasBeenSet = true; m_engineLifecycleSupport = std::move(value); } + + /** + *

      The life cycle type for the DB cluster.

      For more information, see + * CreateDBCluster.

      + */ + inline void SetEngineLifecycleSupport(const char* value) { m_engineLifecycleSupportHasBeenSet = true; m_engineLifecycleSupport.assign(value); } + + /** + *

      The life cycle type for the DB cluster.

      For more information, see + * CreateDBCluster.

      + */ + inline DBCluster& WithEngineLifecycleSupport(const Aws::String& value) { SetEngineLifecycleSupport(value); return *this;} + + /** + *

      The life cycle type for the DB cluster.

      For more information, see + * CreateDBCluster.

      + */ + inline DBCluster& WithEngineLifecycleSupport(Aws::String&& value) { SetEngineLifecycleSupport(std::move(value)); return *this;} + + /** + *

      The life cycle type for the DB cluster.

      For more information, see + * CreateDBCluster.

      + */ + inline DBCluster& WithEngineLifecycleSupport(const char* value) { SetEngineLifecycleSupport(value); return *this;} + private: int m_allocatedStorage; @@ -3631,6 +3680,9 @@ namespace Model CertificateDetails m_certificateDetails; bool m_certificateDetailsHasBeenSet = false; + + Aws::String m_engineLifecycleSupport; + bool m_engineLifecycleSupportHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-rds/include/aws/rds/model/DBInstance.h b/generated/src/aws-cpp-sdk-rds/include/aws/rds/model/DBInstance.h index 6aaf9b5d452..76bfb5bb4fd 100644 --- a/generated/src/aws-cpp-sdk-rds/include/aws/rds/model/DBInstance.h +++ b/generated/src/aws-cpp-sdk-rds/include/aws/rds/model/DBInstance.h @@ -3955,6 +3955,55 @@ namespace Model */ inline DBInstance& WithMultiTenant(bool value) { SetMultiTenant(value); return *this;} + + /** + *

      The life cycle type for the DB instance.

      For more information, see + * CreateDBInstance.

      + */ + inline const Aws::String& GetEngineLifecycleSupport() const{ return m_engineLifecycleSupport; } + + /** + *

      The life cycle type for the DB instance.

      For more information, see + * CreateDBInstance.

      + */ + inline bool EngineLifecycleSupportHasBeenSet() const { return m_engineLifecycleSupportHasBeenSet; } + + /** + *

      The life cycle type for the DB instance.

      For more information, see + * CreateDBInstance.

      + */ + inline void SetEngineLifecycleSupport(const Aws::String& value) { m_engineLifecycleSupportHasBeenSet = true; m_engineLifecycleSupport = value; } + + /** + *

      The life cycle type for the DB instance.

      For more information, see + * CreateDBInstance.

      + */ + inline void SetEngineLifecycleSupport(Aws::String&& value) { m_engineLifecycleSupportHasBeenSet = true; m_engineLifecycleSupport = std::move(value); } + + /** + *

      The life cycle type for the DB instance.

      For more information, see + * CreateDBInstance.

      + */ + inline void SetEngineLifecycleSupport(const char* value) { m_engineLifecycleSupportHasBeenSet = true; m_engineLifecycleSupport.assign(value); } + + /** + *

      The life cycle type for the DB instance.

      For more information, see + * CreateDBInstance.

      + */ + inline DBInstance& WithEngineLifecycleSupport(const Aws::String& value) { SetEngineLifecycleSupport(value); return *this;} + + /** + *

      The life cycle type for the DB instance.

      For more information, see + * CreateDBInstance.

      + */ + inline DBInstance& WithEngineLifecycleSupport(Aws::String&& value) { SetEngineLifecycleSupport(std::move(value)); return *this;} + + /** + *

      The life cycle type for the DB instance.

      For more information, see + * CreateDBInstance.

      + */ + inline DBInstance& WithEngineLifecycleSupport(const char* value) { SetEngineLifecycleSupport(value); return *this;} + private: Aws::String m_dBInstanceIdentifier; @@ -4211,6 +4260,9 @@ namespace Model bool m_multiTenant; bool m_multiTenantHasBeenSet = false; + + Aws::String m_engineLifecycleSupport; + bool m_engineLifecycleSupportHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-rds/include/aws/rds/model/GlobalCluster.h b/generated/src/aws-cpp-sdk-rds/include/aws/rds/model/GlobalCluster.h index 8700908e4c7..5e271391e13 100644 --- a/generated/src/aws-cpp-sdk-rds/include/aws/rds/model/GlobalCluster.h +++ b/generated/src/aws-cpp-sdk-rds/include/aws/rds/model/GlobalCluster.h @@ -321,6 +321,55 @@ namespace Model inline GlobalCluster& WithEngineVersion(const char* value) { SetEngineVersion(value); return *this;} + /** + *

      The life cycle type for the global cluster.

      For more information, see + * CreateGlobalCluster.

      + */ + inline const Aws::String& GetEngineLifecycleSupport() const{ return m_engineLifecycleSupport; } + + /** + *

      The life cycle type for the global cluster.

      For more information, see + * CreateGlobalCluster.

      + */ + inline bool EngineLifecycleSupportHasBeenSet() const { return m_engineLifecycleSupportHasBeenSet; } + + /** + *

      The life cycle type for the global cluster.

      For more information, see + * CreateGlobalCluster.

      + */ + inline void SetEngineLifecycleSupport(const Aws::String& value) { m_engineLifecycleSupportHasBeenSet = true; m_engineLifecycleSupport = value; } + + /** + *

      The life cycle type for the global cluster.

      For more information, see + * CreateGlobalCluster.

      + */ + inline void SetEngineLifecycleSupport(Aws::String&& value) { m_engineLifecycleSupportHasBeenSet = true; m_engineLifecycleSupport = std::move(value); } + + /** + *

      The life cycle type for the global cluster.

      For more information, see + * CreateGlobalCluster.

      + */ + inline void SetEngineLifecycleSupport(const char* value) { m_engineLifecycleSupportHasBeenSet = true; m_engineLifecycleSupport.assign(value); } + + /** + *

      The life cycle type for the global cluster.

      For more information, see + * CreateGlobalCluster.

      + */ + inline GlobalCluster& WithEngineLifecycleSupport(const Aws::String& value) { SetEngineLifecycleSupport(value); return *this;} + + /** + *

      The life cycle type for the global cluster.

      For more information, see + * CreateGlobalCluster.

      + */ + inline GlobalCluster& WithEngineLifecycleSupport(Aws::String&& value) { SetEngineLifecycleSupport(std::move(value)); return *this;} + + /** + *

      The life cycle type for the global cluster.

      For more information, see + * CreateGlobalCluster.

      + */ + inline GlobalCluster& WithEngineLifecycleSupport(const char* value) { SetEngineLifecycleSupport(value); return *this;} + + /** *

      The default database name within the new global database cluster.

      */ @@ -527,6 +576,9 @@ namespace Model Aws::String m_engineVersion; bool m_engineVersionHasBeenSet = false; + Aws::String m_engineLifecycleSupport; + bool m_engineLifecycleSupportHasBeenSet = false; + Aws::String m_databaseName; bool m_databaseNameHasBeenSet = false; diff --git a/generated/src/aws-cpp-sdk-rds/include/aws/rds/model/ModifyEventSubscriptionRequest.h b/generated/src/aws-cpp-sdk-rds/include/aws/rds/model/ModifyEventSubscriptionRequest.h index 75b0e09e336..c267667f045 100644 --- a/generated/src/aws-cpp-sdk-rds/include/aws/rds/model/ModifyEventSubscriptionRequest.h +++ b/generated/src/aws-cpp-sdk-rds/include/aws/rds/model/ModifyEventSubscriptionRequest.h @@ -142,11 +142,10 @@ namespace Model *

      The type of source that is generating the events. For example, if you want to * be notified of events generated by a DB instance, you would set this parameter * to db-instance. For RDS Proxy events, specify db-proxy. If this - * value isn't specified, all events are returned.

      Valid Values: - * db-instance | db-cluster | - * db-parameter-group | db-security-group | - * db-snapshot | db-cluster-snapshot | - * db-proxy

      + * value isn't specified, all events are returned.

      Valid Values: + * db-instance | db-cluster | db-parameter-group | db-security-group | db-snapshot + * | db-cluster-snapshot | db-proxy | zero-etl | custom-engine-version | + * blue-green-deployment

      */ inline const Aws::String& GetSourceType() const{ return m_sourceType; } @@ -154,11 +153,10 @@ namespace Model *

      The type of source that is generating the events. For example, if you want to * be notified of events generated by a DB instance, you would set this parameter * to db-instance. For RDS Proxy events, specify db-proxy. If this - * value isn't specified, all events are returned.

      Valid Values: - * db-instance | db-cluster | - * db-parameter-group | db-security-group | - * db-snapshot | db-cluster-snapshot | - * db-proxy

      + * value isn't specified, all events are returned.

      Valid Values: + * db-instance | db-cluster | db-parameter-group | db-security-group | db-snapshot + * | db-cluster-snapshot | db-proxy | zero-etl | custom-engine-version | + * blue-green-deployment

      */ inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; } @@ -166,11 +164,10 @@ namespace Model *

      The type of source that is generating the events. For example, if you want to * be notified of events generated by a DB instance, you would set this parameter * to db-instance. For RDS Proxy events, specify db-proxy. If this - * value isn't specified, all events are returned.

      Valid Values: - * db-instance | db-cluster | - * db-parameter-group | db-security-group | - * db-snapshot | db-cluster-snapshot | - * db-proxy

      + * value isn't specified, all events are returned.

      Valid Values: + * db-instance | db-cluster | db-parameter-group | db-security-group | db-snapshot + * | db-cluster-snapshot | db-proxy | zero-etl | custom-engine-version | + * blue-green-deployment

      */ inline void SetSourceType(const Aws::String& value) { m_sourceTypeHasBeenSet = true; m_sourceType = value; } @@ -178,11 +175,10 @@ namespace Model *

      The type of source that is generating the events. For example, if you want to * be notified of events generated by a DB instance, you would set this parameter * to db-instance. For RDS Proxy events, specify db-proxy. If this - * value isn't specified, all events are returned.

      Valid Values: - * db-instance | db-cluster | - * db-parameter-group | db-security-group | - * db-snapshot | db-cluster-snapshot | - * db-proxy

      + * value isn't specified, all events are returned.

      Valid Values: + * db-instance | db-cluster | db-parameter-group | db-security-group | db-snapshot + * | db-cluster-snapshot | db-proxy | zero-etl | custom-engine-version | + * blue-green-deployment

      */ inline void SetSourceType(Aws::String&& value) { m_sourceTypeHasBeenSet = true; m_sourceType = std::move(value); } @@ -190,11 +186,10 @@ namespace Model *

      The type of source that is generating the events. For example, if you want to * be notified of events generated by a DB instance, you would set this parameter * to db-instance. For RDS Proxy events, specify db-proxy. If this - * value isn't specified, all events are returned.

      Valid Values: - * db-instance | db-cluster | - * db-parameter-group | db-security-group | - * db-snapshot | db-cluster-snapshot | - * db-proxy

      + * value isn't specified, all events are returned.

      Valid Values: + * db-instance | db-cluster | db-parameter-group | db-security-group | db-snapshot + * | db-cluster-snapshot | db-proxy | zero-etl | custom-engine-version | + * blue-green-deployment

      */ inline void SetSourceType(const char* value) { m_sourceTypeHasBeenSet = true; m_sourceType.assign(value); } @@ -202,11 +197,10 @@ namespace Model *

      The type of source that is generating the events. For example, if you want to * be notified of events generated by a DB instance, you would set this parameter * to db-instance. For RDS Proxy events, specify db-proxy. If this - * value isn't specified, all events are returned.

      Valid Values: - * db-instance | db-cluster | - * db-parameter-group | db-security-group | - * db-snapshot | db-cluster-snapshot | - * db-proxy

      + * value isn't specified, all events are returned.

      Valid Values: + * db-instance | db-cluster | db-parameter-group | db-security-group | db-snapshot + * | db-cluster-snapshot | db-proxy | zero-etl | custom-engine-version | + * blue-green-deployment

      */ inline ModifyEventSubscriptionRequest& WithSourceType(const Aws::String& value) { SetSourceType(value); return *this;} @@ -214,11 +208,10 @@ namespace Model *

      The type of source that is generating the events. For example, if you want to * be notified of events generated by a DB instance, you would set this parameter * to db-instance. For RDS Proxy events, specify db-proxy. If this - * value isn't specified, all events are returned.

      Valid Values: - * db-instance | db-cluster | - * db-parameter-group | db-security-group | - * db-snapshot | db-cluster-snapshot | - * db-proxy

      + * value isn't specified, all events are returned.

      Valid Values: + * db-instance | db-cluster | db-parameter-group | db-security-group | db-snapshot + * | db-cluster-snapshot | db-proxy | zero-etl | custom-engine-version | + * blue-green-deployment

      */ inline ModifyEventSubscriptionRequest& WithSourceType(Aws::String&& value) { SetSourceType(std::move(value)); return *this;} @@ -226,11 +219,10 @@ namespace Model *

      The type of source that is generating the events. For example, if you want to * be notified of events generated by a DB instance, you would set this parameter * to db-instance. For RDS Proxy events, specify db-proxy. If this - * value isn't specified, all events are returned.

      Valid Values: - * db-instance | db-cluster | - * db-parameter-group | db-security-group | - * db-snapshot | db-cluster-snapshot | - * db-proxy

      + * value isn't specified, all events are returned.

      Valid Values: + * db-instance | db-cluster | db-parameter-group | db-security-group | db-snapshot + * | db-cluster-snapshot | db-proxy | zero-etl | custom-engine-version | + * blue-green-deployment

      */ inline ModifyEventSubscriptionRequest& WithSourceType(const char* value) { SetSourceType(value); return *this;} diff --git a/generated/src/aws-cpp-sdk-rds/include/aws/rds/model/PendingMaintenanceAction.h b/generated/src/aws-cpp-sdk-rds/include/aws/rds/model/PendingMaintenanceAction.h index afbc4a1df61..8a603aa5a18 100644 --- a/generated/src/aws-cpp-sdk-rds/include/aws/rds/model/PendingMaintenanceAction.h +++ b/generated/src/aws-cpp-sdk-rds/include/aws/rds/model/PendingMaintenanceAction.h @@ -43,57 +43,73 @@ namespace Model /** *

      The type of pending maintenance action that is available for the resource. - * Valid actions are system-update, db-upgrade, - * hardware-maintenance, and ca-certificate-rotation.

      + *

      For more information about maintenance actions, see Maintaining + * a DB instance.

      Valid Values: system-update | db-upgrade | + * hardware-maintenance | ca-certificate-rotation

      */ inline const Aws::String& GetAction() const{ return m_action; } /** *

      The type of pending maintenance action that is available for the resource. - * Valid actions are system-update, db-upgrade, - * hardware-maintenance, and ca-certificate-rotation.

      + *

      For more information about maintenance actions, see Maintaining + * a DB instance.

      Valid Values: system-update | db-upgrade | + * hardware-maintenance | ca-certificate-rotation

      */ inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; } /** *

      The type of pending maintenance action that is available for the resource. - * Valid actions are system-update, db-upgrade, - * hardware-maintenance, and ca-certificate-rotation.

      + *

      For more information about maintenance actions, see Maintaining + * a DB instance.

      Valid Values: system-update | db-upgrade | + * hardware-maintenance | ca-certificate-rotation

      */ inline void SetAction(const Aws::String& value) { m_actionHasBeenSet = true; m_action = value; } /** *

      The type of pending maintenance action that is available for the resource. - * Valid actions are system-update, db-upgrade, - * hardware-maintenance, and ca-certificate-rotation.

      + *

      For more information about maintenance actions, see Maintaining + * a DB instance.

      Valid Values: system-update | db-upgrade | + * hardware-maintenance | ca-certificate-rotation

      */ inline void SetAction(Aws::String&& value) { m_actionHasBeenSet = true; m_action = std::move(value); } /** *

      The type of pending maintenance action that is available for the resource. - * Valid actions are system-update, db-upgrade, - * hardware-maintenance, and ca-certificate-rotation.

      + *

      For more information about maintenance actions, see Maintaining + * a DB instance.

      Valid Values: system-update | db-upgrade | + * hardware-maintenance | ca-certificate-rotation

      */ inline void SetAction(const char* value) { m_actionHasBeenSet = true; m_action.assign(value); } /** *

      The type of pending maintenance action that is available for the resource. - * Valid actions are system-update, db-upgrade, - * hardware-maintenance, and ca-certificate-rotation.

      + *

      For more information about maintenance actions, see Maintaining + * a DB instance.

      Valid Values: system-update | db-upgrade | + * hardware-maintenance | ca-certificate-rotation

      */ inline PendingMaintenanceAction& WithAction(const Aws::String& value) { SetAction(value); return *this;} /** *

      The type of pending maintenance action that is available for the resource. - * Valid actions are system-update, db-upgrade, - * hardware-maintenance, and ca-certificate-rotation.

      + *

      For more information about maintenance actions, see Maintaining + * a DB instance.

      Valid Values: system-update | db-upgrade | + * hardware-maintenance | ca-certificate-rotation

      */ inline PendingMaintenanceAction& WithAction(Aws::String&& value) { SetAction(std::move(value)); return *this;} /** *

      The type of pending maintenance action that is available for the resource. - * Valid actions are system-update, db-upgrade, - * hardware-maintenance, and ca-certificate-rotation.

      + *

      For more information about maintenance actions, see Maintaining + * a DB instance.

      Valid Values: system-update | db-upgrade | + * hardware-maintenance | ca-certificate-rotation

      */ inline PendingMaintenanceAction& WithAction(const char* value) { SetAction(value); return *this;} diff --git a/generated/src/aws-cpp-sdk-rds/include/aws/rds/model/RestoreDBClusterFromS3Request.h b/generated/src/aws-cpp-sdk-rds/include/aws/rds/model/RestoreDBClusterFromS3Request.h index e2aaf46ebe6..ad382f5863f 100644 --- a/generated/src/aws-cpp-sdk-rds/include/aws/rds/model/RestoreDBClusterFromS3Request.h +++ b/generated/src/aws-cpp-sdk-rds/include/aws/rds/model/RestoreDBClusterFromS3Request.h @@ -2224,6 +2224,207 @@ namespace Model */ inline RestoreDBClusterFromS3Request& WithStorageType(const char* value) { SetStorageType(value); return *this;} + + /** + *

      The life cycle type for this DB cluster.

      By default, this value + * is set to open-source-rds-extended-support, which enrolls your DB + * cluster into Amazon RDS Extended Support. At the end of standard support, you + * can avoid charges for Extended Support by setting the value to + * open-source-rds-extended-support-disabled. In this case, RDS + * automatically upgrades your restored DB cluster to a higher engine version, if + * the major engine version is past its end of standard support date.

      + *

      You can use this setting to enroll your DB cluster into Amazon RDS Extended + * Support. With RDS Extended Support, you can run the selected major engine + * version on your DB cluster past the end of standard support for that engine + * version. For more information, see the following sections:

      Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters

      + *

      Valid Values: open-source-rds-extended-support | + * open-source-rds-extended-support-disabled

      Default: + * open-source-rds-extended-support

      + */ + inline const Aws::String& GetEngineLifecycleSupport() const{ return m_engineLifecycleSupport; } + + /** + *

      The life cycle type for this DB cluster.

      By default, this value + * is set to open-source-rds-extended-support, which enrolls your DB + * cluster into Amazon RDS Extended Support. At the end of standard support, you + * can avoid charges for Extended Support by setting the value to + * open-source-rds-extended-support-disabled. In this case, RDS + * automatically upgrades your restored DB cluster to a higher engine version, if + * the major engine version is past its end of standard support date.

      + *

      You can use this setting to enroll your DB cluster into Amazon RDS Extended + * Support. With RDS Extended Support, you can run the selected major engine + * version on your DB cluster past the end of standard support for that engine + * version. For more information, see the following sections:

      Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters

      + *

      Valid Values: open-source-rds-extended-support | + * open-source-rds-extended-support-disabled

      Default: + * open-source-rds-extended-support

      + */ + inline bool EngineLifecycleSupportHasBeenSet() const { return m_engineLifecycleSupportHasBeenSet; } + + /** + *

      The life cycle type for this DB cluster.

      By default, this value + * is set to open-source-rds-extended-support, which enrolls your DB + * cluster into Amazon RDS Extended Support. At the end of standard support, you + * can avoid charges for Extended Support by setting the value to + * open-source-rds-extended-support-disabled. In this case, RDS + * automatically upgrades your restored DB cluster to a higher engine version, if + * the major engine version is past its end of standard support date.

      + *

      You can use this setting to enroll your DB cluster into Amazon RDS Extended + * Support. With RDS Extended Support, you can run the selected major engine + * version on your DB cluster past the end of standard support for that engine + * version. For more information, see the following sections:

      Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters

      + *

      Valid Values: open-source-rds-extended-support | + * open-source-rds-extended-support-disabled

      Default: + * open-source-rds-extended-support

      + */ + inline void SetEngineLifecycleSupport(const Aws::String& value) { m_engineLifecycleSupportHasBeenSet = true; m_engineLifecycleSupport = value; } + + /** + *

      The life cycle type for this DB cluster.

      By default, this value + * is set to open-source-rds-extended-support, which enrolls your DB + * cluster into Amazon RDS Extended Support. At the end of standard support, you + * can avoid charges for Extended Support by setting the value to + * open-source-rds-extended-support-disabled. In this case, RDS + * automatically upgrades your restored DB cluster to a higher engine version, if + * the major engine version is past its end of standard support date.

      + *

      You can use this setting to enroll your DB cluster into Amazon RDS Extended + * Support. With RDS Extended Support, you can run the selected major engine + * version on your DB cluster past the end of standard support for that engine + * version. For more information, see the following sections:

      Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters

      + *

      Valid Values: open-source-rds-extended-support | + * open-source-rds-extended-support-disabled

      Default: + * open-source-rds-extended-support

      + */ + inline void SetEngineLifecycleSupport(Aws::String&& value) { m_engineLifecycleSupportHasBeenSet = true; m_engineLifecycleSupport = std::move(value); } + + /** + *

      The life cycle type for this DB cluster.

      By default, this value + * is set to open-source-rds-extended-support, which enrolls your DB + * cluster into Amazon RDS Extended Support. At the end of standard support, you + * can avoid charges for Extended Support by setting the value to + * open-source-rds-extended-support-disabled. In this case, RDS + * automatically upgrades your restored DB cluster to a higher engine version, if + * the major engine version is past its end of standard support date.

      + *

      You can use this setting to enroll your DB cluster into Amazon RDS Extended + * Support. With RDS Extended Support, you can run the selected major engine + * version on your DB cluster past the end of standard support for that engine + * version. For more information, see the following sections:

      Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters

      + *

      Valid Values: open-source-rds-extended-support | + * open-source-rds-extended-support-disabled

      Default: + * open-source-rds-extended-support

      + */ + inline void SetEngineLifecycleSupport(const char* value) { m_engineLifecycleSupportHasBeenSet = true; m_engineLifecycleSupport.assign(value); } + + /** + *

      The life cycle type for this DB cluster.

      By default, this value + * is set to open-source-rds-extended-support, which enrolls your DB + * cluster into Amazon RDS Extended Support. At the end of standard support, you + * can avoid charges for Extended Support by setting the value to + * open-source-rds-extended-support-disabled. In this case, RDS + * automatically upgrades your restored DB cluster to a higher engine version, if + * the major engine version is past its end of standard support date.

      + *

      You can use this setting to enroll your DB cluster into Amazon RDS Extended + * Support. With RDS Extended Support, you can run the selected major engine + * version on your DB cluster past the end of standard support for that engine + * version. For more information, see the following sections:

      Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters

      + *

      Valid Values: open-source-rds-extended-support | + * open-source-rds-extended-support-disabled

      Default: + * open-source-rds-extended-support

      + */ + inline RestoreDBClusterFromS3Request& WithEngineLifecycleSupport(const Aws::String& value) { SetEngineLifecycleSupport(value); return *this;} + + /** + *

      The life cycle type for this DB cluster.

      By default, this value + * is set to open-source-rds-extended-support, which enrolls your DB + * cluster into Amazon RDS Extended Support. At the end of standard support, you + * can avoid charges for Extended Support by setting the value to + * open-source-rds-extended-support-disabled. In this case, RDS + * automatically upgrades your restored DB cluster to a higher engine version, if + * the major engine version is past its end of standard support date.

      + *

      You can use this setting to enroll your DB cluster into Amazon RDS Extended + * Support. With RDS Extended Support, you can run the selected major engine + * version on your DB cluster past the end of standard support for that engine + * version. For more information, see the following sections:

      Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters

      + *

      Valid Values: open-source-rds-extended-support | + * open-source-rds-extended-support-disabled

      Default: + * open-source-rds-extended-support

      + */ + inline RestoreDBClusterFromS3Request& WithEngineLifecycleSupport(Aws::String&& value) { SetEngineLifecycleSupport(std::move(value)); return *this;} + + /** + *

      The life cycle type for this DB cluster.

      By default, this value + * is set to open-source-rds-extended-support, which enrolls your DB + * cluster into Amazon RDS Extended Support. At the end of standard support, you + * can avoid charges for Extended Support by setting the value to + * open-source-rds-extended-support-disabled. In this case, RDS + * automatically upgrades your restored DB cluster to a higher engine version, if + * the major engine version is past its end of standard support date.

      + *

      You can use this setting to enroll your DB cluster into Amazon RDS Extended + * Support. With RDS Extended Support, you can run the selected major engine + * version on your DB cluster past the end of standard support for that engine + * version. For more information, see the following sections:

      Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters

      + *

      Valid Values: open-source-rds-extended-support | + * open-source-rds-extended-support-disabled

      Default: + * open-source-rds-extended-support

      + */ + inline RestoreDBClusterFromS3Request& WithEngineLifecycleSupport(const char* value) { SetEngineLifecycleSupport(value); return *this;} + private: Aws::Vector m_availabilityZones; @@ -2333,6 +2534,9 @@ namespace Model Aws::String m_storageType; bool m_storageTypeHasBeenSet = false; + + Aws::String m_engineLifecycleSupport; + bool m_engineLifecycleSupportHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-rds/include/aws/rds/model/RestoreDBClusterFromSnapshotRequest.h b/generated/src/aws-cpp-sdk-rds/include/aws/rds/model/RestoreDBClusterFromSnapshotRequest.h index e33ae59f8fc..44ba608cadf 100644 --- a/generated/src/aws-cpp-sdk-rds/include/aws/rds/model/RestoreDBClusterFromSnapshotRequest.h +++ b/generated/src/aws-cpp-sdk-rds/include/aws/rds/model/RestoreDBClusterFromSnapshotRequest.h @@ -2157,6 +2157,207 @@ namespace Model */ inline RestoreDBClusterFromSnapshotRequest& WithRdsCustomClusterConfiguration(RdsCustomClusterConfiguration&& value) { SetRdsCustomClusterConfiguration(std::move(value)); return *this;} + + /** + *

      The life cycle type for this DB cluster.

      By default, this value + * is set to open-source-rds-extended-support, which enrolls your DB + * cluster into Amazon RDS Extended Support. At the end of standard support, you + * can avoid charges for Extended Support by setting the value to + * open-source-rds-extended-support-disabled. In this case, RDS + * automatically upgrades your restored DB cluster to a higher engine version, if + * the major engine version is past its end of standard support date.

      + *

      You can use this setting to enroll your DB cluster into Amazon RDS Extended + * Support. With RDS Extended Support, you can run the selected major engine + * version on your DB cluster past the end of standard support for that engine + * version. For more information, see the following sections:

      Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters

      + *

      Valid Values: open-source-rds-extended-support | + * open-source-rds-extended-support-disabled

      Default: + * open-source-rds-extended-support

      + */ + inline const Aws::String& GetEngineLifecycleSupport() const{ return m_engineLifecycleSupport; } + + /** + *

      The life cycle type for this DB cluster.

      By default, this value + * is set to open-source-rds-extended-support, which enrolls your DB + * cluster into Amazon RDS Extended Support. At the end of standard support, you + * can avoid charges for Extended Support by setting the value to + * open-source-rds-extended-support-disabled. In this case, RDS + * automatically upgrades your restored DB cluster to a higher engine version, if + * the major engine version is past its end of standard support date.

      + *

      You can use this setting to enroll your DB cluster into Amazon RDS Extended + * Support. With RDS Extended Support, you can run the selected major engine + * version on your DB cluster past the end of standard support for that engine + * version. For more information, see the following sections:

      Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters

      + *

      Valid Values: open-source-rds-extended-support | + * open-source-rds-extended-support-disabled

      Default: + * open-source-rds-extended-support

      + */ + inline bool EngineLifecycleSupportHasBeenSet() const { return m_engineLifecycleSupportHasBeenSet; } + + /** + *

      The life cycle type for this DB cluster.

      By default, this value + * is set to open-source-rds-extended-support, which enrolls your DB + * cluster into Amazon RDS Extended Support. At the end of standard support, you + * can avoid charges for Extended Support by setting the value to + * open-source-rds-extended-support-disabled. In this case, RDS + * automatically upgrades your restored DB cluster to a higher engine version, if + * the major engine version is past its end of standard support date.

      + *

      You can use this setting to enroll your DB cluster into Amazon RDS Extended + * Support. With RDS Extended Support, you can run the selected major engine + * version on your DB cluster past the end of standard support for that engine + * version. For more information, see the following sections:

      Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters

      + *

      Valid Values: open-source-rds-extended-support | + * open-source-rds-extended-support-disabled

      Default: + * open-source-rds-extended-support

      + */ + inline void SetEngineLifecycleSupport(const Aws::String& value) { m_engineLifecycleSupportHasBeenSet = true; m_engineLifecycleSupport = value; } + + /** + *

      The life cycle type for this DB cluster.

      By default, this value + * is set to open-source-rds-extended-support, which enrolls your DB + * cluster into Amazon RDS Extended Support. At the end of standard support, you + * can avoid charges for Extended Support by setting the value to + * open-source-rds-extended-support-disabled. In this case, RDS + * automatically upgrades your restored DB cluster to a higher engine version, if + * the major engine version is past its end of standard support date.

      + *

      You can use this setting to enroll your DB cluster into Amazon RDS Extended + * Support. With RDS Extended Support, you can run the selected major engine + * version on your DB cluster past the end of standard support for that engine + * version. For more information, see the following sections:

      Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters

      + *

      Valid Values: open-source-rds-extended-support | + * open-source-rds-extended-support-disabled

      Default: + * open-source-rds-extended-support

      + */ + inline void SetEngineLifecycleSupport(Aws::String&& value) { m_engineLifecycleSupportHasBeenSet = true; m_engineLifecycleSupport = std::move(value); } + + /** + *

      The life cycle type for this DB cluster.

      By default, this value + * is set to open-source-rds-extended-support, which enrolls your DB + * cluster into Amazon RDS Extended Support. At the end of standard support, you + * can avoid charges for Extended Support by setting the value to + * open-source-rds-extended-support-disabled. In this case, RDS + * automatically upgrades your restored DB cluster to a higher engine version, if + * the major engine version is past its end of standard support date.

      + *

      You can use this setting to enroll your DB cluster into Amazon RDS Extended + * Support. With RDS Extended Support, you can run the selected major engine + * version on your DB cluster past the end of standard support for that engine + * version. For more information, see the following sections:

      Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters

      + *

      Valid Values: open-source-rds-extended-support | + * open-source-rds-extended-support-disabled

      Default: + * open-source-rds-extended-support

      + */ + inline void SetEngineLifecycleSupport(const char* value) { m_engineLifecycleSupportHasBeenSet = true; m_engineLifecycleSupport.assign(value); } + + /** + *

      The life cycle type for this DB cluster.

      By default, this value + * is set to open-source-rds-extended-support, which enrolls your DB + * cluster into Amazon RDS Extended Support. At the end of standard support, you + * can avoid charges for Extended Support by setting the value to + * open-source-rds-extended-support-disabled. In this case, RDS + * automatically upgrades your restored DB cluster to a higher engine version, if + * the major engine version is past its end of standard support date.

      + *

      You can use this setting to enroll your DB cluster into Amazon RDS Extended + * Support. With RDS Extended Support, you can run the selected major engine + * version on your DB cluster past the end of standard support for that engine + * version. For more information, see the following sections:

      Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters

      + *

      Valid Values: open-source-rds-extended-support | + * open-source-rds-extended-support-disabled

      Default: + * open-source-rds-extended-support

      + */ + inline RestoreDBClusterFromSnapshotRequest& WithEngineLifecycleSupport(const Aws::String& value) { SetEngineLifecycleSupport(value); return *this;} + + /** + *

      The life cycle type for this DB cluster.

      By default, this value + * is set to open-source-rds-extended-support, which enrolls your DB + * cluster into Amazon RDS Extended Support. At the end of standard support, you + * can avoid charges for Extended Support by setting the value to + * open-source-rds-extended-support-disabled. In this case, RDS + * automatically upgrades your restored DB cluster to a higher engine version, if + * the major engine version is past its end of standard support date.

      + *

      You can use this setting to enroll your DB cluster into Amazon RDS Extended + * Support. With RDS Extended Support, you can run the selected major engine + * version on your DB cluster past the end of standard support for that engine + * version. For more information, see the following sections:

      Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters

      + *

      Valid Values: open-source-rds-extended-support | + * open-source-rds-extended-support-disabled

      Default: + * open-source-rds-extended-support

      + */ + inline RestoreDBClusterFromSnapshotRequest& WithEngineLifecycleSupport(Aws::String&& value) { SetEngineLifecycleSupport(std::move(value)); return *this;} + + /** + *

      The life cycle type for this DB cluster.

      By default, this value + * is set to open-source-rds-extended-support, which enrolls your DB + * cluster into Amazon RDS Extended Support. At the end of standard support, you + * can avoid charges for Extended Support by setting the value to + * open-source-rds-extended-support-disabled. In this case, RDS + * automatically upgrades your restored DB cluster to a higher engine version, if + * the major engine version is past its end of standard support date.

      + *

      You can use this setting to enroll your DB cluster into Amazon RDS Extended + * Support. With RDS Extended Support, you can run the selected major engine + * version on your DB cluster past the end of standard support for that engine + * version. For more information, see the following sections:

      Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters

      + *

      Valid Values: open-source-rds-extended-support | + * open-source-rds-extended-support-disabled

      Default: + * open-source-rds-extended-support

      + */ + inline RestoreDBClusterFromSnapshotRequest& WithEngineLifecycleSupport(const char* value) { SetEngineLifecycleSupport(value); return *this;} + private: Aws::Vector m_availabilityZones; @@ -2245,6 +2446,9 @@ namespace Model RdsCustomClusterConfiguration m_rdsCustomClusterConfiguration; bool m_rdsCustomClusterConfigurationHasBeenSet = false; + + Aws::String m_engineLifecycleSupport; + bool m_engineLifecycleSupportHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-rds/include/aws/rds/model/RestoreDBClusterToPointInTimeRequest.h b/generated/src/aws-cpp-sdk-rds/include/aws/rds/model/RestoreDBClusterToPointInTimeRequest.h index def59d27930..d28466030d2 100644 --- a/generated/src/aws-cpp-sdk-rds/include/aws/rds/model/RestoreDBClusterToPointInTimeRequest.h +++ b/generated/src/aws-cpp-sdk-rds/include/aws/rds/model/RestoreDBClusterToPointInTimeRequest.h @@ -1988,6 +1988,207 @@ namespace Model */ inline RestoreDBClusterToPointInTimeRequest& WithRdsCustomClusterConfiguration(RdsCustomClusterConfiguration&& value) { SetRdsCustomClusterConfiguration(std::move(value)); return *this;} + + /** + *

      The life cycle type for this DB cluster.

      By default, this value + * is set to open-source-rds-extended-support, which enrolls your DB + * cluster into Amazon RDS Extended Support. At the end of standard support, you + * can avoid charges for Extended Support by setting the value to + * open-source-rds-extended-support-disabled. In this case, RDS + * automatically upgrades your restored DB cluster to a higher engine version, if + * the major engine version is past its end of standard support date.

      + *

      You can use this setting to enroll your DB cluster into Amazon RDS Extended + * Support. With RDS Extended Support, you can run the selected major engine + * version on your DB cluster past the end of standard support for that engine + * version. For more information, see the following sections:

      Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters

      + *

      Valid Values: open-source-rds-extended-support | + * open-source-rds-extended-support-disabled

      Default: + * open-source-rds-extended-support

      + */ + inline const Aws::String& GetEngineLifecycleSupport() const{ return m_engineLifecycleSupport; } + + /** + *

      The life cycle type for this DB cluster.

      By default, this value + * is set to open-source-rds-extended-support, which enrolls your DB + * cluster into Amazon RDS Extended Support. At the end of standard support, you + * can avoid charges for Extended Support by setting the value to + * open-source-rds-extended-support-disabled. In this case, RDS + * automatically upgrades your restored DB cluster to a higher engine version, if + * the major engine version is past its end of standard support date.

      + *

      You can use this setting to enroll your DB cluster into Amazon RDS Extended + * Support. With RDS Extended Support, you can run the selected major engine + * version on your DB cluster past the end of standard support for that engine + * version. For more information, see the following sections:

      Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters

      + *

      Valid Values: open-source-rds-extended-support | + * open-source-rds-extended-support-disabled

      Default: + * open-source-rds-extended-support

      + */ + inline bool EngineLifecycleSupportHasBeenSet() const { return m_engineLifecycleSupportHasBeenSet; } + + /** + *

      The life cycle type for this DB cluster.

      By default, this value + * is set to open-source-rds-extended-support, which enrolls your DB + * cluster into Amazon RDS Extended Support. At the end of standard support, you + * can avoid charges for Extended Support by setting the value to + * open-source-rds-extended-support-disabled. In this case, RDS + * automatically upgrades your restored DB cluster to a higher engine version, if + * the major engine version is past its end of standard support date.

      + *

      You can use this setting to enroll your DB cluster into Amazon RDS Extended + * Support. With RDS Extended Support, you can run the selected major engine + * version on your DB cluster past the end of standard support for that engine + * version. For more information, see the following sections:

      Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters

      + *

      Valid Values: open-source-rds-extended-support | + * open-source-rds-extended-support-disabled

      Default: + * open-source-rds-extended-support

      + */ + inline void SetEngineLifecycleSupport(const Aws::String& value) { m_engineLifecycleSupportHasBeenSet = true; m_engineLifecycleSupport = value; } + + /** + *

      The life cycle type for this DB cluster.

      By default, this value + * is set to open-source-rds-extended-support, which enrolls your DB + * cluster into Amazon RDS Extended Support. At the end of standard support, you + * can avoid charges for Extended Support by setting the value to + * open-source-rds-extended-support-disabled. In this case, RDS + * automatically upgrades your restored DB cluster to a higher engine version, if + * the major engine version is past its end of standard support date.

      + *

      You can use this setting to enroll your DB cluster into Amazon RDS Extended + * Support. With RDS Extended Support, you can run the selected major engine + * version on your DB cluster past the end of standard support for that engine + * version. For more information, see the following sections:

      Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters

      + *

      Valid Values: open-source-rds-extended-support | + * open-source-rds-extended-support-disabled

      Default: + * open-source-rds-extended-support

      + */ + inline void SetEngineLifecycleSupport(Aws::String&& value) { m_engineLifecycleSupportHasBeenSet = true; m_engineLifecycleSupport = std::move(value); } + + /** + *

      The life cycle type for this DB cluster.

      By default, this value + * is set to open-source-rds-extended-support, which enrolls your DB + * cluster into Amazon RDS Extended Support. At the end of standard support, you + * can avoid charges for Extended Support by setting the value to + * open-source-rds-extended-support-disabled. In this case, RDS + * automatically upgrades your restored DB cluster to a higher engine version, if + * the major engine version is past its end of standard support date.

      + *

      You can use this setting to enroll your DB cluster into Amazon RDS Extended + * Support. With RDS Extended Support, you can run the selected major engine + * version on your DB cluster past the end of standard support for that engine + * version. For more information, see the following sections:

      Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters

      + *

      Valid Values: open-source-rds-extended-support | + * open-source-rds-extended-support-disabled

      Default: + * open-source-rds-extended-support

      + */ + inline void SetEngineLifecycleSupport(const char* value) { m_engineLifecycleSupportHasBeenSet = true; m_engineLifecycleSupport.assign(value); } + + /** + *

      The life cycle type for this DB cluster.

      By default, this value + * is set to open-source-rds-extended-support, which enrolls your DB + * cluster into Amazon RDS Extended Support. At the end of standard support, you + * can avoid charges for Extended Support by setting the value to + * open-source-rds-extended-support-disabled. In this case, RDS + * automatically upgrades your restored DB cluster to a higher engine version, if + * the major engine version is past its end of standard support date.

      + *

      You can use this setting to enroll your DB cluster into Amazon RDS Extended + * Support. With RDS Extended Support, you can run the selected major engine + * version on your DB cluster past the end of standard support for that engine + * version. For more information, see the following sections:

      Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters

      + *

      Valid Values: open-source-rds-extended-support | + * open-source-rds-extended-support-disabled

      Default: + * open-source-rds-extended-support

      + */ + inline RestoreDBClusterToPointInTimeRequest& WithEngineLifecycleSupport(const Aws::String& value) { SetEngineLifecycleSupport(value); return *this;} + + /** + *

      The life cycle type for this DB cluster.

      By default, this value + * is set to open-source-rds-extended-support, which enrolls your DB + * cluster into Amazon RDS Extended Support. At the end of standard support, you + * can avoid charges for Extended Support by setting the value to + * open-source-rds-extended-support-disabled. In this case, RDS + * automatically upgrades your restored DB cluster to a higher engine version, if + * the major engine version is past its end of standard support date.

      + *

      You can use this setting to enroll your DB cluster into Amazon RDS Extended + * Support. With RDS Extended Support, you can run the selected major engine + * version on your DB cluster past the end of standard support for that engine + * version. For more information, see the following sections:

      Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters

      + *

      Valid Values: open-source-rds-extended-support | + * open-source-rds-extended-support-disabled

      Default: + * open-source-rds-extended-support

      + */ + inline RestoreDBClusterToPointInTimeRequest& WithEngineLifecycleSupport(Aws::String&& value) { SetEngineLifecycleSupport(std::move(value)); return *this;} + + /** + *

      The life cycle type for this DB cluster.

      By default, this value + * is set to open-source-rds-extended-support, which enrolls your DB + * cluster into Amazon RDS Extended Support. At the end of standard support, you + * can avoid charges for Extended Support by setting the value to + * open-source-rds-extended-support-disabled. In this case, RDS + * automatically upgrades your restored DB cluster to a higher engine version, if + * the major engine version is past its end of standard support date.

      + *

      You can use this setting to enroll your DB cluster into Amazon RDS Extended + * Support. With RDS Extended Support, you can run the selected major engine + * version on your DB cluster past the end of standard support for that engine + * version. For more information, see the following sections:

      Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters

      + *

      Valid Values: open-source-rds-extended-support | + * open-source-rds-extended-support-disabled

      Default: + * open-source-rds-extended-support

      + */ + inline RestoreDBClusterToPointInTimeRequest& WithEngineLifecycleSupport(const char* value) { SetEngineLifecycleSupport(value); return *this;} + private: Aws::String m_dBClusterIdentifier; @@ -2076,6 +2277,9 @@ namespace Model RdsCustomClusterConfiguration m_rdsCustomClusterConfiguration; bool m_rdsCustomClusterConfigurationHasBeenSet = false; + + Aws::String m_engineLifecycleSupport; + bool m_engineLifecycleSupportHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-rds/include/aws/rds/model/RestoreDBInstanceFromDBSnapshotRequest.h b/generated/src/aws-cpp-sdk-rds/include/aws/rds/model/RestoreDBInstanceFromDBSnapshotRequest.h index c0170762025..35f87ad2c9c 100644 --- a/generated/src/aws-cpp-sdk-rds/include/aws/rds/model/RestoreDBInstanceFromDBSnapshotRequest.h +++ b/generated/src/aws-cpp-sdk-rds/include/aws/rds/model/RestoreDBInstanceFromDBSnapshotRequest.h @@ -2731,6 +2731,183 @@ namespace Model */ inline RestoreDBInstanceFromDBSnapshotRequest& WithCACertificateIdentifier(const char* value) { SetCACertificateIdentifier(value); return *this;} + + /** + *

      The life cycle type for this DB instance.

      By default, this + * value is set to open-source-rds-extended-support, which enrolls + * your DB instance into Amazon RDS Extended Support. At the end of standard + * support, you can avoid charges for Extended Support by setting the value to + * open-source-rds-extended-support-disabled. In this case, RDS + * automatically upgrades your restored DB instance to a higher engine version, if + * the major engine version is past its end of standard support date.

      + *

      You can use this setting to enroll your DB instance into Amazon RDS Extended + * Support. With RDS Extended Support, you can run the selected major engine + * version on your DB instance past the end of standard support for that engine + * version. For more information, see Using + * Amazon RDS Extended Support in the Amazon RDS User Guide.

      This + * setting applies only to RDS for MySQL and RDS for PostgreSQL. For Amazon Aurora + * DB instances, the life cycle type is managed by the DB cluster.

      Valid + * Values: open-source-rds-extended-support | + * open-source-rds-extended-support-disabled

      Default: + * open-source-rds-extended-support

      + */ + inline const Aws::String& GetEngineLifecycleSupport() const{ return m_engineLifecycleSupport; } + + /** + *

      The life cycle type for this DB instance.

      By default, this + * value is set to open-source-rds-extended-support, which enrolls + * your DB instance into Amazon RDS Extended Support. At the end of standard + * support, you can avoid charges for Extended Support by setting the value to + * open-source-rds-extended-support-disabled. In this case, RDS + * automatically upgrades your restored DB instance to a higher engine version, if + * the major engine version is past its end of standard support date.

      + *

      You can use this setting to enroll your DB instance into Amazon RDS Extended + * Support. With RDS Extended Support, you can run the selected major engine + * version on your DB instance past the end of standard support for that engine + * version. For more information, see Using + * Amazon RDS Extended Support in the Amazon RDS User Guide.

      This + * setting applies only to RDS for MySQL and RDS for PostgreSQL. For Amazon Aurora + * DB instances, the life cycle type is managed by the DB cluster.

      Valid + * Values: open-source-rds-extended-support | + * open-source-rds-extended-support-disabled

      Default: + * open-source-rds-extended-support

      + */ + inline bool EngineLifecycleSupportHasBeenSet() const { return m_engineLifecycleSupportHasBeenSet; } + + /** + *

      The life cycle type for this DB instance.

      By default, this + * value is set to open-source-rds-extended-support, which enrolls + * your DB instance into Amazon RDS Extended Support. At the end of standard + * support, you can avoid charges for Extended Support by setting the value to + * open-source-rds-extended-support-disabled. In this case, RDS + * automatically upgrades your restored DB instance to a higher engine version, if + * the major engine version is past its end of standard support date.

      + *

      You can use this setting to enroll your DB instance into Amazon RDS Extended + * Support. With RDS Extended Support, you can run the selected major engine + * version on your DB instance past the end of standard support for that engine + * version. For more information, see Using + * Amazon RDS Extended Support in the Amazon RDS User Guide.

      This + * setting applies only to RDS for MySQL and RDS for PostgreSQL. For Amazon Aurora + * DB instances, the life cycle type is managed by the DB cluster.

      Valid + * Values: open-source-rds-extended-support | + * open-source-rds-extended-support-disabled

      Default: + * open-source-rds-extended-support

      + */ + inline void SetEngineLifecycleSupport(const Aws::String& value) { m_engineLifecycleSupportHasBeenSet = true; m_engineLifecycleSupport = value; } + + /** + *

      The life cycle type for this DB instance.

      By default, this + * value is set to open-source-rds-extended-support, which enrolls + * your DB instance into Amazon RDS Extended Support. At the end of standard + * support, you can avoid charges for Extended Support by setting the value to + * open-source-rds-extended-support-disabled. In this case, RDS + * automatically upgrades your restored DB instance to a higher engine version, if + * the major engine version is past its end of standard support date.

      + *

      You can use this setting to enroll your DB instance into Amazon RDS Extended + * Support. With RDS Extended Support, you can run the selected major engine + * version on your DB instance past the end of standard support for that engine + * version. For more information, see Using + * Amazon RDS Extended Support in the Amazon RDS User Guide.

      This + * setting applies only to RDS for MySQL and RDS for PostgreSQL. For Amazon Aurora + * DB instances, the life cycle type is managed by the DB cluster.

      Valid + * Values: open-source-rds-extended-support | + * open-source-rds-extended-support-disabled

      Default: + * open-source-rds-extended-support

      + */ + inline void SetEngineLifecycleSupport(Aws::String&& value) { m_engineLifecycleSupportHasBeenSet = true; m_engineLifecycleSupport = std::move(value); } + + /** + *

      The life cycle type for this DB instance.

      By default, this + * value is set to open-source-rds-extended-support, which enrolls + * your DB instance into Amazon RDS Extended Support. At the end of standard + * support, you can avoid charges for Extended Support by setting the value to + * open-source-rds-extended-support-disabled. In this case, RDS + * automatically upgrades your restored DB instance to a higher engine version, if + * the major engine version is past its end of standard support date.

      + *

      You can use this setting to enroll your DB instance into Amazon RDS Extended + * Support. With RDS Extended Support, you can run the selected major engine + * version on your DB instance past the end of standard support for that engine + * version. For more information, see Using + * Amazon RDS Extended Support in the Amazon RDS User Guide.

      This + * setting applies only to RDS for MySQL and RDS for PostgreSQL. For Amazon Aurora + * DB instances, the life cycle type is managed by the DB cluster.

      Valid + * Values: open-source-rds-extended-support | + * open-source-rds-extended-support-disabled

      Default: + * open-source-rds-extended-support

      + */ + inline void SetEngineLifecycleSupport(const char* value) { m_engineLifecycleSupportHasBeenSet = true; m_engineLifecycleSupport.assign(value); } + + /** + *

      The life cycle type for this DB instance.

      By default, this + * value is set to open-source-rds-extended-support, which enrolls + * your DB instance into Amazon RDS Extended Support. At the end of standard + * support, you can avoid charges for Extended Support by setting the value to + * open-source-rds-extended-support-disabled. In this case, RDS + * automatically upgrades your restored DB instance to a higher engine version, if + * the major engine version is past its end of standard support date.

      + *

      You can use this setting to enroll your DB instance into Amazon RDS Extended + * Support. With RDS Extended Support, you can run the selected major engine + * version on your DB instance past the end of standard support for that engine + * version. For more information, see Using + * Amazon RDS Extended Support in the Amazon RDS User Guide.

      This + * setting applies only to RDS for MySQL and RDS for PostgreSQL. For Amazon Aurora + * DB instances, the life cycle type is managed by the DB cluster.

      Valid + * Values: open-source-rds-extended-support | + * open-source-rds-extended-support-disabled

      Default: + * open-source-rds-extended-support

      + */ + inline RestoreDBInstanceFromDBSnapshotRequest& WithEngineLifecycleSupport(const Aws::String& value) { SetEngineLifecycleSupport(value); return *this;} + + /** + *

      The life cycle type for this DB instance.

      By default, this + * value is set to open-source-rds-extended-support, which enrolls + * your DB instance into Amazon RDS Extended Support. At the end of standard + * support, you can avoid charges for Extended Support by setting the value to + * open-source-rds-extended-support-disabled. In this case, RDS + * automatically upgrades your restored DB instance to a higher engine version, if + * the major engine version is past its end of standard support date.

      + *

      You can use this setting to enroll your DB instance into Amazon RDS Extended + * Support. With RDS Extended Support, you can run the selected major engine + * version on your DB instance past the end of standard support for that engine + * version. For more information, see Using + * Amazon RDS Extended Support in the Amazon RDS User Guide.

      This + * setting applies only to RDS for MySQL and RDS for PostgreSQL. For Amazon Aurora + * DB instances, the life cycle type is managed by the DB cluster.

      Valid + * Values: open-source-rds-extended-support | + * open-source-rds-extended-support-disabled

      Default: + * open-source-rds-extended-support

      + */ + inline RestoreDBInstanceFromDBSnapshotRequest& WithEngineLifecycleSupport(Aws::String&& value) { SetEngineLifecycleSupport(std::move(value)); return *this;} + + /** + *

      The life cycle type for this DB instance.

      By default, this + * value is set to open-source-rds-extended-support, which enrolls + * your DB instance into Amazon RDS Extended Support. At the end of standard + * support, you can avoid charges for Extended Support by setting the value to + * open-source-rds-extended-support-disabled. In this case, RDS + * automatically upgrades your restored DB instance to a higher engine version, if + * the major engine version is past its end of standard support date.

      + *

      You can use this setting to enroll your DB instance into Amazon RDS Extended + * Support. With RDS Extended Support, you can run the selected major engine + * version on your DB instance past the end of standard support for that engine + * version. For more information, see Using + * Amazon RDS Extended Support in the Amazon RDS User Guide.

      This + * setting applies only to RDS for MySQL and RDS for PostgreSQL. For Amazon Aurora + * DB instances, the life cycle type is managed by the DB cluster.

      Valid + * Values: open-source-rds-extended-support | + * open-source-rds-extended-support-disabled

      Default: + * open-source-rds-extended-support

      + */ + inline RestoreDBInstanceFromDBSnapshotRequest& WithEngineLifecycleSupport(const char* value) { SetEngineLifecycleSupport(value); return *this;} + private: Aws::String m_dBInstanceIdentifier; @@ -2855,6 +3032,9 @@ namespace Model Aws::String m_cACertificateIdentifier; bool m_cACertificateIdentifierHasBeenSet = false; + + Aws::String m_engineLifecycleSupport; + bool m_engineLifecycleSupportHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-rds/include/aws/rds/model/RestoreDBInstanceFromS3Request.h b/generated/src/aws-cpp-sdk-rds/include/aws/rds/model/RestoreDBInstanceFromS3Request.h index 1fee13a54eb..2a911dd7e59 100644 --- a/generated/src/aws-cpp-sdk-rds/include/aws/rds/model/RestoreDBInstanceFromS3Request.h +++ b/generated/src/aws-cpp-sdk-rds/include/aws/rds/model/RestoreDBInstanceFromS3Request.h @@ -3005,6 +3005,183 @@ namespace Model */ inline RestoreDBInstanceFromS3Request& WithCACertificateIdentifier(const char* value) { SetCACertificateIdentifier(value); return *this;} + + /** + *

      The life cycle type for this DB instance.

      By default, this + * value is set to open-source-rds-extended-support, which enrolls + * your DB instance into Amazon RDS Extended Support. At the end of standard + * support, you can avoid charges for Extended Support by setting the value to + * open-source-rds-extended-support-disabled. In this case, RDS + * automatically upgrades your restored DB instance to a higher engine version, if + * the major engine version is past its end of standard support date.

      + *

      You can use this setting to enroll your DB instance into Amazon RDS Extended + * Support. With RDS Extended Support, you can run the selected major engine + * version on your DB instance past the end of standard support for that engine + * version. For more information, see Using + * Amazon RDS Extended Support in the Amazon RDS User Guide.

      This + * setting applies only to RDS for MySQL and RDS for PostgreSQL. For Amazon Aurora + * DB instances, the life cycle type is managed by the DB cluster.

      Valid + * Values: open-source-rds-extended-support | + * open-source-rds-extended-support-disabled

      Default: + * open-source-rds-extended-support

      + */ + inline const Aws::String& GetEngineLifecycleSupport() const{ return m_engineLifecycleSupport; } + + /** + *

      The life cycle type for this DB instance.

      By default, this + * value is set to open-source-rds-extended-support, which enrolls + * your DB instance into Amazon RDS Extended Support. At the end of standard + * support, you can avoid charges for Extended Support by setting the value to + * open-source-rds-extended-support-disabled. In this case, RDS + * automatically upgrades your restored DB instance to a higher engine version, if + * the major engine version is past its end of standard support date.

      + *

      You can use this setting to enroll your DB instance into Amazon RDS Extended + * Support. With RDS Extended Support, you can run the selected major engine + * version on your DB instance past the end of standard support for that engine + * version. For more information, see Using + * Amazon RDS Extended Support in the Amazon RDS User Guide.

      This + * setting applies only to RDS for MySQL and RDS for PostgreSQL. For Amazon Aurora + * DB instances, the life cycle type is managed by the DB cluster.

      Valid + * Values: open-source-rds-extended-support | + * open-source-rds-extended-support-disabled

      Default: + * open-source-rds-extended-support

      + */ + inline bool EngineLifecycleSupportHasBeenSet() const { return m_engineLifecycleSupportHasBeenSet; } + + /** + *

      The life cycle type for this DB instance.

      By default, this + * value is set to open-source-rds-extended-support, which enrolls + * your DB instance into Amazon RDS Extended Support. At the end of standard + * support, you can avoid charges for Extended Support by setting the value to + * open-source-rds-extended-support-disabled. In this case, RDS + * automatically upgrades your restored DB instance to a higher engine version, if + * the major engine version is past its end of standard support date.

      + *

      You can use this setting to enroll your DB instance into Amazon RDS Extended + * Support. With RDS Extended Support, you can run the selected major engine + * version on your DB instance past the end of standard support for that engine + * version. For more information, see Using + * Amazon RDS Extended Support in the Amazon RDS User Guide.

      This + * setting applies only to RDS for MySQL and RDS for PostgreSQL. For Amazon Aurora + * DB instances, the life cycle type is managed by the DB cluster.

      Valid + * Values: open-source-rds-extended-support | + * open-source-rds-extended-support-disabled

      Default: + * open-source-rds-extended-support

      + */ + inline void SetEngineLifecycleSupport(const Aws::String& value) { m_engineLifecycleSupportHasBeenSet = true; m_engineLifecycleSupport = value; } + + /** + *

      The life cycle type for this DB instance.

      By default, this + * value is set to open-source-rds-extended-support, which enrolls + * your DB instance into Amazon RDS Extended Support. At the end of standard + * support, you can avoid charges for Extended Support by setting the value to + * open-source-rds-extended-support-disabled. In this case, RDS + * automatically upgrades your restored DB instance to a higher engine version, if + * the major engine version is past its end of standard support date.

      + *

      You can use this setting to enroll your DB instance into Amazon RDS Extended + * Support. With RDS Extended Support, you can run the selected major engine + * version on your DB instance past the end of standard support for that engine + * version. For more information, see Using + * Amazon RDS Extended Support in the Amazon RDS User Guide.

      This + * setting applies only to RDS for MySQL and RDS for PostgreSQL. For Amazon Aurora + * DB instances, the life cycle type is managed by the DB cluster.

      Valid + * Values: open-source-rds-extended-support | + * open-source-rds-extended-support-disabled

      Default: + * open-source-rds-extended-support

      + */ + inline void SetEngineLifecycleSupport(Aws::String&& value) { m_engineLifecycleSupportHasBeenSet = true; m_engineLifecycleSupport = std::move(value); } + + /** + *

      The life cycle type for this DB instance.

      By default, this + * value is set to open-source-rds-extended-support, which enrolls + * your DB instance into Amazon RDS Extended Support. At the end of standard + * support, you can avoid charges for Extended Support by setting the value to + * open-source-rds-extended-support-disabled. In this case, RDS + * automatically upgrades your restored DB instance to a higher engine version, if + * the major engine version is past its end of standard support date.

      + *

      You can use this setting to enroll your DB instance into Amazon RDS Extended + * Support. With RDS Extended Support, you can run the selected major engine + * version on your DB instance past the end of standard support for that engine + * version. For more information, see Using + * Amazon RDS Extended Support in the Amazon RDS User Guide.

      This + * setting applies only to RDS for MySQL and RDS for PostgreSQL. For Amazon Aurora + * DB instances, the life cycle type is managed by the DB cluster.

      Valid + * Values: open-source-rds-extended-support | + * open-source-rds-extended-support-disabled

      Default: + * open-source-rds-extended-support

      + */ + inline void SetEngineLifecycleSupport(const char* value) { m_engineLifecycleSupportHasBeenSet = true; m_engineLifecycleSupport.assign(value); } + + /** + *

      The life cycle type for this DB instance.

      By default, this + * value is set to open-source-rds-extended-support, which enrolls + * your DB instance into Amazon RDS Extended Support. At the end of standard + * support, you can avoid charges for Extended Support by setting the value to + * open-source-rds-extended-support-disabled. In this case, RDS + * automatically upgrades your restored DB instance to a higher engine version, if + * the major engine version is past its end of standard support date.

      + *

      You can use this setting to enroll your DB instance into Amazon RDS Extended + * Support. With RDS Extended Support, you can run the selected major engine + * version on your DB instance past the end of standard support for that engine + * version. For more information, see Using + * Amazon RDS Extended Support in the Amazon RDS User Guide.

      This + * setting applies only to RDS for MySQL and RDS for PostgreSQL. For Amazon Aurora + * DB instances, the life cycle type is managed by the DB cluster.

      Valid + * Values: open-source-rds-extended-support | + * open-source-rds-extended-support-disabled

      Default: + * open-source-rds-extended-support

      + */ + inline RestoreDBInstanceFromS3Request& WithEngineLifecycleSupport(const Aws::String& value) { SetEngineLifecycleSupport(value); return *this;} + + /** + *

      The life cycle type for this DB instance.

      By default, this + * value is set to open-source-rds-extended-support, which enrolls + * your DB instance into Amazon RDS Extended Support. At the end of standard + * support, you can avoid charges for Extended Support by setting the value to + * open-source-rds-extended-support-disabled. In this case, RDS + * automatically upgrades your restored DB instance to a higher engine version, if + * the major engine version is past its end of standard support date.

      + *

      You can use this setting to enroll your DB instance into Amazon RDS Extended + * Support. With RDS Extended Support, you can run the selected major engine + * version on your DB instance past the end of standard support for that engine + * version. For more information, see Using + * Amazon RDS Extended Support in the Amazon RDS User Guide.

      This + * setting applies only to RDS for MySQL and RDS for PostgreSQL. For Amazon Aurora + * DB instances, the life cycle type is managed by the DB cluster.

      Valid + * Values: open-source-rds-extended-support | + * open-source-rds-extended-support-disabled

      Default: + * open-source-rds-extended-support

      + */ + inline RestoreDBInstanceFromS3Request& WithEngineLifecycleSupport(Aws::String&& value) { SetEngineLifecycleSupport(std::move(value)); return *this;} + + /** + *

      The life cycle type for this DB instance.

      By default, this + * value is set to open-source-rds-extended-support, which enrolls + * your DB instance into Amazon RDS Extended Support. At the end of standard + * support, you can avoid charges for Extended Support by setting the value to + * open-source-rds-extended-support-disabled. In this case, RDS + * automatically upgrades your restored DB instance to a higher engine version, if + * the major engine version is past its end of standard support date.

      + *

      You can use this setting to enroll your DB instance into Amazon RDS Extended + * Support. With RDS Extended Support, you can run the selected major engine + * version on your DB instance past the end of standard support for that engine + * version. For more information, see Using + * Amazon RDS Extended Support in the Amazon RDS User Guide.

      This + * setting applies only to RDS for MySQL and RDS for PostgreSQL. For Amazon Aurora + * DB instances, the life cycle type is managed by the DB cluster.

      Valid + * Values: open-source-rds-extended-support | + * open-source-rds-extended-support-disabled

      Default: + * open-source-rds-extended-support

      + */ + inline RestoreDBInstanceFromS3Request& WithEngineLifecycleSupport(const char* value) { SetEngineLifecycleSupport(value); return *this;} + private: Aws::String m_dBName; @@ -3156,6 +3333,9 @@ namespace Model Aws::String m_cACertificateIdentifier; bool m_cACertificateIdentifierHasBeenSet = false; + + Aws::String m_engineLifecycleSupport; + bool m_engineLifecycleSupportHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-rds/include/aws/rds/model/RestoreDBInstanceToPointInTimeRequest.h b/generated/src/aws-cpp-sdk-rds/include/aws/rds/model/RestoreDBInstanceToPointInTimeRequest.h index 09d871047ce..debb76c22a9 100644 --- a/generated/src/aws-cpp-sdk-rds/include/aws/rds/model/RestoreDBInstanceToPointInTimeRequest.h +++ b/generated/src/aws-cpp-sdk-rds/include/aws/rds/model/RestoreDBInstanceToPointInTimeRequest.h @@ -2767,6 +2767,183 @@ namespace Model */ inline RestoreDBInstanceToPointInTimeRequest& WithCACertificateIdentifier(const char* value) { SetCACertificateIdentifier(value); return *this;} + + /** + *

      The life cycle type for this DB instance.

      By default, this + * value is set to open-source-rds-extended-support, which enrolls + * your DB instance into Amazon RDS Extended Support. At the end of standard + * support, you can avoid charges for Extended Support by setting the value to + * open-source-rds-extended-support-disabled. In this case, RDS + * automatically upgrades your restored DB instance to a higher engine version, if + * the major engine version is past its end of standard support date.

      + *

      You can use this setting to enroll your DB instance into Amazon RDS Extended + * Support. With RDS Extended Support, you can run the selected major engine + * version on your DB instance past the end of standard support for that engine + * version. For more information, see Using + * Amazon RDS Extended Support in the Amazon RDS User Guide.

      This + * setting applies only to RDS for MySQL and RDS for PostgreSQL. For Amazon Aurora + * DB instances, the life cycle type is managed by the DB cluster.

      Valid + * Values: open-source-rds-extended-support | + * open-source-rds-extended-support-disabled

      Default: + * open-source-rds-extended-support

      + */ + inline const Aws::String& GetEngineLifecycleSupport() const{ return m_engineLifecycleSupport; } + + /** + *

      The life cycle type for this DB instance.

      By default, this + * value is set to open-source-rds-extended-support, which enrolls + * your DB instance into Amazon RDS Extended Support. At the end of standard + * support, you can avoid charges for Extended Support by setting the value to + * open-source-rds-extended-support-disabled. In this case, RDS + * automatically upgrades your restored DB instance to a higher engine version, if + * the major engine version is past its end of standard support date.

      + *

      You can use this setting to enroll your DB instance into Amazon RDS Extended + * Support. With RDS Extended Support, you can run the selected major engine + * version on your DB instance past the end of standard support for that engine + * version. For more information, see Using + * Amazon RDS Extended Support in the Amazon RDS User Guide.

      This + * setting applies only to RDS for MySQL and RDS for PostgreSQL. For Amazon Aurora + * DB instances, the life cycle type is managed by the DB cluster.

      Valid + * Values: open-source-rds-extended-support | + * open-source-rds-extended-support-disabled

      Default: + * open-source-rds-extended-support

      + */ + inline bool EngineLifecycleSupportHasBeenSet() const { return m_engineLifecycleSupportHasBeenSet; } + + /** + *

      The life cycle type for this DB instance.

      By default, this + * value is set to open-source-rds-extended-support, which enrolls + * your DB instance into Amazon RDS Extended Support. At the end of standard + * support, you can avoid charges for Extended Support by setting the value to + * open-source-rds-extended-support-disabled. In this case, RDS + * automatically upgrades your restored DB instance to a higher engine version, if + * the major engine version is past its end of standard support date.

      + *

      You can use this setting to enroll your DB instance into Amazon RDS Extended + * Support. With RDS Extended Support, you can run the selected major engine + * version on your DB instance past the end of standard support for that engine + * version. For more information, see Using + * Amazon RDS Extended Support in the Amazon RDS User Guide.

      This + * setting applies only to RDS for MySQL and RDS for PostgreSQL. For Amazon Aurora + * DB instances, the life cycle type is managed by the DB cluster.

      Valid + * Values: open-source-rds-extended-support | + * open-source-rds-extended-support-disabled

      Default: + * open-source-rds-extended-support

      + */ + inline void SetEngineLifecycleSupport(const Aws::String& value) { m_engineLifecycleSupportHasBeenSet = true; m_engineLifecycleSupport = value; } + + /** + *

      The life cycle type for this DB instance.

      By default, this + * value is set to open-source-rds-extended-support, which enrolls + * your DB instance into Amazon RDS Extended Support. At the end of standard + * support, you can avoid charges for Extended Support by setting the value to + * open-source-rds-extended-support-disabled. In this case, RDS + * automatically upgrades your restored DB instance to a higher engine version, if + * the major engine version is past its end of standard support date.

      + *

      You can use this setting to enroll your DB instance into Amazon RDS Extended + * Support. With RDS Extended Support, you can run the selected major engine + * version on your DB instance past the end of standard support for that engine + * version. For more information, see Using + * Amazon RDS Extended Support in the Amazon RDS User Guide.

      This + * setting applies only to RDS for MySQL and RDS for PostgreSQL. For Amazon Aurora + * DB instances, the life cycle type is managed by the DB cluster.

      Valid + * Values: open-source-rds-extended-support | + * open-source-rds-extended-support-disabled

      Default: + * open-source-rds-extended-support

      + */ + inline void SetEngineLifecycleSupport(Aws::String&& value) { m_engineLifecycleSupportHasBeenSet = true; m_engineLifecycleSupport = std::move(value); } + + /** + *

      The life cycle type for this DB instance.

      By default, this + * value is set to open-source-rds-extended-support, which enrolls + * your DB instance into Amazon RDS Extended Support. At the end of standard + * support, you can avoid charges for Extended Support by setting the value to + * open-source-rds-extended-support-disabled. In this case, RDS + * automatically upgrades your restored DB instance to a higher engine version, if + * the major engine version is past its end of standard support date.

      + *

      You can use this setting to enroll your DB instance into Amazon RDS Extended + * Support. With RDS Extended Support, you can run the selected major engine + * version on your DB instance past the end of standard support for that engine + * version. For more information, see Using + * Amazon RDS Extended Support in the Amazon RDS User Guide.

      This + * setting applies only to RDS for MySQL and RDS for PostgreSQL. For Amazon Aurora + * DB instances, the life cycle type is managed by the DB cluster.

      Valid + * Values: open-source-rds-extended-support | + * open-source-rds-extended-support-disabled

      Default: + * open-source-rds-extended-support

      + */ + inline void SetEngineLifecycleSupport(const char* value) { m_engineLifecycleSupportHasBeenSet = true; m_engineLifecycleSupport.assign(value); } + + /** + *

      The life cycle type for this DB instance.

      By default, this + * value is set to open-source-rds-extended-support, which enrolls + * your DB instance into Amazon RDS Extended Support. At the end of standard + * support, you can avoid charges for Extended Support by setting the value to + * open-source-rds-extended-support-disabled. In this case, RDS + * automatically upgrades your restored DB instance to a higher engine version, if + * the major engine version is past its end of standard support date.

      + *

      You can use this setting to enroll your DB instance into Amazon RDS Extended + * Support. With RDS Extended Support, you can run the selected major engine + * version on your DB instance past the end of standard support for that engine + * version. For more information, see Using + * Amazon RDS Extended Support in the Amazon RDS User Guide.

      This + * setting applies only to RDS for MySQL and RDS for PostgreSQL. For Amazon Aurora + * DB instances, the life cycle type is managed by the DB cluster.

      Valid + * Values: open-source-rds-extended-support | + * open-source-rds-extended-support-disabled

      Default: + * open-source-rds-extended-support

      + */ + inline RestoreDBInstanceToPointInTimeRequest& WithEngineLifecycleSupport(const Aws::String& value) { SetEngineLifecycleSupport(value); return *this;} + + /** + *

      The life cycle type for this DB instance.

      By default, this + * value is set to open-source-rds-extended-support, which enrolls + * your DB instance into Amazon RDS Extended Support. At the end of standard + * support, you can avoid charges for Extended Support by setting the value to + * open-source-rds-extended-support-disabled. In this case, RDS + * automatically upgrades your restored DB instance to a higher engine version, if + * the major engine version is past its end of standard support date.

      + *

      You can use this setting to enroll your DB instance into Amazon RDS Extended + * Support. With RDS Extended Support, you can run the selected major engine + * version on your DB instance past the end of standard support for that engine + * version. For more information, see Using + * Amazon RDS Extended Support in the Amazon RDS User Guide.

      This + * setting applies only to RDS for MySQL and RDS for PostgreSQL. For Amazon Aurora + * DB instances, the life cycle type is managed by the DB cluster.

      Valid + * Values: open-source-rds-extended-support | + * open-source-rds-extended-support-disabled

      Default: + * open-source-rds-extended-support

      + */ + inline RestoreDBInstanceToPointInTimeRequest& WithEngineLifecycleSupport(Aws::String&& value) { SetEngineLifecycleSupport(std::move(value)); return *this;} + + /** + *

      The life cycle type for this DB instance.

      By default, this + * value is set to open-source-rds-extended-support, which enrolls + * your DB instance into Amazon RDS Extended Support. At the end of standard + * support, you can avoid charges for Extended Support by setting the value to + * open-source-rds-extended-support-disabled. In this case, RDS + * automatically upgrades your restored DB instance to a higher engine version, if + * the major engine version is past its end of standard support date.

      + *

      You can use this setting to enroll your DB instance into Amazon RDS Extended + * Support. With RDS Extended Support, you can run the selected major engine + * version on your DB instance past the end of standard support for that engine + * version. For more information, see Using + * Amazon RDS Extended Support in the Amazon RDS User Guide.

      This + * setting applies only to RDS for MySQL and RDS for PostgreSQL. For Amazon Aurora + * DB instances, the life cycle type is managed by the DB cluster.

      Valid + * Values: open-source-rds-extended-support | + * open-source-rds-extended-support-disabled

      Default: + * open-source-rds-extended-support

      + */ + inline RestoreDBInstanceToPointInTimeRequest& WithEngineLifecycleSupport(const char* value) { SetEngineLifecycleSupport(value); return *this;} + private: Aws::String m_sourceDBInstanceIdentifier; @@ -2903,6 +3080,9 @@ namespace Model Aws::String m_cACertificateIdentifier; bool m_cACertificateIdentifierHasBeenSet = false; + + Aws::String m_engineLifecycleSupport; + bool m_engineLifecycleSupportHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-rds/include/aws/rds/model/UpgradeTarget.h b/generated/src/aws-cpp-sdk-rds/include/aws/rds/model/UpgradeTarget.h index 24492b15adb..630b2d58f19 100644 --- a/generated/src/aws-cpp-sdk-rds/include/aws/rds/model/UpgradeTarget.h +++ b/generated/src/aws-cpp-sdk-rds/include/aws/rds/model/UpgradeTarget.h @@ -166,25 +166,29 @@ namespace Model /** *

      Indicates whether the target version is applied to any source DB instances - * that have AutoMinorVersionUpgrade set to true.

      + * that have AutoMinorVersionUpgrade set to true.

      This + * parameter is dynamic, and is set by RDS.

      */ inline bool GetAutoUpgrade() const{ return m_autoUpgrade; } /** *

      Indicates whether the target version is applied to any source DB instances - * that have AutoMinorVersionUpgrade set to true.

      + * that have AutoMinorVersionUpgrade set to true.

      This + * parameter is dynamic, and is set by RDS.

      */ inline bool AutoUpgradeHasBeenSet() const { return m_autoUpgradeHasBeenSet; } /** *

      Indicates whether the target version is applied to any source DB instances - * that have AutoMinorVersionUpgrade set to true.

      + * that have AutoMinorVersionUpgrade set to true.

      This + * parameter is dynamic, and is set by RDS.

      */ inline void SetAutoUpgrade(bool value) { m_autoUpgradeHasBeenSet = true; m_autoUpgrade = value; } /** *

      Indicates whether the target version is applied to any source DB instances - * that have AutoMinorVersionUpgrade set to true.

      + * that have AutoMinorVersionUpgrade set to true.

      This + * parameter is dynamic, and is set by RDS.

      */ inline UpgradeTarget& WithAutoUpgrade(bool value) { SetAutoUpgrade(value); return *this;} diff --git a/generated/src/aws-cpp-sdk-rds/source/model/CreateDBClusterRequest.cpp b/generated/src/aws-cpp-sdk-rds/source/model/CreateDBClusterRequest.cpp index eda7043c72b..471a7664c15 100644 --- a/generated/src/aws-cpp-sdk-rds/source/model/CreateDBClusterRequest.cpp +++ b/generated/src/aws-cpp-sdk-rds/source/model/CreateDBClusterRequest.cpp @@ -83,6 +83,7 @@ CreateDBClusterRequest::CreateDBClusterRequest() : m_enableLocalWriteForwarding(false), m_enableLocalWriteForwardingHasBeenSet(false), m_cACertificateIdentifierHasBeenSet(false), + m_engineLifecycleSupportHasBeenSet(false), m_sourceRegionHasBeenSet(false) { } @@ -379,6 +380,11 @@ Aws::String CreateDBClusterRequest::SerializePayload() const ss << "CACertificateIdentifier=" << StringUtils::URLEncode(m_cACertificateIdentifier.c_str()) << "&"; } + if(m_engineLifecycleSupportHasBeenSet) + { + ss << "EngineLifecycleSupport=" << StringUtils::URLEncode(m_engineLifecycleSupport.c_str()) << "&"; + } + ss << "Version=2014-10-31"; return ss.str(); } diff --git a/generated/src/aws-cpp-sdk-rds/source/model/CreateDBInstanceRequest.cpp b/generated/src/aws-cpp-sdk-rds/source/model/CreateDBInstanceRequest.cpp index 7eaa91ec30e..99741bb0afe 100644 --- a/generated/src/aws-cpp-sdk-rds/source/model/CreateDBInstanceRequest.cpp +++ b/generated/src/aws-cpp-sdk-rds/source/model/CreateDBInstanceRequest.cpp @@ -93,7 +93,8 @@ CreateDBInstanceRequest::CreateDBInstanceRequest() : m_dedicatedLogVolume(false), m_dedicatedLogVolumeHasBeenSet(false), m_multiTenant(false), - m_multiTenantHasBeenSet(false) + m_multiTenantHasBeenSet(false), + m_engineLifecycleSupportHasBeenSet(false) { } @@ -445,6 +446,11 @@ Aws::String CreateDBInstanceRequest::SerializePayload() const ss << "MultiTenant=" << std::boolalpha << m_multiTenant << "&"; } + if(m_engineLifecycleSupportHasBeenSet) + { + ss << "EngineLifecycleSupport=" << StringUtils::URLEncode(m_engineLifecycleSupport.c_str()) << "&"; + } + ss << "Version=2014-10-31"; return ss.str(); } diff --git a/generated/src/aws-cpp-sdk-rds/source/model/CreateGlobalClusterRequest.cpp b/generated/src/aws-cpp-sdk-rds/source/model/CreateGlobalClusterRequest.cpp index 5f2a53c814b..18b79a0e943 100644 --- a/generated/src/aws-cpp-sdk-rds/source/model/CreateGlobalClusterRequest.cpp +++ b/generated/src/aws-cpp-sdk-rds/source/model/CreateGlobalClusterRequest.cpp @@ -15,6 +15,7 @@ CreateGlobalClusterRequest::CreateGlobalClusterRequest() : m_sourceDBClusterIdentifierHasBeenSet(false), m_engineHasBeenSet(false), m_engineVersionHasBeenSet(false), + m_engineLifecycleSupportHasBeenSet(false), m_deletionProtection(false), m_deletionProtectionHasBeenSet(false), m_databaseNameHasBeenSet(false), @@ -47,6 +48,11 @@ Aws::String CreateGlobalClusterRequest::SerializePayload() const ss << "EngineVersion=" << StringUtils::URLEncode(m_engineVersion.c_str()) << "&"; } + if(m_engineLifecycleSupportHasBeenSet) + { + ss << "EngineLifecycleSupport=" << StringUtils::URLEncode(m_engineLifecycleSupport.c_str()) << "&"; + } + if(m_deletionProtectionHasBeenSet) { ss << "DeletionProtection=" << std::boolalpha << m_deletionProtection << "&"; diff --git a/generated/src/aws-cpp-sdk-rds/source/model/DBCluster.cpp b/generated/src/aws-cpp-sdk-rds/source/model/DBCluster.cpp index 0fe67da9467..e1a41315c45 100644 --- a/generated/src/aws-cpp-sdk-rds/source/model/DBCluster.cpp +++ b/generated/src/aws-cpp-sdk-rds/source/model/DBCluster.cpp @@ -124,7 +124,8 @@ DBCluster::DBCluster() : m_limitlessDatabaseHasBeenSet(false), m_storageThroughput(0), m_storageThroughputHasBeenSet(false), - m_certificateDetailsHasBeenSet(false) + m_certificateDetailsHasBeenSet(false), + m_engineLifecycleSupportHasBeenSet(false) { } @@ -232,7 +233,8 @@ DBCluster::DBCluster(const XmlNode& xmlNode) : m_limitlessDatabaseHasBeenSet(false), m_storageThroughput(0), m_storageThroughputHasBeenSet(false), - m_certificateDetailsHasBeenSet(false) + m_certificateDetailsHasBeenSet(false), + m_engineLifecycleSupportHasBeenSet(false) { *this = xmlNode; } @@ -783,6 +785,12 @@ DBCluster& DBCluster::operator =(const XmlNode& xmlNode) m_certificateDetails = certificateDetailsNode; m_certificateDetailsHasBeenSet = true; } + XmlNode engineLifecycleSupportNode = resultNode.FirstChild("EngineLifecycleSupport"); + if(!engineLifecycleSupportNode.IsNull()) + { + m_engineLifecycleSupport = Aws::Utils::Xml::DecodeEscapedXmlText(engineLifecycleSupportNode.GetText()); + m_engineLifecycleSupportHasBeenSet = true; + } } return *this; @@ -1257,6 +1265,11 @@ void DBCluster::OutputToStream(Aws::OStream& oStream, const char* location, unsi m_certificateDetails.OutputToStream(oStream, certificateDetailsLocationAndMemberSs.str().c_str()); } + if(m_engineLifecycleSupportHasBeenSet) + { + oStream << location << index << locationValue << ".EngineLifecycleSupport=" << StringUtils::URLEncode(m_engineLifecycleSupport.c_str()) << "&"; + } + } void DBCluster::OutputToStream(Aws::OStream& oStream, const char* location) const @@ -1649,6 +1662,10 @@ void DBCluster::OutputToStream(Aws::OStream& oStream, const char* location) cons certificateDetailsLocationAndMember += ".CertificateDetails"; m_certificateDetails.OutputToStream(oStream, certificateDetailsLocationAndMember.c_str()); } + if(m_engineLifecycleSupportHasBeenSet) + { + oStream << location << ".EngineLifecycleSupport=" << StringUtils::URLEncode(m_engineLifecycleSupport.c_str()) << "&"; + } } } // namespace Model diff --git a/generated/src/aws-cpp-sdk-rds/source/model/DBInstance.cpp b/generated/src/aws-cpp-sdk-rds/source/model/DBInstance.cpp index 74d07700e09..ef416f35c06 100644 --- a/generated/src/aws-cpp-sdk-rds/source/model/DBInstance.cpp +++ b/generated/src/aws-cpp-sdk-rds/source/model/DBInstance.cpp @@ -132,7 +132,8 @@ DBInstance::DBInstance() : m_isStorageConfigUpgradeAvailable(false), m_isStorageConfigUpgradeAvailableHasBeenSet(false), m_multiTenant(false), - m_multiTenantHasBeenSet(false) + m_multiTenantHasBeenSet(false), + m_engineLifecycleSupportHasBeenSet(false) { } @@ -248,7 +249,8 @@ DBInstance::DBInstance(const XmlNode& xmlNode) : m_isStorageConfigUpgradeAvailable(false), m_isStorageConfigUpgradeAvailableHasBeenSet(false), m_multiTenant(false), - m_multiTenantHasBeenSet(false) + m_multiTenantHasBeenSet(false), + m_engineLifecycleSupportHasBeenSet(false) { *this = xmlNode; } @@ -847,6 +849,12 @@ DBInstance& DBInstance::operator =(const XmlNode& xmlNode) m_multiTenant = StringUtils::ConvertToBool(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(multiTenantNode.GetText()).c_str()).c_str()); m_multiTenantHasBeenSet = true; } + XmlNode engineLifecycleSupportNode = resultNode.FirstChild("EngineLifecycleSupport"); + if(!engineLifecycleSupportNode.IsNull()) + { + m_engineLifecycleSupport = Aws::Utils::Xml::DecodeEscapedXmlText(engineLifecycleSupportNode.GetText()); + m_engineLifecycleSupportHasBeenSet = true; + } } return *this; @@ -1363,6 +1371,11 @@ void DBInstance::OutputToStream(Aws::OStream& oStream, const char* location, uns oStream << location << index << locationValue << ".MultiTenant=" << std::boolalpha << m_multiTenant << "&"; } + if(m_engineLifecycleSupportHasBeenSet) + { + oStream << location << index << locationValue << ".EngineLifecycleSupport=" << StringUtils::URLEncode(m_engineLifecycleSupport.c_str()) << "&"; + } + } void DBInstance::OutputToStream(Aws::OStream& oStream, const char* location) const @@ -1791,6 +1804,10 @@ void DBInstance::OutputToStream(Aws::OStream& oStream, const char* location) con { oStream << location << ".MultiTenant=" << std::boolalpha << m_multiTenant << "&"; } + if(m_engineLifecycleSupportHasBeenSet) + { + oStream << location << ".EngineLifecycleSupport=" << StringUtils::URLEncode(m_engineLifecycleSupport.c_str()) << "&"; + } } } // namespace Model diff --git a/generated/src/aws-cpp-sdk-rds/source/model/GlobalCluster.cpp b/generated/src/aws-cpp-sdk-rds/source/model/GlobalCluster.cpp index fefe2ce805a..807452d41a9 100644 --- a/generated/src/aws-cpp-sdk-rds/source/model/GlobalCluster.cpp +++ b/generated/src/aws-cpp-sdk-rds/source/model/GlobalCluster.cpp @@ -27,6 +27,7 @@ GlobalCluster::GlobalCluster() : m_statusHasBeenSet(false), m_engineHasBeenSet(false), m_engineVersionHasBeenSet(false), + m_engineLifecycleSupportHasBeenSet(false), m_databaseNameHasBeenSet(false), m_storageEncrypted(false), m_storageEncryptedHasBeenSet(false), @@ -44,6 +45,7 @@ GlobalCluster::GlobalCluster(const XmlNode& xmlNode) : m_statusHasBeenSet(false), m_engineHasBeenSet(false), m_engineVersionHasBeenSet(false), + m_engineLifecycleSupportHasBeenSet(false), m_databaseNameHasBeenSet(false), m_storageEncrypted(false), m_storageEncryptedHasBeenSet(false), @@ -97,6 +99,12 @@ GlobalCluster& GlobalCluster::operator =(const XmlNode& xmlNode) m_engineVersion = Aws::Utils::Xml::DecodeEscapedXmlText(engineVersionNode.GetText()); m_engineVersionHasBeenSet = true; } + XmlNode engineLifecycleSupportNode = resultNode.FirstChild("EngineLifecycleSupport"); + if(!engineLifecycleSupportNode.IsNull()) + { + m_engineLifecycleSupport = Aws::Utils::Xml::DecodeEscapedXmlText(engineLifecycleSupportNode.GetText()); + m_engineLifecycleSupportHasBeenSet = true; + } XmlNode databaseNameNode = resultNode.FirstChild("DatabaseName"); if(!databaseNameNode.IsNull()) { @@ -170,6 +178,11 @@ void GlobalCluster::OutputToStream(Aws::OStream& oStream, const char* location, oStream << location << index << locationValue << ".EngineVersion=" << StringUtils::URLEncode(m_engineVersion.c_str()) << "&"; } + if(m_engineLifecycleSupportHasBeenSet) + { + oStream << location << index << locationValue << ".EngineLifecycleSupport=" << StringUtils::URLEncode(m_engineLifecycleSupport.c_str()) << "&"; + } + if(m_databaseNameHasBeenSet) { oStream << location << index << locationValue << ".DatabaseName=" << StringUtils::URLEncode(m_databaseName.c_str()) << "&"; @@ -231,6 +244,10 @@ void GlobalCluster::OutputToStream(Aws::OStream& oStream, const char* location) { oStream << location << ".EngineVersion=" << StringUtils::URLEncode(m_engineVersion.c_str()) << "&"; } + if(m_engineLifecycleSupportHasBeenSet) + { + oStream << location << ".EngineLifecycleSupport=" << StringUtils::URLEncode(m_engineLifecycleSupport.c_str()) << "&"; + } if(m_databaseNameHasBeenSet) { oStream << location << ".DatabaseName=" << StringUtils::URLEncode(m_databaseName.c_str()) << "&"; diff --git a/generated/src/aws-cpp-sdk-rds/source/model/RestoreDBClusterFromS3Request.cpp b/generated/src/aws-cpp-sdk-rds/source/model/RestoreDBClusterFromS3Request.cpp index 2fc0eee0ae5..f92f7399d6e 100644 --- a/generated/src/aws-cpp-sdk-rds/source/model/RestoreDBClusterFromS3Request.cpp +++ b/generated/src/aws-cpp-sdk-rds/source/model/RestoreDBClusterFromS3Request.cpp @@ -54,7 +54,8 @@ RestoreDBClusterFromS3Request::RestoreDBClusterFromS3Request() : m_manageMasterUserPassword(false), m_manageMasterUserPasswordHasBeenSet(false), m_masterUserSecretKmsKeyIdHasBeenSet(false), - m_storageTypeHasBeenSet(false) + m_storageTypeHasBeenSet(false), + m_engineLifecycleSupportHasBeenSet(false) { } @@ -265,6 +266,11 @@ Aws::String RestoreDBClusterFromS3Request::SerializePayload() const ss << "StorageType=" << StringUtils::URLEncode(m_storageType.c_str()) << "&"; } + if(m_engineLifecycleSupportHasBeenSet) + { + ss << "EngineLifecycleSupport=" << StringUtils::URLEncode(m_engineLifecycleSupport.c_str()) << "&"; + } + ss << "Version=2014-10-31"; return ss.str(); } diff --git a/generated/src/aws-cpp-sdk-rds/source/model/RestoreDBClusterFromSnapshotRequest.cpp b/generated/src/aws-cpp-sdk-rds/source/model/RestoreDBClusterFromSnapshotRequest.cpp index 0355be9cb7b..03714cc568d 100644 --- a/generated/src/aws-cpp-sdk-rds/source/model/RestoreDBClusterFromSnapshotRequest.cpp +++ b/generated/src/aws-cpp-sdk-rds/source/model/RestoreDBClusterFromSnapshotRequest.cpp @@ -46,7 +46,8 @@ RestoreDBClusterFromSnapshotRequest::RestoreDBClusterFromSnapshotRequest() : m_publiclyAccessibleHasBeenSet(false), m_serverlessV2ScalingConfigurationHasBeenSet(false), m_networkTypeHasBeenSet(false), - m_rdsCustomClusterConfigurationHasBeenSet(false) + m_rdsCustomClusterConfigurationHasBeenSet(false), + m_engineLifecycleSupportHasBeenSet(false) { } @@ -222,6 +223,11 @@ Aws::String RestoreDBClusterFromSnapshotRequest::SerializePayload() const m_rdsCustomClusterConfiguration.OutputToStream(ss, "RdsCustomClusterConfiguration"); } + if(m_engineLifecycleSupportHasBeenSet) + { + ss << "EngineLifecycleSupport=" << StringUtils::URLEncode(m_engineLifecycleSupport.c_str()) << "&"; + } + ss << "Version=2014-10-31"; return ss.str(); } diff --git a/generated/src/aws-cpp-sdk-rds/source/model/RestoreDBClusterToPointInTimeRequest.cpp b/generated/src/aws-cpp-sdk-rds/source/model/RestoreDBClusterToPointInTimeRequest.cpp index 37a2ba34ac0..daa883826dd 100644 --- a/generated/src/aws-cpp-sdk-rds/source/model/RestoreDBClusterToPointInTimeRequest.cpp +++ b/generated/src/aws-cpp-sdk-rds/source/model/RestoreDBClusterToPointInTimeRequest.cpp @@ -47,7 +47,8 @@ RestoreDBClusterToPointInTimeRequest::RestoreDBClusterToPointInTimeRequest() : m_serverlessV2ScalingConfigurationHasBeenSet(false), m_networkTypeHasBeenSet(false), m_sourceDbClusterResourceIdHasBeenSet(false), - m_rdsCustomClusterConfigurationHasBeenSet(false) + m_rdsCustomClusterConfigurationHasBeenSet(false), + m_engineLifecycleSupportHasBeenSet(false) { } @@ -217,6 +218,11 @@ Aws::String RestoreDBClusterToPointInTimeRequest::SerializePayload() const m_rdsCustomClusterConfiguration.OutputToStream(ss, "RdsCustomClusterConfiguration"); } + if(m_engineLifecycleSupportHasBeenSet) + { + ss << "EngineLifecycleSupport=" << StringUtils::URLEncode(m_engineLifecycleSupport.c_str()) << "&"; + } + ss << "Version=2014-10-31"; return ss.str(); } diff --git a/generated/src/aws-cpp-sdk-rds/source/model/RestoreDBInstanceFromDBSnapshotRequest.cpp b/generated/src/aws-cpp-sdk-rds/source/model/RestoreDBInstanceFromDBSnapshotRequest.cpp index 243a90420c9..c3b3cb2ec9c 100644 --- a/generated/src/aws-cpp-sdk-rds/source/model/RestoreDBInstanceFromDBSnapshotRequest.cpp +++ b/generated/src/aws-cpp-sdk-rds/source/model/RestoreDBInstanceFromDBSnapshotRequest.cpp @@ -64,7 +64,8 @@ RestoreDBInstanceFromDBSnapshotRequest::RestoreDBInstanceFromDBSnapshotRequest() m_allocatedStorageHasBeenSet(false), m_dedicatedLogVolume(false), m_dedicatedLogVolumeHasBeenSet(false), - m_cACertificateIdentifierHasBeenSet(false) + m_cACertificateIdentifierHasBeenSet(false), + m_engineLifecycleSupportHasBeenSet(false) { } @@ -305,6 +306,11 @@ Aws::String RestoreDBInstanceFromDBSnapshotRequest::SerializePayload() const ss << "CACertificateIdentifier=" << StringUtils::URLEncode(m_cACertificateIdentifier.c_str()) << "&"; } + if(m_engineLifecycleSupportHasBeenSet) + { + ss << "EngineLifecycleSupport=" << StringUtils::URLEncode(m_engineLifecycleSupport.c_str()) << "&"; + } + ss << "Version=2014-10-31"; return ss.str(); } diff --git a/generated/src/aws-cpp-sdk-rds/source/model/RestoreDBInstanceFromS3Request.cpp b/generated/src/aws-cpp-sdk-rds/source/model/RestoreDBInstanceFromS3Request.cpp index 3a46390974d..7fd66d74d20 100644 --- a/generated/src/aws-cpp-sdk-rds/source/model/RestoreDBInstanceFromS3Request.cpp +++ b/generated/src/aws-cpp-sdk-rds/source/model/RestoreDBInstanceFromS3Request.cpp @@ -79,7 +79,8 @@ RestoreDBInstanceFromS3Request::RestoreDBInstanceFromS3Request() : m_masterUserSecretKmsKeyIdHasBeenSet(false), m_dedicatedLogVolume(false), m_dedicatedLogVolumeHasBeenSet(false), - m_cACertificateIdentifierHasBeenSet(false) + m_cACertificateIdentifierHasBeenSet(false), + m_engineLifecycleSupportHasBeenSet(false) { } @@ -365,6 +366,11 @@ Aws::String RestoreDBInstanceFromS3Request::SerializePayload() const ss << "CACertificateIdentifier=" << StringUtils::URLEncode(m_cACertificateIdentifier.c_str()) << "&"; } + if(m_engineLifecycleSupportHasBeenSet) + { + ss << "EngineLifecycleSupport=" << StringUtils::URLEncode(m_engineLifecycleSupport.c_str()) << "&"; + } + ss << "Version=2014-10-31"; return ss.str(); } diff --git a/generated/src/aws-cpp-sdk-rds/source/model/RestoreDBInstanceToPointInTimeRequest.cpp b/generated/src/aws-cpp-sdk-rds/source/model/RestoreDBInstanceToPointInTimeRequest.cpp index 16988f1299a..ae97182b7b8 100644 --- a/generated/src/aws-cpp-sdk-rds/source/model/RestoreDBInstanceToPointInTimeRequest.cpp +++ b/generated/src/aws-cpp-sdk-rds/source/model/RestoreDBInstanceToPointInTimeRequest.cpp @@ -70,7 +70,8 @@ RestoreDBInstanceToPointInTimeRequest::RestoreDBInstanceToPointInTimeRequest() : m_allocatedStorageHasBeenSet(false), m_dedicatedLogVolume(false), m_dedicatedLogVolumeHasBeenSet(false), - m_cACertificateIdentifierHasBeenSet(false) + m_cACertificateIdentifierHasBeenSet(false), + m_engineLifecycleSupportHasBeenSet(false) { } @@ -331,6 +332,11 @@ Aws::String RestoreDBInstanceToPointInTimeRequest::SerializePayload() const ss << "CACertificateIdentifier=" << StringUtils::URLEncode(m_cACertificateIdentifier.c_str()) << "&"; } + if(m_engineLifecycleSupportHasBeenSet) + { + ss << "EngineLifecycleSupport=" << StringUtils::URLEncode(m_engineLifecycleSupport.c_str()) << "&"; + } + ss << "Version=2014-10-31"; return ss.str(); } diff --git a/generated/src/aws-cpp-sdk-secretsmanager/include/aws/secretsmanager/model/DescribeSecretResult.h b/generated/src/aws-cpp-sdk-secretsmanager/include/aws/secretsmanager/model/DescribeSecretResult.h index 78b55b6fc73..03b73e02b38 100644 --- a/generated/src/aws-cpp-sdk-secretsmanager/include/aws/secretsmanager/model/DescribeSecretResult.h +++ b/generated/src/aws-cpp-sdk-secretsmanager/include/aws/secretsmanager/model/DescribeSecretResult.h @@ -204,25 +204,22 @@ namespace Model /** - *

      Specifies whether automatic rotation is turned on for this secret. If the - * secret has never been configured for rotation, Secrets Manager returns null.

      - *

      To turn on rotation, use RotateSecret. To turn off rotation, use + *

      Specifies whether automatic rotation is turned on for this secret.

      To + * turn on rotation, use RotateSecret. To turn off rotation, use * CancelRotateSecret.

      */ inline bool GetRotationEnabled() const{ return m_rotationEnabled; } /** - *

      Specifies whether automatic rotation is turned on for this secret. If the - * secret has never been configured for rotation, Secrets Manager returns null.

      - *

      To turn on rotation, use RotateSecret. To turn off rotation, use + *

      Specifies whether automatic rotation is turned on for this secret.

      To + * turn on rotation, use RotateSecret. To turn off rotation, use * CancelRotateSecret.

      */ inline void SetRotationEnabled(bool value) { m_rotationEnabled = value; } /** - *

      Specifies whether automatic rotation is turned on for this secret. If the - * secret has never been configured for rotation, Secrets Manager returns null.

      - *

      To turn on rotation, use RotateSecret. To turn off rotation, use + *

      Specifies whether automatic rotation is turned on for this secret.

      To + * turn on rotation, use RotateSecret. To turn off rotation, use * CancelRotateSecret.

      */ inline DescribeSecretResult& WithRotationEnabled(bool value) { SetRotationEnabled(value); return *this;} diff --git a/generated/src/aws-cpp-sdk-secretsmanager/include/aws/secretsmanager/model/GetSecretValueRequest.h b/generated/src/aws-cpp-sdk-secretsmanager/include/aws/secretsmanager/model/GetSecretValueRequest.h index 52f8486b091..840c688da57 100644 --- a/generated/src/aws-cpp-sdk-secretsmanager/include/aws/secretsmanager/model/GetSecretValueRequest.h +++ b/generated/src/aws-cpp-sdk-secretsmanager/include/aws/secretsmanager/model/GetSecretValueRequest.h @@ -35,72 +35,64 @@ namespace Model /** - *

      The ARN or name of the secret to retrieve. To retrieve a secret from another - * account, you must use an ARN.

      For an ARN, we recommend that you specify a - * complete ARN rather than a partial ARN. See The ARN or name of the secret to retrieve.

      For an ARN, we recommend + * that you specify a complete ARN rather than a partial ARN. See Finding * a secret from a partial ARN.

      */ inline const Aws::String& GetSecretId() const{ return m_secretId; } /** - *

      The ARN or name of the secret to retrieve. To retrieve a secret from another - * account, you must use an ARN.

      For an ARN, we recommend that you specify a - * complete ARN rather than a partial ARN. See The ARN or name of the secret to retrieve.

      For an ARN, we recommend + * that you specify a complete ARN rather than a partial ARN. See Finding * a secret from a partial ARN.

      */ inline bool SecretIdHasBeenSet() const { return m_secretIdHasBeenSet; } /** - *

      The ARN or name of the secret to retrieve. To retrieve a secret from another - * account, you must use an ARN.

      For an ARN, we recommend that you specify a - * complete ARN rather than a partial ARN. See The ARN or name of the secret to retrieve.

      For an ARN, we recommend + * that you specify a complete ARN rather than a partial ARN. See Finding * a secret from a partial ARN.

      */ inline void SetSecretId(const Aws::String& value) { m_secretIdHasBeenSet = true; m_secretId = value; } /** - *

      The ARN or name of the secret to retrieve. To retrieve a secret from another - * account, you must use an ARN.

      For an ARN, we recommend that you specify a - * complete ARN rather than a partial ARN. See The ARN or name of the secret to retrieve.

      For an ARN, we recommend + * that you specify a complete ARN rather than a partial ARN. See Finding * a secret from a partial ARN.

      */ inline void SetSecretId(Aws::String&& value) { m_secretIdHasBeenSet = true; m_secretId = std::move(value); } /** - *

      The ARN or name of the secret to retrieve. To retrieve a secret from another - * account, you must use an ARN.

      For an ARN, we recommend that you specify a - * complete ARN rather than a partial ARN. See The ARN or name of the secret to retrieve.

      For an ARN, we recommend + * that you specify a complete ARN rather than a partial ARN. See Finding * a secret from a partial ARN.

      */ inline void SetSecretId(const char* value) { m_secretIdHasBeenSet = true; m_secretId.assign(value); } /** - *

      The ARN or name of the secret to retrieve. To retrieve a secret from another - * account, you must use an ARN.

      For an ARN, we recommend that you specify a - * complete ARN rather than a partial ARN. See The ARN or name of the secret to retrieve.

      For an ARN, we recommend + * that you specify a complete ARN rather than a partial ARN. See Finding * a secret from a partial ARN.

      */ inline GetSecretValueRequest& WithSecretId(const Aws::String& value) { SetSecretId(value); return *this;} /** - *

      The ARN or name of the secret to retrieve. To retrieve a secret from another - * account, you must use an ARN.

      For an ARN, we recommend that you specify a - * complete ARN rather than a partial ARN. See The ARN or name of the secret to retrieve.

      For an ARN, we recommend + * that you specify a complete ARN rather than a partial ARN. See Finding * a secret from a partial ARN.

      */ inline GetSecretValueRequest& WithSecretId(Aws::String&& value) { SetSecretId(std::move(value)); return *this;} /** - *

      The ARN or name of the secret to retrieve. To retrieve a secret from another - * account, you must use an ARN.

      For an ARN, we recommend that you specify a - * complete ARN rather than a partial ARN. See The ARN or name of the secret to retrieve.

      For an ARN, we recommend + * that you specify a complete ARN rather than a partial ARN. See Finding * a secret from a partial ARN.

      */ diff --git a/generated/src/aws-cpp-sdk-secretsmanager/include/aws/secretsmanager/model/RotateSecretRequest.h b/generated/src/aws-cpp-sdk-secretsmanager/include/aws/secretsmanager/model/RotateSecretRequest.h index 0c6e6e6025f..c62a0f95524 100644 --- a/generated/src/aws-cpp-sdk-secretsmanager/include/aws/secretsmanager/model/RotateSecretRequest.h +++ b/generated/src/aws-cpp-sdk-secretsmanager/include/aws/secretsmanager/model/RotateSecretRequest.h @@ -356,7 +356,7 @@ namespace Model * RotateSecretRequest$RotationRules.

      For secrets that use a Lambda * rotation function to rotate, if you don't immediately rotate the secret, Secrets * Manager tests the rotation configuration by running the + * href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/rotate-secrets_how.html"> * testSecret step of the Lambda rotation function. The test * creates an AWSPENDING version of the secret and then removes * it.

      By default, Secrets Manager rotates the secret immediately.

      @@ -369,7 +369,7 @@ namespace Model * RotateSecretRequest$RotationRules.

      For secrets that use a Lambda * rotation function to rotate, if you don't immediately rotate the secret, Secrets * Manager tests the rotation configuration by running the + * href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/rotate-secrets_how.html"> * testSecret step of the Lambda rotation function. The test * creates an AWSPENDING version of the secret and then removes * it.

      By default, Secrets Manager rotates the secret immediately.

      @@ -382,7 +382,7 @@ namespace Model * RotateSecretRequest$RotationRules.

      For secrets that use a Lambda * rotation function to rotate, if you don't immediately rotate the secret, Secrets * Manager tests the rotation configuration by running the + * href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/rotate-secrets_how.html"> * testSecret step of the Lambda rotation function. The test * creates an AWSPENDING version of the secret and then removes * it.

      By default, Secrets Manager rotates the secret immediately.

      @@ -395,7 +395,7 @@ namespace Model * RotateSecretRequest$RotationRules.

      For secrets that use a Lambda * rotation function to rotate, if you don't immediately rotate the secret, Secrets * Manager tests the rotation configuration by running the + * href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/rotate-secrets_how.html"> * testSecret step of the Lambda rotation function. The test * creates an AWSPENDING version of the secret and then removes * it.

      By default, Secrets Manager rotates the secret immediately.

      diff --git a/generated/src/aws-cpp-sdk-secretsmanager/include/aws/secretsmanager/model/ValidateResourcePolicyRequest.h b/generated/src/aws-cpp-sdk-secretsmanager/include/aws/secretsmanager/model/ValidateResourcePolicyRequest.h index 600fbd0a7e6..7425337f616 100644 --- a/generated/src/aws-cpp-sdk-secretsmanager/include/aws/secretsmanager/model/ValidateResourcePolicyRequest.h +++ b/generated/src/aws-cpp-sdk-secretsmanager/include/aws/secretsmanager/model/ValidateResourcePolicyRequest.h @@ -35,50 +35,42 @@ namespace Model /** - *

      The ARN or name of the secret with the resource-based policy you want to - * validate.

      + *

      This field is reserved for internal use.

      */ inline const Aws::String& GetSecretId() const{ return m_secretId; } /** - *

      The ARN or name of the secret with the resource-based policy you want to - * validate.

      + *

      This field is reserved for internal use.

      */ inline bool SecretIdHasBeenSet() const { return m_secretIdHasBeenSet; } /** - *

      The ARN or name of the secret with the resource-based policy you want to - * validate.

      + *

      This field is reserved for internal use.

      */ inline void SetSecretId(const Aws::String& value) { m_secretIdHasBeenSet = true; m_secretId = value; } /** - *

      The ARN or name of the secret with the resource-based policy you want to - * validate.

      + *

      This field is reserved for internal use.

      */ inline void SetSecretId(Aws::String&& value) { m_secretIdHasBeenSet = true; m_secretId = std::move(value); } /** - *

      The ARN or name of the secret with the resource-based policy you want to - * validate.

      + *

      This field is reserved for internal use.

      */ inline void SetSecretId(const char* value) { m_secretIdHasBeenSet = true; m_secretId.assign(value); } /** - *

      The ARN or name of the secret with the resource-based policy you want to - * validate.

      + *

      This field is reserved for internal use.

      */ inline ValidateResourcePolicyRequest& WithSecretId(const Aws::String& value) { SetSecretId(value); return *this;} /** - *

      The ARN or name of the secret with the resource-based policy you want to - * validate.

      + *

      This field is reserved for internal use.

      */ inline ValidateResourcePolicyRequest& WithSecretId(Aws::String&& value) { SetSecretId(std::move(value)); return *this;} /** - *

      The ARN or name of the secret with the resource-based policy you want to - * validate.

      + *

      This field is reserved for internal use.

      */ inline ValidateResourcePolicyRequest& WithSecretId(const char* value) { SetSecretId(value); return *this;} 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 f50dcb409aa..89024f50c1d 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.331" +#define AWS_SDK_VERSION_STRING "1.11.332" #define AWS_SDK_VERSION_MAJOR 1 #define AWS_SDK_VERSION_MINOR 11 -#define AWS_SDK_VERSION_PATCH 331 +#define AWS_SDK_VERSION_PATCH 332 diff --git a/tools/code-generation/api-descriptions/bedrock-agent-2023-06-05.normal.json b/tools/code-generation/api-descriptions/bedrock-agent-2023-06-05.normal.json index 1b06e635924..ec10d6386b0 100644 --- a/tools/code-generation/api-descriptions/bedrock-agent-2023-06-05.normal.json +++ b/tools/code-generation/api-descriptions/bedrock-agent-2023-06-05.normal.json @@ -936,6 +936,10 @@ "shape":"ModelIdentifier", "documentation":"

      The foundation model used for orchestration by the agent.

      " }, + "guardrailConfiguration":{ + "shape":"GuardrailConfiguration", + "documentation":"

      The guardrails configuration assigned to the agent.

      " + }, "idleSessionTTLInSeconds":{ "shape":"SessionTTL", "documentation":"

      The number of seconds for which Amazon Bedrock keeps information about a user's conversation with the agent.

      A user interaction remains active for the amount of time specified. If no conversation occurs during this time, the session expires and Amazon Bedrock deletes any data provided before the timeout.

      " @@ -1293,7 +1297,7 @@ "type":"string", "max":2048, "min":0, - "pattern":"^arn:aws(-[^:]+)?:iam::([0-9]{12})?:role/(service-role/)?AmazonBedrockExecutionRoleForAgents_.+$" + "pattern":"^arn:aws(-[^:]+)?:iam::([0-9]{12})?:role/.+$" }, "AgentStatus":{ "type":"string", @@ -1339,6 +1343,10 @@ "shape":"Description", "documentation":"

      The description of the agent.

      " }, + "guardrailConfiguration":{ + "shape":"GuardrailConfiguration", + "documentation":"

      The details of the guardrails configuration in the agent summary.

      " + }, "latestAgentVersion":{ "shape":"Version", "documentation":"

      The latest version of the agent.

      " @@ -1404,6 +1412,10 @@ "shape":"ModelIdentifier", "documentation":"

      The foundation model that the version invokes.

      " }, + "guardrailConfiguration":{ + "shape":"GuardrailConfiguration", + "documentation":"

      The guardrails configuration assigned to the agent version.

      " + }, "idleSessionTTLInSeconds":{ "shape":"SessionTTL", "documentation":"

      The number of seconds for which Amazon Bedrock keeps information about a user's conversation with the agent.

      A user interaction remains active for the amount of time specified. If no conversation occurs during this time, the session expires and Amazon Bedrock deletes any data provided before the timeout.

      " @@ -1467,6 +1479,10 @@ "shape":"Description", "documentation":"

      The description of the version of the agent.

      " }, + "guardrailConfiguration":{ + "shape":"GuardrailConfiguration", + "documentation":"

      The details of the guardrails configuration in the agent version summary.

      " + }, "updatedAt":{ "shape":"DateTimestamp", "documentation":"

      The time at which the version was last updated.

      " @@ -1526,9 +1542,9 @@ }, "BedrockEmbeddingModelArn":{ "type":"string", - "max":1011, + "max":2048, "min":20, - "pattern":"^arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:(([0-9]{12}:custom-model/[a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}/[a-z0-9]{12})|(:foundation-model/[a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}))$" + "pattern":"^(arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:(([0-9]{12}:custom-model/[a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}/[a-z0-9]{12})|(:foundation-model/[a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([.:]?[a-z0-9-]{1,63}))|([0-9]{12}:provisioned-model/[a-z0-9]{12})))|([a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([.:]?[a-z0-9-]{1,63}))|(([0-9a-zA-Z][_-]?)+)$" }, "Boolean":{ "type":"boolean", @@ -1726,6 +1742,10 @@ "shape":"ModelIdentifier", "documentation":"

      The foundation model to be used for orchestration by the agent you create.

      " }, + "guardrailConfiguration":{ + "shape":"GuardrailConfiguration", + "documentation":"

      The unique Guardrail configuration assigned to the agent when it is created.

      " + }, "idleSessionTTLInSeconds":{ "shape":"SessionTTL", "documentation":"

      The number of seconds for which Amazon Bedrock keeps information about a user's conversation with the agent.

      A user interaction remains active for the amount of time specified. If no conversation occurs during this time, the session expires and Amazon Bedrock deletes any data provided before the timeout.

      " @@ -2630,6 +2650,30 @@ } } }, + "GuardrailConfiguration":{ + "type":"structure", + "members":{ + "guardrailIdentifier":{ + "shape":"GuardrailIdentifier", + "documentation":"

      The guardrails identifier assigned to the guardrails configuration.

      " + }, + "guardrailVersion":{ + "shape":"GuardrailVersion", + "documentation":"

      The guardrails version assigned to the guardrails configuration.

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

      The details of the guardrails configuration.

      " + }, + "GuardrailIdentifier":{ + "type":"string", + "max":2048, + "min":0, + "pattern":"^(([a-z0-9]+)|(arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:[0-9]{12}:guardrail/[a-z0-9]+))$" + }, + "GuardrailVersion":{ + "type":"string", + "pattern":"^(([0-9]{1,8})|(DRAFT))$" + }, "Id":{ "type":"string", "pattern":"^[0-9a-zA-Z]{10}$" @@ -2879,7 +2923,7 @@ }, "Instruction":{ "type":"string", - "max":1200, + "max":4000, "min":40, "sensitive":true }, @@ -3699,7 +3743,7 @@ "members":{ "basePromptTemplate":{ "shape":"BasePromptTemplate", - "documentation":"

      Defines the prompt template with which to replace the default prompt template. You can use placeholder variables in the base prompt template to customize the prompt. For more information, see Prompt template placeholder variables.

      " + "documentation":"

      Defines the prompt template with which to replace the default prompt template. You can use placeholder variables in the base prompt template to customize the prompt. For more information, see Prompt template placeholder variables. For more information, see Configure the prompt templates.

      " }, "inferenceConfiguration":{ "shape":"InferenceConfiguration", @@ -3736,7 +3780,7 @@ "members":{ "overrideLambda":{ "shape":"LambdaArn", - "documentation":"

      The ARN of the Lambda function to use when parsing the raw foundation model output in parts of the agent sequence. If you specify this field, at least one of the promptConfigurations must contain a parserMode value that is set to OVERRIDDEN.

      " + "documentation":"

      The ARN of the Lambda function to use when parsing the raw foundation model output in parts of the agent sequence. If you specify this field, at least one of the promptConfigurations must contain a parserMode value that is set to OVERRIDDEN. For more information, see Parser Lambda function in Agents for Amazon Bedrock.

      " }, "promptConfigurations":{ "shape":"PromptConfigurations", @@ -4421,6 +4465,10 @@ "shape":"ModelIdentifier", "documentation":"

      Specifies a new foundation model to be used for orchestration by the agent.

      " }, + "guardrailConfiguration":{ + "shape":"GuardrailConfiguration", + "documentation":"

      The unique Guardrail configuration assigned to the agent when it is updated.

      " + }, "idleSessionTTLInSeconds":{ "shape":"SessionTTL", "documentation":"

      The number of seconds for which Amazon Bedrock keeps information about a user's conversation with the agent.

      A user interaction remains active for the amount of time specified. If no conversation occurs during this time, the session expires and Amazon Bedrock deletes any data provided before the timeout.

      " 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 4ebcacf0a50..a0dc239a329 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 @@ -657,6 +657,40 @@ "NONE" ] }, + "GuardrailAction":{ + "type":"string", + "enum":[ + "INTERVENED", + "NONE" + ] + }, + "GuardrailAssessment":{ + "type":"structure", + "members":{ + "contentPolicy":{ + "shape":"GuardrailContentPolicyAssessment", + "documentation":"

      Content policy details of the Guardrail.

      " + }, + "sensitiveInformationPolicy":{ + "shape":"GuardrailSensitiveInformationPolicyAssessment", + "documentation":"

      Sensitive Information policy details of Guardrail.

      " + }, + "topicPolicy":{ + "shape":"GuardrailTopicPolicyAssessment", + "documentation":"

      Topic policy details of the Guardrail.

      " + }, + "wordPolicy":{ + "shape":"GuardrailWordPolicyAssessment", + "documentation":"

      Word policy details of the Guardrail.

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

      Assessment details of the content analyzed by Guardrails.

      ", + "sensitive":true + }, + "GuardrailAssessmentList":{ + "type":"list", + "member":{"shape":"GuardrailAssessment"} + }, "GuardrailConfiguration":{ "type":"structure", "required":[ @@ -687,6 +721,308 @@ "min":1, "pattern":"^(([1-9][0-9]{0,7})|(DRAFT))$" }, + "GuardrailContentFilter":{ + "type":"structure", + "members":{ + "action":{ + "shape":"GuardrailContentPolicyAction", + "documentation":"

      The action placed on the content by the Guardrail filter.

      " + }, + "confidence":{ + "shape":"GuardrailContentFilterConfidence", + "documentation":"

      The confidence level regarding the content detected in the filter by the Guardrail.

      " + }, + "type":{ + "shape":"GuardrailContentFilterType", + "documentation":"

      The type of content detected in the filter by the Guardrail.

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

      Details of the content filter used in the Guardrail.

      ", + "sensitive":true + }, + "GuardrailContentFilterConfidence":{ + "type":"string", + "enum":[ + "NONE", + "LOW", + "MEDIUM", + "HIGH" + ] + }, + "GuardrailContentFilterList":{ + "type":"list", + "member":{"shape":"GuardrailContentFilter"}, + "sensitive":true + }, + "GuardrailContentFilterType":{ + "type":"string", + "enum":[ + "INSULTS", + "HATE", + "SEXUAL", + "VIOLENCE", + "MISCONDUCT", + "PROMPT_ATTACK" + ] + }, + "GuardrailContentPolicyAction":{ + "type":"string", + "enum":["BLOCKED"] + }, + "GuardrailContentPolicyAssessment":{ + "type":"structure", + "members":{ + "filters":{ + "shape":"GuardrailContentFilterList", + "documentation":"

      The filter details of the policy assessment used in the Guardrails filter.

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

      The details of the policy assessment in the Guardrails filter.

      ", + "sensitive":true + }, + "GuardrailCustomWord":{ + "type":"structure", + "members":{ + "action":{ + "shape":"GuardrailWordPolicyAction", + "documentation":"

      The action details for the custom word filter in the Guardrail.

      " + }, + "match":{ + "shape":"String", + "documentation":"

      The match details for the custom word filter in the Guardrail.

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

      The custom word details for the filter in the Guardrail.

      ", + "sensitive":true + }, + "GuardrailCustomWordList":{ + "type":"list", + "member":{"shape":"GuardrailCustomWord"}, + "sensitive":true + }, + "GuardrailManagedWord":{ + "type":"structure", + "members":{ + "action":{ + "shape":"GuardrailWordPolicyAction", + "documentation":"

      The action details for the managed word filter in the Guardrail.

      " + }, + "match":{ + "shape":"String", + "documentation":"

      The match details for the managed word filter in the Guardrail.

      " + }, + "type":{ + "shape":"GuardrailManagedWordType", + "documentation":"

      The type details for the managed word filter in the Guardrail.

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

      The managed word details for the filter in the Guardrail.

      ", + "sensitive":true + }, + "GuardrailManagedWordList":{ + "type":"list", + "member":{"shape":"GuardrailManagedWord"}, + "sensitive":true + }, + "GuardrailManagedWordType":{ + "type":"string", + "enum":["PROFANITY"] + }, + "GuardrailPiiEntityFilter":{ + "type":"structure", + "members":{ + "action":{ + "shape":"GuardrailSensitiveInformationPolicyAction", + "documentation":"

      The action of the Guardrail filter to identify and remove PII.

      " + }, + "match":{ + "shape":"String", + "documentation":"

      The match to settings in the Guardrail filter to identify and remove PII.

      " + }, + "type":{ + "shape":"GuardrailPiiEntityType", + "documentation":"

      The type of PII the Guardrail filter has identified and removed.

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

      The Guardrail filter to identify and remove personally identifiable information (PII).

      ", + "sensitive":true + }, + "GuardrailPiiEntityFilterList":{ + "type":"list", + "member":{"shape":"GuardrailPiiEntityFilter"}, + "sensitive":true + }, + "GuardrailPiiEntityType":{ + "type":"string", + "enum":[ + "ADDRESS", + "AGE", + "AWS_ACCESS_KEY", + "AWS_SECRET_KEY", + "CA_HEALTH_NUMBER", + "CA_SOCIAL_INSURANCE_NUMBER", + "CREDIT_DEBIT_CARD_CVV", + "CREDIT_DEBIT_CARD_EXPIRY", + "CREDIT_DEBIT_CARD_NUMBER", + "DRIVER_ID", + "EMAIL", + "INTERNATIONAL_BANK_ACCOUNT_NUMBER", + "IP_ADDRESS", + "LICENSE_PLATE", + "MAC_ADDRESS", + "NAME", + "PASSWORD", + "PHONE", + "PIN", + "SWIFT_CODE", + "UK_NATIONAL_HEALTH_SERVICE_NUMBER", + "UK_NATIONAL_INSURANCE_NUMBER", + "UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER", + "URL", + "USERNAME", + "US_BANK_ACCOUNT_NUMBER", + "US_BANK_ROUTING_NUMBER", + "US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER", + "US_PASSPORT_NUMBER", + "US_SOCIAL_SECURITY_NUMBER", + "VEHICLE_IDENTIFICATION_NUMBER" + ] + }, + "GuardrailRegexFilter":{ + "type":"structure", + "members":{ + "action":{ + "shape":"GuardrailSensitiveInformationPolicyAction", + "documentation":"

      The action details for the regex filter used in the Guardrail.

      " + }, + "match":{ + "shape":"String", + "documentation":"

      The match details for the regex filter used in the Guardrail.

      " + }, + "name":{ + "shape":"String", + "documentation":"

      The name details for the regex filter used in the Guardrail.

      " + }, + "regex":{ + "shape":"String", + "documentation":"

      The regex details for the regex filter used in the Guardrail.

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

      The details for the regex filter used in the Guardrail.

      ", + "sensitive":true + }, + "GuardrailRegexFilterList":{ + "type":"list", + "member":{"shape":"GuardrailRegexFilter"}, + "sensitive":true + }, + "GuardrailSensitiveInformationPolicyAction":{ + "type":"string", + "enum":[ + "BLOCKED", + "ANONYMIZED" + ] + }, + "GuardrailSensitiveInformationPolicyAssessment":{ + "type":"structure", + "members":{ + "piiEntities":{ + "shape":"GuardrailPiiEntityFilterList", + "documentation":"

      The details of the PII entities used in the sensitive policy assessment for the Guardrail.

      " + }, + "regexes":{ + "shape":"GuardrailRegexFilterList", + "documentation":"

      The details of the regexes used in the sensitive policy assessment for the Guardrail.

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

      The details of the sensitive policy assessment used in the Guardrail.

      ", + "sensitive":true + }, + "GuardrailTopic":{ + "type":"structure", + "members":{ + "action":{ + "shape":"GuardrailTopicPolicyAction", + "documentation":"

      The action details on a specific topic in the Guardrail.

      " + }, + "name":{ + "shape":"String", + "documentation":"

      The name details on a specific topic in the Guardrail.

      " + }, + "type":{ + "shape":"GuardrailTopicType", + "documentation":"

      The type details on a specific topic in the Guardrail.

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

      The details for a specific topic defined in the Guardrail.

      ", + "sensitive":true + }, + "GuardrailTopicList":{ + "type":"list", + "member":{"shape":"GuardrailTopic"}, + "sensitive":true + }, + "GuardrailTopicPolicyAction":{ + "type":"string", + "enum":["BLOCKED"] + }, + "GuardrailTopicPolicyAssessment":{ + "type":"structure", + "members":{ + "topics":{ + "shape":"GuardrailTopicList", + "documentation":"

      The topic details of the policy assessment used in the Guardrail.

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

      The details of the policy assessment used in the Guardrail.

      ", + "sensitive":true + }, + "GuardrailTopicType":{ + "type":"string", + "enum":["DENY"] + }, + "GuardrailTrace":{ + "type":"structure", + "members":{ + "action":{ + "shape":"GuardrailAction", + "documentation":"

      The trace action details used with the Guardrail.

      " + }, + "inputAssessments":{ + "shape":"GuardrailAssessmentList", + "documentation":"

      The details of the input assessments used in the Guardrail Trace.

      " + }, + "outputAssessments":{ + "shape":"GuardrailAssessmentList", + "documentation":"

      The details of the output assessments used in the Guardrail Trace.

      " + }, + "traceId":{ + "shape":"TraceId", + "documentation":"

      The details of the trace Id used in the Guardrail Trace.

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

      The trace details used in the Guardrail.

      ", + "sensitive":true + }, + "GuardrailWordPolicyAction":{ + "type":"string", + "enum":["BLOCKED"] + }, + "GuardrailWordPolicyAssessment":{ + "type":"structure", + "members":{ + "customWords":{ + "shape":"GuardrailCustomWordList", + "documentation":"

      The custom word details for words defined in the Guardrail filter.

      " + }, + "managedWordLists":{ + "shape":"GuardrailManagedWordList", + "documentation":"

      The managed word lists for words defined in the Guardrail filter.

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

      The assessment details for words defined in the Guardrail filter.

      ", + "sensitive":true + }, "Identifier":{ "type":"string", "max":1024, @@ -1973,6 +2309,10 @@ "shape":"FailureTrace", "documentation":"

      Contains information about the failure of the interaction.

      " }, + "guardrailTrace":{ + "shape":"GuardrailTrace", + "documentation":"

      The trace details for a trace defined in the Guardrail filter.

      " + }, "orchestrationTrace":{ "shape":"OrchestrationTrace", "documentation":"

      Details about the orchestration step, in which the agent determines the order in which actions are executed and which knowledge bases are retrieved.

      " diff --git a/tools/code-generation/api-descriptions/controltower-2018-05-10.normal.json b/tools/code-generation/api-descriptions/controltower-2018-05-10.normal.json index bd8367787d4..f3329792fb9 100644 --- a/tools/code-generation/api-descriptions/controltower-2018-05-10.normal.json +++ b/tools/code-generation/api-descriptions/controltower-2018-05-10.normal.json @@ -5,6 +5,7 @@ "endpointPrefix":"controltower", "jsonVersion":"1.1", "protocol":"rest-json", + "protocols":["rest-json"], "serviceFullName":"AWS Control Tower", "serviceId":"ControlTower", "signatureVersion":"v4", @@ -68,7 +69,7 @@ {"shape":"ThrottlingException"}, {"shape":"ResourceNotFoundException"} ], - "documentation":"

      Disable an EnabledBaseline resource on the specified Target. This API starts an asynchronous operation to remove all resources deployed as part of the baseline enablement. The resource will vary depending on the enabled baseline.

      ", + "documentation":"

      Disable an EnabledBaseline resource on the specified Target. This API starts an asynchronous operation to remove all resources deployed as part of the baseline enablement. The resource will vary depending on the enabled baseline. For usage examples, see the Amazon Web Services Control Tower User Guide .

      ", "idempotent":true }, "DisableControl":{ @@ -109,7 +110,7 @@ {"shape":"ThrottlingException"}, {"shape":"ResourceNotFoundException"} ], - "documentation":"

      Enable (apply) a Baseline to a Target. This API starts an asynchronous operation to deploy resources specified by the Baseline to the specified Target.

      " + "documentation":"

      Enable (apply) a Baseline to a Target. This API starts an asynchronous operation to deploy resources specified by the Baseline to the specified Target. For usage examples, see the Amazon Web Services Control Tower User Guide .

      " }, "EnableControl":{ "name":"EnableControl", @@ -147,7 +148,7 @@ {"shape":"ThrottlingException"}, {"shape":"ResourceNotFoundException"} ], - "documentation":"

      Retrieve details about an existing Baseline resource by specifying its identifier.

      " + "documentation":"

      Retrieve details about an existing Baseline resource by specifying its identifier. For usage examples, see the Amazon Web Services Control Tower User Guide .

      " }, "GetBaselineOperation":{ "name":"GetBaselineOperation", @@ -165,7 +166,7 @@ {"shape":"ThrottlingException"}, {"shape":"ResourceNotFoundException"} ], - "documentation":"

      Returns the details of an asynchronous baseline operation, as initiated by any of these APIs: EnableBaseline, DisableBaseline, UpdateEnabledBaseline, ResetEnabledBaseline. A status message is displayed in case of operation failure.

      " + "documentation":"

      Returns the details of an asynchronous baseline operation, as initiated by any of these APIs: EnableBaseline, DisableBaseline, UpdateEnabledBaseline, ResetEnabledBaseline. A status message is displayed in case of operation failure. For usage examples, see the Amazon Web Services Control Tower User Guide .

      " }, "GetControlOperation":{ "name":"GetControlOperation", @@ -255,7 +256,7 @@ {"shape":"ThrottlingException"}, {"shape":"ResourceNotFoundException"} ], - "documentation":"

      Returns the status of the specified landing zone operation. Details for an operation are available for 60 days.

      " + "documentation":"

      Returns the status of the specified landing zone operation. Details for an operation are available for 90 days.

      " }, "ListBaselines":{ "name":"ListBaselines", @@ -272,7 +273,24 @@ {"shape":"AccessDeniedException"}, {"shape":"ThrottlingException"} ], - "documentation":"

      Returns a summary list of all available baselines.

      " + "documentation":"

      Returns a summary list of all available baselines. For usage examples, see the Amazon Web Services Control Tower User Guide .

      " + }, + "ListControlOperations":{ + "name":"ListControlOperations", + "http":{ + "method":"POST", + "requestUri":"/list-control-operations", + "responseCode":200 + }, + "input":{"shape":"ListControlOperationsInput"}, + "output":{"shape":"ListControlOperationsOutput"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"InternalServerException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

      Provides a list of operations in progress or queued.

      " }, "ListEnabledBaselines":{ "name":"ListEnabledBaselines", @@ -289,7 +307,7 @@ {"shape":"AccessDeniedException"}, {"shape":"ThrottlingException"} ], - "documentation":"

      Returns a list of summaries describing EnabledBaseline resources. You can filter the list by the corresponding Baseline or Target of the EnabledBaseline resources.

      " + "documentation":"

      Returns a list of summaries describing EnabledBaseline resources. You can filter the list by the corresponding Baseline or Target of the EnabledBaseline resources. For usage examples, see the Amazon Web Services Control Tower User Guide .

      " }, "ListEnabledControls":{ "name":"ListEnabledControls", @@ -360,7 +378,7 @@ {"shape":"ThrottlingException"}, {"shape":"ResourceNotFoundException"} ], - "documentation":"

      Re-enables an EnabledBaseline resource. For example, this API can re-apply the existing Baseline after a new member account is moved to the target OU.

      " + "documentation":"

      Re-enables an EnabledBaseline resource. For example, this API can re-apply the existing Baseline after a new member account is moved to the target OU. For usage examples, see the Amazon Web Services Control Tower User Guide .

      " }, "ResetLandingZone":{ "name":"ResetLandingZone", @@ -431,7 +449,7 @@ {"shape":"ThrottlingException"}, {"shape":"ResourceNotFoundException"} ], - "documentation":"

      Updates an EnabledBaseline resource's applied parameters or version.

      " + "documentation":"

      Updates an EnabledBaseline resource's applied parameters or version. For usage examples, see the Amazon Web Services Control Tower User Guide .

      " }, "UpdateEnabledControl":{ "name":"UpdateEnabledControl", @@ -595,13 +613,31 @@ "min":20, "pattern":"^arn:aws[0-9a-zA-Z_\\-:\\/]+$" }, + "ControlIdentifiers":{ + "type":"list", + "member":{"shape":"ControlIdentifier"}, + "max":1, + "min":1 + }, "ControlOperation":{ "type":"structure", "members":{ + "controlIdentifier":{ + "shape":"ControlIdentifier", + "documentation":"

      The controlIdentifier of the control for the operation.

      " + }, + "enabledControlIdentifier":{ + "shape":"Arn", + "documentation":"

      The controlIdentifier of the enabled control.

      " + }, "endTime":{ "shape":"SyntheticTimestamp_date_time", "documentation":"

      The time that the operation finished.

      " }, + "operationIdentifier":{ + "shape":"OperationIdentifier", + "documentation":"

      The identifier of the specified operation.

      " + }, "operationType":{ "shape":"ControlOperationType", "documentation":"

      One of ENABLE_CONTROL or DISABLE_CONTROL.

      " @@ -617,10 +653,40 @@ "statusMessage":{ "shape":"String", "documentation":"

      If the operation result is FAILED, this string contains a message explaining why the operation failed.

      " + }, + "targetIdentifier":{ + "shape":"TargetIdentifier", + "documentation":"

      The target upon which the control operation is working.

      " } }, "documentation":"

      An operation performed by the control.

      " }, + "ControlOperationFilter":{ + "type":"structure", + "members":{ + "controlIdentifiers":{ + "shape":"ControlIdentifiers", + "documentation":"

      The set of controlIdentifier returned by the filter.

      " + }, + "controlOperationTypes":{ + "shape":"ControlOperationTypes", + "documentation":"

      The set of ControlOperation objects returned by the filter.

      " + }, + "enabledControlIdentifiers":{ + "shape":"EnabledControlIdentifiers", + "documentation":"

      The set controlIdentifier of enabled controls selected by the filter.

      " + }, + "statuses":{ + "shape":"ControlOperationStatuses", + "documentation":"

      Lists the status of control operations.

      " + }, + "targetIdentifiers":{ + "shape":"TargetIdentifiers", + "documentation":"

      The set of targetIdentifier objects returned by the filter.

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

      A filter object that lets you call ListCOntrolOperations with a specific filter.

      " + }, "ControlOperationStatus":{ "type":"string", "enum":[ @@ -629,6 +695,54 @@ "IN_PROGRESS" ] }, + "ControlOperationStatuses":{ + "type":"list", + "member":{"shape":"ControlOperationStatus"}, + "max":1, + "min":1 + }, + "ControlOperationSummary":{ + "type":"structure", + "members":{ + "controlIdentifier":{ + "shape":"ControlIdentifier", + "documentation":"

      The controlIdentifier of a control.

      " + }, + "enabledControlIdentifier":{ + "shape":"Arn", + "documentation":"

      The controlIdentifier of an enabled control.

      " + }, + "endTime":{ + "shape":"SyntheticTimestamp_date_time", + "documentation":"

      The time at which the control operation was completed.

      " + }, + "operationIdentifier":{ + "shape":"OperationIdentifier", + "documentation":"

      The unique identifier of a control operation.

      " + }, + "operationType":{ + "shape":"ControlOperationType", + "documentation":"

      The type of operation.

      " + }, + "startTime":{ + "shape":"SyntheticTimestamp_date_time", + "documentation":"

      The time at which a control operation began.

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

      The status of the specified control operation.

      " + }, + "statusMessage":{ + "shape":"String", + "documentation":"

      A speficic message displayed as part of the control status.

      " + }, + "targetIdentifier":{ + "shape":"TargetIdentifier", + "documentation":"

      The unique identifier of the target of a control operation.

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

      A summary of information about the specified control operation.

      " + }, "ControlOperationType":{ "type":"string", "enum":[ @@ -637,6 +751,16 @@ "UPDATE_ENABLED_CONTROL" ] }, + "ControlOperationTypes":{ + "type":"list", + "member":{"shape":"ControlOperationType"}, + "max":1, + "min":1 + }, + "ControlOperations":{ + "type":"list", + "member":{"shape":"ControlOperationSummary"} + }, "CreateLandingZoneInput":{ "type":"structure", "required":[ @@ -646,7 +770,7 @@ "members":{ "manifest":{ "shape":"Manifest", - "documentation":"

      The manifest.yaml file is a text file that describes your Amazon Web Services resources. For examples, review The manifest file.

      " + "documentation":"

      The manifest JSON file is a text file that describes your Amazon Web Services resources. For examples, review Launch your landing zone.

      " }, "tags":{ "shape":"TagMap", @@ -767,6 +891,12 @@ }, "documentation":"

      The drift summary of the enabled control.

      Amazon Web Services Control Tower expects the enabled control configuration to include all supported and governed Regions. If the enabled control differs from the expected configuration, it is defined to be in a state of drift. You can repair this drift by resetting the enabled control.

      " }, + "DriftStatuses":{ + "type":"list", + "member":{"shape":"DriftStatus"}, + "max":1, + "min":1 + }, "EnableBaselineInput":{ "type":"structure", "required":[ @@ -1029,6 +1159,30 @@ }, "documentation":"

      Information about the enabled control.

      " }, + "EnabledControlFilter":{ + "type":"structure", + "members":{ + "controlIdentifiers":{ + "shape":"ControlIdentifiers", + "documentation":"

      The set of controlIdentifier returned by the filter.

      " + }, + "driftStatuses":{ + "shape":"DriftStatuses", + "documentation":"

      A list of DriftStatus items.

      " + }, + "statuses":{ + "shape":"EnablementStatuses", + "documentation":"

      A list of EnablementStatus items.

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

      A structure that returns a set of control identifiers, the control status for each control in the set, and the drift status for each control in the set.

      " + }, + "EnabledControlIdentifiers":{ + "type":"list", + "member":{"shape":"Arn"}, + "max":1, + "min":1 + }, "EnabledControlParameter":{ "type":"structure", "required":[ @@ -1125,6 +1279,12 @@ }, "documentation":"

      The deployment summary of the enabled control.

      " }, + "EnablementStatuses":{ + "type":"list", + "member":{"shape":"EnablementStatus"}, + "max":1, + "min":1 + }, "GetBaselineInput":{ "type":"structure", "required":["baselineIdentifier"], @@ -1312,7 +1472,7 @@ }, "manifest":{ "shape":"Manifest", - "documentation":"

      The landing zone manifest.yaml text file that specifies the landing zone configurations.

      " + "documentation":"

      The landing zone manifest JSON text file that specifies the landing zone configurations.

      " }, "status":{ "shape":"LandingZoneStatus", @@ -1442,6 +1602,47 @@ } } }, + "ListControlOperationsInput":{ + "type":"structure", + "members":{ + "filter":{ + "shape":"ControlOperationFilter", + "documentation":"

      An input filter for the ListControlOperations API that lets you select the types of control operations to view.

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

      The maximum number of results to be shown.

      " + }, + "nextToken":{ + "shape":"ListControlOperationsNextToken", + "documentation":"

      A pagination token.

      " + } + } + }, + "ListControlOperationsMaxResults":{ + "type":"integer", + "box":true, + "max":100, + "min":1 + }, + "ListControlOperationsNextToken":{ + "type":"string", + "pattern":"\\S+" + }, + "ListControlOperationsOutput":{ + "type":"structure", + "required":["controlOperations"], + "members":{ + "controlOperations":{ + "shape":"ControlOperations", + "documentation":"

      Returns a list of output from control operations. PLACEHOLDER

      " + }, + "nextToken":{ + "shape":"ListControlOperationsNextToken", + "documentation":"

      A pagination token.

      " + } + } + }, "ListEnabledBaselinesInput":{ "type":"structure", "members":{ @@ -1485,8 +1686,11 @@ }, "ListEnabledControlsInput":{ "type":"structure", - "required":["targetIdentifier"], "members":{ + "filter":{ + "shape":"EnabledControlFilter", + "documentation":"

      An input filter for the ListCEnabledControls API that lets you select the types of control operations to view.

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

      How many results to return per API call.

      " @@ -1733,6 +1937,12 @@ "min":20, "pattern":"^arn:aws[0-9a-zA-Z_\\-:\\/]+$" }, + "TargetIdentifiers":{ + "type":"list", + "member":{"shape":"TargetIdentifier"}, + "max":1, + "min":1 + }, "TargetRegions":{ "type":"list", "member":{"shape":"Region"} @@ -1867,7 +2077,7 @@ }, "manifest":{ "shape":"Manifest", - "documentation":"

      The manifest.yaml file is a text file that describes your Amazon Web Services resources. For examples, review The manifest file.

      " + "documentation":"

      The manifest JSON file is a text file that describes your Amazon Web Services resources. For examples, review Launch your landing zone.

      " }, "version":{ "shape":"LandingZoneVersion", @@ -1899,5 +2109,5 @@ "exception":true } }, - "documentation":"

      These interfaces allow you to apply the Amazon Web Services library of pre-defined controls to your organizational units, programmatically. In Amazon Web Services Control Tower, the terms \"control\" and \"guardrail\" are synonyms.

      To call these APIs, you'll need to know:

      • the controlIdentifier for the control--or guardrail--you are targeting.

      • the ARN associated with the target organizational unit (OU), which we call the targetIdentifier.

      • the ARN associated with a resource that you wish to tag or untag.

      To get the controlIdentifier for your Amazon Web Services Control Tower control:

      The controlIdentifier is an ARN that is specified for each control. You can view the controlIdentifier in the console on the Control details page, as well as in the documentation.

      The controlIdentifier is unique in each Amazon Web Services Region for each control. You can find the controlIdentifier for each Region and control in the Tables of control metadata in the Amazon Web Services Control Tower User Guide.

      A quick-reference list of control identifers for the Amazon Web Services Control Tower legacy Strongly recommended and Elective controls is given in Resource identifiers for APIs and controls in the Controls reference guide section of the Amazon Web Services Control Tower User Guide. Remember that Mandatory controls cannot be added or removed.

      ARN format: arn:aws:controltower:{REGION}::control/{CONTROL_NAME}

      Example:

      arn:aws:controltower:us-west-2::control/AWS-GR_AUTOSCALING_LAUNCH_CONFIG_PUBLIC_IP_DISABLED

      To get the targetIdentifier:

      The targetIdentifier is the ARN for an OU.

      In the Amazon Web Services Organizations console, you can find the ARN for the OU on the Organizational unit details page associated with that OU.

      OU ARN format:

      arn:${Partition}:organizations::${MasterAccountId}:ou/o-${OrganizationId}/ou-${OrganizationalUnitId}

      Details and examples

      To view the open source resource repository on GitHub, see aws-cloudformation/aws-cloudformation-resource-providers-controltower

      Recording API Requests

      Amazon Web Services Control Tower supports Amazon Web Services CloudTrail, a service that records Amazon Web Services API calls for your Amazon Web Services account and delivers log files to an Amazon S3 bucket. By using information collected by CloudTrail, you can determine which requests the Amazon Web Services Control Tower service received, who made the request and when, and so on. For more about Amazon Web Services Control Tower and its support for CloudTrail, see Logging Amazon Web Services Control Tower Actions with Amazon Web Services CloudTrail in the Amazon Web Services Control Tower User Guide. To learn more about CloudTrail, including how to turn it on and find your log files, see the Amazon Web Services CloudTrail User Guide.

      " + "documentation":"

      Amazon Web Services Control Tower offers application programming interface (API) operations that support programmatic interaction with these types of resources:

      For more information about these types of resources, see the Amazon Web Services Control Tower User Guide .

      About control APIs

      These interfaces allow you to apply the Amazon Web Services library of pre-defined controls to your organizational units, programmatically. In Amazon Web Services Control Tower, the terms \"control\" and \"guardrail\" are synonyms.

      To call these APIs, you'll need to know:

      • the controlIdentifier for the control--or guardrail--you are targeting.

      • the ARN associated with the target organizational unit (OU), which we call the targetIdentifier.

      • the ARN associated with a resource that you wish to tag or untag.

      To get the controlIdentifier for your Amazon Web Services Control Tower control:

      The controlIdentifier is an ARN that is specified for each control. You can view the controlIdentifier in the console on the Control details page, as well as in the documentation.

      The controlIdentifier is unique in each Amazon Web Services Region for each control. You can find the controlIdentifier for each Region and control in the Tables of control metadata or the Control availability by Region tables in the Amazon Web Services Control Tower User Guide.

      A quick-reference list of control identifers for the Amazon Web Services Control Tower legacy Strongly recommended and Elective controls is given in Resource identifiers for APIs and controls in the Controls reference guide section of the Amazon Web Services Control Tower User Guide. Remember that Mandatory controls cannot be added or removed.

      ARN format: arn:aws:controltower:{REGION}::control/{CONTROL_NAME}

      Example:

      arn:aws:controltower:us-west-2::control/AWS-GR_AUTOSCALING_LAUNCH_CONFIG_PUBLIC_IP_DISABLED

      To get the targetIdentifier:

      The targetIdentifier is the ARN for an OU.

      In the Amazon Web Services Organizations console, you can find the ARN for the OU on the Organizational unit details page associated with that OU.

      OU ARN format:

      arn:${Partition}:organizations::${MasterAccountId}:ou/o-${OrganizationId}/ou-${OrganizationalUnitId}

      About landing zone APIs

      You can configure and launch an Amazon Web Services Control Tower landing zone with APIs. For an introduction and steps, see Getting started with Amazon Web Services Control Tower using APIs.

      For an overview of landing zone API operations, see Amazon Web Services Control Tower supports landing zone APIs. The individual API operations for landing zones are detailed in this document, the API reference manual, in the \"Actions\" section.

      About baseline APIs

      You can apply the AWSControlTowerBaseline baseline to an organizational unit (OU) as a way to register the OU with Amazon Web Services Control Tower, programmatically. For a general overview of this capability, see Amazon Web Services Control Tower supports APIs for OU registration and configuration with baselines.

      You can call the baseline API operations to view the baselines that Amazon Web Services Control Tower enables for your landing zone, on your behalf, when setting up the landing zone. These baselines are read-only baselines.

      The individual API operations for baselines are detailed in this document, the API reference manual, in the \"Actions\" section. For usage examples, see Baseline API input and output examples with CLI.

      Details and examples

      To view the open source resource repository on GitHub, see aws-cloudformation/aws-cloudformation-resource-providers-controltower

      Recording API Requests

      Amazon Web Services Control Tower supports Amazon Web Services CloudTrail, a service that records Amazon Web Services API calls for your Amazon Web Services account and delivers log files to an Amazon S3 bucket. By using information collected by CloudTrail, you can determine which requests the Amazon Web Services Control Tower service received, who made the request and when, and so on. For more about Amazon Web Services Control Tower and its support for CloudTrail, see Logging Amazon Web Services Control Tower Actions with Amazon Web Services CloudTrail in the Amazon Web Services Control Tower User Guide. To learn more about CloudTrail, including how to turn it on and find your log files, see the Amazon Web Services CloudTrail User Guide.

      " } diff --git a/tools/code-generation/api-descriptions/osis-2022-01-01.normal.json b/tools/code-generation/api-descriptions/osis-2022-01-01.normal.json index c9f06d9caa9..be5b5099b5e 100644 --- a/tools/code-generation/api-descriptions/osis-2022-01-01.normal.json +++ b/tools/code-generation/api-descriptions/osis-2022-01-01.normal.json @@ -4,6 +4,7 @@ "apiVersion":"2022-01-01", "endpointPrefix":"osis", "protocol":"rest-json", + "protocols":["rest-json"], "serviceFullName":"Amazon OpenSearch Ingestion", "serviceId":"OSIS", "signatureVersion":"v4", @@ -19,6 +20,7 @@ "input":{"shape":"CreatePipelineRequest"}, "output":{"shape":"CreatePipelineResponse"}, "errors":[ + {"shape":"DisabledOperationException"}, {"shape":"LimitExceededException"}, {"shape":"ValidationException"}, {"shape":"InternalException"}, @@ -37,6 +39,7 @@ "input":{"shape":"DeletePipelineRequest"}, "output":{"shape":"DeletePipelineResponse"}, "errors":[ + {"shape":"DisabledOperationException"}, {"shape":"ValidationException"}, {"shape":"InternalException"}, {"shape":"AccessDeniedException"}, @@ -54,6 +57,7 @@ "input":{"shape":"GetPipelineRequest"}, "output":{"shape":"GetPipelineResponse"}, "errors":[ + {"shape":"DisabledOperationException"}, {"shape":"ValidationException"}, {"shape":"InternalException"}, {"shape":"AccessDeniedException"}, @@ -70,6 +74,7 @@ "input":{"shape":"GetPipelineBlueprintRequest"}, "output":{"shape":"GetPipelineBlueprintResponse"}, "errors":[ + {"shape":"DisabledOperationException"}, {"shape":"AccessDeniedException"}, {"shape":"InternalException"}, {"shape":"ValidationException"}, @@ -86,6 +91,7 @@ "input":{"shape":"GetPipelineChangeProgressRequest"}, "output":{"shape":"GetPipelineChangeProgressResponse"}, "errors":[ + {"shape":"DisabledOperationException"}, {"shape":"ValidationException"}, {"shape":"InternalException"}, {"shape":"AccessDeniedException"}, @@ -102,6 +108,7 @@ "input":{"shape":"ListPipelineBlueprintsRequest"}, "output":{"shape":"ListPipelineBlueprintsResponse"}, "errors":[ + {"shape":"DisabledOperationException"}, {"shape":"ValidationException"}, {"shape":"InternalException"}, {"shape":"AccessDeniedException"}, @@ -118,6 +125,7 @@ "input":{"shape":"ListPipelinesRequest"}, "output":{"shape":"ListPipelinesResponse"}, "errors":[ + {"shape":"DisabledOperationException"}, {"shape":"ValidationException"}, {"shape":"InternalException"}, {"shape":"AccessDeniedException"}, @@ -134,6 +142,7 @@ "input":{"shape":"ListTagsForResourceRequest"}, "output":{"shape":"ListTagsForResourceResponse"}, "errors":[ + {"shape":"DisabledOperationException"}, {"shape":"ValidationException"}, {"shape":"ResourceNotFoundException"}, {"shape":"InternalException"}, @@ -150,6 +159,7 @@ "input":{"shape":"StartPipelineRequest"}, "output":{"shape":"StartPipelineResponse"}, "errors":[ + {"shape":"DisabledOperationException"}, {"shape":"AccessDeniedException"}, {"shape":"ConflictException"}, {"shape":"InternalException"}, @@ -167,6 +177,7 @@ "input":{"shape":"StopPipelineRequest"}, "output":{"shape":"StopPipelineResponse"}, "errors":[ + {"shape":"DisabledOperationException"}, {"shape":"AccessDeniedException"}, {"shape":"ConflictException"}, {"shape":"InternalException"}, @@ -184,6 +195,7 @@ "input":{"shape":"TagResourceRequest"}, "output":{"shape":"TagResourceResponse"}, "errors":[ + {"shape":"DisabledOperationException"}, {"shape":"LimitExceededException"}, {"shape":"ValidationException"}, {"shape":"InternalException"}, @@ -201,6 +213,7 @@ "input":{"shape":"UntagResourceRequest"}, "output":{"shape":"UntagResourceResponse"}, "errors":[ + {"shape":"DisabledOperationException"}, {"shape":"ValidationException"}, {"shape":"ResourceNotFoundException"}, {"shape":"InternalException"}, @@ -217,6 +230,7 @@ "input":{"shape":"UpdatePipelineRequest"}, "output":{"shape":"UpdatePipelineResponse"}, "errors":[ + {"shape":"DisabledOperationException"}, {"shape":"ValidationException"}, {"shape":"InternalException"}, {"shape":"AccessDeniedException"}, @@ -234,6 +248,7 @@ "input":{"shape":"ValidatePipelineRequest"}, "output":{"shape":"ValidatePipelineResponse"}, "errors":[ + {"shape":"DisabledOperationException"}, {"shape":"AccessDeniedException"}, {"shape":"InternalException"}, {"shape":"ValidationException"} @@ -250,6 +265,10 @@ "error":{"httpStatusCode":403}, "exception":true }, + "BlueprintFormat":{ + "type":"string", + "pattern":"(YAML|JSON)" + }, "Boolean":{"type":"boolean"}, "BufferOptions":{ "type":"structure", @@ -260,7 +279,7 @@ "documentation":"

      Whether persistent buffering should be enabled.

      " } }, - "documentation":"

      Options that specify the configuration of a persistent buffer. To configure how OpenSearch Ingestion encrypts this data, set the EncryptionAtRestOptions.

      " + "documentation":"

      Options that specify the configuration of a persistent buffer. To configure how OpenSearch Ingestion encrypts this data, set the EncryptionAtRestOptions. For more information, see Persistent buffering.

      " }, "ChangeProgressStage":{ "type":"structure", @@ -332,13 +351,17 @@ "FAILED" ] }, + "CidrBlock":{ + "type":"string", + "pattern":"^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)/(3[0-2]|[12]?[0-9])$" + }, "CloudWatchLogDestination":{ "type":"structure", "required":["LogGroup"], "members":{ "LogGroup":{ "shape":"LogGroup", - "documentation":"

      The name of the CloudWatch Logs group to send pipeline logs to. You can specify an existing log group or create a new one. For example, /aws/OpenSearchService/IngestionService/my-pipeline.

      " + "documentation":"

      The name of the CloudWatch Logs group to send pipeline logs to. You can specify an existing log group or create a new one. For example, /aws/vendedlogs/OpenSearchService/pipelines.

      " } }, "documentation":"

      The destination for OpenSearch Ingestion logs sent to Amazon CloudWatch.

      " @@ -424,16 +447,24 @@ "members":{ } }, + "DisabledOperationException":{ + "type":"structure", + "members":{ + }, + "documentation":"

      Exception is thrown when an operation has been disabled.

      ", + "error":{"httpStatusCode":409}, + "exception":true + }, "EncryptionAtRestOptions":{ "type":"structure", "required":["KmsKeyArn"], "members":{ "KmsKeyArn":{ "shape":"KmsKeyArn", - "documentation":"

      The ARN of the KMS key used to encrypt data-at-rest in OpenSearch Ingestion. By default, data is encrypted using an AWS owned key.

      " + "documentation":"

      The ARN of the KMS key used to encrypt buffer data. By default, data is encrypted using an Amazon Web Services owned key.

      " } }, - "documentation":"

      Options to control how OpenSearch encrypts all data-at-rest.

      " + "documentation":"

      Options to control how OpenSearch encrypts buffer data.

      " }, "GetPipelineBlueprintRequest":{ "type":"structure", @@ -444,6 +475,12 @@ "documentation":"

      The name of the blueprint to retrieve.

      ", "location":"uri", "locationName":"BlueprintName" + }, + "Format":{ + "shape":"BlueprintFormat", + "documentation":"

      The format format of the blueprint to retrieve.

      ", + "location":"querystring", + "locationName":"format" } } }, @@ -453,6 +490,10 @@ "Blueprint":{ "shape":"PipelineBlueprint", "documentation":"

      The requested blueprint in YAML format.

      " + }, + "Format":{ + "shape":"String", + "documentation":"

      The format of the blueprint.

      " } } }, @@ -483,7 +524,7 @@ "members":{ "PipelineName":{ "shape":"PipelineName", - "documentation":"

      The name of the pipeline to get information about.

      ", + "documentation":"

      The name of the pipeline.

      ", "location":"uri", "locationName":"PipelineName" } @@ -683,7 +724,11 @@ "EncryptionAtRestOptions":{"shape":"EncryptionAtRestOptions"}, "ServiceVpcEndpoints":{ "shape":"ServiceVpcEndpointsList", - "documentation":"

      A list of VPC endpoints that OpenSearch Ingestion has created to other AWS services.

      " + "documentation":"

      A list of VPC endpoints that OpenSearch Ingestion has created to other Amazon Web Services services.

      " + }, + "Destinations":{ + "shape":"PipelineDestinationList", + "documentation":"

      Destinations to which the pipeline writes data.

      " }, "Tags":{ "shape":"TagList", @@ -708,6 +753,22 @@ "PipelineConfigurationBody":{ "shape":"String", "documentation":"

      The YAML configuration of the blueprint.

      " + }, + "DisplayName":{ + "shape":"String", + "documentation":"

      The display name of the blueprint.

      " + }, + "DisplayDescription":{ + "shape":"String", + "documentation":"

      A description of the blueprint.

      " + }, + "Service":{ + "shape":"String", + "documentation":"

      The name of the service that the blueprint is associated with.

      " + }, + "UseCase":{ + "shape":"String", + "documentation":"

      The use case that the blueprint relates to.

      " } }, "documentation":"

      Container for information about an OpenSearch Ingestion blueprint.

      " @@ -718,6 +779,22 @@ "BlueprintName":{ "shape":"String", "documentation":"

      The name of the blueprint.

      " + }, + "DisplayName":{ + "shape":"String", + "documentation":"

      The display name of the blueprint.

      " + }, + "DisplayDescription":{ + "shape":"String", + "documentation":"

      A description of the blueprint.

      " + }, + "Service":{ + "shape":"String", + "documentation":"

      The name of the service that the blueprint is associated with.

      " + }, + "UseCase":{ + "shape":"String", + "documentation":"

      The use case that the blueprint relates to.

      " } }, "documentation":"

      A summary of an OpenSearch Ingestion blueprint.

      " @@ -731,6 +808,24 @@ "max":24000, "min":1 }, + "PipelineDestination":{ + "type":"structure", + "members":{ + "ServiceName":{ + "shape":"String", + "documentation":"

      The name of the service receiving data from the pipeline.

      " + }, + "Endpoint":{ + "shape":"String", + "documentation":"

      The endpoint receiving data from the pipeline.

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

      An object representing the destination of a pipeline.

      " + }, + "PipelineDestinationList":{ + "type":"list", + "member":{"shape":"PipelineDestination"} + }, "PipelineName":{ "type":"string", "max":28, @@ -794,6 +889,10 @@ "shape":"Timestamp", "documentation":"

      The date and time when the pipeline was last updated.

      " }, + "Destinations":{ + "shape":"PipelineDestinationList", + "documentation":"

      A list of destinations to which the pipeline writes data.

      " + }, "Tags":{ "shape":"TagList", "documentation":"

      A list of tags associated with the given pipeline.

      " @@ -846,7 +945,7 @@ }, "VpcEndpointId":{ "shape":"String", - "documentation":"

      The ID of the VPC endpoint that was created.

      " + "documentation":"

      The unique identifier of the VPC endpoint that was created.

      " } }, "documentation":"

      A container for information about VPC endpoints that were created to other services

      " @@ -1081,6 +1180,21 @@ "type":"list", "member":{"shape":"ValidationMessage"} }, + "VpcAttachmentOptions":{ + "type":"structure", + "required":["AttachToVpc"], + "members":{ + "AttachToVpc":{ + "shape":"Boolean", + "documentation":"

      Whether a VPC is attached to the pipeline.

      " + }, + "CidrBlock":{ + "shape":"CidrBlock", + "documentation":"

      The CIDR block to be reserved for OpenSearch Ingestion to create elastic network interfaces (ENIs).

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

      Options for attaching a VPC to pipeline.

      " + }, "VpcEndpoint":{ "type":"structure", "members":{ @@ -1118,6 +1232,10 @@ "SecurityGroupIds":{ "shape":"SecurityGroupIds", "documentation":"

      A list of security groups associated with the VPC endpoint.

      " + }, + "VpcAttachmentOptions":{ + "shape":"VpcAttachmentOptions", + "documentation":"

      Options for attaching a VPC to a pipeline.

      " } }, "documentation":"

      Options that specify the subnets and security groups for an OpenSearch Ingestion VPC endpoint.

      " diff --git a/tools/code-generation/api-descriptions/rds-2014-10-31.normal.json b/tools/code-generation/api-descriptions/rds-2014-10-31.normal.json index 84c323b7327..cd54c74c836 100644 --- a/tools/code-generation/api-descriptions/rds-2014-10-31.normal.json +++ b/tools/code-generation/api-descriptions/rds-2014-10-31.normal.json @@ -4115,7 +4115,7 @@ "members":{ "AvailabilityZones":{ "shape":"AvailabilityZones", - "documentation":"

      A list of Availability Zones (AZs) where DB instances in the DB cluster can be created.

      For information on Amazon Web Services Regions and Availability Zones, see Choosing the Regions and Availability Zones in the Amazon Aurora User Guide.

      Valid for Cluster Type: Aurora DB clusters only

      " + "documentation":"

      A list of Availability Zones (AZs) where you specifically want to create DB instances in the DB cluster.

      For information on AZs, see Availability Zones in the Amazon Aurora User Guide.

      Valid for Cluster Type: Aurora DB clusters only

      Constraints:

      • Can't specify more than three AZs.

      " }, "BackupRetentionPeriod":{ "shape":"IntegerOptional", @@ -4147,7 +4147,7 @@ }, "Engine":{ "shape":"String", - "documentation":"

      The database engine to use for this DB cluster.

      Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters

      Valid Values: aurora-mysql | aurora-postgresql | mysql | postgres

      " + "documentation":"

      The database engine to use for this DB cluster.

      Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters

      Valid Values:

      • aurora-mysql

      • aurora-postgresql

      • mysql

      • postgres

      • neptune - For information about using Amazon Neptune, see the Amazon Neptune User Guide .

      " }, "EngineVersion":{ "shape":"String", @@ -4321,6 +4321,10 @@ "CACertificateIdentifier":{ "shape":"String", "documentation":"

      The CA certificate identifier to use for the DB cluster's server certificate.

      For more information, see Using SSL/TLS to encrypt a connection to a DB instance in the Amazon RDS User Guide.

      Valid for Cluster Type: Multi-AZ DB clusters

      " + }, + "EngineLifecycleSupport":{ + "shape":"String", + "documentation":"

      The life cycle type for this DB cluster.

      By default, this value is set to open-source-rds-extended-support, which enrolls your DB cluster into Amazon RDS Extended Support. At the end of standard support, you can avoid charges for Extended Support by setting the value to open-source-rds-extended-support-disabled. In this case, creating the DB cluster will fail if the DB major version is past its end of standard support date.

      You can use this setting to enroll your DB cluster into Amazon RDS Extended Support. With RDS Extended Support, you can run the selected major engine version on your DB cluster past the end of standard support for that engine version. For more information, see the following sections:

      Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters

      Valid Values: open-source-rds-extended-support | open-source-rds-extended-support-disabled

      Default: open-source-rds-extended-support

      " } }, "documentation":"

      " @@ -4647,6 +4651,10 @@ "MultiTenant":{ "shape":"BooleanOptional", "documentation":"

      Specifies whether to use the multi-tenant configuration or the single-tenant configuration (default). This parameter only applies to RDS for Oracle container database (CDB) engines.

      Note the following restrictions:

      • The DB engine that you specify in the request must support the multi-tenant configuration. If you attempt to enable the multi-tenant configuration on a DB engine that doesn't support it, the request fails.

      • If you specify the multi-tenant configuration when you create your DB instance, you can't later modify this DB instance to use the single-tenant configuration.

      " + }, + "EngineLifecycleSupport":{ + "shape":"String", + "documentation":"

      The life cycle type for this DB instance.

      By default, this value is set to open-source-rds-extended-support, which enrolls your DB instance into Amazon RDS Extended Support. At the end of standard support, you can avoid charges for Extended Support by setting the value to open-source-rds-extended-support-disabled. In this case, creating the DB instance will fail if the DB major version is past its end of standard support date.

      This setting applies only to RDS for MySQL and RDS for PostgreSQL. For Amazon Aurora DB instances, the life cycle type is managed by the DB cluster.

      You can use this setting to enroll your DB instance into Amazon RDS Extended Support. With RDS Extended Support, you can run the selected major engine version on your DB instance past the end of standard support for that engine version. For more information, see Using Amazon RDS Extended Support in the Amazon RDS User Guide.

      Valid Values: open-source-rds-extended-support | open-source-rds-extended-support-disabled

      Default: open-source-rds-extended-support

      " } }, "documentation":"

      " @@ -5113,7 +5121,7 @@ }, "SourceType":{ "shape":"String", - "documentation":"

      The type of source that is generating the events. For example, if you want to be notified of events generated by a DB instance, you set this parameter to db-instance. For RDS Proxy events, specify db-proxy. If this value isn't specified, all events are returned.

      Valid Values: db-instance | db-cluster | db-parameter-group | db-security-group | db-snapshot | db-cluster-snapshot | db-proxy

      " + "documentation":"

      The type of source that is generating the events. For example, if you want to be notified of events generated by a DB instance, you set this parameter to db-instance. For RDS Proxy events, specify db-proxy. If this value isn't specified, all events are returned.

      Valid Values: db-instance | db-cluster | db-parameter-group | db-security-group | db-snapshot | db-cluster-snapshot | db-proxy | zero-etl | custom-engine-version | blue-green-deployment

      " }, "EventCategories":{ "shape":"EventCategoriesList", @@ -5156,6 +5164,10 @@ "shape":"String", "documentation":"

      The engine version to use for this global database cluster.

      Constraints:

      • Can't be specified if SourceDBClusterIdentifier is specified. In this case, Amazon Aurora uses the engine version of the source DB cluster.

      " }, + "EngineLifecycleSupport":{ + "shape":"String", + "documentation":"

      The life cycle type for this global database cluster.

      By default, this value is set to open-source-rds-extended-support, which enrolls your global cluster into Amazon RDS Extended Support. At the end of standard support, you can avoid charges for Extended Support by setting the value to open-source-rds-extended-support-disabled. In this case, creating the global cluster will fail if the DB major version is past its end of standard support date.

      This setting only applies to Aurora PostgreSQL-based global databases.

      You can use this setting to enroll your global cluster into Amazon RDS Extended Support. With RDS Extended Support, you can run the selected major engine version on your global cluster past the end of standard support for that engine version. For more information, see Using Amazon RDS Extended Support in the Amazon Aurora User Guide.

      Valid Values: open-source-rds-extended-support | open-source-rds-extended-support-disabled

      Default: open-source-rds-extended-support

      " + }, "DeletionProtection":{ "shape":"BooleanOptional", "documentation":"

      Specifies whether to enable deletion protection for the new global database cluster. The global database can't be deleted when deletion protection is enabled.

      " @@ -5689,7 +5701,11 @@ "shape":"IntegerOptional", "documentation":"

      The storage throughput for the DB cluster. The throughput is automatically set based on the IOPS that you provision, and is not configurable.

      This setting is only for non-Aurora Multi-AZ DB clusters.

      " }, - "CertificateDetails":{"shape":"CertificateDetails"} + "CertificateDetails":{"shape":"CertificateDetails"}, + "EngineLifecycleSupport":{ + "shape":"String", + "documentation":"

      The life cycle type for the DB cluster.

      For more information, see CreateDBCluster.

      " + } }, "documentation":"

      Contains the details of an Amazon Aurora DB cluster or Multi-AZ DB cluster.

      For an Amazon Aurora DB cluster, this data type is used as a response element in the operations CreateDBCluster, DeleteDBCluster, DescribeDBClusters, FailoverDBCluster, ModifyDBCluster, PromoteReadReplicaDBCluster, RestoreDBClusterFromS3, RestoreDBClusterFromSnapshot, RestoreDBClusterToPointInTime, StartDBCluster, and StopDBCluster.

      For a Multi-AZ DB cluster, this data type is used as a response element in the operations CreateDBCluster, DeleteDBCluster, DescribeDBClusters, FailoverDBCluster, ModifyDBCluster, RebootDBCluster, RestoreDBClusterFromSnapshot, and RestoreDBClusterToPointInTime.

      For more information on Amazon Aurora DB clusters, see What is Amazon Aurora? in the Amazon Aurora User Guide.

      For more information on Multi-AZ DB clusters, see Multi-AZ deployments with two readable standby DB instances in the Amazon RDS User Guide.

      ", "wrapper":true @@ -7004,6 +7020,10 @@ "MultiTenant":{ "shape":"BooleanOptional", "documentation":"

      Specifies whether the DB instance is in the multi-tenant configuration (TRUE) or the single-tenant configuration (FALSE).

      " + }, + "EngineLifecycleSupport":{ + "shape":"String", + "documentation":"

      The life cycle type for the DB instance.

      For more information, see CreateDBInstance.

      " } }, "documentation":"

      Contains the details of an Amazon RDS DB instance.

      This data type is used as a response element in the operations CreateDBInstance, CreateDBInstanceReadReplica, DeleteDBInstance, DescribeDBInstances, ModifyDBInstance, PromoteReadReplica, RebootDBInstance, RestoreDBInstanceFromDBSnapshot, RestoreDBInstanceFromS3, RestoreDBInstanceToPointInTime, StartDBInstance, and StopDBInstance.

      ", @@ -11051,6 +11071,10 @@ "shape":"String", "documentation":"

      Indicates the database engine version.

      " }, + "EngineLifecycleSupport":{ + "shape":"String", + "documentation":"

      The life cycle type for the global cluster.

      For more information, see CreateGlobalCluster.

      " + }, "DatabaseName":{ "shape":"String", "documentation":"

      The default database name within the new global database cluster.

      " @@ -12917,7 +12941,7 @@ }, "SourceType":{ "shape":"String", - "documentation":"

      The type of source that is generating the events. For example, if you want to be notified of events generated by a DB instance, you would set this parameter to db-instance. For RDS Proxy events, specify db-proxy. If this value isn't specified, all events are returned.

      Valid Values: db-instance | db-cluster | db-parameter-group | db-security-group | db-snapshot | db-cluster-snapshot | db-proxy

      " + "documentation":"

      The type of source that is generating the events. For example, if you want to be notified of events generated by a DB instance, you would set this parameter to db-instance. For RDS Proxy events, specify db-proxy. If this value isn't specified, all events are returned.

      Valid Values: db-instance | db-cluster | db-parameter-group | db-security-group | db-snapshot | db-cluster-snapshot | db-proxy | zero-etl | custom-engine-version | blue-green-deployment

      " }, "EventCategories":{ "shape":"EventCategoriesList", @@ -13768,7 +13792,7 @@ "members":{ "Action":{ "shape":"String", - "documentation":"

      The type of pending maintenance action that is available for the resource. Valid actions are system-update, db-upgrade, hardware-maintenance, and ca-certificate-rotation.

      " + "documentation":"

      The type of pending maintenance action that is available for the resource.

      For more information about maintenance actions, see Maintaining a DB instance.

      Valid Values: system-update | db-upgrade | hardware-maintenance | ca-certificate-rotation

      " }, "AutoAppliedAfterDate":{ "shape":"TStamp", @@ -14876,6 +14900,10 @@ "StorageType":{ "shape":"String", "documentation":"

      Specifies the storage type to be associated with the DB cluster.

      Valid Values: aurora, aurora-iopt1

      Default: aurora

      Valid for: Aurora DB clusters only

      " + }, + "EngineLifecycleSupport":{ + "shape":"String", + "documentation":"

      The life cycle type for this DB cluster.

      By default, this value is set to open-source-rds-extended-support, which enrolls your DB cluster into Amazon RDS Extended Support. At the end of standard support, you can avoid charges for Extended Support by setting the value to open-source-rds-extended-support-disabled. In this case, RDS automatically upgrades your restored DB cluster to a higher engine version, if the major engine version is past its end of standard support date.

      You can use this setting to enroll your DB cluster into Amazon RDS Extended Support. With RDS Extended Support, you can run the selected major engine version on your DB cluster past the end of standard support for that engine version. For more information, see the following sections:

      Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters

      Valid Values: open-source-rds-extended-support | open-source-rds-extended-support-disabled

      Default: open-source-rds-extended-support

      " } } }, @@ -15005,6 +15033,10 @@ "RdsCustomClusterConfiguration":{ "shape":"RdsCustomClusterConfiguration", "documentation":"

      Reserved for future use.

      " + }, + "EngineLifecycleSupport":{ + "shape":"String", + "documentation":"

      The life cycle type for this DB cluster.

      By default, this value is set to open-source-rds-extended-support, which enrolls your DB cluster into Amazon RDS Extended Support. At the end of standard support, you can avoid charges for Extended Support by setting the value to open-source-rds-extended-support-disabled. In this case, RDS automatically upgrades your restored DB cluster to a higher engine version, if the major engine version is past its end of standard support date.

      You can use this setting to enroll your DB cluster into Amazon RDS Extended Support. With RDS Extended Support, you can run the selected major engine version on your DB cluster past the end of standard support for that engine version. For more information, see the following sections:

      Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters

      Valid Values: open-source-rds-extended-support | open-source-rds-extended-support-disabled

      Default: open-source-rds-extended-support

      " } }, "documentation":"

      " @@ -15128,6 +15160,10 @@ "RdsCustomClusterConfiguration":{ "shape":"RdsCustomClusterConfiguration", "documentation":"

      Reserved for future use.

      " + }, + "EngineLifecycleSupport":{ + "shape":"String", + "documentation":"

      The life cycle type for this DB cluster.

      By default, this value is set to open-source-rds-extended-support, which enrolls your DB cluster into Amazon RDS Extended Support. At the end of standard support, you can avoid charges for Extended Support by setting the value to open-source-rds-extended-support-disabled. In this case, RDS automatically upgrades your restored DB cluster to a higher engine version, if the major engine version is past its end of standard support date.

      You can use this setting to enroll your DB cluster into Amazon RDS Extended Support. With RDS Extended Support, you can run the selected major engine version on your DB cluster past the end of standard support for that engine version. For more information, see the following sections:

      Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters

      Valid Values: open-source-rds-extended-support | open-source-rds-extended-support-disabled

      Default: open-source-rds-extended-support

      " } }, "documentation":"

      " @@ -15302,6 +15338,10 @@ "CACertificateIdentifier":{ "shape":"String", "documentation":"

      The CA certificate identifier to use for the DB instance's server certificate.

      This setting doesn't apply to RDS Custom DB instances.

      For more information, see Using SSL/TLS to encrypt a connection to a DB instance in the Amazon RDS User Guide and Using SSL/TLS to encrypt a connection to a DB cluster in the Amazon Aurora User Guide.

      " + }, + "EngineLifecycleSupport":{ + "shape":"String", + "documentation":"

      The life cycle type for this DB instance.

      By default, this value is set to open-source-rds-extended-support, which enrolls your DB instance into Amazon RDS Extended Support. At the end of standard support, you can avoid charges for Extended Support by setting the value to open-source-rds-extended-support-disabled. In this case, RDS automatically upgrades your restored DB instance to a higher engine version, if the major engine version is past its end of standard support date.

      You can use this setting to enroll your DB instance into Amazon RDS Extended Support. With RDS Extended Support, you can run the selected major engine version on your DB instance past the end of standard support for that engine version. For more information, see Using Amazon RDS Extended Support in the Amazon RDS User Guide.

      This setting applies only to RDS for MySQL and RDS for PostgreSQL. For Amazon Aurora DB instances, the life cycle type is managed by the DB cluster.

      Valid Values: open-source-rds-extended-support | open-source-rds-extended-support-disabled

      Default: open-source-rds-extended-support

      " } }, "documentation":"

      " @@ -15523,6 +15563,10 @@ "CACertificateIdentifier":{ "shape":"String", "documentation":"

      The CA certificate identifier to use for the DB instance's server certificate.

      This setting doesn't apply to RDS Custom DB instances.

      For more information, see Using SSL/TLS to encrypt a connection to a DB instance in the Amazon RDS User Guide and Using SSL/TLS to encrypt a connection to a DB cluster in the Amazon Aurora User Guide.

      " + }, + "EngineLifecycleSupport":{ + "shape":"String", + "documentation":"

      The life cycle type for this DB instance.

      By default, this value is set to open-source-rds-extended-support, which enrolls your DB instance into Amazon RDS Extended Support. At the end of standard support, you can avoid charges for Extended Support by setting the value to open-source-rds-extended-support-disabled. In this case, RDS automatically upgrades your restored DB instance to a higher engine version, if the major engine version is past its end of standard support date.

      You can use this setting to enroll your DB instance into Amazon RDS Extended Support. With RDS Extended Support, you can run the selected major engine version on your DB instance past the end of standard support for that engine version. For more information, see Using Amazon RDS Extended Support in the Amazon RDS User Guide.

      This setting applies only to RDS for MySQL and RDS for PostgreSQL. For Amazon Aurora DB instances, the life cycle type is managed by the DB cluster.

      Valid Values: open-source-rds-extended-support | open-source-rds-extended-support-disabled

      Default: open-source-rds-extended-support

      " } } }, @@ -15712,6 +15756,10 @@ "CACertificateIdentifier":{ "shape":"String", "documentation":"

      The CA certificate identifier to use for the DB instance's server certificate.

      This setting doesn't apply to RDS Custom DB instances.

      For more information, see Using SSL/TLS to encrypt a connection to a DB instance in the Amazon RDS User Guide and Using SSL/TLS to encrypt a connection to a DB cluster in the Amazon Aurora User Guide.

      " + }, + "EngineLifecycleSupport":{ + "shape":"String", + "documentation":"

      The life cycle type for this DB instance.

      By default, this value is set to open-source-rds-extended-support, which enrolls your DB instance into Amazon RDS Extended Support. At the end of standard support, you can avoid charges for Extended Support by setting the value to open-source-rds-extended-support-disabled. In this case, RDS automatically upgrades your restored DB instance to a higher engine version, if the major engine version is past its end of standard support date.

      You can use this setting to enroll your DB instance into Amazon RDS Extended Support. With RDS Extended Support, you can run the selected major engine version on your DB instance past the end of standard support for that engine version. For more information, see Using Amazon RDS Extended Support in the Amazon RDS User Guide.

      This setting applies only to RDS for MySQL and RDS for PostgreSQL. For Amazon Aurora DB instances, the life cycle type is managed by the DB cluster.

      Valid Values: open-source-rds-extended-support | open-source-rds-extended-support-disabled

      Default: open-source-rds-extended-support

      " } }, "documentation":"

      " @@ -16789,7 +16837,7 @@ }, "AutoUpgrade":{ "shape":"Boolean", - "documentation":"

      Indicates whether the target version is applied to any source DB instances that have AutoMinorVersionUpgrade set to true.

      " + "documentation":"

      Indicates whether the target version is applied to any source DB instances that have AutoMinorVersionUpgrade set to true.

      This parameter is dynamic, and is set by RDS.

      " }, "IsMajorVersionUpgrade":{ "shape":"Boolean", diff --git a/tools/code-generation/api-descriptions/secretsmanager-2017-10-17.normal.json b/tools/code-generation/api-descriptions/secretsmanager-2017-10-17.normal.json index 8a4e0405b81..b448928725a 100644 --- a/tools/code-generation/api-descriptions/secretsmanager-2017-10-17.normal.json +++ b/tools/code-generation/api-descriptions/secretsmanager-2017-10-17.normal.json @@ -674,7 +674,7 @@ }, "RotationEnabled":{ "shape":"RotationEnabledType", - "documentation":"

      Specifies whether automatic rotation is turned on for this secret. If the secret has never been configured for rotation, Secrets Manager returns null.

      To turn on rotation, use RotateSecret. To turn off rotation, use CancelRotateSecret.

      ", + "documentation":"

      Specifies whether automatic rotation is turned on for this secret.

      To turn on rotation, use RotateSecret. To turn off rotation, use CancelRotateSecret.

      ", "box":true }, "RotationLambdaARN":{ @@ -893,7 +893,7 @@ "members":{ "SecretId":{ "shape":"SecretIdType", - "documentation":"

      The ARN or name of the secret to retrieve. To retrieve a secret from another account, you must use an ARN.

      For an ARN, we recommend that you specify a complete ARN rather than a partial ARN. See Finding a secret from a partial ARN.

      " + "documentation":"

      The ARN or name of the secret to retrieve.

      For an ARN, we recommend that you specify a complete ARN rather than a partial ARN. See Finding a secret from a partial ARN.

      " }, "VersionId":{ "shape":"SecretVersionIdType", @@ -1411,7 +1411,7 @@ }, "RotateImmediately":{ "shape":"BooleanType", - "documentation":"

      Specifies whether to rotate the secret immediately or wait until the next scheduled rotation window. The rotation schedule is defined in RotateSecretRequest$RotationRules.

      For secrets that use a Lambda rotation function to rotate, if you don't immediately rotate the secret, Secrets Manager tests the rotation configuration by running the testSecret step of the Lambda rotation function. The test creates an AWSPENDING version of the secret and then removes it.

      By default, Secrets Manager rotates the secret immediately.

      ", + "documentation":"

      Specifies whether to rotate the secret immediately or wait until the next scheduled rotation window. The rotation schedule is defined in RotateSecretRequest$RotationRules.

      For secrets that use a Lambda rotation function to rotate, if you don't immediately rotate the secret, Secrets Manager tests the rotation configuration by running the testSecret step of the Lambda rotation function. The test creates an AWSPENDING version of the secret and then removes it.

      By default, Secrets Manager rotates the secret immediately.

      ", "box":true } } @@ -1873,7 +1873,7 @@ "members":{ "SecretId":{ "shape":"SecretIdType", - "documentation":"

      The ARN or name of the secret with the resource-based policy you want to validate.

      " + "documentation":"

      This field is reserved for internal use.

      " }, "ResourcePolicy":{ "shape":"NonEmptyResourcePolicyType",