From a35dba1b2573002ea82c1629e11aa4cdc5e76c4d Mon Sep 17 00:00:00 2001 From: aws-sdk-cpp-automation Date: Tue, 24 Sep 2024 18:14:31 +0000 Subject: [PATCH] This release includes support to add tags when creating a stream AWS End User Messaging SMS-Voice V2 has added support for resource policies. Use the three new APIs to create, view, edit, and delete resource policies. Adding `HiddenInstanceTypes` and `HiddenSageMakerImageVersionAliases` attribute to SageMaker API Add support for Cross Region Inference in Bedrock Model Evaluations. Releasing minor partitional endpoint updates --- VERSION | 2 +- .../model/CreateEvaluationJobRequest.h | 6 +- .../bedrock/model/EvaluationBedrockModel.h | 11 +- .../aws/bedrock/model/EvaluationModelConfig.h | 3 +- .../source/BudgetsEndpointRules.cpp | 180 ++++++++------ .../include/aws/kinesis/KinesisClient.h | 28 ++- .../aws/kinesis/model/CreateStreamRequest.h | 23 ++ .../source/model/CreateStreamRequest.cpp | 14 +- .../PinpointSMSVoiceV2Client.h | 85 +++++++ .../PinpointSMSVoiceV2ServiceClientModel.h | 15 ++ .../AssociateOriginationIdentityRequest.h | 6 +- .../model/CreatePoolRequest.h | 2 + .../model/DeleteKeywordRequest.h | 4 +- .../model/DeleteOptOutListRequest.h | 4 +- .../model/DeleteOptedOutNumberRequest.h | 2 + .../model/DeletePoolRequest.h | 4 +- .../model/DeleteResourcePolicyRequest.h | 59 +++++ .../model/DeleteResourcePolicyResult.h | 98 ++++++++ .../model/DescribeKeywordsRequest.h | 4 +- .../model/DescribeOptOutListsRequest.h | 23 +- .../model/DescribeOptedOutNumbersRequest.h | 4 +- .../model/DescribePhoneNumbersRequest.h | 21 ++ .../model/DescribePoolsRequest.h | 23 +- .../model/DescribeSenderIdsRequest.h | 23 +- .../DisassociateOriginationIdentityRequest.h | 8 +- .../model/GetResourcePolicyRequest.h | 59 +++++ .../model/GetResourcePolicyResult.h | 99 ++++++++ .../ListPoolOriginationIdentitiesRequest.h | 4 +- .../aws/pinpoint-sms-voice-v2/model/Owner.h | 31 +++ .../model/PutKeywordRequest.h | 4 +- .../model/PutOptedOutNumberRequest.h | 2 + .../model/PutResourcePolicyRequest.h | 76 ++++++ .../model/PutResourcePolicyResult.h | 98 ++++++++ .../model/ReleasePhoneNumberRequest.h | 4 +- .../model/RequestPhoneNumberRequest.h | 8 +- .../model/ResourceType.h | 3 +- ...DestinationNumberVerificationCodeRequest.h | 2 + .../model/SendMediaMessageRequest.h | 2 + .../model/SendTextMessageRequest.h | 2 + .../model/SendVoiceMessageRequest.h | 4 +- .../model/UpdatePhoneNumberRequest.h | 4 +- .../model/UpdatePoolRequest.h | 8 +- .../source/PinpointSMSVoiceV2Client.cpp | 81 +++++++ .../model/DeleteResourcePolicyRequest.cpp | 43 ++++ .../model/DeleteResourcePolicyResult.cpp | 60 +++++ .../model/DescribeOptOutListsRequest.cpp | 9 +- .../model/DescribePhoneNumbersRequest.cpp | 9 +- .../source/model/DescribePoolsRequest.cpp | 9 +- .../source/model/DescribeSenderIdsRequest.cpp | 9 +- .../source/model/GetResourcePolicyRequest.cpp | 43 ++++ .../source/model/GetResourcePolicyResult.cpp | 60 +++++ .../source/model/Owner.cpp | 72 ++++++ .../source/model/PutResourcePolicyRequest.cpp | 50 ++++ .../source/model/PutResourcePolicyResult.cpp | 60 +++++ .../source/model/ResourceType.cpp | 7 + .../sagemaker/model/HiddenSageMakerImage.h | 82 +++++++ .../include/aws/sagemaker/model/MlTools.h | 3 +- .../aws/sagemaker/model/SageMakerImageName.h | 30 +++ .../sagemaker/model/StudioWebPortalSettings.h | 36 +++ .../source/model/HiddenSageMakerImage.cpp | 81 +++++++ .../source/model/MlTools.cpp | 7 + .../source/model/SageMakerImageName.cpp | 65 +++++ .../source/model/StudioWebPortalSettings.cpp | 46 +++- .../BudgetsEndpointProviderTests.cpp | 28 ++- .../include/aws/core/VersionConfig.h | 4 +- .../bedrock-2023-04-20.normal.json | 10 +- .../budgets-2016-10-20.normal.json | 7 +- .../kinesis-2013-12-02.normal.json | 13 +- ...npoint-sms-voice-v2-2022-03-31.normal.json | 226 +++++++++++++++--- .../sagemaker-2017-07-24.normal.json | 58 ++++- .../budgets-2016-10-20.endpoint-rule-set.json | 102 ++++++++ .../budgets-2016-10-20.endpoint-tests.json | 44 ++++ 72 files changed, 2240 insertions(+), 176 deletions(-) create mode 100644 generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/DeleteResourcePolicyRequest.h create mode 100644 generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/DeleteResourcePolicyResult.h create mode 100644 generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/GetResourcePolicyRequest.h create mode 100644 generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/GetResourcePolicyResult.h create mode 100644 generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/Owner.h create mode 100644 generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/PutResourcePolicyRequest.h create mode 100644 generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/PutResourcePolicyResult.h create mode 100644 generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/DeleteResourcePolicyRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/DeleteResourcePolicyResult.cpp create mode 100644 generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/GetResourcePolicyRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/GetResourcePolicyResult.cpp create mode 100644 generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/Owner.cpp create mode 100644 generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/PutResourcePolicyRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/PutResourcePolicyResult.cpp create mode 100644 generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/HiddenSageMakerImage.h create mode 100644 generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/SageMakerImageName.h create mode 100644 generated/src/aws-cpp-sdk-sagemaker/source/model/HiddenSageMakerImage.cpp create mode 100644 generated/src/aws-cpp-sdk-sagemaker/source/model/SageMakerImageName.cpp diff --git a/VERSION b/VERSION index d936751dce9..446a63562df 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.11.411 \ No newline at end of file +1.11.412 \ No newline at end of file diff --git a/generated/src/aws-cpp-sdk-bedrock/include/aws/bedrock/model/CreateEvaluationJobRequest.h b/generated/src/aws-cpp-sdk-bedrock/include/aws/bedrock/model/CreateEvaluationJobRequest.h index 43dbb47796f..a3f259bed3a 100644 --- a/generated/src/aws-cpp-sdk-bedrock/include/aws/bedrock/model/CreateEvaluationJobRequest.h +++ b/generated/src/aws-cpp-sdk-bedrock/include/aws/bedrock/model/CreateEvaluationJobRequest.h @@ -151,8 +151,10 @@ namespace Model ///@{ /** *

Specify the models you want to use in your model evaluation job. Automatic - * model evaluation jobs support a single model, and model evaluation job that use - * human workers support two models.

+ * model evaluation jobs support a single model or inference + * profile, and model evaluation job that use human workers support two models + * or inference profiles.

