From a29d8e7bda508b764ccbff67e5c1e75acd805af1 Mon Sep 17 00:00:00 2001 From: aws-sdk-cpp-automation Date: Thu, 17 Oct 2024 18:46:53 +0000 Subject: [PATCH] This is an Amazon ECS documentation only update to address tickets. Updates Amazon RDS documentation for TAZ IAM support Add StartDashboardSnapshotJobSchedule API. RestoreAnalysis now supports restoring analysis to folders. This release adds validation to require specifying a SecurityGroup and Subnets in the Vpc object under PipesSourceSelfManagedKafkaParameters. It also adds support for iso-e, iso-f, and other non-commercial partitions in ARN parameters. This release adds Data Grant support, through which customers can programmatically create data grants to share with other AWS accounts and accept data grants from other AWS accounts. Added the registrations status of REQUIRES_AUTHENTICATION Updated the DomainName pattern for Active Directory Removing support for topK property in PromptModelInferenceConfiguration object, Making PromptTemplateConfiguration property as required, Limiting the maximum PromptVariant to 1 --- VERSION | 2 +- .../aws/bedrock-agent/BedrockAgentClient.h | 2 +- .../model/PromptModelInferenceConfiguration.h | 14 - .../PromptModelInferenceConfiguration.cpp | 15 - .../aws/dataexchange/DataExchangeClient.h | 182 +++- .../DataExchangeServiceClientModel.h | 36 + .../model/AcceptDataGrantRequest.h | 56 ++ .../model/AcceptDataGrantResult.h | 238 ++++++ .../model/AcceptanceStateFilterValue.h | 31 + .../model/CreateDataGrantRequest.h | 162 ++++ .../model/CreateDataGrantResult.h | 274 +++++++ .../model/DataGrantAcceptanceState.h | 31 + .../model/DataGrantSummaryEntry.h | 240 ++++++ .../model/DeleteDataGrantRequest.h | 56 ++ .../dataexchange/model/GetDataGrantRequest.h | 56 ++ .../dataexchange/model/GetDataGrantResult.h | 274 +++++++ .../model/GetReceivedDataGrantRequest.h | 56 ++ .../model/GetReceivedDataGrantResult.h | 238 ++++++ .../model/GrantDistributionScope.h | 31 + .../aws/dataexchange/model/LimitName.h | 4 +- .../model/ListDataGrantsRequest.h | 76 ++ .../dataexchange/model/ListDataGrantsResult.h | 85 ++ .../model/ListReceivedDataGrantsRequest.h | 95 +++ .../model/ListReceivedDataGrantsResult.h | 85 ++ .../aws/dataexchange/model/OriginDetails.h | 17 + .../model/ReceivedDataGrantSummariesEntry.h | 223 +++++ .../aws/dataexchange/model/ResourceType.h | 3 +- .../source/DataExchangeClient.cpp | 221 +++++ .../source/model/AcceptDataGrantRequest.cpp | 27 + .../source/model/AcceptDataGrantResult.cpp | 123 +++ .../model/AcceptanceStateFilterValue.cpp | 72 ++ .../source/model/CreateDataGrantRequest.cpp | 81 ++ .../source/model/CreateDataGrantResult.cpp | 138 ++++ .../source/model/DataGrantAcceptanceState.cpp | 72 ++ .../source/model/DataGrantSummaryEntry.cpp | 209 +++++ .../source/model/DeleteDataGrantRequest.cpp | 27 + .../source/model/GetDataGrantRequest.cpp | 27 + .../source/model/GetDataGrantResult.cpp | 138 ++++ .../model/GetReceivedDataGrantRequest.cpp | 27 + .../model/GetReceivedDataGrantResult.cpp | 123 +++ .../source/model/GrantDistributionScope.cpp | 72 ++ .../source/model/LimitName.cpp | 14 + .../source/model/ListDataGrantsRequest.cpp | 50 ++ .../source/model/ListDataGrantsResult.cpp | 57 ++ .../model/ListReceivedDataGrantsRequest.cpp | 61 ++ .../model/ListReceivedDataGrantsResult.cpp | 57 ++ .../source/model/OriginDetails.cpp | 16 +- .../model/ReceivedDataGrantSummariesEntry.cpp | 195 +++++ .../source/model/ResourceType.cpp | 7 + .../include/aws/ecs/model/RunTaskRequest.h | 4 +- .../include/aws/ecs/model/StartTaskRequest.h | 3 +- .../PinpointSMSVoiceV2Client.h | 9 +- .../CreateRegistrationAttachmentRequest.h | 8 +- .../model/DescribeOptedOutNumbersRequest.h | 3 +- .../model/RegistrationStatus.h | 1 + .../model/RegistrationVersionStatus.h | 1 + .../model/ValidationExceptionReason.h | 1 + .../source/model/RegistrationStatus.cpp | 7 + .../model/RegistrationVersionStatus.cpp | 7 + .../model/ValidationExceptionReason.cpp | 7 + .../PipeSourceDynamoDBStreamParameters.h | 22 +- .../model/PipeSourceKinesisStreamParameters.h | 22 +- ...ipeSourceManagedStreamingKafkaParameters.h | 2 +- .../PipeSourceSelfManagedKafkaParameters.h | 2 +- .../model/PipeTargetTimestreamParameters.h | 2 +- ...UpdatePipeSourceDynamoDBStreamParameters.h | 20 +- .../UpdatePipeSourceKinesisStreamParameters.h | 20 +- .../include/aws/quicksight/QuickSightClient.h | 33 + .../quicksight/QuickSightServiceClientModel.h | 5 + .../quicksight/model/RestoreAnalysisRequest.h | 24 + .../quicksight/model/RestoreAnalysisResult.h | 17 + ...StartDashboardSnapshotJobScheduleRequest.h | 94 +++ .../StartDashboardSnapshotJobScheduleResult.h | 63 ++ .../source/QuickSightClient.cpp | 48 ++ .../source/model/RestoreAnalysisRequest.cpp | 18 +- .../source/model/RestoreAnalysisResult.cpp | 9 + ...artDashboardSnapshotJobScheduleRequest.cpp | 29 + ...tartDashboardSnapshotJobScheduleResult.cpp | 46 ++ .../aws/rds/model/CreateDBClusterRequest.h | 7 +- .../aws/rds/model/DeleteDBShardGroupRequest.h | 2 +- .../rds/model/DescribeDBShardGroupsRequest.h | 9 +- .../aws/rds/model/ModifyDBClusterRequest.h | 9 +- .../RestoreDBClusterFromSnapshotRequest.h | 7 +- .../RestoreDBClusterToPointInTimeRequest.h | 7 +- .../SwitchoverBlueGreenDeploymentRequest.h | 4 +- .../include/aws/core/VersionConfig.h | 4 +- .../bedrock-agent-2023-06-05.normal.json | 9 +- .../dataexchange-2017-07-25.normal.json | 776 +++++++++++++++++- .../ecs-2014-11-13.normal.json | 4 +- ...npoint-sms-voice-v2-2022-03-31.normal.json | 13 +- .../pipes-2015-10-07.normal.json | 62 +- .../quicksight-2018-04-01.normal.json | 89 +- .../rds-2014-10-31.normal.json | 16 +- .../workspaces-2015-04-08.normal.json | 2 +- 94 files changed, 5766 insertions(+), 177 deletions(-) create mode 100644 generated/src/aws-cpp-sdk-dataexchange/include/aws/dataexchange/model/AcceptDataGrantRequest.h create mode 100644 generated/src/aws-cpp-sdk-dataexchange/include/aws/dataexchange/model/AcceptDataGrantResult.h create mode 100644 generated/src/aws-cpp-sdk-dataexchange/include/aws/dataexchange/model/AcceptanceStateFilterValue.h create mode 100644 generated/src/aws-cpp-sdk-dataexchange/include/aws/dataexchange/model/CreateDataGrantRequest.h create mode 100644 generated/src/aws-cpp-sdk-dataexchange/include/aws/dataexchange/model/CreateDataGrantResult.h create mode 100644 generated/src/aws-cpp-sdk-dataexchange/include/aws/dataexchange/model/DataGrantAcceptanceState.h create mode 100644 generated/src/aws-cpp-sdk-dataexchange/include/aws/dataexchange/model/DataGrantSummaryEntry.h create mode 100644 generated/src/aws-cpp-sdk-dataexchange/include/aws/dataexchange/model/DeleteDataGrantRequest.h create mode 100644 generated/src/aws-cpp-sdk-dataexchange/include/aws/dataexchange/model/GetDataGrantRequest.h create mode 100644 generated/src/aws-cpp-sdk-dataexchange/include/aws/dataexchange/model/GetDataGrantResult.h create mode 100644 generated/src/aws-cpp-sdk-dataexchange/include/aws/dataexchange/model/GetReceivedDataGrantRequest.h create mode 100644 generated/src/aws-cpp-sdk-dataexchange/include/aws/dataexchange/model/GetReceivedDataGrantResult.h create mode 100644 generated/src/aws-cpp-sdk-dataexchange/include/aws/dataexchange/model/GrantDistributionScope.h create mode 100644 generated/src/aws-cpp-sdk-dataexchange/include/aws/dataexchange/model/ListDataGrantsRequest.h create mode 100644 generated/src/aws-cpp-sdk-dataexchange/include/aws/dataexchange/model/ListDataGrantsResult.h create mode 100644 generated/src/aws-cpp-sdk-dataexchange/include/aws/dataexchange/model/ListReceivedDataGrantsRequest.h create mode 100644 generated/src/aws-cpp-sdk-dataexchange/include/aws/dataexchange/model/ListReceivedDataGrantsResult.h create mode 100644 generated/src/aws-cpp-sdk-dataexchange/include/aws/dataexchange/model/ReceivedDataGrantSummariesEntry.h create mode 100644 generated/src/aws-cpp-sdk-dataexchange/source/model/AcceptDataGrantRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-dataexchange/source/model/AcceptDataGrantResult.cpp create mode 100644 generated/src/aws-cpp-sdk-dataexchange/source/model/AcceptanceStateFilterValue.cpp create mode 100644 generated/src/aws-cpp-sdk-dataexchange/source/model/CreateDataGrantRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-dataexchange/source/model/CreateDataGrantResult.cpp create mode 100644 generated/src/aws-cpp-sdk-dataexchange/source/model/DataGrantAcceptanceState.cpp create mode 100644 generated/src/aws-cpp-sdk-dataexchange/source/model/DataGrantSummaryEntry.cpp create mode 100644 generated/src/aws-cpp-sdk-dataexchange/source/model/DeleteDataGrantRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-dataexchange/source/model/GetDataGrantRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-dataexchange/source/model/GetDataGrantResult.cpp create mode 100644 generated/src/aws-cpp-sdk-dataexchange/source/model/GetReceivedDataGrantRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-dataexchange/source/model/GetReceivedDataGrantResult.cpp create mode 100644 generated/src/aws-cpp-sdk-dataexchange/source/model/GrantDistributionScope.cpp create mode 100644 generated/src/aws-cpp-sdk-dataexchange/source/model/ListDataGrantsRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-dataexchange/source/model/ListDataGrantsResult.cpp create mode 100644 generated/src/aws-cpp-sdk-dataexchange/source/model/ListReceivedDataGrantsRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-dataexchange/source/model/ListReceivedDataGrantsResult.cpp create mode 100644 generated/src/aws-cpp-sdk-dataexchange/source/model/ReceivedDataGrantSummariesEntry.cpp create mode 100644 generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/StartDashboardSnapshotJobScheduleRequest.h create mode 100644 generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/StartDashboardSnapshotJobScheduleResult.h create mode 100644 generated/src/aws-cpp-sdk-quicksight/source/model/StartDashboardSnapshotJobScheduleRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-quicksight/source/model/StartDashboardSnapshotJobScheduleResult.cpp diff --git a/VERSION b/VERSION index b93bbc30512..aacacb7d68e 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.11.428 \ No newline at end of file +1.11.429 \ No newline at end of file diff --git a/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/BedrockAgentClient.h b/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/BedrockAgentClient.h index 32d5dd75670..db6393829e3 100644 --- a/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/BedrockAgentClient.h +++ b/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/BedrockAgentClient.h @@ -978,7 +978,7 @@ namespace BedrockAgent /** *

Gets information about a data ingestion job. Data sources are ingested into - * your knowledge base so that Large Lanaguage Models (LLMs) can use your + * your knowledge base so that Large Language Models (LLMs) can use your * data.

See Also:

AWS * API Reference

diff --git a/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/PromptModelInferenceConfiguration.h b/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/PromptModelInferenceConfiguration.h index d3da8de7c68..d048685341d 100644 --- a/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/PromptModelInferenceConfiguration.h +++ b/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/PromptModelInferenceConfiguration.h @@ -78,17 +78,6 @@ namespace Model inline PromptModelInferenceConfiguration& WithTemperature(double value) { SetTemperature(value); return *this;} ///@} - ///@{ - /** - *

The number of most-likely candidates that the model considers for the next - * token during generation.

- */ - inline int GetTopK() const{ return m_topK; } - inline bool TopKHasBeenSet() const { return m_topKHasBeenSet; } - inline void SetTopK(int value) { m_topKHasBeenSet = true; m_topK = value; } - inline PromptModelInferenceConfiguration& WithTopK(int value) { SetTopK(value); return *this;} - ///@} - ///@{ /** *

The percentage of most-likely candidates that the model considers for the @@ -110,9 +99,6 @@ namespace Model double m_temperature; bool m_temperatureHasBeenSet = false; - int m_topK; - bool m_topKHasBeenSet = false; - double m_topP; bool m_topPHasBeenSet = false; }; diff --git a/generated/src/aws-cpp-sdk-bedrock-agent/source/model/PromptModelInferenceConfiguration.cpp b/generated/src/aws-cpp-sdk-bedrock-agent/source/model/PromptModelInferenceConfiguration.cpp index bd33952473e..3e6615f2a84 100644 --- a/generated/src/aws-cpp-sdk-bedrock-agent/source/model/PromptModelInferenceConfiguration.cpp +++ b/generated/src/aws-cpp-sdk-bedrock-agent/source/model/PromptModelInferenceConfiguration.cpp @@ -24,8 +24,6 @@ PromptModelInferenceConfiguration::PromptModelInferenceConfiguration() : m_stopSequencesHasBeenSet(false), m_temperature(0.0), m_temperatureHasBeenSet(false), - m_topK(0), - m_topKHasBeenSet(false), m_topP(0.0), m_topPHasBeenSet(false) { @@ -63,13 +61,6 @@ PromptModelInferenceConfiguration& PromptModelInferenceConfiguration::operator = m_temperatureHasBeenSet = true; } - if(jsonValue.ValueExists("topK")) - { - m_topK = jsonValue.GetInteger("topK"); - - m_topKHasBeenSet = true; - } - if(jsonValue.ValueExists("topP")) { m_topP = jsonValue.GetDouble("topP"); @@ -107,12 +98,6 @@ JsonValue PromptModelInferenceConfiguration::Jsonize() const } - if(m_topKHasBeenSet) - { - payload.WithInteger("topK", m_topK); - - } - if(m_topPHasBeenSet) { payload.WithDouble("topP", m_topP); diff --git a/generated/src/aws-cpp-sdk-dataexchange/include/aws/dataexchange/DataExchangeClient.h b/generated/src/aws-cpp-sdk-dataexchange/include/aws/dataexchange/DataExchangeClient.h index a8cdcff9f64..2fb70854b6c 100644 --- a/generated/src/aws-cpp-sdk-dataexchange/include/aws/dataexchange/DataExchangeClient.h +++ b/generated/src/aws-cpp-sdk-dataexchange/include/aws/dataexchange/DataExchangeClient.h @@ -93,6 +93,31 @@ namespace DataExchange /* End of legacy constructors due deprecation */ virtual ~DataExchangeClient(); + /** + *

This operation accepts a data grant.

See Also:

AWS + * API Reference

+ */ + virtual Model::AcceptDataGrantOutcome AcceptDataGrant(const Model::AcceptDataGrantRequest& request) const; + + /** + * A Callable wrapper for AcceptDataGrant that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::AcceptDataGrantOutcomeCallable AcceptDataGrantCallable(const AcceptDataGrantRequestT& request) const + { + return SubmitCallable(&DataExchangeClient::AcceptDataGrant, request); + } + + /** + * An Async wrapper for AcceptDataGrant that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void AcceptDataGrantAsync(const AcceptDataGrantRequestT& request, const AcceptDataGrantResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&DataExchangeClient::AcceptDataGrant, request, handler, context); + } + /** *

This operation cancels a job. Jobs can be cancelled only when they are in the * WAITING state.

See Also:

This operation creates a data grant.

See Also:

AWS + * API Reference

+ */ + virtual Model::CreateDataGrantOutcome CreateDataGrant(const Model::CreateDataGrantRequest& request) const; + + /** + * A Callable wrapper for CreateDataGrant that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::CreateDataGrantOutcomeCallable CreateDataGrantCallable(const CreateDataGrantRequestT& request) const + { + return SubmitCallable(&DataExchangeClient::CreateDataGrant, request); + } + + /** + * An Async wrapper for CreateDataGrant that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void CreateDataGrantAsync(const CreateDataGrantRequestT& request, const CreateDataGrantResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&DataExchangeClient::CreateDataGrant, request, handler, context); + } + /** *

This operation creates a data set.

See Also:

AWS @@ -245,6 +295,31 @@ namespace DataExchange return SubmitAsync(&DataExchangeClient::DeleteAsset, request, handler, context); } + /** + *

This operation deletes a data grant.

See Also:

AWS + * API Reference

+ */ + virtual Model::DeleteDataGrantOutcome DeleteDataGrant(const Model::DeleteDataGrantRequest& request) const; + + /** + * A Callable wrapper for DeleteDataGrant that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::DeleteDataGrantOutcomeCallable DeleteDataGrantCallable(const DeleteDataGrantRequestT& request) const + { + return SubmitCallable(&DataExchangeClient::DeleteDataGrant, request); + } + + /** + * An Async wrapper for DeleteDataGrant that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void DeleteDataGrantAsync(const DeleteDataGrantRequestT& request, const DeleteDataGrantResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&DataExchangeClient::DeleteDataGrant, request, handler, context); + } + /** *

This operation deletes a data set.

See Also:

AWS @@ -346,6 +421,32 @@ namespace DataExchange return SubmitAsync(&DataExchangeClient::GetAsset, request, handler, context); } + /** + *

This operation returns information about a data grant.

See + * Also:

AWS + * API Reference

+ */ + virtual Model::GetDataGrantOutcome GetDataGrant(const Model::GetDataGrantRequest& request) const; + + /** + * A Callable wrapper for GetDataGrant that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::GetDataGrantOutcomeCallable GetDataGrantCallable(const GetDataGrantRequestT& request) const + { + return SubmitCallable(&DataExchangeClient::GetDataGrant, request); + } + + /** + * An Async wrapper for GetDataGrant that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void GetDataGrantAsync(const GetDataGrantRequestT& request, const GetDataGrantResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&DataExchangeClient::GetDataGrant, request, handler, context); + } + /** *

This operation returns information about a data set.

See Also:

* This operation returns information about a received data grant.

See + * Also:

AWS + * API Reference

+ */ + virtual Model::GetReceivedDataGrantOutcome GetReceivedDataGrant(const Model::GetReceivedDataGrantRequest& request) const; + + /** + * A Callable wrapper for GetReceivedDataGrant that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::GetReceivedDataGrantOutcomeCallable GetReceivedDataGrantCallable(const GetReceivedDataGrantRequestT& request) const + { + return SubmitCallable(&DataExchangeClient::GetReceivedDataGrant, request); + } + + /** + * An Async wrapper for GetReceivedDataGrant that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void GetReceivedDataGrantAsync(const GetReceivedDataGrantRequestT& request, const GetReceivedDataGrantResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&DataExchangeClient::GetReceivedDataGrant, request, handler, context); + } + /** *

This operation returns information about a revision.

See Also:

* This operation returns information about all data grants.

See + * Also:

AWS + * API Reference

+ */ + virtual Model::ListDataGrantsOutcome ListDataGrants(const Model::ListDataGrantsRequest& request = {}) const; + + /** + * A Callable wrapper for ListDataGrants that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::ListDataGrantsOutcomeCallable ListDataGrantsCallable(const ListDataGrantsRequestT& request = {}) const + { + return SubmitCallable(&DataExchangeClient::ListDataGrants, request); + } + + /** + * An Async wrapper for ListDataGrants that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void ListDataGrantsAsync(const ListDataGrantsResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr, const ListDataGrantsRequestT& request = {}) const + { + return SubmitAsync(&DataExchangeClient::ListDataGrants, request, handler, context); + } + /** *

This operation lists a data set's revisions sorted by CreatedAt in descending * order.

See Also:

This operation lists your data sets. When listing by origin OWNED, results * are sorted by CreatedAt in descending order. When listing by origin ENTITLED, - * there is no order and the maxResults parameter is ignored.

See - * Also:

See Also:

AWS * API Reference

*/ @@ -554,6 +706,32 @@ namespace DataExchange return SubmitAsync(&DataExchangeClient::ListJobs, request, handler, context); } + /** + *

This operation returns information about all received data + * grants.

See Also:

AWS + * API Reference

+ */ + virtual Model::ListReceivedDataGrantsOutcome ListReceivedDataGrants(const Model::ListReceivedDataGrantsRequest& request = {}) const; + + /** + * A Callable wrapper for ListReceivedDataGrants that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::ListReceivedDataGrantsOutcomeCallable ListReceivedDataGrantsCallable(const ListReceivedDataGrantsRequestT& request = {}) const + { + return SubmitCallable(&DataExchangeClient::ListReceivedDataGrants, request); + } + + /** + * An Async wrapper for ListReceivedDataGrants that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void ListReceivedDataGrantsAsync(const ListReceivedDataGrantsResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr, const ListReceivedDataGrantsRequestT& request = {}) const + { + return SubmitAsync(&DataExchangeClient::ListReceivedDataGrants, request, handler, context); + } + /** *

This operation lists a revision's assets sorted alphabetically in descending * order.

See Also:

+#include #include #include #include #include #include +#include #include #include #include +#include #include +#include #include #include #include #include +#include #include #include #include @@ -41,7 +47,9 @@ #include #include #include +#include #include +#include #include #include #include @@ -85,24 +93,31 @@ namespace Aws namespace Model { /* Service model forward declarations required in DataExchangeClient header */ + class AcceptDataGrantRequest; class CancelJobRequest; + class CreateDataGrantRequest; class CreateDataSetRequest; class CreateEventActionRequest; class CreateJobRequest; class CreateRevisionRequest; class DeleteAssetRequest; + class DeleteDataGrantRequest; class DeleteDataSetRequest; class DeleteEventActionRequest; class DeleteRevisionRequest; class GetAssetRequest; + class GetDataGrantRequest; class GetDataSetRequest; class GetEventActionRequest; class GetJobRequest; + class GetReceivedDataGrantRequest; class GetRevisionRequest; + class ListDataGrantsRequest; class ListDataSetRevisionsRequest; class ListDataSetsRequest; class ListEventActionsRequest; class ListJobsRequest; + class ListReceivedDataGrantsRequest; class ListRevisionAssetsRequest; class ListTagsForResourceRequest; class RevokeRevisionRequest; @@ -118,24 +133,31 @@ namespace Aws /* End of service model forward declarations required in DataExchangeClient header */ /* Service model Outcome class definitions */ + typedef Aws::Utils::Outcome AcceptDataGrantOutcome; typedef Aws::Utils::Outcome CancelJobOutcome; + typedef Aws::Utils::Outcome CreateDataGrantOutcome; typedef Aws::Utils::Outcome CreateDataSetOutcome; typedef Aws::Utils::Outcome CreateEventActionOutcome; typedef Aws::Utils::Outcome CreateJobOutcome; typedef Aws::Utils::Outcome CreateRevisionOutcome; typedef Aws::Utils::Outcome DeleteAssetOutcome; + typedef Aws::Utils::Outcome DeleteDataGrantOutcome; typedef Aws::Utils::Outcome DeleteDataSetOutcome; typedef Aws::Utils::Outcome DeleteEventActionOutcome; typedef Aws::Utils::Outcome DeleteRevisionOutcome; typedef Aws::Utils::Outcome GetAssetOutcome; + typedef Aws::Utils::Outcome GetDataGrantOutcome; typedef Aws::Utils::Outcome GetDataSetOutcome; typedef Aws::Utils::Outcome GetEventActionOutcome; typedef Aws::Utils::Outcome GetJobOutcome; + typedef Aws::Utils::Outcome GetReceivedDataGrantOutcome; typedef Aws::Utils::Outcome GetRevisionOutcome; + typedef Aws::Utils::Outcome ListDataGrantsOutcome; typedef Aws::Utils::Outcome ListDataSetRevisionsOutcome; typedef Aws::Utils::Outcome ListDataSetsOutcome; typedef Aws::Utils::Outcome ListEventActionsOutcome; typedef Aws::Utils::Outcome ListJobsOutcome; + typedef Aws::Utils::Outcome ListReceivedDataGrantsOutcome; typedef Aws::Utils::Outcome ListRevisionAssetsOutcome; typedef Aws::Utils::Outcome ListTagsForResourceOutcome; typedef Aws::Utils::Outcome RevokeRevisionOutcome; @@ -151,24 +173,31 @@ namespace Aws /* End of service model Outcome class definitions */ /* Service model Outcome callable definitions */ + typedef std::future AcceptDataGrantOutcomeCallable; typedef std::future CancelJobOutcomeCallable; + typedef std::future CreateDataGrantOutcomeCallable; typedef std::future CreateDataSetOutcomeCallable; typedef std::future CreateEventActionOutcomeCallable; typedef std::future CreateJobOutcomeCallable; typedef std::future CreateRevisionOutcomeCallable; typedef std::future DeleteAssetOutcomeCallable; + typedef std::future DeleteDataGrantOutcomeCallable; typedef std::future DeleteDataSetOutcomeCallable; typedef std::future DeleteEventActionOutcomeCallable; typedef std::future DeleteRevisionOutcomeCallable; typedef std::future GetAssetOutcomeCallable; + typedef std::future GetDataGrantOutcomeCallable; typedef std::future GetDataSetOutcomeCallable; typedef std::future GetEventActionOutcomeCallable; typedef std::future GetJobOutcomeCallable; + typedef std::future GetReceivedDataGrantOutcomeCallable; typedef std::future GetRevisionOutcomeCallable; + typedef std::future ListDataGrantsOutcomeCallable; typedef std::future ListDataSetRevisionsOutcomeCallable; typedef std::future ListDataSetsOutcomeCallable; typedef std::future ListEventActionsOutcomeCallable; typedef std::future ListJobsOutcomeCallable; + typedef std::future ListReceivedDataGrantsOutcomeCallable; typedef std::future ListRevisionAssetsOutcomeCallable; typedef std::future ListTagsForResourceOutcomeCallable; typedef std::future RevokeRevisionOutcomeCallable; @@ -187,24 +216,31 @@ namespace Aws class DataExchangeClient; /* Service model async handlers definitions */ + typedef std::function&) > AcceptDataGrantResponseReceivedHandler; typedef std::function&) > CancelJobResponseReceivedHandler; + typedef std::function&) > CreateDataGrantResponseReceivedHandler; typedef std::function&) > CreateDataSetResponseReceivedHandler; typedef std::function&) > CreateEventActionResponseReceivedHandler; typedef std::function&) > CreateJobResponseReceivedHandler; typedef std::function&) > CreateRevisionResponseReceivedHandler; typedef std::function&) > DeleteAssetResponseReceivedHandler; + typedef std::function&) > DeleteDataGrantResponseReceivedHandler; typedef std::function&) > DeleteDataSetResponseReceivedHandler; typedef std::function&) > DeleteEventActionResponseReceivedHandler; typedef std::function&) > DeleteRevisionResponseReceivedHandler; typedef std::function&) > GetAssetResponseReceivedHandler; + typedef std::function&) > GetDataGrantResponseReceivedHandler; typedef std::function&) > GetDataSetResponseReceivedHandler; typedef std::function&) > GetEventActionResponseReceivedHandler; typedef std::function&) > GetJobResponseReceivedHandler; + typedef std::function&) > GetReceivedDataGrantResponseReceivedHandler; typedef std::function&) > GetRevisionResponseReceivedHandler; + typedef std::function&) > ListDataGrantsResponseReceivedHandler; typedef std::function&) > ListDataSetRevisionsResponseReceivedHandler; typedef std::function&) > ListDataSetsResponseReceivedHandler; typedef std::function&) > ListEventActionsResponseReceivedHandler; typedef std::function&) > ListJobsResponseReceivedHandler; + typedef std::function&) > ListReceivedDataGrantsResponseReceivedHandler; typedef std::function&) > ListRevisionAssetsResponseReceivedHandler; typedef std::function&) > ListTagsForResourceResponseReceivedHandler; typedef std::function&) > RevokeRevisionResponseReceivedHandler; diff --git a/generated/src/aws-cpp-sdk-dataexchange/include/aws/dataexchange/model/AcceptDataGrantRequest.h b/generated/src/aws-cpp-sdk-dataexchange/include/aws/dataexchange/model/AcceptDataGrantRequest.h new file mode 100644 index 00000000000..3d5fd50fbd8 --- /dev/null +++ b/generated/src/aws-cpp-sdk-dataexchange/include/aws/dataexchange/model/AcceptDataGrantRequest.h @@ -0,0 +1,56 @@ +/** + * 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 DataExchange +{ +namespace Model +{ + + /** + */ + class AcceptDataGrantRequest : public DataExchangeRequest + { + public: + AWS_DATAEXCHANGE_API AcceptDataGrantRequest(); + + // 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 "AcceptDataGrant"; } + + AWS_DATAEXCHANGE_API Aws::String SerializePayload() const override; + + + ///@{ + /** + *

The Amazon Resource Name (ARN) of the data grant to accept.

+ */ + inline const Aws::String& GetDataGrantArn() const{ return m_dataGrantArn; } + inline bool DataGrantArnHasBeenSet() const { return m_dataGrantArnHasBeenSet; } + inline void SetDataGrantArn(const Aws::String& value) { m_dataGrantArnHasBeenSet = true; m_dataGrantArn = value; } + inline void SetDataGrantArn(Aws::String&& value) { m_dataGrantArnHasBeenSet = true; m_dataGrantArn = std::move(value); } + inline void SetDataGrantArn(const char* value) { m_dataGrantArnHasBeenSet = true; m_dataGrantArn.assign(value); } + inline AcceptDataGrantRequest& WithDataGrantArn(const Aws::String& value) { SetDataGrantArn(value); return *this;} + inline AcceptDataGrantRequest& WithDataGrantArn(Aws::String&& value) { SetDataGrantArn(std::move(value)); return *this;} + inline AcceptDataGrantRequest& WithDataGrantArn(const char* value) { SetDataGrantArn(value); return *this;} + ///@} + private: + + Aws::String m_dataGrantArn; + bool m_dataGrantArnHasBeenSet = false; + }; + +} // namespace Model +} // namespace DataExchange +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-dataexchange/include/aws/dataexchange/model/AcceptDataGrantResult.h b/generated/src/aws-cpp-sdk-dataexchange/include/aws/dataexchange/model/AcceptDataGrantResult.h new file mode 100644 index 00000000000..cc15dd7f27f --- /dev/null +++ b/generated/src/aws-cpp-sdk-dataexchange/include/aws/dataexchange/model/AcceptDataGrantResult.h @@ -0,0 +1,238 @@ +/** + * 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 +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace DataExchange +{ +namespace Model +{ + class AcceptDataGrantResult + { + public: + AWS_DATAEXCHANGE_API AcceptDataGrantResult(); + AWS_DATAEXCHANGE_API AcceptDataGrantResult(const Aws::AmazonWebServiceResult& result); + AWS_DATAEXCHANGE_API AcceptDataGrantResult& operator=(const Aws::AmazonWebServiceResult& result); + + + ///@{ + /** + *

The name of the accepted data grant.

+ */ + inline const Aws::String& GetName() const{ return m_name; } + inline void SetName(const Aws::String& value) { m_name = value; } + inline void SetName(Aws::String&& value) { m_name = std::move(value); } + inline void SetName(const char* value) { m_name.assign(value); } + inline AcceptDataGrantResult& WithName(const Aws::String& value) { SetName(value); return *this;} + inline AcceptDataGrantResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} + inline AcceptDataGrantResult& WithName(const char* value) { SetName(value); return *this;} + ///@} + + ///@{ + /** + *

The Amazon Web Services account ID of the data grant sender.

+ */ + inline const Aws::String& GetSenderPrincipal() const{ return m_senderPrincipal; } + inline void SetSenderPrincipal(const Aws::String& value) { m_senderPrincipal = value; } + inline void SetSenderPrincipal(Aws::String&& value) { m_senderPrincipal = std::move(value); } + inline void SetSenderPrincipal(const char* value) { m_senderPrincipal.assign(value); } + inline AcceptDataGrantResult& WithSenderPrincipal(const Aws::String& value) { SetSenderPrincipal(value); return *this;} + inline AcceptDataGrantResult& WithSenderPrincipal(Aws::String&& value) { SetSenderPrincipal(std::move(value)); return *this;} + inline AcceptDataGrantResult& WithSenderPrincipal(const char* value) { SetSenderPrincipal(value); return *this;} + ///@} + + ///@{ + /** + *

The Amazon Web Services account ID of the data grant receiver.

+ */ + inline const Aws::String& GetReceiverPrincipal() const{ return m_receiverPrincipal; } + inline void SetReceiverPrincipal(const Aws::String& value) { m_receiverPrincipal = value; } + inline void SetReceiverPrincipal(Aws::String&& value) { m_receiverPrincipal = std::move(value); } + inline void SetReceiverPrincipal(const char* value) { m_receiverPrincipal.assign(value); } + inline AcceptDataGrantResult& WithReceiverPrincipal(const Aws::String& value) { SetReceiverPrincipal(value); return *this;} + inline AcceptDataGrantResult& WithReceiverPrincipal(Aws::String&& value) { SetReceiverPrincipal(std::move(value)); return *this;} + inline AcceptDataGrantResult& WithReceiverPrincipal(const char* value) { SetReceiverPrincipal(value); return *this;} + ///@} + + ///@{ + /** + *

The description of the accepted data grant.

+ */ + inline const Aws::String& GetDescription() const{ return m_description; } + inline void SetDescription(const Aws::String& value) { m_description = value; } + inline void SetDescription(Aws::String&& value) { m_description = std::move(value); } + inline void SetDescription(const char* value) { m_description.assign(value); } + inline AcceptDataGrantResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} + inline AcceptDataGrantResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} + inline AcceptDataGrantResult& WithDescription(const char* value) { SetDescription(value); return *this;} + ///@} + + ///@{ + /** + *

The acceptance state of the data grant.

+ */ + inline const DataGrantAcceptanceState& GetAcceptanceState() const{ return m_acceptanceState; } + inline void SetAcceptanceState(const DataGrantAcceptanceState& value) { m_acceptanceState = value; } + inline void SetAcceptanceState(DataGrantAcceptanceState&& value) { m_acceptanceState = std::move(value); } + inline AcceptDataGrantResult& WithAcceptanceState(const DataGrantAcceptanceState& value) { SetAcceptanceState(value); return *this;} + inline AcceptDataGrantResult& WithAcceptanceState(DataGrantAcceptanceState&& value) { SetAcceptanceState(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

The timestamp of when the data grant was accepted.

+ */ + inline const Aws::Utils::DateTime& GetAcceptedAt() const{ return m_acceptedAt; } + inline void SetAcceptedAt(const Aws::Utils::DateTime& value) { m_acceptedAt = value; } + inline void SetAcceptedAt(Aws::Utils::DateTime&& value) { m_acceptedAt = std::move(value); } + inline AcceptDataGrantResult& WithAcceptedAt(const Aws::Utils::DateTime& value) { SetAcceptedAt(value); return *this;} + inline AcceptDataGrantResult& WithAcceptedAt(Aws::Utils::DateTime&& value) { SetAcceptedAt(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

The timestamp of when access to the associated data set ends.

+ */ + inline const Aws::Utils::DateTime& GetEndsAt() const{ return m_endsAt; } + inline void SetEndsAt(const Aws::Utils::DateTime& value) { m_endsAt = value; } + inline void SetEndsAt(Aws::Utils::DateTime&& value) { m_endsAt = std::move(value); } + inline AcceptDataGrantResult& WithEndsAt(const Aws::Utils::DateTime& value) { SetEndsAt(value); return *this;} + inline AcceptDataGrantResult& WithEndsAt(Aws::Utils::DateTime&& value) { SetEndsAt(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

The distribution scope for the data grant.

+ */ + inline const GrantDistributionScope& GetGrantDistributionScope() const{ return m_grantDistributionScope; } + inline void SetGrantDistributionScope(const GrantDistributionScope& value) { m_grantDistributionScope = value; } + inline void SetGrantDistributionScope(GrantDistributionScope&& value) { m_grantDistributionScope = std::move(value); } + inline AcceptDataGrantResult& WithGrantDistributionScope(const GrantDistributionScope& value) { SetGrantDistributionScope(value); return *this;} + inline AcceptDataGrantResult& WithGrantDistributionScope(GrantDistributionScope&& value) { SetGrantDistributionScope(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

The ID of the data set associated to the data grant.

+ */ + inline const Aws::String& GetDataSetId() const{ return m_dataSetId; } + inline void SetDataSetId(const Aws::String& value) { m_dataSetId = value; } + inline void SetDataSetId(Aws::String&& value) { m_dataSetId = std::move(value); } + inline void SetDataSetId(const char* value) { m_dataSetId.assign(value); } + inline AcceptDataGrantResult& WithDataSetId(const Aws::String& value) { SetDataSetId(value); return *this;} + inline AcceptDataGrantResult& WithDataSetId(Aws::String&& value) { SetDataSetId(std::move(value)); return *this;} + inline AcceptDataGrantResult& WithDataSetId(const char* value) { SetDataSetId(value); return *this;} + ///@} + + ///@{ + /** + *

The ID of the data grant.

+ */ + inline const Aws::String& GetId() const{ return m_id; } + inline void SetId(const Aws::String& value) { m_id = value; } + inline void SetId(Aws::String&& value) { m_id = std::move(value); } + inline void SetId(const char* value) { m_id.assign(value); } + inline AcceptDataGrantResult& WithId(const Aws::String& value) { SetId(value); return *this;} + inline AcceptDataGrantResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} + inline AcceptDataGrantResult& WithId(const char* value) { SetId(value); return *this;} + ///@} + + ///@{ + /** + *

The Amazon Resource Name (ARN) of the accepted data grant.

+ */ + inline const Aws::String& GetArn() const{ return m_arn; } + inline void SetArn(const Aws::String& value) { m_arn = value; } + inline void SetArn(Aws::String&& value) { m_arn = std::move(value); } + inline void SetArn(const char* value) { m_arn.assign(value); } + inline AcceptDataGrantResult& WithArn(const Aws::String& value) { SetArn(value); return *this;} + inline AcceptDataGrantResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} + inline AcceptDataGrantResult& WithArn(const char* value) { SetArn(value); return *this;} + ///@} + + ///@{ + /** + *

The timestamp of when the data grant was created.

+ */ + inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; } + inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAt = value; } + inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAt = std::move(value); } + inline AcceptDataGrantResult& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;} + inline AcceptDataGrantResult& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

The timestamp of when the data grant was last updated.

+ */ + inline const Aws::Utils::DateTime& GetUpdatedAt() const{ return m_updatedAt; } + inline void SetUpdatedAt(const Aws::Utils::DateTime& value) { m_updatedAt = value; } + inline void SetUpdatedAt(Aws::Utils::DateTime&& value) { m_updatedAt = std::move(value); } + inline AcceptDataGrantResult& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;} + inline AcceptDataGrantResult& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;} + ///@} + + ///@{ + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + inline AcceptDataGrantResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + inline AcceptDataGrantResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + inline AcceptDataGrantResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + ///@} + private: + + Aws::String m_name; + + Aws::String m_senderPrincipal; + + Aws::String m_receiverPrincipal; + + Aws::String m_description; + + DataGrantAcceptanceState m_acceptanceState; + + Aws::Utils::DateTime m_acceptedAt; + + Aws::Utils::DateTime m_endsAt; + + GrantDistributionScope m_grantDistributionScope; + + Aws::String m_dataSetId; + + Aws::String m_id; + + Aws::String m_arn; + + Aws::Utils::DateTime m_createdAt; + + Aws::Utils::DateTime m_updatedAt; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace DataExchange +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-dataexchange/include/aws/dataexchange/model/AcceptanceStateFilterValue.h b/generated/src/aws-cpp-sdk-dataexchange/include/aws/dataexchange/model/AcceptanceStateFilterValue.h new file mode 100644 index 00000000000..88b6677e6b8 --- /dev/null +++ b/generated/src/aws-cpp-sdk-dataexchange/include/aws/dataexchange/model/AcceptanceStateFilterValue.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 DataExchange +{ +namespace Model +{ + enum class AcceptanceStateFilterValue + { + NOT_SET, + PENDING_RECEIVER_ACCEPTANCE, + ACCEPTED + }; + +namespace AcceptanceStateFilterValueMapper +{ +AWS_DATAEXCHANGE_API AcceptanceStateFilterValue GetAcceptanceStateFilterValueForName(const Aws::String& name); + +AWS_DATAEXCHANGE_API Aws::String GetNameForAcceptanceStateFilterValue(AcceptanceStateFilterValue value); +} // namespace AcceptanceStateFilterValueMapper +} // namespace Model +} // namespace DataExchange +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-dataexchange/include/aws/dataexchange/model/CreateDataGrantRequest.h b/generated/src/aws-cpp-sdk-dataexchange/include/aws/dataexchange/model/CreateDataGrantRequest.h new file mode 100644 index 00000000000..74e1fa94b0d --- /dev/null +++ b/generated/src/aws-cpp-sdk-dataexchange/include/aws/dataexchange/model/CreateDataGrantRequest.h @@ -0,0 +1,162 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace DataExchange +{ +namespace Model +{ + + /** + */ + class CreateDataGrantRequest : public DataExchangeRequest + { + public: + AWS_DATAEXCHANGE_API CreateDataGrantRequest(); + + // 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 "CreateDataGrant"; } + + AWS_DATAEXCHANGE_API Aws::String SerializePayload() const override; + + + ///@{ + /** + *

The name of the data grant.

+ */ + inline const Aws::String& GetName() const{ return m_name; } + inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } + inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } + inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } + inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } + inline CreateDataGrantRequest& WithName(const Aws::String& value) { SetName(value); return *this;} + inline CreateDataGrantRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} + inline CreateDataGrantRequest& WithName(const char* value) { SetName(value); return *this;} + ///@} + + ///@{ + /** + *

The distribution scope of the data grant.

+ */ + inline const GrantDistributionScope& GetGrantDistributionScope() const{ return m_grantDistributionScope; } + inline bool GrantDistributionScopeHasBeenSet() const { return m_grantDistributionScopeHasBeenSet; } + inline void SetGrantDistributionScope(const GrantDistributionScope& value) { m_grantDistributionScopeHasBeenSet = true; m_grantDistributionScope = value; } + inline void SetGrantDistributionScope(GrantDistributionScope&& value) { m_grantDistributionScopeHasBeenSet = true; m_grantDistributionScope = std::move(value); } + inline CreateDataGrantRequest& WithGrantDistributionScope(const GrantDistributionScope& value) { SetGrantDistributionScope(value); return *this;} + inline CreateDataGrantRequest& WithGrantDistributionScope(GrantDistributionScope&& value) { SetGrantDistributionScope(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

The Amazon Web Services account ID of the data grant receiver.

+ */ + inline const Aws::String& GetReceiverPrincipal() const{ return m_receiverPrincipal; } + inline bool ReceiverPrincipalHasBeenSet() const { return m_receiverPrincipalHasBeenSet; } + inline void SetReceiverPrincipal(const Aws::String& value) { m_receiverPrincipalHasBeenSet = true; m_receiverPrincipal = value; } + inline void SetReceiverPrincipal(Aws::String&& value) { m_receiverPrincipalHasBeenSet = true; m_receiverPrincipal = std::move(value); } + inline void SetReceiverPrincipal(const char* value) { m_receiverPrincipalHasBeenSet = true; m_receiverPrincipal.assign(value); } + inline CreateDataGrantRequest& WithReceiverPrincipal(const Aws::String& value) { SetReceiverPrincipal(value); return *this;} + inline CreateDataGrantRequest& WithReceiverPrincipal(Aws::String&& value) { SetReceiverPrincipal(std::move(value)); return *this;} + inline CreateDataGrantRequest& WithReceiverPrincipal(const char* value) { SetReceiverPrincipal(value); return *this;} + ///@} + + ///@{ + /** + *

The ID of the data set used to create the data grant.

+ */ + inline const Aws::String& GetSourceDataSetId() const{ return m_sourceDataSetId; } + inline bool SourceDataSetIdHasBeenSet() const { return m_sourceDataSetIdHasBeenSet; } + inline void SetSourceDataSetId(const Aws::String& value) { m_sourceDataSetIdHasBeenSet = true; m_sourceDataSetId = value; } + inline void SetSourceDataSetId(Aws::String&& value) { m_sourceDataSetIdHasBeenSet = true; m_sourceDataSetId = std::move(value); } + inline void SetSourceDataSetId(const char* value) { m_sourceDataSetIdHasBeenSet = true; m_sourceDataSetId.assign(value); } + inline CreateDataGrantRequest& WithSourceDataSetId(const Aws::String& value) { SetSourceDataSetId(value); return *this;} + inline CreateDataGrantRequest& WithSourceDataSetId(Aws::String&& value) { SetSourceDataSetId(std::move(value)); return *this;} + inline CreateDataGrantRequest& WithSourceDataSetId(const char* value) { SetSourceDataSetId(value); return *this;} + ///@} + + ///@{ + /** + *

The timestamp of when access to the associated data set ends.

+ */ + inline const Aws::Utils::DateTime& GetEndsAt() const{ return m_endsAt; } + inline bool EndsAtHasBeenSet() const { return m_endsAtHasBeenSet; } + inline void SetEndsAt(const Aws::Utils::DateTime& value) { m_endsAtHasBeenSet = true; m_endsAt = value; } + inline void SetEndsAt(Aws::Utils::DateTime&& value) { m_endsAtHasBeenSet = true; m_endsAt = std::move(value); } + inline CreateDataGrantRequest& WithEndsAt(const Aws::Utils::DateTime& value) { SetEndsAt(value); return *this;} + inline CreateDataGrantRequest& WithEndsAt(Aws::Utils::DateTime&& value) { SetEndsAt(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

The description of the data grant.

+ */ + inline const Aws::String& GetDescription() const{ return m_description; } + inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } + inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } + inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } + inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } + inline CreateDataGrantRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} + inline CreateDataGrantRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} + inline CreateDataGrantRequest& WithDescription(const char* value) { SetDescription(value); return *this;} + ///@} + + ///@{ + /** + *

The tags to add to the data grant. A tag is a key-value pair.

+ */ + inline const Aws::Map& GetTags() const{ return m_tags; } + inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } + inline void SetTags(const Aws::Map& value) { m_tagsHasBeenSet = true; m_tags = value; } + inline void SetTags(Aws::Map&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } + inline CreateDataGrantRequest& WithTags(const Aws::Map& value) { SetTags(value); return *this;} + inline CreateDataGrantRequest& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} + inline CreateDataGrantRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } + inline CreateDataGrantRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } + inline CreateDataGrantRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } + inline CreateDataGrantRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } + inline CreateDataGrantRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } + inline CreateDataGrantRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } + inline CreateDataGrantRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } + ///@} + private: + + Aws::String m_name; + bool m_nameHasBeenSet = false; + + GrantDistributionScope m_grantDistributionScope; + bool m_grantDistributionScopeHasBeenSet = false; + + Aws::String m_receiverPrincipal; + bool m_receiverPrincipalHasBeenSet = false; + + Aws::String m_sourceDataSetId; + bool m_sourceDataSetIdHasBeenSet = false; + + Aws::Utils::DateTime m_endsAt; + bool m_endsAtHasBeenSet = false; + + Aws::String m_description; + bool m_descriptionHasBeenSet = false; + + Aws::Map m_tags; + bool m_tagsHasBeenSet = false; + }; + +} // namespace Model +} // namespace DataExchange +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-dataexchange/include/aws/dataexchange/model/CreateDataGrantResult.h b/generated/src/aws-cpp-sdk-dataexchange/include/aws/dataexchange/model/CreateDataGrantResult.h new file mode 100644 index 00000000000..d52680a4ecc --- /dev/null +++ b/generated/src/aws-cpp-sdk-dataexchange/include/aws/dataexchange/model/CreateDataGrantResult.h @@ -0,0 +1,274 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace DataExchange +{ +namespace Model +{ + class CreateDataGrantResult + { + public: + AWS_DATAEXCHANGE_API CreateDataGrantResult(); + AWS_DATAEXCHANGE_API CreateDataGrantResult(const Aws::AmazonWebServiceResult& result); + AWS_DATAEXCHANGE_API CreateDataGrantResult& operator=(const Aws::AmazonWebServiceResult& result); + + + ///@{ + /** + *

The name of the data grant.

+ */ + inline const Aws::String& GetName() const{ return m_name; } + inline void SetName(const Aws::String& value) { m_name = value; } + inline void SetName(Aws::String&& value) { m_name = std::move(value); } + inline void SetName(const char* value) { m_name.assign(value); } + inline CreateDataGrantResult& WithName(const Aws::String& value) { SetName(value); return *this;} + inline CreateDataGrantResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} + inline CreateDataGrantResult& WithName(const char* value) { SetName(value); return *this;} + ///@} + + ///@{ + /** + *

The Amazon Web Services account ID of the data grant sender.

+ */ + inline const Aws::String& GetSenderPrincipal() const{ return m_senderPrincipal; } + inline void SetSenderPrincipal(const Aws::String& value) { m_senderPrincipal = value; } + inline void SetSenderPrincipal(Aws::String&& value) { m_senderPrincipal = std::move(value); } + inline void SetSenderPrincipal(const char* value) { m_senderPrincipal.assign(value); } + inline CreateDataGrantResult& WithSenderPrincipal(const Aws::String& value) { SetSenderPrincipal(value); return *this;} + inline CreateDataGrantResult& WithSenderPrincipal(Aws::String&& value) { SetSenderPrincipal(std::move(value)); return *this;} + inline CreateDataGrantResult& WithSenderPrincipal(const char* value) { SetSenderPrincipal(value); return *this;} + ///@} + + ///@{ + /** + *

The Amazon Web Services account ID of the data grant receiver.

+ */ + inline const Aws::String& GetReceiverPrincipal() const{ return m_receiverPrincipal; } + inline void SetReceiverPrincipal(const Aws::String& value) { m_receiverPrincipal = value; } + inline void SetReceiverPrincipal(Aws::String&& value) { m_receiverPrincipal = std::move(value); } + inline void SetReceiverPrincipal(const char* value) { m_receiverPrincipal.assign(value); } + inline CreateDataGrantResult& WithReceiverPrincipal(const Aws::String& value) { SetReceiverPrincipal(value); return *this;} + inline CreateDataGrantResult& WithReceiverPrincipal(Aws::String&& value) { SetReceiverPrincipal(std::move(value)); return *this;} + inline CreateDataGrantResult& WithReceiverPrincipal(const char* value) { SetReceiverPrincipal(value); return *this;} + ///@} + + ///@{ + /** + *

The description of the data grant.

+ */ + inline const Aws::String& GetDescription() const{ return m_description; } + inline void SetDescription(const Aws::String& value) { m_description = value; } + inline void SetDescription(Aws::String&& value) { m_description = std::move(value); } + inline void SetDescription(const char* value) { m_description.assign(value); } + inline CreateDataGrantResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} + inline CreateDataGrantResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} + inline CreateDataGrantResult& WithDescription(const char* value) { SetDescription(value); return *this;} + ///@} + + ///@{ + /** + *

The acceptance state of the data grant.

+ */ + inline const DataGrantAcceptanceState& GetAcceptanceState() const{ return m_acceptanceState; } + inline void SetAcceptanceState(const DataGrantAcceptanceState& value) { m_acceptanceState = value; } + inline void SetAcceptanceState(DataGrantAcceptanceState&& value) { m_acceptanceState = std::move(value); } + inline CreateDataGrantResult& WithAcceptanceState(const DataGrantAcceptanceState& value) { SetAcceptanceState(value); return *this;} + inline CreateDataGrantResult& WithAcceptanceState(DataGrantAcceptanceState&& value) { SetAcceptanceState(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

The timestamp of when the data grant was accepted.

+ */ + inline const Aws::Utils::DateTime& GetAcceptedAt() const{ return m_acceptedAt; } + inline void SetAcceptedAt(const Aws::Utils::DateTime& value) { m_acceptedAt = value; } + inline void SetAcceptedAt(Aws::Utils::DateTime&& value) { m_acceptedAt = std::move(value); } + inline CreateDataGrantResult& WithAcceptedAt(const Aws::Utils::DateTime& value) { SetAcceptedAt(value); return *this;} + inline CreateDataGrantResult& WithAcceptedAt(Aws::Utils::DateTime&& value) { SetAcceptedAt(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

The timestamp of when access to the associated data set ends.

+ */ + inline const Aws::Utils::DateTime& GetEndsAt() const{ return m_endsAt; } + inline void SetEndsAt(const Aws::Utils::DateTime& value) { m_endsAt = value; } + inline void SetEndsAt(Aws::Utils::DateTime&& value) { m_endsAt = std::move(value); } + inline CreateDataGrantResult& WithEndsAt(const Aws::Utils::DateTime& value) { SetEndsAt(value); return *this;} + inline CreateDataGrantResult& WithEndsAt(Aws::Utils::DateTime&& value) { SetEndsAt(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

The distribution scope for the data grant.

+ */ + inline const GrantDistributionScope& GetGrantDistributionScope() const{ return m_grantDistributionScope; } + inline void SetGrantDistributionScope(const GrantDistributionScope& value) { m_grantDistributionScope = value; } + inline void SetGrantDistributionScope(GrantDistributionScope&& value) { m_grantDistributionScope = std::move(value); } + inline CreateDataGrantResult& WithGrantDistributionScope(const GrantDistributionScope& value) { SetGrantDistributionScope(value); return *this;} + inline CreateDataGrantResult& WithGrantDistributionScope(GrantDistributionScope&& value) { SetGrantDistributionScope(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

The ID of the data set associated to the data grant.

+ */ + inline const Aws::String& GetDataSetId() const{ return m_dataSetId; } + inline void SetDataSetId(const Aws::String& value) { m_dataSetId = value; } + inline void SetDataSetId(Aws::String&& value) { m_dataSetId = std::move(value); } + inline void SetDataSetId(const char* value) { m_dataSetId.assign(value); } + inline CreateDataGrantResult& WithDataSetId(const Aws::String& value) { SetDataSetId(value); return *this;} + inline CreateDataGrantResult& WithDataSetId(Aws::String&& value) { SetDataSetId(std::move(value)); return *this;} + inline CreateDataGrantResult& WithDataSetId(const char* value) { SetDataSetId(value); return *this;} + ///@} + + ///@{ + /** + *

The ID of the data set used to create the data grant.

+ */ + inline const Aws::String& GetSourceDataSetId() const{ return m_sourceDataSetId; } + inline void SetSourceDataSetId(const Aws::String& value) { m_sourceDataSetId = value; } + inline void SetSourceDataSetId(Aws::String&& value) { m_sourceDataSetId = std::move(value); } + inline void SetSourceDataSetId(const char* value) { m_sourceDataSetId.assign(value); } + inline CreateDataGrantResult& WithSourceDataSetId(const Aws::String& value) { SetSourceDataSetId(value); return *this;} + inline CreateDataGrantResult& WithSourceDataSetId(Aws::String&& value) { SetSourceDataSetId(std::move(value)); return *this;} + inline CreateDataGrantResult& WithSourceDataSetId(const char* value) { SetSourceDataSetId(value); return *this;} + ///@} + + ///@{ + /** + *

The ID of the data grant.

+ */ + inline const Aws::String& GetId() const{ return m_id; } + inline void SetId(const Aws::String& value) { m_id = value; } + inline void SetId(Aws::String&& value) { m_id = std::move(value); } + inline void SetId(const char* value) { m_id.assign(value); } + inline CreateDataGrantResult& WithId(const Aws::String& value) { SetId(value); return *this;} + inline CreateDataGrantResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} + inline CreateDataGrantResult& WithId(const char* value) { SetId(value); return *this;} + ///@} + + ///@{ + /** + *

The Amazon Resource Name (ARN) of the data grant.

+ */ + inline const Aws::String& GetArn() const{ return m_arn; } + inline void SetArn(const Aws::String& value) { m_arn = value; } + inline void SetArn(Aws::String&& value) { m_arn = std::move(value); } + inline void SetArn(const char* value) { m_arn.assign(value); } + inline CreateDataGrantResult& WithArn(const Aws::String& value) { SetArn(value); return *this;} + inline CreateDataGrantResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} + inline CreateDataGrantResult& WithArn(const char* value) { SetArn(value); return *this;} + ///@} + + ///@{ + /** + *

The timestamp of when the data grant was created.

+ */ + inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; } + inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAt = value; } + inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAt = std::move(value); } + inline CreateDataGrantResult& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;} + inline CreateDataGrantResult& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

The timestamp of when the data grant was last updated.

+ */ + inline const Aws::Utils::DateTime& GetUpdatedAt() const{ return m_updatedAt; } + inline void SetUpdatedAt(const Aws::Utils::DateTime& value) { m_updatedAt = value; } + inline void SetUpdatedAt(Aws::Utils::DateTime&& value) { m_updatedAt = std::move(value); } + inline CreateDataGrantResult& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;} + inline CreateDataGrantResult& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

The tags associated to the data grant. A tag is a key-value pair.

+ */ + inline const Aws::Map& GetTags() const{ return m_tags; } + inline void SetTags(const Aws::Map& value) { m_tags = value; } + inline void SetTags(Aws::Map&& value) { m_tags = std::move(value); } + inline CreateDataGrantResult& WithTags(const Aws::Map& value) { SetTags(value); return *this;} + inline CreateDataGrantResult& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} + inline CreateDataGrantResult& AddTags(const Aws::String& key, const Aws::String& value) { m_tags.emplace(key, value); return *this; } + inline CreateDataGrantResult& AddTags(Aws::String&& key, const Aws::String& value) { m_tags.emplace(std::move(key), value); return *this; } + inline CreateDataGrantResult& AddTags(const Aws::String& key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; } + inline CreateDataGrantResult& AddTags(Aws::String&& key, Aws::String&& value) { m_tags.emplace(std::move(key), std::move(value)); return *this; } + inline CreateDataGrantResult& AddTags(const char* key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; } + inline CreateDataGrantResult& AddTags(Aws::String&& key, const char* value) { m_tags.emplace(std::move(key), value); return *this; } + inline CreateDataGrantResult& AddTags(const char* key, const char* value) { m_tags.emplace(key, 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 CreateDataGrantResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + inline CreateDataGrantResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + inline CreateDataGrantResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + ///@} + private: + + Aws::String m_name; + + Aws::String m_senderPrincipal; + + Aws::String m_receiverPrincipal; + + Aws::String m_description; + + DataGrantAcceptanceState m_acceptanceState; + + Aws::Utils::DateTime m_acceptedAt; + + Aws::Utils::DateTime m_endsAt; + + GrantDistributionScope m_grantDistributionScope; + + Aws::String m_dataSetId; + + Aws::String m_sourceDataSetId; + + Aws::String m_id; + + Aws::String m_arn; + + Aws::Utils::DateTime m_createdAt; + + Aws::Utils::DateTime m_updatedAt; + + Aws::Map m_tags; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace DataExchange +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-dataexchange/include/aws/dataexchange/model/DataGrantAcceptanceState.h b/generated/src/aws-cpp-sdk-dataexchange/include/aws/dataexchange/model/DataGrantAcceptanceState.h new file mode 100644 index 00000000000..bbebb8af186 --- /dev/null +++ b/generated/src/aws-cpp-sdk-dataexchange/include/aws/dataexchange/model/DataGrantAcceptanceState.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 DataExchange +{ +namespace Model +{ + enum class DataGrantAcceptanceState + { + NOT_SET, + PENDING_RECEIVER_ACCEPTANCE, + ACCEPTED + }; + +namespace DataGrantAcceptanceStateMapper +{ +AWS_DATAEXCHANGE_API DataGrantAcceptanceState GetDataGrantAcceptanceStateForName(const Aws::String& name); + +AWS_DATAEXCHANGE_API Aws::String GetNameForDataGrantAcceptanceState(DataGrantAcceptanceState value); +} // namespace DataGrantAcceptanceStateMapper +} // namespace Model +} // namespace DataExchange +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-dataexchange/include/aws/dataexchange/model/DataGrantSummaryEntry.h b/generated/src/aws-cpp-sdk-dataexchange/include/aws/dataexchange/model/DataGrantSummaryEntry.h new file mode 100644 index 00000000000..7a5bd21e204 --- /dev/null +++ b/generated/src/aws-cpp-sdk-dataexchange/include/aws/dataexchange/model/DataGrantSummaryEntry.h @@ -0,0 +1,240 @@ +/** + * 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 DataExchange +{ +namespace Model +{ + + /** + *

Information about a data grant.

See Also:

AWS + * API Reference

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

The name of the data grant.

+ */ + inline const Aws::String& GetName() const{ return m_name; } + inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } + inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } + inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } + inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } + inline DataGrantSummaryEntry& WithName(const Aws::String& value) { SetName(value); return *this;} + inline DataGrantSummaryEntry& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} + inline DataGrantSummaryEntry& WithName(const char* value) { SetName(value); return *this;} + ///@} + + ///@{ + /** + *

The Amazon Web Services account ID of the data grant sender.

+ */ + inline const Aws::String& GetSenderPrincipal() const{ return m_senderPrincipal; } + inline bool SenderPrincipalHasBeenSet() const { return m_senderPrincipalHasBeenSet; } + inline void SetSenderPrincipal(const Aws::String& value) { m_senderPrincipalHasBeenSet = true; m_senderPrincipal = value; } + inline void SetSenderPrincipal(Aws::String&& value) { m_senderPrincipalHasBeenSet = true; m_senderPrincipal = std::move(value); } + inline void SetSenderPrincipal(const char* value) { m_senderPrincipalHasBeenSet = true; m_senderPrincipal.assign(value); } + inline DataGrantSummaryEntry& WithSenderPrincipal(const Aws::String& value) { SetSenderPrincipal(value); return *this;} + inline DataGrantSummaryEntry& WithSenderPrincipal(Aws::String&& value) { SetSenderPrincipal(std::move(value)); return *this;} + inline DataGrantSummaryEntry& WithSenderPrincipal(const char* value) { SetSenderPrincipal(value); return *this;} + ///@} + + ///@{ + /** + *

The Amazon Web Services account ID of the data grant receiver.

+ */ + inline const Aws::String& GetReceiverPrincipal() const{ return m_receiverPrincipal; } + inline bool ReceiverPrincipalHasBeenSet() const { return m_receiverPrincipalHasBeenSet; } + inline void SetReceiverPrincipal(const Aws::String& value) { m_receiverPrincipalHasBeenSet = true; m_receiverPrincipal = value; } + inline void SetReceiverPrincipal(Aws::String&& value) { m_receiverPrincipalHasBeenSet = true; m_receiverPrincipal = std::move(value); } + inline void SetReceiverPrincipal(const char* value) { m_receiverPrincipalHasBeenSet = true; m_receiverPrincipal.assign(value); } + inline DataGrantSummaryEntry& WithReceiverPrincipal(const Aws::String& value) { SetReceiverPrincipal(value); return *this;} + inline DataGrantSummaryEntry& WithReceiverPrincipal(Aws::String&& value) { SetReceiverPrincipal(std::move(value)); return *this;} + inline DataGrantSummaryEntry& WithReceiverPrincipal(const char* value) { SetReceiverPrincipal(value); return *this;} + ///@} + + ///@{ + /** + *

The acceptance state of the data grant.

+ */ + inline const DataGrantAcceptanceState& GetAcceptanceState() const{ return m_acceptanceState; } + inline bool AcceptanceStateHasBeenSet() const { return m_acceptanceStateHasBeenSet; } + inline void SetAcceptanceState(const DataGrantAcceptanceState& value) { m_acceptanceStateHasBeenSet = true; m_acceptanceState = value; } + inline void SetAcceptanceState(DataGrantAcceptanceState&& value) { m_acceptanceStateHasBeenSet = true; m_acceptanceState = std::move(value); } + inline DataGrantSummaryEntry& WithAcceptanceState(const DataGrantAcceptanceState& value) { SetAcceptanceState(value); return *this;} + inline DataGrantSummaryEntry& WithAcceptanceState(DataGrantAcceptanceState&& value) { SetAcceptanceState(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

The timestamp of when the data grant was accepted.

+ */ + inline const Aws::Utils::DateTime& GetAcceptedAt() const{ return m_acceptedAt; } + inline bool AcceptedAtHasBeenSet() const { return m_acceptedAtHasBeenSet; } + inline void SetAcceptedAt(const Aws::Utils::DateTime& value) { m_acceptedAtHasBeenSet = true; m_acceptedAt = value; } + inline void SetAcceptedAt(Aws::Utils::DateTime&& value) { m_acceptedAtHasBeenSet = true; m_acceptedAt = std::move(value); } + inline DataGrantSummaryEntry& WithAcceptedAt(const Aws::Utils::DateTime& value) { SetAcceptedAt(value); return *this;} + inline DataGrantSummaryEntry& WithAcceptedAt(Aws::Utils::DateTime&& value) { SetAcceptedAt(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

The timestamp of when access to the associated data set ends.

+ */ + inline const Aws::Utils::DateTime& GetEndsAt() const{ return m_endsAt; } + inline bool EndsAtHasBeenSet() const { return m_endsAtHasBeenSet; } + inline void SetEndsAt(const Aws::Utils::DateTime& value) { m_endsAtHasBeenSet = true; m_endsAt = value; } + inline void SetEndsAt(Aws::Utils::DateTime&& value) { m_endsAtHasBeenSet = true; m_endsAt = std::move(value); } + inline DataGrantSummaryEntry& WithEndsAt(const Aws::Utils::DateTime& value) { SetEndsAt(value); return *this;} + inline DataGrantSummaryEntry& WithEndsAt(Aws::Utils::DateTime&& value) { SetEndsAt(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

The ID of the data set associated to the data grant.

+ */ + inline const Aws::String& GetDataSetId() const{ return m_dataSetId; } + inline bool DataSetIdHasBeenSet() const { return m_dataSetIdHasBeenSet; } + inline void SetDataSetId(const Aws::String& value) { m_dataSetIdHasBeenSet = true; m_dataSetId = value; } + inline void SetDataSetId(Aws::String&& value) { m_dataSetIdHasBeenSet = true; m_dataSetId = std::move(value); } + inline void SetDataSetId(const char* value) { m_dataSetIdHasBeenSet = true; m_dataSetId.assign(value); } + inline DataGrantSummaryEntry& WithDataSetId(const Aws::String& value) { SetDataSetId(value); return *this;} + inline DataGrantSummaryEntry& WithDataSetId(Aws::String&& value) { SetDataSetId(std::move(value)); return *this;} + inline DataGrantSummaryEntry& WithDataSetId(const char* value) { SetDataSetId(value); return *this;} + ///@} + + ///@{ + /** + *

The ID of the data set used to create the data grant.

+ */ + inline const Aws::String& GetSourceDataSetId() const{ return m_sourceDataSetId; } + inline bool SourceDataSetIdHasBeenSet() const { return m_sourceDataSetIdHasBeenSet; } + inline void SetSourceDataSetId(const Aws::String& value) { m_sourceDataSetIdHasBeenSet = true; m_sourceDataSetId = value; } + inline void SetSourceDataSetId(Aws::String&& value) { m_sourceDataSetIdHasBeenSet = true; m_sourceDataSetId = std::move(value); } + inline void SetSourceDataSetId(const char* value) { m_sourceDataSetIdHasBeenSet = true; m_sourceDataSetId.assign(value); } + inline DataGrantSummaryEntry& WithSourceDataSetId(const Aws::String& value) { SetSourceDataSetId(value); return *this;} + inline DataGrantSummaryEntry& WithSourceDataSetId(Aws::String&& value) { SetSourceDataSetId(std::move(value)); return *this;} + inline DataGrantSummaryEntry& WithSourceDataSetId(const char* value) { SetSourceDataSetId(value); return *this;} + ///@} + + ///@{ + /** + *

The ID of the data grant.

+ */ + inline const Aws::String& GetId() const{ return m_id; } + inline bool IdHasBeenSet() const { return m_idHasBeenSet; } + inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } + inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } + inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } + inline DataGrantSummaryEntry& WithId(const Aws::String& value) { SetId(value); return *this;} + inline DataGrantSummaryEntry& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} + inline DataGrantSummaryEntry& WithId(const char* value) { SetId(value); return *this;} + ///@} + + ///@{ + /** + *

The Amazon Resource Name (ARN) of the data grant.

+ */ + inline const Aws::String& GetArn() const{ return m_arn; } + inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } + inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } + inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } + inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } + inline DataGrantSummaryEntry& WithArn(const Aws::String& value) { SetArn(value); return *this;} + inline DataGrantSummaryEntry& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} + inline DataGrantSummaryEntry& WithArn(const char* value) { SetArn(value); return *this;} + ///@} + + ///@{ + /** + *

The timestamp of when the data grant was created.

+ */ + inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; } + inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; } + inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; } + inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); } + inline DataGrantSummaryEntry& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;} + inline DataGrantSummaryEntry& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

The timestamp of when the data grant was last updated.

+ */ + inline const Aws::Utils::DateTime& GetUpdatedAt() const{ return m_updatedAt; } + inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; } + inline void SetUpdatedAt(const Aws::Utils::DateTime& value) { m_updatedAtHasBeenSet = true; m_updatedAt = value; } + inline void SetUpdatedAt(Aws::Utils::DateTime&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::move(value); } + inline DataGrantSummaryEntry& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;} + inline DataGrantSummaryEntry& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;} + ///@} + private: + + Aws::String m_name; + bool m_nameHasBeenSet = false; + + Aws::String m_senderPrincipal; + bool m_senderPrincipalHasBeenSet = false; + + Aws::String m_receiverPrincipal; + bool m_receiverPrincipalHasBeenSet = false; + + DataGrantAcceptanceState m_acceptanceState; + bool m_acceptanceStateHasBeenSet = false; + + Aws::Utils::DateTime m_acceptedAt; + bool m_acceptedAtHasBeenSet = false; + + Aws::Utils::DateTime m_endsAt; + bool m_endsAtHasBeenSet = false; + + Aws::String m_dataSetId; + bool m_dataSetIdHasBeenSet = false; + + Aws::String m_sourceDataSetId; + bool m_sourceDataSetIdHasBeenSet = false; + + Aws::String m_id; + bool m_idHasBeenSet = false; + + Aws::String m_arn; + bool m_arnHasBeenSet = false; + + Aws::Utils::DateTime m_createdAt; + bool m_createdAtHasBeenSet = false; + + Aws::Utils::DateTime m_updatedAt; + bool m_updatedAtHasBeenSet = false; + }; + +} // namespace Model +} // namespace DataExchange +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-dataexchange/include/aws/dataexchange/model/DeleteDataGrantRequest.h b/generated/src/aws-cpp-sdk-dataexchange/include/aws/dataexchange/model/DeleteDataGrantRequest.h new file mode 100644 index 00000000000..d564d2b2a1c --- /dev/null +++ b/generated/src/aws-cpp-sdk-dataexchange/include/aws/dataexchange/model/DeleteDataGrantRequest.h @@ -0,0 +1,56 @@ +/** + * 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 DataExchange +{ +namespace Model +{ + + /** + */ + class DeleteDataGrantRequest : public DataExchangeRequest + { + public: + AWS_DATAEXCHANGE_API DeleteDataGrantRequest(); + + // 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 "DeleteDataGrant"; } + + AWS_DATAEXCHANGE_API Aws::String SerializePayload() const override; + + + ///@{ + /** + *