*/ inline const EvaluationInferenceConfig& GetInferenceConfig() const{ return m_inferenceConfig; } inline bool InferenceConfigHasBeenSet() const { return m_inferenceConfigHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-bedrock/include/aws/bedrock/model/EvaluationBedrockModel.h b/generated/src/aws-cpp-sdk-bedrock/include/aws/bedrock/model/EvaluationBedrockModel.h index 0a2f9679210..7da65ab9d5a 100644 --- a/generated/src/aws-cpp-sdk-bedrock/include/aws/bedrock/model/EvaluationBedrockModel.h +++ b/generated/src/aws-cpp-sdk-bedrock/include/aws/bedrock/model/EvaluationBedrockModel.h @@ -24,10 +24,11 @@ namespace Model { /** - *

Contains the ARN of the Amazon Bedrock models specified in your model - * evaluation job. Each Amazon Bedrock model supports different - * inferenceParams. To learn more about supported inference parameters - * for Amazon Bedrock models, see Contains the ARN of the Amazon Bedrock model or inference + * profile specified in your model evaluation job. Each Amazon Bedrock model + * supports different inferenceParams. To learn more about supported + * inference parameters for Amazon Bedrock models, see Inference * parameters for foundation models.

The inferenceParams * are specified using JSON. To successfully insert JSON as string make sure that @@ -49,7 +50,7 @@ namespace Model ///@{ /** - *

The ARN of the Amazon Bedrock model specified.

+ *

The ARN of the Amazon Bedrock model or inference profile specified.

*/ inline const Aws::String& GetModelIdentifier() const{ return m_modelIdentifier; } inline bool ModelIdentifierHasBeenSet() const { return m_modelIdentifierHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-bedrock/include/aws/bedrock/model/EvaluationModelConfig.h b/generated/src/aws-cpp-sdk-bedrock/include/aws/bedrock/model/EvaluationModelConfig.h index 3b39d486a89..52503beb3f8 100644 --- a/generated/src/aws-cpp-sdk-bedrock/include/aws/bedrock/model/EvaluationModelConfig.h +++ b/generated/src/aws-cpp-sdk-bedrock/include/aws/bedrock/model/EvaluationModelConfig.h @@ -40,7 +40,8 @@ namespace Model ///@{ /** - *

Defines the Amazon Bedrock model and inference parameters you want used.

+ *

Defines the Amazon Bedrock model or inference profile and inference + * parameters you want used.

*/ inline const EvaluationBedrockModel& GetBedrockModel() const{ return m_bedrockModel; } inline bool BedrockModelHasBeenSet() const { return m_bedrockModelHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-budgets/source/BudgetsEndpointRules.cpp b/generated/src/aws-cpp-sdk-budgets/source/BudgetsEndpointRules.cpp index dd965f3c9ae..6e84740e39c 100644 --- a/generated/src/aws-cpp-sdk-budgets/source/BudgetsEndpointRules.cpp +++ b/generated/src/aws-cpp-sdk-budgets/source/BudgetsEndpointRules.cpp @@ -10,8 +10,8 @@ namespace Aws { namespace Budgets { -const size_t BudgetsEndpointRules::RulesBlobStrLen = 4311; -const size_t BudgetsEndpointRules::RulesBlobSize = 4312; +const size_t BudgetsEndpointRules::RulesBlobStrLen = 5174; +const size_t BudgetsEndpointRules::RulesBlobSize = 5175; using RulesBlobT = Aws::Array; static constexpr RulesBlobT RulesBlob = {{ @@ -111,83 +111,117 @@ static constexpr RulesBlobT RulesBlob = {{ '"','c','n','-','n','o','r','t','h','w','e','s','t','-','1','"','}',']','}',',','"','h','e','a','d', 'e','r','s','"',':','{','}','}',',','"','t','y','p','e','"',':','"','e','n','d','p','o','i','n','t', '"','}',',','{','"','c','o','n','d','i','t','i','o','n','s','"',':','[','{','"','f','n','"',':','"', -'b','o','o','l','e','a','n','E','q','u','a','l','s','"',',','"','a','r','g','v','"',':','[','{','"', -'r','e','f','"',':','"','U','s','e','F','I','P','S','"','}',',','t','r','u','e',']','}',',','{','"', -'f','n','"',':','"','b','o','o','l','e','a','n','E','q','u','a','l','s','"',',','"','a','r','g','v', -'"',':','[','{','"','r','e','f','"',':','"','U','s','e','D','u','a','l','S','t','a','c','k','"','}', -',','t','r','u','e',']','}',']',',','"','r','u','l','e','s','"',':','[','{','"','c','o','n','d','i', -'t','i','o','n','s','"',':','[','{','"','f','n','"',':','"','b','o','o','l','e','a','n','E','q','u', -'a','l','s','"',',','"','a','r','g','v','"',':','[','t','r','u','e',',','{','"','f','n','"',':','"', -'g','e','t','A','t','t','r','"',',','"','a','r','g','v','"',':','[','{','"','r','e','f','"',':','"', -'P','a','r','t','i','t','i','o','n','R','e','s','u','l','t','"','}',',','"','s','u','p','p','o','r', -'t','s','F','I','P','S','"',']','}',']','}',',','{','"','f','n','"',':','"','b','o','o','l','e','a', +'s','t','r','i','n','g','E','q','u','a','l','s','"',',','"','a','r','g','v','"',':','[','{','"','f', +'n','"',':','"','g','e','t','A','t','t','r','"',',','"','a','r','g','v','"',':','[','{','"','r','e', +'f','"',':','"','P','a','r','t','i','t','i','o','n','R','e','s','u','l','t','"','}',',','"','n','a', +'m','e','"',']','}',',','"','a','w','s','-','i','s','o','-','e','"',']','}',',','{','"','f','n','"', +':','"','b','o','o','l','e','a','n','E','q','u','a','l','s','"',',','"','a','r','g','v','"',':','[', +'{','"','r','e','f','"',':','"','U','s','e','F','I','P','S','"','}',',','f','a','l','s','e',']','}', +',','{','"','f','n','"',':','"','b','o','o','l','e','a','n','E','q','u','a','l','s','"',',','"','a', +'r','g','v','"',':','[','{','"','r','e','f','"',':','"','U','s','e','D','u','a','l','S','t','a','c', +'k','"','}',',','f','a','l','s','e',']','}',']',',','"','e','n','d','p','o','i','n','t','"',':','{', +'"','u','r','l','"',':','"','h','t','t','p','s',':','/','/','b','u','d','g','e','t','s','.','g','l', +'o','b','a','l','.','c','l','o','u','d','.','a','d','c','-','e','.','u','k','"',',','"','p','r','o', +'p','e','r','t','i','e','s','"',':','{','"','a','u','t','h','S','c','h','e','m','e','s','"',':','[', +'{','"','n','a','m','e','"',':','"','s','i','g','v','4','"',',','"','s','i','g','n','i','n','g','N', +'a','m','e','"',':','"','b','u','d','g','e','t','s','"',',','"','s','i','g','n','i','n','g','R','e', +'g','i','o','n','"',':','"','e','u','-','i','s','o','e','-','w','e','s','t','-','1','"','}',']','}', +',','"','h','e','a','d','e','r','s','"',':','{','}','}',',','"','t','y','p','e','"',':','"','e','n', +'d','p','o','i','n','t','"','}',',','{','"','c','o','n','d','i','t','i','o','n','s','"',':','[','{', +'"','f','n','"',':','"','s','t','r','i','n','g','E','q','u','a','l','s','"',',','"','a','r','g','v', +'"',':','[','{','"','f','n','"',':','"','g','e','t','A','t','t','r','"',',','"','a','r','g','v','"', +':','[','{','"','r','e','f','"',':','"','P','a','r','t','i','t','i','o','n','R','e','s','u','l','t', +'"','}',',','"','n','a','m','e','"',']','}',',','"','a','w','s','-','i','s','o','-','f','"',']','}', +',','{','"','f','n','"',':','"','b','o','o','l','e','a','n','E','q','u','a','l','s','"',',','"','a', +'r','g','v','"',':','[','{','"','r','e','f','"',':','"','U','s','e','F','I','P','S','"','}',',','f', +'a','l','s','e',']','}',',','{','"','f','n','"',':','"','b','o','o','l','e','a','n','E','q','u','a', +'l','s','"',',','"','a','r','g','v','"',':','[','{','"','r','e','f','"',':','"','U','s','e','D','u', +'a','l','S','t','a','c','k','"','}',',','f','a','l','s','e',']','}',']',',','"','e','n','d','p','o', +'i','n','t','"',':','{','"','u','r','l','"',':','"','h','t','t','p','s',':','/','/','b','u','d','g', +'e','t','s','.','g','l','o','b','a','l','.','c','s','p','.','h','c','i','.','i','c','.','g','o','v', +'"',',','"','p','r','o','p','e','r','t','i','e','s','"',':','{','"','a','u','t','h','S','c','h','e', +'m','e','s','"',':','[','{','"','n','a','m','e','"',':','"','s','i','g','v','4','"',',','"','s','i', +'g','n','i','n','g','N','a','m','e','"',':','"','b','u','d','g','e','t','s','"',',','"','s','i','g', +'n','i','n','g','R','e','g','i','o','n','"',':','"','u','s','-','i','s','o','f','-','s','o','u','t', +'h','-','1','"','}',']','}',',','"','h','e','a','d','e','r','s','"',':','{','}','}',',','"','t','y', +'p','e','"',':','"','e','n','d','p','o','i','n','t','"','}',',','{','"','c','o','n','d','i','t','i', +'o','n','s','"',':','[','{','"','f','n','"',':','"','b','o','o','l','e','a','n','E','q','u','a','l', +'s','"',',','"','a','r','g','v','"',':','[','{','"','r','e','f','"',':','"','U','s','e','F','I','P', +'S','"','}',',','t','r','u','e',']','}',',','{','"','f','n','"',':','"','b','o','o','l','e','a','n', +'E','q','u','a','l','s','"',',','"','a','r','g','v','"',':','[','{','"','r','e','f','"',':','"','U', +'s','e','D','u','a','l','S','t','a','c','k','"','}',',','t','r','u','e',']','}',']',',','"','r','u', +'l','e','s','"',':','[','{','"','c','o','n','d','i','t','i','o','n','s','"',':','[','{','"','f','n', +'"',':','"','b','o','o','l','e','a','n','E','q','u','a','l','s','"',',','"','a','r','g','v','"',':', +'[','t','r','u','e',',','{','"','f','n','"',':','"','g','e','t','A','t','t','r','"',',','"','a','r', +'g','v','"',':','[','{','"','r','e','f','"',':','"','P','a','r','t','i','t','i','o','n','R','e','s', +'u','l','t','"','}',',','"','s','u','p','p','o','r','t','s','F','I','P','S','"',']','}',']','}',',', +'{','"','f','n','"',':','"','b','o','o','l','e','a','n','E','q','u','a','l','s','"',',','"','a','r', +'g','v','"',':','[','t','r','u','e',',','{','"','f','n','"',':','"','g','e','t','A','t','t','r','"', +',','"','a','r','g','v','"',':','[','{','"','r','e','f','"',':','"','P','a','r','t','i','t','i','o', +'n','R','e','s','u','l','t','"','}',',','"','s','u','p','p','o','r','t','s','D','u','a','l','S','t', +'a','c','k','"',']','}',']','}',']',',','"','r','u','l','e','s','"',':','[','{','"','c','o','n','d', +'i','t','i','o','n','s','"',':','[',']',',','"','e','n','d','p','o','i','n','t','"',':','{','"','u', +'r','l','"',':','"','h','t','t','p','s',':','/','/','b','u','d','g','e','t','s','-','f','i','p','s', +'.','{','R','e','g','i','o','n','}','.','{','P','a','r','t','i','t','i','o','n','R','e','s','u','l', +'t','#','d','u','a','l','S','t','a','c','k','D','n','s','S','u','f','f','i','x','}','"',',','"','p', +'r','o','p','e','r','t','i','e','s','"',':','{','}',',','"','h','e','a','d','e','r','s','"',':','{', +'}','}',',','"','t','y','p','e','"',':','"','e','n','d','p','o','i','n','t','"','}',']',',','"','t', +'y','p','e','"',':','"','t','r','e','e','"','}',',','{','"','c','o','n','d','i','t','i','o','n','s', +'"',':','[',']',',','"','e','r','r','o','r','"',':','"','F','I','P','S',' ','a','n','d',' ','D','u', +'a','l','S','t','a','c','k',' ','a','r','e',' ','e','n','a','b','l','e','d',',',' ','b','u','t',' ', +'t','h','i','s',' ','p','a','r','t','i','t','i','o','n',' ','d','o','e','s',' ','n','o','t',' ','s', +'u','p','p','o','r','t',' ','o','n','e',' ','o','r',' ','b','o','t','h','"',',','"','t','y','p','e', +'"',':','"','e','r','r','o','r','"','}',']',',','"','t','y','p','e','"',':','"','t','r','e','e','"', +'}',',','{','"','c','o','n','d','i','t','i','o','n','s','"',':','[','{','"','f','n','"',':','"','b', +'o','o','l','e','a','n','E','q','u','a','l','s','"',',','"','a','r','g','v','"',':','[','{','"','r', +'e','f','"',':','"','U','s','e','F','I','P','S','"','}',',','t','r','u','e',']','}',']',',','"','r', +'u','l','e','s','"',':','[','{','"','c','o','n','d','i','t','i','o','n','s','"',':','[','{','"','f', +'n','"',':','"','b','o','o','l','e','a','n','E','q','u','a','l','s','"',',','"','a','r','g','v','"', +':','[','{','"','f','n','"',':','"','g','e','t','A','t','t','r','"',',','"','a','r','g','v','"',':', +'[','{','"','r','e','f','"',':','"','P','a','r','t','i','t','i','o','n','R','e','s','u','l','t','"', +'}',',','"','s','u','p','p','o','r','t','s','F','I','P','S','"',']','}',',','t','r','u','e',']','}', +']',',','"','r','u','l','e','s','"',':','[','{','"','c','o','n','d','i','t','i','o','n','s','"',':', +'[',']',',','"','e','n','d','p','o','i','n','t','"',':','{','"','u','r','l','"',':','"','h','t','t', +'p','s',':','/','/','b','u','d','g','e','t','s','-','f','i','p','s','.','{','R','e','g','i','o','n', +'}','.','{','P','a','r','t','i','t','i','o','n','R','e','s','u','l','t','#','d','n','s','S','u','f', +'f','i','x','}','"',',','"','p','r','o','p','e','r','t','i','e','s','"',':','{','}',',','"','h','e', +'a','d','e','r','s','"',':','{','}','}',',','"','t','y','p','e','"',':','"','e','n','d','p','o','i', +'n','t','"','}',']',',','"','t','y','p','e','"',':','"','t','r','e','e','"','}',',','{','"','c','o', +'n','d','i','t','i','o','n','s','"',':','[',']',',','"','e','r','r','o','r','"',':','"','F','I','P', +'S',' ','i','s',' ','e','n','a','b','l','e','d',' ','b','u','t',' ','t','h','i','s',' ','p','a','r', +'t','i','t','i','o','n',' ','d','o','e','s',' ','n','o','t',' ','s','u','p','p','o','r','t',' ','F', +'I','P','S','"',',','"','t','y','p','e','"',':','"','e','r','r','o','r','"','}',']',',','"','t','y', +'p','e','"',':','"','t','r','e','e','"','}',',','{','"','c','o','n','d','i','t','i','o','n','s','"', +':','[','{','"','f','n','"',':','"','b','o','o','l','e','a','n','E','q','u','a','l','s','"',',','"', +'a','r','g','v','"',':','[','{','"','r','e','f','"',':','"','U','s','e','D','u','a','l','S','t','a', +'c','k','"','}',',','t','r','u','e',']','}',']',',','"','r','u','l','e','s','"',':','[','{','"','c', +'o','n','d','i','t','i','o','n','s','"',':','[','{','"','f','n','"',':','"','b','o','o','l','e','a', 'n','E','q','u','a','l','s','"',',','"','a','r','g','v','"',':','[','t','r','u','e',',','{','"','f', 'n','"',':','"','g','e','t','A','t','t','r','"',',','"','a','r','g','v','"',':','[','{','"','r','e', 'f','"',':','"','P','a','r','t','i','t','i','o','n','R','e','s','u','l','t','"','}',',','"','s','u', 'p','p','o','r','t','s','D','u','a','l','S','t','a','c','k','"',']','}',']','}',']',',','"','r','u', 'l','e','s','"',':','[','{','"','c','o','n','d','i','t','i','o','n','s','"',':','[',']',',','"','e', 'n','d','p','o','i','n','t','"',':','{','"','u','r','l','"',':','"','h','t','t','p','s',':','/','/', -'b','u','d','g','e','t','s','-','f','i','p','s','.','{','R','e','g','i','o','n','}','.','{','P','a', -'r','t','i','t','i','o','n','R','e','s','u','l','t','#','d','u','a','l','S','t','a','c','k','D','n', -'s','S','u','f','f','i','x','}','"',',','"','p','r','o','p','e','r','t','i','e','s','"',':','{','}', -',','"','h','e','a','d','e','r','s','"',':','{','}','}',',','"','t','y','p','e','"',':','"','e','n', -'d','p','o','i','n','t','"','}',']',',','"','t','y','p','e','"',':','"','t','r','e','e','"','}',',', -'{','"','c','o','n','d','i','t','i','o','n','s','"',':','[',']',',','"','e','r','r','o','r','"',':', -'"','F','I','P','S',' ','a','n','d',' ','D','u','a','l','S','t','a','c','k',' ','a','r','e',' ','e', -'n','a','b','l','e','d',',',' ','b','u','t',' ','t','h','i','s',' ','p','a','r','t','i','t','i','o', -'n',' ','d','o','e','s',' ','n','o','t',' ','s','u','p','p','o','r','t',' ','o','n','e',' ','o','r', -' ','b','o','t','h','"',',','"','t','y','p','e','"',':','"','e','r','r','o','r','"','}',']',',','"', -'t','y','p','e','"',':','"','t','r','e','e','"','}',',','{','"','c','o','n','d','i','t','i','o','n', -'s','"',':','[','{','"','f','n','"',':','"','b','o','o','l','e','a','n','E','q','u','a','l','s','"', -',','"','a','r','g','v','"',':','[','{','"','r','e','f','"',':','"','U','s','e','F','I','P','S','"', -'}',',','t','r','u','e',']','}',']',',','"','r','u','l','e','s','"',':','[','{','"','c','o','n','d', -'i','t','i','o','n','s','"',':','[','{','"','f','n','"',':','"','b','o','o','l','e','a','n','E','q', -'u','a','l','s','"',',','"','a','r','g','v','"',':','[','{','"','f','n','"',':','"','g','e','t','A', -'t','t','r','"',',','"','a','r','g','v','"',':','[','{','"','r','e','f','"',':','"','P','a','r','t', -'i','t','i','o','n','R','e','s','u','l','t','"','}',',','"','s','u','p','p','o','r','t','s','F','I', -'P','S','"',']','}',',','t','r','u','e',']','}',']',',','"','r','u','l','e','s','"',':','[','{','"', -'c','o','n','d','i','t','i','o','n','s','"',':','[',']',',','"','e','n','d','p','o','i','n','t','"', -':','{','"','u','r','l','"',':','"','h','t','t','p','s',':','/','/','b','u','d','g','e','t','s','-', -'f','i','p','s','.','{','R','e','g','i','o','n','}','.','{','P','a','r','t','i','t','i','o','n','R', -'e','s','u','l','t','#','d','n','s','S','u','f','f','i','x','}','"',',','"','p','r','o','p','e','r', -'t','i','e','s','"',':','{','}',',','"','h','e','a','d','e','r','s','"',':','{','}','}',',','"','t', -'y','p','e','"',':','"','e','n','d','p','o','i','n','t','"','}',']',',','"','t','y','p','e','"',':', -'"','t','r','e','e','"','}',',','{','"','c','o','n','d','i','t','i','o','n','s','"',':','[',']',',', -'"','e','r','r','o','r','"',':','"','F','I','P','S',' ','i','s',' ','e','n','a','b','l','e','d',' ', -'b','u','t',' ','t','h','i','s',' ','p','a','r','t','i','t','i','o','n',' ','d','o','e','s',' ','n', -'o','t',' ','s','u','p','p','o','r','t',' ','F','I','P','S','"',',','"','t','y','p','e','"',':','"', -'e','r','r','o','r','"','}',']',',','"','t','y','p','e','"',':','"','t','r','e','e','"','}',',','{', -'"','c','o','n','d','i','t','i','o','n','s','"',':','[','{','"','f','n','"',':','"','b','o','o','l', -'e','a','n','E','q','u','a','l','s','"',',','"','a','r','g','v','"',':','[','{','"','r','e','f','"', -':','"','U','s','e','D','u','a','l','S','t','a','c','k','"','}',',','t','r','u','e',']','}',']',',', -'"','r','u','l','e','s','"',':','[','{','"','c','o','n','d','i','t','i','o','n','s','"',':','[','{', -'"','f','n','"',':','"','b','o','o','l','e','a','n','E','q','u','a','l','s','"',',','"','a','r','g', -'v','"',':','[','t','r','u','e',',','{','"','f','n','"',':','"','g','e','t','A','t','t','r','"',',', -'"','a','r','g','v','"',':','[','{','"','r','e','f','"',':','"','P','a','r','t','i','t','i','o','n', -'R','e','s','u','l','t','"','}',',','"','s','u','p','p','o','r','t','s','D','u','a','l','S','t','a', -'c','k','"',']','}',']','}',']',',','"','r','u','l','e','s','"',':','[','{','"','c','o','n','d','i', -'t','i','o','n','s','"',':','[',']',',','"','e','n','d','p','o','i','n','t','"',':','{','"','u','r', -'l','"',':','"','h','t','t','p','s',':','/','/','b','u','d','g','e','t','s','.','{','R','e','g','i', -'o','n','}','.','{','P','a','r','t','i','t','i','o','n','R','e','s','u','l','t','#','d','u','a','l', -'S','t','a','c','k','D','n','s','S','u','f','f','i','x','}','"',',','"','p','r','o','p','e','r','t', -'i','e','s','"',':','{','}',',','"','h','e','a','d','e','r','s','"',':','{','}','}',',','"','t','y', -'p','e','"',':','"','e','n','d','p','o','i','n','t','"','}',']',',','"','t','y','p','e','"',':','"', -'t','r','e','e','"','}',',','{','"','c','o','n','d','i','t','i','o','n','s','"',':','[',']',',','"', -'e','r','r','o','r','"',':','"','D','u','a','l','S','t','a','c','k',' ','i','s',' ','e','n','a','b', -'l','e','d',' ','b','u','t',' ','t','h','i','s',' ','p','a','r','t','i','t','i','o','n',' ','d','o', -'e','s',' ','n','o','t',' ','s','u','p','p','o','r','t',' ','D','u','a','l','S','t','a','c','k','"', -',','"','t','y','p','e','"',':','"','e','r','r','o','r','"','}',']',',','"','t','y','p','e','"',':', -'"','t','r','e','e','"','}',',','{','"','c','o','n','d','i','t','i','o','n','s','"',':','[',']',',', -'"','e','n','d','p','o','i','n','t','"',':','{','"','u','r','l','"',':','"','h','t','t','p','s',':', -'/','/','b','u','d','g','e','t','s','.','{','R','e','g','i','o','n','}','.','{','P','a','r','t','i', -'t','i','o','n','R','e','s','u','l','t','#','d','n','s','S','u','f','f','i','x','}','"',',','"','p', -'r','o','p','e','r','t','i','e','s','"',':','{','}',',','"','h','e','a','d','e','r','s','"',':','{', -'}','}',',','"','t','y','p','e','"',':','"','e','n','d','p','o','i','n','t','"','}',']',',','"','t', -'y','p','e','"',':','"','t','r','e','e','"','}',']',',','"','t','y','p','e','"',':','"','t','r','e', -'e','"','}',',','{','"','c','o','n','d','i','t','i','o','n','s','"',':','[',']',',','"','e','r','r', -'o','r','"',':','"','I','n','v','a','l','i','d',' ','C','o','n','f','i','g','u','r','a','t','i','o', -'n',':',' ','M','i','s','s','i','n','g',' ','R','e','g','i','o','n','"',',','"','t','y','p','e','"', -':','"','e','r','r','o','r','"','}',']','}','\0' +'b','u','d','g','e','t','s','.','{','R','e','g','i','o','n','}','.','{','P','a','r','t','i','t','i', +'o','n','R','e','s','u','l','t','#','d','u','a','l','S','t','a','c','k','D','n','s','S','u','f','f', +'i','x','}','"',',','"','p','r','o','p','e','r','t','i','e','s','"',':','{','}',',','"','h','e','a', +'d','e','r','s','"',':','{','}','}',',','"','t','y','p','e','"',':','"','e','n','d','p','o','i','n', +'t','"','}',']',',','"','t','y','p','e','"',':','"','t','r','e','e','"','}',',','{','"','c','o','n', +'d','i','t','i','o','n','s','"',':','[',']',',','"','e','r','r','o','r','"',':','"','D','u','a','l', +'S','t','a','c','k',' ','i','s',' ','e','n','a','b','l','e','d',' ','b','u','t',' ','t','h','i','s', +' ','p','a','r','t','i','t','i','o','n',' ','d','o','e','s',' ','n','o','t',' ','s','u','p','p','o', +'r','t',' ','D','u','a','l','S','t','a','c','k','"',',','"','t','y','p','e','"',':','"','e','r','r', +'o','r','"','}',']',',','"','t','y','p','e','"',':','"','t','r','e','e','"','}',',','{','"','c','o', +'n','d','i','t','i','o','n','s','"',':','[',']',',','"','e','n','d','p','o','i','n','t','"',':','{', +'"','u','r','l','"',':','"','h','t','t','p','s',':','/','/','b','u','d','g','e','t','s','.','{','R', +'e','g','i','o','n','}','.','{','P','a','r','t','i','t','i','o','n','R','e','s','u','l','t','#','d', +'n','s','S','u','f','f','i','x','}','"',',','"','p','r','o','p','e','r','t','i','e','s','"',':','{', +'}',',','"','h','e','a','d','e','r','s','"',':','{','}','}',',','"','t','y','p','e','"',':','"','e', +'n','d','p','o','i','n','t','"','}',']',',','"','t','y','p','e','"',':','"','t','r','e','e','"','}', +']',',','"','t','y','p','e','"',':','"','t','r','e','e','"','}',',','{','"','c','o','n','d','i','t', +'i','o','n','s','"',':','[',']',',','"','e','r','r','o','r','"',':','"','I','n','v','a','l','i','d', +' ','C','o','n','f','i','g','u','r','a','t','i','o','n',':',' ','M','i','s','s','i','n','g',' ','R', +'e','g','i','o','n','"',',','"','t','y','p','e','"',':','"','e','r','r','o','r','"','}',']','}','\0' }}; const char* BudgetsEndpointRules::GetRulesBlob() diff --git a/generated/src/aws-cpp-sdk-kinesis/include/aws/kinesis/KinesisClient.h b/generated/src/aws-cpp-sdk-kinesis/include/aws/kinesis/KinesisClient.h index 72e399aa45b..a836b99e02c 100644 --- a/generated/src/aws-cpp-sdk-kinesis/include/aws/kinesis/KinesisClient.h +++ b/generated/src/aws-cpp-sdk-kinesis/include/aws/kinesis/KinesisClient.h @@ -147,7 +147,13 @@ namespace Kinesis * Amazon Web Services Support.

You can use DescribeStreamSummary * to check the stream status, which is returned in StreamStatus.

*

CreateStream has a limit of five transactions per second per - * account.

See Also:

You can add tags to the stream when making a + * CreateStream request by setting the Tags parameter. If + * you pass Tags parameter, in addition to having + * kinesis:createStream permission, you must also have + * kinesis:addTagsToStream permission for the stream that will be + * created. Tags will take effect from the CREATING status of the + * stream.

See Also:

AWS * API Reference

*/ @@ -1117,13 +1123,13 @@ namespace Kinesis * every shard you subscribe to. This rate is unaffected by the total number of * consumers that read from the same stream.

You can register up to 20 * consumers per stream. A given consumer can only be registered with one stream at - * a time.

For an example of how to use this operations, see Enhanced Fan-Out - * Using the Kinesis Data Streams API.

The use of this operation has a - * limit of five transactions per second per account. Also, only 5 consumers can be - * created simultaneously. In other words, you cannot have more than 5 consumers in - * a CREATING status at the same time. Registering a 6th consumer - * while there are 5 in a CREATING status results in a + * a time.

For an example of how to use this operation, see Enhanced + * Fan-Out Using the Kinesis Data Streams API.

The use of this operation + * has a limit of five transactions per second per account. Also, only 5 consumers + * can be created simultaneously. In other words, you cannot have more than 5 + * consumers in a CREATING status at the same time. Registering a 6th + * consumer while there are 5 in a CREATING status results in a * LimitExceededException.

See Also:

AWS * API Reference

@@ -1358,9 +1364,9 @@ namespace Kinesis * seconds or more after a successful call, the second call takes over the * subscription and the previous connection expires or fails with a * ResourceInUseException.

For an example of how to use this - * operations, see Enhanced Fan-Out - * Using the Kinesis Data Streams API.

See Also:

Enhanced + * Fan-Out Using the Kinesis Data Streams API.

See Also:

AWS * API Reference

*/ diff --git a/generated/src/aws-cpp-sdk-kinesis/include/aws/kinesis/model/CreateStreamRequest.h b/generated/src/aws-cpp-sdk-kinesis/include/aws/kinesis/model/CreateStreamRequest.h index b30032827e8..01ae1402e10 100644 --- a/generated/src/aws-cpp-sdk-kinesis/include/aws/kinesis/model/CreateStreamRequest.h +++ b/generated/src/aws-cpp-sdk-kinesis/include/aws/kinesis/model/CreateStreamRequest.h @@ -8,6 +8,7 @@ #include #include #include +#include #include namespace Aws @@ -83,6 +84,25 @@ namespace Model inline CreateStreamRequest& WithStreamModeDetails(const StreamModeDetails& value) { SetStreamModeDetails(value); return *this;} inline CreateStreamRequest& WithStreamModeDetails(StreamModeDetails&& value) { SetStreamModeDetails(std::move(value)); return *this;} ///@} + + ///@{ + /** + *

A set of up to 10 key-value pairs to use to create the tags.

+ */ + 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 CreateStreamRequest& WithTags(const Aws::Map& value) { SetTags(value); return *this;} + inline CreateStreamRequest& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} + inline CreateStreamRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } + inline CreateStreamRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } + inline CreateStreamRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } + inline CreateStreamRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } + inline CreateStreamRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } + inline CreateStreamRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } + inline CreateStreamRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } + ///@} private: Aws::String m_streamName; @@ -93,6 +113,9 @@ namespace Model StreamModeDetails m_streamModeDetails; bool m_streamModeDetailsHasBeenSet = false; + + Aws::Map m_tags; + bool m_tagsHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-kinesis/source/model/CreateStreamRequest.cpp b/generated/src/aws-cpp-sdk-kinesis/source/model/CreateStreamRequest.cpp index 4a63ea27c8e..d8fd2b4d9d6 100644 --- a/generated/src/aws-cpp-sdk-kinesis/source/model/CreateStreamRequest.cpp +++ b/generated/src/aws-cpp-sdk-kinesis/source/model/CreateStreamRequest.cpp @@ -16,7 +16,8 @@ CreateStreamRequest::CreateStreamRequest() : m_streamNameHasBeenSet(false), m_shardCount(0), m_shardCountHasBeenSet(false), - m_streamModeDetailsHasBeenSet(false) + m_streamModeDetailsHasBeenSet(false), + m_tagsHasBeenSet(false) { } @@ -42,6 +43,17 @@ Aws::String CreateStreamRequest::SerializePayload() const } + 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-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 89ae8866a5b..67e9d683af9 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 @@ -863,6 +863,33 @@ namespace PinpointSMSVoiceV2 return SubmitAsync(&PinpointSMSVoiceV2Client::DeleteRegistrationFieldValue, request, handler, context); } + /** + *

Deletes the resource-based policy document attached to the AWS End User + * Messaging SMS and Voice resource. A shared resource can be a Pool, Opt-out list, + * Sender Id, or Phone number.

See Also:

AWS + * API Reference

+ */ + virtual Model::DeleteResourcePolicyOutcome DeleteResourcePolicy(const Model::DeleteResourcePolicyRequest& request) const; + + /** + * A Callable wrapper for DeleteResourcePolicy that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::DeleteResourcePolicyOutcomeCallable DeleteResourcePolicyCallable(const DeleteResourcePolicyRequestT& request) const + { + return SubmitCallable(&PinpointSMSVoiceV2Client::DeleteResourcePolicy, request); + } + + /** + * An Async wrapper for DeleteResourcePolicy that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void DeleteResourcePolicyAsync(const DeleteResourcePolicyRequestT& request, const DeleteResourcePolicyResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&PinpointSMSVoiceV2Client::DeleteResourcePolicy, request, handler, context); + } + /** *

Deletes an account-level monthly spending limit override for sending text * messages. Deleting a spend limit override will set the @@ -1613,6 +1640,33 @@ namespace PinpointSMSVoiceV2 return SubmitAsync(&PinpointSMSVoiceV2Client::GetProtectConfigurationCountryRuleSet, request, handler, context); } + /** + *

Retrieves the JSON text of the resource-based policy document attached to the + * AWS End User Messaging SMS and Voice resource. A shared resource can be a Pool, + * Opt-out list, Sender Id, or Phone number.

See Also:

AWS + * API Reference

+ */ + virtual Model::GetResourcePolicyOutcome GetResourcePolicy(const Model::GetResourcePolicyRequest& request) const; + + /** + * A Callable wrapper for GetResourcePolicy that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::GetResourcePolicyOutcomeCallable GetResourcePolicyCallable(const GetResourcePolicyRequestT& request) const + { + return SubmitCallable(&PinpointSMSVoiceV2Client::GetResourcePolicy, request); + } + + /** + * An Async wrapper for GetResourcePolicy that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void GetResourcePolicyAsync(const GetResourcePolicyRequestT& request, const GetResourcePolicyResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&PinpointSMSVoiceV2Client::GetResourcePolicy, request, handler, context); + } + /** *

Lists all associated origination identities in your pool.

If you * specify filters, the output includes information for only those origination @@ -1776,6 +1830,37 @@ namespace PinpointSMSVoiceV2 return SubmitAsync(&PinpointSMSVoiceV2Client::PutRegistrationFieldValue, request, handler, context); } + /** + *

Attaches a resource-based policy to a AWS End User Messaging SMS and Voice + * resource(phone number, sender Id, phone poll, or opt-out list) that is used for + * sharing the resource. A shared resource can be a Pool, Opt-out list, Sender Id, + * or Phone number. For more information about resource-based policies, see Working + * with shared resources in the AWS End User Messaging SMS User Guide. + *

See Also:

AWS + * API Reference

+ */ + virtual Model::PutResourcePolicyOutcome PutResourcePolicy(const Model::PutResourcePolicyRequest& request) const; + + /** + * A Callable wrapper for PutResourcePolicy that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::PutResourcePolicyOutcomeCallable PutResourcePolicyCallable(const PutResourcePolicyRequestT& request) const + { + return SubmitCallable(&PinpointSMSVoiceV2Client::PutResourcePolicy, request); + } + + /** + * An Async wrapper for PutResourcePolicy that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void PutResourcePolicyAsync(const PutResourcePolicyRequestT& request, const PutResourcePolicyResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&PinpointSMSVoiceV2Client::PutResourcePolicy, request, handler, context); + } + /** *

Releases an existing origination phone number in your account. Once released, * a phone number is no longer available for sending messages.

If the diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/PinpointSMSVoiceV2ServiceClientModel.h b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/PinpointSMSVoiceV2ServiceClientModel.h index 4b9bbde94db..5f351ebd7e4 100644 --- a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/PinpointSMSVoiceV2ServiceClientModel.h +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/PinpointSMSVoiceV2ServiceClientModel.h @@ -44,6 +44,7 @@ #include #include #include +#include #include #include #include @@ -70,12 +71,14 @@ #include #include #include +#include #include #include #include #include #include #include +#include #include #include #include @@ -185,6 +188,7 @@ namespace Aws class DeleteRegistrationRequest; class DeleteRegistrationAttachmentRequest; class DeleteRegistrationFieldValueRequest; + class DeleteResourcePolicyRequest; class DeleteTextMessageSpendLimitOverrideRequest; class DeleteVerifiedDestinationNumberRequest; class DeleteVoiceMessageSpendLimitOverrideRequest; @@ -211,12 +215,14 @@ namespace Aws class DisassociateProtectConfigurationRequest; class DiscardRegistrationVersionRequest; class GetProtectConfigurationCountryRuleSetRequest; + class GetResourcePolicyRequest; class ListPoolOriginationIdentitiesRequest; class ListRegistrationAssociationsRequest; class ListTagsForResourceRequest; class PutKeywordRequest; class PutOptedOutNumberRequest; class PutRegistrationFieldValueRequest; + class PutResourcePolicyRequest; class ReleasePhoneNumberRequest; class ReleaseSenderIdRequest; class RequestPhoneNumberRequest; @@ -270,6 +276,7 @@ namespace Aws typedef Aws::Utils::Outcome DeleteRegistrationOutcome; typedef Aws::Utils::Outcome DeleteRegistrationAttachmentOutcome; typedef Aws::Utils::Outcome DeleteRegistrationFieldValueOutcome; + typedef Aws::Utils::Outcome DeleteResourcePolicyOutcome; typedef Aws::Utils::Outcome DeleteTextMessageSpendLimitOverrideOutcome; typedef Aws::Utils::Outcome DeleteVerifiedDestinationNumberOutcome; typedef Aws::Utils::Outcome DeleteVoiceMessageSpendLimitOverrideOutcome; @@ -296,12 +303,14 @@ namespace Aws typedef Aws::Utils::Outcome DisassociateProtectConfigurationOutcome; typedef Aws::Utils::Outcome DiscardRegistrationVersionOutcome; typedef Aws::Utils::Outcome GetProtectConfigurationCountryRuleSetOutcome; + typedef Aws::Utils::Outcome GetResourcePolicyOutcome; typedef Aws::Utils::Outcome ListPoolOriginationIdentitiesOutcome; typedef Aws::Utils::Outcome ListRegistrationAssociationsOutcome; typedef Aws::Utils::Outcome ListTagsForResourceOutcome; typedef Aws::Utils::Outcome PutKeywordOutcome; typedef Aws::Utils::Outcome PutOptedOutNumberOutcome; typedef Aws::Utils::Outcome PutRegistrationFieldValueOutcome; + typedef Aws::Utils::Outcome PutResourcePolicyOutcome; typedef Aws::Utils::Outcome ReleasePhoneNumberOutcome; typedef Aws::Utils::Outcome ReleaseSenderIdOutcome; typedef Aws::Utils::Outcome RequestPhoneNumberOutcome; @@ -355,6 +364,7 @@ namespace Aws typedef std::future DeleteRegistrationOutcomeCallable; typedef std::future DeleteRegistrationAttachmentOutcomeCallable; typedef std::future DeleteRegistrationFieldValueOutcomeCallable; + typedef std::future DeleteResourcePolicyOutcomeCallable; typedef std::future DeleteTextMessageSpendLimitOverrideOutcomeCallable; typedef std::future DeleteVerifiedDestinationNumberOutcomeCallable; typedef std::future DeleteVoiceMessageSpendLimitOverrideOutcomeCallable; @@ -381,12 +391,14 @@ namespace Aws typedef std::future DisassociateProtectConfigurationOutcomeCallable; typedef std::future DiscardRegistrationVersionOutcomeCallable; typedef std::future GetProtectConfigurationCountryRuleSetOutcomeCallable; + typedef std::future GetResourcePolicyOutcomeCallable; typedef std::future ListPoolOriginationIdentitiesOutcomeCallable; typedef std::future ListRegistrationAssociationsOutcomeCallable; typedef std::future ListTagsForResourceOutcomeCallable; typedef std::future PutKeywordOutcomeCallable; typedef std::future PutOptedOutNumberOutcomeCallable; typedef std::future PutRegistrationFieldValueOutcomeCallable; + typedef std::future PutResourcePolicyOutcomeCallable; typedef std::future ReleasePhoneNumberOutcomeCallable; typedef std::future ReleaseSenderIdOutcomeCallable; typedef std::future RequestPhoneNumberOutcomeCallable; @@ -443,6 +455,7 @@ namespace Aws typedef std::function&) > DeleteRegistrationResponseReceivedHandler; typedef std::function&) > DeleteRegistrationAttachmentResponseReceivedHandler; typedef std::function&) > DeleteRegistrationFieldValueResponseReceivedHandler; + typedef std::function&) > DeleteResourcePolicyResponseReceivedHandler; typedef std::function&) > DeleteTextMessageSpendLimitOverrideResponseReceivedHandler; typedef std::function&) > DeleteVerifiedDestinationNumberResponseReceivedHandler; typedef std::function&) > DeleteVoiceMessageSpendLimitOverrideResponseReceivedHandler; @@ -469,12 +482,14 @@ namespace Aws typedef std::function&) > DisassociateProtectConfigurationResponseReceivedHandler; typedef std::function&) > DiscardRegistrationVersionResponseReceivedHandler; typedef std::function&) > GetProtectConfigurationCountryRuleSetResponseReceivedHandler; + typedef std::function&) > GetResourcePolicyResponseReceivedHandler; typedef std::function&) > ListPoolOriginationIdentitiesResponseReceivedHandler; typedef std::function&) > ListRegistrationAssociationsResponseReceivedHandler; typedef std::function&) > ListTagsForResourceResponseReceivedHandler; typedef std::function&) > PutKeywordResponseReceivedHandler; typedef std::function&) > PutOptedOutNumberResponseReceivedHandler; typedef std::function&) > PutRegistrationFieldValueResponseReceivedHandler; + typedef std::function&) > PutResourcePolicyResponseReceivedHandler; typedef std::function&) > ReleasePhoneNumberResponseReceivedHandler; typedef std::function&) > ReleaseSenderIdResponseReceivedHandler; typedef std::function&) > RequestPhoneNumberResponseReceivedHandler; diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/AssociateOriginationIdentityRequest.h b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/AssociateOriginationIdentityRequest.h index acc3abf11ed..0958005f5d3 100644 --- a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/AssociateOriginationIdentityRequest.h +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/AssociateOriginationIdentityRequest.h @@ -39,6 +39,8 @@ namespace Model /** *

The pool to update with the new Identity. This value can be either the PoolId * or PoolArn, and you can find these values using DescribePools.

+ *

If you are using a shared AWS End User Messaging SMS and Voice + * resource then you must use the full Amazon Resource Name(ARN).

*/ inline const Aws::String& GetPoolId() const{ return m_poolId; } inline bool PoolIdHasBeenSet() const { return m_poolIdHasBeenSet; } @@ -55,7 +57,9 @@ namespace Model *

The origination identity to use, such as PhoneNumberId, PhoneNumberArn, * SenderId, or SenderIdArn. You can use DescribePhoneNumbers to find the * values for PhoneNumberId and PhoneNumberArn, while DescribeSenderIds can - * be used to get the values for SenderId and SenderIdArn.

+ * be used to get the values for SenderId and SenderIdArn.

If + * you are using a shared AWS End User Messaging SMS and Voice resource then you + * must use the full Amazon Resource Name(ARN).

*/ inline const Aws::String& GetOriginationIdentity() const{ return m_originationIdentity; } inline bool OriginationIdentityHasBeenSet() const { return m_originationIdentityHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/CreatePoolRequest.h b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/CreatePoolRequest.h index 52ca6ebbdb2..5c338d4bd19 100644 --- a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/CreatePoolRequest.h +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/CreatePoolRequest.h @@ -46,6 +46,8 @@ namespace Model * be used to get the values for SenderId and SenderIdArn.

After the pool is * created you can add more origination identities to the pool by using AssociateOriginationIdentity.

+ *

If you are using a shared AWS End User Messaging SMS and Voice + * resource then you must use the full Amazon Resource Name(ARN).

*/ inline const Aws::String& GetOriginationIdentity() const{ return m_originationIdentity; } inline bool OriginationIdentityHasBeenSet() const { return m_originationIdentityHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/DeleteKeywordRequest.h b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/DeleteKeywordRequest.h index 595f80419a4..079b5937e7c 100644 --- a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/DeleteKeywordRequest.h +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/DeleteKeywordRequest.h @@ -39,7 +39,9 @@ namespace Model *

The origination identity to use such as a PhoneNumberId, PhoneNumberArn, * PoolId or PoolArn. You can use DescribePhoneNumbers to find the values * for PhoneNumberId and PhoneNumberArn and DescribePools to find the values - * of PoolId and PoolArn.

+ * of PoolId and PoolArn.

If you are using a shared AWS End User + * Messaging SMS and Voice resource then you must use the full Amazon Resource + * Name(ARN).

*/ inline const Aws::String& GetOriginationIdentity() const{ return m_originationIdentity; } inline bool OriginationIdentityHasBeenSet() const { return m_originationIdentityHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/DeleteOptOutListRequest.h b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/DeleteOptOutListRequest.h index b690a256942..e086a7e1ff2 100644 --- a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/DeleteOptOutListRequest.h +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/DeleteOptOutListRequest.h @@ -38,7 +38,9 @@ namespace Model /** *

The OptOutListName or OptOutListArn of the OptOutList to delete. You can use * DescribeOptOutLists to find the values for OptOutListName and - * OptOutListArn.

+ * OptOutListArn.

If you are using a shared AWS End User + * Messaging SMS and Voice resource then you must use the full Amazon Resource + * Name(ARN).

*/ inline const Aws::String& GetOptOutListName() const{ return m_optOutListName; } inline bool OptOutListNameHasBeenSet() const { return m_optOutListNameHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/DeleteOptedOutNumberRequest.h b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/DeleteOptedOutNumberRequest.h index d8d3bcf6eb1..ef3a9d18b10 100644 --- a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/DeleteOptedOutNumberRequest.h +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/DeleteOptedOutNumberRequest.h @@ -37,6 +37,8 @@ namespace Model ///@{ /** *

The OptOutListName or OptOutListArn to remove the phone number from.

+ *

If you are using a shared AWS End User Messaging SMS and Voice + * resource then you must use the full Amazon Resource Name(ARN).

*/ inline const Aws::String& GetOptOutListName() const{ return m_optOutListName; } inline bool OptOutListNameHasBeenSet() const { return m_optOutListNameHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/DeletePoolRequest.h b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/DeletePoolRequest.h index 7caa0987bec..2bf0b32bd3b 100644 --- a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/DeletePoolRequest.h +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/DeletePoolRequest.h @@ -37,7 +37,9 @@ namespace Model ///@{ /** *

The PoolId or PoolArn of the pool to delete. You can use DescribePools - * to find the values for PoolId and PoolArn .

+ * to find the values for PoolId and PoolArn .

If you are using + * a shared AWS End User Messaging SMS and Voice resource then you must use the + * full Amazon Resource Name(ARN).

*/ inline const Aws::String& GetPoolId() const{ return m_poolId; } inline bool PoolIdHasBeenSet() const { return m_poolIdHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/DeleteResourcePolicyRequest.h b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/DeleteResourcePolicyRequest.h new file mode 100644 index 00000000000..1e0309034ab --- /dev/null +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/DeleteResourcePolicyRequest.h @@ -0,0 +1,59 @@ +/** + * 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 PinpointSMSVoiceV2 +{ +namespace Model +{ + + /** + */ + class DeleteResourcePolicyRequest : public PinpointSMSVoiceV2Request + { + public: + AWS_PINPOINTSMSVOICEV2_API DeleteResourcePolicyRequest(); + + // 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 "DeleteResourcePolicy"; } + + AWS_PINPOINTSMSVOICEV2_API Aws::String SerializePayload() const override; + + AWS_PINPOINTSMSVOICEV2_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; + + + ///@{ + /** + *

The Amazon Resource Name (ARN) of the AWS End User Messaging SMS and Voice + * resource you're deleting the resource-based policy from.

+ */ + inline const Aws::String& GetResourceArn() const{ return m_resourceArn; } + inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; } + inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; } + inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); } + inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); } + inline DeleteResourcePolicyRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;} + inline DeleteResourcePolicyRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;} + inline DeleteResourcePolicyRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;} + ///@} + private: + + Aws::String m_resourceArn; + bool m_resourceArnHasBeenSet = false; + }; + +} // namespace Model +} // namespace PinpointSMSVoiceV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/DeleteResourcePolicyResult.h b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/DeleteResourcePolicyResult.h new file mode 100644 index 00000000000..41d58a76f07 --- /dev/null +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/DeleteResourcePolicyResult.h @@ -0,0 +1,98 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace PinpointSMSVoiceV2 +{ +namespace Model +{ + class DeleteResourcePolicyResult + { + public: + AWS_PINPOINTSMSVOICEV2_API DeleteResourcePolicyResult(); + AWS_PINPOINTSMSVOICEV2_API DeleteResourcePolicyResult(const Aws::AmazonWebServiceResult& result); + AWS_PINPOINTSMSVOICEV2_API DeleteResourcePolicyResult& operator=(const Aws::AmazonWebServiceResult& result); + + + ///@{ + /** + *

The Amazon Resource Name (ARN) of the AWS End User Messaging SMS and Voice + * resource that the resource-based policy was deleted from.

+ */ + inline const Aws::String& GetResourceArn() const{ return m_resourceArn; } + inline void SetResourceArn(const Aws::String& value) { m_resourceArn = value; } + inline void SetResourceArn(Aws::String&& value) { m_resourceArn = std::move(value); } + inline void SetResourceArn(const char* value) { m_resourceArn.assign(value); } + inline DeleteResourcePolicyResult& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;} + inline DeleteResourcePolicyResult& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;} + inline DeleteResourcePolicyResult& WithResourceArn(const char* value) { SetResourceArn(value); return *this;} + ///@} + + ///@{ + /** + *

The JSON formatted resource-based policy that was deleted.

+ */ + inline const Aws::String& GetPolicy() const{ return m_policy; } + inline void SetPolicy(const Aws::String& value) { m_policy = value; } + inline void SetPolicy(Aws::String&& value) { m_policy = std::move(value); } + inline void SetPolicy(const char* value) { m_policy.assign(value); } + inline DeleteResourcePolicyResult& WithPolicy(const Aws::String& value) { SetPolicy(value); return *this;} + inline DeleteResourcePolicyResult& WithPolicy(Aws::String&& value) { SetPolicy(std::move(value)); return *this;} + inline DeleteResourcePolicyResult& WithPolicy(const char* value) { SetPolicy(value); return *this;} + ///@} + + ///@{ + /** + *

The time when the resource-based policy was created, in UNIX epoch time format.

+ */ + inline const Aws::Utils::DateTime& GetCreatedTimestamp() const{ return m_createdTimestamp; } + inline void SetCreatedTimestamp(const Aws::Utils::DateTime& value) { m_createdTimestamp = value; } + inline void SetCreatedTimestamp(Aws::Utils::DateTime&& value) { m_createdTimestamp = std::move(value); } + inline DeleteResourcePolicyResult& WithCreatedTimestamp(const Aws::Utils::DateTime& value) { SetCreatedTimestamp(value); return *this;} + inline DeleteResourcePolicyResult& WithCreatedTimestamp(Aws::Utils::DateTime&& value) { SetCreatedTimestamp(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 DeleteResourcePolicyResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + inline DeleteResourcePolicyResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + inline DeleteResourcePolicyResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + ///@} + private: + + Aws::String m_resourceArn; + + Aws::String m_policy; + + Aws::Utils::DateTime m_createdTimestamp; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace PinpointSMSVoiceV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/DescribeKeywordsRequest.h b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/DescribeKeywordsRequest.h index 76b43662149..968257dc877 100644 --- a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/DescribeKeywordsRequest.h +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/DescribeKeywordsRequest.h @@ -41,7 +41,9 @@ namespace Model *

The origination identity to use such as a PhoneNumberId, PhoneNumberArn, * SenderId or SenderIdArn. You can use DescribePhoneNumbers to find the * values for PhoneNumberId and PhoneNumberArn while DescribeSenderIds can - * be used to get the values for SenderId and SenderIdArn.

+ * be used to get the values for SenderId and SenderIdArn.

If + * you are using a shared AWS End User Messaging SMS and Voice resource then you + * must use the full Amazon Resource Name(ARN).

*/ inline const Aws::String& GetOriginationIdentity() const{ return m_originationIdentity; } inline bool OriginationIdentityHasBeenSet() const { return m_originationIdentityHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/DescribeOptOutListsRequest.h b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/DescribeOptOutListsRequest.h index 0e3bafd713d..cd936821355 100644 --- a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/DescribeOptOutListsRequest.h +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/DescribeOptOutListsRequest.h @@ -8,6 +8,7 @@ #include #include #include +#include #include namespace Aws @@ -38,7 +39,9 @@ namespace Model ///@{ /** *

The OptOutLists to show the details of. This is an array of strings that can - * be either the OptOutListName or OptOutListArn.

+ * be either the OptOutListName or OptOutListArn.

If you are + * using a shared AWS End User Messaging SMS and Voice resource then you must use + * the full Amazon Resource Name(ARN).

*/ inline const Aws::Vector& GetOptOutListNames() const{ return m_optOutListNames; } inline bool OptOutListNamesHasBeenSet() const { return m_optOutListNamesHasBeenSet; } @@ -75,6 +78,21 @@ namespace Model inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } inline DescribeOptOutListsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} ///@} + + ///@{ + /** + *

Use SELF to filter the list of Opt-Out List to ones your account + * owns or use SHARED to filter on Opt-Out List shared with your + * account. The Owner and OptOutListNames parameters + * can't be used at the same time.

+ */ + inline const Owner& GetOwner() const{ return m_owner; } + inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; } + inline void SetOwner(const Owner& value) { m_ownerHasBeenSet = true; m_owner = value; } + inline void SetOwner(Owner&& value) { m_ownerHasBeenSet = true; m_owner = std::move(value); } + inline DescribeOptOutListsRequest& WithOwner(const Owner& value) { SetOwner(value); return *this;} + inline DescribeOptOutListsRequest& WithOwner(Owner&& value) { SetOwner(std::move(value)); return *this;} + ///@} private: Aws::Vector m_optOutListNames; @@ -85,6 +103,9 @@ namespace Model int m_maxResults; bool m_maxResultsHasBeenSet = false; + + Owner m_owner; + bool m_ownerHasBeenSet = false; }; } // namespace Model 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 7d301861932..0322d1d176e 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 @@ -40,7 +40,9 @@ namespace Model /** *

The OptOutListName or OptOutListArn of the OptOutList. You can use * DescribeOptOutLists to find the values for OptOutListName and - * OptOutListArn.

+ * OptOutListArn.

If you are using a shared AWS End User + * Messaging SMS and Voice resource then you must use the full Amazon Resource + * Name(ARN).

*/ inline const Aws::String& GetOptOutListName() const{ return m_optOutListName; } inline bool OptOutListNameHasBeenSet() const { return m_optOutListNameHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/DescribePhoneNumbersRequest.h b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/DescribePhoneNumbersRequest.h index cf01edc445e..23ab8a595b4 100644 --- a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/DescribePhoneNumbersRequest.h +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/DescribePhoneNumbersRequest.h @@ -8,6 +8,7 @@ #include #include #include +#include #include #include @@ -40,6 +41,8 @@ namespace Model /** *

The unique identifier of phone numbers to find information about. This is an * array of strings that can be either the PhoneNumberId or PhoneNumberArn.

+ *

If you are using a shared AWS End User Messaging SMS and Voice + * resource then you must use the full Amazon Resource Name(ARN).

*/ inline const Aws::Vector& GetPhoneNumberIds() const{ return m_phoneNumberIds; } inline bool PhoneNumberIdsHasBeenSet() const { return m_phoneNumberIdsHasBeenSet; } @@ -90,6 +93,21 @@ namespace Model inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } inline DescribePhoneNumbersRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} ///@} + + ///@{ + /** + *

Use SELF to filter the list of phone numbers to ones your + * account owns or use SHARED to filter on phone numbers shared with + * your account. The Owner and PhoneNumberIds parameters + * can't be used at the same time.