The ID of the data grant to delete.

+ */ + inline const Aws::String& GetDataGrantId() const{ return m_dataGrantId; } + inline bool DataGrantIdHasBeenSet() const { return m_dataGrantIdHasBeenSet; } + inline void SetDataGrantId(const Aws::String& value) { m_dataGrantIdHasBeenSet = true; m_dataGrantId = value; } + inline void SetDataGrantId(Aws::String&& value) { m_dataGrantIdHasBeenSet = true; m_dataGrantId = std::move(value); } + inline void SetDataGrantId(const char* value) { m_dataGrantIdHasBeenSet = true; m_dataGrantId.assign(value); } + inline DeleteDataGrantRequest& WithDataGrantId(const Aws::String& value) { SetDataGrantId(value); return *this;} + inline DeleteDataGrantRequest& WithDataGrantId(Aws::String&& value) { SetDataGrantId(std::move(value)); return *this;} + inline DeleteDataGrantRequest& WithDataGrantId(const char* value) { SetDataGrantId(value); return *this;} + ///@} + private: + + Aws::String m_dataGrantId; + bool m_dataGrantIdHasBeenSet = false; + }; + +} // namespace Model +} // namespace DataExchange +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-dataexchange/include/aws/dataexchange/model/GetDataGrantRequest.h b/generated/src/aws-cpp-sdk-dataexchange/include/aws/dataexchange/model/GetDataGrantRequest.h new file mode 100644 index 00000000000..a61177da6f9 --- /dev/null +++ b/generated/src/aws-cpp-sdk-dataexchange/include/aws/dataexchange/model/GetDataGrantRequest.h @@ -0,0 +1,56 @@ +/** + * 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 DataExchange +{ +namespace Model +{ + + /** + */ + class GetDataGrantRequest : public DataExchangeRequest + { + public: + AWS_DATAEXCHANGE_API GetDataGrantRequest(); + + // 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 "GetDataGrant"; } + + AWS_DATAEXCHANGE_API Aws::String SerializePayload() const override; + + + ///@{ + /** + *

The ID of the data grant.

+ */ + inline const Aws::String& GetDataGrantId() const{ return m_dataGrantId; } + inline bool DataGrantIdHasBeenSet() const { return m_dataGrantIdHasBeenSet; } + inline void SetDataGrantId(const Aws::String& value) { m_dataGrantIdHasBeenSet = true; m_dataGrantId = value; } + inline void SetDataGrantId(Aws::String&& value) { m_dataGrantIdHasBeenSet = true; m_dataGrantId = std::move(value); } + inline void SetDataGrantId(const char* value) { m_dataGrantIdHasBeenSet = true; m_dataGrantId.assign(value); } + inline GetDataGrantRequest& WithDataGrantId(const Aws::String& value) { SetDataGrantId(value); return *this;} + inline GetDataGrantRequest& WithDataGrantId(Aws::String&& value) { SetDataGrantId(std::move(value)); return *this;} + inline GetDataGrantRequest& WithDataGrantId(const char* value) { SetDataGrantId(value); return *this;} + ///@} + private: + + Aws::String m_dataGrantId; + bool m_dataGrantIdHasBeenSet = false; + }; + +} // namespace Model +} // namespace DataExchange +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-dataexchange/include/aws/dataexchange/model/GetDataGrantResult.h b/generated/src/aws-cpp-sdk-dataexchange/include/aws/dataexchange/model/GetDataGrantResult.h new file mode 100644 index 00000000000..f9cf20e9677 --- /dev/null +++ b/generated/src/aws-cpp-sdk-dataexchange/include/aws/dataexchange/model/GetDataGrantResult.h @@ -0,0 +1,274 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace DataExchange +{ +namespace Model +{ + class GetDataGrantResult + { + public: + AWS_DATAEXCHANGE_API GetDataGrantResult(); + AWS_DATAEXCHANGE_API GetDataGrantResult(const Aws::AmazonWebServiceResult& result); + AWS_DATAEXCHANGE_API GetDataGrantResult& operator=(const Aws::AmazonWebServiceResult& result); + + + ///@{ + /** + *

The name of the data grant.

+ */ + inline const Aws::String& GetName() const{ return m_name; } + inline void SetName(const Aws::String& value) { m_name = value; } + inline void SetName(Aws::String&& value) { m_name = std::move(value); } + inline void SetName(const char* value) { m_name.assign(value); } + inline GetDataGrantResult& WithName(const Aws::String& value) { SetName(value); return *this;} + inline GetDataGrantResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} + inline GetDataGrantResult& WithName(const char* value) { SetName(value); return *this;} + ///@} + + ///@{ + /** + *

The Amazon Web Services account ID of the data grant sender.

+ */ + inline const Aws::String& GetSenderPrincipal() const{ return m_senderPrincipal; } + inline void SetSenderPrincipal(const Aws::String& value) { m_senderPrincipal = value; } + inline void SetSenderPrincipal(Aws::String&& value) { m_senderPrincipal = std::move(value); } + inline void SetSenderPrincipal(const char* value) { m_senderPrincipal.assign(value); } + inline GetDataGrantResult& WithSenderPrincipal(const Aws::String& value) { SetSenderPrincipal(value); return *this;} + inline GetDataGrantResult& WithSenderPrincipal(Aws::String&& value) { SetSenderPrincipal(std::move(value)); return *this;} + inline GetDataGrantResult& WithSenderPrincipal(const char* value) { SetSenderPrincipal(value); return *this;} + ///@} + + ///@{ + /** + *

The Amazon Web Services account ID of the data grant receiver.

+ */ + inline const Aws::String& GetReceiverPrincipal() const{ return m_receiverPrincipal; } + inline void SetReceiverPrincipal(const Aws::String& value) { m_receiverPrincipal = value; } + inline void SetReceiverPrincipal(Aws::String&& value) { m_receiverPrincipal = std::move(value); } + inline void SetReceiverPrincipal(const char* value) { m_receiverPrincipal.assign(value); } + inline GetDataGrantResult& WithReceiverPrincipal(const Aws::String& value) { SetReceiverPrincipal(value); return *this;} + inline GetDataGrantResult& WithReceiverPrincipal(Aws::String&& value) { SetReceiverPrincipal(std::move(value)); return *this;} + inline GetDataGrantResult& WithReceiverPrincipal(const char* value) { SetReceiverPrincipal(value); return *this;} + ///@} + + ///@{ + /** + *

The description of the data grant.

+ */ + inline const Aws::String& GetDescription() const{ return m_description; } + inline void SetDescription(const Aws::String& value) { m_description = value; } + inline void SetDescription(Aws::String&& value) { m_description = std::move(value); } + inline void SetDescription(const char* value) { m_description.assign(value); } + inline GetDataGrantResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} + inline GetDataGrantResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} + inline GetDataGrantResult& WithDescription(const char* value) { SetDescription(value); return *this;} + ///@} + + ///@{ + /** + *

The acceptance state of the data grant.

+ */ + inline const DataGrantAcceptanceState& GetAcceptanceState() const{ return m_acceptanceState; } + inline void SetAcceptanceState(const DataGrantAcceptanceState& value) { m_acceptanceState = value; } + inline void SetAcceptanceState(DataGrantAcceptanceState&& value) { m_acceptanceState = std::move(value); } + inline GetDataGrantResult& WithAcceptanceState(const DataGrantAcceptanceState& value) { SetAcceptanceState(value); return *this;} + inline GetDataGrantResult& WithAcceptanceState(DataGrantAcceptanceState&& value) { SetAcceptanceState(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

The timestamp of when the data grant was accepted.

+ */ + inline const Aws::Utils::DateTime& GetAcceptedAt() const{ return m_acceptedAt; } + inline void SetAcceptedAt(const Aws::Utils::DateTime& value) { m_acceptedAt = value; } + inline void SetAcceptedAt(Aws::Utils::DateTime&& value) { m_acceptedAt = std::move(value); } + inline GetDataGrantResult& WithAcceptedAt(const Aws::Utils::DateTime& value) { SetAcceptedAt(value); return *this;} + inline GetDataGrantResult& WithAcceptedAt(Aws::Utils::DateTime&& value) { SetAcceptedAt(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

The timestamp of when access to the associated data set ends.

+ */ + inline const Aws::Utils::DateTime& GetEndsAt() const{ return m_endsAt; } + inline void SetEndsAt(const Aws::Utils::DateTime& value) { m_endsAt = value; } + inline void SetEndsAt(Aws::Utils::DateTime&& value) { m_endsAt = std::move(value); } + inline GetDataGrantResult& WithEndsAt(const Aws::Utils::DateTime& value) { SetEndsAt(value); return *this;} + inline GetDataGrantResult& WithEndsAt(Aws::Utils::DateTime&& value) { SetEndsAt(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

The distribution scope for the data grant.

+ */ + inline const GrantDistributionScope& GetGrantDistributionScope() const{ return m_grantDistributionScope; } + inline void SetGrantDistributionScope(const GrantDistributionScope& value) { m_grantDistributionScope = value; } + inline void SetGrantDistributionScope(GrantDistributionScope&& value) { m_grantDistributionScope = std::move(value); } + inline GetDataGrantResult& WithGrantDistributionScope(const GrantDistributionScope& value) { SetGrantDistributionScope(value); return *this;} + inline GetDataGrantResult& WithGrantDistributionScope(GrantDistributionScope&& value) { SetGrantDistributionScope(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

The ID of the data set associated to the data grant.

+ */ + inline const Aws::String& GetDataSetId() const{ return m_dataSetId; } + inline void SetDataSetId(const Aws::String& value) { m_dataSetId = value; } + inline void SetDataSetId(Aws::String&& value) { m_dataSetId = std::move(value); } + inline void SetDataSetId(const char* value) { m_dataSetId.assign(value); } + inline GetDataGrantResult& WithDataSetId(const Aws::String& value) { SetDataSetId(value); return *this;} + inline GetDataGrantResult& WithDataSetId(Aws::String&& value) { SetDataSetId(std::move(value)); return *this;} + inline GetDataGrantResult& WithDataSetId(const char* value) { SetDataSetId(value); return *this;} + ///@} + + ///@{ + /** + *

The ID of the data set used to create the data grant.

+ */ + inline const Aws::String& GetSourceDataSetId() const{ return m_sourceDataSetId; } + inline void SetSourceDataSetId(const Aws::String& value) { m_sourceDataSetId = value; } + inline void SetSourceDataSetId(Aws::String&& value) { m_sourceDataSetId = std::move(value); } + inline void SetSourceDataSetId(const char* value) { m_sourceDataSetId.assign(value); } + inline GetDataGrantResult& WithSourceDataSetId(const Aws::String& value) { SetSourceDataSetId(value); return *this;} + inline GetDataGrantResult& WithSourceDataSetId(Aws::String&& value) { SetSourceDataSetId(std::move(value)); return *this;} + inline GetDataGrantResult& WithSourceDataSetId(const char* value) { SetSourceDataSetId(value); return *this;} + ///@} + + ///@{ + /** + *

The ID of the data grant.

+ */ + inline const Aws::String& GetId() const{ return m_id; } + inline void SetId(const Aws::String& value) { m_id = value; } + inline void SetId(Aws::String&& value) { m_id = std::move(value); } + inline void SetId(const char* value) { m_id.assign(value); } + inline GetDataGrantResult& WithId(const Aws::String& value) { SetId(value); return *this;} + inline GetDataGrantResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} + inline GetDataGrantResult& WithId(const char* value) { SetId(value); return *this;} + ///@} + + ///@{ + /** + *

The Amazon Resource Name (ARN) of the data grant.

+ */ + inline const Aws::String& GetArn() const{ return m_arn; } + inline void SetArn(const Aws::String& value) { m_arn = value; } + inline void SetArn(Aws::String&& value) { m_arn = std::move(value); } + inline void SetArn(const char* value) { m_arn.assign(value); } + inline GetDataGrantResult& WithArn(const Aws::String& value) { SetArn(value); return *this;} + inline GetDataGrantResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} + inline GetDataGrantResult& WithArn(const char* value) { SetArn(value); return *this;} + ///@} + + ///@{ + /** + *

The timestamp of when the data grant was created.

+ */ + inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; } + inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAt = value; } + inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAt = std::move(value); } + inline GetDataGrantResult& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;} + inline GetDataGrantResult& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

The timestamp of when the data grant was last updated.

+ */ + inline const Aws::Utils::DateTime& GetUpdatedAt() const{ return m_updatedAt; } + inline void SetUpdatedAt(const Aws::Utils::DateTime& value) { m_updatedAt = value; } + inline void SetUpdatedAt(Aws::Utils::DateTime&& value) { m_updatedAt = std::move(value); } + inline GetDataGrantResult& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;} + inline GetDataGrantResult& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

The tags associated to the data grant. A tag is a key-value pair.

+ */ + inline const Aws::Map& GetTags() const{ return m_tags; } + inline void SetTags(const Aws::Map& value) { m_tags = value; } + inline void SetTags(Aws::Map&& value) { m_tags = std::move(value); } + inline GetDataGrantResult& WithTags(const Aws::Map& value) { SetTags(value); return *this;} + inline GetDataGrantResult& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} + inline GetDataGrantResult& AddTags(const Aws::String& key, const Aws::String& value) { m_tags.emplace(key, value); return *this; } + inline GetDataGrantResult& AddTags(Aws::String&& key, const Aws::String& value) { m_tags.emplace(std::move(key), value); return *this; } + inline GetDataGrantResult& AddTags(const Aws::String& key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; } + inline GetDataGrantResult& AddTags(Aws::String&& key, Aws::String&& value) { m_tags.emplace(std::move(key), std::move(value)); return *this; } + inline GetDataGrantResult& AddTags(const char* key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; } + inline GetDataGrantResult& AddTags(Aws::String&& key, const char* value) { m_tags.emplace(std::move(key), value); return *this; } + inline GetDataGrantResult& AddTags(const char* key, const char* value) { m_tags.emplace(key, 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 GetDataGrantResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + inline GetDataGrantResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + inline GetDataGrantResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + ///@} + private: + + Aws::String m_name; + + Aws::String m_senderPrincipal; + + Aws::String m_receiverPrincipal; + + Aws::String m_description; + + DataGrantAcceptanceState m_acceptanceState; + + Aws::Utils::DateTime m_acceptedAt; + + Aws::Utils::DateTime m_endsAt; + + GrantDistributionScope m_grantDistributionScope; + + Aws::String m_dataSetId; + + Aws::String m_sourceDataSetId; + + Aws::String m_id; + + Aws::String m_arn; + + Aws::Utils::DateTime m_createdAt; + + Aws::Utils::DateTime m_updatedAt; + + Aws::Map m_tags; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace DataExchange +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-dataexchange/include/aws/dataexchange/model/GetReceivedDataGrantRequest.h b/generated/src/aws-cpp-sdk-dataexchange/include/aws/dataexchange/model/GetReceivedDataGrantRequest.h new file mode 100644 index 00000000000..b275c1cbae1 --- /dev/null +++ b/generated/src/aws-cpp-sdk-dataexchange/include/aws/dataexchange/model/GetReceivedDataGrantRequest.h @@ -0,0 +1,56 @@ +/** + * 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 DataExchange +{ +namespace Model +{ + + /** + */ + class GetReceivedDataGrantRequest : public DataExchangeRequest + { + public: + AWS_DATAEXCHANGE_API GetReceivedDataGrantRequest(); + + // 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 "GetReceivedDataGrant"; } + + AWS_DATAEXCHANGE_API Aws::String SerializePayload() const override; + + + ///@{ + /** + *

The Amazon Resource Name (ARN) of the data grant.

+ */ + inline const Aws::String& GetDataGrantArn() const{ return m_dataGrantArn; } + inline bool DataGrantArnHasBeenSet() const { return m_dataGrantArnHasBeenSet; } + inline void SetDataGrantArn(const Aws::String& value) { m_dataGrantArnHasBeenSet = true; m_dataGrantArn = value; } + inline void SetDataGrantArn(Aws::String&& value) { m_dataGrantArnHasBeenSet = true; m_dataGrantArn = std::move(value); } + inline void SetDataGrantArn(const char* value) { m_dataGrantArnHasBeenSet = true; m_dataGrantArn.assign(value); } + inline GetReceivedDataGrantRequest& WithDataGrantArn(const Aws::String& value) { SetDataGrantArn(value); return *this;} + inline GetReceivedDataGrantRequest& WithDataGrantArn(Aws::String&& value) { SetDataGrantArn(std::move(value)); return *this;} + inline GetReceivedDataGrantRequest& WithDataGrantArn(const char* value) { SetDataGrantArn(value); return *this;} + ///@} + private: + + Aws::String m_dataGrantArn; + bool m_dataGrantArnHasBeenSet = false; + }; + +} // namespace Model +} // namespace DataExchange +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-dataexchange/include/aws/dataexchange/model/GetReceivedDataGrantResult.h b/generated/src/aws-cpp-sdk-dataexchange/include/aws/dataexchange/model/GetReceivedDataGrantResult.h new file mode 100644 index 00000000000..66215e70891 --- /dev/null +++ b/generated/src/aws-cpp-sdk-dataexchange/include/aws/dataexchange/model/GetReceivedDataGrantResult.h @@ -0,0 +1,238 @@ +/** + * 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 +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace DataExchange +{ +namespace Model +{ + class GetReceivedDataGrantResult + { + public: + AWS_DATAEXCHANGE_API GetReceivedDataGrantResult(); + AWS_DATAEXCHANGE_API GetReceivedDataGrantResult(const Aws::AmazonWebServiceResult& result); + AWS_DATAEXCHANGE_API GetReceivedDataGrantResult& operator=(const Aws::AmazonWebServiceResult& result); + + + ///@{ + /** + *

The name of the data grant.

+ */ + inline const Aws::String& GetName() const{ return m_name; } + inline void SetName(const Aws::String& value) { m_name = value; } + inline void SetName(Aws::String&& value) { m_name = std::move(value); } + inline void SetName(const char* value) { m_name.assign(value); } + inline GetReceivedDataGrantResult& WithName(const Aws::String& value) { SetName(value); return *this;} + inline GetReceivedDataGrantResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} + inline GetReceivedDataGrantResult& WithName(const char* value) { SetName(value); return *this;} + ///@} + + ///@{ + /** + *

The Amazon Web Services account ID of the data grant sender.

+ */ + inline const Aws::String& GetSenderPrincipal() const{ return m_senderPrincipal; } + inline void SetSenderPrincipal(const Aws::String& value) { m_senderPrincipal = value; } + inline void SetSenderPrincipal(Aws::String&& value) { m_senderPrincipal = std::move(value); } + inline void SetSenderPrincipal(const char* value) { m_senderPrincipal.assign(value); } + inline GetReceivedDataGrantResult& WithSenderPrincipal(const Aws::String& value) { SetSenderPrincipal(value); return *this;} + inline GetReceivedDataGrantResult& WithSenderPrincipal(Aws::String&& value) { SetSenderPrincipal(std::move(value)); return *this;} + inline GetReceivedDataGrantResult& WithSenderPrincipal(const char* value) { SetSenderPrincipal(value); return *this;} + ///@} + + ///@{ + /** + *

The Amazon Web Services account ID of the data grant receiver.

+ */ + inline const Aws::String& GetReceiverPrincipal() const{ return m_receiverPrincipal; } + inline void SetReceiverPrincipal(const Aws::String& value) { m_receiverPrincipal = value; } + inline void SetReceiverPrincipal(Aws::String&& value) { m_receiverPrincipal = std::move(value); } + inline void SetReceiverPrincipal(const char* value) { m_receiverPrincipal.assign(value); } + inline GetReceivedDataGrantResult& WithReceiverPrincipal(const Aws::String& value) { SetReceiverPrincipal(value); return *this;} + inline GetReceivedDataGrantResult& WithReceiverPrincipal(Aws::String&& value) { SetReceiverPrincipal(std::move(value)); return *this;} + inline GetReceivedDataGrantResult& WithReceiverPrincipal(const char* value) { SetReceiverPrincipal(value); return *this;} + ///@} + + ///@{ + /** + *

The description of the data grant.

+ */ + inline const Aws::String& GetDescription() const{ return m_description; } + inline void SetDescription(const Aws::String& value) { m_description = value; } + inline void SetDescription(Aws::String&& value) { m_description = std::move(value); } + inline void SetDescription(const char* value) { m_description.assign(value); } + inline GetReceivedDataGrantResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} + inline GetReceivedDataGrantResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} + inline GetReceivedDataGrantResult& WithDescription(const char* value) { SetDescription(value); return *this;} + ///@} + + ///@{ + /** + *

The acceptance state of the data grant.

+ */ + inline const DataGrantAcceptanceState& GetAcceptanceState() const{ return m_acceptanceState; } + inline void SetAcceptanceState(const DataGrantAcceptanceState& value) { m_acceptanceState = value; } + inline void SetAcceptanceState(DataGrantAcceptanceState&& value) { m_acceptanceState = std::move(value); } + inline GetReceivedDataGrantResult& WithAcceptanceState(const DataGrantAcceptanceState& value) { SetAcceptanceState(value); return *this;} + inline GetReceivedDataGrantResult& WithAcceptanceState(DataGrantAcceptanceState&& value) { SetAcceptanceState(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

The timestamp of when the data grant was accepted.

+ */ + inline const Aws::Utils::DateTime& GetAcceptedAt() const{ return m_acceptedAt; } + inline void SetAcceptedAt(const Aws::Utils::DateTime& value) { m_acceptedAt = value; } + inline void SetAcceptedAt(Aws::Utils::DateTime&& value) { m_acceptedAt = std::move(value); } + inline GetReceivedDataGrantResult& WithAcceptedAt(const Aws::Utils::DateTime& value) { SetAcceptedAt(value); return *this;} + inline GetReceivedDataGrantResult& WithAcceptedAt(Aws::Utils::DateTime&& value) { SetAcceptedAt(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

The timestamp of when access to the associated data set ends.

+ */ + inline const Aws::Utils::DateTime& GetEndsAt() const{ return m_endsAt; } + inline void SetEndsAt(const Aws::Utils::DateTime& value) { m_endsAt = value; } + inline void SetEndsAt(Aws::Utils::DateTime&& value) { m_endsAt = std::move(value); } + inline GetReceivedDataGrantResult& WithEndsAt(const Aws::Utils::DateTime& value) { SetEndsAt(value); return *this;} + inline GetReceivedDataGrantResult& WithEndsAt(Aws::Utils::DateTime&& value) { SetEndsAt(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

The distribution scope for the data grant.

+ */ + inline const GrantDistributionScope& GetGrantDistributionScope() const{ return m_grantDistributionScope; } + inline void SetGrantDistributionScope(const GrantDistributionScope& value) { m_grantDistributionScope = value; } + inline void SetGrantDistributionScope(GrantDistributionScope&& value) { m_grantDistributionScope = std::move(value); } + inline GetReceivedDataGrantResult& WithGrantDistributionScope(const GrantDistributionScope& value) { SetGrantDistributionScope(value); return *this;} + inline GetReceivedDataGrantResult& WithGrantDistributionScope(GrantDistributionScope&& value) { SetGrantDistributionScope(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

The ID of the data set associated to the data grant.

+ */ + inline const Aws::String& GetDataSetId() const{ return m_dataSetId; } + inline void SetDataSetId(const Aws::String& value) { m_dataSetId = value; } + inline void SetDataSetId(Aws::String&& value) { m_dataSetId = std::move(value); } + inline void SetDataSetId(const char* value) { m_dataSetId.assign(value); } + inline GetReceivedDataGrantResult& WithDataSetId(const Aws::String& value) { SetDataSetId(value); return *this;} + inline GetReceivedDataGrantResult& WithDataSetId(Aws::String&& value) { SetDataSetId(std::move(value)); return *this;} + inline GetReceivedDataGrantResult& WithDataSetId(const char* value) { SetDataSetId(value); return *this;} + ///@} + + ///@{ + /** + *

The ID of the data grant.

+ */ + inline const Aws::String& GetId() const{ return m_id; } + inline void SetId(const Aws::String& value) { m_id = value; } + inline void SetId(Aws::String&& value) { m_id = std::move(value); } + inline void SetId(const char* value) { m_id.assign(value); } + inline GetReceivedDataGrantResult& WithId(const Aws::String& value) { SetId(value); return *this;} + inline GetReceivedDataGrantResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} + inline GetReceivedDataGrantResult& WithId(const char* value) { SetId(value); return *this;} + ///@} + + ///@{ + /** + *

The Amazon Resource Name (ARN) of the data grant.

+ */ + inline const Aws::String& GetArn() const{ return m_arn; } + inline void SetArn(const Aws::String& value) { m_arn = value; } + inline void SetArn(Aws::String&& value) { m_arn = std::move(value); } + inline void SetArn(const char* value) { m_arn.assign(value); } + inline GetReceivedDataGrantResult& WithArn(const Aws::String& value) { SetArn(value); return *this;} + inline GetReceivedDataGrantResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} + inline GetReceivedDataGrantResult& WithArn(const char* value) { SetArn(value); return *this;} + ///@} + + ///@{ + /** + *

The timestamp of when the data grant was created.

+ */ + inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; } + inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAt = value; } + inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAt = std::move(value); } + inline GetReceivedDataGrantResult& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;} + inline GetReceivedDataGrantResult& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

The timestamp of when the data grant was last updated.

+ */ + inline const Aws::Utils::DateTime& GetUpdatedAt() const{ return m_updatedAt; } + inline void SetUpdatedAt(const Aws::Utils::DateTime& value) { m_updatedAt = value; } + inline void SetUpdatedAt(Aws::Utils::DateTime&& value) { m_updatedAt = std::move(value); } + inline GetReceivedDataGrantResult& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;} + inline GetReceivedDataGrantResult& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;} + ///@} + + ///@{ + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + inline GetReceivedDataGrantResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + inline GetReceivedDataGrantResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + inline GetReceivedDataGrantResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + ///@} + private: + + Aws::String m_name; + + Aws::String m_senderPrincipal; + + Aws::String m_receiverPrincipal; + + Aws::String m_description; + + DataGrantAcceptanceState m_acceptanceState; + + Aws::Utils::DateTime m_acceptedAt; + + Aws::Utils::DateTime m_endsAt; + + GrantDistributionScope m_grantDistributionScope; + + Aws::String m_dataSetId; + + Aws::String m_id; + + Aws::String m_arn; + + Aws::Utils::DateTime m_createdAt; + + Aws::Utils::DateTime m_updatedAt; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace DataExchange +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-dataexchange/include/aws/dataexchange/model/GrantDistributionScope.h b/generated/src/aws-cpp-sdk-dataexchange/include/aws/dataexchange/model/GrantDistributionScope.h new file mode 100644 index 00000000000..bb1f3992959 --- /dev/null +++ b/generated/src/aws-cpp-sdk-dataexchange/include/aws/dataexchange/model/GrantDistributionScope.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 DataExchange +{ +namespace Model +{ + enum class GrantDistributionScope + { + NOT_SET, + AWS_ORGANIZATION, + NONE + }; + +namespace GrantDistributionScopeMapper +{ +AWS_DATAEXCHANGE_API GrantDistributionScope GetGrantDistributionScopeForName(const Aws::String& name); + +AWS_DATAEXCHANGE_API Aws::String GetNameForGrantDistributionScope(GrantDistributionScope value); +} // namespace GrantDistributionScopeMapper +} // namespace Model +} // namespace DataExchange +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-dataexchange/include/aws/dataexchange/model/LimitName.h b/generated/src/aws-cpp-sdk-dataexchange/include/aws/dataexchange/model/LimitName.h index 59b24b98c30..824464fc3aa 100644 --- a/generated/src/aws-cpp-sdk-dataexchange/include/aws/dataexchange/model/LimitName.h +++ b/generated/src/aws-cpp-sdk-dataexchange/include/aws/dataexchange/model/LimitName.h @@ -43,7 +43,9 @@ namespace Model Revisions_per_AWS_Lake_Formation_data_permission_data_set, Revisions_per_Amazon_S3_data_access_data_set, Amazon_S3_data_access_assets_per_revision, - Concurrent_in_progress_jobs_to_create_Amazon_S3_data_access_assets_from_S3_buckets + Concurrent_in_progress_jobs_to_create_Amazon_S3_data_access_assets_from_S3_buckets, + Active_and_pending_data_grants, + Pending_data_grants_per_consumer }; namespace LimitNameMapper diff --git a/generated/src/aws-cpp-sdk-dataexchange/include/aws/dataexchange/model/ListDataGrantsRequest.h b/generated/src/aws-cpp-sdk-dataexchange/include/aws/dataexchange/model/ListDataGrantsRequest.h new file mode 100644 index 00000000000..aa27dd14bb2 --- /dev/null +++ b/generated/src/aws-cpp-sdk-dataexchange/include/aws/dataexchange/model/ListDataGrantsRequest.h @@ -0,0 +1,76 @@ +/** + * 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 Http +{ + class URI; +} //namespace Http +namespace DataExchange +{ +namespace Model +{ + + /** + */ + class ListDataGrantsRequest : public DataExchangeRequest + { + public: + AWS_DATAEXCHANGE_API ListDataGrantsRequest(); + + // 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 "ListDataGrants"; } + + AWS_DATAEXCHANGE_API Aws::String SerializePayload() const override; + + AWS_DATAEXCHANGE_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; + + + ///@{ + /** + *

The maximum number of results to be included in the next page.

+ */ + inline int GetMaxResults() const{ return m_maxResults; } + inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } + inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } + inline ListDataGrantsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} + ///@} + + ///@{ + /** + *

The pagination token used to retrieve the next page of results for this + * operation.

+ */ + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } + inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } + inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } + inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } + inline ListDataGrantsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + inline ListDataGrantsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + inline ListDataGrantsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} + ///@} + private: + + int m_maxResults; + bool m_maxResultsHasBeenSet = false; + + Aws::String m_nextToken; + bool m_nextTokenHasBeenSet = false; + }; + +} // namespace Model +} // namespace DataExchange +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-dataexchange/include/aws/dataexchange/model/ListDataGrantsResult.h b/generated/src/aws-cpp-sdk-dataexchange/include/aws/dataexchange/model/ListDataGrantsResult.h new file mode 100644 index 00000000000..955bce208db --- /dev/null +++ b/generated/src/aws-cpp-sdk-dataexchange/include/aws/dataexchange/model/ListDataGrantsResult.h @@ -0,0 +1,85 @@ +/** + * 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 DataExchange +{ +namespace Model +{ + class ListDataGrantsResult + { + public: + AWS_DATAEXCHANGE_API ListDataGrantsResult(); + AWS_DATAEXCHANGE_API ListDataGrantsResult(const Aws::AmazonWebServiceResult& result); + AWS_DATAEXCHANGE_API ListDataGrantsResult& operator=(const Aws::AmazonWebServiceResult& result); + + + ///@{ + /** + *

An object that contains a list of data grant information.

+ */ + inline const Aws::Vector& GetDataGrantSummaries() const{ return m_dataGrantSummaries; } + inline void SetDataGrantSummaries(const Aws::Vector& value) { m_dataGrantSummaries = value; } + inline void SetDataGrantSummaries(Aws::Vector&& value) { m_dataGrantSummaries = std::move(value); } + inline ListDataGrantsResult& WithDataGrantSummaries(const Aws::Vector& value) { SetDataGrantSummaries(value); return *this;} + inline ListDataGrantsResult& WithDataGrantSummaries(Aws::Vector&& value) { SetDataGrantSummaries(std::move(value)); return *this;} + inline ListDataGrantsResult& AddDataGrantSummaries(const DataGrantSummaryEntry& value) { m_dataGrantSummaries.push_back(value); return *this; } + inline ListDataGrantsResult& AddDataGrantSummaries(DataGrantSummaryEntry&& value) { m_dataGrantSummaries.push_back(std::move(value)); return *this; } + ///@} + + ///@{ + /** + *

The pagination token used to retrieve the next page of results for this + * operation.

+ */ + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + inline void SetNextToken(const Aws::String& value) { m_nextToken = value; } + inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); } + inline void SetNextToken(const char* value) { m_nextToken.assign(value); } + inline ListDataGrantsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + inline ListDataGrantsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + inline ListDataGrantsResult& 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 ListDataGrantsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + inline ListDataGrantsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + inline ListDataGrantsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + ///@} + private: + + Aws::Vector m_dataGrantSummaries; + + Aws::String m_nextToken; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace DataExchange +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-dataexchange/include/aws/dataexchange/model/ListReceivedDataGrantsRequest.h b/generated/src/aws-cpp-sdk-dataexchange/include/aws/dataexchange/model/ListReceivedDataGrantsRequest.h new file mode 100644 index 00000000000..95941b4802f --- /dev/null +++ b/generated/src/aws-cpp-sdk-dataexchange/include/aws/dataexchange/model/ListReceivedDataGrantsRequest.h @@ -0,0 +1,95 @@ +/** + * 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 Http +{ + class URI; +} //namespace Http +namespace DataExchange +{ +namespace Model +{ + + /** + */ + class ListReceivedDataGrantsRequest : public DataExchangeRequest + { + public: + AWS_DATAEXCHANGE_API ListReceivedDataGrantsRequest(); + + // 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 "ListReceivedDataGrants"; } + + AWS_DATAEXCHANGE_API Aws::String SerializePayload() const override; + + AWS_DATAEXCHANGE_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; + + + ///@{ + /** + *

The maximum number of results to be included in the next page.

+ */ + inline int GetMaxResults() const{ return m_maxResults; } + inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } + inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } + inline ListReceivedDataGrantsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} + ///@} + + ///@{ + /** + *

The pagination token used to retrieve the next page of results for this + * operation.

+ */ + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } + inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } + inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } + inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } + inline ListReceivedDataGrantsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + inline ListReceivedDataGrantsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + inline ListReceivedDataGrantsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} + ///@} + + ///@{ + /** + *

The acceptance state of the data grants to list.

+ */ + inline const Aws::Vector& GetAcceptanceState() const{ return m_acceptanceState; } + inline bool AcceptanceStateHasBeenSet() const { return m_acceptanceStateHasBeenSet; } + inline void SetAcceptanceState(const Aws::Vector& value) { m_acceptanceStateHasBeenSet = true; m_acceptanceState = value; } + inline void SetAcceptanceState(Aws::Vector&& value) { m_acceptanceStateHasBeenSet = true; m_acceptanceState = std::move(value); } + inline ListReceivedDataGrantsRequest& WithAcceptanceState(const Aws::Vector& value) { SetAcceptanceState(value); return *this;} + inline ListReceivedDataGrantsRequest& WithAcceptanceState(Aws::Vector&& value) { SetAcceptanceState(std::move(value)); return *this;} + inline ListReceivedDataGrantsRequest& AddAcceptanceState(const AcceptanceStateFilterValue& value) { m_acceptanceStateHasBeenSet = true; m_acceptanceState.push_back(value); return *this; } + inline ListReceivedDataGrantsRequest& AddAcceptanceState(AcceptanceStateFilterValue&& value) { m_acceptanceStateHasBeenSet = true; m_acceptanceState.push_back(std::move(value)); return *this; } + ///@} + private: + + int m_maxResults; + bool m_maxResultsHasBeenSet = false; + + Aws::String m_nextToken; + bool m_nextTokenHasBeenSet = false; + + Aws::Vector m_acceptanceState; + bool m_acceptanceStateHasBeenSet = false; + }; + +} // namespace Model +} // namespace DataExchange +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-dataexchange/include/aws/dataexchange/model/ListReceivedDataGrantsResult.h b/generated/src/aws-cpp-sdk-dataexchange/include/aws/dataexchange/model/ListReceivedDataGrantsResult.h new file mode 100644 index 00000000000..0827ba2b4db --- /dev/null +++ b/generated/src/aws-cpp-sdk-dataexchange/include/aws/dataexchange/model/ListReceivedDataGrantsResult.h @@ -0,0 +1,85 @@ +/** + * 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 DataExchange +{ +namespace Model +{ + class ListReceivedDataGrantsResult + { + public: + AWS_DATAEXCHANGE_API ListReceivedDataGrantsResult(); + AWS_DATAEXCHANGE_API ListReceivedDataGrantsResult(const Aws::AmazonWebServiceResult& result); + AWS_DATAEXCHANGE_API ListReceivedDataGrantsResult& operator=(const Aws::AmazonWebServiceResult& result); + + + ///@{ + /** + *