+ */ + inline const Owner& GetOwner() const{ return m_owner; } + inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; } + inline void SetOwner(const Owner& value) { m_ownerHasBeenSet = true; m_owner = value; } + inline void SetOwner(Owner&& value) { m_ownerHasBeenSet = true; m_owner = std::move(value); } + inline DescribePhoneNumbersRequest& WithOwner(const Owner& value) { SetOwner(value); return *this;} + inline DescribePhoneNumbersRequest& WithOwner(Owner&& value) { SetOwner(std::move(value)); return *this;} + ///@} private: Aws::Vector m_phoneNumberIds; @@ -103,6 +121,9 @@ namespace Model int m_maxResults; bool m_maxResultsHasBeenSet = false; + + Owner m_owner; + bool m_ownerHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/DescribePoolsRequest.h b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/DescribePoolsRequest.h index e8088ba2fc5..4cd9c2f09b7 100644 --- a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/DescribePoolsRequest.h +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/DescribePoolsRequest.h @@ -8,6 +8,7 @@ #include #include #include +#include #include #include @@ -39,7 +40,9 @@ namespace Model ///@{ /** *

The unique identifier of pools to find. This is an array of strings that can - * be either the PoolId or PoolArn.

+ * be either the PoolId or PoolArn.

If you are using a shared + * AWS End User Messaging SMS and Voice resource then you must use the full Amazon + * Resource Name(ARN).

*/ inline const Aws::Vector& GetPoolIds() const{ return m_poolIds; } inline bool PoolIdsHasBeenSet() const { return m_poolIdsHasBeenSet; } @@ -90,6 +93,21 @@ namespace Model inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } inline DescribePoolsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} ///@} + + ///@{ + /** + *

Use SELF to filter the list of Pools to ones your account owns + * or use SHARED to filter on Pools shared with your account. The + * Owner and PoolIds parameters can't be used at the same + * time.

+ */ + inline const Owner& GetOwner() const{ return m_owner; } + inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; } + inline void SetOwner(const Owner& value) { m_ownerHasBeenSet = true; m_owner = value; } + inline void SetOwner(Owner&& value) { m_ownerHasBeenSet = true; m_owner = std::move(value); } + inline DescribePoolsRequest& WithOwner(const Owner& value) { SetOwner(value); return *this;} + inline DescribePoolsRequest& WithOwner(Owner&& value) { SetOwner(std::move(value)); return *this;} + ///@} private: Aws::Vector m_poolIds; @@ -103,6 +121,9 @@ namespace Model int m_maxResults; bool m_maxResultsHasBeenSet = false; + + Owner m_owner; + bool m_ownerHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/DescribeSenderIdsRequest.h b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/DescribeSenderIdsRequest.h index 3600ea4046c..b4c264ba547 100644 --- a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/DescribeSenderIdsRequest.h +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/DescribeSenderIdsRequest.h @@ -8,6 +8,7 @@ #include #include #include +#include #include #include #include @@ -39,7 +40,9 @@ namespace Model ///@{ /** - *

An array of SenderIdAndCountry objects to search for.

+ *

An array of SenderIdAndCountry objects to search for.

If + * you are using a shared AWS End User Messaging SMS and Voice resource then you + * must use the full Amazon Resource Name(ARN).

*/ inline const Aws::Vector& GetSenderIds() const{ return m_senderIds; } inline bool SenderIdsHasBeenSet() const { return m_senderIdsHasBeenSet; } @@ -89,6 +92,21 @@ namespace Model inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } inline DescribeSenderIdsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} ///@} + + ///@{ + /** + *

Use SELF to filter the list of Sender Ids to ones your account + * owns or use SHARED to filter on Sender Ids shared with your + * account. The Owner and SenderIds parameters can't be + * used at the same time.

+ */ + inline const Owner& GetOwner() const{ return m_owner; } + inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; } + inline void SetOwner(const Owner& value) { m_ownerHasBeenSet = true; m_owner = value; } + inline void SetOwner(Owner&& value) { m_ownerHasBeenSet = true; m_owner = std::move(value); } + inline DescribeSenderIdsRequest& WithOwner(const Owner& value) { SetOwner(value); return *this;} + inline DescribeSenderIdsRequest& WithOwner(Owner&& value) { SetOwner(std::move(value)); return *this;} + ///@} private: Aws::Vector m_senderIds; @@ -102,6 +120,9 @@ namespace Model int m_maxResults; bool m_maxResultsHasBeenSet = false; + + Owner m_owner; + bool m_ownerHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/DisassociateOriginationIdentityRequest.h b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/DisassociateOriginationIdentityRequest.h index c6030cc6310..7d0d0baf68f 100644 --- a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/DisassociateOriginationIdentityRequest.h +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/DisassociateOriginationIdentityRequest.h @@ -38,7 +38,9 @@ namespace Model ///@{ /** *

The unique identifier for the pool to disassociate with the origination - * identity. This value can be either the PoolId or PoolArn.

+ * identity. This value can be either the PoolId or PoolArn.

If + * you are using a shared AWS End User Messaging SMS and Voice resource then you + * must use the full Amazon Resource Name(ARN).

*/ inline const Aws::String& GetPoolId() const{ return m_poolId; } inline bool PoolIdHasBeenSet() const { return m_poolIdHasBeenSet; } @@ -55,7 +57,9 @@ namespace Model *

The origination identity to use such as a PhoneNumberId, PhoneNumberArn, * SenderId or SenderIdArn. You can use DescribePhoneNumbers find the values * for PhoneNumberId and PhoneNumberArn, or use DescribeSenderIds to get the - * values for SenderId and SenderIdArn.

+ * values for SenderId and SenderIdArn.

If you are using a + * shared AWS End User Messaging SMS and Voice resource then you must use the full + * Amazon Resource Name(ARN).

*/ inline const Aws::String& GetOriginationIdentity() const{ return m_originationIdentity; } inline bool OriginationIdentityHasBeenSet() const { return m_originationIdentityHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/GetResourcePolicyRequest.h b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/GetResourcePolicyRequest.h new file mode 100644 index 00000000000..3cfaacf1fdb --- /dev/null +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/GetResourcePolicyRequest.h @@ -0,0 +1,59 @@ +/** + * 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 PinpointSMSVoiceV2 +{ +namespace Model +{ + + /** + */ + class GetResourcePolicyRequest : public PinpointSMSVoiceV2Request + { + public: + AWS_PINPOINTSMSVOICEV2_API GetResourcePolicyRequest(); + + // 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 "GetResourcePolicy"; } + + AWS_PINPOINTSMSVOICEV2_API Aws::String SerializePayload() const override; + + AWS_PINPOINTSMSVOICEV2_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; + + + ///@{ + /** + *

The Amazon Resource Name (ARN) of the AWS End User Messaging SMS and Voice + * resource attached to the resource-based policy.

+ */ + inline const Aws::String& GetResourceArn() const{ return m_resourceArn; } + inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; } + inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; } + inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); } + inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); } + inline GetResourcePolicyRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;} + inline GetResourcePolicyRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;} + inline GetResourcePolicyRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;} + ///@} + private: + + Aws::String m_resourceArn; + bool m_resourceArnHasBeenSet = false; + }; + +} // namespace Model +} // namespace PinpointSMSVoiceV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/GetResourcePolicyResult.h b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/GetResourcePolicyResult.h new file mode 100644 index 00000000000..7e168a281e8 --- /dev/null +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/GetResourcePolicyResult.h @@ -0,0 +1,99 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace PinpointSMSVoiceV2 +{ +namespace Model +{ + class GetResourcePolicyResult + { + public: + AWS_PINPOINTSMSVOICEV2_API GetResourcePolicyResult(); + AWS_PINPOINTSMSVOICEV2_API GetResourcePolicyResult(const Aws::AmazonWebServiceResult& result); + AWS_PINPOINTSMSVOICEV2_API GetResourcePolicyResult& operator=(const Aws::AmazonWebServiceResult& result); + + + ///@{ + /** + *

The Amazon Resource Name (ARN) of the AWS End User Messaging SMS and Voice + * resource attached to the resource-based policy.

+ */ + inline const Aws::String& GetResourceArn() const{ return m_resourceArn; } + inline void SetResourceArn(const Aws::String& value) { m_resourceArn = value; } + inline void SetResourceArn(Aws::String&& value) { m_resourceArn = std::move(value); } + inline void SetResourceArn(const char* value) { m_resourceArn.assign(value); } + inline GetResourcePolicyResult& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;} + inline GetResourcePolicyResult& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;} + inline GetResourcePolicyResult& WithResourceArn(const char* value) { SetResourceArn(value); return *this;} + ///@} + + ///@{ + /** + *

The JSON formatted string that contains the resource-based policy attached to + * the AWS End User Messaging SMS and Voice resource.

+ */ + inline const Aws::String& GetPolicy() const{ return m_policy; } + inline void SetPolicy(const Aws::String& value) { m_policy = value; } + inline void SetPolicy(Aws::String&& value) { m_policy = std::move(value); } + inline void SetPolicy(const char* value) { m_policy.assign(value); } + inline GetResourcePolicyResult& WithPolicy(const Aws::String& value) { SetPolicy(value); return *this;} + inline GetResourcePolicyResult& WithPolicy(Aws::String&& value) { SetPolicy(std::move(value)); return *this;} + inline GetResourcePolicyResult& WithPolicy(const char* value) { SetPolicy(value); return *this;} + ///@} + + ///@{ + /** + *

The time when the resource-based policy was created, in UNIX epoch time format.

+ */ + inline const Aws::Utils::DateTime& GetCreatedTimestamp() const{ return m_createdTimestamp; } + inline void SetCreatedTimestamp(const Aws::Utils::DateTime& value) { m_createdTimestamp = value; } + inline void SetCreatedTimestamp(Aws::Utils::DateTime&& value) { m_createdTimestamp = std::move(value); } + inline GetResourcePolicyResult& WithCreatedTimestamp(const Aws::Utils::DateTime& value) { SetCreatedTimestamp(value); return *this;} + inline GetResourcePolicyResult& WithCreatedTimestamp(Aws::Utils::DateTime&& value) { SetCreatedTimestamp(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 GetResourcePolicyResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + inline GetResourcePolicyResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + inline GetResourcePolicyResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + ///@} + private: + + Aws::String m_resourceArn; + + Aws::String m_policy; + + Aws::Utils::DateTime m_createdTimestamp; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace PinpointSMSVoiceV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/ListPoolOriginationIdentitiesRequest.h b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/ListPoolOriginationIdentitiesRequest.h index 81be8a1f266..37b0607a0ce 100644 --- a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/ListPoolOriginationIdentitiesRequest.h +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/ListPoolOriginationIdentitiesRequest.h @@ -39,7 +39,9 @@ namespace Model ///@{ /** *

The unique identifier for the pool. This value can be either the PoolId or - * PoolArn.

+ * PoolArn.

If you are using a shared AWS End User Messaging SMS + * and Voice resource then you must use the full Amazon Resource Name(ARN).

+ * */ inline const Aws::String& GetPoolId() const{ return m_poolId; } inline bool PoolIdHasBeenSet() const { return m_poolIdHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/Owner.h b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/Owner.h new file mode 100644 index 00000000000..9e983a77500 --- /dev/null +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/Owner.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 PinpointSMSVoiceV2 +{ +namespace Model +{ + enum class Owner + { + NOT_SET, + SELF, + SHARED + }; + +namespace OwnerMapper +{ +AWS_PINPOINTSMSVOICEV2_API Owner GetOwnerForName(const Aws::String& name); + +AWS_PINPOINTSMSVOICEV2_API Aws::String GetNameForOwner(Owner value); +} // namespace OwnerMapper +} // namespace Model +} // namespace PinpointSMSVoiceV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/PutKeywordRequest.h b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/PutKeywordRequest.h index 65cf5d2e699..20513ba7049 100644 --- a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/PutKeywordRequest.h +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/PutKeywordRequest.h @@ -40,7 +40,9 @@ namespace Model *

The origination identity to use such as a PhoneNumberId, PhoneNumberArn, * SenderId or SenderIdArn. You can use DescribePhoneNumbers get the values * for PhoneNumberId and PhoneNumberArn while DescribeSenderIds can be used - * to get the values for SenderId and SenderIdArn.

+ * to get the values for SenderId and SenderIdArn.

If you are + * using a shared AWS End User Messaging SMS and Voice resource then you must use + * the full Amazon Resource Name(ARN).

*/ inline const Aws::String& GetOriginationIdentity() const{ return m_originationIdentity; } inline bool OriginationIdentityHasBeenSet() const { return m_originationIdentityHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/PutOptedOutNumberRequest.h b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/PutOptedOutNumberRequest.h index 3ab72a71ed5..62e8b2c6c3e 100644 --- a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/PutOptedOutNumberRequest.h +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/PutOptedOutNumberRequest.h @@ -37,6 +37,8 @@ namespace Model ///@{ /** *

The OptOutListName or OptOutListArn to add the phone number to.

+ *

If you are using a shared AWS End User Messaging SMS and Voice + * resource then you must use the full Amazon Resource Name(ARN).

*/ inline const Aws::String& GetOptOutListName() const{ return m_optOutListName; } inline bool OptOutListNameHasBeenSet() const { return m_optOutListNameHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/PutResourcePolicyRequest.h b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/PutResourcePolicyRequest.h new file mode 100644 index 00000000000..8bce371dc5f --- /dev/null +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/PutResourcePolicyRequest.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 PinpointSMSVoiceV2 +{ +namespace Model +{ + + /** + */ + class PutResourcePolicyRequest : public PinpointSMSVoiceV2Request + { + public: + AWS_PINPOINTSMSVOICEV2_API PutResourcePolicyRequest(); + + // 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 "PutResourcePolicy"; } + + AWS_PINPOINTSMSVOICEV2_API Aws::String SerializePayload() const override; + + AWS_PINPOINTSMSVOICEV2_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; + + + ///@{ + /** + *

The Amazon Resource Name (ARN) of the AWS End User Messaging SMS and Voice + * resource to attach the resource-based policy to.

+ */ + inline const Aws::String& GetResourceArn() const{ return m_resourceArn; } + inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; } + inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; } + inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); } + inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); } + inline PutResourcePolicyRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;} + inline PutResourcePolicyRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;} + inline PutResourcePolicyRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;} + ///@} + + ///@{ + /** + *

The JSON formatted resource-based policy to attach.

+ */ + inline const Aws::String& GetPolicy() const{ return m_policy; } + inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; } + inline void SetPolicy(const Aws::String& value) { m_policyHasBeenSet = true; m_policy = value; } + inline void SetPolicy(Aws::String&& value) { m_policyHasBeenSet = true; m_policy = std::move(value); } + inline void SetPolicy(const char* value) { m_policyHasBeenSet = true; m_policy.assign(value); } + inline PutResourcePolicyRequest& WithPolicy(const Aws::String& value) { SetPolicy(value); return *this;} + inline PutResourcePolicyRequest& WithPolicy(Aws::String&& value) { SetPolicy(std::move(value)); return *this;} + inline PutResourcePolicyRequest& WithPolicy(const char* value) { SetPolicy(value); return *this;} + ///@} + private: + + Aws::String m_resourceArn; + bool m_resourceArnHasBeenSet = false; + + Aws::String m_policy; + bool m_policyHasBeenSet = false; + }; + +} // namespace Model +} // namespace PinpointSMSVoiceV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/PutResourcePolicyResult.h b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/PutResourcePolicyResult.h new file mode 100644 index 00000000000..24e4f2da391 --- /dev/null +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/PutResourcePolicyResult.h @@ -0,0 +1,98 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace PinpointSMSVoiceV2 +{ +namespace Model +{ + class PutResourcePolicyResult + { + public: + AWS_PINPOINTSMSVOICEV2_API PutResourcePolicyResult(); + AWS_PINPOINTSMSVOICEV2_API PutResourcePolicyResult(const Aws::AmazonWebServiceResult& result); + AWS_PINPOINTSMSVOICEV2_API PutResourcePolicyResult& operator=(const Aws::AmazonWebServiceResult& result); + + + ///@{ + /** + *

The Amazon Resource Name (ARN) of the AWS End User Messaging SMS and Voice + * resource attached to the resource-based policy.

+ */ + inline const Aws::String& GetResourceArn() const{ return m_resourceArn; } + inline void SetResourceArn(const Aws::String& value) { m_resourceArn = value; } + inline void SetResourceArn(Aws::String&& value) { m_resourceArn = std::move(value); } + inline void SetResourceArn(const char* value) { m_resourceArn.assign(value); } + inline PutResourcePolicyResult& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;} + inline PutResourcePolicyResult& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;} + inline PutResourcePolicyResult& WithResourceArn(const char* value) { SetResourceArn(value); return *this;} + ///@} + + ///@{ + /** + *

The JSON formatted Resource Policy.

+ */ + inline const Aws::String& GetPolicy() const{ return m_policy; } + inline void SetPolicy(const Aws::String& value) { m_policy = value; } + inline void SetPolicy(Aws::String&& value) { m_policy = std::move(value); } + inline void SetPolicy(const char* value) { m_policy.assign(value); } + inline PutResourcePolicyResult& WithPolicy(const Aws::String& value) { SetPolicy(value); return *this;} + inline PutResourcePolicyResult& WithPolicy(Aws::String&& value) { SetPolicy(std::move(value)); return *this;} + inline PutResourcePolicyResult& WithPolicy(const char* value) { SetPolicy(value); return *this;} + ///@} + + ///@{ + /** + *

The time when the resource-based policy was created, in UNIX epoch time format.