An object that contains a list of received data grant information.

+ */ + inline const Aws::Vector& GetDataGrantSummaries() const{ return m_dataGrantSummaries; } + inline void SetDataGrantSummaries(const Aws::Vector& value) { m_dataGrantSummaries = value; } + inline void SetDataGrantSummaries(Aws::Vector&& value) { m_dataGrantSummaries = std::move(value); } + inline ListReceivedDataGrantsResult& WithDataGrantSummaries(const Aws::Vector& value) { SetDataGrantSummaries(value); return *this;} + inline ListReceivedDataGrantsResult& WithDataGrantSummaries(Aws::Vector&& value) { SetDataGrantSummaries(std::move(value)); return *this;} + inline ListReceivedDataGrantsResult& AddDataGrantSummaries(const ReceivedDataGrantSummariesEntry& value) { m_dataGrantSummaries.push_back(value); return *this; } + inline ListReceivedDataGrantsResult& AddDataGrantSummaries(ReceivedDataGrantSummariesEntry&& value) { m_dataGrantSummaries.push_back(std::move(value)); return *this; } + ///@} + + ///@{ + /** + *

The pagination token used to retrieve the next page of results for this + * operation.

+ */ + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + inline void SetNextToken(const Aws::String& value) { m_nextToken = value; } + inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); } + inline void SetNextToken(const char* value) { m_nextToken.assign(value); } + inline ListReceivedDataGrantsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + inline ListReceivedDataGrantsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + inline ListReceivedDataGrantsResult& 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 ListReceivedDataGrantsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + inline ListReceivedDataGrantsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + inline ListReceivedDataGrantsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + ///@} + private: + + Aws::Vector m_dataGrantSummaries; + + Aws::String m_nextToken; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace DataExchange +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-dataexchange/include/aws/dataexchange/model/OriginDetails.h b/generated/src/aws-cpp-sdk-dataexchange/include/aws/dataexchange/model/OriginDetails.h index 60d5503ff06..001e8fdcd54 100644 --- a/generated/src/aws-cpp-sdk-dataexchange/include/aws/dataexchange/model/OriginDetails.h +++ b/generated/src/aws-cpp-sdk-dataexchange/include/aws/dataexchange/model/OriginDetails.h @@ -50,10 +50,27 @@ namespace Model inline OriginDetails& WithProductId(Aws::String&& value) { SetProductId(std::move(value)); return *this;} inline OriginDetails& WithProductId(const char* value) { SetProductId(value); return *this;} ///@} + + ///@{ + /** + *

The ID of the data grant.

+ */ + inline const Aws::String& GetDataGrantId() const{ return m_dataGrantId; } + inline bool DataGrantIdHasBeenSet() const { return m_dataGrantIdHasBeenSet; } + inline void SetDataGrantId(const Aws::String& value) { m_dataGrantIdHasBeenSet = true; m_dataGrantId = value; } + inline void SetDataGrantId(Aws::String&& value) { m_dataGrantIdHasBeenSet = true; m_dataGrantId = std::move(value); } + inline void SetDataGrantId(const char* value) { m_dataGrantIdHasBeenSet = true; m_dataGrantId.assign(value); } + inline OriginDetails& WithDataGrantId(const Aws::String& value) { SetDataGrantId(value); return *this;} + inline OriginDetails& WithDataGrantId(Aws::String&& value) { SetDataGrantId(std::move(value)); return *this;} + inline OriginDetails& WithDataGrantId(const char* value) { SetDataGrantId(value); return *this;} + ///@} private: Aws::String m_productId; bool m_productIdHasBeenSet = false; + + Aws::String m_dataGrantId; + bool m_dataGrantIdHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-dataexchange/include/aws/dataexchange/model/ReceivedDataGrantSummariesEntry.h b/generated/src/aws-cpp-sdk-dataexchange/include/aws/dataexchange/model/ReceivedDataGrantSummariesEntry.h new file mode 100644 index 00000000000..09cfc8b325e --- /dev/null +++ b/generated/src/aws-cpp-sdk-dataexchange/include/aws/dataexchange/model/ReceivedDataGrantSummariesEntry.h @@ -0,0 +1,223 @@ +/** + * 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 DataExchange +{ +namespace Model +{ + + /** + *

Information about a received data grant.

See Also:

AWS + * API Reference

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

The name of the data grant.

+ */ + inline const Aws::String& GetName() const{ return m_name; } + inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } + inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } + inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } + inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } + inline ReceivedDataGrantSummariesEntry& WithName(const Aws::String& value) { SetName(value); return *this;} + inline ReceivedDataGrantSummariesEntry& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} + inline ReceivedDataGrantSummariesEntry& WithName(const char* value) { SetName(value); return *this;} + ///@} + + ///@{ + /** + *

The Amazon Web Services account ID of the data grant sender.

+ */ + inline const Aws::String& GetSenderPrincipal() const{ return m_senderPrincipal; } + inline bool SenderPrincipalHasBeenSet() const { return m_senderPrincipalHasBeenSet; } + inline void SetSenderPrincipal(const Aws::String& value) { m_senderPrincipalHasBeenSet = true; m_senderPrincipal = value; } + inline void SetSenderPrincipal(Aws::String&& value) { m_senderPrincipalHasBeenSet = true; m_senderPrincipal = std::move(value); } + inline void SetSenderPrincipal(const char* value) { m_senderPrincipalHasBeenSet = true; m_senderPrincipal.assign(value); } + inline ReceivedDataGrantSummariesEntry& WithSenderPrincipal(const Aws::String& value) { SetSenderPrincipal(value); return *this;} + inline ReceivedDataGrantSummariesEntry& WithSenderPrincipal(Aws::String&& value) { SetSenderPrincipal(std::move(value)); return *this;} + inline ReceivedDataGrantSummariesEntry& WithSenderPrincipal(const char* value) { SetSenderPrincipal(value); return *this;} + ///@} + + ///@{ + /** + *

The Amazon Web Services account ID of the data grant receiver.

+ */ + inline const Aws::String& GetReceiverPrincipal() const{ return m_receiverPrincipal; } + inline bool ReceiverPrincipalHasBeenSet() const { return m_receiverPrincipalHasBeenSet; } + inline void SetReceiverPrincipal(const Aws::String& value) { m_receiverPrincipalHasBeenSet = true; m_receiverPrincipal = value; } + inline void SetReceiverPrincipal(Aws::String&& value) { m_receiverPrincipalHasBeenSet = true; m_receiverPrincipal = std::move(value); } + inline void SetReceiverPrincipal(const char* value) { m_receiverPrincipalHasBeenSet = true; m_receiverPrincipal.assign(value); } + inline ReceivedDataGrantSummariesEntry& WithReceiverPrincipal(const Aws::String& value) { SetReceiverPrincipal(value); return *this;} + inline ReceivedDataGrantSummariesEntry& WithReceiverPrincipal(Aws::String&& value) { SetReceiverPrincipal(std::move(value)); return *this;} + inline ReceivedDataGrantSummariesEntry& WithReceiverPrincipal(const char* value) { SetReceiverPrincipal(value); return *this;} + ///@} + + ///@{ + /** + *

The acceptance state of the data grant.

+ */ + inline const DataGrantAcceptanceState& GetAcceptanceState() const{ return m_acceptanceState; } + inline bool AcceptanceStateHasBeenSet() const { return m_acceptanceStateHasBeenSet; } + inline void SetAcceptanceState(const DataGrantAcceptanceState& value) { m_acceptanceStateHasBeenSet = true; m_acceptanceState = value; } + inline void SetAcceptanceState(DataGrantAcceptanceState&& value) { m_acceptanceStateHasBeenSet = true; m_acceptanceState = std::move(value); } + inline ReceivedDataGrantSummariesEntry& WithAcceptanceState(const DataGrantAcceptanceState& value) { SetAcceptanceState(value); return *this;} + inline ReceivedDataGrantSummariesEntry& WithAcceptanceState(DataGrantAcceptanceState&& value) { SetAcceptanceState(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

The timestamp of when the data grant was accepted.

+ */ + inline const Aws::Utils::DateTime& GetAcceptedAt() const{ return m_acceptedAt; } + inline bool AcceptedAtHasBeenSet() const { return m_acceptedAtHasBeenSet; } + inline void SetAcceptedAt(const Aws::Utils::DateTime& value) { m_acceptedAtHasBeenSet = true; m_acceptedAt = value; } + inline void SetAcceptedAt(Aws::Utils::DateTime&& value) { m_acceptedAtHasBeenSet = true; m_acceptedAt = std::move(value); } + inline ReceivedDataGrantSummariesEntry& WithAcceptedAt(const Aws::Utils::DateTime& value) { SetAcceptedAt(value); return *this;} + inline ReceivedDataGrantSummariesEntry& WithAcceptedAt(Aws::Utils::DateTime&& value) { SetAcceptedAt(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

The timestamp of when access to the associated data set ends.

+ */ + inline const Aws::Utils::DateTime& GetEndsAt() const{ return m_endsAt; } + inline bool EndsAtHasBeenSet() const { return m_endsAtHasBeenSet; } + inline void SetEndsAt(const Aws::Utils::DateTime& value) { m_endsAtHasBeenSet = true; m_endsAt = value; } + inline void SetEndsAt(Aws::Utils::DateTime&& value) { m_endsAtHasBeenSet = true; m_endsAt = std::move(value); } + inline ReceivedDataGrantSummariesEntry& WithEndsAt(const Aws::Utils::DateTime& value) { SetEndsAt(value); return *this;} + inline ReceivedDataGrantSummariesEntry& WithEndsAt(Aws::Utils::DateTime&& value) { SetEndsAt(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

The ID of the data set associated to the data grant.

+ */ + inline const Aws::String& GetDataSetId() const{ return m_dataSetId; } + inline bool DataSetIdHasBeenSet() const { return m_dataSetIdHasBeenSet; } + inline void SetDataSetId(const Aws::String& value) { m_dataSetIdHasBeenSet = true; m_dataSetId = value; } + inline void SetDataSetId(Aws::String&& value) { m_dataSetIdHasBeenSet = true; m_dataSetId = std::move(value); } + inline void SetDataSetId(const char* value) { m_dataSetIdHasBeenSet = true; m_dataSetId.assign(value); } + inline ReceivedDataGrantSummariesEntry& WithDataSetId(const Aws::String& value) { SetDataSetId(value); return *this;} + inline ReceivedDataGrantSummariesEntry& WithDataSetId(Aws::String&& value) { SetDataSetId(std::move(value)); return *this;} + inline ReceivedDataGrantSummariesEntry& WithDataSetId(const char* value) { SetDataSetId(value); return *this;} + ///@} + + ///@{ + /** + *

The ID of the data grant.

+ */ + inline const Aws::String& GetId() const{ return m_id; } + inline bool IdHasBeenSet() const { return m_idHasBeenSet; } + inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } + inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } + inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } + inline ReceivedDataGrantSummariesEntry& WithId(const Aws::String& value) { SetId(value); return *this;} + inline ReceivedDataGrantSummariesEntry& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} + inline ReceivedDataGrantSummariesEntry& WithId(const char* value) { SetId(value); return *this;} + ///@} + + ///@{ + /** + *

The Amazon Resource Name (ARN) of the data grant.

+ */ + inline const Aws::String& GetArn() const{ return m_arn; } + inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } + inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } + inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } + inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } + inline ReceivedDataGrantSummariesEntry& WithArn(const Aws::String& value) { SetArn(value); return *this;} + inline ReceivedDataGrantSummariesEntry& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} + inline ReceivedDataGrantSummariesEntry& WithArn(const char* value) { SetArn(value); return *this;} + ///@} + + ///@{ + /** + *

The timestamp of when the data grant was created.

+ */ + inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; } + inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; } + inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; } + inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); } + inline ReceivedDataGrantSummariesEntry& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;} + inline ReceivedDataGrantSummariesEntry& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

The timestamp of when the data grant was last updated.