+ */ + inline const Aws::Utils::DateTime& GetCreatedTimestamp() const{ return m_createdTimestamp; } + inline void SetCreatedTimestamp(const Aws::Utils::DateTime& value) { m_createdTimestamp = value; } + inline void SetCreatedTimestamp(Aws::Utils::DateTime&& value) { m_createdTimestamp = std::move(value); } + inline PutResourcePolicyResult& WithCreatedTimestamp(const Aws::Utils::DateTime& value) { SetCreatedTimestamp(value); return *this;} + inline PutResourcePolicyResult& WithCreatedTimestamp(Aws::Utils::DateTime&& value) { SetCreatedTimestamp(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 PutResourcePolicyResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + inline PutResourcePolicyResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + inline PutResourcePolicyResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + ///@} + private: + + Aws::String m_resourceArn; + + Aws::String m_policy; + + Aws::Utils::DateTime m_createdTimestamp; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace PinpointSMSVoiceV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/ReleasePhoneNumberRequest.h b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/ReleasePhoneNumberRequest.h index a543312f590..c0355742278 100644 --- a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/ReleasePhoneNumberRequest.h +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/ReleasePhoneNumberRequest.h @@ -38,7 +38,9 @@ namespace Model /** *

The PhoneNumberId or PhoneNumberArn of the phone number to release. You can * use DescribePhoneNumbers to get the values for PhoneNumberId and - * PhoneNumberArn.

+ * PhoneNumberArn.

If you are using a shared AWS End User + * Messaging SMS and Voice resource then you must use the full Amazon Resource + * Name(ARN).

*/ inline const Aws::String& GetPhoneNumberId() const{ return m_phoneNumberId; } inline bool PhoneNumberIdHasBeenSet() const { return m_phoneNumberIdHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/RequestPhoneNumberRequest.h b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/RequestPhoneNumberRequest.h index 7b37aeb41b0..5087a9f20e1 100644 --- a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/RequestPhoneNumberRequest.h +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/RequestPhoneNumberRequest.h @@ -99,7 +99,9 @@ namespace Model ///@{ /** *

The name of the OptOutList to associate with the phone number. You can use - * the OptOutListName or OptOutListArn.

+ * the OptOutListName or OptOutListArn.

If you are using a + * shared AWS End User Messaging SMS and Voice resource then you must use the full + * Amazon Resource Name(ARN).

*/ inline const Aws::String& GetOptOutListName() const{ return m_optOutListName; } inline bool OptOutListNameHasBeenSet() const { return m_optOutListNameHasBeenSet; } @@ -114,7 +116,9 @@ namespace Model ///@{ /** *

The pool to associated with the phone number. You can use the PoolId or - * PoolArn.

+ * PoolArn.

If you are using a shared AWS End User Messaging + * SMS and Voice resource then you must use the full Amazon Resource Name(ARN).

+ * */ inline const Aws::String& GetPoolId() const{ return m_poolId; } inline bool PoolIdHasBeenSet() const { return m_poolIdHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/ResourceType.h b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/ResourceType.h index 7ea1e8499ee..ed9eda84f16 100644 --- a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/ResourceType.h +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/ResourceType.h @@ -28,7 +28,8 @@ namespace Model registration, registration_attachment, verified_destination_number, - protect_configuration + protect_configuration, + policy }; namespace ResourceTypeMapper diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/SendDestinationNumberVerificationCodeRequest.h b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/SendDestinationNumberVerificationCodeRequest.h index 906710301d2..dd13051c4b1 100644 --- a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/SendDestinationNumberVerificationCodeRequest.h +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/SendDestinationNumberVerificationCodeRequest.h @@ -80,6 +80,8 @@ namespace Model /** *

The origination identity of the message. This can be either the PhoneNumber, * PhoneNumberId, PhoneNumberArn, SenderId, SenderIdArn, PoolId, or PoolArn.

+ *

If you are using a shared AWS End User Messaging SMS and Voice + * resource then you must use the full Amazon Resource Name(ARN).

*/ inline const Aws::String& GetOriginationIdentity() const{ return m_originationIdentity; } inline bool OriginationIdentityHasBeenSet() const { return m_originationIdentityHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/SendMediaMessageRequest.h b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/SendMediaMessageRequest.h index 3c5c5c09863..64dbf072cd9 100644 --- a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/SendMediaMessageRequest.h +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/SendMediaMessageRequest.h @@ -54,6 +54,8 @@ namespace Model /** *

The origination identity of the message. This can be either the PhoneNumber, * PhoneNumberId, PhoneNumberArn, SenderId, SenderIdArn, PoolId, or PoolArn.

+ *

If you are using a shared AWS End User Messaging SMS and Voice + * resource then you must use the full Amazon Resource Name(ARN).

*/ inline const Aws::String& GetOriginationIdentity() const{ return m_originationIdentity; } inline bool OriginationIdentityHasBeenSet() const { return m_originationIdentityHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/SendTextMessageRequest.h b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/SendTextMessageRequest.h index 467a3a794e0..3e5f8b9c24a 100644 --- a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/SendTextMessageRequest.h +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/SendTextMessageRequest.h @@ -55,6 +55,8 @@ namespace Model /** *

The origination identity of the message. This can be either the PhoneNumber, * PhoneNumberId, PhoneNumberArn, SenderId, SenderIdArn, PoolId, or PoolArn.

+ *

If you are using a shared AWS End User Messaging SMS and Voice + * resource then you must use the full Amazon Resource Name(ARN).

*/ inline const Aws::String& GetOriginationIdentity() const{ return m_originationIdentity; } inline bool OriginationIdentityHasBeenSet() const { return m_originationIdentityHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/SendVoiceMessageRequest.h b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/SendVoiceMessageRequest.h index 1f2c4d92449..460d5ea502c 100644 --- a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/SendVoiceMessageRequest.h +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/SendVoiceMessageRequest.h @@ -54,7 +54,9 @@ namespace Model ///@{ /** *

The origination identity to use for the voice call. This can be the - * PhoneNumber, PhoneNumberId, PhoneNumberArn, PoolId, or PoolArn.

+ * PhoneNumber, PhoneNumberId, PhoneNumberArn, PoolId, or PoolArn.

+ *

If you are using a shared AWS End User Messaging SMS and Voice resource then + * you must use the full Amazon Resource Name(ARN).

*/ inline const Aws::String& GetOriginationIdentity() const{ return m_originationIdentity; } inline bool OriginationIdentityHasBeenSet() const { return m_originationIdentityHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/UpdatePhoneNumberRequest.h b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/UpdatePhoneNumberRequest.h index d4544b3c752..20b30b39643 100644 --- a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/UpdatePhoneNumberRequest.h +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/UpdatePhoneNumberRequest.h @@ -37,7 +37,9 @@ namespace Model ///@{ /** *

The unique identifier of the phone number. Valid values for this field can be - * either the PhoneNumberId or PhoneNumberArn.

+ * either the PhoneNumberId or PhoneNumberArn.

If you are using + * a shared AWS End User Messaging SMS and Voice resource then you must use the + * full Amazon Resource Name(ARN).

*/ inline const Aws::String& GetPhoneNumberId() const{ return m_phoneNumberId; } inline bool PhoneNumberIdHasBeenSet() const { return m_phoneNumberIdHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/UpdatePoolRequest.h b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/UpdatePoolRequest.h index da7246f92a2..f3f33fb4ffb 100644 --- a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/UpdatePoolRequest.h +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/UpdatePoolRequest.h @@ -37,7 +37,9 @@ namespace Model ///@{ /** *

The unique identifier of the pool to update. Valid values are either the - * PoolId or PoolArn.

+ * PoolId or PoolArn.

If you are using a shared AWS End User + * Messaging SMS and Voice resource then you must use the full Amazon Resource + * Name(ARN).

*/ inline const Aws::String& GetPoolId() const{ return m_poolId; } inline bool PoolIdHasBeenSet() const { return m_poolIdHasBeenSet; } @@ -107,7 +109,9 @@ namespace Model ///@{ /** *

The OptOutList to associate with the pool. Valid values are either - * OptOutListName or OptOutListArn.

+ * OptOutListName or OptOutListArn.

If you are using a shared + * AWS End User Messaging SMS and Voice resource then you must use the full Amazon + * Resource Name(ARN).

*/ inline const Aws::String& GetOptOutListName() const{ return m_optOutListName; } inline bool OptOutListNameHasBeenSet() const { return m_optOutListNameHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/PinpointSMSVoiceV2Client.cpp b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/PinpointSMSVoiceV2Client.cpp index 5cac8fde575..d9deedf9a7f 100644 --- a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/PinpointSMSVoiceV2Client.cpp +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/PinpointSMSVoiceV2Client.cpp @@ -47,6 +47,7 @@ #include #include #include +#include #include #include #include @@ -73,12 +74,14 @@ #include #include #include +#include #include #include #include #include #include #include +#include #include #include #include @@ -922,6 +925,32 @@ DeleteRegistrationFieldValueOutcome PinpointSMSVoiceV2Client::DeleteRegistration {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +DeleteResourcePolicyOutcome PinpointSMSVoiceV2Client::DeleteResourcePolicy(const DeleteResourcePolicyRequest& request) const +{ + AWS_OPERATION_GUARD(DeleteResourcePolicy); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteResourcePolicy, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteResourcePolicy, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, DeleteResourcePolicy, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DeleteResourcePolicy", + {{ 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( + [&]()-> DeleteResourcePolicyOutcome { + 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, DeleteResourcePolicy, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DeleteResourcePolicyOutcome(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()}}); +} + DeleteTextMessageSpendLimitOverrideOutcome PinpointSMSVoiceV2Client::DeleteTextMessageSpendLimitOverride(const DeleteTextMessageSpendLimitOverrideRequest& request) const { AWS_OPERATION_GUARD(DeleteTextMessageSpendLimitOverride); @@ -1598,6 +1627,32 @@ GetProtectConfigurationCountryRuleSetOutcome PinpointSMSVoiceV2Client::GetProtec {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +GetResourcePolicyOutcome PinpointSMSVoiceV2Client::GetResourcePolicy(const GetResourcePolicyRequest& request) const +{ + AWS_OPERATION_GUARD(GetResourcePolicy); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, GetResourcePolicy, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, GetResourcePolicy, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, GetResourcePolicy, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".GetResourcePolicy", + {{ 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( + [&]()-> GetResourcePolicyOutcome { + 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, GetResourcePolicy, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return GetResourcePolicyOutcome(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()}}); +} + ListPoolOriginationIdentitiesOutcome PinpointSMSVoiceV2Client::ListPoolOriginationIdentities(const ListPoolOriginationIdentitiesRequest& request) const { AWS_OPERATION_GUARD(ListPoolOriginationIdentities); @@ -1754,6 +1809,32 @@ PutRegistrationFieldValueOutcome PinpointSMSVoiceV2Client::PutRegistrationFieldV {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +PutResourcePolicyOutcome PinpointSMSVoiceV2Client::PutResourcePolicy(const PutResourcePolicyRequest& request) const +{ + AWS_OPERATION_GUARD(PutResourcePolicy); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, PutResourcePolicy, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, PutResourcePolicy, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, PutResourcePolicy, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".PutResourcePolicy", + {{ 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( + [&]()-> PutResourcePolicyOutcome { + 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, PutResourcePolicy, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return PutResourcePolicyOutcome(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()}}); +} + ReleasePhoneNumberOutcome PinpointSMSVoiceV2Client::ReleasePhoneNumber(const ReleasePhoneNumberRequest& request) const { AWS_OPERATION_GUARD(ReleasePhoneNumber); diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/DeleteResourcePolicyRequest.cpp b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/DeleteResourcePolicyRequest.cpp new file mode 100644 index 00000000000..674aa6cd8c1 --- /dev/null +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/DeleteResourcePolicyRequest.cpp @@ -0,0 +1,43 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::PinpointSMSVoiceV2::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +DeleteResourcePolicyRequest::DeleteResourcePolicyRequest() : + m_resourceArnHasBeenSet(false) +{ +} + +Aws::String DeleteResourcePolicyRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_resourceArnHasBeenSet) + { + payload.WithString("ResourceArn", m_resourceArn); + + } + + return payload.View().WriteReadable(); +} + +Aws::Http::HeaderValueCollection DeleteResourcePolicyRequest::GetRequestSpecificHeaders() const +{ + Aws::Http::HeaderValueCollection headers; + headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "PinpointSMSVoiceV2.DeleteResourcePolicy")); + return headers; + +} + + + + diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/DeleteResourcePolicyResult.cpp b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/DeleteResourcePolicyResult.cpp new file mode 100644 index 00000000000..24c368cb851 --- /dev/null +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/DeleteResourcePolicyResult.cpp @@ -0,0 +1,60 @@ +/** + * 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::PinpointSMSVoiceV2::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +DeleteResourcePolicyResult::DeleteResourcePolicyResult() +{ +} + +DeleteResourcePolicyResult::DeleteResourcePolicyResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +DeleteResourcePolicyResult& DeleteResourcePolicyResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("ResourceArn")) + { + m_resourceArn = jsonValue.GetString("ResourceArn"); + + } + + if(jsonValue.ValueExists("Policy")) + { + m_policy = jsonValue.GetString("Policy"); + + } + + if(jsonValue.ValueExists("CreatedTimestamp")) + { + m_createdTimestamp = jsonValue.GetDouble("CreatedTimestamp"); + + } + + + 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-pinpoint-sms-voice-v2/source/model/DescribeOptOutListsRequest.cpp b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/DescribeOptOutListsRequest.cpp index 462a28df6c3..c42ca311816 100644 --- a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/DescribeOptOutListsRequest.cpp +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/DescribeOptOutListsRequest.cpp @@ -16,7 +16,9 @@ DescribeOptOutListsRequest::DescribeOptOutListsRequest() : m_optOutListNamesHasBeenSet(false), m_nextTokenHasBeenSet(false), m_maxResults(0), - m_maxResultsHasBeenSet(false) + m_maxResultsHasBeenSet(false), + m_owner(Owner::NOT_SET), + m_ownerHasBeenSet(false) { } @@ -47,6 +49,11 @@ Aws::String DescribeOptOutListsRequest::SerializePayload() const } + if(m_ownerHasBeenSet) + { + payload.WithString("Owner", OwnerMapper::GetNameForOwner(m_owner)); + } + return payload.View().WriteReadable(); } diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/DescribePhoneNumbersRequest.cpp b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/DescribePhoneNumbersRequest.cpp index f6c0d7c903c..cf180126550 100644 --- a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/DescribePhoneNumbersRequest.cpp +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/DescribePhoneNumbersRequest.cpp @@ -17,7 +17,9 @@ DescribePhoneNumbersRequest::DescribePhoneNumbersRequest() : m_filtersHasBeenSet(false), m_nextTokenHasBeenSet(false), m_maxResults(0), - m_maxResultsHasBeenSet(false) + m_maxResultsHasBeenSet(false), + m_owner(Owner::NOT_SET), + m_ownerHasBeenSet(false) { } @@ -59,6 +61,11 @@ Aws::String DescribePhoneNumbersRequest::SerializePayload() const } + if(m_ownerHasBeenSet) + { + payload.WithString("Owner", OwnerMapper::GetNameForOwner(m_owner)); + } + return payload.View().WriteReadable(); } diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/DescribePoolsRequest.cpp b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/DescribePoolsRequest.cpp index e02c5e8a01d..837b98544e4 100644 --- a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/DescribePoolsRequest.cpp +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/DescribePoolsRequest.cpp @@ -17,7 +17,9 @@ DescribePoolsRequest::DescribePoolsRequest() : m_filtersHasBeenSet(false), m_nextTokenHasBeenSet(false), m_maxResults(0), - m_maxResultsHasBeenSet(false) + m_maxResultsHasBeenSet(false), + m_owner(Owner::NOT_SET), + m_ownerHasBeenSet(false) { } @@ -59,6 +61,11 @@ Aws::String DescribePoolsRequest::SerializePayload() const } + if(m_ownerHasBeenSet) + { + payload.WithString("Owner", OwnerMapper::GetNameForOwner(m_owner)); + } + return payload.View().WriteReadable(); } diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/DescribeSenderIdsRequest.cpp b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/DescribeSenderIdsRequest.cpp index f4ce6aa909d..5854f7f96fb 100644 --- a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/DescribeSenderIdsRequest.cpp +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/DescribeSenderIdsRequest.cpp @@ -17,7 +17,9 @@ DescribeSenderIdsRequest::DescribeSenderIdsRequest() : m_filtersHasBeenSet(false), m_nextTokenHasBeenSet(false), m_maxResults(0), - m_maxResultsHasBeenSet(false) + m_maxResultsHasBeenSet(false), + m_owner(Owner::NOT_SET), + m_ownerHasBeenSet(false) { } @@ -59,6 +61,11 @@ Aws::String DescribeSenderIdsRequest::SerializePayload() const } + if(m_ownerHasBeenSet) + { + payload.WithString("Owner", OwnerMapper::GetNameForOwner(m_owner)); + } + return payload.View().WriteReadable(); } diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/GetResourcePolicyRequest.cpp b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/GetResourcePolicyRequest.cpp new file mode 100644 index 00000000000..7952b7c69a8 --- /dev/null +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/GetResourcePolicyRequest.cpp @@ -0,0 +1,43 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::PinpointSMSVoiceV2::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +GetResourcePolicyRequest::GetResourcePolicyRequest() : + m_resourceArnHasBeenSet(false) +{ +} + +Aws::String GetResourcePolicyRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_resourceArnHasBeenSet) + { + payload.WithString("ResourceArn", m_resourceArn); + + } + + return payload.View().WriteReadable(); +} + +Aws::Http::HeaderValueCollection GetResourcePolicyRequest::GetRequestSpecificHeaders() const +{ + Aws::Http::HeaderValueCollection headers; + headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "PinpointSMSVoiceV2.GetResourcePolicy")); + return headers; + +} + + + + diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/GetResourcePolicyResult.cpp b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/GetResourcePolicyResult.cpp new file mode 100644 index 00000000000..491b2ac0ea7 --- /dev/null +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/GetResourcePolicyResult.cpp @@ -0,0 +1,60 @@ +/** + * 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::PinpointSMSVoiceV2::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +GetResourcePolicyResult::GetResourcePolicyResult() +{ +} + +GetResourcePolicyResult::GetResourcePolicyResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +GetResourcePolicyResult& GetResourcePolicyResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("ResourceArn")) + { + m_resourceArn = jsonValue.GetString("ResourceArn"); + + } + + if(jsonValue.ValueExists("Policy")) + { + m_policy = jsonValue.GetString("Policy"); + + } + + if(jsonValue.ValueExists("CreatedTimestamp")) + { + m_createdTimestamp = jsonValue.GetDouble("CreatedTimestamp"); + + } + + + 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-pinpoint-sms-voice-v2/source/model/Owner.cpp b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/Owner.cpp new file mode 100644 index 00000000000..eb7264b582c --- /dev/null +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/Owner.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 PinpointSMSVoiceV2 + { + namespace Model + { + namespace OwnerMapper + { + + static const int SELF_HASH = HashingUtils::HashString("SELF"); + static const int SHARED_HASH = HashingUtils::HashString("SHARED"); + + + Owner GetOwnerForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == SELF_HASH) + { + return Owner::SELF; + } + else if (hashCode == SHARED_HASH) + { + return Owner::SHARED; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return Owner::NOT_SET; + } + + Aws::String GetNameForOwner(Owner enumValue) + { + switch(enumValue) + { + case Owner::NOT_SET: + return {}; + case Owner::SELF: + return "SELF"; + case Owner::SHARED: + return "SHARED"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace OwnerMapper + } // namespace Model + } // namespace PinpointSMSVoiceV2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/PutResourcePolicyRequest.cpp b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/PutResourcePolicyRequest.cpp new file mode 100644 index 00000000000..043d90c1650 --- /dev/null +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/PutResourcePolicyRequest.cpp @@ -0,0 +1,50 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::PinpointSMSVoiceV2::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +PutResourcePolicyRequest::PutResourcePolicyRequest() : + m_resourceArnHasBeenSet(false), + m_policyHasBeenSet(false) +{ +} + +Aws::String PutResourcePolicyRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_resourceArnHasBeenSet) + { + payload.WithString("ResourceArn", m_resourceArn); + + } + + if(m_policyHasBeenSet) + { + payload.WithString("Policy", m_policy); + + } + + return payload.View().WriteReadable(); +} + +Aws::Http::HeaderValueCollection PutResourcePolicyRequest::GetRequestSpecificHeaders() const +{ + Aws::Http::HeaderValueCollection headers; + headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "PinpointSMSVoiceV2.PutResourcePolicy")); + return headers; + +} + + + + diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/PutResourcePolicyResult.cpp b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/PutResourcePolicyResult.cpp new file mode 100644 index 00000000000..5d48d572f89 --- /dev/null +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/PutResourcePolicyResult.cpp @@ -0,0 +1,60 @@ +/** + * 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::PinpointSMSVoiceV2::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +PutResourcePolicyResult::PutResourcePolicyResult() +{ +} + +PutResourcePolicyResult::PutResourcePolicyResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +PutResourcePolicyResult& PutResourcePolicyResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("ResourceArn")) + { + m_resourceArn = jsonValue.GetString("ResourceArn"); + + } + + if(jsonValue.ValueExists("Policy")) + { + m_policy = jsonValue.GetString("Policy"); + + } + + if(jsonValue.ValueExists("CreatedTimestamp")) + { + m_createdTimestamp = jsonValue.GetDouble("CreatedTimestamp"); + + } + + + 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-pinpoint-sms-voice-v2/source/model/ResourceType.cpp b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/ResourceType.cpp index 6f75c90637f..4796b8b2b63 100644 --- a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/ResourceType.cpp +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/model/ResourceType.cpp @@ -33,6 +33,7 @@ namespace Aws static const int registration_attachment_HASH = HashingUtils::HashString("registration-attachment"); static const int verified_destination_number_HASH = HashingUtils::HashString("verified-destination-number"); static const int protect_configuration_HASH = HashingUtils::HashString("protect-configuration"); + static const int policy_HASH = HashingUtils::HashString("policy"); ResourceType GetResourceTypeForName(const Aws::String& name) @@ -90,6 +91,10 @@ namespace Aws { return ResourceType::protect_configuration; } + else if (hashCode == policy_HASH) + { + return ResourceType::policy; + } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { @@ -132,6 +137,8 @@ namespace Aws return "verified-destination-number"; case ResourceType::protect_configuration: return "protect-configuration"; + case ResourceType::policy: + return "policy"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) diff --git a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/HiddenSageMakerImage.h b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/HiddenSageMakerImage.h new file mode 100644 index 00000000000..7f1f1f3658b --- /dev/null +++ b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/HiddenSageMakerImage.h @@ -0,0 +1,82 @@ +/** + * 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 SageMaker +{ +namespace Model +{ + + /** + *

The SageMaker images that are hidden from the Studio user interface. You must + * specify the SageMaker image name and version aliases.

See Also:

+ * AWS + * API Reference

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

The SageMaker image name that you are hiding from the Studio user interface. + *

+ */ + inline const SageMakerImageName& GetSageMakerImageName() const{ return m_sageMakerImageName; } + inline bool SageMakerImageNameHasBeenSet() const { return m_sageMakerImageNameHasBeenSet; } + inline void SetSageMakerImageName(const SageMakerImageName& value) { m_sageMakerImageNameHasBeenSet = true; m_sageMakerImageName = value; } + inline void SetSageMakerImageName(SageMakerImageName&& value) { m_sageMakerImageNameHasBeenSet = true; m_sageMakerImageName = std::move(value); } + inline HiddenSageMakerImage& WithSageMakerImageName(const SageMakerImageName& value) { SetSageMakerImageName(value); return *this;} + inline HiddenSageMakerImage& WithSageMakerImageName(SageMakerImageName&& value) { SetSageMakerImageName(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

The version aliases you are hiding from the Studio user interface.

+ */ + inline const Aws::Vector& GetVersionAliases() const{ return m_versionAliases; } + inline bool VersionAliasesHasBeenSet() const { return m_versionAliasesHasBeenSet; } + inline void SetVersionAliases(const Aws::Vector& value) { m_versionAliasesHasBeenSet = true; m_versionAliases = value; } + inline void SetVersionAliases(Aws::Vector&& value) { m_versionAliasesHasBeenSet = true; m_versionAliases = std::move(value); } + inline HiddenSageMakerImage& WithVersionAliases(const Aws::Vector& value) { SetVersionAliases(value); return *this;} + inline HiddenSageMakerImage& WithVersionAliases(Aws::Vector&& value) { SetVersionAliases(std::move(value)); return *this;} + inline HiddenSageMakerImage& AddVersionAliases(const Aws::String& value) { m_versionAliasesHasBeenSet = true; m_versionAliases.push_back(value); return *this; } + inline HiddenSageMakerImage& AddVersionAliases(Aws::String&& value) { m_versionAliasesHasBeenSet = true; m_versionAliases.push_back(std::move(value)); return *this; } + inline HiddenSageMakerImage& AddVersionAliases(const char* value) { m_versionAliasesHasBeenSet = true; m_versionAliases.push_back(value); return *this; } + ///@} + private: + + SageMakerImageName m_sageMakerImageName; + bool m_sageMakerImageNameHasBeenSet = false; + + Aws::Vector m_versionAliases; + bool m_versionAliasesHasBeenSet = false; + }; + +} // namespace Model +} // namespace SageMaker +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/MlTools.h b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/MlTools.h index ab3273b7d8e..7b5f9e2f731 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/MlTools.h +++ b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/MlTools.h @@ -29,7 +29,8 @@ namespace Model InferenceRecommender, Endpoints, Projects, - InferenceOptimization + InferenceOptimization, + PerformanceEvaluation }; namespace MlToolsMapper diff --git a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/SageMakerImageName.h b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/SageMakerImageName.h new file mode 100644 index 00000000000..487e3409ddc --- /dev/null +++ b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/SageMakerImageName.h @@ -0,0 +1,30 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace SageMaker +{ +namespace Model +{ + enum class SageMakerImageName + { + NOT_SET, + sagemaker_distribution + }; + +namespace SageMakerImageNameMapper +{ +AWS_SAGEMAKER_API SageMakerImageName GetSageMakerImageNameForName(const Aws::String& name); + +AWS_SAGEMAKER_API Aws::String GetNameForSageMakerImageName(SageMakerImageName value); +} // namespace SageMakerImageNameMapper +} // namespace Model +} // namespace SageMaker +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/StudioWebPortalSettings.h b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/StudioWebPortalSettings.h index 6111b74bebd..97c538ec5de 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/StudioWebPortalSettings.h +++ b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/StudioWebPortalSettings.h @@ -8,6 +8,8 @@ #include #include #include +#include +#include #include namespace Aws @@ -72,6 +74,34 @@ namespace Model inline StudioWebPortalSettings& AddHiddenAppTypes(const AppType& value) { m_hiddenAppTypesHasBeenSet = true; m_hiddenAppTypes.push_back(value); return *this; } inline StudioWebPortalSettings& AddHiddenAppTypes(AppType&& value) { m_hiddenAppTypesHasBeenSet = true; m_hiddenAppTypes.push_back(std::move(value)); return *this; } ///@} + + ///@{ + /** + *

The instance types you are hiding from the Studio user interface.

+ */ + inline const Aws::Vector& GetHiddenInstanceTypes() const{ return m_hiddenInstanceTypes; } + inline bool HiddenInstanceTypesHasBeenSet() const { return m_hiddenInstanceTypesHasBeenSet; } + inline void SetHiddenInstanceTypes(const Aws::Vector& value) { m_hiddenInstanceTypesHasBeenSet = true; m_hiddenInstanceTypes = value; } + inline void SetHiddenInstanceTypes(Aws::Vector&& value) { m_hiddenInstanceTypesHasBeenSet = true; m_hiddenInstanceTypes = std::move(value); } + inline StudioWebPortalSettings& WithHiddenInstanceTypes(const Aws::Vector& value) { SetHiddenInstanceTypes(value); return *this;} + inline StudioWebPortalSettings& WithHiddenInstanceTypes(Aws::Vector&& value) { SetHiddenInstanceTypes(std::move(value)); return *this;} + inline StudioWebPortalSettings& AddHiddenInstanceTypes(const AppInstanceType& value) { m_hiddenInstanceTypesHasBeenSet = true; m_hiddenInstanceTypes.push_back(value); return *this; } + inline StudioWebPortalSettings& AddHiddenInstanceTypes(AppInstanceType&& value) { m_hiddenInstanceTypesHasBeenSet = true; m_hiddenInstanceTypes.push_back(std::move(value)); return *this; } + ///@} + + ///@{ + /** + *

The version aliases you are hiding from the Studio user interface.

+ */ + inline const Aws::Vector& GetHiddenSageMakerImageVersionAliases() const{ return m_hiddenSageMakerImageVersionAliases; } + inline bool HiddenSageMakerImageVersionAliasesHasBeenSet() const { return m_hiddenSageMakerImageVersionAliasesHasBeenSet; } + inline void SetHiddenSageMakerImageVersionAliases(const Aws::Vector& value) { m_hiddenSageMakerImageVersionAliasesHasBeenSet = true; m_hiddenSageMakerImageVersionAliases = value; } + inline void SetHiddenSageMakerImageVersionAliases(Aws::Vector&& value) { m_hiddenSageMakerImageVersionAliasesHasBeenSet = true; m_hiddenSageMakerImageVersionAliases = std::move(value); } + inline StudioWebPortalSettings& WithHiddenSageMakerImageVersionAliases(const Aws::Vector& value) { SetHiddenSageMakerImageVersionAliases(value); return *this;} + inline StudioWebPortalSettings& WithHiddenSageMakerImageVersionAliases(Aws::Vector&& value) { SetHiddenSageMakerImageVersionAliases(std::move(value)); return *this;} + inline StudioWebPortalSettings& AddHiddenSageMakerImageVersionAliases(const HiddenSageMakerImage& value) { m_hiddenSageMakerImageVersionAliasesHasBeenSet = true; m_hiddenSageMakerImageVersionAliases.push_back(value); return *this; } + inline StudioWebPortalSettings& AddHiddenSageMakerImageVersionAliases(HiddenSageMakerImage&& value) { m_hiddenSageMakerImageVersionAliasesHasBeenSet = true; m_hiddenSageMakerImageVersionAliases.push_back(std::move(value)); return *this; } + ///@} private: Aws::Vector m_hiddenMlTools; @@ -79,6 +109,12 @@ namespace Model Aws::Vector m_hiddenAppTypes; bool m_hiddenAppTypesHasBeenSet = false; + + Aws::Vector m_hiddenInstanceTypes; + bool m_hiddenInstanceTypesHasBeenSet = false; + + Aws::Vector m_hiddenSageMakerImageVersionAliases; + bool m_hiddenSageMakerImageVersionAliasesHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/HiddenSageMakerImage.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/HiddenSageMakerImage.cpp new file mode 100644 index 00000000000..3d89735e404 --- /dev/null +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/HiddenSageMakerImage.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::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace SageMaker +{ +namespace Model +{ + +HiddenSageMakerImage::HiddenSageMakerImage() : + m_sageMakerImageName(SageMakerImageName::NOT_SET), + m_sageMakerImageNameHasBeenSet(false), + m_versionAliasesHasBeenSet(false) +{ +} + +HiddenSageMakerImage::HiddenSageMakerImage(JsonView jsonValue) + : HiddenSageMakerImage() +{ + *this = jsonValue; +} + +HiddenSageMakerImage& HiddenSageMakerImage::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("SageMakerImageName")) + { + m_sageMakerImageName = SageMakerImageNameMapper::GetSageMakerImageNameForName(jsonValue.GetString("SageMakerImageName")); + + m_sageMakerImageNameHasBeenSet = true; + } + + if(jsonValue.ValueExists("VersionAliases")) + { + Aws::Utils::Array versionAliasesJsonList = jsonValue.GetArray("VersionAliases"); + for(unsigned versionAliasesIndex = 0; versionAliasesIndex < versionAliasesJsonList.GetLength(); ++versionAliasesIndex) + { + m_versionAliases.push_back(versionAliasesJsonList[versionAliasesIndex].AsString()); + } + m_versionAliasesHasBeenSet = true; + } + + return *this; +} + +JsonValue HiddenSageMakerImage::Jsonize() const +{ + JsonValue payload; + + if(m_sageMakerImageNameHasBeenSet) + { + payload.WithString("SageMakerImageName", SageMakerImageNameMapper::GetNameForSageMakerImageName(m_sageMakerImageName)); + } + + if(m_versionAliasesHasBeenSet) + { + Aws::Utils::Array versionAliasesJsonList(m_versionAliases.size()); + for(unsigned versionAliasesIndex = 0; versionAliasesIndex < versionAliasesJsonList.GetLength(); ++versionAliasesIndex) + { + versionAliasesJsonList[versionAliasesIndex].AsString(m_versionAliases[versionAliasesIndex]); + } + payload.WithArray("VersionAliases", std::move(versionAliasesJsonList)); + + } + + return payload; +} + +} // namespace Model +} // namespace SageMaker +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/MlTools.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/MlTools.cpp index 9f9cb303822..e80567063fd 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/MlTools.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/MlTools.cpp @@ -34,6 +34,7 @@ namespace Aws static const int Endpoints_HASH = HashingUtils::HashString("Endpoints"); static const int Projects_HASH = HashingUtils::HashString("Projects"); static const int InferenceOptimization_HASH = HashingUtils::HashString("InferenceOptimization"); + static const int PerformanceEvaluation_HASH = HashingUtils::HashString("PerformanceEvaluation"); MlTools GetMlToolsForName(const Aws::String& name) @@ -95,6 +96,10 @@ namespace Aws { return MlTools::InferenceOptimization; } + else if (hashCode == PerformanceEvaluation_HASH) + { + return MlTools::PerformanceEvaluation; + } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { @@ -139,6 +144,8 @@ namespace Aws return "Projects"; case MlTools::InferenceOptimization: return "InferenceOptimization"; + case MlTools::PerformanceEvaluation: + return "PerformanceEvaluation"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/SageMakerImageName.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/SageMakerImageName.cpp new file mode 100644 index 00000000000..b660d0fd5ab --- /dev/null +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/SageMakerImageName.cpp @@ -0,0 +1,65 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace SageMaker + { + namespace Model + { + namespace SageMakerImageNameMapper + { + + static const int sagemaker_distribution_HASH = HashingUtils::HashString("sagemaker_distribution"); + + + SageMakerImageName GetSageMakerImageNameForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == sagemaker_distribution_HASH) + { + return SageMakerImageName::sagemaker_distribution; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return SageMakerImageName::NOT_SET; + } + + Aws::String GetNameForSageMakerImageName(SageMakerImageName enumValue) + { + switch(enumValue) + { + case SageMakerImageName::NOT_SET: + return {}; + case SageMakerImageName::sagemaker_distribution: + return "sagemaker_distribution"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace SageMakerImageNameMapper + } // namespace Model + } // namespace SageMaker +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/StudioWebPortalSettings.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/StudioWebPortalSettings.cpp index 21ca7616ac7..a7772b720bf 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/StudioWebPortalSettings.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/StudioWebPortalSettings.cpp @@ -20,7 +20,9 @@ namespace Model StudioWebPortalSettings::StudioWebPortalSettings() : m_hiddenMlToolsHasBeenSet(false), - m_hiddenAppTypesHasBeenSet(false) + m_hiddenAppTypesHasBeenSet(false), + m_hiddenInstanceTypesHasBeenSet(false), + m_hiddenSageMakerImageVersionAliasesHasBeenSet(false) { } @@ -52,6 +54,26 @@ StudioWebPortalSettings& StudioWebPortalSettings::operator =(JsonView jsonValue) m_hiddenAppTypesHasBeenSet = true; } + if(jsonValue.ValueExists("HiddenInstanceTypes")) + { + Aws::Utils::Array hiddenInstanceTypesJsonList = jsonValue.GetArray("HiddenInstanceTypes"); + for(unsigned hiddenInstanceTypesIndex = 0; hiddenInstanceTypesIndex < hiddenInstanceTypesJsonList.GetLength(); ++hiddenInstanceTypesIndex) + { + m_hiddenInstanceTypes.push_back(AppInstanceTypeMapper::GetAppInstanceTypeForName(hiddenInstanceTypesJsonList[hiddenInstanceTypesIndex].AsString())); + } + m_hiddenInstanceTypesHasBeenSet = true; + } + + if(jsonValue.ValueExists("HiddenSageMakerImageVersionAliases")) + { + Aws::Utils::Array hiddenSageMakerImageVersionAliasesJsonList = jsonValue.GetArray("HiddenSageMakerImageVersionAliases"); + for(unsigned hiddenSageMakerImageVersionAliasesIndex = 0; hiddenSageMakerImageVersionAliasesIndex < hiddenSageMakerImageVersionAliasesJsonList.GetLength(); ++hiddenSageMakerImageVersionAliasesIndex) + { + m_hiddenSageMakerImageVersionAliases.push_back(hiddenSageMakerImageVersionAliasesJsonList[hiddenSageMakerImageVersionAliasesIndex].AsObject()); + } + m_hiddenSageMakerImageVersionAliasesHasBeenSet = true; + } + return *this; } @@ -81,6 +103,28 @@ JsonValue StudioWebPortalSettings::Jsonize() const } + if(m_hiddenInstanceTypesHasBeenSet) + { + Aws::Utils::Array hiddenInstanceTypesJsonList(m_hiddenInstanceTypes.size()); + for(unsigned hiddenInstanceTypesIndex = 0; hiddenInstanceTypesIndex < hiddenInstanceTypesJsonList.GetLength(); ++hiddenInstanceTypesIndex) + { + hiddenInstanceTypesJsonList[hiddenInstanceTypesIndex].AsString(AppInstanceTypeMapper::GetNameForAppInstanceType(m_hiddenInstanceTypes[hiddenInstanceTypesIndex])); + } + payload.WithArray("HiddenInstanceTypes", std::move(hiddenInstanceTypesJsonList)); + + } + + if(m_hiddenSageMakerImageVersionAliasesHasBeenSet) + { + Aws::Utils::Array hiddenSageMakerImageVersionAliasesJsonList(m_hiddenSageMakerImageVersionAliases.size()); + for(unsigned hiddenSageMakerImageVersionAliasesIndex = 0; hiddenSageMakerImageVersionAliasesIndex < hiddenSageMakerImageVersionAliasesJsonList.GetLength(); ++hiddenSageMakerImageVersionAliasesIndex) + { + hiddenSageMakerImageVersionAliasesJsonList[hiddenSageMakerImageVersionAliasesIndex].AsObject(m_hiddenSageMakerImageVersionAliases[hiddenSageMakerImageVersionAliasesIndex].Jsonize()); + } + payload.WithArray("HiddenSageMakerImageVersionAliases", std::move(hiddenSageMakerImageVersionAliasesJsonList)); + + } + return payload; } diff --git a/generated/tests/budgets-gen-tests/BudgetsEndpointProviderTests.cpp b/generated/tests/budgets-gen-tests/BudgetsEndpointProviderTests.cpp index 6a6dd776a35..3230629f976 100644 --- a/generated/tests/budgets-gen-tests/BudgetsEndpointProviderTests.cpp +++ b/generated/tests/budgets-gen-tests/BudgetsEndpointProviderTests.cpp @@ -74,7 +74,7 @@ class BudgetsEndpointProviderTests : public ::testing::TestWithParam }; Aws::UniquePtrSafeDeleted> BudgetsEndpointProviderTests::TEST_CASES; -const size_t BudgetsEndpointProviderTests::TEST_CASES_SZ = 27; +const size_t BudgetsEndpointProviderTests::TEST_CASES_SZ = 29; Aws::Vector BudgetsEndpointProviderTests::getTestCase() { @@ -266,6 +266,24 @@ Aws::Vector BudgetsEndpointProviderTest {/*headers*/}}, {/*No error*/}} // expect }, /*TEST CASE 22*/ + {"For region eu-isoe-west-1 with FIPS disabled and DualStack disabled", // documentation + {EpParam("UseFIPS", false), EpParam("Region", "eu-isoe-west-1"), EpParam("UseDualStack", false)}, // params + {}, // tags + {{/*epUrl*/"https://budgets.global.cloud.adc-e.uk", + {/*authScheme*/}, + {/*properties*/}, + {/*headers*/}}, {/*No error*/}} // expect + }, + /*TEST CASE 23*/ + {"For region us-isof-south-1 with FIPS disabled and DualStack disabled", // documentation + {EpParam("UseFIPS", false), EpParam("Region", "us-isof-south-1"), EpParam("UseDualStack", false)}, // params + {}, // tags + {{/*epUrl*/"https://budgets.global.csp.hci.ic.gov", + {/*authScheme*/}, + {/*properties*/}, + {/*headers*/}}, {/*No error*/}} // expect + }, + /*TEST CASE 24*/ {"For custom endpoint with region set and fips disabled and dualstack disabled", // documentation {EpParam("UseFIPS", false), EpParam("Endpoint", "https://example.com"), EpParam("Region", "us-east-1"), EpParam("UseDualStack", false)}, // params {}, // tags @@ -274,7 +292,7 @@ Aws::Vector BudgetsEndpointProviderTest {/*properties*/}, {/*headers*/}}, {/*No error*/}} // expect }, - /*TEST CASE 23*/ + /*TEST CASE 25*/ {"For custom endpoint with region not set and fips disabled and dualstack disabled", // documentation {EpParam("UseFIPS", false), EpParam("Endpoint", "https://example.com"), EpParam("UseDualStack", false)}, // params {}, // tags @@ -283,19 +301,19 @@ Aws::Vector BudgetsEndpointProviderTest {/*properties*/}, {/*headers*/}}, {/*No error*/}} // expect }, - /*TEST CASE 24*/ + /*TEST CASE 26*/ {"For custom endpoint with fips enabled and dualstack disabled", // documentation {EpParam("UseFIPS", true), EpParam("Endpoint", "https://example.com"), EpParam("Region", "us-east-1"), EpParam("UseDualStack", false)}, // params {}, // tags {{/*No endpoint expected*/}, /*error*/"Invalid Configuration: FIPS and custom endpoint are not supported"} // expect }, - /*TEST CASE 25*/ + /*TEST CASE 27*/ {"For custom endpoint with fips disabled and dualstack enabled", // documentation {EpParam("UseFIPS", false), EpParam("Endpoint", "https://example.com"), EpParam("Region", "us-east-1"), EpParam("UseDualStack", true)}, // params {}, // tags {{/*No endpoint expected*/}, /*error*/"Invalid Configuration: Dualstack and custom endpoint are not supported"} // expect }, - /*TEST CASE 26*/ + /*TEST CASE 28*/ {"Missing region", // documentation {}, // params {}, // tags 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 c7403d1191c..9f5a289c13a 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.411" +#define AWS_SDK_VERSION_STRING "1.11.412" #define AWS_SDK_VERSION_MAJOR 1 #define AWS_SDK_VERSION_MINOR 11 -#define AWS_SDK_VERSION_PATCH 411 +#define AWS_SDK_VERSION_PATCH 412 diff --git a/tools/code-generation/api-descriptions/bedrock-2023-04-20.normal.json b/tools/code-generation/api-descriptions/bedrock-2023-04-20.normal.json index 2065ed74c57..d8efc934ab0 100644 --- a/tools/code-generation/api-descriptions/bedrock-2023-04-20.normal.json +++ b/tools/code-generation/api-descriptions/bedrock-2023-04-20.normal.json @@ -1084,7 +1084,7 @@ }, "inferenceConfig":{ "shape":"EvaluationInferenceConfig", - "documentation":"

Specify the models you want to use in your model evaluation job. Automatic model evaluation jobs support a single model, and model evaluation job that use human workers support two models.

" + "documentation":"

Specify the models you want to use in your model evaluation job. Automatic model evaluation jobs support a single model or inference profile, and model evaluation job that use human workers support two models or inference profiles.

" }, "outputDataConfig":{ "shape":"EvaluationOutputDataConfig", @@ -1676,14 +1676,14 @@ "members":{ "modelIdentifier":{ "shape":"EvaluationModelIdentifier", - "documentation":"

The ARN of the Amazon Bedrock model specified.

" + "documentation":"

The ARN of the Amazon Bedrock model or inference profile specified.

" }, "inferenceParams":{ "shape":"EvaluationModelInferenceParams", "documentation":"

Each Amazon Bedrock support different inference parameters that change how the model behaves during inference.

" } }, - "documentation":"

Contains the ARN of the Amazon Bedrock models specified in your model evaluation job. Each Amazon Bedrock model supports different inferenceParams. To learn more about supported inference parameters for Amazon Bedrock models, see Inference parameters for foundation models.

The inferenceParams are specified using JSON. To successfully insert JSON as string make sure that all quotations are properly escaped. For example, \"temperature\":\"0.25\" key value pair would need to be formatted as \\\"temperature\\\":\\\"0.25\\\" to successfully accepted in the request.

" + "documentation":"

Contains the ARN of the Amazon Bedrock model or inference profile specified in your model evaluation job. Each Amazon Bedrock model supports different inferenceParams. To learn more about supported inference parameters for Amazon Bedrock models, see Inference parameters for foundation models.

The inferenceParams are specified using JSON. To successfully insert JSON as string make sure that all quotations are properly escaped. For example, \"temperature\":\"0.25\" key value pair would need to be formatted as \\\"temperature\\\":\\\"0.25\\\" to successfully accepted in the request.

" }, "EvaluationConfig":{ "type":"structure", @@ -1848,7 +1848,7 @@ "members":{ "bedrockModel":{ "shape":"EvaluationBedrockModel", - "documentation":"

Defines the Amazon Bedrock model and inference parameters you want used.

" + "documentation":"

Defines the Amazon Bedrock model or inference profile and inference parameters you want used.

" } }, "documentation":"

Defines the models used in the model evaluation job.

", @@ -1864,7 +1864,7 @@ "type":"string", "max":2048, "min":1, - "pattern":"arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:(([0-9]{12}:custom-model/[a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}(([:][a-z0-9-]{1,63}){0,2})?/[a-z0-9]{12})|(:foundation-model/([a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([.]?[a-z0-9-]{1,63})([:][a-z0-9-]{1,63}){0,2})))|(([a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([.]?[a-z0-9-]{1,63})([:][a-z0-9-]{1,63}){0,2}))|(([0-9a-zA-Z][_-]?)+)" + "pattern":"(arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:((:foundation-model/[a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([.:]?[a-z0-9-]{1,63}))|([0-9]{12}:inference-profile/(([a-z]{2}.)[a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([.:]?[a-z0-9-]{1,63})))))|(([a-z]{2}[.]{1})([a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([.:]?[a-z0-9-]{1,63})))|([a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([.:]?[a-z0-9-]{1,63}))" }, "EvaluationModelIdentifiers":{ "type":"list", diff --git a/tools/code-generation/api-descriptions/budgets-2016-10-20.normal.json b/tools/code-generation/api-descriptions/budgets-2016-10-20.normal.json index e2b61ea1708..1da34f9b9ee 100644 --- a/tools/code-generation/api-descriptions/budgets-2016-10-20.normal.json +++ b/tools/code-generation/api-descriptions/budgets-2016-10-20.normal.json @@ -11,7 +11,8 @@ "serviceId":"Budgets", "signatureVersion":"v4", "targetPrefix":"AWSBudgetServiceGateway", - "uid":"budgets-2016-10-20" + "uid":"budgets-2016-10-20", + "auth":["aws.auth#sigv4"] }, "operations":{ "CreateBudget":{ @@ -1836,7 +1837,7 @@ "type":"string", "max":684, "min":25, - "pattern":"^arn:(aws|aws-cn|aws-us-gov|us-iso-east-1|us-isob-east-1):iam::(\\d{12}|aws):policy(\\u002F[\\u0021-\\u007F]+\\u002F|\\u002F)[\\w+=,.@-]+$" + "pattern":"^arn:aws(-cn|-us-gov|-iso|-iso-[a-z]{1})?:iam::(\\d{12}|aws):policy(\\u002F[\\u0021-\\u007F]+\\u002F|\\u002F)[\\w+=,.@-]+$" }, "PolicyId":{ "type":"string", @@ -1908,7 +1909,7 @@ "type":"string", "max":618, "min":32, - "pattern":"^arn:(aws|aws-cn|aws-us-gov|us-iso-east-1|us-isob-east-1):iam::\\d{12}:role(\\u002F[\\u0021-\\u007F]+\\u002F|\\u002F)[\\w+=,.@-]+$" + "pattern":"^arn:aws(-cn|-us-gov|-iso|-iso-[a-z]{1})?:iam::\\d{12}:role(\\u002F[\\u0021-\\u007F]+\\u002F|\\u002F)[\\w+=,.@-]+$" }, "Roles":{ "type":"list", diff --git a/tools/code-generation/api-descriptions/kinesis-2013-12-02.normal.json b/tools/code-generation/api-descriptions/kinesis-2013-12-02.normal.json index 93d247243d8..9e94ccc725f 100644 --- a/tools/code-generation/api-descriptions/kinesis-2013-12-02.normal.json +++ b/tools/code-generation/api-descriptions/kinesis-2013-12-02.normal.json @@ -47,7 +47,7 @@ {"shape":"LimitExceededException"}, {"shape":"InvalidArgumentException"} ], - "documentation":"

Creates a Kinesis data stream. A stream captures and transports data records that are continuously emitted from different data sources or producers. Scale-out within a stream is explicitly supported by means of shards, which are uniquely identified groups of data records in a stream.

You can create your data stream using either on-demand or provisioned capacity mode. Data streams with an on-demand mode require no capacity planning and automatically scale to handle gigabytes of write and read throughput per minute. With the on-demand mode, Kinesis Data Streams automatically manages the shards in order to provide the necessary throughput. For the data streams with a provisioned mode, you must specify the number of shards for the data stream. Each shard can support reads up to five transactions per second, up to a maximum data read total of 2 MiB per second. Each shard can support writes up to 1,000 records per second, up to a maximum data write total of 1 MiB per second. If the amount of data input increases or decreases, you can add or remove shards.

The stream name identifies the stream. The name is scoped to the Amazon Web Services account used by the application. It is also scoped by Amazon Web Services Region. That is, two streams in two different accounts can have the same name, and two streams in the same account, but in two different Regions, can have the same name.

CreateStream is an asynchronous operation. Upon receiving a CreateStream request, Kinesis Data Streams immediately returns and sets the stream status to CREATING. After the stream is created, Kinesis Data Streams sets the stream status to ACTIVE. You should perform read and write operations only on an ACTIVE stream.

You receive a LimitExceededException when making a CreateStream request when you try to do one of the following:

  • Have more than five streams in the CREATING state at any point in time.

  • Create more shards than are authorized for your account.

For the default shard limit for an Amazon Web Services account, see Amazon Kinesis Data Streams Limits in the Amazon Kinesis Data Streams Developer Guide. To increase this limit, contact Amazon Web Services Support.

You can use DescribeStreamSummary to check the stream status, which is returned in StreamStatus.

CreateStream has a limit of five transactions per second per account.

" + "documentation":"

Creates a Kinesis data stream. A stream captures and transports data records that are continuously emitted from different data sources or producers. Scale-out within a stream is explicitly supported by means of shards, which are uniquely identified groups of data records in a stream.

You can create your data stream using either on-demand or provisioned capacity mode. Data streams with an on-demand mode require no capacity planning and automatically scale to handle gigabytes of write and read throughput per minute. With the on-demand mode, Kinesis Data Streams automatically manages the shards in order to provide the necessary throughput. For the data streams with a provisioned mode, you must specify the number of shards for the data stream. Each shard can support reads up to five transactions per second, up to a maximum data read total of 2 MiB per second. Each shard can support writes up to 1,000 records per second, up to a maximum data write total of 1 MiB per second. If the amount of data input increases or decreases, you can add or remove shards.

The stream name identifies the stream. The name is scoped to the Amazon Web Services account used by the application. It is also scoped by Amazon Web Services Region. That is, two streams in two different accounts can have the same name, and two streams in the same account, but in two different Regions, can have the same name.

CreateStream is an asynchronous operation. Upon receiving a CreateStream request, Kinesis Data Streams immediately returns and sets the stream status to CREATING. After the stream is created, Kinesis Data Streams sets the stream status to ACTIVE. You should perform read and write operations only on an ACTIVE stream.

You receive a LimitExceededException when making a CreateStream request when you try to do one of the following:

  • Have more than five streams in the CREATING state at any point in time.

  • Create more shards than are authorized for your account.

For the default shard limit for an Amazon Web Services account, see Amazon Kinesis Data Streams Limits in the Amazon Kinesis Data Streams Developer Guide. To increase this limit, contact Amazon Web Services Support.

You can use DescribeStreamSummary to check the stream status, which is returned in StreamStatus.

CreateStream has a limit of five transactions per second per account.

You can add tags to the stream when making a CreateStream request by setting the Tags parameter. If you pass Tags parameter, in addition to having kinesis:createStream permission, you must also have kinesis:addTagsToStream permission for the stream that will be created. Tags will take effect from the CREATING status of the stream.

" }, "DecreaseStreamRetentionPeriod":{ "name":"DecreaseStreamRetentionPeriod", @@ -270,7 +270,8 @@ {"shape":"AccessDeniedException"}, {"shape":"ResourceNotFoundException"}, {"shape":"LimitExceededException"}, - {"shape":"InvalidArgumentException"} + {"shape":"InvalidArgumentException"}, + {"shape":"ResourceInUseException"} ], "documentation":"

Returns a policy attached to the specified data stream or consumer. Request patterns can be one of the following:

  • Data stream pattern: arn:aws.*:kinesis:.*:\\d{12}:.*stream/\\S+

  • Consumer pattern: ^(arn):aws.*:kinesis:.*:\\d{12}:.*stream\\/[a-zA-Z0-9_.-]+\\/consumer\\/[a-zA-Z0-9_.-]+:[0-9]+

", "staticContextParams":{ @@ -493,7 +494,7 @@ {"shape":"ResourceInUseException"}, {"shape":"ResourceNotFoundException"} ], - "documentation":"

Registers a consumer with a Kinesis data stream. When you use this operation, the consumer you register can then call SubscribeToShard to receive data from the stream using enhanced fan-out, at a rate of up to 2 MiB per second for every shard you subscribe to. This rate is unaffected by the total number of consumers that read from the same stream.

You can register up to 20 consumers per stream. A given consumer can only be registered with one stream at a time.

For an example of how to use this operations, see Enhanced Fan-Out Using the Kinesis Data Streams API.

The use of this operation has a limit of five transactions per second per account. Also, only 5 consumers can be created simultaneously. In other words, you cannot have more than 5 consumers in a CREATING status at the same time. Registering a 6th consumer while there are 5 in a CREATING status results in a LimitExceededException.

", + "documentation":"

Registers a consumer with a Kinesis data stream. When you use this operation, the consumer you register can then call SubscribeToShard to receive data from the stream using enhanced fan-out, at a rate of up to 2 MiB per second for every shard you subscribe to. This rate is unaffected by the total number of consumers that read from the same stream.

You can register up to 20 consumers per stream. A given consumer can only be registered with one stream at a time.

For an example of how to use this operation, see Enhanced Fan-Out Using the Kinesis Data Streams API.

The use of this operation has a limit of five transactions per second per account. Also, only 5 consumers can be created simultaneously. In other words, you cannot have more than 5 consumers in a CREATING status at the same time. Registering a 6th consumer while there are 5 in a CREATING status results in a LimitExceededException.

", "staticContextParams":{ "OperationType":{"value":"control"} } @@ -596,7 +597,7 @@ {"shape":"LimitExceededException"}, {"shape":"AccessDeniedException"} ], - "documentation":"

This operation establishes an HTTP/2 connection between the consumer you specify in the ConsumerARN parameter and the shard you specify in the ShardId parameter. After the connection is successfully established, Kinesis Data Streams pushes records from the shard to the consumer over this connection. Before you call this operation, call RegisterStreamConsumer to register the consumer with Kinesis Data Streams.

When the SubscribeToShard call succeeds, your consumer starts receiving events of type SubscribeToShardEvent over the HTTP/2 connection for up to 5 minutes, after which time you need to call SubscribeToShard again to renew the subscription if you want to continue to receive records.

You can make one call to SubscribeToShard per second per registered consumer per shard. For example, if you have a 4000 shard stream and two registered stream consumers, you can make one SubscribeToShard request per second for each combination of shard and registered consumer, allowing you to subscribe both consumers to all 4000 shards in one second.

If you call SubscribeToShard again with the same ConsumerARN and ShardId within 5 seconds of a successful call, you'll get a ResourceInUseException. If you call SubscribeToShard 5 seconds or more after a successful call, the second call takes over the subscription and the previous connection expires or fails with a ResourceInUseException.

For an example of how to use this operations, see Enhanced Fan-Out Using the Kinesis Data Streams API.

", + "documentation":"

This operation establishes an HTTP/2 connection between the consumer you specify in the ConsumerARN parameter and the shard you specify in the ShardId parameter. After the connection is successfully established, Kinesis Data Streams pushes records from the shard to the consumer over this connection. Before you call this operation, call RegisterStreamConsumer to register the consumer with Kinesis Data Streams.

When the SubscribeToShard call succeeds, your consumer starts receiving events of type SubscribeToShardEvent over the HTTP/2 connection for up to 5 minutes, after which time you need to call SubscribeToShard again to renew the subscription if you want to continue to receive records.

You can make one call to SubscribeToShard per second per registered consumer per shard. For example, if you have a 4000 shard stream and two registered stream consumers, you can make one SubscribeToShard request per second for each combination of shard and registered consumer, allowing you to subscribe both consumers to all 4000 shards in one second.

If you call SubscribeToShard again with the same ConsumerARN and ShardId within 5 seconds of a successful call, you'll get a ResourceInUseException. If you call SubscribeToShard 5 seconds or more after a successful call, the second call takes over the subscription and the previous connection expires or fails with a ResourceInUseException.

For an example of how to use this operation, see Enhanced Fan-Out Using the Kinesis Data Streams API.

", "staticContextParams":{ "OperationType":{"value":"data"} } @@ -800,6 +801,10 @@ "StreamModeDetails":{ "shape":"StreamModeDetails", "documentation":"

Indicates the capacity mode of the data stream. Currently, in Kinesis Data Streams, you can choose between an on-demand capacity mode and a provisioned capacity mode for your data streams.

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

A set of up to 10 key-value pairs to use to create the tags.

" } }, "documentation":"

Represents the input for CreateStream.

" 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 9701c2bc276..963e671bd32 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 @@ -480,6 +480,23 @@ ], "documentation":"

Delete the value in a registration form field.

" }, + "DeleteResourcePolicy":{ + "name":"DeleteResourcePolicy", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteResourcePolicyRequest"}, + "output":{"shape":"DeleteResourcePolicyResult"}, + "errors":[ + {"shape":"ThrottlingException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ValidationException"}, + {"shape":"InternalServerException"} + ], + "documentation":"

Deletes the resource-based policy document attached to the AWS End User Messaging SMS and Voice resource. A shared resource can be a Pool, Opt-out list, Sender Id, or Phone number.

" + }, "DeleteTextMessageSpendLimitOverride":{ "name":"DeleteTextMessageSpendLimitOverride", "http":{ @@ -918,6 +935,23 @@ ], "documentation":"

Retrieve the CountryRuleSet for the specified NumberCapability from a protect configuration.

" }, + "GetResourcePolicy":{ + "name":"GetResourcePolicy", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetResourcePolicyRequest"}, + "output":{"shape":"GetResourcePolicyResult"}, + "errors":[ + {"shape":"ThrottlingException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ValidationException"}, + {"shape":"InternalServerException"} + ], + "documentation":"

Retrieves the JSON text of the resource-based policy document attached to the AWS End User Messaging SMS and Voice resource. A shared resource can be a Pool, Opt-out list, Sender Id, or Phone number.

" + }, "ListPoolOriginationIdentities":{ "name":"ListPoolOriginationIdentities", "http":{ @@ -1023,6 +1057,23 @@ ], "documentation":"

Creates or updates a field value for a registration.

" }, + "PutResourcePolicy":{ + "name":"PutResourcePolicy", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"PutResourcePolicyRequest"}, + "output":{"shape":"PutResourcePolicyResult"}, + "errors":[ + {"shape":"ThrottlingException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ValidationException"}, + {"shape":"InternalServerException"} + ], + "documentation":"

Attaches a resource-based policy to a AWS End User Messaging SMS and Voice resource(phone number, sender Id, phone poll, or opt-out list) that is used for sharing the resource. A shared resource can be a Pool, Opt-out list, Sender Id, or Phone number. For more information about resource-based policies, see Working with shared resources in the AWS End User Messaging SMS User Guide.

" + }, "ReleasePhoneNumber":{ "name":"ReleasePhoneNumber", "http":{ @@ -1553,11 +1604,11 @@ "members":{ "PoolId":{ "shape":"PoolIdOrArn", - "documentation":"

The pool to update with the new Identity. This value can be either the PoolId or PoolArn, and you can find these values using DescribePools.

" + "documentation":"

The pool to update with the new Identity. This value can be either the PoolId or PoolArn, and you can find these values using DescribePools.

If you are using a shared AWS End User Messaging SMS and Voice resource then you must use the full Amazon Resource Name(ARN).

" }, "OriginationIdentity":{ "shape":"PhoneOrSenderIdOrArn", - "documentation":"

The origination identity to use, such as PhoneNumberId, PhoneNumberArn, SenderId, or SenderIdArn. You can use DescribePhoneNumbers to find the values for PhoneNumberId and PhoneNumberArn, while DescribeSenderIds can be used to get the values for SenderId and SenderIdArn.

" + "documentation":"

The origination identity to use, such as PhoneNumberId, PhoneNumberArn, SenderId, or SenderIdArn. You can use DescribePhoneNumbers to find the values for PhoneNumberId and PhoneNumberArn, while DescribeSenderIds can be used to get the values for SenderId and SenderIdArn.

If you are using a shared AWS End User Messaging SMS and Voice resource then you must use the full Amazon Resource Name(ARN).

" }, "IsoCountryCode":{ "shape":"IsoCountryCode", @@ -2012,7 +2063,7 @@ "members":{ "OriginationIdentity":{ "shape":"PhoneOrSenderIdOrArn", - "documentation":"

The origination identity to use such as a PhoneNumberId, PhoneNumberArn, SenderId or SenderIdArn. You can use DescribePhoneNumbers to find the values for PhoneNumberId and PhoneNumberArn while DescribeSenderIds can be used to get the values for SenderId and SenderIdArn.

After the pool is created you can add more origination identities to the pool by using AssociateOriginationIdentity.

" + "documentation":"

The origination identity to use such as a PhoneNumberId, PhoneNumberArn, SenderId or SenderIdArn. You can use DescribePhoneNumbers to find the values for PhoneNumberId and PhoneNumberArn while DescribeSenderIds can be used to get the values for SenderId and SenderIdArn.

After the pool is created you can add more origination identities to the pool by using AssociateOriginationIdentity.

If you are using a shared AWS End User Messaging SMS and Voice resource then you must use the full Amazon Resource Name(ARN).

" }, "IsoCountryCode":{ "shape":"IsoCountryCode", @@ -2582,7 +2633,7 @@ "members":{ "OriginationIdentity":{ "shape":"PhoneOrPoolIdOrArn", - "documentation":"

The origination identity to use such as a PhoneNumberId, PhoneNumberArn, PoolId or PoolArn. You can use DescribePhoneNumbers to find the values for PhoneNumberId and PhoneNumberArn and DescribePools to find the values of PoolId and PoolArn.

" + "documentation":"

The origination identity to use such as a PhoneNumberId, PhoneNumberArn, PoolId or PoolArn. You can use DescribePhoneNumbers to find the values for PhoneNumberId and PhoneNumberArn and DescribePools to find the values of PoolId and PoolArn.

If you are using a shared AWS End User Messaging SMS and Voice resource then you must use the full Amazon Resource Name(ARN).

" }, "Keyword":{ "shape":"Keyword", @@ -2635,7 +2686,7 @@ "members":{ "OptOutListName":{ "shape":"OptOutListNameOrArn", - "documentation":"

The OptOutListName or OptOutListArn of the OptOutList to delete. You can use DescribeOptOutLists to find the values for OptOutListName and OptOutListArn.

" + "documentation":"

The OptOutListName or OptOutListArn of the OptOutList to delete. You can use DescribeOptOutLists to find the values for OptOutListName and OptOutListArn.

If you are using a shared AWS End User Messaging SMS and Voice resource then you must use the full Amazon Resource Name(ARN).

" } } }, @@ -2665,7 +2716,7 @@ "members":{ "OptOutListName":{ "shape":"OptOutListNameOrArn", - "documentation":"

The OptOutListName or OptOutListArn to remove the phone number from.

" + "documentation":"

The OptOutListName or OptOutListArn to remove the phone number from.

If you are using a shared AWS End User Messaging SMS and Voice resource then you must use the full Amazon Resource Name(ARN).

" }, "OptedOutNumber":{ "shape":"PhoneNumber", @@ -2704,7 +2755,7 @@ "members":{ "PoolId":{ "shape":"PoolIdOrArn", - "documentation":"

The PoolId or PoolArn of the pool to delete. You can use DescribePools to find the values for PoolId and PoolArn .

" + "documentation":"

The PoolId or PoolArn of the pool to delete. You can use DescribePools to find the values for PoolId and PoolArn .

If you are using a shared AWS End User Messaging SMS and Voice resource then you must use the full Amazon Resource Name(ARN).

" } } }, @@ -2955,6 +3006,33 @@ } } }, + "DeleteResourcePolicyRequest":{ + "type":"structure", + "required":["ResourceArn"], + "members":{ + "ResourceArn":{ + "shape":"AmazonResourceName", + "documentation":"

The Amazon Resource Name (ARN) of the AWS End User Messaging SMS and Voice resource you're deleting the resource-based policy from.

" + } + } + }, + "DeleteResourcePolicyResult":{ + "type":"structure", + "members":{ + "ResourceArn":{ + "shape":"AmazonResourceName", + "documentation":"

The Amazon Resource Name (ARN) of the AWS End User Messaging SMS and Voice resource that the resource-based policy was deleted from.

" + }, + "Policy":{ + "shape":"ResourcePolicy", + "documentation":"

The JSON formatted resource-based policy that was deleted.

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

The time when the resource-based policy was created, in UNIX epoch time format.

" + } + } + }, "DeleteTextMessageSpendLimitOverrideRequest":{ "type":"structure", "members":{ @@ -3118,7 +3196,7 @@ "members":{ "OriginationIdentity":{ "shape":"PhoneOrPoolIdOrArn", - "documentation":"

The origination identity to use such as a PhoneNumberId, PhoneNumberArn, SenderId or SenderIdArn. You can use DescribePhoneNumbers to find the values for PhoneNumberId and PhoneNumberArn while DescribeSenderIds can be used to get the values for SenderId and SenderIdArn.

" + "documentation":"

The origination identity to use such as a PhoneNumberId, PhoneNumberArn, SenderId or SenderIdArn. You can use DescribePhoneNumbers to find the values for PhoneNumberId and PhoneNumberArn while DescribeSenderIds can be used to get the values for SenderId and SenderIdArn.

If you are using a shared AWS End User Messaging SMS and Voice resource then you must use the full Amazon Resource Name(ARN).

" }, "Keywords":{ "shape":"KeywordList", @@ -3164,7 +3242,7 @@ "members":{ "OptOutListNames":{ "shape":"OptOutListNameList", - "documentation":"

The OptOutLists to show the details of. This is an array of strings that can be either the OptOutListName or OptOutListArn.

" + "documentation":"

The OptOutLists to show the details of. This is an array of strings that can be either the OptOutListName or OptOutListArn.

If you are using a shared AWS End User Messaging SMS and Voice resource then you must use the full Amazon Resource Name(ARN).

" }, "NextToken":{ "shape":"NextToken", @@ -3173,6 +3251,10 @@ "MaxResults":{ "shape":"MaxResults", "documentation":"

The maximum number of results to return per each request.

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

Use SELF to filter the list of Opt-Out List to ones your account owns or use SHARED to filter on Opt-Out List shared with your account. The Owner and OptOutListNames parameters can't be used at the same time.

" } } }, @@ -3195,7 +3277,7 @@ "members":{ "OptOutListName":{ "shape":"OptOutListNameOrArn", - "documentation":"

The OptOutListName or OptOutListArn of the OptOutList. You can use DescribeOptOutLists to find the values for OptOutListName and OptOutListArn.

" + "documentation":"

The OptOutListName or OptOutListArn of the OptOutList. You can use DescribeOptOutLists to find the values for OptOutListName and OptOutListArn.

If you are using a shared AWS End User Messaging SMS and Voice resource then you must use the full Amazon Resource Name(ARN).

" }, "OptedOutNumbers":{ "shape":"OptedOutNumberList", @@ -3241,7 +3323,7 @@ "members":{ "PhoneNumberIds":{ "shape":"PhoneNumberIdList", - "documentation":"

The unique identifier of phone numbers to find information about. This is an array of strings that can be either the PhoneNumberId or PhoneNumberArn.

" + "documentation":"

The unique identifier of phone numbers to find information about. This is an array of strings that can be either the PhoneNumberId or PhoneNumberArn.

If you are using a shared AWS End User Messaging SMS and Voice resource then you must use the full Amazon Resource Name(ARN).

" }, "Filters":{ "shape":"PhoneNumberFilterList", @@ -3254,6 +3336,10 @@ "MaxResults":{ "shape":"MaxResults", "documentation":"

The maximum number of results to return per each request.

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

Use SELF to filter the list of phone numbers to ones your account owns or use SHARED to filter on phone numbers shared with your account. The Owner and PhoneNumberIds parameters can't be used at the same time.

" } } }, @@ -3275,7 +3361,7 @@ "members":{ "PoolIds":{ "shape":"PoolIdList", - "documentation":"

The unique identifier of pools to find. This is an array of strings that can be either the PoolId or PoolArn.

" + "documentation":"

The unique identifier of pools to find. This is an array of strings that can be either the PoolId or PoolArn.

If you are using a shared AWS End User Messaging SMS and Voice resource then you must use the full Amazon Resource Name(ARN).

" }, "Filters":{ "shape":"PoolFilterList", @@ -3288,6 +3374,10 @@ "MaxResults":{ "shape":"MaxResults", "documentation":"

The maximum number of results to return per each request.

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

Use SELF to filter the list of Pools to ones your account owns or use SHARED to filter on Pools shared with your account. The Owner and PoolIds parameters can't be used at the same time.

" } } }, @@ -3651,7 +3741,7 @@ "members":{ "SenderIds":{ "shape":"SenderIdList", - "documentation":"

An array of SenderIdAndCountry objects to search for.

" + "documentation":"

An array of SenderIdAndCountry objects to search for.

If you are using a shared AWS End User Messaging SMS and Voice resource then you must use the full Amazon Resource Name(ARN).

" }, "Filters":{ "shape":"SenderIdFilterList", @@ -3664,6 +3754,10 @@ "MaxResults":{ "shape":"MaxResults", "documentation":"

The maximum number of results to return per each request.

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

Use SELF to filter the list of Sender Ids to ones your account owns or use SHARED to filter on Sender Ids shared with your account. The Owner and SenderIds parameters can't be used at the same time.

" } } }, @@ -3781,11 +3875,11 @@ "members":{ "PoolId":{ "shape":"PoolIdOrArn", - "documentation":"

The unique identifier for the pool to disassociate with the origination identity. This value can be either the PoolId or PoolArn.

" + "documentation":"

The unique identifier for the pool to disassociate with the origination identity. This value can be either the PoolId or PoolArn.

If you are using a shared AWS End User Messaging SMS and Voice resource then you must use the full Amazon Resource Name(ARN).

" }, "OriginationIdentity":{ "shape":"PhoneOrSenderIdOrArn", - "documentation":"

The origination identity to use such as a PhoneNumberId, PhoneNumberArn, SenderId or SenderIdArn. You can use DescribePhoneNumbers find the values for PhoneNumberId and PhoneNumberArn, or use DescribeSenderIds to get the values for SenderId and SenderIdArn.

" + "documentation":"

The origination identity to use such as a PhoneNumberId, PhoneNumberArn, SenderId or SenderIdArn. You can use DescribePhoneNumbers find the values for PhoneNumberId and PhoneNumberArn, or use DescribeSenderIds to get the values for SenderId and SenderIdArn.

If you are using a shared AWS End User Messaging SMS and Voice resource then you must use the full Amazon Resource Name(ARN).

" }, "IsoCountryCode":{ "shape":"IsoCountryCode", @@ -4091,6 +4185,33 @@ } } }, + "GetResourcePolicyRequest":{ + "type":"structure", + "required":["ResourceArn"], + "members":{ + "ResourceArn":{ + "shape":"AmazonResourceName", + "documentation":"

The Amazon Resource Name (ARN) of the AWS End User Messaging SMS and Voice resource attached to the resource-based policy.

" + } + } + }, + "GetResourcePolicyResult":{ + "type":"structure", + "members":{ + "ResourceArn":{ + "shape":"AmazonResourceName", + "documentation":"

The Amazon Resource Name (ARN) of the AWS End User Messaging SMS and Voice resource attached to the resource-based policy.

" + }, + "Policy":{ + "shape":"ResourcePolicy", + "documentation":"

The JSON formatted string that contains the resource-based policy attached to the AWS End User Messaging SMS and Voice resource.

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

The time when the resource-based policy was created, in UNIX epoch time format.

" + } + } + }, "IamRoleArn":{ "type":"string", "max":2048, @@ -4244,7 +4365,7 @@ "members":{ "PoolId":{ "shape":"PoolIdOrArn", - "documentation":"

The unique identifier for the pool. This value can be either the PoolId or PoolArn.

" + "documentation":"

The unique identifier for the pool. This value can be either the PoolId or PoolArn.

If you are using a shared AWS End User Messaging SMS and Voice resource then you must use the full Amazon Resource Name(ARN).

" }, "Filters":{ "shape":"PoolOriginationIdentitiesFilterList", @@ -4600,6 +4721,13 @@ "type":"list", "member":{"shape":"OriginationIdentityMetadata"} }, + "Owner":{ + "type":"string", + "enum":[ + "SELF", + "SHARED" + ] + }, "PhoneNumber":{ "type":"string", "max":20, @@ -5055,7 +5183,7 @@ "members":{ "OriginationIdentity":{ "shape":"PhoneOrPoolIdOrArn", - "documentation":"

The origination identity to use such as a PhoneNumberId, PhoneNumberArn, SenderId or SenderIdArn. You can use DescribePhoneNumbers get the values for PhoneNumberId and PhoneNumberArn while DescribeSenderIds can be used to get the values for SenderId and SenderIdArn.

" + "documentation":"

The origination identity to use such as a PhoneNumberId, PhoneNumberArn, SenderId or SenderIdArn. You can use DescribePhoneNumbers get the values for PhoneNumberId and PhoneNumberArn while DescribeSenderIds can be used to get the values for SenderId and SenderIdArn.

If you are using a shared AWS End User Messaging SMS and Voice resource then you must use the full Amazon Resource Name(ARN).

" }, "Keyword":{ "shape":"Keyword", @@ -5105,7 +5233,7 @@ "members":{ "OptOutListName":{ "shape":"OptOutListNameOrArn", - "documentation":"

The OptOutListName or OptOutListArn to add the phone number to.

" + "documentation":"

The OptOutListName or OptOutListArn to add the phone number to.

If you are using a shared AWS End User Messaging SMS and Voice resource then you must use the full Amazon Resource Name(ARN).

" }, "OptedOutNumber":{ "shape":"PhoneNumber", @@ -5206,6 +5334,40 @@ } } }, + "PutResourcePolicyRequest":{ + "type":"structure", + "required":[ + "ResourceArn", + "Policy" + ], + "members":{ + "ResourceArn":{ + "shape":"AmazonResourceName", + "documentation":"

The Amazon Resource Name (ARN) of the AWS End User Messaging SMS and Voice resource to attach the resource-based policy to.

" + }, + "Policy":{ + "shape":"ResourcePolicy", + "documentation":"

The JSON formatted resource-based policy to attach.

" + } + } + }, + "PutResourcePolicyResult":{ + "type":"structure", + "members":{ + "ResourceArn":{ + "shape":"AmazonResourceName", + "documentation":"

The Amazon Resource Name (ARN) of the AWS End User Messaging SMS and Voice resource attached to the resource-based policy.

" + }, + "Policy":{ + "shape":"ResourcePolicy", + "documentation":"

The JSON formatted Resource Policy.

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

The time when the resource-based policy was created, in UNIX epoch time format.

" + } + } + }, "RegistrationAssociationBehavior":{ "type":"string", "enum":[ @@ -5903,7 +6065,7 @@ "members":{ "PhoneNumberId":{ "shape":"PhoneNumberIdOrArn", - "documentation":"

The PhoneNumberId or PhoneNumberArn of the phone number to release. You can use DescribePhoneNumbers to get the values for PhoneNumberId and PhoneNumberArn.

" + "documentation":"

The PhoneNumberId or PhoneNumberArn of the phone number to release. You can use DescribePhoneNumbers to get the values for PhoneNumberId and PhoneNumberArn.

If you are using a shared AWS End User Messaging SMS and Voice resource then you must use the full Amazon Resource Name(ARN).

" } } }, @@ -6061,11 +6223,11 @@ }, "OptOutListName":{ "shape":"OptOutListNameOrArn", - "documentation":"

The name of the OptOutList to associate with the phone number. You can use the OptOutListName or OptOutListArn.

" + "documentation":"

The name of the OptOutList to associate with the phone number. You can use the OptOutListName or OptOutListArn.

If you are using a shared AWS End User Messaging SMS and Voice resource then you must use the full Amazon Resource Name(ARN).

" }, "PoolId":{ "shape":"PoolIdOrArn", - "documentation":"

The pool to associated with the phone number. You can use the PoolId or PoolArn.

" + "documentation":"

The pool to associated with the phone number. You can use the PoolId or PoolArn.

If you are using a shared AWS End User Messaging SMS and Voice resource then you must use the full Amazon Resource Name(ARN).

" }, "RegistrationId":{ "shape":"RegistrationIdOrArn", @@ -6278,6 +6440,11 @@ "documentation":"

A requested resource couldn't be found.

", "exception":true }, + "ResourcePolicy":{ + "type":"string", + "max":10000, + "min":1 + }, "ResourceType":{ "type":"string", "enum":[ @@ -6293,7 +6460,8 @@ "registration", "registration-attachment", "verified-destination-number", - "protect-configuration" + "protect-configuration", + "policy" ] }, "SectionPath":{ @@ -6386,7 +6554,7 @@ }, "OriginationIdentity":{ "shape":"VerificationMessageOriginationIdentity", - "documentation":"

The origination identity of the message. This can be either the PhoneNumber, PhoneNumberId, PhoneNumberArn, SenderId, SenderIdArn, PoolId, or PoolArn.

" + "documentation":"

The origination identity of the message. This can be either the PhoneNumber, PhoneNumberId, PhoneNumberArn, SenderId, SenderIdArn, PoolId, or PoolArn.

If you are using a shared AWS End User Messaging SMS and Voice resource then you must use the full Amazon Resource Name(ARN).

" }, "ConfigurationSetName":{ "shape":"ConfigurationSetNameOrArn", @@ -6425,7 +6593,7 @@ }, "OriginationIdentity":{ "shape":"MediaMessageOriginationIdentity", - "documentation":"

The origination identity of the message. This can be either the PhoneNumber, PhoneNumberId, PhoneNumberArn, SenderId, SenderIdArn, PoolId, or PoolArn.

" + "documentation":"

The origination identity of the message. This can be either the PhoneNumber, PhoneNumberId, PhoneNumberArn, SenderId, SenderIdArn, PoolId, or PoolArn.

If you are using a shared AWS End User Messaging SMS and Voice resource then you must use the full Amazon Resource Name(ARN).

" }, "MessageBody":{ "shape":"TextMessageBody", @@ -6480,7 +6648,7 @@ }, "OriginationIdentity":{ "shape":"TextMessageOriginationIdentity", - "documentation":"

The origination identity of the message. This can be either the PhoneNumber, PhoneNumberId, PhoneNumberArn, SenderId, SenderIdArn, PoolId, or PoolArn.

" + "documentation":"

The origination identity of the message. This can be either the PhoneNumber, PhoneNumberId, PhoneNumberArn, SenderId, SenderIdArn, PoolId, or PoolArn.

If you are using a shared AWS End User Messaging SMS and Voice resource then you must use the full Amazon Resource Name(ARN).

" }, "MessageBody":{ "shape":"TextMessageBody", @@ -6546,7 +6714,7 @@ }, "OriginationIdentity":{ "shape":"VoiceMessageOriginationIdentity", - "documentation":"

The origination identity to use for the voice call. This can be the PhoneNumber, PhoneNumberId, PhoneNumberArn, PoolId, or PoolArn.

" + "documentation":"

The origination identity to use for the voice call. This can be the PhoneNumber, PhoneNumberId, PhoneNumberArn, PoolId, or PoolArn.

If you are using a shared AWS End User Messaging SMS and Voice resource then you must use the full Amazon Resource Name(ARN).

" }, "MessageBody":{ "shape":"VoiceMessageBody", @@ -7256,7 +7424,7 @@ "members":{ "PhoneNumberId":{ "shape":"PhoneNumberIdOrArn", - "documentation":"

The unique identifier of the phone number. Valid values for this field can be either the PhoneNumberId or PhoneNumberArn.

" + "documentation":"

The unique identifier of the phone number. Valid values for this field can be either the PhoneNumberId or PhoneNumberArn.

If you are using a shared AWS End User Messaging SMS and Voice resource then you must use the full Amazon Resource Name(ARN).

" }, "TwoWayEnabled":{ "shape":"Boolean", @@ -7363,7 +7531,7 @@ "members":{ "PoolId":{ "shape":"PoolIdOrArn", - "documentation":"

The unique identifier of the pool to update. Valid values are either the PoolId or PoolArn.

" + "documentation":"

The unique identifier of the pool to update. Valid values are either the PoolId or PoolArn.

If you are using a shared AWS End User Messaging SMS and Voice resource then you must use the full Amazon Resource Name(ARN).

" }, "TwoWayEnabled":{ "shape":"Boolean", @@ -7383,7 +7551,7 @@ }, "OptOutListName":{ "shape":"OptOutListNameOrArn", - "documentation":"

The OptOutList to associate with the pool. Valid values are either OptOutListName or OptOutListArn.

" + "documentation":"

The OptOutList to associate with the pool. Valid values are either OptOutListName or OptOutListArn.

If you are using a shared AWS End User Messaging SMS and Voice resource then you must use the full Amazon Resource Name(ARN).

" }, "SharedRoutesEnabled":{ "shape":"Boolean", diff --git a/tools/code-generation/api-descriptions/sagemaker-2017-07-24.normal.json b/tools/code-generation/api-descriptions/sagemaker-2017-07-24.normal.json index f9d86b0e824..68ef71f069a 100644 --- a/tools/code-generation/api-descriptions/sagemaker-2017-07-24.normal.json +++ b/tools/code-generation/api-descriptions/sagemaker-2017-07-24.normal.json @@ -7238,7 +7238,7 @@ }, "ClusterInstanceCount":{ "type":"integer", - "min":1 + "min":0 }, "ClusterInstanceGroupDetails":{ "type":"structure", @@ -19774,10 +19774,33 @@ "type":"list", "member":{"shape":"AppType"} }, + "HiddenInstanceTypesList":{ + "type":"list", + "member":{"shape":"AppInstanceType"} + }, "HiddenMlToolsList":{ "type":"list", "member":{"shape":"MlTools"} }, + "HiddenSageMakerImage":{ + "type":"structure", + "members":{ + "SageMakerImageName":{ + "shape":"SageMakerImageName", + "documentation":"

The SageMaker image name that you are hiding from the Studio user interface.

" + }, + "VersionAliases":{ + "shape":"VersionAliasesList", + "documentation":"

The version aliases you are hiding from the Studio user interface.

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

The SageMaker images that are hidden from the Studio user interface. You must specify the SageMaker image name and version aliases.

" + }, + "HiddenSageMakerImageVersionAliasesList":{ + "type":"list", + "member":{"shape":"HiddenSageMakerImage"}, + "max":5 + }, "HolidayConfig":{ "type":"list", "member":{"shape":"HolidayConfigAttributes"}, @@ -20168,12 +20191,10 @@ "required":[ "WorkteamArn", "UiConfig", - "PreHumanTaskLambdaArn", "TaskTitle", "TaskDescription", "NumberOfHumanWorkersPerDataObject", - "TaskTimeLimitInSeconds", - "AnnotationConsolidationConfig" + "TaskTimeLimitInSeconds" ], "members":{ "WorkteamArn":{ @@ -21199,6 +21220,12 @@ "min":1, "pattern":"(^\\d+$)|(^\\d+.\\d+$)|(^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$)" }, + "ImageVersionAliasPattern":{ + "type":"string", + "max":128, + "min":1, + "pattern":"^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)$" + }, "ImageVersionArn":{ "type":"string", "max":256, @@ -22724,8 +22751,7 @@ "LastModifiedTime", "LabelingJobStatus", "LabelCounters", - "WorkteamArn", - "PreHumanTaskLambdaArn" + "WorkteamArn" ], "members":{ "LabelingJobName":{ @@ -27240,7 +27266,8 @@ "InferenceRecommender", "Endpoints", "Projects", - "InferenceOptimization" + "InferenceOptimization", + "PerformanceEvaluation" ] }, "MlflowVersion":{ @@ -34011,6 +34038,10 @@ "max":1024, "pattern":"^(https|s3)://([^/]+)/?(.*)$" }, + "SageMakerImageName":{ + "type":"string", + "enum":["sagemaker_distribution"] + }, "SageMakerImageVersionAlias":{ "type":"string", "max":128, @@ -35548,6 +35579,14 @@ "HiddenAppTypes":{ "shape":"HiddenAppTypesList", "documentation":"

The Applications supported in Studio that are hidden from the Studio left navigation pane.

" + }, + "HiddenInstanceTypes":{ + "shape":"HiddenInstanceTypesList", + "documentation":"

The instance types you are hiding from the Studio user interface.

" + }, + "HiddenSageMakerImageVersionAliases":{ + "shape":"HiddenSageMakerImageVersionAliasesList", + "documentation":"

The version aliases you are hiding from the Studio user interface.

" } }, "documentation":"

Studio settings. If these settings are applied on a user level, they take priority over the settings applied on a domain level.

" @@ -39364,6 +39403,11 @@ "ARCHIVED" ] }, + "VersionAliasesList":{ + "type":"list", + "member":{"shape":"ImageVersionAliasPattern"}, + "max":20 + }, "VersionId":{ "type":"string", "max":1024, diff --git a/tools/code-generation/endpoints/budgets-2016-10-20.endpoint-rule-set.json b/tools/code-generation/endpoints/budgets-2016-10-20.endpoint-rule-set.json index 8c740ff42f1..2899674a8a7 100644 --- a/tools/code-generation/endpoints/budgets-2016-10-20.endpoint-rule-set.json +++ b/tools/code-generation/endpoints/budgets-2016-10-20.endpoint-rule-set.json @@ -212,6 +212,108 @@ }, "type": "endpoint" }, + { + "conditions": [ + { + "fn": "stringEquals", + "argv": [ + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "name" + ] + }, + "aws-iso-e" + ] + }, + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseFIPS" + }, + false + ] + }, + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseDualStack" + }, + false + ] + } + ], + "endpoint": { + "url": "https://budgets.global.cloud.adc-e.uk", + "properties": { + "authSchemes": [ + { + "name": "sigv4", + "signingName": "budgets", + "signingRegion": "eu-isoe-west-1" + } + ] + }, + "headers": {} + }, + "type": "endpoint" + }, + { + "conditions": [ + { + "fn": "stringEquals", + "argv": [ + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "name" + ] + }, + "aws-iso-f" + ] + }, + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseFIPS" + }, + false + ] + }, + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseDualStack" + }, + false + ] + } + ], + "endpoint": { + "url": "https://budgets.global.csp.hci.ic.gov", + "properties": { + "authSchemes": [ + { + "name": "sigv4", + "signingName": "budgets", + "signingRegion": "us-isof-south-1" + } + ] + }, + "headers": {} + }, + "type": "endpoint" + }, { "conditions": [ { diff --git a/tools/code-generation/endpoints/budgets-2016-10-20.endpoint-tests.json b/tools/code-generation/endpoints/budgets-2016-10-20.endpoint-tests.json index 073c32f8f15..b97c4559b59 100644 --- a/tools/code-generation/endpoints/budgets-2016-10-20.endpoint-tests.json +++ b/tools/code-generation/endpoints/budgets-2016-10-20.endpoint-tests.json @@ -314,6 +314,50 @@ "UseDualStack": false } }, + { + "documentation": "For region eu-isoe-west-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "properties": { + "authSchemes": [ + { + "name": "sigv4", + "signingName": "budgets", + "signingRegion": "eu-isoe-west-1" + } + ] + }, + "url": "https://budgets.global.cloud.adc-e.uk" + } + }, + "params": { + "Region": "eu-isoe-west-1", + "UseFIPS": false, + "UseDualStack": false + } + }, + { + "documentation": "For region us-isof-south-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "properties": { + "authSchemes": [ + { + "name": "sigv4", + "signingName": "budgets", + "signingRegion": "us-isof-south-1" + } + ] + }, + "url": "https://budgets.global.csp.hci.ic.gov" + } + }, + "params": { + "Region": "us-isof-south-1", + "UseFIPS": false, + "UseDualStack": false + } + }, { "documentation": "For custom endpoint with region set and fips disabled and dualstack disabled", "expect": {