+ */ + inline const Aws::Utils::DateTime& GetUpdatedAt() const{ return m_updatedAt; } + inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; } + inline void SetUpdatedAt(const Aws::Utils::DateTime& value) { m_updatedAtHasBeenSet = true; m_updatedAt = value; } + inline void SetUpdatedAt(Aws::Utils::DateTime&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::move(value); } + inline ReceivedDataGrantSummariesEntry& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;} + inline ReceivedDataGrantSummariesEntry& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;} + ///@} + private: + + Aws::String m_name; + bool m_nameHasBeenSet = false; + + Aws::String m_senderPrincipal; + bool m_senderPrincipalHasBeenSet = false; + + Aws::String m_receiverPrincipal; + bool m_receiverPrincipalHasBeenSet = false; + + DataGrantAcceptanceState m_acceptanceState; + bool m_acceptanceStateHasBeenSet = false; + + Aws::Utils::DateTime m_acceptedAt; + bool m_acceptedAtHasBeenSet = false; + + Aws::Utils::DateTime m_endsAt; + bool m_endsAtHasBeenSet = false; + + Aws::String m_dataSetId; + bool m_dataSetIdHasBeenSet = false; + + Aws::String m_id; + bool m_idHasBeenSet = false; + + Aws::String m_arn; + bool m_arnHasBeenSet = false; + + Aws::Utils::DateTime m_createdAt; + bool m_createdAtHasBeenSet = false; + + Aws::Utils::DateTime m_updatedAt; + bool m_updatedAtHasBeenSet = false; + }; + +} // namespace Model +} // namespace DataExchange +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-dataexchange/include/aws/dataexchange/model/ResourceType.h b/generated/src/aws-cpp-sdk-dataexchange/include/aws/dataexchange/model/ResourceType.h index 67e8ca175d4..5c281ba6782 100644 --- a/generated/src/aws-cpp-sdk-dataexchange/include/aws/dataexchange/model/ResourceType.h +++ b/generated/src/aws-cpp-sdk-dataexchange/include/aws/dataexchange/model/ResourceType.h @@ -20,7 +20,8 @@ namespace Model REVISION, ASSET, JOB, - EVENT_ACTION + EVENT_ACTION, + DATA_GRANT }; namespace ResourceTypeMapper diff --git a/generated/src/aws-cpp-sdk-dataexchange/source/DataExchangeClient.cpp b/generated/src/aws-cpp-sdk-dataexchange/source/DataExchangeClient.cpp index 9fc00a2ff0a..8c9f9a87dc1 100644 --- a/generated/src/aws-cpp-sdk-dataexchange/source/DataExchangeClient.cpp +++ b/generated/src/aws-cpp-sdk-dataexchange/source/DataExchangeClient.cpp @@ -21,24 +21,31 @@ #include #include #include +#include #include +#include #include #include #include #include #include +#include #include #include #include #include +#include #include #include #include +#include #include +#include #include #include #include #include +#include #include #include #include @@ -194,6 +201,40 @@ void DataExchangeClient::OverrideEndpoint(const Aws::String& endpoint) m_endpointProvider->OverrideEndpoint(endpoint); } +AcceptDataGrantOutcome DataExchangeClient::AcceptDataGrant(const AcceptDataGrantRequest& request) const +{ + AWS_OPERATION_GUARD(AcceptDataGrant); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, AcceptDataGrant, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.DataGrantArnHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("AcceptDataGrant", "Required field: DataGrantArn, is not set"); + return AcceptDataGrantOutcome(Aws::Client::AWSError(DataExchangeErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [DataGrantArn]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, AcceptDataGrant, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, AcceptDataGrant, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".AcceptDataGrant", + {{ 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( + [&]()-> AcceptDataGrantOutcome { + 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, AcceptDataGrant, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/v1/data-grants/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetDataGrantArn()); + endpointResolutionOutcome.GetResult().AddPathSegments("/accept"); + return AcceptDataGrantOutcome(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()}}); +} + CancelJobOutcome DataExchangeClient::CancelJob(const CancelJobRequest& request) const { AWS_OPERATION_GUARD(CancelJob); @@ -227,6 +268,33 @@ CancelJobOutcome DataExchangeClient::CancelJob(const CancelJobRequest& request) {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +CreateDataGrantOutcome DataExchangeClient::CreateDataGrant(const CreateDataGrantRequest& request) const +{ + AWS_OPERATION_GUARD(CreateDataGrant); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreateDataGrant, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreateDataGrant, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, CreateDataGrant, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".CreateDataGrant", + {{ 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( + [&]()-> CreateDataGrantOutcome { + 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, CreateDataGrant, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/v1/data-grants"); + return CreateDataGrantOutcome(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()}}); +} + CreateDataSetOutcome DataExchangeClient::CreateDataSet(const CreateDataSetRequest& request) const { AWS_OPERATION_GUARD(CreateDataSet); @@ -389,6 +457,39 @@ DeleteAssetOutcome DataExchangeClient::DeleteAsset(const DeleteAssetRequest& req {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +DeleteDataGrantOutcome DataExchangeClient::DeleteDataGrant(const DeleteDataGrantRequest& request) const +{ + AWS_OPERATION_GUARD(DeleteDataGrant); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteDataGrant, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.DataGrantIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("DeleteDataGrant", "Required field: DataGrantId, is not set"); + return DeleteDataGrantOutcome(Aws::Client::AWSError(DataExchangeErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [DataGrantId]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteDataGrant, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, DeleteDataGrant, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DeleteDataGrant", + {{ 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( + [&]()-> DeleteDataGrantOutcome { + 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, DeleteDataGrant, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/v1/data-grants/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetDataGrantId()); + return DeleteDataGrantOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_DELETE, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + DeleteDataSetOutcome DataExchangeClient::DeleteDataSet(const DeleteDataSetRequest& request) const { AWS_OPERATION_GUARD(DeleteDataSet); @@ -542,6 +643,39 @@ GetAssetOutcome DataExchangeClient::GetAsset(const GetAssetRequest& request) con {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +GetDataGrantOutcome DataExchangeClient::GetDataGrant(const GetDataGrantRequest& request) const +{ + AWS_OPERATION_GUARD(GetDataGrant); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, GetDataGrant, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.DataGrantIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("GetDataGrant", "Required field: DataGrantId, is not set"); + return GetDataGrantOutcome(Aws::Client::AWSError(DataExchangeErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [DataGrantId]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, GetDataGrant, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, GetDataGrant, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".GetDataGrant", + {{ 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( + [&]()-> GetDataGrantOutcome { + 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, GetDataGrant, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/v1/data-grants/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetDataGrantId()); + return GetDataGrantOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + GetDataSetOutcome DataExchangeClient::GetDataSet(const GetDataSetRequest& request) const { AWS_OPERATION_GUARD(GetDataSet); @@ -641,6 +775,39 @@ GetJobOutcome DataExchangeClient::GetJob(const GetJobRequest& request) const {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +GetReceivedDataGrantOutcome DataExchangeClient::GetReceivedDataGrant(const GetReceivedDataGrantRequest& request) const +{ + AWS_OPERATION_GUARD(GetReceivedDataGrant); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, GetReceivedDataGrant, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.DataGrantArnHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("GetReceivedDataGrant", "Required field: DataGrantArn, is not set"); + return GetReceivedDataGrantOutcome(Aws::Client::AWSError(DataExchangeErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [DataGrantArn]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, GetReceivedDataGrant, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, GetReceivedDataGrant, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".GetReceivedDataGrant", + {{ 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( + [&]()-> GetReceivedDataGrantOutcome { + 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, GetReceivedDataGrant, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/v1/received-data-grants/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetDataGrantArn()); + return GetReceivedDataGrantOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + GetRevisionOutcome DataExchangeClient::GetRevision(const GetRevisionRequest& request) const { AWS_OPERATION_GUARD(GetRevision); @@ -681,6 +848,33 @@ GetRevisionOutcome DataExchangeClient::GetRevision(const GetRevisionRequest& req {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +ListDataGrantsOutcome DataExchangeClient::ListDataGrants(const ListDataGrantsRequest& request) const +{ + AWS_OPERATION_GUARD(ListDataGrants); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListDataGrants, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListDataGrants, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, ListDataGrants, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListDataGrants", + {{ 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( + [&]()-> ListDataGrantsOutcome { + 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, ListDataGrants, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/v1/data-grants"); + return ListDataGrantsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + ListDataSetRevisionsOutcome DataExchangeClient::ListDataSetRevisions(const ListDataSetRevisionsRequest& request) const { AWS_OPERATION_GUARD(ListDataSetRevisions); @@ -796,6 +990,33 @@ ListJobsOutcome DataExchangeClient::ListJobs(const ListJobsRequest& request) con {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +ListReceivedDataGrantsOutcome DataExchangeClient::ListReceivedDataGrants(const ListReceivedDataGrantsRequest& request) const +{ + AWS_OPERATION_GUARD(ListReceivedDataGrants); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListReceivedDataGrants, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListReceivedDataGrants, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, ListReceivedDataGrants, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListReceivedDataGrants", + {{ 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( + [&]()-> ListReceivedDataGrantsOutcome { + 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, ListReceivedDataGrants, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/v1/received-data-grants"); + return ListReceivedDataGrantsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + ListRevisionAssetsOutcome DataExchangeClient::ListRevisionAssets(const ListRevisionAssetsRequest& request) const { AWS_OPERATION_GUARD(ListRevisionAssets); diff --git a/generated/src/aws-cpp-sdk-dataexchange/source/model/AcceptDataGrantRequest.cpp b/generated/src/aws-cpp-sdk-dataexchange/source/model/AcceptDataGrantRequest.cpp new file mode 100644 index 00000000000..dc66c6ac778 --- /dev/null +++ b/generated/src/aws-cpp-sdk-dataexchange/source/model/AcceptDataGrantRequest.cpp @@ -0,0 +1,27 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::DataExchange::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +AcceptDataGrantRequest::AcceptDataGrantRequest() : + m_dataGrantArnHasBeenSet(false) +{ +} + +Aws::String AcceptDataGrantRequest::SerializePayload() const +{ + return {}; +} + + + + diff --git a/generated/src/aws-cpp-sdk-dataexchange/source/model/AcceptDataGrantResult.cpp b/generated/src/aws-cpp-sdk-dataexchange/source/model/AcceptDataGrantResult.cpp new file mode 100644 index 00000000000..e016aa9f241 --- /dev/null +++ b/generated/src/aws-cpp-sdk-dataexchange/source/model/AcceptDataGrantResult.cpp @@ -0,0 +1,123 @@ +/** + * 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::DataExchange::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +AcceptDataGrantResult::AcceptDataGrantResult() : + m_acceptanceState(DataGrantAcceptanceState::NOT_SET), + m_grantDistributionScope(GrantDistributionScope::NOT_SET) +{ +} + +AcceptDataGrantResult::AcceptDataGrantResult(const Aws::AmazonWebServiceResult& result) + : AcceptDataGrantResult() +{ + *this = result; +} + +AcceptDataGrantResult& AcceptDataGrantResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("Name")) + { + m_name = jsonValue.GetString("Name"); + + } + + if(jsonValue.ValueExists("SenderPrincipal")) + { + m_senderPrincipal = jsonValue.GetString("SenderPrincipal"); + + } + + if(jsonValue.ValueExists("ReceiverPrincipal")) + { + m_receiverPrincipal = jsonValue.GetString("ReceiverPrincipal"); + + } + + if(jsonValue.ValueExists("Description")) + { + m_description = jsonValue.GetString("Description"); + + } + + if(jsonValue.ValueExists("AcceptanceState")) + { + m_acceptanceState = DataGrantAcceptanceStateMapper::GetDataGrantAcceptanceStateForName(jsonValue.GetString("AcceptanceState")); + + } + + if(jsonValue.ValueExists("AcceptedAt")) + { + m_acceptedAt = jsonValue.GetString("AcceptedAt"); + + } + + if(jsonValue.ValueExists("EndsAt")) + { + m_endsAt = jsonValue.GetString("EndsAt"); + + } + + if(jsonValue.ValueExists("GrantDistributionScope")) + { + m_grantDistributionScope = GrantDistributionScopeMapper::GetGrantDistributionScopeForName(jsonValue.GetString("GrantDistributionScope")); + + } + + if(jsonValue.ValueExists("DataSetId")) + { + m_dataSetId = jsonValue.GetString("DataSetId"); + + } + + if(jsonValue.ValueExists("Id")) + { + m_id = jsonValue.GetString("Id"); + + } + + if(jsonValue.ValueExists("Arn")) + { + m_arn = jsonValue.GetString("Arn"); + + } + + if(jsonValue.ValueExists("CreatedAt")) + { + m_createdAt = jsonValue.GetString("CreatedAt"); + + } + + if(jsonValue.ValueExists("UpdatedAt")) + { + m_updatedAt = jsonValue.GetString("UpdatedAt"); + + } + + + 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-dataexchange/source/model/AcceptanceStateFilterValue.cpp b/generated/src/aws-cpp-sdk-dataexchange/source/model/AcceptanceStateFilterValue.cpp new file mode 100644 index 00000000000..e9aaa14d3fb --- /dev/null +++ b/generated/src/aws-cpp-sdk-dataexchange/source/model/AcceptanceStateFilterValue.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 DataExchange + { + namespace Model + { + namespace AcceptanceStateFilterValueMapper + { + + static const int PENDING_RECEIVER_ACCEPTANCE_HASH = HashingUtils::HashString("PENDING_RECEIVER_ACCEPTANCE"); + static const int ACCEPTED_HASH = HashingUtils::HashString("ACCEPTED"); + + + AcceptanceStateFilterValue GetAcceptanceStateFilterValueForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == PENDING_RECEIVER_ACCEPTANCE_HASH) + { + return AcceptanceStateFilterValue::PENDING_RECEIVER_ACCEPTANCE; + } + else if (hashCode == ACCEPTED_HASH) + { + return AcceptanceStateFilterValue::ACCEPTED; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return AcceptanceStateFilterValue::NOT_SET; + } + + Aws::String GetNameForAcceptanceStateFilterValue(AcceptanceStateFilterValue enumValue) + { + switch(enumValue) + { + case AcceptanceStateFilterValue::NOT_SET: + return {}; + case AcceptanceStateFilterValue::PENDING_RECEIVER_ACCEPTANCE: + return "PENDING_RECEIVER_ACCEPTANCE"; + case AcceptanceStateFilterValue::ACCEPTED: + return "ACCEPTED"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace AcceptanceStateFilterValueMapper + } // namespace Model + } // namespace DataExchange +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-dataexchange/source/model/CreateDataGrantRequest.cpp b/generated/src/aws-cpp-sdk-dataexchange/source/model/CreateDataGrantRequest.cpp new file mode 100644 index 00000000000..f3e2aaf951c --- /dev/null +++ b/generated/src/aws-cpp-sdk-dataexchange/source/model/CreateDataGrantRequest.cpp @@ -0,0 +1,81 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::DataExchange::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +CreateDataGrantRequest::CreateDataGrantRequest() : + m_nameHasBeenSet(false), + m_grantDistributionScope(GrantDistributionScope::NOT_SET), + m_grantDistributionScopeHasBeenSet(false), + m_receiverPrincipalHasBeenSet(false), + m_sourceDataSetIdHasBeenSet(false), + m_endsAtHasBeenSet(false), + m_descriptionHasBeenSet(false), + m_tagsHasBeenSet(false) +{ +} + +Aws::String CreateDataGrantRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_nameHasBeenSet) + { + payload.WithString("Name", m_name); + + } + + if(m_grantDistributionScopeHasBeenSet) + { + payload.WithString("GrantDistributionScope", GrantDistributionScopeMapper::GetNameForGrantDistributionScope(m_grantDistributionScope)); + } + + if(m_receiverPrincipalHasBeenSet) + { + payload.WithString("ReceiverPrincipal", m_receiverPrincipal); + + } + + if(m_sourceDataSetIdHasBeenSet) + { + payload.WithString("SourceDataSetId", m_sourceDataSetId); + + } + + if(m_endsAtHasBeenSet) + { + payload.WithString("EndsAt", m_endsAt.ToGmtString(Aws::Utils::DateFormat::ISO_8601)); + } + + if(m_descriptionHasBeenSet) + { + payload.WithString("Description", m_description); + + } + + if(m_tagsHasBeenSet) + { + JsonValue tagsJsonMap; + for(auto& tagsItem : m_tags) + { + tagsJsonMap.WithString(tagsItem.first, tagsItem.second); + } + payload.WithObject("Tags", std::move(tagsJsonMap)); + + } + + return payload.View().WriteReadable(); +} + + + + diff --git a/generated/src/aws-cpp-sdk-dataexchange/source/model/CreateDataGrantResult.cpp b/generated/src/aws-cpp-sdk-dataexchange/source/model/CreateDataGrantResult.cpp new file mode 100644 index 00000000000..c487025d8b5 --- /dev/null +++ b/generated/src/aws-cpp-sdk-dataexchange/source/model/CreateDataGrantResult.cpp @@ -0,0 +1,138 @@ +/** + * 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::DataExchange::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +CreateDataGrantResult::CreateDataGrantResult() : + m_acceptanceState(DataGrantAcceptanceState::NOT_SET), + m_grantDistributionScope(GrantDistributionScope::NOT_SET) +{ +} + +CreateDataGrantResult::CreateDataGrantResult(const Aws::AmazonWebServiceResult& result) + : CreateDataGrantResult() +{ + *this = result; +} + +CreateDataGrantResult& CreateDataGrantResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("Name")) + { + m_name = jsonValue.GetString("Name"); + + } + + if(jsonValue.ValueExists("SenderPrincipal")) + { + m_senderPrincipal = jsonValue.GetString("SenderPrincipal"); + + } + + if(jsonValue.ValueExists("ReceiverPrincipal")) + { + m_receiverPrincipal = jsonValue.GetString("ReceiverPrincipal"); + + } + + if(jsonValue.ValueExists("Description")) + { + m_description = jsonValue.GetString("Description"); + + } + + if(jsonValue.ValueExists("AcceptanceState")) + { + m_acceptanceState = DataGrantAcceptanceStateMapper::GetDataGrantAcceptanceStateForName(jsonValue.GetString("AcceptanceState")); + + } + + if(jsonValue.ValueExists("AcceptedAt")) + { + m_acceptedAt = jsonValue.GetString("AcceptedAt"); + + } + + if(jsonValue.ValueExists("EndsAt")) + { + m_endsAt = jsonValue.GetString("EndsAt"); + + } + + if(jsonValue.ValueExists("GrantDistributionScope")) + { + m_grantDistributionScope = GrantDistributionScopeMapper::GetGrantDistributionScopeForName(jsonValue.GetString("GrantDistributionScope")); + + } + + if(jsonValue.ValueExists("DataSetId")) + { + m_dataSetId = jsonValue.GetString("DataSetId"); + + } + + if(jsonValue.ValueExists("SourceDataSetId")) + { + m_sourceDataSetId = jsonValue.GetString("SourceDataSetId"); + + } + + if(jsonValue.ValueExists("Id")) + { + m_id = jsonValue.GetString("Id"); + + } + + if(jsonValue.ValueExists("Arn")) + { + m_arn = jsonValue.GetString("Arn"); + + } + + if(jsonValue.ValueExists("CreatedAt")) + { + m_createdAt = jsonValue.GetString("CreatedAt"); + + } + + if(jsonValue.ValueExists("UpdatedAt")) + { + m_updatedAt = jsonValue.GetString("UpdatedAt"); + + } + + if(jsonValue.ValueExists("Tags")) + { + Aws::Map tagsJsonMap = jsonValue.GetObject("Tags").GetAllObjects(); + for(auto& tagsItem : tagsJsonMap) + { + m_tags[tagsItem.first] = tagsItem.second.AsString(); + } + } + + + 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-dataexchange/source/model/DataGrantAcceptanceState.cpp b/generated/src/aws-cpp-sdk-dataexchange/source/model/DataGrantAcceptanceState.cpp new file mode 100644 index 00000000000..5304ab3d5a2 --- /dev/null +++ b/generated/src/aws-cpp-sdk-dataexchange/source/model/DataGrantAcceptanceState.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 DataExchange + { + namespace Model + { + namespace DataGrantAcceptanceStateMapper + { + + static const int PENDING_RECEIVER_ACCEPTANCE_HASH = HashingUtils::HashString("PENDING_RECEIVER_ACCEPTANCE"); + static const int ACCEPTED_HASH = HashingUtils::HashString("ACCEPTED"); + + + DataGrantAcceptanceState GetDataGrantAcceptanceStateForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == PENDING_RECEIVER_ACCEPTANCE_HASH) + { + return DataGrantAcceptanceState::PENDING_RECEIVER_ACCEPTANCE; + } + else if (hashCode == ACCEPTED_HASH) + { + return DataGrantAcceptanceState::ACCEPTED; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return DataGrantAcceptanceState::NOT_SET; + } + + Aws::String GetNameForDataGrantAcceptanceState(DataGrantAcceptanceState enumValue) + { + switch(enumValue) + { + case DataGrantAcceptanceState::NOT_SET: + return {}; + case DataGrantAcceptanceState::PENDING_RECEIVER_ACCEPTANCE: + return "PENDING_RECEIVER_ACCEPTANCE"; + case DataGrantAcceptanceState::ACCEPTED: + return "ACCEPTED"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace DataGrantAcceptanceStateMapper + } // namespace Model + } // namespace DataExchange +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-dataexchange/source/model/DataGrantSummaryEntry.cpp b/generated/src/aws-cpp-sdk-dataexchange/source/model/DataGrantSummaryEntry.cpp new file mode 100644 index 00000000000..d88ee529c1a --- /dev/null +++ b/generated/src/aws-cpp-sdk-dataexchange/source/model/DataGrantSummaryEntry.cpp @@ -0,0 +1,209 @@ +/** + * 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 DataExchange +{ +namespace Model +{ + +DataGrantSummaryEntry::DataGrantSummaryEntry() : + m_nameHasBeenSet(false), + m_senderPrincipalHasBeenSet(false), + m_receiverPrincipalHasBeenSet(false), + m_acceptanceState(DataGrantAcceptanceState::NOT_SET), + m_acceptanceStateHasBeenSet(false), + m_acceptedAtHasBeenSet(false), + m_endsAtHasBeenSet(false), + m_dataSetIdHasBeenSet(false), + m_sourceDataSetIdHasBeenSet(false), + m_idHasBeenSet(false), + m_arnHasBeenSet(false), + m_createdAtHasBeenSet(false), + m_updatedAtHasBeenSet(false) +{ +} + +DataGrantSummaryEntry::DataGrantSummaryEntry(JsonView jsonValue) + : DataGrantSummaryEntry() +{ + *this = jsonValue; +} + +DataGrantSummaryEntry& DataGrantSummaryEntry::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("Name")) + { + m_name = jsonValue.GetString("Name"); + + m_nameHasBeenSet = true; + } + + if(jsonValue.ValueExists("SenderPrincipal")) + { + m_senderPrincipal = jsonValue.GetString("SenderPrincipal"); + + m_senderPrincipalHasBeenSet = true; + } + + if(jsonValue.ValueExists("ReceiverPrincipal")) + { + m_receiverPrincipal = jsonValue.GetString("ReceiverPrincipal"); + + m_receiverPrincipalHasBeenSet = true; + } + + if(jsonValue.ValueExists("AcceptanceState")) + { + m_acceptanceState = DataGrantAcceptanceStateMapper::GetDataGrantAcceptanceStateForName(jsonValue.GetString("AcceptanceState")); + + m_acceptanceStateHasBeenSet = true; + } + + if(jsonValue.ValueExists("AcceptedAt")) + { + m_acceptedAt = jsonValue.GetString("AcceptedAt"); + + m_acceptedAtHasBeenSet = true; + } + + if(jsonValue.ValueExists("EndsAt")) + { + m_endsAt = jsonValue.GetString("EndsAt"); + + m_endsAtHasBeenSet = true; + } + + if(jsonValue.ValueExists("DataSetId")) + { + m_dataSetId = jsonValue.GetString("DataSetId"); + + m_dataSetIdHasBeenSet = true; + } + + if(jsonValue.ValueExists("SourceDataSetId")) + { + m_sourceDataSetId = jsonValue.GetString("SourceDataSetId"); + + m_sourceDataSetIdHasBeenSet = true; + } + + if(jsonValue.ValueExists("Id")) + { + m_id = jsonValue.GetString("Id"); + + m_idHasBeenSet = true; + } + + if(jsonValue.ValueExists("Arn")) + { + m_arn = jsonValue.GetString("Arn"); + + m_arnHasBeenSet = true; + } + + if(jsonValue.ValueExists("CreatedAt")) + { + m_createdAt = jsonValue.GetString("CreatedAt"); + + m_createdAtHasBeenSet = true; + } + + if(jsonValue.ValueExists("UpdatedAt")) + { + m_updatedAt = jsonValue.GetString("UpdatedAt"); + + m_updatedAtHasBeenSet = true; + } + + return *this; +} + +JsonValue DataGrantSummaryEntry::Jsonize() const +{ + JsonValue payload; + + if(m_nameHasBeenSet) + { + payload.WithString("Name", m_name); + + } + + if(m_senderPrincipalHasBeenSet) + { + payload.WithString("SenderPrincipal", m_senderPrincipal); + + } + + if(m_receiverPrincipalHasBeenSet) + { + payload.WithString("ReceiverPrincipal", m_receiverPrincipal); + + } + + if(m_acceptanceStateHasBeenSet) + { + payload.WithString("AcceptanceState", DataGrantAcceptanceStateMapper::GetNameForDataGrantAcceptanceState(m_acceptanceState)); + } + + if(m_acceptedAtHasBeenSet) + { + payload.WithString("AcceptedAt", m_acceptedAt.ToGmtString(Aws::Utils::DateFormat::ISO_8601)); + } + + if(m_endsAtHasBeenSet) + { + payload.WithString("EndsAt", m_endsAt.ToGmtString(Aws::Utils::DateFormat::ISO_8601)); + } + + if(m_dataSetIdHasBeenSet) + { + payload.WithString("DataSetId", m_dataSetId); + + } + + if(m_sourceDataSetIdHasBeenSet) + { + payload.WithString("SourceDataSetId", m_sourceDataSetId); + + } + + if(m_idHasBeenSet) + { + payload.WithString("Id", m_id); + + } + + if(m_arnHasBeenSet) + { + payload.WithString("Arn", m_arn); + + } + + if(m_createdAtHasBeenSet) + { + payload.WithString("CreatedAt", m_createdAt.ToGmtString(Aws::Utils::DateFormat::ISO_8601)); + } + + if(m_updatedAtHasBeenSet) + { + payload.WithString("UpdatedAt", m_updatedAt.ToGmtString(Aws::Utils::DateFormat::ISO_8601)); + } + + return payload; +} + +} // namespace Model +} // namespace DataExchange +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-dataexchange/source/model/DeleteDataGrantRequest.cpp b/generated/src/aws-cpp-sdk-dataexchange/source/model/DeleteDataGrantRequest.cpp new file mode 100644 index 00000000000..9968dc98882 --- /dev/null +++ b/generated/src/aws-cpp-sdk-dataexchange/source/model/DeleteDataGrantRequest.cpp @@ -0,0 +1,27 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::DataExchange::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +DeleteDataGrantRequest::DeleteDataGrantRequest() : + m_dataGrantIdHasBeenSet(false) +{ +} + +Aws::String DeleteDataGrantRequest::SerializePayload() const +{ + return {}; +} + + + + diff --git a/generated/src/aws-cpp-sdk-dataexchange/source/model/GetDataGrantRequest.cpp b/generated/src/aws-cpp-sdk-dataexchange/source/model/GetDataGrantRequest.cpp new file mode 100644 index 00000000000..a05f293dc1d --- /dev/null +++ b/generated/src/aws-cpp-sdk-dataexchange/source/model/GetDataGrantRequest.cpp @@ -0,0 +1,27 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::DataExchange::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +GetDataGrantRequest::GetDataGrantRequest() : + m_dataGrantIdHasBeenSet(false) +{ +} + +Aws::String GetDataGrantRequest::SerializePayload() const +{ + return {}; +} + + + + diff --git a/generated/src/aws-cpp-sdk-dataexchange/source/model/GetDataGrantResult.cpp b/generated/src/aws-cpp-sdk-dataexchange/source/model/GetDataGrantResult.cpp new file mode 100644 index 00000000000..6b358622a88 --- /dev/null +++ b/generated/src/aws-cpp-sdk-dataexchange/source/model/GetDataGrantResult.cpp @@ -0,0 +1,138 @@ +/** + * 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::DataExchange::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +GetDataGrantResult::GetDataGrantResult() : + m_acceptanceState(DataGrantAcceptanceState::NOT_SET), + m_grantDistributionScope(GrantDistributionScope::NOT_SET) +{ +} + +GetDataGrantResult::GetDataGrantResult(const Aws::AmazonWebServiceResult& result) + : GetDataGrantResult() +{ + *this = result; +} + +GetDataGrantResult& GetDataGrantResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("Name")) + { + m_name = jsonValue.GetString("Name"); + + } + + if(jsonValue.ValueExists("SenderPrincipal")) + { + m_senderPrincipal = jsonValue.GetString("SenderPrincipal"); + + } + + if(jsonValue.ValueExists("ReceiverPrincipal")) + { + m_receiverPrincipal = jsonValue.GetString("ReceiverPrincipal"); + + } + + if(jsonValue.ValueExists("Description")) + { + m_description = jsonValue.GetString("Description"); + + } + + if(jsonValue.ValueExists("AcceptanceState")) + { + m_acceptanceState = DataGrantAcceptanceStateMapper::GetDataGrantAcceptanceStateForName(jsonValue.GetString("AcceptanceState")); + + } + + if(jsonValue.ValueExists("AcceptedAt")) + { + m_acceptedAt = jsonValue.GetString("AcceptedAt"); + + } + + if(jsonValue.ValueExists("EndsAt")) + { + m_endsAt = jsonValue.GetString("EndsAt"); + + } + + if(jsonValue.ValueExists("GrantDistributionScope")) + { + m_grantDistributionScope = GrantDistributionScopeMapper::GetGrantDistributionScopeForName(jsonValue.GetString("GrantDistributionScope")); + + } + + if(jsonValue.ValueExists("DataSetId")) + { + m_dataSetId = jsonValue.GetString("DataSetId"); + + } + + if(jsonValue.ValueExists("SourceDataSetId")) + { + m_sourceDataSetId = jsonValue.GetString("SourceDataSetId"); + + } + + if(jsonValue.ValueExists("Id")) + { + m_id = jsonValue.GetString("Id"); + + } + + if(jsonValue.ValueExists("Arn")) + { + m_arn = jsonValue.GetString("Arn"); + + } + + if(jsonValue.ValueExists("CreatedAt")) + { + m_createdAt = jsonValue.GetString("CreatedAt"); + + } + + if(jsonValue.ValueExists("UpdatedAt")) + { + m_updatedAt = jsonValue.GetString("UpdatedAt"); + + } + + if(jsonValue.ValueExists("Tags")) + { + Aws::Map tagsJsonMap = jsonValue.GetObject("Tags").GetAllObjects(); + for(auto& tagsItem : tagsJsonMap) + { + m_tags[tagsItem.first] = tagsItem.second.AsString(); + } + } + + + 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-dataexchange/source/model/GetReceivedDataGrantRequest.cpp b/generated/src/aws-cpp-sdk-dataexchange/source/model/GetReceivedDataGrantRequest.cpp new file mode 100644 index 00000000000..c5eefe30826 --- /dev/null +++ b/generated/src/aws-cpp-sdk-dataexchange/source/model/GetReceivedDataGrantRequest.cpp @@ -0,0 +1,27 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::DataExchange::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +GetReceivedDataGrantRequest::GetReceivedDataGrantRequest() : + m_dataGrantArnHasBeenSet(false) +{ +} + +Aws::String GetReceivedDataGrantRequest::SerializePayload() const +{ + return {}; +} + + + + diff --git a/generated/src/aws-cpp-sdk-dataexchange/source/model/GetReceivedDataGrantResult.cpp b/generated/src/aws-cpp-sdk-dataexchange/source/model/GetReceivedDataGrantResult.cpp new file mode 100644 index 00000000000..d767e4b8130 --- /dev/null +++ b/generated/src/aws-cpp-sdk-dataexchange/source/model/GetReceivedDataGrantResult.cpp @@ -0,0 +1,123 @@ +/** + * 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::DataExchange::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +GetReceivedDataGrantResult::GetReceivedDataGrantResult() : + m_acceptanceState(DataGrantAcceptanceState::NOT_SET), + m_grantDistributionScope(GrantDistributionScope::NOT_SET) +{ +} + +GetReceivedDataGrantResult::GetReceivedDataGrantResult(const Aws::AmazonWebServiceResult& result) + : GetReceivedDataGrantResult() +{ + *this = result; +} + +GetReceivedDataGrantResult& GetReceivedDataGrantResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("Name")) + { + m_name = jsonValue.GetString("Name"); + + } + + if(jsonValue.ValueExists("SenderPrincipal")) + { + m_senderPrincipal = jsonValue.GetString("SenderPrincipal"); + + } + + if(jsonValue.ValueExists("ReceiverPrincipal")) + { + m_receiverPrincipal = jsonValue.GetString("ReceiverPrincipal"); + + } + + if(jsonValue.ValueExists("Description")) + { + m_description = jsonValue.GetString("Description"); + + } + + if(jsonValue.ValueExists("AcceptanceState")) + { + m_acceptanceState = DataGrantAcceptanceStateMapper::GetDataGrantAcceptanceStateForName(jsonValue.GetString("AcceptanceState")); + + } + + if(jsonValue.ValueExists("AcceptedAt")) + { + m_acceptedAt = jsonValue.GetString("AcceptedAt"); + + } + + if(jsonValue.ValueExists("EndsAt")) + { + m_endsAt = jsonValue.GetString("EndsAt"); + + } + + if(jsonValue.ValueExists("GrantDistributionScope")) + { + m_grantDistributionScope = GrantDistributionScopeMapper::GetGrantDistributionScopeForName(jsonValue.GetString("GrantDistributionScope")); + + } + + if(jsonValue.ValueExists("DataSetId")) + { + m_dataSetId = jsonValue.GetString("DataSetId"); + + } + + if(jsonValue.ValueExists("Id")) + { + m_id = jsonValue.GetString("Id"); + + } + + if(jsonValue.ValueExists("Arn")) + { + m_arn = jsonValue.GetString("Arn"); + + } + + if(jsonValue.ValueExists("CreatedAt")) + { + m_createdAt = jsonValue.GetString("CreatedAt"); + + } + + if(jsonValue.ValueExists("UpdatedAt")) + { + m_updatedAt = jsonValue.GetString("UpdatedAt"); + + } + + + 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-dataexchange/source/model/GrantDistributionScope.cpp b/generated/src/aws-cpp-sdk-dataexchange/source/model/GrantDistributionScope.cpp new file mode 100644 index 00000000000..019c09d02ee --- /dev/null +++ b/generated/src/aws-cpp-sdk-dataexchange/source/model/GrantDistributionScope.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 DataExchange + { + namespace Model + { + namespace GrantDistributionScopeMapper + { + + static const int AWS_ORGANIZATION_HASH = HashingUtils::HashString("AWS_ORGANIZATION"); + static const int NONE_HASH = HashingUtils::HashString("NONE"); + + + GrantDistributionScope GetGrantDistributionScopeForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == AWS_ORGANIZATION_HASH) + { + return GrantDistributionScope::AWS_ORGANIZATION; + } + else if (hashCode == NONE_HASH) + { + return GrantDistributionScope::NONE; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return GrantDistributionScope::NOT_SET; + } + + Aws::String GetNameForGrantDistributionScope(GrantDistributionScope enumValue) + { + switch(enumValue) + { + case GrantDistributionScope::NOT_SET: + return {}; + case GrantDistributionScope::AWS_ORGANIZATION: + return "AWS_ORGANIZATION"; + case GrantDistributionScope::NONE: + return "NONE"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace GrantDistributionScopeMapper + } // namespace Model + } // namespace DataExchange +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-dataexchange/source/model/LimitName.cpp b/generated/src/aws-cpp-sdk-dataexchange/source/model/LimitName.cpp index 3588b58800c..bfb1c48a478 100644 --- a/generated/src/aws-cpp-sdk-dataexchange/source/model/LimitName.cpp +++ b/generated/src/aws-cpp-sdk-dataexchange/source/model/LimitName.cpp @@ -48,6 +48,8 @@ namespace Aws static const int Revisions_per_Amazon_S3_data_access_data_set_HASH = HashingUtils::HashString("Revisions per Amazon S3 data access data set"); static const int Amazon_S3_data_access_assets_per_revision_HASH = HashingUtils::HashString("Amazon S3 data access assets per revision"); static const int Concurrent_in_progress_jobs_to_create_Amazon_S3_data_access_assets_from_S3_buckets_HASH = HashingUtils::HashString("Concurrent in progress jobs to create Amazon S3 data access assets from S3 buckets"); + static const int Active_and_pending_data_grants_HASH = HashingUtils::HashString("Active and pending data grants"); + static const int Pending_data_grants_per_consumer_HASH = HashingUtils::HashString("Pending data grants per consumer"); LimitName GetLimitNameForName(const Aws::String& name) @@ -165,6 +167,14 @@ namespace Aws { return LimitName::Concurrent_in_progress_jobs_to_create_Amazon_S3_data_access_assets_from_S3_buckets; } + else if (hashCode == Active_and_pending_data_grants_HASH) + { + return LimitName::Active_and_pending_data_grants; + } + else if (hashCode == Pending_data_grants_per_consumer_HASH) + { + return LimitName::Pending_data_grants_per_consumer; + } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { @@ -237,6 +247,10 @@ namespace Aws return "Amazon S3 data access assets per revision"; case LimitName::Concurrent_in_progress_jobs_to_create_Amazon_S3_data_access_assets_from_S3_buckets: return "Concurrent in progress jobs to create Amazon S3 data access assets from S3 buckets"; + case LimitName::Active_and_pending_data_grants: + return "Active and pending data grants"; + case LimitName::Pending_data_grants_per_consumer: + return "Pending data grants per consumer"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) diff --git a/generated/src/aws-cpp-sdk-dataexchange/source/model/ListDataGrantsRequest.cpp b/generated/src/aws-cpp-sdk-dataexchange/source/model/ListDataGrantsRequest.cpp new file mode 100644 index 00000000000..8c1cfa8f409 --- /dev/null +++ b/generated/src/aws-cpp-sdk-dataexchange/source/model/ListDataGrantsRequest.cpp @@ -0,0 +1,50 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +#include + +using namespace Aws::DataExchange::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws::Http; + +ListDataGrantsRequest::ListDataGrantsRequest() : + m_maxResults(0), + m_maxResultsHasBeenSet(false), + m_nextTokenHasBeenSet(false) +{ +} + +Aws::String ListDataGrantsRequest::SerializePayload() const +{ + return {}; +} + +void ListDataGrantsRequest::AddQueryStringParameters(URI& uri) const +{ + Aws::StringStream ss; + if(m_maxResultsHasBeenSet) + { + ss << m_maxResults; + uri.AddQueryStringParameter("maxResults", ss.str()); + ss.str(""); + } + + if(m_nextTokenHasBeenSet) + { + ss << m_nextToken; + uri.AddQueryStringParameter("nextToken", ss.str()); + ss.str(""); + } + +} + + + diff --git a/generated/src/aws-cpp-sdk-dataexchange/source/model/ListDataGrantsResult.cpp b/generated/src/aws-cpp-sdk-dataexchange/source/model/ListDataGrantsResult.cpp new file mode 100644 index 00000000000..533dc1c13af --- /dev/null +++ b/generated/src/aws-cpp-sdk-dataexchange/source/model/ListDataGrantsResult.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::DataExchange::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +ListDataGrantsResult::ListDataGrantsResult() +{ +} + +ListDataGrantsResult::ListDataGrantsResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +ListDataGrantsResult& ListDataGrantsResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("DataGrantSummaries")) + { + Aws::Utils::Array dataGrantSummariesJsonList = jsonValue.GetArray("DataGrantSummaries"); + for(unsigned dataGrantSummariesIndex = 0; dataGrantSummariesIndex < dataGrantSummariesJsonList.GetLength(); ++dataGrantSummariesIndex) + { + m_dataGrantSummaries.push_back(dataGrantSummariesJsonList[dataGrantSummariesIndex].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-dataexchange/source/model/ListReceivedDataGrantsRequest.cpp b/generated/src/aws-cpp-sdk-dataexchange/source/model/ListReceivedDataGrantsRequest.cpp new file mode 100644 index 00000000000..27b118fd440 --- /dev/null +++ b/generated/src/aws-cpp-sdk-dataexchange/source/model/ListReceivedDataGrantsRequest.cpp @@ -0,0 +1,61 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +#include + +using namespace Aws::DataExchange::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws::Http; + +ListReceivedDataGrantsRequest::ListReceivedDataGrantsRequest() : + m_maxResults(0), + m_maxResultsHasBeenSet(false), + m_nextTokenHasBeenSet(false), + m_acceptanceStateHasBeenSet(false) +{ +} + +Aws::String ListReceivedDataGrantsRequest::SerializePayload() const +{ + return {}; +} + +void ListReceivedDataGrantsRequest::AddQueryStringParameters(URI& uri) const +{ + Aws::StringStream ss; + if(m_maxResultsHasBeenSet) + { + ss << m_maxResults; + uri.AddQueryStringParameter("maxResults", ss.str()); + ss.str(""); + } + + if(m_nextTokenHasBeenSet) + { + ss << m_nextToken; + uri.AddQueryStringParameter("nextToken", ss.str()); + ss.str(""); + } + + if(m_acceptanceStateHasBeenSet) + { + for(const auto& item : m_acceptanceState) + { + ss << AcceptanceStateFilterValueMapper::GetNameForAcceptanceStateFilterValue(item); + uri.AddQueryStringParameter("acceptanceState", ss.str()); + ss.str(""); + } + } + +} + + + diff --git a/generated/src/aws-cpp-sdk-dataexchange/source/model/ListReceivedDataGrantsResult.cpp b/generated/src/aws-cpp-sdk-dataexchange/source/model/ListReceivedDataGrantsResult.cpp new file mode 100644 index 00000000000..0366f9667a3 --- /dev/null +++ b/generated/src/aws-cpp-sdk-dataexchange/source/model/ListReceivedDataGrantsResult.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::DataExchange::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +ListReceivedDataGrantsResult::ListReceivedDataGrantsResult() +{ +} + +ListReceivedDataGrantsResult::ListReceivedDataGrantsResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +ListReceivedDataGrantsResult& ListReceivedDataGrantsResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("DataGrantSummaries")) + { + Aws::Utils::Array dataGrantSummariesJsonList = jsonValue.GetArray("DataGrantSummaries"); + for(unsigned dataGrantSummariesIndex = 0; dataGrantSummariesIndex < dataGrantSummariesJsonList.GetLength(); ++dataGrantSummariesIndex) + { + m_dataGrantSummaries.push_back(dataGrantSummariesJsonList[dataGrantSummariesIndex].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-dataexchange/source/model/OriginDetails.cpp b/generated/src/aws-cpp-sdk-dataexchange/source/model/OriginDetails.cpp index c71e2e2718f..9d02c6be2bd 100644 --- a/generated/src/aws-cpp-sdk-dataexchange/source/model/OriginDetails.cpp +++ b/generated/src/aws-cpp-sdk-dataexchange/source/model/OriginDetails.cpp @@ -19,7 +19,8 @@ namespace Model { OriginDetails::OriginDetails() : - m_productIdHasBeenSet(false) + m_productIdHasBeenSet(false), + m_dataGrantIdHasBeenSet(false) { } @@ -38,6 +39,13 @@ OriginDetails& OriginDetails::operator =(JsonView jsonValue) m_productIdHasBeenSet = true; } + if(jsonValue.ValueExists("DataGrantId")) + { + m_dataGrantId = jsonValue.GetString("DataGrantId"); + + m_dataGrantIdHasBeenSet = true; + } + return *this; } @@ -51,6 +59,12 @@ JsonValue OriginDetails::Jsonize() const } + if(m_dataGrantIdHasBeenSet) + { + payload.WithString("DataGrantId", m_dataGrantId); + + } + return payload; } diff --git a/generated/src/aws-cpp-sdk-dataexchange/source/model/ReceivedDataGrantSummariesEntry.cpp b/generated/src/aws-cpp-sdk-dataexchange/source/model/ReceivedDataGrantSummariesEntry.cpp new file mode 100644 index 00000000000..d7ac9ac84bb --- /dev/null +++ b/generated/src/aws-cpp-sdk-dataexchange/source/model/ReceivedDataGrantSummariesEntry.cpp @@ -0,0 +1,195 @@ +/** + * 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 DataExchange +{ +namespace Model +{ + +ReceivedDataGrantSummariesEntry::ReceivedDataGrantSummariesEntry() : + m_nameHasBeenSet(false), + m_senderPrincipalHasBeenSet(false), + m_receiverPrincipalHasBeenSet(false), + m_acceptanceState(DataGrantAcceptanceState::NOT_SET), + m_acceptanceStateHasBeenSet(false), + m_acceptedAtHasBeenSet(false), + m_endsAtHasBeenSet(false), + m_dataSetIdHasBeenSet(false), + m_idHasBeenSet(false), + m_arnHasBeenSet(false), + m_createdAtHasBeenSet(false), + m_updatedAtHasBeenSet(false) +{ +} + +ReceivedDataGrantSummariesEntry::ReceivedDataGrantSummariesEntry(JsonView jsonValue) + : ReceivedDataGrantSummariesEntry() +{ + *this = jsonValue; +} + +ReceivedDataGrantSummariesEntry& ReceivedDataGrantSummariesEntry::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("Name")) + { + m_name = jsonValue.GetString("Name"); + + m_nameHasBeenSet = true; + } + + if(jsonValue.ValueExists("SenderPrincipal")) + { + m_senderPrincipal = jsonValue.GetString("SenderPrincipal"); + + m_senderPrincipalHasBeenSet = true; + } + + if(jsonValue.ValueExists("ReceiverPrincipal")) + { + m_receiverPrincipal = jsonValue.GetString("ReceiverPrincipal"); + + m_receiverPrincipalHasBeenSet = true; + } + + if(jsonValue.ValueExists("AcceptanceState")) + { + m_acceptanceState = DataGrantAcceptanceStateMapper::GetDataGrantAcceptanceStateForName(jsonValue.GetString("AcceptanceState")); + + m_acceptanceStateHasBeenSet = true; + } + + if(jsonValue.ValueExists("AcceptedAt")) + { + m_acceptedAt = jsonValue.GetString("AcceptedAt"); + + m_acceptedAtHasBeenSet = true; + } + + if(jsonValue.ValueExists("EndsAt")) + { + m_endsAt = jsonValue.GetString("EndsAt"); + + m_endsAtHasBeenSet = true; + } + + if(jsonValue.ValueExists("DataSetId")) + { + m_dataSetId = jsonValue.GetString("DataSetId"); + + m_dataSetIdHasBeenSet = true; + } + + if(jsonValue.ValueExists("Id")) + { + m_id = jsonValue.GetString("Id"); + + m_idHasBeenSet = true; + } + + if(jsonValue.ValueExists("Arn")) + { + m_arn = jsonValue.GetString("Arn"); + + m_arnHasBeenSet = true; + } + + if(jsonValue.ValueExists("CreatedAt")) + { + m_createdAt = jsonValue.GetString("CreatedAt"); + + m_createdAtHasBeenSet = true; + } + + if(jsonValue.ValueExists("UpdatedAt")) + { + m_updatedAt = jsonValue.GetString("UpdatedAt"); + + m_updatedAtHasBeenSet = true; + } + + return *this; +} + +JsonValue ReceivedDataGrantSummariesEntry::Jsonize() const +{ + JsonValue payload; + + if(m_nameHasBeenSet) + { + payload.WithString("Name", m_name); + + } + + if(m_senderPrincipalHasBeenSet) + { + payload.WithString("SenderPrincipal", m_senderPrincipal); + + } + + if(m_receiverPrincipalHasBeenSet) + { + payload.WithString("ReceiverPrincipal", m_receiverPrincipal); + + } + + if(m_acceptanceStateHasBeenSet) + { + payload.WithString("AcceptanceState", DataGrantAcceptanceStateMapper::GetNameForDataGrantAcceptanceState(m_acceptanceState)); + } + + if(m_acceptedAtHasBeenSet) + { + payload.WithString("AcceptedAt", m_acceptedAt.ToGmtString(Aws::Utils::DateFormat::ISO_8601)); + } + + if(m_endsAtHasBeenSet) + { + payload.WithString("EndsAt", m_endsAt.ToGmtString(Aws::Utils::DateFormat::ISO_8601)); + } + + if(m_dataSetIdHasBeenSet) + { + payload.WithString("DataSetId", m_dataSetId); + + } + + if(m_idHasBeenSet) + { + payload.WithString("Id", m_id); + + } + + if(m_arnHasBeenSet) + { + payload.WithString("Arn", m_arn); + + } + + if(m_createdAtHasBeenSet) + { + payload.WithString("CreatedAt", m_createdAt.ToGmtString(Aws::Utils::DateFormat::ISO_8601)); + } + + if(m_updatedAtHasBeenSet) + { + payload.WithString("UpdatedAt", m_updatedAt.ToGmtString(Aws::Utils::DateFormat::ISO_8601)); + } + + return payload; +} + +} // namespace Model +} // namespace DataExchange +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-dataexchange/source/model/ResourceType.cpp b/generated/src/aws-cpp-sdk-dataexchange/source/model/ResourceType.cpp index d0b0137b115..81d24c7122f 100644 --- a/generated/src/aws-cpp-sdk-dataexchange/source/model/ResourceType.cpp +++ b/generated/src/aws-cpp-sdk-dataexchange/source/model/ResourceType.cpp @@ -25,6 +25,7 @@ namespace Aws static const int ASSET_HASH = HashingUtils::HashString("ASSET"); static const int JOB_HASH = HashingUtils::HashString("JOB"); static const int EVENT_ACTION_HASH = HashingUtils::HashString("EVENT_ACTION"); + static const int DATA_GRANT_HASH = HashingUtils::HashString("DATA_GRANT"); ResourceType GetResourceTypeForName(const Aws::String& name) @@ -50,6 +51,10 @@ namespace Aws { return ResourceType::EVENT_ACTION; } + else if (hashCode == DATA_GRANT_HASH) + { + return ResourceType::DATA_GRANT; + } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { @@ -76,6 +81,8 @@ namespace Aws return "JOB"; case ResourceType::EVENT_ACTION: return "EVENT_ACTION"; + case ResourceType::DATA_GRANT: + return "DATA_GRANT"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) diff --git a/generated/src/aws-cpp-sdk-ecs/include/aws/ecs/model/RunTaskRequest.h b/generated/src/aws-cpp-sdk-ecs/include/aws/ecs/model/RunTaskRequest.h index b4823103c81..33ddca58904 100644 --- a/generated/src/aws-cpp-sdk-ecs/include/aws/ecs/model/RunTaskRequest.h +++ b/generated/src/aws-cpp-sdk-ecs/include/aws/ecs/model/RunTaskRequest.h @@ -273,8 +273,8 @@ namespace Model ///@{ /** - *

The reference ID to use for the task. The reference ID can have a maximum - * length of 1024 characters.

+ *

This parameter is only used by Amazon ECS. It is not intended for use by + * customers.

*/ inline const Aws::String& GetReferenceId() const{ return m_referenceId; } inline bool ReferenceIdHasBeenSet() const { return m_referenceIdHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-ecs/include/aws/ecs/model/StartTaskRequest.h b/generated/src/aws-cpp-sdk-ecs/include/aws/ecs/model/StartTaskRequest.h index da201416193..f08e77f346e 100644 --- a/generated/src/aws-cpp-sdk-ecs/include/aws/ecs/model/StartTaskRequest.h +++ b/generated/src/aws-cpp-sdk-ecs/include/aws/ecs/model/StartTaskRequest.h @@ -163,7 +163,8 @@ namespace Model ///@{ /** - *

The reference ID to use for the task.

+ *

This parameter is only used by Amazon ECS. It is not intended for use by + * customers.

*/ inline const Aws::String& GetReferenceId() const{ return m_referenceId; } inline bool ReferenceIdHasBeenSet() const { return m_referenceIdHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/PinpointSMSVoiceV2Client.h b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/PinpointSMSVoiceV2Client.h index 67e9d683af9..cfa24ec3af5 100644 --- a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/PinpointSMSVoiceV2Client.h +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/PinpointSMSVoiceV2Client.h @@ -384,9 +384,12 @@ namespace PinpointSMSVoiceV2 /** *

Create a new registration attachment to use for uploading a file or a URL to - * a file. The maximum file size is 1MiB and valid file extensions are PDF, JPEG + * a file. The maximum file size is 500KB and valid file extensions are PDF, JPEG * and PNG. For example, many sender ID registrations require a signed “letter of - * authorization” (LOA) to be submitted.

See Also:

Use either + * AttachmentUrl or AttachmentBody to upload your + * attachment. If both are specified then an exception is returned.

See + * Also:

AWS * API Reference

*/ @@ -1145,7 +1148,7 @@ namespace PinpointSMSVoiceV2 * numbers that meet the filter criteria. If you don't specify opted out numbers or * filters, the output includes information for all opted out destination numbers * in your opt-out list.

If you specify an opted out number that isn't - * valid, an error is returned.

See Also:

See Also:

AWS * API Reference

*/ diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/CreateRegistrationAttachmentRequest.h b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/CreateRegistrationAttachmentRequest.h index 277b8133d74..f99b38471c5 100644 --- a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/CreateRegistrationAttachmentRequest.h +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/CreateRegistrationAttachmentRequest.h @@ -40,8 +40,8 @@ namespace Model ///@{ /** - *

The registration file to upload. The maximum file size is 1MiB and valid file - * extensions are PDF, JPEG and PNG.

+ *

The registration file to upload. The maximum file size is 500KB and valid + * file extensions are PDF, JPEG and PNG.

*/ inline const Aws::Utils::ByteBuffer& GetAttachmentBody() const{ return m_attachmentBody; } inline bool AttachmentBodyHasBeenSet() const { return m_attachmentBodyHasBeenSet; } @@ -53,8 +53,8 @@ namespace Model ///@{ /** - *

A URL to the required registration file. For example, you can provide the S3 - * object URL.

+ *

Registration files have to be stored in an Amazon S3 bucket. The URI to use + * when sending is in the format s3://BucketName/FileName.

*/ inline const Aws::String& GetAttachmentUrl() const{ return m_attachmentUrl; } inline bool AttachmentUrlHasBeenSet() const { return m_attachmentUrlHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/DescribeOptedOutNumbersRequest.h b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/DescribeOptedOutNumbersRequest.h index 0322d1d176e..190c2eed53a 100644 --- a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/DescribeOptedOutNumbersRequest.h +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/DescribeOptedOutNumbersRequest.h @@ -56,7 +56,8 @@ namespace Model ///@{ /** - *

An array of phone numbers to search for in the OptOutList.

+ *

An array of phone numbers to search for in the OptOutList.

If you + * specify an opted out number that isn't valid, an exception is returned.

*/ inline const Aws::Vector& GetOptedOutNumbers() const{ return m_optedOutNumbers; } inline bool OptedOutNumbersHasBeenSet() const { return m_optedOutNumbersHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/RegistrationStatus.h b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/RegistrationStatus.h index e98e0e6e957..b1edc08588a 100644 --- a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/RegistrationStatus.h +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/RegistrationStatus.h @@ -19,6 +19,7 @@ namespace Model CREATED, SUBMITTED, REVIEWING, + REQUIRES_AUTHENTICATION, PROVISIONING, COMPLETE, REQUIRES_UPDATES, diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/RegistrationVersionStatus.h b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/RegistrationVersionStatus.h index b640508b989..1e528669286 100644 --- a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/RegistrationVersionStatus.h +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/RegistrationVersionStatus.h @@ -19,6 +19,7 @@ namespace Model DRAFT, SUBMITTED, REVIEWING, + REQUIRES_AUTHENTICATION, APPROVED, DISCARDED, DENIED, diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/ValidationExceptionReason.h b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/ValidationExceptionReason.h index ef8224c248f..328b39227c5 100644 --- a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/ValidationExceptionReason.h +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/ValidationExceptionReason.h @@ -54,6 +54,7 @@ namespace Model REGISTRATION_FIELD_CANNOT_BE_DELETED, VERIFICATION_CODE_MISMATCH, VOICE_CAPABILITY_NOT_AVAILABLE, + UNSPECIFIED_PARAMETER_NOT_SUPPORTED, OTHER }; diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/RegistrationStatus.cpp b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/RegistrationStatus.cpp index fca4dc1ceb5..d5e6eac4553 100644 --- a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/RegistrationStatus.cpp +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/RegistrationStatus.cpp @@ -23,6 +23,7 @@ namespace Aws static const int CREATED_HASH = HashingUtils::HashString("CREATED"); static const int SUBMITTED_HASH = HashingUtils::HashString("SUBMITTED"); static const int REVIEWING_HASH = HashingUtils::HashString("REVIEWING"); + static const int REQUIRES_AUTHENTICATION_HASH = HashingUtils::HashString("REQUIRES_AUTHENTICATION"); static const int PROVISIONING_HASH = HashingUtils::HashString("PROVISIONING"); static const int COMPLETE_HASH = HashingUtils::HashString("COMPLETE"); static const int REQUIRES_UPDATES_HASH = HashingUtils::HashString("REQUIRES_UPDATES"); @@ -45,6 +46,10 @@ namespace Aws { return RegistrationStatus::REVIEWING; } + else if (hashCode == REQUIRES_AUTHENTICATION_HASH) + { + return RegistrationStatus::REQUIRES_AUTHENTICATION; + } else if (hashCode == PROVISIONING_HASH) { return RegistrationStatus::PROVISIONING; @@ -87,6 +92,8 @@ namespace Aws return "SUBMITTED"; case RegistrationStatus::REVIEWING: return "REVIEWING"; + case RegistrationStatus::REQUIRES_AUTHENTICATION: + return "REQUIRES_AUTHENTICATION"; case RegistrationStatus::PROVISIONING: return "PROVISIONING"; case RegistrationStatus::COMPLETE: diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/RegistrationVersionStatus.cpp b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/RegistrationVersionStatus.cpp index 5a25e3a1d41..8e3e08b409d 100644 --- a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/RegistrationVersionStatus.cpp +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/RegistrationVersionStatus.cpp @@ -23,6 +23,7 @@ namespace Aws static const int DRAFT_HASH = HashingUtils::HashString("DRAFT"); static const int SUBMITTED_HASH = HashingUtils::HashString("SUBMITTED"); static const int REVIEWING_HASH = HashingUtils::HashString("REVIEWING"); + static const int REQUIRES_AUTHENTICATION_HASH = HashingUtils::HashString("REQUIRES_AUTHENTICATION"); static const int APPROVED_HASH = HashingUtils::HashString("APPROVED"); static const int DISCARDED_HASH = HashingUtils::HashString("DISCARDED"); static const int DENIED_HASH = HashingUtils::HashString("DENIED"); @@ -45,6 +46,10 @@ namespace Aws { return RegistrationVersionStatus::REVIEWING; } + else if (hashCode == REQUIRES_AUTHENTICATION_HASH) + { + return RegistrationVersionStatus::REQUIRES_AUTHENTICATION; + } else if (hashCode == APPROVED_HASH) { return RegistrationVersionStatus::APPROVED; @@ -87,6 +92,8 @@ namespace Aws return "SUBMITTED"; case RegistrationVersionStatus::REVIEWING: return "REVIEWING"; + case RegistrationVersionStatus::REQUIRES_AUTHENTICATION: + return "REQUIRES_AUTHENTICATION"; case RegistrationVersionStatus::APPROVED: return "APPROVED"; case RegistrationVersionStatus::DISCARDED: diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/ValidationExceptionReason.cpp b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/ValidationExceptionReason.cpp index 564a0e13caa..46d6ca5b043 100644 --- a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/ValidationExceptionReason.cpp +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/ValidationExceptionReason.cpp @@ -58,6 +58,7 @@ namespace Aws static const int REGISTRATION_FIELD_CANNOT_BE_DELETED_HASH = HashingUtils::HashString("REGISTRATION_FIELD_CANNOT_BE_DELETED"); static const int VERIFICATION_CODE_MISMATCH_HASH = HashingUtils::HashString("VERIFICATION_CODE_MISMATCH"); static const int VOICE_CAPABILITY_NOT_AVAILABLE_HASH = HashingUtils::HashString("VOICE_CAPABILITY_NOT_AVAILABLE"); + static const int UNSPECIFIED_PARAMETER_NOT_SUPPORTED_HASH = HashingUtils::HashString("UNSPECIFIED_PARAMETER_NOT_SUPPORTED"); static const int OTHER_HASH = HashingUtils::HashString("OTHER"); @@ -216,6 +217,10 @@ namespace Aws { return ValidationExceptionReason::VOICE_CAPABILITY_NOT_AVAILABLE; } + else if (hashCode == UNSPECIFIED_PARAMETER_NOT_SUPPORTED_HASH) + { + return ValidationExceptionReason::UNSPECIFIED_PARAMETER_NOT_SUPPORTED; + } else if (hashCode == OTHER_HASH) { return ValidationExceptionReason::OTHER; @@ -312,6 +317,8 @@ namespace Aws return "VERIFICATION_CODE_MISMATCH"; case ValidationExceptionReason::VOICE_CAPABILITY_NOT_AVAILABLE: return "VOICE_CAPABILITY_NOT_AVAILABLE"; + case ValidationExceptionReason::UNSPECIFIED_PARAMETER_NOT_SUPPORTED: + return "UNSPECIFIED_PARAMETER_NOT_SUPPORTED"; case ValidationExceptionReason::OTHER: return "OTHER"; default: diff --git a/generated/src/aws-cpp-sdk-pipes/include/aws/pipes/model/PipeSourceDynamoDBStreamParameters.h b/generated/src/aws-cpp-sdk-pipes/include/aws/pipes/model/PipeSourceDynamoDBStreamParameters.h index ae01eb922af..f2f56fe2261 100644 --- a/generated/src/aws-cpp-sdk-pipes/include/aws/pipes/model/PipeSourceDynamoDBStreamParameters.h +++ b/generated/src/aws-cpp-sdk-pipes/include/aws/pipes/model/PipeSourceDynamoDBStreamParameters.h @@ -64,9 +64,9 @@ namespace Model ///@{ /** - *

(Streams only) Define how to handle item process failures. - * AUTOMATIC_BISECT halves each batch and retry each half until all - * the records are processed or there is one failed message left in the batch.

+ *

Define how to handle item process failures. AUTOMATIC_BISECT + * halves each batch and retry each half until all the records are processed or + * there is one failed message left in the batch.

*/ inline const OnPartialBatchItemFailureStreams& GetOnPartialBatchItemFailure() const{ return m_onPartialBatchItemFailure; } inline bool OnPartialBatchItemFailureHasBeenSet() const { return m_onPartialBatchItemFailureHasBeenSet; } @@ -88,9 +88,9 @@ namespace Model ///@{ /** - *

(Streams only) Discard records older than the specified age. The default - * value is -1, which sets the maximum age to infinite. When the value is set to - * infinite, EventBridge never discards old records.

+ *

Discard records older than the specified age. The default value is -1, which + * sets the maximum age to infinite. When the value is set to infinite, EventBridge + * never discards old records.

*/ inline int GetMaximumRecordAgeInSeconds() const{ return m_maximumRecordAgeInSeconds; } inline bool MaximumRecordAgeInSecondsHasBeenSet() const { return m_maximumRecordAgeInSecondsHasBeenSet; } @@ -100,8 +100,8 @@ namespace Model ///@{ /** - *

(Streams only) Discard records after the specified number of retries. The - * default value is -1, which sets the maximum number of retries to infinite. When + *

Discard records after the specified number of retries. The default value is + * -1, which sets the maximum number of retries to infinite. When * MaximumRetryAttempts is infinite, EventBridge retries failed records until the * record expires in the event source.

*/ @@ -113,8 +113,8 @@ namespace Model ///@{ /** - *

(Streams only) The number of batches to process concurrently from each shard. - * The default value is 1.

+ *

The number of batches to process concurrently from each shard. The default + * value is 1.

*/ inline int GetParallelizationFactor() const{ return m_parallelizationFactor; } inline bool ParallelizationFactorHasBeenSet() const { return m_parallelizationFactorHasBeenSet; } @@ -124,7 +124,7 @@ namespace Model ///@{ /** - *

(Streams only) The position in a stream from which to start reading.

+ *

The position in a stream from which to start reading.

*/ inline const DynamoDBStreamStartPosition& GetStartingPosition() const{ return m_startingPosition; } inline bool StartingPositionHasBeenSet() const { return m_startingPositionHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-pipes/include/aws/pipes/model/PipeSourceKinesisStreamParameters.h b/generated/src/aws-cpp-sdk-pipes/include/aws/pipes/model/PipeSourceKinesisStreamParameters.h index b0d6d7ca53b..9604f32b518 100644 --- a/generated/src/aws-cpp-sdk-pipes/include/aws/pipes/model/PipeSourceKinesisStreamParameters.h +++ b/generated/src/aws-cpp-sdk-pipes/include/aws/pipes/model/PipeSourceKinesisStreamParameters.h @@ -65,9 +65,9 @@ namespace Model ///@{ /** - *

(Streams only) Define how to handle item process failures. - * AUTOMATIC_BISECT halves each batch and retry each half until all - * the records are processed or there is one failed message left in the batch.

+ *

Define how to handle item process failures. AUTOMATIC_BISECT + * halves each batch and retry each half until all the records are processed or + * there is one failed message left in the batch.

*/ inline const OnPartialBatchItemFailureStreams& GetOnPartialBatchItemFailure() const{ return m_onPartialBatchItemFailure; } inline bool OnPartialBatchItemFailureHasBeenSet() const { return m_onPartialBatchItemFailureHasBeenSet; } @@ -89,9 +89,9 @@ namespace Model ///@{ /** - *

(Streams only) Discard records older than the specified age. The default - * value is -1, which sets the maximum age to infinite. When the value is set to - * infinite, EventBridge never discards old records.

+ *

Discard records older than the specified age. The default value is -1, which + * sets the maximum age to infinite. When the value is set to infinite, EventBridge + * never discards old records.

*/ inline int GetMaximumRecordAgeInSeconds() const{ return m_maximumRecordAgeInSeconds; } inline bool MaximumRecordAgeInSecondsHasBeenSet() const { return m_maximumRecordAgeInSecondsHasBeenSet; } @@ -101,8 +101,8 @@ namespace Model ///@{ /** - *

(Streams only) Discard records after the specified number of retries. The - * default value is -1, which sets the maximum number of retries to infinite. When + *

Discard records after the specified number of retries. The default value is + * -1, which sets the maximum number of retries to infinite. When * MaximumRetryAttempts is infinite, EventBridge retries failed records until the * record expires in the event source.

*/ @@ -114,8 +114,8 @@ namespace Model ///@{ /** - *

(Streams only) The number of batches to process concurrently from each shard. - * The default value is 1.

+ *

The number of batches to process concurrently from each shard. The default + * value is 1.

*/ inline int GetParallelizationFactor() const{ return m_parallelizationFactor; } inline bool ParallelizationFactorHasBeenSet() const { return m_parallelizationFactorHasBeenSet; } @@ -125,7 +125,7 @@ namespace Model ///@{ /** - *

(Streams only) The position in a stream from which to start reading.

+ *

The position in a stream from which to start reading.

*/ inline const KinesisStreamStartPosition& GetStartingPosition() const{ return m_startingPosition; } inline bool StartingPositionHasBeenSet() const { return m_startingPositionHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-pipes/include/aws/pipes/model/PipeSourceManagedStreamingKafkaParameters.h b/generated/src/aws-cpp-sdk-pipes/include/aws/pipes/model/PipeSourceManagedStreamingKafkaParameters.h index 8b625fa6ae7..2f96733b1c5 100644 --- a/generated/src/aws-cpp-sdk-pipes/include/aws/pipes/model/PipeSourceManagedStreamingKafkaParameters.h +++ b/generated/src/aws-cpp-sdk-pipes/include/aws/pipes/model/PipeSourceManagedStreamingKafkaParameters.h @@ -56,7 +56,7 @@ namespace Model ///@{ /** - *

(Streams only) The position in a stream from which to start reading.

+ *

The position in a stream from which to start reading.

*/ inline const MSKStartPosition& GetStartingPosition() const{ return m_startingPosition; } inline bool StartingPositionHasBeenSet() const { return m_startingPositionHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-pipes/include/aws/pipes/model/PipeSourceSelfManagedKafkaParameters.h b/generated/src/aws-cpp-sdk-pipes/include/aws/pipes/model/PipeSourceSelfManagedKafkaParameters.h index 682dd0c1516..bfb13091ed4 100644 --- a/generated/src/aws-cpp-sdk-pipes/include/aws/pipes/model/PipeSourceSelfManagedKafkaParameters.h +++ b/generated/src/aws-cpp-sdk-pipes/include/aws/pipes/model/PipeSourceSelfManagedKafkaParameters.h @@ -66,7 +66,7 @@ namespace Model ///@{ /** - *

(Streams only) The position in a stream from which to start reading.

+ *

The position in a stream from which to start reading.

*/ inline const SelfManagedKafkaStartPosition& GetStartingPosition() const{ return m_startingPosition; } inline bool StartingPositionHasBeenSet() const { return m_startingPositionHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-pipes/include/aws/pipes/model/PipeTargetTimestreamParameters.h b/generated/src/aws-cpp-sdk-pipes/include/aws/pipes/model/PipeTargetTimestreamParameters.h index cb25a07c433..bd48eb971a2 100644 --- a/generated/src/aws-cpp-sdk-pipes/include/aws/pipes/model/PipeTargetTimestreamParameters.h +++ b/generated/src/aws-cpp-sdk-pipes/include/aws/pipes/model/PipeTargetTimestreamParameters.h @@ -88,7 +88,7 @@ namespace Model ///@{ /** *

How to format the timestamps. For example, - * YYYY-MM-DDThh:mm:ss.sssTZD.

Required if + * yyyy-MM-dd'T'HH:mm:ss'Z'.

Required if * TimeFieldType is specified as TIMESTAMP_FORMAT.

*/ inline const Aws::String& GetTimestampFormat() const{ return m_timestampFormat; } diff --git a/generated/src/aws-cpp-sdk-pipes/include/aws/pipes/model/UpdatePipeSourceDynamoDBStreamParameters.h b/generated/src/aws-cpp-sdk-pipes/include/aws/pipes/model/UpdatePipeSourceDynamoDBStreamParameters.h index adb40fe5b44..ec54a6009be 100644 --- a/generated/src/aws-cpp-sdk-pipes/include/aws/pipes/model/UpdatePipeSourceDynamoDBStreamParameters.h +++ b/generated/src/aws-cpp-sdk-pipes/include/aws/pipes/model/UpdatePipeSourceDynamoDBStreamParameters.h @@ -63,9 +63,9 @@ namespace Model ///@{ /** - *

(Streams only) Define how to handle item process failures. - * AUTOMATIC_BISECT halves each batch and retry each half until all - * the records are processed or there is one failed message left in the batch.

+ *

Define how to handle item process failures. AUTOMATIC_BISECT + * halves each batch and retry each half until all the records are processed or + * there is one failed message left in the batch.

*/ inline const OnPartialBatchItemFailureStreams& GetOnPartialBatchItemFailure() const{ return m_onPartialBatchItemFailure; } inline bool OnPartialBatchItemFailureHasBeenSet() const { return m_onPartialBatchItemFailureHasBeenSet; } @@ -87,9 +87,9 @@ namespace Model ///@{ /** - *

(Streams only) Discard records older than the specified age. The default - * value is -1, which sets the maximum age to infinite. When the value is set to - * infinite, EventBridge never discards old records.

+ *

Discard records older than the specified age. The default value is -1, which + * sets the maximum age to infinite. When the value is set to infinite, EventBridge + * never discards old records.

*/ inline int GetMaximumRecordAgeInSeconds() const{ return m_maximumRecordAgeInSeconds; } inline bool MaximumRecordAgeInSecondsHasBeenSet() const { return m_maximumRecordAgeInSecondsHasBeenSet; } @@ -99,8 +99,8 @@ namespace Model ///@{ /** - *

(Streams only) Discard records after the specified number of retries. The - * default value is -1, which sets the maximum number of retries to infinite. When + *

Discard records after the specified number of retries. The default value is + * -1, which sets the maximum number of retries to infinite. When * MaximumRetryAttempts is infinite, EventBridge retries failed records until the * record expires in the event source.

*/ @@ -112,8 +112,8 @@ namespace Model ///@{ /** - *

(Streams only) The number of batches to process concurrently from each shard. - * The default value is 1.

+ *

The number of batches to process concurrently from each shard. The default + * value is 1.

*/ inline int GetParallelizationFactor() const{ return m_parallelizationFactor; } inline bool ParallelizationFactorHasBeenSet() const { return m_parallelizationFactorHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-pipes/include/aws/pipes/model/UpdatePipeSourceKinesisStreamParameters.h b/generated/src/aws-cpp-sdk-pipes/include/aws/pipes/model/UpdatePipeSourceKinesisStreamParameters.h index 983634c2a88..fecf4da5f62 100644 --- a/generated/src/aws-cpp-sdk-pipes/include/aws/pipes/model/UpdatePipeSourceKinesisStreamParameters.h +++ b/generated/src/aws-cpp-sdk-pipes/include/aws/pipes/model/UpdatePipeSourceKinesisStreamParameters.h @@ -63,9 +63,9 @@ namespace Model ///@{ /** - *

(Streams only) Define how to handle item process failures. - * AUTOMATIC_BISECT halves each batch and retry each half until all - * the records are processed or there is one failed message left in the batch.

+ *

Define how to handle item process failures. AUTOMATIC_BISECT + * halves each batch and retry each half until all the records are processed or + * there is one failed message left in the batch.

*/ inline const OnPartialBatchItemFailureStreams& GetOnPartialBatchItemFailure() const{ return m_onPartialBatchItemFailure; } inline bool OnPartialBatchItemFailureHasBeenSet() const { return m_onPartialBatchItemFailureHasBeenSet; } @@ -87,9 +87,9 @@ namespace Model ///@{ /** - *

(Streams only) Discard records older than the specified age. The default - * value is -1, which sets the maximum age to infinite. When the value is set to - * infinite, EventBridge never discards old records.

+ *

Discard records older than the specified age. The default value is -1, which + * sets the maximum age to infinite. When the value is set to infinite, EventBridge + * never discards old records.

*/ inline int GetMaximumRecordAgeInSeconds() const{ return m_maximumRecordAgeInSeconds; } inline bool MaximumRecordAgeInSecondsHasBeenSet() const { return m_maximumRecordAgeInSecondsHasBeenSet; } @@ -99,8 +99,8 @@ namespace Model ///@{ /** - *

(Streams only) Discard records after the specified number of retries. The - * default value is -1, which sets the maximum number of retries to infinite. When + *

Discard records after the specified number of retries. The default value is + * -1, which sets the maximum number of retries to infinite. When * MaximumRetryAttempts is infinite, EventBridge retries failed records until the * record expires in the event source.

*/ @@ -112,8 +112,8 @@ namespace Model ///@{ /** - *

(Streams only) The number of batches to process concurrently from each shard. - * The default value is 1.

+ *

The number of batches to process concurrently from each shard. The default + * value is 1.

*/ inline int GetParallelizationFactor() const{ return m_parallelizationFactor; } inline bool ParallelizationFactorHasBeenSet() const { return m_parallelizationFactorHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/QuickSightClient.h b/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/QuickSightClient.h index 84ca5bf0f84..778186fbf61 100644 --- a/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/QuickSightClient.h +++ b/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/QuickSightClient.h @@ -4094,6 +4094,39 @@ namespace QuickSight return SubmitAsync(&QuickSightClient::StartDashboardSnapshotJob, request, handler, context); } + /** + *

Starts an asynchronous job that runs an existing dashboard schedule and sends + * the dashboard snapshot through email.

Only one job can run + * simultaneously in a given schedule. Repeated requests are skipped with a + * 202 HTTP status code.

For more information, see Scheduling + * and sending Amazon QuickSight reports by email and Configuring + * email report settings for a Amazon QuickSight dashboard in the Amazon + * QuickSight User Guide.

See Also:

AWS + * API Reference

+ */ + virtual Model::StartDashboardSnapshotJobScheduleOutcome StartDashboardSnapshotJobSchedule(const Model::StartDashboardSnapshotJobScheduleRequest& request) const; + + /** + * A Callable wrapper for StartDashboardSnapshotJobSchedule that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::StartDashboardSnapshotJobScheduleOutcomeCallable StartDashboardSnapshotJobScheduleCallable(const StartDashboardSnapshotJobScheduleRequestT& request) const + { + return SubmitCallable(&QuickSightClient::StartDashboardSnapshotJobSchedule, request); + } + + /** + * An Async wrapper for StartDashboardSnapshotJobSchedule that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void StartDashboardSnapshotJobScheduleAsync(const StartDashboardSnapshotJobScheduleRequestT& request, const StartDashboardSnapshotJobScheduleResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&QuickSightClient::StartDashboardSnapshotJobSchedule, request, handler, context); + } + /** *

Assigns one or more tags (key-value pairs) to the specified Amazon QuickSight * resource.

Tags can help you organize and categorize your resources. You diff --git a/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/QuickSightServiceClientModel.h b/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/QuickSightServiceClientModel.h index feb53730d8a..4b3c4e388c9 100644 --- a/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/QuickSightServiceClientModel.h +++ b/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/QuickSightServiceClientModel.h @@ -161,6 +161,7 @@ #include #include #include +#include #include #include #include @@ -381,6 +382,7 @@ namespace Aws class StartAssetBundleExportJobRequest; class StartAssetBundleImportJobRequest; class StartDashboardSnapshotJobRequest; + class StartDashboardSnapshotJobScheduleRequest; class TagResourceRequest; class UntagResourceRequest; class UpdateAccountCustomizationRequest; @@ -564,6 +566,7 @@ namespace Aws typedef Aws::Utils::Outcome StartAssetBundleExportJobOutcome; typedef Aws::Utils::Outcome StartAssetBundleImportJobOutcome; typedef Aws::Utils::Outcome StartDashboardSnapshotJobOutcome; + typedef Aws::Utils::Outcome StartDashboardSnapshotJobScheduleOutcome; typedef Aws::Utils::Outcome TagResourceOutcome; typedef Aws::Utils::Outcome UntagResourceOutcome; typedef Aws::Utils::Outcome UpdateAccountCustomizationOutcome; @@ -747,6 +750,7 @@ namespace Aws typedef std::future StartAssetBundleExportJobOutcomeCallable; typedef std::future StartAssetBundleImportJobOutcomeCallable; typedef std::future StartDashboardSnapshotJobOutcomeCallable; + typedef std::future StartDashboardSnapshotJobScheduleOutcomeCallable; typedef std::future TagResourceOutcomeCallable; typedef std::future UntagResourceOutcomeCallable; typedef std::future UpdateAccountCustomizationOutcomeCallable; @@ -933,6 +937,7 @@ namespace Aws typedef std::function&) > StartAssetBundleExportJobResponseReceivedHandler; typedef std::function&) > StartAssetBundleImportJobResponseReceivedHandler; typedef std::function&) > StartDashboardSnapshotJobResponseReceivedHandler; + typedef std::function&) > StartDashboardSnapshotJobScheduleResponseReceivedHandler; typedef std::function&) > TagResourceResponseReceivedHandler; typedef std::function&) > UntagResourceResponseReceivedHandler; typedef std::function&) > UpdateAccountCustomizationResponseReceivedHandler; diff --git a/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/RestoreAnalysisRequest.h b/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/RestoreAnalysisRequest.h index d539f87ddf7..aec9173f882 100644 --- a/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/RestoreAnalysisRequest.h +++ b/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/RestoreAnalysisRequest.h @@ -11,6 +11,10 @@ namespace Aws { +namespace Http +{ + class URI; +} //namespace Http namespace QuickSight { namespace Model @@ -31,6 +35,8 @@ namespace Model AWS_QUICKSIGHT_API Aws::String SerializePayload() const override; + AWS_QUICKSIGHT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; + ///@{ /** @@ -59,6 +65,21 @@ namespace Model inline RestoreAnalysisRequest& WithAnalysisId(Aws::String&& value) { SetAnalysisId(std::move(value)); return *this;} inline RestoreAnalysisRequest& WithAnalysisId(const char* value) { SetAnalysisId(value); return *this;} ///@} + + ///@{ + /** + *

A boolean value that determines if the analysis will be restored to folders + * that it previously resided in. A True value restores analysis back + * to all folders that it previously resided in. A False value + * restores the analysis but does not restore the analysis back to all previously + * resided folders. Restoring a restricted analysis requires this parameter to be + * set to True.

+ */ + inline bool GetRestoreToFolders() const{ return m_restoreToFolders; } + inline bool RestoreToFoldersHasBeenSet() const { return m_restoreToFoldersHasBeenSet; } + inline void SetRestoreToFolders(bool value) { m_restoreToFoldersHasBeenSet = true; m_restoreToFolders = value; } + inline RestoreAnalysisRequest& WithRestoreToFolders(bool value) { SetRestoreToFolders(value); return *this;} + ///@} private: Aws::String m_awsAccountId; @@ -66,6 +87,9 @@ namespace Model Aws::String m_analysisId; bool m_analysisIdHasBeenSet = false; + + bool m_restoreToFolders; + bool m_restoreToFoldersHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/RestoreAnalysisResult.h b/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/RestoreAnalysisResult.h index 05c44a565db..df2a1446c27 100644 --- a/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/RestoreAnalysisResult.h +++ b/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/RestoreAnalysisResult.h @@ -6,6 +6,7 @@ #pragma once #include #include +#include #include namespace Aws @@ -77,6 +78,20 @@ namespace Model inline RestoreAnalysisResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline RestoreAnalysisResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} ///@} + + ///@{ + /** + *

A list of folder arns thatthe analysis failed to be restored to.

+ */ + inline const Aws::Vector& GetRestorationFailedFolderArns() const{ return m_restorationFailedFolderArns; } + inline void SetRestorationFailedFolderArns(const Aws::Vector& value) { m_restorationFailedFolderArns = value; } + inline void SetRestorationFailedFolderArns(Aws::Vector&& value) { m_restorationFailedFolderArns = std::move(value); } + inline RestoreAnalysisResult& WithRestorationFailedFolderArns(const Aws::Vector& value) { SetRestorationFailedFolderArns(value); return *this;} + inline RestoreAnalysisResult& WithRestorationFailedFolderArns(Aws::Vector&& value) { SetRestorationFailedFolderArns(std::move(value)); return *this;} + inline RestoreAnalysisResult& AddRestorationFailedFolderArns(const Aws::String& value) { m_restorationFailedFolderArns.push_back(value); return *this; } + inline RestoreAnalysisResult& AddRestorationFailedFolderArns(Aws::String&& value) { m_restorationFailedFolderArns.push_back(std::move(value)); return *this; } + inline RestoreAnalysisResult& AddRestorationFailedFolderArns(const char* value) { m_restorationFailedFolderArns.push_back(value); return *this; } + ///@} private: int m_status; @@ -86,6 +101,8 @@ namespace Model Aws::String m_analysisId; Aws::String m_requestId; + + Aws::Vector m_restorationFailedFolderArns; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/StartDashboardSnapshotJobScheduleRequest.h b/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/StartDashboardSnapshotJobScheduleRequest.h new file mode 100644 index 00000000000..164a6f02c41 --- /dev/null +++ b/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/StartDashboardSnapshotJobScheduleRequest.h @@ -0,0 +1,94 @@ +/** + * 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 QuickSight +{ +namespace Model +{ + + /** + */ + class StartDashboardSnapshotJobScheduleRequest : public QuickSightRequest + { + public: + AWS_QUICKSIGHT_API StartDashboardSnapshotJobScheduleRequest(); + + // 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 "StartDashboardSnapshotJobSchedule"; } + + AWS_QUICKSIGHT_API Aws::String SerializePayload() const override; + + + ///@{ + /** + *

The ID of the Amazon Web Services account that the dashboard snapshot job is + * executed in.

+ */ + inline const Aws::String& GetAwsAccountId() const{ return m_awsAccountId; } + inline bool AwsAccountIdHasBeenSet() const { return m_awsAccountIdHasBeenSet; } + inline void SetAwsAccountId(const Aws::String& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = value; } + inline void SetAwsAccountId(Aws::String&& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = std::move(value); } + inline void SetAwsAccountId(const char* value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId.assign(value); } + inline StartDashboardSnapshotJobScheduleRequest& WithAwsAccountId(const Aws::String& value) { SetAwsAccountId(value); return *this;} + inline StartDashboardSnapshotJobScheduleRequest& WithAwsAccountId(Aws::String&& value) { SetAwsAccountId(std::move(value)); return *this;} + inline StartDashboardSnapshotJobScheduleRequest& WithAwsAccountId(const char* value) { SetAwsAccountId(value); return *this;} + ///@} + + ///@{ + /** + *

The ID of the dashboard that you want to start a snapshot job schedule for. + *

+ */ + inline const Aws::String& GetDashboardId() const{ return m_dashboardId; } + inline bool DashboardIdHasBeenSet() const { return m_dashboardIdHasBeenSet; } + inline void SetDashboardId(const Aws::String& value) { m_dashboardIdHasBeenSet = true; m_dashboardId = value; } + inline void SetDashboardId(Aws::String&& value) { m_dashboardIdHasBeenSet = true; m_dashboardId = std::move(value); } + inline void SetDashboardId(const char* value) { m_dashboardIdHasBeenSet = true; m_dashboardId.assign(value); } + inline StartDashboardSnapshotJobScheduleRequest& WithDashboardId(const Aws::String& value) { SetDashboardId(value); return *this;} + inline StartDashboardSnapshotJobScheduleRequest& WithDashboardId(Aws::String&& value) { SetDashboardId(std::move(value)); return *this;} + inline StartDashboardSnapshotJobScheduleRequest& WithDashboardId(const char* value) { SetDashboardId(value); return *this;} + ///@} + + ///@{ + /** + *

The ID of the schedule that you want to start a snapshot job schedule for. + * The schedule ID can be found in the Amazon QuickSight console in the + * Schedules pane of the dashboard that the schedule is configured for.

+ */ + inline const Aws::String& GetScheduleId() const{ return m_scheduleId; } + inline bool ScheduleIdHasBeenSet() const { return m_scheduleIdHasBeenSet; } + inline void SetScheduleId(const Aws::String& value) { m_scheduleIdHasBeenSet = true; m_scheduleId = value; } + inline void SetScheduleId(Aws::String&& value) { m_scheduleIdHasBeenSet = true; m_scheduleId = std::move(value); } + inline void SetScheduleId(const char* value) { m_scheduleIdHasBeenSet = true; m_scheduleId.assign(value); } + inline StartDashboardSnapshotJobScheduleRequest& WithScheduleId(const Aws::String& value) { SetScheduleId(value); return *this;} + inline StartDashboardSnapshotJobScheduleRequest& WithScheduleId(Aws::String&& value) { SetScheduleId(std::move(value)); return *this;} + inline StartDashboardSnapshotJobScheduleRequest& WithScheduleId(const char* value) { SetScheduleId(value); return *this;} + ///@} + private: + + Aws::String m_awsAccountId; + bool m_awsAccountIdHasBeenSet = false; + + Aws::String m_dashboardId; + bool m_dashboardIdHasBeenSet = false; + + Aws::String m_scheduleId; + bool m_scheduleIdHasBeenSet = false; + }; + +} // namespace Model +} // namespace QuickSight +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/StartDashboardSnapshotJobScheduleResult.h b/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/StartDashboardSnapshotJobScheduleResult.h new file mode 100644 index 00000000000..0f50c80f008 --- /dev/null +++ b/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/StartDashboardSnapshotJobScheduleResult.h @@ -0,0 +1,63 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace QuickSight +{ +namespace Model +{ + class StartDashboardSnapshotJobScheduleResult + { + public: + AWS_QUICKSIGHT_API StartDashboardSnapshotJobScheduleResult(); + AWS_QUICKSIGHT_API StartDashboardSnapshotJobScheduleResult(const Aws::AmazonWebServiceResult& result); + AWS_QUICKSIGHT_API StartDashboardSnapshotJobScheduleResult& operator=(const Aws::AmazonWebServiceResult& result); + + + ///@{ + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + inline StartDashboardSnapshotJobScheduleResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + inline StartDashboardSnapshotJobScheduleResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + inline StartDashboardSnapshotJobScheduleResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + ///@} + + ///@{ + /** + *

The HTTP status of the request

+ */ + inline int GetStatus() const{ return m_status; } + inline void SetStatus(int value) { m_status = value; } + inline StartDashboardSnapshotJobScheduleResult& WithStatus(int value) { SetStatus(value); return *this;} + ///@} + private: + + Aws::String m_requestId; + + int m_status; + }; + +} // namespace Model +} // namespace QuickSight +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-quicksight/source/QuickSightClient.cpp b/generated/src/aws-cpp-sdk-quicksight/source/QuickSightClient.cpp index fc5b0302a44..2dfa2a17f5a 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/QuickSightClient.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/QuickSightClient.cpp @@ -164,6 +164,7 @@ #include #include #include +#include #include #include #include @@ -6176,6 +6177,53 @@ StartDashboardSnapshotJobOutcome QuickSightClient::StartDashboardSnapshotJob(con {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +StartDashboardSnapshotJobScheduleOutcome QuickSightClient::StartDashboardSnapshotJobSchedule(const StartDashboardSnapshotJobScheduleRequest& request) const +{ + AWS_OPERATION_GUARD(StartDashboardSnapshotJobSchedule); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, StartDashboardSnapshotJobSchedule, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.AwsAccountIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("StartDashboardSnapshotJobSchedule", "Required field: AwsAccountId, is not set"); + return StartDashboardSnapshotJobScheduleOutcome(Aws::Client::AWSError(QuickSightErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [AwsAccountId]", false)); + } + if (!request.DashboardIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("StartDashboardSnapshotJobSchedule", "Required field: DashboardId, is not set"); + return StartDashboardSnapshotJobScheduleOutcome(Aws::Client::AWSError(QuickSightErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [DashboardId]", false)); + } + if (!request.ScheduleIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("StartDashboardSnapshotJobSchedule", "Required field: ScheduleId, is not set"); + return StartDashboardSnapshotJobScheduleOutcome(Aws::Client::AWSError(QuickSightErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ScheduleId]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, StartDashboardSnapshotJobSchedule, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, StartDashboardSnapshotJobSchedule, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".StartDashboardSnapshotJobSchedule", + {{ 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( + [&]()-> StartDashboardSnapshotJobScheduleOutcome { + 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, StartDashboardSnapshotJobSchedule, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/accounts/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetAwsAccountId()); + endpointResolutionOutcome.GetResult().AddPathSegments("/dashboards/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetDashboardId()); + endpointResolutionOutcome.GetResult().AddPathSegments("/schedules/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetScheduleId()); + return StartDashboardSnapshotJobScheduleOutcome(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()}}); +} + TagResourceOutcome QuickSightClient::TagResource(const TagResourceRequest& request) const { AWS_OPERATION_GUARD(TagResource); diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/RestoreAnalysisRequest.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/RestoreAnalysisRequest.cpp index d49c0e8069f..7c95877beba 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/RestoreAnalysisRequest.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/RestoreAnalysisRequest.cpp @@ -5,16 +5,21 @@ #include #include +#include +#include #include using namespace Aws::QuickSight::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; +using namespace Aws::Http; RestoreAnalysisRequest::RestoreAnalysisRequest() : m_awsAccountIdHasBeenSet(false), - m_analysisIdHasBeenSet(false) + m_analysisIdHasBeenSet(false), + m_restoreToFolders(false), + m_restoreToFoldersHasBeenSet(false) { } @@ -23,6 +28,17 @@ Aws::String RestoreAnalysisRequest::SerializePayload() const return {}; } +void RestoreAnalysisRequest::AddQueryStringParameters(URI& uri) const +{ + Aws::StringStream ss; + if(m_restoreToFoldersHasBeenSet) + { + ss << m_restoreToFolders; + uri.AddQueryStringParameter("restore-to-folders", ss.str()); + ss.str(""); + } + +} diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/RestoreAnalysisResult.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/RestoreAnalysisResult.cpp index 7e087cb788c..ac8f7a7987d 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/RestoreAnalysisResult.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/RestoreAnalysisResult.cpp @@ -43,6 +43,15 @@ RestoreAnalysisResult& RestoreAnalysisResult::operator =(const Aws::AmazonWebSer } + if(jsonValue.ValueExists("RestorationFailedFolderArns")) + { + Aws::Utils::Array restorationFailedFolderArnsJsonList = jsonValue.GetArray("RestorationFailedFolderArns"); + for(unsigned restorationFailedFolderArnsIndex = 0; restorationFailedFolderArnsIndex < restorationFailedFolderArnsJsonList.GetLength(); ++restorationFailedFolderArnsIndex) + { + m_restorationFailedFolderArns.push_back(restorationFailedFolderArnsJsonList[restorationFailedFolderArnsIndex].AsString()); + } + } + const auto& headers = result.GetHeaderValueCollection(); const auto& requestIdIter = headers.find("x-amzn-requestid"); diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/StartDashboardSnapshotJobScheduleRequest.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/StartDashboardSnapshotJobScheduleRequest.cpp new file mode 100644 index 00000000000..5dd6c04b9aa --- /dev/null +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/StartDashboardSnapshotJobScheduleRequest.cpp @@ -0,0 +1,29 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::QuickSight::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +StartDashboardSnapshotJobScheduleRequest::StartDashboardSnapshotJobScheduleRequest() : + m_awsAccountIdHasBeenSet(false), + m_dashboardIdHasBeenSet(false), + m_scheduleIdHasBeenSet(false) +{ +} + +Aws::String StartDashboardSnapshotJobScheduleRequest::SerializePayload() const +{ + return {}; +} + + + + diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/StartDashboardSnapshotJobScheduleResult.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/StartDashboardSnapshotJobScheduleResult.cpp new file mode 100644 index 00000000000..70b5f99c8da --- /dev/null +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/StartDashboardSnapshotJobScheduleResult.cpp @@ -0,0 +1,46 @@ +/** + * 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::QuickSight::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +StartDashboardSnapshotJobScheduleResult::StartDashboardSnapshotJobScheduleResult() : + m_status(0) +{ +} + +StartDashboardSnapshotJobScheduleResult::StartDashboardSnapshotJobScheduleResult(const Aws::AmazonWebServiceResult& result) + : StartDashboardSnapshotJobScheduleResult() +{ + *this = result; +} + +StartDashboardSnapshotJobScheduleResult& StartDashboardSnapshotJobScheduleResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + AWS_UNREFERENCED_PARAM(result); + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + m_status = static_cast(result.GetResponseCode()); + + return *this; +} 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 9da8049393c..01fdf3e90aa 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 @@ -490,8 +490,11 @@ namespace Model * Access Management (IAM) accounts to database accounts. By default, mapping isn't * enabled.

For more information, see - * IAM Database Authentication in the Amazon Aurora User Guide.

- *

Valid for Cluster Type: Aurora DB clusters only

+ * IAM Database Authentication in the Amazon Aurora User Guide or IAM + * database authentication for MariaDB, MySQL, and PostgreSQL in the Amazon + * RDS User Guide.

Valid for Cluster Type: Aurora DB clusters and + * Multi-AZ DB clusters

*/ inline bool GetEnableIAMDatabaseAuthentication() const{ return m_enableIAMDatabaseAuthentication; } inline bool EnableIAMDatabaseAuthenticationHasBeenSet() const { return m_enableIAMDatabaseAuthenticationHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-rds/include/aws/rds/model/DeleteDBShardGroupRequest.h b/generated/src/aws-cpp-sdk-rds/include/aws/rds/model/DeleteDBShardGroupRequest.h index 6fbb94a37de..752c25fc6c7 100644 --- a/generated/src/aws-cpp-sdk-rds/include/aws/rds/model/DeleteDBShardGroupRequest.h +++ b/generated/src/aws-cpp-sdk-rds/include/aws/rds/model/DeleteDBShardGroupRequest.h @@ -38,7 +38,7 @@ namespace Model ///@{ /** - *

Teh name of the DB shard group to delete.

+ *

The name of the DB shard group to delete.

*/ inline const Aws::String& GetDBShardGroupIdentifier() const{ return m_dBShardGroupIdentifier; } inline bool DBShardGroupIdentifierHasBeenSet() const { return m_dBShardGroupIdentifierHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-rds/include/aws/rds/model/DescribeDBShardGroupsRequest.h b/generated/src/aws-cpp-sdk-rds/include/aws/rds/model/DescribeDBShardGroupsRequest.h index 0b0094ea8d1..7bd153ef3e1 100644 --- a/generated/src/aws-cpp-sdk-rds/include/aws/rds/model/DescribeDBShardGroupsRequest.h +++ b/generated/src/aws-cpp-sdk-rds/include/aws/rds/model/DescribeDBShardGroupsRequest.h @@ -40,11 +40,10 @@ namespace Model ///@{ /** - *

The user-supplied DB shard group identifier or the Amazon Resource Name (ARN) - * of the DB shard group. If this parameter is specified, information for only the - * specific DB shard group is returned. This parameter isn't case-sensitive.

- *

Constraints:

  • If supplied, must match an existing DB shard - * group identifier.

+ *

The user-supplied DB shard group identifier. If this parameter is specified, + * information for only the specific DB shard group is returned. This parameter + * isn't case-sensitive.

Constraints:

  • If supplied, must + * match an existing DB shard group identifier.

*/ inline const Aws::String& GetDBShardGroupIdentifier() const{ return m_dBShardGroupIdentifier; } inline bool DBShardGroupIdentifierHasBeenSet() const { return m_dBShardGroupIdentifierHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-rds/include/aws/rds/model/ModifyDBClusterRequest.h b/generated/src/aws-cpp-sdk-rds/include/aws/rds/model/ModifyDBClusterRequest.h index f79258446b7..7f474cdb54a 100644 --- a/generated/src/aws-cpp-sdk-rds/include/aws/rds/model/ModifyDBClusterRequest.h +++ b/generated/src/aws-cpp-sdk-rds/include/aws/rds/model/ModifyDBClusterRequest.h @@ -245,8 +245,11 @@ namespace Model * Access Management (IAM) accounts to database accounts. By default, mapping isn't * enabled.

For more information, see - * IAM Database Authentication in the Amazon Aurora User Guide.

- *

Valid for Cluster Type: Aurora DB clusters only

+ * IAM Database Authentication in the Amazon Aurora User Guide or IAM + * database authentication for MariaDB, MySQL, and PostgreSQL in the Amazon + * RDS User Guide.

Valid for Cluster Type: Aurora DB clusters and + * Multi-AZ DB clusters

*/ inline bool GetEnableIAMDatabaseAuthentication() const{ return m_enableIAMDatabaseAuthentication; } inline bool EnableIAMDatabaseAuthenticationHasBeenSet() const { return m_enableIAMDatabaseAuthenticationHasBeenSet; } @@ -613,7 +616,7 @@ namespace Model *

For more information, see * Using Amazon Performance Insights in the Amazon RDS User Guide.

- *

Valid for Cluster Type: Multi-AZ DB clusters only

+ *

Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters

*/ inline bool GetEnablePerformanceInsights() const{ return m_enablePerformanceInsights; } inline bool EnablePerformanceInsightsHasBeenSet() const { return m_enablePerformanceInsightsHasBeenSet; } 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 afcf8d5cec7..655cc6ac814 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 @@ -278,8 +278,11 @@ namespace Model * Access Management (IAM) accounts to database accounts. By default, mapping isn't * enabled.

For more information, see - * IAM Database Authentication in the Amazon Aurora User Guide.

- *

Valid for: Aurora DB clusters only

+ * IAM Database Authentication in the Amazon Aurora User Guide or + * IAM database authentication for MariaDB, MySQL, and PostgreSQL in the + * Amazon RDS User Guide.

Valid for: Aurora DB clusters and Multi-AZ + * DB clusters

*/ inline bool GetEnableIAMDatabaseAuthentication() const{ return m_enableIAMDatabaseAuthentication; } inline bool EnableIAMDatabaseAuthenticationHasBeenSet() const { return m_enableIAMDatabaseAuthenticationHasBeenSet; } 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 6d486e37168..919c32e2fa2 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 @@ -243,8 +243,11 @@ namespace Model * Access Management (IAM) accounts to database accounts. By default, mapping isn't * enabled.

For more information, see - * IAM Database Authentication in the Amazon Aurora User Guide.

- *

Valid for: Aurora DB clusters only

+ * IAM Database Authentication in the Amazon Aurora User Guide or + * IAM database authentication for MariaDB, MySQL, and PostgreSQL in the + * Amazon RDS User Guide.

Valid for: Aurora DB clusters and Multi-AZ + * DB clusters

*/ inline bool GetEnableIAMDatabaseAuthentication() const{ return m_enableIAMDatabaseAuthentication; } inline bool EnableIAMDatabaseAuthenticationHasBeenSet() const { return m_enableIAMDatabaseAuthenticationHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-rds/include/aws/rds/model/SwitchoverBlueGreenDeploymentRequest.h b/generated/src/aws-cpp-sdk-rds/include/aws/rds/model/SwitchoverBlueGreenDeploymentRequest.h index 3663fd9109e..a5fa350f273 100644 --- a/generated/src/aws-cpp-sdk-rds/include/aws/rds/model/SwitchoverBlueGreenDeploymentRequest.h +++ b/generated/src/aws-cpp-sdk-rds/include/aws/rds/model/SwitchoverBlueGreenDeploymentRequest.h @@ -38,8 +38,8 @@ namespace Model ///@{ /** - *

The unique identifier of the blue/green deployment.

Constraints:

- *
  • Must match an existing blue/green deployment identifier.

  • + *

    The resource ID of the blue/green deployment.

    Constraints:

      + *
    • Must match an existing blue/green deployment resource ID.

    • *
    */ inline const Aws::String& GetBlueGreenDeploymentIdentifier() const{ return m_blueGreenDeploymentIdentifier; } 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 1d76fa16b48..d26b9630ff1 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.428" +#define AWS_SDK_VERSION_STRING "1.11.429" #define AWS_SDK_VERSION_MAJOR 1 #define AWS_SDK_VERSION_MINOR 11 -#define AWS_SDK_VERSION_PATCH 428 +#define AWS_SDK_VERSION_PATCH 429 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 3982bc494f4..081f0f2300e 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 @@ -636,7 +636,7 @@ {"shape":"InternalServerException"}, {"shape":"ResourceNotFoundException"} ], - "documentation":"

    Gets information about a data ingestion job. Data sources are ingested into your knowledge base so that Large Lanaguage Models (LLMs) can use your data.

    " + "documentation":"

    Gets information about a data ingestion job. Data sources are ingested into your knowledge base so that Large Language Models (LLMs) can use your data.

    " }, "GetKnowledgeBase":{ "name":"GetKnowledgeBase", @@ -6469,10 +6469,6 @@ "shape":"Temperature", "documentation":"

    Controls the randomness of the response. Choose a lower value for more predictable outputs and a higher value for more surprising outputs.

    " }, - "topK":{ - "shape":"TopK", - "documentation":"

    The number of most-likely candidates that the model considers for the next token during generation.

    " - }, "topP":{ "shape":"TopP", "documentation":"

    The percentage of most-likely candidates that the model considers for the next token.

    " @@ -6583,6 +6579,7 @@ "type":"structure", "required":[ "name", + "templateConfiguration", "templateType" ], "members":{ @@ -6617,7 +6614,7 @@ "PromptVariantList":{ "type":"list", "member":{"shape":"PromptVariant"}, - "max":3, + "max":1, "min":0, "sensitive":true }, diff --git a/tools/code-generation/api-descriptions/dataexchange-2017-07-25.normal.json b/tools/code-generation/api-descriptions/dataexchange-2017-07-25.normal.json index d56b59d700a..ead739dc381 100644 --- a/tools/code-generation/api-descriptions/dataexchange-2017-07-25.normal.json +++ b/tools/code-generation/api-descriptions/dataexchange-2017-07-25.normal.json @@ -2,9 +2,10 @@ "version":"2.0", "metadata":{ "apiVersion":"2017-07-25", + "auth":["aws.auth#sigv4"], "endpointPrefix":"dataexchange", - "jsonVersion":"1.1", "protocol":"rest-json", + "protocols":["rest-json"], "serviceFullName":"AWS Data Exchange", "serviceId":"DataExchange", "signatureVersion":"v4", @@ -12,6 +13,25 @@ "uid":"dataexchange-2017-07-25" }, "operations":{ + "AcceptDataGrant":{ + "name":"AcceptDataGrant", + "http":{ + "method":"POST", + "requestUri":"/v1/data-grants/{DataGrantArn}/accept", + "responseCode":200 + }, + "input":{"shape":"AcceptDataGrantRequest"}, + "output":{"shape":"AcceptDataGrantResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ConflictException"}, + {"shape":"ValidationException"}, + {"shape":"InternalServerException"} + ], + "documentation":"

    This operation accepts a data grant.

    " + }, "CancelJob":{ "name":"CancelJob", "http":{ @@ -29,6 +49,25 @@ ], "documentation":"

    This operation cancels a job. Jobs can be cancelled only when they are in the WAITING state.

    " }, + "CreateDataGrant":{ + "name":"CreateDataGrant", + "http":{ + "method":"POST", + "requestUri":"/v1/data-grants", + "responseCode":201 + }, + "input":{"shape":"CreateDataGrantRequest"}, + "output":{"shape":"CreateDataGrantResponse"}, + "errors":[ + {"shape":"ServiceLimitExceededException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ValidationException"}, + {"shape":"InternalServerException"} + ], + "documentation":"

    This operation creates a data grant.

    " + }, "CreateDataSet":{ "name":"CreateDataSet", "http":{ @@ -120,6 +159,23 @@ ], "documentation":"

    This operation deletes an asset.

    " }, + "DeleteDataGrant":{ + "name":"DeleteDataGrant", + "http":{ + "method":"DELETE", + "requestUri":"/v1/data-grants/{DataGrantId}", + "responseCode":204 + }, + "input":{"shape":"DeleteDataGrantRequest"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ValidationException"}, + {"shape":"InternalServerException"} + ], + "documentation":"

    This operation deletes a data grant.

    " + }, "DeleteDataSet":{ "name":"DeleteDataSet", "http":{ @@ -189,6 +245,24 @@ ], "documentation":"

    This operation returns information about an asset.

    " }, + "GetDataGrant":{ + "name":"GetDataGrant", + "http":{ + "method":"GET", + "requestUri":"/v1/data-grants/{DataGrantId}", + "responseCode":200 + }, + "input":{"shape":"GetDataGrantRequest"}, + "output":{"shape":"GetDataGrantResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ValidationException"}, + {"shape":"InternalServerException"} + ], + "documentation":"

    This operation returns information about a data grant.

    " + }, "GetDataSet":{ "name":"GetDataSet", "http":{ @@ -240,6 +314,24 @@ ], "documentation":"

    This operation returns information about a job.

    " }, + "GetReceivedDataGrant":{ + "name":"GetReceivedDataGrant", + "http":{ + "method":"GET", + "requestUri":"/v1/received-data-grants/{DataGrantArn}", + "responseCode":200 + }, + "input":{"shape":"GetReceivedDataGrantRequest"}, + "output":{"shape":"GetReceivedDataGrantResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ValidationException"}, + {"shape":"InternalServerException"} + ], + "documentation":"

    This operation returns information about a received data grant.

    " + }, "GetRevision":{ "name":"GetRevision", "http":{ @@ -257,6 +349,24 @@ ], "documentation":"

    This operation returns information about a revision.

    " }, + "ListDataGrants":{ + "name":"ListDataGrants", + "http":{ + "method":"GET", + "requestUri":"/v1/data-grants", + "responseCode":200 + }, + "input":{"shape":"ListDataGrantsRequest"}, + "output":{"shape":"ListDataGrantsResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ValidationException"}, + {"shape":"InternalServerException"} + ], + "documentation":"

    This operation returns information about all data grants.

    " + }, "ListDataSetRevisions":{ "name":"ListDataSetRevisions", "http":{ @@ -289,7 +399,7 @@ {"shape":"ValidationException"}, {"shape":"InternalServerException"} ], - "documentation":"

    This operation lists your data sets. When listing by origin OWNED, results are sorted by CreatedAt in descending order. When listing by origin ENTITLED, there is no order and the maxResults parameter is ignored.

    " + "documentation":"

    This operation lists your data sets. When listing by origin OWNED, results are sorted by CreatedAt in descending order. When listing by origin ENTITLED, there is no order.

    " }, "ListEventActions":{ "name":"ListEventActions", @@ -325,6 +435,24 @@ ], "documentation":"

    This operation lists your jobs sorted by CreatedAt in descending order.

    " }, + "ListReceivedDataGrants":{ + "name":"ListReceivedDataGrants", + "http":{ + "method":"GET", + "requestUri":"/v1/received-data-grants", + "responseCode":200 + }, + "input":{"shape":"ListReceivedDataGrantsRequest"}, + "output":{"shape":"ListReceivedDataGrantsResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ValidationException"}, + {"shape":"InternalServerException"} + ], + "documentation":"

    This operation returns information about all received data grants.

    " + }, "ListRevisionAssets":{ "name":"ListRevisionAssets", "http":{ @@ -526,6 +654,97 @@ } }, "shapes":{ + "AcceptDataGrantRequest":{ + "type":"structure", + "required":["DataGrantArn"], + "members":{ + "DataGrantArn":{ + "shape":"DataGrantArn", + "documentation":"

    The Amazon Resource Name (ARN) of the data grant to accept.

    ", + "location":"uri", + "locationName":"DataGrantArn" + } + } + }, + "AcceptDataGrantResponse":{ + "type":"structure", + "required":[ + "Name", + "ReceiverPrincipal", + "AcceptanceState", + "GrantDistributionScope", + "DataSetId", + "Id", + "Arn", + "CreatedAt", + "UpdatedAt" + ], + "members":{ + "Name":{ + "shape":"DataGrantName", + "documentation":"

    The name of the accepted data grant.

    " + }, + "SenderPrincipal":{ + "shape":"SenderPrincipal", + "documentation":"

    The Amazon Web Services account ID of the data grant sender.

    " + }, + "ReceiverPrincipal":{ + "shape":"ReceiverPrincipal", + "documentation":"

    The Amazon Web Services account ID of the data grant receiver.

    " + }, + "Description":{ + "shape":"DataGrantDescription", + "documentation":"

    The description of the accepted data grant.

    " + }, + "AcceptanceState":{ + "shape":"DataGrantAcceptanceState", + "documentation":"

    The acceptance state of the data grant.

    " + }, + "AcceptedAt":{ + "shape":"Timestamp", + "documentation":"

    The timestamp of when the data grant was accepted.

    " + }, + "EndsAt":{ + "shape":"Timestamp", + "documentation":"

    The timestamp of when access to the associated data set ends.

    " + }, + "GrantDistributionScope":{ + "shape":"GrantDistributionScope", + "documentation":"

    The distribution scope for the data grant.

    " + }, + "DataSetId":{ + "shape":"Id", + "documentation":"

    The ID of the data set associated to the data grant.

    " + }, + "Id":{ + "shape":"Id", + "documentation":"

    The ID of the data grant.

    " + }, + "Arn":{ + "shape":"Arn", + "documentation":"

    The Amazon Resource Name (ARN) of the accepted data grant.

    " + }, + "CreatedAt":{ + "shape":"Timestamp", + "documentation":"

    The timestamp of when the data grant was created.

    " + }, + "UpdatedAt":{ + "shape":"Timestamp", + "documentation":"

    The timestamp of when the data grant was last updated.

    " + } + } + }, + "AcceptanceStateFilterValue":{ + "type":"string", + "enum":[ + "PENDING_RECEIVER_ACCEPTANCE", + "ACCEPTED" + ] + }, + "AcceptanceStateFilterValues":{ + "type":"list", + "member":{"shape":"AcceptanceStateFilterValue"} + }, "AccessDeniedException":{ "type":"structure", "required":["Message"], @@ -820,6 +1039,123 @@ }, "exception":true }, + "CreateDataGrantRequest":{ + "type":"structure", + "required":[ + "Name", + "GrantDistributionScope", + "ReceiverPrincipal", + "SourceDataSetId" + ], + "members":{ + "Name":{ + "shape":"DataGrantName", + "documentation":"

    The name of the data grant.

    " + }, + "GrantDistributionScope":{ + "shape":"GrantDistributionScope", + "documentation":"

    The distribution scope of the data grant.

    " + }, + "ReceiverPrincipal":{ + "shape":"ReceiverPrincipal", + "documentation":"

    The Amazon Web Services account ID of the data grant receiver.

    " + }, + "SourceDataSetId":{ + "shape":"Id", + "documentation":"

    The ID of the data set used to create the data grant.

    " + }, + "EndsAt":{ + "shape":"Timestamp", + "documentation":"

    The timestamp of when access to the associated data set ends.

    " + }, + "Description":{ + "shape":"Description", + "documentation":"

    The description of the data grant.

    " + }, + "Tags":{ + "shape":"MapOf__string", + "documentation":"

    The tags to add to the data grant. A tag is a key-value pair.

    " + } + } + }, + "CreateDataGrantResponse":{ + "type":"structure", + "required":[ + "Name", + "SenderPrincipal", + "ReceiverPrincipal", + "AcceptanceState", + "GrantDistributionScope", + "DataSetId", + "SourceDataSetId", + "Id", + "Arn", + "CreatedAt", + "UpdatedAt" + ], + "members":{ + "Name":{ + "shape":"DataGrantName", + "documentation":"

    The name of the data grant.

    " + }, + "SenderPrincipal":{ + "shape":"SenderPrincipal", + "documentation":"

    The Amazon Web Services account ID of the data grant sender.

    " + }, + "ReceiverPrincipal":{ + "shape":"ReceiverPrincipal", + "documentation":"

    The Amazon Web Services account ID of the data grant receiver.

    " + }, + "Description":{ + "shape":"DataGrantDescription", + "documentation":"

    The description of the data grant.

    " + }, + "AcceptanceState":{ + "shape":"DataGrantAcceptanceState", + "documentation":"

    The acceptance state of the data grant.

    " + }, + "AcceptedAt":{ + "shape":"Timestamp", + "documentation":"

    The timestamp of when the data grant was accepted.

    " + }, + "EndsAt":{ + "shape":"Timestamp", + "documentation":"

    The timestamp of when access to the associated data set ends.

    " + }, + "GrantDistributionScope":{ + "shape":"GrantDistributionScope", + "documentation":"

    The distribution scope for the data grant.

    " + }, + "DataSetId":{ + "shape":"Id", + "documentation":"

    The ID of the data set associated to the data grant.

    " + }, + "SourceDataSetId":{ + "shape":"Id", + "documentation":"

    The ID of the data set used to create the data grant.

    " + }, + "Id":{ + "shape":"Id", + "documentation":"

    The ID of the data grant.

    " + }, + "Arn":{ + "shape":"Arn", + "documentation":"

    The Amazon Resource Name (ARN) of the data grant.

    " + }, + "CreatedAt":{ + "shape":"Timestamp", + "documentation":"

    The timestamp of when the data grant was created.

    " + }, + "UpdatedAt":{ + "shape":"Timestamp", + "documentation":"

    The timestamp of when the data grant was last updated.

    " + }, + "Tags":{ + "shape":"MapOf__string", + "documentation":"

    The tags associated to the data grant. A tag is a key-value pair.

    " + } + } + }, "CreateDataSetRequest":{ "type":"structure", "required":[ @@ -1114,6 +1450,97 @@ }, "documentation":"

    Details about the response of the operation to create an S3 data access from an S3 bucket.

    " }, + "DataGrantAcceptanceState":{ + "type":"string", + "enum":[ + "PENDING_RECEIVER_ACCEPTANCE", + "ACCEPTED" + ] + }, + "DataGrantArn":{ + "type":"string", + "pattern":"arn:aws:dataexchange:[\\-a-z0-9]*:(\\d{12}):data-grants\\/[a-zA-Z0-9]{30,40}" + }, + "DataGrantDescription":{ + "type":"string", + "max":16384, + "min":1 + }, + "DataGrantId":{ + "type":"string", + "pattern":"[a-zA-Z0-9]{30,40}$|^arn:aws:dataexchange:[\\-a-z0-9]*:(\\d{12}):data-grants\\/[a-zA-Z0-9]{30,40}" + }, + "DataGrantName":{ + "type":"string", + "max":256, + "min":1 + }, + "DataGrantSummaryEntry":{ + "type":"structure", + "required":[ + "Name", + "SenderPrincipal", + "ReceiverPrincipal", + "AcceptanceState", + "DataSetId", + "SourceDataSetId", + "Id", + "Arn", + "CreatedAt", + "UpdatedAt" + ], + "members":{ + "Name":{ + "shape":"DataGrantName", + "documentation":"

    The name of the data grant.

    " + }, + "SenderPrincipal":{ + "shape":"SenderPrincipal", + "documentation":"

    The Amazon Web Services account ID of the data grant sender.

    " + }, + "ReceiverPrincipal":{ + "shape":"ReceiverPrincipal", + "documentation":"

    The Amazon Web Services account ID of the data grant receiver.

    " + }, + "AcceptanceState":{ + "shape":"DataGrantAcceptanceState", + "documentation":"

    The acceptance state of the data grant.

    " + }, + "AcceptedAt":{ + "shape":"Timestamp", + "documentation":"

    The timestamp of when the data grant was accepted.

    " + }, + "EndsAt":{ + "shape":"Timestamp", + "documentation":"

    The timestamp of when access to the associated data set ends.

    " + }, + "DataSetId":{ + "shape":"Id", + "documentation":"

    The ID of the data set associated to the data grant.

    " + }, + "SourceDataSetId":{ + "shape":"Id", + "documentation":"

    The ID of the data set used to create the data grant.

    " + }, + "Id":{ + "shape":"Id", + "documentation":"

    The ID of the data grant.

    " + }, + "Arn":{ + "shape":"Arn", + "documentation":"

    The Amazon Resource Name (ARN) of the data grant.

    " + }, + "CreatedAt":{ + "shape":"Timestamp", + "documentation":"

    The timestamp of when the data grant was created.

    " + }, + "UpdatedAt":{ + "shape":"Timestamp", + "documentation":"

    The timestamp of when the data grant was last updated.

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

    Information about a data grant.

    " + }, "DataSetEntry":{ "type":"structure", "required":[ @@ -1241,6 +1668,18 @@ } } }, + "DeleteDataGrantRequest":{ + "type":"structure", + "required":["DataGrantId"], + "members":{ + "DataGrantId":{ + "shape":"DataGrantId", + "documentation":"

    The ID of the data grant to delete.

    ", + "location":"uri", + "locationName":"DataGrantId" + } + } + }, "DeleteDataSetRequest":{ "type":"structure", "required":["DataSetId"], @@ -1611,6 +2050,96 @@ } } }, + "GetDataGrantRequest":{ + "type":"structure", + "required":["DataGrantId"], + "members":{ + "DataGrantId":{ + "shape":"DataGrantId", + "documentation":"

    The ID of the data grant.

    ", + "location":"uri", + "locationName":"DataGrantId" + } + } + }, + "GetDataGrantResponse":{ + "type":"structure", + "required":[ + "Name", + "SenderPrincipal", + "ReceiverPrincipal", + "AcceptanceState", + "GrantDistributionScope", + "DataSetId", + "SourceDataSetId", + "Id", + "Arn", + "CreatedAt", + "UpdatedAt" + ], + "members":{ + "Name":{ + "shape":"DataGrantName", + "documentation":"

    The name of the data grant.

    " + }, + "SenderPrincipal":{ + "shape":"SenderPrincipal", + "documentation":"

    The Amazon Web Services account ID of the data grant sender.

    " + }, + "ReceiverPrincipal":{ + "shape":"ReceiverPrincipal", + "documentation":"

    The Amazon Web Services account ID of the data grant receiver.

    " + }, + "Description":{ + "shape":"DataGrantDescription", + "documentation":"

    The description of the data grant.

    " + }, + "AcceptanceState":{ + "shape":"DataGrantAcceptanceState", + "documentation":"

    The acceptance state of the data grant.

    " + }, + "AcceptedAt":{ + "shape":"Timestamp", + "documentation":"

    The timestamp of when the data grant was accepted.

    " + }, + "EndsAt":{ + "shape":"Timestamp", + "documentation":"

    The timestamp of when access to the associated data set ends.

    " + }, + "GrantDistributionScope":{ + "shape":"GrantDistributionScope", + "documentation":"

    The distribution scope for the data grant.

    " + }, + "DataSetId":{ + "shape":"Id", + "documentation":"

    The ID of the data set associated to the data grant.

    " + }, + "SourceDataSetId":{ + "shape":"Id", + "documentation":"

    The ID of the data set used to create the data grant.

    " + }, + "Id":{ + "shape":"Id", + "documentation":"

    The ID of the data grant.

    " + }, + "Arn":{ + "shape":"Arn", + "documentation":"

    The Amazon Resource Name (ARN) of the data grant.

    " + }, + "CreatedAt":{ + "shape":"Timestamp", + "documentation":"

    The timestamp of when the data grant was created.

    " + }, + "UpdatedAt":{ + "shape":"Timestamp", + "documentation":"

    The timestamp of when the data grant was last updated.

    " + }, + "Tags":{ + "shape":"MapOf__string", + "documentation":"

    The tags associated to the data grant. A tag is a key-value pair.

    " + } + } + }, "GetDataSetRequest":{ "type":"structure", "required":["DataSetId"], @@ -1762,6 +2291,86 @@ } } }, + "GetReceivedDataGrantRequest":{ + "type":"structure", + "required":["DataGrantArn"], + "members":{ + "DataGrantArn":{ + "shape":"DataGrantArn", + "documentation":"

    The Amazon Resource Name (ARN) of the data grant.

    ", + "location":"uri", + "locationName":"DataGrantArn" + } + } + }, + "GetReceivedDataGrantResponse":{ + "type":"structure", + "required":[ + "Name", + "ReceiverPrincipal", + "AcceptanceState", + "GrantDistributionScope", + "DataSetId", + "Id", + "Arn", + "CreatedAt", + "UpdatedAt" + ], + "members":{ + "Name":{ + "shape":"DataGrantName", + "documentation":"

    The name of the data grant.

    " + }, + "SenderPrincipal":{ + "shape":"SenderPrincipal", + "documentation":"

    The Amazon Web Services account ID of the data grant sender.

    " + }, + "ReceiverPrincipal":{ + "shape":"ReceiverPrincipal", + "documentation":"

    The Amazon Web Services account ID of the data grant receiver.

    " + }, + "Description":{ + "shape":"DataGrantDescription", + "documentation":"

    The description of the data grant.

    " + }, + "AcceptanceState":{ + "shape":"DataGrantAcceptanceState", + "documentation":"

    The acceptance state of the data grant.

    " + }, + "AcceptedAt":{ + "shape":"Timestamp", + "documentation":"

    The timestamp of when the data grant was accepted.

    " + }, + "EndsAt":{ + "shape":"Timestamp", + "documentation":"

    The timestamp of when access to the associated data set ends.

    " + }, + "GrantDistributionScope":{ + "shape":"GrantDistributionScope", + "documentation":"

    The distribution scope for the data grant.

    " + }, + "DataSetId":{ + "shape":"Id", + "documentation":"

    The ID of the data set associated to the data grant.

    " + }, + "Id":{ + "shape":"Id", + "documentation":"

    The ID of the data grant.

    " + }, + "Arn":{ + "shape":"Arn", + "documentation":"

    The Amazon Resource Name (ARN) of the data grant.

    " + }, + "CreatedAt":{ + "shape":"Timestamp", + "documentation":"

    The timestamp of when the data grant was created.

    " + }, + "UpdatedAt":{ + "shape":"Timestamp", + "documentation":"

    The timestamp of when the data grant was last updated.

    " + } + } + }, "GetRevisionRequest":{ "type":"structure", "required":[ @@ -1836,6 +2445,13 @@ } } }, + "GrantDistributionScope":{ + "type":"string", + "enum":[ + "AWS_ORGANIZATION", + "NONE" + ] + }, "Id":{"type":"string"}, "ImportAssetFromApiGatewayApiRequestDetails":{ "type":"structure", @@ -2474,9 +3090,42 @@ "Revisions per AWS Lake Formation data permission data set", "Revisions per Amazon S3 data access data set", "Amazon S3 data access assets per revision", - "Concurrent in progress jobs to create Amazon S3 data access assets from S3 buckets" + "Concurrent in progress jobs to create Amazon S3 data access assets from S3 buckets", + "Active and pending data grants", + "Pending data grants per consumer" ] }, + "ListDataGrantsRequest":{ + "type":"structure", + "members":{ + "MaxResults":{ + "shape":"MaxResults", + "documentation":"

    The maximum number of results to be included in the next page.

    ", + "box":true, + "location":"querystring", + "locationName":"maxResults" + }, + "NextToken":{ + "shape":"__string", + "documentation":"

    The pagination token used to retrieve the next page of results for this operation.

    ", + "location":"querystring", + "locationName":"nextToken" + } + } + }, + "ListDataGrantsResponse":{ + "type":"structure", + "members":{ + "DataGrantSummaries":{ + "shape":"ListOfDataGrantSummaryEntry", + "documentation":"

    An object that contains a list of data grant information.

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

    The pagination token used to retrieve the next page of results for this operation.

    " + } + } + }, "ListDataSetRevisionsRequest":{ "type":"structure", "required":["DataSetId"], @@ -2640,6 +3289,10 @@ "type":"list", "member":{"shape":"AssetSourceEntry"} }, + "ListOfDataGrantSummaryEntry":{ + "type":"list", + "member":{"shape":"DataGrantSummaryEntry"} + }, "ListOfDataSetEntry":{ "type":"list", "member":{"shape":"DataSetEntry"} @@ -2682,6 +3335,10 @@ "type":"list", "member":{"shape":"LakeFormationTagPolicyDetails"} }, + "ListOfReceivedDataGrantSummariesEntry":{ + "type":"list", + "member":{"shape":"ReceivedDataGrantSummariesEntry"} + }, "ListOfRedshiftDataShareAssetSourceEntry":{ "type":"list", "member":{"shape":"RedshiftDataShareAssetSourceEntry"} @@ -2714,6 +3371,43 @@ "type":"list", "member":{"shape":"__string"} }, + "ListReceivedDataGrantsRequest":{ + "type":"structure", + "members":{ + "MaxResults":{ + "shape":"MaxResults", + "documentation":"

    The maximum number of results to be included in the next page.

    ", + "box":true, + "location":"querystring", + "locationName":"maxResults" + }, + "NextToken":{ + "shape":"__string", + "documentation":"

    The pagination token used to retrieve the next page of results for this operation.

    ", + "location":"querystring", + "locationName":"nextToken" + }, + "AcceptanceState":{ + "shape":"AcceptanceStateFilterValues", + "documentation":"

    The acceptance state of the data grants to list.

    ", + "location":"querystring", + "locationName":"acceptanceState" + } + } + }, + "ListReceivedDataGrantsResponse":{ + "type":"structure", + "members":{ + "DataGrantSummaries":{ + "shape":"ListOfReceivedDataGrantSummariesEntry", + "documentation":"

    An object that contains a list of received data grant information.

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

    The pagination token used to retrieve the next page of results for this operation.

    " + } + } + }, "ListRevisionAssetsRequest":{ "type":"structure", "required":[ @@ -2834,6 +3528,10 @@ "ProductId":{ "shape":"__string", "documentation":"

    The product ID of the origin of the data set.

    " + }, + "DataGrantId":{ + "shape":"__string", + "documentation":"

    The ID of the data grant.

    " } }, "documentation":"

    Details about the origin of the data set.

    " @@ -2842,6 +3540,71 @@ "type":"string", "enum":["REST"] }, + "ReceivedDataGrantSummariesEntry":{ + "type":"structure", + "required":[ + "Name", + "SenderPrincipal", + "ReceiverPrincipal", + "AcceptanceState", + "DataSetId", + "Id", + "Arn", + "CreatedAt", + "UpdatedAt" + ], + "members":{ + "Name":{ + "shape":"DataGrantName", + "documentation":"

    The name of the data grant.

    " + }, + "SenderPrincipal":{ + "shape":"SenderPrincipal", + "documentation":"

    The Amazon Web Services account ID of the data grant sender.

    " + }, + "ReceiverPrincipal":{ + "shape":"ReceiverPrincipal", + "documentation":"

    The Amazon Web Services account ID of the data grant receiver.

    " + }, + "AcceptanceState":{ + "shape":"DataGrantAcceptanceState", + "documentation":"

    The acceptance state of the data grant.

    " + }, + "AcceptedAt":{ + "shape":"Timestamp", + "documentation":"

    The timestamp of when the data grant was accepted.

    " + }, + "EndsAt":{ + "shape":"Timestamp", + "documentation":"

    The timestamp of when access to the associated data set ends.

    " + }, + "DataSetId":{ + "shape":"Id", + "documentation":"

    The ID of the data set associated to the data grant.

    " + }, + "Id":{ + "shape":"Id", + "documentation":"

    The ID of the data grant.

    " + }, + "Arn":{ + "shape":"Arn", + "documentation":"

    The Amazon Resource Name (ARN) of the data grant.

    " + }, + "CreatedAt":{ + "shape":"Timestamp", + "documentation":"

    The timestamp of when the data grant was created.

    " + }, + "UpdatedAt":{ + "shape":"Timestamp", + "documentation":"

    The timestamp of when the data grant was last updated.

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

    Information about a received data grant.

    " + }, + "ReceiverPrincipal":{ + "type":"string", + "pattern":"\\d{12}" + }, "RedshiftDataShareAsset":{ "type":"structure", "required":["Arn"], @@ -2971,7 +3734,8 @@ "REVISION", "ASSET", "JOB", - "EVENT_ACTION" + "EVENT_ACTION", + "DATA_GRANT" ] }, "ResponseDetails":{ @@ -3440,6 +4204,10 @@ "members":{ } }, + "SenderPrincipal":{ + "type":"string", + "pattern":"\\d{12}" + }, "ServerSideEncryptionTypes":{ "type":"string", "enum":[ diff --git a/tools/code-generation/api-descriptions/ecs-2014-11-13.normal.json b/tools/code-generation/api-descriptions/ecs-2014-11-13.normal.json index 2ba4cb803ef..b94fa3fb1fe 100644 --- a/tools/code-generation/api-descriptions/ecs-2014-11-13.normal.json +++ b/tools/code-generation/api-descriptions/ecs-2014-11-13.normal.json @@ -4860,7 +4860,7 @@ }, "referenceId":{ "shape":"String", - "documentation":"

    The reference ID to use for the task. The reference ID can have a maximum length of 1024 characters.

    " + "documentation":"

    This parameter is only used by Amazon ECS. It is not intended for use by customers.

    " }, "startedBy":{ "shape":"String", @@ -5493,7 +5493,7 @@ }, "referenceId":{ "shape":"String", - "documentation":"

    The reference ID to use for the task.

    " + "documentation":"

    This parameter is only used by Amazon ECS. It is not intended for use by customers.

    " }, "startedBy":{ "shape":"String", diff --git a/tools/code-generation/api-descriptions/pinpoint-sms-voice-v2-2022-03-31.normal.json b/tools/code-generation/api-descriptions/pinpoint-sms-voice-v2-2022-03-31.normal.json index 963e671bd32..009a8a2914b 100644 --- a/tools/code-generation/api-descriptions/pinpoint-sms-voice-v2-2022-03-31.normal.json +++ b/tools/code-generation/api-descriptions/pinpoint-sms-voice-v2-2022-03-31.normal.json @@ -196,7 +196,7 @@ {"shape":"ConflictException"}, {"shape":"InternalServerException"} ], - "documentation":"

    Create a new registration attachment to use for uploading a file or a URL to a file. The maximum file size is 1MiB and valid file extensions are PDF, JPEG and PNG. For example, many sender ID registrations require a signed “letter of authorization” (LOA) to be submitted.

    " + "documentation":"

    Create a new registration attachment to use for uploading a file or a URL to a file. The maximum file size is 500KB and valid file extensions are PDF, JPEG and PNG. For example, many sender ID registrations require a signed “letter of authorization” (LOA) to be submitted.

    Use either AttachmentUrl or AttachmentBody to upload your attachment. If both are specified then an exception is returned.

    " }, "CreateRegistrationVersion":{ "name":"CreateRegistrationVersion", @@ -645,7 +645,7 @@ {"shape":"ValidationException"}, {"shape":"InternalServerException"} ], - "documentation":"

    Describes the specified opted out destination numbers or all opted out destination numbers in an opt-out list.

    If you specify opted out numbers, the output includes information for only the specified opted out numbers. If you specify filters, the output includes information for only those opted out numbers that meet the filter criteria. If you don't specify opted out numbers or filters, the output includes information for all opted out destination numbers in your opt-out list.

    If you specify an opted out number that isn't valid, an error is returned.

    " + "documentation":"

    Describes the specified opted out destination numbers or all opted out destination numbers in an opt-out list.

    If you specify opted out numbers, the output includes information for only the specified opted out numbers. If you specify filters, the output includes information for only those opted out numbers that meet the filter criteria. If you don't specify opted out numbers or filters, the output includes information for all opted out destination numbers in your opt-out list.

    If you specify an opted out number that isn't valid, an exception is returned.

    " }, "DescribePhoneNumbers":{ "name":"DescribePhoneNumbers", @@ -2266,11 +2266,11 @@ "members":{ "AttachmentBody":{ "shape":"AttachmentBody", - "documentation":"

    The registration file to upload. The maximum file size is 1MiB and valid file extensions are PDF, JPEG and PNG.

    " + "documentation":"

    The registration file to upload. The maximum file size is 500KB and valid file extensions are PDF, JPEG and PNG.

    " }, "AttachmentUrl":{ "shape":"AttachmentUrl", - "documentation":"

    A URL to the required registration file. For example, you can provide the S3 object URL.

    " + "documentation":"

    Registration files have to be stored in an Amazon S3 bucket. The URI to use when sending is in the format s3://BucketName/FileName.

    " }, "Tags":{ "shape":"TagList", @@ -3281,7 +3281,7 @@ }, "OptedOutNumbers":{ "shape":"OptedOutNumberList", - "documentation":"

    An array of phone numbers to search for in the OptOutList.

    " + "documentation":"

    An array of phone numbers to search for in the OptOutList.

    If you specify an opted out number that isn't valid, an exception is returned.

    " }, "Filters":{ "shape":"OptedOutFilterList", @@ -5833,6 +5833,7 @@ "CREATED", "SUBMITTED", "REVIEWING", + "REQUIRES_AUTHENTICATION", "PROVISIONING", "COMPLETE", "REQUIRES_UPDATES", @@ -6013,6 +6014,7 @@ "DRAFT", "SUBMITTED", "REVIEWING", + "REQUIRES_AUTHENTICATION", "APPROVED", "DISCARDED", "DENIED", @@ -7857,6 +7859,7 @@ "REGISTRATION_FIELD_CANNOT_BE_DELETED", "VERIFICATION_CODE_MISMATCH", "VOICE_CAPABILITY_NOT_AVAILABLE", + "UNSPECIFIED_PARAMETER_NOT_SUPPORTED", "OTHER" ] }, diff --git a/tools/code-generation/api-descriptions/pipes-2015-10-07.normal.json b/tools/code-generation/api-descriptions/pipes-2015-10-07.normal.json index 9aa12e8b64c..0512ee69710 100644 --- a/tools/code-generation/api-descriptions/pipes-2015-10-07.normal.json +++ b/tools/code-generation/api-descriptions/pipes-2015-10-07.normal.json @@ -196,19 +196,19 @@ "type":"string", "max":1600, "min":1, - "pattern":"arn:(aws[a-zA-Z0-9-]*):([a-zA-Z0-9\\-]+):([a-z]{2}((-gov)|(-iso(b?)))?-[a-z]+-\\d{1})?:(\\d{12})?:(.+)" + "pattern":"arn:(aws[a-zA-Z0-9-]*):([a-zA-Z0-9\\-]+):([a-z]{2,4}((-gov)|(-de)|(-iso([a-z]?)))?-[a-z]+(-\\d{1})?)?:(\\d{12})?:(.+)" }, "ArnOrJsonPath":{ "type":"string", "max":1600, "min":1, - "pattern":"arn:(aws[a-zA-Z0-9-]*):([a-zA-Z0-9\\-]+):([a-z]{2}((-gov)|(-iso(b?)))?-[a-z]+-\\d{1})?:(\\d{12})?:(.+)|(\\$(\\.[\\w/_-]+(\\[(\\d+|\\*)\\])*)*)" + "pattern":"arn:(aws[a-zA-Z0-9-]*):([a-zA-Z0-9\\-]+):([a-z]{2,4}((-gov)|(-de)|(-iso([a-z]?)))?-[a-z]+(-\\d{1})?)?:(\\d{12})?:(.+)|(\\$(\\.[\\w/_-]+(\\[(\\d+|\\*)\\])*)*)" }, "ArnOrUrl":{ "type":"string", "max":1600, "min":1, - "pattern":"smk://(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\\-]*[a-zA-Z0-9])\\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9\\-]*[A-Za-z0-9]):[0-9]{1,5}|arn:(aws[a-zA-Z0-9-]*):([a-zA-Z0-9\\-]+):([a-z]{2}((-gov)|(-iso(b?)))?-[a-z]+-\\d{1})?:(\\d{12})?:(.+)" + "pattern":"smk://(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\\-]*[a-zA-Z0-9])\\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9\\-]*[A-Za-z0-9]):[0-9]{1,5}|arn:(aws[a-zA-Z0-9-]*):([a-zA-Z0-9\\-]+):([a-z]{2,4}((-gov)|(-de)|(-iso([a-z]?)))?-[a-z]+(-\\d{1})?)?:(\\d{12})?:(.+)" }, "AssignPublicIp":{ "type":"string", @@ -416,7 +416,7 @@ "type":"string", "max":1600, "min":1, - "pattern":"(^arn:aws([a-z]|\\-)*:logs:([a-z]{2}((-gov)|(-iso(b?)))?-[a-z]+-\\d{1}):(\\d{12}):log-group:[\\.\\-_/#A-Za-z0-9]{1,512}(:\\*)?)" + "pattern":"(^arn:aws([a-z]|\\-)*:logs:([a-z]{2,4}((-gov)|(-de)|(-iso([a-z]?)))?-[a-z]+(-\\d{1})?):(\\d{12}):log-group:[\\.\\-_/#A-Za-z0-9]{1,512}(:\\*)?)" }, "CloudwatchLogsLogDestination":{ "type":"structure", @@ -1025,7 +1025,7 @@ "type":"string", "max":1600, "min":1, - "pattern":"(^arn:aws([a-z]|\\-)*:firehose:([a-z]{2}((-gov)|(-iso(b?)))?-[a-z]+-\\d{1}):(\\d{12}):deliverystream/[a-zA-Z0-9_.-]{1,64})" + "pattern":"(^arn:aws([a-z]|\\-)*:firehose:([a-z]{2,4}((-gov)|(-de)|(-iso([a-z]?)))?-[a-z]+(-\\d{1})?):(\\d{12}):deliverystream/[a-zA-Z0-9_.-]{1,64})" }, "FirehoseLogDestination":{ "type":"structure", @@ -1455,7 +1455,7 @@ "type":"string", "max":1600, "min":0, - "pattern":"$|arn:(aws[a-zA-Z0-9-]*):([a-zA-Z0-9\\-]+):([a-z]{2}((-gov)|(-iso(b?)))?-[a-z]+-\\d{1})?:(\\d{12})?:(.+)" + "pattern":"$|arn:(aws[a-zA-Z0-9-]*):([a-zA-Z0-9\\-]+):([a-z]{2,4}((-gov)|(-de)|(-iso([a-z]?)))?-[a-z]+(-\\d{1})?)?:(\\d{12})?:(.+)" }, "PathParameter":{ "type":"string", @@ -1660,7 +1660,7 @@ }, "OnPartialBatchItemFailure":{ "shape":"OnPartialBatchItemFailureStreams", - "documentation":"

    (Streams only) Define how to handle item process failures. AUTOMATIC_BISECT halves each batch and retry each half until all the records are processed or there is one failed message left in the batch.

    " + "documentation":"

    Define how to handle item process failures. AUTOMATIC_BISECT halves each batch and retry each half until all the records are processed or there is one failed message left in the batch.

    " }, "MaximumBatchingWindowInSeconds":{ "shape":"MaximumBatchingWindowInSeconds", @@ -1668,19 +1668,19 @@ }, "MaximumRecordAgeInSeconds":{ "shape":"MaximumRecordAgeInSeconds", - "documentation":"

    (Streams only) Discard records older than the specified age. The default value is -1, which sets the maximum age to infinite. When the value is set to infinite, EventBridge never discards old records.

    " + "documentation":"

    Discard records older than the specified age. The default value is -1, which sets the maximum age to infinite. When the value is set to infinite, EventBridge never discards old records.

    " }, "MaximumRetryAttempts":{ "shape":"MaximumRetryAttemptsESM", - "documentation":"

    (Streams only) Discard records after the specified number of retries. The default value is -1, which sets the maximum number of retries to infinite. When MaximumRetryAttempts is infinite, EventBridge retries failed records until the record expires in the event source.

    " + "documentation":"

    Discard records after the specified number of retries. The default value is -1, which sets the maximum number of retries to infinite. When MaximumRetryAttempts is infinite, EventBridge retries failed records until the record expires in the event source.

    " }, "ParallelizationFactor":{ "shape":"LimitMax10", - "documentation":"

    (Streams only) The number of batches to process concurrently from each shard. The default value is 1.

    " + "documentation":"

    The number of batches to process concurrently from each shard. The default value is 1.

    " }, "StartingPosition":{ "shape":"DynamoDBStreamStartPosition", - "documentation":"

    (Streams only) The position in a stream from which to start reading.

    " + "documentation":"

    The position in a stream from which to start reading.

    " } }, "documentation":"

    The parameters for using a DynamoDB stream as a source.

    " @@ -1699,7 +1699,7 @@ }, "OnPartialBatchItemFailure":{ "shape":"OnPartialBatchItemFailureStreams", - "documentation":"

    (Streams only) Define how to handle item process failures. AUTOMATIC_BISECT halves each batch and retry each half until all the records are processed or there is one failed message left in the batch.

    " + "documentation":"

    Define how to handle item process failures. AUTOMATIC_BISECT halves each batch and retry each half until all the records are processed or there is one failed message left in the batch.

    " }, "MaximumBatchingWindowInSeconds":{ "shape":"MaximumBatchingWindowInSeconds", @@ -1707,19 +1707,19 @@ }, "MaximumRecordAgeInSeconds":{ "shape":"MaximumRecordAgeInSeconds", - "documentation":"

    (Streams only) Discard records older than the specified age. The default value is -1, which sets the maximum age to infinite. When the value is set to infinite, EventBridge never discards old records.

    " + "documentation":"

    Discard records older than the specified age. The default value is -1, which sets the maximum age to infinite. When the value is set to infinite, EventBridge never discards old records.

    " }, "MaximumRetryAttempts":{ "shape":"MaximumRetryAttemptsESM", - "documentation":"

    (Streams only) Discard records after the specified number of retries. The default value is -1, which sets the maximum number of retries to infinite. When MaximumRetryAttempts is infinite, EventBridge retries failed records until the record expires in the event source.

    " + "documentation":"

    Discard records after the specified number of retries. The default value is -1, which sets the maximum number of retries to infinite. When MaximumRetryAttempts is infinite, EventBridge retries failed records until the record expires in the event source.

    " }, "ParallelizationFactor":{ "shape":"LimitMax10", - "documentation":"

    (Streams only) The number of batches to process concurrently from each shard. The default value is 1.

    " + "documentation":"

    The number of batches to process concurrently from each shard. The default value is 1.

    " }, "StartingPosition":{ "shape":"KinesisStreamStartPosition", - "documentation":"

    (Streams only) The position in a stream from which to start reading.

    " + "documentation":"

    The position in a stream from which to start reading.

    " }, "StartingPositionTimestamp":{ "shape":"Timestamp", @@ -1738,7 +1738,7 @@ }, "StartingPosition":{ "shape":"MSKStartPosition", - "documentation":"

    (Streams only) The position in a stream from which to start reading.

    " + "documentation":"

    The position in a stream from which to start reading.

    " }, "BatchSize":{ "shape":"LimitMax10000", @@ -1837,7 +1837,7 @@ }, "StartingPosition":{ "shape":"SelfManagedKafkaStartPosition", - "documentation":"

    (Streams only) The position in a stream from which to start reading.

    " + "documentation":"

    The position in a stream from which to start reading.

    " }, "AdditionalBootstrapServers":{ "shape":"KafkaBootstrapServers", @@ -2249,7 +2249,7 @@ }, "TimestampFormat":{ "shape":"TimestampFormat", - "documentation":"

    How to format the timestamps. For example, YYYY-MM-DDThh:mm:ss.sssTZD.

    Required if TimeFieldType is specified as TIMESTAMP_FORMAT.

    " + "documentation":"

    How to format the timestamps. For example, yyyy-MM-dd'T'HH:mm:ss'Z'.

    Required if TimeFieldType is specified as TIMESTAMP_FORMAT.

    " }, "VersionValue":{ "shape":"VersionValue", @@ -2503,14 +2503,14 @@ "documentation":"

    // Optional SecretManager ARN which stores the database credentials

    ", "max":1600, "min":1, - "pattern":"(^arn:aws([a-z]|\\-)*:secretsmanager:([a-z]{2}((-gov)|(-iso(b?)))?-[a-z]+-\\d{1}):(\\d{12}):secret:.+)" + "pattern":"(^arn:aws([a-z]|\\-)*:secretsmanager:([a-z]{2,4}((-gov)|(-de)|(-iso([a-z]?)))?-[a-z]+(-\\d{1})?):(\\d{12}):secret:.+)" }, "SecretManagerArnOrJsonPath":{ "type":"string", "documentation":"

    // For targets, can either specify an ARN or a jsonpath pointing to the ARN.

    ", "max":1600, "min":1, - "pattern":"(^arn:aws([a-z]|\\-)*:secretsmanager:([a-z]{2}((-gov)|(-iso(b?)))?-[a-z]+-\\d{1}):(\\d{12}):secret:.+)|(\\$(\\.[\\w/_-]+(\\[(\\d+|\\*)\\])*)*)" + "pattern":"(^arn:aws([a-z]|\\-)*:secretsmanager:([a-z]{2,4}((-gov)|(-de)|(-iso([a-z]?)))?-[a-z]+(-\\d{1})?):(\\d{12}):secret:.+)|(\\$(\\.[\\w/_-]+(\\[(\\d+|\\*)\\])*)*)" }, "SecurityGroup":{ "type":"string", @@ -2531,7 +2531,7 @@ "member":{"shape":"SecurityGroupId"}, "documentation":"

    List of SecurityGroupId.

    ", "max":5, - "min":0 + "min":1 }, "SecurityGroups":{ "type":"list", @@ -2774,7 +2774,7 @@ "member":{"shape":"SubnetId"}, "documentation":"

    List of SubnetId.

    ", "max":16, - "min":0 + "min":1 }, "Subnets":{ "type":"list", @@ -3046,7 +3046,7 @@ }, "OnPartialBatchItemFailure":{ "shape":"OnPartialBatchItemFailureStreams", - "documentation":"

    (Streams only) Define how to handle item process failures. AUTOMATIC_BISECT halves each batch and retry each half until all the records are processed or there is one failed message left in the batch.

    " + "documentation":"

    Define how to handle item process failures. AUTOMATIC_BISECT halves each batch and retry each half until all the records are processed or there is one failed message left in the batch.

    " }, "MaximumBatchingWindowInSeconds":{ "shape":"MaximumBatchingWindowInSeconds", @@ -3054,15 +3054,15 @@ }, "MaximumRecordAgeInSeconds":{ "shape":"MaximumRecordAgeInSeconds", - "documentation":"

    (Streams only) Discard records older than the specified age. The default value is -1, which sets the maximum age to infinite. When the value is set to infinite, EventBridge never discards old records.

    " + "documentation":"

    Discard records older than the specified age. The default value is -1, which sets the maximum age to infinite. When the value is set to infinite, EventBridge never discards old records.

    " }, "MaximumRetryAttempts":{ "shape":"MaximumRetryAttemptsESM", - "documentation":"

    (Streams only) Discard records after the specified number of retries. The default value is -1, which sets the maximum number of retries to infinite. When MaximumRetryAttempts is infinite, EventBridge retries failed records until the record expires in the event source.

    " + "documentation":"

    Discard records after the specified number of retries. The default value is -1, which sets the maximum number of retries to infinite. When MaximumRetryAttempts is infinite, EventBridge retries failed records until the record expires in the event source.

    " }, "ParallelizationFactor":{ "shape":"LimitMax10", - "documentation":"

    (Streams only) The number of batches to process concurrently from each shard. The default value is 1.

    " + "documentation":"

    The number of batches to process concurrently from each shard. The default value is 1.

    " } }, "documentation":"

    The parameters for using a DynamoDB stream as a source.

    " @@ -3080,7 +3080,7 @@ }, "OnPartialBatchItemFailure":{ "shape":"OnPartialBatchItemFailureStreams", - "documentation":"

    (Streams only) Define how to handle item process failures. AUTOMATIC_BISECT halves each batch and retry each half until all the records are processed or there is one failed message left in the batch.

    " + "documentation":"

    Define how to handle item process failures. AUTOMATIC_BISECT halves each batch and retry each half until all the records are processed or there is one failed message left in the batch.

    " }, "MaximumBatchingWindowInSeconds":{ "shape":"MaximumBatchingWindowInSeconds", @@ -3088,15 +3088,15 @@ }, "MaximumRecordAgeInSeconds":{ "shape":"MaximumRecordAgeInSeconds", - "documentation":"

    (Streams only) Discard records older than the specified age. The default value is -1, which sets the maximum age to infinite. When the value is set to infinite, EventBridge never discards old records.

    " + "documentation":"

    Discard records older than the specified age. The default value is -1, which sets the maximum age to infinite. When the value is set to infinite, EventBridge never discards old records.

    " }, "MaximumRetryAttempts":{ "shape":"MaximumRetryAttemptsESM", - "documentation":"

    (Streams only) Discard records after the specified number of retries. The default value is -1, which sets the maximum number of retries to infinite. When MaximumRetryAttempts is infinite, EventBridge retries failed records until the record expires in the event source.

    " + "documentation":"

    Discard records after the specified number of retries. The default value is -1, which sets the maximum number of retries to infinite. When MaximumRetryAttempts is infinite, EventBridge retries failed records until the record expires in the event source.

    " }, "ParallelizationFactor":{ "shape":"LimitMax10", - "documentation":"

    (Streams only) The number of batches to process concurrently from each shard. The default value is 1.

    " + "documentation":"

    The number of batches to process concurrently from each shard. The default value is 1.

    " } }, "documentation":"

    The parameters for using a Kinesis stream as a source.

    " diff --git a/tools/code-generation/api-descriptions/quicksight-2018-04-01.normal.json b/tools/code-generation/api-descriptions/quicksight-2018-04-01.normal.json index 682109539e9..f21cb2a3819 100644 --- a/tools/code-generation/api-descriptions/quicksight-2018-04-01.normal.json +++ b/tools/code-generation/api-descriptions/quicksight-2018-04-01.normal.json @@ -2510,6 +2510,8 @@ {"shape":"ConflictException"}, {"shape":"ResourceNotFoundException"}, {"shape":"UnsupportedUserEditionException"}, + {"shape":"LimitExceededException"}, + {"shape":"PreconditionNotMetException"}, {"shape":"InternalFailureException"} ], "documentation":"

    Restores an analysis.

    " @@ -2685,6 +2687,25 @@ ], "documentation":"

    Starts an asynchronous job that generates a snapshot of a dashboard's output. You can request one or several of the following format configurations in each API call.

    • 1 Paginated PDF

    • 1 Excel workbook that includes up to 5 table or pivot table visuals

    • 5 CSVs from table or pivot table visuals

    The status of a submitted job can be polled with the DescribeDashboardSnapshotJob API. When you call the DescribeDashboardSnapshotJob API, check the JobStatus field in the response. Once the job reaches a COMPLETED or FAILED status, use the DescribeDashboardSnapshotJobResult API to obtain the URLs for the generated files. If the job fails, the DescribeDashboardSnapshotJobResult API returns detailed information about the error that occurred.

    StartDashboardSnapshotJob API throttling

    Amazon QuickSight utilizes API throttling to create a more consistent user experience within a time span for customers when they call the StartDashboardSnapshotJob. By default, 12 jobs can run simlutaneously in one Amazon Web Services account and users can submit up 10 API requests per second before an account is throttled. If an overwhelming number of API requests are made by the same user in a short period of time, Amazon QuickSight throttles the API calls to maintin an optimal experience and reliability for all Amazon QuickSight users.

    Common throttling scenarios

    The following list provides information about the most commin throttling scenarios that can occur.

    • A large number of SnapshotExport API jobs are running simultaneously on an Amazon Web Services account. When a new StartDashboardSnapshotJob is created and there are already 12 jobs with the RUNNING status, the new job request fails and returns a LimitExceededException error. Wait for a current job to comlpete before you resubmit the new job.

    • A large number of API requests are submitted on an Amazon Web Services account. When a user makes more than 10 API calls to the Amazon QuickSight API in one second, a ThrottlingException is returned.

    If your use case requires a higher throttling limit, contact your account admin or Amazon Web ServicesSupport to explore options to tailor a more optimal expereince for your account.

    Best practices to handle throttling

    If your use case projects high levels of API traffic, try to reduce the degree of frequency and parallelism of API calls as much as you can to avoid throttling. You can also perform a timing test to calculate an estimate for the total processing time of your projected load that stays within the throttling limits of the Amazon QuickSight APIs. For example, if your projected traffic is 100 snapshot jobs before 12:00 PM per day, start 12 jobs in parallel and measure the amount of time it takes to proccess all 12 jobs. Once you obtain the result, multiply the duration by 9, for example (12 minutes * 9 = 108 minutes). Use the new result to determine the latest time at which the jobs need to be started to meet your target deadline.

    The time that it takes to process a job can be impacted by the following factors:

    • The dataset type (Direct Query or SPICE).

    • The size of the dataset.

    • The complexity of the calculated fields that are used in the dashboard.

    • The number of visuals that are on a sheet.

    • The types of visuals that are on the sheet.

    • The number of formats and snapshots that are requested in the job configuration.

    • The size of the generated snapshots.

    " }, + "StartDashboardSnapshotJobSchedule":{ + "name":"StartDashboardSnapshotJobSchedule", + "http":{ + "method":"POST", + "requestUri":"/accounts/{AwsAccountId}/dashboards/{DashboardId}/schedules/{ScheduleId}" + }, + "input":{"shape":"StartDashboardSnapshotJobScheduleRequest"}, + "output":{"shape":"StartDashboardSnapshotJobScheduleResponse"}, + "errors":[ + {"shape":"AccessDeniedException"}, + {"shape":"InvalidParameterValueException"}, + {"shape":"LimitExceededException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"}, + {"shape":"UnsupportedUserEditionException"}, + {"shape":"InternalFailureException"} + ], + "documentation":"

    Starts an asynchronous job that runs an existing dashboard schedule and sends the dashboard snapshot through email.

    Only one job can run simultaneously in a given schedule. Repeated requests are skipped with a 202 HTTP status code.

    For more information, see Scheduling and sending Amazon QuickSight reports by email and Configuring email report settings for a Amazon QuickSight dashboard in the Amazon QuickSight User Guide.

    " + }, "TagResource":{ "name":"TagResource", "http":{ @@ -13416,7 +13437,7 @@ "documentation":"

    The Amazon Resource Name (ARN) of the analysis whose permissions you're describing.

    " }, "Permissions":{ - "shape":"ResourcePermissionList", + "shape":"UpdateResourcePermissionList", "documentation":"

    A structure that describes the principals and the resource-level permissions on an analysis.

    " }, "Status":{ @@ -13771,7 +13792,7 @@ "documentation":"

    The Amazon Resource Name (ARN) of the dashboard.

    " }, "Permissions":{ - "shape":"ResourcePermissionList", + "shape":"UpdateResourcePermissionList", "documentation":"

    A structure that contains the permissions for the dashboard.

    " }, "Status":{ @@ -14960,7 +14981,7 @@ "documentation":"

    The Amazon Resource Name (ARN) of the template.

    " }, "Permissions":{ - "shape":"ResourcePermissionList", + "shape":"UpdateResourcePermissionList", "documentation":"

    A list of resource permissions to be set on the template.

    " }, "RequestId":{ @@ -15104,7 +15125,7 @@ "documentation":"

    The Amazon Resource Name (ARN) of the theme.

    " }, "Permissions":{ - "shape":"ResourcePermissionList", + "shape":"UpdateResourcePermissionList", "documentation":"

    A list of resource permissions set on the theme.

    " }, "RequestId":{ @@ -25649,6 +25670,12 @@ "documentation":"

    The ID of the analysis that you're restoring.

    ", "location":"uri", "locationName":"AnalysisId" + }, + "RestoreToFolders":{ + "shape":"Boolean", + "documentation":"

    A boolean value that determines if the analysis will be restored to folders that it previously resided in. A True value restores analysis back to all folders that it previously resided in. A False value restores the analysis but does not restore the analysis back to all previously resided folders. Restoring a restricted analysis requires this parameter to be set to True.

    ", + "location":"querystring", + "locationName":"restore-to-folders" } } }, @@ -25671,6 +25698,10 @@ "RequestId":{ "shape":"String", "documentation":"

    The Amazon Web Services request ID for this operation.

    " + }, + "RestorationFailedFolderArns":{ + "shape":"FolderArnList", + "documentation":"

    A list of folder arns thatthe analysis failed to be restored to.

    " } } }, @@ -28111,6 +28142,48 @@ } } }, + "StartDashboardSnapshotJobScheduleRequest":{ + "type":"structure", + "required":[ + "AwsAccountId", + "DashboardId", + "ScheduleId" + ], + "members":{ + "AwsAccountId":{ + "shape":"AwsAccountId", + "documentation":"

    The ID of the Amazon Web Services account that the dashboard snapshot job is executed in.

    ", + "location":"uri", + "locationName":"AwsAccountId" + }, + "DashboardId":{ + "shape":"ShortRestrictiveResourceId", + "documentation":"

    The ID of the dashboard that you want to start a snapshot job schedule for.

    ", + "location":"uri", + "locationName":"DashboardId" + }, + "ScheduleId":{ + "shape":"ShortRestrictiveResourceId", + "documentation":"

    The ID of the schedule that you want to start a snapshot job schedule for. The schedule ID can be found in the Amazon QuickSight console in the Schedules pane of the dashboard that the schedule is configured for.

    ", + "location":"uri", + "locationName":"ScheduleId" + } + } + }, + "StartDashboardSnapshotJobScheduleResponse":{ + "type":"structure", + "members":{ + "RequestId":{ + "shape":"NonEmptyString", + "documentation":"

    The Amazon Web Services request ID for this operation.

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

    The HTTP status of the request

    ", + "location":"statusCode" + } + } + }, "StatePersistenceConfigurations":{ "type":"structure", "required":["Enabled"], @@ -31712,7 +31785,7 @@ "documentation":"

    The ID of the analysis that you updated permissions for.

    " }, "Permissions":{ - "shape":"ResourcePermissionList", + "shape":"UpdateResourcePermissionList", "documentation":"

    A structure that describes the principals and the resource-level permissions on an analysis.

    " }, "RequestId":{ @@ -31895,7 +31968,7 @@ "documentation":"

    The ID for the dashboard.

    " }, "Permissions":{ - "shape":"ResourcePermissionList", + "shape":"UpdateResourcePermissionList", "documentation":"

    Information about the permissions on the dashboard.

    " }, "RequestId":{ @@ -32954,7 +33027,7 @@ "documentation":"

    The Amazon Resource Name (ARN) of the template.

    " }, "Permissions":{ - "shape":"ResourcePermissionList", + "shape":"UpdateResourcePermissionList", "documentation":"

    A list of resource permissions to be set on the template.

    " }, "RequestId":{ @@ -33131,7 +33204,7 @@ "documentation":"

    The Amazon Resource Name (ARN) of the theme.

    " }, "Permissions":{ - "shape":"ResourcePermissionList", + "shape":"UpdateResourcePermissionList", "documentation":"

    The resulting list of resource permissions for the theme.

    " }, "RequestId":{ 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 da5df55de4c..79b29b7233b 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 @@ -4206,7 +4206,7 @@ }, "EnableIAMDatabaseAuthentication":{ "shape":"BooleanOptional", - "documentation":"

    Specifies whether to enable mapping of Amazon Web Services Identity and Access Management (IAM) accounts to database accounts. By default, mapping isn't enabled.

    For more information, see IAM Database Authentication in the Amazon Aurora User Guide.

    Valid for Cluster Type: Aurora DB clusters only

    " + "documentation":"

    Specifies whether to enable mapping of Amazon Web Services Identity and Access Management (IAM) accounts to database accounts. By default, mapping isn't enabled.

    For more information, see IAM Database Authentication in the Amazon Aurora User Guide or IAM database authentication for MariaDB, MySQL, and PostgreSQL in the Amazon RDS User Guide.

    Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters

    " }, "BacktrackWindow":{ "shape":"LongOptional", @@ -8899,7 +8899,7 @@ "members":{ "DBShardGroupIdentifier":{ "shape":"DBShardGroupIdentifier", - "documentation":"

    Teh name of the DB shard group to delete.

    " + "documentation":"

    The name of the DB shard group to delete.

    " } } }, @@ -9741,7 +9741,7 @@ "members":{ "DBShardGroupIdentifier":{ "shape":"DBShardGroupIdentifier", - "documentation":"

    The user-supplied DB shard group identifier or the Amazon Resource Name (ARN) of the DB shard group. If this parameter is specified, information for only the specific DB shard group is returned. This parameter isn't case-sensitive.

    Constraints:

    • If supplied, must match an existing DB shard group identifier.

    " + "documentation":"

    The user-supplied DB shard group identifier. If this parameter is specified, information for only the specific DB shard group is returned. This parameter isn't case-sensitive.

    Constraints:

    • If supplied, must match an existing DB shard group identifier.

    " }, "Filters":{ "shape":"FilterList", @@ -12260,7 +12260,7 @@ }, "EnableIAMDatabaseAuthentication":{ "shape":"BooleanOptional", - "documentation":"

    Specifies whether to enable mapping of Amazon Web Services Identity and Access Management (IAM) accounts to database accounts. By default, mapping isn't enabled.

    For more information, see IAM Database Authentication in the Amazon Aurora User Guide.

    Valid for Cluster Type: Aurora DB clusters only

    " + "documentation":"

    Specifies whether to enable mapping of Amazon Web Services Identity and Access Management (IAM) accounts to database accounts. By default, mapping isn't enabled.

    For more information, see IAM Database Authentication in the Amazon Aurora User Guide or IAM database authentication for MariaDB, MySQL, and PostgreSQL in the Amazon RDS User Guide.

    Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters

    " }, "BacktrackWindow":{ "shape":"LongOptional", @@ -12340,7 +12340,7 @@ }, "EnablePerformanceInsights":{ "shape":"BooleanOptional", - "documentation":"

    Specifies whether to turn on Performance Insights for the DB cluster.

    For more information, see Using Amazon Performance Insights in the Amazon RDS User Guide.

    Valid for Cluster Type: Multi-AZ DB clusters only

    " + "documentation":"

    Specifies whether to turn on Performance Insights for the DB cluster.

    For more information, see Using Amazon Performance Insights in the Amazon RDS User Guide.

    Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters

    " }, "PerformanceInsightsKMSKeyId":{ "shape":"String", @@ -15001,7 +15001,7 @@ }, "EnableIAMDatabaseAuthentication":{ "shape":"BooleanOptional", - "documentation":"

    Specifies whether to enable mapping of Amazon Web Services Identity and Access Management (IAM) accounts to database accounts. By default, mapping isn't enabled.

    For more information, see IAM Database Authentication in the Amazon Aurora User Guide.

    Valid for: Aurora DB clusters only

    " + "documentation":"

    Specifies whether to enable mapping of Amazon Web Services Identity and Access Management (IAM) accounts to database accounts. By default, mapping isn't enabled.

    For more information, see IAM Database Authentication in the Amazon Aurora User Guide or IAM database authentication for MariaDB, MySQL, and PostgreSQL in the Amazon RDS User Guide.

    Valid for: Aurora DB clusters and Multi-AZ DB clusters

    " }, "BacktrackWindow":{ "shape":"LongOptional", @@ -15124,7 +15124,7 @@ }, "EnableIAMDatabaseAuthentication":{ "shape":"BooleanOptional", - "documentation":"

    Specifies whether to enable mapping of Amazon Web Services Identity and Access Management (IAM) accounts to database accounts. By default, mapping isn't enabled.

    For more information, see IAM Database Authentication in the Amazon Aurora User Guide.

    Valid for: Aurora DB clusters only

    " + "documentation":"

    Specifies whether to enable mapping of Amazon Web Services Identity and Access Management (IAM) accounts to database accounts. By default, mapping isn't enabled.

    For more information, see IAM Database Authentication in the Amazon Aurora User Guide or IAM database authentication for MariaDB, MySQL, and PostgreSQL in the Amazon RDS User Guide.

    Valid for: Aurora DB clusters and Multi-AZ DB clusters

    " }, "BacktrackWindow":{ "shape":"LongOptional", @@ -16505,7 +16505,7 @@ "members":{ "BlueGreenDeploymentIdentifier":{ "shape":"BlueGreenDeploymentIdentifier", - "documentation":"

    The unique identifier of the blue/green deployment.

    Constraints:

    • Must match an existing blue/green deployment identifier.

    " + "documentation":"

    The resource ID of the blue/green deployment.

    Constraints:

    • Must match an existing blue/green deployment resource ID.

    " }, "SwitchoverTimeout":{ "shape":"SwitchoverTimeout", diff --git a/tools/code-generation/api-descriptions/workspaces-2015-04-08.normal.json b/tools/code-generation/api-descriptions/workspaces-2015-04-08.normal.json index da53c340cd7..2186dca2749 100644 --- a/tools/code-generation/api-descriptions/workspaces-2015-04-08.normal.json +++ b/tools/code-generation/api-descriptions/workspaces-2015-04-08.normal.json @@ -3918,7 +3918,7 @@ }, "DomainName":{ "type":"string", - "pattern":"^([a-zA-Z0-9]+[\\\\.-])+([a-zA-Z0-9])+$" + "pattern":"^([a-zA-Z0-9]+[.-])+([a-zA-Z0-9])+$" }, "Ec2ImageId":{ "type":"string",