From 8a621d727dde4d89eb4092d8bc26a22b36bba3e6 Mon Sep 17 00:00:00 2001 From: aws-sdk-cpp-automation Date: Mon, 22 Apr 2024 18:11:37 +0000 Subject: [PATCH] Releasing the support for simplified configuration and return of control This release adds support for Real-Time Collaboration and Shared Space for JupyterLab App on SageMaker Studio. Route 53 Profiles allows you to apply a central DNS configuration across many VPCs regardless of account. This release adds examples to several Cloud Map actions. Updates description of schedule field for scheduled actions. Adding support to TR-31/TR-34 exports for optional headers, allowing customers to add additional metadata (such as key version and KSN) when exporting keys from the service. Adding new API to support remote directory listing using SFTP connector Releasing the support for simplified configuration and return of control --- VERSION | 2 +- .../include/aws/awstransfer/TransferClient.h | 54 +- .../awstransfer/TransferServiceClientModel.h | 5 + .../awstransfer/model/DescribedCertificate.h | 36 +- .../model/ImportCertificateRequest.h | 36 +- .../aws/awstransfer/model/ListedCertificate.h | 36 +- .../model/StartDirectoryListingRequest.h | 217 ++++ .../model/StartDirectoryListingResult.h | 153 +++ .../source/TransferClient.cpp | 27 + .../model/StartDirectoryListingRequest.cpp | 65 + .../model/StartDirectoryListingResult.cpp | 54 + .../BedrockAgentRuntimeClient.h | 28 +- .../model/ActionGroupInvocationInput.h | 50 +- .../model/ApiInvocationInput.h | 275 ++++ .../model/ApiParameter.h | 179 +++ .../model/ApiRequestBody.h | 126 ++ .../bedrock-agent-runtime/model/ApiResult.h | 352 +++++ .../bedrock-agent-runtime/model/ContentBody.h | 92 ++ .../model/FunctionInvocationInput.h | 182 +++ .../model/FunctionParameter.h | 180 +++ .../model/FunctionResult.h | 268 ++++ .../model/InvocationInputMember.h | 129 ++ .../model/InvocationResultMember.h | 116 ++ .../model/InvokeAgentHandler.h | 5 + .../bedrock-agent-runtime/model/Parameter.h | 2 +- .../model/PropertyParameters.h | 89 ++ .../bedrock-agent-runtime/model/RequestBody.h | 3 +- .../model/ResponseState.h | 31 + .../model/ResponseStream.h | 113 +- .../model/ReturnControlPayload.h | 154 +++ .../model/SessionState.h | 92 +- .../bedrock-agent-runtime/model/TracePart.h | 44 + .../model/ActionGroupInvocationInput.cpp | 15 + .../source/model/ApiInvocationInput.cpp | 127 ++ .../source/model/ApiParameter.cpp | 89 ++ .../source/model/ApiRequestBody.cpp | 67 + .../source/model/ApiResult.cpp | 145 +++ .../source/model/ContentBody.cpp | 59 + .../source/model/FunctionInvocationInput.cpp | 97 ++ .../source/model/FunctionParameter.cpp | 89 ++ .../source/model/FunctionResult.cpp | 113 ++ .../source/model/InvocationInputMember.cpp | 74 ++ .../source/model/InvocationResultMember.cpp | 74 ++ .../source/model/InvokeAgentHandler.cpp | 24 + .../source/model/PropertyParameters.cpp | 67 + .../source/model/ResponseState.cpp | 72 + .../source/model/ReturnControlPayload.cpp | 82 ++ .../source/model/SessionState.cpp | 38 + .../source/model/TracePart.cpp | 15 + .../bedrock-agent/model/ActionGroupExecutor.h | 41 + .../include/aws/bedrock-agent/model/Agent.h | 12 +- .../bedrock-agent/model/AgentActionGroup.h | 41 + .../model/CreateAgentActionGroupRequest.h | 41 + .../bedrock-agent/model/CustomControlMethod.h | 30 + .../aws/bedrock-agent/model/Function.h | 222 ++++ .../aws/bedrock-agent/model/FunctionSchema.h | 101 ++ .../aws/bedrock-agent/model/IngestionJob.h | 2 +- .../aws/bedrock-agent/model/ParameterDetail.h | 170 +++ .../include/aws/bedrock-agent/model/Type.h | 34 + .../model/UpdateAgentActionGroupRequest.h | 41 + .../source/model/ActionGroupExecutor.cpp | 16 + .../source/model/AgentActionGroup.cpp | 15 + .../model/CreateAgentActionGroupRequest.cpp | 7 + .../source/model/CustomControlMethod.cpp | 65 + .../source/model/Function.cpp | 97 ++ .../source/model/FunctionSchema.cpp | 67 + .../source/model/ParameterDetail.cpp | 92 ++ .../source/model/Type.cpp | 93 ++ .../model/UpdateAgentActionGroupRequest.cpp | 7 + .../PaymentCryptographyClient.h | 393 ++++-- .../model/CreateKeyRequest.h | 264 ++-- .../model/DeleteKeyRequest.h | 48 +- .../model/ExportKeyMaterial.h | 82 +- .../model/ExportKeyRequest.h | 72 +- .../model/ExportTr31KeyBlock.h | 41 + .../model/ExportTr34KeyBlock.h | 169 ++- .../model/GetParametersForExportResult.h | 196 +-- .../model/GetParametersForImportResult.h | 182 +-- .../model/ImportKeyCryptogram.h | 134 +- .../model/ImportKeyMaterial.h | 98 +- .../model/ImportKeyRequest.h | 258 ++-- .../model/ImportTr31KeyBlock.h | 86 +- .../model/ImportTr34KeyBlock.h | 192 +-- .../aws/payment-cryptography/model/Key.h | 392 +++--- .../model/KeyAttributes.h | 146 +-- .../model/KeyBlockHeaders.h | 369 ++++++ .../model/KeyExportability.h | 32 + .../model/KeyModesOfUse.h | 170 +-- .../payment-cryptography/model/KeySummary.h | 136 +- .../model/ListAliasesRequest.h | 80 +- .../model/ListKeysRequest.h | 80 +- .../model/ListTagsForResourceRequest.h | 112 +- .../model/ListTagsForResourceResult.h | 90 +- .../model/TagResourceRequest.h | 72 +- .../model/TrustedCertificatePublicKey.h | 106 +- .../model/UntagResourceRequest.h | 27 +- .../payment-cryptography/model/WrappedKey.h | 220 ++-- .../source/model/CreateKeyRequest.cpp | 26 +- .../source/model/DeleteKeyRequest.cpp | 12 +- .../source/model/ExportKeyMaterial.cpp | 34 +- .../source/model/ExportKeyRequest.cpp | 12 +- .../source/model/ExportTr31KeyBlock.cpp | 19 +- .../source/model/ExportTr34KeyBlock.cpp | 29 +- .../model/GetParametersForExportResult.cpp | 16 +- .../model/GetParametersForImportResult.cpp | 16 +- .../source/model/ImportKeyCryptogram.cpp | 48 +- .../source/model/ImportKeyMaterial.cpp | 38 +- .../source/model/ImportKeyRequest.cpp | 14 +- .../source/model/ImportTr31KeyBlock.cpp | 28 +- .../source/model/ImportTr34KeyBlock.cpp | 62 +- .../source/model/Key.cpp | 164 +-- .../source/model/KeyAttributes.cpp | 52 +- .../source/model/KeyBlockHeaders.cpp | 113 ++ .../source/model/KeyExportability.cpp | 79 ++ .../source/model/KeyModesOfUse.cpp | 116 +- .../source/model/KeySummary.cpp | 82 +- .../source/model/ListAliasesRequest.cpp | 12 +- .../source/model/ListKeysRequest.cpp | 12 +- .../model/ListTagsForResourceRequest.cpp | 14 +- .../model/ListTagsForResourceResult.cpp | 12 +- .../model/TrustedCertificatePublicKey.cpp | 34 +- .../source/model/WrappedKey.cpp | 62 +- .../model/CreateScheduledActionRequest.h | 102 +- .../aws/redshift-serverless/model/Schedule.h | 78 +- .../model/ScheduledActionResponse.h | 102 +- .../model/UpdateScheduledActionRequest.h | 102 +- .../CMakeLists.txt | 76 ++ .../route53profiles/Route53ProfilesClient.h | 511 ++++++++ .../Route53ProfilesEndpointProvider.h | 61 + .../Route53ProfilesEndpointRules.h | 23 + .../Route53ProfilesErrorMarshaller.h | 23 + .../route53profiles/Route53ProfilesErrors.h | 77 ++ .../route53profiles/Route53ProfilesRequest.h | 46 + .../Route53ProfilesServiceClientModel.h | 155 +++ .../route53profiles/Route53Profiles_EXPORTS.h | 32 + .../model/AssociateProfileRequest.h | 225 ++++ .../model/AssociateProfileResult.h | 97 ++ .../model/AssociateResourceToProfileRequest.h | 223 ++++ .../model/AssociateResourceToProfileResult.h | 97 ++ .../model/CreateProfileRequest.h | 222 ++++ .../model/CreateProfileResult.h | 92 ++ .../model/DeleteProfileRequest.h | 83 ++ .../model/DeleteProfileResult.h | 97 ++ .../model/DisassociateProfileRequest.h | 127 ++ .../model/DisassociateProfileResult.h | 92 ++ .../DisassociateResourceFromProfileRequest.h | 127 ++ .../DisassociateResourceFromProfileResult.h | 97 ++ .../model/GetProfileAssociationRequest.h | 83 ++ .../model/GetProfileAssociationResult.h | 97 ++ .../route53profiles/model/GetProfileRequest.h | 83 ++ .../GetProfileResourceAssociationRequest.h | 91 ++ .../GetProfileResourceAssociationResult.h | 97 ++ .../route53profiles/model/GetProfileResult.h | 92 ++ .../model/InvalidParameterException.h | 117 ++ .../model/LimitExceededException.h | 117 ++ .../model/ListProfileAssociationsRequest.h | 257 ++++ .../model/ListProfileAssociationsResult.h | 169 +++ .../ListProfileResourceAssociationsRequest.h | 257 ++++ .../ListProfileResourceAssociationsResult.h | 176 +++ .../model/ListProfilesRequest.h | 169 +++ .../model/ListProfilesResult.h | 162 +++ .../model/ListTagsForResourceRequest.h | 91 ++ .../model/ListTagsForResourceResult.h | 139 ++ .../aws/route53profiles/model/Profile.h | 468 +++++++ .../model/ProfileAssociation.h | 425 ++++++ .../model/ProfileResourceAssociation.h | 537 ++++++++ .../aws/route53profiles/model/ProfileStatus.h | 35 + .../route53profiles/model/ProfileSummary.h | 211 +++ .../model/ResourceExistsException.h | 117 ++ .../model/ResourceNotFoundException.h | 117 ++ .../aws/route53profiles/model/ShareStatus.h | 32 + .../include/aws/route53profiles/model/Tag.h | 132 ++ .../model/TagResourceRequest.h | 161 +++ .../route53profiles/model/TagResourceResult.h | 63 + .../model/UntagResourceRequest.h | 147 +++ .../model/UntagResourceResult.h | 63 + .../UpdateProfileResourceAssociationRequest.h | 179 +++ .../UpdateProfileResourceAssociationResult.h | 97 ++ .../source/Route53ProfilesClient.cpp | 698 ++++++++++ .../Route53ProfilesEndpointProvider.cpp | 16 + .../source/Route53ProfilesEndpointRules.cpp | 177 +++ .../source/Route53ProfilesErrorMarshaller.cpp | 22 + .../source/Route53ProfilesErrors.cpp | 91 ++ .../source/Route53ProfilesRequest.cpp | 14 + .../source/model/AssociateProfileRequest.cpp | 61 + .../source/model/AssociateProfileResult.cpp | 48 + .../AssociateResourceToProfileRequest.cpp | 56 + .../AssociateResourceToProfileResult.cpp | 48 + .../source/model/CreateProfileRequest.cpp | 55 + .../source/model/CreateProfileResult.cpp | 48 + .../source/model/DeleteProfileRequest.cpp | 27 + .../source/model/DeleteProfileResult.cpp | 48 + .../model/DisassociateProfileRequest.cpp | 28 + .../model/DisassociateProfileResult.cpp | 48 + ...DisassociateResourceFromProfileRequest.cpp | 28 + .../DisassociateResourceFromProfileResult.cpp | 48 + .../model/GetProfileAssociationRequest.cpp | 27 + .../model/GetProfileAssociationResult.cpp | 48 + .../source/model/GetProfileRequest.cpp | 27 + .../GetProfileResourceAssociationRequest.cpp | 27 + .../GetProfileResourceAssociationResult.cpp | 48 + .../source/model/GetProfileResult.cpp | 48 + .../model/InvalidParameterException.cpp | 74 ++ .../source/model/LimitExceededException.cpp | 74 ++ .../model/ListProfileAssociationsRequest.cpp | 66 + .../model/ListProfileAssociationsResult.cpp | 57 + ...ListProfileResourceAssociationsRequest.cpp | 59 + .../ListProfileResourceAssociationsResult.cpp | 57 + .../source/model/ListProfilesRequest.cpp | 50 + .../source/model/ListProfilesResult.cpp | 57 + .../model/ListTagsForResourceRequest.cpp | 27 + .../model/ListTagsForResourceResult.cpp | 51 + .../source/model/Profile.cpp | 194 +++ .../source/model/ProfileAssociation.cpp | 178 +++ .../model/ProfileResourceAssociation.cpp | 208 +++ .../source/model/ProfileStatus.cpp | 100 ++ .../source/model/ProfileSummary.cpp | 105 ++ .../source/model/ResourceExistsException.cpp | 74 ++ .../model/ResourceNotFoundException.cpp | 74 ++ .../source/model/ShareStatus.cpp | 79 ++ .../source/model/Tag.cpp | 74 ++ .../source/model/TagResourceRequest.cpp | 41 + .../source/model/TagResourceResult.cpp | 42 + .../source/model/UntagResourceRequest.cpp | 45 + .../source/model/UntagResourceResult.cpp | 42 + ...pdateProfileResourceAssociationRequest.cpp | 43 + ...UpdateProfileResourceAssociationResult.cpp | 48 + .../model/DefaultEbsStorageSettings.h | 20 +- .../sagemaker/model/DefaultSpaceSettings.h | 122 ++ .../model/DefaultSpaceStorageSettings.h | 15 +- .../aws/sagemaker/model/EbsStorageSettings.h | 10 +- .../aws/sagemaker/model/OwnershipSettings.h | 16 +- .../model/OwnershipSettingsSummary.h | 16 +- .../aws/sagemaker/model/SpaceSettings.h | 12 +- .../sagemaker/model/SpaceSettingsSummary.h | 12 +- .../sagemaker/model/SpaceStorageSettings.h | 14 +- .../aws/sagemaker/model/UserSettings.h | 12 +- .../source/model/DefaultSpaceSettings.cpp | 72 +- .../servicediscovery/ServiceDiscoveryClient.h | 2 +- .../model/DiscoverInstancesRequest.h | 32 +- .../model/HealthCheckConfig.h | 8 +- .../model/RegisterInstanceRequest.h | 559 ++++---- .../source/ServiceDiscoveryEndpointRules.cpp | 248 ++-- .../route53profiles-gen-tests/CMakeLists.txt | 42 + .../Route53ProfilesEndpointProviderTests.cpp | 402 ++++++ .../route53profiles-gen-tests/RunTests.cpp | 29 + .../include/aws/core/VersionConfig.h | 4 +- .../bedrock-agent-2023-06-05.normal.json | 100 +- ...drock-agent-runtime-2023-07-26.normal.json | 302 ++++- ...ayment-cryptography-2021-09-14.normal.json | 542 ++++---- ...redshift-serverless-2021-04-21.normal.json | 10 +- .../route53profiles-2018-05-10.normal.json | 1157 +++++++++++++++++ .../sagemaker-2017-07-24.normal.json | 37 +- .../servicediscovery-2017-03-14.normal.json | 6 +- .../transfer-2018-11-05.normal.json | 86 +- ...profiles-2018-05-10.endpoint-rule-set.json | 350 +++++ ...e53profiles-2018-05-10.endpoint-tests.json | 314 +++++ ...iscovery-2017-03-14.endpoint-rule-set.json | 40 +- 258 files changed, 23875 insertions(+), 3358 deletions(-) create mode 100644 generated/src/aws-cpp-sdk-awstransfer/include/aws/awstransfer/model/StartDirectoryListingRequest.h create mode 100644 generated/src/aws-cpp-sdk-awstransfer/include/aws/awstransfer/model/StartDirectoryListingResult.h create mode 100644 generated/src/aws-cpp-sdk-awstransfer/source/model/StartDirectoryListingRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-awstransfer/source/model/StartDirectoryListingResult.cpp create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/ApiInvocationInput.h create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/ApiParameter.h create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/ApiRequestBody.h create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/ApiResult.h create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/ContentBody.h create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/FunctionInvocationInput.h create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/FunctionParameter.h create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/FunctionResult.h create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/InvocationInputMember.h create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/InvocationResultMember.h create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/PropertyParameters.h create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/ResponseState.h create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/ReturnControlPayload.h create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/ApiInvocationInput.cpp create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/ApiParameter.cpp create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/ApiRequestBody.cpp create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/ApiResult.cpp create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/ContentBody.cpp create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/FunctionInvocationInput.cpp create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/FunctionParameter.cpp create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/FunctionResult.cpp create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/InvocationInputMember.cpp create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/InvocationResultMember.cpp create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/PropertyParameters.cpp create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/ResponseState.cpp create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/ReturnControlPayload.cpp create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/CustomControlMethod.h create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/Function.h create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/FunctionSchema.h create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/ParameterDetail.h create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/Type.h create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent/source/model/CustomControlMethod.cpp create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent/source/model/Function.cpp create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent/source/model/FunctionSchema.cpp create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent/source/model/ParameterDetail.cpp create mode 100644 generated/src/aws-cpp-sdk-bedrock-agent/source/model/Type.cpp create mode 100644 generated/src/aws-cpp-sdk-payment-cryptography/include/aws/payment-cryptography/model/KeyBlockHeaders.h create mode 100644 generated/src/aws-cpp-sdk-payment-cryptography/include/aws/payment-cryptography/model/KeyExportability.h create mode 100644 generated/src/aws-cpp-sdk-payment-cryptography/source/model/KeyBlockHeaders.cpp create mode 100644 generated/src/aws-cpp-sdk-payment-cryptography/source/model/KeyExportability.cpp create mode 100644 generated/src/aws-cpp-sdk-route53profiles/CMakeLists.txt create mode 100644 generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/Route53ProfilesClient.h create mode 100644 generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/Route53ProfilesEndpointProvider.h create mode 100644 generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/Route53ProfilesEndpointRules.h create mode 100644 generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/Route53ProfilesErrorMarshaller.h create mode 100644 generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/Route53ProfilesErrors.h create mode 100644 generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/Route53ProfilesRequest.h create mode 100644 generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/Route53ProfilesServiceClientModel.h create mode 100644 generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/Route53Profiles_EXPORTS.h create mode 100644 generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/AssociateProfileRequest.h create mode 100644 generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/AssociateProfileResult.h create mode 100644 generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/AssociateResourceToProfileRequest.h create mode 100644 generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/AssociateResourceToProfileResult.h create mode 100644 generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/CreateProfileRequest.h create mode 100644 generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/CreateProfileResult.h create mode 100644 generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/DeleteProfileRequest.h create mode 100644 generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/DeleteProfileResult.h create mode 100644 generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/DisassociateProfileRequest.h create mode 100644 generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/DisassociateProfileResult.h create mode 100644 generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/DisassociateResourceFromProfileRequest.h create mode 100644 generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/DisassociateResourceFromProfileResult.h create mode 100644 generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/GetProfileAssociationRequest.h create mode 100644 generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/GetProfileAssociationResult.h create mode 100644 generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/GetProfileRequest.h create mode 100644 generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/GetProfileResourceAssociationRequest.h create mode 100644 generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/GetProfileResourceAssociationResult.h create mode 100644 generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/GetProfileResult.h create mode 100644 generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/InvalidParameterException.h create mode 100644 generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/LimitExceededException.h create mode 100644 generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/ListProfileAssociationsRequest.h create mode 100644 generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/ListProfileAssociationsResult.h create mode 100644 generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/ListProfileResourceAssociationsRequest.h create mode 100644 generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/ListProfileResourceAssociationsResult.h create mode 100644 generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/ListProfilesRequest.h create mode 100644 generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/ListProfilesResult.h create mode 100644 generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/ListTagsForResourceRequest.h create mode 100644 generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/ListTagsForResourceResult.h create mode 100644 generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/Profile.h create mode 100644 generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/ProfileAssociation.h create mode 100644 generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/ProfileResourceAssociation.h create mode 100644 generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/ProfileStatus.h create mode 100644 generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/ProfileSummary.h create mode 100644 generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/ResourceExistsException.h create mode 100644 generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/ResourceNotFoundException.h create mode 100644 generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/ShareStatus.h create mode 100644 generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/Tag.h create mode 100644 generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/TagResourceRequest.h create mode 100644 generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/TagResourceResult.h create mode 100644 generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/UntagResourceRequest.h create mode 100644 generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/UntagResourceResult.h create mode 100644 generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/UpdateProfileResourceAssociationRequest.h create mode 100644 generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/UpdateProfileResourceAssociationResult.h create mode 100644 generated/src/aws-cpp-sdk-route53profiles/source/Route53ProfilesClient.cpp create mode 100644 generated/src/aws-cpp-sdk-route53profiles/source/Route53ProfilesEndpointProvider.cpp create mode 100644 generated/src/aws-cpp-sdk-route53profiles/source/Route53ProfilesEndpointRules.cpp create mode 100644 generated/src/aws-cpp-sdk-route53profiles/source/Route53ProfilesErrorMarshaller.cpp create mode 100644 generated/src/aws-cpp-sdk-route53profiles/source/Route53ProfilesErrors.cpp create mode 100644 generated/src/aws-cpp-sdk-route53profiles/source/Route53ProfilesRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-route53profiles/source/model/AssociateProfileRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-route53profiles/source/model/AssociateProfileResult.cpp create mode 100644 generated/src/aws-cpp-sdk-route53profiles/source/model/AssociateResourceToProfileRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-route53profiles/source/model/AssociateResourceToProfileResult.cpp create mode 100644 generated/src/aws-cpp-sdk-route53profiles/source/model/CreateProfileRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-route53profiles/source/model/CreateProfileResult.cpp create mode 100644 generated/src/aws-cpp-sdk-route53profiles/source/model/DeleteProfileRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-route53profiles/source/model/DeleteProfileResult.cpp create mode 100644 generated/src/aws-cpp-sdk-route53profiles/source/model/DisassociateProfileRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-route53profiles/source/model/DisassociateProfileResult.cpp create mode 100644 generated/src/aws-cpp-sdk-route53profiles/source/model/DisassociateResourceFromProfileRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-route53profiles/source/model/DisassociateResourceFromProfileResult.cpp create mode 100644 generated/src/aws-cpp-sdk-route53profiles/source/model/GetProfileAssociationRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-route53profiles/source/model/GetProfileAssociationResult.cpp create mode 100644 generated/src/aws-cpp-sdk-route53profiles/source/model/GetProfileRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-route53profiles/source/model/GetProfileResourceAssociationRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-route53profiles/source/model/GetProfileResourceAssociationResult.cpp create mode 100644 generated/src/aws-cpp-sdk-route53profiles/source/model/GetProfileResult.cpp create mode 100644 generated/src/aws-cpp-sdk-route53profiles/source/model/InvalidParameterException.cpp create mode 100644 generated/src/aws-cpp-sdk-route53profiles/source/model/LimitExceededException.cpp create mode 100644 generated/src/aws-cpp-sdk-route53profiles/source/model/ListProfileAssociationsRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-route53profiles/source/model/ListProfileAssociationsResult.cpp create mode 100644 generated/src/aws-cpp-sdk-route53profiles/source/model/ListProfileResourceAssociationsRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-route53profiles/source/model/ListProfileResourceAssociationsResult.cpp create mode 100644 generated/src/aws-cpp-sdk-route53profiles/source/model/ListProfilesRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-route53profiles/source/model/ListProfilesResult.cpp create mode 100644 generated/src/aws-cpp-sdk-route53profiles/source/model/ListTagsForResourceRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-route53profiles/source/model/ListTagsForResourceResult.cpp create mode 100644 generated/src/aws-cpp-sdk-route53profiles/source/model/Profile.cpp create mode 100644 generated/src/aws-cpp-sdk-route53profiles/source/model/ProfileAssociation.cpp create mode 100644 generated/src/aws-cpp-sdk-route53profiles/source/model/ProfileResourceAssociation.cpp create mode 100644 generated/src/aws-cpp-sdk-route53profiles/source/model/ProfileStatus.cpp create mode 100644 generated/src/aws-cpp-sdk-route53profiles/source/model/ProfileSummary.cpp create mode 100644 generated/src/aws-cpp-sdk-route53profiles/source/model/ResourceExistsException.cpp create mode 100644 generated/src/aws-cpp-sdk-route53profiles/source/model/ResourceNotFoundException.cpp create mode 100644 generated/src/aws-cpp-sdk-route53profiles/source/model/ShareStatus.cpp create mode 100644 generated/src/aws-cpp-sdk-route53profiles/source/model/Tag.cpp create mode 100644 generated/src/aws-cpp-sdk-route53profiles/source/model/TagResourceRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-route53profiles/source/model/TagResourceResult.cpp create mode 100644 generated/src/aws-cpp-sdk-route53profiles/source/model/UntagResourceRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-route53profiles/source/model/UntagResourceResult.cpp create mode 100644 generated/src/aws-cpp-sdk-route53profiles/source/model/UpdateProfileResourceAssociationRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-route53profiles/source/model/UpdateProfileResourceAssociationResult.cpp create mode 100644 generated/tests/route53profiles-gen-tests/CMakeLists.txt create mode 100644 generated/tests/route53profiles-gen-tests/Route53ProfilesEndpointProviderTests.cpp create mode 100644 generated/tests/route53profiles-gen-tests/RunTests.cpp create mode 100644 tools/code-generation/api-descriptions/route53profiles-2018-05-10.normal.json create mode 100644 tools/code-generation/endpoints/route53profiles-2018-05-10.endpoint-rule-set.json create mode 100644 tools/code-generation/endpoints/route53profiles-2018-05-10.endpoint-tests.json diff --git a/VERSION b/VERSION index a5eb751def2..ef0963705b0 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.11.311 \ No newline at end of file +1.11.312 \ No newline at end of file diff --git a/generated/src/aws-cpp-sdk-awstransfer/include/aws/awstransfer/TransferClient.h b/generated/src/aws-cpp-sdk-awstransfer/include/aws/awstransfer/TransferClient.h index c281e216712..e7071a1e894 100644 --- a/generated/src/aws-cpp-sdk-awstransfer/include/aws/awstransfer/TransferClient.h +++ b/generated/src/aws-cpp-sdk-awstransfer/include/aws/awstransfer/TransferClient.h @@ -1301,6 +1301,58 @@ namespace Transfer return SubmitAsync(&TransferClient::SendWorkflowStepState, request, handler, context); } + /** + *

Retrieves a list of the contents of a directory from a remote SFTP server. + * You specify the connector ID, the output path, and the remote directory path. + * You can also specify the optional MaxItems value to control the + * maximum number of items that are listed from the remote directory. This API + * returns a list of all files and directories in the remote directory (up to the + * maximum value), but does not return files or folders in sub-directories. That + * is, it only returns a list of files and directories one-level deep.

After + * you receive the listing file, you can provide the files that you want to + * transfer to the RetrieveFilePaths parameter of the + * StartFileTransfer API call.

The naming convention for the + * output file is connector-ID-listing-ID.json. The + * output file contains the following information:

See Also:

AWS + * API Reference

+ */ + virtual Model::StartDirectoryListingOutcome StartDirectoryListing(const Model::StartDirectoryListingRequest& request) const; + + /** + * A Callable wrapper for StartDirectoryListing that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::StartDirectoryListingOutcomeCallable StartDirectoryListingCallable(const StartDirectoryListingRequestT& request) const + { + return SubmitCallable(&TransferClient::StartDirectoryListing, request); + } + + /** + * An Async wrapper for StartDirectoryListing that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void StartDirectoryListingAsync(const StartDirectoryListingRequestT& request, const StartDirectoryListingResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&TransferClient::StartDirectoryListing, request, handler, context); + } + /** *

Begins a file transfer between local Amazon Web Services storage and a remote * AS2 or SFTP server.

  • For an AS2 connector, you specify the @@ -1310,7 +1362,7 @@ namespace Transfer * ConnectorId. Depending on the direction of the transfer, you also * specify the following items:

    • If you are transferring file from * a partner's SFTP server to Amazon Web Services storage, you specify one or more - * RetreiveFilePaths to identify the files you want to transfer, and a + * RetrieveFilePaths to identify the files you want to transfer, and a * LocalDirectoryPath to specify the destination folder.

    • *
    • If you are transferring file to a partner's SFTP server from Amazon Web * Services storage, you specify one or more SendFilePaths to identify diff --git a/generated/src/aws-cpp-sdk-awstransfer/include/aws/awstransfer/TransferServiceClientModel.h b/generated/src/aws-cpp-sdk-awstransfer/include/aws/awstransfer/TransferServiceClientModel.h index f86e1d280c6..34e329d1c23 100644 --- a/generated/src/aws-cpp-sdk-awstransfer/include/aws/awstransfer/TransferServiceClientModel.h +++ b/generated/src/aws-cpp-sdk-awstransfer/include/aws/awstransfer/TransferServiceClientModel.h @@ -52,6 +52,7 @@ #include #include #include +#include #include #include #include @@ -148,6 +149,7 @@ namespace Aws class ListUsersRequest; class ListWorkflowsRequest; class SendWorkflowStepStateRequest; + class StartDirectoryListingRequest; class StartFileTransferRequest; class StartServerRequest; class StopServerRequest; @@ -210,6 +212,7 @@ namespace Aws typedef Aws::Utils::Outcome ListUsersOutcome; typedef Aws::Utils::Outcome ListWorkflowsOutcome; typedef Aws::Utils::Outcome SendWorkflowStepStateOutcome; + typedef Aws::Utils::Outcome StartDirectoryListingOutcome; typedef Aws::Utils::Outcome StartFileTransferOutcome; typedef Aws::Utils::Outcome StartServerOutcome; typedef Aws::Utils::Outcome StopServerOutcome; @@ -272,6 +275,7 @@ namespace Aws typedef std::future ListUsersOutcomeCallable; typedef std::future ListWorkflowsOutcomeCallable; typedef std::future SendWorkflowStepStateOutcomeCallable; + typedef std::future StartDirectoryListingOutcomeCallable; typedef std::future StartFileTransferOutcomeCallable; typedef std::future StartServerOutcomeCallable; typedef std::future StopServerOutcomeCallable; @@ -337,6 +341,7 @@ namespace Aws typedef std::function&) > ListUsersResponseReceivedHandler; typedef std::function&) > ListWorkflowsResponseReceivedHandler; typedef std::function&) > SendWorkflowStepStateResponseReceivedHandler; + typedef std::function&) > StartDirectoryListingResponseReceivedHandler; typedef std::function&) > StartFileTransferResponseReceivedHandler; typedef std::function&) > StartServerResponseReceivedHandler; typedef std::function&) > StopServerResponseReceivedHandler; diff --git a/generated/src/aws-cpp-sdk-awstransfer/include/aws/awstransfer/model/DescribedCertificate.h b/generated/src/aws-cpp-sdk-awstransfer/include/aws/awstransfer/model/DescribedCertificate.h index 2009eb7e022..07340713597 100644 --- a/generated/src/aws-cpp-sdk-awstransfer/include/aws/awstransfer/model/DescribedCertificate.h +++ b/generated/src/aws-cpp-sdk-awstransfer/include/aws/awstransfer/model/DescribedCertificate.h @@ -134,56 +134,32 @@ namespace Model /** - *

      Specifies how this certificate is used. It can be used in the following - * ways:

      • SIGNING: For signing AS2 messages

      • - *
      • ENCRYPTION: For encrypting AS2 messages

      • - * TLS: For securing AS2 communications sent over HTTPS

      • - *
      + *

      Specifies whether this certificate is used for signing or encryption.

      */ inline const CertificateUsageType& GetUsage() const{ return m_usage; } /** - *

      Specifies how this certificate is used. It can be used in the following - * ways:

      • SIGNING: For signing AS2 messages

      • - *
      • ENCRYPTION: For encrypting AS2 messages

      • - * TLS: For securing AS2 communications sent over HTTPS

      • - *
      + *

      Specifies whether this certificate is used for signing or encryption.

      */ inline bool UsageHasBeenSet() const { return m_usageHasBeenSet; } /** - *

      Specifies how this certificate is used. It can be used in the following - * ways:

      • SIGNING: For signing AS2 messages

      • - *
      • ENCRYPTION: For encrypting AS2 messages

      • - * TLS: For securing AS2 communications sent over HTTPS

      • - *
      + *

      Specifies whether this certificate is used for signing or encryption.

      */ inline void SetUsage(const CertificateUsageType& value) { m_usageHasBeenSet = true; m_usage = value; } /** - *

      Specifies how this certificate is used. It can be used in the following - * ways:

      • SIGNING: For signing AS2 messages

      • - *
      • ENCRYPTION: For encrypting AS2 messages

      • - * TLS: For securing AS2 communications sent over HTTPS

      • - *
      + *

      Specifies whether this certificate is used for signing or encryption.

      */ inline void SetUsage(CertificateUsageType&& value) { m_usageHasBeenSet = true; m_usage = std::move(value); } /** - *

      Specifies how this certificate is used. It can be used in the following - * ways:

      • SIGNING: For signing AS2 messages

      • - *
      • ENCRYPTION: For encrypting AS2 messages

      • - * TLS: For securing AS2 communications sent over HTTPS

      • - *
      + *

      Specifies whether this certificate is used for signing or encryption.

      */ inline DescribedCertificate& WithUsage(const CertificateUsageType& value) { SetUsage(value); return *this;} /** - *

      Specifies how this certificate is used. It can be used in the following - * ways:

      • SIGNING: For signing AS2 messages

      • - *
      • ENCRYPTION: For encrypting AS2 messages

      • - * TLS: For securing AS2 communications sent over HTTPS

      • - *
      + *

      Specifies whether this certificate is used for signing or encryption.

      */ inline DescribedCertificate& WithUsage(CertificateUsageType&& value) { SetUsage(std::move(value)); return *this;} diff --git a/generated/src/aws-cpp-sdk-awstransfer/include/aws/awstransfer/model/ImportCertificateRequest.h b/generated/src/aws-cpp-sdk-awstransfer/include/aws/awstransfer/model/ImportCertificateRequest.h index 4b1b53c57c7..5d7e91e1264 100644 --- a/generated/src/aws-cpp-sdk-awstransfer/include/aws/awstransfer/model/ImportCertificateRequest.h +++ b/generated/src/aws-cpp-sdk-awstransfer/include/aws/awstransfer/model/ImportCertificateRequest.h @@ -39,56 +39,32 @@ namespace Model /** - *

      Specifies how this certificate is used. It can be used in the following - * ways:

      • SIGNING: For signing AS2 messages

      • - *
      • ENCRYPTION: For encrypting AS2 messages

      • - * TLS: For securing AS2 communications sent over HTTPS

      • - *
      + *

      Specifies whether this certificate is used for signing or encryption.

      */ inline const CertificateUsageType& GetUsage() const{ return m_usage; } /** - *

      Specifies how this certificate is used. It can be used in the following - * ways:

      • SIGNING: For signing AS2 messages

      • - *
      • ENCRYPTION: For encrypting AS2 messages

      • - * TLS: For securing AS2 communications sent over HTTPS

      • - *
      + *

      Specifies whether this certificate is used for signing or encryption.

      */ inline bool UsageHasBeenSet() const { return m_usageHasBeenSet; } /** - *

      Specifies how this certificate is used. It can be used in the following - * ways:

      • SIGNING: For signing AS2 messages

      • - *
      • ENCRYPTION: For encrypting AS2 messages

      • - * TLS: For securing AS2 communications sent over HTTPS

      • - *
      + *

      Specifies whether this certificate is used for signing or encryption.

      */ inline void SetUsage(const CertificateUsageType& value) { m_usageHasBeenSet = true; m_usage = value; } /** - *

      Specifies how this certificate is used. It can be used in the following - * ways:

      • SIGNING: For signing AS2 messages

      • - *
      • ENCRYPTION: For encrypting AS2 messages

      • - * TLS: For securing AS2 communications sent over HTTPS

      • - *
      + *

      Specifies whether this certificate is used for signing or encryption.

      */ inline void SetUsage(CertificateUsageType&& value) { m_usageHasBeenSet = true; m_usage = std::move(value); } /** - *

      Specifies how this certificate is used. It can be used in the following - * ways:

      • SIGNING: For signing AS2 messages

      • - *
      • ENCRYPTION: For encrypting AS2 messages

      • - * TLS: For securing AS2 communications sent over HTTPS

      • - *
      + *

      Specifies whether this certificate is used for signing or encryption.

      */ inline ImportCertificateRequest& WithUsage(const CertificateUsageType& value) { SetUsage(value); return *this;} /** - *

      Specifies how this certificate is used. It can be used in the following - * ways:

      • SIGNING: For signing AS2 messages

      • - *
      • ENCRYPTION: For encrypting AS2 messages

      • - * TLS: For securing AS2 communications sent over HTTPS

      • - *
      + *

      Specifies whether this certificate is used for signing or encryption.

      */ inline ImportCertificateRequest& WithUsage(CertificateUsageType&& value) { SetUsage(std::move(value)); return *this;} diff --git a/generated/src/aws-cpp-sdk-awstransfer/include/aws/awstransfer/model/ListedCertificate.h b/generated/src/aws-cpp-sdk-awstransfer/include/aws/awstransfer/model/ListedCertificate.h index d677eba18ce..7f10d29330c 100644 --- a/generated/src/aws-cpp-sdk-awstransfer/include/aws/awstransfer/model/ListedCertificate.h +++ b/generated/src/aws-cpp-sdk-awstransfer/include/aws/awstransfer/model/ListedCertificate.h @@ -132,56 +132,32 @@ namespace Model /** - *

      Specifies how this certificate is used. It can be used in the following - * ways:

      • SIGNING: For signing AS2 messages

      • - *
      • ENCRYPTION: For encrypting AS2 messages

      • - * TLS: For securing AS2 communications sent over HTTPS

      • - *
      + *

      Specifies whether this certificate is used for signing or encryption.

      */ inline const CertificateUsageType& GetUsage() const{ return m_usage; } /** - *

      Specifies how this certificate is used. It can be used in the following - * ways:

      • SIGNING: For signing AS2 messages

      • - *
      • ENCRYPTION: For encrypting AS2 messages

      • - * TLS: For securing AS2 communications sent over HTTPS

      • - *
      + *

      Specifies whether this certificate is used for signing or encryption.

      */ inline bool UsageHasBeenSet() const { return m_usageHasBeenSet; } /** - *

      Specifies how this certificate is used. It can be used in the following - * ways:

      • SIGNING: For signing AS2 messages

      • - *
      • ENCRYPTION: For encrypting AS2 messages

      • - * TLS: For securing AS2 communications sent over HTTPS

      • - *
      + *

      Specifies whether this certificate is used for signing or encryption.

      */ inline void SetUsage(const CertificateUsageType& value) { m_usageHasBeenSet = true; m_usage = value; } /** - *

      Specifies how this certificate is used. It can be used in the following - * ways:

      • SIGNING: For signing AS2 messages

      • - *
      • ENCRYPTION: For encrypting AS2 messages

      • - * TLS: For securing AS2 communications sent over HTTPS

      • - *
      + *

      Specifies whether this certificate is used for signing or encryption.

      */ inline void SetUsage(CertificateUsageType&& value) { m_usageHasBeenSet = true; m_usage = std::move(value); } /** - *

      Specifies how this certificate is used. It can be used in the following - * ways:

      • SIGNING: For signing AS2 messages

      • - *
      • ENCRYPTION: For encrypting AS2 messages

      • - * TLS: For securing AS2 communications sent over HTTPS

      • - *
      + *

      Specifies whether this certificate is used for signing or encryption.

      */ inline ListedCertificate& WithUsage(const CertificateUsageType& value) { SetUsage(value); return *this;} /** - *

      Specifies how this certificate is used. It can be used in the following - * ways:

      • SIGNING: For signing AS2 messages

      • - *
      • ENCRYPTION: For encrypting AS2 messages

      • - * TLS: For securing AS2 communications sent over HTTPS

      • - *
      + *

      Specifies whether this certificate is used for signing or encryption.

      */ inline ListedCertificate& WithUsage(CertificateUsageType&& value) { SetUsage(std::move(value)); return *this;} diff --git a/generated/src/aws-cpp-sdk-awstransfer/include/aws/awstransfer/model/StartDirectoryListingRequest.h b/generated/src/aws-cpp-sdk-awstransfer/include/aws/awstransfer/model/StartDirectoryListingRequest.h new file mode 100644 index 00000000000..7998efa46d1 --- /dev/null +++ b/generated/src/aws-cpp-sdk-awstransfer/include/aws/awstransfer/model/StartDirectoryListingRequest.h @@ -0,0 +1,217 @@ +/** + * 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 Transfer +{ +namespace Model +{ + + /** + */ + class StartDirectoryListingRequest : public TransferRequest + { + public: + AWS_TRANSFER_API StartDirectoryListingRequest(); + + // 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 "StartDirectoryListing"; } + + AWS_TRANSFER_API Aws::String SerializePayload() const override; + + AWS_TRANSFER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; + + + /** + *

      The unique identifier for the connector.

      + */ + inline const Aws::String& GetConnectorId() const{ return m_connectorId; } + + /** + *

      The unique identifier for the connector.

      + */ + inline bool ConnectorIdHasBeenSet() const { return m_connectorIdHasBeenSet; } + + /** + *

      The unique identifier for the connector.

      + */ + inline void SetConnectorId(const Aws::String& value) { m_connectorIdHasBeenSet = true; m_connectorId = value; } + + /** + *

      The unique identifier for the connector.

      + */ + inline void SetConnectorId(Aws::String&& value) { m_connectorIdHasBeenSet = true; m_connectorId = std::move(value); } + + /** + *

      The unique identifier for the connector.

      + */ + inline void SetConnectorId(const char* value) { m_connectorIdHasBeenSet = true; m_connectorId.assign(value); } + + /** + *

      The unique identifier for the connector.

      + */ + inline StartDirectoryListingRequest& WithConnectorId(const Aws::String& value) { SetConnectorId(value); return *this;} + + /** + *

      The unique identifier for the connector.

      + */ + inline StartDirectoryListingRequest& WithConnectorId(Aws::String&& value) { SetConnectorId(std::move(value)); return *this;} + + /** + *

      The unique identifier for the connector.

      + */ + inline StartDirectoryListingRequest& WithConnectorId(const char* value) { SetConnectorId(value); return *this;} + + + /** + *

      Specifies the directory on the remote SFTP server for which you want to list + * its contents.

      + */ + inline const Aws::String& GetRemoteDirectoryPath() const{ return m_remoteDirectoryPath; } + + /** + *

      Specifies the directory on the remote SFTP server for which you want to list + * its contents.

      + */ + inline bool RemoteDirectoryPathHasBeenSet() const { return m_remoteDirectoryPathHasBeenSet; } + + /** + *

      Specifies the directory on the remote SFTP server for which you want to list + * its contents.

      + */ + inline void SetRemoteDirectoryPath(const Aws::String& value) { m_remoteDirectoryPathHasBeenSet = true; m_remoteDirectoryPath = value; } + + /** + *

      Specifies the directory on the remote SFTP server for which you want to list + * its contents.

      + */ + inline void SetRemoteDirectoryPath(Aws::String&& value) { m_remoteDirectoryPathHasBeenSet = true; m_remoteDirectoryPath = std::move(value); } + + /** + *

      Specifies the directory on the remote SFTP server for which you want to list + * its contents.

      + */ + inline void SetRemoteDirectoryPath(const char* value) { m_remoteDirectoryPathHasBeenSet = true; m_remoteDirectoryPath.assign(value); } + + /** + *

      Specifies the directory on the remote SFTP server for which you want to list + * its contents.

      + */ + inline StartDirectoryListingRequest& WithRemoteDirectoryPath(const Aws::String& value) { SetRemoteDirectoryPath(value); return *this;} + + /** + *

      Specifies the directory on the remote SFTP server for which you want to list + * its contents.

      + */ + inline StartDirectoryListingRequest& WithRemoteDirectoryPath(Aws::String&& value) { SetRemoteDirectoryPath(std::move(value)); return *this;} + + /** + *

      Specifies the directory on the remote SFTP server for which you want to list + * its contents.

      + */ + inline StartDirectoryListingRequest& WithRemoteDirectoryPath(const char* value) { SetRemoteDirectoryPath(value); return *this;} + + + /** + *

      An optional parameter where you can specify the maximum number of + * file/directory names to retrieve. The default value is 1,000.

      + */ + inline int GetMaxItems() const{ return m_maxItems; } + + /** + *

      An optional parameter where you can specify the maximum number of + * file/directory names to retrieve. The default value is 1,000.

      + */ + inline bool MaxItemsHasBeenSet() const { return m_maxItemsHasBeenSet; } + + /** + *

      An optional parameter where you can specify the maximum number of + * file/directory names to retrieve. The default value is 1,000.

      + */ + inline void SetMaxItems(int value) { m_maxItemsHasBeenSet = true; m_maxItems = value; } + + /** + *

      An optional parameter where you can specify the maximum number of + * file/directory names to retrieve. The default value is 1,000.

      + */ + inline StartDirectoryListingRequest& WithMaxItems(int value) { SetMaxItems(value); return *this;} + + + /** + *

      Specifies the path (bucket and prefix) in Amazon S3 storage to store the + * results of the directory listing.

      + */ + inline const Aws::String& GetOutputDirectoryPath() const{ return m_outputDirectoryPath; } + + /** + *

      Specifies the path (bucket and prefix) in Amazon S3 storage to store the + * results of the directory listing.

      + */ + inline bool OutputDirectoryPathHasBeenSet() const { return m_outputDirectoryPathHasBeenSet; } + + /** + *

      Specifies the path (bucket and prefix) in Amazon S3 storage to store the + * results of the directory listing.

      + */ + inline void SetOutputDirectoryPath(const Aws::String& value) { m_outputDirectoryPathHasBeenSet = true; m_outputDirectoryPath = value; } + + /** + *

      Specifies the path (bucket and prefix) in Amazon S3 storage to store the + * results of the directory listing.

      + */ + inline void SetOutputDirectoryPath(Aws::String&& value) { m_outputDirectoryPathHasBeenSet = true; m_outputDirectoryPath = std::move(value); } + + /** + *

      Specifies the path (bucket and prefix) in Amazon S3 storage to store the + * results of the directory listing.

      + */ + inline void SetOutputDirectoryPath(const char* value) { m_outputDirectoryPathHasBeenSet = true; m_outputDirectoryPath.assign(value); } + + /** + *

      Specifies the path (bucket and prefix) in Amazon S3 storage to store the + * results of the directory listing.

      + */ + inline StartDirectoryListingRequest& WithOutputDirectoryPath(const Aws::String& value) { SetOutputDirectoryPath(value); return *this;} + + /** + *

      Specifies the path (bucket and prefix) in Amazon S3 storage to store the + * results of the directory listing.

      + */ + inline StartDirectoryListingRequest& WithOutputDirectoryPath(Aws::String&& value) { SetOutputDirectoryPath(std::move(value)); return *this;} + + /** + *

      Specifies the path (bucket and prefix) in Amazon S3 storage to store the + * results of the directory listing.

      + */ + inline StartDirectoryListingRequest& WithOutputDirectoryPath(const char* value) { SetOutputDirectoryPath(value); return *this;} + + private: + + Aws::String m_connectorId; + bool m_connectorIdHasBeenSet = false; + + Aws::String m_remoteDirectoryPath; + bool m_remoteDirectoryPathHasBeenSet = false; + + int m_maxItems; + bool m_maxItemsHasBeenSet = false; + + Aws::String m_outputDirectoryPath; + bool m_outputDirectoryPathHasBeenSet = false; + }; + +} // namespace Model +} // namespace Transfer +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-awstransfer/include/aws/awstransfer/model/StartDirectoryListingResult.h b/generated/src/aws-cpp-sdk-awstransfer/include/aws/awstransfer/model/StartDirectoryListingResult.h new file mode 100644 index 00000000000..6f8998db5a0 --- /dev/null +++ b/generated/src/aws-cpp-sdk-awstransfer/include/aws/awstransfer/model/StartDirectoryListingResult.h @@ -0,0 +1,153 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace Transfer +{ +namespace Model +{ + class StartDirectoryListingResult + { + public: + AWS_TRANSFER_API StartDirectoryListingResult(); + AWS_TRANSFER_API StartDirectoryListingResult(const Aws::AmazonWebServiceResult& result); + AWS_TRANSFER_API StartDirectoryListingResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

      Returns a unique identifier for the directory listing call.

      + */ + inline const Aws::String& GetListingId() const{ return m_listingId; } + + /** + *

      Returns a unique identifier for the directory listing call.

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

      Returns a unique identifier for the directory listing call.

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

      Returns a unique identifier for the directory listing call.

      + */ + inline void SetListingId(const char* value) { m_listingId.assign(value); } + + /** + *

      Returns a unique identifier for the directory listing call.

      + */ + inline StartDirectoryListingResult& WithListingId(const Aws::String& value) { SetListingId(value); return *this;} + + /** + *

      Returns a unique identifier for the directory listing call.

      + */ + inline StartDirectoryListingResult& WithListingId(Aws::String&& value) { SetListingId(std::move(value)); return *this;} + + /** + *

      Returns a unique identifier for the directory listing call.

      + */ + inline StartDirectoryListingResult& WithListingId(const char* value) { SetListingId(value); return *this;} + + + /** + *

      Returns the file name where the results are stored. This is a combination of + * the connector ID and the listing ID: + * <connector-id>-<listing-id>.json.

      + */ + inline const Aws::String& GetOutputFileName() const{ return m_outputFileName; } + + /** + *

      Returns the file name where the results are stored. This is a combination of + * the connector ID and the listing ID: + * <connector-id>-<listing-id>.json.

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

      Returns the file name where the results are stored. This is a combination of + * the connector ID and the listing ID: + * <connector-id>-<listing-id>.json.

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

      Returns the file name where the results are stored. This is a combination of + * the connector ID and the listing ID: + * <connector-id>-<listing-id>.json.

      + */ + inline void SetOutputFileName(const char* value) { m_outputFileName.assign(value); } + + /** + *

      Returns the file name where the results are stored. This is a combination of + * the connector ID and the listing ID: + * <connector-id>-<listing-id>.json.

      + */ + inline StartDirectoryListingResult& WithOutputFileName(const Aws::String& value) { SetOutputFileName(value); return *this;} + + /** + *

      Returns the file name where the results are stored. This is a combination of + * the connector ID and the listing ID: + * <connector-id>-<listing-id>.json.

      + */ + inline StartDirectoryListingResult& WithOutputFileName(Aws::String&& value) { SetOutputFileName(std::move(value)); return *this;} + + /** + *

      Returns the file name where the results are stored. This is a combination of + * the connector ID and the listing ID: + * <connector-id>-<listing-id>.json.

      + */ + inline StartDirectoryListingResult& WithOutputFileName(const char* value) { SetOutputFileName(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 StartDirectoryListingResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + + + inline StartDirectoryListingResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + + + inline StartDirectoryListingResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + + private: + + Aws::String m_listingId; + + Aws::String m_outputFileName; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace Transfer +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-awstransfer/source/TransferClient.cpp b/generated/src/aws-cpp-sdk-awstransfer/source/TransferClient.cpp index e5b0f68c3bb..72d1e41bd6c 100644 --- a/generated/src/aws-cpp-sdk-awstransfer/source/TransferClient.cpp +++ b/generated/src/aws-cpp-sdk-awstransfer/source/TransferClient.cpp @@ -65,6 +65,7 @@ #include #include #include +#include #include #include #include @@ -1365,6 +1366,32 @@ SendWorkflowStepStateOutcome TransferClient::SendWorkflowStepState(const SendWor {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +StartDirectoryListingOutcome TransferClient::StartDirectoryListing(const StartDirectoryListingRequest& request) const +{ + AWS_OPERATION_GUARD(StartDirectoryListing); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, StartDirectoryListing, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, StartDirectoryListing, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, StartDirectoryListing, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".StartDirectoryListing", + {{ 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( + [&]()-> StartDirectoryListingOutcome { + 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, StartDirectoryListing, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return StartDirectoryListingOutcome(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()}}); +} + StartFileTransferOutcome TransferClient::StartFileTransfer(const StartFileTransferRequest& request) const { AWS_OPERATION_GUARD(StartFileTransfer); diff --git a/generated/src/aws-cpp-sdk-awstransfer/source/model/StartDirectoryListingRequest.cpp b/generated/src/aws-cpp-sdk-awstransfer/source/model/StartDirectoryListingRequest.cpp new file mode 100644 index 00000000000..5d515d49128 --- /dev/null +++ b/generated/src/aws-cpp-sdk-awstransfer/source/model/StartDirectoryListingRequest.cpp @@ -0,0 +1,65 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Transfer::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +StartDirectoryListingRequest::StartDirectoryListingRequest() : + m_connectorIdHasBeenSet(false), + m_remoteDirectoryPathHasBeenSet(false), + m_maxItems(0), + m_maxItemsHasBeenSet(false), + m_outputDirectoryPathHasBeenSet(false) +{ +} + +Aws::String StartDirectoryListingRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_connectorIdHasBeenSet) + { + payload.WithString("ConnectorId", m_connectorId); + + } + + if(m_remoteDirectoryPathHasBeenSet) + { + payload.WithString("RemoteDirectoryPath", m_remoteDirectoryPath); + + } + + if(m_maxItemsHasBeenSet) + { + payload.WithInteger("MaxItems", m_maxItems); + + } + + if(m_outputDirectoryPathHasBeenSet) + { + payload.WithString("OutputDirectoryPath", m_outputDirectoryPath); + + } + + return payload.View().WriteReadable(); +} + +Aws::Http::HeaderValueCollection StartDirectoryListingRequest::GetRequestSpecificHeaders() const +{ + Aws::Http::HeaderValueCollection headers; + headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "TransferService.StartDirectoryListing")); + return headers; + +} + + + + diff --git a/generated/src/aws-cpp-sdk-awstransfer/source/model/StartDirectoryListingResult.cpp b/generated/src/aws-cpp-sdk-awstransfer/source/model/StartDirectoryListingResult.cpp new file mode 100644 index 00000000000..998f126594c --- /dev/null +++ b/generated/src/aws-cpp-sdk-awstransfer/source/model/StartDirectoryListingResult.cpp @@ -0,0 +1,54 @@ +/** + * 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::Transfer::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +StartDirectoryListingResult::StartDirectoryListingResult() +{ +} + +StartDirectoryListingResult::StartDirectoryListingResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +StartDirectoryListingResult& StartDirectoryListingResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("ListingId")) + { + m_listingId = jsonValue.GetString("ListingId"); + + } + + if(jsonValue.ValueExists("OutputFileName")) + { + m_outputFileName = jsonValue.GetString("OutputFileName"); + + } + + + 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-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/BedrockAgentRuntimeClient.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/BedrockAgentRuntimeClient.h index ae4b2dbbbd4..47e5d6ae237 100644 --- a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/BedrockAgentRuntimeClient.h +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/BedrockAgentRuntimeClient.h @@ -78,24 +78,26 @@ namespace BedrockAgentRuntime virtual ~BedrockAgentRuntimeClient(); /** - *

      Sends a prompt for the agent to process and respond to.

      The CLI - * doesn't support InvokeAgent.

      • To continue - * the same conversation with an agent, use the same sessionId value - * in the request.

      • To activate trace enablement, turn + *

        Sends a prompt for the agent to process and respond to. Use return control + * event type for function calling.

        The CLI doesn't support + * InvokeAgent.

        • To continue the same + * conversation with an agent, use the same sessionId value in the + * request.

        • To activate trace enablement, turn * enableTrace to true. Trace enablement helps you follow * the agent's reasoning process that led it to the information it processed, the * actions it took, and the final result it yielded. For more information, see Trace * enablement.

        • End a conversation by setting - * endSession to true.

        • Include - * attributes for the session or prompt in the sessionState - * object.

        The response is returned in the bytes - * field of the chunk object.

        • The - * attribution object contains citations for parts of the - * response.

        • If you set enableTrace to - * true in the request, you can trace the agent's steps and reasoning - * process that led it to the response.

        • Errors are also surfaced - * in the response.

        See Also:

        endSession to true.

      • In the + * sessionState object, you can include attributes for the session or + * prompt or parameters returned from the action group.

      • Use + * return control event type for function calling.

      The response + * is returned in the bytes field of the chunk + * object.

      • The attribution object contains citations + * for parts of the response.

      • If you set enableTrace + * to true in the request, you can trace the agent's steps and + * reasoning process that led it to the response.

      • Errors are also + * surfaced in the response.

      See Also:

      AWS * API Reference

      */ diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/ActionGroupInvocationInput.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/ActionGroupInvocationInput.h index 5f63a463957..54a1eed0d2b 100644 --- a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/ActionGroupInvocationInput.h +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/ActionGroupInvocationInput.h @@ -27,8 +27,10 @@ namespace Model { /** - *

      Contains information about the action group being invoked.

      See - * Also:

      Contains information about the action group being invoked. For more + * information about the possible structures, see the InvocationInput tab in OrchestrationTrace + * in the Amazon Bedrock User Guide.

      See Also:

      AWS * API Reference

      */ @@ -123,6 +125,47 @@ namespace Model inline ActionGroupInvocationInput& WithApiPath(const char* value) { SetApiPath(value); return *this;} + /** + *

      The function in the action group to call.

      + */ + inline const Aws::String& GetFunction() const{ return m_function; } + + /** + *

      The function in the action group to call.

      + */ + inline bool FunctionHasBeenSet() const { return m_functionHasBeenSet; } + + /** + *

      The function in the action group to call.

      + */ + inline void SetFunction(const Aws::String& value) { m_functionHasBeenSet = true; m_function = value; } + + /** + *

      The function in the action group to call.

      + */ + inline void SetFunction(Aws::String&& value) { m_functionHasBeenSet = true; m_function = std::move(value); } + + /** + *

      The function in the action group to call.

      + */ + inline void SetFunction(const char* value) { m_functionHasBeenSet = true; m_function.assign(value); } + + /** + *

      The function in the action group to call.

      + */ + inline ActionGroupInvocationInput& WithFunction(const Aws::String& value) { SetFunction(value); return *this;} + + /** + *

      The function in the action group to call.

      + */ + inline ActionGroupInvocationInput& WithFunction(Aws::String&& value) { SetFunction(std::move(value)); return *this;} + + /** + *

      The function in the action group to call.

      + */ + inline ActionGroupInvocationInput& WithFunction(const char* value) { SetFunction(value); return *this;} + + /** *

      The parameters in the Lambda input event.

      */ @@ -243,6 +286,9 @@ namespace Model Aws::String m_apiPath; bool m_apiPathHasBeenSet = false; + Aws::String m_function; + bool m_functionHasBeenSet = false; + Aws::Vector m_parameters; bool m_parametersHasBeenSet = false; diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/ApiInvocationInput.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/ApiInvocationInput.h new file mode 100644 index 00000000000..dc30b9e008d --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/ApiInvocationInput.h @@ -0,0 +1,275 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace BedrockAgentRuntime +{ +namespace Model +{ + + /** + *

      Contains information about the API operation that the agent predicts should + * be called.

      This data type is used in the following API operations:

      + *

      See Also:

      AWS + * API Reference

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

      The action group that the API operation belongs to.

      + */ + inline const Aws::String& GetActionGroup() const{ return m_actionGroup; } + + /** + *

      The action group that the API operation belongs to.

      + */ + inline bool ActionGroupHasBeenSet() const { return m_actionGroupHasBeenSet; } + + /** + *

      The action group that the API operation belongs to.

      + */ + inline void SetActionGroup(const Aws::String& value) { m_actionGroupHasBeenSet = true; m_actionGroup = value; } + + /** + *

      The action group that the API operation belongs to.

      + */ + inline void SetActionGroup(Aws::String&& value) { m_actionGroupHasBeenSet = true; m_actionGroup = std::move(value); } + + /** + *

      The action group that the API operation belongs to.

      + */ + inline void SetActionGroup(const char* value) { m_actionGroupHasBeenSet = true; m_actionGroup.assign(value); } + + /** + *

      The action group that the API operation belongs to.

      + */ + inline ApiInvocationInput& WithActionGroup(const Aws::String& value) { SetActionGroup(value); return *this;} + + /** + *

      The action group that the API operation belongs to.

      + */ + inline ApiInvocationInput& WithActionGroup(Aws::String&& value) { SetActionGroup(std::move(value)); return *this;} + + /** + *

      The action group that the API operation belongs to.

      + */ + inline ApiInvocationInput& WithActionGroup(const char* value) { SetActionGroup(value); return *this;} + + + /** + *

      The path to the API operation.

      + */ + inline const Aws::String& GetApiPath() const{ return m_apiPath; } + + /** + *

      The path to the API operation.

      + */ + inline bool ApiPathHasBeenSet() const { return m_apiPathHasBeenSet; } + + /** + *

      The path to the API operation.

      + */ + inline void SetApiPath(const Aws::String& value) { m_apiPathHasBeenSet = true; m_apiPath = value; } + + /** + *

      The path to the API operation.

      + */ + inline void SetApiPath(Aws::String&& value) { m_apiPathHasBeenSet = true; m_apiPath = std::move(value); } + + /** + *

      The path to the API operation.

      + */ + inline void SetApiPath(const char* value) { m_apiPathHasBeenSet = true; m_apiPath.assign(value); } + + /** + *

      The path to the API operation.

      + */ + inline ApiInvocationInput& WithApiPath(const Aws::String& value) { SetApiPath(value); return *this;} + + /** + *

      The path to the API operation.

      + */ + inline ApiInvocationInput& WithApiPath(Aws::String&& value) { SetApiPath(std::move(value)); return *this;} + + /** + *

      The path to the API operation.

      + */ + inline ApiInvocationInput& WithApiPath(const char* value) { SetApiPath(value); return *this;} + + + /** + *

      The HTTP method of the API operation.

      + */ + inline const Aws::String& GetHttpMethod() const{ return m_httpMethod; } + + /** + *

      The HTTP method of the API operation.

      + */ + inline bool HttpMethodHasBeenSet() const { return m_httpMethodHasBeenSet; } + + /** + *

      The HTTP method of the API operation.

      + */ + inline void SetHttpMethod(const Aws::String& value) { m_httpMethodHasBeenSet = true; m_httpMethod = value; } + + /** + *

      The HTTP method of the API operation.

      + */ + inline void SetHttpMethod(Aws::String&& value) { m_httpMethodHasBeenSet = true; m_httpMethod = std::move(value); } + + /** + *

      The HTTP method of the API operation.

      + */ + inline void SetHttpMethod(const char* value) { m_httpMethodHasBeenSet = true; m_httpMethod.assign(value); } + + /** + *

      The HTTP method of the API operation.

      + */ + inline ApiInvocationInput& WithHttpMethod(const Aws::String& value) { SetHttpMethod(value); return *this;} + + /** + *

      The HTTP method of the API operation.

      + */ + inline ApiInvocationInput& WithHttpMethod(Aws::String&& value) { SetHttpMethod(std::move(value)); return *this;} + + /** + *

      The HTTP method of the API operation.

      + */ + inline ApiInvocationInput& WithHttpMethod(const char* value) { SetHttpMethod(value); return *this;} + + + /** + *

      The parameters to provide for the API request, as the agent elicited from the + * user.

      + */ + inline const Aws::Vector& GetParameters() const{ return m_parameters; } + + /** + *

      The parameters to provide for the API request, as the agent elicited from the + * user.

      + */ + inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; } + + /** + *

      The parameters to provide for the API request, as the agent elicited from the + * user.

      + */ + inline void SetParameters(const Aws::Vector& value) { m_parametersHasBeenSet = true; m_parameters = value; } + + /** + *

      The parameters to provide for the API request, as the agent elicited from the + * user.

      + */ + inline void SetParameters(Aws::Vector&& value) { m_parametersHasBeenSet = true; m_parameters = std::move(value); } + + /** + *

      The parameters to provide for the API request, as the agent elicited from the + * user.

      + */ + inline ApiInvocationInput& WithParameters(const Aws::Vector& value) { SetParameters(value); return *this;} + + /** + *

      The parameters to provide for the API request, as the agent elicited from the + * user.

      + */ + inline ApiInvocationInput& WithParameters(Aws::Vector&& value) { SetParameters(std::move(value)); return *this;} + + /** + *

      The parameters to provide for the API request, as the agent elicited from the + * user.

      + */ + inline ApiInvocationInput& AddParameters(const ApiParameter& value) { m_parametersHasBeenSet = true; m_parameters.push_back(value); return *this; } + + /** + *

      The parameters to provide for the API request, as the agent elicited from the + * user.

      + */ + inline ApiInvocationInput& AddParameters(ApiParameter&& value) { m_parametersHasBeenSet = true; m_parameters.push_back(std::move(value)); return *this; } + + + /** + *

      The request body to provide for the API request, as the agent elicited from + * the user.

      + */ + inline const ApiRequestBody& GetRequestBody() const{ return m_requestBody; } + + /** + *

      The request body to provide for the API request, as the agent elicited from + * the user.

      + */ + inline bool RequestBodyHasBeenSet() const { return m_requestBodyHasBeenSet; } + + /** + *

      The request body to provide for the API request, as the agent elicited from + * the user.

      + */ + inline void SetRequestBody(const ApiRequestBody& value) { m_requestBodyHasBeenSet = true; m_requestBody = value; } + + /** + *

      The request body to provide for the API request, as the agent elicited from + * the user.

      + */ + inline void SetRequestBody(ApiRequestBody&& value) { m_requestBodyHasBeenSet = true; m_requestBody = std::move(value); } + + /** + *

      The request body to provide for the API request, as the agent elicited from + * the user.

      + */ + inline ApiInvocationInput& WithRequestBody(const ApiRequestBody& value) { SetRequestBody(value); return *this;} + + /** + *

      The request body to provide for the API request, as the agent elicited from + * the user.

      + */ + inline ApiInvocationInput& WithRequestBody(ApiRequestBody&& value) { SetRequestBody(std::move(value)); return *this;} + + private: + + Aws::String m_actionGroup; + bool m_actionGroupHasBeenSet = false; + + Aws::String m_apiPath; + bool m_apiPathHasBeenSet = false; + + Aws::String m_httpMethod; + bool m_httpMethodHasBeenSet = false; + + Aws::Vector m_parameters; + bool m_parametersHasBeenSet = false; + + ApiRequestBody m_requestBody; + bool m_requestBodyHasBeenSet = false; + }; + +} // namespace Model +} // namespace BedrockAgentRuntime +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/ApiParameter.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/ApiParameter.h new file mode 100644 index 00000000000..4d61651f381 --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/ApiParameter.h @@ -0,0 +1,179 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace BedrockAgentRuntime +{ +namespace Model +{ + + /** + *

      Information about a parameter to provide to the API request.

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

      See Also:

      AWS + * API Reference

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

      The name of the parameter.

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

      The name of the parameter.

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

      The name of the parameter.

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

      The name of the parameter.

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

      The name of the parameter.

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

      The name of the parameter.

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

      The name of the parameter.

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

      The name of the parameter.

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

      The data type for the parameter.

      + */ + inline const Aws::String& GetType() const{ return m_type; } + + /** + *

      The data type for the parameter.

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

      The data type for the parameter.

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

      The data type for the parameter.

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

      The data type for the parameter.

      + */ + inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); } + + /** + *

      The data type for the parameter.

      + */ + inline ApiParameter& WithType(const Aws::String& value) { SetType(value); return *this;} + + /** + *

      The data type for the parameter.

      + */ + inline ApiParameter& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;} + + /** + *

      The data type for the parameter.

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

      The value of the parameter.

      + */ + inline const Aws::String& GetValue() const{ return m_value; } + + /** + *

      The value of the parameter.

      + */ + inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; } + + /** + *

      The value of the parameter.

      + */ + inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; } + + /** + *

      The value of the parameter.

      + */ + inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); } + + /** + *

      The value of the parameter.

      + */ + inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); } + + /** + *

      The value of the parameter.

      + */ + inline ApiParameter& WithValue(const Aws::String& value) { SetValue(value); return *this;} + + /** + *

      The value of the parameter.

      + */ + inline ApiParameter& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;} + + /** + *

      The value of the parameter.

      + */ + inline ApiParameter& WithValue(const char* value) { SetValue(value); return *this;} + + private: + + Aws::String m_name; + bool m_nameHasBeenSet = false; + + Aws::String m_type; + bool m_typeHasBeenSet = false; + + Aws::String m_value; + bool m_valueHasBeenSet = false; + }; + +} // namespace Model +} // namespace BedrockAgentRuntime +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/ApiRequestBody.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/ApiRequestBody.h new file mode 100644 index 00000000000..12615f7f171 --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/ApiRequestBody.h @@ -0,0 +1,126 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace BedrockAgentRuntime +{ +namespace Model +{ + + /** + *

      The request body to provide for the API request, as the agent elicited from + * the user.

      This data type is used in the following API operations:

      + *

      See Also:

      AWS + * API Reference

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

      The content of the request body. The key of the object in this field is a + * media type defining the format of the request body.

      + */ + inline const Aws::Map& GetContent() const{ return m_content; } + + /** + *

      The content of the request body. The key of the object in this field is a + * media type defining the format of the request body.

      + */ + inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; } + + /** + *

      The content of the request body. The key of the object in this field is a + * media type defining the format of the request body.

      + */ + inline void SetContent(const Aws::Map& value) { m_contentHasBeenSet = true; m_content = value; } + + /** + *

      The content of the request body. The key of the object in this field is a + * media type defining the format of the request body.

      + */ + inline void SetContent(Aws::Map&& value) { m_contentHasBeenSet = true; m_content = std::move(value); } + + /** + *

      The content of the request body. The key of the object in this field is a + * media type defining the format of the request body.

      + */ + inline ApiRequestBody& WithContent(const Aws::Map& value) { SetContent(value); return *this;} + + /** + *

      The content of the request body. The key of the object in this field is a + * media type defining the format of the request body.

      + */ + inline ApiRequestBody& WithContent(Aws::Map&& value) { SetContent(std::move(value)); return *this;} + + /** + *

      The content of the request body. The key of the object in this field is a + * media type defining the format of the request body.

      + */ + inline ApiRequestBody& AddContent(const Aws::String& key, const PropertyParameters& value) { m_contentHasBeenSet = true; m_content.emplace(key, value); return *this; } + + /** + *

      The content of the request body. The key of the object in this field is a + * media type defining the format of the request body.

      + */ + inline ApiRequestBody& AddContent(Aws::String&& key, const PropertyParameters& value) { m_contentHasBeenSet = true; m_content.emplace(std::move(key), value); return *this; } + + /** + *

      The content of the request body. The key of the object in this field is a + * media type defining the format of the request body.

      + */ + inline ApiRequestBody& AddContent(const Aws::String& key, PropertyParameters&& value) { m_contentHasBeenSet = true; m_content.emplace(key, std::move(value)); return *this; } + + /** + *

      The content of the request body. The key of the object in this field is a + * media type defining the format of the request body.

      + */ + inline ApiRequestBody& AddContent(Aws::String&& key, PropertyParameters&& value) { m_contentHasBeenSet = true; m_content.emplace(std::move(key), std::move(value)); return *this; } + + /** + *

      The content of the request body. The key of the object in this field is a + * media type defining the format of the request body.

      + */ + inline ApiRequestBody& AddContent(const char* key, PropertyParameters&& value) { m_contentHasBeenSet = true; m_content.emplace(key, std::move(value)); return *this; } + + /** + *

      The content of the request body. The key of the object in this field is a + * media type defining the format of the request body.

      + */ + inline ApiRequestBody& AddContent(const char* key, const PropertyParameters& value) { m_contentHasBeenSet = true; m_content.emplace(key, value); return *this; } + + private: + + Aws::Map m_content; + bool m_contentHasBeenSet = false; + }; + +} // namespace Model +} // namespace BedrockAgentRuntime +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/ApiResult.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/ApiResult.h new file mode 100644 index 00000000000..95a3abed867 --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/ApiResult.h @@ -0,0 +1,352 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace BedrockAgentRuntime +{ +namespace Model +{ + + /** + *

      Contains information about the API operation that was called from the action + * group and the response body that was returned.

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

      See Also:

      AWS + * API Reference

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

      The action group that the API operation belongs to.

      + */ + inline const Aws::String& GetActionGroup() const{ return m_actionGroup; } + + /** + *

      The action group that the API operation belongs to.

      + */ + inline bool ActionGroupHasBeenSet() const { return m_actionGroupHasBeenSet; } + + /** + *

      The action group that the API operation belongs to.

      + */ + inline void SetActionGroup(const Aws::String& value) { m_actionGroupHasBeenSet = true; m_actionGroup = value; } + + /** + *

      The action group that the API operation belongs to.

      + */ + inline void SetActionGroup(Aws::String&& value) { m_actionGroupHasBeenSet = true; m_actionGroup = std::move(value); } + + /** + *

      The action group that the API operation belongs to.

      + */ + inline void SetActionGroup(const char* value) { m_actionGroupHasBeenSet = true; m_actionGroup.assign(value); } + + /** + *

      The action group that the API operation belongs to.

      + */ + inline ApiResult& WithActionGroup(const Aws::String& value) { SetActionGroup(value); return *this;} + + /** + *

      The action group that the API operation belongs to.

      + */ + inline ApiResult& WithActionGroup(Aws::String&& value) { SetActionGroup(std::move(value)); return *this;} + + /** + *

      The action group that the API operation belongs to.

      + */ + inline ApiResult& WithActionGroup(const char* value) { SetActionGroup(value); return *this;} + + + /** + *

      The path to the API operation.

      + */ + inline const Aws::String& GetApiPath() const{ return m_apiPath; } + + /** + *

      The path to the API operation.

      + */ + inline bool ApiPathHasBeenSet() const { return m_apiPathHasBeenSet; } + + /** + *

      The path to the API operation.

      + */ + inline void SetApiPath(const Aws::String& value) { m_apiPathHasBeenSet = true; m_apiPath = value; } + + /** + *

      The path to the API operation.

      + */ + inline void SetApiPath(Aws::String&& value) { m_apiPathHasBeenSet = true; m_apiPath = std::move(value); } + + /** + *

      The path to the API operation.

      + */ + inline void SetApiPath(const char* value) { m_apiPathHasBeenSet = true; m_apiPath.assign(value); } + + /** + *

      The path to the API operation.

      + */ + inline ApiResult& WithApiPath(const Aws::String& value) { SetApiPath(value); return *this;} + + /** + *

      The path to the API operation.

      + */ + inline ApiResult& WithApiPath(Aws::String&& value) { SetApiPath(std::move(value)); return *this;} + + /** + *

      The path to the API operation.

      + */ + inline ApiResult& WithApiPath(const char* value) { SetApiPath(value); return *this;} + + + /** + *

      The HTTP method for the API operation.

      + */ + inline const Aws::String& GetHttpMethod() const{ return m_httpMethod; } + + /** + *

      The HTTP method for the API operation.

      + */ + inline bool HttpMethodHasBeenSet() const { return m_httpMethodHasBeenSet; } + + /** + *

      The HTTP method for the API operation.

      + */ + inline void SetHttpMethod(const Aws::String& value) { m_httpMethodHasBeenSet = true; m_httpMethod = value; } + + /** + *

      The HTTP method for the API operation.

      + */ + inline void SetHttpMethod(Aws::String&& value) { m_httpMethodHasBeenSet = true; m_httpMethod = std::move(value); } + + /** + *

      The HTTP method for the API operation.

      + */ + inline void SetHttpMethod(const char* value) { m_httpMethodHasBeenSet = true; m_httpMethod.assign(value); } + + /** + *

      The HTTP method for the API operation.

      + */ + inline ApiResult& WithHttpMethod(const Aws::String& value) { SetHttpMethod(value); return *this;} + + /** + *

      The HTTP method for the API operation.

      + */ + inline ApiResult& WithHttpMethod(Aws::String&& value) { SetHttpMethod(std::move(value)); return *this;} + + /** + *

      The HTTP method for the API operation.

      + */ + inline ApiResult& WithHttpMethod(const char* value) { SetHttpMethod(value); return *this;} + + + /** + *

      http status code from API execution response (for example: 200, 400, + * 500).

      + */ + inline int GetHttpStatusCode() const{ return m_httpStatusCode; } + + /** + *

      http status code from API execution response (for example: 200, 400, + * 500).

      + */ + inline bool HttpStatusCodeHasBeenSet() const { return m_httpStatusCodeHasBeenSet; } + + /** + *

      http status code from API execution response (for example: 200, 400, + * 500).

      + */ + inline void SetHttpStatusCode(int value) { m_httpStatusCodeHasBeenSet = true; m_httpStatusCode = value; } + + /** + *

      http status code from API execution response (for example: 200, 400, + * 500).

      + */ + inline ApiResult& WithHttpStatusCode(int value) { SetHttpStatusCode(value); return *this;} + + + /** + *

      The response body from the API operation. The key of the object is the + * content type. The response may be returned directly or from the Lambda + * function.

      + */ + inline const Aws::Map& GetResponseBody() const{ return m_responseBody; } + + /** + *

      The response body from the API operation. The key of the object is the + * content type. The response may be returned directly or from the Lambda + * function.

      + */ + inline bool ResponseBodyHasBeenSet() const { return m_responseBodyHasBeenSet; } + + /** + *

      The response body from the API operation. The key of the object is the + * content type. The response may be returned directly or from the Lambda + * function.

      + */ + inline void SetResponseBody(const Aws::Map& value) { m_responseBodyHasBeenSet = true; m_responseBody = value; } + + /** + *

      The response body from the API operation. The key of the object is the + * content type. The response may be returned directly or from the Lambda + * function.

      + */ + inline void SetResponseBody(Aws::Map&& value) { m_responseBodyHasBeenSet = true; m_responseBody = std::move(value); } + + /** + *

      The response body from the API operation. The key of the object is the + * content type. The response may be returned directly or from the Lambda + * function.

      + */ + inline ApiResult& WithResponseBody(const Aws::Map& value) { SetResponseBody(value); return *this;} + + /** + *

      The response body from the API operation. The key of the object is the + * content type. The response may be returned directly or from the Lambda + * function.

      + */ + inline ApiResult& WithResponseBody(Aws::Map&& value) { SetResponseBody(std::move(value)); return *this;} + + /** + *

      The response body from the API operation. The key of the object is the + * content type. The response may be returned directly or from the Lambda + * function.

      + */ + inline ApiResult& AddResponseBody(const Aws::String& key, const ContentBody& value) { m_responseBodyHasBeenSet = true; m_responseBody.emplace(key, value); return *this; } + + /** + *

      The response body from the API operation. The key of the object is the + * content type. The response may be returned directly or from the Lambda + * function.

      + */ + inline ApiResult& AddResponseBody(Aws::String&& key, const ContentBody& value) { m_responseBodyHasBeenSet = true; m_responseBody.emplace(std::move(key), value); return *this; } + + /** + *

      The response body from the API operation. The key of the object is the + * content type. The response may be returned directly or from the Lambda + * function.

      + */ + inline ApiResult& AddResponseBody(const Aws::String& key, ContentBody&& value) { m_responseBodyHasBeenSet = true; m_responseBody.emplace(key, std::move(value)); return *this; } + + /** + *

      The response body from the API operation. The key of the object is the + * content type. The response may be returned directly or from the Lambda + * function.

      + */ + inline ApiResult& AddResponseBody(Aws::String&& key, ContentBody&& value) { m_responseBodyHasBeenSet = true; m_responseBody.emplace(std::move(key), std::move(value)); return *this; } + + /** + *

      The response body from the API operation. The key of the object is the + * content type. The response may be returned directly or from the Lambda + * function.

      + */ + inline ApiResult& AddResponseBody(const char* key, ContentBody&& value) { m_responseBodyHasBeenSet = true; m_responseBody.emplace(key, std::move(value)); return *this; } + + /** + *

      The response body from the API operation. The key of the object is the + * content type. The response may be returned directly or from the Lambda + * function.

      + */ + inline ApiResult& AddResponseBody(const char* key, const ContentBody& value) { m_responseBodyHasBeenSet = true; m_responseBody.emplace(key, value); return *this; } + + + /** + *

      Controls the final response state returned to end user when API/Function + * execution failed. When this state is FAILURE, the request would fail with + * dependency failure exception. When this state is REPROMPT, the API/function + * response will be sent to model for re-prompt

      + */ + inline const ResponseState& GetResponseState() const{ return m_responseState; } + + /** + *

      Controls the final response state returned to end user when API/Function + * execution failed. When this state is FAILURE, the request would fail with + * dependency failure exception. When this state is REPROMPT, the API/function + * response will be sent to model for re-prompt

      + */ + inline bool ResponseStateHasBeenSet() const { return m_responseStateHasBeenSet; } + + /** + *

      Controls the final response state returned to end user when API/Function + * execution failed. When this state is FAILURE, the request would fail with + * dependency failure exception. When this state is REPROMPT, the API/function + * response will be sent to model for re-prompt

      + */ + inline void SetResponseState(const ResponseState& value) { m_responseStateHasBeenSet = true; m_responseState = value; } + + /** + *

      Controls the final response state returned to end user when API/Function + * execution failed. When this state is FAILURE, the request would fail with + * dependency failure exception. When this state is REPROMPT, the API/function + * response will be sent to model for re-prompt

      + */ + inline void SetResponseState(ResponseState&& value) { m_responseStateHasBeenSet = true; m_responseState = std::move(value); } + + /** + *

      Controls the final response state returned to end user when API/Function + * execution failed. When this state is FAILURE, the request would fail with + * dependency failure exception. When this state is REPROMPT, the API/function + * response will be sent to model for re-prompt

      + */ + inline ApiResult& WithResponseState(const ResponseState& value) { SetResponseState(value); return *this;} + + /** + *

      Controls the final response state returned to end user when API/Function + * execution failed. When this state is FAILURE, the request would fail with + * dependency failure exception. When this state is REPROMPT, the API/function + * response will be sent to model for re-prompt

      + */ + inline ApiResult& WithResponseState(ResponseState&& value) { SetResponseState(std::move(value)); return *this;} + + private: + + Aws::String m_actionGroup; + bool m_actionGroupHasBeenSet = false; + + Aws::String m_apiPath; + bool m_apiPathHasBeenSet = false; + + Aws::String m_httpMethod; + bool m_httpMethodHasBeenSet = false; + + int m_httpStatusCode; + bool m_httpStatusCodeHasBeenSet = false; + + Aws::Map m_responseBody; + bool m_responseBodyHasBeenSet = false; + + ResponseState m_responseState; + bool m_responseStateHasBeenSet = false; + }; + +} // namespace Model +} // namespace BedrockAgentRuntime +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/ContentBody.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/ContentBody.h new file mode 100644 index 00000000000..66c58920408 --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/ContentBody.h @@ -0,0 +1,92 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace BedrockAgentRuntime +{ +namespace Model +{ + + /** + *

      Contains the body of the API response.

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

      See Also:

      AWS + * API Reference

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

      The body of the API response.

      + */ + inline const Aws::String& GetBody() const{ return m_body; } + + /** + *

      The body of the API response.

      + */ + inline bool BodyHasBeenSet() const { return m_bodyHasBeenSet; } + + /** + *

      The body of the API response.

      + */ + inline void SetBody(const Aws::String& value) { m_bodyHasBeenSet = true; m_body = value; } + + /** + *

      The body of the API response.

      + */ + inline void SetBody(Aws::String&& value) { m_bodyHasBeenSet = true; m_body = std::move(value); } + + /** + *

      The body of the API response.

      + */ + inline void SetBody(const char* value) { m_bodyHasBeenSet = true; m_body.assign(value); } + + /** + *

      The body of the API response.

      + */ + inline ContentBody& WithBody(const Aws::String& value) { SetBody(value); return *this;} + + /** + *

      The body of the API response.

      + */ + inline ContentBody& WithBody(Aws::String&& value) { SetBody(std::move(value)); return *this;} + + /** + *

      The body of the API response.

      + */ + inline ContentBody& WithBody(const char* value) { SetBody(value); return *this;} + + private: + + Aws::String m_body; + bool m_bodyHasBeenSet = false; + }; + +} // namespace Model +} // namespace BedrockAgentRuntime +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/FunctionInvocationInput.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/FunctionInvocationInput.h new file mode 100644 index 00000000000..35880be92bc --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/FunctionInvocationInput.h @@ -0,0 +1,182 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace BedrockAgentRuntime +{ +namespace Model +{ + + /** + *

      Contains information about the function that the agent predicts should be + * called.

      This data type is used in the following API operations:

      See Also:

      AWS + * API Reference

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

      The action group that the function belongs to.

      + */ + inline const Aws::String& GetActionGroup() const{ return m_actionGroup; } + + /** + *

      The action group that the function belongs to.

      + */ + inline bool ActionGroupHasBeenSet() const { return m_actionGroupHasBeenSet; } + + /** + *

      The action group that the function belongs to.

      + */ + inline void SetActionGroup(const Aws::String& value) { m_actionGroupHasBeenSet = true; m_actionGroup = value; } + + /** + *

      The action group that the function belongs to.

      + */ + inline void SetActionGroup(Aws::String&& value) { m_actionGroupHasBeenSet = true; m_actionGroup = std::move(value); } + + /** + *

      The action group that the function belongs to.

      + */ + inline void SetActionGroup(const char* value) { m_actionGroupHasBeenSet = true; m_actionGroup.assign(value); } + + /** + *

      The action group that the function belongs to.

      + */ + inline FunctionInvocationInput& WithActionGroup(const Aws::String& value) { SetActionGroup(value); return *this;} + + /** + *

      The action group that the function belongs to.

      + */ + inline FunctionInvocationInput& WithActionGroup(Aws::String&& value) { SetActionGroup(std::move(value)); return *this;} + + /** + *

      The action group that the function belongs to.

      + */ + inline FunctionInvocationInput& WithActionGroup(const char* value) { SetActionGroup(value); return *this;} + + + /** + *

      The name of the function.

      + */ + inline const Aws::String& GetFunction() const{ return m_function; } + + /** + *

      The name of the function.

      + */ + inline bool FunctionHasBeenSet() const { return m_functionHasBeenSet; } + + /** + *

      The name of the function.

      + */ + inline void SetFunction(const Aws::String& value) { m_functionHasBeenSet = true; m_function = value; } + + /** + *

      The name of the function.

      + */ + inline void SetFunction(Aws::String&& value) { m_functionHasBeenSet = true; m_function = std::move(value); } + + /** + *

      The name of the function.

      + */ + inline void SetFunction(const char* value) { m_functionHasBeenSet = true; m_function.assign(value); } + + /** + *

      The name of the function.

      + */ + inline FunctionInvocationInput& WithFunction(const Aws::String& value) { SetFunction(value); return *this;} + + /** + *

      The name of the function.

      + */ + inline FunctionInvocationInput& WithFunction(Aws::String&& value) { SetFunction(std::move(value)); return *this;} + + /** + *

      The name of the function.

      + */ + inline FunctionInvocationInput& WithFunction(const char* value) { SetFunction(value); return *this;} + + + /** + *

      A list of parameters of the function.

      + */ + inline const Aws::Vector& GetParameters() const{ return m_parameters; } + + /** + *

      A list of parameters of the function.

      + */ + inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; } + + /** + *

      A list of parameters of the function.

      + */ + inline void SetParameters(const Aws::Vector& value) { m_parametersHasBeenSet = true; m_parameters = value; } + + /** + *

      A list of parameters of the function.

      + */ + inline void SetParameters(Aws::Vector&& value) { m_parametersHasBeenSet = true; m_parameters = std::move(value); } + + /** + *

      A list of parameters of the function.

      + */ + inline FunctionInvocationInput& WithParameters(const Aws::Vector& value) { SetParameters(value); return *this;} + + /** + *

      A list of parameters of the function.

      + */ + inline FunctionInvocationInput& WithParameters(Aws::Vector&& value) { SetParameters(std::move(value)); return *this;} + + /** + *

      A list of parameters of the function.

      + */ + inline FunctionInvocationInput& AddParameters(const FunctionParameter& value) { m_parametersHasBeenSet = true; m_parameters.push_back(value); return *this; } + + /** + *

      A list of parameters of the function.

      + */ + inline FunctionInvocationInput& AddParameters(FunctionParameter&& value) { m_parametersHasBeenSet = true; m_parameters.push_back(std::move(value)); return *this; } + + private: + + Aws::String m_actionGroup; + bool m_actionGroupHasBeenSet = false; + + Aws::String m_function; + bool m_functionHasBeenSet = false; + + Aws::Vector m_parameters; + bool m_parametersHasBeenSet = false; + }; + +} // namespace Model +} // namespace BedrockAgentRuntime +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/FunctionParameter.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/FunctionParameter.h new file mode 100644 index 00000000000..ef535a31864 --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/FunctionParameter.h @@ -0,0 +1,180 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace BedrockAgentRuntime +{ +namespace Model +{ + + /** + *

      Contains information about a parameter of the function.

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

      See Also:

      AWS + * API Reference

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

      The name of the parameter.

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

      The name of the parameter.

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

      The name of the parameter.

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

      The name of the parameter.

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

      The name of the parameter.

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

      The name of the parameter.

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

      The name of the parameter.

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

      The name of the parameter.

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

      The data type of the parameter.

      + */ + inline const Aws::String& GetType() const{ return m_type; } + + /** + *

      The data type of the parameter.

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

      The data type of the parameter.

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

      The data type of the parameter.

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

      The data type of the parameter.

      + */ + inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); } + + /** + *

      The data type of the parameter.

      + */ + inline FunctionParameter& WithType(const Aws::String& value) { SetType(value); return *this;} + + /** + *

      The data type of the parameter.

      + */ + inline FunctionParameter& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;} + + /** + *

      The data type of the parameter.

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

      The value of the parameter.

      + */ + inline const Aws::String& GetValue() const{ return m_value; } + + /** + *

      The value of the parameter.

      + */ + inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; } + + /** + *

      The value of the parameter.

      + */ + inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; } + + /** + *

      The value of the parameter.

      + */ + inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); } + + /** + *

      The value of the parameter.

      + */ + inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); } + + /** + *

      The value of the parameter.

      + */ + inline FunctionParameter& WithValue(const Aws::String& value) { SetValue(value); return *this;} + + /** + *

      The value of the parameter.

      + */ + inline FunctionParameter& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;} + + /** + *

      The value of the parameter.

      + */ + inline FunctionParameter& WithValue(const char* value) { SetValue(value); return *this;} + + private: + + Aws::String m_name; + bool m_nameHasBeenSet = false; + + Aws::String m_type; + bool m_typeHasBeenSet = false; + + Aws::String m_value; + bool m_valueHasBeenSet = false; + }; + +} // namespace Model +} // namespace BedrockAgentRuntime +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/FunctionResult.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/FunctionResult.h new file mode 100644 index 00000000000..60b7a077343 --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/FunctionResult.h @@ -0,0 +1,268 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace BedrockAgentRuntime +{ +namespace Model +{ + + /** + *

      Contains information about the function that was called from the action group + * and the response that was returned.

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

      See Also:

      AWS + * API Reference

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

      The action group that the function belongs to.

      + */ + inline const Aws::String& GetActionGroup() const{ return m_actionGroup; } + + /** + *

      The action group that the function belongs to.

      + */ + inline bool ActionGroupHasBeenSet() const { return m_actionGroupHasBeenSet; } + + /** + *

      The action group that the function belongs to.

      + */ + inline void SetActionGroup(const Aws::String& value) { m_actionGroupHasBeenSet = true; m_actionGroup = value; } + + /** + *

      The action group that the function belongs to.

      + */ + inline void SetActionGroup(Aws::String&& value) { m_actionGroupHasBeenSet = true; m_actionGroup = std::move(value); } + + /** + *

      The action group that the function belongs to.

      + */ + inline void SetActionGroup(const char* value) { m_actionGroupHasBeenSet = true; m_actionGroup.assign(value); } + + /** + *

      The action group that the function belongs to.

      + */ + inline FunctionResult& WithActionGroup(const Aws::String& value) { SetActionGroup(value); return *this;} + + /** + *

      The action group that the function belongs to.

      + */ + inline FunctionResult& WithActionGroup(Aws::String&& value) { SetActionGroup(std::move(value)); return *this;} + + /** + *

      The action group that the function belongs to.

      + */ + inline FunctionResult& WithActionGroup(const char* value) { SetActionGroup(value); return *this;} + + + /** + *

      The name of the function that was called.

      + */ + inline const Aws::String& GetFunction() const{ return m_function; } + + /** + *

      The name of the function that was called.

      + */ + inline bool FunctionHasBeenSet() const { return m_functionHasBeenSet; } + + /** + *

      The name of the function that was called.

      + */ + inline void SetFunction(const Aws::String& value) { m_functionHasBeenSet = true; m_function = value; } + + /** + *

      The name of the function that was called.

      + */ + inline void SetFunction(Aws::String&& value) { m_functionHasBeenSet = true; m_function = std::move(value); } + + /** + *

      The name of the function that was called.

      + */ + inline void SetFunction(const char* value) { m_functionHasBeenSet = true; m_function.assign(value); } + + /** + *

      The name of the function that was called.

      + */ + inline FunctionResult& WithFunction(const Aws::String& value) { SetFunction(value); return *this;} + + /** + *

      The name of the function that was called.

      + */ + inline FunctionResult& WithFunction(Aws::String&& value) { SetFunction(std::move(value)); return *this;} + + /** + *

      The name of the function that was called.

      + */ + inline FunctionResult& WithFunction(const char* value) { SetFunction(value); return *this;} + + + /** + *

      The response from the function call using the parameters. The response may be + * returned directly or from the Lambda function.

      + */ + inline const Aws::Map& GetResponseBody() const{ return m_responseBody; } + + /** + *

      The response from the function call using the parameters. The response may be + * returned directly or from the Lambda function.

      + */ + inline bool ResponseBodyHasBeenSet() const { return m_responseBodyHasBeenSet; } + + /** + *

      The response from the function call using the parameters. The response may be + * returned directly or from the Lambda function.

      + */ + inline void SetResponseBody(const Aws::Map& value) { m_responseBodyHasBeenSet = true; m_responseBody = value; } + + /** + *

      The response from the function call using the parameters. The response may be + * returned directly or from the Lambda function.

      + */ + inline void SetResponseBody(Aws::Map&& value) { m_responseBodyHasBeenSet = true; m_responseBody = std::move(value); } + + /** + *

      The response from the function call using the parameters. The response may be + * returned directly or from the Lambda function.

      + */ + inline FunctionResult& WithResponseBody(const Aws::Map& value) { SetResponseBody(value); return *this;} + + /** + *

      The response from the function call using the parameters. The response may be + * returned directly or from the Lambda function.

      + */ + inline FunctionResult& WithResponseBody(Aws::Map&& value) { SetResponseBody(std::move(value)); return *this;} + + /** + *

      The response from the function call using the parameters. The response may be + * returned directly or from the Lambda function.

      + */ + inline FunctionResult& AddResponseBody(const Aws::String& key, const ContentBody& value) { m_responseBodyHasBeenSet = true; m_responseBody.emplace(key, value); return *this; } + + /** + *

      The response from the function call using the parameters. The response may be + * returned directly or from the Lambda function.

      + */ + inline FunctionResult& AddResponseBody(Aws::String&& key, const ContentBody& value) { m_responseBodyHasBeenSet = true; m_responseBody.emplace(std::move(key), value); return *this; } + + /** + *

      The response from the function call using the parameters. The response may be + * returned directly or from the Lambda function.

      + */ + inline FunctionResult& AddResponseBody(const Aws::String& key, ContentBody&& value) { m_responseBodyHasBeenSet = true; m_responseBody.emplace(key, std::move(value)); return *this; } + + /** + *

      The response from the function call using the parameters. The response may be + * returned directly or from the Lambda function.

      + */ + inline FunctionResult& AddResponseBody(Aws::String&& key, ContentBody&& value) { m_responseBodyHasBeenSet = true; m_responseBody.emplace(std::move(key), std::move(value)); return *this; } + + /** + *

      The response from the function call using the parameters. The response may be + * returned directly or from the Lambda function.

      + */ + inline FunctionResult& AddResponseBody(const char* key, ContentBody&& value) { m_responseBodyHasBeenSet = true; m_responseBody.emplace(key, std::move(value)); return *this; } + + /** + *

      The response from the function call using the parameters. The response may be + * returned directly or from the Lambda function.

      + */ + inline FunctionResult& AddResponseBody(const char* key, const ContentBody& value) { m_responseBodyHasBeenSet = true; m_responseBody.emplace(key, value); return *this; } + + + /** + *

      Controls the final response state returned to end user when API/Function + * execution failed. When this state is FAILURE, the request would fail with + * dependency failure exception. When this state is REPROMPT, the API/function + * response will be sent to model for re-prompt

      + */ + inline const ResponseState& GetResponseState() const{ return m_responseState; } + + /** + *

      Controls the final response state returned to end user when API/Function + * execution failed. When this state is FAILURE, the request would fail with + * dependency failure exception. When this state is REPROMPT, the API/function + * response will be sent to model for re-prompt

      + */ + inline bool ResponseStateHasBeenSet() const { return m_responseStateHasBeenSet; } + + /** + *

      Controls the final response state returned to end user when API/Function + * execution failed. When this state is FAILURE, the request would fail with + * dependency failure exception. When this state is REPROMPT, the API/function + * response will be sent to model for re-prompt

      + */ + inline void SetResponseState(const ResponseState& value) { m_responseStateHasBeenSet = true; m_responseState = value; } + + /** + *

      Controls the final response state returned to end user when API/Function + * execution failed. When this state is FAILURE, the request would fail with + * dependency failure exception. When this state is REPROMPT, the API/function + * response will be sent to model for re-prompt

      + */ + inline void SetResponseState(ResponseState&& value) { m_responseStateHasBeenSet = true; m_responseState = std::move(value); } + + /** + *

      Controls the final response state returned to end user when API/Function + * execution failed. When this state is FAILURE, the request would fail with + * dependency failure exception. When this state is REPROMPT, the API/function + * response will be sent to model for re-prompt

      + */ + inline FunctionResult& WithResponseState(const ResponseState& value) { SetResponseState(value); return *this;} + + /** + *

      Controls the final response state returned to end user when API/Function + * execution failed. When this state is FAILURE, the request would fail with + * dependency failure exception. When this state is REPROMPT, the API/function + * response will be sent to model for re-prompt

      + */ + inline FunctionResult& WithResponseState(ResponseState&& value) { SetResponseState(std::move(value)); return *this;} + + private: + + Aws::String m_actionGroup; + bool m_actionGroupHasBeenSet = false; + + Aws::String m_function; + bool m_functionHasBeenSet = false; + + Aws::Map m_responseBody; + bool m_responseBodyHasBeenSet = false; + + ResponseState m_responseState; + bool m_responseStateHasBeenSet = false; + }; + +} // namespace Model +} // namespace BedrockAgentRuntime +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/InvocationInputMember.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/InvocationInputMember.h new file mode 100644 index 00000000000..5e53405d60d --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/InvocationInputMember.h @@ -0,0 +1,129 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace BedrockAgentRuntime +{ +namespace Model +{ + + /** + *

      Contains details about the API operation or function that the agent predicts + * should be called.

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

      See Also:

      AWS + * API Reference

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

      Contains information about the API operation that the agent predicts should + * be called.

      + */ + inline const ApiInvocationInput& GetApiInvocationInput() const{ return m_apiInvocationInput; } + + /** + *

      Contains information about the API operation that the agent predicts should + * be called.

      + */ + inline bool ApiInvocationInputHasBeenSet() const { return m_apiInvocationInputHasBeenSet; } + + /** + *

      Contains information about the API operation that the agent predicts should + * be called.

      + */ + inline void SetApiInvocationInput(const ApiInvocationInput& value) { m_apiInvocationInputHasBeenSet = true; m_apiInvocationInput = value; } + + /** + *

      Contains information about the API operation that the agent predicts should + * be called.

      + */ + inline void SetApiInvocationInput(ApiInvocationInput&& value) { m_apiInvocationInputHasBeenSet = true; m_apiInvocationInput = std::move(value); } + + /** + *

      Contains information about the API operation that the agent predicts should + * be called.

      + */ + inline InvocationInputMember& WithApiInvocationInput(const ApiInvocationInput& value) { SetApiInvocationInput(value); return *this;} + + /** + *

      Contains information about the API operation that the agent predicts should + * be called.

      + */ + inline InvocationInputMember& WithApiInvocationInput(ApiInvocationInput&& value) { SetApiInvocationInput(std::move(value)); return *this;} + + + /** + *

      Contains information about the function that the agent predicts should be + * called.

      + */ + inline const FunctionInvocationInput& GetFunctionInvocationInput() const{ return m_functionInvocationInput; } + + /** + *

      Contains information about the function that the agent predicts should be + * called.

      + */ + inline bool FunctionInvocationInputHasBeenSet() const { return m_functionInvocationInputHasBeenSet; } + + /** + *

      Contains information about the function that the agent predicts should be + * called.

      + */ + inline void SetFunctionInvocationInput(const FunctionInvocationInput& value) { m_functionInvocationInputHasBeenSet = true; m_functionInvocationInput = value; } + + /** + *

      Contains information about the function that the agent predicts should be + * called.

      + */ + inline void SetFunctionInvocationInput(FunctionInvocationInput&& value) { m_functionInvocationInputHasBeenSet = true; m_functionInvocationInput = std::move(value); } + + /** + *

      Contains information about the function that the agent predicts should be + * called.

      + */ + inline InvocationInputMember& WithFunctionInvocationInput(const FunctionInvocationInput& value) { SetFunctionInvocationInput(value); return *this;} + + /** + *

      Contains information about the function that the agent predicts should be + * called.

      + */ + inline InvocationInputMember& WithFunctionInvocationInput(FunctionInvocationInput&& value) { SetFunctionInvocationInput(std::move(value)); return *this;} + + private: + + ApiInvocationInput m_apiInvocationInput; + bool m_apiInvocationInputHasBeenSet = false; + + FunctionInvocationInput m_functionInvocationInput; + bool m_functionInvocationInputHasBeenSet = false; + }; + +} // namespace Model +} // namespace BedrockAgentRuntime +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/InvocationResultMember.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/InvocationResultMember.h new file mode 100644 index 00000000000..746ebd5e4f0 --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/InvocationResultMember.h @@ -0,0 +1,116 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace BedrockAgentRuntime +{ +namespace Model +{ + + /** + *

      A result from the action group invocation.

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

      See Also:

      AWS + * API Reference

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

      The result from the API response from the action group invocation.

      + */ + inline const ApiResult& GetApiResult() const{ return m_apiResult; } + + /** + *

      The result from the API response from the action group invocation.

      + */ + inline bool ApiResultHasBeenSet() const { return m_apiResultHasBeenSet; } + + /** + *

      The result from the API response from the action group invocation.

      + */ + inline void SetApiResult(const ApiResult& value) { m_apiResultHasBeenSet = true; m_apiResult = value; } + + /** + *

      The result from the API response from the action group invocation.

      + */ + inline void SetApiResult(ApiResult&& value) { m_apiResultHasBeenSet = true; m_apiResult = std::move(value); } + + /** + *

      The result from the API response from the action group invocation.

      + */ + inline InvocationResultMember& WithApiResult(const ApiResult& value) { SetApiResult(value); return *this;} + + /** + *

      The result from the API response from the action group invocation.

      + */ + inline InvocationResultMember& WithApiResult(ApiResult&& value) { SetApiResult(std::move(value)); return *this;} + + + /** + *

      The result from the function from the action group invocation.

      + */ + inline const FunctionResult& GetFunctionResult() const{ return m_functionResult; } + + /** + *

      The result from the function from the action group invocation.

      + */ + inline bool FunctionResultHasBeenSet() const { return m_functionResultHasBeenSet; } + + /** + *

      The result from the function from the action group invocation.

      + */ + inline void SetFunctionResult(const FunctionResult& value) { m_functionResultHasBeenSet = true; m_functionResult = value; } + + /** + *

      The result from the function from the action group invocation.

      + */ + inline void SetFunctionResult(FunctionResult&& value) { m_functionResultHasBeenSet = true; m_functionResult = std::move(value); } + + /** + *

      The result from the function from the action group invocation.

      + */ + inline InvocationResultMember& WithFunctionResult(const FunctionResult& value) { SetFunctionResult(value); return *this;} + + /** + *

      The result from the function from the action group invocation.

      + */ + inline InvocationResultMember& WithFunctionResult(FunctionResult&& value) { SetFunctionResult(std::move(value)); return *this;} + + private: + + ApiResult m_apiResult; + bool m_apiResultHasBeenSet = false; + + FunctionResult m_functionResult; + bool m_functionResultHasBeenSet = false; + }; + +} // namespace Model +} // namespace BedrockAgentRuntime +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/InvokeAgentHandler.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/InvokeAgentHandler.h index 70d070ebac3..5dde7cded12 100644 --- a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/InvokeAgentHandler.h +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/InvokeAgentHandler.h @@ -12,6 +12,7 @@ #include #include +#include #include namespace Aws @@ -24,6 +25,7 @@ namespace Model { INITIAL_RESPONSE, CHUNK, + RETURNCONTROL, TRACE, UNKNOWN }; @@ -32,6 +34,7 @@ namespace Model { typedef std::function InvokeAgentInitialResponseCallback; typedef std::function PayloadPartCallback; + typedef std::function ReturnControlPayloadCallback; typedef std::function TracePartCallback; typedef std::function& error)> ErrorCallback; @@ -43,6 +46,7 @@ namespace Model inline void SetInitialResponseCallback(const InvokeAgentInitialResponseCallback& callback) { m_onInitialResponse = callback; } inline void SetPayloadPartCallback(const PayloadPartCallback& callback) { m_onPayloadPart = callback; } + inline void SetReturnControlPayloadCallback(const ReturnControlPayloadCallback& callback) { m_onReturnControlPayload = callback; } inline void SetTracePartCallback(const TracePartCallback& callback) { m_onTracePart = callback; } inline void SetOnErrorCallback(const ErrorCallback& callback) { m_onError = callback; } @@ -53,6 +57,7 @@ namespace Model InvokeAgentInitialResponseCallback m_onInitialResponse; PayloadPartCallback m_onPayloadPart; + ReturnControlPayloadCallback m_onReturnControlPayload; TracePartCallback m_onTracePart; ErrorCallback m_onError; }; diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/Parameter.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/Parameter.h index 24ff04bea49..210e6ef0621 100644 --- a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/Parameter.h +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/Parameter.h @@ -24,7 +24,7 @@ namespace Model { /** - *

      A parameter in the Lambda input event.

      See Also:

      A parameter for the API request or function.

      See Also:

      AWS * API Reference

      */ diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/PropertyParameters.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/PropertyParameters.h new file mode 100644 index 00000000000..51ccfb3250e --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/PropertyParameters.h @@ -0,0 +1,89 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace BedrockAgentRuntime +{ +namespace Model +{ + + /** + *

      Contains the parameters in the request body.

      See Also:

      AWS + * API Reference

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

      A list of parameters in the request body.

      + */ + inline const Aws::Vector& GetProperties() const{ return m_properties; } + + /** + *

      A list of parameters in the request body.

      + */ + inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; } + + /** + *

      A list of parameters in the request body.

      + */ + inline void SetProperties(const Aws::Vector& value) { m_propertiesHasBeenSet = true; m_properties = value; } + + /** + *

      A list of parameters in the request body.

      + */ + inline void SetProperties(Aws::Vector&& value) { m_propertiesHasBeenSet = true; m_properties = std::move(value); } + + /** + *

      A list of parameters in the request body.

      + */ + inline PropertyParameters& WithProperties(const Aws::Vector& value) { SetProperties(value); return *this;} + + /** + *

      A list of parameters in the request body.

      + */ + inline PropertyParameters& WithProperties(Aws::Vector&& value) { SetProperties(std::move(value)); return *this;} + + /** + *

      A list of parameters in the request body.

      + */ + inline PropertyParameters& AddProperties(const Parameter& value) { m_propertiesHasBeenSet = true; m_properties.push_back(value); return *this; } + + /** + *

      A list of parameters in the request body.

      + */ + inline PropertyParameters& AddProperties(Parameter&& value) { m_propertiesHasBeenSet = true; m_properties.push_back(std::move(value)); return *this; } + + private: + + Aws::Vector m_properties; + bool m_propertiesHasBeenSet = false; + }; + +} // namespace Model +} // namespace BedrockAgentRuntime +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/RequestBody.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/RequestBody.h index 3b3a9d93f31..4dd7c25e764 100644 --- a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/RequestBody.h +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/RequestBody.h @@ -27,8 +27,7 @@ namespace Model { /** - *

      The parameters in the request body for the Lambda input event.

      See - * Also:

      The parameters in the API request body.

      See Also:

      AWS * API Reference

      */ diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/ResponseState.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/ResponseState.h new file mode 100644 index 00000000000..b250ccfc471 --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/ResponseState.h @@ -0,0 +1,31 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace BedrockAgentRuntime +{ +namespace Model +{ + enum class ResponseState + { + NOT_SET, + FAILURE, + REPROMPT + }; + +namespace ResponseStateMapper +{ +AWS_BEDROCKAGENTRUNTIME_API ResponseState GetResponseStateForName(const Aws::String& name); + +AWS_BEDROCKAGENTRUNTIME_API Aws::String GetNameForResponseState(ResponseState value); +} // namespace ResponseStateMapper +} // namespace Model +} // namespace BedrockAgentRuntime +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/ResponseStream.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/ResponseStream.h index 128d4c02e8e..270e1a992b5 100644 --- a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/ResponseStream.h +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/ResponseStream.h @@ -12,6 +12,7 @@ #include #include #include +#include #include #include #include @@ -259,42 +260,85 @@ namespace Model /** - *

      The specified resource ARN was not found. Check the ARN and try your request - * again.

      + *

      The specified resource Amazon Resource Name (ARN) was not found. Check the + * Amazon Resource Name (ARN) and try your request again.

      */ inline const ResourceNotFoundException& GetResourceNotFoundException() const{ return m_resourceNotFoundException; } /** - *

      The specified resource ARN was not found. Check the ARN and try your request - * again.

      + *

      The specified resource Amazon Resource Name (ARN) was not found. Check the + * Amazon Resource Name (ARN) and try your request again.

      */ inline bool ResourceNotFoundExceptionHasBeenSet() const { return m_resourceNotFoundExceptionHasBeenSet; } /** - *

      The specified resource ARN was not found. Check the ARN and try your request - * again.

      + *

      The specified resource Amazon Resource Name (ARN) was not found. Check the + * Amazon Resource Name (ARN) and try your request again.

      */ inline void SetResourceNotFoundException(const ResourceNotFoundException& value) { m_resourceNotFoundExceptionHasBeenSet = true; m_resourceNotFoundException = value; } /** - *

      The specified resource ARN was not found. Check the ARN and try your request - * again.

      + *

      The specified resource Amazon Resource Name (ARN) was not found. Check the + * Amazon Resource Name (ARN) and try your request again.

      */ inline void SetResourceNotFoundException(ResourceNotFoundException&& value) { m_resourceNotFoundExceptionHasBeenSet = true; m_resourceNotFoundException = std::move(value); } /** - *

      The specified resource ARN was not found. Check the ARN and try your request - * again.

      + *

      The specified resource Amazon Resource Name (ARN) was not found. Check the + * Amazon Resource Name (ARN) and try your request again.

      */ inline ResponseStream& WithResourceNotFoundException(const ResourceNotFoundException& value) { SetResourceNotFoundException(value); return *this;} /** - *

      The specified resource ARN was not found. Check the ARN and try your request - * again.

      + *

      The specified resource Amazon Resource Name (ARN) was not found. Check the + * Amazon Resource Name (ARN) and try your request again.

      */ inline ResponseStream& WithResourceNotFoundException(ResourceNotFoundException&& value) { SetResourceNotFoundException(std::move(value)); return *this;} + /** + *

      Contains the parameters and information that the agent elicited from the + * customer to carry out an action. This information is returned to the system and + * can be used in your own setup for fulfilling the action.

      + */ + inline const ReturnControlPayload& GetReturnControl() const{ return m_returnControl; } + + /** + *

      Contains the parameters and information that the agent elicited from the + * customer to carry out an action. This information is returned to the system and + * can be used in your own setup for fulfilling the action.

      + */ + inline bool ReturnControlHasBeenSet() const { return m_returnControlHasBeenSet; } + + /** + *

      Contains the parameters and information that the agent elicited from the + * customer to carry out an action. This information is returned to the system and + * can be used in your own setup for fulfilling the action.

      + */ + inline void SetReturnControl(const ReturnControlPayload& value) { m_returnControlHasBeenSet = true; m_returnControl = value; } + + /** + *

      Contains the parameters and information that the agent elicited from the + * customer to carry out an action. This information is returned to the system and + * can be used in your own setup for fulfilling the action.

      + */ + inline void SetReturnControl(ReturnControlPayload&& value) { m_returnControlHasBeenSet = true; m_returnControl = std::move(value); } + + /** + *

      Contains the parameters and information that the agent elicited from the + * customer to carry out an action. This information is returned to the system and + * can be used in your own setup for fulfilling the action.

      + */ + inline ResponseStream& WithReturnControl(const ReturnControlPayload& value) { SetReturnControl(value); return *this;} + + /** + *

      Contains the parameters and information that the agent elicited from the + * customer to carry out an action. This information is returned to the system and + * can be used in your own setup for fulfilling the action.

      + */ + inline ResponseStream& WithReturnControl(ReturnControlPayload&& value) { SetReturnControl(std::move(value)); return *this;} + + /** *

      The number of requests exceeds the service quota. Resubmit your request * later.

      @@ -365,10 +409,9 @@ namespace Model /** *

      Contains information about the agent and session, alongside the agent's - * reasoning process and results from calling API actions and querying knowledge - * bases and metadata about the trace. You can use the trace to understand how the - * agent arrived at the response it provided the customer. For more information, - * see Trace * events.

      */ @@ -376,10 +419,9 @@ namespace Model /** *

      Contains information about the agent and session, alongside the agent's - * reasoning process and results from calling API actions and querying knowledge - * bases and metadata about the trace. You can use the trace to understand how the - * agent arrived at the response it provided the customer. For more information, - * see Trace * events.

      */ @@ -387,10 +429,9 @@ namespace Model /** *

      Contains information about the agent and session, alongside the agent's - * reasoning process and results from calling API actions and querying knowledge - * bases and metadata about the trace. You can use the trace to understand how the - * agent arrived at the response it provided the customer. For more information, - * see Trace * events.

      */ @@ -398,10 +439,9 @@ namespace Model /** *

      Contains information about the agent and session, alongside the agent's - * reasoning process and results from calling API actions and querying knowledge - * bases and metadata about the trace. You can use the trace to understand how the - * agent arrived at the response it provided the customer. For more information, - * see Trace * events.

      */ @@ -409,10 +449,9 @@ namespace Model /** *

      Contains information about the agent and session, alongside the agent's - * reasoning process and results from calling API actions and querying knowledge - * bases and metadata about the trace. You can use the trace to understand how the - * agent arrived at the response it provided the customer. For more information, - * see Trace * events.

      */ @@ -420,10 +459,9 @@ namespace Model /** *

      Contains information about the agent and session, alongside the agent's - * reasoning process and results from calling API actions and querying knowledge - * bases and metadata about the trace. You can use the trace to understand how the - * agent arrived at the response it provided the customer. For more information, - * see Trace * events.

      */ @@ -489,6 +527,9 @@ namespace Model ResourceNotFoundException m_resourceNotFoundException; bool m_resourceNotFoundExceptionHasBeenSet = false; + ReturnControlPayload m_returnControl; + bool m_returnControlHasBeenSet = false; + ServiceQuotaExceededException m_serviceQuotaExceededException; bool m_serviceQuotaExceededExceptionHasBeenSet = false; diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/ReturnControlPayload.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/ReturnControlPayload.h new file mode 100644 index 00000000000..a7f927f2a7c --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/ReturnControlPayload.h @@ -0,0 +1,154 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace BedrockAgentRuntime +{ +namespace Model +{ + + /** + *

      Contains information to return from the action group that the agent has + * predicted to invoke.

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

      See Also:

      AWS + * API Reference

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

      The identifier of the action group invocation.

      + */ + inline const Aws::String& GetInvocationId() const{ return m_invocationId; } + + /** + *

      The identifier of the action group invocation.

      + */ + inline bool InvocationIdHasBeenSet() const { return m_invocationIdHasBeenSet; } + + /** + *

      The identifier of the action group invocation.

      + */ + inline void SetInvocationId(const Aws::String& value) { m_invocationIdHasBeenSet = true; m_invocationId = value; } + + /** + *

      The identifier of the action group invocation.

      + */ + inline void SetInvocationId(Aws::String&& value) { m_invocationIdHasBeenSet = true; m_invocationId = std::move(value); } + + /** + *

      The identifier of the action group invocation.

      + */ + inline void SetInvocationId(const char* value) { m_invocationIdHasBeenSet = true; m_invocationId.assign(value); } + + /** + *

      The identifier of the action group invocation.

      + */ + inline ReturnControlPayload& WithInvocationId(const Aws::String& value) { SetInvocationId(value); return *this;} + + /** + *

      The identifier of the action group invocation.

      + */ + inline ReturnControlPayload& WithInvocationId(Aws::String&& value) { SetInvocationId(std::move(value)); return *this;} + + /** + *

      The identifier of the action group invocation.

      + */ + inline ReturnControlPayload& WithInvocationId(const char* value) { SetInvocationId(value); return *this;} + + + /** + *

      A list of objects that contain information about the parameters and inputs + * that need to be sent into the API operation or function, based on what the agent + * determines from its session with the user.

      + */ + inline const Aws::Vector& GetInvocationInputs() const{ return m_invocationInputs; } + + /** + *

      A list of objects that contain information about the parameters and inputs + * that need to be sent into the API operation or function, based on what the agent + * determines from its session with the user.

      + */ + inline bool InvocationInputsHasBeenSet() const { return m_invocationInputsHasBeenSet; } + + /** + *

      A list of objects that contain information about the parameters and inputs + * that need to be sent into the API operation or function, based on what the agent + * determines from its session with the user.

      + */ + inline void SetInvocationInputs(const Aws::Vector& value) { m_invocationInputsHasBeenSet = true; m_invocationInputs = value; } + + /** + *

      A list of objects that contain information about the parameters and inputs + * that need to be sent into the API operation or function, based on what the agent + * determines from its session with the user.

      + */ + inline void SetInvocationInputs(Aws::Vector&& value) { m_invocationInputsHasBeenSet = true; m_invocationInputs = std::move(value); } + + /** + *

      A list of objects that contain information about the parameters and inputs + * that need to be sent into the API operation or function, based on what the agent + * determines from its session with the user.

      + */ + inline ReturnControlPayload& WithInvocationInputs(const Aws::Vector& value) { SetInvocationInputs(value); return *this;} + + /** + *

      A list of objects that contain information about the parameters and inputs + * that need to be sent into the API operation or function, based on what the agent + * determines from its session with the user.

      + */ + inline ReturnControlPayload& WithInvocationInputs(Aws::Vector&& value) { SetInvocationInputs(std::move(value)); return *this;} + + /** + *

      A list of objects that contain information about the parameters and inputs + * that need to be sent into the API operation or function, based on what the agent + * determines from its session with the user.

      + */ + inline ReturnControlPayload& AddInvocationInputs(const InvocationInputMember& value) { m_invocationInputsHasBeenSet = true; m_invocationInputs.push_back(value); return *this; } + + /** + *

      A list of objects that contain information about the parameters and inputs + * that need to be sent into the API operation or function, based on what the agent + * determines from its session with the user.

      + */ + inline ReturnControlPayload& AddInvocationInputs(InvocationInputMember&& value) { m_invocationInputsHasBeenSet = true; m_invocationInputs.push_back(std::move(value)); return *this; } + + private: + + Aws::String m_invocationId; + bool m_invocationIdHasBeenSet = false; + + Aws::Vector m_invocationInputs; + bool m_invocationInputsHasBeenSet = false; + }; + +} // namespace Model +} // namespace BedrockAgentRuntime +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/SessionState.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/SessionState.h index d99966d52ec..36bbd14a3b3 100644 --- a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/SessionState.h +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/SessionState.h @@ -5,8 +5,10 @@ #pragma once #include -#include #include +#include +#include +#include #include namespace Aws @@ -48,6 +50,47 @@ namespace Model AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const; + /** + *

      The identifier of the invocation.

      + */ + inline const Aws::String& GetInvocationId() const{ return m_invocationId; } + + /** + *

      The identifier of the invocation.

      + */ + inline bool InvocationIdHasBeenSet() const { return m_invocationIdHasBeenSet; } + + /** + *

      The identifier of the invocation.

      + */ + inline void SetInvocationId(const Aws::String& value) { m_invocationIdHasBeenSet = true; m_invocationId = value; } + + /** + *

      The identifier of the invocation.

      + */ + inline void SetInvocationId(Aws::String&& value) { m_invocationIdHasBeenSet = true; m_invocationId = std::move(value); } + + /** + *

      The identifier of the invocation.

      + */ + inline void SetInvocationId(const char* value) { m_invocationIdHasBeenSet = true; m_invocationId.assign(value); } + + /** + *

      The identifier of the invocation.

      + */ + inline SessionState& WithInvocationId(const Aws::String& value) { SetInvocationId(value); return *this;} + + /** + *

      The identifier of the invocation.

      + */ + inline SessionState& WithInvocationId(Aws::String&& value) { SetInvocationId(std::move(value)); return *this;} + + /** + *

      The identifier of the invocation.

      + */ + inline SessionState& WithInvocationId(const char* value) { SetInvocationId(value); return *this;} + + /** *

      Contains attributes that persist across a prompt and the values of those * attributes. These attributes replace the $prompt_session_attributes$ placeholder @@ -166,6 +209,47 @@ namespace Model inline SessionState& AddPromptSessionAttributes(const char* key, const char* value) { m_promptSessionAttributesHasBeenSet = true; m_promptSessionAttributes.emplace(key, value); return *this; } + /** + *

      Contains information about the results from the action group invocation.

      + */ + inline const Aws::Vector& GetReturnControlInvocationResults() const{ return m_returnControlInvocationResults; } + + /** + *

      Contains information about the results from the action group invocation.

      + */ + inline bool ReturnControlInvocationResultsHasBeenSet() const { return m_returnControlInvocationResultsHasBeenSet; } + + /** + *

      Contains information about the results from the action group invocation.

      + */ + inline void SetReturnControlInvocationResults(const Aws::Vector& value) { m_returnControlInvocationResultsHasBeenSet = true; m_returnControlInvocationResults = value; } + + /** + *

      Contains information about the results from the action group invocation.

      + */ + inline void SetReturnControlInvocationResults(Aws::Vector&& value) { m_returnControlInvocationResultsHasBeenSet = true; m_returnControlInvocationResults = std::move(value); } + + /** + *

      Contains information about the results from the action group invocation.

      + */ + inline SessionState& WithReturnControlInvocationResults(const Aws::Vector& value) { SetReturnControlInvocationResults(value); return *this;} + + /** + *

      Contains information about the results from the action group invocation.

      + */ + inline SessionState& WithReturnControlInvocationResults(Aws::Vector&& value) { SetReturnControlInvocationResults(std::move(value)); return *this;} + + /** + *

      Contains information about the results from the action group invocation.

      + */ + inline SessionState& AddReturnControlInvocationResults(const InvocationResultMember& value) { m_returnControlInvocationResultsHasBeenSet = true; m_returnControlInvocationResults.push_back(value); return *this; } + + /** + *

      Contains information about the results from the action group invocation.

      + */ + inline SessionState& AddReturnControlInvocationResults(InvocationResultMember&& value) { m_returnControlInvocationResultsHasBeenSet = true; m_returnControlInvocationResults.push_back(std::move(value)); return *this; } + + /** *

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

      @@ -246,9 +330,15 @@ namespace Model private: + Aws::String m_invocationId; + bool m_invocationIdHasBeenSet = false; + Aws::Map m_promptSessionAttributes; bool m_promptSessionAttributesHasBeenSet = false; + Aws::Vector m_returnControlInvocationResults; + bool m_returnControlInvocationResultsHasBeenSet = false; + Aws::Map m_sessionAttributes; bool m_sessionAttributesHasBeenSet = false; }; diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/TracePart.h b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/TracePart.h index a4e70836e1a..740e1514646 100644 --- a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/TracePart.h +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/include/aws/bedrock-agent-runtime/model/TracePart.h @@ -126,6 +126,47 @@ namespace Model inline TracePart& WithAgentId(const char* value) { SetAgentId(value); return *this;} + /** + *

      The version of the agent.

      + */ + inline const Aws::String& GetAgentVersion() const{ return m_agentVersion; } + + /** + *

      The version of the agent.

      + */ + inline bool AgentVersionHasBeenSet() const { return m_agentVersionHasBeenSet; } + + /** + *

      The version of the agent.

      + */ + inline void SetAgentVersion(const Aws::String& value) { m_agentVersionHasBeenSet = true; m_agentVersion = value; } + + /** + *

      The version of the agent.

      + */ + inline void SetAgentVersion(Aws::String&& value) { m_agentVersionHasBeenSet = true; m_agentVersion = std::move(value); } + + /** + *

      The version of the agent.

      + */ + inline void SetAgentVersion(const char* value) { m_agentVersionHasBeenSet = true; m_agentVersion.assign(value); } + + /** + *

      The version of the agent.

      + */ + inline TracePart& WithAgentVersion(const Aws::String& value) { SetAgentVersion(value); return *this;} + + /** + *

      The version of the agent.

      + */ + inline TracePart& WithAgentVersion(Aws::String&& value) { SetAgentVersion(std::move(value)); return *this;} + + /** + *

      The version of the agent.

      + */ + inline TracePart& WithAgentVersion(const char* value) { SetAgentVersion(value); return *this;} + + /** *

      The unique identifier of the session with the agent.

      */ @@ -235,6 +276,9 @@ namespace Model Aws::String m_agentId; bool m_agentIdHasBeenSet = false; + Aws::String m_agentVersion; + bool m_agentVersionHasBeenSet = false; + Aws::String m_sessionId; bool m_sessionIdHasBeenSet = false; diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/ActionGroupInvocationInput.cpp b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/ActionGroupInvocationInput.cpp index 9c65b089dd3..e54316c2300 100644 --- a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/ActionGroupInvocationInput.cpp +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/ActionGroupInvocationInput.cpp @@ -21,6 +21,7 @@ namespace Model ActionGroupInvocationInput::ActionGroupInvocationInput() : m_actionGroupNameHasBeenSet(false), m_apiPathHasBeenSet(false), + m_functionHasBeenSet(false), m_parametersHasBeenSet(false), m_requestBodyHasBeenSet(false), m_verbHasBeenSet(false) @@ -30,6 +31,7 @@ ActionGroupInvocationInput::ActionGroupInvocationInput() : ActionGroupInvocationInput::ActionGroupInvocationInput(JsonView jsonValue) : m_actionGroupNameHasBeenSet(false), m_apiPathHasBeenSet(false), + m_functionHasBeenSet(false), m_parametersHasBeenSet(false), m_requestBodyHasBeenSet(false), m_verbHasBeenSet(false) @@ -53,6 +55,13 @@ ActionGroupInvocationInput& ActionGroupInvocationInput::operator =(JsonView json m_apiPathHasBeenSet = true; } + if(jsonValue.ValueExists("function")) + { + m_function = jsonValue.GetString("function"); + + m_functionHasBeenSet = true; + } + if(jsonValue.ValueExists("parameters")) { Aws::Utils::Array parametersJsonList = jsonValue.GetArray("parameters"); @@ -96,6 +105,12 @@ JsonValue ActionGroupInvocationInput::Jsonize() const } + if(m_functionHasBeenSet) + { + payload.WithString("function", m_function); + + } + if(m_parametersHasBeenSet) { Aws::Utils::Array parametersJsonList(m_parameters.size()); diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/ApiInvocationInput.cpp b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/ApiInvocationInput.cpp new file mode 100644 index 00000000000..d2b1c354ab1 --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/ApiInvocationInput.cpp @@ -0,0 +1,127 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace BedrockAgentRuntime +{ +namespace Model +{ + +ApiInvocationInput::ApiInvocationInput() : + m_actionGroupHasBeenSet(false), + m_apiPathHasBeenSet(false), + m_httpMethodHasBeenSet(false), + m_parametersHasBeenSet(false), + m_requestBodyHasBeenSet(false) +{ +} + +ApiInvocationInput::ApiInvocationInput(JsonView jsonValue) : + m_actionGroupHasBeenSet(false), + m_apiPathHasBeenSet(false), + m_httpMethodHasBeenSet(false), + m_parametersHasBeenSet(false), + m_requestBodyHasBeenSet(false) +{ + *this = jsonValue; +} + +ApiInvocationInput& ApiInvocationInput::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("actionGroup")) + { + m_actionGroup = jsonValue.GetString("actionGroup"); + + m_actionGroupHasBeenSet = true; + } + + if(jsonValue.ValueExists("apiPath")) + { + m_apiPath = jsonValue.GetString("apiPath"); + + m_apiPathHasBeenSet = true; + } + + if(jsonValue.ValueExists("httpMethod")) + { + m_httpMethod = jsonValue.GetString("httpMethod"); + + m_httpMethodHasBeenSet = true; + } + + if(jsonValue.ValueExists("parameters")) + { + Aws::Utils::Array parametersJsonList = jsonValue.GetArray("parameters"); + for(unsigned parametersIndex = 0; parametersIndex < parametersJsonList.GetLength(); ++parametersIndex) + { + m_parameters.push_back(parametersJsonList[parametersIndex].AsObject()); + } + m_parametersHasBeenSet = true; + } + + if(jsonValue.ValueExists("requestBody")) + { + m_requestBody = jsonValue.GetObject("requestBody"); + + m_requestBodyHasBeenSet = true; + } + + return *this; +} + +JsonValue ApiInvocationInput::Jsonize() const +{ + JsonValue payload; + + if(m_actionGroupHasBeenSet) + { + payload.WithString("actionGroup", m_actionGroup); + + } + + if(m_apiPathHasBeenSet) + { + payload.WithString("apiPath", m_apiPath); + + } + + if(m_httpMethodHasBeenSet) + { + payload.WithString("httpMethod", m_httpMethod); + + } + + if(m_parametersHasBeenSet) + { + Aws::Utils::Array parametersJsonList(m_parameters.size()); + for(unsigned parametersIndex = 0; parametersIndex < parametersJsonList.GetLength(); ++parametersIndex) + { + parametersJsonList[parametersIndex].AsObject(m_parameters[parametersIndex].Jsonize()); + } + payload.WithArray("parameters", std::move(parametersJsonList)); + + } + + if(m_requestBodyHasBeenSet) + { + payload.WithObject("requestBody", m_requestBody.Jsonize()); + + } + + return payload; +} + +} // namespace Model +} // namespace BedrockAgentRuntime +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/ApiParameter.cpp b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/ApiParameter.cpp new file mode 100644 index 00000000000..bd365b7809c --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/ApiParameter.cpp @@ -0,0 +1,89 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace BedrockAgentRuntime +{ +namespace Model +{ + +ApiParameter::ApiParameter() : + m_nameHasBeenSet(false), + m_typeHasBeenSet(false), + m_valueHasBeenSet(false) +{ +} + +ApiParameter::ApiParameter(JsonView jsonValue) : + m_nameHasBeenSet(false), + m_typeHasBeenSet(false), + m_valueHasBeenSet(false) +{ + *this = jsonValue; +} + +ApiParameter& ApiParameter::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("name")) + { + m_name = jsonValue.GetString("name"); + + m_nameHasBeenSet = true; + } + + if(jsonValue.ValueExists("type")) + { + m_type = jsonValue.GetString("type"); + + m_typeHasBeenSet = true; + } + + if(jsonValue.ValueExists("value")) + { + m_value = jsonValue.GetString("value"); + + m_valueHasBeenSet = true; + } + + return *this; +} + +JsonValue ApiParameter::Jsonize() const +{ + JsonValue payload; + + if(m_nameHasBeenSet) + { + payload.WithString("name", m_name); + + } + + if(m_typeHasBeenSet) + { + payload.WithString("type", m_type); + + } + + if(m_valueHasBeenSet) + { + payload.WithString("value", m_value); + + } + + return payload; +} + +} // namespace Model +} // namespace BedrockAgentRuntime +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/ApiRequestBody.cpp b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/ApiRequestBody.cpp new file mode 100644 index 00000000000..c0e270e6ffe --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/ApiRequestBody.cpp @@ -0,0 +1,67 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace BedrockAgentRuntime +{ +namespace Model +{ + +ApiRequestBody::ApiRequestBody() : + m_contentHasBeenSet(false) +{ +} + +ApiRequestBody::ApiRequestBody(JsonView jsonValue) : + m_contentHasBeenSet(false) +{ + *this = jsonValue; +} + +ApiRequestBody& ApiRequestBody::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("content")) + { + Aws::Map contentJsonMap = jsonValue.GetObject("content").GetAllObjects(); + for(auto& contentItem : contentJsonMap) + { + m_content[contentItem.first] = contentItem.second.AsObject(); + } + m_contentHasBeenSet = true; + } + + return *this; +} + +JsonValue ApiRequestBody::Jsonize() const +{ + JsonValue payload; + + if(m_contentHasBeenSet) + { + JsonValue contentJsonMap; + for(auto& contentItem : m_content) + { + contentJsonMap.WithObject(contentItem.first, contentItem.second.Jsonize()); + } + payload.WithObject("content", std::move(contentJsonMap)); + + } + + return payload; +} + +} // namespace Model +} // namespace BedrockAgentRuntime +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/ApiResult.cpp b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/ApiResult.cpp new file mode 100644 index 00000000000..4dfbdfd0c43 --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/ApiResult.cpp @@ -0,0 +1,145 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace BedrockAgentRuntime +{ +namespace Model +{ + +ApiResult::ApiResult() : + m_actionGroupHasBeenSet(false), + m_apiPathHasBeenSet(false), + m_httpMethodHasBeenSet(false), + m_httpStatusCode(0), + m_httpStatusCodeHasBeenSet(false), + m_responseBodyHasBeenSet(false), + m_responseState(ResponseState::NOT_SET), + m_responseStateHasBeenSet(false) +{ +} + +ApiResult::ApiResult(JsonView jsonValue) : + m_actionGroupHasBeenSet(false), + m_apiPathHasBeenSet(false), + m_httpMethodHasBeenSet(false), + m_httpStatusCode(0), + m_httpStatusCodeHasBeenSet(false), + m_responseBodyHasBeenSet(false), + m_responseState(ResponseState::NOT_SET), + m_responseStateHasBeenSet(false) +{ + *this = jsonValue; +} + +ApiResult& ApiResult::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("actionGroup")) + { + m_actionGroup = jsonValue.GetString("actionGroup"); + + m_actionGroupHasBeenSet = true; + } + + if(jsonValue.ValueExists("apiPath")) + { + m_apiPath = jsonValue.GetString("apiPath"); + + m_apiPathHasBeenSet = true; + } + + if(jsonValue.ValueExists("httpMethod")) + { + m_httpMethod = jsonValue.GetString("httpMethod"); + + m_httpMethodHasBeenSet = true; + } + + if(jsonValue.ValueExists("httpStatusCode")) + { + m_httpStatusCode = jsonValue.GetInteger("httpStatusCode"); + + m_httpStatusCodeHasBeenSet = true; + } + + if(jsonValue.ValueExists("responseBody")) + { + Aws::Map responseBodyJsonMap = jsonValue.GetObject("responseBody").GetAllObjects(); + for(auto& responseBodyItem : responseBodyJsonMap) + { + m_responseBody[responseBodyItem.first] = responseBodyItem.second.AsObject(); + } + m_responseBodyHasBeenSet = true; + } + + if(jsonValue.ValueExists("responseState")) + { + m_responseState = ResponseStateMapper::GetResponseStateForName(jsonValue.GetString("responseState")); + + m_responseStateHasBeenSet = true; + } + + return *this; +} + +JsonValue ApiResult::Jsonize() const +{ + JsonValue payload; + + if(m_actionGroupHasBeenSet) + { + payload.WithString("actionGroup", m_actionGroup); + + } + + if(m_apiPathHasBeenSet) + { + payload.WithString("apiPath", m_apiPath); + + } + + if(m_httpMethodHasBeenSet) + { + payload.WithString("httpMethod", m_httpMethod); + + } + + if(m_httpStatusCodeHasBeenSet) + { + payload.WithInteger("httpStatusCode", m_httpStatusCode); + + } + + if(m_responseBodyHasBeenSet) + { + JsonValue responseBodyJsonMap; + for(auto& responseBodyItem : m_responseBody) + { + responseBodyJsonMap.WithObject(responseBodyItem.first, responseBodyItem.second.Jsonize()); + } + payload.WithObject("responseBody", std::move(responseBodyJsonMap)); + + } + + if(m_responseStateHasBeenSet) + { + payload.WithString("responseState", ResponseStateMapper::GetNameForResponseState(m_responseState)); + } + + return payload; +} + +} // namespace Model +} // namespace BedrockAgentRuntime +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/ContentBody.cpp b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/ContentBody.cpp new file mode 100644 index 00000000000..047aaee9142 --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/ContentBody.cpp @@ -0,0 +1,59 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace BedrockAgentRuntime +{ +namespace Model +{ + +ContentBody::ContentBody() : + m_bodyHasBeenSet(false) +{ +} + +ContentBody::ContentBody(JsonView jsonValue) : + m_bodyHasBeenSet(false) +{ + *this = jsonValue; +} + +ContentBody& ContentBody::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("body")) + { + m_body = jsonValue.GetString("body"); + + m_bodyHasBeenSet = true; + } + + return *this; +} + +JsonValue ContentBody::Jsonize() const +{ + JsonValue payload; + + if(m_bodyHasBeenSet) + { + payload.WithString("body", m_body); + + } + + return payload; +} + +} // namespace Model +} // namespace BedrockAgentRuntime +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/FunctionInvocationInput.cpp b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/FunctionInvocationInput.cpp new file mode 100644 index 00000000000..391d3b92ef8 --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/FunctionInvocationInput.cpp @@ -0,0 +1,97 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace BedrockAgentRuntime +{ +namespace Model +{ + +FunctionInvocationInput::FunctionInvocationInput() : + m_actionGroupHasBeenSet(false), + m_functionHasBeenSet(false), + m_parametersHasBeenSet(false) +{ +} + +FunctionInvocationInput::FunctionInvocationInput(JsonView jsonValue) : + m_actionGroupHasBeenSet(false), + m_functionHasBeenSet(false), + m_parametersHasBeenSet(false) +{ + *this = jsonValue; +} + +FunctionInvocationInput& FunctionInvocationInput::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("actionGroup")) + { + m_actionGroup = jsonValue.GetString("actionGroup"); + + m_actionGroupHasBeenSet = true; + } + + if(jsonValue.ValueExists("function")) + { + m_function = jsonValue.GetString("function"); + + m_functionHasBeenSet = true; + } + + if(jsonValue.ValueExists("parameters")) + { + Aws::Utils::Array parametersJsonList = jsonValue.GetArray("parameters"); + for(unsigned parametersIndex = 0; parametersIndex < parametersJsonList.GetLength(); ++parametersIndex) + { + m_parameters.push_back(parametersJsonList[parametersIndex].AsObject()); + } + m_parametersHasBeenSet = true; + } + + return *this; +} + +JsonValue FunctionInvocationInput::Jsonize() const +{ + JsonValue payload; + + if(m_actionGroupHasBeenSet) + { + payload.WithString("actionGroup", m_actionGroup); + + } + + if(m_functionHasBeenSet) + { + payload.WithString("function", m_function); + + } + + if(m_parametersHasBeenSet) + { + Aws::Utils::Array parametersJsonList(m_parameters.size()); + for(unsigned parametersIndex = 0; parametersIndex < parametersJsonList.GetLength(); ++parametersIndex) + { + parametersJsonList[parametersIndex].AsObject(m_parameters[parametersIndex].Jsonize()); + } + payload.WithArray("parameters", std::move(parametersJsonList)); + + } + + return payload; +} + +} // namespace Model +} // namespace BedrockAgentRuntime +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/FunctionParameter.cpp b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/FunctionParameter.cpp new file mode 100644 index 00000000000..950ad5bc0cd --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/FunctionParameter.cpp @@ -0,0 +1,89 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace BedrockAgentRuntime +{ +namespace Model +{ + +FunctionParameter::FunctionParameter() : + m_nameHasBeenSet(false), + m_typeHasBeenSet(false), + m_valueHasBeenSet(false) +{ +} + +FunctionParameter::FunctionParameter(JsonView jsonValue) : + m_nameHasBeenSet(false), + m_typeHasBeenSet(false), + m_valueHasBeenSet(false) +{ + *this = jsonValue; +} + +FunctionParameter& FunctionParameter::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("name")) + { + m_name = jsonValue.GetString("name"); + + m_nameHasBeenSet = true; + } + + if(jsonValue.ValueExists("type")) + { + m_type = jsonValue.GetString("type"); + + m_typeHasBeenSet = true; + } + + if(jsonValue.ValueExists("value")) + { + m_value = jsonValue.GetString("value"); + + m_valueHasBeenSet = true; + } + + return *this; +} + +JsonValue FunctionParameter::Jsonize() const +{ + JsonValue payload; + + if(m_nameHasBeenSet) + { + payload.WithString("name", m_name); + + } + + if(m_typeHasBeenSet) + { + payload.WithString("type", m_type); + + } + + if(m_valueHasBeenSet) + { + payload.WithString("value", m_value); + + } + + return payload; +} + +} // namespace Model +} // namespace BedrockAgentRuntime +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/FunctionResult.cpp b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/FunctionResult.cpp new file mode 100644 index 00000000000..61a90b4dd46 --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/FunctionResult.cpp @@ -0,0 +1,113 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace BedrockAgentRuntime +{ +namespace Model +{ + +FunctionResult::FunctionResult() : + m_actionGroupHasBeenSet(false), + m_functionHasBeenSet(false), + m_responseBodyHasBeenSet(false), + m_responseState(ResponseState::NOT_SET), + m_responseStateHasBeenSet(false) +{ +} + +FunctionResult::FunctionResult(JsonView jsonValue) : + m_actionGroupHasBeenSet(false), + m_functionHasBeenSet(false), + m_responseBodyHasBeenSet(false), + m_responseState(ResponseState::NOT_SET), + m_responseStateHasBeenSet(false) +{ + *this = jsonValue; +} + +FunctionResult& FunctionResult::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("actionGroup")) + { + m_actionGroup = jsonValue.GetString("actionGroup"); + + m_actionGroupHasBeenSet = true; + } + + if(jsonValue.ValueExists("function")) + { + m_function = jsonValue.GetString("function"); + + m_functionHasBeenSet = true; + } + + if(jsonValue.ValueExists("responseBody")) + { + Aws::Map responseBodyJsonMap = jsonValue.GetObject("responseBody").GetAllObjects(); + for(auto& responseBodyItem : responseBodyJsonMap) + { + m_responseBody[responseBodyItem.first] = responseBodyItem.second.AsObject(); + } + m_responseBodyHasBeenSet = true; + } + + if(jsonValue.ValueExists("responseState")) + { + m_responseState = ResponseStateMapper::GetResponseStateForName(jsonValue.GetString("responseState")); + + m_responseStateHasBeenSet = true; + } + + return *this; +} + +JsonValue FunctionResult::Jsonize() const +{ + JsonValue payload; + + if(m_actionGroupHasBeenSet) + { + payload.WithString("actionGroup", m_actionGroup); + + } + + if(m_functionHasBeenSet) + { + payload.WithString("function", m_function); + + } + + if(m_responseBodyHasBeenSet) + { + JsonValue responseBodyJsonMap; + for(auto& responseBodyItem : m_responseBody) + { + responseBodyJsonMap.WithObject(responseBodyItem.first, responseBodyItem.second.Jsonize()); + } + payload.WithObject("responseBody", std::move(responseBodyJsonMap)); + + } + + if(m_responseStateHasBeenSet) + { + payload.WithString("responseState", ResponseStateMapper::GetNameForResponseState(m_responseState)); + } + + return payload; +} + +} // namespace Model +} // namespace BedrockAgentRuntime +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/InvocationInputMember.cpp b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/InvocationInputMember.cpp new file mode 100644 index 00000000000..7bd72dec32b --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/InvocationInputMember.cpp @@ -0,0 +1,74 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace BedrockAgentRuntime +{ +namespace Model +{ + +InvocationInputMember::InvocationInputMember() : + m_apiInvocationInputHasBeenSet(false), + m_functionInvocationInputHasBeenSet(false) +{ +} + +InvocationInputMember::InvocationInputMember(JsonView jsonValue) : + m_apiInvocationInputHasBeenSet(false), + m_functionInvocationInputHasBeenSet(false) +{ + *this = jsonValue; +} + +InvocationInputMember& InvocationInputMember::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("apiInvocationInput")) + { + m_apiInvocationInput = jsonValue.GetObject("apiInvocationInput"); + + m_apiInvocationInputHasBeenSet = true; + } + + if(jsonValue.ValueExists("functionInvocationInput")) + { + m_functionInvocationInput = jsonValue.GetObject("functionInvocationInput"); + + m_functionInvocationInputHasBeenSet = true; + } + + return *this; +} + +JsonValue InvocationInputMember::Jsonize() const +{ + JsonValue payload; + + if(m_apiInvocationInputHasBeenSet) + { + payload.WithObject("apiInvocationInput", m_apiInvocationInput.Jsonize()); + + } + + if(m_functionInvocationInputHasBeenSet) + { + payload.WithObject("functionInvocationInput", m_functionInvocationInput.Jsonize()); + + } + + return payload; +} + +} // namespace Model +} // namespace BedrockAgentRuntime +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/InvocationResultMember.cpp b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/InvocationResultMember.cpp new file mode 100644 index 00000000000..94f08b557cd --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/InvocationResultMember.cpp @@ -0,0 +1,74 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace BedrockAgentRuntime +{ +namespace Model +{ + +InvocationResultMember::InvocationResultMember() : + m_apiResultHasBeenSet(false), + m_functionResultHasBeenSet(false) +{ +} + +InvocationResultMember::InvocationResultMember(JsonView jsonValue) : + m_apiResultHasBeenSet(false), + m_functionResultHasBeenSet(false) +{ + *this = jsonValue; +} + +InvocationResultMember& InvocationResultMember::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("apiResult")) + { + m_apiResult = jsonValue.GetObject("apiResult"); + + m_apiResultHasBeenSet = true; + } + + if(jsonValue.ValueExists("functionResult")) + { + m_functionResult = jsonValue.GetObject("functionResult"); + + m_functionResultHasBeenSet = true; + } + + return *this; +} + +JsonValue InvocationResultMember::Jsonize() const +{ + JsonValue payload; + + if(m_apiResultHasBeenSet) + { + payload.WithObject("apiResult", m_apiResult.Jsonize()); + + } + + if(m_functionResultHasBeenSet) + { + payload.WithObject("functionResult", m_functionResult.Jsonize()); + + } + + return payload; +} + +} // namespace Model +} // namespace BedrockAgentRuntime +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/InvokeAgentHandler.cpp b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/InvokeAgentHandler.cpp index a147a489b98..93614ca3604 100644 --- a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/InvokeAgentHandler.cpp +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/InvokeAgentHandler.cpp @@ -40,6 +40,11 @@ namespace Model AWS_LOGSTREAM_TRACE(INVOKEAGENT_HANDLER_CLASS_TAG, "PayloadPart received."); }; + m_onReturnControlPayload = [&](const ReturnControlPayload&) + { + AWS_LOGSTREAM_TRACE(INVOKEAGENT_HANDLER_CLASS_TAG, "ReturnControlPayload received."); + }; + m_onTracePart = [&](const TracePart&) { AWS_LOGSTREAM_TRACE(INVOKEAGENT_HANDLER_CLASS_TAG, "TracePart received."); @@ -126,6 +131,18 @@ namespace Model m_onPayloadPart(PayloadPart{json.View()}); break; } + case InvokeAgentEventType::RETURNCONTROL: + { + JsonValue json(GetEventPayloadAsString()); + if (!json.WasParseSuccessful()) + { + AWS_LOGSTREAM_WARN(INVOKEAGENT_HANDLER_CLASS_TAG, "Unable to generate a proper ReturnControlPayload object from the response in JSON format."); + break; + } + + m_onReturnControlPayload(ReturnControlPayload{json.View()}); + break; + } case InvokeAgentEventType::TRACE: { JsonValue json(GetEventPayloadAsString()); @@ -232,6 +249,7 @@ namespace InvokeAgentEventMapper { static const int INITIAL_RESPONSE_HASH = Aws::Utils::HashingUtils::HashString("initial-response"); static const int CHUNK_HASH = Aws::Utils::HashingUtils::HashString("chunk"); + static const int RETURNCONTROL_HASH = Aws::Utils::HashingUtils::HashString("returnControl"); static const int TRACE_HASH = Aws::Utils::HashingUtils::HashString("trace"); InvokeAgentEventType GetInvokeAgentEventTypeForName(const Aws::String& name) @@ -246,6 +264,10 @@ namespace InvokeAgentEventMapper { return InvokeAgentEventType::CHUNK; } + else if (hashCode == RETURNCONTROL_HASH) + { + return InvokeAgentEventType::RETURNCONTROL; + } else if (hashCode == TRACE_HASH) { return InvokeAgentEventType::TRACE; @@ -261,6 +283,8 @@ namespace InvokeAgentEventMapper return "initial-response"; case InvokeAgentEventType::CHUNK: return "chunk"; + case InvokeAgentEventType::RETURNCONTROL: + return "returnControl"; case InvokeAgentEventType::TRACE: return "trace"; default: diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/PropertyParameters.cpp b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/PropertyParameters.cpp new file mode 100644 index 00000000000..2aeec6a47f3 --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/PropertyParameters.cpp @@ -0,0 +1,67 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace BedrockAgentRuntime +{ +namespace Model +{ + +PropertyParameters::PropertyParameters() : + m_propertiesHasBeenSet(false) +{ +} + +PropertyParameters::PropertyParameters(JsonView jsonValue) : + m_propertiesHasBeenSet(false) +{ + *this = jsonValue; +} + +PropertyParameters& PropertyParameters::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("properties")) + { + Aws::Utils::Array propertiesJsonList = jsonValue.GetArray("properties"); + for(unsigned propertiesIndex = 0; propertiesIndex < propertiesJsonList.GetLength(); ++propertiesIndex) + { + m_properties.push_back(propertiesJsonList[propertiesIndex].AsObject()); + } + m_propertiesHasBeenSet = true; + } + + return *this; +} + +JsonValue PropertyParameters::Jsonize() const +{ + JsonValue payload; + + if(m_propertiesHasBeenSet) + { + Aws::Utils::Array propertiesJsonList(m_properties.size()); + for(unsigned propertiesIndex = 0; propertiesIndex < propertiesJsonList.GetLength(); ++propertiesIndex) + { + propertiesJsonList[propertiesIndex].AsObject(m_properties[propertiesIndex].Jsonize()); + } + payload.WithArray("properties", std::move(propertiesJsonList)); + + } + + return payload; +} + +} // namespace Model +} // namespace BedrockAgentRuntime +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/ResponseState.cpp b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/ResponseState.cpp new file mode 100644 index 00000000000..8b900e6064f --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/ResponseState.cpp @@ -0,0 +1,72 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace BedrockAgentRuntime + { + namespace Model + { + namespace ResponseStateMapper + { + + static const int FAILURE_HASH = HashingUtils::HashString("FAILURE"); + static const int REPROMPT_HASH = HashingUtils::HashString("REPROMPT"); + + + ResponseState GetResponseStateForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == FAILURE_HASH) + { + return ResponseState::FAILURE; + } + else if (hashCode == REPROMPT_HASH) + { + return ResponseState::REPROMPT; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return ResponseState::NOT_SET; + } + + Aws::String GetNameForResponseState(ResponseState enumValue) + { + switch(enumValue) + { + case ResponseState::NOT_SET: + return {}; + case ResponseState::FAILURE: + return "FAILURE"; + case ResponseState::REPROMPT: + return "REPROMPT"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace ResponseStateMapper + } // namespace Model + } // namespace BedrockAgentRuntime +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/ReturnControlPayload.cpp b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/ReturnControlPayload.cpp new file mode 100644 index 00000000000..68a277be96c --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/ReturnControlPayload.cpp @@ -0,0 +1,82 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace BedrockAgentRuntime +{ +namespace Model +{ + +ReturnControlPayload::ReturnControlPayload() : + m_invocationIdHasBeenSet(false), + m_invocationInputsHasBeenSet(false) +{ +} + +ReturnControlPayload::ReturnControlPayload(JsonView jsonValue) : + m_invocationIdHasBeenSet(false), + m_invocationInputsHasBeenSet(false) +{ + *this = jsonValue; +} + +ReturnControlPayload& ReturnControlPayload::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("invocationId")) + { + m_invocationId = jsonValue.GetString("invocationId"); + + m_invocationIdHasBeenSet = true; + } + + if(jsonValue.ValueExists("invocationInputs")) + { + Aws::Utils::Array invocationInputsJsonList = jsonValue.GetArray("invocationInputs"); + for(unsigned invocationInputsIndex = 0; invocationInputsIndex < invocationInputsJsonList.GetLength(); ++invocationInputsIndex) + { + m_invocationInputs.push_back(invocationInputsJsonList[invocationInputsIndex].AsObject()); + } + m_invocationInputsHasBeenSet = true; + } + + return *this; +} + +JsonValue ReturnControlPayload::Jsonize() const +{ + JsonValue payload; + + if(m_invocationIdHasBeenSet) + { + payload.WithString("invocationId", m_invocationId); + + } + + if(m_invocationInputsHasBeenSet) + { + Aws::Utils::Array invocationInputsJsonList(m_invocationInputs.size()); + for(unsigned invocationInputsIndex = 0; invocationInputsIndex < invocationInputsJsonList.GetLength(); ++invocationInputsIndex) + { + invocationInputsJsonList[invocationInputsIndex].AsObject(m_invocationInputs[invocationInputsIndex].Jsonize()); + } + payload.WithArray("invocationInputs", std::move(invocationInputsJsonList)); + + } + + return payload; +} + +} // namespace Model +} // namespace BedrockAgentRuntime +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/SessionState.cpp b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/SessionState.cpp index 756bda070ae..fd90780e4af 100644 --- a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/SessionState.cpp +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/SessionState.cpp @@ -19,13 +19,17 @@ namespace Model { SessionState::SessionState() : + m_invocationIdHasBeenSet(false), m_promptSessionAttributesHasBeenSet(false), + m_returnControlInvocationResultsHasBeenSet(false), m_sessionAttributesHasBeenSet(false) { } SessionState::SessionState(JsonView jsonValue) : + m_invocationIdHasBeenSet(false), m_promptSessionAttributesHasBeenSet(false), + m_returnControlInvocationResultsHasBeenSet(false), m_sessionAttributesHasBeenSet(false) { *this = jsonValue; @@ -33,6 +37,13 @@ SessionState::SessionState(JsonView jsonValue) : SessionState& SessionState::operator =(JsonView jsonValue) { + if(jsonValue.ValueExists("invocationId")) + { + m_invocationId = jsonValue.GetString("invocationId"); + + m_invocationIdHasBeenSet = true; + } + if(jsonValue.ValueExists("promptSessionAttributes")) { Aws::Map promptSessionAttributesJsonMap = jsonValue.GetObject("promptSessionAttributes").GetAllObjects(); @@ -43,6 +54,16 @@ SessionState& SessionState::operator =(JsonView jsonValue) m_promptSessionAttributesHasBeenSet = true; } + if(jsonValue.ValueExists("returnControlInvocationResults")) + { + Aws::Utils::Array returnControlInvocationResultsJsonList = jsonValue.GetArray("returnControlInvocationResults"); + for(unsigned returnControlInvocationResultsIndex = 0; returnControlInvocationResultsIndex < returnControlInvocationResultsJsonList.GetLength(); ++returnControlInvocationResultsIndex) + { + m_returnControlInvocationResults.push_back(returnControlInvocationResultsJsonList[returnControlInvocationResultsIndex].AsObject()); + } + m_returnControlInvocationResultsHasBeenSet = true; + } + if(jsonValue.ValueExists("sessionAttributes")) { Aws::Map sessionAttributesJsonMap = jsonValue.GetObject("sessionAttributes").GetAllObjects(); @@ -60,6 +81,12 @@ JsonValue SessionState::Jsonize() const { JsonValue payload; + if(m_invocationIdHasBeenSet) + { + payload.WithString("invocationId", m_invocationId); + + } + if(m_promptSessionAttributesHasBeenSet) { JsonValue promptSessionAttributesJsonMap; @@ -71,6 +98,17 @@ JsonValue SessionState::Jsonize() const } + if(m_returnControlInvocationResultsHasBeenSet) + { + Aws::Utils::Array returnControlInvocationResultsJsonList(m_returnControlInvocationResults.size()); + for(unsigned returnControlInvocationResultsIndex = 0; returnControlInvocationResultsIndex < returnControlInvocationResultsJsonList.GetLength(); ++returnControlInvocationResultsIndex) + { + returnControlInvocationResultsJsonList[returnControlInvocationResultsIndex].AsObject(m_returnControlInvocationResults[returnControlInvocationResultsIndex].Jsonize()); + } + payload.WithArray("returnControlInvocationResults", std::move(returnControlInvocationResultsJsonList)); + + } + if(m_sessionAttributesHasBeenSet) { JsonValue sessionAttributesJsonMap; diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/TracePart.cpp b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/TracePart.cpp index 6b5efd22d01..24f934b736a 100644 --- a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/TracePart.cpp +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/model/TracePart.cpp @@ -21,6 +21,7 @@ namespace Model TracePart::TracePart() : m_agentAliasIdHasBeenSet(false), m_agentIdHasBeenSet(false), + m_agentVersionHasBeenSet(false), m_sessionIdHasBeenSet(false), m_traceHasBeenSet(false) { @@ -29,6 +30,7 @@ TracePart::TracePart() : TracePart::TracePart(JsonView jsonValue) : m_agentAliasIdHasBeenSet(false), m_agentIdHasBeenSet(false), + m_agentVersionHasBeenSet(false), m_sessionIdHasBeenSet(false), m_traceHasBeenSet(false) { @@ -51,6 +53,13 @@ TracePart& TracePart::operator =(JsonView jsonValue) m_agentIdHasBeenSet = true; } + if(jsonValue.ValueExists("agentVersion")) + { + m_agentVersion = jsonValue.GetString("agentVersion"); + + m_agentVersionHasBeenSet = true; + } + if(jsonValue.ValueExists("sessionId")) { m_sessionId = jsonValue.GetString("sessionId"); @@ -84,6 +93,12 @@ JsonValue TracePart::Jsonize() const } + if(m_agentVersionHasBeenSet) + { + payload.WithString("agentVersion", m_agentVersion); + + } + if(m_sessionIdHasBeenSet) { payload.WithString("sessionId", m_sessionId); diff --git a/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/ActionGroupExecutor.h b/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/ActionGroupExecutor.h index d006cf18657..80ba69418fa 100644 --- a/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/ActionGroupExecutor.h +++ b/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/ActionGroupExecutor.h @@ -5,6 +5,7 @@ #pragma once #include +#include #include #include @@ -38,6 +39,43 @@ namespace Model AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const; + /** + *

      To return the action group invocation results directly in the + * InvokeAgent response, specify RETURN_CONTROL.

      + */ + inline const CustomControlMethod& GetCustomControl() const{ return m_customControl; } + + /** + *

      To return the action group invocation results directly in the + * InvokeAgent response, specify RETURN_CONTROL.

      + */ + inline bool CustomControlHasBeenSet() const { return m_customControlHasBeenSet; } + + /** + *

      To return the action group invocation results directly in the + * InvokeAgent response, specify RETURN_CONTROL.

      + */ + inline void SetCustomControl(const CustomControlMethod& value) { m_customControlHasBeenSet = true; m_customControl = value; } + + /** + *

      To return the action group invocation results directly in the + * InvokeAgent response, specify RETURN_CONTROL.

      + */ + inline void SetCustomControl(CustomControlMethod&& value) { m_customControlHasBeenSet = true; m_customControl = std::move(value); } + + /** + *

      To return the action group invocation results directly in the + * InvokeAgent response, specify RETURN_CONTROL.

      + */ + inline ActionGroupExecutor& WithCustomControl(const CustomControlMethod& value) { SetCustomControl(value); return *this;} + + /** + *

      To return the action group invocation results directly in the + * InvokeAgent response, specify RETURN_CONTROL.

      + */ + inline ActionGroupExecutor& WithCustomControl(CustomControlMethod&& value) { SetCustomControl(std::move(value)); return *this;} + + /** *

      The Amazon Resource Name (ARN) of the Lambda function containing the business * logic that is carried out upon invoking the action.

      @@ -88,6 +126,9 @@ namespace Model private: + CustomControlMethod m_customControl; + bool m_customControlHasBeenSet = false; + Aws::String m_lambda; bool m_lambdaHasBeenSet = false; }; diff --git a/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/Agent.h b/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/Agent.h index 84c1d6e0881..a3f8be75158 100644 --- a/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/Agent.h +++ b/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/Agent.h @@ -219,7 +219,7 @@ namespace Model * created.

    • PREPARING – The agent is being prepared.

    • *
    • PREPARED – The agent is prepared and ready to be invoked.

    • *

      NOT_PREPARED – The agent has been created but not yet prepared.

    • - *
    • FAILED ��� The agent API operation failed.

    • UPDATING – + *

    • FAILED – The agent API operation failed.

    • UPDATING – * The agent is being updated.

    • DELETING – The agent is being * deleted.

    */ @@ -231,7 +231,7 @@ namespace Model * created.

  • PREPARING – The agent is being prepared.

  • *
  • PREPARED – The agent is prepared and ready to be invoked.

  • *

    NOT_PREPARED – The agent has been created but not yet prepared.

  • - *
  • FAILED ��� The agent API operation failed.

  • UPDATING – + *

  • FAILED – The agent API operation failed.

  • UPDATING – * The agent is being updated.

  • DELETING – The agent is being * deleted.

*/ @@ -243,7 +243,7 @@ namespace Model * created.

  • PREPARING – The agent is being prepared.

  • *
  • PREPARED – The agent is prepared and ready to be invoked.

  • *

    NOT_PREPARED – The agent has been created but not yet prepared.

  • - *
  • FAILED ��� The agent API operation failed.

  • UPDATING – + *

  • FAILED – The agent API operation failed.

  • UPDATING – * The agent is being updated.

  • DELETING – The agent is being * deleted.

  • */ @@ -255,7 +255,7 @@ namespace Model * created.

  • PREPARING – The agent is being prepared.

  • *
  • PREPARED – The agent is prepared and ready to be invoked.

  • *

    NOT_PREPARED – The agent has been created but not yet prepared.

  • - *
  • FAILED ��� The agent API operation failed.

  • UPDATING – + *

  • FAILED – The agent API operation failed.

  • UPDATING – * The agent is being updated.

  • DELETING – The agent is being * deleted.

  • */ @@ -267,7 +267,7 @@ namespace Model * created.

  • PREPARING – The agent is being prepared.

  • *
  • PREPARED – The agent is prepared and ready to be invoked.

  • *

    NOT_PREPARED – The agent has been created but not yet prepared.

  • - *
  • FAILED ��� The agent API operation failed.

  • UPDATING – + *

  • FAILED – The agent API operation failed.

  • UPDATING – * The agent is being updated.

  • DELETING – The agent is being * deleted.

  • */ @@ -279,7 +279,7 @@ namespace Model * created.

  • PREPARING – The agent is being prepared.

  • *
  • PREPARED – The agent is prepared and ready to be invoked.

  • *

    NOT_PREPARED – The agent has been created but not yet prepared.

  • - *
  • FAILED ��� The agent API operation failed.

  • UPDATING – + *

  • FAILED – The agent API operation failed.

  • UPDATING – * The agent is being updated.

  • DELETING – The agent is being * deleted.

  • */ diff --git a/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/AgentActionGroup.h b/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/AgentActionGroup.h index 1583151d184..dbd15e336c0 100644 --- a/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/AgentActionGroup.h +++ b/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/AgentActionGroup.h @@ -10,6 +10,7 @@ #include #include #include +#include #include #include @@ -492,6 +493,43 @@ namespace Model inline AgentActionGroup& WithDescription(const char* value) { SetDescription(value); return *this;} + /** + *

    Defines functions that each define parameters that the agent needs to invoke + * from the user. Each function represents an action in an action group.

    + */ + inline const FunctionSchema& GetFunctionSchema() const{ return m_functionSchema; } + + /** + *

    Defines functions that each define parameters that the agent needs to invoke + * from the user. Each function represents an action in an action group.

    + */ + inline bool FunctionSchemaHasBeenSet() const { return m_functionSchemaHasBeenSet; } + + /** + *

    Defines functions that each define parameters that the agent needs to invoke + * from the user. Each function represents an action in an action group.

    + */ + inline void SetFunctionSchema(const FunctionSchema& value) { m_functionSchemaHasBeenSet = true; m_functionSchema = value; } + + /** + *

    Defines functions that each define parameters that the agent needs to invoke + * from the user. Each function represents an action in an action group.

    + */ + inline void SetFunctionSchema(FunctionSchema&& value) { m_functionSchemaHasBeenSet = true; m_functionSchema = std::move(value); } + + /** + *

    Defines functions that each define parameters that the agent needs to invoke + * from the user. Each function represents an action in an action group.

    + */ + inline AgentActionGroup& WithFunctionSchema(const FunctionSchema& value) { SetFunctionSchema(value); return *this;} + + /** + *

    Defines functions that each define parameters that the agent needs to invoke + * from the user. Each function represents an action in an action group.

    + */ + inline AgentActionGroup& WithFunctionSchema(FunctionSchema&& value) { SetFunctionSchema(std::move(value)); return *this;} + + /** *

    If this field is set as AMAZON.UserInput, the agent can request * the user for additional information when trying to complete a task. The @@ -633,6 +671,9 @@ namespace Model Aws::String m_description; bool m_descriptionHasBeenSet = false; + FunctionSchema m_functionSchema; + bool m_functionSchemaHasBeenSet = false; + ActionGroupSignature m_parentActionSignature; bool m_parentActionSignatureHasBeenSet = false; diff --git a/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/CreateAgentActionGroupRequest.h b/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/CreateAgentActionGroupRequest.h index b7303de6b79..b77baa017ac 100644 --- a/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/CreateAgentActionGroupRequest.h +++ b/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/CreateAgentActionGroupRequest.h @@ -10,6 +10,7 @@ #include #include #include +#include #include #include #include @@ -415,6 +416,43 @@ namespace Model inline CreateAgentActionGroupRequest& WithDescription(const char* value) { SetDescription(value); return *this;} + /** + *

    Contains details about the function schema for the action group or the JSON + * or YAML-formatted payload defining the schema.

    + */ + inline const FunctionSchema& GetFunctionSchema() const{ return m_functionSchema; } + + /** + *

    Contains details about the function schema for the action group or the JSON + * or YAML-formatted payload defining the schema.

    + */ + inline bool FunctionSchemaHasBeenSet() const { return m_functionSchemaHasBeenSet; } + + /** + *

    Contains details about the function schema for the action group or the JSON + * or YAML-formatted payload defining the schema.

    + */ + inline void SetFunctionSchema(const FunctionSchema& value) { m_functionSchemaHasBeenSet = true; m_functionSchema = value; } + + /** + *

    Contains details about the function schema for the action group or the JSON + * or YAML-formatted payload defining the schema.

    + */ + inline void SetFunctionSchema(FunctionSchema&& value) { m_functionSchemaHasBeenSet = true; m_functionSchema = std::move(value); } + + /** + *

    Contains details about the function schema for the action group or the JSON + * or YAML-formatted payload defining the schema.

    + */ + inline CreateAgentActionGroupRequest& WithFunctionSchema(const FunctionSchema& value) { SetFunctionSchema(value); return *this;} + + /** + *

    Contains details about the function schema for the action group or the JSON + * or YAML-formatted payload defining the schema.

    + */ + inline CreateAgentActionGroupRequest& WithFunctionSchema(FunctionSchema&& value) { SetFunctionSchema(std::move(value)); return *this;} + + /** *

    To allow your agent to request the user for additional information when * trying to complete a task, set this field to AMAZON.UserInput. You @@ -519,6 +557,9 @@ namespace Model Aws::String m_description; bool m_descriptionHasBeenSet = false; + FunctionSchema m_functionSchema; + bool m_functionSchemaHasBeenSet = false; + ActionGroupSignature m_parentActionGroupSignature; bool m_parentActionGroupSignatureHasBeenSet = false; }; diff --git a/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/CustomControlMethod.h b/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/CustomControlMethod.h new file mode 100644 index 00000000000..3fdcf3e7259 --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/CustomControlMethod.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 BedrockAgent +{ +namespace Model +{ + enum class CustomControlMethod + { + NOT_SET, + RETURN_CONTROL + }; + +namespace CustomControlMethodMapper +{ +AWS_BEDROCKAGENT_API CustomControlMethod GetCustomControlMethodForName(const Aws::String& name); + +AWS_BEDROCKAGENT_API Aws::String GetNameForCustomControlMethod(CustomControlMethod value); +} // namespace CustomControlMethodMapper +} // namespace Model +} // namespace BedrockAgent +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/Function.h b/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/Function.h new file mode 100644 index 00000000000..5302e81ca2e --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/Function.h @@ -0,0 +1,222 @@ +/** + * 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 BedrockAgent +{ +namespace Model +{ + + /** + *

    Defines parameters that the agent needs to invoke from the user to complete + * the function. Corresponds to an action in an action group.

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

    See Also:

    AWS + * API Reference

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

    A description of the function and its purpose.

    + */ + inline const Aws::String& GetDescription() const{ return m_description; } + + /** + *

    A description of the function and its purpose.

    + */ + inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } + + /** + *

    A description of the function and its purpose.

    + */ + inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } + + /** + *

    A description of the function and its purpose.

    + */ + inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } + + /** + *

    A description of the function and its purpose.

    + */ + inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } + + /** + *

    A description of the function and its purpose.

    + */ + inline Function& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} + + /** + *

    A description of the function and its purpose.

    + */ + inline Function& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} + + /** + *

    A description of the function and its purpose.

    + */ + inline Function& WithDescription(const char* value) { SetDescription(value); return *this;} + + + /** + *

    A name for the function.

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

    A name for the function.

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

    A name for the function.

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

    A name for the function.

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

    A name for the function.

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

    A name for the function.

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

    A name for the function.

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

    A name for the function.

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

    The parameters that the agent elicits from the user to fulfill the + * function.

    + */ + inline const Aws::Map& GetParameters() const{ return m_parameters; } + + /** + *

    The parameters that the agent elicits from the user to fulfill the + * function.

    + */ + inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; } + + /** + *

    The parameters that the agent elicits from the user to fulfill the + * function.

    + */ + inline void SetParameters(const Aws::Map& value) { m_parametersHasBeenSet = true; m_parameters = value; } + + /** + *

    The parameters that the agent elicits from the user to fulfill the + * function.

    + */ + inline void SetParameters(Aws::Map&& value) { m_parametersHasBeenSet = true; m_parameters = std::move(value); } + + /** + *

    The parameters that the agent elicits from the user to fulfill the + * function.

    + */ + inline Function& WithParameters(const Aws::Map& value) { SetParameters(value); return *this;} + + /** + *

    The parameters that the agent elicits from the user to fulfill the + * function.

    + */ + inline Function& WithParameters(Aws::Map&& value) { SetParameters(std::move(value)); return *this;} + + /** + *

    The parameters that the agent elicits from the user to fulfill the + * function.

    + */ + inline Function& AddParameters(const Aws::String& key, const ParameterDetail& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; } + + /** + *

    The parameters that the agent elicits from the user to fulfill the + * function.

    + */ + inline Function& AddParameters(Aws::String&& key, const ParameterDetail& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), value); return *this; } + + /** + *

    The parameters that the agent elicits from the user to fulfill the + * function.

    + */ + inline Function& AddParameters(const Aws::String& key, ParameterDetail&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; } + + /** + *

    The parameters that the agent elicits from the user to fulfill the + * function.

    + */ + inline Function& AddParameters(Aws::String&& key, ParameterDetail&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), std::move(value)); return *this; } + + /** + *

    The parameters that the agent elicits from the user to fulfill the + * function.

    + */ + inline Function& AddParameters(const char* key, ParameterDetail&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; } + + /** + *

    The parameters that the agent elicits from the user to fulfill the + * function.

    + */ + inline Function& AddParameters(const char* key, const ParameterDetail& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; } + + private: + + Aws::String m_description; + bool m_descriptionHasBeenSet = false; + + Aws::String m_name; + bool m_nameHasBeenSet = false; + + Aws::Map m_parameters; + bool m_parametersHasBeenSet = false; + }; + +} // namespace Model +} // namespace BedrockAgent +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/FunctionSchema.h b/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/FunctionSchema.h new file mode 100644 index 00000000000..ab408ac2de0 --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/FunctionSchema.h @@ -0,0 +1,101 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace BedrockAgent +{ +namespace Model +{ + + /** + *

    Defines functions that each define parameters that the agent needs to invoke + * from the user. Each function represents an action in an action group.

    + *

    This data type is used in the following API operations:

    See Also:

    AWS + * API Reference

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

    A list of functions that each define an action in the action group.

    + */ + inline const Aws::Vector& GetFunctions() const{ return m_functions; } + + /** + *

    A list of functions that each define an action in the action group.

    + */ + inline bool FunctionsHasBeenSet() const { return m_functionsHasBeenSet; } + + /** + *

    A list of functions that each define an action in the action group.

    + */ + inline void SetFunctions(const Aws::Vector& value) { m_functionsHasBeenSet = true; m_functions = value; } + + /** + *

    A list of functions that each define an action in the action group.

    + */ + inline void SetFunctions(Aws::Vector&& value) { m_functionsHasBeenSet = true; m_functions = std::move(value); } + + /** + *

    A list of functions that each define an action in the action group.

    + */ + inline FunctionSchema& WithFunctions(const Aws::Vector& value) { SetFunctions(value); return *this;} + + /** + *

    A list of functions that each define an action in the action group.

    + */ + inline FunctionSchema& WithFunctions(Aws::Vector&& value) { SetFunctions(std::move(value)); return *this;} + + /** + *

    A list of functions that each define an action in the action group.

    + */ + inline FunctionSchema& AddFunctions(const Function& value) { m_functionsHasBeenSet = true; m_functions.push_back(value); return *this; } + + /** + *

    A list of functions that each define an action in the action group.

    + */ + inline FunctionSchema& AddFunctions(Function&& value) { m_functionsHasBeenSet = true; m_functions.push_back(std::move(value)); return *this; } + + private: + + Aws::Vector m_functions; + bool m_functionsHasBeenSet = false; + }; + +} // namespace Model +} // namespace BedrockAgent +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/IngestionJob.h b/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/IngestionJob.h index ece221de9b5..9b0b48fd89c 100644 --- a/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/IngestionJob.h +++ b/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/IngestionJob.h @@ -35,7 +35,7 @@ namespace Model * response

  • GetIngestionJob * response

  • ListIngestionJob + * href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_ListIngestionJobs.html#API_agent_ListIngestionJobs_ResponseSyntax">ListIngestionJob * response

  • See Also:

    AWS * API Reference

    diff --git a/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/ParameterDetail.h b/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/ParameterDetail.h new file mode 100644 index 00000000000..3027432a667 --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/ParameterDetail.h @@ -0,0 +1,170 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace BedrockAgent +{ +namespace Model +{ + + /** + *

    Contains details about a parameter in a function for an action group.

    + *

    This data type is used in the following API operations:

    See Also:

    AWS + * API Reference

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

    A description of the parameter. Helps the foundation model determine how to + * elicit the parameters from the user.

    + */ + inline const Aws::String& GetDescription() const{ return m_description; } + + /** + *

    A description of the parameter. Helps the foundation model determine how to + * elicit the parameters from the user.

    + */ + inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } + + /** + *

    A description of the parameter. Helps the foundation model determine how to + * elicit the parameters from the user.

    + */ + inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } + + /** + *

    A description of the parameter. Helps the foundation model determine how to + * elicit the parameters from the user.

    + */ + inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } + + /** + *

    A description of the parameter. Helps the foundation model determine how to + * elicit the parameters from the user.

    + */ + inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } + + /** + *

    A description of the parameter. Helps the foundation model determine how to + * elicit the parameters from the user.

    + */ + inline ParameterDetail& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} + + /** + *

    A description of the parameter. Helps the foundation model determine how to + * elicit the parameters from the user.

    + */ + inline ParameterDetail& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} + + /** + *

    A description of the parameter. Helps the foundation model determine how to + * elicit the parameters from the user.

    + */ + inline ParameterDetail& WithDescription(const char* value) { SetDescription(value); return *this;} + + + /** + *

    Whether the parameter is required for the agent to complete the function for + * action group invocation.

    + */ + inline bool GetRequired() const{ return m_required; } + + /** + *

    Whether the parameter is required for the agent to complete the function for + * action group invocation.

    + */ + inline bool RequiredHasBeenSet() const { return m_requiredHasBeenSet; } + + /** + *

    Whether the parameter is required for the agent to complete the function for + * action group invocation.

    + */ + inline void SetRequired(bool value) { m_requiredHasBeenSet = true; m_required = value; } + + /** + *

    Whether the parameter is required for the agent to complete the function for + * action group invocation.

    + */ + inline ParameterDetail& WithRequired(bool value) { SetRequired(value); return *this;} + + + /** + *

    The data type of the parameter.

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

    The data type of the parameter.

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

    The data type of the parameter.

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

    The data type of the parameter.

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

    The data type of the parameter.

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

    The data type of the parameter.

    + */ + inline ParameterDetail& WithType(Type&& value) { SetType(std::move(value)); return *this;} + + private: + + Aws::String m_description; + bool m_descriptionHasBeenSet = false; + + bool m_required; + bool m_requiredHasBeenSet = false; + + Type m_type; + bool m_typeHasBeenSet = false; + }; + +} // namespace Model +} // namespace BedrockAgent +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/Type.h b/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/Type.h new file mode 100644 index 00000000000..311580144c5 --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/Type.h @@ -0,0 +1,34 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace BedrockAgent +{ +namespace Model +{ + enum class Type + { + NOT_SET, + string, + number, + integer, + boolean, + array + }; + +namespace TypeMapper +{ +AWS_BEDROCKAGENT_API Type GetTypeForName(const Aws::String& name); + +AWS_BEDROCKAGENT_API Aws::String GetNameForType(Type value); +} // namespace TypeMapper +} // namespace Model +} // namespace BedrockAgent +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/UpdateAgentActionGroupRequest.h b/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/UpdateAgentActionGroupRequest.h index 9ee02530d78..42aa5f029a8 100644 --- a/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/UpdateAgentActionGroupRequest.h +++ b/generated/src/aws-cpp-sdk-bedrock-agent/include/aws/bedrock-agent/model/UpdateAgentActionGroupRequest.h @@ -10,6 +10,7 @@ #include #include #include +#include #include #include @@ -390,6 +391,43 @@ namespace Model inline UpdateAgentActionGroupRequest& WithDescription(const char* value) { SetDescription(value); return *this;} + /** + *

    Contains details about the function schema for the action group or the JSON + * or YAML-formatted payload defining the schema.

    + */ + inline const FunctionSchema& GetFunctionSchema() const{ return m_functionSchema; } + + /** + *

    Contains details about the function schema for the action group or the JSON + * or YAML-formatted payload defining the schema.

    + */ + inline bool FunctionSchemaHasBeenSet() const { return m_functionSchemaHasBeenSet; } + + /** + *

    Contains details about the function schema for the action group or the JSON + * or YAML-formatted payload defining the schema.

    + */ + inline void SetFunctionSchema(const FunctionSchema& value) { m_functionSchemaHasBeenSet = true; m_functionSchema = value; } + + /** + *

    Contains details about the function schema for the action group or the JSON + * or YAML-formatted payload defining the schema.

    + */ + inline void SetFunctionSchema(FunctionSchema&& value) { m_functionSchemaHasBeenSet = true; m_functionSchema = std::move(value); } + + /** + *

    Contains details about the function schema for the action group or the JSON + * or YAML-formatted payload defining the schema.

    + */ + inline UpdateAgentActionGroupRequest& WithFunctionSchema(const FunctionSchema& value) { SetFunctionSchema(value); return *this;} + + /** + *

    Contains details about the function schema for the action group or the JSON + * or YAML-formatted payload defining the schema.

    + */ + inline UpdateAgentActionGroupRequest& WithFunctionSchema(FunctionSchema&& value) { SetFunctionSchema(std::move(value)); return *this;} + + /** *

    To allow your agent to request the user for additional information when * trying to complete a task, set this field to AMAZON.UserInput. You @@ -494,6 +532,9 @@ namespace Model Aws::String m_description; bool m_descriptionHasBeenSet = false; + FunctionSchema m_functionSchema; + bool m_functionSchemaHasBeenSet = false; + ActionGroupSignature m_parentActionGroupSignature; bool m_parentActionGroupSignatureHasBeenSet = false; }; diff --git a/generated/src/aws-cpp-sdk-bedrock-agent/source/model/ActionGroupExecutor.cpp b/generated/src/aws-cpp-sdk-bedrock-agent/source/model/ActionGroupExecutor.cpp index b52915efa57..647737db849 100644 --- a/generated/src/aws-cpp-sdk-bedrock-agent/source/model/ActionGroupExecutor.cpp +++ b/generated/src/aws-cpp-sdk-bedrock-agent/source/model/ActionGroupExecutor.cpp @@ -19,11 +19,15 @@ namespace Model { ActionGroupExecutor::ActionGroupExecutor() : + m_customControl(CustomControlMethod::NOT_SET), + m_customControlHasBeenSet(false), m_lambdaHasBeenSet(false) { } ActionGroupExecutor::ActionGroupExecutor(JsonView jsonValue) : + m_customControl(CustomControlMethod::NOT_SET), + m_customControlHasBeenSet(false), m_lambdaHasBeenSet(false) { *this = jsonValue; @@ -31,6 +35,13 @@ ActionGroupExecutor::ActionGroupExecutor(JsonView jsonValue) : ActionGroupExecutor& ActionGroupExecutor::operator =(JsonView jsonValue) { + if(jsonValue.ValueExists("customControl")) + { + m_customControl = CustomControlMethodMapper::GetCustomControlMethodForName(jsonValue.GetString("customControl")); + + m_customControlHasBeenSet = true; + } + if(jsonValue.ValueExists("lambda")) { m_lambda = jsonValue.GetString("lambda"); @@ -45,6 +56,11 @@ JsonValue ActionGroupExecutor::Jsonize() const { JsonValue payload; + if(m_customControlHasBeenSet) + { + payload.WithString("customControl", CustomControlMethodMapper::GetNameForCustomControlMethod(m_customControl)); + } + if(m_lambdaHasBeenSet) { payload.WithString("lambda", m_lambda); diff --git a/generated/src/aws-cpp-sdk-bedrock-agent/source/model/AgentActionGroup.cpp b/generated/src/aws-cpp-sdk-bedrock-agent/source/model/AgentActionGroup.cpp index 6e754c396cc..84aaf5cb75f 100644 --- a/generated/src/aws-cpp-sdk-bedrock-agent/source/model/AgentActionGroup.cpp +++ b/generated/src/aws-cpp-sdk-bedrock-agent/source/model/AgentActionGroup.cpp @@ -30,6 +30,7 @@ AgentActionGroup::AgentActionGroup() : m_clientTokenHasBeenSet(false), m_createdAtHasBeenSet(false), m_descriptionHasBeenSet(false), + m_functionSchemaHasBeenSet(false), m_parentActionSignature(ActionGroupSignature::NOT_SET), m_parentActionSignatureHasBeenSet(false), m_updatedAtHasBeenSet(false) @@ -48,6 +49,7 @@ AgentActionGroup::AgentActionGroup(JsonView jsonValue) : m_clientTokenHasBeenSet(false), m_createdAtHasBeenSet(false), m_descriptionHasBeenSet(false), + m_functionSchemaHasBeenSet(false), m_parentActionSignature(ActionGroupSignature::NOT_SET), m_parentActionSignatureHasBeenSet(false), m_updatedAtHasBeenSet(false) @@ -127,6 +129,13 @@ AgentActionGroup& AgentActionGroup::operator =(JsonView jsonValue) m_descriptionHasBeenSet = true; } + if(jsonValue.ValueExists("functionSchema")) + { + m_functionSchema = jsonValue.GetObject("functionSchema"); + + m_functionSchemaHasBeenSet = true; + } + if(jsonValue.ValueExists("parentActionSignature")) { m_parentActionSignature = ActionGroupSignatureMapper::GetActionGroupSignatureForName(jsonValue.GetString("parentActionSignature")); @@ -206,6 +215,12 @@ JsonValue AgentActionGroup::Jsonize() const } + if(m_functionSchemaHasBeenSet) + { + payload.WithObject("functionSchema", m_functionSchema.Jsonize()); + + } + if(m_parentActionSignatureHasBeenSet) { payload.WithString("parentActionSignature", ActionGroupSignatureMapper::GetNameForActionGroupSignature(m_parentActionSignature)); diff --git a/generated/src/aws-cpp-sdk-bedrock-agent/source/model/CreateAgentActionGroupRequest.cpp b/generated/src/aws-cpp-sdk-bedrock-agent/source/model/CreateAgentActionGroupRequest.cpp index 468ca753d45..86273332514 100644 --- a/generated/src/aws-cpp-sdk-bedrock-agent/source/model/CreateAgentActionGroupRequest.cpp +++ b/generated/src/aws-cpp-sdk-bedrock-agent/source/model/CreateAgentActionGroupRequest.cpp @@ -23,6 +23,7 @@ CreateAgentActionGroupRequest::CreateAgentActionGroupRequest() : m_clientToken(Aws::Utils::UUID::PseudoRandomUUID()), m_clientTokenHasBeenSet(true), m_descriptionHasBeenSet(false), + m_functionSchemaHasBeenSet(false), m_parentActionGroupSignature(ActionGroupSignature::NOT_SET), m_parentActionGroupSignatureHasBeenSet(false) { @@ -67,6 +68,12 @@ Aws::String CreateAgentActionGroupRequest::SerializePayload() const } + if(m_functionSchemaHasBeenSet) + { + payload.WithObject("functionSchema", m_functionSchema.Jsonize()); + + } + if(m_parentActionGroupSignatureHasBeenSet) { payload.WithString("parentActionGroupSignature", ActionGroupSignatureMapper::GetNameForActionGroupSignature(m_parentActionGroupSignature)); diff --git a/generated/src/aws-cpp-sdk-bedrock-agent/source/model/CustomControlMethod.cpp b/generated/src/aws-cpp-sdk-bedrock-agent/source/model/CustomControlMethod.cpp new file mode 100644 index 00000000000..2a35f7ba3e6 --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock-agent/source/model/CustomControlMethod.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 BedrockAgent + { + namespace Model + { + namespace CustomControlMethodMapper + { + + static const int RETURN_CONTROL_HASH = HashingUtils::HashString("RETURN_CONTROL"); + + + CustomControlMethod GetCustomControlMethodForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == RETURN_CONTROL_HASH) + { + return CustomControlMethod::RETURN_CONTROL; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return CustomControlMethod::NOT_SET; + } + + Aws::String GetNameForCustomControlMethod(CustomControlMethod enumValue) + { + switch(enumValue) + { + case CustomControlMethod::NOT_SET: + return {}; + case CustomControlMethod::RETURN_CONTROL: + return "RETURN_CONTROL"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace CustomControlMethodMapper + } // namespace Model + } // namespace BedrockAgent +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock-agent/source/model/Function.cpp b/generated/src/aws-cpp-sdk-bedrock-agent/source/model/Function.cpp new file mode 100644 index 00000000000..6fe251d7a9b --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock-agent/source/model/Function.cpp @@ -0,0 +1,97 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace BedrockAgent +{ +namespace Model +{ + +Function::Function() : + m_descriptionHasBeenSet(false), + m_nameHasBeenSet(false), + m_parametersHasBeenSet(false) +{ +} + +Function::Function(JsonView jsonValue) : + m_descriptionHasBeenSet(false), + m_nameHasBeenSet(false), + m_parametersHasBeenSet(false) +{ + *this = jsonValue; +} + +Function& Function::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("description")) + { + m_description = jsonValue.GetString("description"); + + m_descriptionHasBeenSet = true; + } + + if(jsonValue.ValueExists("name")) + { + m_name = jsonValue.GetString("name"); + + m_nameHasBeenSet = true; + } + + if(jsonValue.ValueExists("parameters")) + { + Aws::Map parametersJsonMap = jsonValue.GetObject("parameters").GetAllObjects(); + for(auto& parametersItem : parametersJsonMap) + { + m_parameters[parametersItem.first] = parametersItem.second.AsObject(); + } + m_parametersHasBeenSet = true; + } + + return *this; +} + +JsonValue Function::Jsonize() const +{ + JsonValue payload; + + if(m_descriptionHasBeenSet) + { + payload.WithString("description", m_description); + + } + + if(m_nameHasBeenSet) + { + payload.WithString("name", m_name); + + } + + if(m_parametersHasBeenSet) + { + JsonValue parametersJsonMap; + for(auto& parametersItem : m_parameters) + { + parametersJsonMap.WithObject(parametersItem.first, parametersItem.second.Jsonize()); + } + payload.WithObject("parameters", std::move(parametersJsonMap)); + + } + + return payload; +} + +} // namespace Model +} // namespace BedrockAgent +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock-agent/source/model/FunctionSchema.cpp b/generated/src/aws-cpp-sdk-bedrock-agent/source/model/FunctionSchema.cpp new file mode 100644 index 00000000000..8c6cc3541f5 --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock-agent/source/model/FunctionSchema.cpp @@ -0,0 +1,67 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace BedrockAgent +{ +namespace Model +{ + +FunctionSchema::FunctionSchema() : + m_functionsHasBeenSet(false) +{ +} + +FunctionSchema::FunctionSchema(JsonView jsonValue) : + m_functionsHasBeenSet(false) +{ + *this = jsonValue; +} + +FunctionSchema& FunctionSchema::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("functions")) + { + Aws::Utils::Array functionsJsonList = jsonValue.GetArray("functions"); + for(unsigned functionsIndex = 0; functionsIndex < functionsJsonList.GetLength(); ++functionsIndex) + { + m_functions.push_back(functionsJsonList[functionsIndex].AsObject()); + } + m_functionsHasBeenSet = true; + } + + return *this; +} + +JsonValue FunctionSchema::Jsonize() const +{ + JsonValue payload; + + if(m_functionsHasBeenSet) + { + Aws::Utils::Array functionsJsonList(m_functions.size()); + for(unsigned functionsIndex = 0; functionsIndex < functionsJsonList.GetLength(); ++functionsIndex) + { + functionsJsonList[functionsIndex].AsObject(m_functions[functionsIndex].Jsonize()); + } + payload.WithArray("functions", std::move(functionsJsonList)); + + } + + return payload; +} + +} // namespace Model +} // namespace BedrockAgent +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock-agent/source/model/ParameterDetail.cpp b/generated/src/aws-cpp-sdk-bedrock-agent/source/model/ParameterDetail.cpp new file mode 100644 index 00000000000..a2062d0c8de --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock-agent/source/model/ParameterDetail.cpp @@ -0,0 +1,92 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace BedrockAgent +{ +namespace Model +{ + +ParameterDetail::ParameterDetail() : + m_descriptionHasBeenSet(false), + m_required(false), + m_requiredHasBeenSet(false), + m_type(Type::NOT_SET), + m_typeHasBeenSet(false) +{ +} + +ParameterDetail::ParameterDetail(JsonView jsonValue) : + m_descriptionHasBeenSet(false), + m_required(false), + m_requiredHasBeenSet(false), + m_type(Type::NOT_SET), + m_typeHasBeenSet(false) +{ + *this = jsonValue; +} + +ParameterDetail& ParameterDetail::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("description")) + { + m_description = jsonValue.GetString("description"); + + m_descriptionHasBeenSet = true; + } + + if(jsonValue.ValueExists("required")) + { + m_required = jsonValue.GetBool("required"); + + m_requiredHasBeenSet = true; + } + + if(jsonValue.ValueExists("type")) + { + m_type = TypeMapper::GetTypeForName(jsonValue.GetString("type")); + + m_typeHasBeenSet = true; + } + + return *this; +} + +JsonValue ParameterDetail::Jsonize() const +{ + JsonValue payload; + + if(m_descriptionHasBeenSet) + { + payload.WithString("description", m_description); + + } + + if(m_requiredHasBeenSet) + { + payload.WithBool("required", m_required); + + } + + if(m_typeHasBeenSet) + { + payload.WithString("type", TypeMapper::GetNameForType(m_type)); + } + + return payload; +} + +} // namespace Model +} // namespace BedrockAgent +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock-agent/source/model/Type.cpp b/generated/src/aws-cpp-sdk-bedrock-agent/source/model/Type.cpp new file mode 100644 index 00000000000..d4f8a84f37a --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock-agent/source/model/Type.cpp @@ -0,0 +1,93 @@ +/** + * 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 BedrockAgent + { + namespace Model + { + namespace TypeMapper + { + + static const int string_HASH = HashingUtils::HashString("string"); + static const int number_HASH = HashingUtils::HashString("number"); + static const int integer_HASH = HashingUtils::HashString("integer"); + static const int boolean_HASH = HashingUtils::HashString("boolean"); + static const int array_HASH = HashingUtils::HashString("array"); + + + Type GetTypeForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == string_HASH) + { + return Type::string; + } + else if (hashCode == number_HASH) + { + return Type::number; + } + else if (hashCode == integer_HASH) + { + return Type::integer; + } + else if (hashCode == boolean_HASH) + { + return Type::boolean; + } + else if (hashCode == array_HASH) + { + return Type::array; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return Type::NOT_SET; + } + + Aws::String GetNameForType(Type enumValue) + { + switch(enumValue) + { + case Type::NOT_SET: + return {}; + case Type::string: + return "string"; + case Type::number: + return "number"; + case Type::integer: + return "integer"; + case Type::boolean: + return "boolean"; + case Type::array: + return "array"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace TypeMapper + } // namespace Model + } // namespace BedrockAgent +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock-agent/source/model/UpdateAgentActionGroupRequest.cpp b/generated/src/aws-cpp-sdk-bedrock-agent/source/model/UpdateAgentActionGroupRequest.cpp index b72572b7129..94bb4e1497d 100644 --- a/generated/src/aws-cpp-sdk-bedrock-agent/source/model/UpdateAgentActionGroupRequest.cpp +++ b/generated/src/aws-cpp-sdk-bedrock-agent/source/model/UpdateAgentActionGroupRequest.cpp @@ -22,6 +22,7 @@ UpdateAgentActionGroupRequest::UpdateAgentActionGroupRequest() : m_agentVersionHasBeenSet(false), m_apiSchemaHasBeenSet(false), m_descriptionHasBeenSet(false), + m_functionSchemaHasBeenSet(false), m_parentActionGroupSignature(ActionGroupSignature::NOT_SET), m_parentActionGroupSignatureHasBeenSet(false) { @@ -60,6 +61,12 @@ Aws::String UpdateAgentActionGroupRequest::SerializePayload() const } + if(m_functionSchemaHasBeenSet) + { + payload.WithObject("functionSchema", m_functionSchema.Jsonize()); + + } + if(m_parentActionGroupSignatureHasBeenSet) { payload.WithString("parentActionGroupSignature", ActionGroupSignatureMapper::GetNameForActionGroupSignature(m_parentActionGroupSignature)); diff --git a/generated/src/aws-cpp-sdk-payment-cryptography/include/aws/payment-cryptography/PaymentCryptographyClient.h b/generated/src/aws-cpp-sdk-payment-cryptography/include/aws/payment-cryptography/PaymentCryptographyClient.h index 3c5258f36d3..ad73debac6b 100644 --- a/generated/src/aws-cpp-sdk-payment-cryptography/include/aws/payment-cryptography/PaymentCryptographyClient.h +++ b/generated/src/aws-cpp-sdk-payment-cryptography/include/aws/payment-cryptography/PaymentCryptographyClient.h @@ -110,14 +110,24 @@ namespace PaymentCryptography * multiple aliases. You can't create an alias without a key. The alias must be * unique in the account and Amazon Web Services Region, but you can create another * alias with the same name in a different Amazon Web Services Region.

    To - * change the key that's associated with the alias, call UpdateAlias. To - * delete the alias, call DeleteAlias. These operations don't affect the - * underlying key. To get the alias that you created, call ListAliases.

    + * change the key that's associated with the alias, call UpdateAlias. + * To delete the alias, call DeleteAlias. + * These operations don't affect the underlying key. To get the alias that you + * created, call ListAliases.

    *

    Cross-account use: This operation can't be used across different * Amazon Web Services accounts.

    Related operations:

    See Also:

    DeleteAlias + *

  • GetAlias + *

  • ListAliases + *

  • UpdateAlias + *

  • See Also:

    AWS * API Reference

    */ @@ -164,9 +174,13 @@ namespace PaymentCryptography * you store or export them. Amazon Web Services Payment Cryptography stores the * key contents wrapped and never stores or transmits them in the clear.

    * Cross-account use: This operation can't be used across different Amazon - * Web Services accounts.

    Related operations:

    See Also:

    Related operations:

    See Also:

    AWS * API Reference

    */ @@ -192,15 +206,26 @@ namespace PaymentCryptography /** *

    Deletes the alias, but doesn't affect the underlying key.

    Each key can - * have multiple aliases. To get the aliases of all keys, use the - * ListAliases operation. To change the alias of a key, first use - * DeleteAlias to delete the current alias and then use CreateAlias + * have multiple aliases. To get the aliases of all keys, use the UpdateAlias + * operation. To change the alias of a key, first use DeleteAlias + * to delete the current alias and then use CreateAlias * to create a new alias. To associate an existing alias with a different key, call - * UpdateAlias.

    Cross-account use: This operation can't be - * used across different Amazon Web Services accounts.

    Related - * operations:

    See Also:

    UpdateAlias.

    + *

    Cross-account use: This operation can't be used across different + * Amazon Web Services accounts.

    Related operations:

    See Also:

    AWS * API Reference

    */ @@ -239,11 +264,17 @@ namespace PaymentCryptography * the KeyState is DELETE_COMPLETE.

    You should * delete a key only when you are sure that you don't need to use it anymore and no * other parties are utilizing this key. If you aren't sure, consider deactivating - * it instead by calling StopKeyUsage.

    Cross-account use: - * This operation can't be used across different Amazon Web Services accounts.

    - *

    Related operations:

    See Also:

    StopKeyUsage.

    + *

    Cross-account use: This operation can't be used across different + * Amazon Web Services accounts.

    Related operations:

    See Also:

    AWS * API Reference

    */ @@ -295,26 +326,42 @@ namespace PaymentCryptography * IPEK is generated from BDK (Base Derivation Key) and * ExportDukptInitialKey attribute KSN (KeySerialNumber). * The generated IPEK does not persist within Amazon Web Services Payment - * Cryptography and has to be re-generated each time during export.

    To - * export initial keys (KEK) or IPEK using TR-34

    Using this operation, - * you can export initial key using TR-34 asymmetric key exchange. You can only - * export KEK generated within Amazon Web Services Payment Cryptography. In TR-34 - * terminology, the sending party of the key is called Key Distribution Host (KDH) - * and the receiving party of the key is called Key Receiving Device (KRD). During - * key export process, KDH is Amazon Web Services Payment Cryptography which - * initiates key export and KRD is the user receiving the key.

    To initiate - * TR-34 key export, the KRD must obtain an export token by calling - * GetParametersForExport. This operation also generates a key pair for the - * purpose of key export, signs the key and returns back the signing public key - * certificate (also known as KDH signing certificate) and root certificate chain. - * The KDH uses the private key to sign the the export payload and the signing - * public key certificate is provided to KRD to verify the signature. The KRD can - * import the root certificate into its Hardware Security Module (HSM), as - * required. The export token and the associated KDH signing certificate expires - * after 7 days.

    Next the KRD generates a key pair for the the purpose of - * encrypting the KDH key and provides the public key cerificate (also known as KRD - * wrapping certificate) back to KDH. The KRD will also import the root cerificate - * chain into Amazon Web Services Payment Cryptography by calling ImportKey + * Cryptography and has to be re-generated each time during export.

    For key + * exchange using TR-31 or TR-34 key blocks, you can also export optional blocks + * within the key block header which contain additional attribute information about + * the key. The KeyVersion within KeyBlockHeaders + * indicates the version of the key within the key block. Furthermore, + * KeyExportability within KeyBlockHeaders can be used to + * further restrict exportability of the key after export from Amazon Web Services + * Payment Cryptography.

    The OptionalBlocks contain the + * additional data related to the key. For information on data type that can be + * included within optional blocks, refer to ASC + * X9.143-2022.

    Data included in key block headers is signed but + * transmitted in clear text. Sensitive or confidential information should not be + * included in optional blocks. Refer to ASC X9.143-2022 standard for information + * on allowed data type.

    To export initial keys (KEK) or IPEK + * using TR-34

    Using this operation, you can export initial key using + * TR-34 asymmetric key exchange. You can only export KEK generated within Amazon + * Web Services Payment Cryptography. In TR-34 terminology, the sending party of + * the key is called Key Distribution Host (KDH) and the receiving party of the key + * is called Key Receiving Device (KRD). During key export process, KDH is Amazon + * Web Services Payment Cryptography which initiates key export and KRD is the user + * receiving the key.

    To initiate TR-34 key export, the KRD must obtain an + * export token by calling GetParametersForExport. + * This operation also generates a key pair for the purpose of key export, signs + * the key and returns back the signing public key certificate (also known as KDH + * signing certificate) and root certificate chain. The KDH uses the private key to + * sign the the export payload and the signing public key certificate is provided + * to KRD to verify the signature. The KRD can import the root certificate into its + * Hardware Security Module (HSM), as required. The export token and the associated + * KDH signing certificate expires after 7 days.

    Next the KRD generates a + * key pair for the the purpose of encrypting the KDH key and provides the public + * key cerificate (also known as KRD wrapping certificate) back to KDH. The KRD + * will also import the root cerificate chain into Amazon Web Services Payment + * Cryptography by calling ImportKey * for RootCertificatePublicKey. The KDH, Amazon Web Services Payment * Cryptography, will use the KRD wrapping cerificate to encrypt (wrap) the key * under export and signs it with signing private key to generate a TR-34 @@ -329,23 +376,25 @@ namespace PaymentCryptography * Tr34KeyBlock parameters.

  • * CertificateAuthorityPublicKeyIdentifier: The KeyARN of * the certificate chain that signed the KRD wrapping key certificate.

  • - *
  • ExportToken: Obtained from KDH by calling - * GetParametersForImport.

  • - * WrappingKeyCertificate: The public key certificate in PEM format - * (base64 encoded) of the KRD wrapping key Amazon Web Services Payment - * Cryptography uses for encryption of the TR-34 export payload. This certificate - * must be signed by the root certificate (CertificateAuthorityPublicKeyIdentifier) - * imported into Amazon Web Services Payment Cryptography.

  • When - * this operation is successful, Amazon Web Services Payment Cryptography returns - * the KEK or IPEK as a TR-34 WrappedKeyBlock.

    To export initial keys - * (KEK) or IPEK using RSA Wrap and Unwrap

    Using this operation, you - * can export initial key using asymmetric RSA wrap and unwrap key exchange method. - * To initiate export, generate an asymmetric key pair on the receiving HSM and - * obtain the public key certificate in PEM format (base64 encoded) for the purpose - * of wrapping and the root certifiate chain. Import the root certificate into - * Amazon Web Services Payment Cryptography by calling ImportKey for - * RootCertificatePublicKey.

    Next call ExportKey - * and set the following parameters:

    • + *

    • ExportToken: Obtained from KDH by calling GetParametersForImport.

      + *
    • WrappingKeyCertificate: The public key certificate + * in PEM format (base64 encoded) of the KRD wrapping key Amazon Web Services + * Payment Cryptography uses for encryption of the TR-34 export payload. This + * certificate must be signed by the root certificate + * (CertificateAuthorityPublicKeyIdentifier) imported into Amazon Web Services + * Payment Cryptography.

    When this operation is successful, + * Amazon Web Services Payment Cryptography returns the KEK or IPEK as a TR-34 + * WrappedKeyBlock.

    To export initial keys (KEK) or IPEK using RSA Wrap + * and Unwrap

    Using this operation, you can export initial key using + * asymmetric RSA wrap and unwrap key exchange method. To initiate export, generate + * an asymmetric key pair on the receiving HSM and obtain the public key + * certificate in PEM format (base64 encoded) for the purpose of wrapping and the + * root certifiate chain. Import the root certificate into Amazon Web Services + * Payment Cryptography by calling ImportKey + * for RootCertificatePublicKey.

    Next call + * ExportKey and set the following parameters:

    • * CertificateAuthorityPublicKeyIdentifier: The KeyARN of * the certificate chain that signed wrapping key certificate.

    • * KeyMaterial: Set to KeyCryptogram.

    • @@ -358,18 +407,24 @@ namespace PaymentCryptography * WrappedKeyCryptogram.

      To export working keys or IPEK using TR-31 *

      Using this operation, you can export working keys or IPEK using TR-31 * symmetric key exchange. In TR-31, you must use an initial key such as KEK to - * encrypt or wrap the key under export. To establish a KEK, you can use - * CreateKey or ImportKey.

      Set the following parameters:

      - *
      • ExportAttributes: Specify export attributes in case - * of IPEK export. This parameter is optional for KEK export.

      • + * encrypt or wrap the key under export. To establish a KEK, you can use CreateKey + * or ImportKey. + *

        Set the following parameters:

        • + * ExportAttributes: Specify export attributes in case of IPEK export. + * This parameter is optional for KEK export.

        • * ExportKeyIdentifier: The KeyARN of the KEK or BDK (in * case of IPEK) under export.

        • KeyMaterial: Use * Tr31KeyBlock parameters.

        When this operation is * successful, Amazon Web Services Payment Cryptography returns the working key or * IPEK as a TR-31 WrappedKeyBlock.

        Cross-account use: This * operation can't be used across different Amazon Web Services accounts.

        - * Related operations:

        See Also:

        Related operations:

        See Also:

        AWS * API Reference

        */ @@ -397,9 +452,15 @@ namespace PaymentCryptography *

        Gets the Amazon Web Services Payment Cryptography key associated with the * alias.

        Cross-account use: This operation can't be used across * different Amazon Web Services accounts.

        Related operations:

        - *

        See Also:

      • CreateAlias + *

      • DeleteAlias + *

      • ListAliases + *

      • UpdateAlias + *

      See Also:

      AWS * API Reference

      */ @@ -428,8 +489,13 @@ namespace PaymentCryptography * including the immutable and mutable data specified when the key was created.

      *

      Cross-account use: This operation can't be used across different * Amazon Web Services accounts.

      Related operations:

      See Also:

      CreateKey + *

    • DeleteKey + *

    • ListKeys + *

    See Also:

    AWS * API Reference

    */ @@ -458,12 +524,16 @@ namespace PaymentCryptography * export from Amazon Web Services Payment Cryptography.

    The signing key * certificate signs the wrapped key under export within the TR-34 key payload. The * export token and signing key certificate must be in place and operational before - * calling ExportKey. The export token expires in 7 days. You can use the - * same export token to export multiple keys from your service account.

    - * Cross-account use: This operation can't be used across different Amazon - * Web Services accounts.

    Related operations:

    See Also:

    ExportKey. + * The export token expires in 7 days. You can use the same export token to export + * multiple keys from your service account.

    Cross-account use: This + * operation can't be used across different Amazon Web Services accounts.

    + * Related operations:

    See Also:

    AWS * API Reference

    */ @@ -492,12 +562,16 @@ namespace PaymentCryptography * encoded) to initiate a TR-34 WrappedKeyBlock or a RSA WrappedKeyCryptogram * import into Amazon Web Services Payment Cryptography.

    The wrapping key * certificate wraps the key under import. The import token and wrapping key - * certificate must be in place and operational before calling ImportKey. + * certificate must be in place and operational before calling ImportKey. * The import token expires in 7 days. You can use the same import token to import * multiple keys into your service account.

    Cross-account use: This * operation can't be used across different Amazon Web Services accounts.

    - * Related operations:

    See Also:

    Related operations:

    See Also:

    AWS * API Reference

    */ @@ -609,19 +683,20 @@ namespace PaymentCryptography * and the receiving party of the key is called Key Receiving Device (KRD). During * the key import process, KDH is the user who initiates the key import and KRD is * Amazon Web Services Payment Cryptography who receives the key.

    To - * initiate TR-34 key import, the KDH must obtain an import token by calling - * GetParametersForImport. This operation generates an encryption keypair - * for the purpose of key import, signs the key and returns back the wrapping key - * certificate (also known as KRD wrapping certificate) and the root certificate - * chain. The KDH must trust and install the KRD wrapping certificate on its HSM - * and use it to encrypt (wrap) the KDH key during TR-34 WrappedKeyBlock - * generation. The import token and associated KRD wrapping certificate expires - * after 7 days.

    Next the KDH generates a key pair for the purpose of - * signing the encrypted KDH key and provides the public certificate of the signing - * key to Amazon Web Services Payment Cryptography. The KDH will also need to - * import the root certificate chain of the KDH signing certificate by calling - * ImportKey for RootCertificatePublicKey. For more - * information on TR-34 key import, see section GetParametersForImport. + * This operation generates an encryption keypair for the purpose of key import, + * signs the key and returns back the wrapping key certificate (also known as KRD + * wrapping certificate) and the root certificate chain. The KDH must trust and + * install the KRD wrapping certificate on its HSM and use it to encrypt (wrap) the + * KDH key during TR-34 WrappedKeyBlock generation. The import token and associated + * KRD wrapping certificate expires after 7 days.

    Next the KDH generates a + * key pair for the purpose of signing the encrypted KDH key and provides the + * public certificate of the signing key to Amazon Web Services Payment + * Cryptography. The KDH will also need to import the root certificate chain of the + * KDH signing certificate by calling ImportKey for + * RootCertificatePublicKey. For more information on TR-34 key import, + * see section Importing * symmetric keys in the Amazon Web Services Payment Cryptography User * Guide.

    Set the following parameters:

    • @@ -629,19 +704,22 @@ namespace PaymentCryptography *

    • CertificateAuthorityPublicKeyIdentifier: The * KeyARN of the certificate chain that signed the KDH signing key * certificate.

    • ImportToken: Obtained from KRD by - * calling GetParametersForImport.

    • - * WrappedKeyBlock: The TR-34 wrapped key material from KDH. It - * contains the KDH key under import, wrapped with KRD wrapping certificate and - * signed by KDH signing private key. This TR-34 key block is typically generated - * by the KDH Hardware Security Module (HSM) outside of Amazon Web Services Payment - * Cryptography.

    • SigningKeyCertificate: The public - * key certificate in PEM format (base64 encoded) of the KDH signing key generated - * under the root certificate (CertificateAuthorityPublicKeyIdentifier) imported in - * Amazon Web Services Payment Cryptography.

    To import - * initial keys (KEK or ZMK or similar) using RSA Wrap and Unwrap

    Using - * this operation, you can import initial key using asymmetric RSA wrap and unwrap - * key exchange method. To initiate import, call GetParametersForImport with - * KeyMaterial set to KEY_CRYPTOGRAM to generate an + * calling GetParametersForImport.

    + *
  • WrappedKeyBlock: The TR-34 wrapped key material from + * KDH. It contains the KDH key under import, wrapped with KRD wrapping certificate + * and signed by KDH signing private key. This TR-34 key block is typically + * generated by the KDH Hardware Security Module (HSM) outside of Amazon Web + * Services Payment Cryptography.

  • + * SigningKeyCertificate: The public key certificate in PEM format + * (base64 encoded) of the KDH signing key generated under the root certificate + * (CertificateAuthorityPublicKeyIdentifier) imported in Amazon Web Services + * Payment Cryptography.

  • To import initial keys (KEK or ZMK + * or similar) using RSA Wrap and Unwrap

    Using this operation, you can + * import initial key using asymmetric RSA wrap and unwrap key exchange method. To + * initiate import, call GetParametersForImport + * with KeyMaterial set to KEY_CRYPTOGRAM to generate an * import token. This operation also generates an encryption keypair for the * purpose of key import, signs the key and returns back the wrapping key * certificate in PEM format (base64 encoded) and its root certificate chain. The @@ -654,8 +732,9 @@ namespace PaymentCryptography * import.

    To import working keys using TR-31

    Amazon Web * Services Payment Cryptography uses TR-31 symmetric key exchange norm to import * working keys. A KEK must be established within Amazon Web Services Payment - * Cryptography by using TR-34 key import or by using CreateKey. To initiate - * a TR-31 key import, set the following parameters:

    • + * Cryptography by using TR-34 key import or by using CreateKey. + * To initiate a TR-31 key import, set the following parameters:

      • * KeyMaterial: Use Tr31KeyBlock parameters.

      • *
      • WrappedKeyBlock: The TR-31 wrapped key material. It * contains the key under import, encrypted using KEK. The TR-31 key block is @@ -664,9 +743,11 @@ namespace PaymentCryptography * KeyArn of the KEK that Amazon Web Services Payment Cryptography * uses to decrypt or unwrap the key under import.

      * Cross-account use: This operation can't be used across different Amazon - * Web Services accounts.

      Related operations:

      See Also:

      Related operations:

      See Also:

      AWS * API Reference

      */ @@ -703,9 +784,15 @@ namespace PaymentCryptography * receive a response with no NextToken (or an empty or null value), that means * there are no more aliases to get.

      Cross-account use: This * operation can't be used across different Amazon Web Services accounts.

      - * Related operations:

      See Also:

      Related operations:

      See Also:

      AWS * API Reference

      */ @@ -739,8 +826,13 @@ namespace PaymentCryptography * no NextToken (or an empty or null value), that means there are no more keys to * get.

      Cross-account use: This operation can't be used across * different Amazon Web Services accounts.

      Related operations:

      - *

      See Also:

    • CreateKey + *

    • DeleteKey + *

    • GetKey + *

    See Also:

    AWS * API Reference

    */ @@ -773,8 +865,11 @@ namespace PaymentCryptography * response with no NextToken (or an empty or null value), that means there are no * more tags to get.

    Cross-account use: This operation can't be used * across different Amazon Web Services accounts.

    Related - * operations:

    See Also:

    See Also:

    AWS * API Reference

    */ @@ -808,8 +903,12 @@ namespace PaymentCryptography * CREATE_COMPLETE, and the value for * deletePendingTimestamp is removed.

    Cross-account * use: This operation can't be used across different Amazon Web Services - * accounts.

    Related operations:

    • DeleteKey - *

    • StartKeyUsage

    • StopKeyUsage + * accounts.

      Related operations:

      See Also:

      AWS * API Reference

      @@ -839,8 +938,9 @@ namespace PaymentCryptography * active for cryptographic operations within Amazon Web Services Payment * Cryptography

      Cross-account use: This operation can't be used * across different Amazon Web Services accounts.

      Related - * operations:

      See Also:

      See Also:

      AWS * API Reference

      */ @@ -867,12 +967,17 @@ namespace PaymentCryptography /** *

      Disables an Amazon Web Services Payment Cryptography key, which makes it * inactive within Amazon Web Services Payment Cryptography.

      You can use - * this operation instead of DeleteKey to deactivate a key. You can enable - * the key in the future by calling StartKeyUsage.

      Cross-account - * use: This operation can't be used across different Amazon Web Services - * accounts.

      Related operations:

      See Also:

      - * DeleteKey + * to deactivate a key. You can enable the key in the future by calling StartKeyUsage.

      + *

      Cross-account use: This operation can't be used across different + * Amazon Web Services accounts.

      Related operations:

      See Also:

      AWS * API Reference

      */ @@ -904,10 +1009,15 @@ namespace PaymentCryptography * can be an empty (null) string. To add a tag, specify a new tag key and a tag * value. To edit a tag, specify an existing tag key and a new tag value. You can * also add tags to an Amazon Web Services Payment Cryptography key when you create - * it with CreateKey.

      Cross-account use: This operation can't - * be used across different Amazon Web Services accounts.

      Related - * operations:

      See Also:

      CreateKey.

      + *

      Cross-account use: This operation can't be used across different + * Amazon Web Services accounts.

      Related operations:

      See Also:

      AWS * API Reference

      */ @@ -936,9 +1046,11 @@ namespace PaymentCryptography *

      Tagging or untagging an Amazon Web Services Payment Cryptography key * can allow or deny permission to the key.

      Cross-account * use: This operation can't be used across different Amazon Web Services - * accounts.

      Related operations:

      See Also:

      Related operations:

      See Also:

      AWS * API Reference

      */ @@ -969,10 +1081,15 @@ namespace PaymentCryptography * The alias and the Amazon Web Services Payment Cryptography key must be in the * same Amazon Web Services account and Amazon Web Services Region

      * Cross-account use: This operation can't be used across different Amazon - * Web Services accounts.

      Related operations:

      See Also:

      Related operations:

      See Also:

      AWS * API Reference

      */ diff --git a/generated/src/aws-cpp-sdk-payment-cryptography/include/aws/payment-cryptography/model/CreateKeyRequest.h b/generated/src/aws-cpp-sdk-payment-cryptography/include/aws/payment-cryptography/model/CreateKeyRequest.h index bf85a886eba..80311f3786c 100644 --- a/generated/src/aws-cpp-sdk-payment-cryptography/include/aws/payment-cryptography/model/CreateKeyRequest.h +++ b/generated/src/aws-cpp-sdk-payment-cryptography/include/aws/payment-cryptography/model/CreateKeyRequest.h @@ -37,56 +37,6 @@ namespace Model AWS_PAYMENTCRYPTOGRAPHY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; - /** - *

      Specifies whether to enable the key. If the key is enabled, it is activated - * for use within the service. If the key is not enabled, then it is created but - * not activated. The default value is enabled.

      - */ - inline bool GetEnabled() const{ return m_enabled; } - - /** - *

      Specifies whether to enable the key. If the key is enabled, it is activated - * for use within the service. If the key is not enabled, then it is created but - * not activated. The default value is enabled.

      - */ - inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; } - - /** - *

      Specifies whether to enable the key. If the key is enabled, it is activated - * for use within the service. If the key is not enabled, then it is created but - * not activated. The default value is enabled.

      - */ - inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; } - - /** - *

      Specifies whether to enable the key. If the key is enabled, it is activated - * for use within the service. If the key is not enabled, then it is created but - * not activated. The default value is enabled.

      - */ - inline CreateKeyRequest& WithEnabled(bool value) { SetEnabled(value); return *this;} - - - /** - *

      Specifies whether the key is exportable from the service.

      - */ - inline bool GetExportable() const{ return m_exportable; } - - /** - *

      Specifies whether the key is exportable from the service.

      - */ - inline bool ExportableHasBeenSet() const { return m_exportableHasBeenSet; } - - /** - *

      Specifies whether the key is exportable from the service.

      - */ - inline void SetExportable(bool value) { m_exportableHasBeenSet = true; m_exportable = value; } - - /** - *

      Specifies whether the key is exportable from the service.

      - */ - inline CreateKeyRequest& WithExportable(bool value) { SetExportable(value); return *this;} - - /** *

      The role of the key, the algorithm it supports, and the cryptographic * operations allowed with the key. This data is immutable after the key is @@ -197,140 +147,198 @@ namespace Model inline CreateKeyRequest& WithKeyCheckValueAlgorithm(KeyCheckValueAlgorithm&& value) { SetKeyCheckValueAlgorithm(std::move(value)); return *this;} + /** + *

      Specifies whether the key is exportable from the service.

      + */ + inline bool GetExportable() const{ return m_exportable; } + + /** + *

      Specifies whether the key is exportable from the service.

      + */ + inline bool ExportableHasBeenSet() const { return m_exportableHasBeenSet; } + + /** + *

      Specifies whether the key is exportable from the service.

      + */ + inline void SetExportable(bool value) { m_exportableHasBeenSet = true; m_exportable = value; } + + /** + *

      Specifies whether the key is exportable from the service.

      + */ + inline CreateKeyRequest& WithExportable(bool value) { SetExportable(value); return *this;} + + + /** + *

      Specifies whether to enable the key. If the key is enabled, it is activated + * for use within the service. If the key is not enabled, then it is created but + * not activated. The default value is enabled.

      + */ + inline bool GetEnabled() const{ return m_enabled; } + + /** + *

      Specifies whether to enable the key. If the key is enabled, it is activated + * for use within the service. If the key is not enabled, then it is created but + * not activated. The default value is enabled.

      + */ + inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; } + + /** + *

      Specifies whether to enable the key. If the key is enabled, it is activated + * for use within the service. If the key is not enabled, then it is created but + * not activated. The default value is enabled.

      + */ + inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; } + + /** + *

      Specifies whether to enable the key. If the key is enabled, it is activated + * for use within the service. If the key is not enabled, then it is created but + * not activated. The default value is enabled.

      + */ + inline CreateKeyRequest& WithEnabled(bool value) { SetEnabled(value); return *this;} + + /** *

      Assigns one or more tags to the Amazon Web Services Payment Cryptography key. * Use this parameter to tag a key when it is created. To tag an existing Amazon - * Web Services Payment Cryptography key, use the TagResource operation.

      - *

      Each tag consists of a tag key and a tag value. Both the tag key and the tag - * value are required, but the tag value can be an empty (null) string. You can't - * have more than one tag on an Amazon Web Services Payment Cryptography key with - * the same tag key.

      Don't include personal, confidential or - * sensitive information in this field. This field may be displayed in plaintext in - * CloudTrail logs and other output.

      Tagging or - * untagging an Amazon Web Services Payment Cryptography key can allow or deny - * permission to the key.

      + * Web Services Payment Cryptography key, use the TagResource + * operation.

      Each tag consists of a tag key and a tag value. Both the tag + * key and the tag value are required, but the tag value can be an empty (null) + * string. You can't have more than one tag on an Amazon Web Services Payment + * Cryptography key with the same tag key.

      Don't include + * personal, confidential or sensitive information in this field. This field may be + * displayed in plaintext in CloudTrail logs and other output.

      + *

      Tagging or untagging an Amazon Web Services Payment Cryptography key + * can allow or deny permission to the key.

      */ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

      Assigns one or more tags to the Amazon Web Services Payment Cryptography key. * Use this parameter to tag a key when it is created. To tag an existing Amazon - * Web Services Payment Cryptography key, use the TagResource operation.

      - *

      Each tag consists of a tag key and a tag value. Both the tag key and the tag - * value are required, but the tag value can be an empty (null) string. You can't - * have more than one tag on an Amazon Web Services Payment Cryptography key with - * the same tag key.

      Don't include personal, confidential or - * sensitive information in this field. This field may be displayed in plaintext in - * CloudTrail logs and other output.

      Tagging or - * untagging an Amazon Web Services Payment Cryptography key can allow or deny - * permission to the key.

      + * Web Services Payment Cryptography key, use the TagResource + * operation.

      Each tag consists of a tag key and a tag value. Both the tag + * key and the tag value are required, but the tag value can be an empty (null) + * string. You can't have more than one tag on an Amazon Web Services Payment + * Cryptography key with the same tag key.

      Don't include + * personal, confidential or sensitive information in this field. This field may be + * displayed in plaintext in CloudTrail logs and other output.

      + *

      Tagging or untagging an Amazon Web Services Payment Cryptography key + * can allow or deny permission to the key.

      */ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

      Assigns one or more tags to the Amazon Web Services Payment Cryptography key. * Use this parameter to tag a key when it is created. To tag an existing Amazon - * Web Services Payment Cryptography key, use the TagResource operation.

      - *

      Each tag consists of a tag key and a tag value. Both the tag key and the tag - * value are required, but the tag value can be an empty (null) string. You can't - * have more than one tag on an Amazon Web Services Payment Cryptography key with - * the same tag key.

      Don't include personal, confidential or - * sensitive information in this field. This field may be displayed in plaintext in - * CloudTrail logs and other output.

      Tagging or - * untagging an Amazon Web Services Payment Cryptography key can allow or deny - * permission to the key.

      + * Web Services Payment Cryptography key, use the TagResource + * operation.

      Each tag consists of a tag key and a tag value. Both the tag + * key and the tag value are required, but the tag value can be an empty (null) + * string. You can't have more than one tag on an Amazon Web Services Payment + * Cryptography key with the same tag key.

      Don't include + * personal, confidential or sensitive information in this field. This field may be + * displayed in plaintext in CloudTrail logs and other output.

      + *

      Tagging or untagging an Amazon Web Services Payment Cryptography key + * can allow or deny permission to the key.

      */ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

      Assigns one or more tags to the Amazon Web Services Payment Cryptography key. * Use this parameter to tag a key when it is created. To tag an existing Amazon - * Web Services Payment Cryptography key, use the TagResource operation.

      - *

      Each tag consists of a tag key and a tag value. Both the tag key and the tag - * value are required, but the tag value can be an empty (null) string. You can't - * have more than one tag on an Amazon Web Services Payment Cryptography key with - * the same tag key.

      Don't include personal, confidential or - * sensitive information in this field. This field may be displayed in plaintext in - * CloudTrail logs and other output.

      Tagging or - * untagging an Amazon Web Services Payment Cryptography key can allow or deny - * permission to the key.

      + * Web Services Payment Cryptography key, use the TagResource + * operation.

      Each tag consists of a tag key and a tag value. Both the tag + * key and the tag value are required, but the tag value can be an empty (null) + * string. You can't have more than one tag on an Amazon Web Services Payment + * Cryptography key with the same tag key.

      Don't include + * personal, confidential or sensitive information in this field. This field may be + * displayed in plaintext in CloudTrail logs and other output.

      + *

      Tagging or untagging an Amazon Web Services Payment Cryptography key + * can allow or deny permission to the key.

      */ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

      Assigns one or more tags to the Amazon Web Services Payment Cryptography key. * Use this parameter to tag a key when it is created. To tag an existing Amazon - * Web Services Payment Cryptography key, use the TagResource operation.

      - *

      Each tag consists of a tag key and a tag value. Both the tag key and the tag - * value are required, but the tag value can be an empty (null) string. You can't - * have more than one tag on an Amazon Web Services Payment Cryptography key with - * the same tag key.

      Don't include personal, confidential or - * sensitive information in this field. This field may be displayed in plaintext in - * CloudTrail logs and other output.

      Tagging or - * untagging an Amazon Web Services Payment Cryptography key can allow or deny - * permission to the key.

      + * Web Services Payment Cryptography key, use the TagResource + * operation.

      Each tag consists of a tag key and a tag value. Both the tag + * key and the tag value are required, but the tag value can be an empty (null) + * string. You can't have more than one tag on an Amazon Web Services Payment + * Cryptography key with the same tag key.

      Don't include + * personal, confidential or sensitive information in this field. This field may be + * displayed in plaintext in CloudTrail logs and other output.

      + *

      Tagging or untagging an Amazon Web Services Payment Cryptography key + * can allow or deny permission to the key.

      */ inline CreateKeyRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

      Assigns one or more tags to the Amazon Web Services Payment Cryptography key. * Use this parameter to tag a key when it is created. To tag an existing Amazon - * Web Services Payment Cryptography key, use the TagResource operation.

      - *

      Each tag consists of a tag key and a tag value. Both the tag key and the tag - * value are required, but the tag value can be an empty (null) string. You can't - * have more than one tag on an Amazon Web Services Payment Cryptography key with - * the same tag key.

      Don't include personal, confidential or - * sensitive information in this field. This field may be displayed in plaintext in - * CloudTrail logs and other output.

      Tagging or - * untagging an Amazon Web Services Payment Cryptography key can allow or deny - * permission to the key.

      + * Web Services Payment Cryptography key, use the TagResource + * operation.

      Each tag consists of a tag key and a tag value. Both the tag + * key and the tag value are required, but the tag value can be an empty (null) + * string. You can't have more than one tag on an Amazon Web Services Payment + * Cryptography key with the same tag key.

      Don't include + * personal, confidential or sensitive information in this field. This field may be + * displayed in plaintext in CloudTrail logs and other output.

      + *

      Tagging or untagging an Amazon Web Services Payment Cryptography key + * can allow or deny permission to the key.

      */ inline CreateKeyRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

      Assigns one or more tags to the Amazon Web Services Payment Cryptography key. * Use this parameter to tag a key when it is created. To tag an existing Amazon - * Web Services Payment Cryptography key, use the TagResource operation.

      - *

      Each tag consists of a tag key and a tag value. Both the tag key and the tag - * value are required, but the tag value can be an empty (null) string. You can't - * have more than one tag on an Amazon Web Services Payment Cryptography key with - * the same tag key.

      Don't include personal, confidential or - * sensitive information in this field. This field may be displayed in plaintext in - * CloudTrail logs and other output.

      Tagging or - * untagging an Amazon Web Services Payment Cryptography key can allow or deny - * permission to the key.

      + * Web Services Payment Cryptography key, use the TagResource + * operation.

      Each tag consists of a tag key and a tag value. Both the tag + * key and the tag value are required, but the tag value can be an empty (null) + * string. You can't have more than one tag on an Amazon Web Services Payment + * Cryptography key with the same tag key.

      Don't include + * personal, confidential or sensitive information in this field. This field may be + * displayed in plaintext in CloudTrail logs and other output.

      + *

      Tagging or untagging an Amazon Web Services Payment Cryptography key + * can allow or deny permission to the key.

      */ inline CreateKeyRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

      Assigns one or more tags to the Amazon Web Services Payment Cryptography key. * Use this parameter to tag a key when it is created. To tag an existing Amazon - * Web Services Payment Cryptography key, use the TagResource operation.

      - *

      Each tag consists of a tag key and a tag value. Both the tag key and the tag - * value are required, but the tag value can be an empty (null) string. You can't - * have more than one tag on an Amazon Web Services Payment Cryptography key with - * the same tag key.

      Don't include personal, confidential or - * sensitive information in this field. This field may be displayed in plaintext in - * CloudTrail logs and other output.

      Tagging or - * untagging an Amazon Web Services Payment Cryptography key can allow or deny - * permission to the key.

      + * Web Services Payment Cryptography key, use the TagResource + * operation.

      Each tag consists of a tag key and a tag value. Both the tag + * key and the tag value are required, but the tag value can be an empty (null) + * string. You can't have more than one tag on an Amazon Web Services Payment + * Cryptography key with the same tag key.

      Don't include + * personal, confidential or sensitive information in this field. This field may be + * displayed in plaintext in CloudTrail logs and other output.

      + *

      Tagging or untagging an Amazon Web Services Payment Cryptography key + * can allow or deny permission to the key.

      */ inline CreateKeyRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: - bool m_enabled; - bool m_enabledHasBeenSet = false; - - bool m_exportable; - bool m_exportableHasBeenSet = false; - KeyAttributes m_keyAttributes; bool m_keyAttributesHasBeenSet = false; KeyCheckValueAlgorithm m_keyCheckValueAlgorithm; bool m_keyCheckValueAlgorithmHasBeenSet = false; + bool m_exportable; + bool m_exportableHasBeenSet = false; + + bool m_enabled; + bool m_enabledHasBeenSet = false; + Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; diff --git a/generated/src/aws-cpp-sdk-payment-cryptography/include/aws/payment-cryptography/model/DeleteKeyRequest.h b/generated/src/aws-cpp-sdk-payment-cryptography/include/aws/payment-cryptography/model/DeleteKeyRequest.h index 5f7c5bc2810..3e9512c0fab 100644 --- a/generated/src/aws-cpp-sdk-payment-cryptography/include/aws/payment-cryptography/model/DeleteKeyRequest.h +++ b/generated/src/aws-cpp-sdk-payment-cryptography/include/aws/payment-cryptography/model/DeleteKeyRequest.h @@ -34,27 +34,6 @@ namespace Model AWS_PAYMENTCRYPTOGRAPHY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; - /** - *

      The waiting period for key deletion. The default value is seven days.

      - */ - inline int GetDeleteKeyInDays() const{ return m_deleteKeyInDays; } - - /** - *

      The waiting period for key deletion. The default value is seven days.

      - */ - inline bool DeleteKeyInDaysHasBeenSet() const { return m_deleteKeyInDaysHasBeenSet; } - - /** - *

      The waiting period for key deletion. The default value is seven days.

      - */ - inline void SetDeleteKeyInDays(int value) { m_deleteKeyInDaysHasBeenSet = true; m_deleteKeyInDays = value; } - - /** - *

      The waiting period for key deletion. The default value is seven days.

      - */ - inline DeleteKeyRequest& WithDeleteKeyInDays(int value) { SetDeleteKeyInDays(value); return *this;} - - /** *

      The KeyARN of the key that is scheduled for deletion.

      */ @@ -95,13 +74,34 @@ namespace Model */ inline DeleteKeyRequest& WithKeyIdentifier(const char* value) { SetKeyIdentifier(value); return *this;} - private: - int m_deleteKeyInDays; - bool m_deleteKeyInDaysHasBeenSet = false; + /** + *

      The waiting period for key deletion. The default value is seven days.

      + */ + inline int GetDeleteKeyInDays() const{ return m_deleteKeyInDays; } + + /** + *

      The waiting period for key deletion. The default value is seven days.

      + */ + inline bool DeleteKeyInDaysHasBeenSet() const { return m_deleteKeyInDaysHasBeenSet; } + + /** + *

      The waiting period for key deletion. The default value is seven days.

      + */ + inline void SetDeleteKeyInDays(int value) { m_deleteKeyInDaysHasBeenSet = true; m_deleteKeyInDays = value; } + + /** + *

      The waiting period for key deletion. The default value is seven days.

      + */ + inline DeleteKeyRequest& WithDeleteKeyInDays(int value) { SetDeleteKeyInDays(value); return *this;} + + private: Aws::String m_keyIdentifier; bool m_keyIdentifierHasBeenSet = false; + + int m_deleteKeyInDays; + bool m_deleteKeyInDaysHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-payment-cryptography/include/aws/payment-cryptography/model/ExportKeyMaterial.h b/generated/src/aws-cpp-sdk-payment-cryptography/include/aws/payment-cryptography/model/ExportKeyMaterial.h index 1006c777187..3db6da8888a 100644 --- a/generated/src/aws-cpp-sdk-payment-cryptography/include/aws/payment-cryptography/model/ExportKeyMaterial.h +++ b/generated/src/aws-cpp-sdk-payment-cryptography/include/aws/payment-cryptography/model/ExportKeyMaterial.h @@ -5,9 +5,9 @@ #pragma once #include -#include #include #include +#include #include namespace Aws @@ -41,43 +41,6 @@ namespace Model AWS_PAYMENTCRYPTOGRAPHY_API Aws::Utils::Json::JsonValue Jsonize() const; - /** - *

      Parameter information for key material export using asymmetric RSA wrap and - * unwrap key exchange method

      - */ - inline const ExportKeyCryptogram& GetKeyCryptogram() const{ return m_keyCryptogram; } - - /** - *

      Parameter information for key material export using asymmetric RSA wrap and - * unwrap key exchange method

      - */ - inline bool KeyCryptogramHasBeenSet() const { return m_keyCryptogramHasBeenSet; } - - /** - *

      Parameter information for key material export using asymmetric RSA wrap and - * unwrap key exchange method

      - */ - inline void SetKeyCryptogram(const ExportKeyCryptogram& value) { m_keyCryptogramHasBeenSet = true; m_keyCryptogram = value; } - - /** - *

      Parameter information for key material export using asymmetric RSA wrap and - * unwrap key exchange method

      - */ - inline void SetKeyCryptogram(ExportKeyCryptogram&& value) { m_keyCryptogramHasBeenSet = true; m_keyCryptogram = std::move(value); } - - /** - *

      Parameter information for key material export using asymmetric RSA wrap and - * unwrap key exchange method

      - */ - inline ExportKeyMaterial& WithKeyCryptogram(const ExportKeyCryptogram& value) { SetKeyCryptogram(value); return *this;} - - /** - *

      Parameter information for key material export using asymmetric RSA wrap and - * unwrap key exchange method

      - */ - inline ExportKeyMaterial& WithKeyCryptogram(ExportKeyCryptogram&& value) { SetKeyCryptogram(std::move(value)); return *this;} - - /** *

      Parameter information for key material export using symmetric TR-31 key * exchange method.

      @@ -151,16 +114,53 @@ namespace Model */ inline ExportKeyMaterial& WithTr34KeyBlock(ExportTr34KeyBlock&& value) { SetTr34KeyBlock(std::move(value)); return *this;} - private: - ExportKeyCryptogram m_keyCryptogram; - bool m_keyCryptogramHasBeenSet = false; + /** + *

      Parameter information for key material export using asymmetric RSA wrap and + * unwrap key exchange method

      + */ + inline const ExportKeyCryptogram& GetKeyCryptogram() const{ return m_keyCryptogram; } + + /** + *

      Parameter information for key material export using asymmetric RSA wrap and + * unwrap key exchange method

      + */ + inline bool KeyCryptogramHasBeenSet() const { return m_keyCryptogramHasBeenSet; } + + /** + *

      Parameter information for key material export using asymmetric RSA wrap and + * unwrap key exchange method

      + */ + inline void SetKeyCryptogram(const ExportKeyCryptogram& value) { m_keyCryptogramHasBeenSet = true; m_keyCryptogram = value; } + + /** + *

      Parameter information for key material export using asymmetric RSA wrap and + * unwrap key exchange method

      + */ + inline void SetKeyCryptogram(ExportKeyCryptogram&& value) { m_keyCryptogramHasBeenSet = true; m_keyCryptogram = std::move(value); } + + /** + *

      Parameter information for key material export using asymmetric RSA wrap and + * unwrap key exchange method

      + */ + inline ExportKeyMaterial& WithKeyCryptogram(const ExportKeyCryptogram& value) { SetKeyCryptogram(value); return *this;} + + /** + *

      Parameter information for key material export using asymmetric RSA wrap and + * unwrap key exchange method

      + */ + inline ExportKeyMaterial& WithKeyCryptogram(ExportKeyCryptogram&& value) { SetKeyCryptogram(std::move(value)); return *this;} + + private: ExportTr31KeyBlock m_tr31KeyBlock; bool m_tr31KeyBlockHasBeenSet = false; ExportTr34KeyBlock m_tr34KeyBlock; bool m_tr34KeyBlockHasBeenSet = false; + + ExportKeyCryptogram m_keyCryptogram; + bool m_keyCryptogramHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-payment-cryptography/include/aws/payment-cryptography/model/ExportKeyRequest.h b/generated/src/aws-cpp-sdk-payment-cryptography/include/aws/payment-cryptography/model/ExportKeyRequest.h index b693523e555..e71f52ad0c8 100644 --- a/generated/src/aws-cpp-sdk-payment-cryptography/include/aws/payment-cryptography/model/ExportKeyRequest.h +++ b/generated/src/aws-cpp-sdk-payment-cryptography/include/aws/payment-cryptography/model/ExportKeyRequest.h @@ -6,9 +6,9 @@ #pragma once #include #include -#include -#include #include +#include +#include #include namespace Aws @@ -37,34 +37,40 @@ namespace Model /** - *

      The attributes for IPEK generation during export.

      + *

      The key block format type, for example, TR-34 or TR-31, to use during key + * material export.

      */ - inline const ExportAttributes& GetExportAttributes() const{ return m_exportAttributes; } + inline const ExportKeyMaterial& GetKeyMaterial() const{ return m_keyMaterial; } /** - *

      The attributes for IPEK generation during export.

      + *

      The key block format type, for example, TR-34 or TR-31, to use during key + * material export.

      */ - inline bool ExportAttributesHasBeenSet() const { return m_exportAttributesHasBeenSet; } + inline bool KeyMaterialHasBeenSet() const { return m_keyMaterialHasBeenSet; } /** - *

      The attributes for IPEK generation during export.

      + *

      The key block format type, for example, TR-34 or TR-31, to use during key + * material export.

      */ - inline void SetExportAttributes(const ExportAttributes& value) { m_exportAttributesHasBeenSet = true; m_exportAttributes = value; } + inline void SetKeyMaterial(const ExportKeyMaterial& value) { m_keyMaterialHasBeenSet = true; m_keyMaterial = value; } /** - *

      The attributes for IPEK generation during export.

      + *

      The key block format type, for example, TR-34 or TR-31, to use during key + * material export.

      */ - inline void SetExportAttributes(ExportAttributes&& value) { m_exportAttributesHasBeenSet = true; m_exportAttributes = std::move(value); } + inline void SetKeyMaterial(ExportKeyMaterial&& value) { m_keyMaterialHasBeenSet = true; m_keyMaterial = std::move(value); } /** - *

      The attributes for IPEK generation during export.

      + *

      The key block format type, for example, TR-34 or TR-31, to use during key + * material export.

      */ - inline ExportKeyRequest& WithExportAttributes(const ExportAttributes& value) { SetExportAttributes(value); return *this;} + inline ExportKeyRequest& WithKeyMaterial(const ExportKeyMaterial& value) { SetKeyMaterial(value); return *this;} /** - *

      The attributes for IPEK generation during export.

      + *

      The key block format type, for example, TR-34 or TR-31, to use during key + * material export.

      */ - inline ExportKeyRequest& WithExportAttributes(ExportAttributes&& value) { SetExportAttributes(std::move(value)); return *this;} + inline ExportKeyRequest& WithKeyMaterial(ExportKeyMaterial&& value) { SetKeyMaterial(std::move(value)); return *this;} /** @@ -117,51 +123,45 @@ namespace Model /** - *

      The key block format type, for example, TR-34 or TR-31, to use during key - * material export.

      + *

      The attributes for IPEK generation during export.

      */ - inline const ExportKeyMaterial& GetKeyMaterial() const{ return m_keyMaterial; } + inline const ExportAttributes& GetExportAttributes() const{ return m_exportAttributes; } /** - *

      The key block format type, for example, TR-34 or TR-31, to use during key - * material export.

      + *

      The attributes for IPEK generation during export.

      */ - inline bool KeyMaterialHasBeenSet() const { return m_keyMaterialHasBeenSet; } + inline bool ExportAttributesHasBeenSet() const { return m_exportAttributesHasBeenSet; } /** - *

      The key block format type, for example, TR-34 or TR-31, to use during key - * material export.

      + *

      The attributes for IPEK generation during export.

      */ - inline void SetKeyMaterial(const ExportKeyMaterial& value) { m_keyMaterialHasBeenSet = true; m_keyMaterial = value; } + inline void SetExportAttributes(const ExportAttributes& value) { m_exportAttributesHasBeenSet = true; m_exportAttributes = value; } /** - *

      The key block format type, for example, TR-34 or TR-31, to use during key - * material export.

      + *

      The attributes for IPEK generation during export.

      */ - inline void SetKeyMaterial(ExportKeyMaterial&& value) { m_keyMaterialHasBeenSet = true; m_keyMaterial = std::move(value); } + inline void SetExportAttributes(ExportAttributes&& value) { m_exportAttributesHasBeenSet = true; m_exportAttributes = std::move(value); } /** - *

      The key block format type, for example, TR-34 or TR-31, to use during key - * material export.

      + *

      The attributes for IPEK generation during export.

      */ - inline ExportKeyRequest& WithKeyMaterial(const ExportKeyMaterial& value) { SetKeyMaterial(value); return *this;} + inline ExportKeyRequest& WithExportAttributes(const ExportAttributes& value) { SetExportAttributes(value); return *this;} /** - *

      The key block format type, for example, TR-34 or TR-31, to use during key - * material export.

      + *

      The attributes for IPEK generation during export.

      */ - inline ExportKeyRequest& WithKeyMaterial(ExportKeyMaterial&& value) { SetKeyMaterial(std::move(value)); return *this;} + inline ExportKeyRequest& WithExportAttributes(ExportAttributes&& value) { SetExportAttributes(std::move(value)); return *this;} private: - ExportAttributes m_exportAttributes; - bool m_exportAttributesHasBeenSet = false; + ExportKeyMaterial m_keyMaterial; + bool m_keyMaterialHasBeenSet = false; Aws::String m_exportKeyIdentifier; bool m_exportKeyIdentifierHasBeenSet = false; - ExportKeyMaterial m_keyMaterial; - bool m_keyMaterialHasBeenSet = false; + ExportAttributes m_exportAttributes; + bool m_exportAttributesHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-payment-cryptography/include/aws/payment-cryptography/model/ExportTr31KeyBlock.h b/generated/src/aws-cpp-sdk-payment-cryptography/include/aws/payment-cryptography/model/ExportTr31KeyBlock.h index e9abd7c0d05..e1b59ed59e8 100644 --- a/generated/src/aws-cpp-sdk-payment-cryptography/include/aws/payment-cryptography/model/ExportTr31KeyBlock.h +++ b/generated/src/aws-cpp-sdk-payment-cryptography/include/aws/payment-cryptography/model/ExportTr31KeyBlock.h @@ -6,6 +6,7 @@ #pragma once #include #include +#include #include namespace Aws @@ -86,10 +87,50 @@ namespace Model */ inline ExportTr31KeyBlock& WithWrappingKeyIdentifier(const char* value) { SetWrappingKeyIdentifier(value); return *this;} + + /** + *

      Optional metadata for export associated with the key material. This data is + * signed but transmitted in clear text.

      + */ + inline const KeyBlockHeaders& GetKeyBlockHeaders() const{ return m_keyBlockHeaders; } + + /** + *

      Optional metadata for export associated with the key material. This data is + * signed but transmitted in clear text.

      + */ + inline bool KeyBlockHeadersHasBeenSet() const { return m_keyBlockHeadersHasBeenSet; } + + /** + *

      Optional metadata for export associated with the key material. This data is + * signed but transmitted in clear text.

      + */ + inline void SetKeyBlockHeaders(const KeyBlockHeaders& value) { m_keyBlockHeadersHasBeenSet = true; m_keyBlockHeaders = value; } + + /** + *

      Optional metadata for export associated with the key material. This data is + * signed but transmitted in clear text.

      + */ + inline void SetKeyBlockHeaders(KeyBlockHeaders&& value) { m_keyBlockHeadersHasBeenSet = true; m_keyBlockHeaders = std::move(value); } + + /** + *

      Optional metadata for export associated with the key material. This data is + * signed but transmitted in clear text.

      + */ + inline ExportTr31KeyBlock& WithKeyBlockHeaders(const KeyBlockHeaders& value) { SetKeyBlockHeaders(value); return *this;} + + /** + *

      Optional metadata for export associated with the key material. This data is + * signed but transmitted in clear text.

      + */ + inline ExportTr31KeyBlock& WithKeyBlockHeaders(KeyBlockHeaders&& value) { SetKeyBlockHeaders(std::move(value)); return *this;} + private: Aws::String m_wrappingKeyIdentifier; bool m_wrappingKeyIdentifierHasBeenSet = false; + + KeyBlockHeaders m_keyBlockHeaders; + bool m_keyBlockHeadersHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-payment-cryptography/include/aws/payment-cryptography/model/ExportTr34KeyBlock.h b/generated/src/aws-cpp-sdk-payment-cryptography/include/aws/payment-cryptography/model/ExportTr34KeyBlock.h index 49b111781af..7ffc76d2f03 100644 --- a/generated/src/aws-cpp-sdk-payment-cryptography/include/aws/payment-cryptography/model/ExportTr34KeyBlock.h +++ b/generated/src/aws-cpp-sdk-payment-cryptography/include/aws/payment-cryptography/model/ExportTr34KeyBlock.h @@ -7,6 +7,7 @@ #include #include #include +#include #include namespace Aws @@ -88,83 +89,132 @@ namespace Model inline ExportTr34KeyBlock& WithCertificateAuthorityPublicKeyIdentifier(const char* value) { SetCertificateAuthorityPublicKeyIdentifier(value); return *this;} + /** + *

      The KeyARN of the wrapping key certificate. Amazon Web Services + * Payment Cryptography uses this certificate to wrap the key under export.

      + */ + inline const Aws::String& GetWrappingKeyCertificate() const{ return m_wrappingKeyCertificate; } + + /** + *

      The KeyARN of the wrapping key certificate. Amazon Web Services + * Payment Cryptography uses this certificate to wrap the key under export.

      + */ + inline bool WrappingKeyCertificateHasBeenSet() const { return m_wrappingKeyCertificateHasBeenSet; } + + /** + *

      The KeyARN of the wrapping key certificate. Amazon Web Services + * Payment Cryptography uses this certificate to wrap the key under export.

      + */ + inline void SetWrappingKeyCertificate(const Aws::String& value) { m_wrappingKeyCertificateHasBeenSet = true; m_wrappingKeyCertificate = value; } + + /** + *

      The KeyARN of the wrapping key certificate. Amazon Web Services + * Payment Cryptography uses this certificate to wrap the key under export.

      + */ + inline void SetWrappingKeyCertificate(Aws::String&& value) { m_wrappingKeyCertificateHasBeenSet = true; m_wrappingKeyCertificate = std::move(value); } + + /** + *

      The KeyARN of the wrapping key certificate. Amazon Web Services + * Payment Cryptography uses this certificate to wrap the key under export.

      + */ + inline void SetWrappingKeyCertificate(const char* value) { m_wrappingKeyCertificateHasBeenSet = true; m_wrappingKeyCertificate.assign(value); } + + /** + *

      The KeyARN of the wrapping key certificate. Amazon Web Services + * Payment Cryptography uses this certificate to wrap the key under export.

      + */ + inline ExportTr34KeyBlock& WithWrappingKeyCertificate(const Aws::String& value) { SetWrappingKeyCertificate(value); return *this;} + + /** + *

      The KeyARN of the wrapping key certificate. Amazon Web Services + * Payment Cryptography uses this certificate to wrap the key under export.

      + */ + inline ExportTr34KeyBlock& WithWrappingKeyCertificate(Aws::String&& value) { SetWrappingKeyCertificate(std::move(value)); return *this;} + + /** + *

      The KeyARN of the wrapping key certificate. Amazon Web Services + * Payment Cryptography uses this certificate to wrap the key under export.

      + */ + inline ExportTr34KeyBlock& WithWrappingKeyCertificate(const char* value) { SetWrappingKeyCertificate(value); return *this;} + + /** *

      The export token to initiate key export from Amazon Web Services Payment * Cryptography. It also contains the signing key certificate that will sign the - * wrapped key during TR-34 key block generation. Call - * GetParametersForExport to receive an export token. It expires after 7 - * days. You can use the same export token to export multiple keys from the same - * service account.

      + * wrapped key during TR-34 key block generation. Call GetParametersForExport + * to receive an export token. It expires after 7 days. You can use the same export + * token to export multiple keys from the same service account.

      */ inline const Aws::String& GetExportToken() const{ return m_exportToken; } /** *

      The export token to initiate key export from Amazon Web Services Payment * Cryptography. It also contains the signing key certificate that will sign the - * wrapped key during TR-34 key block generation. Call - * GetParametersForExport to receive an export token. It expires after 7 - * days. You can use the same export token to export multiple keys from the same - * service account.

      + * wrapped key during TR-34 key block generation. Call GetParametersForExport + * to receive an export token. It expires after 7 days. You can use the same export + * token to export multiple keys from the same service account.

      */ inline bool ExportTokenHasBeenSet() const { return m_exportTokenHasBeenSet; } /** *

      The export token to initiate key export from Amazon Web Services Payment * Cryptography. It also contains the signing key certificate that will sign the - * wrapped key during TR-34 key block generation. Call - * GetParametersForExport to receive an export token. It expires after 7 - * days. You can use the same export token to export multiple keys from the same - * service account.

      + * wrapped key during TR-34 key block generation. Call GetParametersForExport + * to receive an export token. It expires after 7 days. You can use the same export + * token to export multiple keys from the same service account.

      */ inline void SetExportToken(const Aws::String& value) { m_exportTokenHasBeenSet = true; m_exportToken = value; } /** *

      The export token to initiate key export from Amazon Web Services Payment * Cryptography. It also contains the signing key certificate that will sign the - * wrapped key during TR-34 key block generation. Call - * GetParametersForExport to receive an export token. It expires after 7 - * days. You can use the same export token to export multiple keys from the same - * service account.

      + * wrapped key during TR-34 key block generation. Call GetParametersForExport + * to receive an export token. It expires after 7 days. You can use the same export + * token to export multiple keys from the same service account.

      */ inline void SetExportToken(Aws::String&& value) { m_exportTokenHasBeenSet = true; m_exportToken = std::move(value); } /** *

      The export token to initiate key export from Amazon Web Services Payment * Cryptography. It also contains the signing key certificate that will sign the - * wrapped key during TR-34 key block generation. Call - * GetParametersForExport to receive an export token. It expires after 7 - * days. You can use the same export token to export multiple keys from the same - * service account.

      + * wrapped key during TR-34 key block generation. Call GetParametersForExport + * to receive an export token. It expires after 7 days. You can use the same export + * token to export multiple keys from the same service account.

      */ inline void SetExportToken(const char* value) { m_exportTokenHasBeenSet = true; m_exportToken.assign(value); } /** *

      The export token to initiate key export from Amazon Web Services Payment * Cryptography. It also contains the signing key certificate that will sign the - * wrapped key during TR-34 key block generation. Call - * GetParametersForExport to receive an export token. It expires after 7 - * days. You can use the same export token to export multiple keys from the same - * service account.

      + * wrapped key during TR-34 key block generation. Call GetParametersForExport + * to receive an export token. It expires after 7 days. You can use the same export + * token to export multiple keys from the same service account.

      */ inline ExportTr34KeyBlock& WithExportToken(const Aws::String& value) { SetExportToken(value); return *this;} /** *

      The export token to initiate key export from Amazon Web Services Payment * Cryptography. It also contains the signing key certificate that will sign the - * wrapped key during TR-34 key block generation. Call - * GetParametersForExport to receive an export token. It expires after 7 - * days. You can use the same export token to export multiple keys from the same - * service account.

      + * wrapped key during TR-34 key block generation. Call GetParametersForExport + * to receive an export token. It expires after 7 days. You can use the same export + * token to export multiple keys from the same service account.

      */ inline ExportTr34KeyBlock& WithExportToken(Aws::String&& value) { SetExportToken(std::move(value)); return *this;} /** *

      The export token to initiate key export from Amazon Web Services Payment * Cryptography. It also contains the signing key certificate that will sign the - * wrapped key during TR-34 key block generation. Call - * GetParametersForExport to receive an export token. It expires after 7 - * days. You can use the same export token to export multiple keys from the same - * service account.

      + * wrapped key during TR-34 key block generation. Call GetParametersForExport + * to receive an export token. It expires after 7 days. You can use the same export + * token to export multiple keys from the same service account.

      */ inline ExportTr34KeyBlock& WithExportToken(const char* value) { SetExportToken(value); return *this;} @@ -264,58 +314,49 @@ namespace Model /** - *

      The KeyARN of the wrapping key certificate. Amazon Web Services - * Payment Cryptography uses this certificate to wrap the key under export.

      - */ - inline const Aws::String& GetWrappingKeyCertificate() const{ return m_wrappingKeyCertificate; } - - /** - *

      The KeyARN of the wrapping key certificate. Amazon Web Services - * Payment Cryptography uses this certificate to wrap the key under export.

      - */ - inline bool WrappingKeyCertificateHasBeenSet() const { return m_wrappingKeyCertificateHasBeenSet; } - - /** - *

      The KeyARN of the wrapping key certificate. Amazon Web Services - * Payment Cryptography uses this certificate to wrap the key under export.

      + *

      Optional metadata for export associated with the key material. This data is + * signed but transmitted in clear text.

      */ - inline void SetWrappingKeyCertificate(const Aws::String& value) { m_wrappingKeyCertificateHasBeenSet = true; m_wrappingKeyCertificate = value; } + inline const KeyBlockHeaders& GetKeyBlockHeaders() const{ return m_keyBlockHeaders; } /** - *

      The KeyARN of the wrapping key certificate. Amazon Web Services - * Payment Cryptography uses this certificate to wrap the key under export.

      + *

      Optional metadata for export associated with the key material. This data is + * signed but transmitted in clear text.

      */ - inline void SetWrappingKeyCertificate(Aws::String&& value) { m_wrappingKeyCertificateHasBeenSet = true; m_wrappingKeyCertificate = std::move(value); } + inline bool KeyBlockHeadersHasBeenSet() const { return m_keyBlockHeadersHasBeenSet; } /** - *

      The KeyARN of the wrapping key certificate. Amazon Web Services - * Payment Cryptography uses this certificate to wrap the key under export.

      + *

      Optional metadata for export associated with the key material. This data is + * signed but transmitted in clear text.

      */ - inline void SetWrappingKeyCertificate(const char* value) { m_wrappingKeyCertificateHasBeenSet = true; m_wrappingKeyCertificate.assign(value); } + inline void SetKeyBlockHeaders(const KeyBlockHeaders& value) { m_keyBlockHeadersHasBeenSet = true; m_keyBlockHeaders = value; } /** - *

      The KeyARN of the wrapping key certificate. Amazon Web Services - * Payment Cryptography uses this certificate to wrap the key under export.

      + *

      Optional metadata for export associated with the key material. This data is + * signed but transmitted in clear text.

      */ - inline ExportTr34KeyBlock& WithWrappingKeyCertificate(const Aws::String& value) { SetWrappingKeyCertificate(value); return *this;} + inline void SetKeyBlockHeaders(KeyBlockHeaders&& value) { m_keyBlockHeadersHasBeenSet = true; m_keyBlockHeaders = std::move(value); } /** - *

      The KeyARN of the wrapping key certificate. Amazon Web Services - * Payment Cryptography uses this certificate to wrap the key under export.

      + *

      Optional metadata for export associated with the key material. This data is + * signed but transmitted in clear text.

      */ - inline ExportTr34KeyBlock& WithWrappingKeyCertificate(Aws::String&& value) { SetWrappingKeyCertificate(std::move(value)); return *this;} + inline ExportTr34KeyBlock& WithKeyBlockHeaders(const KeyBlockHeaders& value) { SetKeyBlockHeaders(value); return *this;} /** - *

      The KeyARN of the wrapping key certificate. Amazon Web Services - * Payment Cryptography uses this certificate to wrap the key under export.

      + *

      Optional metadata for export associated with the key material. This data is + * signed but transmitted in clear text.

      */ - inline ExportTr34KeyBlock& WithWrappingKeyCertificate(const char* value) { SetWrappingKeyCertificate(value); return *this;} + inline ExportTr34KeyBlock& WithKeyBlockHeaders(KeyBlockHeaders&& value) { SetKeyBlockHeaders(std::move(value)); return *this;} private: Aws::String m_certificateAuthorityPublicKeyIdentifier; bool m_certificateAuthorityPublicKeyIdentifierHasBeenSet = false; + Aws::String m_wrappingKeyCertificate; + bool m_wrappingKeyCertificateHasBeenSet = false; + Aws::String m_exportToken; bool m_exportTokenHasBeenSet = false; @@ -325,8 +366,8 @@ namespace Model Aws::String m_randomNonce; bool m_randomNonceHasBeenSet = false; - Aws::String m_wrappingKeyCertificate; - bool m_wrappingKeyCertificateHasBeenSet = false; + KeyBlockHeaders m_keyBlockHeaders; + bool m_keyBlockHeadersHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-payment-cryptography/include/aws/payment-cryptography/model/GetParametersForExportResult.h b/generated/src/aws-cpp-sdk-payment-cryptography/include/aws/payment-cryptography/model/GetParametersForExportResult.h index 3df23c43541..8cd09a72fad 100644 --- a/generated/src/aws-cpp-sdk-payment-cryptography/include/aws/payment-cryptography/model/GetParametersForExportResult.h +++ b/generated/src/aws-cpp-sdk-payment-cryptography/include/aws/payment-cryptography/model/GetParametersForExportResult.h @@ -6,8 +6,8 @@ #pragma once #include #include -#include #include +#include #include namespace Aws @@ -35,79 +35,96 @@ namespace Model /** - *

      The export token to initiate key export from Amazon Web Services Payment - * Cryptography. The export token expires after 7 days. You can use the same export - * token to export multiple keys from the same service account.

      + *

      The signing key certificate in PEM format (base64 encoded) of the public key + * for signature within the TR-34 key block. The certificate expires after 7 + * days.

      */ - inline const Aws::String& GetExportToken() const{ return m_exportToken; } + inline const Aws::String& GetSigningKeyCertificate() const{ return m_signingKeyCertificate; } /** - *

      The export token to initiate key export from Amazon Web Services Payment - * Cryptography. The export token expires after 7 days. You can use the same export - * token to export multiple keys from the same service account.

      + *

      The signing key certificate in PEM format (base64 encoded) of the public key + * for signature within the TR-34 key block. The certificate expires after 7 + * days.

      */ - inline void SetExportToken(const Aws::String& value) { m_exportToken = value; } + inline void SetSigningKeyCertificate(const Aws::String& value) { m_signingKeyCertificate = value; } /** - *

      The export token to initiate key export from Amazon Web Services Payment - * Cryptography. The export token expires after 7 days. You can use the same export - * token to export multiple keys from the same service account.

      + *

      The signing key certificate in PEM format (base64 encoded) of the public key + * for signature within the TR-34 key block. The certificate expires after 7 + * days.

      */ - inline void SetExportToken(Aws::String&& value) { m_exportToken = std::move(value); } + inline void SetSigningKeyCertificate(Aws::String&& value) { m_signingKeyCertificate = std::move(value); } /** - *

      The export token to initiate key export from Amazon Web Services Payment - * Cryptography. The export token expires after 7 days. You can use the same export - * token to export multiple keys from the same service account.

      + *

      The signing key certificate in PEM format (base64 encoded) of the public key + * for signature within the TR-34 key block. The certificate expires after 7 + * days.

      */ - inline void SetExportToken(const char* value) { m_exportToken.assign(value); } + inline void SetSigningKeyCertificate(const char* value) { m_signingKeyCertificate.assign(value); } /** - *

      The export token to initiate key export from Amazon Web Services Payment - * Cryptography. The export token expires after 7 days. You can use the same export - * token to export multiple keys from the same service account.

      + *

      The signing key certificate in PEM format (base64 encoded) of the public key + * for signature within the TR-34 key block. The certificate expires after 7 + * days.

      */ - inline GetParametersForExportResult& WithExportToken(const Aws::String& value) { SetExportToken(value); return *this;} + inline GetParametersForExportResult& WithSigningKeyCertificate(const Aws::String& value) { SetSigningKeyCertificate(value); return *this;} /** - *

      The export token to initiate key export from Amazon Web Services Payment - * Cryptography. The export token expires after 7 days. You can use the same export - * token to export multiple keys from the same service account.

      + *

      The signing key certificate in PEM format (base64 encoded) of the public key + * for signature within the TR-34 key block. The certificate expires after 7 + * days.

      */ - inline GetParametersForExportResult& WithExportToken(Aws::String&& value) { SetExportToken(std::move(value)); return *this;} + inline GetParametersForExportResult& WithSigningKeyCertificate(Aws::String&& value) { SetSigningKeyCertificate(std::move(value)); return *this;} /** - *

      The export token to initiate key export from Amazon Web Services Payment - * Cryptography. The export token expires after 7 days. You can use the same export - * token to export multiple keys from the same service account.

      + *

      The signing key certificate in PEM format (base64 encoded) of the public key + * for signature within the TR-34 key block. The certificate expires after 7 + * days.

      */ - inline GetParametersForExportResult& WithExportToken(const char* value) { SetExportToken(value); return *this;} + inline GetParametersForExportResult& WithSigningKeyCertificate(const char* value) { SetSigningKeyCertificate(value); return *this;} /** - *

      The validity period of the export token.

      + *

      The root certificate authority (CA) that signed the signing key certificate + * in PEM format (base64 encoded).

      */ - inline const Aws::Utils::DateTime& GetParametersValidUntilTimestamp() const{ return m_parametersValidUntilTimestamp; } + inline const Aws::String& GetSigningKeyCertificateChain() const{ return m_signingKeyCertificateChain; } /** - *

      The validity period of the export token.

      + *

      The root certificate authority (CA) that signed the signing key certificate + * in PEM format (base64 encoded).

      */ - inline void SetParametersValidUntilTimestamp(const Aws::Utils::DateTime& value) { m_parametersValidUntilTimestamp = value; } + inline void SetSigningKeyCertificateChain(const Aws::String& value) { m_signingKeyCertificateChain = value; } /** - *

      The validity period of the export token.

      + *

      The root certificate authority (CA) that signed the signing key certificate + * in PEM format (base64 encoded).

      */ - inline void SetParametersValidUntilTimestamp(Aws::Utils::DateTime&& value) { m_parametersValidUntilTimestamp = std::move(value); } + inline void SetSigningKeyCertificateChain(Aws::String&& value) { m_signingKeyCertificateChain = std::move(value); } /** - *

      The validity period of the export token.

      + *

      The root certificate authority (CA) that signed the signing key certificate + * in PEM format (base64 encoded).

      */ - inline GetParametersForExportResult& WithParametersValidUntilTimestamp(const Aws::Utils::DateTime& value) { SetParametersValidUntilTimestamp(value); return *this;} + inline void SetSigningKeyCertificateChain(const char* value) { m_signingKeyCertificateChain.assign(value); } /** - *

      The validity period of the export token.

      + *

      The root certificate authority (CA) that signed the signing key certificate + * in PEM format (base64 encoded).

      */ - inline GetParametersForExportResult& WithParametersValidUntilTimestamp(Aws::Utils::DateTime&& value) { SetParametersValidUntilTimestamp(std::move(value)); return *this;} + inline GetParametersForExportResult& WithSigningKeyCertificateChain(const Aws::String& value) { SetSigningKeyCertificateChain(value); return *this;} + + /** + *

      The root certificate authority (CA) that signed the signing key certificate + * in PEM format (base64 encoded).

      + */ + inline GetParametersForExportResult& WithSigningKeyCertificateChain(Aws::String&& value) { SetSigningKeyCertificateChain(std::move(value)); return *this;} + + /** + *

      The root certificate authority (CA) that signed the signing key certificate + * in PEM format (base64 encoded).

      + */ + inline GetParametersForExportResult& WithSigningKeyCertificateChain(const char* value) { SetSigningKeyCertificateChain(value); return *this;} /** @@ -142,96 +159,79 @@ namespace Model /** - *

      The signing key certificate in PEM format (base64 encoded) of the public key - * for signature within the TR-34 key block. The certificate expires after 7 - * days.

      - */ - inline const Aws::String& GetSigningKeyCertificate() const{ return m_signingKeyCertificate; } - - /** - *

      The signing key certificate in PEM format (base64 encoded) of the public key - * for signature within the TR-34 key block. The certificate expires after 7 - * days.

      + *

      The export token to initiate key export from Amazon Web Services Payment + * Cryptography. The export token expires after 7 days. You can use the same export + * token to export multiple keys from the same service account.

      */ - inline void SetSigningKeyCertificate(const Aws::String& value) { m_signingKeyCertificate = value; } + inline const Aws::String& GetExportToken() const{ return m_exportToken; } /** - *

      The signing key certificate in PEM format (base64 encoded) of the public key - * for signature within the TR-34 key block. The certificate expires after 7 - * days.

      + *

      The export token to initiate key export from Amazon Web Services Payment + * Cryptography. The export token expires after 7 days. You can use the same export + * token to export multiple keys from the same service account.

      */ - inline void SetSigningKeyCertificate(Aws::String&& value) { m_signingKeyCertificate = std::move(value); } + inline void SetExportToken(const Aws::String& value) { m_exportToken = value; } /** - *

      The signing key certificate in PEM format (base64 encoded) of the public key - * for signature within the TR-34 key block. The certificate expires after 7 - * days.

      + *

      The export token to initiate key export from Amazon Web Services Payment + * Cryptography. The export token expires after 7 days. You can use the same export + * token to export multiple keys from the same service account.

      */ - inline void SetSigningKeyCertificate(const char* value) { m_signingKeyCertificate.assign(value); } + inline void SetExportToken(Aws::String&& value) { m_exportToken = std::move(value); } /** - *

      The signing key certificate in PEM format (base64 encoded) of the public key - * for signature within the TR-34 key block. The certificate expires after 7 - * days.

      + *

      The export token to initiate key export from Amazon Web Services Payment + * Cryptography. The export token expires after 7 days. You can use the same export + * token to export multiple keys from the same service account.

      */ - inline GetParametersForExportResult& WithSigningKeyCertificate(const Aws::String& value) { SetSigningKeyCertificate(value); return *this;} + inline void SetExportToken(const char* value) { m_exportToken.assign(value); } /** - *

      The signing key certificate in PEM format (base64 encoded) of the public key - * for signature within the TR-34 key block. The certificate expires after 7 - * days.

      + *

      The export token to initiate key export from Amazon Web Services Payment + * Cryptography. The export token expires after 7 days. You can use the same export + * token to export multiple keys from the same service account.

      */ - inline GetParametersForExportResult& WithSigningKeyCertificate(Aws::String&& value) { SetSigningKeyCertificate(std::move(value)); return *this;} + inline GetParametersForExportResult& WithExportToken(const Aws::String& value) { SetExportToken(value); return *this;} /** - *

      The signing key certificate in PEM format (base64 encoded) of the public key - * for signature within the TR-34 key block. The certificate expires after 7 - * days.

      + *

      The export token to initiate key export from Amazon Web Services Payment + * Cryptography. The export token expires after 7 days. You can use the same export + * token to export multiple keys from the same service account.

      */ - inline GetParametersForExportResult& WithSigningKeyCertificate(const char* value) { SetSigningKeyCertificate(value); return *this;} - + inline GetParametersForExportResult& WithExportToken(Aws::String&& value) { SetExportToken(std::move(value)); return *this;} /** - *

      The root certificate authority (CA) that signed the signing key certificate - * in PEM format (base64 encoded).

      + *

      The export token to initiate key export from Amazon Web Services Payment + * Cryptography. The export token expires after 7 days. You can use the same export + * token to export multiple keys from the same service account.

      */ - inline const Aws::String& GetSigningKeyCertificateChain() const{ return m_signingKeyCertificateChain; } + inline GetParametersForExportResult& WithExportToken(const char* value) { SetExportToken(value); return *this;} - /** - *

      The root certificate authority (CA) that signed the signing key certificate - * in PEM format (base64 encoded).

      - */ - inline void SetSigningKeyCertificateChain(const Aws::String& value) { m_signingKeyCertificateChain = value; } /** - *

      The root certificate authority (CA) that signed the signing key certificate - * in PEM format (base64 encoded).

      + *

      The validity period of the export token.

      */ - inline void SetSigningKeyCertificateChain(Aws::String&& value) { m_signingKeyCertificateChain = std::move(value); } + inline const Aws::Utils::DateTime& GetParametersValidUntilTimestamp() const{ return m_parametersValidUntilTimestamp; } /** - *

      The root certificate authority (CA) that signed the signing key certificate - * in PEM format (base64 encoded).

      + *

      The validity period of the export token.

      */ - inline void SetSigningKeyCertificateChain(const char* value) { m_signingKeyCertificateChain.assign(value); } + inline void SetParametersValidUntilTimestamp(const Aws::Utils::DateTime& value) { m_parametersValidUntilTimestamp = value; } /** - *

      The root certificate authority (CA) that signed the signing key certificate - * in PEM format (base64 encoded).

      + *

      The validity period of the export token.

      */ - inline GetParametersForExportResult& WithSigningKeyCertificateChain(const Aws::String& value) { SetSigningKeyCertificateChain(value); return *this;} + inline void SetParametersValidUntilTimestamp(Aws::Utils::DateTime&& value) { m_parametersValidUntilTimestamp = std::move(value); } /** - *

      The root certificate authority (CA) that signed the signing key certificate - * in PEM format (base64 encoded).

      + *

      The validity period of the export token.

      */ - inline GetParametersForExportResult& WithSigningKeyCertificateChain(Aws::String&& value) { SetSigningKeyCertificateChain(std::move(value)); return *this;} + inline GetParametersForExportResult& WithParametersValidUntilTimestamp(const Aws::Utils::DateTime& value) { SetParametersValidUntilTimestamp(value); return *this;} /** - *

      The root certificate authority (CA) that signed the signing key certificate - * in PEM format (base64 encoded).

      + *

      The validity period of the export token.

      */ - inline GetParametersForExportResult& WithSigningKeyCertificateChain(const char* value) { SetSigningKeyCertificateChain(value); return *this;} + inline GetParametersForExportResult& WithParametersValidUntilTimestamp(Aws::Utils::DateTime&& value) { SetParametersValidUntilTimestamp(std::move(value)); return *this;} @@ -257,15 +257,15 @@ namespace Model private: - Aws::String m_exportToken; + Aws::String m_signingKeyCertificate; - Aws::Utils::DateTime m_parametersValidUntilTimestamp; + Aws::String m_signingKeyCertificateChain; KeyAlgorithm m_signingKeyAlgorithm; - Aws::String m_signingKeyCertificate; + Aws::String m_exportToken; - Aws::String m_signingKeyCertificateChain; + Aws::Utils::DateTime m_parametersValidUntilTimestamp; Aws::String m_requestId; }; diff --git a/generated/src/aws-cpp-sdk-payment-cryptography/include/aws/payment-cryptography/model/GetParametersForImportResult.h b/generated/src/aws-cpp-sdk-payment-cryptography/include/aws/payment-cryptography/model/GetParametersForImportResult.h index ee2617f8f83..664a4d41bf9 100644 --- a/generated/src/aws-cpp-sdk-payment-cryptography/include/aws/payment-cryptography/model/GetParametersForImportResult.h +++ b/generated/src/aws-cpp-sdk-payment-cryptography/include/aws/payment-cryptography/model/GetParametersForImportResult.h @@ -6,8 +6,8 @@ #pragma once #include #include -#include #include +#include #include namespace Aws @@ -35,79 +35,89 @@ namespace Model /** - *

      The import token to initiate key import into Amazon Web Services Payment - * Cryptography. The import token expires after 7 days. You can use the same import - * token to import multiple keys to the same service account.

      + *

      The wrapping key certificate in PEM format (base64 encoded) of the wrapping + * key for use within the TR-34 key block. The certificate expires in 7 days.

      */ - inline const Aws::String& GetImportToken() const{ return m_importToken; } + inline const Aws::String& GetWrappingKeyCertificate() const{ return m_wrappingKeyCertificate; } /** - *

      The import token to initiate key import into Amazon Web Services Payment - * Cryptography. The import token expires after 7 days. You can use the same import - * token to import multiple keys to the same service account.

      + *

      The wrapping key certificate in PEM format (base64 encoded) of the wrapping + * key for use within the TR-34 key block. The certificate expires in 7 days.

      */ - inline void SetImportToken(const Aws::String& value) { m_importToken = value; } + inline void SetWrappingKeyCertificate(const Aws::String& value) { m_wrappingKeyCertificate = value; } /** - *

      The import token to initiate key import into Amazon Web Services Payment - * Cryptography. The import token expires after 7 days. You can use the same import - * token to import multiple keys to the same service account.

      + *

      The wrapping key certificate in PEM format (base64 encoded) of the wrapping + * key for use within the TR-34 key block. The certificate expires in 7 days.

      */ - inline void SetImportToken(Aws::String&& value) { m_importToken = std::move(value); } + inline void SetWrappingKeyCertificate(Aws::String&& value) { m_wrappingKeyCertificate = std::move(value); } /** - *

      The import token to initiate key import into Amazon Web Services Payment - * Cryptography. The import token expires after 7 days. You can use the same import - * token to import multiple keys to the same service account.

      + *

      The wrapping key certificate in PEM format (base64 encoded) of the wrapping + * key for use within the TR-34 key block. The certificate expires in 7 days.

      */ - inline void SetImportToken(const char* value) { m_importToken.assign(value); } + inline void SetWrappingKeyCertificate(const char* value) { m_wrappingKeyCertificate.assign(value); } /** - *

      The import token to initiate key import into Amazon Web Services Payment - * Cryptography. The import token expires after 7 days. You can use the same import - * token to import multiple keys to the same service account.

      + *

      The wrapping key certificate in PEM format (base64 encoded) of the wrapping + * key for use within the TR-34 key block. The certificate expires in 7 days.

      */ - inline GetParametersForImportResult& WithImportToken(const Aws::String& value) { SetImportToken(value); return *this;} + inline GetParametersForImportResult& WithWrappingKeyCertificate(const Aws::String& value) { SetWrappingKeyCertificate(value); return *this;} /** - *

      The import token to initiate key import into Amazon Web Services Payment - * Cryptography. The import token expires after 7 days. You can use the same import - * token to import multiple keys to the same service account.

      + *

      The wrapping key certificate in PEM format (base64 encoded) of the wrapping + * key for use within the TR-34 key block. The certificate expires in 7 days.

      */ - inline GetParametersForImportResult& WithImportToken(Aws::String&& value) { SetImportToken(std::move(value)); return *this;} + inline GetParametersForImportResult& WithWrappingKeyCertificate(Aws::String&& value) { SetWrappingKeyCertificate(std::move(value)); return *this;} /** - *

      The import token to initiate key import into Amazon Web Services Payment - * Cryptography. The import token expires after 7 days. You can use the same import - * token to import multiple keys to the same service account.

      + *

      The wrapping key certificate in PEM format (base64 encoded) of the wrapping + * key for use within the TR-34 key block. The certificate expires in 7 days.

      */ - inline GetParametersForImportResult& WithImportToken(const char* value) { SetImportToken(value); return *this;} + inline GetParametersForImportResult& WithWrappingKeyCertificate(const char* value) { SetWrappingKeyCertificate(value); return *this;} /** - *

      The validity period of the import token.

      + *

      The Amazon Web Services Payment Cryptography root certificate authority (CA) + * that signed the wrapping key certificate in PEM format (base64 encoded).

      */ - inline const Aws::Utils::DateTime& GetParametersValidUntilTimestamp() const{ return m_parametersValidUntilTimestamp; } + inline const Aws::String& GetWrappingKeyCertificateChain() const{ return m_wrappingKeyCertificateChain; } /** - *

      The validity period of the import token.

      + *

      The Amazon Web Services Payment Cryptography root certificate authority (CA) + * that signed the wrapping key certificate in PEM format (base64 encoded).

      */ - inline void SetParametersValidUntilTimestamp(const Aws::Utils::DateTime& value) { m_parametersValidUntilTimestamp = value; } + inline void SetWrappingKeyCertificateChain(const Aws::String& value) { m_wrappingKeyCertificateChain = value; } /** - *

      The validity period of the import token.

      + *

      The Amazon Web Services Payment Cryptography root certificate authority (CA) + * that signed the wrapping key certificate in PEM format (base64 encoded).

      */ - inline void SetParametersValidUntilTimestamp(Aws::Utils::DateTime&& value) { m_parametersValidUntilTimestamp = std::move(value); } + inline void SetWrappingKeyCertificateChain(Aws::String&& value) { m_wrappingKeyCertificateChain = std::move(value); } /** - *

      The validity period of the import token.

      + *

      The Amazon Web Services Payment Cryptography root certificate authority (CA) + * that signed the wrapping key certificate in PEM format (base64 encoded).

      */ - inline GetParametersForImportResult& WithParametersValidUntilTimestamp(const Aws::Utils::DateTime& value) { SetParametersValidUntilTimestamp(value); return *this;} + inline void SetWrappingKeyCertificateChain(const char* value) { m_wrappingKeyCertificateChain.assign(value); } /** - *

      The validity period of the import token.

      + *

      The Amazon Web Services Payment Cryptography root certificate authority (CA) + * that signed the wrapping key certificate in PEM format (base64 encoded).

      */ - inline GetParametersForImportResult& WithParametersValidUntilTimestamp(Aws::Utils::DateTime&& value) { SetParametersValidUntilTimestamp(std::move(value)); return *this;} + inline GetParametersForImportResult& WithWrappingKeyCertificateChain(const Aws::String& value) { SetWrappingKeyCertificateChain(value); return *this;} + + /** + *

      The Amazon Web Services Payment Cryptography root certificate authority (CA) + * that signed the wrapping key certificate in PEM format (base64 encoded).

      + */ + inline GetParametersForImportResult& WithWrappingKeyCertificateChain(Aws::String&& value) { SetWrappingKeyCertificateChain(std::move(value)); return *this;} + + /** + *

      The Amazon Web Services Payment Cryptography root certificate authority (CA) + * that signed the wrapping key certificate in PEM format (base64 encoded).

      + */ + inline GetParametersForImportResult& WithWrappingKeyCertificateChain(const char* value) { SetWrappingKeyCertificateChain(value); return *this;} /** @@ -142,89 +152,79 @@ namespace Model /** - *

      The wrapping key certificate in PEM format (base64 encoded) of the wrapping - * key for use within the TR-34 key block. The certificate expires in 7 days.

      - */ - inline const Aws::String& GetWrappingKeyCertificate() const{ return m_wrappingKeyCertificate; } - - /** - *

      The wrapping key certificate in PEM format (base64 encoded) of the wrapping - * key for use within the TR-34 key block. The certificate expires in 7 days.

      + *

      The import token to initiate key import into Amazon Web Services Payment + * Cryptography. The import token expires after 7 days. You can use the same import + * token to import multiple keys to the same service account.

      */ - inline void SetWrappingKeyCertificate(const Aws::String& value) { m_wrappingKeyCertificate = value; } + inline const Aws::String& GetImportToken() const{ return m_importToken; } /** - *

      The wrapping key certificate in PEM format (base64 encoded) of the wrapping - * key for use within the TR-34 key block. The certificate expires in 7 days.

      + *

      The import token to initiate key import into Amazon Web Services Payment + * Cryptography. The import token expires after 7 days. You can use the same import + * token to import multiple keys to the same service account.

      */ - inline void SetWrappingKeyCertificate(Aws::String&& value) { m_wrappingKeyCertificate = std::move(value); } + inline void SetImportToken(const Aws::String& value) { m_importToken = value; } /** - *

      The wrapping key certificate in PEM format (base64 encoded) of the wrapping - * key for use within the TR-34 key block. The certificate expires in 7 days.

      + *

      The import token to initiate key import into Amazon Web Services Payment + * Cryptography. The import token expires after 7 days. You can use the same import + * token to import multiple keys to the same service account.

      */ - inline void SetWrappingKeyCertificate(const char* value) { m_wrappingKeyCertificate.assign(value); } + inline void SetImportToken(Aws::String&& value) { m_importToken = std::move(value); } /** - *

      The wrapping key certificate in PEM format (base64 encoded) of the wrapping - * key for use within the TR-34 key block. The certificate expires in 7 days.

      + *

      The import token to initiate key import into Amazon Web Services Payment + * Cryptography. The import token expires after 7 days. You can use the same import + * token to import multiple keys to the same service account.

      */ - inline GetParametersForImportResult& WithWrappingKeyCertificate(const Aws::String& value) { SetWrappingKeyCertificate(value); return *this;} + inline void SetImportToken(const char* value) { m_importToken.assign(value); } /** - *

      The wrapping key certificate in PEM format (base64 encoded) of the wrapping - * key for use within the TR-34 key block. The certificate expires in 7 days.

      + *

      The import token to initiate key import into Amazon Web Services Payment + * Cryptography. The import token expires after 7 days. You can use the same import + * token to import multiple keys to the same service account.

      */ - inline GetParametersForImportResult& WithWrappingKeyCertificate(Aws::String&& value) { SetWrappingKeyCertificate(std::move(value)); return *this;} + inline GetParametersForImportResult& WithImportToken(const Aws::String& value) { SetImportToken(value); return *this;} /** - *

      The wrapping key certificate in PEM format (base64 encoded) of the wrapping - * key for use within the TR-34 key block. The certificate expires in 7 days.

      + *

      The import token to initiate key import into Amazon Web Services Payment + * Cryptography. The import token expires after 7 days. You can use the same import + * token to import multiple keys to the same service account.

      */ - inline GetParametersForImportResult& WithWrappingKeyCertificate(const char* value) { SetWrappingKeyCertificate(value); return *this;} - + inline GetParametersForImportResult& WithImportToken(Aws::String&& value) { SetImportToken(std::move(value)); return *this;} /** - *

      The Amazon Web Services Payment Cryptography root certificate authority (CA) - * that signed the wrapping key certificate in PEM format (base64 encoded).

      + *

      The import token to initiate key import into Amazon Web Services Payment + * Cryptography. The import token expires after 7 days. You can use the same import + * token to import multiple keys to the same service account.

      */ - inline const Aws::String& GetWrappingKeyCertificateChain() const{ return m_wrappingKeyCertificateChain; } + inline GetParametersForImportResult& WithImportToken(const char* value) { SetImportToken(value); return *this;} - /** - *

      The Amazon Web Services Payment Cryptography root certificate authority (CA) - * that signed the wrapping key certificate in PEM format (base64 encoded).

      - */ - inline void SetWrappingKeyCertificateChain(const Aws::String& value) { m_wrappingKeyCertificateChain = value; } /** - *

      The Amazon Web Services Payment Cryptography root certificate authority (CA) - * that signed the wrapping key certificate in PEM format (base64 encoded).

      + *

      The validity period of the import token.

      */ - inline void SetWrappingKeyCertificateChain(Aws::String&& value) { m_wrappingKeyCertificateChain = std::move(value); } + inline const Aws::Utils::DateTime& GetParametersValidUntilTimestamp() const{ return m_parametersValidUntilTimestamp; } /** - *

      The Amazon Web Services Payment Cryptography root certificate authority (CA) - * that signed the wrapping key certificate in PEM format (base64 encoded).

      + *

      The validity period of the import token.

      */ - inline void SetWrappingKeyCertificateChain(const char* value) { m_wrappingKeyCertificateChain.assign(value); } + inline void SetParametersValidUntilTimestamp(const Aws::Utils::DateTime& value) { m_parametersValidUntilTimestamp = value; } /** - *

      The Amazon Web Services Payment Cryptography root certificate authority (CA) - * that signed the wrapping key certificate in PEM format (base64 encoded).

      + *

      The validity period of the import token.

      */ - inline GetParametersForImportResult& WithWrappingKeyCertificateChain(const Aws::String& value) { SetWrappingKeyCertificateChain(value); return *this;} + inline void SetParametersValidUntilTimestamp(Aws::Utils::DateTime&& value) { m_parametersValidUntilTimestamp = std::move(value); } /** - *

      The Amazon Web Services Payment Cryptography root certificate authority (CA) - * that signed the wrapping key certificate in PEM format (base64 encoded).

      + *

      The validity period of the import token.

      */ - inline GetParametersForImportResult& WithWrappingKeyCertificateChain(Aws::String&& value) { SetWrappingKeyCertificateChain(std::move(value)); return *this;} + inline GetParametersForImportResult& WithParametersValidUntilTimestamp(const Aws::Utils::DateTime& value) { SetParametersValidUntilTimestamp(value); return *this;} /** - *

      The Amazon Web Services Payment Cryptography root certificate authority (CA) - * that signed the wrapping key certificate in PEM format (base64 encoded).

      + *

      The validity period of the import token.

      */ - inline GetParametersForImportResult& WithWrappingKeyCertificateChain(const char* value) { SetWrappingKeyCertificateChain(value); return *this;} + inline GetParametersForImportResult& WithParametersValidUntilTimestamp(Aws::Utils::DateTime&& value) { SetParametersValidUntilTimestamp(std::move(value)); return *this;} @@ -250,15 +250,15 @@ namespace Model private: - Aws::String m_importToken; + Aws::String m_wrappingKeyCertificate; - Aws::Utils::DateTime m_parametersValidUntilTimestamp; + Aws::String m_wrappingKeyCertificateChain; KeyAlgorithm m_wrappingKeyAlgorithm; - Aws::String m_wrappingKeyCertificate; + Aws::String m_importToken; - Aws::String m_wrappingKeyCertificateChain; + Aws::Utils::DateTime m_parametersValidUntilTimestamp; Aws::String m_requestId; }; diff --git a/generated/src/aws-cpp-sdk-payment-cryptography/include/aws/payment-cryptography/model/ImportKeyCryptogram.h b/generated/src/aws-cpp-sdk-payment-cryptography/include/aws/payment-cryptography/model/ImportKeyCryptogram.h index 9c78fb65b32..871c3b9955c 100644 --- a/generated/src/aws-cpp-sdk-payment-cryptography/include/aws/payment-cryptography/model/ImportKeyCryptogram.h +++ b/generated/src/aws-cpp-sdk-payment-cryptography/include/aws/payment-cryptography/model/ImportKeyCryptogram.h @@ -5,8 +5,8 @@ #pragma once #include -#include #include +#include #include #include @@ -40,6 +40,25 @@ namespace Model AWS_PAYMENTCRYPTOGRAPHY_API Aws::Utils::Json::JsonValue Jsonize() const; + + inline const KeyAttributes& GetKeyAttributes() const{ return m_keyAttributes; } + + + inline bool KeyAttributesHasBeenSet() const { return m_keyAttributesHasBeenSet; } + + + inline void SetKeyAttributes(const KeyAttributes& value) { m_keyAttributesHasBeenSet = true; m_keyAttributes = value; } + + + inline void SetKeyAttributes(KeyAttributes&& value) { m_keyAttributesHasBeenSet = true; m_keyAttributes = std::move(value); } + + + inline ImportKeyCryptogram& WithKeyAttributes(const KeyAttributes& value) { SetKeyAttributes(value); return *this;} + + + inline ImportKeyCryptogram& WithKeyAttributes(KeyAttributes&& value) { SetKeyAttributes(std::move(value)); return *this;} + + /** *

      Specifies whether the key is exportable from the service.

      */ @@ -61,6 +80,47 @@ namespace Model inline ImportKeyCryptogram& WithExportable(bool value) { SetExportable(value); return *this;} + /** + *

      The RSA wrapped key cryptogram under import.

      + */ + inline const Aws::String& GetWrappedKeyCryptogram() const{ return m_wrappedKeyCryptogram; } + + /** + *

      The RSA wrapped key cryptogram under import.

      + */ + inline bool WrappedKeyCryptogramHasBeenSet() const { return m_wrappedKeyCryptogramHasBeenSet; } + + /** + *

      The RSA wrapped key cryptogram under import.

      + */ + inline void SetWrappedKeyCryptogram(const Aws::String& value) { m_wrappedKeyCryptogramHasBeenSet = true; m_wrappedKeyCryptogram = value; } + + /** + *

      The RSA wrapped key cryptogram under import.

      + */ + inline void SetWrappedKeyCryptogram(Aws::String&& value) { m_wrappedKeyCryptogramHasBeenSet = true; m_wrappedKeyCryptogram = std::move(value); } + + /** + *

      The RSA wrapped key cryptogram under import.

      + */ + inline void SetWrappedKeyCryptogram(const char* value) { m_wrappedKeyCryptogramHasBeenSet = true; m_wrappedKeyCryptogram.assign(value); } + + /** + *

      The RSA wrapped key cryptogram under import.

      + */ + inline ImportKeyCryptogram& WithWrappedKeyCryptogram(const Aws::String& value) { SetWrappedKeyCryptogram(value); return *this;} + + /** + *

      The RSA wrapped key cryptogram under import.

      + */ + inline ImportKeyCryptogram& WithWrappedKeyCryptogram(Aws::String&& value) { SetWrappedKeyCryptogram(std::move(value)); return *this;} + + /** + *

      The RSA wrapped key cryptogram under import.

      + */ + inline ImportKeyCryptogram& WithWrappedKeyCryptogram(const char* value) { SetWrappedKeyCryptogram(value); return *this;} + + /** *

      The import token that initiates key import using the asymmetric RSA wrap and * unwrap key exchange method into AWS Payment Cryptography. It expires after 7 @@ -126,66 +186,6 @@ namespace Model inline ImportKeyCryptogram& WithImportToken(const char* value) { SetImportToken(value); return *this;} - - inline const KeyAttributes& GetKeyAttributes() const{ return m_keyAttributes; } - - - inline bool KeyAttributesHasBeenSet() const { return m_keyAttributesHasBeenSet; } - - - inline void SetKeyAttributes(const KeyAttributes& value) { m_keyAttributesHasBeenSet = true; m_keyAttributes = value; } - - - inline void SetKeyAttributes(KeyAttributes&& value) { m_keyAttributesHasBeenSet = true; m_keyAttributes = std::move(value); } - - - inline ImportKeyCryptogram& WithKeyAttributes(const KeyAttributes& value) { SetKeyAttributes(value); return *this;} - - - inline ImportKeyCryptogram& WithKeyAttributes(KeyAttributes&& value) { SetKeyAttributes(std::move(value)); return *this;} - - - /** - *

      The RSA wrapped key cryptogram under import.

      - */ - inline const Aws::String& GetWrappedKeyCryptogram() const{ return m_wrappedKeyCryptogram; } - - /** - *

      The RSA wrapped key cryptogram under import.

      - */ - inline bool WrappedKeyCryptogramHasBeenSet() const { return m_wrappedKeyCryptogramHasBeenSet; } - - /** - *

      The RSA wrapped key cryptogram under import.

      - */ - inline void SetWrappedKeyCryptogram(const Aws::String& value) { m_wrappedKeyCryptogramHasBeenSet = true; m_wrappedKeyCryptogram = value; } - - /** - *

      The RSA wrapped key cryptogram under import.

      - */ - inline void SetWrappedKeyCryptogram(Aws::String&& value) { m_wrappedKeyCryptogramHasBeenSet = true; m_wrappedKeyCryptogram = std::move(value); } - - /** - *

      The RSA wrapped key cryptogram under import.

      - */ - inline void SetWrappedKeyCryptogram(const char* value) { m_wrappedKeyCryptogramHasBeenSet = true; m_wrappedKeyCryptogram.assign(value); } - - /** - *

      The RSA wrapped key cryptogram under import.

      - */ - inline ImportKeyCryptogram& WithWrappedKeyCryptogram(const Aws::String& value) { SetWrappedKeyCryptogram(value); return *this;} - - /** - *

      The RSA wrapped key cryptogram under import.

      - */ - inline ImportKeyCryptogram& WithWrappedKeyCryptogram(Aws::String&& value) { SetWrappedKeyCryptogram(std::move(value)); return *this;} - - /** - *

      The RSA wrapped key cryptogram under import.

      - */ - inline ImportKeyCryptogram& WithWrappedKeyCryptogram(const char* value) { SetWrappedKeyCryptogram(value); return *this;} - - /** *

      The wrapping spec for the wrapped key cryptogram.

      */ @@ -218,18 +218,18 @@ namespace Model private: - bool m_exportable; - bool m_exportableHasBeenSet = false; - - Aws::String m_importToken; - bool m_importTokenHasBeenSet = false; - KeyAttributes m_keyAttributes; bool m_keyAttributesHasBeenSet = false; + bool m_exportable; + bool m_exportableHasBeenSet = false; + Aws::String m_wrappedKeyCryptogram; bool m_wrappedKeyCryptogramHasBeenSet = false; + Aws::String m_importToken; + bool m_importTokenHasBeenSet = false; + WrappingKeySpec m_wrappingSpec; bool m_wrappingSpecHasBeenSet = false; }; diff --git a/generated/src/aws-cpp-sdk-payment-cryptography/include/aws/payment-cryptography/model/ImportKeyMaterial.h b/generated/src/aws-cpp-sdk-payment-cryptography/include/aws/payment-cryptography/model/ImportKeyMaterial.h index 2c7cd80f454..dd17a561aec 100644 --- a/generated/src/aws-cpp-sdk-payment-cryptography/include/aws/payment-cryptography/model/ImportKeyMaterial.h +++ b/generated/src/aws-cpp-sdk-payment-cryptography/include/aws/payment-cryptography/model/ImportKeyMaterial.h @@ -5,11 +5,11 @@ #pragma once #include -#include #include +#include #include #include -#include +#include #include namespace Aws @@ -44,71 +44,65 @@ namespace Model /** - *

      Parameter information for key material import using asymmetric RSA wrap and - * unwrap key exchange method.

      + *

      Parameter information for root public key certificate import.

      */ - inline const ImportKeyCryptogram& GetKeyCryptogram() const{ return m_keyCryptogram; } + inline const RootCertificatePublicKey& GetRootCertificatePublicKey() const{ return m_rootCertificatePublicKey; } /** - *

      Parameter information for key material import using asymmetric RSA wrap and - * unwrap key exchange method.

      + *

      Parameter information for root public key certificate import.

      */ - inline bool KeyCryptogramHasBeenSet() const { return m_keyCryptogramHasBeenSet; } + inline bool RootCertificatePublicKeyHasBeenSet() const { return m_rootCertificatePublicKeyHasBeenSet; } /** - *

      Parameter information for key material import using asymmetric RSA wrap and - * unwrap key exchange method.

      + *

      Parameter information for root public key certificate import.

      */ - inline void SetKeyCryptogram(const ImportKeyCryptogram& value) { m_keyCryptogramHasBeenSet = true; m_keyCryptogram = value; } + inline void SetRootCertificatePublicKey(const RootCertificatePublicKey& value) { m_rootCertificatePublicKeyHasBeenSet = true; m_rootCertificatePublicKey = value; } /** - *

      Parameter information for key material import using asymmetric RSA wrap and - * unwrap key exchange method.

      + *

      Parameter information for root public key certificate import.

      */ - inline void SetKeyCryptogram(ImportKeyCryptogram&& value) { m_keyCryptogramHasBeenSet = true; m_keyCryptogram = std::move(value); } + inline void SetRootCertificatePublicKey(RootCertificatePublicKey&& value) { m_rootCertificatePublicKeyHasBeenSet = true; m_rootCertificatePublicKey = std::move(value); } /** - *

      Parameter information for key material import using asymmetric RSA wrap and - * unwrap key exchange method.

      + *

      Parameter information for root public key certificate import.

      */ - inline ImportKeyMaterial& WithKeyCryptogram(const ImportKeyCryptogram& value) { SetKeyCryptogram(value); return *this;} + inline ImportKeyMaterial& WithRootCertificatePublicKey(const RootCertificatePublicKey& value) { SetRootCertificatePublicKey(value); return *this;} /** - *

      Parameter information for key material import using asymmetric RSA wrap and - * unwrap key exchange method.

      + *

      Parameter information for root public key certificate import.

      */ - inline ImportKeyMaterial& WithKeyCryptogram(ImportKeyCryptogram&& value) { SetKeyCryptogram(std::move(value)); return *this;} + inline ImportKeyMaterial& WithRootCertificatePublicKey(RootCertificatePublicKey&& value) { SetRootCertificatePublicKey(std::move(value)); return *this;} /** - *

      Parameter information for root public key certificate import.

      + *

      Parameter information for trusted public key certificate import.

      */ - inline const RootCertificatePublicKey& GetRootCertificatePublicKey() const{ return m_rootCertificatePublicKey; } + inline const TrustedCertificatePublicKey& GetTrustedCertificatePublicKey() const{ return m_trustedCertificatePublicKey; } /** - *

      Parameter information for root public key certificate import.

      + *

      Parameter information for trusted public key certificate import.

      */ - inline bool RootCertificatePublicKeyHasBeenSet() const { return m_rootCertificatePublicKeyHasBeenSet; } + inline bool TrustedCertificatePublicKeyHasBeenSet() const { return m_trustedCertificatePublicKeyHasBeenSet; } /** - *

      Parameter information for root public key certificate import.

      + *

      Parameter information for trusted public key certificate import.

      */ - inline void SetRootCertificatePublicKey(const RootCertificatePublicKey& value) { m_rootCertificatePublicKeyHasBeenSet = true; m_rootCertificatePublicKey = value; } + inline void SetTrustedCertificatePublicKey(const TrustedCertificatePublicKey& value) { m_trustedCertificatePublicKeyHasBeenSet = true; m_trustedCertificatePublicKey = value; } /** - *

      Parameter information for root public key certificate import.

      + *

      Parameter information for trusted public key certificate import.

      */ - inline void SetRootCertificatePublicKey(RootCertificatePublicKey&& value) { m_rootCertificatePublicKeyHasBeenSet = true; m_rootCertificatePublicKey = std::move(value); } + inline void SetTrustedCertificatePublicKey(TrustedCertificatePublicKey&& value) { m_trustedCertificatePublicKeyHasBeenSet = true; m_trustedCertificatePublicKey = std::move(value); } /** - *

      Parameter information for root public key certificate import.

      + *

      Parameter information for trusted public key certificate import.

      */ - inline ImportKeyMaterial& WithRootCertificatePublicKey(const RootCertificatePublicKey& value) { SetRootCertificatePublicKey(value); return *this;} + inline ImportKeyMaterial& WithTrustedCertificatePublicKey(const TrustedCertificatePublicKey& value) { SetTrustedCertificatePublicKey(value); return *this;} /** - *

      Parameter information for root public key certificate import.

      + *

      Parameter information for trusted public key certificate import.

      */ - inline ImportKeyMaterial& WithRootCertificatePublicKey(RootCertificatePublicKey&& value) { SetRootCertificatePublicKey(std::move(value)); return *this;} + inline ImportKeyMaterial& WithTrustedCertificatePublicKey(TrustedCertificatePublicKey&& value) { SetTrustedCertificatePublicKey(std::move(value)); return *this;} /** @@ -186,51 +180,57 @@ namespace Model /** - *

      Parameter information for trusted public key certificate import.

      + *

      Parameter information for key material import using asymmetric RSA wrap and + * unwrap key exchange method.

      */ - inline const TrustedCertificatePublicKey& GetTrustedCertificatePublicKey() const{ return m_trustedCertificatePublicKey; } + inline const ImportKeyCryptogram& GetKeyCryptogram() const{ return m_keyCryptogram; } /** - *

      Parameter information for trusted public key certificate import.

      + *

      Parameter information for key material import using asymmetric RSA wrap and + * unwrap key exchange method.

      */ - inline bool TrustedCertificatePublicKeyHasBeenSet() const { return m_trustedCertificatePublicKeyHasBeenSet; } + inline bool KeyCryptogramHasBeenSet() const { return m_keyCryptogramHasBeenSet; } /** - *

      Parameter information for trusted public key certificate import.

      + *

      Parameter information for key material import using asymmetric RSA wrap and + * unwrap key exchange method.

      */ - inline void SetTrustedCertificatePublicKey(const TrustedCertificatePublicKey& value) { m_trustedCertificatePublicKeyHasBeenSet = true; m_trustedCertificatePublicKey = value; } + inline void SetKeyCryptogram(const ImportKeyCryptogram& value) { m_keyCryptogramHasBeenSet = true; m_keyCryptogram = value; } /** - *

      Parameter information for trusted public key certificate import.

      + *

      Parameter information for key material import using asymmetric RSA wrap and + * unwrap key exchange method.

      */ - inline void SetTrustedCertificatePublicKey(TrustedCertificatePublicKey&& value) { m_trustedCertificatePublicKeyHasBeenSet = true; m_trustedCertificatePublicKey = std::move(value); } + inline void SetKeyCryptogram(ImportKeyCryptogram&& value) { m_keyCryptogramHasBeenSet = true; m_keyCryptogram = std::move(value); } /** - *

      Parameter information for trusted public key certificate import.

      + *

      Parameter information for key material import using asymmetric RSA wrap and + * unwrap key exchange method.

      */ - inline ImportKeyMaterial& WithTrustedCertificatePublicKey(const TrustedCertificatePublicKey& value) { SetTrustedCertificatePublicKey(value); return *this;} + inline ImportKeyMaterial& WithKeyCryptogram(const ImportKeyCryptogram& value) { SetKeyCryptogram(value); return *this;} /** - *

      Parameter information for trusted public key certificate import.

      + *

      Parameter information for key material import using asymmetric RSA wrap and + * unwrap key exchange method.

      */ - inline ImportKeyMaterial& WithTrustedCertificatePublicKey(TrustedCertificatePublicKey&& value) { SetTrustedCertificatePublicKey(std::move(value)); return *this;} + inline ImportKeyMaterial& WithKeyCryptogram(ImportKeyCryptogram&& value) { SetKeyCryptogram(std::move(value)); return *this;} private: - ImportKeyCryptogram m_keyCryptogram; - bool m_keyCryptogramHasBeenSet = false; - RootCertificatePublicKey m_rootCertificatePublicKey; bool m_rootCertificatePublicKeyHasBeenSet = false; + TrustedCertificatePublicKey m_trustedCertificatePublicKey; + bool m_trustedCertificatePublicKeyHasBeenSet = false; + ImportTr31KeyBlock m_tr31KeyBlock; bool m_tr31KeyBlockHasBeenSet = false; ImportTr34KeyBlock m_tr34KeyBlock; bool m_tr34KeyBlockHasBeenSet = false; - TrustedCertificatePublicKey m_trustedCertificatePublicKey; - bool m_trustedCertificatePublicKeyHasBeenSet = false; + ImportKeyCryptogram m_keyCryptogram; + bool m_keyCryptogramHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-payment-cryptography/include/aws/payment-cryptography/model/ImportKeyRequest.h b/generated/src/aws-cpp-sdk-payment-cryptography/include/aws/payment-cryptography/model/ImportKeyRequest.h index d24fc7f178e..2d09c76dd1e 100644 --- a/generated/src/aws-cpp-sdk-payment-cryptography/include/aws/payment-cryptography/model/ImportKeyRequest.h +++ b/generated/src/aws-cpp-sdk-payment-cryptography/include/aws/payment-cryptography/model/ImportKeyRequest.h @@ -6,8 +6,8 @@ #pragma once #include #include -#include #include +#include #include #include #include @@ -38,24 +38,40 @@ namespace Model /** - *

      Specifies whether import key is enabled.

      + *

      The key or public key certificate type to use during key material import, for + * example TR-34 or RootCertificatePublicKey.

      */ - inline bool GetEnabled() const{ return m_enabled; } + inline const ImportKeyMaterial& GetKeyMaterial() const{ return m_keyMaterial; } /** - *

      Specifies whether import key is enabled.

      + *

      The key or public key certificate type to use during key material import, for + * example TR-34 or RootCertificatePublicKey.

      */ - inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; } + inline bool KeyMaterialHasBeenSet() const { return m_keyMaterialHasBeenSet; } /** - *

      Specifies whether import key is enabled.

      + *

      The key or public key certificate type to use during key material import, for + * example TR-34 or RootCertificatePublicKey.

      */ - inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; } + inline void SetKeyMaterial(const ImportKeyMaterial& value) { m_keyMaterialHasBeenSet = true; m_keyMaterial = value; } /** - *

      Specifies whether import key is enabled.

      + *

      The key or public key certificate type to use during key material import, for + * example TR-34 or RootCertificatePublicKey.

      */ - inline ImportKeyRequest& WithEnabled(bool value) { SetEnabled(value); return *this;} + inline void SetKeyMaterial(ImportKeyMaterial&& value) { m_keyMaterialHasBeenSet = true; m_keyMaterial = std::move(value); } + + /** + *

      The key or public key certificate type to use during key material import, for + * example TR-34 or RootCertificatePublicKey.

      + */ + inline ImportKeyRequest& WithKeyMaterial(const ImportKeyMaterial& value) { SetKeyMaterial(value); return *this;} + + /** + *

      The key or public key certificate type to use during key material import, for + * example TR-34 or RootCertificatePublicKey.

      + */ + inline ImportKeyRequest& WithKeyMaterial(ImportKeyMaterial&& value) { SetKeyMaterial(std::move(value)); return *this;} /** @@ -126,188 +142,180 @@ namespace Model /** - *

      The key or public key certificate type to use during key material import, for - * example TR-34 or RootCertificatePublicKey.

      - */ - inline const ImportKeyMaterial& GetKeyMaterial() const{ return m_keyMaterial; } - - /** - *

      The key or public key certificate type to use during key material import, for - * example TR-34 or RootCertificatePublicKey.

      - */ - inline bool KeyMaterialHasBeenSet() const { return m_keyMaterialHasBeenSet; } - - /** - *

      The key or public key certificate type to use during key material import, for - * example TR-34 or RootCertificatePublicKey.

      + *

      Specifies whether import key is enabled.

      */ - inline void SetKeyMaterial(const ImportKeyMaterial& value) { m_keyMaterialHasBeenSet = true; m_keyMaterial = value; } + inline bool GetEnabled() const{ return m_enabled; } /** - *

      The key or public key certificate type to use during key material import, for - * example TR-34 or RootCertificatePublicKey.

      + *

      Specifies whether import key is enabled.

      */ - inline void SetKeyMaterial(ImportKeyMaterial&& value) { m_keyMaterialHasBeenSet = true; m_keyMaterial = std::move(value); } + inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; } /** - *

      The key or public key certificate type to use during key material import, for - * example TR-34 or RootCertificatePublicKey.

      + *

      Specifies whether import key is enabled.

      */ - inline ImportKeyRequest& WithKeyMaterial(const ImportKeyMaterial& value) { SetKeyMaterial(value); return *this;} + inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; } /** - *

      The key or public key certificate type to use during key material import, for - * example TR-34 or RootCertificatePublicKey.

      + *

      Specifies whether import key is enabled.

      */ - inline ImportKeyRequest& WithKeyMaterial(ImportKeyMaterial&& value) { SetKeyMaterial(std::move(value)); return *this;} + inline ImportKeyRequest& WithEnabled(bool value) { SetEnabled(value); return *this;} /** *

      Assigns one or more tags to the Amazon Web Services Payment Cryptography key. * Use this parameter to tag a key when it is imported. To tag an existing Amazon - * Web Services Payment Cryptography key, use the TagResource operation.

      - *

      Each tag consists of a tag key and a tag value. Both the tag key and the tag - * value are required, but the tag value can be an empty (null) string. You can't - * have more than one tag on an Amazon Web Services Payment Cryptography key with - * the same tag key. If you specify an existing tag key with a different tag value, - * Amazon Web Services Payment Cryptography replaces the current tag value with the - * specified one.

      Don't include personal, confidential or - * sensitive information in this field. This field may be displayed in plaintext in - * CloudTrail logs and other output.

      Tagging or - * untagging an Amazon Web Services Payment Cryptography key can allow or deny - * permission to the key.

      + * Web Services Payment Cryptography key, use the TagResource + * operation.

      Each tag consists of a tag key and a tag value. Both the tag + * key and the tag value are required, but the tag value can be an empty (null) + * string. You can't have more than one tag on an Amazon Web Services Payment + * Cryptography key with the same tag key. If you specify an existing tag key with + * a different tag value, Amazon Web Services Payment Cryptography replaces the + * current tag value with the specified one.

      Don't include + * personal, confidential or sensitive information in this field. This field may be + * displayed in plaintext in CloudTrail logs and other output.

      + *

      Tagging or untagging an Amazon Web Services Payment Cryptography key + * can allow or deny permission to the key.

      */ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

      Assigns one or more tags to the Amazon Web Services Payment Cryptography key. * Use this parameter to tag a key when it is imported. To tag an existing Amazon - * Web Services Payment Cryptography key, use the TagResource operation.

      - *

      Each tag consists of a tag key and a tag value. Both the tag key and the tag - * value are required, but the tag value can be an empty (null) string. You can't - * have more than one tag on an Amazon Web Services Payment Cryptography key with - * the same tag key. If you specify an existing tag key with a different tag value, - * Amazon Web Services Payment Cryptography replaces the current tag value with the - * specified one.

      Don't include personal, confidential or - * sensitive information in this field. This field may be displayed in plaintext in - * CloudTrail logs and other output.

      Tagging or - * untagging an Amazon Web Services Payment Cryptography key can allow or deny - * permission to the key.

      + * Web Services Payment Cryptography key, use the TagResource + * operation.

      Each tag consists of a tag key and a tag value. Both the tag + * key and the tag value are required, but the tag value can be an empty (null) + * string. You can't have more than one tag on an Amazon Web Services Payment + * Cryptography key with the same tag key. If you specify an existing tag key with + * a different tag value, Amazon Web Services Payment Cryptography replaces the + * current tag value with the specified one.

      Don't include + * personal, confidential or sensitive information in this field. This field may be + * displayed in plaintext in CloudTrail logs and other output.

      + *

      Tagging or untagging an Amazon Web Services Payment Cryptography key + * can allow or deny permission to the key.

      */ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

      Assigns one or more tags to the Amazon Web Services Payment Cryptography key. * Use this parameter to tag a key when it is imported. To tag an existing Amazon - * Web Services Payment Cryptography key, use the TagResource operation.

      - *

      Each tag consists of a tag key and a tag value. Both the tag key and the tag - * value are required, but the tag value can be an empty (null) string. You can't - * have more than one tag on an Amazon Web Services Payment Cryptography key with - * the same tag key. If you specify an existing tag key with a different tag value, - * Amazon Web Services Payment Cryptography replaces the current tag value with the - * specified one.

      Don't include personal, confidential or - * sensitive information in this field. This field may be displayed in plaintext in - * CloudTrail logs and other output.

      Tagging or - * untagging an Amazon Web Services Payment Cryptography key can allow or deny - * permission to the key.

      + * Web Services Payment Cryptography key, use the TagResource + * operation.

      Each tag consists of a tag key and a tag value. Both the tag + * key and the tag value are required, but the tag value can be an empty (null) + * string. You can't have more than one tag on an Amazon Web Services Payment + * Cryptography key with the same tag key. If you specify an existing tag key with + * a different tag value, Amazon Web Services Payment Cryptography replaces the + * current tag value with the specified one.

      Don't include + * personal, confidential or sensitive information in this field. This field may be + * displayed in plaintext in CloudTrail logs and other output.

      + *

      Tagging or untagging an Amazon Web Services Payment Cryptography key + * can allow or deny permission to the key.

      */ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

      Assigns one or more tags to the Amazon Web Services Payment Cryptography key. * Use this parameter to tag a key when it is imported. To tag an existing Amazon - * Web Services Payment Cryptography key, use the TagResource operation.

      - *

      Each tag consists of a tag key and a tag value. Both the tag key and the tag - * value are required, but the tag value can be an empty (null) string. You can't - * have more than one tag on an Amazon Web Services Payment Cryptography key with - * the same tag key. If you specify an existing tag key with a different tag value, - * Amazon Web Services Payment Cryptography replaces the current tag value with the - * specified one.

      Don't include personal, confidential or - * sensitive information in this field. This field may be displayed in plaintext in - * CloudTrail logs and other output.

      Tagging or - * untagging an Amazon Web Services Payment Cryptography key can allow or deny - * permission to the key.

      + * Web Services Payment Cryptography key, use the TagResource + * operation.

      Each tag consists of a tag key and a tag value. Both the tag + * key and the tag value are required, but the tag value can be an empty (null) + * string. You can't have more than one tag on an Amazon Web Services Payment + * Cryptography key with the same tag key. If you specify an existing tag key with + * a different tag value, Amazon Web Services Payment Cryptography replaces the + * current tag value with the specified one.

      Don't include + * personal, confidential or sensitive information in this field. This field may be + * displayed in plaintext in CloudTrail logs and other output.

      + *

      Tagging or untagging an Amazon Web Services Payment Cryptography key + * can allow or deny permission to the key.

      */ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

      Assigns one or more tags to the Amazon Web Services Payment Cryptography key. * Use this parameter to tag a key when it is imported. To tag an existing Amazon - * Web Services Payment Cryptography key, use the TagResource operation.

      - *

      Each tag consists of a tag key and a tag value. Both the tag key and the tag - * value are required, but the tag value can be an empty (null) string. You can't - * have more than one tag on an Amazon Web Services Payment Cryptography key with - * the same tag key. If you specify an existing tag key with a different tag value, - * Amazon Web Services Payment Cryptography replaces the current tag value with the - * specified one.

      Don't include personal, confidential or - * sensitive information in this field. This field may be displayed in plaintext in - * CloudTrail logs and other output.

      Tagging or - * untagging an Amazon Web Services Payment Cryptography key can allow or deny - * permission to the key.

      + * Web Services Payment Cryptography key, use the TagResource + * operation.

      Each tag consists of a tag key and a tag value. Both the tag + * key and the tag value are required, but the tag value can be an empty (null) + * string. You can't have more than one tag on an Amazon Web Services Payment + * Cryptography key with the same tag key. If you specify an existing tag key with + * a different tag value, Amazon Web Services Payment Cryptography replaces the + * current tag value with the specified one.

      Don't include + * personal, confidential or sensitive information in this field. This field may be + * displayed in plaintext in CloudTrail logs and other output.

      + *

      Tagging or untagging an Amazon Web Services Payment Cryptography key + * can allow or deny permission to the key.

      */ inline ImportKeyRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

      Assigns one or more tags to the Amazon Web Services Payment Cryptography key. * Use this parameter to tag a key when it is imported. To tag an existing Amazon - * Web Services Payment Cryptography key, use the TagResource operation.

      - *

      Each tag consists of a tag key and a tag value. Both the tag key and the tag - * value are required, but the tag value can be an empty (null) string. You can't - * have more than one tag on an Amazon Web Services Payment Cryptography key with - * the same tag key. If you specify an existing tag key with a different tag value, - * Amazon Web Services Payment Cryptography replaces the current tag value with the - * specified one.

      Don't include personal, confidential or - * sensitive information in this field. This field may be displayed in plaintext in - * CloudTrail logs and other output.

      Tagging or - * untagging an Amazon Web Services Payment Cryptography key can allow or deny - * permission to the key.

      + * Web Services Payment Cryptography key, use the TagResource + * operation.

      Each tag consists of a tag key and a tag value. Both the tag + * key and the tag value are required, but the tag value can be an empty (null) + * string. You can't have more than one tag on an Amazon Web Services Payment + * Cryptography key with the same tag key. If you specify an existing tag key with + * a different tag value, Amazon Web Services Payment Cryptography replaces the + * current tag value with the specified one.

      Don't include + * personal, confidential or sensitive information in this field. This field may be + * displayed in plaintext in CloudTrail logs and other output.

      + *

      Tagging or untagging an Amazon Web Services Payment Cryptography key + * can allow or deny permission to the key.

      */ inline ImportKeyRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

      Assigns one or more tags to the Amazon Web Services Payment Cryptography key. * Use this parameter to tag a key when it is imported. To tag an existing Amazon - * Web Services Payment Cryptography key, use the TagResource operation.

      - *

      Each tag consists of a tag key and a tag value. Both the tag key and the tag - * value are required, but the tag value can be an empty (null) string. You can't - * have more than one tag on an Amazon Web Services Payment Cryptography key with - * the same tag key. If you specify an existing tag key with a different tag value, - * Amazon Web Services Payment Cryptography replaces the current tag value with the - * specified one.

      Don't include personal, confidential or - * sensitive information in this field. This field may be displayed in plaintext in - * CloudTrail logs and other output.

      Tagging or - * untagging an Amazon Web Services Payment Cryptography key can allow or deny - * permission to the key.

      + * Web Services Payment Cryptography key, use the TagResource + * operation.

      Each tag consists of a tag key and a tag value. Both the tag + * key and the tag value are required, but the tag value can be an empty (null) + * string. You can't have more than one tag on an Amazon Web Services Payment + * Cryptography key with the same tag key. If you specify an existing tag key with + * a different tag value, Amazon Web Services Payment Cryptography replaces the + * current tag value with the specified one.

      Don't include + * personal, confidential or sensitive information in this field. This field may be + * displayed in plaintext in CloudTrail logs and other output.

      + *

      Tagging or untagging an Amazon Web Services Payment Cryptography key + * can allow or deny permission to the key.

      */ inline ImportKeyRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

      Assigns one or more tags to the Amazon Web Services Payment Cryptography key. * Use this parameter to tag a key when it is imported. To tag an existing Amazon - * Web Services Payment Cryptography key, use the TagResource operation.

      - *

      Each tag consists of a tag key and a tag value. Both the tag key and the tag - * value are required, but the tag value can be an empty (null) string. You can't - * have more than one tag on an Amazon Web Services Payment Cryptography key with - * the same tag key. If you specify an existing tag key with a different tag value, - * Amazon Web Services Payment Cryptography replaces the current tag value with the - * specified one.

      Don't include personal, confidential or - * sensitive information in this field. This field may be displayed in plaintext in - * CloudTrail logs and other output.

      Tagging or - * untagging an Amazon Web Services Payment Cryptography key can allow or deny - * permission to the key.

      + * Web Services Payment Cryptography key, use the TagResource + * operation.

      Each tag consists of a tag key and a tag value. Both the tag + * key and the tag value are required, but the tag value can be an empty (null) + * string. You can't have more than one tag on an Amazon Web Services Payment + * Cryptography key with the same tag key. If you specify an existing tag key with + * a different tag value, Amazon Web Services Payment Cryptography replaces the + * current tag value with the specified one.

      Don't include + * personal, confidential or sensitive information in this field. This field may be + * displayed in plaintext in CloudTrail logs and other output.

      + *

      Tagging or untagging an Amazon Web Services Payment Cryptography key + * can allow or deny permission to the key.

      */ inline ImportKeyRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: - bool m_enabled; - bool m_enabledHasBeenSet = false; + ImportKeyMaterial m_keyMaterial; + bool m_keyMaterialHasBeenSet = false; KeyCheckValueAlgorithm m_keyCheckValueAlgorithm; bool m_keyCheckValueAlgorithmHasBeenSet = false; - ImportKeyMaterial m_keyMaterial; - bool m_keyMaterialHasBeenSet = false; + bool m_enabled; + bool m_enabledHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; diff --git a/generated/src/aws-cpp-sdk-payment-cryptography/include/aws/payment-cryptography/model/ImportTr31KeyBlock.h b/generated/src/aws-cpp-sdk-payment-cryptography/include/aws/payment-cryptography/model/ImportTr31KeyBlock.h index ab349df0d1f..0c97431c1e9 100644 --- a/generated/src/aws-cpp-sdk-payment-cryptography/include/aws/payment-cryptography/model/ImportTr31KeyBlock.h +++ b/generated/src/aws-cpp-sdk-payment-cryptography/include/aws/payment-cryptography/model/ImportTr31KeyBlock.h @@ -39,101 +39,101 @@ namespace Model /** - *

      The TR-31 wrapped key block to import.

      + *

      The KeyARN of the key that will decrypt or unwrap a TR-31 key + * block during import.

      */ - inline const Aws::String& GetWrappedKeyBlock() const{ return m_wrappedKeyBlock; } + inline const Aws::String& GetWrappingKeyIdentifier() const{ return m_wrappingKeyIdentifier; } /** - *

      The TR-31 wrapped key block to import.

      + *

      The KeyARN of the key that will decrypt or unwrap a TR-31 key + * block during import.

      */ - inline bool WrappedKeyBlockHasBeenSet() const { return m_wrappedKeyBlockHasBeenSet; } + inline bool WrappingKeyIdentifierHasBeenSet() const { return m_wrappingKeyIdentifierHasBeenSet; } /** - *

      The TR-31 wrapped key block to import.

      + *

      The KeyARN of the key that will decrypt or unwrap a TR-31 key + * block during import.

      */ - inline void SetWrappedKeyBlock(const Aws::String& value) { m_wrappedKeyBlockHasBeenSet = true; m_wrappedKeyBlock = value; } + inline void SetWrappingKeyIdentifier(const Aws::String& value) { m_wrappingKeyIdentifierHasBeenSet = true; m_wrappingKeyIdentifier = value; } /** - *

      The TR-31 wrapped key block to import.

      + *

      The KeyARN of the key that will decrypt or unwrap a TR-31 key + * block during import.

      */ - inline void SetWrappedKeyBlock(Aws::String&& value) { m_wrappedKeyBlockHasBeenSet = true; m_wrappedKeyBlock = std::move(value); } + inline void SetWrappingKeyIdentifier(Aws::String&& value) { m_wrappingKeyIdentifierHasBeenSet = true; m_wrappingKeyIdentifier = std::move(value); } /** - *

      The TR-31 wrapped key block to import.

      + *

      The KeyARN of the key that will decrypt or unwrap a TR-31 key + * block during import.

      */ - inline void SetWrappedKeyBlock(const char* value) { m_wrappedKeyBlockHasBeenSet = true; m_wrappedKeyBlock.assign(value); } + inline void SetWrappingKeyIdentifier(const char* value) { m_wrappingKeyIdentifierHasBeenSet = true; m_wrappingKeyIdentifier.assign(value); } /** - *

      The TR-31 wrapped key block to import.

      + *

      The KeyARN of the key that will decrypt or unwrap a TR-31 key + * block during import.

      */ - inline ImportTr31KeyBlock& WithWrappedKeyBlock(const Aws::String& value) { SetWrappedKeyBlock(value); return *this;} + inline ImportTr31KeyBlock& WithWrappingKeyIdentifier(const Aws::String& value) { SetWrappingKeyIdentifier(value); return *this;} /** - *

      The TR-31 wrapped key block to import.

      + *

      The KeyARN of the key that will decrypt or unwrap a TR-31 key + * block during import.

      */ - inline ImportTr31KeyBlock& WithWrappedKeyBlock(Aws::String&& value) { SetWrappedKeyBlock(std::move(value)); return *this;} + inline ImportTr31KeyBlock& WithWrappingKeyIdentifier(Aws::String&& value) { SetWrappingKeyIdentifier(std::move(value)); return *this;} /** - *

      The TR-31 wrapped key block to import.

      + *

      The KeyARN of the key that will decrypt or unwrap a TR-31 key + * block during import.

      */ - inline ImportTr31KeyBlock& WithWrappedKeyBlock(const char* value) { SetWrappedKeyBlock(value); return *this;} + inline ImportTr31KeyBlock& WithWrappingKeyIdentifier(const char* value) { SetWrappingKeyIdentifier(value); return *this;} /** - *

      The KeyARN of the key that will decrypt or unwrap a TR-31 key - * block during import.

      + *

      The TR-31 wrapped key block to import.

      */ - inline const Aws::String& GetWrappingKeyIdentifier() const{ return m_wrappingKeyIdentifier; } + inline const Aws::String& GetWrappedKeyBlock() const{ return m_wrappedKeyBlock; } /** - *

      The KeyARN of the key that will decrypt or unwrap a TR-31 key - * block during import.

      + *

      The TR-31 wrapped key block to import.

      */ - inline bool WrappingKeyIdentifierHasBeenSet() const { return m_wrappingKeyIdentifierHasBeenSet; } + inline bool WrappedKeyBlockHasBeenSet() const { return m_wrappedKeyBlockHasBeenSet; } /** - *

      The KeyARN of the key that will decrypt or unwrap a TR-31 key - * block during import.

      + *

      The TR-31 wrapped key block to import.

      */ - inline void SetWrappingKeyIdentifier(const Aws::String& value) { m_wrappingKeyIdentifierHasBeenSet = true; m_wrappingKeyIdentifier = value; } + inline void SetWrappedKeyBlock(const Aws::String& value) { m_wrappedKeyBlockHasBeenSet = true; m_wrappedKeyBlock = value; } /** - *

      The KeyARN of the key that will decrypt or unwrap a TR-31 key - * block during import.

      + *

      The TR-31 wrapped key block to import.

      */ - inline void SetWrappingKeyIdentifier(Aws::String&& value) { m_wrappingKeyIdentifierHasBeenSet = true; m_wrappingKeyIdentifier = std::move(value); } + inline void SetWrappedKeyBlock(Aws::String&& value) { m_wrappedKeyBlockHasBeenSet = true; m_wrappedKeyBlock = std::move(value); } /** - *

      The KeyARN of the key that will decrypt or unwrap a TR-31 key - * block during import.

      + *

      The TR-31 wrapped key block to import.

      */ - inline void SetWrappingKeyIdentifier(const char* value) { m_wrappingKeyIdentifierHasBeenSet = true; m_wrappingKeyIdentifier.assign(value); } + inline void SetWrappedKeyBlock(const char* value) { m_wrappedKeyBlockHasBeenSet = true; m_wrappedKeyBlock.assign(value); } /** - *

      The KeyARN of the key that will decrypt or unwrap a TR-31 key - * block during import.

      + *

      The TR-31 wrapped key block to import.

      */ - inline ImportTr31KeyBlock& WithWrappingKeyIdentifier(const Aws::String& value) { SetWrappingKeyIdentifier(value); return *this;} + inline ImportTr31KeyBlock& WithWrappedKeyBlock(const Aws::String& value) { SetWrappedKeyBlock(value); return *this;} /** - *

      The KeyARN of the key that will decrypt or unwrap a TR-31 key - * block during import.

      + *

      The TR-31 wrapped key block to import.

      */ - inline ImportTr31KeyBlock& WithWrappingKeyIdentifier(Aws::String&& value) { SetWrappingKeyIdentifier(std::move(value)); return *this;} + inline ImportTr31KeyBlock& WithWrappedKeyBlock(Aws::String&& value) { SetWrappedKeyBlock(std::move(value)); return *this;} /** - *

      The KeyARN of the key that will decrypt or unwrap a TR-31 key - * block during import.

      + *

      The TR-31 wrapped key block to import.

      */ - inline ImportTr31KeyBlock& WithWrappingKeyIdentifier(const char* value) { SetWrappingKeyIdentifier(value); return *this;} + inline ImportTr31KeyBlock& WithWrappedKeyBlock(const char* value) { SetWrappedKeyBlock(value); return *this;} private: - Aws::String m_wrappedKeyBlock; - bool m_wrappedKeyBlockHasBeenSet = false; - Aws::String m_wrappingKeyIdentifier; bool m_wrappingKeyIdentifierHasBeenSet = false; + + Aws::String m_wrappedKeyBlock; + bool m_wrappedKeyBlockHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-payment-cryptography/include/aws/payment-cryptography/model/ImportTr34KeyBlock.h b/generated/src/aws-cpp-sdk-payment-cryptography/include/aws/payment-cryptography/model/ImportTr34KeyBlock.h index 6df8e4e8742..e743c19bb02 100644 --- a/generated/src/aws-cpp-sdk-payment-cryptography/include/aws/payment-cryptography/model/ImportTr34KeyBlock.h +++ b/generated/src/aws-cpp-sdk-payment-cryptography/include/aws/payment-cryptography/model/ImportTr34KeyBlock.h @@ -88,6 +88,55 @@ namespace Model inline ImportTr34KeyBlock& WithCertificateAuthorityPublicKeyIdentifier(const char* value) { SetCertificateAuthorityPublicKeyIdentifier(value); return *this;} + /** + *

      The public key component in PEM certificate format of the private key that + * signs the KDH TR-34 WrappedKeyBlock.

      + */ + inline const Aws::String& GetSigningKeyCertificate() const{ return m_signingKeyCertificate; } + + /** + *

      The public key component in PEM certificate format of the private key that + * signs the KDH TR-34 WrappedKeyBlock.

      + */ + inline bool SigningKeyCertificateHasBeenSet() const { return m_signingKeyCertificateHasBeenSet; } + + /** + *

      The public key component in PEM certificate format of the private key that + * signs the KDH TR-34 WrappedKeyBlock.

      + */ + inline void SetSigningKeyCertificate(const Aws::String& value) { m_signingKeyCertificateHasBeenSet = true; m_signingKeyCertificate = value; } + + /** + *

      The public key component in PEM certificate format of the private key that + * signs the KDH TR-34 WrappedKeyBlock.

      + */ + inline void SetSigningKeyCertificate(Aws::String&& value) { m_signingKeyCertificateHasBeenSet = true; m_signingKeyCertificate = std::move(value); } + + /** + *

      The public key component in PEM certificate format of the private key that + * signs the KDH TR-34 WrappedKeyBlock.

      + */ + inline void SetSigningKeyCertificate(const char* value) { m_signingKeyCertificateHasBeenSet = true; m_signingKeyCertificate.assign(value); } + + /** + *

      The public key component in PEM certificate format of the private key that + * signs the KDH TR-34 WrappedKeyBlock.

      + */ + inline ImportTr34KeyBlock& WithSigningKeyCertificate(const Aws::String& value) { SetSigningKeyCertificate(value); return *this;} + + /** + *

      The public key component in PEM certificate format of the private key that + * signs the KDH TR-34 WrappedKeyBlock.

      + */ + inline ImportTr34KeyBlock& WithSigningKeyCertificate(Aws::String&& value) { SetSigningKeyCertificate(std::move(value)); return *this;} + + /** + *

      The public key component in PEM certificate format of the private key that + * signs the KDH TR-34 WrappedKeyBlock.

      + */ + inline ImportTr34KeyBlock& WithSigningKeyCertificate(const char* value) { SetSigningKeyCertificate(value); return *this;} + + /** *

      The import token that initiates key import using the asymmetric TR-34 key * exchange method into Amazon Web Services Payment Cryptography. It expires after @@ -153,6 +202,47 @@ namespace Model inline ImportTr34KeyBlock& WithImportToken(const char* value) { SetImportToken(value); return *this;} + /** + *

      The TR-34 wrapped key block to import.

      + */ + inline const Aws::String& GetWrappedKeyBlock() const{ return m_wrappedKeyBlock; } + + /** + *

      The TR-34 wrapped key block to import.

      + */ + inline bool WrappedKeyBlockHasBeenSet() const { return m_wrappedKeyBlockHasBeenSet; } + + /** + *

      The TR-34 wrapped key block to import.

      + */ + inline void SetWrappedKeyBlock(const Aws::String& value) { m_wrappedKeyBlockHasBeenSet = true; m_wrappedKeyBlock = value; } + + /** + *

      The TR-34 wrapped key block to import.

      + */ + inline void SetWrappedKeyBlock(Aws::String&& value) { m_wrappedKeyBlockHasBeenSet = true; m_wrappedKeyBlock = std::move(value); } + + /** + *

      The TR-34 wrapped key block to import.

      + */ + inline void SetWrappedKeyBlock(const char* value) { m_wrappedKeyBlockHasBeenSet = true; m_wrappedKeyBlock.assign(value); } + + /** + *

      The TR-34 wrapped key block to import.

      + */ + inline ImportTr34KeyBlock& WithWrappedKeyBlock(const Aws::String& value) { SetWrappedKeyBlock(value); return *this;} + + /** + *

      The TR-34 wrapped key block to import.

      + */ + inline ImportTr34KeyBlock& WithWrappedKeyBlock(Aws::String&& value) { SetWrappedKeyBlock(std::move(value)); return *this;} + + /** + *

      The TR-34 wrapped key block to import.

      + */ + inline ImportTr34KeyBlock& WithWrappedKeyBlock(const char* value) { SetWrappedKeyBlock(value); return *this;} + + /** *

      The key block format to use during key import. The only value allowed is * X9_TR34_2012.

      @@ -246,115 +336,25 @@ namespace Model */ inline ImportTr34KeyBlock& WithRandomNonce(const char* value) { SetRandomNonce(value); return *this;} - - /** - *

      The public key component in PEM certificate format of the private key that - * signs the KDH TR-34 WrappedKeyBlock.

      - */ - inline const Aws::String& GetSigningKeyCertificate() const{ return m_signingKeyCertificate; } - - /** - *

      The public key component in PEM certificate format of the private key that - * signs the KDH TR-34 WrappedKeyBlock.

      - */ - inline bool SigningKeyCertificateHasBeenSet() const { return m_signingKeyCertificateHasBeenSet; } - - /** - *

      The public key component in PEM certificate format of the private key that - * signs the KDH TR-34 WrappedKeyBlock.

      - */ - inline void SetSigningKeyCertificate(const Aws::String& value) { m_signingKeyCertificateHasBeenSet = true; m_signingKeyCertificate = value; } - - /** - *

      The public key component in PEM certificate format of the private key that - * signs the KDH TR-34 WrappedKeyBlock.

      - */ - inline void SetSigningKeyCertificate(Aws::String&& value) { m_signingKeyCertificateHasBeenSet = true; m_signingKeyCertificate = std::move(value); } - - /** - *

      The public key component in PEM certificate format of the private key that - * signs the KDH TR-34 WrappedKeyBlock.

      - */ - inline void SetSigningKeyCertificate(const char* value) { m_signingKeyCertificateHasBeenSet = true; m_signingKeyCertificate.assign(value); } - - /** - *

      The public key component in PEM certificate format of the private key that - * signs the KDH TR-34 WrappedKeyBlock.

      - */ - inline ImportTr34KeyBlock& WithSigningKeyCertificate(const Aws::String& value) { SetSigningKeyCertificate(value); return *this;} - - /** - *

      The public key component in PEM certificate format of the private key that - * signs the KDH TR-34 WrappedKeyBlock.

      - */ - inline ImportTr34KeyBlock& WithSigningKeyCertificate(Aws::String&& value) { SetSigningKeyCertificate(std::move(value)); return *this;} - - /** - *

      The public key component in PEM certificate format of the private key that - * signs the KDH TR-34 WrappedKeyBlock.

      - */ - inline ImportTr34KeyBlock& WithSigningKeyCertificate(const char* value) { SetSigningKeyCertificate(value); return *this;} - - - /** - *

      The TR-34 wrapped key block to import.

      - */ - inline const Aws::String& GetWrappedKeyBlock() const{ return m_wrappedKeyBlock; } - - /** - *

      The TR-34 wrapped key block to import.

      - */ - inline bool WrappedKeyBlockHasBeenSet() const { return m_wrappedKeyBlockHasBeenSet; } - - /** - *

      The TR-34 wrapped key block to import.

      - */ - inline void SetWrappedKeyBlock(const Aws::String& value) { m_wrappedKeyBlockHasBeenSet = true; m_wrappedKeyBlock = value; } - - /** - *

      The TR-34 wrapped key block to import.

      - */ - inline void SetWrappedKeyBlock(Aws::String&& value) { m_wrappedKeyBlockHasBeenSet = true; m_wrappedKeyBlock = std::move(value); } - - /** - *

      The TR-34 wrapped key block to import.

      - */ - inline void SetWrappedKeyBlock(const char* value) { m_wrappedKeyBlockHasBeenSet = true; m_wrappedKeyBlock.assign(value); } - - /** - *

      The TR-34 wrapped key block to import.

      - */ - inline ImportTr34KeyBlock& WithWrappedKeyBlock(const Aws::String& value) { SetWrappedKeyBlock(value); return *this;} - - /** - *

      The TR-34 wrapped key block to import.

      - */ - inline ImportTr34KeyBlock& WithWrappedKeyBlock(Aws::String&& value) { SetWrappedKeyBlock(std::move(value)); return *this;} - - /** - *

      The TR-34 wrapped key block to import.

      - */ - inline ImportTr34KeyBlock& WithWrappedKeyBlock(const char* value) { SetWrappedKeyBlock(value); return *this;} - private: Aws::String m_certificateAuthorityPublicKeyIdentifier; bool m_certificateAuthorityPublicKeyIdentifierHasBeenSet = false; + Aws::String m_signingKeyCertificate; + bool m_signingKeyCertificateHasBeenSet = false; + Aws::String m_importToken; bool m_importTokenHasBeenSet = false; + Aws::String m_wrappedKeyBlock; + bool m_wrappedKeyBlockHasBeenSet = false; + Tr34KeyBlockFormat m_keyBlockFormat; bool m_keyBlockFormatHasBeenSet = false; Aws::String m_randomNonce; bool m_randomNonceHasBeenSet = false; - - Aws::String m_signingKeyCertificate; - bool m_signingKeyCertificateHasBeenSet = false; - - Aws::String m_wrappedKeyBlock; - bool m_wrappedKeyBlockHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-payment-cryptography/include/aws/payment-cryptography/model/Key.h b/generated/src/aws-cpp-sdk-payment-cryptography/include/aws/payment-cryptography/model/Key.h index 340396cec3e..82eb11c5659 100644 --- a/generated/src/aws-cpp-sdk-payment-cryptography/include/aws/payment-cryptography/model/Key.h +++ b/generated/src/aws-cpp-sdk-payment-cryptography/include/aws/payment-cryptography/model/Key.h @@ -5,12 +5,12 @@ #pragma once #include -#include #include #include #include -#include #include +#include +#include #include namespace Aws @@ -43,175 +43,6 @@ namespace Model AWS_PAYMENTCRYPTOGRAPHY_API Aws::Utils::Json::JsonValue Jsonize() const; - /** - *

      The date and time when the key was created.

      - */ - inline const Aws::Utils::DateTime& GetCreateTimestamp() const{ return m_createTimestamp; } - - /** - *

      The date and time when the key was created.

      - */ - inline bool CreateTimestampHasBeenSet() const { return m_createTimestampHasBeenSet; } - - /** - *

      The date and time when the key was created.

      - */ - inline void SetCreateTimestamp(const Aws::Utils::DateTime& value) { m_createTimestampHasBeenSet = true; m_createTimestamp = value; } - - /** - *

      The date and time when the key was created.

      - */ - inline void SetCreateTimestamp(Aws::Utils::DateTime&& value) { m_createTimestampHasBeenSet = true; m_createTimestamp = std::move(value); } - - /** - *

      The date and time when the key was created.

      - */ - inline Key& WithCreateTimestamp(const Aws::Utils::DateTime& value) { SetCreateTimestamp(value); return *this;} - - /** - *

      The date and time when the key was created.

      - */ - inline Key& WithCreateTimestamp(Aws::Utils::DateTime&& value) { SetCreateTimestamp(std::move(value)); return *this;} - - - /** - *

      The date and time after which Amazon Web Services Payment Cryptography will - * delete the key. This value is present only when KeyState is - * DELETE_PENDING and the key is scheduled for deletion.

      - */ - inline const Aws::Utils::DateTime& GetDeletePendingTimestamp() const{ return m_deletePendingTimestamp; } - - /** - *

      The date and time after which Amazon Web Services Payment Cryptography will - * delete the key. This value is present only when KeyState is - * DELETE_PENDING and the key is scheduled for deletion.

      - */ - inline bool DeletePendingTimestampHasBeenSet() const { return m_deletePendingTimestampHasBeenSet; } - - /** - *

      The date and time after which Amazon Web Services Payment Cryptography will - * delete the key. This value is present only when KeyState is - * DELETE_PENDING and the key is scheduled for deletion.

      - */ - inline void SetDeletePendingTimestamp(const Aws::Utils::DateTime& value) { m_deletePendingTimestampHasBeenSet = true; m_deletePendingTimestamp = value; } - - /** - *

      The date and time after which Amazon Web Services Payment Cryptography will - * delete the key. This value is present only when KeyState is - * DELETE_PENDING and the key is scheduled for deletion.

      - */ - inline void SetDeletePendingTimestamp(Aws::Utils::DateTime&& value) { m_deletePendingTimestampHasBeenSet = true; m_deletePendingTimestamp = std::move(value); } - - /** - *

      The date and time after which Amazon Web Services Payment Cryptography will - * delete the key. This value is present only when KeyState is - * DELETE_PENDING and the key is scheduled for deletion.

      - */ - inline Key& WithDeletePendingTimestamp(const Aws::Utils::DateTime& value) { SetDeletePendingTimestamp(value); return *this;} - - /** - *

      The date and time after which Amazon Web Services Payment Cryptography will - * delete the key. This value is present only when KeyState is - * DELETE_PENDING and the key is scheduled for deletion.

      - */ - inline Key& WithDeletePendingTimestamp(Aws::Utils::DateTime&& value) { SetDeletePendingTimestamp(std::move(value)); return *this;} - - - /** - *

      The date and time after which Amazon Web Services Payment Cryptography will - * delete the key. This value is present only when when the KeyState - * is DELETE_COMPLETE and the Amazon Web Services Payment Cryptography - * key is deleted.

      - */ - inline const Aws::Utils::DateTime& GetDeleteTimestamp() const{ return m_deleteTimestamp; } - - /** - *

      The date and time after which Amazon Web Services Payment Cryptography will - * delete the key. This value is present only when when the KeyState - * is DELETE_COMPLETE and the Amazon Web Services Payment Cryptography - * key is deleted.

      - */ - inline bool DeleteTimestampHasBeenSet() const { return m_deleteTimestampHasBeenSet; } - - /** - *

      The date and time after which Amazon Web Services Payment Cryptography will - * delete the key. This value is present only when when the KeyState - * is DELETE_COMPLETE and the Amazon Web Services Payment Cryptography - * key is deleted.

      - */ - inline void SetDeleteTimestamp(const Aws::Utils::DateTime& value) { m_deleteTimestampHasBeenSet = true; m_deleteTimestamp = value; } - - /** - *

      The date and time after which Amazon Web Services Payment Cryptography will - * delete the key. This value is present only when when the KeyState - * is DELETE_COMPLETE and the Amazon Web Services Payment Cryptography - * key is deleted.

      - */ - inline void SetDeleteTimestamp(Aws::Utils::DateTime&& value) { m_deleteTimestampHasBeenSet = true; m_deleteTimestamp = std::move(value); } - - /** - *

      The date and time after which Amazon Web Services Payment Cryptography will - * delete the key. This value is present only when when the KeyState - * is DELETE_COMPLETE and the Amazon Web Services Payment Cryptography - * key is deleted.

      - */ - inline Key& WithDeleteTimestamp(const Aws::Utils::DateTime& value) { SetDeleteTimestamp(value); return *this;} - - /** - *

      The date and time after which Amazon Web Services Payment Cryptography will - * delete the key. This value is present only when when the KeyState - * is DELETE_COMPLETE and the Amazon Web Services Payment Cryptography - * key is deleted.

      - */ - inline Key& WithDeleteTimestamp(Aws::Utils::DateTime&& value) { SetDeleteTimestamp(std::move(value)); return *this;} - - - /** - *

      Specifies whether the key is enabled.

      - */ - inline bool GetEnabled() const{ return m_enabled; } - - /** - *

      Specifies whether the key is enabled.

      - */ - inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; } - - /** - *

      Specifies whether the key is enabled.

      - */ - inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; } - - /** - *

      Specifies whether the key is enabled.

      - */ - inline Key& WithEnabled(bool value) { SetEnabled(value); return *this;} - - - /** - *

      Specifies whether the key is exportable. This data is immutable after the key - * is created.

      - */ - inline bool GetExportable() const{ return m_exportable; } - - /** - *

      Specifies whether the key is exportable. This data is immutable after the key - * is created.

      - */ - inline bool ExportableHasBeenSet() const { return m_exportableHasBeenSet; } - - /** - *

      Specifies whether the key is exportable. This data is immutable after the key - * is created.

      - */ - inline void SetExportable(bool value) { m_exportableHasBeenSet = true; m_exportable = value; } - - /** - *

      Specifies whether the key is exportable. This data is immutable after the key - * is created.

      - */ - inline Key& WithExportable(bool value) { SetExportable(value); return *this;} - - /** *

      The Amazon Resource Name (ARN) of the key.

      */ @@ -412,6 +243,83 @@ namespace Model inline Key& WithKeyCheckValueAlgorithm(KeyCheckValueAlgorithm&& value) { SetKeyCheckValueAlgorithm(std::move(value)); return *this;} + /** + *

      Specifies whether the key is enabled.

      + */ + inline bool GetEnabled() const{ return m_enabled; } + + /** + *

      Specifies whether the key is enabled.

      + */ + inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; } + + /** + *

      Specifies whether the key is enabled.

      + */ + inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; } + + /** + *

      Specifies whether the key is enabled.

      + */ + inline Key& WithEnabled(bool value) { SetEnabled(value); return *this;} + + + /** + *

      Specifies whether the key is exportable. This data is immutable after the key + * is created.

      + */ + inline bool GetExportable() const{ return m_exportable; } + + /** + *

      Specifies whether the key is exportable. This data is immutable after the key + * is created.

      + */ + inline bool ExportableHasBeenSet() const { return m_exportableHasBeenSet; } + + /** + *

      Specifies whether the key is exportable. This data is immutable after the key + * is created.

      + */ + inline void SetExportable(bool value) { m_exportableHasBeenSet = true; m_exportable = value; } + + /** + *

      Specifies whether the key is exportable. This data is immutable after the key + * is created.

      + */ + inline Key& WithExportable(bool value) { SetExportable(value); return *this;} + + + /** + *

      The state of key that is being created or deleted.

      + */ + inline const KeyState& GetKeyState() const{ return m_keyState; } + + /** + *

      The state of key that is being created or deleted.

      + */ + inline bool KeyStateHasBeenSet() const { return m_keyStateHasBeenSet; } + + /** + *

      The state of key that is being created or deleted.

      + */ + inline void SetKeyState(const KeyState& value) { m_keyStateHasBeenSet = true; m_keyState = value; } + + /** + *

      The state of key that is being created or deleted.

      + */ + inline void SetKeyState(KeyState&& value) { m_keyStateHasBeenSet = true; m_keyState = std::move(value); } + + /** + *

      The state of key that is being created or deleted.

      + */ + inline Key& WithKeyState(const KeyState& value) { SetKeyState(value); return *this;} + + /** + *

      The state of key that is being created or deleted.

      + */ + inline Key& WithKeyState(KeyState&& value) { SetKeyState(std::move(value)); return *this;} + + /** *

      The source of the key material. For keys created within Amazon Web Services * Payment Cryptography, the value is AWS_PAYMENT_CRYPTOGRAPHY. For @@ -462,34 +370,34 @@ namespace Model /** - *

      The state of key that is being created or deleted.

      + *

      The date and time when the key was created.

      */ - inline const KeyState& GetKeyState() const{ return m_keyState; } + inline const Aws::Utils::DateTime& GetCreateTimestamp() const{ return m_createTimestamp; } /** - *

      The state of key that is being created or deleted.

      + *

      The date and time when the key was created.

      */ - inline bool KeyStateHasBeenSet() const { return m_keyStateHasBeenSet; } + inline bool CreateTimestampHasBeenSet() const { return m_createTimestampHasBeenSet; } /** - *

      The state of key that is being created or deleted.

      + *

      The date and time when the key was created.

      */ - inline void SetKeyState(const KeyState& value) { m_keyStateHasBeenSet = true; m_keyState = value; } + inline void SetCreateTimestamp(const Aws::Utils::DateTime& value) { m_createTimestampHasBeenSet = true; m_createTimestamp = value; } /** - *

      The state of key that is being created or deleted.

      + *

      The date and time when the key was created.

      */ - inline void SetKeyState(KeyState&& value) { m_keyStateHasBeenSet = true; m_keyState = std::move(value); } + inline void SetCreateTimestamp(Aws::Utils::DateTime&& value) { m_createTimestampHasBeenSet = true; m_createTimestamp = std::move(value); } /** - *

      The state of key that is being created or deleted.

      + *

      The date and time when the key was created.

      */ - inline Key& WithKeyState(const KeyState& value) { SetKeyState(value); return *this;} + inline Key& WithCreateTimestamp(const Aws::Utils::DateTime& value) { SetCreateTimestamp(value); return *this;} /** - *

      The state of key that is being created or deleted.

      + *

      The date and time when the key was created.

      */ - inline Key& WithKeyState(KeyState&& value) { SetKeyState(std::move(value)); return *this;} + inline Key& WithCreateTimestamp(Aws::Utils::DateTime&& value) { SetCreateTimestamp(std::move(value)); return *this;} /** @@ -565,22 +473,99 @@ namespace Model */ inline Key& WithUsageStopTimestamp(Aws::Utils::DateTime&& value) { SetUsageStopTimestamp(std::move(value)); return *this;} - private: - Aws::Utils::DateTime m_createTimestamp; - bool m_createTimestampHasBeenSet = false; + /** + *

      The date and time after which Amazon Web Services Payment Cryptography will + * delete the key. This value is present only when KeyState is + * DELETE_PENDING and the key is scheduled for deletion.

      + */ + inline const Aws::Utils::DateTime& GetDeletePendingTimestamp() const{ return m_deletePendingTimestamp; } - Aws::Utils::DateTime m_deletePendingTimestamp; - bool m_deletePendingTimestampHasBeenSet = false; + /** + *

      The date and time after which Amazon Web Services Payment Cryptography will + * delete the key. This value is present only when KeyState is + * DELETE_PENDING and the key is scheduled for deletion.

      + */ + inline bool DeletePendingTimestampHasBeenSet() const { return m_deletePendingTimestampHasBeenSet; } - Aws::Utils::DateTime m_deleteTimestamp; - bool m_deleteTimestampHasBeenSet = false; + /** + *

      The date and time after which Amazon Web Services Payment Cryptography will + * delete the key. This value is present only when KeyState is + * DELETE_PENDING and the key is scheduled for deletion.

      + */ + inline void SetDeletePendingTimestamp(const Aws::Utils::DateTime& value) { m_deletePendingTimestampHasBeenSet = true; m_deletePendingTimestamp = value; } - bool m_enabled; - bool m_enabledHasBeenSet = false; + /** + *

      The date and time after which Amazon Web Services Payment Cryptography will + * delete the key. This value is present only when KeyState is + * DELETE_PENDING and the key is scheduled for deletion.

      + */ + inline void SetDeletePendingTimestamp(Aws::Utils::DateTime&& value) { m_deletePendingTimestampHasBeenSet = true; m_deletePendingTimestamp = std::move(value); } - bool m_exportable; - bool m_exportableHasBeenSet = false; + /** + *

      The date and time after which Amazon Web Services Payment Cryptography will + * delete the key. This value is present only when KeyState is + * DELETE_PENDING and the key is scheduled for deletion.

      + */ + inline Key& WithDeletePendingTimestamp(const Aws::Utils::DateTime& value) { SetDeletePendingTimestamp(value); return *this;} + + /** + *

      The date and time after which Amazon Web Services Payment Cryptography will + * delete the key. This value is present only when KeyState is + * DELETE_PENDING and the key is scheduled for deletion.

      + */ + inline Key& WithDeletePendingTimestamp(Aws::Utils::DateTime&& value) { SetDeletePendingTimestamp(std::move(value)); return *this;} + + + /** + *

      The date and time after which Amazon Web Services Payment Cryptography will + * delete the key. This value is present only when when the KeyState + * is DELETE_COMPLETE and the Amazon Web Services Payment Cryptography + * key is deleted.

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

      The date and time after which Amazon Web Services Payment Cryptography will + * delete the key. This value is present only when when the KeyState + * is DELETE_COMPLETE and the Amazon Web Services Payment Cryptography + * key is deleted.

      + */ + inline bool DeleteTimestampHasBeenSet() const { return m_deleteTimestampHasBeenSet; } + + /** + *

      The date and time after which Amazon Web Services Payment Cryptography will + * delete the key. This value is present only when when the KeyState + * is DELETE_COMPLETE and the Amazon Web Services Payment Cryptography + * key is deleted.

      + */ + inline void SetDeleteTimestamp(const Aws::Utils::DateTime& value) { m_deleteTimestampHasBeenSet = true; m_deleteTimestamp = value; } + + /** + *

      The date and time after which Amazon Web Services Payment Cryptography will + * delete the key. This value is present only when when the KeyState + * is DELETE_COMPLETE and the Amazon Web Services Payment Cryptography + * key is deleted.

      + */ + inline void SetDeleteTimestamp(Aws::Utils::DateTime&& value) { m_deleteTimestampHasBeenSet = true; m_deleteTimestamp = std::move(value); } + + /** + *

      The date and time after which Amazon Web Services Payment Cryptography will + * delete the key. This value is present only when when the KeyState + * is DELETE_COMPLETE and the Amazon Web Services Payment Cryptography + * key is deleted.

      + */ + inline Key& WithDeleteTimestamp(const Aws::Utils::DateTime& value) { SetDeleteTimestamp(value); return *this;} + + /** + *

      The date and time after which Amazon Web Services Payment Cryptography will + * delete the key. This value is present only when when the KeyState + * is DELETE_COMPLETE and the Amazon Web Services Payment Cryptography + * key is deleted.

      + */ + inline Key& WithDeleteTimestamp(Aws::Utils::DateTime&& value) { SetDeleteTimestamp(std::move(value)); return *this;} + + private: Aws::String m_keyArn; bool m_keyArnHasBeenSet = false; @@ -594,17 +579,32 @@ namespace Model KeyCheckValueAlgorithm m_keyCheckValueAlgorithm; bool m_keyCheckValueAlgorithmHasBeenSet = false; - KeyOrigin m_keyOrigin; - bool m_keyOriginHasBeenSet = false; + bool m_enabled; + bool m_enabledHasBeenSet = false; + + bool m_exportable; + bool m_exportableHasBeenSet = false; KeyState m_keyState; bool m_keyStateHasBeenSet = false; + KeyOrigin m_keyOrigin; + bool m_keyOriginHasBeenSet = false; + + Aws::Utils::DateTime m_createTimestamp; + bool m_createTimestampHasBeenSet = false; + Aws::Utils::DateTime m_usageStartTimestamp; bool m_usageStartTimestampHasBeenSet = false; Aws::Utils::DateTime m_usageStopTimestamp; bool m_usageStopTimestampHasBeenSet = false; + + Aws::Utils::DateTime m_deletePendingTimestamp; + bool m_deletePendingTimestampHasBeenSet = false; + + Aws::Utils::DateTime m_deleteTimestamp; + bool m_deleteTimestampHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-payment-cryptography/include/aws/payment-cryptography/model/KeyAttributes.h b/generated/src/aws-cpp-sdk-payment-cryptography/include/aws/payment-cryptography/model/KeyAttributes.h index c53ede5b763..3279a37e9b7 100644 --- a/generated/src/aws-cpp-sdk-payment-cryptography/include/aws/payment-cryptography/model/KeyAttributes.h +++ b/generated/src/aws-cpp-sdk-payment-cryptography/include/aws/payment-cryptography/model/KeyAttributes.h @@ -5,10 +5,10 @@ #pragma once #include -#include +#include #include +#include #include -#include #include namespace Aws @@ -43,58 +43,40 @@ namespace Model /** - *

      The key algorithm to be use during creation of an Amazon Web Services Payment - * Cryptography key.

      For symmetric keys, Amazon Web Services Payment - * Cryptography supports AES and TDES algorithms. For - * asymmetric keys, Amazon Web Services Payment Cryptography supports - * RSA and ECC_NIST algorithms.

      + *

      The cryptographic usage of an Amazon Web Services Payment Cryptography key as + * defined in section A.5.2 of the TR-31 spec.

      */ - inline const KeyAlgorithm& GetKeyAlgorithm() const{ return m_keyAlgorithm; } + inline const KeyUsage& GetKeyUsage() const{ return m_keyUsage; } /** - *

      The key algorithm to be use during creation of an Amazon Web Services Payment - * Cryptography key.

      For symmetric keys, Amazon Web Services Payment - * Cryptography supports AES and TDES algorithms. For - * asymmetric keys, Amazon Web Services Payment Cryptography supports - * RSA and ECC_NIST algorithms.

      + *

      The cryptographic usage of an Amazon Web Services Payment Cryptography key as + * defined in section A.5.2 of the TR-31 spec.

      */ - inline bool KeyAlgorithmHasBeenSet() const { return m_keyAlgorithmHasBeenSet; } + inline bool KeyUsageHasBeenSet() const { return m_keyUsageHasBeenSet; } /** - *

      The key algorithm to be use during creation of an Amazon Web Services Payment - * Cryptography key.

      For symmetric keys, Amazon Web Services Payment - * Cryptography supports AES and TDES algorithms. For - * asymmetric keys, Amazon Web Services Payment Cryptography supports - * RSA and ECC_NIST algorithms.

      + *

      The cryptographic usage of an Amazon Web Services Payment Cryptography key as + * defined in section A.5.2 of the TR-31 spec.

      */ - inline void SetKeyAlgorithm(const KeyAlgorithm& value) { m_keyAlgorithmHasBeenSet = true; m_keyAlgorithm = value; } + inline void SetKeyUsage(const KeyUsage& value) { m_keyUsageHasBeenSet = true; m_keyUsage = value; } /** - *

      The key algorithm to be use during creation of an Amazon Web Services Payment - * Cryptography key.

      For symmetric keys, Amazon Web Services Payment - * Cryptography supports AES and TDES algorithms. For - * asymmetric keys, Amazon Web Services Payment Cryptography supports - * RSA and ECC_NIST algorithms.

      + *

      The cryptographic usage of an Amazon Web Services Payment Cryptography key as + * defined in section A.5.2 of the TR-31 spec.

      */ - inline void SetKeyAlgorithm(KeyAlgorithm&& value) { m_keyAlgorithmHasBeenSet = true; m_keyAlgorithm = std::move(value); } + inline void SetKeyUsage(KeyUsage&& value) { m_keyUsageHasBeenSet = true; m_keyUsage = std::move(value); } /** - *

      The key algorithm to be use during creation of an Amazon Web Services Payment - * Cryptography key.

      For symmetric keys, Amazon Web Services Payment - * Cryptography supports AES and TDES algorithms. For - * asymmetric keys, Amazon Web Services Payment Cryptography supports - * RSA and ECC_NIST algorithms.

      + *

      The cryptographic usage of an Amazon Web Services Payment Cryptography key as + * defined in section A.5.2 of the TR-31 spec.

      */ - inline KeyAttributes& WithKeyAlgorithm(const KeyAlgorithm& value) { SetKeyAlgorithm(value); return *this;} + inline KeyAttributes& WithKeyUsage(const KeyUsage& value) { SetKeyUsage(value); return *this;} /** - *

      The key algorithm to be use during creation of an Amazon Web Services Payment - * Cryptography key.

      For symmetric keys, Amazon Web Services Payment - * Cryptography supports AES and TDES algorithms. For - * asymmetric keys, Amazon Web Services Payment Cryptography supports - * RSA and ECC_NIST algorithms.

      + *

      The cryptographic usage of an Amazon Web Services Payment Cryptography key as + * defined in section A.5.2 of the TR-31 spec.

      */ - inline KeyAttributes& WithKeyAlgorithm(KeyAlgorithm&& value) { SetKeyAlgorithm(std::move(value)); return *this;} + inline KeyAttributes& WithKeyUsage(KeyUsage&& value) { SetKeyUsage(std::move(value)); return *this;} /** @@ -147,85 +129,103 @@ namespace Model /** - *

      The list of cryptographic operations that you can perform using the key.

      + *

      The key algorithm to be use during creation of an Amazon Web Services Payment + * Cryptography key.

      For symmetric keys, Amazon Web Services Payment + * Cryptography supports AES and TDES algorithms. For + * asymmetric keys, Amazon Web Services Payment Cryptography supports + * RSA and ECC_NIST algorithms.

      */ - inline const KeyModesOfUse& GetKeyModesOfUse() const{ return m_keyModesOfUse; } + inline const KeyAlgorithm& GetKeyAlgorithm() const{ return m_keyAlgorithm; } /** - *

      The list of cryptographic operations that you can perform using the key.

      + *

      The key algorithm to be use during creation of an Amazon Web Services Payment + * Cryptography key.

      For symmetric keys, Amazon Web Services Payment + * Cryptography supports AES and TDES algorithms. For + * asymmetric keys, Amazon Web Services Payment Cryptography supports + * RSA and ECC_NIST algorithms.

      */ - inline bool KeyModesOfUseHasBeenSet() const { return m_keyModesOfUseHasBeenSet; } + inline bool KeyAlgorithmHasBeenSet() const { return m_keyAlgorithmHasBeenSet; } /** - *

      The list of cryptographic operations that you can perform using the key.

      + *

      The key algorithm to be use during creation of an Amazon Web Services Payment + * Cryptography key.

      For symmetric keys, Amazon Web Services Payment + * Cryptography supports AES and TDES algorithms. For + * asymmetric keys, Amazon Web Services Payment Cryptography supports + * RSA and ECC_NIST algorithms.

      */ - inline void SetKeyModesOfUse(const KeyModesOfUse& value) { m_keyModesOfUseHasBeenSet = true; m_keyModesOfUse = value; } + inline void SetKeyAlgorithm(const KeyAlgorithm& value) { m_keyAlgorithmHasBeenSet = true; m_keyAlgorithm = value; } /** - *

      The list of cryptographic operations that you can perform using the key.

      + *

      The key algorithm to be use during creation of an Amazon Web Services Payment + * Cryptography key.

      For symmetric keys, Amazon Web Services Payment + * Cryptography supports AES and TDES algorithms. For + * asymmetric keys, Amazon Web Services Payment Cryptography supports + * RSA and ECC_NIST algorithms.

      */ - inline void SetKeyModesOfUse(KeyModesOfUse&& value) { m_keyModesOfUseHasBeenSet = true; m_keyModesOfUse = std::move(value); } + inline void SetKeyAlgorithm(KeyAlgorithm&& value) { m_keyAlgorithmHasBeenSet = true; m_keyAlgorithm = std::move(value); } /** - *

      The list of cryptographic operations that you can perform using the key.

      + *

      The key algorithm to be use during creation of an Amazon Web Services Payment + * Cryptography key.

      For symmetric keys, Amazon Web Services Payment + * Cryptography supports AES and TDES algorithms. For + * asymmetric keys, Amazon Web Services Payment Cryptography supports + * RSA and ECC_NIST algorithms.

      */ - inline KeyAttributes& WithKeyModesOfUse(const KeyModesOfUse& value) { SetKeyModesOfUse(value); return *this;} + inline KeyAttributes& WithKeyAlgorithm(const KeyAlgorithm& value) { SetKeyAlgorithm(value); return *this;} /** - *

      The list of cryptographic operations that you can perform using the key.

      + *

      The key algorithm to be use during creation of an Amazon Web Services Payment + * Cryptography key.

      For symmetric keys, Amazon Web Services Payment + * Cryptography supports AES and TDES algorithms. For + * asymmetric keys, Amazon Web Services Payment Cryptography supports + * RSA and ECC_NIST algorithms.

      */ - inline KeyAttributes& WithKeyModesOfUse(KeyModesOfUse&& value) { SetKeyModesOfUse(std::move(value)); return *this;} + inline KeyAttributes& WithKeyAlgorithm(KeyAlgorithm&& value) { SetKeyAlgorithm(std::move(value)); return *this;} /** - *

      The cryptographic usage of an Amazon Web Services Payment Cryptography key as - * defined in section A.5.2 of the TR-31 spec.

      + *

      The list of cryptographic operations that you can perform using the key.

      */ - inline const KeyUsage& GetKeyUsage() const{ return m_keyUsage; } + inline const KeyModesOfUse& GetKeyModesOfUse() const{ return m_keyModesOfUse; } /** - *

      The cryptographic usage of an Amazon Web Services Payment Cryptography key as - * defined in section A.5.2 of the TR-31 spec.

      + *

      The list of cryptographic operations that you can perform using the key.

      */ - inline bool KeyUsageHasBeenSet() const { return m_keyUsageHasBeenSet; } + inline bool KeyModesOfUseHasBeenSet() const { return m_keyModesOfUseHasBeenSet; } /** - *

      The cryptographic usage of an Amazon Web Services Payment Cryptography key as - * defined in section A.5.2 of the TR-31 spec.

      + *

      The list of cryptographic operations that you can perform using the key.

      */ - inline void SetKeyUsage(const KeyUsage& value) { m_keyUsageHasBeenSet = true; m_keyUsage = value; } + inline void SetKeyModesOfUse(const KeyModesOfUse& value) { m_keyModesOfUseHasBeenSet = true; m_keyModesOfUse = value; } /** - *

      The cryptographic usage of an Amazon Web Services Payment Cryptography key as - * defined in section A.5.2 of the TR-31 spec.

      + *

      The list of cryptographic operations that you can perform using the key.

      */ - inline void SetKeyUsage(KeyUsage&& value) { m_keyUsageHasBeenSet = true; m_keyUsage = std::move(value); } + inline void SetKeyModesOfUse(KeyModesOfUse&& value) { m_keyModesOfUseHasBeenSet = true; m_keyModesOfUse = std::move(value); } /** - *

      The cryptographic usage of an Amazon Web Services Payment Cryptography key as - * defined in section A.5.2 of the TR-31 spec.

      + *

      The list of cryptographic operations that you can perform using the key.

      */ - inline KeyAttributes& WithKeyUsage(const KeyUsage& value) { SetKeyUsage(value); return *this;} + inline KeyAttributes& WithKeyModesOfUse(const KeyModesOfUse& value) { SetKeyModesOfUse(value); return *this;} /** - *

      The cryptographic usage of an Amazon Web Services Payment Cryptography key as - * defined in section A.5.2 of the TR-31 spec.

      + *

      The list of cryptographic operations that you can perform using the key.

      */ - inline KeyAttributes& WithKeyUsage(KeyUsage&& value) { SetKeyUsage(std::move(value)); return *this;} + inline KeyAttributes& WithKeyModesOfUse(KeyModesOfUse&& value) { SetKeyModesOfUse(std::move(value)); return *this;} private: - KeyAlgorithm m_keyAlgorithm; - bool m_keyAlgorithmHasBeenSet = false; + KeyUsage m_keyUsage; + bool m_keyUsageHasBeenSet = false; KeyClass m_keyClass; bool m_keyClassHasBeenSet = false; + KeyAlgorithm m_keyAlgorithm; + bool m_keyAlgorithmHasBeenSet = false; + KeyModesOfUse m_keyModesOfUse; bool m_keyModesOfUseHasBeenSet = false; - - KeyUsage m_keyUsage; - bool m_keyUsageHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-payment-cryptography/include/aws/payment-cryptography/model/KeyBlockHeaders.h b/generated/src/aws-cpp-sdk-payment-cryptography/include/aws/payment-cryptography/model/KeyBlockHeaders.h new file mode 100644 index 00000000000..850a2cefc1f --- /dev/null +++ b/generated/src/aws-cpp-sdk-payment-cryptography/include/aws/payment-cryptography/model/KeyBlockHeaders.h @@ -0,0 +1,369 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace PaymentCryptography +{ +namespace Model +{ + + /** + *

      Optional metadata for export associated with the key material. This data is + * signed but transmitted in clear text.

      See Also:

      AWS + * API Reference

      + */ + class KeyBlockHeaders + { + public: + AWS_PAYMENTCRYPTOGRAPHY_API KeyBlockHeaders(); + AWS_PAYMENTCRYPTOGRAPHY_API KeyBlockHeaders(Aws::Utils::Json::JsonView jsonValue); + AWS_PAYMENTCRYPTOGRAPHY_API KeyBlockHeaders& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_PAYMENTCRYPTOGRAPHY_API Aws::Utils::Json::JsonValue Jsonize() const; + + + + inline const KeyModesOfUse& GetKeyModesOfUse() const{ return m_keyModesOfUse; } + + + inline bool KeyModesOfUseHasBeenSet() const { return m_keyModesOfUseHasBeenSet; } + + + inline void SetKeyModesOfUse(const KeyModesOfUse& value) { m_keyModesOfUseHasBeenSet = true; m_keyModesOfUse = value; } + + + inline void SetKeyModesOfUse(KeyModesOfUse&& value) { m_keyModesOfUseHasBeenSet = true; m_keyModesOfUse = std::move(value); } + + + inline KeyBlockHeaders& WithKeyModesOfUse(const KeyModesOfUse& value) { SetKeyModesOfUse(value); return *this;} + + + inline KeyBlockHeaders& WithKeyModesOfUse(KeyModesOfUse&& value) { SetKeyModesOfUse(std::move(value)); return *this;} + + + /** + *

      Specifies subsequent exportability of the key within the key block after it + * is received by the receiving party. It can be used to further restrict + * exportability of the key after export from Amazon Web Services Payment + * Cryptography.

      When set to EXPORTABLE, the key can be + * subsequently exported by the receiver under a KEK using TR-31 or TR-34 key block + * export only. When set to NON_EXPORTABLE, the key cannot be + * subsequently exported by the receiver. When set to SENSITIVE, the + * key can be exported by the receiver under a KEK using TR-31, TR-34, RSA wrap and + * unwrap cryptogram or using a symmetric cryptogram key export method. For further + * information refer to ANSI + * X9.143-2022.

      + */ + inline const KeyExportability& GetKeyExportability() const{ return m_keyExportability; } + + /** + *

      Specifies subsequent exportability of the key within the key block after it + * is received by the receiving party. It can be used to further restrict + * exportability of the key after export from Amazon Web Services Payment + * Cryptography.

      When set to EXPORTABLE, the key can be + * subsequently exported by the receiver under a KEK using TR-31 or TR-34 key block + * export only. When set to NON_EXPORTABLE, the key cannot be + * subsequently exported by the receiver. When set to SENSITIVE, the + * key can be exported by the receiver under a KEK using TR-31, TR-34, RSA wrap and + * unwrap cryptogram or using a symmetric cryptogram key export method. For further + * information refer to ANSI + * X9.143-2022.

      + */ + inline bool KeyExportabilityHasBeenSet() const { return m_keyExportabilityHasBeenSet; } + + /** + *

      Specifies subsequent exportability of the key within the key block after it + * is received by the receiving party. It can be used to further restrict + * exportability of the key after export from Amazon Web Services Payment + * Cryptography.

      When set to EXPORTABLE, the key can be + * subsequently exported by the receiver under a KEK using TR-31 or TR-34 key block + * export only. When set to NON_EXPORTABLE, the key cannot be + * subsequently exported by the receiver. When set to SENSITIVE, the + * key can be exported by the receiver under a KEK using TR-31, TR-34, RSA wrap and + * unwrap cryptogram or using a symmetric cryptogram key export method. For further + * information refer to ANSI + * X9.143-2022.

      + */ + inline void SetKeyExportability(const KeyExportability& value) { m_keyExportabilityHasBeenSet = true; m_keyExportability = value; } + + /** + *

      Specifies subsequent exportability of the key within the key block after it + * is received by the receiving party. It can be used to further restrict + * exportability of the key after export from Amazon Web Services Payment + * Cryptography.

      When set to EXPORTABLE, the key can be + * subsequently exported by the receiver under a KEK using TR-31 or TR-34 key block + * export only. When set to NON_EXPORTABLE, the key cannot be + * subsequently exported by the receiver. When set to SENSITIVE, the + * key can be exported by the receiver under a KEK using TR-31, TR-34, RSA wrap and + * unwrap cryptogram or using a symmetric cryptogram key export method. For further + * information refer to ANSI + * X9.143-2022.

      + */ + inline void SetKeyExportability(KeyExportability&& value) { m_keyExportabilityHasBeenSet = true; m_keyExportability = std::move(value); } + + /** + *

      Specifies subsequent exportability of the key within the key block after it + * is received by the receiving party. It can be used to further restrict + * exportability of the key after export from Amazon Web Services Payment + * Cryptography.

      When set to EXPORTABLE, the key can be + * subsequently exported by the receiver under a KEK using TR-31 or TR-34 key block + * export only. When set to NON_EXPORTABLE, the key cannot be + * subsequently exported by the receiver. When set to SENSITIVE, the + * key can be exported by the receiver under a KEK using TR-31, TR-34, RSA wrap and + * unwrap cryptogram or using a symmetric cryptogram key export method. For further + * information refer to ANSI + * X9.143-2022.

      + */ + inline KeyBlockHeaders& WithKeyExportability(const KeyExportability& value) { SetKeyExportability(value); return *this;} + + /** + *

      Specifies subsequent exportability of the key within the key block after it + * is received by the receiving party. It can be used to further restrict + * exportability of the key after export from Amazon Web Services Payment + * Cryptography.

      When set to EXPORTABLE, the key can be + * subsequently exported by the receiver under a KEK using TR-31 or TR-34 key block + * export only. When set to NON_EXPORTABLE, the key cannot be + * subsequently exported by the receiver. When set to SENSITIVE, the + * key can be exported by the receiver under a KEK using TR-31, TR-34, RSA wrap and + * unwrap cryptogram or using a symmetric cryptogram key export method. For further + * information refer to ANSI + * X9.143-2022.

      + */ + inline KeyBlockHeaders& WithKeyExportability(KeyExportability&& value) { SetKeyExportability(std::move(value)); return *this;} + + + /** + *

      Parameter used to indicate the version of the key carried in the key block or + * indicate the value carried in the key block is a component of a key.

      + */ + inline const Aws::String& GetKeyVersion() const{ return m_keyVersion; } + + /** + *

      Parameter used to indicate the version of the key carried in the key block or + * indicate the value carried in the key block is a component of a key.

      + */ + inline bool KeyVersionHasBeenSet() const { return m_keyVersionHasBeenSet; } + + /** + *

      Parameter used to indicate the version of the key carried in the key block or + * indicate the value carried in the key block is a component of a key.

      + */ + inline void SetKeyVersion(const Aws::String& value) { m_keyVersionHasBeenSet = true; m_keyVersion = value; } + + /** + *

      Parameter used to indicate the version of the key carried in the key block or + * indicate the value carried in the key block is a component of a key.

      + */ + inline void SetKeyVersion(Aws::String&& value) { m_keyVersionHasBeenSet = true; m_keyVersion = std::move(value); } + + /** + *

      Parameter used to indicate the version of the key carried in the key block or + * indicate the value carried in the key block is a component of a key.

      + */ + inline void SetKeyVersion(const char* value) { m_keyVersionHasBeenSet = true; m_keyVersion.assign(value); } + + /** + *

      Parameter used to indicate the version of the key carried in the key block or + * indicate the value carried in the key block is a component of a key.

      + */ + inline KeyBlockHeaders& WithKeyVersion(const Aws::String& value) { SetKeyVersion(value); return *this;} + + /** + *

      Parameter used to indicate the version of the key carried in the key block or + * indicate the value carried in the key block is a component of a key.

      + */ + inline KeyBlockHeaders& WithKeyVersion(Aws::String&& value) { SetKeyVersion(std::move(value)); return *this;} + + /** + *

      Parameter used to indicate the version of the key carried in the key block or + * indicate the value carried in the key block is a component of a key.

      + */ + inline KeyBlockHeaders& WithKeyVersion(const char* value) { SetKeyVersion(value); return *this;} + + + /** + *

      Parameter used to indicate the type of optional data in key block headers. + * Refer to ANSI + * X9.143-2022 for information on allowed data type for optional blocks.

      + *

      Optional block character limit is 112 characters. For each optional block, 2 + * characters are reserved for optional block ID and 2 characters reserved for + * optional block length. More than one optional blocks can be included as long as + * the combined length does not increase 112 characters.

      + */ + inline const Aws::Map& GetOptionalBlocks() const{ return m_optionalBlocks; } + + /** + *

      Parameter used to indicate the type of optional data in key block headers. + * Refer to ANSI + * X9.143-2022 for information on allowed data type for optional blocks.

      + *

      Optional block character limit is 112 characters. For each optional block, 2 + * characters are reserved for optional block ID and 2 characters reserved for + * optional block length. More than one optional blocks can be included as long as + * the combined length does not increase 112 characters.

      + */ + inline bool OptionalBlocksHasBeenSet() const { return m_optionalBlocksHasBeenSet; } + + /** + *

      Parameter used to indicate the type of optional data in key block headers. + * Refer to ANSI + * X9.143-2022 for information on allowed data type for optional blocks.

      + *

      Optional block character limit is 112 characters. For each optional block, 2 + * characters are reserved for optional block ID and 2 characters reserved for + * optional block length. More than one optional blocks can be included as long as + * the combined length does not increase 112 characters.

      + */ + inline void SetOptionalBlocks(const Aws::Map& value) { m_optionalBlocksHasBeenSet = true; m_optionalBlocks = value; } + + /** + *

      Parameter used to indicate the type of optional data in key block headers. + * Refer to ANSI + * X9.143-2022 for information on allowed data type for optional blocks.

      + *

      Optional block character limit is 112 characters. For each optional block, 2 + * characters are reserved for optional block ID and 2 characters reserved for + * optional block length. More than one optional blocks can be included as long as + * the combined length does not increase 112 characters.

      + */ + inline void SetOptionalBlocks(Aws::Map&& value) { m_optionalBlocksHasBeenSet = true; m_optionalBlocks = std::move(value); } + + /** + *

      Parameter used to indicate the type of optional data in key block headers. + * Refer to ANSI + * X9.143-2022 for information on allowed data type for optional blocks.

      + *

      Optional block character limit is 112 characters. For each optional block, 2 + * characters are reserved for optional block ID and 2 characters reserved for + * optional block length. More than one optional blocks can be included as long as + * the combined length does not increase 112 characters.

      + */ + inline KeyBlockHeaders& WithOptionalBlocks(const Aws::Map& value) { SetOptionalBlocks(value); return *this;} + + /** + *

      Parameter used to indicate the type of optional data in key block headers. + * Refer to ANSI + * X9.143-2022 for information on allowed data type for optional blocks.

      + *

      Optional block character limit is 112 characters. For each optional block, 2 + * characters are reserved for optional block ID and 2 characters reserved for + * optional block length. More than one optional blocks can be included as long as + * the combined length does not increase 112 characters.

      + */ + inline KeyBlockHeaders& WithOptionalBlocks(Aws::Map&& value) { SetOptionalBlocks(std::move(value)); return *this;} + + /** + *

      Parameter used to indicate the type of optional data in key block headers. + * Refer to ANSI + * X9.143-2022 for information on allowed data type for optional blocks.

      + *

      Optional block character limit is 112 characters. For each optional block, 2 + * characters are reserved for optional block ID and 2 characters reserved for + * optional block length. More than one optional blocks can be included as long as + * the combined length does not increase 112 characters.

      + */ + inline KeyBlockHeaders& AddOptionalBlocks(const Aws::String& key, const Aws::String& value) { m_optionalBlocksHasBeenSet = true; m_optionalBlocks.emplace(key, value); return *this; } + + /** + *

      Parameter used to indicate the type of optional data in key block headers. + * Refer to ANSI + * X9.143-2022 for information on allowed data type for optional blocks.

      + *

      Optional block character limit is 112 characters. For each optional block, 2 + * characters are reserved for optional block ID and 2 characters reserved for + * optional block length. More than one optional blocks can be included as long as + * the combined length does not increase 112 characters.

      + */ + inline KeyBlockHeaders& AddOptionalBlocks(Aws::String&& key, const Aws::String& value) { m_optionalBlocksHasBeenSet = true; m_optionalBlocks.emplace(std::move(key), value); return *this; } + + /** + *

      Parameter used to indicate the type of optional data in key block headers. + * Refer to ANSI + * X9.143-2022 for information on allowed data type for optional blocks.

      + *

      Optional block character limit is 112 characters. For each optional block, 2 + * characters are reserved for optional block ID and 2 characters reserved for + * optional block length. More than one optional blocks can be included as long as + * the combined length does not increase 112 characters.

      + */ + inline KeyBlockHeaders& AddOptionalBlocks(const Aws::String& key, Aws::String&& value) { m_optionalBlocksHasBeenSet = true; m_optionalBlocks.emplace(key, std::move(value)); return *this; } + + /** + *

      Parameter used to indicate the type of optional data in key block headers. + * Refer to ANSI + * X9.143-2022 for information on allowed data type for optional blocks.

      + *

      Optional block character limit is 112 characters. For each optional block, 2 + * characters are reserved for optional block ID and 2 characters reserved for + * optional block length. More than one optional blocks can be included as long as + * the combined length does not increase 112 characters.

      + */ + inline KeyBlockHeaders& AddOptionalBlocks(Aws::String&& key, Aws::String&& value) { m_optionalBlocksHasBeenSet = true; m_optionalBlocks.emplace(std::move(key), std::move(value)); return *this; } + + /** + *

      Parameter used to indicate the type of optional data in key block headers. + * Refer to ANSI + * X9.143-2022 for information on allowed data type for optional blocks.

      + *

      Optional block character limit is 112 characters. For each optional block, 2 + * characters are reserved for optional block ID and 2 characters reserved for + * optional block length. More than one optional blocks can be included as long as + * the combined length does not increase 112 characters.

      + */ + inline KeyBlockHeaders& AddOptionalBlocks(const char* key, Aws::String&& value) { m_optionalBlocksHasBeenSet = true; m_optionalBlocks.emplace(key, std::move(value)); return *this; } + + /** + *

      Parameter used to indicate the type of optional data in key block headers. + * Refer to ANSI + * X9.143-2022 for information on allowed data type for optional blocks.

      + *

      Optional block character limit is 112 characters. For each optional block, 2 + * characters are reserved for optional block ID and 2 characters reserved for + * optional block length. More than one optional blocks can be included as long as + * the combined length does not increase 112 characters.

      + */ + inline KeyBlockHeaders& AddOptionalBlocks(Aws::String&& key, const char* value) { m_optionalBlocksHasBeenSet = true; m_optionalBlocks.emplace(std::move(key), value); return *this; } + + /** + *

      Parameter used to indicate the type of optional data in key block headers. + * Refer to ANSI + * X9.143-2022 for information on allowed data type for optional blocks.

      + *

      Optional block character limit is 112 characters. For each optional block, 2 + * characters are reserved for optional block ID and 2 characters reserved for + * optional block length. More than one optional blocks can be included as long as + * the combined length does not increase 112 characters.

      + */ + inline KeyBlockHeaders& AddOptionalBlocks(const char* key, const char* value) { m_optionalBlocksHasBeenSet = true; m_optionalBlocks.emplace(key, value); return *this; } + + private: + + KeyModesOfUse m_keyModesOfUse; + bool m_keyModesOfUseHasBeenSet = false; + + KeyExportability m_keyExportability; + bool m_keyExportabilityHasBeenSet = false; + + Aws::String m_keyVersion; + bool m_keyVersionHasBeenSet = false; + + Aws::Map m_optionalBlocks; + bool m_optionalBlocksHasBeenSet = false; + }; + +} // namespace Model +} // namespace PaymentCryptography +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-payment-cryptography/include/aws/payment-cryptography/model/KeyExportability.h b/generated/src/aws-cpp-sdk-payment-cryptography/include/aws/payment-cryptography/model/KeyExportability.h new file mode 100644 index 00000000000..49c7d404ce6 --- /dev/null +++ b/generated/src/aws-cpp-sdk-payment-cryptography/include/aws/payment-cryptography/model/KeyExportability.h @@ -0,0 +1,32 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace PaymentCryptography +{ +namespace Model +{ + enum class KeyExportability + { + NOT_SET, + EXPORTABLE, + NON_EXPORTABLE, + SENSITIVE + }; + +namespace KeyExportabilityMapper +{ +AWS_PAYMENTCRYPTOGRAPHY_API KeyExportability GetKeyExportabilityForName(const Aws::String& name); + +AWS_PAYMENTCRYPTOGRAPHY_API Aws::String GetNameForKeyExportability(KeyExportability value); +} // namespace KeyExportabilityMapper +} // namespace Model +} // namespace PaymentCryptography +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-payment-cryptography/include/aws/payment-cryptography/model/KeyModesOfUse.h b/generated/src/aws-cpp-sdk-payment-cryptography/include/aws/payment-cryptography/model/KeyModesOfUse.h index 5ccbf5e29f2..0c322071b20 100644 --- a/generated/src/aws-cpp-sdk-payment-cryptography/include/aws/payment-cryptography/model/KeyModesOfUse.h +++ b/generated/src/aws-cpp-sdk-payment-cryptography/include/aws/payment-cryptography/model/KeyModesOfUse.h @@ -37,6 +37,31 @@ namespace Model AWS_PAYMENTCRYPTOGRAPHY_API Aws::Utils::Json::JsonValue Jsonize() const; + /** + *

      Specifies whether an Amazon Web Services Payment Cryptography key can be used + * to encrypt data.

      + */ + inline bool GetEncrypt() const{ return m_encrypt; } + + /** + *

      Specifies whether an Amazon Web Services Payment Cryptography key can be used + * to encrypt data.

      + */ + inline bool EncryptHasBeenSet() const { return m_encryptHasBeenSet; } + + /** + *

      Specifies whether an Amazon Web Services Payment Cryptography key can be used + * to encrypt data.

      + */ + inline void SetEncrypt(bool value) { m_encryptHasBeenSet = true; m_encrypt = value; } + + /** + *

      Specifies whether an Amazon Web Services Payment Cryptography key can be used + * to encrypt data.

      + */ + inline KeyModesOfUse& WithEncrypt(bool value) { SetEncrypt(value); return *this;} + + /** *

      Specifies whether an Amazon Web Services Payment Cryptography key can be used * to decrypt data.

      @@ -64,52 +89,52 @@ namespace Model /** *

      Specifies whether an Amazon Web Services Payment Cryptography key can be used - * to derive new keys.

      + * to wrap other keys.

      */ - inline bool GetDeriveKey() const{ return m_deriveKey; } + inline bool GetWrap() const{ return m_wrap; } /** *

      Specifies whether an Amazon Web Services Payment Cryptography key can be used - * to derive new keys.

      + * to wrap other keys.

      */ - inline bool DeriveKeyHasBeenSet() const { return m_deriveKeyHasBeenSet; } + inline bool WrapHasBeenSet() const { return m_wrapHasBeenSet; } /** *

      Specifies whether an Amazon Web Services Payment Cryptography key can be used - * to derive new keys.

      + * to wrap other keys.

      */ - inline void SetDeriveKey(bool value) { m_deriveKeyHasBeenSet = true; m_deriveKey = value; } + inline void SetWrap(bool value) { m_wrapHasBeenSet = true; m_wrap = value; } /** *

      Specifies whether an Amazon Web Services Payment Cryptography key can be used - * to derive new keys.

      + * to wrap other keys.

      */ - inline KeyModesOfUse& WithDeriveKey(bool value) { SetDeriveKey(value); return *this;} + inline KeyModesOfUse& WithWrap(bool value) { SetWrap(value); return *this;} /** *

      Specifies whether an Amazon Web Services Payment Cryptography key can be used - * to encrypt data.

      + * to unwrap other keys.

      */ - inline bool GetEncrypt() const{ return m_encrypt; } + inline bool GetUnwrap() const{ return m_unwrap; } /** *

      Specifies whether an Amazon Web Services Payment Cryptography key can be used - * to encrypt data.

      + * to unwrap other keys.

      */ - inline bool EncryptHasBeenSet() const { return m_encryptHasBeenSet; } + inline bool UnwrapHasBeenSet() const { return m_unwrapHasBeenSet; } /** *

      Specifies whether an Amazon Web Services Payment Cryptography key can be used - * to encrypt data.

      + * to unwrap other keys.

      */ - inline void SetEncrypt(bool value) { m_encryptHasBeenSet = true; m_encrypt = value; } + inline void SetUnwrap(bool value) { m_unwrapHasBeenSet = true; m_unwrap = value; } /** *

      Specifies whether an Amazon Web Services Payment Cryptography key can be used - * to encrypt data.

      + * to unwrap other keys.

      */ - inline KeyModesOfUse& WithEncrypt(bool value) { SetEncrypt(value); return *this;} + inline KeyModesOfUse& WithUnwrap(bool value) { SetUnwrap(value); return *this;} /** @@ -137,35 +162,6 @@ namespace Model inline KeyModesOfUse& WithGenerate(bool value) { SetGenerate(value); return *this;} - /** - *

      Specifies whether an Amazon Web Services Payment Cryptography key has no - * special restrictions other than the restrictions implied by - * KeyUsage.

      - */ - inline bool GetNoRestrictions() const{ return m_noRestrictions; } - - /** - *

      Specifies whether an Amazon Web Services Payment Cryptography key has no - * special restrictions other than the restrictions implied by - * KeyUsage.

      - */ - inline bool NoRestrictionsHasBeenSet() const { return m_noRestrictionsHasBeenSet; } - - /** - *

      Specifies whether an Amazon Web Services Payment Cryptography key has no - * special restrictions other than the restrictions implied by - * KeyUsage.

      - */ - inline void SetNoRestrictions(bool value) { m_noRestrictionsHasBeenSet = true; m_noRestrictions = value; } - - /** - *

      Specifies whether an Amazon Web Services Payment Cryptography key has no - * special restrictions other than the restrictions implied by - * KeyUsage.

      - */ - inline KeyModesOfUse& WithNoRestrictions(bool value) { SetNoRestrictions(value); return *this;} - - /** *

      Specifies whether an Amazon Web Services Payment Cryptography key can be used * for signing.

      @@ -193,106 +189,110 @@ namespace Model /** *

      Specifies whether an Amazon Web Services Payment Cryptography key can be used - * to unwrap other keys.

      + * to verify signatures.

      */ - inline bool GetUnwrap() const{ return m_unwrap; } + inline bool GetVerify() const{ return m_verify; } /** *

      Specifies whether an Amazon Web Services Payment Cryptography key can be used - * to unwrap other keys.

      + * to verify signatures.

      */ - inline bool UnwrapHasBeenSet() const { return m_unwrapHasBeenSet; } + inline bool VerifyHasBeenSet() const { return m_verifyHasBeenSet; } /** *

      Specifies whether an Amazon Web Services Payment Cryptography key can be used - * to unwrap other keys.

      + * to verify signatures.

      */ - inline void SetUnwrap(bool value) { m_unwrapHasBeenSet = true; m_unwrap = value; } + inline void SetVerify(bool value) { m_verifyHasBeenSet = true; m_verify = value; } /** *

      Specifies whether an Amazon Web Services Payment Cryptography key can be used - * to unwrap other keys.

      + * to verify signatures.

      */ - inline KeyModesOfUse& WithUnwrap(bool value) { SetUnwrap(value); return *this;} + inline KeyModesOfUse& WithVerify(bool value) { SetVerify(value); return *this;} /** *

      Specifies whether an Amazon Web Services Payment Cryptography key can be used - * to verify signatures.

      + * to derive new keys.

      */ - inline bool GetVerify() const{ return m_verify; } + inline bool GetDeriveKey() const{ return m_deriveKey; } /** *

      Specifies whether an Amazon Web Services Payment Cryptography key can be used - * to verify signatures.

      + * to derive new keys.

      */ - inline bool VerifyHasBeenSet() const { return m_verifyHasBeenSet; } + inline bool DeriveKeyHasBeenSet() const { return m_deriveKeyHasBeenSet; } /** *

      Specifies whether an Amazon Web Services Payment Cryptography key can be used - * to verify signatures.

      + * to derive new keys.

      */ - inline void SetVerify(bool value) { m_verifyHasBeenSet = true; m_verify = value; } + inline void SetDeriveKey(bool value) { m_deriveKeyHasBeenSet = true; m_deriveKey = value; } /** *

      Specifies whether an Amazon Web Services Payment Cryptography key can be used - * to verify signatures.

      + * to derive new keys.

      */ - inline KeyModesOfUse& WithVerify(bool value) { SetVerify(value); return *this;} + inline KeyModesOfUse& WithDeriveKey(bool value) { SetDeriveKey(value); return *this;} /** - *

      Specifies whether an Amazon Web Services Payment Cryptography key can be used - * to wrap other keys.

      + *

      Specifies whether an Amazon Web Services Payment Cryptography key has no + * special restrictions other than the restrictions implied by + * KeyUsage.

      */ - inline bool GetWrap() const{ return m_wrap; } + inline bool GetNoRestrictions() const{ return m_noRestrictions; } /** - *

      Specifies whether an Amazon Web Services Payment Cryptography key can be used - * to wrap other keys.

      + *

      Specifies whether an Amazon Web Services Payment Cryptography key has no + * special restrictions other than the restrictions implied by + * KeyUsage.

      */ - inline bool WrapHasBeenSet() const { return m_wrapHasBeenSet; } + inline bool NoRestrictionsHasBeenSet() const { return m_noRestrictionsHasBeenSet; } /** - *

      Specifies whether an Amazon Web Services Payment Cryptography key can be used - * to wrap other keys.

      + *

      Specifies whether an Amazon Web Services Payment Cryptography key has no + * special restrictions other than the restrictions implied by + * KeyUsage.

      */ - inline void SetWrap(bool value) { m_wrapHasBeenSet = true; m_wrap = value; } + inline void SetNoRestrictions(bool value) { m_noRestrictionsHasBeenSet = true; m_noRestrictions = value; } /** - *

      Specifies whether an Amazon Web Services Payment Cryptography key can be used - * to wrap other keys.

      + *

      Specifies whether an Amazon Web Services Payment Cryptography key has no + * special restrictions other than the restrictions implied by + * KeyUsage.

      */ - inline KeyModesOfUse& WithWrap(bool value) { SetWrap(value); return *this;} + inline KeyModesOfUse& WithNoRestrictions(bool value) { SetNoRestrictions(value); return *this;} private: + bool m_encrypt; + bool m_encryptHasBeenSet = false; + bool m_decrypt; bool m_decryptHasBeenSet = false; - bool m_deriveKey; - bool m_deriveKeyHasBeenSet = false; + bool m_wrap; + bool m_wrapHasBeenSet = false; - bool m_encrypt; - bool m_encryptHasBeenSet = false; + bool m_unwrap; + bool m_unwrapHasBeenSet = false; bool m_generate; bool m_generateHasBeenSet = false; - bool m_noRestrictions; - bool m_noRestrictionsHasBeenSet = false; - bool m_sign; bool m_signHasBeenSet = false; - bool m_unwrap; - bool m_unwrapHasBeenSet = false; - bool m_verify; bool m_verifyHasBeenSet = false; - bool m_wrap; - bool m_wrapHasBeenSet = false; + bool m_deriveKey; + bool m_deriveKeyHasBeenSet = false; + + bool m_noRestrictions; + bool m_noRestrictionsHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-payment-cryptography/include/aws/payment-cryptography/model/KeySummary.h b/generated/src/aws-cpp-sdk-payment-cryptography/include/aws/payment-cryptography/model/KeySummary.h index 88da7285a9d..78f4d2865a3 100644 --- a/generated/src/aws-cpp-sdk-payment-cryptography/include/aws/payment-cryptography/model/KeySummary.h +++ b/generated/src/aws-cpp-sdk-payment-cryptography/include/aws/payment-cryptography/model/KeySummary.h @@ -6,8 +6,8 @@ #pragma once #include #include -#include #include +#include #include namespace Aws @@ -41,90 +41,81 @@ namespace Model /** - *

      Specifies whether the key is enabled.

      - */ - inline bool GetEnabled() const{ return m_enabled; } - - /** - *

      Specifies whether the key is enabled.

      - */ - inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; } - - /** - *

      Specifies whether the key is enabled.

      + *

      The Amazon Resource Name (ARN) of the key.

      */ - inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; } + inline const Aws::String& GetKeyArn() const{ return m_keyArn; } /** - *

      Specifies whether the key is enabled.

      + *

      The Amazon Resource Name (ARN) of the key.

      */ - inline KeySummary& WithEnabled(bool value) { SetEnabled(value); return *this;} - + inline bool KeyArnHasBeenSet() const { return m_keyArnHasBeenSet; } /** - *

      Specifies whether the key is exportable. This data is immutable after the key - * is created.

      + *

      The Amazon Resource Name (ARN) of the key.

      */ - inline bool GetExportable() const{ return m_exportable; } + inline void SetKeyArn(const Aws::String& value) { m_keyArnHasBeenSet = true; m_keyArn = value; } /** - *

      Specifies whether the key is exportable. This data is immutable after the key - * is created.

      + *

      The Amazon Resource Name (ARN) of the key.

      */ - inline bool ExportableHasBeenSet() const { return m_exportableHasBeenSet; } + inline void SetKeyArn(Aws::String&& value) { m_keyArnHasBeenSet = true; m_keyArn = std::move(value); } /** - *

      Specifies whether the key is exportable. This data is immutable after the key - * is created.

      + *

      The Amazon Resource Name (ARN) of the key.

      */ - inline void SetExportable(bool value) { m_exportableHasBeenSet = true; m_exportable = value; } + inline void SetKeyArn(const char* value) { m_keyArnHasBeenSet = true; m_keyArn.assign(value); } /** - *

      Specifies whether the key is exportable. This data is immutable after the key - * is created.

      + *

      The Amazon Resource Name (ARN) of the key.

      */ - inline KeySummary& WithExportable(bool value) { SetExportable(value); return *this;} - + inline KeySummary& WithKeyArn(const Aws::String& value) { SetKeyArn(value); return *this;} /** *

      The Amazon Resource Name (ARN) of the key.

      */ - inline const Aws::String& GetKeyArn() const{ return m_keyArn; } + inline KeySummary& WithKeyArn(Aws::String&& value) { SetKeyArn(std::move(value)); return *this;} /** *

      The Amazon Resource Name (ARN) of the key.

      */ - inline bool KeyArnHasBeenSet() const { return m_keyArnHasBeenSet; } + inline KeySummary& WithKeyArn(const char* value) { SetKeyArn(value); return *this;} + /** - *

      The Amazon Resource Name (ARN) of the key.

      + *

      The state of an Amazon Web Services Payment Cryptography that is being + * created or deleted.

      */ - inline void SetKeyArn(const Aws::String& value) { m_keyArnHasBeenSet = true; m_keyArn = value; } + inline const KeyState& GetKeyState() const{ return m_keyState; } /** - *

      The Amazon Resource Name (ARN) of the key.

      + *

      The state of an Amazon Web Services Payment Cryptography that is being + * created or deleted.

      */ - inline void SetKeyArn(Aws::String&& value) { m_keyArnHasBeenSet = true; m_keyArn = std::move(value); } + inline bool KeyStateHasBeenSet() const { return m_keyStateHasBeenSet; } /** - *

      The Amazon Resource Name (ARN) of the key.

      + *

      The state of an Amazon Web Services Payment Cryptography that is being + * created or deleted.

      */ - inline void SetKeyArn(const char* value) { m_keyArnHasBeenSet = true; m_keyArn.assign(value); } + inline void SetKeyState(const KeyState& value) { m_keyStateHasBeenSet = true; m_keyState = value; } /** - *

      The Amazon Resource Name (ARN) of the key.

      + *

      The state of an Amazon Web Services Payment Cryptography that is being + * created or deleted.

      */ - inline KeySummary& WithKeyArn(const Aws::String& value) { SetKeyArn(value); return *this;} + inline void SetKeyState(KeyState&& value) { m_keyStateHasBeenSet = true; m_keyState = std::move(value); } /** - *

      The Amazon Resource Name (ARN) of the key.

      + *

      The state of an Amazon Web Services Payment Cryptography that is being + * created or deleted.

      */ - inline KeySummary& WithKeyArn(Aws::String&& value) { SetKeyArn(std::move(value)); return *this;} + inline KeySummary& WithKeyState(const KeyState& value) { SetKeyState(value); return *this;} /** - *

      The Amazon Resource Name (ARN) of the key.

      + *

      The state of an Amazon Web Services Payment Cryptography that is being + * created or deleted.

      */ - inline KeySummary& WithKeyArn(const char* value) { SetKeyArn(value); return *this;} + inline KeySummary& WithKeyState(KeyState&& value) { SetKeyState(std::move(value)); return *this;} /** @@ -220,60 +211,69 @@ namespace Model /** - *

      The state of an Amazon Web Services Payment Cryptography that is being - * created or deleted.

      + *

      Specifies whether the key is exportable. This data is immutable after the key + * is created.

      */ - inline const KeyState& GetKeyState() const{ return m_keyState; } + inline bool GetExportable() const{ return m_exportable; } /** - *

      The state of an Amazon Web Services Payment Cryptography that is being - * created or deleted.

      + *

      Specifies whether the key is exportable. This data is immutable after the key + * is created.

      */ - inline bool KeyStateHasBeenSet() const { return m_keyStateHasBeenSet; } + inline bool ExportableHasBeenSet() const { return m_exportableHasBeenSet; } /** - *

      The state of an Amazon Web Services Payment Cryptography that is being - * created or deleted.

      + *

      Specifies whether the key is exportable. This data is immutable after the key + * is created.

      */ - inline void SetKeyState(const KeyState& value) { m_keyStateHasBeenSet = true; m_keyState = value; } + inline void SetExportable(bool value) { m_exportableHasBeenSet = true; m_exportable = value; } /** - *

      The state of an Amazon Web Services Payment Cryptography that is being - * created or deleted.

      + *

      Specifies whether the key is exportable. This data is immutable after the key + * is created.

      */ - inline void SetKeyState(KeyState&& value) { m_keyStateHasBeenSet = true; m_keyState = std::move(value); } + inline KeySummary& WithExportable(bool value) { SetExportable(value); return *this;} + /** - *

      The state of an Amazon Web Services Payment Cryptography that is being - * created or deleted.

      + *

      Specifies whether the key is enabled.

      */ - inline KeySummary& WithKeyState(const KeyState& value) { SetKeyState(value); return *this;} + inline bool GetEnabled() const{ return m_enabled; } /** - *

      The state of an Amazon Web Services Payment Cryptography that is being - * created or deleted.

      + *

      Specifies whether the key is enabled.

      */ - inline KeySummary& WithKeyState(KeyState&& value) { SetKeyState(std::move(value)); return *this;} + inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; } - private: + /** + *

      Specifies whether the key is enabled.

      + */ + inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; } - bool m_enabled; - bool m_enabledHasBeenSet = false; + /** + *

      Specifies whether the key is enabled.

      + */ + inline KeySummary& WithEnabled(bool value) { SetEnabled(value); return *this;} - bool m_exportable; - bool m_exportableHasBeenSet = false; + private: Aws::String m_keyArn; bool m_keyArnHasBeenSet = false; + KeyState m_keyState; + bool m_keyStateHasBeenSet = false; + KeyAttributes m_keyAttributes; bool m_keyAttributesHasBeenSet = false; Aws::String m_keyCheckValue; bool m_keyCheckValueHasBeenSet = false; - KeyState m_keyState; - bool m_keyStateHasBeenSet = false; + bool m_exportable; + bool m_exportableHasBeenSet = false; + + bool m_enabled; + bool m_enabledHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-payment-cryptography/include/aws/payment-cryptography/model/ListAliasesRequest.h b/generated/src/aws-cpp-sdk-payment-cryptography/include/aws/payment-cryptography/model/ListAliasesRequest.h index 37086cb57f1..8324c8e7773 100644 --- a/generated/src/aws-cpp-sdk-payment-cryptography/include/aws/payment-cryptography/model/ListAliasesRequest.h +++ b/generated/src/aws-cpp-sdk-payment-cryptography/include/aws/payment-cryptography/model/ListAliasesRequest.h @@ -34,43 +34,6 @@ namespace Model AWS_PAYMENTCRYPTOGRAPHY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; - /** - *

      Use this parameter to specify the maximum number of items to return. When - * this value is present, Amazon Web Services Payment Cryptography does not return - * more than the specified number of items, but it might return fewer.

      This - * value is optional. If you include a value, it must be between 1 and 100, - * inclusive. If you do not include a value, it defaults to 50.

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

      Use this parameter to specify the maximum number of items to return. When - * this value is present, Amazon Web Services Payment Cryptography does not return - * more than the specified number of items, but it might return fewer.

      This - * value is optional. If you include a value, it must be between 1 and 100, - * inclusive. If you do not include a value, it defaults to 50.

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

      Use this parameter to specify the maximum number of items to return. When - * this value is present, Amazon Web Services Payment Cryptography does not return - * more than the specified number of items, but it might return fewer.

      This - * value is optional. If you include a value, it must be between 1 and 100, - * inclusive. If you do not include a value, it defaults to 50.

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

      Use this parameter to specify the maximum number of items to return. When - * this value is present, Amazon Web Services Payment Cryptography does not return - * more than the specified number of items, but it might return fewer.

      This - * value is optional. If you include a value, it must be between 1 and 100, - * inclusive. If you do not include a value, it defaults to 50.

      - */ - inline ListAliasesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} - - /** *

      Use this parameter in a subsequent request after you receive a response with * truncated results. Set it to the value of NextToken from the @@ -127,13 +90,50 @@ namespace Model */ inline ListAliasesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} - private: - int m_maxResults; - bool m_maxResultsHasBeenSet = false; + /** + *

      Use this parameter to specify the maximum number of items to return. When + * this value is present, Amazon Web Services Payment Cryptography does not return + * more than the specified number of items, but it might return fewer.

      This + * value is optional. If you include a value, it must be between 1 and 100, + * inclusive. If you do not include a value, it defaults to 50.

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

      Use this parameter to specify the maximum number of items to return. When + * this value is present, Amazon Web Services Payment Cryptography does not return + * more than the specified number of items, but it might return fewer.

      This + * value is optional. If you include a value, it must be between 1 and 100, + * inclusive. If you do not include a value, it defaults to 50.

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

      Use this parameter to specify the maximum number of items to return. When + * this value is present, Amazon Web Services Payment Cryptography does not return + * more than the specified number of items, but it might return fewer.

      This + * value is optional. If you include a value, it must be between 1 and 100, + * inclusive. If you do not include a value, it defaults to 50.

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

      Use this parameter to specify the maximum number of items to return. When + * this value is present, Amazon Web Services Payment Cryptography does not return + * more than the specified number of items, but it might return fewer.

      This + * value is optional. If you include a value, it must be between 1 and 100, + * inclusive. If you do not include a value, it defaults to 50.

      + */ + inline ListAliasesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} + + private: Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; + + int m_maxResults; + bool m_maxResultsHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-payment-cryptography/include/aws/payment-cryptography/model/ListKeysRequest.h b/generated/src/aws-cpp-sdk-payment-cryptography/include/aws/payment-cryptography/model/ListKeysRequest.h index c84dcecc375..12e23df662a 100644 --- a/generated/src/aws-cpp-sdk-payment-cryptography/include/aws/payment-cryptography/model/ListKeysRequest.h +++ b/generated/src/aws-cpp-sdk-payment-cryptography/include/aws/payment-cryptography/model/ListKeysRequest.h @@ -66,43 +66,6 @@ namespace Model inline ListKeysRequest& WithKeyState(KeyState&& value) { SetKeyState(std::move(value)); return *this;} - /** - *

      Use this parameter to specify the maximum number of items to return. When - * this value is present, Amazon Web Services Payment Cryptography does not return - * more than the specified number of items, but it might return fewer.

      This - * value is optional. If you include a value, it must be between 1 and 100, - * inclusive. If you do not include a value, it defaults to 50.

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

      Use this parameter to specify the maximum number of items to return. When - * this value is present, Amazon Web Services Payment Cryptography does not return - * more than the specified number of items, but it might return fewer.

      This - * value is optional. If you include a value, it must be between 1 and 100, - * inclusive. If you do not include a value, it defaults to 50.

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

      Use this parameter to specify the maximum number of items to return. When - * this value is present, Amazon Web Services Payment Cryptography does not return - * more than the specified number of items, but it might return fewer.

      This - * value is optional. If you include a value, it must be between 1 and 100, - * inclusive. If you do not include a value, it defaults to 50.

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

      Use this parameter to specify the maximum number of items to return. When - * this value is present, Amazon Web Services Payment Cryptography does not return - * more than the specified number of items, but it might return fewer.

      This - * value is optional. If you include a value, it must be between 1 and 100, - * inclusive. If you do not include a value, it defaults to 50.

      - */ - inline ListKeysRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} - - /** *

      Use this parameter in a subsequent request after you receive a response with * truncated results. Set it to the value of NextToken from the @@ -159,16 +122,53 @@ namespace Model */ inline ListKeysRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} + + /** + *

      Use this parameter to specify the maximum number of items to return. When + * this value is present, Amazon Web Services Payment Cryptography does not return + * more than the specified number of items, but it might return fewer.

      This + * value is optional. If you include a value, it must be between 1 and 100, + * inclusive. If you do not include a value, it defaults to 50.

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

      Use this parameter to specify the maximum number of items to return. When + * this value is present, Amazon Web Services Payment Cryptography does not return + * more than the specified number of items, but it might return fewer.

      This + * value is optional. If you include a value, it must be between 1 and 100, + * inclusive. If you do not include a value, it defaults to 50.

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

      Use this parameter to specify the maximum number of items to return. When + * this value is present, Amazon Web Services Payment Cryptography does not return + * more than the specified number of items, but it might return fewer.

      This + * value is optional. If you include a value, it must be between 1 and 100, + * inclusive. If you do not include a value, it defaults to 50.

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

      Use this parameter to specify the maximum number of items to return. When + * this value is present, Amazon Web Services Payment Cryptography does not return + * more than the specified number of items, but it might return fewer.

      This + * value is optional. If you include a value, it must be between 1 and 100, + * inclusive. If you do not include a value, it defaults to 50.

      + */ + inline ListKeysRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} + private: KeyState m_keyState; bool m_keyStateHasBeenSet = false; - int m_maxResults; - bool m_maxResultsHasBeenSet = false; - Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; + + int m_maxResults; + bool m_maxResultsHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-payment-cryptography/include/aws/payment-cryptography/model/ListTagsForResourceRequest.h b/generated/src/aws-cpp-sdk-payment-cryptography/include/aws/payment-cryptography/model/ListTagsForResourceRequest.h index 5f2b1124dfe..788cad5d54f 100644 --- a/generated/src/aws-cpp-sdk-payment-cryptography/include/aws/payment-cryptography/model/ListTagsForResourceRequest.h +++ b/generated/src/aws-cpp-sdk-payment-cryptography/include/aws/payment-cryptography/model/ListTagsForResourceRequest.h @@ -35,40 +35,44 @@ namespace Model /** - *

      Use this parameter to specify the maximum number of items to return. When - * this value is present, Amazon Web Services Payment Cryptography does not return - * more than the specified number of items, but it might return fewer.

      This - * value is optional. If you include a value, it must be between 1 and 100, - * inclusive. If you do not include a value, it defaults to 50.

      + *

      The KeyARN of the key whose tags you are getting.

      */ - inline int GetMaxResults() const{ return m_maxResults; } + inline const Aws::String& GetResourceArn() const{ return m_resourceArn; } /** - *

      Use this parameter to specify the maximum number of items to return. When - * this value is present, Amazon Web Services Payment Cryptography does not return - * more than the specified number of items, but it might return fewer.

      This - * value is optional. If you include a value, it must be between 1 and 100, - * inclusive. If you do not include a value, it defaults to 50.

      + *

      The KeyARN of the key whose tags you are getting.

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

      Use this parameter to specify the maximum number of items to return. When - * this value is present, Amazon Web Services Payment Cryptography does not return - * more than the specified number of items, but it might return fewer.

      This - * value is optional. If you include a value, it must be between 1 and 100, - * inclusive. If you do not include a value, it defaults to 50.

      + *

      The KeyARN of the key whose tags you are getting.

      */ - inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } + inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; } /** - *

      Use this parameter to specify the maximum number of items to return. When - * this value is present, Amazon Web Services Payment Cryptography does not return - * more than the specified number of items, but it might return fewer.

      This - * value is optional. If you include a value, it must be between 1 and 100, - * inclusive. If you do not include a value, it defaults to 50.

      + *

      The KeyARN of the key whose tags you are getting.

      */ - inline ListTagsForResourceRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} + inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); } + + /** + *

      The KeyARN of the key whose tags you are getting.

      + */ + inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); } + + /** + *

      The KeyARN of the key whose tags you are getting.

      + */ + inline ListTagsForResourceRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;} + + /** + *

      The KeyARN of the key whose tags you are getting.

      + */ + inline ListTagsForResourceRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;} + + /** + *

      The KeyARN of the key whose tags you are getting.

      + */ + inline ListTagsForResourceRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;} /** @@ -129,55 +133,51 @@ namespace Model /** - *

      The KeyARN of the key whose tags you are getting.

      - */ - inline const Aws::String& GetResourceArn() const{ return m_resourceArn; } - - /** - *

      The KeyARN of the key whose tags you are getting.

      - */ - inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; } - - /** - *

      The KeyARN of the key whose tags you are getting.

      - */ - inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; } - - /** - *

      The KeyARN of the key whose tags you are getting.

      - */ - inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); } - - /** - *

      The KeyARN of the key whose tags you are getting.

      + *

      Use this parameter to specify the maximum number of items to return. When + * this value is present, Amazon Web Services Payment Cryptography does not return + * more than the specified number of items, but it might return fewer.

      This + * value is optional. If you include a value, it must be between 1 and 100, + * inclusive. If you do not include a value, it defaults to 50.

      */ - inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); } + inline int GetMaxResults() const{ return m_maxResults; } /** - *

      The KeyARN of the key whose tags you are getting.

      + *

      Use this parameter to specify the maximum number of items to return. When + * this value is present, Amazon Web Services Payment Cryptography does not return + * more than the specified number of items, but it might return fewer.

      This + * value is optional. If you include a value, it must be between 1 and 100, + * inclusive. If you do not include a value, it defaults to 50.

      */ - inline ListTagsForResourceRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;} + inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } /** - *

      The KeyARN of the key whose tags you are getting.

      + *

      Use this parameter to specify the maximum number of items to return. When + * this value is present, Amazon Web Services Payment Cryptography does not return + * more than the specified number of items, but it might return fewer.

      This + * value is optional. If you include a value, it must be between 1 and 100, + * inclusive. If you do not include a value, it defaults to 50.

      */ - inline ListTagsForResourceRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;} + inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } /** - *

      The KeyARN of the key whose tags you are getting.

      + *

      Use this parameter to specify the maximum number of items to return. When + * this value is present, Amazon Web Services Payment Cryptography does not return + * more than the specified number of items, but it might return fewer.

      This + * value is optional. If you include a value, it must be between 1 and 100, + * inclusive. If you do not include a value, it defaults to 50.

      */ - inline ListTagsForResourceRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;} + inline ListTagsForResourceRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} private: - int m_maxResults; - bool m_maxResultsHasBeenSet = false; + Aws::String m_resourceArn; + bool m_resourceArnHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; - Aws::String m_resourceArn; - bool m_resourceArnHasBeenSet = false; + int m_maxResults; + bool m_maxResultsHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-payment-cryptography/include/aws/payment-cryptography/model/ListTagsForResourceResult.h b/generated/src/aws-cpp-sdk-payment-cryptography/include/aws/payment-cryptography/model/ListTagsForResourceResult.h index 6bf7ae7fb4c..2333988085c 100644 --- a/generated/src/aws-cpp-sdk-payment-cryptography/include/aws/payment-cryptography/model/ListTagsForResourceResult.h +++ b/generated/src/aws-cpp-sdk-payment-cryptography/include/aws/payment-cryptography/model/ListTagsForResourceResult.h @@ -5,8 +5,8 @@ #pragma once #include -#include #include +#include #include #include @@ -35,89 +35,89 @@ namespace Model /** - *

      The token for the next set of results, or an empty or null value if there are - * no more results.

      + *

      The list of tags associated with a ResourceArn. Each tag will + * list the key-value pair contained within that tag.

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

      The token for the next set of results, or an empty or null value if there are - * no more results.

      + *

      The list of tags associated with a ResourceArn. Each tag will + * list the key-value pair contained within that tag.

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

      The token for the next set of results, or an empty or null value if there are - * no more results.

      + *

      The list of tags associated with a ResourceArn. Each tag will + * list the key-value pair contained within that tag.

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

      The token for the next set of results, or an empty or null value if there are - * no more results.

      + *

      The list of tags associated with a ResourceArn. Each tag will + * list the key-value pair contained within that tag.

      */ - inline void SetNextToken(const char* value) { m_nextToken.assign(value); } + inline ListTagsForResourceResult& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** - *

      The token for the next set of results, or an empty or null value if there are - * no more results.

      + *

      The list of tags associated with a ResourceArn. Each tag will + * list the key-value pair contained within that tag.

      */ - inline ListTagsForResourceResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + inline ListTagsForResourceResult& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** - *

      The token for the next set of results, or an empty or null value if there are - * no more results.

      + *

      The list of tags associated with a ResourceArn. Each tag will + * list the key-value pair contained within that tag.

      */ - inline ListTagsForResourceResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + inline ListTagsForResourceResult& AddTags(const Tag& value) { m_tags.push_back(value); return *this; } /** - *

      The token for the next set of results, or an empty or null value if there are - * no more results.

      + *

      The list of tags associated with a ResourceArn. Each tag will + * list the key-value pair contained within that tag.

      */ - inline ListTagsForResourceResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} + inline ListTagsForResourceResult& AddTags(Tag&& value) { m_tags.push_back(std::move(value)); return *this; } /** - *

      The list of tags associated with a ResourceArn. Each tag will - * list the key-value pair contained within that tag.

      + *

      The token for the next set of results, or an empty or null value if there are + * no more results.

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

      The list of tags associated with a ResourceArn. Each tag will - * list the key-value pair contained within that tag.

      + *

      The token for the next set of results, or an empty or null value if there are + * no more results.

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

      The list of tags associated with a ResourceArn. Each tag will - * list the key-value pair contained within that tag.

      + *

      The token for the next set of results, or an empty or null value if there are + * no more results.

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

      The list of tags associated with a ResourceArn. Each tag will - * list the key-value pair contained within that tag.

      + *

      The token for the next set of results, or an empty or null value if there are + * no more results.

      */ - inline ListTagsForResourceResult& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} + inline void SetNextToken(const char* value) { m_nextToken.assign(value); } /** - *

      The list of tags associated with a ResourceArn. Each tag will - * list the key-value pair contained within that tag.

      + *

      The token for the next set of results, or an empty or null value if there are + * no more results.

      */ - inline ListTagsForResourceResult& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} + inline ListTagsForResourceResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** - *

      The list of tags associated with a ResourceArn. Each tag will - * list the key-value pair contained within that tag.

      + *

      The token for the next set of results, or an empty or null value if there are + * no more results.

      */ - inline ListTagsForResourceResult& AddTags(const Tag& value) { m_tags.push_back(value); return *this; } + inline ListTagsForResourceResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} /** - *

      The list of tags associated with a ResourceArn. Each tag will - * list the key-value pair contained within that tag.

      + *

      The token for the next set of results, or an empty or null value if there are + * no more results.

      */ - inline ListTagsForResourceResult& AddTags(Tag&& value) { m_tags.push_back(std::move(value)); return *this; } + inline ListTagsForResourceResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} @@ -143,10 +143,10 @@ namespace Model private: - Aws::String m_nextToken; - Aws::Vector m_tags; + Aws::String m_nextToken; + Aws::String m_requestId; }; diff --git a/generated/src/aws-cpp-sdk-payment-cryptography/include/aws/payment-cryptography/model/TagResourceRequest.h b/generated/src/aws-cpp-sdk-payment-cryptography/include/aws/payment-cryptography/model/TagResourceRequest.h index 1f4ed5fc4a3..d44e6592ee3 100644 --- a/generated/src/aws-cpp-sdk-payment-cryptography/include/aws/payment-cryptography/model/TagResourceRequest.h +++ b/generated/src/aws-cpp-sdk-payment-cryptography/include/aws/payment-cryptography/model/TagResourceRequest.h @@ -85,10 +85,11 @@ namespace Model * Payment Cryptography replaces the current tag value with the new one.

      *

      Don't include personal, confidential or sensitive information in * this field. This field may be displayed in plaintext in CloudTrail logs and - * other output.

      To use this parameter, you must have - * TagResource permission in an IAM policy.

      Don't include - * personal, confidential or sensitive information in this field. This field may be - * displayed in plaintext in CloudTrail logs and other output.

      + * other output.

      To use this parameter, you must have TagResource + * permission in an IAM policy.

      Don't include personal, + * confidential or sensitive information in this field. This field may be displayed + * in plaintext in CloudTrail logs and other output.

      */ inline const Aws::Vector& GetTags() const{ return m_tags; } @@ -100,10 +101,11 @@ namespace Model * Payment Cryptography replaces the current tag value with the new one.

      *

      Don't include personal, confidential or sensitive information in * this field. This field may be displayed in plaintext in CloudTrail logs and - * other output.

      To use this parameter, you must have - * TagResource permission in an IAM policy.

      Don't include - * personal, confidential or sensitive information in this field. This field may be - * displayed in plaintext in CloudTrail logs and other output.

      + * other output.

      To use this parameter, you must have TagResource + * permission in an IAM policy.

      Don't include personal, + * confidential or sensitive information in this field. This field may be displayed + * in plaintext in CloudTrail logs and other output.

      */ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } @@ -115,10 +117,11 @@ namespace Model * Payment Cryptography replaces the current tag value with the new one.

      *

      Don't include personal, confidential or sensitive information in * this field. This field may be displayed in plaintext in CloudTrail logs and - * other output.

      To use this parameter, you must have - * TagResource permission in an IAM policy.

      Don't include - * personal, confidential or sensitive information in this field. This field may be - * displayed in plaintext in CloudTrail logs and other output.

      + * other output.

      To use this parameter, you must have TagResource + * permission in an IAM policy.

      Don't include personal, + * confidential or sensitive information in this field. This field may be displayed + * in plaintext in CloudTrail logs and other output.

      */ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } @@ -130,10 +133,11 @@ namespace Model * Payment Cryptography replaces the current tag value with the new one.

      *

      Don't include personal, confidential or sensitive information in * this field. This field may be displayed in plaintext in CloudTrail logs and - * other output.

      To use this parameter, you must have - * TagResource permission in an IAM policy.

      Don't include - * personal, confidential or sensitive information in this field. This field may be - * displayed in plaintext in CloudTrail logs and other output.

      + * other output.

      To use this parameter, you must have TagResource + * permission in an IAM policy.

      Don't include personal, + * confidential or sensitive information in this field. This field may be displayed + * in plaintext in CloudTrail logs and other output.

      */ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } @@ -145,10 +149,11 @@ namespace Model * Payment Cryptography replaces the current tag value with the new one.

      *

      Don't include personal, confidential or sensitive information in * this field. This field may be displayed in plaintext in CloudTrail logs and - * other output.

      To use this parameter, you must have - * TagResource permission in an IAM policy.

      Don't include - * personal, confidential or sensitive information in this field. This field may be - * displayed in plaintext in CloudTrail logs and other output.

      + * other output.

      To use this parameter, you must have TagResource + * permission in an IAM policy.

      Don't include personal, + * confidential or sensitive information in this field. This field may be displayed + * in plaintext in CloudTrail logs and other output.

      */ inline TagResourceRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} @@ -160,10 +165,11 @@ namespace Model * Payment Cryptography replaces the current tag value with the new one.

      *

      Don't include personal, confidential or sensitive information in * this field. This field may be displayed in plaintext in CloudTrail logs and - * other output.

      To use this parameter, you must have - * TagResource permission in an IAM policy.

      Don't include - * personal, confidential or sensitive information in this field. This field may be - * displayed in plaintext in CloudTrail logs and other output.

      + * other output.

      To use this parameter, you must have TagResource + * permission in an IAM policy.

      Don't include personal, + * confidential or sensitive information in this field. This field may be displayed + * in plaintext in CloudTrail logs and other output.

      */ inline TagResourceRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} @@ -175,10 +181,11 @@ namespace Model * Payment Cryptography replaces the current tag value with the new one.

      *

      Don't include personal, confidential or sensitive information in * this field. This field may be displayed in plaintext in CloudTrail logs and - * other output.

      To use this parameter, you must have - * TagResource permission in an IAM policy.

      Don't include - * personal, confidential or sensitive information in this field. This field may be - * displayed in plaintext in CloudTrail logs and other output.

      + * other output.

      To use this parameter, you must have TagResource + * permission in an IAM policy.

      Don't include personal, + * confidential or sensitive information in this field. This field may be displayed + * in plaintext in CloudTrail logs and other output.

      */ inline TagResourceRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } @@ -190,10 +197,11 @@ namespace Model * Payment Cryptography replaces the current tag value with the new one.

      *

      Don't include personal, confidential or sensitive information in * this field. This field may be displayed in plaintext in CloudTrail logs and - * other output.

      To use this parameter, you must have - * TagResource permission in an IAM policy.

      Don't include - * personal, confidential or sensitive information in this field. This field may be - * displayed in plaintext in CloudTrail logs and other output.

      + * other output.

      To use this parameter, you must have TagResource + * permission in an IAM policy.

      Don't include personal, + * confidential or sensitive information in this field. This field may be displayed + * in plaintext in CloudTrail logs and other output.

      */ inline TagResourceRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } diff --git a/generated/src/aws-cpp-sdk-payment-cryptography/include/aws/payment-cryptography/model/TrustedCertificatePublicKey.h b/generated/src/aws-cpp-sdk-payment-cryptography/include/aws/payment-cryptography/model/TrustedCertificatePublicKey.h index 425f63ded4b..ff3710058d5 100644 --- a/generated/src/aws-cpp-sdk-payment-cryptography/include/aws/payment-cryptography/model/TrustedCertificatePublicKey.h +++ b/generated/src/aws-cpp-sdk-payment-cryptography/include/aws/payment-cryptography/model/TrustedCertificatePublicKey.h @@ -5,8 +5,8 @@ #pragma once #include -#include #include +#include #include namespace Aws @@ -39,55 +39,6 @@ namespace Model AWS_PAYMENTCRYPTOGRAPHY_API Aws::Utils::Json::JsonValue Jsonize() const; - /** - *

      The KeyARN of the root public key certificate or certificate - * chain that signs the trusted public key certificate import.

      - */ - inline const Aws::String& GetCertificateAuthorityPublicKeyIdentifier() const{ return m_certificateAuthorityPublicKeyIdentifier; } - - /** - *

      The KeyARN of the root public key certificate or certificate - * chain that signs the trusted public key certificate import.

      - */ - inline bool CertificateAuthorityPublicKeyIdentifierHasBeenSet() const { return m_certificateAuthorityPublicKeyIdentifierHasBeenSet; } - - /** - *

      The KeyARN of the root public key certificate or certificate - * chain that signs the trusted public key certificate import.

      - */ - inline void SetCertificateAuthorityPublicKeyIdentifier(const Aws::String& value) { m_certificateAuthorityPublicKeyIdentifierHasBeenSet = true; m_certificateAuthorityPublicKeyIdentifier = value; } - - /** - *

      The KeyARN of the root public key certificate or certificate - * chain that signs the trusted public key certificate import.

      - */ - inline void SetCertificateAuthorityPublicKeyIdentifier(Aws::String&& value) { m_certificateAuthorityPublicKeyIdentifierHasBeenSet = true; m_certificateAuthorityPublicKeyIdentifier = std::move(value); } - - /** - *

      The KeyARN of the root public key certificate or certificate - * chain that signs the trusted public key certificate import.

      - */ - inline void SetCertificateAuthorityPublicKeyIdentifier(const char* value) { m_certificateAuthorityPublicKeyIdentifierHasBeenSet = true; m_certificateAuthorityPublicKeyIdentifier.assign(value); } - - /** - *

      The KeyARN of the root public key certificate or certificate - * chain that signs the trusted public key certificate import.

      - */ - inline TrustedCertificatePublicKey& WithCertificateAuthorityPublicKeyIdentifier(const Aws::String& value) { SetCertificateAuthorityPublicKeyIdentifier(value); return *this;} - - /** - *

      The KeyARN of the root public key certificate or certificate - * chain that signs the trusted public key certificate import.

      - */ - inline TrustedCertificatePublicKey& WithCertificateAuthorityPublicKeyIdentifier(Aws::String&& value) { SetCertificateAuthorityPublicKeyIdentifier(std::move(value)); return *this;} - - /** - *

      The KeyARN of the root public key certificate or certificate - * chain that signs the trusted public key certificate import.

      - */ - inline TrustedCertificatePublicKey& WithCertificateAuthorityPublicKeyIdentifier(const char* value) { SetCertificateAuthorityPublicKeyIdentifier(value); return *this;} - - /** *

      The role of the key, the algorithm it supports, and the cryptographic * operations allowed with the key. This data is immutable after a trusted public @@ -171,16 +122,65 @@ namespace Model */ inline TrustedCertificatePublicKey& WithPublicKeyCertificate(const char* value) { SetPublicKeyCertificate(value); return *this;} - private: - Aws::String m_certificateAuthorityPublicKeyIdentifier; - bool m_certificateAuthorityPublicKeyIdentifierHasBeenSet = false; + /** + *

      The KeyARN of the root public key certificate or certificate + * chain that signs the trusted public key certificate import.

      + */ + inline const Aws::String& GetCertificateAuthorityPublicKeyIdentifier() const{ return m_certificateAuthorityPublicKeyIdentifier; } + + /** + *

      The KeyARN of the root public key certificate or certificate + * chain that signs the trusted public key certificate import.

      + */ + inline bool CertificateAuthorityPublicKeyIdentifierHasBeenSet() const { return m_certificateAuthorityPublicKeyIdentifierHasBeenSet; } + + /** + *

      The KeyARN of the root public key certificate or certificate + * chain that signs the trusted public key certificate import.

      + */ + inline void SetCertificateAuthorityPublicKeyIdentifier(const Aws::String& value) { m_certificateAuthorityPublicKeyIdentifierHasBeenSet = true; m_certificateAuthorityPublicKeyIdentifier = value; } + + /** + *

      The KeyARN of the root public key certificate or certificate + * chain that signs the trusted public key certificate import.

      + */ + inline void SetCertificateAuthorityPublicKeyIdentifier(Aws::String&& value) { m_certificateAuthorityPublicKeyIdentifierHasBeenSet = true; m_certificateAuthorityPublicKeyIdentifier = std::move(value); } + + /** + *

      The KeyARN of the root public key certificate or certificate + * chain that signs the trusted public key certificate import.

      + */ + inline void SetCertificateAuthorityPublicKeyIdentifier(const char* value) { m_certificateAuthorityPublicKeyIdentifierHasBeenSet = true; m_certificateAuthorityPublicKeyIdentifier.assign(value); } + + /** + *

      The KeyARN of the root public key certificate or certificate + * chain that signs the trusted public key certificate import.

      + */ + inline TrustedCertificatePublicKey& WithCertificateAuthorityPublicKeyIdentifier(const Aws::String& value) { SetCertificateAuthorityPublicKeyIdentifier(value); return *this;} + + /** + *

      The KeyARN of the root public key certificate or certificate + * chain that signs the trusted public key certificate import.

      + */ + inline TrustedCertificatePublicKey& WithCertificateAuthorityPublicKeyIdentifier(Aws::String&& value) { SetCertificateAuthorityPublicKeyIdentifier(std::move(value)); return *this;} + + /** + *

      The KeyARN of the root public key certificate or certificate + * chain that signs the trusted public key certificate import.

      + */ + inline TrustedCertificatePublicKey& WithCertificateAuthorityPublicKeyIdentifier(const char* value) { SetCertificateAuthorityPublicKeyIdentifier(value); return *this;} + + private: KeyAttributes m_keyAttributes; bool m_keyAttributesHasBeenSet = false; Aws::String m_publicKeyCertificate; bool m_publicKeyCertificateHasBeenSet = false; + + Aws::String m_certificateAuthorityPublicKeyIdentifier; + bool m_certificateAuthorityPublicKeyIdentifierHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-payment-cryptography/include/aws/payment-cryptography/model/UntagResourceRequest.h b/generated/src/aws-cpp-sdk-payment-cryptography/include/aws/payment-cryptography/model/UntagResourceRequest.h index 26775cc521c..37b7f90b2ee 100644 --- a/generated/src/aws-cpp-sdk-payment-cryptography/include/aws/payment-cryptography/model/UntagResourceRequest.h +++ b/generated/src/aws-cpp-sdk-payment-cryptography/include/aws/payment-cryptography/model/UntagResourceRequest.h @@ -80,7 +80,8 @@ namespace Model *

      One or more tag keys. Don't include the tag values.

      If the Amazon Web * Services Payment Cryptography key doesn't have the specified tag key, Amazon Web * Services Payment Cryptography doesn't throw an exception or return a response. - * To confirm that the operation succeeded, use the ListTagsForResource + * To confirm that the operation succeeded, use the ListTagsForResource * operation.

      */ inline const Aws::Vector& GetTagKeys() const{ return m_tagKeys; } @@ -89,7 +90,8 @@ namespace Model *

      One or more tag keys. Don't include the tag values.

      If the Amazon Web * Services Payment Cryptography key doesn't have the specified tag key, Amazon Web * Services Payment Cryptography doesn't throw an exception or return a response. - * To confirm that the operation succeeded, use the ListTagsForResource + * To confirm that the operation succeeded, use the ListTagsForResource * operation.

      */ inline bool TagKeysHasBeenSet() const { return m_tagKeysHasBeenSet; } @@ -98,7 +100,8 @@ namespace Model *

      One or more tag keys. Don't include the tag values.

      If the Amazon Web * Services Payment Cryptography key doesn't have the specified tag key, Amazon Web * Services Payment Cryptography doesn't throw an exception or return a response. - * To confirm that the operation succeeded, use the ListTagsForResource + * To confirm that the operation succeeded, use the ListTagsForResource * operation.

      */ inline void SetTagKeys(const Aws::Vector& value) { m_tagKeysHasBeenSet = true; m_tagKeys = value; } @@ -107,7 +110,8 @@ namespace Model *

      One or more tag keys. Don't include the tag values.

      If the Amazon Web * Services Payment Cryptography key doesn't have the specified tag key, Amazon Web * Services Payment Cryptography doesn't throw an exception or return a response. - * To confirm that the operation succeeded, use the ListTagsForResource + * To confirm that the operation succeeded, use the ListTagsForResource * operation.

      */ inline void SetTagKeys(Aws::Vector&& value) { m_tagKeysHasBeenSet = true; m_tagKeys = std::move(value); } @@ -116,7 +120,8 @@ namespace Model *

      One or more tag keys. Don't include the tag values.

      If the Amazon Web * Services Payment Cryptography key doesn't have the specified tag key, Amazon Web * Services Payment Cryptography doesn't throw an exception or return a response. - * To confirm that the operation succeeded, use the ListTagsForResource + * To confirm that the operation succeeded, use the ListTagsForResource * operation.

      */ inline UntagResourceRequest& WithTagKeys(const Aws::Vector& value) { SetTagKeys(value); return *this;} @@ -125,7 +130,8 @@ namespace Model *

      One or more tag keys. Don't include the tag values.

      If the Amazon Web * Services Payment Cryptography key doesn't have the specified tag key, Amazon Web * Services Payment Cryptography doesn't throw an exception or return a response. - * To confirm that the operation succeeded, use the ListTagsForResource + * To confirm that the operation succeeded, use the ListTagsForResource * operation.

      */ inline UntagResourceRequest& WithTagKeys(Aws::Vector&& value) { SetTagKeys(std::move(value)); return *this;} @@ -134,7 +140,8 @@ namespace Model *

      One or more tag keys. Don't include the tag values.

      If the Amazon Web * Services Payment Cryptography key doesn't have the specified tag key, Amazon Web * Services Payment Cryptography doesn't throw an exception or return a response. - * To confirm that the operation succeeded, use the ListTagsForResource + * To confirm that the operation succeeded, use the ListTagsForResource * operation.

      */ inline UntagResourceRequest& AddTagKeys(const Aws::String& value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(value); return *this; } @@ -143,7 +150,8 @@ namespace Model *

      One or more tag keys. Don't include the tag values.

      If the Amazon Web * Services Payment Cryptography key doesn't have the specified tag key, Amazon Web * Services Payment Cryptography doesn't throw an exception or return a response. - * To confirm that the operation succeeded, use the ListTagsForResource + * To confirm that the operation succeeded, use the ListTagsForResource * operation.

      */ inline UntagResourceRequest& AddTagKeys(Aws::String&& value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(std::move(value)); return *this; } @@ -152,7 +160,8 @@ namespace Model *

      One or more tag keys. Don't include the tag values.

      If the Amazon Web * Services Payment Cryptography key doesn't have the specified tag key, Amazon Web * Services Payment Cryptography doesn't throw an exception or return a response. - * To confirm that the operation succeeded, use the ListTagsForResource + * To confirm that the operation succeeded, use the ListTagsForResource * operation.

      */ inline UntagResourceRequest& AddTagKeys(const char* value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(value); return *this; } diff --git a/generated/src/aws-cpp-sdk-payment-cryptography/include/aws/payment-cryptography/model/WrappedKey.h b/generated/src/aws-cpp-sdk-payment-cryptography/include/aws/payment-cryptography/model/WrappedKey.h index debf7e07954..af94562d032 100644 --- a/generated/src/aws-cpp-sdk-payment-cryptography/include/aws/payment-cryptography/model/WrappedKey.h +++ b/generated/src/aws-cpp-sdk-payment-cryptography/include/aws/payment-cryptography/model/WrappedKey.h @@ -6,8 +6,8 @@ #pragma once #include #include -#include #include +#include #include namespace Aws @@ -41,119 +41,75 @@ namespace Model /** - *

      The key check value (KCV) is used to check if all parties holding a given key - * have the same key or to detect that a key has changed.

      + *

      The KeyARN of the wrapped key.

      */ - inline const Aws::String& GetKeyCheckValue() const{ return m_keyCheckValue; } + inline const Aws::String& GetWrappingKeyArn() const{ return m_wrappingKeyArn; } /** - *

      The key check value (KCV) is used to check if all parties holding a given key - * have the same key or to detect that a key has changed.

      + *

      The KeyARN of the wrapped key.

      */ - inline bool KeyCheckValueHasBeenSet() const { return m_keyCheckValueHasBeenSet; } + inline bool WrappingKeyArnHasBeenSet() const { return m_wrappingKeyArnHasBeenSet; } /** - *

      The key check value (KCV) is used to check if all parties holding a given key - * have the same key or to detect that a key has changed.

      + *

      The KeyARN of the wrapped key.

      */ - inline void SetKeyCheckValue(const Aws::String& value) { m_keyCheckValueHasBeenSet = true; m_keyCheckValue = value; } + inline void SetWrappingKeyArn(const Aws::String& value) { m_wrappingKeyArnHasBeenSet = true; m_wrappingKeyArn = value; } /** - *

      The key check value (KCV) is used to check if all parties holding a given key - * have the same key or to detect that a key has changed.

      + *

      The KeyARN of the wrapped key.

      */ - inline void SetKeyCheckValue(Aws::String&& value) { m_keyCheckValueHasBeenSet = true; m_keyCheckValue = std::move(value); } + inline void SetWrappingKeyArn(Aws::String&& value) { m_wrappingKeyArnHasBeenSet = true; m_wrappingKeyArn = std::move(value); } /** - *

      The key check value (KCV) is used to check if all parties holding a given key - * have the same key or to detect that a key has changed.

      + *

      The KeyARN of the wrapped key.

      */ - inline void SetKeyCheckValue(const char* value) { m_keyCheckValueHasBeenSet = true; m_keyCheckValue.assign(value); } + inline void SetWrappingKeyArn(const char* value) { m_wrappingKeyArnHasBeenSet = true; m_wrappingKeyArn.assign(value); } /** - *

      The key check value (KCV) is used to check if all parties holding a given key - * have the same key or to detect that a key has changed.

      + *

      The KeyARN of the wrapped key.

      */ - inline WrappedKey& WithKeyCheckValue(const Aws::String& value) { SetKeyCheckValue(value); return *this;} + inline WrappedKey& WithWrappingKeyArn(const Aws::String& value) { SetWrappingKeyArn(value); return *this;} /** - *

      The key check value (KCV) is used to check if all parties holding a given key - * have the same key or to detect that a key has changed.

      + *

      The KeyARN of the wrapped key.

      */ - inline WrappedKey& WithKeyCheckValue(Aws::String&& value) { SetKeyCheckValue(std::move(value)); return *this;} + inline WrappedKey& WithWrappingKeyArn(Aws::String&& value) { SetWrappingKeyArn(std::move(value)); return *this;} /** - *

      The key check value (KCV) is used to check if all parties holding a given key - * have the same key or to detect that a key has changed.

      + *

      The KeyARN of the wrapped key.

      */ - inline WrappedKey& WithKeyCheckValue(const char* value) { SetKeyCheckValue(value); return *this;} + inline WrappedKey& WithWrappingKeyArn(const char* value) { SetWrappingKeyArn(value); return *this;} /** - *

      The algorithm that Amazon Web Services Payment Cryptography uses to calculate - * the key check value (KCV). It is used to validate the key integrity.

      For - * TDES keys, the KCV is computed by encrypting 8 bytes, each with value of zero, - * with the key to be checked and retaining the 3 highest order bytes of the - * encrypted result. For AES keys, the KCV is computed using a CMAC algorithm where - * the input data is 16 bytes of zero and retaining the 3 highest order bytes of - * the encrypted result.

      + *

      The key block format of a wrapped key.

      */ - inline const KeyCheckValueAlgorithm& GetKeyCheckValueAlgorithm() const{ return m_keyCheckValueAlgorithm; } + inline const WrappedKeyMaterialFormat& GetWrappedKeyMaterialFormat() const{ return m_wrappedKeyMaterialFormat; } /** - *

      The algorithm that Amazon Web Services Payment Cryptography uses to calculate - * the key check value (KCV). It is used to validate the key integrity.

      For - * TDES keys, the KCV is computed by encrypting 8 bytes, each with value of zero, - * with the key to be checked and retaining the 3 highest order bytes of the - * encrypted result. For AES keys, the KCV is computed using a CMAC algorithm where - * the input data is 16 bytes of zero and retaining the 3 highest order bytes of - * the encrypted result.

      + *

      The key block format of a wrapped key.

      */ - inline bool KeyCheckValueAlgorithmHasBeenSet() const { return m_keyCheckValueAlgorithmHasBeenSet; } + inline bool WrappedKeyMaterialFormatHasBeenSet() const { return m_wrappedKeyMaterialFormatHasBeenSet; } /** - *

      The algorithm that Amazon Web Services Payment Cryptography uses to calculate - * the key check value (KCV). It is used to validate the key integrity.

      For - * TDES keys, the KCV is computed by encrypting 8 bytes, each with value of zero, - * with the key to be checked and retaining the 3 highest order bytes of the - * encrypted result. For AES keys, the KCV is computed using a CMAC algorithm where - * the input data is 16 bytes of zero and retaining the 3 highest order bytes of - * the encrypted result.

      + *

      The key block format of a wrapped key.

      */ - inline void SetKeyCheckValueAlgorithm(const KeyCheckValueAlgorithm& value) { m_keyCheckValueAlgorithmHasBeenSet = true; m_keyCheckValueAlgorithm = value; } + inline void SetWrappedKeyMaterialFormat(const WrappedKeyMaterialFormat& value) { m_wrappedKeyMaterialFormatHasBeenSet = true; m_wrappedKeyMaterialFormat = value; } /** - *

      The algorithm that Amazon Web Services Payment Cryptography uses to calculate - * the key check value (KCV). It is used to validate the key integrity.

      For - * TDES keys, the KCV is computed by encrypting 8 bytes, each with value of zero, - * with the key to be checked and retaining the 3 highest order bytes of the - * encrypted result. For AES keys, the KCV is computed using a CMAC algorithm where - * the input data is 16 bytes of zero and retaining the 3 highest order bytes of - * the encrypted result.

      + *

      The key block format of a wrapped key.

      */ - inline void SetKeyCheckValueAlgorithm(KeyCheckValueAlgorithm&& value) { m_keyCheckValueAlgorithmHasBeenSet = true; m_keyCheckValueAlgorithm = std::move(value); } + inline void SetWrappedKeyMaterialFormat(WrappedKeyMaterialFormat&& value) { m_wrappedKeyMaterialFormatHasBeenSet = true; m_wrappedKeyMaterialFormat = std::move(value); } /** - *

      The algorithm that Amazon Web Services Payment Cryptography uses to calculate - * the key check value (KCV). It is used to validate the key integrity.

      For - * TDES keys, the KCV is computed by encrypting 8 bytes, each with value of zero, - * with the key to be checked and retaining the 3 highest order bytes of the - * encrypted result. For AES keys, the KCV is computed using a CMAC algorithm where - * the input data is 16 bytes of zero and retaining the 3 highest order bytes of - * the encrypted result.

      + *

      The key block format of a wrapped key.

      */ - inline WrappedKey& WithKeyCheckValueAlgorithm(const KeyCheckValueAlgorithm& value) { SetKeyCheckValueAlgorithm(value); return *this;} + inline WrappedKey& WithWrappedKeyMaterialFormat(const WrappedKeyMaterialFormat& value) { SetWrappedKeyMaterialFormat(value); return *this;} /** - *

      The algorithm that Amazon Web Services Payment Cryptography uses to calculate - * the key check value (KCV). It is used to validate the key integrity.

      For - * TDES keys, the KCV is computed by encrypting 8 bytes, each with value of zero, - * with the key to be checked and retaining the 3 highest order bytes of the - * encrypted result. For AES keys, the KCV is computed using a CMAC algorithm where - * the input data is 16 bytes of zero and retaining the 3 highest order bytes of - * the encrypted result.

      + *

      The key block format of a wrapped key.

      */ - inline WrappedKey& WithKeyCheckValueAlgorithm(KeyCheckValueAlgorithm&& value) { SetKeyCheckValueAlgorithm(std::move(value)); return *this;} + inline WrappedKey& WithWrappedKeyMaterialFormat(WrappedKeyMaterialFormat&& value) { SetWrappedKeyMaterialFormat(std::move(value)); return *this;} /** @@ -206,92 +162,136 @@ namespace Model /** - *

      The key block format of a wrapped key.

      + *

      The key check value (KCV) is used to check if all parties holding a given key + * have the same key or to detect that a key has changed.

      */ - inline const WrappedKeyMaterialFormat& GetWrappedKeyMaterialFormat() const{ return m_wrappedKeyMaterialFormat; } + inline const Aws::String& GetKeyCheckValue() const{ return m_keyCheckValue; } /** - *

      The key block format of a wrapped key.

      + *

      The key check value (KCV) is used to check if all parties holding a given key + * have the same key or to detect that a key has changed.

      */ - inline bool WrappedKeyMaterialFormatHasBeenSet() const { return m_wrappedKeyMaterialFormatHasBeenSet; } + inline bool KeyCheckValueHasBeenSet() const { return m_keyCheckValueHasBeenSet; } /** - *

      The key block format of a wrapped key.

      + *

      The key check value (KCV) is used to check if all parties holding a given key + * have the same key or to detect that a key has changed.

      */ - inline void SetWrappedKeyMaterialFormat(const WrappedKeyMaterialFormat& value) { m_wrappedKeyMaterialFormatHasBeenSet = true; m_wrappedKeyMaterialFormat = value; } + inline void SetKeyCheckValue(const Aws::String& value) { m_keyCheckValueHasBeenSet = true; m_keyCheckValue = value; } /** - *

      The key block format of a wrapped key.

      + *

      The key check value (KCV) is used to check if all parties holding a given key + * have the same key or to detect that a key has changed.

      */ - inline void SetWrappedKeyMaterialFormat(WrappedKeyMaterialFormat&& value) { m_wrappedKeyMaterialFormatHasBeenSet = true; m_wrappedKeyMaterialFormat = std::move(value); } + inline void SetKeyCheckValue(Aws::String&& value) { m_keyCheckValueHasBeenSet = true; m_keyCheckValue = std::move(value); } /** - *

      The key block format of a wrapped key.

      + *

      The key check value (KCV) is used to check if all parties holding a given key + * have the same key or to detect that a key has changed.

      */ - inline WrappedKey& WithWrappedKeyMaterialFormat(const WrappedKeyMaterialFormat& value) { SetWrappedKeyMaterialFormat(value); return *this;} + inline void SetKeyCheckValue(const char* value) { m_keyCheckValueHasBeenSet = true; m_keyCheckValue.assign(value); } /** - *

      The key block format of a wrapped key.

      + *

      The key check value (KCV) is used to check if all parties holding a given key + * have the same key or to detect that a key has changed.

      */ - inline WrappedKey& WithWrappedKeyMaterialFormat(WrappedKeyMaterialFormat&& value) { SetWrappedKeyMaterialFormat(std::move(value)); return *this;} - + inline WrappedKey& WithKeyCheckValue(const Aws::String& value) { SetKeyCheckValue(value); return *this;} /** - *

      The KeyARN of the wrapped key.

      + *

      The key check value (KCV) is used to check if all parties holding a given key + * have the same key or to detect that a key has changed.

      */ - inline const Aws::String& GetWrappingKeyArn() const{ return m_wrappingKeyArn; } + inline WrappedKey& WithKeyCheckValue(Aws::String&& value) { SetKeyCheckValue(std::move(value)); return *this;} /** - *

      The KeyARN of the wrapped key.

      + *

      The key check value (KCV) is used to check if all parties holding a given key + * have the same key or to detect that a key has changed.

      */ - inline bool WrappingKeyArnHasBeenSet() const { return m_wrappingKeyArnHasBeenSet; } + inline WrappedKey& WithKeyCheckValue(const char* value) { SetKeyCheckValue(value); return *this;} + /** - *

      The KeyARN of the wrapped key.

      + *

      The algorithm that Amazon Web Services Payment Cryptography uses to calculate + * the key check value (KCV). It is used to validate the key integrity.

      For + * TDES keys, the KCV is computed by encrypting 8 bytes, each with value of zero, + * with the key to be checked and retaining the 3 highest order bytes of the + * encrypted result. For AES keys, the KCV is computed using a CMAC algorithm where + * the input data is 16 bytes of zero and retaining the 3 highest order bytes of + * the encrypted result.

      */ - inline void SetWrappingKeyArn(const Aws::String& value) { m_wrappingKeyArnHasBeenSet = true; m_wrappingKeyArn = value; } + inline const KeyCheckValueAlgorithm& GetKeyCheckValueAlgorithm() const{ return m_keyCheckValueAlgorithm; } /** - *

      The KeyARN of the wrapped key.

      + *

      The algorithm that Amazon Web Services Payment Cryptography uses to calculate + * the key check value (KCV). It is used to validate the key integrity.

      For + * TDES keys, the KCV is computed by encrypting 8 bytes, each with value of zero, + * with the key to be checked and retaining the 3 highest order bytes of the + * encrypted result. For AES keys, the KCV is computed using a CMAC algorithm where + * the input data is 16 bytes of zero and retaining the 3 highest order bytes of + * the encrypted result.

      */ - inline void SetWrappingKeyArn(Aws::String&& value) { m_wrappingKeyArnHasBeenSet = true; m_wrappingKeyArn = std::move(value); } + inline bool KeyCheckValueAlgorithmHasBeenSet() const { return m_keyCheckValueAlgorithmHasBeenSet; } /** - *

      The KeyARN of the wrapped key.

      + *

      The algorithm that Amazon Web Services Payment Cryptography uses to calculate + * the key check value (KCV). It is used to validate the key integrity.

      For + * TDES keys, the KCV is computed by encrypting 8 bytes, each with value of zero, + * with the key to be checked and retaining the 3 highest order bytes of the + * encrypted result. For AES keys, the KCV is computed using a CMAC algorithm where + * the input data is 16 bytes of zero and retaining the 3 highest order bytes of + * the encrypted result.

      */ - inline void SetWrappingKeyArn(const char* value) { m_wrappingKeyArnHasBeenSet = true; m_wrappingKeyArn.assign(value); } + inline void SetKeyCheckValueAlgorithm(const KeyCheckValueAlgorithm& value) { m_keyCheckValueAlgorithmHasBeenSet = true; m_keyCheckValueAlgorithm = value; } /** - *

      The KeyARN of the wrapped key.

      + *

      The algorithm that Amazon Web Services Payment Cryptography uses to calculate + * the key check value (KCV). It is used to validate the key integrity.

      For + * TDES keys, the KCV is computed by encrypting 8 bytes, each with value of zero, + * with the key to be checked and retaining the 3 highest order bytes of the + * encrypted result. For AES keys, the KCV is computed using a CMAC algorithm where + * the input data is 16 bytes of zero and retaining the 3 highest order bytes of + * the encrypted result.

      */ - inline WrappedKey& WithWrappingKeyArn(const Aws::String& value) { SetWrappingKeyArn(value); return *this;} + inline void SetKeyCheckValueAlgorithm(KeyCheckValueAlgorithm&& value) { m_keyCheckValueAlgorithmHasBeenSet = true; m_keyCheckValueAlgorithm = std::move(value); } /** - *

      The KeyARN of the wrapped key.

      + *

      The algorithm that Amazon Web Services Payment Cryptography uses to calculate + * the key check value (KCV). It is used to validate the key integrity.

      For + * TDES keys, the KCV is computed by encrypting 8 bytes, each with value of zero, + * with the key to be checked and retaining the 3 highest order bytes of the + * encrypted result. For AES keys, the KCV is computed using a CMAC algorithm where + * the input data is 16 bytes of zero and retaining the 3 highest order bytes of + * the encrypted result.

      */ - inline WrappedKey& WithWrappingKeyArn(Aws::String&& value) { SetWrappingKeyArn(std::move(value)); return *this;} + inline WrappedKey& WithKeyCheckValueAlgorithm(const KeyCheckValueAlgorithm& value) { SetKeyCheckValueAlgorithm(value); return *this;} /** - *

      The KeyARN of the wrapped key.

      + *

      The algorithm that Amazon Web Services Payment Cryptography uses to calculate + * the key check value (KCV). It is used to validate the key integrity.

      For + * TDES keys, the KCV is computed by encrypting 8 bytes, each with value of zero, + * with the key to be checked and retaining the 3 highest order bytes of the + * encrypted result. For AES keys, the KCV is computed using a CMAC algorithm where + * the input data is 16 bytes of zero and retaining the 3 highest order bytes of + * the encrypted result.

      */ - inline WrappedKey& WithWrappingKeyArn(const char* value) { SetWrappingKeyArn(value); return *this;} + inline WrappedKey& WithKeyCheckValueAlgorithm(KeyCheckValueAlgorithm&& value) { SetKeyCheckValueAlgorithm(std::move(value)); return *this;} private: - Aws::String m_keyCheckValue; - bool m_keyCheckValueHasBeenSet = false; + Aws::String m_wrappingKeyArn; + bool m_wrappingKeyArnHasBeenSet = false; - KeyCheckValueAlgorithm m_keyCheckValueAlgorithm; - bool m_keyCheckValueAlgorithmHasBeenSet = false; + WrappedKeyMaterialFormat m_wrappedKeyMaterialFormat; + bool m_wrappedKeyMaterialFormatHasBeenSet = false; Aws::String m_keyMaterial; bool m_keyMaterialHasBeenSet = false; - WrappedKeyMaterialFormat m_wrappedKeyMaterialFormat; - bool m_wrappedKeyMaterialFormatHasBeenSet = false; + Aws::String m_keyCheckValue; + bool m_keyCheckValueHasBeenSet = false; - Aws::String m_wrappingKeyArn; - bool m_wrappingKeyArnHasBeenSet = false; + KeyCheckValueAlgorithm m_keyCheckValueAlgorithm; + bool m_keyCheckValueAlgorithmHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-payment-cryptography/source/model/CreateKeyRequest.cpp b/generated/src/aws-cpp-sdk-payment-cryptography/source/model/CreateKeyRequest.cpp index 357e07bd4bd..1948d4b4ee2 100644 --- a/generated/src/aws-cpp-sdk-payment-cryptography/source/model/CreateKeyRequest.cpp +++ b/generated/src/aws-cpp-sdk-payment-cryptography/source/model/CreateKeyRequest.cpp @@ -13,13 +13,13 @@ using namespace Aws::Utils::Json; using namespace Aws::Utils; CreateKeyRequest::CreateKeyRequest() : - m_enabled(false), - m_enabledHasBeenSet(false), - m_exportable(false), - m_exportableHasBeenSet(false), m_keyAttributesHasBeenSet(false), m_keyCheckValueAlgorithm(KeyCheckValueAlgorithm::NOT_SET), m_keyCheckValueAlgorithmHasBeenSet(false), + m_exportable(false), + m_exportableHasBeenSet(false), + m_enabled(false), + m_enabledHasBeenSet(false), m_tagsHasBeenSet(false) { } @@ -28,27 +28,27 @@ Aws::String CreateKeyRequest::SerializePayload() const { JsonValue payload; - if(m_enabledHasBeenSet) + if(m_keyAttributesHasBeenSet) { - payload.WithBool("Enabled", m_enabled); + payload.WithObject("KeyAttributes", m_keyAttributes.Jsonize()); } - if(m_exportableHasBeenSet) + if(m_keyCheckValueAlgorithmHasBeenSet) { - payload.WithBool("Exportable", m_exportable); - + payload.WithString("KeyCheckValueAlgorithm", KeyCheckValueAlgorithmMapper::GetNameForKeyCheckValueAlgorithm(m_keyCheckValueAlgorithm)); } - if(m_keyAttributesHasBeenSet) + if(m_exportableHasBeenSet) { - payload.WithObject("KeyAttributes", m_keyAttributes.Jsonize()); + payload.WithBool("Exportable", m_exportable); } - if(m_keyCheckValueAlgorithmHasBeenSet) + if(m_enabledHasBeenSet) { - payload.WithString("KeyCheckValueAlgorithm", KeyCheckValueAlgorithmMapper::GetNameForKeyCheckValueAlgorithm(m_keyCheckValueAlgorithm)); + payload.WithBool("Enabled", m_enabled); + } if(m_tagsHasBeenSet) diff --git a/generated/src/aws-cpp-sdk-payment-cryptography/source/model/DeleteKeyRequest.cpp b/generated/src/aws-cpp-sdk-payment-cryptography/source/model/DeleteKeyRequest.cpp index d1ec81f311f..b374dbd86ec 100644 --- a/generated/src/aws-cpp-sdk-payment-cryptography/source/model/DeleteKeyRequest.cpp +++ b/generated/src/aws-cpp-sdk-payment-cryptography/source/model/DeleteKeyRequest.cpp @@ -13,9 +13,9 @@ using namespace Aws::Utils::Json; using namespace Aws::Utils; DeleteKeyRequest::DeleteKeyRequest() : + m_keyIdentifierHasBeenSet(false), m_deleteKeyInDays(0), - m_deleteKeyInDaysHasBeenSet(false), - m_keyIdentifierHasBeenSet(false) + m_deleteKeyInDaysHasBeenSet(false) { } @@ -23,15 +23,15 @@ Aws::String DeleteKeyRequest::SerializePayload() const { JsonValue payload; - if(m_deleteKeyInDaysHasBeenSet) + if(m_keyIdentifierHasBeenSet) { - payload.WithInteger("DeleteKeyInDays", m_deleteKeyInDays); + payload.WithString("KeyIdentifier", m_keyIdentifier); } - if(m_keyIdentifierHasBeenSet) + if(m_deleteKeyInDaysHasBeenSet) { - payload.WithString("KeyIdentifier", m_keyIdentifier); + payload.WithInteger("DeleteKeyInDays", m_deleteKeyInDays); } diff --git a/generated/src/aws-cpp-sdk-payment-cryptography/source/model/ExportKeyMaterial.cpp b/generated/src/aws-cpp-sdk-payment-cryptography/source/model/ExportKeyMaterial.cpp index 31a1ce45a7a..c2262d0e4c3 100644 --- a/generated/src/aws-cpp-sdk-payment-cryptography/source/model/ExportKeyMaterial.cpp +++ b/generated/src/aws-cpp-sdk-payment-cryptography/source/model/ExportKeyMaterial.cpp @@ -19,29 +19,22 @@ namespace Model { ExportKeyMaterial::ExportKeyMaterial() : - m_keyCryptogramHasBeenSet(false), m_tr31KeyBlockHasBeenSet(false), - m_tr34KeyBlockHasBeenSet(false) + m_tr34KeyBlockHasBeenSet(false), + m_keyCryptogramHasBeenSet(false) { } ExportKeyMaterial::ExportKeyMaterial(JsonView jsonValue) : - m_keyCryptogramHasBeenSet(false), m_tr31KeyBlockHasBeenSet(false), - m_tr34KeyBlockHasBeenSet(false) + m_tr34KeyBlockHasBeenSet(false), + m_keyCryptogramHasBeenSet(false) { *this = jsonValue; } ExportKeyMaterial& ExportKeyMaterial::operator =(JsonView jsonValue) { - if(jsonValue.ValueExists("KeyCryptogram")) - { - m_keyCryptogram = jsonValue.GetObject("KeyCryptogram"); - - m_keyCryptogramHasBeenSet = true; - } - if(jsonValue.ValueExists("Tr31KeyBlock")) { m_tr31KeyBlock = jsonValue.GetObject("Tr31KeyBlock"); @@ -56,6 +49,13 @@ ExportKeyMaterial& ExportKeyMaterial::operator =(JsonView jsonValue) m_tr34KeyBlockHasBeenSet = true; } + if(jsonValue.ValueExists("KeyCryptogram")) + { + m_keyCryptogram = jsonValue.GetObject("KeyCryptogram"); + + m_keyCryptogramHasBeenSet = true; + } + return *this; } @@ -63,12 +63,6 @@ JsonValue ExportKeyMaterial::Jsonize() const { JsonValue payload; - if(m_keyCryptogramHasBeenSet) - { - payload.WithObject("KeyCryptogram", m_keyCryptogram.Jsonize()); - - } - if(m_tr31KeyBlockHasBeenSet) { payload.WithObject("Tr31KeyBlock", m_tr31KeyBlock.Jsonize()); @@ -81,6 +75,12 @@ JsonValue ExportKeyMaterial::Jsonize() const } + if(m_keyCryptogramHasBeenSet) + { + payload.WithObject("KeyCryptogram", m_keyCryptogram.Jsonize()); + + } + return payload; } diff --git a/generated/src/aws-cpp-sdk-payment-cryptography/source/model/ExportKeyRequest.cpp b/generated/src/aws-cpp-sdk-payment-cryptography/source/model/ExportKeyRequest.cpp index 0e43e910521..dd576e43d2e 100644 --- a/generated/src/aws-cpp-sdk-payment-cryptography/source/model/ExportKeyRequest.cpp +++ b/generated/src/aws-cpp-sdk-payment-cryptography/source/model/ExportKeyRequest.cpp @@ -13,9 +13,9 @@ using namespace Aws::Utils::Json; using namespace Aws::Utils; ExportKeyRequest::ExportKeyRequest() : - m_exportAttributesHasBeenSet(false), + m_keyMaterialHasBeenSet(false), m_exportKeyIdentifierHasBeenSet(false), - m_keyMaterialHasBeenSet(false) + m_exportAttributesHasBeenSet(false) { } @@ -23,9 +23,9 @@ Aws::String ExportKeyRequest::SerializePayload() const { JsonValue payload; - if(m_exportAttributesHasBeenSet) + if(m_keyMaterialHasBeenSet) { - payload.WithObject("ExportAttributes", m_exportAttributes.Jsonize()); + payload.WithObject("KeyMaterial", m_keyMaterial.Jsonize()); } @@ -35,9 +35,9 @@ Aws::String ExportKeyRequest::SerializePayload() const } - if(m_keyMaterialHasBeenSet) + if(m_exportAttributesHasBeenSet) { - payload.WithObject("KeyMaterial", m_keyMaterial.Jsonize()); + payload.WithObject("ExportAttributes", m_exportAttributes.Jsonize()); } diff --git a/generated/src/aws-cpp-sdk-payment-cryptography/source/model/ExportTr31KeyBlock.cpp b/generated/src/aws-cpp-sdk-payment-cryptography/source/model/ExportTr31KeyBlock.cpp index 29f71a3a594..68fffde0d43 100644 --- a/generated/src/aws-cpp-sdk-payment-cryptography/source/model/ExportTr31KeyBlock.cpp +++ b/generated/src/aws-cpp-sdk-payment-cryptography/source/model/ExportTr31KeyBlock.cpp @@ -19,12 +19,14 @@ namespace Model { ExportTr31KeyBlock::ExportTr31KeyBlock() : - m_wrappingKeyIdentifierHasBeenSet(false) + m_wrappingKeyIdentifierHasBeenSet(false), + m_keyBlockHeadersHasBeenSet(false) { } ExportTr31KeyBlock::ExportTr31KeyBlock(JsonView jsonValue) : - m_wrappingKeyIdentifierHasBeenSet(false) + m_wrappingKeyIdentifierHasBeenSet(false), + m_keyBlockHeadersHasBeenSet(false) { *this = jsonValue; } @@ -38,6 +40,13 @@ ExportTr31KeyBlock& ExportTr31KeyBlock::operator =(JsonView jsonValue) m_wrappingKeyIdentifierHasBeenSet = true; } + if(jsonValue.ValueExists("KeyBlockHeaders")) + { + m_keyBlockHeaders = jsonValue.GetObject("KeyBlockHeaders"); + + m_keyBlockHeadersHasBeenSet = true; + } + return *this; } @@ -51,6 +60,12 @@ JsonValue ExportTr31KeyBlock::Jsonize() const } + if(m_keyBlockHeadersHasBeenSet) + { + payload.WithObject("KeyBlockHeaders", m_keyBlockHeaders.Jsonize()); + + } + return payload; } diff --git a/generated/src/aws-cpp-sdk-payment-cryptography/source/model/ExportTr34KeyBlock.cpp b/generated/src/aws-cpp-sdk-payment-cryptography/source/model/ExportTr34KeyBlock.cpp index f417fe576bb..2cc5acb0844 100644 --- a/generated/src/aws-cpp-sdk-payment-cryptography/source/model/ExportTr34KeyBlock.cpp +++ b/generated/src/aws-cpp-sdk-payment-cryptography/source/model/ExportTr34KeyBlock.cpp @@ -20,21 +20,23 @@ namespace Model ExportTr34KeyBlock::ExportTr34KeyBlock() : m_certificateAuthorityPublicKeyIdentifierHasBeenSet(false), + m_wrappingKeyCertificateHasBeenSet(false), m_exportTokenHasBeenSet(false), m_keyBlockFormat(Tr34KeyBlockFormat::NOT_SET), m_keyBlockFormatHasBeenSet(false), m_randomNonceHasBeenSet(false), - m_wrappingKeyCertificateHasBeenSet(false) + m_keyBlockHeadersHasBeenSet(false) { } ExportTr34KeyBlock::ExportTr34KeyBlock(JsonView jsonValue) : m_certificateAuthorityPublicKeyIdentifierHasBeenSet(false), + m_wrappingKeyCertificateHasBeenSet(false), m_exportTokenHasBeenSet(false), m_keyBlockFormat(Tr34KeyBlockFormat::NOT_SET), m_keyBlockFormatHasBeenSet(false), m_randomNonceHasBeenSet(false), - m_wrappingKeyCertificateHasBeenSet(false) + m_keyBlockHeadersHasBeenSet(false) { *this = jsonValue; } @@ -48,6 +50,13 @@ ExportTr34KeyBlock& ExportTr34KeyBlock::operator =(JsonView jsonValue) m_certificateAuthorityPublicKeyIdentifierHasBeenSet = true; } + if(jsonValue.ValueExists("WrappingKeyCertificate")) + { + m_wrappingKeyCertificate = jsonValue.GetString("WrappingKeyCertificate"); + + m_wrappingKeyCertificateHasBeenSet = true; + } + if(jsonValue.ValueExists("ExportToken")) { m_exportToken = jsonValue.GetString("ExportToken"); @@ -69,11 +78,11 @@ ExportTr34KeyBlock& ExportTr34KeyBlock::operator =(JsonView jsonValue) m_randomNonceHasBeenSet = true; } - if(jsonValue.ValueExists("WrappingKeyCertificate")) + if(jsonValue.ValueExists("KeyBlockHeaders")) { - m_wrappingKeyCertificate = jsonValue.GetString("WrappingKeyCertificate"); + m_keyBlockHeaders = jsonValue.GetObject("KeyBlockHeaders"); - m_wrappingKeyCertificateHasBeenSet = true; + m_keyBlockHeadersHasBeenSet = true; } return *this; @@ -89,6 +98,12 @@ JsonValue ExportTr34KeyBlock::Jsonize() const } + if(m_wrappingKeyCertificateHasBeenSet) + { + payload.WithString("WrappingKeyCertificate", m_wrappingKeyCertificate); + + } + if(m_exportTokenHasBeenSet) { payload.WithString("ExportToken", m_exportToken); @@ -106,9 +121,9 @@ JsonValue ExportTr34KeyBlock::Jsonize() const } - if(m_wrappingKeyCertificateHasBeenSet) + if(m_keyBlockHeadersHasBeenSet) { - payload.WithString("WrappingKeyCertificate", m_wrappingKeyCertificate); + payload.WithObject("KeyBlockHeaders", m_keyBlockHeaders.Jsonize()); } diff --git a/generated/src/aws-cpp-sdk-payment-cryptography/source/model/GetParametersForExportResult.cpp b/generated/src/aws-cpp-sdk-payment-cryptography/source/model/GetParametersForExportResult.cpp index 63893bbd2f0..ed0ab4174eb 100644 --- a/generated/src/aws-cpp-sdk-payment-cryptography/source/model/GetParametersForExportResult.cpp +++ b/generated/src/aws-cpp-sdk-payment-cryptography/source/model/GetParametersForExportResult.cpp @@ -31,15 +31,15 @@ GetParametersForExportResult::GetParametersForExportResult(const Aws::AmazonWebS GetParametersForExportResult& GetParametersForExportResult::operator =(const Aws::AmazonWebServiceResult& result) { JsonView jsonValue = result.GetPayload().View(); - if(jsonValue.ValueExists("ExportToken")) + if(jsonValue.ValueExists("SigningKeyCertificate")) { - m_exportToken = jsonValue.GetString("ExportToken"); + m_signingKeyCertificate = jsonValue.GetString("SigningKeyCertificate"); } - if(jsonValue.ValueExists("ParametersValidUntilTimestamp")) + if(jsonValue.ValueExists("SigningKeyCertificateChain")) { - m_parametersValidUntilTimestamp = jsonValue.GetDouble("ParametersValidUntilTimestamp"); + m_signingKeyCertificateChain = jsonValue.GetString("SigningKeyCertificateChain"); } @@ -49,15 +49,15 @@ GetParametersForExportResult& GetParametersForExportResult::operator =(const Aws } - if(jsonValue.ValueExists("SigningKeyCertificate")) + if(jsonValue.ValueExists("ExportToken")) { - m_signingKeyCertificate = jsonValue.GetString("SigningKeyCertificate"); + m_exportToken = jsonValue.GetString("ExportToken"); } - if(jsonValue.ValueExists("SigningKeyCertificateChain")) + if(jsonValue.ValueExists("ParametersValidUntilTimestamp")) { - m_signingKeyCertificateChain = jsonValue.GetString("SigningKeyCertificateChain"); + m_parametersValidUntilTimestamp = jsonValue.GetDouble("ParametersValidUntilTimestamp"); } diff --git a/generated/src/aws-cpp-sdk-payment-cryptography/source/model/GetParametersForImportResult.cpp b/generated/src/aws-cpp-sdk-payment-cryptography/source/model/GetParametersForImportResult.cpp index f6b03a83fef..04d53a56b3e 100644 --- a/generated/src/aws-cpp-sdk-payment-cryptography/source/model/GetParametersForImportResult.cpp +++ b/generated/src/aws-cpp-sdk-payment-cryptography/source/model/GetParametersForImportResult.cpp @@ -31,15 +31,15 @@ GetParametersForImportResult::GetParametersForImportResult(const Aws::AmazonWebS GetParametersForImportResult& GetParametersForImportResult::operator =(const Aws::AmazonWebServiceResult& result) { JsonView jsonValue = result.GetPayload().View(); - if(jsonValue.ValueExists("ImportToken")) + if(jsonValue.ValueExists("WrappingKeyCertificate")) { - m_importToken = jsonValue.GetString("ImportToken"); + m_wrappingKeyCertificate = jsonValue.GetString("WrappingKeyCertificate"); } - if(jsonValue.ValueExists("ParametersValidUntilTimestamp")) + if(jsonValue.ValueExists("WrappingKeyCertificateChain")) { - m_parametersValidUntilTimestamp = jsonValue.GetDouble("ParametersValidUntilTimestamp"); + m_wrappingKeyCertificateChain = jsonValue.GetString("WrappingKeyCertificateChain"); } @@ -49,15 +49,15 @@ GetParametersForImportResult& GetParametersForImportResult::operator =(const Aws } - if(jsonValue.ValueExists("WrappingKeyCertificate")) + if(jsonValue.ValueExists("ImportToken")) { - m_wrappingKeyCertificate = jsonValue.GetString("WrappingKeyCertificate"); + m_importToken = jsonValue.GetString("ImportToken"); } - if(jsonValue.ValueExists("WrappingKeyCertificateChain")) + if(jsonValue.ValueExists("ParametersValidUntilTimestamp")) { - m_wrappingKeyCertificateChain = jsonValue.GetString("WrappingKeyCertificateChain"); + m_parametersValidUntilTimestamp = jsonValue.GetDouble("ParametersValidUntilTimestamp"); } diff --git a/generated/src/aws-cpp-sdk-payment-cryptography/source/model/ImportKeyCryptogram.cpp b/generated/src/aws-cpp-sdk-payment-cryptography/source/model/ImportKeyCryptogram.cpp index 2ab18fab965..0c9ebbaf3dd 100644 --- a/generated/src/aws-cpp-sdk-payment-cryptography/source/model/ImportKeyCryptogram.cpp +++ b/generated/src/aws-cpp-sdk-payment-cryptography/source/model/ImportKeyCryptogram.cpp @@ -19,22 +19,22 @@ namespace Model { ImportKeyCryptogram::ImportKeyCryptogram() : + m_keyAttributesHasBeenSet(false), m_exportable(false), m_exportableHasBeenSet(false), - m_importTokenHasBeenSet(false), - m_keyAttributesHasBeenSet(false), m_wrappedKeyCryptogramHasBeenSet(false), + m_importTokenHasBeenSet(false), m_wrappingSpec(WrappingKeySpec::NOT_SET), m_wrappingSpecHasBeenSet(false) { } ImportKeyCryptogram::ImportKeyCryptogram(JsonView jsonValue) : + m_keyAttributesHasBeenSet(false), m_exportable(false), m_exportableHasBeenSet(false), - m_importTokenHasBeenSet(false), - m_keyAttributesHasBeenSet(false), m_wrappedKeyCryptogramHasBeenSet(false), + m_importTokenHasBeenSet(false), m_wrappingSpec(WrappingKeySpec::NOT_SET), m_wrappingSpecHasBeenSet(false) { @@ -43,32 +43,32 @@ ImportKeyCryptogram::ImportKeyCryptogram(JsonView jsonValue) : ImportKeyCryptogram& ImportKeyCryptogram::operator =(JsonView jsonValue) { - if(jsonValue.ValueExists("Exportable")) + if(jsonValue.ValueExists("KeyAttributes")) { - m_exportable = jsonValue.GetBool("Exportable"); + m_keyAttributes = jsonValue.GetObject("KeyAttributes"); - m_exportableHasBeenSet = true; + m_keyAttributesHasBeenSet = true; } - if(jsonValue.ValueExists("ImportToken")) + if(jsonValue.ValueExists("Exportable")) { - m_importToken = jsonValue.GetString("ImportToken"); + m_exportable = jsonValue.GetBool("Exportable"); - m_importTokenHasBeenSet = true; + m_exportableHasBeenSet = true; } - if(jsonValue.ValueExists("KeyAttributes")) + if(jsonValue.ValueExists("WrappedKeyCryptogram")) { - m_keyAttributes = jsonValue.GetObject("KeyAttributes"); + m_wrappedKeyCryptogram = jsonValue.GetString("WrappedKeyCryptogram"); - m_keyAttributesHasBeenSet = true; + m_wrappedKeyCryptogramHasBeenSet = true; } - if(jsonValue.ValueExists("WrappedKeyCryptogram")) + if(jsonValue.ValueExists("ImportToken")) { - m_wrappedKeyCryptogram = jsonValue.GetString("WrappedKeyCryptogram"); + m_importToken = jsonValue.GetString("ImportToken"); - m_wrappedKeyCryptogramHasBeenSet = true; + m_importTokenHasBeenSet = true; } if(jsonValue.ValueExists("WrappingSpec")) @@ -85,27 +85,27 @@ JsonValue ImportKeyCryptogram::Jsonize() const { JsonValue payload; - if(m_exportableHasBeenSet) + if(m_keyAttributesHasBeenSet) { - payload.WithBool("Exportable", m_exportable); + payload.WithObject("KeyAttributes", m_keyAttributes.Jsonize()); } - if(m_importTokenHasBeenSet) + if(m_exportableHasBeenSet) { - payload.WithString("ImportToken", m_importToken); + payload.WithBool("Exportable", m_exportable); } - if(m_keyAttributesHasBeenSet) + if(m_wrappedKeyCryptogramHasBeenSet) { - payload.WithObject("KeyAttributes", m_keyAttributes.Jsonize()); + payload.WithString("WrappedKeyCryptogram", m_wrappedKeyCryptogram); } - if(m_wrappedKeyCryptogramHasBeenSet) + if(m_importTokenHasBeenSet) { - payload.WithString("WrappedKeyCryptogram", m_wrappedKeyCryptogram); + payload.WithString("ImportToken", m_importToken); } diff --git a/generated/src/aws-cpp-sdk-payment-cryptography/source/model/ImportKeyMaterial.cpp b/generated/src/aws-cpp-sdk-payment-cryptography/source/model/ImportKeyMaterial.cpp index ae9923ba774..06cfbeb75e8 100644 --- a/generated/src/aws-cpp-sdk-payment-cryptography/source/model/ImportKeyMaterial.cpp +++ b/generated/src/aws-cpp-sdk-payment-cryptography/source/model/ImportKeyMaterial.cpp @@ -19,38 +19,38 @@ namespace Model { ImportKeyMaterial::ImportKeyMaterial() : - m_keyCryptogramHasBeenSet(false), m_rootCertificatePublicKeyHasBeenSet(false), + m_trustedCertificatePublicKeyHasBeenSet(false), m_tr31KeyBlockHasBeenSet(false), m_tr34KeyBlockHasBeenSet(false), - m_trustedCertificatePublicKeyHasBeenSet(false) + m_keyCryptogramHasBeenSet(false) { } ImportKeyMaterial::ImportKeyMaterial(JsonView jsonValue) : - m_keyCryptogramHasBeenSet(false), m_rootCertificatePublicKeyHasBeenSet(false), + m_trustedCertificatePublicKeyHasBeenSet(false), m_tr31KeyBlockHasBeenSet(false), m_tr34KeyBlockHasBeenSet(false), - m_trustedCertificatePublicKeyHasBeenSet(false) + m_keyCryptogramHasBeenSet(false) { *this = jsonValue; } ImportKeyMaterial& ImportKeyMaterial::operator =(JsonView jsonValue) { - if(jsonValue.ValueExists("KeyCryptogram")) + if(jsonValue.ValueExists("RootCertificatePublicKey")) { - m_keyCryptogram = jsonValue.GetObject("KeyCryptogram"); + m_rootCertificatePublicKey = jsonValue.GetObject("RootCertificatePublicKey"); - m_keyCryptogramHasBeenSet = true; + m_rootCertificatePublicKeyHasBeenSet = true; } - if(jsonValue.ValueExists("RootCertificatePublicKey")) + if(jsonValue.ValueExists("TrustedCertificatePublicKey")) { - m_rootCertificatePublicKey = jsonValue.GetObject("RootCertificatePublicKey"); + m_trustedCertificatePublicKey = jsonValue.GetObject("TrustedCertificatePublicKey"); - m_rootCertificatePublicKeyHasBeenSet = true; + m_trustedCertificatePublicKeyHasBeenSet = true; } if(jsonValue.ValueExists("Tr31KeyBlock")) @@ -67,11 +67,11 @@ ImportKeyMaterial& ImportKeyMaterial::operator =(JsonView jsonValue) m_tr34KeyBlockHasBeenSet = true; } - if(jsonValue.ValueExists("TrustedCertificatePublicKey")) + if(jsonValue.ValueExists("KeyCryptogram")) { - m_trustedCertificatePublicKey = jsonValue.GetObject("TrustedCertificatePublicKey"); + m_keyCryptogram = jsonValue.GetObject("KeyCryptogram"); - m_trustedCertificatePublicKeyHasBeenSet = true; + m_keyCryptogramHasBeenSet = true; } return *this; @@ -81,15 +81,15 @@ JsonValue ImportKeyMaterial::Jsonize() const { JsonValue payload; - if(m_keyCryptogramHasBeenSet) + if(m_rootCertificatePublicKeyHasBeenSet) { - payload.WithObject("KeyCryptogram", m_keyCryptogram.Jsonize()); + payload.WithObject("RootCertificatePublicKey", m_rootCertificatePublicKey.Jsonize()); } - if(m_rootCertificatePublicKeyHasBeenSet) + if(m_trustedCertificatePublicKeyHasBeenSet) { - payload.WithObject("RootCertificatePublicKey", m_rootCertificatePublicKey.Jsonize()); + payload.WithObject("TrustedCertificatePublicKey", m_trustedCertificatePublicKey.Jsonize()); } @@ -105,9 +105,9 @@ JsonValue ImportKeyMaterial::Jsonize() const } - if(m_trustedCertificatePublicKeyHasBeenSet) + if(m_keyCryptogramHasBeenSet) { - payload.WithObject("TrustedCertificatePublicKey", m_trustedCertificatePublicKey.Jsonize()); + payload.WithObject("KeyCryptogram", m_keyCryptogram.Jsonize()); } diff --git a/generated/src/aws-cpp-sdk-payment-cryptography/source/model/ImportKeyRequest.cpp b/generated/src/aws-cpp-sdk-payment-cryptography/source/model/ImportKeyRequest.cpp index 112f4445a1c..ea0bb2d9098 100644 --- a/generated/src/aws-cpp-sdk-payment-cryptography/source/model/ImportKeyRequest.cpp +++ b/generated/src/aws-cpp-sdk-payment-cryptography/source/model/ImportKeyRequest.cpp @@ -13,11 +13,11 @@ using namespace Aws::Utils::Json; using namespace Aws::Utils; ImportKeyRequest::ImportKeyRequest() : - m_enabled(false), - m_enabledHasBeenSet(false), + m_keyMaterialHasBeenSet(false), m_keyCheckValueAlgorithm(KeyCheckValueAlgorithm::NOT_SET), m_keyCheckValueAlgorithmHasBeenSet(false), - m_keyMaterialHasBeenSet(false), + m_enabled(false), + m_enabledHasBeenSet(false), m_tagsHasBeenSet(false) { } @@ -26,9 +26,9 @@ Aws::String ImportKeyRequest::SerializePayload() const { JsonValue payload; - if(m_enabledHasBeenSet) + if(m_keyMaterialHasBeenSet) { - payload.WithBool("Enabled", m_enabled); + payload.WithObject("KeyMaterial", m_keyMaterial.Jsonize()); } @@ -37,9 +37,9 @@ Aws::String ImportKeyRequest::SerializePayload() const payload.WithString("KeyCheckValueAlgorithm", KeyCheckValueAlgorithmMapper::GetNameForKeyCheckValueAlgorithm(m_keyCheckValueAlgorithm)); } - if(m_keyMaterialHasBeenSet) + if(m_enabledHasBeenSet) { - payload.WithObject("KeyMaterial", m_keyMaterial.Jsonize()); + payload.WithBool("Enabled", m_enabled); } diff --git a/generated/src/aws-cpp-sdk-payment-cryptography/source/model/ImportTr31KeyBlock.cpp b/generated/src/aws-cpp-sdk-payment-cryptography/source/model/ImportTr31KeyBlock.cpp index a24454094ff..057b43e1801 100644 --- a/generated/src/aws-cpp-sdk-payment-cryptography/source/model/ImportTr31KeyBlock.cpp +++ b/generated/src/aws-cpp-sdk-payment-cryptography/source/model/ImportTr31KeyBlock.cpp @@ -19,32 +19,32 @@ namespace Model { ImportTr31KeyBlock::ImportTr31KeyBlock() : - m_wrappedKeyBlockHasBeenSet(false), - m_wrappingKeyIdentifierHasBeenSet(false) + m_wrappingKeyIdentifierHasBeenSet(false), + m_wrappedKeyBlockHasBeenSet(false) { } ImportTr31KeyBlock::ImportTr31KeyBlock(JsonView jsonValue) : - m_wrappedKeyBlockHasBeenSet(false), - m_wrappingKeyIdentifierHasBeenSet(false) + m_wrappingKeyIdentifierHasBeenSet(false), + m_wrappedKeyBlockHasBeenSet(false) { *this = jsonValue; } ImportTr31KeyBlock& ImportTr31KeyBlock::operator =(JsonView jsonValue) { - if(jsonValue.ValueExists("WrappedKeyBlock")) + if(jsonValue.ValueExists("WrappingKeyIdentifier")) { - m_wrappedKeyBlock = jsonValue.GetString("WrappedKeyBlock"); + m_wrappingKeyIdentifier = jsonValue.GetString("WrappingKeyIdentifier"); - m_wrappedKeyBlockHasBeenSet = true; + m_wrappingKeyIdentifierHasBeenSet = true; } - if(jsonValue.ValueExists("WrappingKeyIdentifier")) + if(jsonValue.ValueExists("WrappedKeyBlock")) { - m_wrappingKeyIdentifier = jsonValue.GetString("WrappingKeyIdentifier"); + m_wrappedKeyBlock = jsonValue.GetString("WrappedKeyBlock"); - m_wrappingKeyIdentifierHasBeenSet = true; + m_wrappedKeyBlockHasBeenSet = true; } return *this; @@ -54,15 +54,15 @@ JsonValue ImportTr31KeyBlock::Jsonize() const { JsonValue payload; - if(m_wrappedKeyBlockHasBeenSet) + if(m_wrappingKeyIdentifierHasBeenSet) { - payload.WithString("WrappedKeyBlock", m_wrappedKeyBlock); + payload.WithString("WrappingKeyIdentifier", m_wrappingKeyIdentifier); } - if(m_wrappingKeyIdentifierHasBeenSet) + if(m_wrappedKeyBlockHasBeenSet) { - payload.WithString("WrappingKeyIdentifier", m_wrappingKeyIdentifier); + payload.WithString("WrappedKeyBlock", m_wrappedKeyBlock); } diff --git a/generated/src/aws-cpp-sdk-payment-cryptography/source/model/ImportTr34KeyBlock.cpp b/generated/src/aws-cpp-sdk-payment-cryptography/source/model/ImportTr34KeyBlock.cpp index c7b90f3b5f4..3c8b9388568 100644 --- a/generated/src/aws-cpp-sdk-payment-cryptography/source/model/ImportTr34KeyBlock.cpp +++ b/generated/src/aws-cpp-sdk-payment-cryptography/source/model/ImportTr34KeyBlock.cpp @@ -20,23 +20,23 @@ namespace Model ImportTr34KeyBlock::ImportTr34KeyBlock() : m_certificateAuthorityPublicKeyIdentifierHasBeenSet(false), + m_signingKeyCertificateHasBeenSet(false), m_importTokenHasBeenSet(false), + m_wrappedKeyBlockHasBeenSet(false), m_keyBlockFormat(Tr34KeyBlockFormat::NOT_SET), m_keyBlockFormatHasBeenSet(false), - m_randomNonceHasBeenSet(false), - m_signingKeyCertificateHasBeenSet(false), - m_wrappedKeyBlockHasBeenSet(false) + m_randomNonceHasBeenSet(false) { } ImportTr34KeyBlock::ImportTr34KeyBlock(JsonView jsonValue) : m_certificateAuthorityPublicKeyIdentifierHasBeenSet(false), + m_signingKeyCertificateHasBeenSet(false), m_importTokenHasBeenSet(false), + m_wrappedKeyBlockHasBeenSet(false), m_keyBlockFormat(Tr34KeyBlockFormat::NOT_SET), m_keyBlockFormatHasBeenSet(false), - m_randomNonceHasBeenSet(false), - m_signingKeyCertificateHasBeenSet(false), - m_wrappedKeyBlockHasBeenSet(false) + m_randomNonceHasBeenSet(false) { *this = jsonValue; } @@ -50,6 +50,13 @@ ImportTr34KeyBlock& ImportTr34KeyBlock::operator =(JsonView jsonValue) m_certificateAuthorityPublicKeyIdentifierHasBeenSet = true; } + if(jsonValue.ValueExists("SigningKeyCertificate")) + { + m_signingKeyCertificate = jsonValue.GetString("SigningKeyCertificate"); + + m_signingKeyCertificateHasBeenSet = true; + } + if(jsonValue.ValueExists("ImportToken")) { m_importToken = jsonValue.GetString("ImportToken"); @@ -57,6 +64,13 @@ ImportTr34KeyBlock& ImportTr34KeyBlock::operator =(JsonView jsonValue) m_importTokenHasBeenSet = true; } + if(jsonValue.ValueExists("WrappedKeyBlock")) + { + m_wrappedKeyBlock = jsonValue.GetString("WrappedKeyBlock"); + + m_wrappedKeyBlockHasBeenSet = true; + } + if(jsonValue.ValueExists("KeyBlockFormat")) { m_keyBlockFormat = Tr34KeyBlockFormatMapper::GetTr34KeyBlockFormatForName(jsonValue.GetString("KeyBlockFormat")); @@ -71,20 +85,6 @@ ImportTr34KeyBlock& ImportTr34KeyBlock::operator =(JsonView jsonValue) m_randomNonceHasBeenSet = true; } - if(jsonValue.ValueExists("SigningKeyCertificate")) - { - m_signingKeyCertificate = jsonValue.GetString("SigningKeyCertificate"); - - m_signingKeyCertificateHasBeenSet = true; - } - - if(jsonValue.ValueExists("WrappedKeyBlock")) - { - m_wrappedKeyBlock = jsonValue.GetString("WrappedKeyBlock"); - - m_wrappedKeyBlockHasBeenSet = true; - } - return *this; } @@ -98,32 +98,32 @@ JsonValue ImportTr34KeyBlock::Jsonize() const } - if(m_importTokenHasBeenSet) + if(m_signingKeyCertificateHasBeenSet) { - payload.WithString("ImportToken", m_importToken); + payload.WithString("SigningKeyCertificate", m_signingKeyCertificate); } - if(m_keyBlockFormatHasBeenSet) + if(m_importTokenHasBeenSet) { - payload.WithString("KeyBlockFormat", Tr34KeyBlockFormatMapper::GetNameForTr34KeyBlockFormat(m_keyBlockFormat)); + payload.WithString("ImportToken", m_importToken); + } - if(m_randomNonceHasBeenSet) + if(m_wrappedKeyBlockHasBeenSet) { - payload.WithString("RandomNonce", m_randomNonce); + payload.WithString("WrappedKeyBlock", m_wrappedKeyBlock); } - if(m_signingKeyCertificateHasBeenSet) + if(m_keyBlockFormatHasBeenSet) { - payload.WithString("SigningKeyCertificate", m_signingKeyCertificate); - + payload.WithString("KeyBlockFormat", Tr34KeyBlockFormatMapper::GetNameForTr34KeyBlockFormat(m_keyBlockFormat)); } - if(m_wrappedKeyBlockHasBeenSet) + if(m_randomNonceHasBeenSet) { - payload.WithString("WrappedKeyBlock", m_wrappedKeyBlock); + payload.WithString("RandomNonce", m_randomNonce); } diff --git a/generated/src/aws-cpp-sdk-payment-cryptography/source/model/Key.cpp b/generated/src/aws-cpp-sdk-payment-cryptography/source/model/Key.cpp index 7fac4bf0c8c..395074e22b2 100644 --- a/generated/src/aws-cpp-sdk-payment-cryptography/source/model/Key.cpp +++ b/generated/src/aws-cpp-sdk-payment-cryptography/source/model/Key.cpp @@ -19,71 +19,78 @@ namespace Model { Key::Key() : - m_createTimestampHasBeenSet(false), - m_deletePendingTimestampHasBeenSet(false), - m_deleteTimestampHasBeenSet(false), - m_enabled(false), - m_enabledHasBeenSet(false), - m_exportable(false), - m_exportableHasBeenSet(false), m_keyArnHasBeenSet(false), m_keyAttributesHasBeenSet(false), m_keyCheckValueHasBeenSet(false), m_keyCheckValueAlgorithm(KeyCheckValueAlgorithm::NOT_SET), m_keyCheckValueAlgorithmHasBeenSet(false), - m_keyOrigin(KeyOrigin::NOT_SET), - m_keyOriginHasBeenSet(false), + m_enabled(false), + m_enabledHasBeenSet(false), + m_exportable(false), + m_exportableHasBeenSet(false), m_keyState(KeyState::NOT_SET), m_keyStateHasBeenSet(false), + m_keyOrigin(KeyOrigin::NOT_SET), + m_keyOriginHasBeenSet(false), + m_createTimestampHasBeenSet(false), m_usageStartTimestampHasBeenSet(false), - m_usageStopTimestampHasBeenSet(false) + m_usageStopTimestampHasBeenSet(false), + m_deletePendingTimestampHasBeenSet(false), + m_deleteTimestampHasBeenSet(false) { } Key::Key(JsonView jsonValue) : - m_createTimestampHasBeenSet(false), - m_deletePendingTimestampHasBeenSet(false), - m_deleteTimestampHasBeenSet(false), - m_enabled(false), - m_enabledHasBeenSet(false), - m_exportable(false), - m_exportableHasBeenSet(false), m_keyArnHasBeenSet(false), m_keyAttributesHasBeenSet(false), m_keyCheckValueHasBeenSet(false), m_keyCheckValueAlgorithm(KeyCheckValueAlgorithm::NOT_SET), m_keyCheckValueAlgorithmHasBeenSet(false), - m_keyOrigin(KeyOrigin::NOT_SET), - m_keyOriginHasBeenSet(false), + m_enabled(false), + m_enabledHasBeenSet(false), + m_exportable(false), + m_exportableHasBeenSet(false), m_keyState(KeyState::NOT_SET), m_keyStateHasBeenSet(false), + m_keyOrigin(KeyOrigin::NOT_SET), + m_keyOriginHasBeenSet(false), + m_createTimestampHasBeenSet(false), m_usageStartTimestampHasBeenSet(false), - m_usageStopTimestampHasBeenSet(false) + m_usageStopTimestampHasBeenSet(false), + m_deletePendingTimestampHasBeenSet(false), + m_deleteTimestampHasBeenSet(false) { *this = jsonValue; } Key& Key::operator =(JsonView jsonValue) { - if(jsonValue.ValueExists("CreateTimestamp")) + if(jsonValue.ValueExists("KeyArn")) { - m_createTimestamp = jsonValue.GetDouble("CreateTimestamp"); + m_keyArn = jsonValue.GetString("KeyArn"); - m_createTimestampHasBeenSet = true; + m_keyArnHasBeenSet = true; } - if(jsonValue.ValueExists("DeletePendingTimestamp")) + if(jsonValue.ValueExists("KeyAttributes")) { - m_deletePendingTimestamp = jsonValue.GetDouble("DeletePendingTimestamp"); + m_keyAttributes = jsonValue.GetObject("KeyAttributes"); - m_deletePendingTimestampHasBeenSet = true; + m_keyAttributesHasBeenSet = true; } - if(jsonValue.ValueExists("DeleteTimestamp")) + if(jsonValue.ValueExists("KeyCheckValue")) { - m_deleteTimestamp = jsonValue.GetDouble("DeleteTimestamp"); + m_keyCheckValue = jsonValue.GetString("KeyCheckValue"); - m_deleteTimestampHasBeenSet = true; + m_keyCheckValueHasBeenSet = true; + } + + if(jsonValue.ValueExists("KeyCheckValueAlgorithm")) + { + m_keyCheckValueAlgorithm = KeyCheckValueAlgorithmMapper::GetKeyCheckValueAlgorithmForName(jsonValue.GetString("KeyCheckValueAlgorithm")); + + m_keyCheckValueAlgorithmHasBeenSet = true; } if(jsonValue.ValueExists("Enabled")) @@ -100,32 +107,11 @@ Key& Key::operator =(JsonView jsonValue) m_exportableHasBeenSet = true; } - if(jsonValue.ValueExists("KeyArn")) - { - m_keyArn = jsonValue.GetString("KeyArn"); - - m_keyArnHasBeenSet = true; - } - - if(jsonValue.ValueExists("KeyAttributes")) - { - m_keyAttributes = jsonValue.GetObject("KeyAttributes"); - - m_keyAttributesHasBeenSet = true; - } - - if(jsonValue.ValueExists("KeyCheckValue")) - { - m_keyCheckValue = jsonValue.GetString("KeyCheckValue"); - - m_keyCheckValueHasBeenSet = true; - } - - if(jsonValue.ValueExists("KeyCheckValueAlgorithm")) + if(jsonValue.ValueExists("KeyState")) { - m_keyCheckValueAlgorithm = KeyCheckValueAlgorithmMapper::GetKeyCheckValueAlgorithmForName(jsonValue.GetString("KeyCheckValueAlgorithm")); + m_keyState = KeyStateMapper::GetKeyStateForName(jsonValue.GetString("KeyState")); - m_keyCheckValueAlgorithmHasBeenSet = true; + m_keyStateHasBeenSet = true; } if(jsonValue.ValueExists("KeyOrigin")) @@ -135,11 +121,11 @@ Key& Key::operator =(JsonView jsonValue) m_keyOriginHasBeenSet = true; } - if(jsonValue.ValueExists("KeyState")) + if(jsonValue.ValueExists("CreateTimestamp")) { - m_keyState = KeyStateMapper::GetKeyStateForName(jsonValue.GetString("KeyState")); + m_createTimestamp = jsonValue.GetDouble("CreateTimestamp"); - m_keyStateHasBeenSet = true; + m_createTimestampHasBeenSet = true; } if(jsonValue.ValueExists("UsageStartTimestamp")) @@ -156,39 +142,26 @@ Key& Key::operator =(JsonView jsonValue) m_usageStopTimestampHasBeenSet = true; } - return *this; -} - -JsonValue Key::Jsonize() const -{ - JsonValue payload; - - if(m_createTimestampHasBeenSet) - { - payload.WithDouble("CreateTimestamp", m_createTimestamp.SecondsWithMSPrecision()); - } - - if(m_deletePendingTimestampHasBeenSet) + if(jsonValue.ValueExists("DeletePendingTimestamp")) { - payload.WithDouble("DeletePendingTimestamp", m_deletePendingTimestamp.SecondsWithMSPrecision()); - } + m_deletePendingTimestamp = jsonValue.GetDouble("DeletePendingTimestamp"); - if(m_deleteTimestampHasBeenSet) - { - payload.WithDouble("DeleteTimestamp", m_deleteTimestamp.SecondsWithMSPrecision()); + m_deletePendingTimestampHasBeenSet = true; } - if(m_enabledHasBeenSet) + if(jsonValue.ValueExists("DeleteTimestamp")) { - payload.WithBool("Enabled", m_enabled); + m_deleteTimestamp = jsonValue.GetDouble("DeleteTimestamp"); + m_deleteTimestampHasBeenSet = true; } - if(m_exportableHasBeenSet) - { - payload.WithBool("Exportable", m_exportable); + return *this; +} - } +JsonValue Key::Jsonize() const +{ + JsonValue payload; if(m_keyArnHasBeenSet) { @@ -213,9 +186,16 @@ JsonValue Key::Jsonize() const payload.WithString("KeyCheckValueAlgorithm", KeyCheckValueAlgorithmMapper::GetNameForKeyCheckValueAlgorithm(m_keyCheckValueAlgorithm)); } - if(m_keyOriginHasBeenSet) + if(m_enabledHasBeenSet) { - payload.WithString("KeyOrigin", KeyOriginMapper::GetNameForKeyOrigin(m_keyOrigin)); + payload.WithBool("Enabled", m_enabled); + + } + + if(m_exportableHasBeenSet) + { + payload.WithBool("Exportable", m_exportable); + } if(m_keyStateHasBeenSet) @@ -223,6 +203,16 @@ JsonValue Key::Jsonize() const payload.WithString("KeyState", KeyStateMapper::GetNameForKeyState(m_keyState)); } + if(m_keyOriginHasBeenSet) + { + payload.WithString("KeyOrigin", KeyOriginMapper::GetNameForKeyOrigin(m_keyOrigin)); + } + + if(m_createTimestampHasBeenSet) + { + payload.WithDouble("CreateTimestamp", m_createTimestamp.SecondsWithMSPrecision()); + } + if(m_usageStartTimestampHasBeenSet) { payload.WithDouble("UsageStartTimestamp", m_usageStartTimestamp.SecondsWithMSPrecision()); @@ -233,6 +223,16 @@ JsonValue Key::Jsonize() const payload.WithDouble("UsageStopTimestamp", m_usageStopTimestamp.SecondsWithMSPrecision()); } + if(m_deletePendingTimestampHasBeenSet) + { + payload.WithDouble("DeletePendingTimestamp", m_deletePendingTimestamp.SecondsWithMSPrecision()); + } + + if(m_deleteTimestampHasBeenSet) + { + payload.WithDouble("DeleteTimestamp", m_deleteTimestamp.SecondsWithMSPrecision()); + } + return payload; } diff --git a/generated/src/aws-cpp-sdk-payment-cryptography/source/model/KeyAttributes.cpp b/generated/src/aws-cpp-sdk-payment-cryptography/source/model/KeyAttributes.cpp index 404e7f4afa7..86e24b90dd6 100644 --- a/generated/src/aws-cpp-sdk-payment-cryptography/source/model/KeyAttributes.cpp +++ b/generated/src/aws-cpp-sdk-payment-cryptography/source/model/KeyAttributes.cpp @@ -19,35 +19,35 @@ namespace Model { KeyAttributes::KeyAttributes() : - m_keyAlgorithm(KeyAlgorithm::NOT_SET), - m_keyAlgorithmHasBeenSet(false), + m_keyUsage(KeyUsage::NOT_SET), + m_keyUsageHasBeenSet(false), m_keyClass(KeyClass::NOT_SET), m_keyClassHasBeenSet(false), - m_keyModesOfUseHasBeenSet(false), - m_keyUsage(KeyUsage::NOT_SET), - m_keyUsageHasBeenSet(false) + m_keyAlgorithm(KeyAlgorithm::NOT_SET), + m_keyAlgorithmHasBeenSet(false), + m_keyModesOfUseHasBeenSet(false) { } KeyAttributes::KeyAttributes(JsonView jsonValue) : - m_keyAlgorithm(KeyAlgorithm::NOT_SET), - m_keyAlgorithmHasBeenSet(false), + m_keyUsage(KeyUsage::NOT_SET), + m_keyUsageHasBeenSet(false), m_keyClass(KeyClass::NOT_SET), m_keyClassHasBeenSet(false), - m_keyModesOfUseHasBeenSet(false), - m_keyUsage(KeyUsage::NOT_SET), - m_keyUsageHasBeenSet(false) + m_keyAlgorithm(KeyAlgorithm::NOT_SET), + m_keyAlgorithmHasBeenSet(false), + m_keyModesOfUseHasBeenSet(false) { *this = jsonValue; } KeyAttributes& KeyAttributes::operator =(JsonView jsonValue) { - if(jsonValue.ValueExists("KeyAlgorithm")) + if(jsonValue.ValueExists("KeyUsage")) { - m_keyAlgorithm = KeyAlgorithmMapper::GetKeyAlgorithmForName(jsonValue.GetString("KeyAlgorithm")); + m_keyUsage = KeyUsageMapper::GetKeyUsageForName(jsonValue.GetString("KeyUsage")); - m_keyAlgorithmHasBeenSet = true; + m_keyUsageHasBeenSet = true; } if(jsonValue.ValueExists("KeyClass")) @@ -57,18 +57,18 @@ KeyAttributes& KeyAttributes::operator =(JsonView jsonValue) m_keyClassHasBeenSet = true; } - if(jsonValue.ValueExists("KeyModesOfUse")) + if(jsonValue.ValueExists("KeyAlgorithm")) { - m_keyModesOfUse = jsonValue.GetObject("KeyModesOfUse"); + m_keyAlgorithm = KeyAlgorithmMapper::GetKeyAlgorithmForName(jsonValue.GetString("KeyAlgorithm")); - m_keyModesOfUseHasBeenSet = true; + m_keyAlgorithmHasBeenSet = true; } - if(jsonValue.ValueExists("KeyUsage")) + if(jsonValue.ValueExists("KeyModesOfUse")) { - m_keyUsage = KeyUsageMapper::GetKeyUsageForName(jsonValue.GetString("KeyUsage")); + m_keyModesOfUse = jsonValue.GetObject("KeyModesOfUse"); - m_keyUsageHasBeenSet = true; + m_keyModesOfUseHasBeenSet = true; } return *this; @@ -78,9 +78,9 @@ JsonValue KeyAttributes::Jsonize() const { JsonValue payload; - if(m_keyAlgorithmHasBeenSet) + if(m_keyUsageHasBeenSet) { - payload.WithString("KeyAlgorithm", KeyAlgorithmMapper::GetNameForKeyAlgorithm(m_keyAlgorithm)); + payload.WithString("KeyUsage", KeyUsageMapper::GetNameForKeyUsage(m_keyUsage)); } if(m_keyClassHasBeenSet) @@ -88,15 +88,15 @@ JsonValue KeyAttributes::Jsonize() const payload.WithString("KeyClass", KeyClassMapper::GetNameForKeyClass(m_keyClass)); } - if(m_keyModesOfUseHasBeenSet) + if(m_keyAlgorithmHasBeenSet) { - payload.WithObject("KeyModesOfUse", m_keyModesOfUse.Jsonize()); - + payload.WithString("KeyAlgorithm", KeyAlgorithmMapper::GetNameForKeyAlgorithm(m_keyAlgorithm)); } - if(m_keyUsageHasBeenSet) + if(m_keyModesOfUseHasBeenSet) { - payload.WithString("KeyUsage", KeyUsageMapper::GetNameForKeyUsage(m_keyUsage)); + payload.WithObject("KeyModesOfUse", m_keyModesOfUse.Jsonize()); + } return payload; diff --git a/generated/src/aws-cpp-sdk-payment-cryptography/source/model/KeyBlockHeaders.cpp b/generated/src/aws-cpp-sdk-payment-cryptography/source/model/KeyBlockHeaders.cpp new file mode 100644 index 00000000000..71ffea0b7e7 --- /dev/null +++ b/generated/src/aws-cpp-sdk-payment-cryptography/source/model/KeyBlockHeaders.cpp @@ -0,0 +1,113 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace PaymentCryptography +{ +namespace Model +{ + +KeyBlockHeaders::KeyBlockHeaders() : + m_keyModesOfUseHasBeenSet(false), + m_keyExportability(KeyExportability::NOT_SET), + m_keyExportabilityHasBeenSet(false), + m_keyVersionHasBeenSet(false), + m_optionalBlocksHasBeenSet(false) +{ +} + +KeyBlockHeaders::KeyBlockHeaders(JsonView jsonValue) : + m_keyModesOfUseHasBeenSet(false), + m_keyExportability(KeyExportability::NOT_SET), + m_keyExportabilityHasBeenSet(false), + m_keyVersionHasBeenSet(false), + m_optionalBlocksHasBeenSet(false) +{ + *this = jsonValue; +} + +KeyBlockHeaders& KeyBlockHeaders::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("KeyModesOfUse")) + { + m_keyModesOfUse = jsonValue.GetObject("KeyModesOfUse"); + + m_keyModesOfUseHasBeenSet = true; + } + + if(jsonValue.ValueExists("KeyExportability")) + { + m_keyExportability = KeyExportabilityMapper::GetKeyExportabilityForName(jsonValue.GetString("KeyExportability")); + + m_keyExportabilityHasBeenSet = true; + } + + if(jsonValue.ValueExists("KeyVersion")) + { + m_keyVersion = jsonValue.GetString("KeyVersion"); + + m_keyVersionHasBeenSet = true; + } + + if(jsonValue.ValueExists("OptionalBlocks")) + { + Aws::Map optionalBlocksJsonMap = jsonValue.GetObject("OptionalBlocks").GetAllObjects(); + for(auto& optionalBlocksItem : optionalBlocksJsonMap) + { + m_optionalBlocks[optionalBlocksItem.first] = optionalBlocksItem.second.AsString(); + } + m_optionalBlocksHasBeenSet = true; + } + + return *this; +} + +JsonValue KeyBlockHeaders::Jsonize() const +{ + JsonValue payload; + + if(m_keyModesOfUseHasBeenSet) + { + payload.WithObject("KeyModesOfUse", m_keyModesOfUse.Jsonize()); + + } + + if(m_keyExportabilityHasBeenSet) + { + payload.WithString("KeyExportability", KeyExportabilityMapper::GetNameForKeyExportability(m_keyExportability)); + } + + if(m_keyVersionHasBeenSet) + { + payload.WithString("KeyVersion", m_keyVersion); + + } + + if(m_optionalBlocksHasBeenSet) + { + JsonValue optionalBlocksJsonMap; + for(auto& optionalBlocksItem : m_optionalBlocks) + { + optionalBlocksJsonMap.WithString(optionalBlocksItem.first, optionalBlocksItem.second); + } + payload.WithObject("OptionalBlocks", std::move(optionalBlocksJsonMap)); + + } + + return payload; +} + +} // namespace Model +} // namespace PaymentCryptography +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-payment-cryptography/source/model/KeyExportability.cpp b/generated/src/aws-cpp-sdk-payment-cryptography/source/model/KeyExportability.cpp new file mode 100644 index 00000000000..9765c752cc0 --- /dev/null +++ b/generated/src/aws-cpp-sdk-payment-cryptography/source/model/KeyExportability.cpp @@ -0,0 +1,79 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace PaymentCryptography + { + namespace Model + { + namespace KeyExportabilityMapper + { + + static const int EXPORTABLE_HASH = HashingUtils::HashString("EXPORTABLE"); + static const int NON_EXPORTABLE_HASH = HashingUtils::HashString("NON_EXPORTABLE"); + static const int SENSITIVE_HASH = HashingUtils::HashString("SENSITIVE"); + + + KeyExportability GetKeyExportabilityForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == EXPORTABLE_HASH) + { + return KeyExportability::EXPORTABLE; + } + else if (hashCode == NON_EXPORTABLE_HASH) + { + return KeyExportability::NON_EXPORTABLE; + } + else if (hashCode == SENSITIVE_HASH) + { + return KeyExportability::SENSITIVE; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return KeyExportability::NOT_SET; + } + + Aws::String GetNameForKeyExportability(KeyExportability enumValue) + { + switch(enumValue) + { + case KeyExportability::NOT_SET: + return {}; + case KeyExportability::EXPORTABLE: + return "EXPORTABLE"; + case KeyExportability::NON_EXPORTABLE: + return "NON_EXPORTABLE"; + case KeyExportability::SENSITIVE: + return "SENSITIVE"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace KeyExportabilityMapper + } // namespace Model + } // namespace PaymentCryptography +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-payment-cryptography/source/model/KeyModesOfUse.cpp b/generated/src/aws-cpp-sdk-payment-cryptography/source/model/KeyModesOfUse.cpp index 0f65567984a..763931db51a 100644 --- a/generated/src/aws-cpp-sdk-payment-cryptography/source/model/KeyModesOfUse.cpp +++ b/generated/src/aws-cpp-sdk-payment-cryptography/source/model/KeyModesOfUse.cpp @@ -19,52 +19,59 @@ namespace Model { KeyModesOfUse::KeyModesOfUse() : - m_decrypt(false), - m_decryptHasBeenSet(false), - m_deriveKey(false), - m_deriveKeyHasBeenSet(false), m_encrypt(false), m_encryptHasBeenSet(false), + m_decrypt(false), + m_decryptHasBeenSet(false), + m_wrap(false), + m_wrapHasBeenSet(false), + m_unwrap(false), + m_unwrapHasBeenSet(false), m_generate(false), m_generateHasBeenSet(false), - m_noRestrictions(false), - m_noRestrictionsHasBeenSet(false), m_sign(false), m_signHasBeenSet(false), - m_unwrap(false), - m_unwrapHasBeenSet(false), m_verify(false), m_verifyHasBeenSet(false), - m_wrap(false), - m_wrapHasBeenSet(false) + m_deriveKey(false), + m_deriveKeyHasBeenSet(false), + m_noRestrictions(false), + m_noRestrictionsHasBeenSet(false) { } KeyModesOfUse::KeyModesOfUse(JsonView jsonValue) : - m_decrypt(false), - m_decryptHasBeenSet(false), - m_deriveKey(false), - m_deriveKeyHasBeenSet(false), m_encrypt(false), m_encryptHasBeenSet(false), + m_decrypt(false), + m_decryptHasBeenSet(false), + m_wrap(false), + m_wrapHasBeenSet(false), + m_unwrap(false), + m_unwrapHasBeenSet(false), m_generate(false), m_generateHasBeenSet(false), - m_noRestrictions(false), - m_noRestrictionsHasBeenSet(false), m_sign(false), m_signHasBeenSet(false), - m_unwrap(false), - m_unwrapHasBeenSet(false), m_verify(false), m_verifyHasBeenSet(false), - m_wrap(false), - m_wrapHasBeenSet(false) + m_deriveKey(false), + m_deriveKeyHasBeenSet(false), + m_noRestrictions(false), + m_noRestrictionsHasBeenSet(false) { *this = jsonValue; } KeyModesOfUse& KeyModesOfUse::operator =(JsonView jsonValue) { + if(jsonValue.ValueExists("Encrypt")) + { + m_encrypt = jsonValue.GetBool("Encrypt"); + + m_encryptHasBeenSet = true; + } + if(jsonValue.ValueExists("Decrypt")) { m_decrypt = jsonValue.GetBool("Decrypt"); @@ -72,18 +79,18 @@ KeyModesOfUse& KeyModesOfUse::operator =(JsonView jsonValue) m_decryptHasBeenSet = true; } - if(jsonValue.ValueExists("DeriveKey")) + if(jsonValue.ValueExists("Wrap")) { - m_deriveKey = jsonValue.GetBool("DeriveKey"); + m_wrap = jsonValue.GetBool("Wrap"); - m_deriveKeyHasBeenSet = true; + m_wrapHasBeenSet = true; } - if(jsonValue.ValueExists("Encrypt")) + if(jsonValue.ValueExists("Unwrap")) { - m_encrypt = jsonValue.GetBool("Encrypt"); + m_unwrap = jsonValue.GetBool("Unwrap"); - m_encryptHasBeenSet = true; + m_unwrapHasBeenSet = true; } if(jsonValue.ValueExists("Generate")) @@ -93,13 +100,6 @@ KeyModesOfUse& KeyModesOfUse::operator =(JsonView jsonValue) m_generateHasBeenSet = true; } - if(jsonValue.ValueExists("NoRestrictions")) - { - m_noRestrictions = jsonValue.GetBool("NoRestrictions"); - - m_noRestrictionsHasBeenSet = true; - } - if(jsonValue.ValueExists("Sign")) { m_sign = jsonValue.GetBool("Sign"); @@ -107,25 +107,25 @@ KeyModesOfUse& KeyModesOfUse::operator =(JsonView jsonValue) m_signHasBeenSet = true; } - if(jsonValue.ValueExists("Unwrap")) + if(jsonValue.ValueExists("Verify")) { - m_unwrap = jsonValue.GetBool("Unwrap"); + m_verify = jsonValue.GetBool("Verify"); - m_unwrapHasBeenSet = true; + m_verifyHasBeenSet = true; } - if(jsonValue.ValueExists("Verify")) + if(jsonValue.ValueExists("DeriveKey")) { - m_verify = jsonValue.GetBool("Verify"); + m_deriveKey = jsonValue.GetBool("DeriveKey"); - m_verifyHasBeenSet = true; + m_deriveKeyHasBeenSet = true; } - if(jsonValue.ValueExists("Wrap")) + if(jsonValue.ValueExists("NoRestrictions")) { - m_wrap = jsonValue.GetBool("Wrap"); + m_noRestrictions = jsonValue.GetBool("NoRestrictions"); - m_wrapHasBeenSet = true; + m_noRestrictionsHasBeenSet = true; } return *this; @@ -135,33 +135,33 @@ JsonValue KeyModesOfUse::Jsonize() const { JsonValue payload; - if(m_decryptHasBeenSet) + if(m_encryptHasBeenSet) { - payload.WithBool("Decrypt", m_decrypt); + payload.WithBool("Encrypt", m_encrypt); } - if(m_deriveKeyHasBeenSet) + if(m_decryptHasBeenSet) { - payload.WithBool("DeriveKey", m_deriveKey); + payload.WithBool("Decrypt", m_decrypt); } - if(m_encryptHasBeenSet) + if(m_wrapHasBeenSet) { - payload.WithBool("Encrypt", m_encrypt); + payload.WithBool("Wrap", m_wrap); } - if(m_generateHasBeenSet) + if(m_unwrapHasBeenSet) { - payload.WithBool("Generate", m_generate); + payload.WithBool("Unwrap", m_unwrap); } - if(m_noRestrictionsHasBeenSet) + if(m_generateHasBeenSet) { - payload.WithBool("NoRestrictions", m_noRestrictions); + payload.WithBool("Generate", m_generate); } @@ -171,21 +171,21 @@ JsonValue KeyModesOfUse::Jsonize() const } - if(m_unwrapHasBeenSet) + if(m_verifyHasBeenSet) { - payload.WithBool("Unwrap", m_unwrap); + payload.WithBool("Verify", m_verify); } - if(m_verifyHasBeenSet) + if(m_deriveKeyHasBeenSet) { - payload.WithBool("Verify", m_verify); + payload.WithBool("DeriveKey", m_deriveKey); } - if(m_wrapHasBeenSet) + if(m_noRestrictionsHasBeenSet) { - payload.WithBool("Wrap", m_wrap); + payload.WithBool("NoRestrictions", m_noRestrictions); } diff --git a/generated/src/aws-cpp-sdk-payment-cryptography/source/model/KeySummary.cpp b/generated/src/aws-cpp-sdk-payment-cryptography/source/model/KeySummary.cpp index a370d0e3e79..c691098c038 100644 --- a/generated/src/aws-cpp-sdk-payment-cryptography/source/model/KeySummary.cpp +++ b/generated/src/aws-cpp-sdk-payment-cryptography/source/model/KeySummary.cpp @@ -19,53 +19,46 @@ namespace Model { KeySummary::KeySummary() : - m_enabled(false), - m_enabledHasBeenSet(false), - m_exportable(false), - m_exportableHasBeenSet(false), m_keyArnHasBeenSet(false), + m_keyState(KeyState::NOT_SET), + m_keyStateHasBeenSet(false), m_keyAttributesHasBeenSet(false), m_keyCheckValueHasBeenSet(false), - m_keyState(KeyState::NOT_SET), - m_keyStateHasBeenSet(false) + m_exportable(false), + m_exportableHasBeenSet(false), + m_enabled(false), + m_enabledHasBeenSet(false) { } KeySummary::KeySummary(JsonView jsonValue) : - m_enabled(false), - m_enabledHasBeenSet(false), - m_exportable(false), - m_exportableHasBeenSet(false), m_keyArnHasBeenSet(false), + m_keyState(KeyState::NOT_SET), + m_keyStateHasBeenSet(false), m_keyAttributesHasBeenSet(false), m_keyCheckValueHasBeenSet(false), - m_keyState(KeyState::NOT_SET), - m_keyStateHasBeenSet(false) + m_exportable(false), + m_exportableHasBeenSet(false), + m_enabled(false), + m_enabledHasBeenSet(false) { *this = jsonValue; } KeySummary& KeySummary::operator =(JsonView jsonValue) { - if(jsonValue.ValueExists("Enabled")) - { - m_enabled = jsonValue.GetBool("Enabled"); - - m_enabledHasBeenSet = true; - } - - if(jsonValue.ValueExists("Exportable")) + if(jsonValue.ValueExists("KeyArn")) { - m_exportable = jsonValue.GetBool("Exportable"); + m_keyArn = jsonValue.GetString("KeyArn"); - m_exportableHasBeenSet = true; + m_keyArnHasBeenSet = true; } - if(jsonValue.ValueExists("KeyArn")) + if(jsonValue.ValueExists("KeyState")) { - m_keyArn = jsonValue.GetString("KeyArn"); + m_keyState = KeyStateMapper::GetKeyStateForName(jsonValue.GetString("KeyState")); - m_keyArnHasBeenSet = true; + m_keyStateHasBeenSet = true; } if(jsonValue.ValueExists("KeyAttributes")) @@ -82,11 +75,18 @@ KeySummary& KeySummary::operator =(JsonView jsonValue) m_keyCheckValueHasBeenSet = true; } - if(jsonValue.ValueExists("KeyState")) + if(jsonValue.ValueExists("Exportable")) { - m_keyState = KeyStateMapper::GetKeyStateForName(jsonValue.GetString("KeyState")); + m_exportable = jsonValue.GetBool("Exportable"); - m_keyStateHasBeenSet = true; + m_exportableHasBeenSet = true; + } + + if(jsonValue.ValueExists("Enabled")) + { + m_enabled = jsonValue.GetBool("Enabled"); + + m_enabledHasBeenSet = true; } return *this; @@ -96,22 +96,15 @@ JsonValue KeySummary::Jsonize() const { JsonValue payload; - if(m_enabledHasBeenSet) - { - payload.WithBool("Enabled", m_enabled); - - } - - if(m_exportableHasBeenSet) + if(m_keyArnHasBeenSet) { - payload.WithBool("Exportable", m_exportable); + payload.WithString("KeyArn", m_keyArn); } - if(m_keyArnHasBeenSet) + if(m_keyStateHasBeenSet) { - payload.WithString("KeyArn", m_keyArn); - + payload.WithString("KeyState", KeyStateMapper::GetNameForKeyState(m_keyState)); } if(m_keyAttributesHasBeenSet) @@ -126,9 +119,16 @@ JsonValue KeySummary::Jsonize() const } - if(m_keyStateHasBeenSet) + if(m_exportableHasBeenSet) { - payload.WithString("KeyState", KeyStateMapper::GetNameForKeyState(m_keyState)); + payload.WithBool("Exportable", m_exportable); + + } + + if(m_enabledHasBeenSet) + { + payload.WithBool("Enabled", m_enabled); + } return payload; diff --git a/generated/src/aws-cpp-sdk-payment-cryptography/source/model/ListAliasesRequest.cpp b/generated/src/aws-cpp-sdk-payment-cryptography/source/model/ListAliasesRequest.cpp index 102b1b3665e..85a7f15c34a 100644 --- a/generated/src/aws-cpp-sdk-payment-cryptography/source/model/ListAliasesRequest.cpp +++ b/generated/src/aws-cpp-sdk-payment-cryptography/source/model/ListAliasesRequest.cpp @@ -13,9 +13,9 @@ using namespace Aws::Utils::Json; using namespace Aws::Utils; ListAliasesRequest::ListAliasesRequest() : + m_nextTokenHasBeenSet(false), m_maxResults(0), - m_maxResultsHasBeenSet(false), - m_nextTokenHasBeenSet(false) + m_maxResultsHasBeenSet(false) { } @@ -23,15 +23,15 @@ Aws::String ListAliasesRequest::SerializePayload() const { JsonValue payload; - if(m_maxResultsHasBeenSet) + if(m_nextTokenHasBeenSet) { - payload.WithInteger("MaxResults", m_maxResults); + payload.WithString("NextToken", m_nextToken); } - if(m_nextTokenHasBeenSet) + if(m_maxResultsHasBeenSet) { - payload.WithString("NextToken", m_nextToken); + payload.WithInteger("MaxResults", m_maxResults); } diff --git a/generated/src/aws-cpp-sdk-payment-cryptography/source/model/ListKeysRequest.cpp b/generated/src/aws-cpp-sdk-payment-cryptography/source/model/ListKeysRequest.cpp index cbedaadf6bb..5efb7d58aa4 100644 --- a/generated/src/aws-cpp-sdk-payment-cryptography/source/model/ListKeysRequest.cpp +++ b/generated/src/aws-cpp-sdk-payment-cryptography/source/model/ListKeysRequest.cpp @@ -15,9 +15,9 @@ using namespace Aws::Utils; ListKeysRequest::ListKeysRequest() : m_keyState(KeyState::NOT_SET), m_keyStateHasBeenSet(false), + m_nextTokenHasBeenSet(false), m_maxResults(0), - m_maxResultsHasBeenSet(false), - m_nextTokenHasBeenSet(false) + m_maxResultsHasBeenSet(false) { } @@ -30,15 +30,15 @@ Aws::String ListKeysRequest::SerializePayload() const payload.WithString("KeyState", KeyStateMapper::GetNameForKeyState(m_keyState)); } - if(m_maxResultsHasBeenSet) + if(m_nextTokenHasBeenSet) { - payload.WithInteger("MaxResults", m_maxResults); + payload.WithString("NextToken", m_nextToken); } - if(m_nextTokenHasBeenSet) + if(m_maxResultsHasBeenSet) { - payload.WithString("NextToken", m_nextToken); + payload.WithInteger("MaxResults", m_maxResults); } diff --git a/generated/src/aws-cpp-sdk-payment-cryptography/source/model/ListTagsForResourceRequest.cpp b/generated/src/aws-cpp-sdk-payment-cryptography/source/model/ListTagsForResourceRequest.cpp index 890cedfffaf..5e931507b3c 100644 --- a/generated/src/aws-cpp-sdk-payment-cryptography/source/model/ListTagsForResourceRequest.cpp +++ b/generated/src/aws-cpp-sdk-payment-cryptography/source/model/ListTagsForResourceRequest.cpp @@ -13,10 +13,10 @@ using namespace Aws::Utils::Json; using namespace Aws::Utils; ListTagsForResourceRequest::ListTagsForResourceRequest() : - m_maxResults(0), - m_maxResultsHasBeenSet(false), + m_resourceArnHasBeenSet(false), m_nextTokenHasBeenSet(false), - m_resourceArnHasBeenSet(false) + m_maxResults(0), + m_maxResultsHasBeenSet(false) { } @@ -24,9 +24,9 @@ Aws::String ListTagsForResourceRequest::SerializePayload() const { JsonValue payload; - if(m_maxResultsHasBeenSet) + if(m_resourceArnHasBeenSet) { - payload.WithInteger("MaxResults", m_maxResults); + payload.WithString("ResourceArn", m_resourceArn); } @@ -36,9 +36,9 @@ Aws::String ListTagsForResourceRequest::SerializePayload() const } - if(m_resourceArnHasBeenSet) + if(m_maxResultsHasBeenSet) { - payload.WithString("ResourceArn", m_resourceArn); + payload.WithInteger("MaxResults", m_maxResults); } diff --git a/generated/src/aws-cpp-sdk-payment-cryptography/source/model/ListTagsForResourceResult.cpp b/generated/src/aws-cpp-sdk-payment-cryptography/source/model/ListTagsForResourceResult.cpp index c80e661be27..7089d05d730 100644 --- a/generated/src/aws-cpp-sdk-payment-cryptography/source/model/ListTagsForResourceResult.cpp +++ b/generated/src/aws-cpp-sdk-payment-cryptography/source/model/ListTagsForResourceResult.cpp @@ -29,12 +29,6 @@ ListTagsForResourceResult::ListTagsForResourceResult(const Aws::AmazonWebService ListTagsForResourceResult& ListTagsForResourceResult::operator =(const Aws::AmazonWebServiceResult& result) { JsonView jsonValue = result.GetPayload().View(); - if(jsonValue.ValueExists("NextToken")) - { - m_nextToken = jsonValue.GetString("NextToken"); - - } - if(jsonValue.ValueExists("Tags")) { Aws::Utils::Array tagsJsonList = jsonValue.GetArray("Tags"); @@ -44,6 +38,12 @@ ListTagsForResourceResult& ListTagsForResourceResult::operator =(const Aws::Amaz } } + if(jsonValue.ValueExists("NextToken")) + { + m_nextToken = jsonValue.GetString("NextToken"); + + } + const auto& headers = result.GetHeaderValueCollection(); const auto& requestIdIter = headers.find("x-amzn-requestid"); diff --git a/generated/src/aws-cpp-sdk-payment-cryptography/source/model/TrustedCertificatePublicKey.cpp b/generated/src/aws-cpp-sdk-payment-cryptography/source/model/TrustedCertificatePublicKey.cpp index 27507994f49..80bb846f85e 100644 --- a/generated/src/aws-cpp-sdk-payment-cryptography/source/model/TrustedCertificatePublicKey.cpp +++ b/generated/src/aws-cpp-sdk-payment-cryptography/source/model/TrustedCertificatePublicKey.cpp @@ -19,29 +19,22 @@ namespace Model { TrustedCertificatePublicKey::TrustedCertificatePublicKey() : - m_certificateAuthorityPublicKeyIdentifierHasBeenSet(false), m_keyAttributesHasBeenSet(false), - m_publicKeyCertificateHasBeenSet(false) + m_publicKeyCertificateHasBeenSet(false), + m_certificateAuthorityPublicKeyIdentifierHasBeenSet(false) { } TrustedCertificatePublicKey::TrustedCertificatePublicKey(JsonView jsonValue) : - m_certificateAuthorityPublicKeyIdentifierHasBeenSet(false), m_keyAttributesHasBeenSet(false), - m_publicKeyCertificateHasBeenSet(false) + m_publicKeyCertificateHasBeenSet(false), + m_certificateAuthorityPublicKeyIdentifierHasBeenSet(false) { *this = jsonValue; } TrustedCertificatePublicKey& TrustedCertificatePublicKey::operator =(JsonView jsonValue) { - if(jsonValue.ValueExists("CertificateAuthorityPublicKeyIdentifier")) - { - m_certificateAuthorityPublicKeyIdentifier = jsonValue.GetString("CertificateAuthorityPublicKeyIdentifier"); - - m_certificateAuthorityPublicKeyIdentifierHasBeenSet = true; - } - if(jsonValue.ValueExists("KeyAttributes")) { m_keyAttributes = jsonValue.GetObject("KeyAttributes"); @@ -56,6 +49,13 @@ TrustedCertificatePublicKey& TrustedCertificatePublicKey::operator =(JsonView js m_publicKeyCertificateHasBeenSet = true; } + if(jsonValue.ValueExists("CertificateAuthorityPublicKeyIdentifier")) + { + m_certificateAuthorityPublicKeyIdentifier = jsonValue.GetString("CertificateAuthorityPublicKeyIdentifier"); + + m_certificateAuthorityPublicKeyIdentifierHasBeenSet = true; + } + return *this; } @@ -63,12 +63,6 @@ JsonValue TrustedCertificatePublicKey::Jsonize() const { JsonValue payload; - if(m_certificateAuthorityPublicKeyIdentifierHasBeenSet) - { - payload.WithString("CertificateAuthorityPublicKeyIdentifier", m_certificateAuthorityPublicKeyIdentifier); - - } - if(m_keyAttributesHasBeenSet) { payload.WithObject("KeyAttributes", m_keyAttributes.Jsonize()); @@ -81,6 +75,12 @@ JsonValue TrustedCertificatePublicKey::Jsonize() const } + if(m_certificateAuthorityPublicKeyIdentifierHasBeenSet) + { + payload.WithString("CertificateAuthorityPublicKeyIdentifier", m_certificateAuthorityPublicKeyIdentifier); + + } + return payload; } diff --git a/generated/src/aws-cpp-sdk-payment-cryptography/source/model/WrappedKey.cpp b/generated/src/aws-cpp-sdk-payment-cryptography/source/model/WrappedKey.cpp index 74ec4569a33..d67110d1730 100644 --- a/generated/src/aws-cpp-sdk-payment-cryptography/source/model/WrappedKey.cpp +++ b/generated/src/aws-cpp-sdk-payment-cryptography/source/model/WrappedKey.cpp @@ -19,42 +19,42 @@ namespace Model { WrappedKey::WrappedKey() : - m_keyCheckValueHasBeenSet(false), - m_keyCheckValueAlgorithm(KeyCheckValueAlgorithm::NOT_SET), - m_keyCheckValueAlgorithmHasBeenSet(false), - m_keyMaterialHasBeenSet(false), + m_wrappingKeyArnHasBeenSet(false), m_wrappedKeyMaterialFormat(WrappedKeyMaterialFormat::NOT_SET), m_wrappedKeyMaterialFormatHasBeenSet(false), - m_wrappingKeyArnHasBeenSet(false) + m_keyMaterialHasBeenSet(false), + m_keyCheckValueHasBeenSet(false), + m_keyCheckValueAlgorithm(KeyCheckValueAlgorithm::NOT_SET), + m_keyCheckValueAlgorithmHasBeenSet(false) { } WrappedKey::WrappedKey(JsonView jsonValue) : - m_keyCheckValueHasBeenSet(false), - m_keyCheckValueAlgorithm(KeyCheckValueAlgorithm::NOT_SET), - m_keyCheckValueAlgorithmHasBeenSet(false), - m_keyMaterialHasBeenSet(false), + m_wrappingKeyArnHasBeenSet(false), m_wrappedKeyMaterialFormat(WrappedKeyMaterialFormat::NOT_SET), m_wrappedKeyMaterialFormatHasBeenSet(false), - m_wrappingKeyArnHasBeenSet(false) + m_keyMaterialHasBeenSet(false), + m_keyCheckValueHasBeenSet(false), + m_keyCheckValueAlgorithm(KeyCheckValueAlgorithm::NOT_SET), + m_keyCheckValueAlgorithmHasBeenSet(false) { *this = jsonValue; } WrappedKey& WrappedKey::operator =(JsonView jsonValue) { - if(jsonValue.ValueExists("KeyCheckValue")) + if(jsonValue.ValueExists("WrappingKeyArn")) { - m_keyCheckValue = jsonValue.GetString("KeyCheckValue"); + m_wrappingKeyArn = jsonValue.GetString("WrappingKeyArn"); - m_keyCheckValueHasBeenSet = true; + m_wrappingKeyArnHasBeenSet = true; } - if(jsonValue.ValueExists("KeyCheckValueAlgorithm")) + if(jsonValue.ValueExists("WrappedKeyMaterialFormat")) { - m_keyCheckValueAlgorithm = KeyCheckValueAlgorithmMapper::GetKeyCheckValueAlgorithmForName(jsonValue.GetString("KeyCheckValueAlgorithm")); + m_wrappedKeyMaterialFormat = WrappedKeyMaterialFormatMapper::GetWrappedKeyMaterialFormatForName(jsonValue.GetString("WrappedKeyMaterialFormat")); - m_keyCheckValueAlgorithmHasBeenSet = true; + m_wrappedKeyMaterialFormatHasBeenSet = true; } if(jsonValue.ValueExists("KeyMaterial")) @@ -64,18 +64,18 @@ WrappedKey& WrappedKey::operator =(JsonView jsonValue) m_keyMaterialHasBeenSet = true; } - if(jsonValue.ValueExists("WrappedKeyMaterialFormat")) + if(jsonValue.ValueExists("KeyCheckValue")) { - m_wrappedKeyMaterialFormat = WrappedKeyMaterialFormatMapper::GetWrappedKeyMaterialFormatForName(jsonValue.GetString("WrappedKeyMaterialFormat")); + m_keyCheckValue = jsonValue.GetString("KeyCheckValue"); - m_wrappedKeyMaterialFormatHasBeenSet = true; + m_keyCheckValueHasBeenSet = true; } - if(jsonValue.ValueExists("WrappingKeyArn")) + if(jsonValue.ValueExists("KeyCheckValueAlgorithm")) { - m_wrappingKeyArn = jsonValue.GetString("WrappingKeyArn"); + m_keyCheckValueAlgorithm = KeyCheckValueAlgorithmMapper::GetKeyCheckValueAlgorithmForName(jsonValue.GetString("KeyCheckValueAlgorithm")); - m_wrappingKeyArnHasBeenSet = true; + m_keyCheckValueAlgorithmHasBeenSet = true; } return *this; @@ -85,15 +85,15 @@ JsonValue WrappedKey::Jsonize() const { JsonValue payload; - if(m_keyCheckValueHasBeenSet) + if(m_wrappingKeyArnHasBeenSet) { - payload.WithString("KeyCheckValue", m_keyCheckValue); + payload.WithString("WrappingKeyArn", m_wrappingKeyArn); } - if(m_keyCheckValueAlgorithmHasBeenSet) + if(m_wrappedKeyMaterialFormatHasBeenSet) { - payload.WithString("KeyCheckValueAlgorithm", KeyCheckValueAlgorithmMapper::GetNameForKeyCheckValueAlgorithm(m_keyCheckValueAlgorithm)); + payload.WithString("WrappedKeyMaterialFormat", WrappedKeyMaterialFormatMapper::GetNameForWrappedKeyMaterialFormat(m_wrappedKeyMaterialFormat)); } if(m_keyMaterialHasBeenSet) @@ -102,15 +102,15 @@ JsonValue WrappedKey::Jsonize() const } - if(m_wrappedKeyMaterialFormatHasBeenSet) + if(m_keyCheckValueHasBeenSet) { - payload.WithString("WrappedKeyMaterialFormat", WrappedKeyMaterialFormatMapper::GetNameForWrappedKeyMaterialFormat(m_wrappedKeyMaterialFormat)); + payload.WithString("KeyCheckValue", m_keyCheckValue); + } - if(m_wrappingKeyArnHasBeenSet) + if(m_keyCheckValueAlgorithmHasBeenSet) { - payload.WithString("WrappingKeyArn", m_wrappingKeyArn); - + payload.WithString("KeyCheckValueAlgorithm", KeyCheckValueAlgorithmMapper::GetNameForKeyCheckValueAlgorithm(m_keyCheckValueAlgorithm)); } return payload; diff --git a/generated/src/aws-cpp-sdk-redshift-serverless/include/aws/redshift-serverless/model/CreateScheduledActionRequest.h b/generated/src/aws-cpp-sdk-redshift-serverless/include/aws/redshift-serverless/model/CreateScheduledActionRequest.h index 57548ae0397..b61568a32a5 100644 --- a/generated/src/aws-cpp-sdk-redshift-serverless/include/aws/redshift-serverless/model/CreateScheduledActionRequest.h +++ b/generated/src/aws-cpp-sdk-redshift-serverless/include/aws/redshift-serverless/model/CreateScheduledActionRequest.h @@ -254,80 +254,86 @@ namespace Model /** - *

      The schedule for a one-time (at format) or recurring (cron format) scheduled - * action. Schedule invocations must be separated by at least one hour.

      - *

      Format of at expressions is "at(yyyy-mm-ddThh:mm:ss)". For - * example, "at(2016-03-04T17:27:00)".

      Format of cron - * expressions is "cron(Minutes Hours Day-of-month Month Day-of-week - * Year)". For example, "cron(0 10 ? * MON *)". For more - * information, see The schedule for a one-time (at timestamp format) or recurring (cron format) + * scheduled action. Schedule invocations must be separated by at least one hour. + * Times are in UTC.

      */ inline const Schedule& GetSchedule() const{ return m_schedule; } /** - *

      The schedule for a one-time (at format) or recurring (cron format) scheduled - * action. Schedule invocations must be separated by at least one hour.

      - *

      Format of at expressions is "at(yyyy-mm-ddThh:mm:ss)". For - * example, "at(2016-03-04T17:27:00)".

      Format of cron - * expressions is "cron(Minutes Hours Day-of-month Month Day-of-week - * Year)". For example, "cron(0 10 ? * MON *)". For more - * information, see The schedule for a one-time (at timestamp format) or recurring (cron format) + * scheduled action. Schedule invocations must be separated by at least one hour. + * Times are in UTC.

      */ inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; } /** - *

      The schedule for a one-time (at format) or recurring (cron format) scheduled - * action. Schedule invocations must be separated by at least one hour.

      - *

      Format of at expressions is "at(yyyy-mm-ddThh:mm:ss)". For - * example, "at(2016-03-04T17:27:00)".

      Format of cron - * expressions is "cron(Minutes Hours Day-of-month Month Day-of-week - * Year)". For example, "cron(0 10 ? * MON *)". For more - * information, see The schedule for a one-time (at timestamp format) or recurring (cron format) + * scheduled action. Schedule invocations must be separated by at least one hour. + * Times are in UTC.

      */ inline void SetSchedule(const Schedule& value) { m_scheduleHasBeenSet = true; m_schedule = value; } /** - *

      The schedule for a one-time (at format) or recurring (cron format) scheduled - * action. Schedule invocations must be separated by at least one hour.

      - *

      Format of at expressions is "at(yyyy-mm-ddThh:mm:ss)". For - * example, "at(2016-03-04T17:27:00)".

      Format of cron - * expressions is "cron(Minutes Hours Day-of-month Month Day-of-week - * Year)". For example, "cron(0 10 ? * MON *)". For more - * information, see The schedule for a one-time (at timestamp format) or recurring (cron format) + * scheduled action. Schedule invocations must be separated by at least one hour. + * Times are in UTC.

      */ inline void SetSchedule(Schedule&& value) { m_scheduleHasBeenSet = true; m_schedule = std::move(value); } /** - *

      The schedule for a one-time (at format) or recurring (cron format) scheduled - * action. Schedule invocations must be separated by at least one hour.

      - *

      Format of at expressions is "at(yyyy-mm-ddThh:mm:ss)". For - * example, "at(2016-03-04T17:27:00)".

      Format of cron - * expressions is "cron(Minutes Hours Day-of-month Month Day-of-week - * Year)". For example, "cron(0 10 ? * MON *)". For more - * information, see The schedule for a one-time (at timestamp format) or recurring (cron format) + * scheduled action. Schedule invocations must be separated by at least one hour. + * Times are in UTC.

      */ inline CreateScheduledActionRequest& WithSchedule(const Schedule& value) { SetSchedule(value); return *this;} /** - *

      The schedule for a one-time (at format) or recurring (cron format) scheduled - * action. Schedule invocations must be separated by at least one hour.

      - *

      Format of at expressions is "at(yyyy-mm-ddThh:mm:ss)". For - * example, "at(2016-03-04T17:27:00)".

      Format of cron - * expressions is "cron(Minutes Hours Day-of-month Month Day-of-week - * Year)". For example, "cron(0 10 ? * MON *)". For more - * information, see The schedule for a one-time (at timestamp format) or recurring (cron format) + * scheduled action. Schedule invocations must be separated by at least one hour. + * Times are in UTC.

      */ inline CreateScheduledActionRequest& WithSchedule(Schedule&& value) { SetSchedule(std::move(value)); return *this;} diff --git a/generated/src/aws-cpp-sdk-redshift-serverless/include/aws/redshift-serverless/model/Schedule.h b/generated/src/aws-cpp-sdk-redshift-serverless/include/aws/redshift-serverless/model/Schedule.h index 6c18012ed00..5f6b0550f77 100644 --- a/generated/src/aws-cpp-sdk-redshift-serverless/include/aws/redshift-serverless/model/Schedule.h +++ b/generated/src/aws-cpp-sdk-redshift-serverless/include/aws/redshift-serverless/model/Schedule.h @@ -41,52 +41,58 @@ namespace Model /** *

      The timestamp of when Amazon Redshift Serverless should run the scheduled - * action. Format of at expressions is "at(yyyy-mm-ddThh:mm:ss)". For - * example, "at(2016-03-04T17:27:00)".

      + * action. Timestamp is in UTC. Format of at expression is + * yyyy-mm-ddThh:mm:ss. For example, + * 2016-03-04T17:27:00.

      */ inline const Aws::Utils::DateTime& GetAt() const{ return m_at; } /** *

      The timestamp of when Amazon Redshift Serverless should run the scheduled - * action. Format of at expressions is "at(yyyy-mm-ddThh:mm:ss)". For - * example, "at(2016-03-04T17:27:00)".

      + * action. Timestamp is in UTC. Format of at expression is + * yyyy-mm-ddThh:mm:ss. For example, + * 2016-03-04T17:27:00.

      */ inline bool AtHasBeenSet() const { return m_atHasBeenSet; } /** *

      The timestamp of when Amazon Redshift Serverless should run the scheduled - * action. Format of at expressions is "at(yyyy-mm-ddThh:mm:ss)". For - * example, "at(2016-03-04T17:27:00)".

      + * action. Timestamp is in UTC. Format of at expression is + * yyyy-mm-ddThh:mm:ss. For example, + * 2016-03-04T17:27:00.

      */ inline void SetAt(const Aws::Utils::DateTime& value) { m_atHasBeenSet = true; m_at = value; } /** *

      The timestamp of when Amazon Redshift Serverless should run the scheduled - * action. Format of at expressions is "at(yyyy-mm-ddThh:mm:ss)". For - * example, "at(2016-03-04T17:27:00)".

      + * action. Timestamp is in UTC. Format of at expression is + * yyyy-mm-ddThh:mm:ss. For example, + * 2016-03-04T17:27:00.

      */ inline void SetAt(Aws::Utils::DateTime&& value) { m_atHasBeenSet = true; m_at = std::move(value); } /** *

      The timestamp of when Amazon Redshift Serverless should run the scheduled - * action. Format of at expressions is "at(yyyy-mm-ddThh:mm:ss)". For - * example, "at(2016-03-04T17:27:00)".

      + * action. Timestamp is in UTC. Format of at expression is + * yyyy-mm-ddThh:mm:ss. For example, + * 2016-03-04T17:27:00.

      */ inline Schedule& WithAt(const Aws::Utils::DateTime& value) { SetAt(value); return *this;} /** *

      The timestamp of when Amazon Redshift Serverless should run the scheduled - * action. Format of at expressions is "at(yyyy-mm-ddThh:mm:ss)". For - * example, "at(2016-03-04T17:27:00)".

      + * action. Timestamp is in UTC. Format of at expression is + * yyyy-mm-ddThh:mm:ss. For example, + * 2016-03-04T17:27:00.

      */ inline Schedule& WithAt(Aws::Utils::DateTime&& value) { SetAt(std::move(value)); return *this;} /** *

      The cron expression to use to schedule a recurring scheduled action. Schedule - * invocations must be separated by at least one hour.

      Format of cron - * expressions is "cron(Minutes Hours Day-of-month Month Day-of-week - * Year)". For example, "cron(0 10 ? * MON *)". For more + * invocations must be separated by at least one hour. Times are in UTC.

      + *

      Format of cron expressions is (Minutes Hours Day-of-month Month + * Day-of-week Year). For example, "(0 10 ? * MON *)". For more * information, see Cron * Expressions in the Amazon CloudWatch Events User Guide.

      @@ -95,9 +101,9 @@ namespace Model /** *

      The cron expression to use to schedule a recurring scheduled action. Schedule - * invocations must be separated by at least one hour.

      Format of cron - * expressions is "cron(Minutes Hours Day-of-month Month Day-of-week - * Year)". For example, "cron(0 10 ? * MON *)". For more + * invocations must be separated by at least one hour. Times are in UTC.

      + *

      Format of cron expressions is (Minutes Hours Day-of-month Month + * Day-of-week Year). For example, "(0 10 ? * MON *)". For more * information, see Cron * Expressions in the Amazon CloudWatch Events User Guide.

      @@ -106,9 +112,9 @@ namespace Model /** *

      The cron expression to use to schedule a recurring scheduled action. Schedule - * invocations must be separated by at least one hour.

      Format of cron - * expressions is "cron(Minutes Hours Day-of-month Month Day-of-week - * Year)". For example, "cron(0 10 ? * MON *)". For more + * invocations must be separated by at least one hour. Times are in UTC.

      + *

      Format of cron expressions is (Minutes Hours Day-of-month Month + * Day-of-week Year). For example, "(0 10 ? * MON *)". For more * information, see Cron * Expressions in the Amazon CloudWatch Events User Guide.

      @@ -117,9 +123,9 @@ namespace Model /** *

      The cron expression to use to schedule a recurring scheduled action. Schedule - * invocations must be separated by at least one hour.

      Format of cron - * expressions is "cron(Minutes Hours Day-of-month Month Day-of-week - * Year)". For example, "cron(0 10 ? * MON *)". For more + * invocations must be separated by at least one hour. Times are in UTC.

      + *

      Format of cron expressions is (Minutes Hours Day-of-month Month + * Day-of-week Year). For example, "(0 10 ? * MON *)". For more * information, see Cron * Expressions in the Amazon CloudWatch Events User Guide.

      @@ -128,9 +134,9 @@ namespace Model /** *

      The cron expression to use to schedule a recurring scheduled action. Schedule - * invocations must be separated by at least one hour.

      Format of cron - * expressions is "cron(Minutes Hours Day-of-month Month Day-of-week - * Year)". For example, "cron(0 10 ? * MON *)". For more + * invocations must be separated by at least one hour. Times are in UTC.

      + *

      Format of cron expressions is (Minutes Hours Day-of-month Month + * Day-of-week Year). For example, "(0 10 ? * MON *)". For more * information, see Cron * Expressions in the Amazon CloudWatch Events User Guide.

      @@ -139,9 +145,9 @@ namespace Model /** *

      The cron expression to use to schedule a recurring scheduled action. Schedule - * invocations must be separated by at least one hour.

      Format of cron - * expressions is "cron(Minutes Hours Day-of-month Month Day-of-week - * Year)". For example, "cron(0 10 ? * MON *)". For more + * invocations must be separated by at least one hour. Times are in UTC.

      + *

      Format of cron expressions is (Minutes Hours Day-of-month Month + * Day-of-week Year). For example, "(0 10 ? * MON *)". For more * information, see Cron * Expressions in the Amazon CloudWatch Events User Guide.

      @@ -150,9 +156,9 @@ namespace Model /** *

      The cron expression to use to schedule a recurring scheduled action. Schedule - * invocations must be separated by at least one hour.

      Format of cron - * expressions is "cron(Minutes Hours Day-of-month Month Day-of-week - * Year)". For example, "cron(0 10 ? * MON *)". For more + * invocations must be separated by at least one hour. Times are in UTC.

      + *

      Format of cron expressions is (Minutes Hours Day-of-month Month + * Day-of-week Year). For example, "(0 10 ? * MON *)". For more * information, see Cron * Expressions in the Amazon CloudWatch Events User Guide.

      @@ -161,9 +167,9 @@ namespace Model /** *

      The cron expression to use to schedule a recurring scheduled action. Schedule - * invocations must be separated by at least one hour.

      Format of cron - * expressions is "cron(Minutes Hours Day-of-month Month Day-of-week - * Year)". For example, "cron(0 10 ? * MON *)". For more + * invocations must be separated by at least one hour. Times are in UTC.

      + *

      Format of cron expressions is (Minutes Hours Day-of-month Month + * Day-of-week Year). For example, "(0 10 ? * MON *)". For more * information, see Cron * Expressions in the Amazon CloudWatch Events User Guide.

      diff --git a/generated/src/aws-cpp-sdk-redshift-serverless/include/aws/redshift-serverless/model/ScheduledActionResponse.h b/generated/src/aws-cpp-sdk-redshift-serverless/include/aws/redshift-serverless/model/ScheduledActionResponse.h index b291979ffbd..5abcd8e0589 100644 --- a/generated/src/aws-cpp-sdk-redshift-serverless/include/aws/redshift-serverless/model/ScheduledActionResponse.h +++ b/generated/src/aws-cpp-sdk-redshift-serverless/include/aws/redshift-serverless/model/ScheduledActionResponse.h @@ -269,80 +269,86 @@ namespace Model /** - *

      The schedule for a one-time (at format) or recurring (cron format) scheduled - * action. Schedule invocations must be separated by at least one hour.

      - *

      Format of at expressions is "at(yyyy-mm-ddThh:mm:ss)". For - * example, "at(2016-03-04T17:27:00)".

      Format of cron - * expressions is "cron(Minutes Hours Day-of-month Month Day-of-week - * Year)". For example, "cron(0 10 ? * MON *)". For more - * information, see The schedule for a one-time (at timestamp format) or recurring (cron format) + * scheduled action. Schedule invocations must be separated by at least one hour. + * Times are in UTC.

      */ inline const Schedule& GetSchedule() const{ return m_schedule; } /** - *

      The schedule for a one-time (at format) or recurring (cron format) scheduled - * action. Schedule invocations must be separated by at least one hour.

      - *

      Format of at expressions is "at(yyyy-mm-ddThh:mm:ss)". For - * example, "at(2016-03-04T17:27:00)".

      Format of cron - * expressions is "cron(Minutes Hours Day-of-month Month Day-of-week - * Year)". For example, "cron(0 10 ? * MON *)". For more - * information, see The schedule for a one-time (at timestamp format) or recurring (cron format) + * scheduled action. Schedule invocations must be separated by at least one hour. + * Times are in UTC.

      */ inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; } /** - *

      The schedule for a one-time (at format) or recurring (cron format) scheduled - * action. Schedule invocations must be separated by at least one hour.

      - *

      Format of at expressions is "at(yyyy-mm-ddThh:mm:ss)". For - * example, "at(2016-03-04T17:27:00)".

      Format of cron - * expressions is "cron(Minutes Hours Day-of-month Month Day-of-week - * Year)". For example, "cron(0 10 ? * MON *)". For more - * information, see The schedule for a one-time (at timestamp format) or recurring (cron format) + * scheduled action. Schedule invocations must be separated by at least one hour. + * Times are in UTC.

      */ inline void SetSchedule(const Schedule& value) { m_scheduleHasBeenSet = true; m_schedule = value; } /** - *

      The schedule for a one-time (at format) or recurring (cron format) scheduled - * action. Schedule invocations must be separated by at least one hour.

      - *

      Format of at expressions is "at(yyyy-mm-ddThh:mm:ss)". For - * example, "at(2016-03-04T17:27:00)".

      Format of cron - * expressions is "cron(Minutes Hours Day-of-month Month Day-of-week - * Year)". For example, "cron(0 10 ? * MON *)". For more - * information, see The schedule for a one-time (at timestamp format) or recurring (cron format) + * scheduled action. Schedule invocations must be separated by at least one hour. + * Times are in UTC.

      */ inline void SetSchedule(Schedule&& value) { m_scheduleHasBeenSet = true; m_schedule = std::move(value); } /** - *

      The schedule for a one-time (at format) or recurring (cron format) scheduled - * action. Schedule invocations must be separated by at least one hour.

      - *

      Format of at expressions is "at(yyyy-mm-ddThh:mm:ss)". For - * example, "at(2016-03-04T17:27:00)".

      Format of cron - * expressions is "cron(Minutes Hours Day-of-month Month Day-of-week - * Year)". For example, "cron(0 10 ? * MON *)". For more - * information, see The schedule for a one-time (at timestamp format) or recurring (cron format) + * scheduled action. Schedule invocations must be separated by at least one hour. + * Times are in UTC.

      */ inline ScheduledActionResponse& WithSchedule(const Schedule& value) { SetSchedule(value); return *this;} /** - *

      The schedule for a one-time (at format) or recurring (cron format) scheduled - * action. Schedule invocations must be separated by at least one hour.

      - *

      Format of at expressions is "at(yyyy-mm-ddThh:mm:ss)". For - * example, "at(2016-03-04T17:27:00)".

      Format of cron - * expressions is "cron(Minutes Hours Day-of-month Month Day-of-week - * Year)". For example, "cron(0 10 ? * MON *)". For more - * information, see The schedule for a one-time (at timestamp format) or recurring (cron format) + * scheduled action. Schedule invocations must be separated by at least one hour. + * Times are in UTC.

      */ inline ScheduledActionResponse& WithSchedule(Schedule&& value) { SetSchedule(std::move(value)); return *this;} diff --git a/generated/src/aws-cpp-sdk-redshift-serverless/include/aws/redshift-serverless/model/UpdateScheduledActionRequest.h b/generated/src/aws-cpp-sdk-redshift-serverless/include/aws/redshift-serverless/model/UpdateScheduledActionRequest.h index 77e176d2ba9..f2791aa622d 100644 --- a/generated/src/aws-cpp-sdk-redshift-serverless/include/aws/redshift-serverless/model/UpdateScheduledActionRequest.h +++ b/generated/src/aws-cpp-sdk-redshift-serverless/include/aws/redshift-serverless/model/UpdateScheduledActionRequest.h @@ -195,80 +195,86 @@ namespace Model /** - *

      The schedule for a one-time (at format) or recurring (cron format) scheduled - * action. Schedule invocations must be separated by at least one hour.

      - *

      Format of at expressions is "at(yyyy-mm-ddThh:mm:ss)". For - * example, "at(2016-03-04T17:27:00)".

      Format of cron - * expressions is "cron(Minutes Hours Day-of-month Month Day-of-week - * Year)". For example, "cron(0 10 ? * MON *)". For more - * information, see The schedule for a one-time (at timestamp format) or recurring (cron format) + * scheduled action. Schedule invocations must be separated by at least one hour. + * Times are in UTC.

      */ inline const Schedule& GetSchedule() const{ return m_schedule; } /** - *

      The schedule for a one-time (at format) or recurring (cron format) scheduled - * action. Schedule invocations must be separated by at least one hour.

      - *

      Format of at expressions is "at(yyyy-mm-ddThh:mm:ss)". For - * example, "at(2016-03-04T17:27:00)".

      Format of cron - * expressions is "cron(Minutes Hours Day-of-month Month Day-of-week - * Year)". For example, "cron(0 10 ? * MON *)". For more - * information, see The schedule for a one-time (at timestamp format) or recurring (cron format) + * scheduled action. Schedule invocations must be separated by at least one hour. + * Times are in UTC.

      */ inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; } /** - *

      The schedule for a one-time (at format) or recurring (cron format) scheduled - * action. Schedule invocations must be separated by at least one hour.

      - *

      Format of at expressions is "at(yyyy-mm-ddThh:mm:ss)". For - * example, "at(2016-03-04T17:27:00)".

      Format of cron - * expressions is "cron(Minutes Hours Day-of-month Month Day-of-week - * Year)". For example, "cron(0 10 ? * MON *)". For more - * information, see The schedule for a one-time (at timestamp format) or recurring (cron format) + * scheduled action. Schedule invocations must be separated by at least one hour. + * Times are in UTC.

      */ inline void SetSchedule(const Schedule& value) { m_scheduleHasBeenSet = true; m_schedule = value; } /** - *

      The schedule for a one-time (at format) or recurring (cron format) scheduled - * action. Schedule invocations must be separated by at least one hour.

      - *

      Format of at expressions is "at(yyyy-mm-ddThh:mm:ss)". For - * example, "at(2016-03-04T17:27:00)".

      Format of cron - * expressions is "cron(Minutes Hours Day-of-month Month Day-of-week - * Year)". For example, "cron(0 10 ? * MON *)". For more - * information, see The schedule for a one-time (at timestamp format) or recurring (cron format) + * scheduled action. Schedule invocations must be separated by at least one hour. + * Times are in UTC.

      */ inline void SetSchedule(Schedule&& value) { m_scheduleHasBeenSet = true; m_schedule = std::move(value); } /** - *

      The schedule for a one-time (at format) or recurring (cron format) scheduled - * action. Schedule invocations must be separated by at least one hour.

      - *

      Format of at expressions is "at(yyyy-mm-ddThh:mm:ss)". For - * example, "at(2016-03-04T17:27:00)".

      Format of cron - * expressions is "cron(Minutes Hours Day-of-month Month Day-of-week - * Year)". For example, "cron(0 10 ? * MON *)". For more - * information, see The schedule for a one-time (at timestamp format) or recurring (cron format) + * scheduled action. Schedule invocations must be separated by at least one hour. + * Times are in UTC.

      */ inline UpdateScheduledActionRequest& WithSchedule(const Schedule& value) { SetSchedule(value); return *this;} /** - *

      The schedule for a one-time (at format) or recurring (cron format) scheduled - * action. Schedule invocations must be separated by at least one hour.

      - *

      Format of at expressions is "at(yyyy-mm-ddThh:mm:ss)". For - * example, "at(2016-03-04T17:27:00)".

      Format of cron - * expressions is "cron(Minutes Hours Day-of-month Month Day-of-week - * Year)". For example, "cron(0 10 ? * MON *)". For more - * information, see The schedule for a one-time (at timestamp format) or recurring (cron format) + * scheduled action. Schedule invocations must be separated by at least one hour. + * Times are in UTC.

      */ inline UpdateScheduledActionRequest& WithSchedule(Schedule&& value) { SetSchedule(std::move(value)); return *this;} diff --git a/generated/src/aws-cpp-sdk-route53profiles/CMakeLists.txt b/generated/src/aws-cpp-sdk-route53profiles/CMakeLists.txt new file mode 100644 index 00000000000..f5f946bf6d8 --- /dev/null +++ b/generated/src/aws-cpp-sdk-route53profiles/CMakeLists.txt @@ -0,0 +1,76 @@ +add_project(aws-cpp-sdk-route53profiles "C++ SDK for the AWS route53profiles service" aws-cpp-sdk-core) + +file(GLOB AWS_ROUTE53PROFILES_HEADERS + "include/aws/route53profiles/*.h" +) + +file(GLOB AWS_ROUTE53PROFILES_MODEL_HEADERS + "include/aws/route53profiles/model/*.h" +) + +file(GLOB AWS_ROUTE53PROFILES_SOURCE + "source/*.cpp" +) + +file(GLOB AWS_ROUTE53PROFILES_MODEL_SOURCE + "source/model/*.cpp" +) + +file(GLOB ROUTE53PROFILES_UNIFIED_HEADERS + ${AWS_ROUTE53PROFILES_HEADERS} + ${AWS_ROUTE53PROFILES_MODEL_HEADERS} +) + +file(GLOB ROUTE53PROFILES_UNITY_SRC + ${AWS_ROUTE53PROFILES_SOURCE} + ${AWS_ROUTE53PROFILES_MODEL_SOURCE} +) + +if(ENABLE_UNITY_BUILD) + enable_unity_build("ROUTE53PROFILES" ROUTE53PROFILES_UNITY_SRC) +endif() + +file(GLOB ROUTE53PROFILES_SRC + ${ROUTE53PROFILES_UNIFIED_HEADERS} + ${ROUTE53PROFILES_UNITY_SRC} +) + +if(WIN32) + #if we are compiling for visual studio, create a sane directory tree. + if(MSVC) + source_group("Header Files\\aws\\route53profiles" FILES ${AWS_ROUTE53PROFILES_HEADERS}) + source_group("Header Files\\aws\\route53profiles\\model" FILES ${AWS_ROUTE53PROFILES_MODEL_HEADERS}) + source_group("Source Files" FILES ${AWS_ROUTE53PROFILES_SOURCE}) + source_group("Source Files\\model" FILES ${AWS_ROUTE53PROFILES_MODEL_SOURCE}) + endif(MSVC) +endif() + +set(ROUTE53PROFILES_INCLUDES + "${CMAKE_CURRENT_SOURCE_DIR}/include/" +) + +add_library(${PROJECT_NAME} ${ROUTE53PROFILES_SRC}) +add_library(AWS::${PROJECT_NAME} ALIAS ${PROJECT_NAME}) + +set_compiler_flags(${PROJECT_NAME}) +set_compiler_warnings(${PROJECT_NAME}) + +if(USE_WINDOWS_DLL_SEMANTICS AND BUILD_SHARED_LIBS) + target_compile_definitions(${PROJECT_NAME} PRIVATE "AWS_ROUTE53PROFILES_EXPORTS") +endif() + +target_include_directories(${PROJECT_NAME} PUBLIC + $ + $) + +target_link_libraries(${PROJECT_NAME} PRIVATE ${PLATFORM_DEP_LIBS} ${PROJECT_LIBS}) + + +setup_install() + +install (FILES ${AWS_ROUTE53PROFILES_HEADERS} DESTINATION ${INCLUDE_DIRECTORY}/aws/route53profiles) +install (FILES ${AWS_ROUTE53PROFILES_MODEL_HEADERS} DESTINATION ${INCLUDE_DIRECTORY}/aws/route53profiles/model) + +do_packaging() + + diff --git a/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/Route53ProfilesClient.h b/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/Route53ProfilesClient.h new file mode 100644 index 00000000000..233266581bd --- /dev/null +++ b/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/Route53ProfilesClient.h @@ -0,0 +1,511 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Route53Profiles +{ + /** + *

      With Amazon Route 53 Profiles you can share Route 53 configurations with + * VPCs and AWS accounts

      + */ + class AWS_ROUTE53PROFILES_API Route53ProfilesClient : public Aws::Client::AWSJsonClient, public Aws::Client::ClientWithAsyncTemplateMethods + { + public: + typedef Aws::Client::AWSJsonClient BASECLASS; + static const char* GetServiceName(); + static const char* GetAllocationTag(); + + typedef Route53ProfilesClientConfiguration ClientConfigurationType; + typedef Route53ProfilesEndpointProvider EndpointProviderType; + + /** + * Initializes client to use DefaultCredentialProviderChain, with default http client factory, and optional client config. If client config + * is not specified, it will be initialized to default values. + */ + Route53ProfilesClient(const Aws::Route53Profiles::Route53ProfilesClientConfiguration& clientConfiguration = Aws::Route53Profiles::Route53ProfilesClientConfiguration(), + std::shared_ptr endpointProvider = nullptr); + + /** + * Initializes client to use SimpleAWSCredentialsProvider, with default http client factory, and optional client config. If client config + * is not specified, it will be initialized to default values. + */ + Route53ProfilesClient(const Aws::Auth::AWSCredentials& credentials, + std::shared_ptr endpointProvider = nullptr, + const Aws::Route53Profiles::Route53ProfilesClientConfiguration& clientConfiguration = Aws::Route53Profiles::Route53ProfilesClientConfiguration()); + + /** + * Initializes client to use specified credentials provider with specified client config. If http client factory is not supplied, + * the default http client factory will be used + */ + Route53ProfilesClient(const std::shared_ptr& credentialsProvider, + std::shared_ptr endpointProvider = nullptr, + const Aws::Route53Profiles::Route53ProfilesClientConfiguration& clientConfiguration = Aws::Route53Profiles::Route53ProfilesClientConfiguration()); + + + /* Legacy constructors due deprecation */ + /** + * Initializes client to use DefaultCredentialProviderChain, with default http client factory, and optional client config. If client config + * is not specified, it will be initialized to default values. + */ + Route53ProfilesClient(const Aws::Client::ClientConfiguration& clientConfiguration); + + /** + * Initializes client to use SimpleAWSCredentialsProvider, with default http client factory, and optional client config. If client config + * is not specified, it will be initialized to default values. + */ + Route53ProfilesClient(const Aws::Auth::AWSCredentials& credentials, + const Aws::Client::ClientConfiguration& clientConfiguration); + + /** + * Initializes client to use specified credentials provider with specified client config. If http client factory is not supplied, + * the default http client factory will be used + */ + Route53ProfilesClient(const std::shared_ptr& credentialsProvider, + const Aws::Client::ClientConfiguration& clientConfiguration); + + /* End of legacy constructors due deprecation */ + virtual ~Route53ProfilesClient(); + + /** + *

      Associates a Route 53 Profiles profile with a VPC. A VPC can have only one + * Profile associated with it, but a Profile can be associated with up to 5000 + * VPCs.

      See Also:

      AWS + * API Reference

      + */ + virtual Model::AssociateProfileOutcome AssociateProfile(const Model::AssociateProfileRequest& request) const; + + /** + * A Callable wrapper for AssociateProfile that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::AssociateProfileOutcomeCallable AssociateProfileCallable(const AssociateProfileRequestT& request) const + { + return SubmitCallable(&Route53ProfilesClient::AssociateProfile, request); + } + + /** + * An Async wrapper for AssociateProfile that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void AssociateProfileAsync(const AssociateProfileRequestT& request, const AssociateProfileResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&Route53ProfilesClient::AssociateProfile, request, handler, context); + } + + /** + *

      Associates a DNS reource configuration to a Route 53 Profile.

      See + * Also:

      AWS + * API Reference

      + */ + virtual Model::AssociateResourceToProfileOutcome AssociateResourceToProfile(const Model::AssociateResourceToProfileRequest& request) const; + + /** + * A Callable wrapper for AssociateResourceToProfile that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::AssociateResourceToProfileOutcomeCallable AssociateResourceToProfileCallable(const AssociateResourceToProfileRequestT& request) const + { + return SubmitCallable(&Route53ProfilesClient::AssociateResourceToProfile, request); + } + + /** + * An Async wrapper for AssociateResourceToProfile that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void AssociateResourceToProfileAsync(const AssociateResourceToProfileRequestT& request, const AssociateResourceToProfileResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&Route53ProfilesClient::AssociateResourceToProfile, request, handler, context); + } + + /** + *

      Creates an empty Route 53 Profile.

      See Also:

      AWS + * API Reference

      + */ + virtual Model::CreateProfileOutcome CreateProfile(const Model::CreateProfileRequest& request) const; + + /** + * A Callable wrapper for CreateProfile that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::CreateProfileOutcomeCallable CreateProfileCallable(const CreateProfileRequestT& request) const + { + return SubmitCallable(&Route53ProfilesClient::CreateProfile, request); + } + + /** + * An Async wrapper for CreateProfile that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void CreateProfileAsync(const CreateProfileRequestT& request, const CreateProfileResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&Route53ProfilesClient::CreateProfile, request, handler, context); + } + + /** + *

      Deletes the specified Route 53 Profile. Before you can delete a profile, you + * must first disassociate it from all VPCs.

      See Also:

      AWS + * API Reference

      + */ + virtual Model::DeleteProfileOutcome DeleteProfile(const Model::DeleteProfileRequest& request) const; + + /** + * A Callable wrapper for DeleteProfile that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::DeleteProfileOutcomeCallable DeleteProfileCallable(const DeleteProfileRequestT& request) const + { + return SubmitCallable(&Route53ProfilesClient::DeleteProfile, request); + } + + /** + * An Async wrapper for DeleteProfile that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void DeleteProfileAsync(const DeleteProfileRequestT& request, const DeleteProfileResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&Route53ProfilesClient::DeleteProfile, request, handler, context); + } + + /** + *

      Dissociates a specified Route 53 Profile from the specified VPC. + *

      See Also:

      AWS + * API Reference

      + */ + virtual Model::DisassociateProfileOutcome DisassociateProfile(const Model::DisassociateProfileRequest& request) const; + + /** + * A Callable wrapper for DisassociateProfile that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::DisassociateProfileOutcomeCallable DisassociateProfileCallable(const DisassociateProfileRequestT& request) const + { + return SubmitCallable(&Route53ProfilesClient::DisassociateProfile, request); + } + + /** + * An Async wrapper for DisassociateProfile that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void DisassociateProfileAsync(const DisassociateProfileRequestT& request, const DisassociateProfileResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&Route53ProfilesClient::DisassociateProfile, request, handler, context); + } + + /** + *

      Dissoaciated a specified resource, from the Route 53 Profile.

      See + * Also:

      AWS + * API Reference

      + */ + virtual Model::DisassociateResourceFromProfileOutcome DisassociateResourceFromProfile(const Model::DisassociateResourceFromProfileRequest& request) const; + + /** + * A Callable wrapper for DisassociateResourceFromProfile that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::DisassociateResourceFromProfileOutcomeCallable DisassociateResourceFromProfileCallable(const DisassociateResourceFromProfileRequestT& request) const + { + return SubmitCallable(&Route53ProfilesClient::DisassociateResourceFromProfile, request); + } + + /** + * An Async wrapper for DisassociateResourceFromProfile that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void DisassociateResourceFromProfileAsync(const DisassociateResourceFromProfileRequestT& request, const DisassociateResourceFromProfileResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&Route53ProfilesClient::DisassociateResourceFromProfile, request, handler, context); + } + + /** + *

      Returns information about a specified Route 53 Profile, such as whether + * whether the Profile is shared, and the current status of the Profile. + *

      See Also:

      AWS + * API Reference

      + */ + virtual Model::GetProfileOutcome GetProfile(const Model::GetProfileRequest& request) const; + + /** + * A Callable wrapper for GetProfile that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::GetProfileOutcomeCallable GetProfileCallable(const GetProfileRequestT& request) const + { + return SubmitCallable(&Route53ProfilesClient::GetProfile, request); + } + + /** + * An Async wrapper for GetProfile that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void GetProfileAsync(const GetProfileRequestT& request, const GetProfileResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&Route53ProfilesClient::GetProfile, request, handler, context); + } + + /** + *

      Retrieves a Route 53 Profile association for a VPC. A VPC can have only one + * Profile association, but a Profile can be associated with up to 5000 VPCs. + *

      See Also:

      AWS + * API Reference

      + */ + virtual Model::GetProfileAssociationOutcome GetProfileAssociation(const Model::GetProfileAssociationRequest& request) const; + + /** + * A Callable wrapper for GetProfileAssociation that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::GetProfileAssociationOutcomeCallable GetProfileAssociationCallable(const GetProfileAssociationRequestT& request) const + { + return SubmitCallable(&Route53ProfilesClient::GetProfileAssociation, request); + } + + /** + * An Async wrapper for GetProfileAssociation that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void GetProfileAssociationAsync(const GetProfileAssociationRequestT& request, const GetProfileAssociationResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&Route53ProfilesClient::GetProfileAssociation, request, handler, context); + } + + /** + *

      Returns information about a specified Route 53 Profile resource association. + *

      See Also:

      AWS + * API Reference

      + */ + virtual Model::GetProfileResourceAssociationOutcome GetProfileResourceAssociation(const Model::GetProfileResourceAssociationRequest& request) const; + + /** + * A Callable wrapper for GetProfileResourceAssociation that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::GetProfileResourceAssociationOutcomeCallable GetProfileResourceAssociationCallable(const GetProfileResourceAssociationRequestT& request) const + { + return SubmitCallable(&Route53ProfilesClient::GetProfileResourceAssociation, request); + } + + /** + * An Async wrapper for GetProfileResourceAssociation that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void GetProfileResourceAssociationAsync(const GetProfileResourceAssociationRequestT& request, const GetProfileResourceAssociationResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&Route53ProfilesClient::GetProfileResourceAssociation, request, handler, context); + } + + /** + *

      Lists all the VPCs that the specified Route 53 Profile is associated with. + *

      See Also:

      AWS + * API Reference

      + */ + virtual Model::ListProfileAssociationsOutcome ListProfileAssociations(const Model::ListProfileAssociationsRequest& request) const; + + /** + * A Callable wrapper for ListProfileAssociations that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::ListProfileAssociationsOutcomeCallable ListProfileAssociationsCallable(const ListProfileAssociationsRequestT& request) const + { + return SubmitCallable(&Route53ProfilesClient::ListProfileAssociations, request); + } + + /** + * An Async wrapper for ListProfileAssociations that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void ListProfileAssociationsAsync(const ListProfileAssociationsRequestT& request, const ListProfileAssociationsResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&Route53ProfilesClient::ListProfileAssociations, request, handler, context); + } + + /** + *

      Lists all the resource associations for the specified Route 53 Profile. + *

      See Also:

      AWS + * API Reference

      + */ + virtual Model::ListProfileResourceAssociationsOutcome ListProfileResourceAssociations(const Model::ListProfileResourceAssociationsRequest& request) const; + + /** + * A Callable wrapper for ListProfileResourceAssociations that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::ListProfileResourceAssociationsOutcomeCallable ListProfileResourceAssociationsCallable(const ListProfileResourceAssociationsRequestT& request) const + { + return SubmitCallable(&Route53ProfilesClient::ListProfileResourceAssociations, request); + } + + /** + * An Async wrapper for ListProfileResourceAssociations that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void ListProfileResourceAssociationsAsync(const ListProfileResourceAssociationsRequestT& request, const ListProfileResourceAssociationsResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&Route53ProfilesClient::ListProfileResourceAssociations, request, handler, context); + } + + /** + *

      Lists all the Route 53 Profiles associated with your Amazon Web Services + * account.

      See Also:

      AWS + * API Reference

      + */ + virtual Model::ListProfilesOutcome ListProfiles(const Model::ListProfilesRequest& request) const; + + /** + * A Callable wrapper for ListProfiles that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::ListProfilesOutcomeCallable ListProfilesCallable(const ListProfilesRequestT& request) const + { + return SubmitCallable(&Route53ProfilesClient::ListProfiles, request); + } + + /** + * An Async wrapper for ListProfiles that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void ListProfilesAsync(const ListProfilesRequestT& request, const ListProfilesResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&Route53ProfilesClient::ListProfiles, request, handler, context); + } + + /** + *

      Lists the tags that you associated with the specified resource. + *

      See Also:

      AWS + * API Reference

      + */ + virtual Model::ListTagsForResourceOutcome ListTagsForResource(const Model::ListTagsForResourceRequest& request) const; + + /** + * A Callable wrapper for ListTagsForResource that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::ListTagsForResourceOutcomeCallable ListTagsForResourceCallable(const ListTagsForResourceRequestT& request) const + { + return SubmitCallable(&Route53ProfilesClient::ListTagsForResource, request); + } + + /** + * An Async wrapper for ListTagsForResource that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void ListTagsForResourceAsync(const ListTagsForResourceRequestT& request, const ListTagsForResourceResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&Route53ProfilesClient::ListTagsForResource, request, handler, context); + } + + /** + *

      Adds one or more tags to a specified resource.

      See Also:

      + * AWS + * API Reference

      + */ + virtual Model::TagResourceOutcome TagResource(const Model::TagResourceRequest& request) const; + + /** + * A Callable wrapper for TagResource that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::TagResourceOutcomeCallable TagResourceCallable(const TagResourceRequestT& request) const + { + return SubmitCallable(&Route53ProfilesClient::TagResource, request); + } + + /** + * An Async wrapper for TagResource that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void TagResourceAsync(const TagResourceRequestT& request, const TagResourceResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&Route53ProfilesClient::TagResource, request, handler, context); + } + + /** + *

      Removes one or more tags from a specified resource.

      See + * Also:

      AWS + * API Reference

      + */ + virtual Model::UntagResourceOutcome UntagResource(const Model::UntagResourceRequest& request) const; + + /** + * A Callable wrapper for UntagResource that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::UntagResourceOutcomeCallable UntagResourceCallable(const UntagResourceRequestT& request) const + { + return SubmitCallable(&Route53ProfilesClient::UntagResource, request); + } + + /** + * An Async wrapper for UntagResource that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void UntagResourceAsync(const UntagResourceRequestT& request, const UntagResourceResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&Route53ProfilesClient::UntagResource, request, handler, context); + } + + /** + *

      Updates the specified Route 53 Profile resourse association.

      See + * Also:

      AWS + * API Reference

      + */ + virtual Model::UpdateProfileResourceAssociationOutcome UpdateProfileResourceAssociation(const Model::UpdateProfileResourceAssociationRequest& request) const; + + /** + * A Callable wrapper for UpdateProfileResourceAssociation that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::UpdateProfileResourceAssociationOutcomeCallable UpdateProfileResourceAssociationCallable(const UpdateProfileResourceAssociationRequestT& request) const + { + return SubmitCallable(&Route53ProfilesClient::UpdateProfileResourceAssociation, request); + } + + /** + * An Async wrapper for UpdateProfileResourceAssociation that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void UpdateProfileResourceAssociationAsync(const UpdateProfileResourceAssociationRequestT& request, const UpdateProfileResourceAssociationResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&Route53ProfilesClient::UpdateProfileResourceAssociation, request, handler, context); + } + + + void OverrideEndpoint(const Aws::String& endpoint); + std::shared_ptr& accessEndpointProvider(); + private: + friend class Aws::Client::ClientWithAsyncTemplateMethods; + void init(const Route53ProfilesClientConfiguration& clientConfiguration); + + Route53ProfilesClientConfiguration m_clientConfiguration; + std::shared_ptr m_executor; + std::shared_ptr m_endpointProvider; + }; + +} // namespace Route53Profiles +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/Route53ProfilesEndpointProvider.h b/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/Route53ProfilesEndpointProvider.h new file mode 100644 index 00000000000..26f3f598f65 --- /dev/null +++ b/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/Route53ProfilesEndpointProvider.h @@ -0,0 +1,61 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include + +#include + + +namespace Aws +{ +namespace Route53Profiles +{ +namespace Endpoint +{ +using EndpointParameters = Aws::Endpoint::EndpointParameters; +using Aws::Endpoint::EndpointProviderBase; +using Aws::Endpoint::DefaultEndpointProvider; + +using Route53ProfilesClientContextParameters = Aws::Endpoint::ClientContextParameters; + +using Route53ProfilesClientConfiguration = Aws::Client::GenericClientConfiguration; +using Route53ProfilesBuiltInParameters = Aws::Endpoint::BuiltInParameters; + +/** + * The type for the Route53Profiles Client Endpoint Provider. + * Inherit from this Base class / "Interface" should you want to provide a custom endpoint provider. + * The SDK must use service-specific type for each service per specification. + */ +using Route53ProfilesEndpointProviderBase = + EndpointProviderBase; + +using Route53ProfilesDefaultEpProviderBase = + DefaultEndpointProvider; + +/** + * Default endpoint provider used for this service + */ +class AWS_ROUTE53PROFILES_API Route53ProfilesEndpointProvider : public Route53ProfilesDefaultEpProviderBase +{ +public: + using Route53ProfilesResolveEndpointOutcome = Aws::Endpoint::ResolveEndpointOutcome; + + Route53ProfilesEndpointProvider() + : Route53ProfilesDefaultEpProviderBase(Aws::Route53Profiles::Route53ProfilesEndpointRules::GetRulesBlob(), Aws::Route53Profiles::Route53ProfilesEndpointRules::RulesBlobSize) + {} + + ~Route53ProfilesEndpointProvider() + { + } +}; +} // namespace Endpoint +} // namespace Route53Profiles +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/Route53ProfilesEndpointRules.h b/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/Route53ProfilesEndpointRules.h new file mode 100644 index 00000000000..bc7918f87e0 --- /dev/null +++ b/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/Route53ProfilesEndpointRules.h @@ -0,0 +1,23 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace Route53Profiles +{ +class Route53ProfilesEndpointRules +{ +public: + static const size_t RulesBlobStrLen; + static const size_t RulesBlobSize; + + static const char* GetRulesBlob(); +}; +} // namespace Route53Profiles +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/Route53ProfilesErrorMarshaller.h b/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/Route53ProfilesErrorMarshaller.h new file mode 100644 index 00000000000..e3f65a286dd --- /dev/null +++ b/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/Route53ProfilesErrorMarshaller.h @@ -0,0 +1,23 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once + +#include +#include + +namespace Aws +{ +namespace Client +{ + +class AWS_ROUTE53PROFILES_API Route53ProfilesErrorMarshaller : public Aws::Client::JsonErrorMarshaller +{ +public: + Aws::Client::AWSError FindErrorByName(const char* exceptionName) const override; +}; + +} // namespace Client +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/Route53ProfilesErrors.h b/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/Route53ProfilesErrors.h new file mode 100644 index 00000000000..fb303537f4b --- /dev/null +++ b/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/Route53ProfilesErrors.h @@ -0,0 +1,77 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once + +#include +#include +#include + +namespace Aws +{ +namespace Route53Profiles +{ +enum class Route53ProfilesErrors +{ + //From Core// + ////////////////////////////////////////////////////////////////////////////////////////// + INCOMPLETE_SIGNATURE = 0, + INTERNAL_FAILURE = 1, + INVALID_ACTION = 2, + INVALID_CLIENT_TOKEN_ID = 3, + INVALID_PARAMETER_COMBINATION = 4, + INVALID_QUERY_PARAMETER = 5, + INVALID_PARAMETER_VALUE = 6, + MISSING_ACTION = 7, // SDK should never allow + MISSING_AUTHENTICATION_TOKEN = 8, // SDK should never allow + MISSING_PARAMETER = 9, // SDK should never allow + OPT_IN_REQUIRED = 10, + REQUEST_EXPIRED = 11, + SERVICE_UNAVAILABLE = 12, + THROTTLING = 13, + VALIDATION = 14, + ACCESS_DENIED = 15, + RESOURCE_NOT_FOUND = 16, + UNRECOGNIZED_CLIENT = 17, + MALFORMED_QUERY_STRING = 18, + SLOW_DOWN = 19, + REQUEST_TIME_TOO_SKEWED = 20, + INVALID_SIGNATURE = 21, + SIGNATURE_DOES_NOT_MATCH = 22, + INVALID_ACCESS_KEY_ID = 23, + REQUEST_TIMEOUT = 24, + NETWORK_CONNECTION = 99, + + UNKNOWN = 100, + /////////////////////////////////////////////////////////////////////////////////////////// + + CONFLICT= static_cast(Aws::Client::CoreErrors::SERVICE_EXTENSION_START_RANGE) + 1, + INTERNAL_SERVICE_ERROR, + INVALID_NEXT_TOKEN, + INVALID_PARAMETER, + LIMIT_EXCEEDED, + RESOURCE_EXISTS +}; + +class AWS_ROUTE53PROFILES_API Route53ProfilesError : public Aws::Client::AWSError +{ +public: + Route53ProfilesError() {} + Route53ProfilesError(const Aws::Client::AWSError& rhs) : Aws::Client::AWSError(rhs) {} + Route53ProfilesError(Aws::Client::AWSError&& rhs) : Aws::Client::AWSError(rhs) {} + Route53ProfilesError(const Aws::Client::AWSError& rhs) : Aws::Client::AWSError(rhs) {} + Route53ProfilesError(Aws::Client::AWSError&& rhs) : Aws::Client::AWSError(rhs) {} + + template + T GetModeledError(); +}; + +namespace Route53ProfilesErrorMapper +{ + AWS_ROUTE53PROFILES_API Aws::Client::AWSError GetErrorForName(const char* errorName); +} + +} // namespace Route53Profiles +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/Route53ProfilesRequest.h b/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/Route53ProfilesRequest.h new file mode 100644 index 00000000000..78fc2b894ab --- /dev/null +++ b/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/Route53ProfilesRequest.h @@ -0,0 +1,46 @@ +/** + * 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 Route53Profiles +{ + class AWS_ROUTE53PROFILES_API Route53ProfilesRequest : public Aws::AmazonSerializableWebServiceRequest + { + public: + using EndpointParameter = Aws::Endpoint::EndpointParameter; + using EndpointParameters = Aws::Endpoint::EndpointParameters; + + virtual ~Route53ProfilesRequest () {} + + void AddParametersToRequest(Aws::Http::HttpRequest& httpRequest) const { AWS_UNREFERENCED_PARAM(httpRequest); } + + inline Aws::Http::HeaderValueCollection GetHeaders() const override + { + auto headers = GetRequestSpecificHeaders(); + + if(headers.size() == 0 || (headers.size() > 0 && headers.count(Aws::Http::CONTENT_TYPE_HEADER) == 0)) + { + headers.emplace(Aws::Http::HeaderValuePair(Aws::Http::CONTENT_TYPE_HEADER, Aws::JSON_CONTENT_TYPE )); + } + headers.emplace(Aws::Http::HeaderValuePair(Aws::Http::API_VERSION_HEADER, "2018-05-10")); + return headers; + } + + protected: + virtual Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const { return Aws::Http::HeaderValueCollection(); } + + }; + + +} // namespace Route53Profiles +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/Route53ProfilesServiceClientModel.h b/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/Route53ProfilesServiceClientModel.h new file mode 100644 index 00000000000..ad772fb851a --- /dev/null +++ b/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/Route53ProfilesServiceClientModel.h @@ -0,0 +1,155 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once + +/* Generic header includes */ +#include +#include +#include +#include +#include +#include +#include +#include +#include +/* End of generic header includes */ + +/* Service model headers required in Route53ProfilesClient header */ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +/* End of service model headers required in Route53ProfilesClient header */ + +namespace Aws +{ + namespace Http + { + class HttpClient; + class HttpClientFactory; + } // namespace Http + + namespace Utils + { + template< typename R, typename E> class Outcome; + + namespace Threading + { + class Executor; + } // namespace Threading + } // namespace Utils + + namespace Auth + { + class AWSCredentials; + class AWSCredentialsProvider; + } // namespace Auth + + namespace Client + { + class RetryStrategy; + } // namespace Client + + namespace Route53Profiles + { + using Route53ProfilesClientConfiguration = Aws::Client::GenericClientConfiguration; + using Route53ProfilesEndpointProviderBase = Aws::Route53Profiles::Endpoint::Route53ProfilesEndpointProviderBase; + using Route53ProfilesEndpointProvider = Aws::Route53Profiles::Endpoint::Route53ProfilesEndpointProvider; + + namespace Model + { + /* Service model forward declarations required in Route53ProfilesClient header */ + class AssociateProfileRequest; + class AssociateResourceToProfileRequest; + class CreateProfileRequest; + class DeleteProfileRequest; + class DisassociateProfileRequest; + class DisassociateResourceFromProfileRequest; + class GetProfileRequest; + class GetProfileAssociationRequest; + class GetProfileResourceAssociationRequest; + class ListProfileAssociationsRequest; + class ListProfileResourceAssociationsRequest; + class ListProfilesRequest; + class ListTagsForResourceRequest; + class TagResourceRequest; + class UntagResourceRequest; + class UpdateProfileResourceAssociationRequest; + /* End of service model forward declarations required in Route53ProfilesClient header */ + + /* Service model Outcome class definitions */ + typedef Aws::Utils::Outcome AssociateProfileOutcome; + typedef Aws::Utils::Outcome AssociateResourceToProfileOutcome; + typedef Aws::Utils::Outcome CreateProfileOutcome; + typedef Aws::Utils::Outcome DeleteProfileOutcome; + typedef Aws::Utils::Outcome DisassociateProfileOutcome; + typedef Aws::Utils::Outcome DisassociateResourceFromProfileOutcome; + typedef Aws::Utils::Outcome GetProfileOutcome; + typedef Aws::Utils::Outcome GetProfileAssociationOutcome; + typedef Aws::Utils::Outcome GetProfileResourceAssociationOutcome; + typedef Aws::Utils::Outcome ListProfileAssociationsOutcome; + typedef Aws::Utils::Outcome ListProfileResourceAssociationsOutcome; + typedef Aws::Utils::Outcome ListProfilesOutcome; + typedef Aws::Utils::Outcome ListTagsForResourceOutcome; + typedef Aws::Utils::Outcome TagResourceOutcome; + typedef Aws::Utils::Outcome UntagResourceOutcome; + typedef Aws::Utils::Outcome UpdateProfileResourceAssociationOutcome; + /* End of service model Outcome class definitions */ + + /* Service model Outcome callable definitions */ + typedef std::future AssociateProfileOutcomeCallable; + typedef std::future AssociateResourceToProfileOutcomeCallable; + typedef std::future CreateProfileOutcomeCallable; + typedef std::future DeleteProfileOutcomeCallable; + typedef std::future DisassociateProfileOutcomeCallable; + typedef std::future DisassociateResourceFromProfileOutcomeCallable; + typedef std::future GetProfileOutcomeCallable; + typedef std::future GetProfileAssociationOutcomeCallable; + typedef std::future GetProfileResourceAssociationOutcomeCallable; + typedef std::future ListProfileAssociationsOutcomeCallable; + typedef std::future ListProfileResourceAssociationsOutcomeCallable; + typedef std::future ListProfilesOutcomeCallable; + typedef std::future ListTagsForResourceOutcomeCallable; + typedef std::future TagResourceOutcomeCallable; + typedef std::future UntagResourceOutcomeCallable; + typedef std::future UpdateProfileResourceAssociationOutcomeCallable; + /* End of service model Outcome callable definitions */ + } // namespace Model + + class Route53ProfilesClient; + + /* Service model async handlers definitions */ + typedef std::function&) > AssociateProfileResponseReceivedHandler; + typedef std::function&) > AssociateResourceToProfileResponseReceivedHandler; + typedef std::function&) > CreateProfileResponseReceivedHandler; + typedef std::function&) > DeleteProfileResponseReceivedHandler; + typedef std::function&) > DisassociateProfileResponseReceivedHandler; + typedef std::function&) > DisassociateResourceFromProfileResponseReceivedHandler; + typedef std::function&) > GetProfileResponseReceivedHandler; + typedef std::function&) > GetProfileAssociationResponseReceivedHandler; + typedef std::function&) > GetProfileResourceAssociationResponseReceivedHandler; + typedef std::function&) > ListProfileAssociationsResponseReceivedHandler; + typedef std::function&) > ListProfileResourceAssociationsResponseReceivedHandler; + typedef std::function&) > ListProfilesResponseReceivedHandler; + typedef std::function&) > ListTagsForResourceResponseReceivedHandler; + typedef std::function&) > TagResourceResponseReceivedHandler; + typedef std::function&) > UntagResourceResponseReceivedHandler; + typedef std::function&) > UpdateProfileResourceAssociationResponseReceivedHandler; + /* End of service model async handlers definitions */ + } // namespace Route53Profiles +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/Route53Profiles_EXPORTS.h b/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/Route53Profiles_EXPORTS.h new file mode 100644 index 00000000000..ef008e75a4e --- /dev/null +++ b/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/Route53Profiles_EXPORTS.h @@ -0,0 +1,32 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once + +#ifdef _MSC_VER + //disable windows complaining about max template size. + #pragma warning (disable : 4503) +#endif // _MSC_VER + +#if defined (USE_WINDOWS_DLL_SEMANTICS) || defined (_WIN32) + #ifdef _MSC_VER + #pragma warning(disable : 4251) + #endif // _MSC_VER + + #ifdef USE_IMPORT_EXPORT + #ifdef AWS_ROUTE53PROFILES_EXPORTS + #define AWS_ROUTE53PROFILES_API __declspec(dllexport) + #else + #define AWS_ROUTE53PROFILES_API __declspec(dllimport) + #endif /* AWS_ROUTE53PROFILES_EXPORTS */ + #define AWS_ROUTE53PROFILES_EXTERN + #else + #define AWS_ROUTE53PROFILES_API + #define AWS_ROUTE53PROFILES_EXTERN extern + #endif // USE_IMPORT_EXPORT +#else // defined (USE_WINDOWS_DLL_SEMANTICS) || defined (WIN32) + #define AWS_ROUTE53PROFILES_API + #define AWS_ROUTE53PROFILES_EXTERN extern +#endif // defined (USE_WINDOWS_DLL_SEMANTICS) || defined (WIN32) diff --git a/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/AssociateProfileRequest.h b/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/AssociateProfileRequest.h new file mode 100644 index 00000000000..922df898313 --- /dev/null +++ b/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/AssociateProfileRequest.h @@ -0,0 +1,225 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Route53Profiles +{ +namespace Model +{ + + /** + */ + class AssociateProfileRequest : public Route53ProfilesRequest + { + public: + AWS_ROUTE53PROFILES_API AssociateProfileRequest(); + + // 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 "AssociateProfile"; } + + AWS_ROUTE53PROFILES_API Aws::String SerializePayload() const override; + + + /** + *

      A name for the association.

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

      A name for the association.

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

      A name for the association.

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

      A name for the association.

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

      A name for the association.

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

      A name for the association.

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

      A name for the association.

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

      A name for the association.

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

      ID of the Profile.

      + */ + inline const Aws::String& GetProfileId() const{ return m_profileId; } + + /** + *

      ID of the Profile.

      + */ + inline bool ProfileIdHasBeenSet() const { return m_profileIdHasBeenSet; } + + /** + *

      ID of the Profile.

      + */ + inline void SetProfileId(const Aws::String& value) { m_profileIdHasBeenSet = true; m_profileId = value; } + + /** + *

      ID of the Profile.

      + */ + inline void SetProfileId(Aws::String&& value) { m_profileIdHasBeenSet = true; m_profileId = std::move(value); } + + /** + *

      ID of the Profile.

      + */ + inline void SetProfileId(const char* value) { m_profileIdHasBeenSet = true; m_profileId.assign(value); } + + /** + *

      ID of the Profile.

      + */ + inline AssociateProfileRequest& WithProfileId(const Aws::String& value) { SetProfileId(value); return *this;} + + /** + *

      ID of the Profile.

      + */ + inline AssociateProfileRequest& WithProfileId(Aws::String&& value) { SetProfileId(std::move(value)); return *this;} + + /** + *

      ID of the Profile.

      + */ + inline AssociateProfileRequest& WithProfileId(const char* value) { SetProfileId(value); return *this;} + + + /** + *

      The ID of the VPC.

      + */ + inline const Aws::String& GetResourceId() const{ return m_resourceId; } + + /** + *

      The ID of the VPC.

      + */ + inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; } + + /** + *

      The ID of the VPC.

      + */ + inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; } + + /** + *

      The ID of the VPC.

      + */ + inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); } + + /** + *

      The ID of the VPC.

      + */ + inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); } + + /** + *

      The ID of the VPC.

      + */ + inline AssociateProfileRequest& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;} + + /** + *

      The ID of the VPC.

      + */ + inline AssociateProfileRequest& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;} + + /** + *

      The ID of the VPC.

      + */ + inline AssociateProfileRequest& WithResourceId(const char* value) { SetResourceId(value); return *this;} + + + /** + *

      A list of the tag keys and values that you want to identify the Profile + * association.

      + */ + inline const Aws::Vector& GetTags() const{ return m_tags; } + + /** + *

      A list of the tag keys and values that you want to identify the Profile + * association.

      + */ + inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } + + /** + *

      A list of the tag keys and values that you want to identify the Profile + * association.

      + */ + inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } + + /** + *

      A list of the tag keys and values that you want to identify the Profile + * association.

      + */ + inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } + + /** + *

      A list of the tag keys and values that you want to identify the Profile + * association.

      + */ + inline AssociateProfileRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} + + /** + *

      A list of the tag keys and values that you want to identify the Profile + * association.

      + */ + inline AssociateProfileRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} + + /** + *

      A list of the tag keys and values that you want to identify the Profile + * association.

      + */ + inline AssociateProfileRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } + + /** + *

      A list of the tag keys and values that you want to identify the Profile + * association.

      + */ + inline AssociateProfileRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } + + private: + + Aws::String m_name; + bool m_nameHasBeenSet = false; + + Aws::String m_profileId; + bool m_profileIdHasBeenSet = false; + + Aws::String m_resourceId; + bool m_resourceIdHasBeenSet = false; + + Aws::Vector m_tags; + bool m_tagsHasBeenSet = false; + }; + +} // namespace Model +} // namespace Route53Profiles +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/AssociateProfileResult.h b/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/AssociateProfileResult.h new file mode 100644 index 00000000000..decafd79ff9 --- /dev/null +++ b/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/AssociateProfileResult.h @@ -0,0 +1,97 @@ +/** + * 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 Route53Profiles +{ +namespace Model +{ + class AssociateProfileResult + { + public: + AWS_ROUTE53PROFILES_API AssociateProfileResult(); + AWS_ROUTE53PROFILES_API AssociateProfileResult(const Aws::AmazonWebServiceResult& result); + AWS_ROUTE53PROFILES_API AssociateProfileResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

      The association that you just created. The association has an ID that you + * can use to identify it in other requests, like update and delete.

      + */ + inline const ProfileAssociation& GetProfileAssociation() const{ return m_profileAssociation; } + + /** + *

      The association that you just created. The association has an ID that you + * can use to identify it in other requests, like update and delete.

      + */ + inline void SetProfileAssociation(const ProfileAssociation& value) { m_profileAssociation = value; } + + /** + *

      The association that you just created. The association has an ID that you + * can use to identify it in other requests, like update and delete.

      + */ + inline void SetProfileAssociation(ProfileAssociation&& value) { m_profileAssociation = std::move(value); } + + /** + *

      The association that you just created. The association has an ID that you + * can use to identify it in other requests, like update and delete.

      + */ + inline AssociateProfileResult& WithProfileAssociation(const ProfileAssociation& value) { SetProfileAssociation(value); return *this;} + + /** + *

      The association that you just created. The association has an ID that you + * can use to identify it in other requests, like update and delete.

      + */ + inline AssociateProfileResult& WithProfileAssociation(ProfileAssociation&& value) { SetProfileAssociation(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 AssociateProfileResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + + + inline AssociateProfileResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + + + inline AssociateProfileResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + + private: + + ProfileAssociation m_profileAssociation; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace Route53Profiles +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/AssociateResourceToProfileRequest.h b/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/AssociateResourceToProfileRequest.h new file mode 100644 index 00000000000..8532da96634 --- /dev/null +++ b/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/AssociateResourceToProfileRequest.h @@ -0,0 +1,223 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Route53Profiles +{ +namespace Model +{ + + /** + */ + class AssociateResourceToProfileRequest : public Route53ProfilesRequest + { + public: + AWS_ROUTE53PROFILES_API AssociateResourceToProfileRequest(); + + // 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 "AssociateResourceToProfile"; } + + AWS_ROUTE53PROFILES_API Aws::String SerializePayload() const override; + + + /** + *

      Name for the resource association.

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

      Name for the resource association.

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

      Name for the resource association.

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

      Name for the resource association.

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

      Name for the resource association.

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

      Name for the resource association.

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

      Name for the resource association.

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

      Name for the resource association.

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

      ID of the Profile.

      + */ + inline const Aws::String& GetProfileId() const{ return m_profileId; } + + /** + *

      ID of the Profile.

      + */ + inline bool ProfileIdHasBeenSet() const { return m_profileIdHasBeenSet; } + + /** + *

      ID of the Profile.

      + */ + inline void SetProfileId(const Aws::String& value) { m_profileIdHasBeenSet = true; m_profileId = value; } + + /** + *

      ID of the Profile.

      + */ + inline void SetProfileId(Aws::String&& value) { m_profileIdHasBeenSet = true; m_profileId = std::move(value); } + + /** + *

      ID of the Profile.

      + */ + inline void SetProfileId(const char* value) { m_profileIdHasBeenSet = true; m_profileId.assign(value); } + + /** + *

      ID of the Profile.

      + */ + inline AssociateResourceToProfileRequest& WithProfileId(const Aws::String& value) { SetProfileId(value); return *this;} + + /** + *

      ID of the Profile.

      + */ + inline AssociateResourceToProfileRequest& WithProfileId(Aws::String&& value) { SetProfileId(std::move(value)); return *this;} + + /** + *

      ID of the Profile.

      + */ + inline AssociateResourceToProfileRequest& WithProfileId(const char* value) { SetProfileId(value); return *this;} + + + /** + *

      Amazon resource number, ARN, of the DNS resource.

      + */ + inline const Aws::String& GetResourceArn() const{ return m_resourceArn; } + + /** + *

      Amazon resource number, ARN, of the DNS resource.

      + */ + inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; } + + /** + *

      Amazon resource number, ARN, of the DNS resource.

      + */ + inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; } + + /** + *

      Amazon resource number, ARN, of the DNS resource.

      + */ + inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); } + + /** + *

      Amazon resource number, ARN, of the DNS resource.

      + */ + inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); } + + /** + *

      Amazon resource number, ARN, of the DNS resource.

      + */ + inline AssociateResourceToProfileRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;} + + /** + *

      Amazon resource number, ARN, of the DNS resource.

      + */ + inline AssociateResourceToProfileRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;} + + /** + *

      Amazon resource number, ARN, of the DNS resource.

      + */ + inline AssociateResourceToProfileRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;} + + + /** + *

      If you are adding a DNS Firewall rule group, include also a priority in this + * format:

      Key=FirewallRuleGroupPriority,Value=100

      + */ + inline const Aws::String& GetResourceProperties() const{ return m_resourceProperties; } + + /** + *

      If you are adding a DNS Firewall rule group, include also a priority in this + * format:

      Key=FirewallRuleGroupPriority,Value=100

      + */ + inline bool ResourcePropertiesHasBeenSet() const { return m_resourcePropertiesHasBeenSet; } + + /** + *

      If you are adding a DNS Firewall rule group, include also a priority in this + * format:

      Key=FirewallRuleGroupPriority,Value=100

      + */ + inline void SetResourceProperties(const Aws::String& value) { m_resourcePropertiesHasBeenSet = true; m_resourceProperties = value; } + + /** + *

      If you are adding a DNS Firewall rule group, include also a priority in this + * format:

      Key=FirewallRuleGroupPriority,Value=100

      + */ + inline void SetResourceProperties(Aws::String&& value) { m_resourcePropertiesHasBeenSet = true; m_resourceProperties = std::move(value); } + + /** + *

      If you are adding a DNS Firewall rule group, include also a priority in this + * format:

      Key=FirewallRuleGroupPriority,Value=100

      + */ + inline void SetResourceProperties(const char* value) { m_resourcePropertiesHasBeenSet = true; m_resourceProperties.assign(value); } + + /** + *

      If you are adding a DNS Firewall rule group, include also a priority in this + * format:

      Key=FirewallRuleGroupPriority,Value=100

      + */ + inline AssociateResourceToProfileRequest& WithResourceProperties(const Aws::String& value) { SetResourceProperties(value); return *this;} + + /** + *

      If you are adding a DNS Firewall rule group, include also a priority in this + * format:

      Key=FirewallRuleGroupPriority,Value=100

      + */ + inline AssociateResourceToProfileRequest& WithResourceProperties(Aws::String&& value) { SetResourceProperties(std::move(value)); return *this;} + + /** + *

      If you are adding a DNS Firewall rule group, include also a priority in this + * format:

      Key=FirewallRuleGroupPriority,Value=100

      + */ + inline AssociateResourceToProfileRequest& WithResourceProperties(const char* value) { SetResourceProperties(value); return *this;} + + private: + + Aws::String m_name; + bool m_nameHasBeenSet = false; + + Aws::String m_profileId; + bool m_profileIdHasBeenSet = false; + + Aws::String m_resourceArn; + bool m_resourceArnHasBeenSet = false; + + Aws::String m_resourceProperties; + bool m_resourcePropertiesHasBeenSet = false; + }; + +} // namespace Model +} // namespace Route53Profiles +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/AssociateResourceToProfileResult.h b/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/AssociateResourceToProfileResult.h new file mode 100644 index 00000000000..11d7f47bea5 --- /dev/null +++ b/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/AssociateResourceToProfileResult.h @@ -0,0 +1,97 @@ +/** + * 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 Route53Profiles +{ +namespace Model +{ + class AssociateResourceToProfileResult + { + public: + AWS_ROUTE53PROFILES_API AssociateResourceToProfileResult(); + AWS_ROUTE53PROFILES_API AssociateResourceToProfileResult(const Aws::AmazonWebServiceResult& result); + AWS_ROUTE53PROFILES_API AssociateResourceToProfileResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

      Infromation about the AssociateResourceToProfile, including a + * status message.

      + */ + inline const ProfileResourceAssociation& GetProfileResourceAssociation() const{ return m_profileResourceAssociation; } + + /** + *

      Infromation about the AssociateResourceToProfile, including a + * status message.

      + */ + inline void SetProfileResourceAssociation(const ProfileResourceAssociation& value) { m_profileResourceAssociation = value; } + + /** + *

      Infromation about the AssociateResourceToProfile, including a + * status message.

      + */ + inline void SetProfileResourceAssociation(ProfileResourceAssociation&& value) { m_profileResourceAssociation = std::move(value); } + + /** + *

      Infromation about the AssociateResourceToProfile, including a + * status message.

      + */ + inline AssociateResourceToProfileResult& WithProfileResourceAssociation(const ProfileResourceAssociation& value) { SetProfileResourceAssociation(value); return *this;} + + /** + *

      Infromation about the AssociateResourceToProfile, including a + * status message.

      + */ + inline AssociateResourceToProfileResult& WithProfileResourceAssociation(ProfileResourceAssociation&& value) { SetProfileResourceAssociation(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 AssociateResourceToProfileResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + + + inline AssociateResourceToProfileResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + + + inline AssociateResourceToProfileResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + + private: + + ProfileResourceAssociation m_profileResourceAssociation; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace Route53Profiles +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/CreateProfileRequest.h b/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/CreateProfileRequest.h new file mode 100644 index 00000000000..fd59f7eaa3e --- /dev/null +++ b/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/CreateProfileRequest.h @@ -0,0 +1,222 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Route53Profiles +{ +namespace Model +{ + + /** + */ + class CreateProfileRequest : public Route53ProfilesRequest + { + public: + AWS_ROUTE53PROFILES_API CreateProfileRequest(); + + // 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 "CreateProfile"; } + + AWS_ROUTE53PROFILES_API Aws::String SerializePayload() const override; + + + /** + *

      ClientToken is an idempotency token that ensures a call to + * CreateProfile completes only once. You choose the value to pass. + * For example, an issue might prevent you from getting a response from + * CreateProfile. In this case, safely retry your call to + * CreateProfile by using the same CreateProfile + * parameter value.

      + */ + inline const Aws::String& GetClientToken() const{ return m_clientToken; } + + /** + *

      ClientToken is an idempotency token that ensures a call to + * CreateProfile completes only once. You choose the value to pass. + * For example, an issue might prevent you from getting a response from + * CreateProfile. In this case, safely retry your call to + * CreateProfile by using the same CreateProfile + * parameter value.

      + */ + inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } + + /** + *

      ClientToken is an idempotency token that ensures a call to + * CreateProfile completes only once. You choose the value to pass. + * For example, an issue might prevent you from getting a response from + * CreateProfile. In this case, safely retry your call to + * CreateProfile by using the same CreateProfile + * parameter value.

      + */ + inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } + + /** + *

      ClientToken is an idempotency token that ensures a call to + * CreateProfile completes only once. You choose the value to pass. + * For example, an issue might prevent you from getting a response from + * CreateProfile. In this case, safely retry your call to + * CreateProfile by using the same CreateProfile + * parameter value.

      + */ + inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } + + /** + *

      ClientToken is an idempotency token that ensures a call to + * CreateProfile completes only once. You choose the value to pass. + * For example, an issue might prevent you from getting a response from + * CreateProfile. In this case, safely retry your call to + * CreateProfile by using the same CreateProfile + * parameter value.

      + */ + inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } + + /** + *

      ClientToken is an idempotency token that ensures a call to + * CreateProfile completes only once. You choose the value to pass. + * For example, an issue might prevent you from getting a response from + * CreateProfile. In this case, safely retry your call to + * CreateProfile by using the same CreateProfile + * parameter value.

      + */ + inline CreateProfileRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} + + /** + *

      ClientToken is an idempotency token that ensures a call to + * CreateProfile completes only once. You choose the value to pass. + * For example, an issue might prevent you from getting a response from + * CreateProfile. In this case, safely retry your call to + * CreateProfile by using the same CreateProfile + * parameter value.

      + */ + inline CreateProfileRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} + + /** + *

      ClientToken is an idempotency token that ensures a call to + * CreateProfile completes only once. You choose the value to pass. + * For example, an issue might prevent you from getting a response from + * CreateProfile. In this case, safely retry your call to + * CreateProfile by using the same CreateProfile + * parameter value.

      + */ + inline CreateProfileRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} + + + /** + *

      A name for the Profile.

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

      A name for the Profile.

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

      A name for the Profile.

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

      A name for the Profile.

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

      A name for the Profile.

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

      A name for the Profile.

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

      A name for the Profile.

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

      A name for the Profile.

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

      A list of the tag keys and values that you want to associate with the Route + * 53 Profile.

      + */ + inline const Aws::Vector& GetTags() const{ return m_tags; } + + /** + *

      A list of the tag keys and values that you want to associate with the Route + * 53 Profile.

      + */ + inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } + + /** + *

      A list of the tag keys and values that you want to associate with the Route + * 53 Profile.

      + */ + inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } + + /** + *

      A list of the tag keys and values that you want to associate with the Route + * 53 Profile.

      + */ + inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } + + /** + *

      A list of the tag keys and values that you want to associate with the Route + * 53 Profile.

      + */ + inline CreateProfileRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} + + /** + *

      A list of the tag keys and values that you want to associate with the Route + * 53 Profile.

      + */ + inline CreateProfileRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} + + /** + *

      A list of the tag keys and values that you want to associate with the Route + * 53 Profile.

      + */ + inline CreateProfileRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } + + /** + *

      A list of the tag keys and values that you want to associate with the Route + * 53 Profile.

      + */ + inline CreateProfileRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } + + private: + + Aws::String m_clientToken; + bool m_clientTokenHasBeenSet = false; + + Aws::String m_name; + bool m_nameHasBeenSet = false; + + Aws::Vector m_tags; + bool m_tagsHasBeenSet = false; + }; + +} // namespace Model +} // namespace Route53Profiles +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/CreateProfileResult.h b/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/CreateProfileResult.h new file mode 100644 index 00000000000..0ab7257fca8 --- /dev/null +++ b/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/CreateProfileResult.h @@ -0,0 +1,92 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace Route53Profiles +{ +namespace Model +{ + class CreateProfileResult + { + public: + AWS_ROUTE53PROFILES_API CreateProfileResult(); + AWS_ROUTE53PROFILES_API CreateProfileResult(const Aws::AmazonWebServiceResult& result); + AWS_ROUTE53PROFILES_API CreateProfileResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

      The Profile that you just created.

      + */ + inline const Profile& GetProfile() const{ return m_profile; } + + /** + *

      The Profile that you just created.

      + */ + inline void SetProfile(const Profile& value) { m_profile = value; } + + /** + *

      The Profile that you just created.

      + */ + inline void SetProfile(Profile&& value) { m_profile = std::move(value); } + + /** + *

      The Profile that you just created.

      + */ + inline CreateProfileResult& WithProfile(const Profile& value) { SetProfile(value); return *this;} + + /** + *

      The Profile that you just created.

      + */ + inline CreateProfileResult& WithProfile(Profile&& value) { SetProfile(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 CreateProfileResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + + + inline CreateProfileResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + + + inline CreateProfileResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + + private: + + Profile m_profile; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace Route53Profiles +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/DeleteProfileRequest.h b/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/DeleteProfileRequest.h new file mode 100644 index 00000000000..1b385b5f4e8 --- /dev/null +++ b/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/DeleteProfileRequest.h @@ -0,0 +1,83 @@ +/** + * 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 Route53Profiles +{ +namespace Model +{ + + /** + */ + class DeleteProfileRequest : public Route53ProfilesRequest + { + public: + AWS_ROUTE53PROFILES_API DeleteProfileRequest(); + + // 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 "DeleteProfile"; } + + AWS_ROUTE53PROFILES_API Aws::String SerializePayload() const override; + + + /** + *

      The ID of the Profile that you want to delete.

      + */ + inline const Aws::String& GetProfileId() const{ return m_profileId; } + + /** + *

      The ID of the Profile that you want to delete.

      + */ + inline bool ProfileIdHasBeenSet() const { return m_profileIdHasBeenSet; } + + /** + *

      The ID of the Profile that you want to delete.

      + */ + inline void SetProfileId(const Aws::String& value) { m_profileIdHasBeenSet = true; m_profileId = value; } + + /** + *

      The ID of the Profile that you want to delete.

      + */ + inline void SetProfileId(Aws::String&& value) { m_profileIdHasBeenSet = true; m_profileId = std::move(value); } + + /** + *

      The ID of the Profile that you want to delete.

      + */ + inline void SetProfileId(const char* value) { m_profileIdHasBeenSet = true; m_profileId.assign(value); } + + /** + *

      The ID of the Profile that you want to delete.

      + */ + inline DeleteProfileRequest& WithProfileId(const Aws::String& value) { SetProfileId(value); return *this;} + + /** + *

      The ID of the Profile that you want to delete.

      + */ + inline DeleteProfileRequest& WithProfileId(Aws::String&& value) { SetProfileId(std::move(value)); return *this;} + + /** + *

      The ID of the Profile that you want to delete.

      + */ + inline DeleteProfileRequest& WithProfileId(const char* value) { SetProfileId(value); return *this;} + + private: + + Aws::String m_profileId; + bool m_profileIdHasBeenSet = false; + }; + +} // namespace Model +} // namespace Route53Profiles +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/DeleteProfileResult.h b/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/DeleteProfileResult.h new file mode 100644 index 00000000000..e45a604dad9 --- /dev/null +++ b/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/DeleteProfileResult.h @@ -0,0 +1,97 @@ +/** + * 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 Route53Profiles +{ +namespace Model +{ + class DeleteProfileResult + { + public: + AWS_ROUTE53PROFILES_API DeleteProfileResult(); + AWS_ROUTE53PROFILES_API DeleteProfileResult(const Aws::AmazonWebServiceResult& result); + AWS_ROUTE53PROFILES_API DeleteProfileResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

      Information about the DeleteProfile request, including the + * status of the request.

      + */ + inline const Profile& GetProfile() const{ return m_profile; } + + /** + *

      Information about the DeleteProfile request, including the + * status of the request.

      + */ + inline void SetProfile(const Profile& value) { m_profile = value; } + + /** + *

      Information about the DeleteProfile request, including the + * status of the request.

      + */ + inline void SetProfile(Profile&& value) { m_profile = std::move(value); } + + /** + *

      Information about the DeleteProfile request, including the + * status of the request.

      + */ + inline DeleteProfileResult& WithProfile(const Profile& value) { SetProfile(value); return *this;} + + /** + *

      Information about the DeleteProfile request, including the + * status of the request.

      + */ + inline DeleteProfileResult& WithProfile(Profile&& value) { SetProfile(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 DeleteProfileResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + + + inline DeleteProfileResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + + + inline DeleteProfileResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + + private: + + Profile m_profile; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace Route53Profiles +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/DisassociateProfileRequest.h b/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/DisassociateProfileRequest.h new file mode 100644 index 00000000000..345dd213b0c --- /dev/null +++ b/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/DisassociateProfileRequest.h @@ -0,0 +1,127 @@ +/** + * 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 Route53Profiles +{ +namespace Model +{ + + /** + */ + class DisassociateProfileRequest : public Route53ProfilesRequest + { + public: + AWS_ROUTE53PROFILES_API DisassociateProfileRequest(); + + // 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 "DisassociateProfile"; } + + AWS_ROUTE53PROFILES_API Aws::String SerializePayload() const override; + + + /** + *

      ID of the Profile.

      + */ + inline const Aws::String& GetProfileId() const{ return m_profileId; } + + /** + *

      ID of the Profile.

      + */ + inline bool ProfileIdHasBeenSet() const { return m_profileIdHasBeenSet; } + + /** + *

      ID of the Profile.

      + */ + inline void SetProfileId(const Aws::String& value) { m_profileIdHasBeenSet = true; m_profileId = value; } + + /** + *

      ID of the Profile.

      + */ + inline void SetProfileId(Aws::String&& value) { m_profileIdHasBeenSet = true; m_profileId = std::move(value); } + + /** + *

      ID of the Profile.

      + */ + inline void SetProfileId(const char* value) { m_profileIdHasBeenSet = true; m_profileId.assign(value); } + + /** + *

      ID of the Profile.

      + */ + inline DisassociateProfileRequest& WithProfileId(const Aws::String& value) { SetProfileId(value); return *this;} + + /** + *

      ID of the Profile.

      + */ + inline DisassociateProfileRequest& WithProfileId(Aws::String&& value) { SetProfileId(std::move(value)); return *this;} + + /** + *

      ID of the Profile.

      + */ + inline DisassociateProfileRequest& WithProfileId(const char* value) { SetProfileId(value); return *this;} + + + /** + *

      The ID of the VPC.

      + */ + inline const Aws::String& GetResourceId() const{ return m_resourceId; } + + /** + *

      The ID of the VPC.

      + */ + inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; } + + /** + *

      The ID of the VPC.

      + */ + inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; } + + /** + *

      The ID of the VPC.

      + */ + inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); } + + /** + *

      The ID of the VPC.

      + */ + inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); } + + /** + *

      The ID of the VPC.

      + */ + inline DisassociateProfileRequest& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;} + + /** + *

      The ID of the VPC.

      + */ + inline DisassociateProfileRequest& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;} + + /** + *

      The ID of the VPC.

      + */ + inline DisassociateProfileRequest& WithResourceId(const char* value) { SetResourceId(value); return *this;} + + private: + + Aws::String m_profileId; + bool m_profileIdHasBeenSet = false; + + Aws::String m_resourceId; + bool m_resourceIdHasBeenSet = false; + }; + +} // namespace Model +} // namespace Route53Profiles +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/DisassociateProfileResult.h b/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/DisassociateProfileResult.h new file mode 100644 index 00000000000..d0d6d626b71 --- /dev/null +++ b/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/DisassociateProfileResult.h @@ -0,0 +1,92 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace Route53Profiles +{ +namespace Model +{ + class DisassociateProfileResult + { + public: + AWS_ROUTE53PROFILES_API DisassociateProfileResult(); + AWS_ROUTE53PROFILES_API DisassociateProfileResult(const Aws::AmazonWebServiceResult& result); + AWS_ROUTE53PROFILES_API DisassociateProfileResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

      Information about the DisassociateProfile request.

      + */ + inline const ProfileAssociation& GetProfileAssociation() const{ return m_profileAssociation; } + + /** + *

      Information about the DisassociateProfile request.

      + */ + inline void SetProfileAssociation(const ProfileAssociation& value) { m_profileAssociation = value; } + + /** + *

      Information about the DisassociateProfile request.

      + */ + inline void SetProfileAssociation(ProfileAssociation&& value) { m_profileAssociation = std::move(value); } + + /** + *

      Information about the DisassociateProfile request.

      + */ + inline DisassociateProfileResult& WithProfileAssociation(const ProfileAssociation& value) { SetProfileAssociation(value); return *this;} + + /** + *

      Information about the DisassociateProfile request.

      + */ + inline DisassociateProfileResult& WithProfileAssociation(ProfileAssociation&& value) { SetProfileAssociation(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 DisassociateProfileResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + + + inline DisassociateProfileResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + + + inline DisassociateProfileResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + + private: + + ProfileAssociation m_profileAssociation; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace Route53Profiles +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/DisassociateResourceFromProfileRequest.h b/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/DisassociateResourceFromProfileRequest.h new file mode 100644 index 00000000000..6abdc6c3c91 --- /dev/null +++ b/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/DisassociateResourceFromProfileRequest.h @@ -0,0 +1,127 @@ +/** + * 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 Route53Profiles +{ +namespace Model +{ + + /** + */ + class DisassociateResourceFromProfileRequest : public Route53ProfilesRequest + { + public: + AWS_ROUTE53PROFILES_API DisassociateResourceFromProfileRequest(); + + // 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 "DisassociateResourceFromProfile"; } + + AWS_ROUTE53PROFILES_API Aws::String SerializePayload() const override; + + + /** + *

      The ID of the Profile.

      + */ + inline const Aws::String& GetProfileId() const{ return m_profileId; } + + /** + *

      The ID of the Profile.

      + */ + inline bool ProfileIdHasBeenSet() const { return m_profileIdHasBeenSet; } + + /** + *

      The ID of the Profile.

      + */ + inline void SetProfileId(const Aws::String& value) { m_profileIdHasBeenSet = true; m_profileId = value; } + + /** + *

      The ID of the Profile.

      + */ + inline void SetProfileId(Aws::String&& value) { m_profileIdHasBeenSet = true; m_profileId = std::move(value); } + + /** + *

      The ID of the Profile.

      + */ + inline void SetProfileId(const char* value) { m_profileIdHasBeenSet = true; m_profileId.assign(value); } + + /** + *

      The ID of the Profile.

      + */ + inline DisassociateResourceFromProfileRequest& WithProfileId(const Aws::String& value) { SetProfileId(value); return *this;} + + /** + *

      The ID of the Profile.

      + */ + inline DisassociateResourceFromProfileRequest& WithProfileId(Aws::String&& value) { SetProfileId(std::move(value)); return *this;} + + /** + *

      The ID of the Profile.

      + */ + inline DisassociateResourceFromProfileRequest& WithProfileId(const char* value) { SetProfileId(value); return *this;} + + + /** + *

      The Amazon Resource Name (ARN) of the resource.

      + */ + inline const Aws::String& GetResourceArn() const{ return m_resourceArn; } + + /** + *

      The Amazon Resource Name (ARN) of the resource.

      + */ + inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; } + + /** + *

      The Amazon Resource Name (ARN) of the resource.

      + */ + inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; } + + /** + *

      The Amazon Resource Name (ARN) of the resource.

      + */ + inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); } + + /** + *

      The Amazon Resource Name (ARN) of the resource.

      + */ + inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); } + + /** + *

      The Amazon Resource Name (ARN) of the resource.

      + */ + inline DisassociateResourceFromProfileRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;} + + /** + *

      The Amazon Resource Name (ARN) of the resource.

      + */ + inline DisassociateResourceFromProfileRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;} + + /** + *

      The Amazon Resource Name (ARN) of the resource.

      + */ + inline DisassociateResourceFromProfileRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;} + + private: + + Aws::String m_profileId; + bool m_profileIdHasBeenSet = false; + + Aws::String m_resourceArn; + bool m_resourceArnHasBeenSet = false; + }; + +} // namespace Model +} // namespace Route53Profiles +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/DisassociateResourceFromProfileResult.h b/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/DisassociateResourceFromProfileResult.h new file mode 100644 index 00000000000..181ab4d2c37 --- /dev/null +++ b/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/DisassociateResourceFromProfileResult.h @@ -0,0 +1,97 @@ +/** + * 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 Route53Profiles +{ +namespace Model +{ + class DisassociateResourceFromProfileResult + { + public: + AWS_ROUTE53PROFILES_API DisassociateResourceFromProfileResult(); + AWS_ROUTE53PROFILES_API DisassociateResourceFromProfileResult(const Aws::AmazonWebServiceResult& result); + AWS_ROUTE53PROFILES_API DisassociateResourceFromProfileResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

      Information about the DisassociateResourceFromProfile request, + * including the status of the request.

      + */ + inline const ProfileResourceAssociation& GetProfileResourceAssociation() const{ return m_profileResourceAssociation; } + + /** + *

      Information about the DisassociateResourceFromProfile request, + * including the status of the request.

      + */ + inline void SetProfileResourceAssociation(const ProfileResourceAssociation& value) { m_profileResourceAssociation = value; } + + /** + *

      Information about the DisassociateResourceFromProfile request, + * including the status of the request.

      + */ + inline void SetProfileResourceAssociation(ProfileResourceAssociation&& value) { m_profileResourceAssociation = std::move(value); } + + /** + *

      Information about the DisassociateResourceFromProfile request, + * including the status of the request.

      + */ + inline DisassociateResourceFromProfileResult& WithProfileResourceAssociation(const ProfileResourceAssociation& value) { SetProfileResourceAssociation(value); return *this;} + + /** + *

      Information about the DisassociateResourceFromProfile request, + * including the status of the request.

      + */ + inline DisassociateResourceFromProfileResult& WithProfileResourceAssociation(ProfileResourceAssociation&& value) { SetProfileResourceAssociation(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 DisassociateResourceFromProfileResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + + + inline DisassociateResourceFromProfileResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + + + inline DisassociateResourceFromProfileResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + + private: + + ProfileResourceAssociation m_profileResourceAssociation; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace Route53Profiles +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/GetProfileAssociationRequest.h b/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/GetProfileAssociationRequest.h new file mode 100644 index 00000000000..92fe9c2149c --- /dev/null +++ b/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/GetProfileAssociationRequest.h @@ -0,0 +1,83 @@ +/** + * 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 Route53Profiles +{ +namespace Model +{ + + /** + */ + class GetProfileAssociationRequest : public Route53ProfilesRequest + { + public: + AWS_ROUTE53PROFILES_API GetProfileAssociationRequest(); + + // 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 "GetProfileAssociation"; } + + AWS_ROUTE53PROFILES_API Aws::String SerializePayload() const override; + + + /** + *

      The identifier of the association you want to get information about.

      + */ + inline const Aws::String& GetProfileAssociationId() const{ return m_profileAssociationId; } + + /** + *

      The identifier of the association you want to get information about.

      + */ + inline bool ProfileAssociationIdHasBeenSet() const { return m_profileAssociationIdHasBeenSet; } + + /** + *

      The identifier of the association you want to get information about.

      + */ + inline void SetProfileAssociationId(const Aws::String& value) { m_profileAssociationIdHasBeenSet = true; m_profileAssociationId = value; } + + /** + *

      The identifier of the association you want to get information about.

      + */ + inline void SetProfileAssociationId(Aws::String&& value) { m_profileAssociationIdHasBeenSet = true; m_profileAssociationId = std::move(value); } + + /** + *

      The identifier of the association you want to get information about.

      + */ + inline void SetProfileAssociationId(const char* value) { m_profileAssociationIdHasBeenSet = true; m_profileAssociationId.assign(value); } + + /** + *

      The identifier of the association you want to get information about.

      + */ + inline GetProfileAssociationRequest& WithProfileAssociationId(const Aws::String& value) { SetProfileAssociationId(value); return *this;} + + /** + *

      The identifier of the association you want to get information about.

      + */ + inline GetProfileAssociationRequest& WithProfileAssociationId(Aws::String&& value) { SetProfileAssociationId(std::move(value)); return *this;} + + /** + *

      The identifier of the association you want to get information about.

      + */ + inline GetProfileAssociationRequest& WithProfileAssociationId(const char* value) { SetProfileAssociationId(value); return *this;} + + private: + + Aws::String m_profileAssociationId; + bool m_profileAssociationIdHasBeenSet = false; + }; + +} // namespace Model +} // namespace Route53Profiles +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/GetProfileAssociationResult.h b/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/GetProfileAssociationResult.h new file mode 100644 index 00000000000..06a80c035f0 --- /dev/null +++ b/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/GetProfileAssociationResult.h @@ -0,0 +1,97 @@ +/** + * 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 Route53Profiles +{ +namespace Model +{ + class GetProfileAssociationResult + { + public: + AWS_ROUTE53PROFILES_API GetProfileAssociationResult(); + AWS_ROUTE53PROFILES_API GetProfileAssociationResult(const Aws::AmazonWebServiceResult& result); + AWS_ROUTE53PROFILES_API GetProfileAssociationResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

      Information about the Profile association that you specified in a + * GetProfileAssociation request.

      + */ + inline const ProfileAssociation& GetProfileAssociation() const{ return m_profileAssociation; } + + /** + *

      Information about the Profile association that you specified in a + * GetProfileAssociation request.

      + */ + inline void SetProfileAssociation(const ProfileAssociation& value) { m_profileAssociation = value; } + + /** + *

      Information about the Profile association that you specified in a + * GetProfileAssociation request.

      + */ + inline void SetProfileAssociation(ProfileAssociation&& value) { m_profileAssociation = std::move(value); } + + /** + *

      Information about the Profile association that you specified in a + * GetProfileAssociation request.

      + */ + inline GetProfileAssociationResult& WithProfileAssociation(const ProfileAssociation& value) { SetProfileAssociation(value); return *this;} + + /** + *

      Information about the Profile association that you specified in a + * GetProfileAssociation request.

      + */ + inline GetProfileAssociationResult& WithProfileAssociation(ProfileAssociation&& value) { SetProfileAssociation(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 GetProfileAssociationResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + + + inline GetProfileAssociationResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + + + inline GetProfileAssociationResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + + private: + + ProfileAssociation m_profileAssociation; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace Route53Profiles +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/GetProfileRequest.h b/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/GetProfileRequest.h new file mode 100644 index 00000000000..a59d36f8d4f --- /dev/null +++ b/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/GetProfileRequest.h @@ -0,0 +1,83 @@ +/** + * 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 Route53Profiles +{ +namespace Model +{ + + /** + */ + class GetProfileRequest : public Route53ProfilesRequest + { + public: + AWS_ROUTE53PROFILES_API GetProfileRequest(); + + // 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 "GetProfile"; } + + AWS_ROUTE53PROFILES_API Aws::String SerializePayload() const override; + + + /** + *

      ID of the Profile.

      + */ + inline const Aws::String& GetProfileId() const{ return m_profileId; } + + /** + *

      ID of the Profile.

      + */ + inline bool ProfileIdHasBeenSet() const { return m_profileIdHasBeenSet; } + + /** + *

      ID of the Profile.

      + */ + inline void SetProfileId(const Aws::String& value) { m_profileIdHasBeenSet = true; m_profileId = value; } + + /** + *

      ID of the Profile.

      + */ + inline void SetProfileId(Aws::String&& value) { m_profileIdHasBeenSet = true; m_profileId = std::move(value); } + + /** + *

      ID of the Profile.

      + */ + inline void SetProfileId(const char* value) { m_profileIdHasBeenSet = true; m_profileId.assign(value); } + + /** + *

      ID of the Profile.

      + */ + inline GetProfileRequest& WithProfileId(const Aws::String& value) { SetProfileId(value); return *this;} + + /** + *

      ID of the Profile.

      + */ + inline GetProfileRequest& WithProfileId(Aws::String&& value) { SetProfileId(std::move(value)); return *this;} + + /** + *

      ID of the Profile.

      + */ + inline GetProfileRequest& WithProfileId(const char* value) { SetProfileId(value); return *this;} + + private: + + Aws::String m_profileId; + bool m_profileIdHasBeenSet = false; + }; + +} // namespace Model +} // namespace Route53Profiles +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/GetProfileResourceAssociationRequest.h b/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/GetProfileResourceAssociationRequest.h new file mode 100644 index 00000000000..9afbf1558bd --- /dev/null +++ b/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/GetProfileResourceAssociationRequest.h @@ -0,0 +1,91 @@ +/** + * 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 Route53Profiles +{ +namespace Model +{ + + /** + */ + class GetProfileResourceAssociationRequest : public Route53ProfilesRequest + { + public: + AWS_ROUTE53PROFILES_API GetProfileResourceAssociationRequest(); + + // 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 "GetProfileResourceAssociation"; } + + AWS_ROUTE53PROFILES_API Aws::String SerializePayload() const override; + + + /** + *

      The ID of the profile resource association that you want to get + * information about.

      + */ + inline const Aws::String& GetProfileResourceAssociationId() const{ return m_profileResourceAssociationId; } + + /** + *

      The ID of the profile resource association that you want to get + * information about.

      + */ + inline bool ProfileResourceAssociationIdHasBeenSet() const { return m_profileResourceAssociationIdHasBeenSet; } + + /** + *

      The ID of the profile resource association that you want to get + * information about.

      + */ + inline void SetProfileResourceAssociationId(const Aws::String& value) { m_profileResourceAssociationIdHasBeenSet = true; m_profileResourceAssociationId = value; } + + /** + *

      The ID of the profile resource association that you want to get + * information about.

      + */ + inline void SetProfileResourceAssociationId(Aws::String&& value) { m_profileResourceAssociationIdHasBeenSet = true; m_profileResourceAssociationId = std::move(value); } + + /** + *

      The ID of the profile resource association that you want to get + * information about.

      + */ + inline void SetProfileResourceAssociationId(const char* value) { m_profileResourceAssociationIdHasBeenSet = true; m_profileResourceAssociationId.assign(value); } + + /** + *

      The ID of the profile resource association that you want to get + * information about.

      + */ + inline GetProfileResourceAssociationRequest& WithProfileResourceAssociationId(const Aws::String& value) { SetProfileResourceAssociationId(value); return *this;} + + /** + *

      The ID of the profile resource association that you want to get + * information about.

      + */ + inline GetProfileResourceAssociationRequest& WithProfileResourceAssociationId(Aws::String&& value) { SetProfileResourceAssociationId(std::move(value)); return *this;} + + /** + *

      The ID of the profile resource association that you want to get + * information about.

      + */ + inline GetProfileResourceAssociationRequest& WithProfileResourceAssociationId(const char* value) { SetProfileResourceAssociationId(value); return *this;} + + private: + + Aws::String m_profileResourceAssociationId; + bool m_profileResourceAssociationIdHasBeenSet = false; + }; + +} // namespace Model +} // namespace Route53Profiles +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/GetProfileResourceAssociationResult.h b/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/GetProfileResourceAssociationResult.h new file mode 100644 index 00000000000..4ce431f7d06 --- /dev/null +++ b/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/GetProfileResourceAssociationResult.h @@ -0,0 +1,97 @@ +/** + * 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 Route53Profiles +{ +namespace Model +{ + class GetProfileResourceAssociationResult + { + public: + AWS_ROUTE53PROFILES_API GetProfileResourceAssociationResult(); + AWS_ROUTE53PROFILES_API GetProfileResourceAssociationResult(const Aws::AmazonWebServiceResult& result); + AWS_ROUTE53PROFILES_API GetProfileResourceAssociationResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

      Information about the Profile resource association that you specified in a + * GetProfileResourceAssociation request.

      + */ + inline const ProfileResourceAssociation& GetProfileResourceAssociation() const{ return m_profileResourceAssociation; } + + /** + *

      Information about the Profile resource association that you specified in a + * GetProfileResourceAssociation request.

      + */ + inline void SetProfileResourceAssociation(const ProfileResourceAssociation& value) { m_profileResourceAssociation = value; } + + /** + *

      Information about the Profile resource association that you specified in a + * GetProfileResourceAssociation request.

      + */ + inline void SetProfileResourceAssociation(ProfileResourceAssociation&& value) { m_profileResourceAssociation = std::move(value); } + + /** + *

      Information about the Profile resource association that you specified in a + * GetProfileResourceAssociation request.

      + */ + inline GetProfileResourceAssociationResult& WithProfileResourceAssociation(const ProfileResourceAssociation& value) { SetProfileResourceAssociation(value); return *this;} + + /** + *

      Information about the Profile resource association that you specified in a + * GetProfileResourceAssociation request.

      + */ + inline GetProfileResourceAssociationResult& WithProfileResourceAssociation(ProfileResourceAssociation&& value) { SetProfileResourceAssociation(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 GetProfileResourceAssociationResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + + + inline GetProfileResourceAssociationResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + + + inline GetProfileResourceAssociationResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + + private: + + ProfileResourceAssociation m_profileResourceAssociation; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace Route53Profiles +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/GetProfileResult.h b/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/GetProfileResult.h new file mode 100644 index 00000000000..945429f5955 --- /dev/null +++ b/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/GetProfileResult.h @@ -0,0 +1,92 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace Route53Profiles +{ +namespace Model +{ + class GetProfileResult + { + public: + AWS_ROUTE53PROFILES_API GetProfileResult(); + AWS_ROUTE53PROFILES_API GetProfileResult(const Aws::AmazonWebServiceResult& result); + AWS_ROUTE53PROFILES_API GetProfileResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

      Information about the Profile, including the status of the Profile.

      + */ + inline const Profile& GetProfile() const{ return m_profile; } + + /** + *

      Information about the Profile, including the status of the Profile.

      + */ + inline void SetProfile(const Profile& value) { m_profile = value; } + + /** + *

      Information about the Profile, including the status of the Profile.

      + */ + inline void SetProfile(Profile&& value) { m_profile = std::move(value); } + + /** + *

      Information about the Profile, including the status of the Profile.

      + */ + inline GetProfileResult& WithProfile(const Profile& value) { SetProfile(value); return *this;} + + /** + *

      Information about the Profile, including the status of the Profile.

      + */ + inline GetProfileResult& WithProfile(Profile&& value) { SetProfile(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 GetProfileResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + + + inline GetProfileResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + + + inline GetProfileResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + + private: + + Profile m_profile; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace Route53Profiles +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/InvalidParameterException.h b/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/InvalidParameterException.h new file mode 100644 index 00000000000..ea89960ff7d --- /dev/null +++ b/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/InvalidParameterException.h @@ -0,0 +1,117 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace Route53Profiles +{ +namespace Model +{ + + /** + *

      One or more parameters in this request are not valid.

      See + * Also:

      AWS + * API Reference

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

      The parameter field name for the invalid parameter exception.

      + */ + inline const Aws::String& GetFieldName() const{ return m_fieldName; } + + /** + *

      The parameter field name for the invalid parameter exception.

      + */ + inline bool FieldNameHasBeenSet() const { return m_fieldNameHasBeenSet; } + + /** + *

      The parameter field name for the invalid parameter exception.

      + */ + inline void SetFieldName(const Aws::String& value) { m_fieldNameHasBeenSet = true; m_fieldName = value; } + + /** + *

      The parameter field name for the invalid parameter exception.

      + */ + inline void SetFieldName(Aws::String&& value) { m_fieldNameHasBeenSet = true; m_fieldName = std::move(value); } + + /** + *

      The parameter field name for the invalid parameter exception.

      + */ + inline void SetFieldName(const char* value) { m_fieldNameHasBeenSet = true; m_fieldName.assign(value); } + + /** + *

      The parameter field name for the invalid parameter exception.

      + */ + inline InvalidParameterException& WithFieldName(const Aws::String& value) { SetFieldName(value); return *this;} + + /** + *

      The parameter field name for the invalid parameter exception.

      + */ + inline InvalidParameterException& WithFieldName(Aws::String&& value) { SetFieldName(std::move(value)); return *this;} + + /** + *

      The parameter field name for the invalid parameter exception.

      + */ + inline InvalidParameterException& WithFieldName(const char* value) { SetFieldName(value); return *this;} + + + + inline const Aws::String& GetMessage() const{ return m_message; } + + + inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } + + + inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } + + + inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } + + + inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } + + + inline InvalidParameterException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} + + + inline InvalidParameterException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} + + + inline InvalidParameterException& WithMessage(const char* value) { SetMessage(value); return *this;} + + private: + + Aws::String m_fieldName; + bool m_fieldNameHasBeenSet = false; + + Aws::String m_message; + bool m_messageHasBeenSet = false; + }; + +} // namespace Model +} // namespace Route53Profiles +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/LimitExceededException.h b/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/LimitExceededException.h new file mode 100644 index 00000000000..a6b5e7a8ed5 --- /dev/null +++ b/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/LimitExceededException.h @@ -0,0 +1,117 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace Route53Profiles +{ +namespace Model +{ + + /** + *

      The request caused one or more limits to be exceeded.

      See + * Also:

      AWS + * API Reference

      + */ + class LimitExceededException + { + public: + AWS_ROUTE53PROFILES_API LimitExceededException(); + AWS_ROUTE53PROFILES_API LimitExceededException(Aws::Utils::Json::JsonView jsonValue); + AWS_ROUTE53PROFILES_API LimitExceededException& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_ROUTE53PROFILES_API Aws::Utils::Json::JsonValue Jsonize() const; + + + + inline const Aws::String& GetMessage() const{ return m_message; } + + + inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } + + + inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } + + + inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } + + + inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } + + + inline LimitExceededException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} + + + inline LimitExceededException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} + + + inline LimitExceededException& WithMessage(const char* value) { SetMessage(value); return *this;} + + + /** + *

      The resource type that caused the limits to be exceeded.

      + */ + inline const Aws::String& GetResourceType() const{ return m_resourceType; } + + /** + *

      The resource type that caused the limits to be exceeded.

      + */ + inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; } + + /** + *

      The resource type that caused the limits to be exceeded.

      + */ + inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; } + + /** + *

      The resource type that caused the limits to be exceeded.

      + */ + inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); } + + /** + *

      The resource type that caused the limits to be exceeded.

      + */ + inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); } + + /** + *

      The resource type that caused the limits to be exceeded.

      + */ + inline LimitExceededException& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;} + + /** + *

      The resource type that caused the limits to be exceeded.

      + */ + inline LimitExceededException& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;} + + /** + *

      The resource type that caused the limits to be exceeded.

      + */ + inline LimitExceededException& WithResourceType(const char* value) { SetResourceType(value); return *this;} + + private: + + Aws::String m_message; + bool m_messageHasBeenSet = false; + + Aws::String m_resourceType; + bool m_resourceTypeHasBeenSet = false; + }; + +} // namespace Model +} // namespace Route53Profiles +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/ListProfileAssociationsRequest.h b/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/ListProfileAssociationsRequest.h new file mode 100644 index 00000000000..622e3b22b44 --- /dev/null +++ b/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/ListProfileAssociationsRequest.h @@ -0,0 +1,257 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Http +{ + class URI; +} //namespace Http +namespace Route53Profiles +{ +namespace Model +{ + + /** + */ + class ListProfileAssociationsRequest : public Route53ProfilesRequest + { + public: + AWS_ROUTE53PROFILES_API ListProfileAssociationsRequest(); + + // 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 "ListProfileAssociations"; } + + AWS_ROUTE53PROFILES_API Aws::String SerializePayload() const override; + + AWS_ROUTE53PROFILES_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; + + + /** + *

      The maximum number of objects that you want to return for this request. If + * more objects are available, in the response, a NextToken value, + * which you can use in a subsequent call to get the next batch of objects, is + * provided.

      If you don't specify a value for MaxResults, up + * to 100 objects are returned.

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

      The maximum number of objects that you want to return for this request. If + * more objects are available, in the response, a NextToken value, + * which you can use in a subsequent call to get the next batch of objects, is + * provided.

      If you don't specify a value for MaxResults, up + * to 100 objects are returned.

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

      The maximum number of objects that you want to return for this request. If + * more objects are available, in the response, a NextToken value, + * which you can use in a subsequent call to get the next batch of objects, is + * provided.

      If you don't specify a value for MaxResults, up + * to 100 objects are returned.

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

      The maximum number of objects that you want to return for this request. If + * more objects are available, in the response, a NextToken value, + * which you can use in a subsequent call to get the next batch of objects, is + * provided.

      If you don't specify a value for MaxResults, up + * to 100 objects are returned.

      + */ + inline ListProfileAssociationsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} + + + /** + *

      For the first call to this list request, omit this value.

      When you + * request a list of objects, at most the number of objects specified by + * MaxResults is returned. If more objects are available for + * retrieval, a NextToken value is returned in the response. To + * retrieve the next batch of objects, use the token that was returned for the + * prior request in your next request.

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

      For the first call to this list request, omit this value.

      When you + * request a list of objects, at most the number of objects specified by + * MaxResults is returned. If more objects are available for + * retrieval, a NextToken value is returned in the response. To + * retrieve the next batch of objects, use the token that was returned for the + * prior request in your next request.

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

      For the first call to this list request, omit this value.

      When you + * request a list of objects, at most the number of objects specified by + * MaxResults is returned. If more objects are available for + * retrieval, a NextToken value is returned in the response. To + * retrieve the next batch of objects, use the token that was returned for the + * prior request in your next request.

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

      For the first call to this list request, omit this value.

      When you + * request a list of objects, at most the number of objects specified by + * MaxResults is returned. If more objects are available for + * retrieval, a NextToken value is returned in the response. To + * retrieve the next batch of objects, use the token that was returned for the + * prior request in your next request.

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

      For the first call to this list request, omit this value.

      When you + * request a list of objects, at most the number of objects specified by + * MaxResults is returned. If more objects are available for + * retrieval, a NextToken value is returned in the response. To + * retrieve the next batch of objects, use the token that was returned for the + * prior request in your next request.

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

      For the first call to this list request, omit this value.

      When you + * request a list of objects, at most the number of objects specified by + * MaxResults is returned. If more objects are available for + * retrieval, a NextToken value is returned in the response. To + * retrieve the next batch of objects, use the token that was returned for the + * prior request in your next request.

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

      For the first call to this list request, omit this value.

      When you + * request a list of objects, at most the number of objects specified by + * MaxResults is returned. If more objects are available for + * retrieval, a NextToken value is returned in the response. To + * retrieve the next batch of objects, use the token that was returned for the + * prior request in your next request.

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

      For the first call to this list request, omit this value.

      When you + * request a list of objects, at most the number of objects specified by + * MaxResults is returned. If more objects are available for + * retrieval, a NextToken value is returned in the response. To + * retrieve the next batch of objects, use the token that was returned for the + * prior request in your next request.

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

      ID of the Profile.

      + */ + inline const Aws::String& GetProfileId() const{ return m_profileId; } + + /** + *

      ID of the Profile.

      + */ + inline bool ProfileIdHasBeenSet() const { return m_profileIdHasBeenSet; } + + /** + *

      ID of the Profile.

      + */ + inline void SetProfileId(const Aws::String& value) { m_profileIdHasBeenSet = true; m_profileId = value; } + + /** + *

      ID of the Profile.

      + */ + inline void SetProfileId(Aws::String&& value) { m_profileIdHasBeenSet = true; m_profileId = std::move(value); } + + /** + *

      ID of the Profile.

      + */ + inline void SetProfileId(const char* value) { m_profileIdHasBeenSet = true; m_profileId.assign(value); } + + /** + *

      ID of the Profile.

      + */ + inline ListProfileAssociationsRequest& WithProfileId(const Aws::String& value) { SetProfileId(value); return *this;} + + /** + *

      ID of the Profile.

      + */ + inline ListProfileAssociationsRequest& WithProfileId(Aws::String&& value) { SetProfileId(std::move(value)); return *this;} + + /** + *

      ID of the Profile.

      + */ + inline ListProfileAssociationsRequest& WithProfileId(const char* value) { SetProfileId(value); return *this;} + + + /** + *

      ID of the VPC.

      + */ + inline const Aws::String& GetResourceId() const{ return m_resourceId; } + + /** + *

      ID of the VPC.

      + */ + inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; } + + /** + *

      ID of the VPC.

      + */ + inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; } + + /** + *

      ID of the VPC.

      + */ + inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); } + + /** + *

      ID of the VPC.

      + */ + inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); } + + /** + *

      ID of the VPC.

      + */ + inline ListProfileAssociationsRequest& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;} + + /** + *

      ID of the VPC.

      + */ + inline ListProfileAssociationsRequest& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;} + + /** + *

      ID of the VPC.

      + */ + inline ListProfileAssociationsRequest& WithResourceId(const char* value) { SetResourceId(value); return *this;} + + private: + + int m_maxResults; + bool m_maxResultsHasBeenSet = false; + + Aws::String m_nextToken; + bool m_nextTokenHasBeenSet = false; + + Aws::String m_profileId; + bool m_profileIdHasBeenSet = false; + + Aws::String m_resourceId; + bool m_resourceIdHasBeenSet = false; + }; + +} // namespace Model +} // namespace Route53Profiles +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/ListProfileAssociationsResult.h b/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/ListProfileAssociationsResult.h new file mode 100644 index 00000000000..8a8b5f9d498 --- /dev/null +++ b/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/ListProfileAssociationsResult.h @@ -0,0 +1,169 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace Route53Profiles +{ +namespace Model +{ + class ListProfileAssociationsResult + { + public: + AWS_ROUTE53PROFILES_API ListProfileAssociationsResult(); + AWS_ROUTE53PROFILES_API ListProfileAssociationsResult(const Aws::AmazonWebServiceResult& result); + AWS_ROUTE53PROFILES_API ListProfileAssociationsResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

      If more than MaxResults profile associations match the + * specified criteria, you can submit another ListProfileAssociations + * request to get the next group of results. In the next request, specify the value + * of NextToken from the previous response.

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

      If more than MaxResults profile associations match the + * specified criteria, you can submit another ListProfileAssociations + * request to get the next group of results. In the next request, specify the value + * of NextToken from the previous response.

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

      If more than MaxResults profile associations match the + * specified criteria, you can submit another ListProfileAssociations + * request to get the next group of results. In the next request, specify the value + * of NextToken from the previous response.

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

      If more than MaxResults profile associations match the + * specified criteria, you can submit another ListProfileAssociations + * request to get the next group of results. In the next request, specify the value + * of NextToken from the previous response.

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

      If more than MaxResults profile associations match the + * specified criteria, you can submit another ListProfileAssociations + * request to get the next group of results. In the next request, specify the value + * of NextToken from the previous response.

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

      If more than MaxResults profile associations match the + * specified criteria, you can submit another ListProfileAssociations + * request to get the next group of results. In the next request, specify the value + * of NextToken from the previous response.

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

      If more than MaxResults profile associations match the + * specified criteria, you can submit another ListProfileAssociations + * request to get the next group of results. In the next request, specify the value + * of NextToken from the previous response.

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

      A complex type that containts settings information about the profile's VPC + * associations.

      + */ + inline const Aws::Vector& GetProfileAssociations() const{ return m_profileAssociations; } + + /** + *

      A complex type that containts settings information about the profile's VPC + * associations.

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

      A complex type that containts settings information about the profile's VPC + * associations.

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

      A complex type that containts settings information about the profile's VPC + * associations.

      + */ + inline ListProfileAssociationsResult& WithProfileAssociations(const Aws::Vector& value) { SetProfileAssociations(value); return *this;} + + /** + *

      A complex type that containts settings information about the profile's VPC + * associations.

      + */ + inline ListProfileAssociationsResult& WithProfileAssociations(Aws::Vector&& value) { SetProfileAssociations(std::move(value)); return *this;} + + /** + *

      A complex type that containts settings information about the profile's VPC + * associations.

      + */ + inline ListProfileAssociationsResult& AddProfileAssociations(const ProfileAssociation& value) { m_profileAssociations.push_back(value); return *this; } + + /** + *

      A complex type that containts settings information about the profile's VPC + * associations.

      + */ + inline ListProfileAssociationsResult& AddProfileAssociations(ProfileAssociation&& value) { m_profileAssociations.push_back(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 ListProfileAssociationsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + + + inline ListProfileAssociationsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + + + inline ListProfileAssociationsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + + private: + + Aws::String m_nextToken; + + Aws::Vector m_profileAssociations; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace Route53Profiles +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/ListProfileResourceAssociationsRequest.h b/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/ListProfileResourceAssociationsRequest.h new file mode 100644 index 00000000000..265c63252fe --- /dev/null +++ b/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/ListProfileResourceAssociationsRequest.h @@ -0,0 +1,257 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Http +{ + class URI; +} //namespace Http +namespace Route53Profiles +{ +namespace Model +{ + + /** + */ + class ListProfileResourceAssociationsRequest : public Route53ProfilesRequest + { + public: + AWS_ROUTE53PROFILES_API ListProfileResourceAssociationsRequest(); + + // 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 "ListProfileResourceAssociations"; } + + AWS_ROUTE53PROFILES_API Aws::String SerializePayload() const override; + + AWS_ROUTE53PROFILES_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; + + + /** + *

      The maximum number of objects that you want to return for this request. If + * more objects are available, in the response, a NextToken value, + * which you can use in a subsequent call to get the next batch of objects, is + * provided.

      If you don't specify a value for MaxResults, up + * to 100 objects are returned.

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

      The maximum number of objects that you want to return for this request. If + * more objects are available, in the response, a NextToken value, + * which you can use in a subsequent call to get the next batch of objects, is + * provided.

      If you don't specify a value for MaxResults, up + * to 100 objects are returned.

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

      The maximum number of objects that you want to return for this request. If + * more objects are available, in the response, a NextToken value, + * which you can use in a subsequent call to get the next batch of objects, is + * provided.

      If you don't specify a value for MaxResults, up + * to 100 objects are returned.

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

      The maximum number of objects that you want to return for this request. If + * more objects are available, in the response, a NextToken value, + * which you can use in a subsequent call to get the next batch of objects, is + * provided.

      If you don't specify a value for MaxResults, up + * to 100 objects are returned.

      + */ + inline ListProfileResourceAssociationsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} + + + /** + *

      For the first call to this list request, omit this value.

      When you + * request a list of objects, at most the number of objects specified by + * MaxResults is returned. If more objects are available for + * retrieval, a NextToken value is returned in the response. To + * retrieve the next batch of objects, use the token that was returned for the + * prior request in your next request.

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

      For the first call to this list request, omit this value.

      When you + * request a list of objects, at most the number of objects specified by + * MaxResults is returned. If more objects are available for + * retrieval, a NextToken value is returned in the response. To + * retrieve the next batch of objects, use the token that was returned for the + * prior request in your next request.

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

      For the first call to this list request, omit this value.

      When you + * request a list of objects, at most the number of objects specified by + * MaxResults is returned. If more objects are available for + * retrieval, a NextToken value is returned in the response. To + * retrieve the next batch of objects, use the token that was returned for the + * prior request in your next request.

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

      For the first call to this list request, omit this value.

      When you + * request a list of objects, at most the number of objects specified by + * MaxResults is returned. If more objects are available for + * retrieval, a NextToken value is returned in the response. To + * retrieve the next batch of objects, use the token that was returned for the + * prior request in your next request.

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

      For the first call to this list request, omit this value.

      When you + * request a list of objects, at most the number of objects specified by + * MaxResults is returned. If more objects are available for + * retrieval, a NextToken value is returned in the response. To + * retrieve the next batch of objects, use the token that was returned for the + * prior request in your next request.

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

      For the first call to this list request, omit this value.

      When you + * request a list of objects, at most the number of objects specified by + * MaxResults is returned. If more objects are available for + * retrieval, a NextToken value is returned in the response. To + * retrieve the next batch of objects, use the token that was returned for the + * prior request in your next request.

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

      For the first call to this list request, omit this value.

      When you + * request a list of objects, at most the number of objects specified by + * MaxResults is returned. If more objects are available for + * retrieval, a NextToken value is returned in the response. To + * retrieve the next batch of objects, use the token that was returned for the + * prior request in your next request.

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

      For the first call to this list request, omit this value.

      When you + * request a list of objects, at most the number of objects specified by + * MaxResults is returned. If more objects are available for + * retrieval, a NextToken value is returned in the response. To + * retrieve the next batch of objects, use the token that was returned for the + * prior request in your next request.

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

      The ID of the Profile.

      + */ + inline const Aws::String& GetProfileId() const{ return m_profileId; } + + /** + *

      The ID of the Profile.

      + */ + inline bool ProfileIdHasBeenSet() const { return m_profileIdHasBeenSet; } + + /** + *

      The ID of the Profile.

      + */ + inline void SetProfileId(const Aws::String& value) { m_profileIdHasBeenSet = true; m_profileId = value; } + + /** + *

      The ID of the Profile.

      + */ + inline void SetProfileId(Aws::String&& value) { m_profileIdHasBeenSet = true; m_profileId = std::move(value); } + + /** + *

      The ID of the Profile.

      + */ + inline void SetProfileId(const char* value) { m_profileIdHasBeenSet = true; m_profileId.assign(value); } + + /** + *

      The ID of the Profile.

      + */ + inline ListProfileResourceAssociationsRequest& WithProfileId(const Aws::String& value) { SetProfileId(value); return *this;} + + /** + *

      The ID of the Profile.

      + */ + inline ListProfileResourceAssociationsRequest& WithProfileId(Aws::String&& value) { SetProfileId(std::move(value)); return *this;} + + /** + *

      The ID of the Profile.

      + */ + inline ListProfileResourceAssociationsRequest& WithProfileId(const char* value) { SetProfileId(value); return *this;} + + + /** + *

      ID of a resource if you want information on only one type.

      + */ + inline const Aws::String& GetResourceType() const{ return m_resourceType; } + + /** + *

      ID of a resource if you want information on only one type.

      + */ + inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; } + + /** + *

      ID of a resource if you want information on only one type.

      + */ + inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; } + + /** + *

      ID of a resource if you want information on only one type.

      + */ + inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); } + + /** + *

      ID of a resource if you want information on only one type.

      + */ + inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); } + + /** + *

      ID of a resource if you want information on only one type.

      + */ + inline ListProfileResourceAssociationsRequest& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;} + + /** + *

      ID of a resource if you want information on only one type.

      + */ + inline ListProfileResourceAssociationsRequest& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;} + + /** + *

      ID of a resource if you want information on only one type.

      + */ + inline ListProfileResourceAssociationsRequest& WithResourceType(const char* value) { SetResourceType(value); return *this;} + + private: + + int m_maxResults; + bool m_maxResultsHasBeenSet = false; + + Aws::String m_nextToken; + bool m_nextTokenHasBeenSet = false; + + Aws::String m_profileId; + bool m_profileIdHasBeenSet = false; + + Aws::String m_resourceType; + bool m_resourceTypeHasBeenSet = false; + }; + +} // namespace Model +} // namespace Route53Profiles +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/ListProfileResourceAssociationsResult.h b/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/ListProfileResourceAssociationsResult.h new file mode 100644 index 00000000000..b0e4b565960 --- /dev/null +++ b/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/ListProfileResourceAssociationsResult.h @@ -0,0 +1,176 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace Route53Profiles +{ +namespace Model +{ + class ListProfileResourceAssociationsResult + { + public: + AWS_ROUTE53PROFILES_API ListProfileResourceAssociationsResult(); + AWS_ROUTE53PROFILES_API ListProfileResourceAssociationsResult(const Aws::AmazonWebServiceResult& result); + AWS_ROUTE53PROFILES_API ListProfileResourceAssociationsResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

      If more than MaxResults resource associations match the + * specified criteria, you can submit another + * ListProfileResourceAssociations request to get the next group of + * results. In the next request, specify the value of NextToken from + * the previous response.

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

      If more than MaxResults resource associations match the + * specified criteria, you can submit another + * ListProfileResourceAssociations request to get the next group of + * results. In the next request, specify the value of NextToken from + * the previous response.

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

      If more than MaxResults resource associations match the + * specified criteria, you can submit another + * ListProfileResourceAssociations request to get the next group of + * results. In the next request, specify the value of NextToken from + * the previous response.

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

      If more than MaxResults resource associations match the + * specified criteria, you can submit another + * ListProfileResourceAssociations request to get the next group of + * results. In the next request, specify the value of NextToken from + * the previous response.

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

      If more than MaxResults resource associations match the + * specified criteria, you can submit another + * ListProfileResourceAssociations request to get the next group of + * results. In the next request, specify the value of NextToken from + * the previous response.

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

      If more than MaxResults resource associations match the + * specified criteria, you can submit another + * ListProfileResourceAssociations request to get the next group of + * results. In the next request, specify the value of NextToken from + * the previous response.

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

      If more than MaxResults resource associations match the + * specified criteria, you can submit another + * ListProfileResourceAssociations request to get the next group of + * results. In the next request, specify the value of NextToken from + * the previous response.

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

      Information about the profile resource association that you specified in a + * GetProfileResourceAssociation request.

      + */ + inline const Aws::Vector& GetProfileResourceAssociations() const{ return m_profileResourceAssociations; } + + /** + *

      Information about the profile resource association that you specified in a + * GetProfileResourceAssociation request.

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

      Information about the profile resource association that you specified in a + * GetProfileResourceAssociation request.

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

      Information about the profile resource association that you specified in a + * GetProfileResourceAssociation request.

      + */ + inline ListProfileResourceAssociationsResult& WithProfileResourceAssociations(const Aws::Vector& value) { SetProfileResourceAssociations(value); return *this;} + + /** + *

      Information about the profile resource association that you specified in a + * GetProfileResourceAssociation request.

      + */ + inline ListProfileResourceAssociationsResult& WithProfileResourceAssociations(Aws::Vector&& value) { SetProfileResourceAssociations(std::move(value)); return *this;} + + /** + *

      Information about the profile resource association that you specified in a + * GetProfileResourceAssociation request.

      + */ + inline ListProfileResourceAssociationsResult& AddProfileResourceAssociations(const ProfileResourceAssociation& value) { m_profileResourceAssociations.push_back(value); return *this; } + + /** + *

      Information about the profile resource association that you specified in a + * GetProfileResourceAssociation request.

      + */ + inline ListProfileResourceAssociationsResult& AddProfileResourceAssociations(ProfileResourceAssociation&& value) { m_profileResourceAssociations.push_back(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 ListProfileResourceAssociationsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + + + inline ListProfileResourceAssociationsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + + + inline ListProfileResourceAssociationsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + + private: + + Aws::String m_nextToken; + + Aws::Vector m_profileResourceAssociations; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace Route53Profiles +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/ListProfilesRequest.h b/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/ListProfilesRequest.h new file mode 100644 index 00000000000..c380ad27f34 --- /dev/null +++ b/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/ListProfilesRequest.h @@ -0,0 +1,169 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Http +{ + class URI; +} //namespace Http +namespace Route53Profiles +{ +namespace Model +{ + + /** + */ + class ListProfilesRequest : public Route53ProfilesRequest + { + public: + AWS_ROUTE53PROFILES_API ListProfilesRequest(); + + // 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 "ListProfiles"; } + + AWS_ROUTE53PROFILES_API Aws::String SerializePayload() const override; + + AWS_ROUTE53PROFILES_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; + + + /** + *

      The maximum number of objects that you want to return for this request. If + * more objects are available, in the response, a NextToken value, + * which you can use in a subsequent call to get the next batch of objects, is + * provided.

      If you don't specify a value for MaxResults, up + * to 100 objects are returned.

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

      The maximum number of objects that you want to return for this request. If + * more objects are available, in the response, a NextToken value, + * which you can use in a subsequent call to get the next batch of objects, is + * provided.

      If you don't specify a value for MaxResults, up + * to 100 objects are returned.

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

      The maximum number of objects that you want to return for this request. If + * more objects are available, in the response, a NextToken value, + * which you can use in a subsequent call to get the next batch of objects, is + * provided.

      If you don't specify a value for MaxResults, up + * to 100 objects are returned.

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

      The maximum number of objects that you want to return for this request. If + * more objects are available, in the response, a NextToken value, + * which you can use in a subsequent call to get the next batch of objects, is + * provided.

      If you don't specify a value for MaxResults, up + * to 100 objects are returned.

      + */ + inline ListProfilesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} + + + /** + *

      For the first call to this list request, omit this value.

      When you + * request a list of objects, at most the number of objects specified by + * MaxResults is returned. If more objects are available for + * retrieval, a NextToken value is returned in the response. To + * retrieve the next batch of objects, use the token that was returned for the + * prior request in your next request.

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

      For the first call to this list request, omit this value.

      When you + * request a list of objects, at most the number of objects specified by + * MaxResults is returned. If more objects are available for + * retrieval, a NextToken value is returned in the response. To + * retrieve the next batch of objects, use the token that was returned for the + * prior request in your next request.

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

      For the first call to this list request, omit this value.

      When you + * request a list of objects, at most the number of objects specified by + * MaxResults is returned. If more objects are available for + * retrieval, a NextToken value is returned in the response. To + * retrieve the next batch of objects, use the token that was returned for the + * prior request in your next request.

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

      For the first call to this list request, omit this value.

      When you + * request a list of objects, at most the number of objects specified by + * MaxResults is returned. If more objects are available for + * retrieval, a NextToken value is returned in the response. To + * retrieve the next batch of objects, use the token that was returned for the + * prior request in your next request.

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

      For the first call to this list request, omit this value.

      When you + * request a list of objects, at most the number of objects specified by + * MaxResults is returned. If more objects are available for + * retrieval, a NextToken value is returned in the response. To + * retrieve the next batch of objects, use the token that was returned for the + * prior request in your next request.

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

      For the first call to this list request, omit this value.

      When you + * request a list of objects, at most the number of objects specified by + * MaxResults is returned. If more objects are available for + * retrieval, a NextToken value is returned in the response. To + * retrieve the next batch of objects, use the token that was returned for the + * prior request in your next request.

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

      For the first call to this list request, omit this value.

      When you + * request a list of objects, at most the number of objects specified by + * MaxResults is returned. If more objects are available for + * retrieval, a NextToken value is returned in the response. To + * retrieve the next batch of objects, use the token that was returned for the + * prior request in your next request.

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

      For the first call to this list request, omit this value.

      When you + * request a list of objects, at most the number of objects specified by + * MaxResults is returned. If more objects are available for + * retrieval, a NextToken value is returned in the response. To + * retrieve the next batch of objects, use the token that was returned for the + * prior request in your next request.

      + */ + inline ListProfilesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} + + private: + + int m_maxResults; + bool m_maxResultsHasBeenSet = false; + + Aws::String m_nextToken; + bool m_nextTokenHasBeenSet = false; + }; + +} // namespace Model +} // namespace Route53Profiles +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/ListProfilesResult.h b/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/ListProfilesResult.h new file mode 100644 index 00000000000..52f7b1887c0 --- /dev/null +++ b/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/ListProfilesResult.h @@ -0,0 +1,162 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace Route53Profiles +{ +namespace Model +{ + class ListProfilesResult + { + public: + AWS_ROUTE53PROFILES_API ListProfilesResult(); + AWS_ROUTE53PROFILES_API ListProfilesResult(const Aws::AmazonWebServiceResult& result); + AWS_ROUTE53PROFILES_API ListProfilesResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

      If more than MaxResults resource associations match the + * specified criteria, you can submit another ListProfiles request to + * get the next group of results. In the next request, specify the value of + * NextToken from the previous response.

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

      If more than MaxResults resource associations match the + * specified criteria, you can submit another ListProfiles request to + * get the next group of results. In the next request, specify the value of + * NextToken from the previous response.

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

      If more than MaxResults resource associations match the + * specified criteria, you can submit another ListProfiles request to + * get the next group of results. In the next request, specify the value of + * NextToken from the previous response.

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

      If more than MaxResults resource associations match the + * specified criteria, you can submit another ListProfiles request to + * get the next group of results. In the next request, specify the value of + * NextToken from the previous response.

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

      If more than MaxResults resource associations match the + * specified criteria, you can submit another ListProfiles request to + * get the next group of results. In the next request, specify the value of + * NextToken from the previous response.

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

      If more than MaxResults resource associations match the + * specified criteria, you can submit another ListProfiles request to + * get the next group of results. In the next request, specify the value of + * NextToken from the previous response.

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

      If more than MaxResults resource associations match the + * specified criteria, you can submit another ListProfiles request to + * get the next group of results. In the next request, specify the value of + * NextToken from the previous response.

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

      Summary information about the Profiles.

      + */ + inline const Aws::Vector& GetProfileSummaries() const{ return m_profileSummaries; } + + /** + *

      Summary information about the Profiles.

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

      Summary information about the Profiles.

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

      Summary information about the Profiles.

      + */ + inline ListProfilesResult& WithProfileSummaries(const Aws::Vector& value) { SetProfileSummaries(value); return *this;} + + /** + *

      Summary information about the Profiles.

      + */ + inline ListProfilesResult& WithProfileSummaries(Aws::Vector&& value) { SetProfileSummaries(std::move(value)); return *this;} + + /** + *

      Summary information about the Profiles.

      + */ + inline ListProfilesResult& AddProfileSummaries(const ProfileSummary& value) { m_profileSummaries.push_back(value); return *this; } + + /** + *

      Summary information about the Profiles.

      + */ + inline ListProfilesResult& AddProfileSummaries(ProfileSummary&& value) { m_profileSummaries.push_back(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 ListProfilesResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + + + inline ListProfilesResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + + + inline ListProfilesResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + + private: + + Aws::String m_nextToken; + + Aws::Vector m_profileSummaries; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace Route53Profiles +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/ListTagsForResourceRequest.h b/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/ListTagsForResourceRequest.h new file mode 100644 index 00000000000..ac632e7535f --- /dev/null +++ b/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/ListTagsForResourceRequest.h @@ -0,0 +1,91 @@ +/** + * 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 Route53Profiles +{ +namespace Model +{ + + /** + */ + class ListTagsForResourceRequest : public Route53ProfilesRequest + { + public: + AWS_ROUTE53PROFILES_API ListTagsForResourceRequest(); + + // 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 "ListTagsForResource"; } + + AWS_ROUTE53PROFILES_API Aws::String SerializePayload() const override; + + + /** + *

      The Amazon Resource Name (ARN) for the resource that you want to list the + * tags for.

      + */ + inline const Aws::String& GetResourceArn() const{ return m_resourceArn; } + + /** + *

      The Amazon Resource Name (ARN) for the resource that you want to list the + * tags for.

      + */ + inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; } + + /** + *

      The Amazon Resource Name (ARN) for the resource that you want to list the + * tags for.

      + */ + inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; } + + /** + *

      The Amazon Resource Name (ARN) for the resource that you want to list the + * tags for.

      + */ + inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); } + + /** + *

      The Amazon Resource Name (ARN) for the resource that you want to list the + * tags for.

      + */ + inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); } + + /** + *

      The Amazon Resource Name (ARN) for the resource that you want to list the + * tags for.

      + */ + inline ListTagsForResourceRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;} + + /** + *

      The Amazon Resource Name (ARN) for the resource that you want to list the + * tags for.

      + */ + inline ListTagsForResourceRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;} + + /** + *

      The Amazon Resource Name (ARN) for the resource that you want to list the + * tags for.

      + */ + inline ListTagsForResourceRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;} + + private: + + Aws::String m_resourceArn; + bool m_resourceArnHasBeenSet = false; + }; + +} // namespace Model +} // namespace Route53Profiles +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/ListTagsForResourceResult.h b/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/ListTagsForResourceResult.h new file mode 100644 index 00000000000..3dd4e302524 --- /dev/null +++ b/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/ListTagsForResourceResult.h @@ -0,0 +1,139 @@ +/** + * 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 Route53Profiles +{ +namespace Model +{ + class ListTagsForResourceResult + { + public: + AWS_ROUTE53PROFILES_API ListTagsForResourceResult(); + AWS_ROUTE53PROFILES_API ListTagsForResourceResult(const Aws::AmazonWebServiceResult& result); + AWS_ROUTE53PROFILES_API ListTagsForResourceResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

      The tags that are associated with the resource that you specified in the + * ListTagsForResource request.

      + */ + inline const Aws::Map& GetTags() const{ return m_tags; } + + /** + *

      The tags that are associated with the resource that you specified in the + * ListTagsForResource request.

      + */ + inline void SetTags(const Aws::Map& value) { m_tags = value; } + + /** + *

      The tags that are associated with the resource that you specified in the + * ListTagsForResource request.

      + */ + inline void SetTags(Aws::Map&& value) { m_tags = std::move(value); } + + /** + *

      The tags that are associated with the resource that you specified in the + * ListTagsForResource request.

      + */ + inline ListTagsForResourceResult& WithTags(const Aws::Map& value) { SetTags(value); return *this;} + + /** + *

      The tags that are associated with the resource that you specified in the + * ListTagsForResource request.

      + */ + inline ListTagsForResourceResult& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} + + /** + *

      The tags that are associated with the resource that you specified in the + * ListTagsForResource request.

      + */ + inline ListTagsForResourceResult& AddTags(const Aws::String& key, const Aws::String& value) { m_tags.emplace(key, value); return *this; } + + /** + *

      The tags that are associated with the resource that you specified in the + * ListTagsForResource request.

      + */ + inline ListTagsForResourceResult& AddTags(Aws::String&& key, const Aws::String& value) { m_tags.emplace(std::move(key), value); return *this; } + + /** + *

      The tags that are associated with the resource that you specified in the + * ListTagsForResource request.

      + */ + inline ListTagsForResourceResult& AddTags(const Aws::String& key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; } + + /** + *

      The tags that are associated with the resource that you specified in the + * ListTagsForResource request.

      + */ + inline ListTagsForResourceResult& AddTags(Aws::String&& key, Aws::String&& value) { m_tags.emplace(std::move(key), std::move(value)); return *this; } + + /** + *

      The tags that are associated with the resource that you specified in the + * ListTagsForResource request.

      + */ + inline ListTagsForResourceResult& AddTags(const char* key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; } + + /** + *

      The tags that are associated with the resource that you specified in the + * ListTagsForResource request.

      + */ + inline ListTagsForResourceResult& AddTags(Aws::String&& key, const char* value) { m_tags.emplace(std::move(key), value); return *this; } + + /** + *

      The tags that are associated with the resource that you specified in the + * ListTagsForResource request.

      + */ + inline ListTagsForResourceResult& AddTags(const char* key, const char* value) { m_tags.emplace(key, value); return *this; } + + + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + + + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + + + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + + + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + + + inline ListTagsForResourceResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + + + inline ListTagsForResourceResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + + + inline ListTagsForResourceResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + + private: + + Aws::Map m_tags; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace Route53Profiles +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/Profile.h b/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/Profile.h new file mode 100644 index 00000000000..fc440374f5e --- /dev/null +++ b/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/Profile.h @@ -0,0 +1,468 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace Route53Profiles +{ +namespace Model +{ + + /** + *

      A complex type that includes settings for a Route 53 Profile.

      See + * Also:

      AWS + * API Reference

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

      The Amazon Resource Name (ARN) of the Profile.

      + */ + inline const Aws::String& GetArn() const{ return m_arn; } + + /** + *

      The Amazon Resource Name (ARN) of the Profile.

      + */ + inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } + + /** + *

      The Amazon Resource Name (ARN) of the Profile.

      + */ + inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } + + /** + *

      The Amazon Resource Name (ARN) of the Profile.

      + */ + inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } + + /** + *

      The Amazon Resource Name (ARN) of the Profile.

      + */ + inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } + + /** + *

      The Amazon Resource Name (ARN) of the Profile.

      + */ + inline Profile& WithArn(const Aws::String& value) { SetArn(value); return *this;} + + /** + *

      The Amazon Resource Name (ARN) of the Profile.

      + */ + inline Profile& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} + + /** + *

      The Amazon Resource Name (ARN) of the Profile.

      + */ + inline Profile& WithArn(const char* value) { SetArn(value); return *this;} + + + /** + *

      The ClientToken value that was assigned when the Profile was + * created.

      + */ + inline const Aws::String& GetClientToken() const{ return m_clientToken; } + + /** + *

      The ClientToken value that was assigned when the Profile was + * created.

      + */ + inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } + + /** + *

      The ClientToken value that was assigned when the Profile was + * created.

      + */ + inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } + + /** + *

      The ClientToken value that was assigned when the Profile was + * created.

      + */ + inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } + + /** + *

      The ClientToken value that was assigned when the Profile was + * created.

      + */ + inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } + + /** + *

      The ClientToken value that was assigned when the Profile was + * created.

      + */ + inline Profile& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} + + /** + *

      The ClientToken value that was assigned when the Profile was + * created.

      + */ + inline Profile& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} + + /** + *

      The ClientToken value that was assigned when the Profile was + * created.

      + */ + inline Profile& WithClientToken(const char* value) { SetClientToken(value); return *this;} + + + /** + *

      The date and time that the Profile was created, in Unix time format and + * Coordinated Universal Time (UTC).

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

      The date and time that the Profile was created, in Unix time format and + * Coordinated Universal Time (UTC).

      + */ + inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; } + + /** + *

      The date and time that the Profile was created, in Unix time format and + * Coordinated Universal Time (UTC).

      + */ + inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; } + + /** + *

      The date and time that the Profile was created, in Unix time format and + * Coordinated Universal Time (UTC).

      + */ + inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); } + + /** + *

      The date and time that the Profile was created, in Unix time format and + * Coordinated Universal Time (UTC).

      + */ + inline Profile& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;} + + /** + *

      The date and time that the Profile was created, in Unix time format and + * Coordinated Universal Time (UTC).

      + */ + inline Profile& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;} + + + /** + *

      ID of the Profile.

      + */ + inline const Aws::String& GetId() const{ return m_id; } + + /** + *

      ID of the Profile.

      + */ + inline bool IdHasBeenSet() const { return m_idHasBeenSet; } + + /** + *

      ID of the Profile.

      + */ + inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } + + /** + *

      ID of the Profile.

      + */ + inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } + + /** + *

      ID of the Profile.

      + */ + inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } + + /** + *

      ID of the Profile.

      + */ + inline Profile& WithId(const Aws::String& value) { SetId(value); return *this;} + + /** + *

      ID of the Profile.

      + */ + inline Profile& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} + + /** + *

      ID of the Profile.

      + */ + inline Profile& WithId(const char* value) { SetId(value); return *this;} + + + /** + *

      The date and time that the Profile was modified, in Unix time format and + * Coordinated Universal Time (UTC).

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

      The date and time that the Profile was modified, in Unix time format and + * Coordinated Universal Time (UTC).

      + */ + inline bool ModificationTimeHasBeenSet() const { return m_modificationTimeHasBeenSet; } + + /** + *

      The date and time that the Profile was modified, in Unix time format and + * Coordinated Universal Time (UTC).

      + */ + inline void SetModificationTime(const Aws::Utils::DateTime& value) { m_modificationTimeHasBeenSet = true; m_modificationTime = value; } + + /** + *

      The date and time that the Profile was modified, in Unix time format and + * Coordinated Universal Time (UTC).

      + */ + inline void SetModificationTime(Aws::Utils::DateTime&& value) { m_modificationTimeHasBeenSet = true; m_modificationTime = std::move(value); } + + /** + *

      The date and time that the Profile was modified, in Unix time format and + * Coordinated Universal Time (UTC).

      + */ + inline Profile& WithModificationTime(const Aws::Utils::DateTime& value) { SetModificationTime(value); return *this;} + + /** + *

      The date and time that the Profile was modified, in Unix time format and + * Coordinated Universal Time (UTC).

      + */ + inline Profile& WithModificationTime(Aws::Utils::DateTime&& value) { SetModificationTime(std::move(value)); return *this;} + + + /** + *

      Name of the Profile.

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

      Name of the Profile.

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

      Name of the Profile.

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

      Name of the Profile.

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

      Name of the Profile.

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

      Name of the Profile.

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

      Name of the Profile.

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

      Name of the Profile.

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

      Amazon Web Services account ID of the Profile owner.

      + */ + inline const Aws::String& GetOwnerId() const{ return m_ownerId; } + + /** + *

      Amazon Web Services account ID of the Profile owner.

      + */ + inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; } + + /** + *

      Amazon Web Services account ID of the Profile owner.

      + */ + inline void SetOwnerId(const Aws::String& value) { m_ownerIdHasBeenSet = true; m_ownerId = value; } + + /** + *

      Amazon Web Services account ID of the Profile owner.

      + */ + inline void SetOwnerId(Aws::String&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::move(value); } + + /** + *

      Amazon Web Services account ID of the Profile owner.

      + */ + inline void SetOwnerId(const char* value) { m_ownerIdHasBeenSet = true; m_ownerId.assign(value); } + + /** + *

      Amazon Web Services account ID of the Profile owner.

      + */ + inline Profile& WithOwnerId(const Aws::String& value) { SetOwnerId(value); return *this;} + + /** + *

      Amazon Web Services account ID of the Profile owner.

      + */ + inline Profile& WithOwnerId(Aws::String&& value) { SetOwnerId(std::move(value)); return *this;} + + /** + *

      Amazon Web Services account ID of the Profile owner.

      + */ + inline Profile& WithOwnerId(const char* value) { SetOwnerId(value); return *this;} + + + /** + *

      Sharing status for the Profile.

      + */ + inline const ShareStatus& GetShareStatus() const{ return m_shareStatus; } + + /** + *

      Sharing status for the Profile.

      + */ + inline bool ShareStatusHasBeenSet() const { return m_shareStatusHasBeenSet; } + + /** + *

      Sharing status for the Profile.

      + */ + inline void SetShareStatus(const ShareStatus& value) { m_shareStatusHasBeenSet = true; m_shareStatus = value; } + + /** + *

      Sharing status for the Profile.

      + */ + inline void SetShareStatus(ShareStatus&& value) { m_shareStatusHasBeenSet = true; m_shareStatus = std::move(value); } + + /** + *

      Sharing status for the Profile.

      + */ + inline Profile& WithShareStatus(const ShareStatus& value) { SetShareStatus(value); return *this;} + + /** + *

      Sharing status for the Profile.

      + */ + inline Profile& WithShareStatus(ShareStatus&& value) { SetShareStatus(std::move(value)); return *this;} + + + /** + *

      The status for the Profile.

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

      The status for the Profile.

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

      The status for the Profile.

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

      The status for the Profile.

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

      The status for the Profile.

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

      The status for the Profile.

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

      Status message that includes additiona information about the Profile.

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

      Status message that includes additiona information about the Profile.

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

      Status message that includes additiona information about the Profile.

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

      Status message that includes additiona information about the Profile.

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

      Status message that includes additiona information about the Profile.

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

      Status message that includes additiona information about the Profile.

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

      Status message that includes additiona information about the Profile.

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

      Status message that includes additiona information about the Profile.

      + */ + inline Profile& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;} + + private: + + Aws::String m_arn; + bool m_arnHasBeenSet = false; + + Aws::String m_clientToken; + bool m_clientTokenHasBeenSet = false; + + Aws::Utils::DateTime m_creationTime; + bool m_creationTimeHasBeenSet = false; + + Aws::String m_id; + bool m_idHasBeenSet = false; + + Aws::Utils::DateTime m_modificationTime; + bool m_modificationTimeHasBeenSet = false; + + Aws::String m_name; + bool m_nameHasBeenSet = false; + + Aws::String m_ownerId; + bool m_ownerIdHasBeenSet = false; + + ShareStatus m_shareStatus; + bool m_shareStatusHasBeenSet = false; + + ProfileStatus m_status; + bool m_statusHasBeenSet = false; + + Aws::String m_statusMessage; + bool m_statusMessageHasBeenSet = false; + }; + +} // namespace Model +} // namespace Route53Profiles +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/ProfileAssociation.h b/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/ProfileAssociation.h new file mode 100644 index 00000000000..598eaa557bc --- /dev/null +++ b/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/ProfileAssociation.h @@ -0,0 +1,425 @@ +/** + * 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 Route53Profiles +{ +namespace Model +{ + + /** + *

      An association between a Route 53 Profile and a VPC.

      See + * Also:

      AWS + * API Reference

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

      The date and time that the Profile association was created, in Unix time + * format and Coordinated Universal Time (UTC).

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

      The date and time that the Profile association was created, in Unix time + * format and Coordinated Universal Time (UTC).

      + */ + inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; } + + /** + *

      The date and time that the Profile association was created, in Unix time + * format and Coordinated Universal Time (UTC).

      + */ + inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; } + + /** + *

      The date and time that the Profile association was created, in Unix time + * format and Coordinated Universal Time (UTC).

      + */ + inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); } + + /** + *

      The date and time that the Profile association was created, in Unix time + * format and Coordinated Universal Time (UTC).

      + */ + inline ProfileAssociation& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;} + + /** + *

      The date and time that the Profile association was created, in Unix time + * format and Coordinated Universal Time (UTC).

      + */ + inline ProfileAssociation& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;} + + + /** + *

      ID of the Profile association.

      + */ + inline const Aws::String& GetId() const{ return m_id; } + + /** + *

      ID of the Profile association.

      + */ + inline bool IdHasBeenSet() const { return m_idHasBeenSet; } + + /** + *

      ID of the Profile association.

      + */ + inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } + + /** + *

      ID of the Profile association.

      + */ + inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } + + /** + *

      ID of the Profile association.

      + */ + inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } + + /** + *

      ID of the Profile association.

      + */ + inline ProfileAssociation& WithId(const Aws::String& value) { SetId(value); return *this;} + + /** + *

      ID of the Profile association.

      + */ + inline ProfileAssociation& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} + + /** + *

      ID of the Profile association.

      + */ + inline ProfileAssociation& WithId(const char* value) { SetId(value); return *this;} + + + /** + *

      The date and time that the Profile association was modified, in Unix time + * format and Coordinated Universal Time (UTC).

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

      The date and time that the Profile association was modified, in Unix time + * format and Coordinated Universal Time (UTC).

      + */ + inline bool ModificationTimeHasBeenSet() const { return m_modificationTimeHasBeenSet; } + + /** + *

      The date and time that the Profile association was modified, in Unix time + * format and Coordinated Universal Time (UTC).

      + */ + inline void SetModificationTime(const Aws::Utils::DateTime& value) { m_modificationTimeHasBeenSet = true; m_modificationTime = value; } + + /** + *

      The date and time that the Profile association was modified, in Unix time + * format and Coordinated Universal Time (UTC).

      + */ + inline void SetModificationTime(Aws::Utils::DateTime&& value) { m_modificationTimeHasBeenSet = true; m_modificationTime = std::move(value); } + + /** + *

      The date and time that the Profile association was modified, in Unix time + * format and Coordinated Universal Time (UTC).

      + */ + inline ProfileAssociation& WithModificationTime(const Aws::Utils::DateTime& value) { SetModificationTime(value); return *this;} + + /** + *

      The date and time that the Profile association was modified, in Unix time + * format and Coordinated Universal Time (UTC).

      + */ + inline ProfileAssociation& WithModificationTime(Aws::Utils::DateTime&& value) { SetModificationTime(std::move(value)); return *this;} + + + /** + *

      Name of the Profile association.

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

      Name of the Profile association.

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

      Name of the Profile association.

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

      Name of the Profile association.

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

      Name of the Profile association.

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

      Name of the Profile association.

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

      Name of the Profile association.

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

      Name of the Profile association.

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

      Amazon Web Services account ID of the Profile association owner.

      + */ + inline const Aws::String& GetOwnerId() const{ return m_ownerId; } + + /** + *

      Amazon Web Services account ID of the Profile association owner.

      + */ + inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; } + + /** + *

      Amazon Web Services account ID of the Profile association owner.

      + */ + inline void SetOwnerId(const Aws::String& value) { m_ownerIdHasBeenSet = true; m_ownerId = value; } + + /** + *

      Amazon Web Services account ID of the Profile association owner.

      + */ + inline void SetOwnerId(Aws::String&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::move(value); } + + /** + *

      Amazon Web Services account ID of the Profile association owner.

      + */ + inline void SetOwnerId(const char* value) { m_ownerIdHasBeenSet = true; m_ownerId.assign(value); } + + /** + *

      Amazon Web Services account ID of the Profile association owner.

      + */ + inline ProfileAssociation& WithOwnerId(const Aws::String& value) { SetOwnerId(value); return *this;} + + /** + *

      Amazon Web Services account ID of the Profile association owner.

      + */ + inline ProfileAssociation& WithOwnerId(Aws::String&& value) { SetOwnerId(std::move(value)); return *this;} + + /** + *

      Amazon Web Services account ID of the Profile association owner.

      + */ + inline ProfileAssociation& WithOwnerId(const char* value) { SetOwnerId(value); return *this;} + + + /** + *

      ID of the Profile.

      + */ + inline const Aws::String& GetProfileId() const{ return m_profileId; } + + /** + *

      ID of the Profile.

      + */ + inline bool ProfileIdHasBeenSet() const { return m_profileIdHasBeenSet; } + + /** + *

      ID of the Profile.

      + */ + inline void SetProfileId(const Aws::String& value) { m_profileIdHasBeenSet = true; m_profileId = value; } + + /** + *

      ID of the Profile.

      + */ + inline void SetProfileId(Aws::String&& value) { m_profileIdHasBeenSet = true; m_profileId = std::move(value); } + + /** + *

      ID of the Profile.

      + */ + inline void SetProfileId(const char* value) { m_profileIdHasBeenSet = true; m_profileId.assign(value); } + + /** + *

      ID of the Profile.

      + */ + inline ProfileAssociation& WithProfileId(const Aws::String& value) { SetProfileId(value); return *this;} + + /** + *

      ID of the Profile.

      + */ + inline ProfileAssociation& WithProfileId(Aws::String&& value) { SetProfileId(std::move(value)); return *this;} + + /** + *

      ID of the Profile.

      + */ + inline ProfileAssociation& WithProfileId(const char* value) { SetProfileId(value); return *this;} + + + /** + *

      The Amazon Resource Name (ARN) of the VPC.

      + */ + inline const Aws::String& GetResourceId() const{ return m_resourceId; } + + /** + *

      The Amazon Resource Name (ARN) of the VPC.

      + */ + inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; } + + /** + *

      The Amazon Resource Name (ARN) of the VPC.

      + */ + inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; } + + /** + *

      The Amazon Resource Name (ARN) of the VPC.

      + */ + inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); } + + /** + *

      The Amazon Resource Name (ARN) of the VPC.

      + */ + inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); } + + /** + *

      The Amazon Resource Name (ARN) of the VPC.

      + */ + inline ProfileAssociation& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;} + + /** + *

      The Amazon Resource Name (ARN) of the VPC.

      + */ + inline ProfileAssociation& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;} + + /** + *

      The Amazon Resource Name (ARN) of the VPC.

      + */ + inline ProfileAssociation& WithResourceId(const char* value) { SetResourceId(value); return *this;} + + + /** + *

      Status of the Profile association.

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

      Status of the Profile association.

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

      Status of the Profile association.

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

      Status of the Profile association.

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

      Status of the Profile association.

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

      Status of the Profile association.

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

      Additional information about the Profile association.

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

      Additional information about the Profile association.

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

      Additional information about the Profile association.

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

      Additional information about the Profile association.

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

      Additional information about the Profile association.

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

      Additional information about the Profile association.

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

      Additional information about the Profile association.

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

      Additional information about the Profile association.

      + */ + inline ProfileAssociation& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;} + + private: + + Aws::Utils::DateTime m_creationTime; + bool m_creationTimeHasBeenSet = false; + + Aws::String m_id; + bool m_idHasBeenSet = false; + + Aws::Utils::DateTime m_modificationTime; + bool m_modificationTimeHasBeenSet = false; + + Aws::String m_name; + bool m_nameHasBeenSet = false; + + Aws::String m_ownerId; + bool m_ownerIdHasBeenSet = false; + + Aws::String m_profileId; + bool m_profileIdHasBeenSet = false; + + Aws::String m_resourceId; + bool m_resourceIdHasBeenSet = false; + + ProfileStatus m_status; + bool m_statusHasBeenSet = false; + + Aws::String m_statusMessage; + bool m_statusMessageHasBeenSet = false; + }; + +} // namespace Model +} // namespace Route53Profiles +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/ProfileResourceAssociation.h b/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/ProfileResourceAssociation.h new file mode 100644 index 00000000000..a7efbe1b181 --- /dev/null +++ b/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/ProfileResourceAssociation.h @@ -0,0 +1,537 @@ +/** + * 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 Route53Profiles +{ +namespace Model +{ + + /** + *

      The association between a Route 53 Profile and resources.

      See + * Also:

      AWS + * API Reference

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

      The date and time that the Profile resource association was created, in Unix + * time format and Coordinated Universal Time (UTC).

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

      The date and time that the Profile resource association was created, in Unix + * time format and Coordinated Universal Time (UTC).

      + */ + inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; } + + /** + *

      The date and time that the Profile resource association was created, in Unix + * time format and Coordinated Universal Time (UTC).

      + */ + inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; } + + /** + *

      The date and time that the Profile resource association was created, in Unix + * time format and Coordinated Universal Time (UTC).

      + */ + inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); } + + /** + *

      The date and time that the Profile resource association was created, in Unix + * time format and Coordinated Universal Time (UTC).

      + */ + inline ProfileResourceAssociation& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;} + + /** + *

      The date and time that the Profile resource association was created, in Unix + * time format and Coordinated Universal Time (UTC).

      + */ + inline ProfileResourceAssociation& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;} + + + /** + *

      ID of the Profile resource association.

      + */ + inline const Aws::String& GetId() const{ return m_id; } + + /** + *

      ID of the Profile resource association.

      + */ + inline bool IdHasBeenSet() const { return m_idHasBeenSet; } + + /** + *

      ID of the Profile resource association.

      + */ + inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } + + /** + *

      ID of the Profile resource association.

      + */ + inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } + + /** + *

      ID of the Profile resource association.

      + */ + inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } + + /** + *

      ID of the Profile resource association.

      + */ + inline ProfileResourceAssociation& WithId(const Aws::String& value) { SetId(value); return *this;} + + /** + *

      ID of the Profile resource association.

      + */ + inline ProfileResourceAssociation& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} + + /** + *

      ID of the Profile resource association.

      + */ + inline ProfileResourceAssociation& WithId(const char* value) { SetId(value); return *this;} + + + /** + *

      The date and time that the Profile resource association was modified, in + * Unix time format and Coordinated Universal Time (UTC).

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

      The date and time that the Profile resource association was modified, in + * Unix time format and Coordinated Universal Time (UTC).

      + */ + inline bool ModificationTimeHasBeenSet() const { return m_modificationTimeHasBeenSet; } + + /** + *

      The date and time that the Profile resource association was modified, in + * Unix time format and Coordinated Universal Time (UTC).

      + */ + inline void SetModificationTime(const Aws::Utils::DateTime& value) { m_modificationTimeHasBeenSet = true; m_modificationTime = value; } + + /** + *

      The date and time that the Profile resource association was modified, in + * Unix time format and Coordinated Universal Time (UTC).

      + */ + inline void SetModificationTime(Aws::Utils::DateTime&& value) { m_modificationTimeHasBeenSet = true; m_modificationTime = std::move(value); } + + /** + *

      The date and time that the Profile resource association was modified, in + * Unix time format and Coordinated Universal Time (UTC).

      + */ + inline ProfileResourceAssociation& WithModificationTime(const Aws::Utils::DateTime& value) { SetModificationTime(value); return *this;} + + /** + *

      The date and time that the Profile resource association was modified, in + * Unix time format and Coordinated Universal Time (UTC).

      + */ + inline ProfileResourceAssociation& WithModificationTime(Aws::Utils::DateTime&& value) { SetModificationTime(std::move(value)); return *this;} + + + /** + *

      Name of the Profile resource association.

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

      Name of the Profile resource association.

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

      Name of the Profile resource association.

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

      Name of the Profile resource association.

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

      Name of the Profile resource association.

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

      Name of the Profile resource association.

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

      Name of the Profile resource association.

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

      Name of the Profile resource association.

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

      Amazon Web Services account ID of the Profile resource association owner. + *

      + */ + inline const Aws::String& GetOwnerId() const{ return m_ownerId; } + + /** + *

      Amazon Web Services account ID of the Profile resource association owner. + *

      + */ + inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; } + + /** + *

      Amazon Web Services account ID of the Profile resource association owner. + *

      + */ + inline void SetOwnerId(const Aws::String& value) { m_ownerIdHasBeenSet = true; m_ownerId = value; } + + /** + *

      Amazon Web Services account ID of the Profile resource association owner. + *

      + */ + inline void SetOwnerId(Aws::String&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::move(value); } + + /** + *

      Amazon Web Services account ID of the Profile resource association owner. + *

      + */ + inline void SetOwnerId(const char* value) { m_ownerIdHasBeenSet = true; m_ownerId.assign(value); } + + /** + *

      Amazon Web Services account ID of the Profile resource association owner. + *

      + */ + inline ProfileResourceAssociation& WithOwnerId(const Aws::String& value) { SetOwnerId(value); return *this;} + + /** + *

      Amazon Web Services account ID of the Profile resource association owner. + *

      + */ + inline ProfileResourceAssociation& WithOwnerId(Aws::String&& value) { SetOwnerId(std::move(value)); return *this;} + + /** + *

      Amazon Web Services account ID of the Profile resource association owner. + *

      + */ + inline ProfileResourceAssociation& WithOwnerId(const char* value) { SetOwnerId(value); return *this;} + + + /** + *

      Profile ID of the Profile that the resources are associated with.

      + */ + inline const Aws::String& GetProfileId() const{ return m_profileId; } + + /** + *

      Profile ID of the Profile that the resources are associated with.

      + */ + inline bool ProfileIdHasBeenSet() const { return m_profileIdHasBeenSet; } + + /** + *

      Profile ID of the Profile that the resources are associated with.

      + */ + inline void SetProfileId(const Aws::String& value) { m_profileIdHasBeenSet = true; m_profileId = value; } + + /** + *

      Profile ID of the Profile that the resources are associated with.

      + */ + inline void SetProfileId(Aws::String&& value) { m_profileIdHasBeenSet = true; m_profileId = std::move(value); } + + /** + *

      Profile ID of the Profile that the resources are associated with.

      + */ + inline void SetProfileId(const char* value) { m_profileIdHasBeenSet = true; m_profileId.assign(value); } + + /** + *

      Profile ID of the Profile that the resources are associated with.

      + */ + inline ProfileResourceAssociation& WithProfileId(const Aws::String& value) { SetProfileId(value); return *this;} + + /** + *

      Profile ID of the Profile that the resources are associated with.

      + */ + inline ProfileResourceAssociation& WithProfileId(Aws::String&& value) { SetProfileId(std::move(value)); return *this;} + + /** + *

      Profile ID of the Profile that the resources are associated with.

      + */ + inline ProfileResourceAssociation& WithProfileId(const char* value) { SetProfileId(value); return *this;} + + + /** + *

      The Amazon Resource Name (ARN) of the resource association.

      + */ + inline const Aws::String& GetResourceArn() const{ return m_resourceArn; } + + /** + *

      The Amazon Resource Name (ARN) of the resource association.

      + */ + inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; } + + /** + *

      The Amazon Resource Name (ARN) of the resource association.

      + */ + inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; } + + /** + *

      The Amazon Resource Name (ARN) of the resource association.

      + */ + inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); } + + /** + *

      The Amazon Resource Name (ARN) of the resource association.

      + */ + inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); } + + /** + *

      The Amazon Resource Name (ARN) of the resource association.

      + */ + inline ProfileResourceAssociation& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;} + + /** + *

      The Amazon Resource Name (ARN) of the resource association.

      + */ + inline ProfileResourceAssociation& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;} + + /** + *

      The Amazon Resource Name (ARN) of the resource association.

      + */ + inline ProfileResourceAssociation& WithResourceArn(const char* value) { SetResourceArn(value); return *this;} + + + /** + *

      If the DNS resource is a DNS Firewall rule group, this indicates the + * priority.

      + */ + inline const Aws::String& GetResourceProperties() const{ return m_resourceProperties; } + + /** + *

      If the DNS resource is a DNS Firewall rule group, this indicates the + * priority.

      + */ + inline bool ResourcePropertiesHasBeenSet() const { return m_resourcePropertiesHasBeenSet; } + + /** + *

      If the DNS resource is a DNS Firewall rule group, this indicates the + * priority.

      + */ + inline void SetResourceProperties(const Aws::String& value) { m_resourcePropertiesHasBeenSet = true; m_resourceProperties = value; } + + /** + *

      If the DNS resource is a DNS Firewall rule group, this indicates the + * priority.

      + */ + inline void SetResourceProperties(Aws::String&& value) { m_resourcePropertiesHasBeenSet = true; m_resourceProperties = std::move(value); } + + /** + *

      If the DNS resource is a DNS Firewall rule group, this indicates the + * priority.

      + */ + inline void SetResourceProperties(const char* value) { m_resourcePropertiesHasBeenSet = true; m_resourceProperties.assign(value); } + + /** + *

      If the DNS resource is a DNS Firewall rule group, this indicates the + * priority.

      + */ + inline ProfileResourceAssociation& WithResourceProperties(const Aws::String& value) { SetResourceProperties(value); return *this;} + + /** + *

      If the DNS resource is a DNS Firewall rule group, this indicates the + * priority.

      + */ + inline ProfileResourceAssociation& WithResourceProperties(Aws::String&& value) { SetResourceProperties(std::move(value)); return *this;} + + /** + *

      If the DNS resource is a DNS Firewall rule group, this indicates the + * priority.

      + */ + inline ProfileResourceAssociation& WithResourceProperties(const char* value) { SetResourceProperties(value); return *this;} + + + /** + *

      Resource type, such as a private hosted zone, or DNS Firewall rule group. + *

      + */ + inline const Aws::String& GetResourceType() const{ return m_resourceType; } + + /** + *

      Resource type, such as a private hosted zone, or DNS Firewall rule group. + *

      + */ + inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; } + + /** + *

      Resource type, such as a private hosted zone, or DNS Firewall rule group. + *

      + */ + inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; } + + /** + *

      Resource type, such as a private hosted zone, or DNS Firewall rule group. + *

      + */ + inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); } + + /** + *

      Resource type, such as a private hosted zone, or DNS Firewall rule group. + *

      + */ + inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); } + + /** + *

      Resource type, such as a private hosted zone, or DNS Firewall rule group. + *

      + */ + inline ProfileResourceAssociation& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;} + + /** + *

      Resource type, such as a private hosted zone, or DNS Firewall rule group. + *

      + */ + inline ProfileResourceAssociation& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;} + + /** + *

      Resource type, such as a private hosted zone, or DNS Firewall rule group. + *

      + */ + inline ProfileResourceAssociation& WithResourceType(const char* value) { SetResourceType(value); return *this;} + + + /** + *

      Status of the Profile resource association.

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

      Status of the Profile resource association.

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

      Status of the Profile resource association.

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

      Status of the Profile resource association.

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

      Status of the Profile resource association.

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

      Status of the Profile resource association.

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

      Additional information about the Profile resource association.

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

      Additional information about the Profile resource association.

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

      Additional information about the Profile resource association.

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

      Additional information about the Profile resource association.

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

      Additional information about the Profile resource association.

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

      Additional information about the Profile resource association.

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

      Additional information about the Profile resource association.

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

      Additional information about the Profile resource association.

      + */ + inline ProfileResourceAssociation& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;} + + private: + + Aws::Utils::DateTime m_creationTime; + bool m_creationTimeHasBeenSet = false; + + Aws::String m_id; + bool m_idHasBeenSet = false; + + Aws::Utils::DateTime m_modificationTime; + bool m_modificationTimeHasBeenSet = false; + + Aws::String m_name; + bool m_nameHasBeenSet = false; + + Aws::String m_ownerId; + bool m_ownerIdHasBeenSet = false; + + Aws::String m_profileId; + bool m_profileIdHasBeenSet = false; + + Aws::String m_resourceArn; + bool m_resourceArnHasBeenSet = false; + + Aws::String m_resourceProperties; + bool m_resourcePropertiesHasBeenSet = false; + + Aws::String m_resourceType; + bool m_resourceTypeHasBeenSet = false; + + ProfileStatus m_status; + bool m_statusHasBeenSet = false; + + Aws::String m_statusMessage; + bool m_statusMessageHasBeenSet = false; + }; + +} // namespace Model +} // namespace Route53Profiles +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/ProfileStatus.h b/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/ProfileStatus.h new file mode 100644 index 00000000000..34eab24cbbf --- /dev/null +++ b/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/ProfileStatus.h @@ -0,0 +1,35 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace Route53Profiles +{ +namespace Model +{ + enum class ProfileStatus + { + NOT_SET, + COMPLETE, + DELETING, + UPDATING, + CREATING, + DELETED, + FAILED + }; + +namespace ProfileStatusMapper +{ +AWS_ROUTE53PROFILES_API ProfileStatus GetProfileStatusForName(const Aws::String& name); + +AWS_ROUTE53PROFILES_API Aws::String GetNameForProfileStatus(ProfileStatus value); +} // namespace ProfileStatusMapper +} // namespace Model +} // namespace Route53Profiles +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/ProfileSummary.h b/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/ProfileSummary.h new file mode 100644 index 00000000000..e0d3faadc02 --- /dev/null +++ b/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/ProfileSummary.h @@ -0,0 +1,211 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace Route53Profiles +{ +namespace Model +{ + + /** + *

      Summary information about a Route 53 Profile.

      See Also:

      AWS + * API Reference

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

      The Amazon Resource Name (ARN) of the Profile.

      + */ + inline const Aws::String& GetArn() const{ return m_arn; } + + /** + *

      The Amazon Resource Name (ARN) of the Profile.

      + */ + inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } + + /** + *

      The Amazon Resource Name (ARN) of the Profile.

      + */ + inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } + + /** + *

      The Amazon Resource Name (ARN) of the Profile.

      + */ + inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } + + /** + *

      The Amazon Resource Name (ARN) of the Profile.

      + */ + inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } + + /** + *

      The Amazon Resource Name (ARN) of the Profile.

      + */ + inline ProfileSummary& WithArn(const Aws::String& value) { SetArn(value); return *this;} + + /** + *

      The Amazon Resource Name (ARN) of the Profile.

      + */ + inline ProfileSummary& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} + + /** + *

      The Amazon Resource Name (ARN) of the Profile.

      + */ + inline ProfileSummary& WithArn(const char* value) { SetArn(value); return *this;} + + + /** + *

      ID of the Profile.

      + */ + inline const Aws::String& GetId() const{ return m_id; } + + /** + *

      ID of the Profile.

      + */ + inline bool IdHasBeenSet() const { return m_idHasBeenSet; } + + /** + *

      ID of the Profile.

      + */ + inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } + + /** + *

      ID of the Profile.

      + */ + inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } + + /** + *

      ID of the Profile.

      + */ + inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } + + /** + *

      ID of the Profile.

      + */ + inline ProfileSummary& WithId(const Aws::String& value) { SetId(value); return *this;} + + /** + *

      ID of the Profile.

      + */ + inline ProfileSummary& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} + + /** + *

      ID of the Profile.

      + */ + inline ProfileSummary& WithId(const char* value) { SetId(value); return *this;} + + + /** + *

      Name of the Profile.

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

      Name of the Profile.

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

      Name of the Profile.

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

      Name of the Profile.

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

      Name of the Profile.

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

      Name of the Profile.

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

      Name of the Profile.

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

      Name of the Profile.

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

      Share status of the Profile.

      + */ + inline const ShareStatus& GetShareStatus() const{ return m_shareStatus; } + + /** + *

      Share status of the Profile.

      + */ + inline bool ShareStatusHasBeenSet() const { return m_shareStatusHasBeenSet; } + + /** + *

      Share status of the Profile.

      + */ + inline void SetShareStatus(const ShareStatus& value) { m_shareStatusHasBeenSet = true; m_shareStatus = value; } + + /** + *

      Share status of the Profile.

      + */ + inline void SetShareStatus(ShareStatus&& value) { m_shareStatusHasBeenSet = true; m_shareStatus = std::move(value); } + + /** + *

      Share status of the Profile.

      + */ + inline ProfileSummary& WithShareStatus(const ShareStatus& value) { SetShareStatus(value); return *this;} + + /** + *

      Share status of the Profile.

      + */ + inline ProfileSummary& WithShareStatus(ShareStatus&& value) { SetShareStatus(std::move(value)); return *this;} + + private: + + Aws::String m_arn; + bool m_arnHasBeenSet = false; + + Aws::String m_id; + bool m_idHasBeenSet = false; + + Aws::String m_name; + bool m_nameHasBeenSet = false; + + ShareStatus m_shareStatus; + bool m_shareStatusHasBeenSet = false; + }; + +} // namespace Model +} // namespace Route53Profiles +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/ResourceExistsException.h b/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/ResourceExistsException.h new file mode 100644 index 00000000000..12d368bf8f6 --- /dev/null +++ b/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/ResourceExistsException.h @@ -0,0 +1,117 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace Route53Profiles +{ +namespace Model +{ + + /** + *

      The resource you are trying to associate, has already been associated. + *

      See Also:

      AWS + * API Reference

      + */ + class ResourceExistsException + { + public: + AWS_ROUTE53PROFILES_API ResourceExistsException(); + AWS_ROUTE53PROFILES_API ResourceExistsException(Aws::Utils::Json::JsonView jsonValue); + AWS_ROUTE53PROFILES_API ResourceExistsException& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_ROUTE53PROFILES_API Aws::Utils::Json::JsonValue Jsonize() const; + + + + inline const Aws::String& GetMessage() const{ return m_message; } + + + inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } + + + inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } + + + inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } + + + inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } + + + inline ResourceExistsException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} + + + inline ResourceExistsException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} + + + inline ResourceExistsException& WithMessage(const char* value) { SetMessage(value); return *this;} + + + /** + *

      The resource type that caused the resource exists exception.

      + */ + inline const Aws::String& GetResourceType() const{ return m_resourceType; } + + /** + *

      The resource type that caused the resource exists exception.

      + */ + inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; } + + /** + *

      The resource type that caused the resource exists exception.

      + */ + inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; } + + /** + *

      The resource type that caused the resource exists exception.

      + */ + inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); } + + /** + *

      The resource type that caused the resource exists exception.

      + */ + inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); } + + /** + *

      The resource type that caused the resource exists exception.

      + */ + inline ResourceExistsException& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;} + + /** + *

      The resource type that caused the resource exists exception.

      + */ + inline ResourceExistsException& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;} + + /** + *

      The resource type that caused the resource exists exception.

      + */ + inline ResourceExistsException& WithResourceType(const char* value) { SetResourceType(value); return *this;} + + private: + + Aws::String m_message; + bool m_messageHasBeenSet = false; + + Aws::String m_resourceType; + bool m_resourceTypeHasBeenSet = false; + }; + +} // namespace Model +} // namespace Route53Profiles +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/ResourceNotFoundException.h b/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/ResourceNotFoundException.h new file mode 100644 index 00000000000..d962adc1139 --- /dev/null +++ b/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/ResourceNotFoundException.h @@ -0,0 +1,117 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace Route53Profiles +{ +namespace Model +{ + + /** + *

      The resource you are associating is not found.

      See Also:

      + * AWS + * API Reference

      + */ + class ResourceNotFoundException + { + public: + AWS_ROUTE53PROFILES_API ResourceNotFoundException(); + AWS_ROUTE53PROFILES_API ResourceNotFoundException(Aws::Utils::Json::JsonView jsonValue); + AWS_ROUTE53PROFILES_API ResourceNotFoundException& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_ROUTE53PROFILES_API Aws::Utils::Json::JsonValue Jsonize() const; + + + + inline const Aws::String& GetMessage() const{ return m_message; } + + + inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } + + + inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } + + + inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } + + + inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } + + + inline ResourceNotFoundException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} + + + inline ResourceNotFoundException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} + + + inline ResourceNotFoundException& WithMessage(const char* value) { SetMessage(value); return *this;} + + + /** + *

      The resource type that caused the resource not found exception.

      + */ + inline const Aws::String& GetResourceType() const{ return m_resourceType; } + + /** + *

      The resource type that caused the resource not found exception.

      + */ + inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; } + + /** + *

      The resource type that caused the resource not found exception.

      + */ + inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; } + + /** + *

      The resource type that caused the resource not found exception.

      + */ + inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); } + + /** + *

      The resource type that caused the resource not found exception.

      + */ + inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); } + + /** + *

      The resource type that caused the resource not found exception.

      + */ + inline ResourceNotFoundException& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;} + + /** + *

      The resource type that caused the resource not found exception.

      + */ + inline ResourceNotFoundException& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;} + + /** + *

      The resource type that caused the resource not found exception.

      + */ + inline ResourceNotFoundException& WithResourceType(const char* value) { SetResourceType(value); return *this;} + + private: + + Aws::String m_message; + bool m_messageHasBeenSet = false; + + Aws::String m_resourceType; + bool m_resourceTypeHasBeenSet = false; + }; + +} // namespace Model +} // namespace Route53Profiles +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/ShareStatus.h b/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/ShareStatus.h new file mode 100644 index 00000000000..d3ba401f972 --- /dev/null +++ b/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/ShareStatus.h @@ -0,0 +1,32 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace Route53Profiles +{ +namespace Model +{ + enum class ShareStatus + { + NOT_SET, + NOT_SHARED, + SHARED_WITH_ME, + SHARED_BY_ME + }; + +namespace ShareStatusMapper +{ +AWS_ROUTE53PROFILES_API ShareStatus GetShareStatusForName(const Aws::String& name); + +AWS_ROUTE53PROFILES_API Aws::String GetNameForShareStatus(ShareStatus value); +} // namespace ShareStatusMapper +} // namespace Model +} // namespace Route53Profiles +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/Tag.h b/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/Tag.h new file mode 100644 index 00000000000..d30ad37e1e9 --- /dev/null +++ b/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/Tag.h @@ -0,0 +1,132 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace Route53Profiles +{ +namespace Model +{ + + /** + *

      Tag for the Profile.

      See Also:

      AWS + * API Reference

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

      Key associated with the Tag.

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

      Key associated with the Tag.

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

      Key associated with the Tag.

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

      Key associated with the Tag.

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

      Key associated with the Tag.

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

      Key associated with the Tag.

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

      Key associated with the Tag.

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

      Key associated with the Tag.

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

      Value for the Tag.

      + */ + inline const Aws::String& GetValue() const{ return m_value; } + + /** + *

      Value for the Tag.

      + */ + inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; } + + /** + *

      Value for the Tag.

      + */ + inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; } + + /** + *

      Value for the Tag.

      + */ + inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); } + + /** + *

      Value for the Tag.

      + */ + inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); } + + /** + *

      Value for the Tag.

      + */ + inline Tag& WithValue(const Aws::String& value) { SetValue(value); return *this;} + + /** + *

      Value for the Tag.

      + */ + inline Tag& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;} + + /** + *

      Value for the Tag.

      + */ + inline Tag& WithValue(const char* value) { SetValue(value); return *this;} + + private: + + Aws::String m_key; + bool m_keyHasBeenSet = false; + + Aws::String m_value; + bool m_valueHasBeenSet = false; + }; + +} // namespace Model +} // namespace Route53Profiles +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/TagResourceRequest.h b/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/TagResourceRequest.h new file mode 100644 index 00000000000..c6ea5216e57 --- /dev/null +++ b/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/TagResourceRequest.h @@ -0,0 +1,161 @@ +/** + * 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 Route53Profiles +{ +namespace Model +{ + + /** + */ + class TagResourceRequest : public Route53ProfilesRequest + { + public: + AWS_ROUTE53PROFILES_API TagResourceRequest(); + + // 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 "TagResource"; } + + AWS_ROUTE53PROFILES_API Aws::String SerializePayload() const override; + + + /** + *

      The Amazon Resource Name (ARN) for the resource that you want to add tags + * to.

      + */ + inline const Aws::String& GetResourceArn() const{ return m_resourceArn; } + + /** + *

      The Amazon Resource Name (ARN) for the resource that you want to add tags + * to.

      + */ + inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; } + + /** + *

      The Amazon Resource Name (ARN) for the resource that you want to add tags + * to.

      + */ + inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; } + + /** + *

      The Amazon Resource Name (ARN) for the resource that you want to add tags + * to.

      + */ + inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); } + + /** + *

      The Amazon Resource Name (ARN) for the resource that you want to add tags + * to.

      + */ + inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); } + + /** + *

      The Amazon Resource Name (ARN) for the resource that you want to add tags + * to.

      + */ + inline TagResourceRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;} + + /** + *

      The Amazon Resource Name (ARN) for the resource that you want to add tags + * to.

      + */ + inline TagResourceRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;} + + /** + *

      The Amazon Resource Name (ARN) for the resource that you want to add tags + * to.

      + */ + inline TagResourceRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;} + + + /** + *

      The tags that you want to add to the specified resource.

      + */ + inline const Aws::Map& GetTags() const{ return m_tags; } + + /** + *

      The tags that you want to add to the specified resource.

      + */ + inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } + + /** + *

      The tags that you want to add to the specified resource.

      + */ + inline void SetTags(const Aws::Map& value) { m_tagsHasBeenSet = true; m_tags = value; } + + /** + *

      The tags that you want to add to the specified resource.

      + */ + inline void SetTags(Aws::Map&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } + + /** + *

      The tags that you want to add to the specified resource.

      + */ + inline TagResourceRequest& WithTags(const Aws::Map& value) { SetTags(value); return *this;} + + /** + *

      The tags that you want to add to the specified resource.

      + */ + inline TagResourceRequest& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} + + /** + *

      The tags that you want to add to the specified resource.

      + */ + inline TagResourceRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } + + /** + *

      The tags that you want to add to the specified resource.

      + */ + inline TagResourceRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } + + /** + *

      The tags that you want to add to the specified resource.

      + */ + inline TagResourceRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } + + /** + *

      The tags that you want to add to the specified resource.

      + */ + inline TagResourceRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } + + /** + *

      The tags that you want to add to the specified resource.

      + */ + inline TagResourceRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } + + /** + *

      The tags that you want to add to the specified resource.

      + */ + inline TagResourceRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } + + /** + *

      The tags that you want to add to the specified resource.

      + */ + inline TagResourceRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } + + private: + + Aws::String m_resourceArn; + bool m_resourceArnHasBeenSet = false; + + Aws::Map m_tags; + bool m_tagsHasBeenSet = false; + }; + +} // namespace Model +} // namespace Route53Profiles +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/TagResourceResult.h b/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/TagResourceResult.h new file mode 100644 index 00000000000..72f8f970eb7 --- /dev/null +++ b/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/TagResourceResult.h @@ -0,0 +1,63 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace Route53Profiles +{ +namespace Model +{ + class TagResourceResult + { + public: + AWS_ROUTE53PROFILES_API TagResourceResult(); + AWS_ROUTE53PROFILES_API TagResourceResult(const Aws::AmazonWebServiceResult& result); + AWS_ROUTE53PROFILES_API TagResourceResult& operator=(const Aws::AmazonWebServiceResult& result); + + + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + + + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + + + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + + + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + + + inline TagResourceResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + + + inline TagResourceResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + + + inline TagResourceResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + + private: + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace Route53Profiles +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/UntagResourceRequest.h b/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/UntagResourceRequest.h new file mode 100644 index 00000000000..055410cea54 --- /dev/null +++ b/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/UntagResourceRequest.h @@ -0,0 +1,147 @@ +/** + * 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 Http +{ + class URI; +} //namespace Http +namespace Route53Profiles +{ +namespace Model +{ + + /** + */ + class UntagResourceRequest : public Route53ProfilesRequest + { + public: + AWS_ROUTE53PROFILES_API UntagResourceRequest(); + + // 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 "UntagResource"; } + + AWS_ROUTE53PROFILES_API Aws::String SerializePayload() const override; + + AWS_ROUTE53PROFILES_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; + + + /** + *

      The Amazon Resource Name (ARN) for the resource that you want to remove tags + * from.

      + */ + inline const Aws::String& GetResourceArn() const{ return m_resourceArn; } + + /** + *

      The Amazon Resource Name (ARN) for the resource that you want to remove tags + * from.

      + */ + inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; } + + /** + *

      The Amazon Resource Name (ARN) for the resource that you want to remove tags + * from.

      + */ + inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; } + + /** + *

      The Amazon Resource Name (ARN) for the resource that you want to remove tags + * from.

      + */ + inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); } + + /** + *

      The Amazon Resource Name (ARN) for the resource that you want to remove tags + * from.

      + */ + inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); } + + /** + *

      The Amazon Resource Name (ARN) for the resource that you want to remove tags + * from.

      + */ + inline UntagResourceRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;} + + /** + *

      The Amazon Resource Name (ARN) for the resource that you want to remove tags + * from.

      + */ + inline UntagResourceRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;} + + /** + *

      The Amazon Resource Name (ARN) for the resource that you want to remove tags + * from.

      + */ + inline UntagResourceRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;} + + + /** + *

      The tags that you want to remove to the specified resource.

      + */ + inline const Aws::Vector& GetTagKeys() const{ return m_tagKeys; } + + /** + *

      The tags that you want to remove to the specified resource.

      + */ + inline bool TagKeysHasBeenSet() const { return m_tagKeysHasBeenSet; } + + /** + *

      The tags that you want to remove to the specified resource.

      + */ + inline void SetTagKeys(const Aws::Vector& value) { m_tagKeysHasBeenSet = true; m_tagKeys = value; } + + /** + *

      The tags that you want to remove to the specified resource.

      + */ + inline void SetTagKeys(Aws::Vector&& value) { m_tagKeysHasBeenSet = true; m_tagKeys = std::move(value); } + + /** + *

      The tags that you want to remove to the specified resource.

      + */ + inline UntagResourceRequest& WithTagKeys(const Aws::Vector& value) { SetTagKeys(value); return *this;} + + /** + *

      The tags that you want to remove to the specified resource.

      + */ + inline UntagResourceRequest& WithTagKeys(Aws::Vector&& value) { SetTagKeys(std::move(value)); return *this;} + + /** + *

      The tags that you want to remove to the specified resource.

      + */ + inline UntagResourceRequest& AddTagKeys(const Aws::String& value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(value); return *this; } + + /** + *

      The tags that you want to remove to the specified resource.

      + */ + inline UntagResourceRequest& AddTagKeys(Aws::String&& value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(std::move(value)); return *this; } + + /** + *

      The tags that you want to remove to the specified resource.

      + */ + inline UntagResourceRequest& AddTagKeys(const char* value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(value); return *this; } + + private: + + Aws::String m_resourceArn; + bool m_resourceArnHasBeenSet = false; + + Aws::Vector m_tagKeys; + bool m_tagKeysHasBeenSet = false; + }; + +} // namespace Model +} // namespace Route53Profiles +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/UntagResourceResult.h b/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/UntagResourceResult.h new file mode 100644 index 00000000000..d33a257d69d --- /dev/null +++ b/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/UntagResourceResult.h @@ -0,0 +1,63 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace Route53Profiles +{ +namespace Model +{ + class UntagResourceResult + { + public: + AWS_ROUTE53PROFILES_API UntagResourceResult(); + AWS_ROUTE53PROFILES_API UntagResourceResult(const Aws::AmazonWebServiceResult& result); + AWS_ROUTE53PROFILES_API UntagResourceResult& operator=(const Aws::AmazonWebServiceResult& result); + + + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + + + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + + + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + + + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + + + inline UntagResourceResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + + + inline UntagResourceResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + + + inline UntagResourceResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + + private: + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace Route53Profiles +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/UpdateProfileResourceAssociationRequest.h b/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/UpdateProfileResourceAssociationRequest.h new file mode 100644 index 00000000000..09040965315 --- /dev/null +++ b/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/UpdateProfileResourceAssociationRequest.h @@ -0,0 +1,179 @@ +/** + * 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 Route53Profiles +{ +namespace Model +{ + + /** + */ + class UpdateProfileResourceAssociationRequest : public Route53ProfilesRequest + { + public: + AWS_ROUTE53PROFILES_API UpdateProfileResourceAssociationRequest(); + + // 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 "UpdateProfileResourceAssociation"; } + + AWS_ROUTE53PROFILES_API Aws::String SerializePayload() const override; + + + /** + *

      Name of the resource association.

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

      Name of the resource association.

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

      Name of the resource association.

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

      Name of the resource association.

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

      Name of the resource association.

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

      Name of the resource association.

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

      Name of the resource association.

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

      Name of the resource association.

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

      ID of the resource association.

      + */ + inline const Aws::String& GetProfileResourceAssociationId() const{ return m_profileResourceAssociationId; } + + /** + *

      ID of the resource association.

      + */ + inline bool ProfileResourceAssociationIdHasBeenSet() const { return m_profileResourceAssociationIdHasBeenSet; } + + /** + *

      ID of the resource association.

      + */ + inline void SetProfileResourceAssociationId(const Aws::String& value) { m_profileResourceAssociationIdHasBeenSet = true; m_profileResourceAssociationId = value; } + + /** + *

      ID of the resource association.

      + */ + inline void SetProfileResourceAssociationId(Aws::String&& value) { m_profileResourceAssociationIdHasBeenSet = true; m_profileResourceAssociationId = std::move(value); } + + /** + *

      ID of the resource association.

      + */ + inline void SetProfileResourceAssociationId(const char* value) { m_profileResourceAssociationIdHasBeenSet = true; m_profileResourceAssociationId.assign(value); } + + /** + *

      ID of the resource association.

      + */ + inline UpdateProfileResourceAssociationRequest& WithProfileResourceAssociationId(const Aws::String& value) { SetProfileResourceAssociationId(value); return *this;} + + /** + *

      ID of the resource association.

      + */ + inline UpdateProfileResourceAssociationRequest& WithProfileResourceAssociationId(Aws::String&& value) { SetProfileResourceAssociationId(std::move(value)); return *this;} + + /** + *

      ID of the resource association.

      + */ + inline UpdateProfileResourceAssociationRequest& WithProfileResourceAssociationId(const char* value) { SetProfileResourceAssociationId(value); return *this;} + + + /** + *

      If you are adding a DNS Firewall rule group, include also a priority in this + * format:

      Key=FirewallRuleGroupPriority,Value=100.

      + */ + inline const Aws::String& GetResourceProperties() const{ return m_resourceProperties; } + + /** + *

      If you are adding a DNS Firewall rule group, include also a priority in this + * format:

      Key=FirewallRuleGroupPriority,Value=100.

      + */ + inline bool ResourcePropertiesHasBeenSet() const { return m_resourcePropertiesHasBeenSet; } + + /** + *

      If you are adding a DNS Firewall rule group, include also a priority in this + * format:

      Key=FirewallRuleGroupPriority,Value=100.

      + */ + inline void SetResourceProperties(const Aws::String& value) { m_resourcePropertiesHasBeenSet = true; m_resourceProperties = value; } + + /** + *

      If you are adding a DNS Firewall rule group, include also a priority in this + * format:

      Key=FirewallRuleGroupPriority,Value=100.

      + */ + inline void SetResourceProperties(Aws::String&& value) { m_resourcePropertiesHasBeenSet = true; m_resourceProperties = std::move(value); } + + /** + *

      If you are adding a DNS Firewall rule group, include also a priority in this + * format:

      Key=FirewallRuleGroupPriority,Value=100.

      + */ + inline void SetResourceProperties(const char* value) { m_resourcePropertiesHasBeenSet = true; m_resourceProperties.assign(value); } + + /** + *

      If you are adding a DNS Firewall rule group, include also a priority in this + * format:

      Key=FirewallRuleGroupPriority,Value=100.

      + */ + inline UpdateProfileResourceAssociationRequest& WithResourceProperties(const Aws::String& value) { SetResourceProperties(value); return *this;} + + /** + *

      If you are adding a DNS Firewall rule group, include also a priority in this + * format:

      Key=FirewallRuleGroupPriority,Value=100.

      + */ + inline UpdateProfileResourceAssociationRequest& WithResourceProperties(Aws::String&& value) { SetResourceProperties(std::move(value)); return *this;} + + /** + *

      If you are adding a DNS Firewall rule group, include also a priority in this + * format:

      Key=FirewallRuleGroupPriority,Value=100.

      + */ + inline UpdateProfileResourceAssociationRequest& WithResourceProperties(const char* value) { SetResourceProperties(value); return *this;} + + private: + + Aws::String m_name; + bool m_nameHasBeenSet = false; + + Aws::String m_profileResourceAssociationId; + bool m_profileResourceAssociationIdHasBeenSet = false; + + Aws::String m_resourceProperties; + bool m_resourcePropertiesHasBeenSet = false; + }; + +} // namespace Model +} // namespace Route53Profiles +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/UpdateProfileResourceAssociationResult.h b/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/UpdateProfileResourceAssociationResult.h new file mode 100644 index 00000000000..4c6a2593dda --- /dev/null +++ b/generated/src/aws-cpp-sdk-route53profiles/include/aws/route53profiles/model/UpdateProfileResourceAssociationResult.h @@ -0,0 +1,97 @@ +/** + * 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 Route53Profiles +{ +namespace Model +{ + class UpdateProfileResourceAssociationResult + { + public: + AWS_ROUTE53PROFILES_API UpdateProfileResourceAssociationResult(); + AWS_ROUTE53PROFILES_API UpdateProfileResourceAssociationResult(const Aws::AmazonWebServiceResult& result); + AWS_ROUTE53PROFILES_API UpdateProfileResourceAssociationResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

      Information about the UpdateProfileResourceAssociation request, + * including a status message.

      + */ + inline const ProfileResourceAssociation& GetProfileResourceAssociation() const{ return m_profileResourceAssociation; } + + /** + *

      Information about the UpdateProfileResourceAssociation request, + * including a status message.

      + */ + inline void SetProfileResourceAssociation(const ProfileResourceAssociation& value) { m_profileResourceAssociation = value; } + + /** + *

      Information about the UpdateProfileResourceAssociation request, + * including a status message.

      + */ + inline void SetProfileResourceAssociation(ProfileResourceAssociation&& value) { m_profileResourceAssociation = std::move(value); } + + /** + *

      Information about the UpdateProfileResourceAssociation request, + * including a status message.

      + */ + inline UpdateProfileResourceAssociationResult& WithProfileResourceAssociation(const ProfileResourceAssociation& value) { SetProfileResourceAssociation(value); return *this;} + + /** + *

      Information about the UpdateProfileResourceAssociation request, + * including a status message.

      + */ + inline UpdateProfileResourceAssociationResult& WithProfileResourceAssociation(ProfileResourceAssociation&& value) { SetProfileResourceAssociation(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 UpdateProfileResourceAssociationResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + + + inline UpdateProfileResourceAssociationResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + + + inline UpdateProfileResourceAssociationResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + + private: + + ProfileResourceAssociation m_profileResourceAssociation; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace Route53Profiles +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-route53profiles/source/Route53ProfilesClient.cpp b/generated/src/aws-cpp-sdk-route53profiles/source/Route53ProfilesClient.cpp new file mode 100644 index 00000000000..f43d32e89e5 --- /dev/null +++ b/generated/src/aws-cpp-sdk-route53profiles/source/Route53ProfilesClient.cpp @@ -0,0 +1,698 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include + + +using namespace Aws; +using namespace Aws::Auth; +using namespace Aws::Client; +using namespace Aws::Route53Profiles; +using namespace Aws::Route53Profiles::Model; +using namespace Aws::Http; +using namespace Aws::Utils::Json; +using namespace smithy::components::tracing; +using ResolveEndpointOutcome = Aws::Endpoint::ResolveEndpointOutcome; + +namespace Aws +{ + namespace Route53Profiles + { + const char SERVICE_NAME[] = "route53profiles"; + const char ALLOCATION_TAG[] = "Route53ProfilesClient"; + } +} +const char* Route53ProfilesClient::GetServiceName() {return SERVICE_NAME;} +const char* Route53ProfilesClient::GetAllocationTag() {return ALLOCATION_TAG;} + +Route53ProfilesClient::Route53ProfilesClient(const Route53Profiles::Route53ProfilesClientConfiguration& clientConfiguration, + std::shared_ptr endpointProvider) : + BASECLASS(clientConfiguration, + Aws::MakeShared(ALLOCATION_TAG, + Aws::MakeShared(ALLOCATION_TAG), + SERVICE_NAME, + Aws::Region::ComputeSignerRegion(clientConfiguration.region)), + Aws::MakeShared(ALLOCATION_TAG)), + m_clientConfiguration(clientConfiguration), + m_executor(clientConfiguration.executor), + m_endpointProvider(endpointProvider ? std::move(endpointProvider) : Aws::MakeShared(ALLOCATION_TAG)) +{ + init(m_clientConfiguration); +} + +Route53ProfilesClient::Route53ProfilesClient(const AWSCredentials& credentials, + std::shared_ptr endpointProvider, + const Route53Profiles::Route53ProfilesClientConfiguration& clientConfiguration) : + BASECLASS(clientConfiguration, + Aws::MakeShared(ALLOCATION_TAG, + Aws::MakeShared(ALLOCATION_TAG, credentials), + SERVICE_NAME, + Aws::Region::ComputeSignerRegion(clientConfiguration.region)), + Aws::MakeShared(ALLOCATION_TAG)), + m_clientConfiguration(clientConfiguration), + m_executor(clientConfiguration.executor), + m_endpointProvider(endpointProvider ? std::move(endpointProvider) : Aws::MakeShared(ALLOCATION_TAG)) +{ + init(m_clientConfiguration); +} + +Route53ProfilesClient::Route53ProfilesClient(const std::shared_ptr& credentialsProvider, + std::shared_ptr endpointProvider, + const Route53Profiles::Route53ProfilesClientConfiguration& clientConfiguration) : + BASECLASS(clientConfiguration, + Aws::MakeShared(ALLOCATION_TAG, + credentialsProvider, + SERVICE_NAME, + Aws::Region::ComputeSignerRegion(clientConfiguration.region)), + Aws::MakeShared(ALLOCATION_TAG)), + m_clientConfiguration(clientConfiguration), + m_executor(clientConfiguration.executor), + m_endpointProvider(endpointProvider ? std::move(endpointProvider) : Aws::MakeShared(ALLOCATION_TAG)) +{ + init(m_clientConfiguration); +} + + /* Legacy constructors due deprecation */ + Route53ProfilesClient::Route53ProfilesClient(const Client::ClientConfiguration& clientConfiguration) : + BASECLASS(clientConfiguration, + Aws::MakeShared(ALLOCATION_TAG, + Aws::MakeShared(ALLOCATION_TAG), + SERVICE_NAME, + Aws::Region::ComputeSignerRegion(clientConfiguration.region)), + Aws::MakeShared(ALLOCATION_TAG)), + m_clientConfiguration(clientConfiguration), + m_executor(clientConfiguration.executor), + m_endpointProvider(Aws::MakeShared(ALLOCATION_TAG)) +{ + init(m_clientConfiguration); +} + +Route53ProfilesClient::Route53ProfilesClient(const AWSCredentials& credentials, + const Client::ClientConfiguration& clientConfiguration) : + BASECLASS(clientConfiguration, + Aws::MakeShared(ALLOCATION_TAG, + Aws::MakeShared(ALLOCATION_TAG, credentials), + SERVICE_NAME, + Aws::Region::ComputeSignerRegion(clientConfiguration.region)), + Aws::MakeShared(ALLOCATION_TAG)), + m_clientConfiguration(clientConfiguration), + m_executor(clientConfiguration.executor), + m_endpointProvider(Aws::MakeShared(ALLOCATION_TAG)) +{ + init(m_clientConfiguration); +} + +Route53ProfilesClient::Route53ProfilesClient(const std::shared_ptr& credentialsProvider, + const Client::ClientConfiguration& clientConfiguration) : + BASECLASS(clientConfiguration, + Aws::MakeShared(ALLOCATION_TAG, + credentialsProvider, + SERVICE_NAME, + Aws::Region::ComputeSignerRegion(clientConfiguration.region)), + Aws::MakeShared(ALLOCATION_TAG)), + m_clientConfiguration(clientConfiguration), + m_executor(clientConfiguration.executor), + m_endpointProvider(Aws::MakeShared(ALLOCATION_TAG)) +{ + init(m_clientConfiguration); +} + + /* End of legacy constructors due deprecation */ +Route53ProfilesClient::~Route53ProfilesClient() +{ + ShutdownSdkClient(this, -1); +} + +std::shared_ptr& Route53ProfilesClient::accessEndpointProvider() +{ + return m_endpointProvider; +} + +void Route53ProfilesClient::init(const Route53Profiles::Route53ProfilesClientConfiguration& config) +{ + AWSClient::SetServiceClientName("Route53Profiles"); + AWS_CHECK_PTR(SERVICE_NAME, m_endpointProvider); + m_endpointProvider->InitBuiltInParameters(config); +} + +void Route53ProfilesClient::OverrideEndpoint(const Aws::String& endpoint) +{ + AWS_CHECK_PTR(SERVICE_NAME, m_endpointProvider); + m_endpointProvider->OverrideEndpoint(endpoint); +} + +AssociateProfileOutcome Route53ProfilesClient::AssociateProfile(const AssociateProfileRequest& request) const +{ + AWS_OPERATION_GUARD(AssociateProfile); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, AssociateProfile, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, AssociateProfile, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, AssociateProfile, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".AssociateProfile", + {{ 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( + [&]()-> AssociateProfileOutcome { + 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, AssociateProfile, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/profileassociation"); + return AssociateProfileOutcome(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()}}); +} + +AssociateResourceToProfileOutcome Route53ProfilesClient::AssociateResourceToProfile(const AssociateResourceToProfileRequest& request) const +{ + AWS_OPERATION_GUARD(AssociateResourceToProfile); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, AssociateResourceToProfile, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, AssociateResourceToProfile, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, AssociateResourceToProfile, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".AssociateResourceToProfile", + {{ 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( + [&]()-> AssociateResourceToProfileOutcome { + 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, AssociateResourceToProfile, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/profileresourceassociation"); + return AssociateResourceToProfileOutcome(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()}}); +} + +CreateProfileOutcome Route53ProfilesClient::CreateProfile(const CreateProfileRequest& request) const +{ + AWS_OPERATION_GUARD(CreateProfile); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreateProfile, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreateProfile, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, CreateProfile, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".CreateProfile", + {{ 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( + [&]()-> CreateProfileOutcome { + 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, CreateProfile, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/profile"); + return CreateProfileOutcome(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()}}); +} + +DeleteProfileOutcome Route53ProfilesClient::DeleteProfile(const DeleteProfileRequest& request) const +{ + AWS_OPERATION_GUARD(DeleteProfile); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteProfile, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.ProfileIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("DeleteProfile", "Required field: ProfileId, is not set"); + return DeleteProfileOutcome(Aws::Client::AWSError(Route53ProfilesErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ProfileId]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteProfile, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, DeleteProfile, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DeleteProfile", + {{ 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( + [&]()-> DeleteProfileOutcome { + 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, DeleteProfile, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/profile/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetProfileId()); + return DeleteProfileOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_DELETE, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + +DisassociateProfileOutcome Route53ProfilesClient::DisassociateProfile(const DisassociateProfileRequest& request) const +{ + AWS_OPERATION_GUARD(DisassociateProfile); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DisassociateProfile, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.ProfileIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("DisassociateProfile", "Required field: ProfileId, is not set"); + return DisassociateProfileOutcome(Aws::Client::AWSError(Route53ProfilesErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ProfileId]", false)); + } + if (!request.ResourceIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("DisassociateProfile", "Required field: ResourceId, is not set"); + return DisassociateProfileOutcome(Aws::Client::AWSError(Route53ProfilesErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ResourceId]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DisassociateProfile, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, DisassociateProfile, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DisassociateProfile", + {{ 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( + [&]()-> DisassociateProfileOutcome { + 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, DisassociateProfile, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/profileassociation/Profileid/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetProfileId()); + endpointResolutionOutcome.GetResult().AddPathSegments("/resourceid/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetResourceId()); + return DisassociateProfileOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_DELETE, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + +DisassociateResourceFromProfileOutcome Route53ProfilesClient::DisassociateResourceFromProfile(const DisassociateResourceFromProfileRequest& request) const +{ + AWS_OPERATION_GUARD(DisassociateResourceFromProfile); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DisassociateResourceFromProfile, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.ProfileIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("DisassociateResourceFromProfile", "Required field: ProfileId, is not set"); + return DisassociateResourceFromProfileOutcome(Aws::Client::AWSError(Route53ProfilesErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ProfileId]", false)); + } + if (!request.ResourceArnHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("DisassociateResourceFromProfile", "Required field: ResourceArn, is not set"); + return DisassociateResourceFromProfileOutcome(Aws::Client::AWSError(Route53ProfilesErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ResourceArn]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DisassociateResourceFromProfile, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, DisassociateResourceFromProfile, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DisassociateResourceFromProfile", + {{ 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( + [&]()-> DisassociateResourceFromProfileOutcome { + 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, DisassociateResourceFromProfile, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/profileresourceassociation/profileid/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetProfileId()); + endpointResolutionOutcome.GetResult().SetRfc3986Encoded(true); + endpointResolutionOutcome.GetResult().AddPathSegments("/resourcearn/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetResourceArn()); + return DisassociateResourceFromProfileOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_DELETE, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + +GetProfileOutcome Route53ProfilesClient::GetProfile(const GetProfileRequest& request) const +{ + AWS_OPERATION_GUARD(GetProfile); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, GetProfile, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.ProfileIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("GetProfile", "Required field: ProfileId, is not set"); + return GetProfileOutcome(Aws::Client::AWSError(Route53ProfilesErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ProfileId]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, GetProfile, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, GetProfile, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".GetProfile", + {{ 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( + [&]()-> GetProfileOutcome { + 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, GetProfile, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/profile/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetProfileId()); + return GetProfileOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + +GetProfileAssociationOutcome Route53ProfilesClient::GetProfileAssociation(const GetProfileAssociationRequest& request) const +{ + AWS_OPERATION_GUARD(GetProfileAssociation); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, GetProfileAssociation, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.ProfileAssociationIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("GetProfileAssociation", "Required field: ProfileAssociationId, is not set"); + return GetProfileAssociationOutcome(Aws::Client::AWSError(Route53ProfilesErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ProfileAssociationId]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, GetProfileAssociation, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, GetProfileAssociation, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".GetProfileAssociation", + {{ 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( + [&]()-> GetProfileAssociationOutcome { + 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, GetProfileAssociation, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/profileassociation/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetProfileAssociationId()); + return GetProfileAssociationOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + +GetProfileResourceAssociationOutcome Route53ProfilesClient::GetProfileResourceAssociation(const GetProfileResourceAssociationRequest& request) const +{ + AWS_OPERATION_GUARD(GetProfileResourceAssociation); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, GetProfileResourceAssociation, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.ProfileResourceAssociationIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("GetProfileResourceAssociation", "Required field: ProfileResourceAssociationId, is not set"); + return GetProfileResourceAssociationOutcome(Aws::Client::AWSError(Route53ProfilesErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ProfileResourceAssociationId]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, GetProfileResourceAssociation, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, GetProfileResourceAssociation, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".GetProfileResourceAssociation", + {{ 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( + [&]()-> GetProfileResourceAssociationOutcome { + 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, GetProfileResourceAssociation, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/profileresourceassociation/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetProfileResourceAssociationId()); + return GetProfileResourceAssociationOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + +ListProfileAssociationsOutcome Route53ProfilesClient::ListProfileAssociations(const ListProfileAssociationsRequest& request) const +{ + AWS_OPERATION_GUARD(ListProfileAssociations); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListProfileAssociations, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListProfileAssociations, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, ListProfileAssociations, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListProfileAssociations", + {{ 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( + [&]()-> ListProfileAssociationsOutcome { + 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, ListProfileAssociations, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/profileassociations"); + return ListProfileAssociationsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + +ListProfileResourceAssociationsOutcome Route53ProfilesClient::ListProfileResourceAssociations(const ListProfileResourceAssociationsRequest& request) const +{ + AWS_OPERATION_GUARD(ListProfileResourceAssociations); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListProfileResourceAssociations, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.ProfileIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("ListProfileResourceAssociations", "Required field: ProfileId, is not set"); + return ListProfileResourceAssociationsOutcome(Aws::Client::AWSError(Route53ProfilesErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ProfileId]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListProfileResourceAssociations, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, ListProfileResourceAssociations, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListProfileResourceAssociations", + {{ 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( + [&]()-> ListProfileResourceAssociationsOutcome { + 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, ListProfileResourceAssociations, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/profileresourceassociations/profileid/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetProfileId()); + return ListProfileResourceAssociationsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + +ListProfilesOutcome Route53ProfilesClient::ListProfiles(const ListProfilesRequest& request) const +{ + AWS_OPERATION_GUARD(ListProfiles); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListProfiles, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListProfiles, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, ListProfiles, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListProfiles", + {{ 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( + [&]()-> ListProfilesOutcome { + 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, ListProfiles, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/profiles"); + return ListProfilesOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + +ListTagsForResourceOutcome Route53ProfilesClient::ListTagsForResource(const ListTagsForResourceRequest& request) const +{ + AWS_OPERATION_GUARD(ListTagsForResource); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListTagsForResource, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.ResourceArnHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("ListTagsForResource", "Required field: ResourceArn, is not set"); + return ListTagsForResourceOutcome(Aws::Client::AWSError(Route53ProfilesErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ResourceArn]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListTagsForResource, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, ListTagsForResource, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListTagsForResource", + {{ 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( + [&]()-> ListTagsForResourceOutcome { + 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, ListTagsForResource, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/tags/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetResourceArn()); + return ListTagsForResourceOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + +TagResourceOutcome Route53ProfilesClient::TagResource(const TagResourceRequest& request) const +{ + AWS_OPERATION_GUARD(TagResource); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, TagResource, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.ResourceArnHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("TagResource", "Required field: ResourceArn, is not set"); + return TagResourceOutcome(Aws::Client::AWSError(Route53ProfilesErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ResourceArn]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, TagResource, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, TagResource, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".TagResource", + {{ 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( + [&]()-> TagResourceOutcome { + 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, TagResource, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/tags/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetResourceArn()); + return TagResourceOutcome(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()}}); +} + +UntagResourceOutcome Route53ProfilesClient::UntagResource(const UntagResourceRequest& request) const +{ + AWS_OPERATION_GUARD(UntagResource); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, UntagResource, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.ResourceArnHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("UntagResource", "Required field: ResourceArn, is not set"); + return UntagResourceOutcome(Aws::Client::AWSError(Route53ProfilesErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ResourceArn]", false)); + } + if (!request.TagKeysHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("UntagResource", "Required field: TagKeys, is not set"); + return UntagResourceOutcome(Aws::Client::AWSError(Route53ProfilesErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [TagKeys]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, UntagResource, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, UntagResource, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".UntagResource", + {{ 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( + [&]()-> UntagResourceOutcome { + 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, UntagResource, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/tags/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetResourceArn()); + return UntagResourceOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_DELETE, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + +UpdateProfileResourceAssociationOutcome Route53ProfilesClient::UpdateProfileResourceAssociation(const UpdateProfileResourceAssociationRequest& request) const +{ + AWS_OPERATION_GUARD(UpdateProfileResourceAssociation); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, UpdateProfileResourceAssociation, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.ProfileResourceAssociationIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("UpdateProfileResourceAssociation", "Required field: ProfileResourceAssociationId, is not set"); + return UpdateProfileResourceAssociationOutcome(Aws::Client::AWSError(Route53ProfilesErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ProfileResourceAssociationId]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, UpdateProfileResourceAssociation, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, UpdateProfileResourceAssociation, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".UpdateProfileResourceAssociation", + {{ 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( + [&]()-> UpdateProfileResourceAssociationOutcome { + 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, UpdateProfileResourceAssociation, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/profileresourceassociation/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetProfileResourceAssociationId()); + return UpdateProfileResourceAssociationOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_PATCH, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + diff --git a/generated/src/aws-cpp-sdk-route53profiles/source/Route53ProfilesEndpointProvider.cpp b/generated/src/aws-cpp-sdk-route53profiles/source/Route53ProfilesEndpointProvider.cpp new file mode 100644 index 00000000000..691dc2e2775 --- /dev/null +++ b/generated/src/aws-cpp-sdk-route53profiles/source/Route53ProfilesEndpointProvider.cpp @@ -0,0 +1,16 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include + +namespace Aws +{ +namespace Route53Profiles +{ +namespace Endpoint +{ +} // namespace Endpoint +} // namespace Route53Profiles +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-route53profiles/source/Route53ProfilesEndpointRules.cpp b/generated/src/aws-cpp-sdk-route53profiles/source/Route53ProfilesEndpointRules.cpp new file mode 100644 index 00000000000..38665bc2484 --- /dev/null +++ b/generated/src/aws-cpp-sdk-route53profiles/source/Route53ProfilesEndpointRules.cpp @@ -0,0 +1,177 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +namespace Aws +{ +namespace Route53Profiles +{ +const size_t Route53ProfilesEndpointRules::RulesBlobStrLen = 3760; +const size_t Route53ProfilesEndpointRules::RulesBlobSize = 3761; + +using RulesBlobT = Aws::Array; +static constexpr RulesBlobT RulesBlob = {{ +'{','"','v','e','r','s','i','o','n','"',':','"','1','.','0','"',',','"','p','a','r','a','m','e','t', +'e','r','s','"',':','{','"','R','e','g','i','o','n','"',':','{','"','b','u','i','l','t','I','n','"', +':','"','A','W','S',':',':','R','e','g','i','o','n','"',',','"','r','e','q','u','i','r','e','d','"', +':','f','a','l','s','e',',','"','d','o','c','u','m','e','n','t','a','t','i','o','n','"',':','"','T', +'h','e',' ','A','W','S',' ','r','e','g','i','o','n',' ','u','s','e','d',' ','t','o',' ','d','i','s', +'p','a','t','c','h',' ','t','h','e',' ','r','e','q','u','e','s','t','.','"',',','"','t','y','p','e', +'"',':','"','S','t','r','i','n','g','"','}',',','"','U','s','e','D','u','a','l','S','t','a','c','k', +'"',':','{','"','b','u','i','l','t','I','n','"',':','"','A','W','S',':',':','U','s','e','D','u','a', +'l','S','t','a','c','k','"',',','"','r','e','q','u','i','r','e','d','"',':','t','r','u','e',',','"', +'d','e','f','a','u','l','t','"',':','f','a','l','s','e',',','"','d','o','c','u','m','e','n','t','a', +'t','i','o','n','"',':','"','W','h','e','n',' ','t','r','u','e',',',' ','u','s','e',' ','t','h','e', +' ','d','u','a','l','-','s','t','a','c','k',' ','e','n','d','p','o','i','n','t','.',' ','I','f',' ', +'t','h','e',' ','c','o','n','f','i','g','u','r','e','d',' ','e','n','d','p','o','i','n','t',' ','d', +'o','e','s',' ','n','o','t',' ','s','u','p','p','o','r','t',' ','d','u','a','l','-','s','t','a','c', +'k',',',' ','d','i','s','p','a','t','c','h','i','n','g',' ','t','h','e',' ','r','e','q','u','e','s', +'t',' ','M','A','Y',' ','r','e','t','u','r','n',' ','a','n',' ','e','r','r','o','r','.','"',',','"', +'t','y','p','e','"',':','"','B','o','o','l','e','a','n','"','}',',','"','U','s','e','F','I','P','S', +'"',':','{','"','b','u','i','l','t','I','n','"',':','"','A','W','S',':',':','U','s','e','F','I','P', +'S','"',',','"','r','e','q','u','i','r','e','d','"',':','t','r','u','e',',','"','d','e','f','a','u', +'l','t','"',':','f','a','l','s','e',',','"','d','o','c','u','m','e','n','t','a','t','i','o','n','"', +':','"','W','h','e','n',' ','t','r','u','e',',',' ','s','e','n','d',' ','t','h','i','s',' ','r','e', +'q','u','e','s','t',' ','t','o',' ','t','h','e',' ','F','I','P','S','-','c','o','m','p','l','i','a', +'n','t',' ','r','e','g','i','o','n','a','l',' ','e','n','d','p','o','i','n','t','.',' ','I','f',' ', +'t','h','e',' ','c','o','n','f','i','g','u','r','e','d',' ','e','n','d','p','o','i','n','t',' ','d', +'o','e','s',' ','n','o','t',' ','h','a','v','e',' ','a',' ','F','I','P','S',' ','c','o','m','p','l', +'i','a','n','t',' ','e','n','d','p','o','i','n','t',',',' ','d','i','s','p','a','t','c','h','i','n', +'g',' ','t','h','e',' ','r','e','q','u','e','s','t',' ','w','i','l','l',' ','r','e','t','u','r','n', +' ','a','n',' ','e','r','r','o','r','.','"',',','"','t','y','p','e','"',':','"','B','o','o','l','e', +'a','n','"','}',',','"','E','n','d','p','o','i','n','t','"',':','{','"','b','u','i','l','t','I','n', +'"',':','"','S','D','K',':',':','E','n','d','p','o','i','n','t','"',',','"','r','e','q','u','i','r', +'e','d','"',':','f','a','l','s','e',',','"','d','o','c','u','m','e','n','t','a','t','i','o','n','"', +':','"','O','v','e','r','r','i','d','e',' ','t','h','e',' ','e','n','d','p','o','i','n','t',' ','u', +'s','e','d',' ','t','o',' ','s','e','n','d',' ','t','h','i','s',' ','r','e','q','u','e','s','t','"', +',','"','t','y','p','e','"',':','"','S','t','r','i','n','g','"','}','}',',','"','r','u','l','e','s', +'"',':','[','{','"','c','o','n','d','i','t','i','o','n','s','"',':','[','{','"','f','n','"',':','"', +'i','s','S','e','t','"',',','"','a','r','g','v','"',':','[','{','"','r','e','f','"',':','"','E','n', +'d','p','o','i','n','t','"','}',']','}',']',',','"','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','"',':','[','{','"','r','e','f','"',':','"','U', +'s','e','F','I','P','S','"','}',',','t','r','u','e',']','}',']',',','"','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',':',' ','F', +'I','P','S',' ','a','n','d',' ','c','u','s','t','o','m',' ','e','n','d','p','o','i','n','t',' ','a', +'r','e',' ','n','o','t',' ','s','u','p','p','o','r','t','e','d','"',',','"','t','y','p','e','"',':', +'"','e','r','r','o','r','"','}',',','{','"','c','o','n','d','i','t','i','o','n','s','"',':','[',']', +',','"','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','"',':','[','{','"','r','e','f','"',':','"','U','s','e','D','u','a','l','S','t','a','c','k', +'"','}',',','t','r','u','e',']','}',']',',','"','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',':',' ','D','u','a','l','s','t','a', +'c','k',' ','a','n','d',' ','c','u','s','t','o','m',' ','e','n','d','p','o','i','n','t',' ','a','r', +'e',' ','n','o','t',' ','s','u','p','p','o','r','t','e','d','"',',','"','t','y','p','e','"',':','"', +'e','r','r','o','r','"','}',',','{','"','c','o','n','d','i','t','i','o','n','s','"',':','[',']',',', +'"','e','n','d','p','o','i','n','t','"',':','{','"','u','r','l','"',':','{','"','r','e','f','"',':', +'"','E','n','d','p','o','i','n','t','"','}',',','"','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','"',':','[',']',',','"','r','u','l','e','s','"',':','[','{','"','c','o','n','d', +'i','t','i','o','n','s','"',':','[','{','"','f','n','"',':','"','i','s','S','e','t','"',',','"','a', +'r','g','v','"',':','[','{','"','r','e','f','"',':','"','R','e','g','i','o','n','"','}',']','}',']', +',','"','r','u','l','e','s','"',':','[','{','"','c','o','n','d','i','t','i','o','n','s','"',':','[', +'{','"','f','n','"',':','"','a','w','s','.','p','a','r','t','i','t','i','o','n','"',',','"','a','r', +'g','v','"',':','[','{','"','r','e','f','"',':','"','R','e','g','i','o','n','"','}',']',',','"','a', +'s','s','i','g','n','"',':','"','P','a','r','t','i','t','i','o','n','R','e','s','u','l','t','"','}', +']',',','"','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','"',':','[','{','"','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','"',':','[',']',',','"','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',':','/','/','r','o','u','t','e','5','3','p','r','o','f','i','l','e','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','"','}',']',',','"','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','"',':','[',']',',','"','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',':','/', +'/','r','o','u','t','e','5','3','p','r','o','f','i','l','e','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','"','}',']', +',','"','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','"',':','[',']',',','"','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',':','/','/','r','o','u','t', +'e','5','3','p','r','o','f','i','l','e','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','"','}',']',',', +'"','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','"',':','[',']',',','"','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',':','/','/','r','o','u','t','e','5','3','p','r','o','f','i','l','e', +'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','"','}',']',',','"','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','"','}',']',',','"','t','y','p','e','"', +':','"','t','r','e','e','"','}',']','}','\0' +}}; + +const char* Route53ProfilesEndpointRules::GetRulesBlob() +{ + return RulesBlob.data(); +} + +} // namespace Route53Profiles +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-route53profiles/source/Route53ProfilesErrorMarshaller.cpp b/generated/src/aws-cpp-sdk-route53profiles/source/Route53ProfilesErrorMarshaller.cpp new file mode 100644 index 00000000000..101b2ea10a6 --- /dev/null +++ b/generated/src/aws-cpp-sdk-route53profiles/source/Route53ProfilesErrorMarshaller.cpp @@ -0,0 +1,22 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include + +using namespace Aws::Client; +using namespace Aws::Route53Profiles; + +AWSError Route53ProfilesErrorMarshaller::FindErrorByName(const char* errorName) const +{ + AWSError error = Route53ProfilesErrorMapper::GetErrorForName(errorName); + if(error.GetErrorType() != CoreErrors::UNKNOWN) + { + return error; + } + + return AWSErrorMarshaller::FindErrorByName(errorName); +} \ No newline at end of file diff --git a/generated/src/aws-cpp-sdk-route53profiles/source/Route53ProfilesErrors.cpp b/generated/src/aws-cpp-sdk-route53profiles/source/Route53ProfilesErrors.cpp new file mode 100644 index 00000000000..85cdf1d9f56 --- /dev/null +++ b/generated/src/aws-cpp-sdk-route53profiles/source/Route53ProfilesErrors.cpp @@ -0,0 +1,91 @@ +/** + * 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::Client; +using namespace Aws::Utils; +using namespace Aws::Route53Profiles; +using namespace Aws::Route53Profiles::Model; + +namespace Aws +{ +namespace Route53Profiles +{ +template<> AWS_ROUTE53PROFILES_API ResourceExistsException Route53ProfilesError::GetModeledError() +{ + assert(this->GetErrorType() == Route53ProfilesErrors::RESOURCE_EXISTS); + return ResourceExistsException(this->GetJsonPayload().View()); +} + +template<> AWS_ROUTE53PROFILES_API ResourceNotFoundException Route53ProfilesError::GetModeledError() +{ + assert(this->GetErrorType() == Route53ProfilesErrors::RESOURCE_NOT_FOUND); + return ResourceNotFoundException(this->GetJsonPayload().View()); +} + +template<> AWS_ROUTE53PROFILES_API InvalidParameterException Route53ProfilesError::GetModeledError() +{ + assert(this->GetErrorType() == Route53ProfilesErrors::INVALID_PARAMETER); + return InvalidParameterException(this->GetJsonPayload().View()); +} + +template<> AWS_ROUTE53PROFILES_API LimitExceededException Route53ProfilesError::GetModeledError() +{ + assert(this->GetErrorType() == Route53ProfilesErrors::LIMIT_EXCEEDED); + return LimitExceededException(this->GetJsonPayload().View()); +} + +namespace Route53ProfilesErrorMapper +{ + +static const int RESOURCE_EXISTS_HASH = HashingUtils::HashString("ResourceExistsException"); +static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); +static const int INVALID_PARAMETER_HASH = HashingUtils::HashString("InvalidParameterException"); +static const int LIMIT_EXCEEDED_HASH = HashingUtils::HashString("LimitExceededException"); +static const int INTERNAL_SERVICE_ERROR_HASH = HashingUtils::HashString("InternalServiceErrorException"); +static const int INVALID_NEXT_TOKEN_HASH = HashingUtils::HashString("InvalidNextTokenException"); + + +AWSError GetErrorForName(const char* errorName) +{ + int hashCode = HashingUtils::HashString(errorName); + + if (hashCode == RESOURCE_EXISTS_HASH) + { + return AWSError(static_cast(Route53ProfilesErrors::RESOURCE_EXISTS), RetryableType::NOT_RETRYABLE); + } + else if (hashCode == CONFLICT_HASH) + { + return AWSError(static_cast(Route53ProfilesErrors::CONFLICT), RetryableType::NOT_RETRYABLE); + } + else if (hashCode == INVALID_PARAMETER_HASH) + { + return AWSError(static_cast(Route53ProfilesErrors::INVALID_PARAMETER), RetryableType::NOT_RETRYABLE); + } + else if (hashCode == LIMIT_EXCEEDED_HASH) + { + return AWSError(static_cast(Route53ProfilesErrors::LIMIT_EXCEEDED), RetryableType::RETRYABLE); + } + else if (hashCode == INTERNAL_SERVICE_ERROR_HASH) + { + return AWSError(static_cast(Route53ProfilesErrors::INTERNAL_SERVICE_ERROR), RetryableType::NOT_RETRYABLE); + } + else if (hashCode == INVALID_NEXT_TOKEN_HASH) + { + return AWSError(static_cast(Route53ProfilesErrors::INVALID_NEXT_TOKEN), RetryableType::NOT_RETRYABLE); + } + return AWSError(CoreErrors::UNKNOWN, false); +} + +} // namespace Route53ProfilesErrorMapper +} // namespace Route53Profiles +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-route53profiles/source/Route53ProfilesRequest.cpp b/generated/src/aws-cpp-sdk-route53profiles/source/Route53ProfilesRequest.cpp new file mode 100644 index 00000000000..65e6f501dd3 --- /dev/null +++ b/generated/src/aws-cpp-sdk-route53profiles/source/Route53ProfilesRequest.cpp @@ -0,0 +1,14 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + + +#include + +namespace Aws +{ +namespace Route53Profiles +{ +} // namespace Route53Profiles +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-route53profiles/source/model/AssociateProfileRequest.cpp b/generated/src/aws-cpp-sdk-route53profiles/source/model/AssociateProfileRequest.cpp new file mode 100644 index 00000000000..128f70dd7e3 --- /dev/null +++ b/generated/src/aws-cpp-sdk-route53profiles/source/model/AssociateProfileRequest.cpp @@ -0,0 +1,61 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Route53Profiles::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +AssociateProfileRequest::AssociateProfileRequest() : + m_nameHasBeenSet(false), + m_profileIdHasBeenSet(false), + m_resourceIdHasBeenSet(false), + m_tagsHasBeenSet(false) +{ +} + +Aws::String AssociateProfileRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_nameHasBeenSet) + { + payload.WithString("Name", m_name); + + } + + if(m_profileIdHasBeenSet) + { + payload.WithString("ProfileId", m_profileId); + + } + + if(m_resourceIdHasBeenSet) + { + payload.WithString("ResourceId", m_resourceId); + + } + + if(m_tagsHasBeenSet) + { + Aws::Utils::Array tagsJsonList(m_tags.size()); + for(unsigned tagsIndex = 0; tagsIndex < tagsJsonList.GetLength(); ++tagsIndex) + { + tagsJsonList[tagsIndex].AsObject(m_tags[tagsIndex].Jsonize()); + } + payload.WithArray("Tags", std::move(tagsJsonList)); + + } + + return payload.View().WriteReadable(); +} + + + + diff --git a/generated/src/aws-cpp-sdk-route53profiles/source/model/AssociateProfileResult.cpp b/generated/src/aws-cpp-sdk-route53profiles/source/model/AssociateProfileResult.cpp new file mode 100644 index 00000000000..105d562a5a6 --- /dev/null +++ b/generated/src/aws-cpp-sdk-route53profiles/source/model/AssociateProfileResult.cpp @@ -0,0 +1,48 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::Route53Profiles::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +AssociateProfileResult::AssociateProfileResult() +{ +} + +AssociateProfileResult::AssociateProfileResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +AssociateProfileResult& AssociateProfileResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("ProfileAssociation")) + { + m_profileAssociation = jsonValue.GetObject("ProfileAssociation"); + + } + + + 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-route53profiles/source/model/AssociateResourceToProfileRequest.cpp b/generated/src/aws-cpp-sdk-route53profiles/source/model/AssociateResourceToProfileRequest.cpp new file mode 100644 index 00000000000..3b0966bfdea --- /dev/null +++ b/generated/src/aws-cpp-sdk-route53profiles/source/model/AssociateResourceToProfileRequest.cpp @@ -0,0 +1,56 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Route53Profiles::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +AssociateResourceToProfileRequest::AssociateResourceToProfileRequest() : + m_nameHasBeenSet(false), + m_profileIdHasBeenSet(false), + m_resourceArnHasBeenSet(false), + m_resourcePropertiesHasBeenSet(false) +{ +} + +Aws::String AssociateResourceToProfileRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_nameHasBeenSet) + { + payload.WithString("Name", m_name); + + } + + if(m_profileIdHasBeenSet) + { + payload.WithString("ProfileId", m_profileId); + + } + + if(m_resourceArnHasBeenSet) + { + payload.WithString("ResourceArn", m_resourceArn); + + } + + if(m_resourcePropertiesHasBeenSet) + { + payload.WithString("ResourceProperties", m_resourceProperties); + + } + + return payload.View().WriteReadable(); +} + + + + diff --git a/generated/src/aws-cpp-sdk-route53profiles/source/model/AssociateResourceToProfileResult.cpp b/generated/src/aws-cpp-sdk-route53profiles/source/model/AssociateResourceToProfileResult.cpp new file mode 100644 index 00000000000..29f85b6ce76 --- /dev/null +++ b/generated/src/aws-cpp-sdk-route53profiles/source/model/AssociateResourceToProfileResult.cpp @@ -0,0 +1,48 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::Route53Profiles::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +AssociateResourceToProfileResult::AssociateResourceToProfileResult() +{ +} + +AssociateResourceToProfileResult::AssociateResourceToProfileResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +AssociateResourceToProfileResult& AssociateResourceToProfileResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("ProfileResourceAssociation")) + { + m_profileResourceAssociation = jsonValue.GetObject("ProfileResourceAssociation"); + + } + + + 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-route53profiles/source/model/CreateProfileRequest.cpp b/generated/src/aws-cpp-sdk-route53profiles/source/model/CreateProfileRequest.cpp new file mode 100644 index 00000000000..72d297ed47b --- /dev/null +++ b/generated/src/aws-cpp-sdk-route53profiles/source/model/CreateProfileRequest.cpp @@ -0,0 +1,55 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Route53Profiles::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +CreateProfileRequest::CreateProfileRequest() : + m_clientToken(Aws::Utils::UUID::PseudoRandomUUID()), + m_clientTokenHasBeenSet(true), + m_nameHasBeenSet(false), + m_tagsHasBeenSet(false) +{ +} + +Aws::String CreateProfileRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_clientTokenHasBeenSet) + { + payload.WithString("ClientToken", m_clientToken); + + } + + if(m_nameHasBeenSet) + { + payload.WithString("Name", m_name); + + } + + if(m_tagsHasBeenSet) + { + Aws::Utils::Array tagsJsonList(m_tags.size()); + for(unsigned tagsIndex = 0; tagsIndex < tagsJsonList.GetLength(); ++tagsIndex) + { + tagsJsonList[tagsIndex].AsObject(m_tags[tagsIndex].Jsonize()); + } + payload.WithArray("Tags", std::move(tagsJsonList)); + + } + + return payload.View().WriteReadable(); +} + + + + diff --git a/generated/src/aws-cpp-sdk-route53profiles/source/model/CreateProfileResult.cpp b/generated/src/aws-cpp-sdk-route53profiles/source/model/CreateProfileResult.cpp new file mode 100644 index 00000000000..098bb85c978 --- /dev/null +++ b/generated/src/aws-cpp-sdk-route53profiles/source/model/CreateProfileResult.cpp @@ -0,0 +1,48 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::Route53Profiles::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +CreateProfileResult::CreateProfileResult() +{ +} + +CreateProfileResult::CreateProfileResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +CreateProfileResult& CreateProfileResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("Profile")) + { + m_profile = jsonValue.GetObject("Profile"); + + } + + + 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-route53profiles/source/model/DeleteProfileRequest.cpp b/generated/src/aws-cpp-sdk-route53profiles/source/model/DeleteProfileRequest.cpp new file mode 100644 index 00000000000..f7a42e0b3e5 --- /dev/null +++ b/generated/src/aws-cpp-sdk-route53profiles/source/model/DeleteProfileRequest.cpp @@ -0,0 +1,27 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Route53Profiles::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +DeleteProfileRequest::DeleteProfileRequest() : + m_profileIdHasBeenSet(false) +{ +} + +Aws::String DeleteProfileRequest::SerializePayload() const +{ + return {}; +} + + + + diff --git a/generated/src/aws-cpp-sdk-route53profiles/source/model/DeleteProfileResult.cpp b/generated/src/aws-cpp-sdk-route53profiles/source/model/DeleteProfileResult.cpp new file mode 100644 index 00000000000..7e0eec569bf --- /dev/null +++ b/generated/src/aws-cpp-sdk-route53profiles/source/model/DeleteProfileResult.cpp @@ -0,0 +1,48 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::Route53Profiles::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +DeleteProfileResult::DeleteProfileResult() +{ +} + +DeleteProfileResult::DeleteProfileResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +DeleteProfileResult& DeleteProfileResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("Profile")) + { + m_profile = jsonValue.GetObject("Profile"); + + } + + + 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-route53profiles/source/model/DisassociateProfileRequest.cpp b/generated/src/aws-cpp-sdk-route53profiles/source/model/DisassociateProfileRequest.cpp new file mode 100644 index 00000000000..5bb5afc4a50 --- /dev/null +++ b/generated/src/aws-cpp-sdk-route53profiles/source/model/DisassociateProfileRequest.cpp @@ -0,0 +1,28 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Route53Profiles::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +DisassociateProfileRequest::DisassociateProfileRequest() : + m_profileIdHasBeenSet(false), + m_resourceIdHasBeenSet(false) +{ +} + +Aws::String DisassociateProfileRequest::SerializePayload() const +{ + return {}; +} + + + + diff --git a/generated/src/aws-cpp-sdk-route53profiles/source/model/DisassociateProfileResult.cpp b/generated/src/aws-cpp-sdk-route53profiles/source/model/DisassociateProfileResult.cpp new file mode 100644 index 00000000000..72696efa983 --- /dev/null +++ b/generated/src/aws-cpp-sdk-route53profiles/source/model/DisassociateProfileResult.cpp @@ -0,0 +1,48 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::Route53Profiles::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +DisassociateProfileResult::DisassociateProfileResult() +{ +} + +DisassociateProfileResult::DisassociateProfileResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +DisassociateProfileResult& DisassociateProfileResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("ProfileAssociation")) + { + m_profileAssociation = jsonValue.GetObject("ProfileAssociation"); + + } + + + 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-route53profiles/source/model/DisassociateResourceFromProfileRequest.cpp b/generated/src/aws-cpp-sdk-route53profiles/source/model/DisassociateResourceFromProfileRequest.cpp new file mode 100644 index 00000000000..fc87c3a840a --- /dev/null +++ b/generated/src/aws-cpp-sdk-route53profiles/source/model/DisassociateResourceFromProfileRequest.cpp @@ -0,0 +1,28 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Route53Profiles::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +DisassociateResourceFromProfileRequest::DisassociateResourceFromProfileRequest() : + m_profileIdHasBeenSet(false), + m_resourceArnHasBeenSet(false) +{ +} + +Aws::String DisassociateResourceFromProfileRequest::SerializePayload() const +{ + return {}; +} + + + + diff --git a/generated/src/aws-cpp-sdk-route53profiles/source/model/DisassociateResourceFromProfileResult.cpp b/generated/src/aws-cpp-sdk-route53profiles/source/model/DisassociateResourceFromProfileResult.cpp new file mode 100644 index 00000000000..d266cebfab9 --- /dev/null +++ b/generated/src/aws-cpp-sdk-route53profiles/source/model/DisassociateResourceFromProfileResult.cpp @@ -0,0 +1,48 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::Route53Profiles::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +DisassociateResourceFromProfileResult::DisassociateResourceFromProfileResult() +{ +} + +DisassociateResourceFromProfileResult::DisassociateResourceFromProfileResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +DisassociateResourceFromProfileResult& DisassociateResourceFromProfileResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("ProfileResourceAssociation")) + { + m_profileResourceAssociation = jsonValue.GetObject("ProfileResourceAssociation"); + + } + + + 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-route53profiles/source/model/GetProfileAssociationRequest.cpp b/generated/src/aws-cpp-sdk-route53profiles/source/model/GetProfileAssociationRequest.cpp new file mode 100644 index 00000000000..c3cce48b2f5 --- /dev/null +++ b/generated/src/aws-cpp-sdk-route53profiles/source/model/GetProfileAssociationRequest.cpp @@ -0,0 +1,27 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Route53Profiles::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +GetProfileAssociationRequest::GetProfileAssociationRequest() : + m_profileAssociationIdHasBeenSet(false) +{ +} + +Aws::String GetProfileAssociationRequest::SerializePayload() const +{ + return {}; +} + + + + diff --git a/generated/src/aws-cpp-sdk-route53profiles/source/model/GetProfileAssociationResult.cpp b/generated/src/aws-cpp-sdk-route53profiles/source/model/GetProfileAssociationResult.cpp new file mode 100644 index 00000000000..7aaa7ea833a --- /dev/null +++ b/generated/src/aws-cpp-sdk-route53profiles/source/model/GetProfileAssociationResult.cpp @@ -0,0 +1,48 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::Route53Profiles::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +GetProfileAssociationResult::GetProfileAssociationResult() +{ +} + +GetProfileAssociationResult::GetProfileAssociationResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +GetProfileAssociationResult& GetProfileAssociationResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("ProfileAssociation")) + { + m_profileAssociation = jsonValue.GetObject("ProfileAssociation"); + + } + + + 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-route53profiles/source/model/GetProfileRequest.cpp b/generated/src/aws-cpp-sdk-route53profiles/source/model/GetProfileRequest.cpp new file mode 100644 index 00000000000..d31f7850386 --- /dev/null +++ b/generated/src/aws-cpp-sdk-route53profiles/source/model/GetProfileRequest.cpp @@ -0,0 +1,27 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Route53Profiles::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +GetProfileRequest::GetProfileRequest() : + m_profileIdHasBeenSet(false) +{ +} + +Aws::String GetProfileRequest::SerializePayload() const +{ + return {}; +} + + + + diff --git a/generated/src/aws-cpp-sdk-route53profiles/source/model/GetProfileResourceAssociationRequest.cpp b/generated/src/aws-cpp-sdk-route53profiles/source/model/GetProfileResourceAssociationRequest.cpp new file mode 100644 index 00000000000..cb5925975d7 --- /dev/null +++ b/generated/src/aws-cpp-sdk-route53profiles/source/model/GetProfileResourceAssociationRequest.cpp @@ -0,0 +1,27 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Route53Profiles::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +GetProfileResourceAssociationRequest::GetProfileResourceAssociationRequest() : + m_profileResourceAssociationIdHasBeenSet(false) +{ +} + +Aws::String GetProfileResourceAssociationRequest::SerializePayload() const +{ + return {}; +} + + + + diff --git a/generated/src/aws-cpp-sdk-route53profiles/source/model/GetProfileResourceAssociationResult.cpp b/generated/src/aws-cpp-sdk-route53profiles/source/model/GetProfileResourceAssociationResult.cpp new file mode 100644 index 00000000000..2642831fcdd --- /dev/null +++ b/generated/src/aws-cpp-sdk-route53profiles/source/model/GetProfileResourceAssociationResult.cpp @@ -0,0 +1,48 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::Route53Profiles::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +GetProfileResourceAssociationResult::GetProfileResourceAssociationResult() +{ +} + +GetProfileResourceAssociationResult::GetProfileResourceAssociationResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +GetProfileResourceAssociationResult& GetProfileResourceAssociationResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("ProfileResourceAssociation")) + { + m_profileResourceAssociation = jsonValue.GetObject("ProfileResourceAssociation"); + + } + + + 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-route53profiles/source/model/GetProfileResult.cpp b/generated/src/aws-cpp-sdk-route53profiles/source/model/GetProfileResult.cpp new file mode 100644 index 00000000000..e2ff724558f --- /dev/null +++ b/generated/src/aws-cpp-sdk-route53profiles/source/model/GetProfileResult.cpp @@ -0,0 +1,48 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::Route53Profiles::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +GetProfileResult::GetProfileResult() +{ +} + +GetProfileResult::GetProfileResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +GetProfileResult& GetProfileResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("Profile")) + { + m_profile = jsonValue.GetObject("Profile"); + + } + + + 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-route53profiles/source/model/InvalidParameterException.cpp b/generated/src/aws-cpp-sdk-route53profiles/source/model/InvalidParameterException.cpp new file mode 100644 index 00000000000..5b3ff832a7f --- /dev/null +++ b/generated/src/aws-cpp-sdk-route53profiles/source/model/InvalidParameterException.cpp @@ -0,0 +1,74 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace Route53Profiles +{ +namespace Model +{ + +InvalidParameterException::InvalidParameterException() : + m_fieldNameHasBeenSet(false), + m_messageHasBeenSet(false) +{ +} + +InvalidParameterException::InvalidParameterException(JsonView jsonValue) : + m_fieldNameHasBeenSet(false), + m_messageHasBeenSet(false) +{ + *this = jsonValue; +} + +InvalidParameterException& InvalidParameterException::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("FieldName")) + { + m_fieldName = jsonValue.GetString("FieldName"); + + m_fieldNameHasBeenSet = true; + } + + if(jsonValue.ValueExists("Message")) + { + m_message = jsonValue.GetString("Message"); + + m_messageHasBeenSet = true; + } + + return *this; +} + +JsonValue InvalidParameterException::Jsonize() const +{ + JsonValue payload; + + if(m_fieldNameHasBeenSet) + { + payload.WithString("FieldName", m_fieldName); + + } + + if(m_messageHasBeenSet) + { + payload.WithString("Message", m_message); + + } + + return payload; +} + +} // namespace Model +} // namespace Route53Profiles +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-route53profiles/source/model/LimitExceededException.cpp b/generated/src/aws-cpp-sdk-route53profiles/source/model/LimitExceededException.cpp new file mode 100644 index 00000000000..1e47eed44d4 --- /dev/null +++ b/generated/src/aws-cpp-sdk-route53profiles/source/model/LimitExceededException.cpp @@ -0,0 +1,74 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace Route53Profiles +{ +namespace Model +{ + +LimitExceededException::LimitExceededException() : + m_messageHasBeenSet(false), + m_resourceTypeHasBeenSet(false) +{ +} + +LimitExceededException::LimitExceededException(JsonView jsonValue) : + m_messageHasBeenSet(false), + m_resourceTypeHasBeenSet(false) +{ + *this = jsonValue; +} + +LimitExceededException& LimitExceededException::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("Message")) + { + m_message = jsonValue.GetString("Message"); + + m_messageHasBeenSet = true; + } + + if(jsonValue.ValueExists("ResourceType")) + { + m_resourceType = jsonValue.GetString("ResourceType"); + + m_resourceTypeHasBeenSet = true; + } + + return *this; +} + +JsonValue LimitExceededException::Jsonize() const +{ + JsonValue payload; + + if(m_messageHasBeenSet) + { + payload.WithString("Message", m_message); + + } + + if(m_resourceTypeHasBeenSet) + { + payload.WithString("ResourceType", m_resourceType); + + } + + return payload; +} + +} // namespace Model +} // namespace Route53Profiles +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-route53profiles/source/model/ListProfileAssociationsRequest.cpp b/generated/src/aws-cpp-sdk-route53profiles/source/model/ListProfileAssociationsRequest.cpp new file mode 100644 index 00000000000..314f07d8e22 --- /dev/null +++ b/generated/src/aws-cpp-sdk-route53profiles/source/model/ListProfileAssociationsRequest.cpp @@ -0,0 +1,66 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +#include + +using namespace Aws::Route53Profiles::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws::Http; + +ListProfileAssociationsRequest::ListProfileAssociationsRequest() : + m_maxResults(0), + m_maxResultsHasBeenSet(false), + m_nextTokenHasBeenSet(false), + m_profileIdHasBeenSet(false), + m_resourceIdHasBeenSet(false) +{ +} + +Aws::String ListProfileAssociationsRequest::SerializePayload() const +{ + return {}; +} + +void ListProfileAssociationsRequest::AddQueryStringParameters(URI& uri) const +{ + Aws::StringStream ss; + if(m_maxResultsHasBeenSet) + { + ss << m_maxResults; + uri.AddQueryStringParameter("maxResults", ss.str()); + ss.str(""); + } + + if(m_nextTokenHasBeenSet) + { + ss << m_nextToken; + uri.AddQueryStringParameter("nextToken", ss.str()); + ss.str(""); + } + + if(m_profileIdHasBeenSet) + { + ss << m_profileId; + uri.AddQueryStringParameter("profileId", ss.str()); + ss.str(""); + } + + if(m_resourceIdHasBeenSet) + { + ss << m_resourceId; + uri.AddQueryStringParameter("resourceId", ss.str()); + ss.str(""); + } + +} + + + diff --git a/generated/src/aws-cpp-sdk-route53profiles/source/model/ListProfileAssociationsResult.cpp b/generated/src/aws-cpp-sdk-route53profiles/source/model/ListProfileAssociationsResult.cpp new file mode 100644 index 00000000000..c087ebe10df --- /dev/null +++ b/generated/src/aws-cpp-sdk-route53profiles/source/model/ListProfileAssociationsResult.cpp @@ -0,0 +1,57 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::Route53Profiles::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +ListProfileAssociationsResult::ListProfileAssociationsResult() +{ +} + +ListProfileAssociationsResult::ListProfileAssociationsResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +ListProfileAssociationsResult& ListProfileAssociationsResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("NextToken")) + { + m_nextToken = jsonValue.GetString("NextToken"); + + } + + if(jsonValue.ValueExists("ProfileAssociations")) + { + Aws::Utils::Array profileAssociationsJsonList = jsonValue.GetArray("ProfileAssociations"); + for(unsigned profileAssociationsIndex = 0; profileAssociationsIndex < profileAssociationsJsonList.GetLength(); ++profileAssociationsIndex) + { + m_profileAssociations.push_back(profileAssociationsJsonList[profileAssociationsIndex].AsObject()); + } + } + + + 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-route53profiles/source/model/ListProfileResourceAssociationsRequest.cpp b/generated/src/aws-cpp-sdk-route53profiles/source/model/ListProfileResourceAssociationsRequest.cpp new file mode 100644 index 00000000000..095e5531320 --- /dev/null +++ b/generated/src/aws-cpp-sdk-route53profiles/source/model/ListProfileResourceAssociationsRequest.cpp @@ -0,0 +1,59 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +#include + +using namespace Aws::Route53Profiles::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws::Http; + +ListProfileResourceAssociationsRequest::ListProfileResourceAssociationsRequest() : + m_maxResults(0), + m_maxResultsHasBeenSet(false), + m_nextTokenHasBeenSet(false), + m_profileIdHasBeenSet(false), + m_resourceTypeHasBeenSet(false) +{ +} + +Aws::String ListProfileResourceAssociationsRequest::SerializePayload() const +{ + return {}; +} + +void ListProfileResourceAssociationsRequest::AddQueryStringParameters(URI& uri) const +{ + Aws::StringStream ss; + if(m_maxResultsHasBeenSet) + { + ss << m_maxResults; + uri.AddQueryStringParameter("maxResults", ss.str()); + ss.str(""); + } + + if(m_nextTokenHasBeenSet) + { + ss << m_nextToken; + uri.AddQueryStringParameter("nextToken", ss.str()); + ss.str(""); + } + + if(m_resourceTypeHasBeenSet) + { + ss << m_resourceType; + uri.AddQueryStringParameter("resourceType", ss.str()); + ss.str(""); + } + +} + + + diff --git a/generated/src/aws-cpp-sdk-route53profiles/source/model/ListProfileResourceAssociationsResult.cpp b/generated/src/aws-cpp-sdk-route53profiles/source/model/ListProfileResourceAssociationsResult.cpp new file mode 100644 index 00000000000..5cc77d58f9a --- /dev/null +++ b/generated/src/aws-cpp-sdk-route53profiles/source/model/ListProfileResourceAssociationsResult.cpp @@ -0,0 +1,57 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::Route53Profiles::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +ListProfileResourceAssociationsResult::ListProfileResourceAssociationsResult() +{ +} + +ListProfileResourceAssociationsResult::ListProfileResourceAssociationsResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +ListProfileResourceAssociationsResult& ListProfileResourceAssociationsResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("NextToken")) + { + m_nextToken = jsonValue.GetString("NextToken"); + + } + + if(jsonValue.ValueExists("ProfileResourceAssociations")) + { + Aws::Utils::Array profileResourceAssociationsJsonList = jsonValue.GetArray("ProfileResourceAssociations"); + for(unsigned profileResourceAssociationsIndex = 0; profileResourceAssociationsIndex < profileResourceAssociationsJsonList.GetLength(); ++profileResourceAssociationsIndex) + { + m_profileResourceAssociations.push_back(profileResourceAssociationsJsonList[profileResourceAssociationsIndex].AsObject()); + } + } + + + 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-route53profiles/source/model/ListProfilesRequest.cpp b/generated/src/aws-cpp-sdk-route53profiles/source/model/ListProfilesRequest.cpp new file mode 100644 index 00000000000..c31250f846d --- /dev/null +++ b/generated/src/aws-cpp-sdk-route53profiles/source/model/ListProfilesRequest.cpp @@ -0,0 +1,50 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +#include + +using namespace Aws::Route53Profiles::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws::Http; + +ListProfilesRequest::ListProfilesRequest() : + m_maxResults(0), + m_maxResultsHasBeenSet(false), + m_nextTokenHasBeenSet(false) +{ +} + +Aws::String ListProfilesRequest::SerializePayload() const +{ + return {}; +} + +void ListProfilesRequest::AddQueryStringParameters(URI& uri) const +{ + Aws::StringStream ss; + if(m_maxResultsHasBeenSet) + { + ss << m_maxResults; + uri.AddQueryStringParameter("maxResults", ss.str()); + ss.str(""); + } + + if(m_nextTokenHasBeenSet) + { + ss << m_nextToken; + uri.AddQueryStringParameter("nextToken", ss.str()); + ss.str(""); + } + +} + + + diff --git a/generated/src/aws-cpp-sdk-route53profiles/source/model/ListProfilesResult.cpp b/generated/src/aws-cpp-sdk-route53profiles/source/model/ListProfilesResult.cpp new file mode 100644 index 00000000000..748cb40b001 --- /dev/null +++ b/generated/src/aws-cpp-sdk-route53profiles/source/model/ListProfilesResult.cpp @@ -0,0 +1,57 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::Route53Profiles::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +ListProfilesResult::ListProfilesResult() +{ +} + +ListProfilesResult::ListProfilesResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +ListProfilesResult& ListProfilesResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("NextToken")) + { + m_nextToken = jsonValue.GetString("NextToken"); + + } + + if(jsonValue.ValueExists("ProfileSummaries")) + { + Aws::Utils::Array profileSummariesJsonList = jsonValue.GetArray("ProfileSummaries"); + for(unsigned profileSummariesIndex = 0; profileSummariesIndex < profileSummariesJsonList.GetLength(); ++profileSummariesIndex) + { + m_profileSummaries.push_back(profileSummariesJsonList[profileSummariesIndex].AsObject()); + } + } + + + 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-route53profiles/source/model/ListTagsForResourceRequest.cpp b/generated/src/aws-cpp-sdk-route53profiles/source/model/ListTagsForResourceRequest.cpp new file mode 100644 index 00000000000..b306e853208 --- /dev/null +++ b/generated/src/aws-cpp-sdk-route53profiles/source/model/ListTagsForResourceRequest.cpp @@ -0,0 +1,27 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Route53Profiles::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +ListTagsForResourceRequest::ListTagsForResourceRequest() : + m_resourceArnHasBeenSet(false) +{ +} + +Aws::String ListTagsForResourceRequest::SerializePayload() const +{ + return {}; +} + + + + diff --git a/generated/src/aws-cpp-sdk-route53profiles/source/model/ListTagsForResourceResult.cpp b/generated/src/aws-cpp-sdk-route53profiles/source/model/ListTagsForResourceResult.cpp new file mode 100644 index 00000000000..55939069355 --- /dev/null +++ b/generated/src/aws-cpp-sdk-route53profiles/source/model/ListTagsForResourceResult.cpp @@ -0,0 +1,51 @@ +/** + * 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::Route53Profiles::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +ListTagsForResourceResult::ListTagsForResourceResult() +{ +} + +ListTagsForResourceResult::ListTagsForResourceResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +ListTagsForResourceResult& ListTagsForResourceResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("Tags")) + { + Aws::Map tagsJsonMap = jsonValue.GetObject("Tags").GetAllObjects(); + for(auto& tagsItem : tagsJsonMap) + { + m_tags[tagsItem.first] = tagsItem.second.AsString(); + } + } + + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-route53profiles/source/model/Profile.cpp b/generated/src/aws-cpp-sdk-route53profiles/source/model/Profile.cpp new file mode 100644 index 00000000000..449411b2ec4 --- /dev/null +++ b/generated/src/aws-cpp-sdk-route53profiles/source/model/Profile.cpp @@ -0,0 +1,194 @@ +/** + * 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 Route53Profiles +{ +namespace Model +{ + +Profile::Profile() : + m_arnHasBeenSet(false), + m_clientTokenHasBeenSet(false), + m_creationTimeHasBeenSet(false), + m_idHasBeenSet(false), + m_modificationTimeHasBeenSet(false), + m_nameHasBeenSet(false), + m_ownerIdHasBeenSet(false), + m_shareStatus(ShareStatus::NOT_SET), + m_shareStatusHasBeenSet(false), + m_status(ProfileStatus::NOT_SET), + m_statusHasBeenSet(false), + m_statusMessageHasBeenSet(false) +{ +} + +Profile::Profile(JsonView jsonValue) : + m_arnHasBeenSet(false), + m_clientTokenHasBeenSet(false), + m_creationTimeHasBeenSet(false), + m_idHasBeenSet(false), + m_modificationTimeHasBeenSet(false), + m_nameHasBeenSet(false), + m_ownerIdHasBeenSet(false), + m_shareStatus(ShareStatus::NOT_SET), + m_shareStatusHasBeenSet(false), + m_status(ProfileStatus::NOT_SET), + m_statusHasBeenSet(false), + m_statusMessageHasBeenSet(false) +{ + *this = jsonValue; +} + +Profile& Profile::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("Arn")) + { + m_arn = jsonValue.GetString("Arn"); + + m_arnHasBeenSet = true; + } + + if(jsonValue.ValueExists("ClientToken")) + { + m_clientToken = jsonValue.GetString("ClientToken"); + + m_clientTokenHasBeenSet = true; + } + + if(jsonValue.ValueExists("CreationTime")) + { + m_creationTime = jsonValue.GetDouble("CreationTime"); + + m_creationTimeHasBeenSet = true; + } + + if(jsonValue.ValueExists("Id")) + { + m_id = jsonValue.GetString("Id"); + + m_idHasBeenSet = true; + } + + if(jsonValue.ValueExists("ModificationTime")) + { + m_modificationTime = jsonValue.GetDouble("ModificationTime"); + + m_modificationTimeHasBeenSet = true; + } + + if(jsonValue.ValueExists("Name")) + { + m_name = jsonValue.GetString("Name"); + + m_nameHasBeenSet = true; + } + + if(jsonValue.ValueExists("OwnerId")) + { + m_ownerId = jsonValue.GetString("OwnerId"); + + m_ownerIdHasBeenSet = true; + } + + if(jsonValue.ValueExists("ShareStatus")) + { + m_shareStatus = ShareStatusMapper::GetShareStatusForName(jsonValue.GetString("ShareStatus")); + + m_shareStatusHasBeenSet = true; + } + + if(jsonValue.ValueExists("Status")) + { + m_status = ProfileStatusMapper::GetProfileStatusForName(jsonValue.GetString("Status")); + + m_statusHasBeenSet = true; + } + + if(jsonValue.ValueExists("StatusMessage")) + { + m_statusMessage = jsonValue.GetString("StatusMessage"); + + m_statusMessageHasBeenSet = true; + } + + return *this; +} + +JsonValue Profile::Jsonize() const +{ + JsonValue payload; + + if(m_arnHasBeenSet) + { + payload.WithString("Arn", m_arn); + + } + + if(m_clientTokenHasBeenSet) + { + payload.WithString("ClientToken", m_clientToken); + + } + + if(m_creationTimeHasBeenSet) + { + payload.WithDouble("CreationTime", m_creationTime.SecondsWithMSPrecision()); + } + + if(m_idHasBeenSet) + { + payload.WithString("Id", m_id); + + } + + if(m_modificationTimeHasBeenSet) + { + payload.WithDouble("ModificationTime", m_modificationTime.SecondsWithMSPrecision()); + } + + if(m_nameHasBeenSet) + { + payload.WithString("Name", m_name); + + } + + if(m_ownerIdHasBeenSet) + { + payload.WithString("OwnerId", m_ownerId); + + } + + if(m_shareStatusHasBeenSet) + { + payload.WithString("ShareStatus", ShareStatusMapper::GetNameForShareStatus(m_shareStatus)); + } + + if(m_statusHasBeenSet) + { + payload.WithString("Status", ProfileStatusMapper::GetNameForProfileStatus(m_status)); + } + + if(m_statusMessageHasBeenSet) + { + payload.WithString("StatusMessage", m_statusMessage); + + } + + return payload; +} + +} // namespace Model +} // namespace Route53Profiles +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-route53profiles/source/model/ProfileAssociation.cpp b/generated/src/aws-cpp-sdk-route53profiles/source/model/ProfileAssociation.cpp new file mode 100644 index 00000000000..25a9d360189 --- /dev/null +++ b/generated/src/aws-cpp-sdk-route53profiles/source/model/ProfileAssociation.cpp @@ -0,0 +1,178 @@ +/** + * 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 Route53Profiles +{ +namespace Model +{ + +ProfileAssociation::ProfileAssociation() : + m_creationTimeHasBeenSet(false), + m_idHasBeenSet(false), + m_modificationTimeHasBeenSet(false), + m_nameHasBeenSet(false), + m_ownerIdHasBeenSet(false), + m_profileIdHasBeenSet(false), + m_resourceIdHasBeenSet(false), + m_status(ProfileStatus::NOT_SET), + m_statusHasBeenSet(false), + m_statusMessageHasBeenSet(false) +{ +} + +ProfileAssociation::ProfileAssociation(JsonView jsonValue) : + m_creationTimeHasBeenSet(false), + m_idHasBeenSet(false), + m_modificationTimeHasBeenSet(false), + m_nameHasBeenSet(false), + m_ownerIdHasBeenSet(false), + m_profileIdHasBeenSet(false), + m_resourceIdHasBeenSet(false), + m_status(ProfileStatus::NOT_SET), + m_statusHasBeenSet(false), + m_statusMessageHasBeenSet(false) +{ + *this = jsonValue; +} + +ProfileAssociation& ProfileAssociation::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("CreationTime")) + { + m_creationTime = jsonValue.GetDouble("CreationTime"); + + m_creationTimeHasBeenSet = true; + } + + if(jsonValue.ValueExists("Id")) + { + m_id = jsonValue.GetString("Id"); + + m_idHasBeenSet = true; + } + + if(jsonValue.ValueExists("ModificationTime")) + { + m_modificationTime = jsonValue.GetDouble("ModificationTime"); + + m_modificationTimeHasBeenSet = true; + } + + if(jsonValue.ValueExists("Name")) + { + m_name = jsonValue.GetString("Name"); + + m_nameHasBeenSet = true; + } + + if(jsonValue.ValueExists("OwnerId")) + { + m_ownerId = jsonValue.GetString("OwnerId"); + + m_ownerIdHasBeenSet = true; + } + + if(jsonValue.ValueExists("ProfileId")) + { + m_profileId = jsonValue.GetString("ProfileId"); + + m_profileIdHasBeenSet = true; + } + + if(jsonValue.ValueExists("ResourceId")) + { + m_resourceId = jsonValue.GetString("ResourceId"); + + m_resourceIdHasBeenSet = true; + } + + if(jsonValue.ValueExists("Status")) + { + m_status = ProfileStatusMapper::GetProfileStatusForName(jsonValue.GetString("Status")); + + m_statusHasBeenSet = true; + } + + if(jsonValue.ValueExists("StatusMessage")) + { + m_statusMessage = jsonValue.GetString("StatusMessage"); + + m_statusMessageHasBeenSet = true; + } + + return *this; +} + +JsonValue ProfileAssociation::Jsonize() const +{ + JsonValue payload; + + if(m_creationTimeHasBeenSet) + { + payload.WithDouble("CreationTime", m_creationTime.SecondsWithMSPrecision()); + } + + if(m_idHasBeenSet) + { + payload.WithString("Id", m_id); + + } + + if(m_modificationTimeHasBeenSet) + { + payload.WithDouble("ModificationTime", m_modificationTime.SecondsWithMSPrecision()); + } + + if(m_nameHasBeenSet) + { + payload.WithString("Name", m_name); + + } + + if(m_ownerIdHasBeenSet) + { + payload.WithString("OwnerId", m_ownerId); + + } + + if(m_profileIdHasBeenSet) + { + payload.WithString("ProfileId", m_profileId); + + } + + if(m_resourceIdHasBeenSet) + { + payload.WithString("ResourceId", m_resourceId); + + } + + if(m_statusHasBeenSet) + { + payload.WithString("Status", ProfileStatusMapper::GetNameForProfileStatus(m_status)); + } + + if(m_statusMessageHasBeenSet) + { + payload.WithString("StatusMessage", m_statusMessage); + + } + + return payload; +} + +} // namespace Model +} // namespace Route53Profiles +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-route53profiles/source/model/ProfileResourceAssociation.cpp b/generated/src/aws-cpp-sdk-route53profiles/source/model/ProfileResourceAssociation.cpp new file mode 100644 index 00000000000..844b0b662a0 --- /dev/null +++ b/generated/src/aws-cpp-sdk-route53profiles/source/model/ProfileResourceAssociation.cpp @@ -0,0 +1,208 @@ +/** + * 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 Route53Profiles +{ +namespace Model +{ + +ProfileResourceAssociation::ProfileResourceAssociation() : + m_creationTimeHasBeenSet(false), + m_idHasBeenSet(false), + m_modificationTimeHasBeenSet(false), + m_nameHasBeenSet(false), + m_ownerIdHasBeenSet(false), + m_profileIdHasBeenSet(false), + m_resourceArnHasBeenSet(false), + m_resourcePropertiesHasBeenSet(false), + m_resourceTypeHasBeenSet(false), + m_status(ProfileStatus::NOT_SET), + m_statusHasBeenSet(false), + m_statusMessageHasBeenSet(false) +{ +} + +ProfileResourceAssociation::ProfileResourceAssociation(JsonView jsonValue) : + m_creationTimeHasBeenSet(false), + m_idHasBeenSet(false), + m_modificationTimeHasBeenSet(false), + m_nameHasBeenSet(false), + m_ownerIdHasBeenSet(false), + m_profileIdHasBeenSet(false), + m_resourceArnHasBeenSet(false), + m_resourcePropertiesHasBeenSet(false), + m_resourceTypeHasBeenSet(false), + m_status(ProfileStatus::NOT_SET), + m_statusHasBeenSet(false), + m_statusMessageHasBeenSet(false) +{ + *this = jsonValue; +} + +ProfileResourceAssociation& ProfileResourceAssociation::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("CreationTime")) + { + m_creationTime = jsonValue.GetDouble("CreationTime"); + + m_creationTimeHasBeenSet = true; + } + + if(jsonValue.ValueExists("Id")) + { + m_id = jsonValue.GetString("Id"); + + m_idHasBeenSet = true; + } + + if(jsonValue.ValueExists("ModificationTime")) + { + m_modificationTime = jsonValue.GetDouble("ModificationTime"); + + m_modificationTimeHasBeenSet = true; + } + + if(jsonValue.ValueExists("Name")) + { + m_name = jsonValue.GetString("Name"); + + m_nameHasBeenSet = true; + } + + if(jsonValue.ValueExists("OwnerId")) + { + m_ownerId = jsonValue.GetString("OwnerId"); + + m_ownerIdHasBeenSet = true; + } + + if(jsonValue.ValueExists("ProfileId")) + { + m_profileId = jsonValue.GetString("ProfileId"); + + m_profileIdHasBeenSet = true; + } + + if(jsonValue.ValueExists("ResourceArn")) + { + m_resourceArn = jsonValue.GetString("ResourceArn"); + + m_resourceArnHasBeenSet = true; + } + + if(jsonValue.ValueExists("ResourceProperties")) + { + m_resourceProperties = jsonValue.GetString("ResourceProperties"); + + m_resourcePropertiesHasBeenSet = true; + } + + if(jsonValue.ValueExists("ResourceType")) + { + m_resourceType = jsonValue.GetString("ResourceType"); + + m_resourceTypeHasBeenSet = true; + } + + if(jsonValue.ValueExists("Status")) + { + m_status = ProfileStatusMapper::GetProfileStatusForName(jsonValue.GetString("Status")); + + m_statusHasBeenSet = true; + } + + if(jsonValue.ValueExists("StatusMessage")) + { + m_statusMessage = jsonValue.GetString("StatusMessage"); + + m_statusMessageHasBeenSet = true; + } + + return *this; +} + +JsonValue ProfileResourceAssociation::Jsonize() const +{ + JsonValue payload; + + if(m_creationTimeHasBeenSet) + { + payload.WithDouble("CreationTime", m_creationTime.SecondsWithMSPrecision()); + } + + if(m_idHasBeenSet) + { + payload.WithString("Id", m_id); + + } + + if(m_modificationTimeHasBeenSet) + { + payload.WithDouble("ModificationTime", m_modificationTime.SecondsWithMSPrecision()); + } + + if(m_nameHasBeenSet) + { + payload.WithString("Name", m_name); + + } + + if(m_ownerIdHasBeenSet) + { + payload.WithString("OwnerId", m_ownerId); + + } + + if(m_profileIdHasBeenSet) + { + payload.WithString("ProfileId", m_profileId); + + } + + if(m_resourceArnHasBeenSet) + { + payload.WithString("ResourceArn", m_resourceArn); + + } + + if(m_resourcePropertiesHasBeenSet) + { + payload.WithString("ResourceProperties", m_resourceProperties); + + } + + if(m_resourceTypeHasBeenSet) + { + payload.WithString("ResourceType", m_resourceType); + + } + + if(m_statusHasBeenSet) + { + payload.WithString("Status", ProfileStatusMapper::GetNameForProfileStatus(m_status)); + } + + if(m_statusMessageHasBeenSet) + { + payload.WithString("StatusMessage", m_statusMessage); + + } + + return payload; +} + +} // namespace Model +} // namespace Route53Profiles +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-route53profiles/source/model/ProfileStatus.cpp b/generated/src/aws-cpp-sdk-route53profiles/source/model/ProfileStatus.cpp new file mode 100644 index 00000000000..9f2acde8d61 --- /dev/null +++ b/generated/src/aws-cpp-sdk-route53profiles/source/model/ProfileStatus.cpp @@ -0,0 +1,100 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace Route53Profiles + { + namespace Model + { + namespace ProfileStatusMapper + { + + static const int COMPLETE_HASH = HashingUtils::HashString("COMPLETE"); + static const int DELETING_HASH = HashingUtils::HashString("DELETING"); + static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); + static const int CREATING_HASH = HashingUtils::HashString("CREATING"); + static const int DELETED_HASH = HashingUtils::HashString("DELETED"); + static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + + + ProfileStatus GetProfileStatusForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == COMPLETE_HASH) + { + return ProfileStatus::COMPLETE; + } + else if (hashCode == DELETING_HASH) + { + return ProfileStatus::DELETING; + } + else if (hashCode == UPDATING_HASH) + { + return ProfileStatus::UPDATING; + } + else if (hashCode == CREATING_HASH) + { + return ProfileStatus::CREATING; + } + else if (hashCode == DELETED_HASH) + { + return ProfileStatus::DELETED; + } + else if (hashCode == FAILED_HASH) + { + return ProfileStatus::FAILED; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return ProfileStatus::NOT_SET; + } + + Aws::String GetNameForProfileStatus(ProfileStatus enumValue) + { + switch(enumValue) + { + case ProfileStatus::NOT_SET: + return {}; + case ProfileStatus::COMPLETE: + return "COMPLETE"; + case ProfileStatus::DELETING: + return "DELETING"; + case ProfileStatus::UPDATING: + return "UPDATING"; + case ProfileStatus::CREATING: + return "CREATING"; + case ProfileStatus::DELETED: + return "DELETED"; + case ProfileStatus::FAILED: + return "FAILED"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace ProfileStatusMapper + } // namespace Model + } // namespace Route53Profiles +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-route53profiles/source/model/ProfileSummary.cpp b/generated/src/aws-cpp-sdk-route53profiles/source/model/ProfileSummary.cpp new file mode 100644 index 00000000000..e4c1cdf8720 --- /dev/null +++ b/generated/src/aws-cpp-sdk-route53profiles/source/model/ProfileSummary.cpp @@ -0,0 +1,105 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace Route53Profiles +{ +namespace Model +{ + +ProfileSummary::ProfileSummary() : + m_arnHasBeenSet(false), + m_idHasBeenSet(false), + m_nameHasBeenSet(false), + m_shareStatus(ShareStatus::NOT_SET), + m_shareStatusHasBeenSet(false) +{ +} + +ProfileSummary::ProfileSummary(JsonView jsonValue) : + m_arnHasBeenSet(false), + m_idHasBeenSet(false), + m_nameHasBeenSet(false), + m_shareStatus(ShareStatus::NOT_SET), + m_shareStatusHasBeenSet(false) +{ + *this = jsonValue; +} + +ProfileSummary& ProfileSummary::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("Arn")) + { + m_arn = jsonValue.GetString("Arn"); + + m_arnHasBeenSet = true; + } + + if(jsonValue.ValueExists("Id")) + { + m_id = jsonValue.GetString("Id"); + + m_idHasBeenSet = true; + } + + if(jsonValue.ValueExists("Name")) + { + m_name = jsonValue.GetString("Name"); + + m_nameHasBeenSet = true; + } + + if(jsonValue.ValueExists("ShareStatus")) + { + m_shareStatus = ShareStatusMapper::GetShareStatusForName(jsonValue.GetString("ShareStatus")); + + m_shareStatusHasBeenSet = true; + } + + return *this; +} + +JsonValue ProfileSummary::Jsonize() const +{ + JsonValue payload; + + if(m_arnHasBeenSet) + { + payload.WithString("Arn", m_arn); + + } + + if(m_idHasBeenSet) + { + payload.WithString("Id", m_id); + + } + + if(m_nameHasBeenSet) + { + payload.WithString("Name", m_name); + + } + + if(m_shareStatusHasBeenSet) + { + payload.WithString("ShareStatus", ShareStatusMapper::GetNameForShareStatus(m_shareStatus)); + } + + return payload; +} + +} // namespace Model +} // namespace Route53Profiles +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-route53profiles/source/model/ResourceExistsException.cpp b/generated/src/aws-cpp-sdk-route53profiles/source/model/ResourceExistsException.cpp new file mode 100644 index 00000000000..12e89b67120 --- /dev/null +++ b/generated/src/aws-cpp-sdk-route53profiles/source/model/ResourceExistsException.cpp @@ -0,0 +1,74 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace Route53Profiles +{ +namespace Model +{ + +ResourceExistsException::ResourceExistsException() : + m_messageHasBeenSet(false), + m_resourceTypeHasBeenSet(false) +{ +} + +ResourceExistsException::ResourceExistsException(JsonView jsonValue) : + m_messageHasBeenSet(false), + m_resourceTypeHasBeenSet(false) +{ + *this = jsonValue; +} + +ResourceExistsException& ResourceExistsException::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("Message")) + { + m_message = jsonValue.GetString("Message"); + + m_messageHasBeenSet = true; + } + + if(jsonValue.ValueExists("ResourceType")) + { + m_resourceType = jsonValue.GetString("ResourceType"); + + m_resourceTypeHasBeenSet = true; + } + + return *this; +} + +JsonValue ResourceExistsException::Jsonize() const +{ + JsonValue payload; + + if(m_messageHasBeenSet) + { + payload.WithString("Message", m_message); + + } + + if(m_resourceTypeHasBeenSet) + { + payload.WithString("ResourceType", m_resourceType); + + } + + return payload; +} + +} // namespace Model +} // namespace Route53Profiles +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-route53profiles/source/model/ResourceNotFoundException.cpp b/generated/src/aws-cpp-sdk-route53profiles/source/model/ResourceNotFoundException.cpp new file mode 100644 index 00000000000..a30b704ebee --- /dev/null +++ b/generated/src/aws-cpp-sdk-route53profiles/source/model/ResourceNotFoundException.cpp @@ -0,0 +1,74 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace Route53Profiles +{ +namespace Model +{ + +ResourceNotFoundException::ResourceNotFoundException() : + m_messageHasBeenSet(false), + m_resourceTypeHasBeenSet(false) +{ +} + +ResourceNotFoundException::ResourceNotFoundException(JsonView jsonValue) : + m_messageHasBeenSet(false), + m_resourceTypeHasBeenSet(false) +{ + *this = jsonValue; +} + +ResourceNotFoundException& ResourceNotFoundException::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("Message")) + { + m_message = jsonValue.GetString("Message"); + + m_messageHasBeenSet = true; + } + + if(jsonValue.ValueExists("ResourceType")) + { + m_resourceType = jsonValue.GetString("ResourceType"); + + m_resourceTypeHasBeenSet = true; + } + + return *this; +} + +JsonValue ResourceNotFoundException::Jsonize() const +{ + JsonValue payload; + + if(m_messageHasBeenSet) + { + payload.WithString("Message", m_message); + + } + + if(m_resourceTypeHasBeenSet) + { + payload.WithString("ResourceType", m_resourceType); + + } + + return payload; +} + +} // namespace Model +} // namespace Route53Profiles +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-route53profiles/source/model/ShareStatus.cpp b/generated/src/aws-cpp-sdk-route53profiles/source/model/ShareStatus.cpp new file mode 100644 index 00000000000..d24a63ec189 --- /dev/null +++ b/generated/src/aws-cpp-sdk-route53profiles/source/model/ShareStatus.cpp @@ -0,0 +1,79 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace Route53Profiles + { + namespace Model + { + namespace ShareStatusMapper + { + + static const int NOT_SHARED_HASH = HashingUtils::HashString("NOT_SHARED"); + static const int SHARED_WITH_ME_HASH = HashingUtils::HashString("SHARED_WITH_ME"); + static const int SHARED_BY_ME_HASH = HashingUtils::HashString("SHARED_BY_ME"); + + + ShareStatus GetShareStatusForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == NOT_SHARED_HASH) + { + return ShareStatus::NOT_SHARED; + } + else if (hashCode == SHARED_WITH_ME_HASH) + { + return ShareStatus::SHARED_WITH_ME; + } + else if (hashCode == SHARED_BY_ME_HASH) + { + return ShareStatus::SHARED_BY_ME; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return ShareStatus::NOT_SET; + } + + Aws::String GetNameForShareStatus(ShareStatus enumValue) + { + switch(enumValue) + { + case ShareStatus::NOT_SET: + return {}; + case ShareStatus::NOT_SHARED: + return "NOT_SHARED"; + case ShareStatus::SHARED_WITH_ME: + return "SHARED_WITH_ME"; + case ShareStatus::SHARED_BY_ME: + return "SHARED_BY_ME"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace ShareStatusMapper + } // namespace Model + } // namespace Route53Profiles +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-route53profiles/source/model/Tag.cpp b/generated/src/aws-cpp-sdk-route53profiles/source/model/Tag.cpp new file mode 100644 index 00000000000..4993e5d531d --- /dev/null +++ b/generated/src/aws-cpp-sdk-route53profiles/source/model/Tag.cpp @@ -0,0 +1,74 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace Route53Profiles +{ +namespace Model +{ + +Tag::Tag() : + m_keyHasBeenSet(false), + m_valueHasBeenSet(false) +{ +} + +Tag::Tag(JsonView jsonValue) : + m_keyHasBeenSet(false), + m_valueHasBeenSet(false) +{ + *this = jsonValue; +} + +Tag& Tag::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("Key")) + { + m_key = jsonValue.GetString("Key"); + + m_keyHasBeenSet = true; + } + + if(jsonValue.ValueExists("Value")) + { + m_value = jsonValue.GetString("Value"); + + m_valueHasBeenSet = true; + } + + return *this; +} + +JsonValue Tag::Jsonize() const +{ + JsonValue payload; + + if(m_keyHasBeenSet) + { + payload.WithString("Key", m_key); + + } + + if(m_valueHasBeenSet) + { + payload.WithString("Value", m_value); + + } + + return payload; +} + +} // namespace Model +} // namespace Route53Profiles +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-route53profiles/source/model/TagResourceRequest.cpp b/generated/src/aws-cpp-sdk-route53profiles/source/model/TagResourceRequest.cpp new file mode 100644 index 00000000000..8452095bb11 --- /dev/null +++ b/generated/src/aws-cpp-sdk-route53profiles/source/model/TagResourceRequest.cpp @@ -0,0 +1,41 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Route53Profiles::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +TagResourceRequest::TagResourceRequest() : + m_resourceArnHasBeenSet(false), + m_tagsHasBeenSet(false) +{ +} + +Aws::String TagResourceRequest::SerializePayload() const +{ + JsonValue payload; + + 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-route53profiles/source/model/TagResourceResult.cpp b/generated/src/aws-cpp-sdk-route53profiles/source/model/TagResourceResult.cpp new file mode 100644 index 00000000000..63c7e93353c --- /dev/null +++ b/generated/src/aws-cpp-sdk-route53profiles/source/model/TagResourceResult.cpp @@ -0,0 +1,42 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::Route53Profiles::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +TagResourceResult::TagResourceResult() +{ +} + +TagResourceResult::TagResourceResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +TagResourceResult& TagResourceResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + AWS_UNREFERENCED_PARAM(result); + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-route53profiles/source/model/UntagResourceRequest.cpp b/generated/src/aws-cpp-sdk-route53profiles/source/model/UntagResourceRequest.cpp new file mode 100644 index 00000000000..b1c5fea49a2 --- /dev/null +++ b/generated/src/aws-cpp-sdk-route53profiles/source/model/UntagResourceRequest.cpp @@ -0,0 +1,45 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +#include + +using namespace Aws::Route53Profiles::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws::Http; + +UntagResourceRequest::UntagResourceRequest() : + m_resourceArnHasBeenSet(false), + m_tagKeysHasBeenSet(false) +{ +} + +Aws::String UntagResourceRequest::SerializePayload() const +{ + return {}; +} + +void UntagResourceRequest::AddQueryStringParameters(URI& uri) const +{ + Aws::StringStream ss; + if(m_tagKeysHasBeenSet) + { + for(const auto& item : m_tagKeys) + { + ss << item; + uri.AddQueryStringParameter("tagKeys", ss.str()); + ss.str(""); + } + } + +} + + + diff --git a/generated/src/aws-cpp-sdk-route53profiles/source/model/UntagResourceResult.cpp b/generated/src/aws-cpp-sdk-route53profiles/source/model/UntagResourceResult.cpp new file mode 100644 index 00000000000..48e5ebf3e4b --- /dev/null +++ b/generated/src/aws-cpp-sdk-route53profiles/source/model/UntagResourceResult.cpp @@ -0,0 +1,42 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::Route53Profiles::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +UntagResourceResult::UntagResourceResult() +{ +} + +UntagResourceResult::UntagResourceResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +UntagResourceResult& UntagResourceResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + AWS_UNREFERENCED_PARAM(result); + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-route53profiles/source/model/UpdateProfileResourceAssociationRequest.cpp b/generated/src/aws-cpp-sdk-route53profiles/source/model/UpdateProfileResourceAssociationRequest.cpp new file mode 100644 index 00000000000..d5e316cfb1e --- /dev/null +++ b/generated/src/aws-cpp-sdk-route53profiles/source/model/UpdateProfileResourceAssociationRequest.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::Route53Profiles::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +UpdateProfileResourceAssociationRequest::UpdateProfileResourceAssociationRequest() : + m_nameHasBeenSet(false), + m_profileResourceAssociationIdHasBeenSet(false), + m_resourcePropertiesHasBeenSet(false) +{ +} + +Aws::String UpdateProfileResourceAssociationRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_nameHasBeenSet) + { + payload.WithString("Name", m_name); + + } + + if(m_resourcePropertiesHasBeenSet) + { + payload.WithString("ResourceProperties", m_resourceProperties); + + } + + return payload.View().WriteReadable(); +} + + + + diff --git a/generated/src/aws-cpp-sdk-route53profiles/source/model/UpdateProfileResourceAssociationResult.cpp b/generated/src/aws-cpp-sdk-route53profiles/source/model/UpdateProfileResourceAssociationResult.cpp new file mode 100644 index 00000000000..e3afb0db28e --- /dev/null +++ b/generated/src/aws-cpp-sdk-route53profiles/source/model/UpdateProfileResourceAssociationResult.cpp @@ -0,0 +1,48 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::Route53Profiles::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +UpdateProfileResourceAssociationResult::UpdateProfileResourceAssociationResult() +{ +} + +UpdateProfileResourceAssociationResult::UpdateProfileResourceAssociationResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +UpdateProfileResourceAssociationResult& UpdateProfileResourceAssociationResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("ProfileResourceAssociation")) + { + m_profileResourceAssociation = jsonValue.GetObject("ProfileResourceAssociation"); + + } + + + 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-sagemaker/include/aws/sagemaker/model/DefaultEbsStorageSettings.h b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/DefaultEbsStorageSettings.h index caf0bb182d2..88ddddc1feb 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/DefaultEbsStorageSettings.h +++ b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/DefaultEbsStorageSettings.h @@ -22,8 +22,8 @@ namespace Model { /** - *

      A collection of default EBS storage settings that applies to private spaces - * created within a domain or user profile.

      See Also:

      A collection of default EBS storage settings that apply to spaces created + * within a domain or user profile.

      See Also:

      AWS * API Reference

      */ @@ -37,43 +37,43 @@ namespace Model /** - *

      The default size of the EBS storage volume for a private space.

      + *

      The default size of the EBS storage volume for a space.

      */ inline int GetDefaultEbsVolumeSizeInGb() const{ return m_defaultEbsVolumeSizeInGb; } /** - *

      The default size of the EBS storage volume for a private space.

      + *

      The default size of the EBS storage volume for a space.

      */ inline bool DefaultEbsVolumeSizeInGbHasBeenSet() const { return m_defaultEbsVolumeSizeInGbHasBeenSet; } /** - *

      The default size of the EBS storage volume for a private space.

      + *

      The default size of the EBS storage volume for a space.

      */ inline void SetDefaultEbsVolumeSizeInGb(int value) { m_defaultEbsVolumeSizeInGbHasBeenSet = true; m_defaultEbsVolumeSizeInGb = value; } /** - *

      The default size of the EBS storage volume for a private space.

      + *

      The default size of the EBS storage volume for a space.

      */ inline DefaultEbsStorageSettings& WithDefaultEbsVolumeSizeInGb(int value) { SetDefaultEbsVolumeSizeInGb(value); return *this;} /** - *

      The maximum size of the EBS storage volume for a private space.

      + *

      The maximum size of the EBS storage volume for a space.

      */ inline int GetMaximumEbsVolumeSizeInGb() const{ return m_maximumEbsVolumeSizeInGb; } /** - *

      The maximum size of the EBS storage volume for a private space.

      + *

      The maximum size of the EBS storage volume for a space.

      */ inline bool MaximumEbsVolumeSizeInGbHasBeenSet() const { return m_maximumEbsVolumeSizeInGbHasBeenSet; } /** - *

      The maximum size of the EBS storage volume for a private space.

      + *

      The maximum size of the EBS storage volume for a space.

      */ inline void SetMaximumEbsVolumeSizeInGb(int value) { m_maximumEbsVolumeSizeInGbHasBeenSet = true; m_maximumEbsVolumeSizeInGb = value; } /** - *

      The maximum size of the EBS storage volume for a private space.

      + *

      The maximum size of the EBS storage volume for a space.

      */ inline DefaultEbsStorageSettings& WithMaximumEbsVolumeSizeInGb(int value) { SetMaximumEbsVolumeSizeInGb(value); return *this;} diff --git a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/DefaultSpaceSettings.h b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/DefaultSpaceSettings.h index 0bcd3a45840..54b124f22d7 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/DefaultSpaceSettings.h +++ b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/DefaultSpaceSettings.h @@ -9,6 +9,10 @@ #include #include #include +#include +#include +#include +#include #include namespace Aws @@ -174,6 +178,112 @@ namespace Model inline DefaultSpaceSettings& WithKernelGatewayAppSettings(KernelGatewayAppSettings&& value) { SetKernelGatewayAppSettings(std::move(value)); return *this;} + + + inline const JupyterLabAppSettings& GetJupyterLabAppSettings() const{ return m_jupyterLabAppSettings; } + + + inline bool JupyterLabAppSettingsHasBeenSet() const { return m_jupyterLabAppSettingsHasBeenSet; } + + + inline void SetJupyterLabAppSettings(const JupyterLabAppSettings& value) { m_jupyterLabAppSettingsHasBeenSet = true; m_jupyterLabAppSettings = value; } + + + inline void SetJupyterLabAppSettings(JupyterLabAppSettings&& value) { m_jupyterLabAppSettingsHasBeenSet = true; m_jupyterLabAppSettings = std::move(value); } + + + inline DefaultSpaceSettings& WithJupyterLabAppSettings(const JupyterLabAppSettings& value) { SetJupyterLabAppSettings(value); return *this;} + + + inline DefaultSpaceSettings& WithJupyterLabAppSettings(JupyterLabAppSettings&& value) { SetJupyterLabAppSettings(std::move(value)); return *this;} + + + + inline const DefaultSpaceStorageSettings& GetSpaceStorageSettings() const{ return m_spaceStorageSettings; } + + + inline bool SpaceStorageSettingsHasBeenSet() const { return m_spaceStorageSettingsHasBeenSet; } + + + inline void SetSpaceStorageSettings(const DefaultSpaceStorageSettings& value) { m_spaceStorageSettingsHasBeenSet = true; m_spaceStorageSettings = value; } + + + inline void SetSpaceStorageSettings(DefaultSpaceStorageSettings&& value) { m_spaceStorageSettingsHasBeenSet = true; m_spaceStorageSettings = std::move(value); } + + + inline DefaultSpaceSettings& WithSpaceStorageSettings(const DefaultSpaceStorageSettings& value) { SetSpaceStorageSettings(value); return *this;} + + + inline DefaultSpaceSettings& WithSpaceStorageSettings(DefaultSpaceStorageSettings&& value) { SetSpaceStorageSettings(std::move(value)); return *this;} + + + + inline const CustomPosixUserConfig& GetCustomPosixUserConfig() const{ return m_customPosixUserConfig; } + + + inline bool CustomPosixUserConfigHasBeenSet() const { return m_customPosixUserConfigHasBeenSet; } + + + inline void SetCustomPosixUserConfig(const CustomPosixUserConfig& value) { m_customPosixUserConfigHasBeenSet = true; m_customPosixUserConfig = value; } + + + inline void SetCustomPosixUserConfig(CustomPosixUserConfig&& value) { m_customPosixUserConfigHasBeenSet = true; m_customPosixUserConfig = std::move(value); } + + + inline DefaultSpaceSettings& WithCustomPosixUserConfig(const CustomPosixUserConfig& value) { SetCustomPosixUserConfig(value); return *this;} + + + inline DefaultSpaceSettings& WithCustomPosixUserConfig(CustomPosixUserConfig&& value) { SetCustomPosixUserConfig(std::move(value)); return *this;} + + + /** + *

      The settings for assigning a custom file system to a domain. Permitted users + * can access this file system in Amazon SageMaker Studio.

      + */ + inline const Aws::Vector& GetCustomFileSystemConfigs() const{ return m_customFileSystemConfigs; } + + /** + *

      The settings for assigning a custom file system to a domain. Permitted users + * can access this file system in Amazon SageMaker Studio.

      + */ + inline bool CustomFileSystemConfigsHasBeenSet() const { return m_customFileSystemConfigsHasBeenSet; } + + /** + *

      The settings for assigning a custom file system to a domain. Permitted users + * can access this file system in Amazon SageMaker Studio.

      + */ + inline void SetCustomFileSystemConfigs(const Aws::Vector& value) { m_customFileSystemConfigsHasBeenSet = true; m_customFileSystemConfigs = value; } + + /** + *

      The settings for assigning a custom file system to a domain. Permitted users + * can access this file system in Amazon SageMaker Studio.

      + */ + inline void SetCustomFileSystemConfigs(Aws::Vector&& value) { m_customFileSystemConfigsHasBeenSet = true; m_customFileSystemConfigs = std::move(value); } + + /** + *

      The settings for assigning a custom file system to a domain. Permitted users + * can access this file system in Amazon SageMaker Studio.

      + */ + inline DefaultSpaceSettings& WithCustomFileSystemConfigs(const Aws::Vector& value) { SetCustomFileSystemConfigs(value); return *this;} + + /** + *

      The settings for assigning a custom file system to a domain. Permitted users + * can access this file system in Amazon SageMaker Studio.

      + */ + inline DefaultSpaceSettings& WithCustomFileSystemConfigs(Aws::Vector&& value) { SetCustomFileSystemConfigs(std::move(value)); return *this;} + + /** + *

      The settings for assigning a custom file system to a domain. Permitted users + * can access this file system in Amazon SageMaker Studio.

      + */ + inline DefaultSpaceSettings& AddCustomFileSystemConfigs(const CustomFileSystemConfig& value) { m_customFileSystemConfigsHasBeenSet = true; m_customFileSystemConfigs.push_back(value); return *this; } + + /** + *

      The settings for assigning a custom file system to a domain. Permitted users + * can access this file system in Amazon SageMaker Studio.

      + */ + inline DefaultSpaceSettings& AddCustomFileSystemConfigs(CustomFileSystemConfig&& value) { m_customFileSystemConfigsHasBeenSet = true; m_customFileSystemConfigs.push_back(std::move(value)); return *this; } + private: Aws::String m_executionRole; @@ -187,6 +297,18 @@ namespace Model KernelGatewayAppSettings m_kernelGatewayAppSettings; bool m_kernelGatewayAppSettingsHasBeenSet = false; + + JupyterLabAppSettings m_jupyterLabAppSettings; + bool m_jupyterLabAppSettingsHasBeenSet = false; + + DefaultSpaceStorageSettings m_spaceStorageSettings; + bool m_spaceStorageSettingsHasBeenSet = false; + + CustomPosixUserConfig m_customPosixUserConfig; + bool m_customPosixUserConfigHasBeenSet = false; + + Aws::Vector m_customFileSystemConfigs; + bool m_customFileSystemConfigsHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/DefaultSpaceStorageSettings.h b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/DefaultSpaceStorageSettings.h index 1770179dcc0..c85445af6a2 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/DefaultSpaceStorageSettings.h +++ b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/DefaultSpaceStorageSettings.h @@ -24,8 +24,7 @@ namespace Model { /** - *

      The default storage settings for a private space.

      See Also:

      - * The default storage settings for a space.

      See Also:

      AWS * API Reference

      */ @@ -39,32 +38,32 @@ namespace Model /** - *

      The default EBS storage settings for a private space.

      + *

      The default EBS storage settings for a space.

      */ inline const DefaultEbsStorageSettings& GetDefaultEbsStorageSettings() const{ return m_defaultEbsStorageSettings; } /** - *

      The default EBS storage settings for a private space.

      + *

      The default EBS storage settings for a space.

      */ inline bool DefaultEbsStorageSettingsHasBeenSet() const { return m_defaultEbsStorageSettingsHasBeenSet; } /** - *

      The default EBS storage settings for a private space.

      + *

      The default EBS storage settings for a space.

      */ inline void SetDefaultEbsStorageSettings(const DefaultEbsStorageSettings& value) { m_defaultEbsStorageSettingsHasBeenSet = true; m_defaultEbsStorageSettings = value; } /** - *

      The default EBS storage settings for a private space.

      + *

      The default EBS storage settings for a space.

      */ inline void SetDefaultEbsStorageSettings(DefaultEbsStorageSettings&& value) { m_defaultEbsStorageSettingsHasBeenSet = true; m_defaultEbsStorageSettings = std::move(value); } /** - *

      The default EBS storage settings for a private space.

      + *

      The default EBS storage settings for a space.

      */ inline DefaultSpaceStorageSettings& WithDefaultEbsStorageSettings(const DefaultEbsStorageSettings& value) { SetDefaultEbsStorageSettings(value); return *this;} /** - *

      The default EBS storage settings for a private space.

      + *

      The default EBS storage settings for a space.

      */ inline DefaultSpaceStorageSettings& WithDefaultEbsStorageSettings(DefaultEbsStorageSettings&& value) { SetDefaultEbsStorageSettings(std::move(value)); return *this;} diff --git a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/EbsStorageSettings.h b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/EbsStorageSettings.h index 4f37f9e95b0..72dd7a10963 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/EbsStorageSettings.h +++ b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/EbsStorageSettings.h @@ -22,7 +22,7 @@ namespace Model { /** - *

      A collection of EBS storage settings that applies to private + *

      A collection of EBS storage settings that apply to both private and shared * spaces.

      See Also:

      AWS * API Reference

      @@ -37,22 +37,22 @@ namespace Model /** - *

      The size of an EBS storage volume for a private space.

      + *

      The size of an EBS storage volume for a space.

      */ inline int GetEbsVolumeSizeInGb() const{ return m_ebsVolumeSizeInGb; } /** - *

      The size of an EBS storage volume for a private space.

      + *

      The size of an EBS storage volume for a space.

      */ inline bool EbsVolumeSizeInGbHasBeenSet() const { return m_ebsVolumeSizeInGbHasBeenSet; } /** - *

      The size of an EBS storage volume for a private space.

      + *

      The size of an EBS storage volume for a space.

      */ inline void SetEbsVolumeSizeInGb(int value) { m_ebsVolumeSizeInGbHasBeenSet = true; m_ebsVolumeSizeInGb = value; } /** - *

      The size of an EBS storage volume for a private space.

      + *

      The size of an EBS storage volume for a space.

      */ inline EbsStorageSettings& WithEbsVolumeSizeInGb(int value) { SetEbsVolumeSizeInGb(value); return *this;} diff --git a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/OwnershipSettings.h b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/OwnershipSettings.h index c8267c2d48b..0627072d73d 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/OwnershipSettings.h +++ b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/OwnershipSettings.h @@ -39,42 +39,42 @@ namespace Model /** - *

      The user profile who is the owner of the private space.

      + *

      The user profile who is the owner of the space.

      */ inline const Aws::String& GetOwnerUserProfileName() const{ return m_ownerUserProfileName; } /** - *

      The user profile who is the owner of the private space.

      + *

      The user profile who is the owner of the space.

      */ inline bool OwnerUserProfileNameHasBeenSet() const { return m_ownerUserProfileNameHasBeenSet; } /** - *

      The user profile who is the owner of the private space.

      + *

      The user profile who is the owner of the space.

      */ inline void SetOwnerUserProfileName(const Aws::String& value) { m_ownerUserProfileNameHasBeenSet = true; m_ownerUserProfileName = value; } /** - *

      The user profile who is the owner of the private space.

      + *

      The user profile who is the owner of the space.

      */ inline void SetOwnerUserProfileName(Aws::String&& value) { m_ownerUserProfileNameHasBeenSet = true; m_ownerUserProfileName = std::move(value); } /** - *

      The user profile who is the owner of the private space.

      + *

      The user profile who is the owner of the space.

      */ inline void SetOwnerUserProfileName(const char* value) { m_ownerUserProfileNameHasBeenSet = true; m_ownerUserProfileName.assign(value); } /** - *

      The user profile who is the owner of the private space.

      + *

      The user profile who is the owner of the space.

      */ inline OwnershipSettings& WithOwnerUserProfileName(const Aws::String& value) { SetOwnerUserProfileName(value); return *this;} /** - *

      The user profile who is the owner of the private space.

      + *

      The user profile who is the owner of the space.

      */ inline OwnershipSettings& WithOwnerUserProfileName(Aws::String&& value) { SetOwnerUserProfileName(std::move(value)); return *this;} /** - *

      The user profile who is the owner of the private space.

      + *

      The user profile who is the owner of the space.

      */ inline OwnershipSettings& WithOwnerUserProfileName(const char* value) { SetOwnerUserProfileName(value); return *this;} diff --git a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/OwnershipSettingsSummary.h b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/OwnershipSettingsSummary.h index 0ff7dda76f3..8708d50516b 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/OwnershipSettingsSummary.h +++ b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/OwnershipSettingsSummary.h @@ -39,42 +39,42 @@ namespace Model /** - *

      The user profile who is the owner of the private space.

      + *

      The user profile who is the owner of the space.

      */ inline const Aws::String& GetOwnerUserProfileName() const{ return m_ownerUserProfileName; } /** - *

      The user profile who is the owner of the private space.

      + *

      The user profile who is the owner of the space.

      */ inline bool OwnerUserProfileNameHasBeenSet() const { return m_ownerUserProfileNameHasBeenSet; } /** - *

      The user profile who is the owner of the private space.

      + *

      The user profile who is the owner of the space.

      */ inline void SetOwnerUserProfileName(const Aws::String& value) { m_ownerUserProfileNameHasBeenSet = true; m_ownerUserProfileName = value; } /** - *

      The user profile who is the owner of the private space.

      + *

      The user profile who is the owner of the space.

      */ inline void SetOwnerUserProfileName(Aws::String&& value) { m_ownerUserProfileNameHasBeenSet = true; m_ownerUserProfileName = std::move(value); } /** - *

      The user profile who is the owner of the private space.

      + *

      The user profile who is the owner of the space.

      */ inline void SetOwnerUserProfileName(const char* value) { m_ownerUserProfileNameHasBeenSet = true; m_ownerUserProfileName.assign(value); } /** - *

      The user profile who is the owner of the private space.

      + *

      The user profile who is the owner of the space.

      */ inline OwnershipSettingsSummary& WithOwnerUserProfileName(const Aws::String& value) { SetOwnerUserProfileName(value); return *this;} /** - *

      The user profile who is the owner of the private space.

      + *

      The user profile who is the owner of the space.

      */ inline OwnershipSettingsSummary& WithOwnerUserProfileName(Aws::String&& value) { SetOwnerUserProfileName(std::move(value)); return *this;} /** - *

      The user profile who is the owner of the private space.

      + *

      The user profile who is the owner of the space.

      */ inline OwnershipSettingsSummary& WithOwnerUserProfileName(const char* value) { SetOwnerUserProfileName(value); return *this;} diff --git a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/SpaceSettings.h b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/SpaceSettings.h index bc2cc9bcfd8..07788af841b 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/SpaceSettings.h +++ b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/SpaceSettings.h @@ -176,32 +176,32 @@ namespace Model /** - *

      The storage settings for a private space.

      + *

      The storage settings for a space.

      */ inline const SpaceStorageSettings& GetSpaceStorageSettings() const{ return m_spaceStorageSettings; } /** - *

      The storage settings for a private space.

      + *

      The storage settings for a space.

      */ inline bool SpaceStorageSettingsHasBeenSet() const { return m_spaceStorageSettingsHasBeenSet; } /** - *

      The storage settings for a private space.

      + *

      The storage settings for a space.

      */ inline void SetSpaceStorageSettings(const SpaceStorageSettings& value) { m_spaceStorageSettingsHasBeenSet = true; m_spaceStorageSettings = value; } /** - *

      The storage settings for a private space.

      + *

      The storage settings for a space.

      */ inline void SetSpaceStorageSettings(SpaceStorageSettings&& value) { m_spaceStorageSettingsHasBeenSet = true; m_spaceStorageSettings = std::move(value); } /** - *

      The storage settings for a private space.

      + *

      The storage settings for a space.

      */ inline SpaceSettings& WithSpaceStorageSettings(const SpaceStorageSettings& value) { SetSpaceStorageSettings(value); return *this;} /** - *

      The storage settings for a private space.

      + *

      The storage settings for a space.

      */ inline SpaceSettings& WithSpaceStorageSettings(SpaceStorageSettings&& value) { SetSpaceStorageSettings(std::move(value)); return *this;} diff --git a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/SpaceSettingsSummary.h b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/SpaceSettingsSummary.h index fbf86ff4c41..b88619df864 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/SpaceSettingsSummary.h +++ b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/SpaceSettingsSummary.h @@ -71,32 +71,32 @@ namespace Model /** - *

      The storage settings for a private space.

      + *

      The storage settings for a space.

      */ inline const SpaceStorageSettings& GetSpaceStorageSettings() const{ return m_spaceStorageSettings; } /** - *

      The storage settings for a private space.

      + *

      The storage settings for a space.

      */ inline bool SpaceStorageSettingsHasBeenSet() const { return m_spaceStorageSettingsHasBeenSet; } /** - *

      The storage settings for a private space.

      + *

      The storage settings for a space.

      */ inline void SetSpaceStorageSettings(const SpaceStorageSettings& value) { m_spaceStorageSettingsHasBeenSet = true; m_spaceStorageSettings = value; } /** - *

      The storage settings for a private space.

      + *

      The storage settings for a space.

      */ inline void SetSpaceStorageSettings(SpaceStorageSettings&& value) { m_spaceStorageSettingsHasBeenSet = true; m_spaceStorageSettings = std::move(value); } /** - *

      The storage settings for a private space.

      + *

      The storage settings for a space.

      */ inline SpaceSettingsSummary& WithSpaceStorageSettings(const SpaceStorageSettings& value) { SetSpaceStorageSettings(value); return *this;} /** - *

      The storage settings for a private space.

      + *

      The storage settings for a space.

      */ inline SpaceSettingsSummary& WithSpaceStorageSettings(SpaceStorageSettings&& value) { SetSpaceStorageSettings(std::move(value)); return *this;} diff --git a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/SpaceStorageSettings.h b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/SpaceStorageSettings.h index 8d75ae19b7a..49d24a6d43d 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/SpaceStorageSettings.h +++ b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/SpaceStorageSettings.h @@ -24,7 +24,7 @@ namespace Model { /** - *

      The storage settings for a private space.

      See Also:

      The storage settings for a space.

      See Also:

      AWS * API Reference

      */ @@ -38,32 +38,32 @@ namespace Model /** - *

      A collection of EBS storage settings for a private space.

      + *

      A collection of EBS storage settings for a space.

      */ inline const EbsStorageSettings& GetEbsStorageSettings() const{ return m_ebsStorageSettings; } /** - *

      A collection of EBS storage settings for a private space.

      + *

      A collection of EBS storage settings for a space.

      */ inline bool EbsStorageSettingsHasBeenSet() const { return m_ebsStorageSettingsHasBeenSet; } /** - *

      A collection of EBS storage settings for a private space.

      + *

      A collection of EBS storage settings for a space.

      */ inline void SetEbsStorageSettings(const EbsStorageSettings& value) { m_ebsStorageSettingsHasBeenSet = true; m_ebsStorageSettings = value; } /** - *

      A collection of EBS storage settings for a private space.

      + *

      A collection of EBS storage settings for a space.

      */ inline void SetEbsStorageSettings(EbsStorageSettings&& value) { m_ebsStorageSettingsHasBeenSet = true; m_ebsStorageSettings = std::move(value); } /** - *

      A collection of EBS storage settings for a private space.

      + *

      A collection of EBS storage settings for a space.

      */ inline SpaceStorageSettings& WithEbsStorageSettings(const EbsStorageSettings& value) { SetEbsStorageSettings(value); return *this;} /** - *

      A collection of EBS storage settings for a private space.

      + *

      A collection of EBS storage settings for a space.

      */ inline SpaceStorageSettings& WithEbsStorageSettings(EbsStorageSettings&& value) { SetEbsStorageSettings(std::move(value)); return *this;} diff --git a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/UserSettings.h b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/UserSettings.h index e41a96f835e..a5751beeae9 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/UserSettings.h +++ b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/UserSettings.h @@ -517,32 +517,32 @@ namespace Model /** - *

      The storage settings for a private space.

      + *

      The storage settings for a space.

      */ inline const DefaultSpaceStorageSettings& GetSpaceStorageSettings() const{ return m_spaceStorageSettings; } /** - *

      The storage settings for a private space.

      + *

      The storage settings for a space.

      */ inline bool SpaceStorageSettingsHasBeenSet() const { return m_spaceStorageSettingsHasBeenSet; } /** - *

      The storage settings for a private space.

      + *

      The storage settings for a space.

      */ inline void SetSpaceStorageSettings(const DefaultSpaceStorageSettings& value) { m_spaceStorageSettingsHasBeenSet = true; m_spaceStorageSettings = value; } /** - *

      The storage settings for a private space.

      + *

      The storage settings for a space.

      */ inline void SetSpaceStorageSettings(DefaultSpaceStorageSettings&& value) { m_spaceStorageSettingsHasBeenSet = true; m_spaceStorageSettings = std::move(value); } /** - *

      The storage settings for a private space.

      + *

      The storage settings for a space.

      */ inline UserSettings& WithSpaceStorageSettings(const DefaultSpaceStorageSettings& value) { SetSpaceStorageSettings(value); return *this;} /** - *

      The storage settings for a private space.

      + *

      The storage settings for a space.

      */ inline UserSettings& WithSpaceStorageSettings(DefaultSpaceStorageSettings&& value) { SetSpaceStorageSettings(std::move(value)); return *this;} diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/DefaultSpaceSettings.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/DefaultSpaceSettings.cpp index fe9e169500a..14fd4615888 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/DefaultSpaceSettings.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/DefaultSpaceSettings.cpp @@ -22,7 +22,11 @@ DefaultSpaceSettings::DefaultSpaceSettings() : m_executionRoleHasBeenSet(false), m_securityGroupsHasBeenSet(false), m_jupyterServerAppSettingsHasBeenSet(false), - m_kernelGatewayAppSettingsHasBeenSet(false) + m_kernelGatewayAppSettingsHasBeenSet(false), + m_jupyterLabAppSettingsHasBeenSet(false), + m_spaceStorageSettingsHasBeenSet(false), + m_customPosixUserConfigHasBeenSet(false), + m_customFileSystemConfigsHasBeenSet(false) { } @@ -30,7 +34,11 @@ DefaultSpaceSettings::DefaultSpaceSettings(JsonView jsonValue) : m_executionRoleHasBeenSet(false), m_securityGroupsHasBeenSet(false), m_jupyterServerAppSettingsHasBeenSet(false), - m_kernelGatewayAppSettingsHasBeenSet(false) + m_kernelGatewayAppSettingsHasBeenSet(false), + m_jupyterLabAppSettingsHasBeenSet(false), + m_spaceStorageSettingsHasBeenSet(false), + m_customPosixUserConfigHasBeenSet(false), + m_customFileSystemConfigsHasBeenSet(false) { *this = jsonValue; } @@ -68,6 +76,37 @@ DefaultSpaceSettings& DefaultSpaceSettings::operator =(JsonView jsonValue) m_kernelGatewayAppSettingsHasBeenSet = true; } + if(jsonValue.ValueExists("JupyterLabAppSettings")) + { + m_jupyterLabAppSettings = jsonValue.GetObject("JupyterLabAppSettings"); + + m_jupyterLabAppSettingsHasBeenSet = true; + } + + if(jsonValue.ValueExists("SpaceStorageSettings")) + { + m_spaceStorageSettings = jsonValue.GetObject("SpaceStorageSettings"); + + m_spaceStorageSettingsHasBeenSet = true; + } + + if(jsonValue.ValueExists("CustomPosixUserConfig")) + { + m_customPosixUserConfig = jsonValue.GetObject("CustomPosixUserConfig"); + + m_customPosixUserConfigHasBeenSet = true; + } + + if(jsonValue.ValueExists("CustomFileSystemConfigs")) + { + Aws::Utils::Array customFileSystemConfigsJsonList = jsonValue.GetArray("CustomFileSystemConfigs"); + for(unsigned customFileSystemConfigsIndex = 0; customFileSystemConfigsIndex < customFileSystemConfigsJsonList.GetLength(); ++customFileSystemConfigsIndex) + { + m_customFileSystemConfigs.push_back(customFileSystemConfigsJsonList[customFileSystemConfigsIndex].AsObject()); + } + m_customFileSystemConfigsHasBeenSet = true; + } + return *this; } @@ -104,6 +143,35 @@ JsonValue DefaultSpaceSettings::Jsonize() const } + if(m_jupyterLabAppSettingsHasBeenSet) + { + payload.WithObject("JupyterLabAppSettings", m_jupyterLabAppSettings.Jsonize()); + + } + + if(m_spaceStorageSettingsHasBeenSet) + { + payload.WithObject("SpaceStorageSettings", m_spaceStorageSettings.Jsonize()); + + } + + if(m_customPosixUserConfigHasBeenSet) + { + payload.WithObject("CustomPosixUserConfig", m_customPosixUserConfig.Jsonize()); + + } + + if(m_customFileSystemConfigsHasBeenSet) + { + Aws::Utils::Array customFileSystemConfigsJsonList(m_customFileSystemConfigs.size()); + for(unsigned customFileSystemConfigsIndex = 0; customFileSystemConfigsIndex < customFileSystemConfigsJsonList.GetLength(); ++customFileSystemConfigsIndex) + { + customFileSystemConfigsJsonList[customFileSystemConfigsIndex].AsObject(m_customFileSystemConfigs[customFileSystemConfigsIndex].Jsonize()); + } + payload.WithArray("CustomFileSystemConfigs", std::move(customFileSystemConfigsJsonList)); + + } + return payload; } diff --git a/generated/src/aws-cpp-sdk-servicediscovery/include/aws/servicediscovery/ServiceDiscoveryClient.h b/generated/src/aws-cpp-sdk-servicediscovery/include/aws/servicediscovery/ServiceDiscoveryClient.h index 3b20f1776f9..4b371256b7b 100644 --- a/generated/src/aws-cpp-sdk-servicediscovery/include/aws/servicediscovery/ServiceDiscoveryClient.h +++ b/generated/src/aws-cpp-sdk-servicediscovery/include/aws/servicediscovery/ServiceDiscoveryClient.h @@ -573,7 +573,7 @@ namespace ServiceDiscovery /** *

      Lists summary information for all the services that are associated with one - * or more specified namespaces.

      See Also:

      See Also:

      AWS * API Reference

      */ diff --git a/generated/src/aws-cpp-sdk-servicediscovery/include/aws/servicediscovery/model/DiscoverInstancesRequest.h b/generated/src/aws-cpp-sdk-servicediscovery/include/aws/servicediscovery/model/DiscoverInstancesRequest.h index c2fd857132d..d7aae2160f6 100644 --- a/generated/src/aws-cpp-sdk-servicediscovery/include/aws/servicediscovery/model/DiscoverInstancesRequest.h +++ b/generated/src/aws-cpp-sdk-servicediscovery/include/aws/servicediscovery/model/DiscoverInstancesRequest.h @@ -39,56 +39,72 @@ namespace Model /** *

      The HttpName name of the namespace. It's found in the * HttpProperties member of the Properties member of the - * namespace.

      + * namespace. In most cases, Name and HttpName match. + * However, if you reuse Name for namespace creation, a generated hash + * is added to HttpName to distinguish the two.

      */ inline const Aws::String& GetNamespaceName() const{ return m_namespaceName; } /** *

      The HttpName name of the namespace. It's found in the * HttpProperties member of the Properties member of the - * namespace.

      + * namespace. In most cases, Name and HttpName match. + * However, if you reuse Name for namespace creation, a generated hash + * is added to HttpName to distinguish the two.

      */ inline bool NamespaceNameHasBeenSet() const { return m_namespaceNameHasBeenSet; } /** *

      The HttpName name of the namespace. It's found in the * HttpProperties member of the Properties member of the - * namespace.

      + * namespace. In most cases, Name and HttpName match. + * However, if you reuse Name for namespace creation, a generated hash + * is added to HttpName to distinguish the two.

      */ inline void SetNamespaceName(const Aws::String& value) { m_namespaceNameHasBeenSet = true; m_namespaceName = value; } /** *

      The HttpName name of the namespace. It's found in the * HttpProperties member of the Properties member of the - * namespace.

      + * namespace. In most cases, Name and HttpName match. + * However, if you reuse Name for namespace creation, a generated hash + * is added to HttpName to distinguish the two.

      */ inline void SetNamespaceName(Aws::String&& value) { m_namespaceNameHasBeenSet = true; m_namespaceName = std::move(value); } /** *

      The HttpName name of the namespace. It's found in the * HttpProperties member of the Properties member of the - * namespace.

      + * namespace. In most cases, Name and HttpName match. + * However, if you reuse Name for namespace creation, a generated hash + * is added to HttpName to distinguish the two.

      */ inline void SetNamespaceName(const char* value) { m_namespaceNameHasBeenSet = true; m_namespaceName.assign(value); } /** *

      The HttpName name of the namespace. It's found in the * HttpProperties member of the Properties member of the - * namespace.

      + * namespace. In most cases, Name and HttpName match. + * However, if you reuse Name for namespace creation, a generated hash + * is added to HttpName to distinguish the two.

      */ inline DiscoverInstancesRequest& WithNamespaceName(const Aws::String& value) { SetNamespaceName(value); return *this;} /** *

      The HttpName name of the namespace. It's found in the * HttpProperties member of the Properties member of the - * namespace.

      + * namespace. In most cases, Name and HttpName match. + * However, if you reuse Name for namespace creation, a generated hash + * is added to HttpName to distinguish the two.

      */ inline DiscoverInstancesRequest& WithNamespaceName(Aws::String&& value) { SetNamespaceName(std::move(value)); return *this;} /** *

      The HttpName name of the namespace. It's found in the * HttpProperties member of the Properties member of the - * namespace.

      + * namespace. In most cases, Name and HttpName match. + * However, if you reuse Name for namespace creation, a generated hash + * is added to HttpName to distinguish the two.

      */ inline DiscoverInstancesRequest& WithNamespaceName(const char* value) { SetNamespaceName(value); return *this;} diff --git a/generated/src/aws-cpp-sdk-servicediscovery/include/aws/servicediscovery/model/HealthCheckConfig.h b/generated/src/aws-cpp-sdk-servicediscovery/include/aws/servicediscovery/model/HealthCheckConfig.h index f3291dc5882..ea871cf923d 100644 --- a/generated/src/aws-cpp-sdk-servicediscovery/include/aws/servicediscovery/model/HealthCheckConfig.h +++ b/generated/src/aws-cpp-sdk-servicediscovery/include/aws/servicediscovery/model/HealthCheckConfig.h @@ -309,7 +309,7 @@ namespace Model * for Route 53 to change the current status of the endpoint from unhealthy to * healthy or the other way around. For more information, see How - * Route 53 Determines Whether an Endpoint Is Healthy in the Route 53 + * Route 53 Determines Whether an Endpoint Is Healthy in the Route��53 * Developer Guide.

      */ inline int GetFailureThreshold() const{ return m_failureThreshold; } @@ -319,7 +319,7 @@ namespace Model * for Route 53 to change the current status of the endpoint from unhealthy to * healthy or the other way around. For more information, see How - * Route 53 Determines Whether an Endpoint Is Healthy in the Route 53 + * Route 53 Determines Whether an Endpoint Is Healthy in the Route��53 * Developer Guide.

      */ inline bool FailureThresholdHasBeenSet() const { return m_failureThresholdHasBeenSet; } @@ -329,7 +329,7 @@ namespace Model * for Route 53 to change the current status of the endpoint from unhealthy to * healthy or the other way around. For more information, see How - * Route 53 Determines Whether an Endpoint Is Healthy in the Route 53 + * Route 53 Determines Whether an Endpoint Is Healthy in the Route��53 * Developer Guide.

      */ inline void SetFailureThreshold(int value) { m_failureThresholdHasBeenSet = true; m_failureThreshold = value; } @@ -339,7 +339,7 @@ namespace Model * for Route 53 to change the current status of the endpoint from unhealthy to * healthy or the other way around. For more information, see How - * Route 53 Determines Whether an Endpoint Is Healthy in the Route 53 + * Route 53 Determines Whether an Endpoint Is Healthy in the Route��53 * Developer Guide.

      */ inline HealthCheckConfig& WithFailureThreshold(int value) { SetFailureThreshold(value); return *this;} diff --git a/generated/src/aws-cpp-sdk-servicediscovery/include/aws/servicediscovery/model/RegisterInstanceRequest.h b/generated/src/aws-cpp-sdk-servicediscovery/include/aws/servicediscovery/model/RegisterInstanceRequest.h index c40d063c5d3..6a90d092def 100644 --- a/generated/src/aws-cpp-sdk-servicediscovery/include/aws/servicediscovery/model/RegisterInstanceRequest.h +++ b/generated/src/aws-cpp-sdk-servicediscovery/include/aws/servicediscovery/model/RegisterInstanceRequest.h @@ -357,12 +357,12 @@ namespace Model * the records that are defined in the service.

    • For each * attribute, the applicable value.

    Do not include * sensitive information in the attributes if the namespace is discoverable by - * public DNS queries.

    Supported attribute keys include the - * following:

    AWS_ALIAS_DNS_NAME

    If you want Cloud Map to - * create an Amazon Route 53 alias record that routes traffic to an Elastic Load - * Balancing load balancer, specify the DNS name that's associated with the load - * balancer. For information about how to get the DNS name, see "DNSName" in the - * topic

    The following are the supported + * attribute keys.

    AWS_ALIAS_DNS_NAME

    If you want Cloud + * Map to create an Amazon Route 53 alias record that routes traffic to an Elastic + * Load Balancing load balancer, specify the DNS name that's associated with the + * load balancer. For information about how to get the DNS name, see "DNSName" in + * the topic AliasTarget * in the Route 53 API Reference.

    Note the following:

    • *

      The configuration for the service that's specified by ServiceId @@ -376,21 +376,22 @@ namespace Model * support creating alias records that route traffic to Amazon Web Services * resources other than Elastic Load Balancing load balancers.

    • If * you specify a value for AWS_ALIAS_DNS_NAME, don't specify values - * for any of the AWS_INSTANCE attributes.

    - *
    AWS_EC2_INSTANCE_ID

    HTTP namespaces only. The Amazon - * EC2 instance ID for the instance. If the AWS_EC2_INSTANCE_ID - * attribute is specified, then the only other attribute that can be specified is - * AWS_INIT_HEALTH_STATUS. When the AWS_EC2_INSTANCE_ID - * attribute is specified, then the AWS_INSTANCE_IPV4 attribute will - * be filled out with the primary private IPv4 address.

    - *
    AWS_INIT_HEALTH_STATUS

    If the service configuration includes - * HealthCheckCustomConfig, you can optionally use - * AWS_INIT_HEALTH_STATUS to specify the initial status of the custom - * health check, HEALTHY or UNHEALTHY. If you don't - * specify a value for AWS_INIT_HEALTH_STATUS, the initial status is - * HEALTHY.

    AWS_INSTANCE_CNAME

    If the - * service configuration includes a CNAME record, the domain name that - * you want Route 53 to return in response to DNS queries (for example, + * for any of the AWS_INSTANCE attributes.

  • The + * AWS_ALIAS_DNS_NAME is not supported in the GovCloud (US) + * Regions.

  • AWS_EC2_INSTANCE_ID

    HTTP + * namespaces only. The Amazon EC2 instance ID for the instance. If the + * AWS_EC2_INSTANCE_ID attribute is specified, then the only other + * attribute that can be specified is AWS_INIT_HEALTH_STATUS. When the + * AWS_EC2_INSTANCE_ID attribute is specified, then the + * AWS_INSTANCE_IPV4 attribute will be filled out with the primary + * private IPv4 address.

    AWS_INIT_HEALTH_STATUS

    If the + * service configuration includes HealthCheckCustomConfig, you can + * optionally use AWS_INIT_HEALTH_STATUS to specify the initial status + * of the custom health check, HEALTHY or UNHEALTHY. If + * you don't specify a value for AWS_INIT_HEALTH_STATUS, the initial + * status is HEALTHY.

    AWS_INSTANCE_CNAME

    If + * the service configuration includes a CNAME record, the domain name + * that you want Route 53 to return in response to DNS queries (for example, * example.com).

    This value is required if the service * specified by ServiceId includes settings for an CNAME * record.

    AWS_INSTANCE_IPV4

    If the service @@ -428,12 +429,12 @@ namespace Model * the records that are defined in the service.

  • For each * attribute, the applicable value.

  • Do not include * sensitive information in the attributes if the namespace is discoverable by - * public DNS queries.

    Supported attribute keys include the - * following:

    AWS_ALIAS_DNS_NAME

    If you want Cloud Map to - * create an Amazon Route 53 alias record that routes traffic to an Elastic Load - * Balancing load balancer, specify the DNS name that's associated with the load - * balancer. For information about how to get the DNS name, see "DNSName" in the - * topic

    The following are the supported + * attribute keys.

    AWS_ALIAS_DNS_NAME

    If you want Cloud + * Map to create an Amazon Route 53 alias record that routes traffic to an Elastic + * Load Balancing load balancer, specify the DNS name that's associated with the + * load balancer. For information about how to get the DNS name, see "DNSName" in + * the topic AliasTarget * in the Route 53 API Reference.

    Note the following:

    • *

      The configuration for the service that's specified by ServiceId @@ -447,21 +448,22 @@ namespace Model * support creating alias records that route traffic to Amazon Web Services * resources other than Elastic Load Balancing load balancers.

    • If * you specify a value for AWS_ALIAS_DNS_NAME, don't specify values - * for any of the AWS_INSTANCE attributes.

    - *
    AWS_EC2_INSTANCE_ID

    HTTP namespaces only. The Amazon - * EC2 instance ID for the instance. If the AWS_EC2_INSTANCE_ID - * attribute is specified, then the only other attribute that can be specified is - * AWS_INIT_HEALTH_STATUS. When the AWS_EC2_INSTANCE_ID - * attribute is specified, then the AWS_INSTANCE_IPV4 attribute will - * be filled out with the primary private IPv4 address.

    - *
    AWS_INIT_HEALTH_STATUS

    If the service configuration includes - * HealthCheckCustomConfig, you can optionally use - * AWS_INIT_HEALTH_STATUS to specify the initial status of the custom - * health check, HEALTHY or UNHEALTHY. If you don't - * specify a value for AWS_INIT_HEALTH_STATUS, the initial status is - * HEALTHY.

    AWS_INSTANCE_CNAME

    If the - * service configuration includes a CNAME record, the domain name that - * you want Route 53 to return in response to DNS queries (for example, + * for any of the AWS_INSTANCE attributes.

  • The + * AWS_ALIAS_DNS_NAME is not supported in the GovCloud (US) + * Regions.

  • AWS_EC2_INSTANCE_ID

    HTTP + * namespaces only. The Amazon EC2 instance ID for the instance. If the + * AWS_EC2_INSTANCE_ID attribute is specified, then the only other + * attribute that can be specified is AWS_INIT_HEALTH_STATUS. When the + * AWS_EC2_INSTANCE_ID attribute is specified, then the + * AWS_INSTANCE_IPV4 attribute will be filled out with the primary + * private IPv4 address.

    AWS_INIT_HEALTH_STATUS

    If the + * service configuration includes HealthCheckCustomConfig, you can + * optionally use AWS_INIT_HEALTH_STATUS to specify the initial status + * of the custom health check, HEALTHY or UNHEALTHY. If + * you don't specify a value for AWS_INIT_HEALTH_STATUS, the initial + * status is HEALTHY.

    AWS_INSTANCE_CNAME

    If + * the service configuration includes a CNAME record, the domain name + * that you want Route 53 to return in response to DNS queries (for example, * example.com).

    This value is required if the service * specified by ServiceId includes settings for an CNAME * record.

    AWS_INSTANCE_IPV4

    If the service @@ -499,12 +501,12 @@ namespace Model * the records that are defined in the service.

  • For each * attribute, the applicable value.

  • Do not include * sensitive information in the attributes if the namespace is discoverable by - * public DNS queries.

    Supported attribute keys include the - * following:

    AWS_ALIAS_DNS_NAME

    If you want Cloud Map to - * create an Amazon Route 53 alias record that routes traffic to an Elastic Load - * Balancing load balancer, specify the DNS name that's associated with the load - * balancer. For information about how to get the DNS name, see "DNSName" in the - * topic

    The following are the supported + * attribute keys.

    AWS_ALIAS_DNS_NAME

    If you want Cloud + * Map to create an Amazon Route 53 alias record that routes traffic to an Elastic + * Load Balancing load balancer, specify the DNS name that's associated with the + * load balancer. For information about how to get the DNS name, see "DNSName" in + * the topic AliasTarget * in the Route 53 API Reference.

    Note the following:

    • *

      The configuration for the service that's specified by ServiceId @@ -518,21 +520,22 @@ namespace Model * support creating alias records that route traffic to Amazon Web Services * resources other than Elastic Load Balancing load balancers.

    • If * you specify a value for AWS_ALIAS_DNS_NAME, don't specify values - * for any of the AWS_INSTANCE attributes.

    - *
    AWS_EC2_INSTANCE_ID

    HTTP namespaces only. The Amazon - * EC2 instance ID for the instance. If the AWS_EC2_INSTANCE_ID - * attribute is specified, then the only other attribute that can be specified is - * AWS_INIT_HEALTH_STATUS. When the AWS_EC2_INSTANCE_ID - * attribute is specified, then the AWS_INSTANCE_IPV4 attribute will - * be filled out with the primary private IPv4 address.

    - *
    AWS_INIT_HEALTH_STATUS

    If the service configuration includes - * HealthCheckCustomConfig, you can optionally use - * AWS_INIT_HEALTH_STATUS to specify the initial status of the custom - * health check, HEALTHY or UNHEALTHY. If you don't - * specify a value for AWS_INIT_HEALTH_STATUS, the initial status is - * HEALTHY.

    AWS_INSTANCE_CNAME

    If the - * service configuration includes a CNAME record, the domain name that - * you want Route 53 to return in response to DNS queries (for example, + * for any of the AWS_INSTANCE attributes.

  • The + * AWS_ALIAS_DNS_NAME is not supported in the GovCloud (US) + * Regions.

  • AWS_EC2_INSTANCE_ID

    HTTP + * namespaces only. The Amazon EC2 instance ID for the instance. If the + * AWS_EC2_INSTANCE_ID attribute is specified, then the only other + * attribute that can be specified is AWS_INIT_HEALTH_STATUS. When the + * AWS_EC2_INSTANCE_ID attribute is specified, then the + * AWS_INSTANCE_IPV4 attribute will be filled out with the primary + * private IPv4 address.

    AWS_INIT_HEALTH_STATUS

    If the + * service configuration includes HealthCheckCustomConfig, you can + * optionally use AWS_INIT_HEALTH_STATUS to specify the initial status + * of the custom health check, HEALTHY or UNHEALTHY. If + * you don't specify a value for AWS_INIT_HEALTH_STATUS, the initial + * status is HEALTHY.

    AWS_INSTANCE_CNAME

    If + * the service configuration includes a CNAME record, the domain name + * that you want Route 53 to return in response to DNS queries (for example, * example.com).

    This value is required if the service * specified by ServiceId includes settings for an CNAME * record.

    AWS_INSTANCE_IPV4

    If the service @@ -570,12 +573,12 @@ namespace Model * the records that are defined in the service.

  • For each * attribute, the applicable value.

  • Do not include * sensitive information in the attributes if the namespace is discoverable by - * public DNS queries.

    Supported attribute keys include the - * following:

    AWS_ALIAS_DNS_NAME

    If you want Cloud Map to - * create an Amazon Route 53 alias record that routes traffic to an Elastic Load - * Balancing load balancer, specify the DNS name that's associated with the load - * balancer. For information about how to get the DNS name, see "DNSName" in the - * topic

    The following are the supported + * attribute keys.

    AWS_ALIAS_DNS_NAME

    If you want Cloud + * Map to create an Amazon Route 53 alias record that routes traffic to an Elastic + * Load Balancing load balancer, specify the DNS name that's associated with the + * load balancer. For information about how to get the DNS name, see "DNSName" in + * the topic AliasTarget * in the Route 53 API Reference.

    Note the following:

    • *

      The configuration for the service that's specified by ServiceId @@ -589,21 +592,22 @@ namespace Model * support creating alias records that route traffic to Amazon Web Services * resources other than Elastic Load Balancing load balancers.

    • If * you specify a value for AWS_ALIAS_DNS_NAME, don't specify values - * for any of the AWS_INSTANCE attributes.

    - *
    AWS_EC2_INSTANCE_ID

    HTTP namespaces only. The Amazon - * EC2 instance ID for the instance. If the AWS_EC2_INSTANCE_ID - * attribute is specified, then the only other attribute that can be specified is - * AWS_INIT_HEALTH_STATUS. When the AWS_EC2_INSTANCE_ID - * attribute is specified, then the AWS_INSTANCE_IPV4 attribute will - * be filled out with the primary private IPv4 address.

    - *
    AWS_INIT_HEALTH_STATUS

    If the service configuration includes - * HealthCheckCustomConfig, you can optionally use - * AWS_INIT_HEALTH_STATUS to specify the initial status of the custom - * health check, HEALTHY or UNHEALTHY. If you don't - * specify a value for AWS_INIT_HEALTH_STATUS, the initial status is - * HEALTHY.

    AWS_INSTANCE_CNAME

    If the - * service configuration includes a CNAME record, the domain name that - * you want Route 53 to return in response to DNS queries (for example, + * for any of the AWS_INSTANCE attributes.

  • The + * AWS_ALIAS_DNS_NAME is not supported in the GovCloud (US) + * Regions.

  • AWS_EC2_INSTANCE_ID

    HTTP + * namespaces only. The Amazon EC2 instance ID for the instance. If the + * AWS_EC2_INSTANCE_ID attribute is specified, then the only other + * attribute that can be specified is AWS_INIT_HEALTH_STATUS. When the + * AWS_EC2_INSTANCE_ID attribute is specified, then the + * AWS_INSTANCE_IPV4 attribute will be filled out with the primary + * private IPv4 address.

    AWS_INIT_HEALTH_STATUS

    If the + * service configuration includes HealthCheckCustomConfig, you can + * optionally use AWS_INIT_HEALTH_STATUS to specify the initial status + * of the custom health check, HEALTHY or UNHEALTHY. If + * you don't specify a value for AWS_INIT_HEALTH_STATUS, the initial + * status is HEALTHY.

    AWS_INSTANCE_CNAME

    If + * the service configuration includes a CNAME record, the domain name + * that you want Route 53 to return in response to DNS queries (for example, * example.com).

    This value is required if the service * specified by ServiceId includes settings for an CNAME * record.

    AWS_INSTANCE_IPV4

    If the service @@ -641,12 +645,12 @@ namespace Model * the records that are defined in the service.

  • For each * attribute, the applicable value.

  • Do not include * sensitive information in the attributes if the namespace is discoverable by - * public DNS queries.

    Supported attribute keys include the - * following:

    AWS_ALIAS_DNS_NAME

    If you want Cloud Map to - * create an Amazon Route 53 alias record that routes traffic to an Elastic Load - * Balancing load balancer, specify the DNS name that's associated with the load - * balancer. For information about how to get the DNS name, see "DNSName" in the - * topic

    The following are the supported + * attribute keys.

    AWS_ALIAS_DNS_NAME

    If you want Cloud + * Map to create an Amazon Route 53 alias record that routes traffic to an Elastic + * Load Balancing load balancer, specify the DNS name that's associated with the + * load balancer. For information about how to get the DNS name, see "DNSName" in + * the topic AliasTarget * in the Route 53 API Reference.

    Note the following:

    • *

      The configuration for the service that's specified by ServiceId @@ -660,21 +664,22 @@ namespace Model * support creating alias records that route traffic to Amazon Web Services * resources other than Elastic Load Balancing load balancers.

    • If * you specify a value for AWS_ALIAS_DNS_NAME, don't specify values - * for any of the AWS_INSTANCE attributes.

    - *
    AWS_EC2_INSTANCE_ID

    HTTP namespaces only. The Amazon - * EC2 instance ID for the instance. If the AWS_EC2_INSTANCE_ID - * attribute is specified, then the only other attribute that can be specified is - * AWS_INIT_HEALTH_STATUS. When the AWS_EC2_INSTANCE_ID - * attribute is specified, then the AWS_INSTANCE_IPV4 attribute will - * be filled out with the primary private IPv4 address.

    - *
    AWS_INIT_HEALTH_STATUS

    If the service configuration includes - * HealthCheckCustomConfig, you can optionally use - * AWS_INIT_HEALTH_STATUS to specify the initial status of the custom - * health check, HEALTHY or UNHEALTHY. If you don't - * specify a value for AWS_INIT_HEALTH_STATUS, the initial status is - * HEALTHY.

    AWS_INSTANCE_CNAME

    If the - * service configuration includes a CNAME record, the domain name that - * you want Route 53 to return in response to DNS queries (for example, + * for any of the AWS_INSTANCE attributes.

  • The + * AWS_ALIAS_DNS_NAME is not supported in the GovCloud (US) + * Regions.

  • AWS_EC2_INSTANCE_ID

    HTTP + * namespaces only. The Amazon EC2 instance ID for the instance. If the + * AWS_EC2_INSTANCE_ID attribute is specified, then the only other + * attribute that can be specified is AWS_INIT_HEALTH_STATUS. When the + * AWS_EC2_INSTANCE_ID attribute is specified, then the + * AWS_INSTANCE_IPV4 attribute will be filled out with the primary + * private IPv4 address.

    AWS_INIT_HEALTH_STATUS

    If the + * service configuration includes HealthCheckCustomConfig, you can + * optionally use AWS_INIT_HEALTH_STATUS to specify the initial status + * of the custom health check, HEALTHY or UNHEALTHY. If + * you don't specify a value for AWS_INIT_HEALTH_STATUS, the initial + * status is HEALTHY.

    AWS_INSTANCE_CNAME

    If + * the service configuration includes a CNAME record, the domain name + * that you want Route 53 to return in response to DNS queries (for example, * example.com).

    This value is required if the service * specified by ServiceId includes settings for an CNAME * record.

    AWS_INSTANCE_IPV4

    If the service @@ -712,12 +717,12 @@ namespace Model * the records that are defined in the service.

  • For each * attribute, the applicable value.

  • Do not include * sensitive information in the attributes if the namespace is discoverable by - * public DNS queries.

    Supported attribute keys include the - * following:

    AWS_ALIAS_DNS_NAME

    If you want Cloud Map to - * create an Amazon Route 53 alias record that routes traffic to an Elastic Load - * Balancing load balancer, specify the DNS name that's associated with the load - * balancer. For information about how to get the DNS name, see "DNSName" in the - * topic

    The following are the supported + * attribute keys.

    AWS_ALIAS_DNS_NAME

    If you want Cloud + * Map to create an Amazon Route 53 alias record that routes traffic to an Elastic + * Load Balancing load balancer, specify the DNS name that's associated with the + * load balancer. For information about how to get the DNS name, see "DNSName" in + * the topic AliasTarget * in the Route 53 API Reference.

    Note the following:

    • *

      The configuration for the service that's specified by ServiceId @@ -731,21 +736,22 @@ namespace Model * support creating alias records that route traffic to Amazon Web Services * resources other than Elastic Load Balancing load balancers.

    • If * you specify a value for AWS_ALIAS_DNS_NAME, don't specify values - * for any of the AWS_INSTANCE attributes.

    - *
    AWS_EC2_INSTANCE_ID

    HTTP namespaces only. The Amazon - * EC2 instance ID for the instance. If the AWS_EC2_INSTANCE_ID - * attribute is specified, then the only other attribute that can be specified is - * AWS_INIT_HEALTH_STATUS. When the AWS_EC2_INSTANCE_ID - * attribute is specified, then the AWS_INSTANCE_IPV4 attribute will - * be filled out with the primary private IPv4 address.

    - *
    AWS_INIT_HEALTH_STATUS

    If the service configuration includes - * HealthCheckCustomConfig, you can optionally use - * AWS_INIT_HEALTH_STATUS to specify the initial status of the custom - * health check, HEALTHY or UNHEALTHY. If you don't - * specify a value for AWS_INIT_HEALTH_STATUS, the initial status is - * HEALTHY.

    AWS_INSTANCE_CNAME

    If the - * service configuration includes a CNAME record, the domain name that - * you want Route 53 to return in response to DNS queries (for example, + * for any of the AWS_INSTANCE attributes.

  • The + * AWS_ALIAS_DNS_NAME is not supported in the GovCloud (US) + * Regions.

  • AWS_EC2_INSTANCE_ID

    HTTP + * namespaces only. The Amazon EC2 instance ID for the instance. If the + * AWS_EC2_INSTANCE_ID attribute is specified, then the only other + * attribute that can be specified is AWS_INIT_HEALTH_STATUS. When the + * AWS_EC2_INSTANCE_ID attribute is specified, then the + * AWS_INSTANCE_IPV4 attribute will be filled out with the primary + * private IPv4 address.

    AWS_INIT_HEALTH_STATUS

    If the + * service configuration includes HealthCheckCustomConfig, you can + * optionally use AWS_INIT_HEALTH_STATUS to specify the initial status + * of the custom health check, HEALTHY or UNHEALTHY. If + * you don't specify a value for AWS_INIT_HEALTH_STATUS, the initial + * status is HEALTHY.

    AWS_INSTANCE_CNAME

    If + * the service configuration includes a CNAME record, the domain name + * that you want Route 53 to return in response to DNS queries (for example, * example.com).

    This value is required if the service * specified by ServiceId includes settings for an CNAME * record.

    AWS_INSTANCE_IPV4

    If the service @@ -783,12 +789,12 @@ namespace Model * the records that are defined in the service.

  • For each * attribute, the applicable value.

  • Do not include * sensitive information in the attributes if the namespace is discoverable by - * public DNS queries.

    Supported attribute keys include the - * following:

    AWS_ALIAS_DNS_NAME

    If you want Cloud Map to - * create an Amazon Route 53 alias record that routes traffic to an Elastic Load - * Balancing load balancer, specify the DNS name that's associated with the load - * balancer. For information about how to get the DNS name, see "DNSName" in the - * topic

    The following are the supported + * attribute keys.

    AWS_ALIAS_DNS_NAME

    If you want Cloud + * Map to create an Amazon Route 53 alias record that routes traffic to an Elastic + * Load Balancing load balancer, specify the DNS name that's associated with the + * load balancer. For information about how to get the DNS name, see "DNSName" in + * the topic AliasTarget * in the Route 53 API Reference.

    Note the following:

    • *

      The configuration for the service that's specified by ServiceId @@ -802,21 +808,22 @@ namespace Model * support creating alias records that route traffic to Amazon Web Services * resources other than Elastic Load Balancing load balancers.

    • If * you specify a value for AWS_ALIAS_DNS_NAME, don't specify values - * for any of the AWS_INSTANCE attributes.

    - *
    AWS_EC2_INSTANCE_ID

    HTTP namespaces only. The Amazon - * EC2 instance ID for the instance. If the AWS_EC2_INSTANCE_ID - * attribute is specified, then the only other attribute that can be specified is - * AWS_INIT_HEALTH_STATUS. When the AWS_EC2_INSTANCE_ID - * attribute is specified, then the AWS_INSTANCE_IPV4 attribute will - * be filled out with the primary private IPv4 address.

    - *
    AWS_INIT_HEALTH_STATUS

    If the service configuration includes - * HealthCheckCustomConfig, you can optionally use - * AWS_INIT_HEALTH_STATUS to specify the initial status of the custom - * health check, HEALTHY or UNHEALTHY. If you don't - * specify a value for AWS_INIT_HEALTH_STATUS, the initial status is - * HEALTHY.

    AWS_INSTANCE_CNAME

    If the - * service configuration includes a CNAME record, the domain name that - * you want Route 53 to return in response to DNS queries (for example, + * for any of the AWS_INSTANCE attributes.

  • The + * AWS_ALIAS_DNS_NAME is not supported in the GovCloud (US) + * Regions.

  • AWS_EC2_INSTANCE_ID

    HTTP + * namespaces only. The Amazon EC2 instance ID for the instance. If the + * AWS_EC2_INSTANCE_ID attribute is specified, then the only other + * attribute that can be specified is AWS_INIT_HEALTH_STATUS. When the + * AWS_EC2_INSTANCE_ID attribute is specified, then the + * AWS_INSTANCE_IPV4 attribute will be filled out with the primary + * private IPv4 address.

    AWS_INIT_HEALTH_STATUS

    If the + * service configuration includes HealthCheckCustomConfig, you can + * optionally use AWS_INIT_HEALTH_STATUS to specify the initial status + * of the custom health check, HEALTHY or UNHEALTHY. If + * you don't specify a value for AWS_INIT_HEALTH_STATUS, the initial + * status is HEALTHY.

    AWS_INSTANCE_CNAME

    If + * the service configuration includes a CNAME record, the domain name + * that you want Route 53 to return in response to DNS queries (for example, * example.com).

    This value is required if the service * specified by ServiceId includes settings for an CNAME * record.

    AWS_INSTANCE_IPV4

    If the service @@ -854,12 +861,12 @@ namespace Model * the records that are defined in the service.

  • For each * attribute, the applicable value.

  • Do not include * sensitive information in the attributes if the namespace is discoverable by - * public DNS queries.

    Supported attribute keys include the - * following:

    AWS_ALIAS_DNS_NAME

    If you want Cloud Map to - * create an Amazon Route 53 alias record that routes traffic to an Elastic Load - * Balancing load balancer, specify the DNS name that's associated with the load - * balancer. For information about how to get the DNS name, see "DNSName" in the - * topic

    The following are the supported + * attribute keys.

    AWS_ALIAS_DNS_NAME

    If you want Cloud + * Map to create an Amazon Route 53 alias record that routes traffic to an Elastic + * Load Balancing load balancer, specify the DNS name that's associated with the + * load balancer. For information about how to get the DNS name, see "DNSName" in + * the topic AliasTarget * in the Route 53 API Reference.

    Note the following:

    • *

      The configuration for the service that's specified by ServiceId @@ -873,21 +880,22 @@ namespace Model * support creating alias records that route traffic to Amazon Web Services * resources other than Elastic Load Balancing load balancers.

    • If * you specify a value for AWS_ALIAS_DNS_NAME, don't specify values - * for any of the AWS_INSTANCE attributes.

    - *
    AWS_EC2_INSTANCE_ID

    HTTP namespaces only. The Amazon - * EC2 instance ID for the instance. If the AWS_EC2_INSTANCE_ID - * attribute is specified, then the only other attribute that can be specified is - * AWS_INIT_HEALTH_STATUS. When the AWS_EC2_INSTANCE_ID - * attribute is specified, then the AWS_INSTANCE_IPV4 attribute will - * be filled out with the primary private IPv4 address.

    - *
    AWS_INIT_HEALTH_STATUS

    If the service configuration includes - * HealthCheckCustomConfig, you can optionally use - * AWS_INIT_HEALTH_STATUS to specify the initial status of the custom - * health check, HEALTHY or UNHEALTHY. If you don't - * specify a value for AWS_INIT_HEALTH_STATUS, the initial status is - * HEALTHY.

    AWS_INSTANCE_CNAME

    If the - * service configuration includes a CNAME record, the domain name that - * you want Route 53 to return in response to DNS queries (for example, + * for any of the AWS_INSTANCE attributes.

  • The + * AWS_ALIAS_DNS_NAME is not supported in the GovCloud (US) + * Regions.

  • AWS_EC2_INSTANCE_ID

    HTTP + * namespaces only. The Amazon EC2 instance ID for the instance. If the + * AWS_EC2_INSTANCE_ID attribute is specified, then the only other + * attribute that can be specified is AWS_INIT_HEALTH_STATUS. When the + * AWS_EC2_INSTANCE_ID attribute is specified, then the + * AWS_INSTANCE_IPV4 attribute will be filled out with the primary + * private IPv4 address.

    AWS_INIT_HEALTH_STATUS

    If the + * service configuration includes HealthCheckCustomConfig, you can + * optionally use AWS_INIT_HEALTH_STATUS to specify the initial status + * of the custom health check, HEALTHY or UNHEALTHY. If + * you don't specify a value for AWS_INIT_HEALTH_STATUS, the initial + * status is HEALTHY.

    AWS_INSTANCE_CNAME

    If + * the service configuration includes a CNAME record, the domain name + * that you want Route 53 to return in response to DNS queries (for example, * example.com).

    This value is required if the service * specified by ServiceId includes settings for an CNAME * record.

    AWS_INSTANCE_IPV4

    If the service @@ -925,12 +933,12 @@ namespace Model * the records that are defined in the service.

  • For each * attribute, the applicable value.

  • Do not include * sensitive information in the attributes if the namespace is discoverable by - * public DNS queries.

    Supported attribute keys include the - * following:

    AWS_ALIAS_DNS_NAME

    If you want Cloud Map to - * create an Amazon Route 53 alias record that routes traffic to an Elastic Load - * Balancing load balancer, specify the DNS name that's associated with the load - * balancer. For information about how to get the DNS name, see "DNSName" in the - * topic

    The following are the supported + * attribute keys.

    AWS_ALIAS_DNS_NAME

    If you want Cloud + * Map to create an Amazon Route 53 alias record that routes traffic to an Elastic + * Load Balancing load balancer, specify the DNS name that's associated with the + * load balancer. For information about how to get the DNS name, see "DNSName" in + * the topic AliasTarget * in the Route 53 API Reference.

    Note the following:

    • *

      The configuration for the service that's specified by ServiceId @@ -944,21 +952,22 @@ namespace Model * support creating alias records that route traffic to Amazon Web Services * resources other than Elastic Load Balancing load balancers.

    • If * you specify a value for AWS_ALIAS_DNS_NAME, don't specify values - * for any of the AWS_INSTANCE attributes.

    - *
    AWS_EC2_INSTANCE_ID

    HTTP namespaces only. The Amazon - * EC2 instance ID for the instance. If the AWS_EC2_INSTANCE_ID - * attribute is specified, then the only other attribute that can be specified is - * AWS_INIT_HEALTH_STATUS. When the AWS_EC2_INSTANCE_ID - * attribute is specified, then the AWS_INSTANCE_IPV4 attribute will - * be filled out with the primary private IPv4 address.

    - *
    AWS_INIT_HEALTH_STATUS

    If the service configuration includes - * HealthCheckCustomConfig, you can optionally use - * AWS_INIT_HEALTH_STATUS to specify the initial status of the custom - * health check, HEALTHY or UNHEALTHY. If you don't - * specify a value for AWS_INIT_HEALTH_STATUS, the initial status is - * HEALTHY.

    AWS_INSTANCE_CNAME

    If the - * service configuration includes a CNAME record, the domain name that - * you want Route 53 to return in response to DNS queries (for example, + * for any of the AWS_INSTANCE attributes.

  • The + * AWS_ALIAS_DNS_NAME is not supported in the GovCloud (US) + * Regions.

  • AWS_EC2_INSTANCE_ID

    HTTP + * namespaces only. The Amazon EC2 instance ID for the instance. If the + * AWS_EC2_INSTANCE_ID attribute is specified, then the only other + * attribute that can be specified is AWS_INIT_HEALTH_STATUS. When the + * AWS_EC2_INSTANCE_ID attribute is specified, then the + * AWS_INSTANCE_IPV4 attribute will be filled out with the primary + * private IPv4 address.

    AWS_INIT_HEALTH_STATUS

    If the + * service configuration includes HealthCheckCustomConfig, you can + * optionally use AWS_INIT_HEALTH_STATUS to specify the initial status + * of the custom health check, HEALTHY or UNHEALTHY. If + * you don't specify a value for AWS_INIT_HEALTH_STATUS, the initial + * status is HEALTHY.

    AWS_INSTANCE_CNAME

    If + * the service configuration includes a CNAME record, the domain name + * that you want Route 53 to return in response to DNS queries (for example, * example.com).

    This value is required if the service * specified by ServiceId includes settings for an CNAME * record.

    AWS_INSTANCE_IPV4

    If the service @@ -996,12 +1005,12 @@ namespace Model * the records that are defined in the service.

  • For each * attribute, the applicable value.

  • Do not include * sensitive information in the attributes if the namespace is discoverable by - * public DNS queries.

    Supported attribute keys include the - * following:

    AWS_ALIAS_DNS_NAME

    If you want Cloud Map to - * create an Amazon Route 53 alias record that routes traffic to an Elastic Load - * Balancing load balancer, specify the DNS name that's associated with the load - * balancer. For information about how to get the DNS name, see "DNSName" in the - * topic

    The following are the supported + * attribute keys.

    AWS_ALIAS_DNS_NAME

    If you want Cloud + * Map to create an Amazon Route 53 alias record that routes traffic to an Elastic + * Load Balancing load balancer, specify the DNS name that's associated with the + * load balancer. For information about how to get the DNS name, see "DNSName" in + * the topic AliasTarget * in the Route 53 API Reference.

    Note the following:

    • *

      The configuration for the service that's specified by ServiceId @@ -1015,21 +1024,22 @@ namespace Model * support creating alias records that route traffic to Amazon Web Services * resources other than Elastic Load Balancing load balancers.

    • If * you specify a value for AWS_ALIAS_DNS_NAME, don't specify values - * for any of the AWS_INSTANCE attributes.

    - *
    AWS_EC2_INSTANCE_ID

    HTTP namespaces only. The Amazon - * EC2 instance ID for the instance. If the AWS_EC2_INSTANCE_ID - * attribute is specified, then the only other attribute that can be specified is - * AWS_INIT_HEALTH_STATUS. When the AWS_EC2_INSTANCE_ID - * attribute is specified, then the AWS_INSTANCE_IPV4 attribute will - * be filled out with the primary private IPv4 address.

    - *
    AWS_INIT_HEALTH_STATUS

    If the service configuration includes - * HealthCheckCustomConfig, you can optionally use - * AWS_INIT_HEALTH_STATUS to specify the initial status of the custom - * health check, HEALTHY or UNHEALTHY. If you don't - * specify a value for AWS_INIT_HEALTH_STATUS, the initial status is - * HEALTHY.

    AWS_INSTANCE_CNAME

    If the - * service configuration includes a CNAME record, the domain name that - * you want Route 53 to return in response to DNS queries (for example, + * for any of the AWS_INSTANCE attributes.

  • The + * AWS_ALIAS_DNS_NAME is not supported in the GovCloud (US) + * Regions.

  • AWS_EC2_INSTANCE_ID

    HTTP + * namespaces only. The Amazon EC2 instance ID for the instance. If the + * AWS_EC2_INSTANCE_ID attribute is specified, then the only other + * attribute that can be specified is AWS_INIT_HEALTH_STATUS. When the + * AWS_EC2_INSTANCE_ID attribute is specified, then the + * AWS_INSTANCE_IPV4 attribute will be filled out with the primary + * private IPv4 address.

    AWS_INIT_HEALTH_STATUS

    If the + * service configuration includes HealthCheckCustomConfig, you can + * optionally use AWS_INIT_HEALTH_STATUS to specify the initial status + * of the custom health check, HEALTHY or UNHEALTHY. If + * you don't specify a value for AWS_INIT_HEALTH_STATUS, the initial + * status is HEALTHY.

    AWS_INSTANCE_CNAME

    If + * the service configuration includes a CNAME record, the domain name + * that you want Route 53 to return in response to DNS queries (for example, * example.com).

    This value is required if the service * specified by ServiceId includes settings for an CNAME * record.

    AWS_INSTANCE_IPV4

    If the service @@ -1067,12 +1077,12 @@ namespace Model * the records that are defined in the service.

  • For each * attribute, the applicable value.

  • Do not include * sensitive information in the attributes if the namespace is discoverable by - * public DNS queries.

    Supported attribute keys include the - * following:

    AWS_ALIAS_DNS_NAME

    If you want Cloud Map to - * create an Amazon Route 53 alias record that routes traffic to an Elastic Load - * Balancing load balancer, specify the DNS name that's associated with the load - * balancer. For information about how to get the DNS name, see "DNSName" in the - * topic

    The following are the supported + * attribute keys.

    AWS_ALIAS_DNS_NAME

    If you want Cloud + * Map to create an Amazon Route 53 alias record that routes traffic to an Elastic + * Load Balancing load balancer, specify the DNS name that's associated with the + * load balancer. For information about how to get the DNS name, see "DNSName" in + * the topic AliasTarget * in the Route 53 API Reference.

    Note the following:

    • *

      The configuration for the service that's specified by ServiceId @@ -1086,21 +1096,22 @@ namespace Model * support creating alias records that route traffic to Amazon Web Services * resources other than Elastic Load Balancing load balancers.

    • If * you specify a value for AWS_ALIAS_DNS_NAME, don't specify values - * for any of the AWS_INSTANCE attributes.

    - *
    AWS_EC2_INSTANCE_ID

    HTTP namespaces only. The Amazon - * EC2 instance ID for the instance. If the AWS_EC2_INSTANCE_ID - * attribute is specified, then the only other attribute that can be specified is - * AWS_INIT_HEALTH_STATUS. When the AWS_EC2_INSTANCE_ID - * attribute is specified, then the AWS_INSTANCE_IPV4 attribute will - * be filled out with the primary private IPv4 address.

    - *
    AWS_INIT_HEALTH_STATUS

    If the service configuration includes - * HealthCheckCustomConfig, you can optionally use - * AWS_INIT_HEALTH_STATUS to specify the initial status of the custom - * health check, HEALTHY or UNHEALTHY. If you don't - * specify a value for AWS_INIT_HEALTH_STATUS, the initial status is - * HEALTHY.

    AWS_INSTANCE_CNAME

    If the - * service configuration includes a CNAME record, the domain name that - * you want Route 53 to return in response to DNS queries (for example, + * for any of the AWS_INSTANCE attributes.

  • The + * AWS_ALIAS_DNS_NAME is not supported in the GovCloud (US) + * Regions.

  • AWS_EC2_INSTANCE_ID

    HTTP + * namespaces only. The Amazon EC2 instance ID for the instance. If the + * AWS_EC2_INSTANCE_ID attribute is specified, then the only other + * attribute that can be specified is AWS_INIT_HEALTH_STATUS. When the + * AWS_EC2_INSTANCE_ID attribute is specified, then the + * AWS_INSTANCE_IPV4 attribute will be filled out with the primary + * private IPv4 address.

    AWS_INIT_HEALTH_STATUS

    If the + * service configuration includes HealthCheckCustomConfig, you can + * optionally use AWS_INIT_HEALTH_STATUS to specify the initial status + * of the custom health check, HEALTHY or UNHEALTHY. If + * you don't specify a value for AWS_INIT_HEALTH_STATUS, the initial + * status is HEALTHY.

    AWS_INSTANCE_CNAME

    If + * the service configuration includes a CNAME record, the domain name + * that you want Route 53 to return in response to DNS queries (for example, * example.com).

    This value is required if the service * specified by ServiceId includes settings for an CNAME * record.

    AWS_INSTANCE_IPV4

    If the service @@ -1138,12 +1149,12 @@ namespace Model * the records that are defined in the service.

  • For each * attribute, the applicable value.

  • Do not include * sensitive information in the attributes if the namespace is discoverable by - * public DNS queries.

    Supported attribute keys include the - * following:

    AWS_ALIAS_DNS_NAME

    If you want Cloud Map to - * create an Amazon Route 53 alias record that routes traffic to an Elastic Load - * Balancing load balancer, specify the DNS name that's associated with the load - * balancer. For information about how to get the DNS name, see "DNSName" in the - * topic

    The following are the supported + * attribute keys.

    AWS_ALIAS_DNS_NAME

    If you want Cloud + * Map to create an Amazon Route 53 alias record that routes traffic to an Elastic + * Load Balancing load balancer, specify the DNS name that's associated with the + * load balancer. For information about how to get the DNS name, see "DNSName" in + * the topic AliasTarget * in the Route 53 API Reference.

    Note the following:

    • *

      The configuration for the service that's specified by ServiceId @@ -1157,21 +1168,22 @@ namespace Model * support creating alias records that route traffic to Amazon Web Services * resources other than Elastic Load Balancing load balancers.

    • If * you specify a value for AWS_ALIAS_DNS_NAME, don't specify values - * for any of the AWS_INSTANCE attributes.

    - *
    AWS_EC2_INSTANCE_ID

    HTTP namespaces only. The Amazon - * EC2 instance ID for the instance. If the AWS_EC2_INSTANCE_ID - * attribute is specified, then the only other attribute that can be specified is - * AWS_INIT_HEALTH_STATUS. When the AWS_EC2_INSTANCE_ID - * attribute is specified, then the AWS_INSTANCE_IPV4 attribute will - * be filled out with the primary private IPv4 address.

    - *
    AWS_INIT_HEALTH_STATUS

    If the service configuration includes - * HealthCheckCustomConfig, you can optionally use - * AWS_INIT_HEALTH_STATUS to specify the initial status of the custom - * health check, HEALTHY or UNHEALTHY. If you don't - * specify a value for AWS_INIT_HEALTH_STATUS, the initial status is - * HEALTHY.

    AWS_INSTANCE_CNAME

    If the - * service configuration includes a CNAME record, the domain name that - * you want Route 53 to return in response to DNS queries (for example, + * for any of the AWS_INSTANCE attributes.

  • The + * AWS_ALIAS_DNS_NAME is not supported in the GovCloud (US) + * Regions.

  • AWS_EC2_INSTANCE_ID

    HTTP + * namespaces only. The Amazon EC2 instance ID for the instance. If the + * AWS_EC2_INSTANCE_ID attribute is specified, then the only other + * attribute that can be specified is AWS_INIT_HEALTH_STATUS. When the + * AWS_EC2_INSTANCE_ID attribute is specified, then the + * AWS_INSTANCE_IPV4 attribute will be filled out with the primary + * private IPv4 address.

    AWS_INIT_HEALTH_STATUS

    If the + * service configuration includes HealthCheckCustomConfig, you can + * optionally use AWS_INIT_HEALTH_STATUS to specify the initial status + * of the custom health check, HEALTHY or UNHEALTHY. If + * you don't specify a value for AWS_INIT_HEALTH_STATUS, the initial + * status is HEALTHY.

    AWS_INSTANCE_CNAME

    If + * the service configuration includes a CNAME record, the domain name + * that you want Route 53 to return in response to DNS queries (for example, * example.com).

    This value is required if the service * specified by ServiceId includes settings for an CNAME * record.

    AWS_INSTANCE_IPV4

    If the service @@ -1209,12 +1221,12 @@ namespace Model * the records that are defined in the service.

  • For each * attribute, the applicable value.

  • Do not include * sensitive information in the attributes if the namespace is discoverable by - * public DNS queries.

    Supported attribute keys include the - * following:

    AWS_ALIAS_DNS_NAME

    If you want Cloud Map to - * create an Amazon Route 53 alias record that routes traffic to an Elastic Load - * Balancing load balancer, specify the DNS name that's associated with the load - * balancer. For information about how to get the DNS name, see "DNSName" in the - * topic

    The following are the supported + * attribute keys.

    AWS_ALIAS_DNS_NAME

    If you want Cloud + * Map to create an Amazon Route 53 alias record that routes traffic to an Elastic + * Load Balancing load balancer, specify the DNS name that's associated with the + * load balancer. For information about how to get the DNS name, see "DNSName" in + * the topic AliasTarget * in the Route 53 API Reference.

    Note the following:

    • *

      The configuration for the service that's specified by ServiceId @@ -1228,21 +1240,22 @@ namespace Model * support creating alias records that route traffic to Amazon Web Services * resources other than Elastic Load Balancing load balancers.

    • If * you specify a value for AWS_ALIAS_DNS_NAME, don't specify values - * for any of the AWS_INSTANCE attributes.

    - *
    AWS_EC2_INSTANCE_ID

    HTTP namespaces only. The Amazon - * EC2 instance ID for the instance. If the AWS_EC2_INSTANCE_ID - * attribute is specified, then the only other attribute that can be specified is - * AWS_INIT_HEALTH_STATUS. When the AWS_EC2_INSTANCE_ID - * attribute is specified, then the AWS_INSTANCE_IPV4 attribute will - * be filled out with the primary private IPv4 address.

    - *
    AWS_INIT_HEALTH_STATUS

    If the service configuration includes - * HealthCheckCustomConfig, you can optionally use - * AWS_INIT_HEALTH_STATUS to specify the initial status of the custom - * health check, HEALTHY or UNHEALTHY. If you don't - * specify a value for AWS_INIT_HEALTH_STATUS, the initial status is - * HEALTHY.

    AWS_INSTANCE_CNAME

    If the - * service configuration includes a CNAME record, the domain name that - * you want Route 53 to return in response to DNS queries (for example, + * for any of the AWS_INSTANCE attributes.

  • The + * AWS_ALIAS_DNS_NAME is not supported in the GovCloud (US) + * Regions.

  • AWS_EC2_INSTANCE_ID

    HTTP + * namespaces only. The Amazon EC2 instance ID for the instance. If the + * AWS_EC2_INSTANCE_ID attribute is specified, then the only other + * attribute that can be specified is AWS_INIT_HEALTH_STATUS. When the + * AWS_EC2_INSTANCE_ID attribute is specified, then the + * AWS_INSTANCE_IPV4 attribute will be filled out with the primary + * private IPv4 address.

    AWS_INIT_HEALTH_STATUS

    If the + * service configuration includes HealthCheckCustomConfig, you can + * optionally use AWS_INIT_HEALTH_STATUS to specify the initial status + * of the custom health check, HEALTHY or UNHEALTHY. If + * you don't specify a value for AWS_INIT_HEALTH_STATUS, the initial + * status is HEALTHY.

    AWS_INSTANCE_CNAME

    If + * the service configuration includes a CNAME record, the domain name + * that you want Route 53 to return in response to DNS queries (for example, * example.com).

    This value is required if the service * specified by ServiceId includes settings for an CNAME * record.

    AWS_INSTANCE_IPV4

    If the service diff --git a/generated/src/aws-cpp-sdk-servicediscovery/source/ServiceDiscoveryEndpointRules.cpp b/generated/src/aws-cpp-sdk-servicediscovery/source/ServiceDiscoveryEndpointRules.cpp index 9e52800eb7e..84425ec78e3 100644 --- a/generated/src/aws-cpp-sdk-servicediscovery/source/ServiceDiscoveryEndpointRules.cpp +++ b/generated/src/aws-cpp-sdk-servicediscovery/source/ServiceDiscoveryEndpointRules.cpp @@ -51,136 +51,136 @@ static constexpr RulesBlobT RulesBlob = {{ ',','"','t','y','p','e','"',':','"','S','t','r','i','n','g','"','}','}',',','"','r','u','l','e','s', '"',':','[','{','"','c','o','n','d','i','t','i','o','n','s','"',':','[','{','"','f','n','"',':','"', 'i','s','S','e','t','"',',','"','a','r','g','v','"',':','[','{','"','r','e','f','"',':','"','E','n', -'d','p','o','i','n','t','"','}',']','}',']',',','"','t','y','p','e','"',':','"','t','r','e','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','"',':','[','{','"','r','e','f','"',':','"','U','s','e','F','I','P','S','"','}',',','t','r', -'u','e',']','}',']',',','"','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',':',' ','F','I','P','S',' ','a','n','d',' ','c','u','s', -'t','o','m',' ','e','n','d','p','o','i','n','t',' ','a','r','e',' ','n','o','t',' ','s','u','p','p', -'o','r','t','e','d','"',',','"','t','y','p','e','"',':','"','e','r','r','o','r','"','}',',','{','"', -'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',']','}',']',',','"', -'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',':',' ','D','u','a','l','s','t','a','c','k',' ','a','n','d',' ','c','u','s','t','o', -'m',' ','e','n','d','p','o','i','n','t',' ','a','r','e',' ','n','o','t',' ','s','u','p','p','o','r', -'t','e','d','"',',','"','t','y','p','e','"',':','"','e','r','r','o','r','"','}',',','{','"','c','o', -'n','d','i','t','i','o','n','s','"',':','[',']',',','"','e','n','d','p','o','i','n','t','"',':','{', -'"','u','r','l','"',':','{','"','r','e','f','"',':','"','E','n','d','p','o','i','n','t','"','}',',', -'"','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','"','}',']','}', -',','{','"','c','o','n','d','i','t','i','o','n','s','"',':','[','{','"','f','n','"',':','"','i','s', -'S','e','t','"',',','"','a','r','g','v','"',':','[','{','"','r','e','f','"',':','"','R','e','g','i', -'o','n','"','}',']','}',']',',','"','t','y','p','e','"',':','"','t','r','e','e','"',',','"','r','u', -'l','e','s','"',':','[','{','"','c','o','n','d','i','t','i','o','n','s','"',':','[','{','"','f','n', -'"',':','"','a','w','s','.','p','a','r','t','i','t','i','o','n','"',',','"','a','r','g','v','"',':', -'[','{','"','r','e','f','"',':','"','R','e','g','i','o','n','"','}',']',',','"','a','s','s','i','g', -'n','"',':','"','P','a','r','t','i','t','i','o','n','R','e','s','u','l','t','"','}',']',',','"','t', -'y','p','e','"',':','"','t','r','e','e','"',',','"','r','u','l','e','s','"',':','[','{','"','c','o', +'d','p','o','i','n','t','"','}',']','}',']',',','"','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','"',':','[','{','"','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',']','}', -']',',','"','t','y','p','e','"',':','"','t','r','e','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','"',']','}', -']','}',']',',','"','t','y','p','e','"',':','"','t','r','e','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',':','/','/','s','e','r','v', -'i','c','e','d','i','s','c','o','v','e','r','y','-','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','"','}',']','}',',','{','"','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','"','}',']','}',',','{','"','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',']','}',']',',','"','t','y','p','e','"',':','"','t','r','e','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','"',']', -'}',']','}',']',',','"','t','y','p','e','"',':','"','t','r','e','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',':','/','/','s','e','r', -'v','i','c','e','d','i','s','c','o','v','e','r','y','-','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','"','}',']','}',',','{','"','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','"','}',']','}',',','{','"','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',']','}',']',',','"','t','y','p','e','"',':','"','t','r','e','e','"',',', -'"','r','u','l','e','s','"',':','[','{','"','c','o','n','d','i','t','i','o','n','s','"',':','[','{', +'s','e','F','I','P','S','"','}',',','t','r','u','e',']','}',']',',','"','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',':',' ','F', +'I','P','S',' ','a','n','d',' ','c','u','s','t','o','m',' ','e','n','d','p','o','i','n','t',' ','a', +'r','e',' ','n','o','t',' ','s','u','p','p','o','r','t','e','d','"',',','"','t','y','p','e','"',':', +'"','e','r','r','o','r','"','}',',','{','"','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','"',']','}',']','}',']',',','"','t','y','p','e','"',':','"','t','r','e','e','"',',','"','r', -'u','l','e','s','"',':','[','{','"','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','"',':', -'[','"','a','w','s','"',',','{','"','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','"',']','}',']','}',']',',','"','e','n','d','p','o', -'i','n','t','"',':','{','"','u','r','l','"',':','"','h','t','t','p','s',':','/','/','s','e','r','v', -'i','c','e','d','i','s','c','o','v','e','r','y','.','{','R','e','g','i','o','n','}','.','a','m','a', -'z','o','n','a','w','s','.','c','o','m','"',',','"','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','"','}',',','{','"','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','"',':','[','"','a','w','s','-','c','n','"',',','{','"','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','"',']','}',']','}',']', -',','"','e','n','d','p','o','i','n','t','"',':','{','"','u','r','l','"',':','"','h','t','t','p','s', -':','/','/','s','e','r','v','i','c','e','d','i','s','c','o','v','e','r','y','.','{','R','e','g','i', -'o','n','}','.','a','m','a','z','o','n','a','w','s','.','c','o','m','.','c','n','"',',','"','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','"','}',',','{','"','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','"',':','[','"','a','w','s','-','u','s','-','g','o', -'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','"',']','}',']','}',']',',','"','e','n','d','p','o','i','n','t','"', -':','{','"','u','r','l','"',':','"','h','t','t','p','s',':','/','/','s','e','r','v','i','c','e','d', -'i','s','c','o','v','e','r','y','.','{','R','e','g','i','o','n','}','.','a','m','a','z','o','n','a', -'w','s','.','c','o','m','"',',','"','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','"','}',',','{','"','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',':','/', -'/','s','e','r','v','i','c','e','d','i','s','c','o','v','e','r','y','.','{','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','"','}',']','}',',','{','"','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','"','}', -']','}',',','{','"','c','o','n','d','i','t','i','o','n','s','"',':','[',']',',','"','e','n','d','p', +'v','"',':','[','{','"','r','e','f','"',':','"','U','s','e','D','u','a','l','S','t','a','c','k','"', +'}',',','t','r','u','e',']','}',']',',','"','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',':',' ','D','u','a','l','s','t','a','c', +'k',' ','a','n','d',' ','c','u','s','t','o','m',' ','e','n','d','p','o','i','n','t',' ','a','r','e', +' ','n','o','t',' ','s','u','p','p','o','r','t','e','d','"',',','"','t','y','p','e','"',':','"','e', +'r','r','o','r','"','}',',','{','"','c','o','n','d','i','t','i','o','n','s','"',':','[',']',',','"', +'e','n','d','p','o','i','n','t','"',':','{','"','u','r','l','"',':','{','"','r','e','f','"',':','"', +'E','n','d','p','o','i','n','t','"','}',',','"','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','"',':','[','{','"','f','n','"',':','"','i','s', +'S','e','t','"',',','"','a','r','g','v','"',':','[','{','"','r','e','f','"',':','"','R','e','g','i', +'o','n','"','}',']','}',']',',','"','r','u','l','e','s','"',':','[','{','"','c','o','n','d','i','t', +'i','o','n','s','"',':','[','{','"','f','n','"',':','"','a','w','s','.','p','a','r','t','i','t','i', +'o','n','"',',','"','a','r','g','v','"',':','[','{','"','r','e','f','"',':','"','R','e','g','i','o', +'n','"','}',']',',','"','a','s','s','i','g','n','"',':','"','P','a','r','t','i','t','i','o','n','R', +'e','s','u','l','t','"','}',']',',','"','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','"',':','[','{','"','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',':','/','/','s','e','r','v','i','c','e','d','i','s', +'c','o','v','e','r','y','-','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',':','/','/','s','e','r','v','i','c','e','d','i', +'s','c','o','v','e','r','y','-','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','"',':','[','{','"','f','n','"',':','"','s','t', +'r','i','n','g','E','q','u','a','l','s','"',',','"','a','r','g','v','"',':','[','"','a','w','s','"', +',','{','"','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','"',']','}',']','}',']',',','"','e','n','d','p','o','i','n','t','"',':','{', +'"','u','r','l','"',':','"','h','t','t','p','s',':','/','/','s','e','r','v','i','c','e','d','i','s', +'c','o','v','e','r','y','.','{','R','e','g','i','o','n','}','.','a','m','a','z','o','n','a','w','s', +'.','c','o','m','"',',','"','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','"','}',',','{','"','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','"',':','[','"', +'a','w','s','-','c','n','"',',','{','"','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','"',']','}',']','}',']',',','"','e','n','d','p', 'o','i','n','t','"',':','{','"','u','r','l','"',':','"','h','t','t','p','s',':','/','/','s','e','r', -'v','i','c','e','d','i','s','c','o','v','e','r','y','.','{','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','}', +'v','i','c','e','d','i','s','c','o','v','e','r','y','.','{','R','e','g','i','o','n','}','.','a','m', +'a','z','o','n','a','w','s','.','c','o','m','.','c','n','"',',','"','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','"','}',',','{','"','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','"',':','[','"','a','w','s','-','u','s','-','g','o','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','"',']','}',']','}',']',',','"','e','n','d','p','o','i','n','t','"',':','{','"','u','r','l', +'"',':','"','h','t','t','p','s',':','/','/','s','e','r','v','i','c','e','d','i','s','c','o','v','e', +'r','y','.','{','R','e','g','i','o','n','}','.','a','m','a','z','o','n','a','w','s','.','c','o','m', '"',',','"','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','"','}', -']','}',']','}',',','{','"','c','o','n','d','i','t','i','o','n','s','"',':','[',']',',','"','e','r', +',','{','"','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',':','/','/','s','e','r','v','i', +'c','e','d','i','s','c','o','v','e','r','y','.','{','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',':','/','/','s','e','r','v','i','c', +'e','d','i','s','c','o','v','e','r','y','.','{','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' diff --git a/generated/tests/route53profiles-gen-tests/CMakeLists.txt b/generated/tests/route53profiles-gen-tests/CMakeLists.txt new file mode 100644 index 00000000000..e23c71e2bb9 --- /dev/null +++ b/generated/tests/route53profiles-gen-tests/CMakeLists.txt @@ -0,0 +1,42 @@ +add_project(route53profiles-gen-tests + "Tests for the AWS ROUTE53PROFILES C++ SDK" + testing-resources + aws-cpp-sdk-route53profiles + aws-cpp-sdk-core) + +file(GLOB AWS_ROUTE53PROFILES_GENERATED_TEST_SRC + "${CMAKE_CURRENT_SOURCE_DIR}/*.cpp" +) + +if(MSVC AND BUILD_SHARED_LIBS) + add_definitions(-DGTEST_LINKED_AS_SHARED_LIBRARY=1) +endif() + +if (CMAKE_CROSSCOMPILING) + set(AUTORUN_UNIT_TESTS OFF) +endif() + +if (AUTORUN_UNIT_TESTS) + enable_testing() +endif() + +if(PLATFORM_ANDROID AND BUILD_SHARED_LIBS) + add_library(${PROJECT_NAME} "${AWS_ROUTE53PROFILES_GENERATED_TEST_SRC}") +else() + add_executable(${PROJECT_NAME} "${AWS_ROUTE53PROFILES_GENERATED_TEST_SRC}") +endif() + +set_compiler_flags(${PROJECT_NAME}) +set_compiler_warnings(${PROJECT_NAME}) + +target_link_libraries(${PROJECT_NAME} ${PROJECT_LIBS}) + +if (AUTORUN_UNIT_TESTS) + ADD_CUSTOM_COMMAND( TARGET ${PROJECT_NAME} POST_BUILD + COMMAND ${CMAKE_COMMAND} -E env LD_LIBRARY_PATH=${AWS_AUTORUN_LD_LIBRARY_PATH}:$ENV{LD_LIBRARY_PATH} $ + ARGS "--gtest_brief=1") +endif() + +if(NOT CMAKE_CROSSCOMPILING) + SET_TARGET_PROPERTIES(${PROJECT_NAME} PROPERTIES OUTPUT_NAME ${PROJECT_NAME}) +endif() \ No newline at end of file diff --git a/generated/tests/route53profiles-gen-tests/Route53ProfilesEndpointProviderTests.cpp b/generated/tests/route53profiles-gen-tests/Route53ProfilesEndpointProviderTests.cpp new file mode 100644 index 00000000000..a23896b26b0 --- /dev/null +++ b/generated/tests/route53profiles-gen-tests/Route53ProfilesEndpointProviderTests.cpp @@ -0,0 +1,402 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + + +static const char* ALLOCATION_TAG = "AWSRoute53ProfilesEndpointProviderTests"; +using Route53ProfilesEndpointProvider = Aws::Route53Profiles::Endpoint::Route53ProfilesEndpointProvider; +using EndpointParameters = Aws::Vector; +using ResolveEndpointOutcome = Aws::Endpoint::ResolveEndpointOutcome; + +using EpParam = Aws::Endpoint::EndpointParameter; +using EpProp = Aws::Endpoint::EndpointParameter; // just a container to store test expectations +using ExpEpProps = Aws::UnorderedMap>>; +using ExpEpAuthScheme = Aws::Vector; +using ExpEpHeaders = Aws::UnorderedMap>; + +class Route53ProfilesEndpointProviderTests : public ::testing::TestWithParam {}; + +struct Route53ProfilesEndpointProviderEndpointTestCase +{ + using OperationParamsFromTest = EndpointParameters; + + struct Expect + { + struct Endpoint + { + Aws::String url; + ExpEpAuthScheme authScheme; + ExpEpProps properties; + ExpEpHeaders headers; + } endpoint; + Aws::String error; + }; + struct OperationInput + { + Aws::String operationName; + OperationParamsFromTest operationParams; + OperationParamsFromTest builtinParams; + OperationParamsFromTest clientParams; + }; + + Aws::String documentation; + // Specification tells us it is Client Initialization parameters + // At the same time, specification tells us to test EndpointProvider not the client itself + // Hence params here will be set as a client params (just like a dedicated field above). + Aws::Vector params; + Aws::Vector tags; + Expect expect; + // Aws::Vector operationInput; +}; + +static const Aws::Vector TEST_CASES = { + /*TEST CASE 0*/ + {"For region us-east-1 with FIPS enabled and DualStack enabled", // documentation + {EpParam("UseFIPS", true), EpParam("Region", "us-east-1"), EpParam("UseDualStack", true)}, // params + {}, // tags + {{/*epUrl*/"https://route53profiles-fips.us-east-1.api.aws", + {/*authScheme*/}, + {/*properties*/}, + {/*headers*/}}, {/*No error*/}} // expect + }, + /*TEST CASE 1*/ + {"For region us-east-1 with FIPS enabled and DualStack disabled", // documentation + {EpParam("UseFIPS", true), EpParam("Region", "us-east-1"), EpParam("UseDualStack", false)}, // params + {}, // tags + {{/*epUrl*/"https://route53profiles-fips.us-east-1.amazonaws.com", + {/*authScheme*/}, + {/*properties*/}, + {/*headers*/}}, {/*No error*/}} // expect + }, + /*TEST CASE 2*/ + {"For region us-east-1 with FIPS disabled and DualStack enabled", // documentation + {EpParam("UseFIPS", false), EpParam("Region", "us-east-1"), EpParam("UseDualStack", true)}, // params + {}, // tags + {{/*epUrl*/"https://route53profiles.us-east-1.api.aws", + {/*authScheme*/}, + {/*properties*/}, + {/*headers*/}}, {/*No error*/}} // expect + }, + /*TEST CASE 3*/ + {"For region us-east-1 with FIPS disabled and DualStack disabled", // documentation + {EpParam("UseFIPS", false), EpParam("Region", "us-east-1"), EpParam("UseDualStack", false)}, // params + {}, // tags + {{/*epUrl*/"https://route53profiles.us-east-1.amazonaws.com", + {/*authScheme*/}, + {/*properties*/}, + {/*headers*/}}, {/*No error*/}} // expect + }, + /*TEST CASE 4*/ + {"For region cn-north-1 with FIPS enabled and DualStack enabled", // documentation + {EpParam("UseFIPS", true), EpParam("Region", "cn-north-1"), EpParam("UseDualStack", true)}, // params + {}, // tags + {{/*epUrl*/"https://route53profiles-fips.cn-north-1.api.amazonwebservices.com.cn", + {/*authScheme*/}, + {/*properties*/}, + {/*headers*/}}, {/*No error*/}} // expect + }, + /*TEST CASE 5*/ + {"For region cn-north-1 with FIPS enabled and DualStack disabled", // documentation + {EpParam("UseFIPS", true), EpParam("Region", "cn-north-1"), EpParam("UseDualStack", false)}, // params + {}, // tags + {{/*epUrl*/"https://route53profiles-fips.cn-north-1.amazonaws.com.cn", + {/*authScheme*/}, + {/*properties*/}, + {/*headers*/}}, {/*No error*/}} // expect + }, + /*TEST CASE 6*/ + {"For region cn-north-1 with FIPS disabled and DualStack enabled", // documentation + {EpParam("UseFIPS", false), EpParam("Region", "cn-north-1"), EpParam("UseDualStack", true)}, // params + {}, // tags + {{/*epUrl*/"https://route53profiles.cn-north-1.api.amazonwebservices.com.cn", + {/*authScheme*/}, + {/*properties*/}, + {/*headers*/}}, {/*No error*/}} // expect + }, + /*TEST CASE 7*/ + {"For region cn-north-1 with FIPS disabled and DualStack disabled", // documentation + {EpParam("UseFIPS", false), EpParam("Region", "cn-north-1"), EpParam("UseDualStack", false)}, // params + {}, // tags + {{/*epUrl*/"https://route53profiles.cn-north-1.amazonaws.com.cn", + {/*authScheme*/}, + {/*properties*/}, + {/*headers*/}}, {/*No error*/}} // expect + }, + /*TEST CASE 8*/ + {"For region us-gov-east-1 with FIPS enabled and DualStack enabled", // documentation + {EpParam("UseFIPS", true), EpParam("Region", "us-gov-east-1"), EpParam("UseDualStack", true)}, // params + {}, // tags + {{/*epUrl*/"https://route53profiles-fips.us-gov-east-1.api.aws", + {/*authScheme*/}, + {/*properties*/}, + {/*headers*/}}, {/*No error*/}} // expect + }, + /*TEST CASE 9*/ + {"For region us-gov-east-1 with FIPS enabled and DualStack disabled", // documentation + {EpParam("UseFIPS", true), EpParam("Region", "us-gov-east-1"), EpParam("UseDualStack", false)}, // params + {}, // tags + {{/*epUrl*/"https://route53profiles-fips.us-gov-east-1.amazonaws.com", + {/*authScheme*/}, + {/*properties*/}, + {/*headers*/}}, {/*No error*/}} // expect + }, + /*TEST CASE 10*/ + {"For region us-gov-east-1 with FIPS disabled and DualStack enabled", // documentation + {EpParam("UseFIPS", false), EpParam("Region", "us-gov-east-1"), EpParam("UseDualStack", true)}, // params + {}, // tags + {{/*epUrl*/"https://route53profiles.us-gov-east-1.api.aws", + {/*authScheme*/}, + {/*properties*/}, + {/*headers*/}}, {/*No error*/}} // expect + }, + /*TEST CASE 11*/ + {"For region us-gov-east-1 with FIPS disabled and DualStack disabled", // documentation + {EpParam("UseFIPS", false), EpParam("Region", "us-gov-east-1"), EpParam("UseDualStack", false)}, // params + {}, // tags + {{/*epUrl*/"https://route53profiles.us-gov-east-1.amazonaws.com", + {/*authScheme*/}, + {/*properties*/}, + {/*headers*/}}, {/*No error*/}} // expect + }, + /*TEST CASE 12*/ + {"For region us-iso-east-1 with FIPS enabled and DualStack enabled", // documentation + {EpParam("UseFIPS", true), EpParam("Region", "us-iso-east-1"), EpParam("UseDualStack", true)}, // params + {}, // tags + {{/*No endpoint expected*/}, /*error*/"FIPS and DualStack are enabled, but this partition does not support one or both"} // expect + }, + /*TEST CASE 13*/ + {"For region us-iso-east-1 with FIPS enabled and DualStack disabled", // documentation + {EpParam("UseFIPS", true), EpParam("Region", "us-iso-east-1"), EpParam("UseDualStack", false)}, // params + {}, // tags + {{/*epUrl*/"https://route53profiles-fips.us-iso-east-1.c2s.ic.gov", + {/*authScheme*/}, + {/*properties*/}, + {/*headers*/}}, {/*No error*/}} // expect + }, + /*TEST CASE 14*/ + {"For region us-iso-east-1 with FIPS disabled and DualStack enabled", // documentation + {EpParam("UseFIPS", false), EpParam("Region", "us-iso-east-1"), EpParam("UseDualStack", true)}, // params + {}, // tags + {{/*No endpoint expected*/}, /*error*/"DualStack is enabled but this partition does not support DualStack"} // expect + }, + /*TEST CASE 15*/ + {"For region us-iso-east-1 with FIPS disabled and DualStack disabled", // documentation + {EpParam("UseFIPS", false), EpParam("Region", "us-iso-east-1"), EpParam("UseDualStack", false)}, // params + {}, // tags + {{/*epUrl*/"https://route53profiles.us-iso-east-1.c2s.ic.gov", + {/*authScheme*/}, + {/*properties*/}, + {/*headers*/}}, {/*No error*/}} // expect + }, + /*TEST CASE 16*/ + {"For region us-isob-east-1 with FIPS enabled and DualStack enabled", // documentation + {EpParam("UseFIPS", true), EpParam("Region", "us-isob-east-1"), EpParam("UseDualStack", true)}, // params + {}, // tags + {{/*No endpoint expected*/}, /*error*/"FIPS and DualStack are enabled, but this partition does not support one or both"} // expect + }, + /*TEST CASE 17*/ + {"For region us-isob-east-1 with FIPS enabled and DualStack disabled", // documentation + {EpParam("UseFIPS", true), EpParam("Region", "us-isob-east-1"), EpParam("UseDualStack", false)}, // params + {}, // tags + {{/*epUrl*/"https://route53profiles-fips.us-isob-east-1.sc2s.sgov.gov", + {/*authScheme*/}, + {/*properties*/}, + {/*headers*/}}, {/*No error*/}} // expect + }, + /*TEST CASE 18*/ + {"For region us-isob-east-1 with FIPS disabled and DualStack enabled", // documentation + {EpParam("UseFIPS", false), EpParam("Region", "us-isob-east-1"), EpParam("UseDualStack", true)}, // params + {}, // tags + {{/*No endpoint expected*/}, /*error*/"DualStack is enabled but this partition does not support DualStack"} // expect + }, + /*TEST CASE 19*/ + {"For region us-isob-east-1 with FIPS disabled and DualStack disabled", // documentation + {EpParam("UseFIPS", false), EpParam("Region", "us-isob-east-1"), EpParam("UseDualStack", false)}, // params + {}, // tags + {{/*epUrl*/"https://route53profiles.us-isob-east-1.sc2s.sgov.gov", + {/*authScheme*/}, + {/*properties*/}, + {/*headers*/}}, {/*No error*/}} // expect + }, + /*TEST CASE 20*/ + {"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 + {{/*epUrl*/"https://example.com", + {/*authScheme*/}, + {/*properties*/}, + {/*headers*/}}, {/*No error*/}} // expect + }, + /*TEST CASE 21*/ + {"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 + {{/*epUrl*/"https://example.com", + {/*authScheme*/}, + {/*properties*/}, + {/*headers*/}}, {/*No error*/}} // expect + }, + /*TEST CASE 22*/ + {"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 23*/ + {"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 24*/ + {"Missing region", // documentation + {}, // params + {}, // tags + {{/*No endpoint expected*/}, /*error*/"Invalid Configuration: Missing Region"} // expect + } +}; + +Aws::String RulesToSdkSignerName(const Aws::String& rulesSignerName) +{ + Aws::String sdkSigner = "NullSigner"; + if (rulesSignerName == "sigv4") { + sdkSigner = "SignatureV4"; + } else if (rulesSignerName == "sigv4a") { + sdkSigner = "AsymmetricSignatureV4"; + } else if (rulesSignerName == "none") { + sdkSigner = "NullSigner"; + } else if (rulesSignerName == "bearer") { + sdkSigner = "Bearer"; + } else if (rulesSignerName == "s3Express") { + sdkSigner = "S3ExpressSigner"; + } else { + sdkSigner = rulesSignerName; + } + + return sdkSigner; +} + +void ValidateOutcome(const ResolveEndpointOutcome& outcome, const Route53ProfilesEndpointProviderEndpointTestCase::Expect& expect) +{ + if(!expect.error.empty()) + { + ASSERT_FALSE(outcome.IsSuccess()) << "Expected failure with message:\n" << expect.error; + ASSERT_EQ(outcome.GetError().GetMessage(), expect.error); + } + else + { + AWS_ASSERT_SUCCESS(outcome); + ASSERT_EQ(outcome.GetResult().GetURL(), expect.endpoint.url); + const auto expAuthSchemesIt = expect.endpoint.properties.find("authSchemes"); + if (expAuthSchemesIt != expect.endpoint.properties.end()) + { + // in the list of AuthSchemes, select the one with a highest priority + const Aws::Vector priotityList = {"s3Express", "sigv4a", "sigv4", "bearer", "none", ""}; + const auto expectedAuthSchemePropsIt = std::find_first_of(expAuthSchemesIt->second.begin(), expAuthSchemesIt->second.end(), + priotityList.begin(), priotityList.end(), [](const Aws::Vector& props, const Aws::String& expName) + { + const auto& propNameIt = std::find_if(props.begin(), props.end(), [](const EpProp& prop) + { + return prop.GetName() == "name"; + }); + assert(propNameIt != props.end()); + return propNameIt->GetStrValueNoCheck() == expName; + }); + assert(expectedAuthSchemePropsIt != expAuthSchemesIt->second.end()); + + const auto& endpointResultAttrs = outcome.GetResult().GetAttributes(); + ASSERT_TRUE(endpointResultAttrs) << "Expected non-empty EndpointAttributes (authSchemes)"; + for (const auto& expProperty : *expectedAuthSchemePropsIt) + { + if (expProperty.GetName() == "name") { + ASSERT_TRUE(!endpointResultAttrs->authScheme.GetName().empty()); + ASSERT_EQ(RulesToSdkSignerName(expProperty.GetStrValueNoCheck()), endpointResultAttrs->authScheme.GetName()); + } else if (expProperty.GetName() == "signingName") { + ASSERT_TRUE(endpointResultAttrs->authScheme.GetSigningName()); + ASSERT_EQ(expProperty.GetStrValueNoCheck(), endpointResultAttrs->authScheme.GetSigningName().value()); + } else if (expProperty.GetName() == "signingRegion") { + ASSERT_TRUE(endpointResultAttrs->authScheme.GetSigningRegion()); + ASSERT_EQ(expProperty.GetStrValueNoCheck(), endpointResultAttrs->authScheme.GetSigningRegion().value()); + } else if (expProperty.GetName() == "signingRegionSet") { + ASSERT_TRUE(endpointResultAttrs->authScheme.GetSigningRegionSet()); + ASSERT_EQ(expProperty.GetStrValueNoCheck(), endpointResultAttrs->authScheme.GetSigningRegionSet().value()); + } else if (expProperty.GetName() == "disableDoubleEncoding") { + ASSERT_TRUE(endpointResultAttrs->authScheme.GetDisableDoubleEncoding()); + ASSERT_EQ(expProperty.GetBoolValueNoCheck(), endpointResultAttrs->authScheme.GetDisableDoubleEncoding().value()); + } else { + FAIL() << "Unsupported Auth type property " << expProperty.GetName() << ". Need to update test."; + } + } + } + + EXPECT_EQ(expect.endpoint.headers.empty(), outcome.GetResult().GetHeaders().empty()); + for(const auto& expHeaderVec : expect.endpoint.headers) + { + const auto& retHeaderIt = outcome.GetResult().GetHeaders().find(expHeaderVec.first); + ASSERT_TRUE(retHeaderIt != outcome.GetResult().GetHeaders().end()); + + auto retHeaderVec = Aws::Utils::StringUtils::Split(retHeaderIt->second, ';'); + std::sort(retHeaderVec.begin(), retHeaderVec.end()); + + auto expHeaderVecSorted = expHeaderVec.second; + std::sort(expHeaderVecSorted.begin(), expHeaderVecSorted.end()); + + ASSERT_EQ(expHeaderVecSorted, retHeaderVec); + } + } +} + +TEST_P(Route53ProfilesEndpointProviderTests, EndpointProviderTest) +{ + const size_t TEST_CASE_IDX = GetParam(); + ASSERT_LT(TEST_CASE_IDX, TEST_CASES.size()) << "Something is wrong with the test fixture itself."; + const Route53ProfilesEndpointProviderEndpointTestCase& TEST_CASE = TEST_CASES.at(TEST_CASE_IDX); + SCOPED_TRACE(Aws::String("\nTEST CASE # ") + Aws::Utils::StringUtils::to_string(TEST_CASE_IDX) + ": " + TEST_CASE.documentation); + + std::shared_ptr endpointProvider = Aws::MakeShared(ALLOCATION_TAG); + ASSERT_TRUE(endpointProvider) << "Failed to allocate/initialize Route53ProfilesEndpointProvider"; + + EndpointParameters endpointParameters; + for(const auto& param : TEST_CASE.params) + { + endpointParameters.emplace(endpointParameters.end(), Aws::Endpoint::EndpointParameter(param)); + } + auto resolvedEndpointOutcome = endpointProvider->ResolveEndpoint(endpointParameters); + ValidateOutcome(resolvedEndpointOutcome, TEST_CASE.expect); + +#if 0 // temporarily disabled + for(const auto& operation : TEST_CASE.operationInput) + { + /* + * Most specific to least specific value locations: + staticContextParams + contextParam + clientContextParams + Built-In Bindings + Built-in binding default values + */ + const Aws::Vector> + operationInputParams = {std::cref(operation.builtinParams), std::cref(operation.clientParams), std::cref(operation.operationParams)}; + + for(const auto& paramSource : operationInputParams) + { + for(const auto& param : paramSource.get()) + { + endpointParameters.emplace(endpointParameters.end(), Aws::Endpoint::EndpointParameter(param)); + } + } + auto resolvedEndpointOutcomePerOperation = endpointProvider->ResolveEndpoint(endpointParameters); + ValidateOutcome(resolvedEndpointOutcomePerOperation, TEST_CASE.expect); + } +#endif +} + +INSTANTIATE_TEST_SUITE_P(EndpointTestsFromModel, + Route53ProfilesEndpointProviderTests, + ::testing::Range((size_t) 0u, TEST_CASES.size())); diff --git a/generated/tests/route53profiles-gen-tests/RunTests.cpp b/generated/tests/route53profiles-gen-tests/RunTests.cpp new file mode 100644 index 00000000000..f2f10a7c789 --- /dev/null +++ b/generated/tests/route53profiles-gen-tests/RunTests.cpp @@ -0,0 +1,29 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +int main(int argc, char** argv) +{ + Aws::SDKOptions options; + options.loggingOptions.logLevel = Aws::Utils::Logging::LogLevel::Trace; + + AWS_BEGIN_MEMORY_TEST_EX(options, 1024, 128); + Aws::Testing::InitPlatformTest(options); + Aws::Testing::ParseArgs(argc, argv); + + Aws::InitAPI(options); + ::testing::InitGoogleTest(&argc, argv); + int exitCode = RUN_ALL_TESTS(); + Aws::ShutdownAPI(options); + + AWS_END_MEMORY_TEST_EX; + Aws::Testing::ShutdownPlatformTest(options); + return exitCode; +} 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 ac697f0621a..5de9e3535c4 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.311" +#define AWS_SDK_VERSION_STRING "1.11.312" #define AWS_SDK_VERSION_MAJOR 1 #define AWS_SDK_VERSION_MINOR 11 -#define AWS_SDK_VERSION_PATCH 311 +#define AWS_SDK_VERSION_PATCH 312 diff --git a/tools/code-generation/api-descriptions/bedrock-agent-2023-06-05.normal.json b/tools/code-generation/api-descriptions/bedrock-agent-2023-06-05.normal.json index 1cb7c20ab85..3f1edd88b2c 100644 --- a/tools/code-generation/api-descriptions/bedrock-agent-2023-06-05.normal.json +++ b/tools/code-generation/api-descriptions/bedrock-agent-2023-06-05.normal.json @@ -813,6 +813,10 @@ "ActionGroupExecutor":{ "type":"structure", "members":{ + "customControl":{ + "shape":"CustomControlMethod", + "documentation":"

    To return the action group invocation results directly in the InvokeAgent response, specify RETURN_CONTROL.

    " + }, "lambda":{ "shape":"LambdaArn", "documentation":"

    The Amazon Resource Name (ARN) of the Lambda function containing the business logic that is carried out upon invoking the action.

    " @@ -1011,6 +1015,10 @@ "shape":"Description", "documentation":"

    The description of the action group.

    " }, + "functionSchema":{ + "shape":"FunctionSchema", + "documentation":"

    Defines functions that each define parameters that the agent needs to invoke from the user. Each function represents an action in an action group.

    " + }, "parentActionSignature":{ "shape":"ActionGroupSignature", "documentation":"

    If this field is set as AMAZON.UserInput, the agent can request the user for additional information when trying to complete a task. The description, apiSchema, and actionGroupExecutor fields must be blank for this action group.

    During orchestration, if the agent determines that it needs to invoke an API in an action group, but doesn't have enough information to complete the API request, it will invoke this action group instead and return an Observation reprompting the user for more information.

    " @@ -1610,6 +1618,10 @@ "shape":"Description", "documentation":"

    A description of the action group.

    " }, + "functionSchema":{ + "shape":"FunctionSchema", + "documentation":"

    Contains details about the function schema for the action group or the JSON or YAML-formatted payload defining the schema.

    " + }, "parentActionGroupSignature":{ "shape":"ActionGroupSignature", "documentation":"

    To allow your agent to request the user for additional information when trying to complete a task, set this field to AMAZON.UserInput. You must leave the description, apiSchema, and actionGroupExecutor fields blank for this action group.

    During orchestration, if your agent determines that it needs to invoke an API in an action group, but doesn't have enough information to complete the API request, it will invoke this action group instead and return an Observation reprompting the user for more information.

    " @@ -1837,6 +1849,10 @@ "OVERRIDDEN" ] }, + "CustomControlMethod":{ + "type":"string", + "enum":["RETURN_CONTROL"] + }, "DataSource":{ "type":"structure", "required":[ @@ -2291,6 +2307,45 @@ "max":99, "min":1 }, + "Function":{ + "type":"structure", + "required":["name"], + "members":{ + "description":{ + "shape":"FunctionDescription", + "documentation":"

    A description of the function and its purpose.

    " + }, + "name":{ + "shape":"Name", + "documentation":"

    A name for the function.

    " + }, + "parameters":{ + "shape":"ParameterMap", + "documentation":"

    The parameters that the agent elicits from the user to fulfill the function.

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

    Defines parameters that the agent needs to invoke from the user to complete the function. Corresponds to an action in an action group.

    This data type is used in the following API operations:

    " + }, + "FunctionDescription":{ + "type":"string", + "max":1200, + "min":1 + }, + "FunctionSchema":{ + "type":"structure", + "members":{ + "functions":{ + "shape":"Functions", + "documentation":"

    A list of functions that each define an action in the action group.

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

    Defines functions that each define parameters that the agent needs to invoke from the user. Each function represents an action in an action group.

    This data type is used in the following API operations:

    ", + "union":true + }, + "Functions":{ + "type":"list", + "member":{"shape":"Function"} + }, "GetAgentActionGroupRequest":{ "type":"structure", "required":[ @@ -2620,7 +2675,7 @@ "documentation":"

    The time at which the ingestion job was last updated.

    " } }, - "documentation":"

    Contains details about an ingestion job, which converts a data source to embeddings for a vector store in knowledge base.

    This data type is used in the following API operations:

    " + "documentation":"

    Contains details about an ingestion job, which converts a data source to embeddings for a vector store in knowledge base.

    This data type is used in the following API operations:

    " }, "IngestionJobFilter":{ "type":"structure", @@ -3379,6 +3434,35 @@ "min":0, "pattern":"^.*$" }, + "ParameterDescription":{ + "type":"string", + "max":500, + "min":1 + }, + "ParameterDetail":{ + "type":"structure", + "required":["type"], + "members":{ + "description":{ + "shape":"ParameterDescription", + "documentation":"

    A description of the parameter. Helps the foundation model determine how to elicit the parameters from the user.

    " + }, + "required":{ + "shape":"Boolean", + "documentation":"

    Whether the parameter is required for the agent to complete the function for action group invocation.

    " + }, + "type":{ + "shape":"Type", + "documentation":"

    The data type of the parameter.

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

    Contains details about a parameter in a function for an action group.

    This data type is used in the following API operations:

    " + }, + "ParameterMap":{ + "type":"map", + "key":{"shape":"Name"}, + "value":{"shape":"ParameterDetail"} + }, "Payload":{ "type":"string", "sensitive":true @@ -3965,6 +4049,16 @@ "max":1, "min":0 }, + "Type":{ + "type":"string", + "enum":[ + "string", + "number", + "integer", + "boolean", + "array" + ] + }, "UntagResourceRequest":{ "type":"structure", "required":[ @@ -4038,6 +4132,10 @@ "shape":"Description", "documentation":"

    Specifies a new name for the action group.

    " }, + "functionSchema":{ + "shape":"FunctionSchema", + "documentation":"

    Contains details about the function schema for the action group or the JSON or YAML-formatted payload defining the schema.

    " + }, "parentActionGroupSignature":{ "shape":"ActionGroupSignature", "documentation":"

    To allow your agent to request the user for additional information when trying to complete a task, set this field to AMAZON.UserInput. You must leave the description, apiSchema, and actionGroupExecutor fields blank for this action group.

    During orchestration, if your agent determines that it needs to invoke an API in an action group, but doesn't have enough information to complete the API request, it will invoke this action group instead and return an Observation reprompting the user for more information.

    " diff --git a/tools/code-generation/api-descriptions/bedrock-agent-runtime-2023-07-26.normal.json b/tools/code-generation/api-descriptions/bedrock-agent-runtime-2023-07-26.normal.json index b627ed06197..88806cdc81a 100644 --- a/tools/code-generation/api-descriptions/bedrock-agent-runtime-2023-07-26.normal.json +++ b/tools/code-generation/api-descriptions/bedrock-agent-runtime-2023-07-26.normal.json @@ -32,7 +32,7 @@ {"shape":"AccessDeniedException"}, {"shape":"ServiceQuotaExceededException"} ], - "documentation":"

    Sends a prompt for the agent to process and respond to.

    The CLI doesn't support InvokeAgent.

    • To continue the same conversation with an agent, use the same sessionId value in the request.

    • To activate trace enablement, turn enableTrace to true. Trace enablement helps you follow the agent's reasoning process that led it to the information it processed, the actions it took, and the final result it yielded. For more information, see Trace enablement.

    • End a conversation by setting endSession to true.

    • Include attributes for the session or prompt in the sessionState object.

    The response is returned in the bytes field of the chunk object.

    • The attribution object contains citations for parts of the response.

    • If you set enableTrace to true in the request, you can trace the agent's steps and reasoning process that led it to the response.

    • Errors are also surfaced in the response.

    " + "documentation":"

    Sends a prompt for the agent to process and respond to. Use return control event type for function calling.

    The CLI doesn't support InvokeAgent.

    • To continue the same conversation with an agent, use the same sessionId value in the request.

    • To activate trace enablement, turn enableTrace to true. Trace enablement helps you follow the agent's reasoning process that led it to the information it processed, the actions it took, and the final result it yielded. For more information, see Trace enablement.

    • End a conversation by setting endSession to true.

    • In the sessionState object, you can include attributes for the session or prompt or parameters returned from the action group.

    • Use return control event type for function calling.

    The response is returned in the bytes field of the chunk object.

    • The attribution object contains citations for parts of the response.

    • If you set enableTrace to true in the request, you can trace the agent's steps and reasoning process that led it to the response.

    • Errors are also surfaced in the response.

    " }, "Retrieve":{ "name":"Retrieve", @@ -103,6 +103,10 @@ "shape":"ApiPath", "documentation":"

    The path to the API to call, based off the action group.

    " }, + "function":{ + "shape":"Function", + "documentation":"

    The function in the action group to call.

    " + }, "parameters":{ "shape":"Parameters", "documentation":"

    The parameters in the Lambda input event.

    " @@ -116,7 +120,7 @@ "documentation":"

    The API method being used, based off the action group.

    " } }, - "documentation":"

    Contains information about the action group being invoked.

    " + "documentation":"

    Contains information about the action group being invoked. For more information about the possible structures, see the InvocationInput tab in OrchestrationTrace in the Amazon Bedrock User Guide.

    " }, "ActionGroupInvocationOutput":{ "type":"structure", @@ -148,10 +152,111 @@ "min":0, "pattern":"^[0-9a-zA-Z]+$" }, + "AgentVersion":{ + "type":"string", + "max":5, + "min":1, + "pattern":"^(DRAFT|[0-9]{0,4}[1-9][0-9]{0,4})$" + }, + "ApiContentMap":{ + "type":"map", + "key":{"shape":"String"}, + "value":{"shape":"PropertyParameters"} + }, + "ApiInvocationInput":{ + "type":"structure", + "required":["actionGroup"], + "members":{ + "actionGroup":{ + "shape":"String", + "documentation":"

    The action group that the API operation belongs to.

    " + }, + "apiPath":{ + "shape":"ApiPath", + "documentation":"

    The path to the API operation.

    " + }, + "httpMethod":{ + "shape":"String", + "documentation":"

    The HTTP method of the API operation.

    " + }, + "parameters":{ + "shape":"ApiParameters", + "documentation":"

    The parameters to provide for the API request, as the agent elicited from the user.

    " + }, + "requestBody":{ + "shape":"ApiRequestBody", + "documentation":"

    The request body to provide for the API request, as the agent elicited from the user.

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

    Contains information about the API operation that the agent predicts should be called.

    This data type is used in the following API operations:

    " + }, + "ApiParameter":{ + "type":"structure", + "members":{ + "name":{ + "shape":"String", + "documentation":"

    The name of the parameter.

    " + }, + "type":{ + "shape":"String", + "documentation":"

    The data type for the parameter.

    " + }, + "value":{ + "shape":"String", + "documentation":"

    The value of the parameter.

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

    Information about a parameter to provide to the API request.

    This data type is used in the following API operations:

    " + }, + "ApiParameters":{ + "type":"list", + "member":{"shape":"ApiParameter"} + }, "ApiPath":{ "type":"string", "sensitive":true }, + "ApiRequestBody":{ + "type":"structure", + "members":{ + "content":{ + "shape":"ApiContentMap", + "documentation":"

    The content of the request body. The key of the object in this field is a media type defining the format of the request body.

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

    The request body to provide for the API request, as the agent elicited from the user.

    This data type is used in the following API operations:

    " + }, + "ApiResult":{ + "type":"structure", + "required":["actionGroup"], + "members":{ + "actionGroup":{ + "shape":"String", + "documentation":"

    The action group that the API operation belongs to.

    " + }, + "apiPath":{ + "shape":"ApiPath", + "documentation":"

    The path to the API operation.

    " + }, + "httpMethod":{ + "shape":"String", + "documentation":"

    The HTTP method for the API operation.

    " + }, + "httpStatusCode":{ + "shape":"Integer", + "documentation":"

    http status code from API execution response (for example: 200, 400, 500).

    " + }, + "responseBody":{ + "shape":"ResponseBody", + "documentation":"

    The response body from the API operation. The key of the object is the content type. The response may be returned directly or from the Lambda function.

    " + }, + "responseState":{ + "shape":"ResponseState", + "documentation":"

    Controls the final response state returned to end user when API/Function execution failed. When this state is FAILURE, the request would fail with dependency failure exception. When this state is REPROMPT, the API/function response will be sent to model for re-prompt

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

    Contains information about the API operation that was called from the action group and the response body that was returned.

    This data type is used in the following API operations:

    " + }, "Attribution":{ "type":"structure", "members":{ @@ -216,6 +321,16 @@ }, "exception":true }, + "ContentBody":{ + "type":"structure", + "members":{ + "body":{ + "shape":"String", + "documentation":"

    The body of the API response.

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

    Contains the body of the API response.

    This data type is used in the following API operations:

    " + }, "ContentMap":{ "type":"map", "key":{"shape":"String"}, @@ -310,6 +425,74 @@ "type":"string", "sensitive":true }, + "Function":{ + "type":"string", + "sensitive":true + }, + "FunctionInvocationInput":{ + "type":"structure", + "required":["actionGroup"], + "members":{ + "actionGroup":{ + "shape":"String", + "documentation":"

    The action group that the function belongs to.

    " + }, + "function":{ + "shape":"String", + "documentation":"

    The name of the function.

    " + }, + "parameters":{ + "shape":"FunctionParameters", + "documentation":"

    A list of parameters of the function.

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

    Contains information about the function that the agent predicts should be called.

    This data type is used in the following API operations:

    " + }, + "FunctionParameter":{ + "type":"structure", + "members":{ + "name":{ + "shape":"String", + "documentation":"

    The name of the parameter.

    " + }, + "type":{ + "shape":"String", + "documentation":"

    The data type of the parameter.

    " + }, + "value":{ + "shape":"String", + "documentation":"

    The value of the parameter.

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

    Contains information about a parameter of the function.

    This data type is used in the following API operations:

    " + }, + "FunctionParameters":{ + "type":"list", + "member":{"shape":"FunctionParameter"} + }, + "FunctionResult":{ + "type":"structure", + "required":["actionGroup"], + "members":{ + "actionGroup":{ + "shape":"String", + "documentation":"

    The action group that the function belongs to.

    " + }, + "function":{ + "shape":"String", + "documentation":"

    The name of the function that was called.

    " + }, + "responseBody":{ + "shape":"ResponseBody", + "documentation":"

    The response from the function call using the parameters. The response may be returned directly or from the Lambda function.

    " + }, + "responseState":{ + "shape":"ResponseState", + "documentation":"

    Controls the final response state returned to end user when API/Function execution failed. When this state is FAILURE, the request would fail with dependency failure exception. When this state is REPROMPT, the API/function response will be sent to model for re-prompt

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

    Contains information about the function that was called from the action group and the response that was returned.

    This data type is used in the following API operations:

    " + }, "GeneratedResponsePart":{ "type":"structure", "members":{ @@ -362,6 +545,10 @@ "min":0, "sensitive":true }, + "Integer":{ + "type":"integer", + "box":true + }, "InternalServerException":{ "type":"structure", "members":{ @@ -395,6 +582,42 @@ "documentation":"

    Contains information pertaining to the action group or knowledge base that is being invoked.

    ", "sensitive":true }, + "InvocationInputMember":{ + "type":"structure", + "members":{ + "apiInvocationInput":{ + "shape":"ApiInvocationInput", + "documentation":"

    Contains information about the API operation that the agent predicts should be called.

    " + }, + "functionInvocationInput":{ + "shape":"FunctionInvocationInput", + "documentation":"

    Contains information about the function that the agent predicts should be called.

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

    Contains details about the API operation or function that the agent predicts should be called.

    This data type is used in the following API operations:

    ", + "union":true + }, + "InvocationInputs":{ + "type":"list", + "member":{"shape":"InvocationInputMember"}, + "max":5, + "min":1 + }, + "InvocationResultMember":{ + "type":"structure", + "members":{ + "apiResult":{ + "shape":"ApiResult", + "documentation":"

    The result from the API response from the action group invocation.

    " + }, + "functionResult":{ + "shape":"FunctionResult", + "documentation":"

    The result from the function from the action group invocation.

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

    A result from the action group invocation.

    This data type is used in the following API operations:

    ", + "union":true + }, "InvocationType":{ "type":"string", "enum":[ @@ -408,7 +631,6 @@ "required":[ "agentAliasId", "agentId", - "inputText", "sessionId" ], "members":{ @@ -750,7 +972,11 @@ "documentation":"

    The value of the parameter.

    " } }, - "documentation":"

    A parameter in the Lambda input event.

    " + "documentation":"

    A parameter for the API request or function.

    " + }, + "ParameterList":{ + "type":"list", + "member":{"shape":"Parameter"} }, "Parameters":{ "type":"list", @@ -894,6 +1120,16 @@ "POST_PROCESSING" ] }, + "PropertyParameters":{ + "type":"structure", + "members":{ + "properties":{ + "shape":"ParameterList", + "documentation":"

    A list of parameters in the request body.

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

    Contains the parameters in the request body.

    " + }, "Rationale":{ "type":"structure", "members":{ @@ -936,20 +1172,32 @@ "documentation":"

    The content in the request body.

    " } }, - "documentation":"

    The parameters in the request body for the Lambda input event.

    " + "documentation":"

    The parameters in the API request body.

    " }, "ResourceNotFoundException":{ "type":"structure", "members":{ "message":{"shape":"NonBlankString"} }, - "documentation":"

    The specified resource ARN was not found. Check the ARN and try your request again.

    ", + "documentation":"

    The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.

    ", "error":{ "httpStatusCode":404, "senderFault":true }, "exception":true }, + "ResponseBody":{ + "type":"map", + "key":{"shape":"String"}, + "value":{"shape":"ContentBody"} + }, + "ResponseState":{ + "type":"string", + "enum":[ + "FAILURE", + "REPROMPT" + ] + }, "ResponseStream":{ "type":"structure", "members":{ @@ -979,7 +1227,11 @@ }, "resourceNotFoundException":{ "shape":"ResourceNotFoundException", - "documentation":"

    The specified resource ARN was not found. Check the ARN and try your request again.

    " + "documentation":"

    The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.

    " + }, + "returnControl":{ + "shape":"ReturnControlPayload", + "documentation":"

    Contains the parameters and information that the agent elicited from the customer to carry out an action. This information is returned to the system and can be used in your own setup for fulfilling the action.

    " }, "serviceQuotaExceededException":{ "shape":"ServiceQuotaExceededException", @@ -991,7 +1243,7 @@ }, "trace":{ "shape":"TracePart", - "documentation":"

    Contains information about the agent and session, alongside the agent's reasoning process and results from calling API actions and querying knowledge bases and metadata about the trace. You can use the trace to understand how the agent arrived at the response it provided the customer. For more information, see Trace events.

    " + "documentation":"

    Contains information about the agent and session, alongside the agent's reasoning process and results from calling actions and querying knowledge bases and metadata about the trace. You can use the trace to understand how the agent arrived at the response it provided the customer. For more information, see Trace events.

    " }, "validationException":{ "shape":"ValidationException", @@ -1284,6 +1536,28 @@ "type":"list", "member":{"shape":"RetrievedReference"} }, + "ReturnControlInvocationResults":{ + "type":"list", + "member":{"shape":"InvocationResultMember"}, + "max":5, + "min":1 + }, + "ReturnControlPayload":{ + "type":"structure", + "members":{ + "invocationId":{ + "shape":"String", + "documentation":"

    The identifier of the action group invocation.

    " + }, + "invocationInputs":{ + "shape":"InvocationInputs", + "documentation":"

    A list of objects that contain information about the parameters and inputs that need to be sent into the API operation or function, based on what the agent determines from its session with the user.

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

    Contains information to return from the action group that the agent has predicted to invoke.

    This data type is used in the following API operations:

    ", + "event":true, + "sensitive":true + }, "SearchType":{ "type":"string", "enum":[ @@ -1317,10 +1591,18 @@ "SessionState":{ "type":"structure", "members":{ + "invocationId":{ + "shape":"String", + "documentation":"

    The identifier of the invocation.

    " + }, "promptSessionAttributes":{ "shape":"PromptSessionAttributesMap", "documentation":"

    Contains attributes that persist across a prompt and the values of those attributes. These attributes replace the $prompt_session_attributes$ placeholder variable in the orchestration prompt template. For more information, see Prompt template placeholder variables.

    " }, + "returnControlInvocationResults":{ + "shape":"ReturnControlInvocationResults", + "documentation":"

    Contains information about the results from the action group invocation.

    " + }, "sessionAttributes":{ "shape":"SessionAttributesMap", "documentation":"

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

    " @@ -1463,6 +1745,10 @@ "shape":"AgentId", "documentation":"

    The unique identifier of the agent.

    " }, + "agentVersion":{ + "shape":"AgentVersion", + "documentation":"

    The version of the agent.

    " + }, "sessionId":{ "shape":"SessionId", "documentation":"

    The unique identifier of the session with the agent.

    " diff --git a/tools/code-generation/api-descriptions/payment-cryptography-2021-09-14.normal.json b/tools/code-generation/api-descriptions/payment-cryptography-2021-09-14.normal.json index 8b9e2b51b7c..dd3cd6abdcb 100644 --- a/tools/code-generation/api-descriptions/payment-cryptography-2021-09-14.normal.json +++ b/tools/code-generation/api-descriptions/payment-cryptography-2021-09-14.normal.json @@ -31,7 +31,7 @@ {"shape":"ThrottlingException"}, {"shape":"InternalServerException"} ], - "documentation":"

    Creates an alias, or a friendly name, for an Amazon Web Services Payment Cryptography key. You can use an alias to identify a key in the console and when you call cryptographic operations such as EncryptData or DecryptData.

    You can associate the alias with any key in the same Amazon Web Services Region. Each alias is associated with only one key at a time, but a key can have multiple aliases. You can't create an alias without a key. The alias must be unique in the account and Amazon Web Services Region, but you can create another alias with the same name in a different Amazon Web Services Region.

    To change the key that's associated with the alias, call UpdateAlias. To delete the alias, call DeleteAlias. These operations don't affect the underlying key. To get the alias that you created, call ListAliases.

    Cross-account use: This operation can't be used across different Amazon Web Services accounts.

    Related operations:

    ", + "documentation":"

    Creates an alias, or a friendly name, for an Amazon Web Services Payment Cryptography key. You can use an alias to identify a key in the console and when you call cryptographic operations such as EncryptData or DecryptData.

    You can associate the alias with any key in the same Amazon Web Services Region. Each alias is associated with only one key at a time, but a key can have multiple aliases. You can't create an alias without a key. The alias must be unique in the account and Amazon Web Services Region, but you can create another alias with the same name in a different Amazon Web Services Region.

    To change the key that's associated with the alias, call UpdateAlias. To delete the alias, call DeleteAlias. These operations don't affect the underlying key. To get the alias that you created, call ListAliases.

    Cross-account use: This operation can't be used across different Amazon Web Services accounts.

    Related operations:

    ", "idempotent":true }, "CreateKey":{ @@ -52,7 +52,7 @@ {"shape":"ThrottlingException"}, {"shape":"InternalServerException"} ], - "documentation":"

    Creates an Amazon Web Services Payment Cryptography key, a logical representation of a cryptographic key, that is unique in your account and Amazon Web Services Region. You use keys for cryptographic functions such as encryption and decryption.

    In addition to the key material used in cryptographic operations, an Amazon Web Services Payment Cryptography key includes metadata such as the key ARN, key usage, key origin, creation date, description, and key state.

    When you create a key, you specify both immutable and mutable data about the key. The immutable data contains key attributes that define the scope and cryptographic operations that you can perform using the key, for example key class (example: SYMMETRIC_KEY), key algorithm (example: TDES_2KEY), key usage (example: TR31_P0_PIN_ENCRYPTION_KEY) and key modes of use (example: Encrypt). For information about valid combinations of key attributes, see Understanding key attributes in the Amazon Web Services Payment Cryptography User Guide. The mutable data contained within a key includes usage timestamp and key deletion timestamp and can be modified after creation.

    Amazon Web Services Payment Cryptography binds key attributes to keys using key blocks when you store or export them. Amazon Web Services Payment Cryptography stores the key contents wrapped and never stores or transmits them in the clear.

    Cross-account use: This operation can't be used across different Amazon Web Services accounts.

    Related operations:

    " + "documentation":"

    Creates an Amazon Web Services Payment Cryptography key, a logical representation of a cryptographic key, that is unique in your account and Amazon Web Services Region. You use keys for cryptographic functions such as encryption and decryption.

    In addition to the key material used in cryptographic operations, an Amazon Web Services Payment Cryptography key includes metadata such as the key ARN, key usage, key origin, creation date, description, and key state.

    When you create a key, you specify both immutable and mutable data about the key. The immutable data contains key attributes that define the scope and cryptographic operations that you can perform using the key, for example key class (example: SYMMETRIC_KEY), key algorithm (example: TDES_2KEY), key usage (example: TR31_P0_PIN_ENCRYPTION_KEY) and key modes of use (example: Encrypt). For information about valid combinations of key attributes, see Understanding key attributes in the Amazon Web Services Payment Cryptography User Guide. The mutable data contained within a key includes usage timestamp and key deletion timestamp and can be modified after creation.

    Amazon Web Services Payment Cryptography binds key attributes to keys using key blocks when you store or export them. Amazon Web Services Payment Cryptography stores the key contents wrapped and never stores or transmits them in the clear.

    Cross-account use: This operation can't be used across different Amazon Web Services accounts.

    Related operations:

    " }, "DeleteAlias":{ "name":"DeleteAlias", @@ -71,7 +71,7 @@ {"shape":"ThrottlingException"}, {"shape":"InternalServerException"} ], - "documentation":"

    Deletes the alias, but doesn't affect the underlying key.

    Each key can have multiple aliases. To get the aliases of all keys, use the ListAliases operation. To change the alias of a key, first use DeleteAlias to delete the current alias and then use CreateAlias to create a new alias. To associate an existing alias with a different key, call UpdateAlias.

    Cross-account use: This operation can't be used across different Amazon Web Services accounts.

    Related operations:

    ", + "documentation":"

    Deletes the alias, but doesn't affect the underlying key.

    Each key can have multiple aliases. To get the aliases of all keys, use the UpdateAlias operation. To change the alias of a key, first use DeleteAlias to delete the current alias and then use CreateAlias to create a new alias. To associate an existing alias with a different key, call UpdateAlias.

    Cross-account use: This operation can't be used across different Amazon Web Services accounts.

    Related operations:

    ", "idempotent":true }, "DeleteKey":{ @@ -91,7 +91,7 @@ {"shape":"ThrottlingException"}, {"shape":"InternalServerException"} ], - "documentation":"

    Deletes the key material and metadata associated with Amazon Web Services Payment Cryptography key.

    Key deletion is irreversible. After a key is deleted, you can't perform cryptographic operations using the key. For example, you can't decrypt data that was encrypted by a deleted Amazon Web Services Payment Cryptography key, and the data may become unrecoverable. Because key deletion is destructive, Amazon Web Services Payment Cryptography has a safety mechanism to prevent accidental deletion of a key. When you call this operation, Amazon Web Services Payment Cryptography disables the specified key but doesn't delete it until after a waiting period set using DeleteKeyInDays. The default waiting period is 7 days. During the waiting period, the KeyState is DELETE_PENDING. After the key is deleted, the KeyState is DELETE_COMPLETE.

    You should delete a key only when you are sure that you don't need to use it anymore and no other parties are utilizing this key. If you aren't sure, consider deactivating it instead by calling StopKeyUsage.

    Cross-account use: This operation can't be used across different Amazon Web Services accounts.

    Related operations:

    ", + "documentation":"

    Deletes the key material and metadata associated with Amazon Web Services Payment Cryptography key.

    Key deletion is irreversible. After a key is deleted, you can't perform cryptographic operations using the key. For example, you can't decrypt data that was encrypted by a deleted Amazon Web Services Payment Cryptography key, and the data may become unrecoverable. Because key deletion is destructive, Amazon Web Services Payment Cryptography has a safety mechanism to prevent accidental deletion of a key. When you call this operation, Amazon Web Services Payment Cryptography disables the specified key but doesn't delete it until after a waiting period set using DeleteKeyInDays. The default waiting period is 7 days. During the waiting period, the KeyState is DELETE_PENDING. After the key is deleted, the KeyState is DELETE_COMPLETE.

    You should delete a key only when you are sure that you don't need to use it anymore and no other parties are utilizing this key. If you aren't sure, consider deactivating it instead by calling StopKeyUsage.

    Cross-account use: This operation can't be used across different Amazon Web Services accounts.

    Related operations:

    ", "idempotent":true }, "ExportKey":{ @@ -111,7 +111,7 @@ {"shape":"ThrottlingException"}, {"shape":"InternalServerException"} ], - "documentation":"

    Exports a key from Amazon Web Services Payment Cryptography.

    Amazon Web Services Payment Cryptography simplifies key exchange by replacing the existing paper-based approach with a modern electronic approach. With ExportKey you can export symmetric keys using either symmetric and asymmetric key exchange mechanisms. Using this operation, you can share your Amazon Web Services Payment Cryptography generated keys with other service partners to perform cryptographic operations outside of Amazon Web Services Payment Cryptography

    For symmetric key exchange, Amazon Web Services Payment Cryptography uses the ANSI X9 TR-31 norm in accordance with PCI PIN guidelines. And for asymmetric key exchange, Amazon Web Services Payment Cryptography supports ANSI X9 TR-34 norm and RSA wrap and unwrap key exchange mechanism. Asymmetric key exchange methods are typically used to establish bi-directional trust between the two parties exhanging keys and are used for initial key exchange such as Key Encryption Key (KEK). After which you can export working keys using symmetric method to perform various cryptographic operations within Amazon Web Services Payment Cryptography.

    The TR-34 norm is intended for exchanging 3DES keys only and keys are imported in a WrappedKeyBlock format. Key attributes (such as KeyUsage, KeyAlgorithm, KeyModesOfUse, Exportability) are contained within the key block. With RSA wrap and unwrap, you can exchange both 3DES and AES-128 keys. The keys are imported in a WrappedKeyCryptogram format and you will need to specify the key attributes during import.

    You can also use ExportKey functionality to generate and export an IPEK (Initial Pin Encryption Key) from Amazon Web Services Payment Cryptography using either TR-31 or TR-34 export key exchange. IPEK is generated from BDK (Base Derivation Key) and ExportDukptInitialKey attribute KSN (KeySerialNumber). The generated IPEK does not persist within Amazon Web Services Payment Cryptography and has to be re-generated each time during export.

    To export initial keys (KEK) or IPEK using TR-34

    Using this operation, you can export initial key using TR-34 asymmetric key exchange. You can only export KEK generated within Amazon Web Services Payment Cryptography. In TR-34 terminology, the sending party of the key is called Key Distribution Host (KDH) and the receiving party of the key is called Key Receiving Device (KRD). During key export process, KDH is Amazon Web Services Payment Cryptography which initiates key export and KRD is the user receiving the key.

    To initiate TR-34 key export, the KRD must obtain an export token by calling GetParametersForExport. This operation also generates a key pair for the purpose of key export, signs the key and returns back the signing public key certificate (also known as KDH signing certificate) and root certificate chain. The KDH uses the private key to sign the the export payload and the signing public key certificate is provided to KRD to verify the signature. The KRD can import the root certificate into its Hardware Security Module (HSM), as required. The export token and the associated KDH signing certificate expires after 7 days.

    Next the KRD generates a key pair for the the purpose of encrypting the KDH key and provides the public key cerificate (also known as KRD wrapping certificate) back to KDH. The KRD will also import the root cerificate chain into Amazon Web Services Payment Cryptography by calling ImportKey for RootCertificatePublicKey. The KDH, Amazon Web Services Payment Cryptography, will use the KRD wrapping cerificate to encrypt (wrap) the key under export and signs it with signing private key to generate a TR-34 WrappedKeyBlock. For more information on TR-34 key export, see section Exporting symmetric keys in the Amazon Web Services Payment Cryptography User Guide.

    Set the following parameters:

    • ExportAttributes: Specify export attributes in case of IPEK export. This parameter is optional for KEK export.

    • ExportKeyIdentifier: The KeyARN of the KEK or BDK (in case of IPEK) under export.

    • KeyMaterial: Use Tr34KeyBlock parameters.

    • CertificateAuthorityPublicKeyIdentifier: The KeyARN of the certificate chain that signed the KRD wrapping key certificate.

    • ExportToken: Obtained from KDH by calling GetParametersForImport.

    • WrappingKeyCertificate: The public key certificate in PEM format (base64 encoded) of the KRD wrapping key Amazon Web Services Payment Cryptography uses for encryption of the TR-34 export payload. This certificate must be signed by the root certificate (CertificateAuthorityPublicKeyIdentifier) imported into Amazon Web Services Payment Cryptography.

    When this operation is successful, Amazon Web Services Payment Cryptography returns the KEK or IPEK as a TR-34 WrappedKeyBlock.

    To export initial keys (KEK) or IPEK using RSA Wrap and Unwrap

    Using this operation, you can export initial key using asymmetric RSA wrap and unwrap key exchange method. To initiate export, generate an asymmetric key pair on the receiving HSM and obtain the public key certificate in PEM format (base64 encoded) for the purpose of wrapping and the root certifiate chain. Import the root certificate into Amazon Web Services Payment Cryptography by calling ImportKey for RootCertificatePublicKey.

    Next call ExportKey and set the following parameters:

    • CertificateAuthorityPublicKeyIdentifier: The KeyARN of the certificate chain that signed wrapping key certificate.

    • KeyMaterial: Set to KeyCryptogram.

    • WrappingKeyCertificate: The public key certificate in PEM format (base64 encoded) obtained by the receiving HSM and signed by the root certificate (CertificateAuthorityPublicKeyIdentifier) imported into Amazon Web Services Payment Cryptography. The receiving HSM uses its private key component to unwrap the WrappedKeyCryptogram.

    When this operation is successful, Amazon Web Services Payment Cryptography returns the WrappedKeyCryptogram.

    To export working keys or IPEK using TR-31

    Using this operation, you can export working keys or IPEK using TR-31 symmetric key exchange. In TR-31, you must use an initial key such as KEK to encrypt or wrap the key under export. To establish a KEK, you can use CreateKey or ImportKey.

    Set the following parameters:

    • ExportAttributes: Specify export attributes in case of IPEK export. This parameter is optional for KEK export.

    • ExportKeyIdentifier: The KeyARN of the KEK or BDK (in case of IPEK) under export.

    • KeyMaterial: Use Tr31KeyBlock parameters.

    When this operation is successful, Amazon Web Services Payment Cryptography returns the working key or IPEK as a TR-31 WrappedKeyBlock.

    Cross-account use: This operation can't be used across different Amazon Web Services accounts.

    Related operations:

    " + "documentation":"

    Exports a key from Amazon Web Services Payment Cryptography.

    Amazon Web Services Payment Cryptography simplifies key exchange by replacing the existing paper-based approach with a modern electronic approach. With ExportKey you can export symmetric keys using either symmetric and asymmetric key exchange mechanisms. Using this operation, you can share your Amazon Web Services Payment Cryptography generated keys with other service partners to perform cryptographic operations outside of Amazon Web Services Payment Cryptography

    For symmetric key exchange, Amazon Web Services Payment Cryptography uses the ANSI X9 TR-31 norm in accordance with PCI PIN guidelines. And for asymmetric key exchange, Amazon Web Services Payment Cryptography supports ANSI X9 TR-34 norm and RSA wrap and unwrap key exchange mechanism. Asymmetric key exchange methods are typically used to establish bi-directional trust between the two parties exhanging keys and are used for initial key exchange such as Key Encryption Key (KEK). After which you can export working keys using symmetric method to perform various cryptographic operations within Amazon Web Services Payment Cryptography.

    The TR-34 norm is intended for exchanging 3DES keys only and keys are imported in a WrappedKeyBlock format. Key attributes (such as KeyUsage, KeyAlgorithm, KeyModesOfUse, Exportability) are contained within the key block. With RSA wrap and unwrap, you can exchange both 3DES and AES-128 keys. The keys are imported in a WrappedKeyCryptogram format and you will need to specify the key attributes during import.

    You can also use ExportKey functionality to generate and export an IPEK (Initial Pin Encryption Key) from Amazon Web Services Payment Cryptography using either TR-31 or TR-34 export key exchange. IPEK is generated from BDK (Base Derivation Key) and ExportDukptInitialKey attribute KSN (KeySerialNumber). The generated IPEK does not persist within Amazon Web Services Payment Cryptography and has to be re-generated each time during export.

    For key exchange using TR-31 or TR-34 key blocks, you can also export optional blocks within the key block header which contain additional attribute information about the key. The KeyVersion within KeyBlockHeaders indicates the version of the key within the key block. Furthermore, KeyExportability within KeyBlockHeaders can be used to further restrict exportability of the key after export from Amazon Web Services Payment Cryptography.

    The OptionalBlocks contain the additional data related to the key. For information on data type that can be included within optional blocks, refer to ASC X9.143-2022.

    Data included in key block headers is signed but transmitted in clear text. Sensitive or confidential information should not be included in optional blocks. Refer to ASC X9.143-2022 standard for information on allowed data type.

    To export initial keys (KEK) or IPEK using TR-34

    Using this operation, you can export initial key using TR-34 asymmetric key exchange. You can only export KEK generated within Amazon Web Services Payment Cryptography. In TR-34 terminology, the sending party of the key is called Key Distribution Host (KDH) and the receiving party of the key is called Key Receiving Device (KRD). During key export process, KDH is Amazon Web Services Payment Cryptography which initiates key export and KRD is the user receiving the key.

    To initiate TR-34 key export, the KRD must obtain an export token by calling GetParametersForExport. This operation also generates a key pair for the purpose of key export, signs the key and returns back the signing public key certificate (also known as KDH signing certificate) and root certificate chain. The KDH uses the private key to sign the the export payload and the signing public key certificate is provided to KRD to verify the signature. The KRD can import the root certificate into its Hardware Security Module (HSM), as required. The export token and the associated KDH signing certificate expires after 7 days.

    Next the KRD generates a key pair for the the purpose of encrypting the KDH key and provides the public key cerificate (also known as KRD wrapping certificate) back to KDH. The KRD will also import the root cerificate chain into Amazon Web Services Payment Cryptography by calling ImportKey for RootCertificatePublicKey. The KDH, Amazon Web Services Payment Cryptography, will use the KRD wrapping cerificate to encrypt (wrap) the key under export and signs it with signing private key to generate a TR-34 WrappedKeyBlock. For more information on TR-34 key export, see section Exporting symmetric keys in the Amazon Web Services Payment Cryptography User Guide.

    Set the following parameters:

    • ExportAttributes: Specify export attributes in case of IPEK export. This parameter is optional for KEK export.

    • ExportKeyIdentifier: The KeyARN of the KEK or BDK (in case of IPEK) under export.

    • KeyMaterial: Use Tr34KeyBlock parameters.

    • CertificateAuthorityPublicKeyIdentifier: The KeyARN of the certificate chain that signed the KRD wrapping key certificate.

    • ExportToken: Obtained from KDH by calling GetParametersForImport.

    • WrappingKeyCertificate: The public key certificate in PEM format (base64 encoded) of the KRD wrapping key Amazon Web Services Payment Cryptography uses for encryption of the TR-34 export payload. This certificate must be signed by the root certificate (CertificateAuthorityPublicKeyIdentifier) imported into Amazon Web Services Payment Cryptography.

    When this operation is successful, Amazon Web Services Payment Cryptography returns the KEK or IPEK as a TR-34 WrappedKeyBlock.

    To export initial keys (KEK) or IPEK using RSA Wrap and Unwrap

    Using this operation, you can export initial key using asymmetric RSA wrap and unwrap key exchange method. To initiate export, generate an asymmetric key pair on the receiving HSM and obtain the public key certificate in PEM format (base64 encoded) for the purpose of wrapping and the root certifiate chain. Import the root certificate into Amazon Web Services Payment Cryptography by calling ImportKey for RootCertificatePublicKey.

    Next call ExportKey and set the following parameters:

    • CertificateAuthorityPublicKeyIdentifier: The KeyARN of the certificate chain that signed wrapping key certificate.

    • KeyMaterial: Set to KeyCryptogram.

    • WrappingKeyCertificate: The public key certificate in PEM format (base64 encoded) obtained by the receiving HSM and signed by the root certificate (CertificateAuthorityPublicKeyIdentifier) imported into Amazon Web Services Payment Cryptography. The receiving HSM uses its private key component to unwrap the WrappedKeyCryptogram.

    When this operation is successful, Amazon Web Services Payment Cryptography returns the WrappedKeyCryptogram.

    To export working keys or IPEK using TR-31

    Using this operation, you can export working keys or IPEK using TR-31 symmetric key exchange. In TR-31, you must use an initial key such as KEK to encrypt or wrap the key under export. To establish a KEK, you can use CreateKey or ImportKey.

    Set the following parameters:

    • ExportAttributes: Specify export attributes in case of IPEK export. This parameter is optional for KEK export.

    • ExportKeyIdentifier: The KeyARN of the KEK or BDK (in case of IPEK) under export.

    • KeyMaterial: Use Tr31KeyBlock parameters.

    When this operation is successful, Amazon Web Services Payment Cryptography returns the working key or IPEK as a TR-31 WrappedKeyBlock.

    Cross-account use: This operation can't be used across different Amazon Web Services accounts.

    Related operations:

    " }, "GetAlias":{ "name":"GetAlias", @@ -129,7 +129,7 @@ {"shape":"ThrottlingException"}, {"shape":"InternalServerException"} ], - "documentation":"

    Gets the Amazon Web Services Payment Cryptography key associated with the alias.

    Cross-account use: This operation can't be used across different Amazon Web Services accounts.

    Related operations:

    " + "documentation":"

    Gets the Amazon Web Services Payment Cryptography key associated with the alias.

    Cross-account use: This operation can't be used across different Amazon Web Services accounts.

    Related operations:

    " }, "GetKey":{ "name":"GetKey", @@ -147,7 +147,7 @@ {"shape":"ThrottlingException"}, {"shape":"InternalServerException"} ], - "documentation":"

    Gets the key material for an Amazon Web Services Payment Cryptography key, including the immutable and mutable data specified when the key was created.

    Cross-account use: This operation can't be used across different Amazon Web Services accounts.

    Related operations:

    " + "documentation":"

    Gets the key material for an Amazon Web Services Payment Cryptography key, including the immutable and mutable data specified when the key was created.

    Cross-account use: This operation can't be used across different Amazon Web Services accounts.

    Related operations:

    " }, "GetParametersForExport":{ "name":"GetParametersForExport", @@ -167,7 +167,7 @@ {"shape":"ThrottlingException"}, {"shape":"InternalServerException"} ], - "documentation":"

    Gets the export token and the signing key certificate to initiate a TR-34 key export from Amazon Web Services Payment Cryptography.

    The signing key certificate signs the wrapped key under export within the TR-34 key payload. The export token and signing key certificate must be in place and operational before calling ExportKey. The export token expires in 7 days. You can use the same export token to export multiple keys from your service account.

    Cross-account use: This operation can't be used across different Amazon Web Services accounts.

    Related operations:

    " + "documentation":"

    Gets the export token and the signing key certificate to initiate a TR-34 key export from Amazon Web Services Payment Cryptography.

    The signing key certificate signs the wrapped key under export within the TR-34 key payload. The export token and signing key certificate must be in place and operational before calling ExportKey. The export token expires in 7 days. You can use the same export token to export multiple keys from your service account.

    Cross-account use: This operation can't be used across different Amazon Web Services accounts.

    Related operations:

    " }, "GetParametersForImport":{ "name":"GetParametersForImport", @@ -187,7 +187,7 @@ {"shape":"ThrottlingException"}, {"shape":"InternalServerException"} ], - "documentation":"

    Gets the import token and the wrapping key certificate in PEM format (base64 encoded) to initiate a TR-34 WrappedKeyBlock or a RSA WrappedKeyCryptogram import into Amazon Web Services Payment Cryptography.

    The wrapping key certificate wraps the key under import. The import token and wrapping key certificate must be in place and operational before calling ImportKey. The import token expires in 7 days. You can use the same import token to import multiple keys into your service account.

    Cross-account use: This operation can't be used across different Amazon Web Services accounts.

    Related operations:

    " + "documentation":"

    Gets the import token and the wrapping key certificate in PEM format (base64 encoded) to initiate a TR-34 WrappedKeyBlock or a RSA WrappedKeyCryptogram import into Amazon Web Services Payment Cryptography.

    The wrapping key certificate wraps the key under import. The import token and wrapping key certificate must be in place and operational before calling ImportKey. The import token expires in 7 days. You can use the same import token to import multiple keys into your service account.

    Cross-account use: This operation can't be used across different Amazon Web Services accounts.

    Related operations:

    " }, "GetPublicKeyCertificate":{ "name":"GetPublicKeyCertificate", @@ -225,7 +225,7 @@ {"shape":"ThrottlingException"}, {"shape":"InternalServerException"} ], - "documentation":"

    Imports symmetric keys and public key certificates in PEM format (base64 encoded) into Amazon Web Services Payment Cryptography.

    Amazon Web Services Payment Cryptography simplifies key exchange by replacing the existing paper-based approach with a modern electronic approach. With ImportKey you can import symmetric keys using either symmetric and asymmetric key exchange mechanisms.

    For symmetric key exchange, Amazon Web Services Payment Cryptography uses the ANSI X9 TR-31 norm in accordance with PCI PIN guidelines. And for asymmetric key exchange, Amazon Web Services Payment Cryptography supports ANSI X9 TR-34 norm and RSA wrap and unwrap key exchange mechanisms. Asymmetric key exchange methods are typically used to establish bi-directional trust between the two parties exhanging keys and are used for initial key exchange such as Key Encryption Key (KEK) or Zone Master Key (ZMK). After which you can import working keys using symmetric method to perform various cryptographic operations within Amazon Web Services Payment Cryptography.

    The TR-34 norm is intended for exchanging 3DES keys only and keys are imported in a WrappedKeyBlock format. Key attributes (such as KeyUsage, KeyAlgorithm, KeyModesOfUse, Exportability) are contained within the key block. With RSA wrap and unwrap, you can exchange both 3DES and AES-128 keys. The keys are imported in a WrappedKeyCryptogram format and you will need to specify the key attributes during import.

    You can also import a root public key certificate, used to sign other public key certificates, or a trusted public key certificate under an already established root public key certificate.

    To import a public root key certificate

    You can also import a root public key certificate, used to sign other public key certificates, or a trusted public key certificate under an already established root public key certificate.

    To import a public root key certificate

    Using this operation, you can import the public component (in PEM cerificate format) of your private root key. You can use the imported public root key certificate for digital signatures, for example signing wrapping key or signing key in TR-34, within your Amazon Web Services Payment Cryptography account.

    Set the following parameters:

    • KeyMaterial: RootCertificatePublicKey

    • KeyClass: PUBLIC_KEY

    • KeyModesOfUse: Verify

    • KeyUsage: TR31_S0_ASYMMETRIC_KEY_FOR_DIGITAL_SIGNATURE

    • PublicKeyCertificate: The public key certificate in PEM format (base64 encoded) of the private root key under import.

    To import a trusted public key certificate

    The root public key certificate must be in place and operational before you import a trusted public key certificate. Set the following parameters:

    • KeyMaterial: TrustedCertificatePublicKey

    • CertificateAuthorityPublicKeyIdentifier: KeyArn of the RootCertificatePublicKey.

    • KeyModesOfUse and KeyUsage: Corresponding to the cryptographic operations such as wrap, sign, or encrypt that you will allow the trusted public key certificate to perform.

    • PublicKeyCertificate: The trusted public key certificate in PEM format (base64 encoded) under import.

    To import initial keys (KEK or ZMK or similar) using TR-34

    Using this operation, you can import initial key using TR-34 asymmetric key exchange. In TR-34 terminology, the sending party of the key is called Key Distribution Host (KDH) and the receiving party of the key is called Key Receiving Device (KRD). During the key import process, KDH is the user who initiates the key import and KRD is Amazon Web Services Payment Cryptography who receives the key.

    To initiate TR-34 key import, the KDH must obtain an import token by calling GetParametersForImport. This operation generates an encryption keypair for the purpose of key import, signs the key and returns back the wrapping key certificate (also known as KRD wrapping certificate) and the root certificate chain. The KDH must trust and install the KRD wrapping certificate on its HSM and use it to encrypt (wrap) the KDH key during TR-34 WrappedKeyBlock generation. The import token and associated KRD wrapping certificate expires after 7 days.

    Next the KDH generates a key pair for the purpose of signing the encrypted KDH key and provides the public certificate of the signing key to Amazon Web Services Payment Cryptography. The KDH will also need to import the root certificate chain of the KDH signing certificate by calling ImportKey for RootCertificatePublicKey. For more information on TR-34 key import, see section Importing symmetric keys in the Amazon Web Services Payment Cryptography User Guide.

    Set the following parameters:

    • KeyMaterial: Use Tr34KeyBlock parameters.

    • CertificateAuthorityPublicKeyIdentifier: The KeyARN of the certificate chain that signed the KDH signing key certificate.

    • ImportToken: Obtained from KRD by calling GetParametersForImport.

    • WrappedKeyBlock: The TR-34 wrapped key material from KDH. It contains the KDH key under import, wrapped with KRD wrapping certificate and signed by KDH signing private key. This TR-34 key block is typically generated by the KDH Hardware Security Module (HSM) outside of Amazon Web Services Payment Cryptography.

    • SigningKeyCertificate: The public key certificate in PEM format (base64 encoded) of the KDH signing key generated under the root certificate (CertificateAuthorityPublicKeyIdentifier) imported in Amazon Web Services Payment Cryptography.

    To import initial keys (KEK or ZMK or similar) using RSA Wrap and Unwrap

    Using this operation, you can import initial key using asymmetric RSA wrap and unwrap key exchange method. To initiate import, call GetParametersForImport with KeyMaterial set to KEY_CRYPTOGRAM to generate an import token. This operation also generates an encryption keypair for the purpose of key import, signs the key and returns back the wrapping key certificate in PEM format (base64 encoded) and its root certificate chain. The import token and associated KRD wrapping certificate expires after 7 days.

    You must trust and install the wrapping certificate and its certificate chain on the sending HSM and use it to wrap the key under export for WrappedKeyCryptogram generation. Next call ImportKey with KeyMaterial set to KEY_CRYPTOGRAM and provide the ImportToken and KeyAttributes for the key under import.

    To import working keys using TR-31

    Amazon Web Services Payment Cryptography uses TR-31 symmetric key exchange norm to import working keys. A KEK must be established within Amazon Web Services Payment Cryptography by using TR-34 key import or by using CreateKey. To initiate a TR-31 key import, set the following parameters:

    • KeyMaterial: Use Tr31KeyBlock parameters.

    • WrappedKeyBlock: The TR-31 wrapped key material. It contains the key under import, encrypted using KEK. The TR-31 key block is typically generated by a HSM outside of Amazon Web Services Payment Cryptography.

    • WrappingKeyIdentifier: The KeyArn of the KEK that Amazon Web Services Payment Cryptography uses to decrypt or unwrap the key under import.

    Cross-account use: This operation can't be used across different Amazon Web Services accounts.

    Related operations:

    " + "documentation":"

    Imports symmetric keys and public key certificates in PEM format (base64 encoded) into Amazon Web Services Payment Cryptography.

    Amazon Web Services Payment Cryptography simplifies key exchange by replacing the existing paper-based approach with a modern electronic approach. With ImportKey you can import symmetric keys using either symmetric and asymmetric key exchange mechanisms.

    For symmetric key exchange, Amazon Web Services Payment Cryptography uses the ANSI X9 TR-31 norm in accordance with PCI PIN guidelines. And for asymmetric key exchange, Amazon Web Services Payment Cryptography supports ANSI X9 TR-34 norm and RSA wrap and unwrap key exchange mechanisms. Asymmetric key exchange methods are typically used to establish bi-directional trust between the two parties exhanging keys and are used for initial key exchange such as Key Encryption Key (KEK) or Zone Master Key (ZMK). After which you can import working keys using symmetric method to perform various cryptographic operations within Amazon Web Services Payment Cryptography.

    The TR-34 norm is intended for exchanging 3DES keys only and keys are imported in a WrappedKeyBlock format. Key attributes (such as KeyUsage, KeyAlgorithm, KeyModesOfUse, Exportability) are contained within the key block. With RSA wrap and unwrap, you can exchange both 3DES and AES-128 keys. The keys are imported in a WrappedKeyCryptogram format and you will need to specify the key attributes during import.

    You can also import a root public key certificate, used to sign other public key certificates, or a trusted public key certificate under an already established root public key certificate.

    To import a public root key certificate

    You can also import a root public key certificate, used to sign other public key certificates, or a trusted public key certificate under an already established root public key certificate.

    To import a public root key certificate

    Using this operation, you can import the public component (in PEM cerificate format) of your private root key. You can use the imported public root key certificate for digital signatures, for example signing wrapping key or signing key in TR-34, within your Amazon Web Services Payment Cryptography account.

    Set the following parameters:

    • KeyMaterial: RootCertificatePublicKey

    • KeyClass: PUBLIC_KEY

    • KeyModesOfUse: Verify

    • KeyUsage: TR31_S0_ASYMMETRIC_KEY_FOR_DIGITAL_SIGNATURE

    • PublicKeyCertificate: The public key certificate in PEM format (base64 encoded) of the private root key under import.

    To import a trusted public key certificate

    The root public key certificate must be in place and operational before you import a trusted public key certificate. Set the following parameters:

    • KeyMaterial: TrustedCertificatePublicKey

    • CertificateAuthorityPublicKeyIdentifier: KeyArn of the RootCertificatePublicKey.

    • KeyModesOfUse and KeyUsage: Corresponding to the cryptographic operations such as wrap, sign, or encrypt that you will allow the trusted public key certificate to perform.

    • PublicKeyCertificate: The trusted public key certificate in PEM format (base64 encoded) under import.

    To import initial keys (KEK or ZMK or similar) using TR-34

    Using this operation, you can import initial key using TR-34 asymmetric key exchange. In TR-34 terminology, the sending party of the key is called Key Distribution Host (KDH) and the receiving party of the key is called Key Receiving Device (KRD). During the key import process, KDH is the user who initiates the key import and KRD is Amazon Web Services Payment Cryptography who receives the key.

    To initiate TR-34 key import, the KDH must obtain an import token by calling GetParametersForImport. This operation generates an encryption keypair for the purpose of key import, signs the key and returns back the wrapping key certificate (also known as KRD wrapping certificate) and the root certificate chain. The KDH must trust and install the KRD wrapping certificate on its HSM and use it to encrypt (wrap) the KDH key during TR-34 WrappedKeyBlock generation. The import token and associated KRD wrapping certificate expires after 7 days.

    Next the KDH generates a key pair for the purpose of signing the encrypted KDH key and provides the public certificate of the signing key to Amazon Web Services Payment Cryptography. The KDH will also need to import the root certificate chain of the KDH signing certificate by calling ImportKey for RootCertificatePublicKey. For more information on TR-34 key import, see section Importing symmetric keys in the Amazon Web Services Payment Cryptography User Guide.

    Set the following parameters:

    • KeyMaterial: Use Tr34KeyBlock parameters.

    • CertificateAuthorityPublicKeyIdentifier: The KeyARN of the certificate chain that signed the KDH signing key certificate.

    • ImportToken: Obtained from KRD by calling GetParametersForImport.

    • WrappedKeyBlock: The TR-34 wrapped key material from KDH. It contains the KDH key under import, wrapped with KRD wrapping certificate and signed by KDH signing private key. This TR-34 key block is typically generated by the KDH Hardware Security Module (HSM) outside of Amazon Web Services Payment Cryptography.

    • SigningKeyCertificate: The public key certificate in PEM format (base64 encoded) of the KDH signing key generated under the root certificate (CertificateAuthorityPublicKeyIdentifier) imported in Amazon Web Services Payment Cryptography.

    To import initial keys (KEK or ZMK or similar) using RSA Wrap and Unwrap

    Using this operation, you can import initial key using asymmetric RSA wrap and unwrap key exchange method. To initiate import, call GetParametersForImport with KeyMaterial set to KEY_CRYPTOGRAM to generate an import token. This operation also generates an encryption keypair for the purpose of key import, signs the key and returns back the wrapping key certificate in PEM format (base64 encoded) and its root certificate chain. The import token and associated KRD wrapping certificate expires after 7 days.

    You must trust and install the wrapping certificate and its certificate chain on the sending HSM and use it to wrap the key under export for WrappedKeyCryptogram generation. Next call ImportKey with KeyMaterial set to KEY_CRYPTOGRAM and provide the ImportToken and KeyAttributes for the key under import.

    To import working keys using TR-31

    Amazon Web Services Payment Cryptography uses TR-31 symmetric key exchange norm to import working keys. A KEK must be established within Amazon Web Services Payment Cryptography by using TR-34 key import or by using CreateKey. To initiate a TR-31 key import, set the following parameters:

    • KeyMaterial: Use Tr31KeyBlock parameters.

    • WrappedKeyBlock: The TR-31 wrapped key material. It contains the key under import, encrypted using KEK. The TR-31 key block is typically generated by a HSM outside of Amazon Web Services Payment Cryptography.

    • WrappingKeyIdentifier: The KeyArn of the KEK that Amazon Web Services Payment Cryptography uses to decrypt or unwrap the key under import.

    Cross-account use: This operation can't be used across different Amazon Web Services accounts.

    Related operations:

    " }, "ListAliases":{ "name":"ListAliases", @@ -243,7 +243,7 @@ {"shape":"ThrottlingException"}, {"shape":"InternalServerException"} ], - "documentation":"

    Lists the aliases for all keys in the caller's Amazon Web Services account and Amazon Web Services Region. You can filter the list of aliases. For more information, see Using aliases in the Amazon Web Services Payment Cryptography User Guide.

    This is a paginated operation, which means that each response might contain only a subset of all the aliases. When the response contains only a subset of aliases, it includes a NextToken value. Use this value in a subsequent ListAliases request to get more aliases. When you receive a response with no NextToken (or an empty or null value), that means there are no more aliases to get.

    Cross-account use: This operation can't be used across different Amazon Web Services accounts.

    Related operations:

    " + "documentation":"

    Lists the aliases for all keys in the caller's Amazon Web Services account and Amazon Web Services Region. You can filter the list of aliases. For more information, see Using aliases in the Amazon Web Services Payment Cryptography User Guide.

    This is a paginated operation, which means that each response might contain only a subset of all the aliases. When the response contains only a subset of aliases, it includes a NextToken value. Use this value in a subsequent ListAliases request to get more aliases. When you receive a response with no NextToken (or an empty or null value), that means there are no more aliases to get.

    Cross-account use: This operation can't be used across different Amazon Web Services accounts.

    Related operations:

    " }, "ListKeys":{ "name":"ListKeys", @@ -261,7 +261,7 @@ {"shape":"ThrottlingException"}, {"shape":"InternalServerException"} ], - "documentation":"

    Lists the keys in the caller's Amazon Web Services account and Amazon Web Services Region. You can filter the list of keys.

    This is a paginated operation, which means that each response might contain only a subset of all the keys. When the response contains only a subset of keys, it includes a NextToken value. Use this value in a subsequent ListKeys request to get more keys. When you receive a response with no NextToken (or an empty or null value), that means there are no more keys to get.

    Cross-account use: This operation can't be used across different Amazon Web Services accounts.

    Related operations:

    " + "documentation":"

    Lists the keys in the caller's Amazon Web Services account and Amazon Web Services Region. You can filter the list of keys.

    This is a paginated operation, which means that each response might contain only a subset of all the keys. When the response contains only a subset of keys, it includes a NextToken value. Use this value in a subsequent ListKeys request to get more keys. When you receive a response with no NextToken (or an empty or null value), that means there are no more keys to get.

    Cross-account use: This operation can't be used across different Amazon Web Services accounts.

    Related operations:

    " }, "ListTagsForResource":{ "name":"ListTagsForResource", @@ -279,7 +279,7 @@ {"shape":"ThrottlingException"}, {"shape":"InternalServerException"} ], - "documentation":"

    Lists the tags for an Amazon Web Services resource.

    This is a paginated operation, which means that each response might contain only a subset of all the tags. When the response contains only a subset of tags, it includes a NextToken value. Use this value in a subsequent ListTagsForResource request to get more tags. When you receive a response with no NextToken (or an empty or null value), that means there are no more tags to get.

    Cross-account use: This operation can't be used across different Amazon Web Services accounts.

    Related operations:

    " + "documentation":"

    Lists the tags for an Amazon Web Services resource.

    This is a paginated operation, which means that each response might contain only a subset of all the tags. When the response contains only a subset of tags, it includes a NextToken value. Use this value in a subsequent ListTagsForResource request to get more tags. When you receive a response with no NextToken (or an empty or null value), that means there are no more tags to get.

    Cross-account use: This operation can't be used across different Amazon Web Services accounts.

    Related operations:

    " }, "RestoreKey":{ "name":"RestoreKey", @@ -299,7 +299,7 @@ {"shape":"ThrottlingException"}, {"shape":"InternalServerException"} ], - "documentation":"

    Cancels a scheduled key deletion during the waiting period. Use this operation to restore a Key that is scheduled for deletion.

    During the waiting period, the KeyState is DELETE_PENDING and deletePendingTimestamp contains the date and time after which the Key will be deleted. After Key is restored, the KeyState is CREATE_COMPLETE, and the value for deletePendingTimestamp is removed.

    Cross-account use: This operation can't be used across different Amazon Web Services accounts.

    Related operations:

    " + "documentation":"

    Cancels a scheduled key deletion during the waiting period. Use this operation to restore a Key that is scheduled for deletion.

    During the waiting period, the KeyState is DELETE_PENDING and deletePendingTimestamp contains the date and time after which the Key will be deleted. After Key is restored, the KeyState is CREATE_COMPLETE, and the value for deletePendingTimestamp is removed.

    Cross-account use: This operation can't be used across different Amazon Web Services accounts.

    Related operations:

    " }, "StartKeyUsage":{ "name":"StartKeyUsage", @@ -319,7 +319,7 @@ {"shape":"ThrottlingException"}, {"shape":"InternalServerException"} ], - "documentation":"

    Enables an Amazon Web Services Payment Cryptography key, which makes it active for cryptographic operations within Amazon Web Services Payment Cryptography

    Cross-account use: This operation can't be used across different Amazon Web Services accounts.

    Related operations:

    " + "documentation":"

    Enables an Amazon Web Services Payment Cryptography key, which makes it active for cryptographic operations within Amazon Web Services Payment Cryptography

    Cross-account use: This operation can't be used across different Amazon Web Services accounts.

    Related operations:

    " }, "StopKeyUsage":{ "name":"StopKeyUsage", @@ -339,7 +339,7 @@ {"shape":"ThrottlingException"}, {"shape":"InternalServerException"} ], - "documentation":"

    Disables an Amazon Web Services Payment Cryptography key, which makes it inactive within Amazon Web Services Payment Cryptography.

    You can use this operation instead of DeleteKey to deactivate a key. You can enable the key in the future by calling StartKeyUsage.

    Cross-account use: This operation can't be used across different Amazon Web Services accounts.

    Related operations:

    " + "documentation":"

    Disables an Amazon Web Services Payment Cryptography key, which makes it inactive within Amazon Web Services Payment Cryptography.

    You can use this operation instead of DeleteKey to deactivate a key. You can enable the key in the future by calling StartKeyUsage.

    Cross-account use: This operation can't be used across different Amazon Web Services accounts.

    Related operations:

    " }, "TagResource":{ "name":"TagResource", @@ -359,7 +359,7 @@ {"shape":"ThrottlingException"}, {"shape":"InternalServerException"} ], - "documentation":"

    Adds or edits tags on an Amazon Web Services Payment Cryptography key.

    Tagging or untagging an Amazon Web Services Payment Cryptography key can allow or deny permission to the key.

    Each tag consists of a tag key and a tag value, both of which are case-sensitive strings. The tag value can be an empty (null) string. To add a tag, specify a new tag key and a tag value. To edit a tag, specify an existing tag key and a new tag value. You can also add tags to an Amazon Web Services Payment Cryptography key when you create it with CreateKey.

    Cross-account use: This operation can't be used across different Amazon Web Services accounts.

    Related operations:

    " + "documentation":"

    Adds or edits tags on an Amazon Web Services Payment Cryptography key.

    Tagging or untagging an Amazon Web Services Payment Cryptography key can allow or deny permission to the key.

    Each tag consists of a tag key and a tag value, both of which are case-sensitive strings. The tag value can be an empty (null) string. To add a tag, specify a new tag key and a tag value. To edit a tag, specify an existing tag key and a new tag value. You can also add tags to an Amazon Web Services Payment Cryptography key when you create it with CreateKey.

    Cross-account use: This operation can't be used across different Amazon Web Services accounts.

    Related operations:

    " }, "UntagResource":{ "name":"UntagResource", @@ -378,7 +378,7 @@ {"shape":"ThrottlingException"}, {"shape":"InternalServerException"} ], - "documentation":"

    Deletes a tag from an Amazon Web Services Payment Cryptography key.

    Tagging or untagging an Amazon Web Services Payment Cryptography key can allow or deny permission to the key.

    Cross-account use: This operation can't be used across different Amazon Web Services accounts.

    Related operations:

    " + "documentation":"

    Deletes a tag from an Amazon Web Services Payment Cryptography key.

    Tagging or untagging an Amazon Web Services Payment Cryptography key can allow or deny permission to the key.

    Cross-account use: This operation can't be used across different Amazon Web Services accounts.

    Related operations:

    " }, "UpdateAlias":{ "name":"UpdateAlias", @@ -397,7 +397,7 @@ {"shape":"ThrottlingException"}, {"shape":"InternalServerException"} ], - "documentation":"

    Associates an existing Amazon Web Services Payment Cryptography alias with a different key. Each alias is associated with only one Amazon Web Services Payment Cryptography key at a time, although a key can have multiple aliases. The alias and the Amazon Web Services Payment Cryptography key must be in the same Amazon Web Services account and Amazon Web Services Region

    Cross-account use: This operation can't be used across different Amazon Web Services accounts.

    Related operations:

    " + "documentation":"

    Associates an existing Amazon Web Services Payment Cryptography alias with a different key. Each alias is associated with only one Amazon Web Services Payment Cryptography key at a time, although a key can have multiple aliases. The alias and the Amazon Web Services Payment Cryptography key must be in the same Amazon Web Services account and Amazon Web Services Region

    Cross-account use: This operation can't be used across different Amazon Web Services accounts.

    Related operations:

    " } }, "shapes":{ @@ -428,7 +428,7 @@ "type":"string", "max":256, "min":7, - "pattern":"^alias/[a-zA-Z0-9/_-]+$" + "pattern":"alias/[a-zA-Z0-9/_-]+" }, "Aliases":{ "type":"list", @@ -442,7 +442,7 @@ "type":"string", "max":32768, "min":1, - "pattern":"^[^\\[;\\]<>]+$", + "pattern":"[^\\[;\\]<>]+", "sensitive":true }, "ConflictException":{ @@ -480,18 +480,10 @@ "CreateKeyInput":{ "type":"structure", "required":[ - "Exportable", - "KeyAttributes" + "KeyAttributes", + "Exportable" ], "members":{ - "Enabled":{ - "shape":"Boolean", - "documentation":"

    Specifies whether to enable the key. If the key is enabled, it is activated for use within the service. If the key is not enabled, then it is created but not activated. The default value is enabled.

    " - }, - "Exportable":{ - "shape":"Boolean", - "documentation":"

    Specifies whether the key is exportable from the service.

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

    The role of the key, the algorithm it supports, and the cryptographic operations allowed with the key. This data is immutable after the key is created.

    " @@ -500,9 +492,17 @@ "shape":"KeyCheckValueAlgorithm", "documentation":"

    The algorithm that Amazon Web Services Payment Cryptography uses to calculate the key check value (KCV). It is used to validate the key integrity.

    For TDES keys, the KCV is computed by encrypting 8 bytes, each with value of zero, with the key to be checked and retaining the 3 highest order bytes of the encrypted result. For AES keys, the KCV is computed using a CMAC algorithm where the input data is 16 bytes of zero and retaining the 3 highest order bytes of the encrypted result.

    " }, + "Exportable":{ + "shape":"Boolean", + "documentation":"

    Specifies whether the key is exportable from the service.

    " + }, + "Enabled":{ + "shape":"Boolean", + "documentation":"

    Specifies whether to enable the key. If the key is enabled, it is activated for use within the service. If the key is not enabled, then it is created but not activated. The default value is enabled.

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

    Assigns one or more tags to the Amazon Web Services Payment Cryptography key. Use this parameter to tag a key when it is created. To tag an existing Amazon Web Services Payment Cryptography key, use the TagResource operation.

    Each tag consists of a tag key and a tag value. Both the tag key and the tag value are required, but the tag value can be an empty (null) string. You can't have more than one tag on an Amazon Web Services Payment Cryptography key with the same tag key.

    Don't include personal, confidential or sensitive information in this field. This field may be displayed in plaintext in CloudTrail logs and other output.

    Tagging or untagging an Amazon Web Services Payment Cryptography key can allow or deny permission to the key.

    " + "documentation":"

    Assigns one or more tags to the Amazon Web Services Payment Cryptography key. Use this parameter to tag a key when it is created. To tag an existing Amazon Web Services Payment Cryptography key, use the TagResource operation.

    Each tag consists of a tag key and a tag value. Both the tag key and the tag value are required, but the tag value can be an empty (null) string. You can't have more than one tag on an Amazon Web Services Payment Cryptography key with the same tag key.

    Don't include personal, confidential or sensitive information in this field. This field may be displayed in plaintext in CloudTrail logs and other output.

    Tagging or untagging an Amazon Web Services Payment Cryptography key can allow or deny permission to the key.

    " } } }, @@ -535,13 +535,13 @@ "type":"structure", "required":["KeyIdentifier"], "members":{ - "DeleteKeyInDays":{ - "shape":"DeleteKeyInputDeleteKeyInDaysInteger", - "documentation":"

    The waiting period for key deletion. The default value is seven days.

    " - }, "KeyIdentifier":{ "shape":"KeyArnOrKeyAliasType", "documentation":"

    The KeyARN of the key that is scheduled for deletion.

    " + }, + "DeleteKeyInDays":{ + "shape":"DeleteKeyInputDeleteKeyInDaysInteger", + "documentation":"

    The waiting period for key deletion. The default value is seven days.

    " } } }, @@ -611,31 +611,27 @@ "ExportKeyInput":{ "type":"structure", "required":[ - "ExportKeyIdentifier", - "KeyMaterial" + "KeyMaterial", + "ExportKeyIdentifier" ], "members":{ - "ExportAttributes":{ - "shape":"ExportAttributes", - "documentation":"

    The attributes for IPEK generation during export.

    " + "KeyMaterial":{ + "shape":"ExportKeyMaterial", + "documentation":"

    The key block format type, for example, TR-34 or TR-31, to use during key material export.

    " }, "ExportKeyIdentifier":{ "shape":"KeyArnOrKeyAliasType", "documentation":"

    The KeyARN of the key under export from Amazon Web Services Payment Cryptography.

    " }, - "KeyMaterial":{ - "shape":"ExportKeyMaterial", - "documentation":"

    The key block format type, for example, TR-34 or TR-31, to use during key material export.

    " + "ExportAttributes":{ + "shape":"ExportAttributes", + "documentation":"

    The attributes for IPEK generation during export.

    " } } }, "ExportKeyMaterial":{ "type":"structure", "members":{ - "KeyCryptogram":{ - "shape":"ExportKeyCryptogram", - "documentation":"

    Parameter information for key material export using asymmetric RSA wrap and unwrap key exchange method

    " - }, "Tr31KeyBlock":{ "shape":"ExportTr31KeyBlock", "documentation":"

    Parameter information for key material export using symmetric TR-31 key exchange method.

    " @@ -643,6 +639,10 @@ "Tr34KeyBlock":{ "shape":"ExportTr34KeyBlock", "documentation":"

    Parameter information for key material export using the asymmetric TR-34 key exchange method.

    " + }, + "KeyCryptogram":{ + "shape":"ExportKeyCryptogram", + "documentation":"

    Parameter information for key material export using asymmetric RSA wrap and unwrap key exchange method

    " } }, "documentation":"

    Parameter information for key material export from Amazon Web Services Payment Cryptography using TR-31 or TR-34 or RSA wrap and unwrap key exchange method.

    ", @@ -659,7 +659,7 @@ }, "ExportTokenId":{ "type":"string", - "pattern":"^export-token-[0-9a-zA-Z]{16,64}$" + "pattern":"export-token-[0-9a-zA-Z]{16,64}" }, "ExportTr31KeyBlock":{ "type":"structure", @@ -668,6 +668,10 @@ "WrappingKeyIdentifier":{ "shape":"KeyArnOrKeyAliasType", "documentation":"

    The KeyARN of the the wrapping key. This key encrypts or wraps the key under export for TR-31 key block generation.

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

    Optional metadata for export associated with the key material. This data is signed but transmitted in clear text.

    " } }, "documentation":"

    Parameter information for key material export using symmetric TR-31 key exchange method.

    " @@ -676,18 +680,22 @@ "type":"structure", "required":[ "CertificateAuthorityPublicKeyIdentifier", + "WrappingKeyCertificate", "ExportToken", - "KeyBlockFormat", - "WrappingKeyCertificate" + "KeyBlockFormat" ], "members":{ "CertificateAuthorityPublicKeyIdentifier":{ "shape":"KeyArnOrKeyAliasType", "documentation":"

    The KeyARN of the certificate chain that signs the wrapping key certificate during TR-34 key export.

    " }, + "WrappingKeyCertificate":{ + "shape":"CertificateType", + "documentation":"

    The KeyARN of the wrapping key certificate. Amazon Web Services Payment Cryptography uses this certificate to wrap the key under export.

    " + }, "ExportToken":{ "shape":"ExportTokenId", - "documentation":"

    The export token to initiate key export from Amazon Web Services Payment Cryptography. It also contains the signing key certificate that will sign the wrapped key during TR-34 key block generation. Call GetParametersForExport to receive an export token. It expires after 7 days. You can use the same export token to export multiple keys from the same service account.

    " + "documentation":"

    The export token to initiate key export from Amazon Web Services Payment Cryptography. It also contains the signing key certificate that will sign the wrapped key during TR-34 key block generation. Call GetParametersForExport to receive an export token. It expires after 7 days. You can use the same export token to export multiple keys from the same service account.

    " }, "KeyBlockFormat":{ "shape":"Tr34KeyBlockFormat", @@ -697,9 +705,9 @@ "shape":"HexLength16", "documentation":"

    A random number value that is unique to the TR-34 key block generated using 2 pass. The operation will fail, if a random nonce value is not provided for a TR-34 key block generated using 2 pass.

    " }, - "WrappingKeyCertificate":{ - "shape":"CertificateType", - "documentation":"

    The KeyARN of the wrapping key certificate. Amazon Web Services Payment Cryptography uses this certificate to wrap the key under export.

    " + "KeyBlockHeaders":{ + "shape":"KeyBlockHeaders", + "documentation":"

    Optional metadata for export associated with the key material. This data is signed but transmitted in clear text.

    " } }, "documentation":"

    Parameter information for key material export using the asymmetric TR-34 key exchange method.

    " @@ -764,25 +772,13 @@ "GetParametersForExportOutput":{ "type":"structure", "required":[ - "ExportToken", - "ParametersValidUntilTimestamp", - "SigningKeyAlgorithm", "SigningKeyCertificate", - "SigningKeyCertificateChain" + "SigningKeyCertificateChain", + "SigningKeyAlgorithm", + "ExportToken", + "ParametersValidUntilTimestamp" ], "members":{ - "ExportToken":{ - "shape":"ExportTokenId", - "documentation":"

    The export token to initiate key export from Amazon Web Services Payment Cryptography. The export token expires after 7 days. You can use the same export token to export multiple keys from the same service account.

    " - }, - "ParametersValidUntilTimestamp":{ - "shape":"Timestamp", - "documentation":"

    The validity period of the export token.

    " - }, - "SigningKeyAlgorithm":{ - "shape":"KeyAlgorithm", - "documentation":"

    The algorithm of the signing key certificate for use in TR-34 key block generation. RSA_2048 is the only signing key algorithm allowed.

    " - }, "SigningKeyCertificate":{ "shape":"CertificateType", "documentation":"

    The signing key certificate in PEM format (base64 encoded) of the public key for signature within the TR-34 key block. The certificate expires after 7 days.

    " @@ -790,6 +786,18 @@ "SigningKeyCertificateChain":{ "shape":"CertificateType", "documentation":"

    The root certificate authority (CA) that signed the signing key certificate in PEM format (base64 encoded).

    " + }, + "SigningKeyAlgorithm":{ + "shape":"KeyAlgorithm", + "documentation":"

    The algorithm of the signing key certificate for use in TR-34 key block generation. RSA_2048 is the only signing key algorithm allowed.

    " + }, + "ExportToken":{ + "shape":"ExportTokenId", + "documentation":"

    The export token to initiate key export from Amazon Web Services Payment Cryptography. The export token expires after 7 days. You can use the same export token to export multiple keys from the same service account.

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

    The validity period of the export token.

    " } } }, @@ -813,25 +821,13 @@ "GetParametersForImportOutput":{ "type":"structure", "required":[ - "ImportToken", - "ParametersValidUntilTimestamp", - "WrappingKeyAlgorithm", "WrappingKeyCertificate", - "WrappingKeyCertificateChain" + "WrappingKeyCertificateChain", + "WrappingKeyAlgorithm", + "ImportToken", + "ParametersValidUntilTimestamp" ], "members":{ - "ImportToken":{ - "shape":"ImportTokenId", - "documentation":"

    The import token to initiate key import into Amazon Web Services Payment Cryptography. The import token expires after 7 days. You can use the same import token to import multiple keys to the same service account.

    " - }, - "ParametersValidUntilTimestamp":{ - "shape":"Timestamp", - "documentation":"

    The validity period of the import token.

    " - }, - "WrappingKeyAlgorithm":{ - "shape":"KeyAlgorithm", - "documentation":"

    The algorithm of the wrapping key for use within TR-34 WrappedKeyBlock or RSA WrappedKeyCryptogram.

    " - }, "WrappingKeyCertificate":{ "shape":"CertificateType", "documentation":"

    The wrapping key certificate in PEM format (base64 encoded) of the wrapping key for use within the TR-34 key block. The certificate expires in 7 days.

    " @@ -839,6 +835,18 @@ "WrappingKeyCertificateChain":{ "shape":"CertificateType", "documentation":"

    The Amazon Web Services Payment Cryptography root certificate authority (CA) that signed the wrapping key certificate in PEM format (base64 encoded).

    " + }, + "WrappingKeyAlgorithm":{ + "shape":"KeyAlgorithm", + "documentation":"

    The algorithm of the wrapping key for use within TR-34 WrappedKeyBlock or RSA WrappedKeyCryptogram.

    " + }, + "ImportToken":{ + "shape":"ImportTokenId", + "documentation":"

    The import token to initiate key import into Amazon Web Services Payment Cryptography. The import token expires after 7 days. You can use the same import token to import multiple keys to the same service account.

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

    The validity period of the import token.

    " } } }, @@ -873,36 +881,36 @@ "type":"string", "max":16, "min":16, - "pattern":"^[0-9A-F]+$" + "pattern":"[0-9A-F]+" }, "HexLength20Or24":{ "type":"string", "max":24, "min":20, - "pattern":"^[0-9A-F]{20}$|^[0-9A-F]{24}$" + "pattern":"[0-9A-F]{20}$|^[0-9A-F]{24}" }, "ImportKeyCryptogram":{ "type":"structure", "required":[ - "Exportable", - "ImportToken", "KeyAttributes", - "WrappedKeyCryptogram" + "Exportable", + "WrappedKeyCryptogram", + "ImportToken" ], "members":{ + "KeyAttributes":{"shape":"KeyAttributes"}, "Exportable":{ "shape":"Boolean", "documentation":"

    Specifies whether the key is exportable from the service.

    " }, - "ImportToken":{ - "shape":"ImportTokenId", - "documentation":"

    The import token that initiates key import using the asymmetric RSA wrap and unwrap key exchange method into AWS Payment Cryptography. It expires after 7 days. You can use the same import token to import multiple keys to the same service account.

    " - }, - "KeyAttributes":{"shape":"KeyAttributes"}, "WrappedKeyCryptogram":{ "shape":"WrappedKeyCryptogram", "documentation":"

    The RSA wrapped key cryptogram under import.

    " }, + "ImportToken":{ + "shape":"ImportTokenId", + "documentation":"

    The import token that initiates key import using the asymmetric RSA wrap and unwrap key exchange method into AWS Payment Cryptography. It expires after 7 days. You can use the same import token to import multiple keys to the same service account.

    " + }, "WrappingSpec":{ "shape":"WrappingKeySpec", "documentation":"

    The wrapping spec for the wrapped key cryptogram.

    " @@ -914,35 +922,35 @@ "type":"structure", "required":["KeyMaterial"], "members":{ - "Enabled":{ - "shape":"Boolean", - "documentation":"

    Specifies whether import key is enabled.

    " + "KeyMaterial":{ + "shape":"ImportKeyMaterial", + "documentation":"

    The key or public key certificate type to use during key material import, for example TR-34 or RootCertificatePublicKey.

    " }, "KeyCheckValueAlgorithm":{ "shape":"KeyCheckValueAlgorithm", "documentation":"

    The algorithm that Amazon Web Services Payment Cryptography uses to calculate the key check value (KCV). It is used to validate the key integrity.

    For TDES keys, the KCV is computed by encrypting 8 bytes, each with value of zero, with the key to be checked and retaining the 3 highest order bytes of the encrypted result. For AES keys, the KCV is computed using a CMAC algorithm where the input data is 16 bytes of zero and retaining the 3 highest order bytes of the encrypted result.

    " }, - "KeyMaterial":{ - "shape":"ImportKeyMaterial", - "documentation":"

    The key or public key certificate type to use during key material import, for example TR-34 or RootCertificatePublicKey.

    " + "Enabled":{ + "shape":"Boolean", + "documentation":"

    Specifies whether import key is enabled.

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

    Assigns one or more tags to the Amazon Web Services Payment Cryptography key. Use this parameter to tag a key when it is imported. To tag an existing Amazon Web Services Payment Cryptography key, use the TagResource operation.

    Each tag consists of a tag key and a tag value. Both the tag key and the tag value are required, but the tag value can be an empty (null) string. You can't have more than one tag on an Amazon Web Services Payment Cryptography key with the same tag key. If you specify an existing tag key with a different tag value, Amazon Web Services Payment Cryptography replaces the current tag value with the specified one.

    Don't include personal, confidential or sensitive information in this field. This field may be displayed in plaintext in CloudTrail logs and other output.

    Tagging or untagging an Amazon Web Services Payment Cryptography key can allow or deny permission to the key.

    " + "documentation":"

    Assigns one or more tags to the Amazon Web Services Payment Cryptography key. Use this parameter to tag a key when it is imported. To tag an existing Amazon Web Services Payment Cryptography key, use the TagResource operation.

    Each tag consists of a tag key and a tag value. Both the tag key and the tag value are required, but the tag value can be an empty (null) string. You can't have more than one tag on an Amazon Web Services Payment Cryptography key with the same tag key. If you specify an existing tag key with a different tag value, Amazon Web Services Payment Cryptography replaces the current tag value with the specified one.

    Don't include personal, confidential or sensitive information in this field. This field may be displayed in plaintext in CloudTrail logs and other output.

    Tagging or untagging an Amazon Web Services Payment Cryptography key can allow or deny permission to the key.

    " } } }, "ImportKeyMaterial":{ "type":"structure", "members":{ - "KeyCryptogram":{ - "shape":"ImportKeyCryptogram", - "documentation":"

    Parameter information for key material import using asymmetric RSA wrap and unwrap key exchange method.

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

    Parameter information for root public key certificate import.

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

    Parameter information for trusted public key certificate import.

    " + }, "Tr31KeyBlock":{ "shape":"ImportTr31KeyBlock", "documentation":"

    Parameter information for key material import using symmetric TR-31 key exchange method.

    " @@ -951,9 +959,9 @@ "shape":"ImportTr34KeyBlock", "documentation":"

    Parameter information for key material import using the asymmetric TR-34 key exchange method.

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

    Parameter information for trusted public key certificate import.

    " + "KeyCryptogram":{ + "shape":"ImportKeyCryptogram", + "documentation":"

    Parameter information for key material import using asymmetric RSA wrap and unwrap key exchange method.

    " } }, "documentation":"

    Parameter information for key material import into Amazon Web Services Payment Cryptography using TR-31 or TR-34 or RSA wrap and unwrap key exchange method.

    ", @@ -971,22 +979,22 @@ }, "ImportTokenId":{ "type":"string", - "pattern":"^import-token-[0-9a-zA-Z]{16,64}$" + "pattern":"import-token-[0-9a-zA-Z]{16,64}" }, "ImportTr31KeyBlock":{ "type":"structure", "required":[ - "WrappedKeyBlock", - "WrappingKeyIdentifier" + "WrappingKeyIdentifier", + "WrappedKeyBlock" ], "members":{ - "WrappedKeyBlock":{ - "shape":"Tr31WrappedKeyBlock", - "documentation":"

    The TR-31 wrapped key block to import.

    " - }, "WrappingKeyIdentifier":{ "shape":"KeyArnOrKeyAliasType", "documentation":"

    The KeyARN of the key that will decrypt or unwrap a TR-31 key block during import.

    " + }, + "WrappedKeyBlock":{ + "shape":"Tr31WrappedKeyBlock", + "documentation":"

    The TR-31 wrapped key block to import.

    " } }, "documentation":"

    Parameter information for key material import using symmetric TR-31 key exchange method.

    " @@ -995,20 +1003,28 @@ "type":"structure", "required":[ "CertificateAuthorityPublicKeyIdentifier", - "ImportToken", - "KeyBlockFormat", "SigningKeyCertificate", - "WrappedKeyBlock" + "ImportToken", + "WrappedKeyBlock", + "KeyBlockFormat" ], "members":{ "CertificateAuthorityPublicKeyIdentifier":{ "shape":"KeyArnOrKeyAliasType", "documentation":"

    The KeyARN of the certificate chain that signs the signing key certificate during TR-34 key import.

    " }, + "SigningKeyCertificate":{ + "shape":"CertificateType", + "documentation":"

    The public key component in PEM certificate format of the private key that signs the KDH TR-34 WrappedKeyBlock.

    " + }, "ImportToken":{ "shape":"ImportTokenId", "documentation":"

    The import token that initiates key import using the asymmetric TR-34 key exchange method into Amazon Web Services Payment Cryptography. It expires after 7 days. You can use the same import token to import multiple keys to the same service account.

    " }, + "WrappedKeyBlock":{ + "shape":"Tr34WrappedKeyBlock", + "documentation":"

    The TR-34 wrapped key block to import.

    " + }, "KeyBlockFormat":{ "shape":"Tr34KeyBlockFormat", "documentation":"

    The key block format to use during key import. The only value allowed is X9_TR34_2012.

    " @@ -1016,14 +1032,6 @@ "RandomNonce":{ "shape":"HexLength16", "documentation":"

    A random number value that is unique to the TR-34 key block generated using 2 pass. The operation will fail, if a random nonce value is not provided for a TR-34 key block generated using 2 pass.

    " - }, - "SigningKeyCertificate":{ - "shape":"CertificateType", - "documentation":"

    The public key component in PEM certificate format of the private key that signs the KDH TR-34 WrappedKeyBlock.

    " - }, - "WrappedKeyBlock":{ - "shape":"Tr34WrappedKeyBlock", - "documentation":"

    The TR-34 wrapped key block to import.

    " } }, "documentation":"

    Parameter information for key material import using the asymmetric TR-34 key exchange method.

    " @@ -1040,37 +1048,17 @@ "Key":{ "type":"structure", "required":[ - "CreateTimestamp", - "Enabled", - "Exportable", "KeyArn", "KeyAttributes", "KeyCheckValue", "KeyCheckValueAlgorithm", + "Enabled", + "Exportable", + "KeyState", "KeyOrigin", - "KeyState" + "CreateTimestamp" ], "members":{ - "CreateTimestamp":{ - "shape":"Timestamp", - "documentation":"

    The date and time when the key was created.

    " - }, - "DeletePendingTimestamp":{ - "shape":"Timestamp", - "documentation":"

    The date and time after which Amazon Web Services Payment Cryptography will delete the key. This value is present only when KeyState is DELETE_PENDING and the key is scheduled for deletion.

    " - }, - "DeleteTimestamp":{ - "shape":"Timestamp", - "documentation":"

    The date and time after which Amazon Web Services Payment Cryptography will delete the key. This value is present only when when the KeyState is DELETE_COMPLETE and the Amazon Web Services Payment Cryptography key is deleted.

    " - }, - "Enabled":{ - "shape":"Boolean", - "documentation":"

    Specifies whether the key is enabled.

    " - }, - "Exportable":{ - "shape":"Boolean", - "documentation":"

    Specifies whether the key is exportable. This data is immutable after the key is created.

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

    The Amazon Resource Name (ARN) of the key.

    " @@ -1087,14 +1075,26 @@ "shape":"KeyCheckValueAlgorithm", "documentation":"

    The algorithm that Amazon Web Services Payment Cryptography uses to calculate the key check value (KCV). It is used to validate the key integrity.

    For TDES keys, the KCV is computed by encrypting 8 bytes, each with value of zero, with the key to be checked and retaining the 3 highest order bytes of the encrypted result. For AES keys, the KCV is computed using a CMAC algorithm where the input data is 16 bytes of zero and retaining the 3 highest order bytes of the encrypted result.

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

    The source of the key material. For keys created within Amazon Web Services Payment Cryptography, the value is AWS_PAYMENT_CRYPTOGRAPHY. For keys imported into Amazon Web Services Payment Cryptography, the value is EXTERNAL.

    " + "Enabled":{ + "shape":"Boolean", + "documentation":"

    Specifies whether the key is enabled.

    " + }, + "Exportable":{ + "shape":"Boolean", + "documentation":"

    Specifies whether the key is exportable. This data is immutable after the key is created.

    " }, "KeyState":{ "shape":"KeyState", "documentation":"

    The state of key that is being created or deleted.

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

    The source of the key material. For keys created within Amazon Web Services Payment Cryptography, the value is AWS_PAYMENT_CRYPTOGRAPHY. For keys imported into Amazon Web Services Payment Cryptography, the value is EXTERNAL.

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

    The date and time when the key was created.

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

    The date and time after which Amazon Web Services Payment Cryptography will start using the key material for cryptographic operations.

    " @@ -1102,6 +1102,14 @@ "UsageStopTimestamp":{ "shape":"Timestamp", "documentation":"

    The date and time after which Amazon Web Services Payment Cryptography will stop using the key material for cryptographic operations.

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

    The date and time after which Amazon Web Services Payment Cryptography will delete the key. This value is present only when KeyState is DELETE_PENDING and the key is scheduled for deletion.

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

    The date and time after which Amazon Web Services Payment Cryptography will delete the key. This value is present only when when the KeyState is DELETE_COMPLETE and the Amazon Web Services Payment Cryptography key is deleted.

    " } }, "documentation":"

    Metadata about an Amazon Web Services Payment Cryptography key.

    " @@ -1123,47 +1131,66 @@ "type":"string", "max":150, "min":70, - "pattern":"^arn:aws:payment-cryptography:[a-z]{2}-[a-z]{1,16}-[0-9]+:[0-9]{12}:key/[0-9a-zA-Z]{16,64}$" + "pattern":"arn:aws:payment-cryptography:[a-z]{2}-[a-z]{1,16}-[0-9]+:[0-9]{12}:key/[0-9a-zA-Z]{16,64}" }, "KeyArnOrKeyAliasType":{ "type":"string", "max":322, "min":7, - "pattern":"^arn:aws:payment-cryptography:[a-z]{2}-[a-z]{1,16}-[0-9]+:[0-9]{12}:(key/[0-9a-zA-Z]{16,64}|alias/[a-zA-Z0-9/_-]+)$|^alias/[a-zA-Z0-9/_-]+$" + "pattern":"arn:aws:payment-cryptography:[a-z]{2}-[a-z]{1,16}-[0-9]+:[0-9]{12}:(key/[0-9a-zA-Z]{16,64}|alias/[a-zA-Z0-9/_-]+)$|^alias/[a-zA-Z0-9/_-]+" }, "KeyAttributes":{ "type":"structure", "required":[ - "KeyAlgorithm", + "KeyUsage", "KeyClass", - "KeyModesOfUse", - "KeyUsage" + "KeyAlgorithm", + "KeyModesOfUse" ], "members":{ - "KeyAlgorithm":{ - "shape":"KeyAlgorithm", - "documentation":"

    The key algorithm to be use during creation of an Amazon Web Services Payment Cryptography key.

    For symmetric keys, Amazon Web Services Payment Cryptography supports AES and TDES algorithms. For asymmetric keys, Amazon Web Services Payment Cryptography supports RSA and ECC_NIST algorithms.

    " + "KeyUsage":{ + "shape":"KeyUsage", + "documentation":"

    The cryptographic usage of an Amazon Web Services Payment Cryptography key as defined in section A.5.2 of the TR-31 spec.

    " }, "KeyClass":{ "shape":"KeyClass", "documentation":"

    The type of Amazon Web Services Payment Cryptography key to create, which determines the classification of the cryptographic method and whether Amazon Web Services Payment Cryptography key contains a symmetric key or an asymmetric key pair.

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

    The key algorithm to be use during creation of an Amazon Web Services Payment Cryptography key.

    For symmetric keys, Amazon Web Services Payment Cryptography supports AES and TDES algorithms. For asymmetric keys, Amazon Web Services Payment Cryptography supports RSA and ECC_NIST algorithms.

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

    The list of cryptographic operations that you can perform using the key.

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

    The cryptographic usage of an Amazon Web Services Payment Cryptography key as defined in section A.5.2 of the TR-31 spec.

    " } }, "documentation":"

    The role of the key, the algorithm it supports, and the cryptographic operations allowed with the key. This data is immutable after the key is created.

    " }, + "KeyBlockHeaders":{ + "type":"structure", + "members":{ + "KeyModesOfUse":{"shape":"KeyModesOfUse"}, + "KeyExportability":{ + "shape":"KeyExportability", + "documentation":"

    Specifies subsequent exportability of the key within the key block after it is received by the receiving party. It can be used to further restrict exportability of the key after export from Amazon Web Services Payment Cryptography.

    When set to EXPORTABLE, the key can be subsequently exported by the receiver under a KEK using TR-31 or TR-34 key block export only. When set to NON_EXPORTABLE, the key cannot be subsequently exported by the receiver. When set to SENSITIVE, the key can be exported by the receiver under a KEK using TR-31, TR-34, RSA wrap and unwrap cryptogram or using a symmetric cryptogram key export method. For further information refer to ANSI X9.143-2022.

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

    Parameter used to indicate the version of the key carried in the key block or indicate the value carried in the key block is a component of a key.

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

    Parameter used to indicate the type of optional data in key block headers. Refer to ANSI X9.143-2022 for information on allowed data type for optional blocks.

    Optional block character limit is 112 characters. For each optional block, 2 characters are reserved for optional block ID and 2 characters reserved for optional block length. More than one optional blocks can be included as long as the combined length does not increase 112 characters.

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

    Optional metadata for export associated with the key material. This data is signed but transmitted in clear text.

    " + }, "KeyCheckValue":{ "type":"string", "max":16, "min":4, - "pattern":"^[0-9a-fA-F]+$" + "pattern":"[0-9a-fA-F]+" }, "KeyCheckValueAlgorithm":{ "type":"string", @@ -1181,6 +1208,14 @@ "PUBLIC_KEY" ] }, + "KeyExportability":{ + "type":"string", + "enum":[ + "EXPORTABLE", + "NON_EXPORTABLE", + "SENSITIVE" + ] + }, "KeyMaterial":{ "type":"string", "max":16384, @@ -1200,41 +1235,41 @@ "KeyModesOfUse":{ "type":"structure", "members":{ + "Encrypt":{ + "shape":"PrimitiveBoolean", + "documentation":"

    Specifies whether an Amazon Web Services Payment Cryptography key can be used to encrypt data.

    " + }, "Decrypt":{ "shape":"PrimitiveBoolean", "documentation":"

    Specifies whether an Amazon Web Services Payment Cryptography key can be used to decrypt data.

    " }, - "DeriveKey":{ + "Wrap":{ "shape":"PrimitiveBoolean", - "documentation":"

    Specifies whether an Amazon Web Services Payment Cryptography key can be used to derive new keys.

    " + "documentation":"

    Specifies whether an Amazon Web Services Payment Cryptography key can be used to wrap other keys.

    " }, - "Encrypt":{ + "Unwrap":{ "shape":"PrimitiveBoolean", - "documentation":"

    Specifies whether an Amazon Web Services Payment Cryptography key can be used to encrypt data.

    " + "documentation":"

    Specifies whether an Amazon Web Services Payment Cryptography key can be used to unwrap other keys.

    " }, "Generate":{ "shape":"PrimitiveBoolean", "documentation":"

    Specifies whether an Amazon Web Services Payment Cryptography key can be used to generate and verify other card and PIN verification keys.

    " }, - "NoRestrictions":{ - "shape":"PrimitiveBoolean", - "documentation":"

    Specifies whether an Amazon Web Services Payment Cryptography key has no special restrictions other than the restrictions implied by KeyUsage.

    " - }, "Sign":{ "shape":"PrimitiveBoolean", "documentation":"

    Specifies whether an Amazon Web Services Payment Cryptography key can be used for signing.

    " }, - "Unwrap":{ - "shape":"PrimitiveBoolean", - "documentation":"

    Specifies whether an Amazon Web Services Payment Cryptography key can be used to unwrap other keys.

    " - }, "Verify":{ "shape":"PrimitiveBoolean", "documentation":"

    Specifies whether an Amazon Web Services Payment Cryptography key can be used to verify signatures.

    " }, - "Wrap":{ + "DeriveKey":{ "shape":"PrimitiveBoolean", - "documentation":"

    Specifies whether an Amazon Web Services Payment Cryptography key can be used to wrap other keys.

    " + "documentation":"

    Specifies whether an Amazon Web Services Payment Cryptography key can be used to derive new keys.

    " + }, + "NoRestrictions":{ + "shape":"PrimitiveBoolean", + "documentation":"

    Specifies whether an Amazon Web Services Payment Cryptography key has no special restrictions other than the restrictions implied by KeyUsage.

    " } }, "documentation":"

    The list of cryptographic operations that you can perform using the key. The modes of use are defined in section A.5.3 of the TR-31 spec.

    " @@ -1260,26 +1295,22 @@ "KeySummary":{ "type":"structure", "required":[ - "Enabled", - "Exportable", "KeyArn", + "KeyState", "KeyAttributes", "KeyCheckValue", - "KeyState" + "Exportable", + "Enabled" ], "members":{ - "Enabled":{ - "shape":"Boolean", - "documentation":"

    Specifies whether the key is enabled.

    " - }, - "Exportable":{ - "shape":"Boolean", - "documentation":"

    Specifies whether the key is exportable. This data is immutable after the key is created.

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

    The Amazon Resource Name (ARN) of the key.

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

    The state of an Amazon Web Services Payment Cryptography that is being created or deleted.

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

    The role of the key, the algorithm it supports, and the cryptographic operations allowed with the key. This data is immutable after the key is created.

    " @@ -1288,9 +1319,13 @@ "shape":"KeyCheckValue", "documentation":"

    The key check value (KCV) is used to check if all parties holding a given key have the same key or to detect that a key has changed.

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

    The state of an Amazon Web Services Payment Cryptography that is being created or deleted.

    " + "Exportable":{ + "shape":"Boolean", + "documentation":"

    Specifies whether the key is exportable. This data is immutable after the key is created.

    " + }, + "Enabled":{ + "shape":"Boolean", + "documentation":"

    Specifies whether the key is enabled.

    " } }, "documentation":"

    Metadata about an Amazon Web Services Payment Cryptography key.

    " @@ -1327,16 +1362,22 @@ "TR31_K2_TR34_ASYMMETRIC_KEY" ] }, + "KeyVersion":{ + "type":"string", + "max":2, + "min":2, + "pattern":"[0-9A-Z]{2}+" + }, "ListAliasesInput":{ "type":"structure", "members":{ - "MaxResults":{ - "shape":"MaxResults", - "documentation":"

    Use this parameter to specify the maximum number of items to return. When this value is present, Amazon Web Services Payment Cryptography does not return more than the specified number of items, but it might return fewer.

    This value is optional. If you include a value, it must be between 1 and 100, inclusive. If you do not include a value, it defaults to 50.

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

    Use this parameter in a subsequent request after you receive a response with truncated results. Set it to the value of NextToken from the truncated response you just received.

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

    Use this parameter to specify the maximum number of items to return. When this value is present, Amazon Web Services Payment Cryptography does not return more than the specified number of items, but it might return fewer.

    This value is optional. If you include a value, it must be between 1 and 100, inclusive. If you do not include a value, it defaults to 50.

    " } } }, @@ -1361,13 +1402,13 @@ "shape":"KeyState", "documentation":"

    The key state of the keys you want to list.

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

    Use this parameter to specify the maximum number of items to return. When this value is present, Amazon Web Services Payment Cryptography does not return more than the specified number of items, but it might return fewer.

    This value is optional. If you include a value, it must be between 1 and 100, inclusive. If you do not include a value, it defaults to 50.

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

    Use this parameter in a subsequent request after you receive a response with truncated results. Set it to the value of NextToken from the truncated response you just received.

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

    Use this parameter to specify the maximum number of items to return. When this value is present, Amazon Web Services Payment Cryptography does not return more than the specified number of items, but it might return fewer.

    This value is optional. If you include a value, it must be between 1 and 100, inclusive. If you do not include a value, it defaults to 50.

    " } } }, @@ -1389,17 +1430,17 @@ "type":"structure", "required":["ResourceArn"], "members":{ - "MaxResults":{ - "shape":"MaxResults", - "documentation":"

    Use this parameter to specify the maximum number of items to return. When this value is present, Amazon Web Services Payment Cryptography does not return more than the specified number of items, but it might return fewer.

    This value is optional. If you include a value, it must be between 1 and 100, inclusive. If you do not include a value, it defaults to 50.

    " + "ResourceArn":{ + "shape":"ResourceArn", + "documentation":"

    The KeyARN of the key whose tags you are getting.

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

    Use this parameter in a subsequent request after you receive a response with truncated results. Set it to the value of NextToken from the truncated response you just received.

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

    The KeyARN of the key whose tags you are getting.

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

    Use this parameter to specify the maximum number of items to return. When this value is present, Amazon Web Services Payment Cryptography does not return more than the specified number of items, but it might return fewer.

    This value is optional. If you include a value, it must be between 1 and 100, inclusive. If you do not include a value, it defaults to 50.

    " } } }, @@ -1407,13 +1448,13 @@ "type":"structure", "required":["Tags"], "members":{ - "NextToken":{ - "shape":"NextToken", - "documentation":"

    The token for the next set of results, or an empty or null value if there are no more results.

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

    The list of tags associated with a ResourceArn. Each tag will list the key-value pair contained within that tag.

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

    The token for the next set of results, or an empty or null value if there are no more results.

    " } } }, @@ -1428,12 +1469,31 @@ "max":8192, "min":1 }, + "OptionalBlockId":{ + "type":"string", + "max":2, + "min":2, + "pattern":"[0-9A-Z]{2}+", + "sensitive":true + }, + "OptionalBlockValue":{ + "type":"string", + "max":108, + "min":1, + "pattern":"[0-9A-Z]+", + "sensitive":true + }, + "OptionalBlocks":{ + "type":"map", + "key":{"shape":"OptionalBlockId"}, + "value":{"shape":"OptionalBlockValue"} + }, "PrimitiveBoolean":{"type":"boolean"}, "ResourceArn":{ "type":"string", "max":150, "min":70, - "pattern":"^arn:aws:payment-cryptography:[a-z]{2}-[a-z]{1,16}-[0-9]+:[0-9]{12}:key/[0-9a-zA-Z]{16,64}$" + "pattern":"arn:aws:payment-cryptography:[a-z]{2}-[a-z]{1,16}-[0-9]+:[0-9]{12}:key/[0-9a-zA-Z]{16,64}" }, "ResourceNotFoundException":{ "type":"structure", @@ -1581,7 +1641,7 @@ }, "Tags":{ "shape":"Tags", - "documentation":"

    One or more tags. Each tag consists of a tag key and a tag value. The tag value can be an empty (null) string. You can't have more than one tag on an Amazon Web Services Payment Cryptography key with the same tag key. If you specify an existing tag key with a different tag value, Amazon Web Services Payment Cryptography replaces the current tag value with the new one.

    Don't include personal, confidential or sensitive information in this field. This field may be displayed in plaintext in CloudTrail logs and other output.

    To use this parameter, you must have TagResource permission in an IAM policy.

    Don't include personal, confidential or sensitive information in this field. This field may be displayed in plaintext in CloudTrail logs and other output.

    " + "documentation":"

    One or more tags. Each tag consists of a tag key and a tag value. The tag value can be an empty (null) string. You can't have more than one tag on an Amazon Web Services Payment Cryptography key with the same tag key. If you specify an existing tag key with a different tag value, Amazon Web Services Payment Cryptography replaces the current tag value with the new one.

    Don't include personal, confidential or sensitive information in this field. This field may be displayed in plaintext in CloudTrail logs and other output.

    To use this parameter, you must have TagResource permission in an IAM policy.

    Don't include personal, confidential or sensitive information in this field. This field may be displayed in plaintext in CloudTrail logs and other output.

    " } } }, @@ -1614,7 +1674,7 @@ "type":"string", "max":9984, "min":56, - "pattern":"^[0-9A-Z]+$" + "pattern":"[0-9A-Z]+" }, "Tr34KeyBlockFormat":{ "type":"string", @@ -1624,20 +1684,16 @@ "type":"string", "max":4096, "min":2, - "pattern":"^[0-9A-F]+$" + "pattern":"[0-9A-F]+" }, "TrustedCertificatePublicKey":{ "type":"structure", "required":[ - "CertificateAuthorityPublicKeyIdentifier", "KeyAttributes", - "PublicKeyCertificate" + "PublicKeyCertificate", + "CertificateAuthorityPublicKeyIdentifier" ], "members":{ - "CertificateAuthorityPublicKeyIdentifier":{ - "shape":"KeyArnOrKeyAliasType", - "documentation":"

    The KeyARN of the root public key certificate or certificate chain that signs the trusted public key certificate import.

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

    The role of the key, the algorithm it supports, and the cryptographic operations allowed with the key. This data is immutable after a trusted public key is imported.

    " @@ -1645,6 +1701,10 @@ "PublicKeyCertificate":{ "shape":"CertificateType", "documentation":"

    Parameter information for trusted public key certificate import.

    " + }, + "CertificateAuthorityPublicKeyIdentifier":{ + "shape":"KeyArnOrKeyAliasType", + "documentation":"

    The KeyARN of the root public key certificate or certificate chain that signs the trusted public key certificate import.

    " } }, "documentation":"

    Parameter information for trusted public key certificate import.

    " @@ -1662,7 +1722,7 @@ }, "TagKeys":{ "shape":"TagKeys", - "documentation":"

    One or more tag keys. Don't include the tag values.

    If the Amazon Web Services Payment Cryptography key doesn't have the specified tag key, Amazon Web Services Payment Cryptography doesn't throw an exception or return a response. To confirm that the operation succeeded, use the ListTagsForResource operation.

    " + "documentation":"

    One or more tag keys. Don't include the tag values.

    If the Amazon Web Services Payment Cryptography key doesn't have the specified tag key, Amazon Web Services Payment Cryptography doesn't throw an exception or return a response. To confirm that the operation succeeded, use the ListTagsForResource operation.

    " } } }, @@ -1706,30 +1766,30 @@ "WrappedKey":{ "type":"structure", "required":[ - "KeyMaterial", + "WrappingKeyArn", "WrappedKeyMaterialFormat", - "WrappingKeyArn" + "KeyMaterial" ], "members":{ - "KeyCheckValue":{ - "shape":"KeyCheckValue", - "documentation":"

    The key check value (KCV) is used to check if all parties holding a given key have the same key or to detect that a key has changed.

    " + "WrappingKeyArn":{ + "shape":"KeyArn", + "documentation":"

    The KeyARN of the wrapped key.

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

    The algorithm that Amazon Web Services Payment Cryptography uses to calculate the key check value (KCV). It is used to validate the key integrity.

    For TDES keys, the KCV is computed by encrypting 8 bytes, each with value of zero, with the key to be checked and retaining the 3 highest order bytes of the encrypted result. For AES keys, the KCV is computed using a CMAC algorithm where the input data is 16 bytes of zero and retaining the 3 highest order bytes of the encrypted result.

    " + "WrappedKeyMaterialFormat":{ + "shape":"WrappedKeyMaterialFormat", + "documentation":"

    The key block format of a wrapped key.

    " }, "KeyMaterial":{ "shape":"KeyMaterial", "documentation":"

    Parameter information for generating a wrapped key using TR-31 or TR-34 skey exchange method.

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

    The key block format of a wrapped key.

    " + "KeyCheckValue":{ + "shape":"KeyCheckValue", + "documentation":"

    The key check value (KCV) is used to check if all parties holding a given key have the same key or to detect that a key has changed.

    " }, - "WrappingKeyArn":{ - "shape":"KeyArn", - "documentation":"

    The KeyARN of the wrapped key.

    " + "KeyCheckValueAlgorithm":{ + "shape":"KeyCheckValueAlgorithm", + "documentation":"

    The algorithm that Amazon Web Services Payment Cryptography uses to calculate the key check value (KCV). It is used to validate the key integrity.

    For TDES keys, the KCV is computed by encrypting 8 bytes, each with value of zero, with the key to be checked and retaining the 3 highest order bytes of the encrypted result. For AES keys, the KCV is computed using a CMAC algorithm where the input data is 16 bytes of zero and retaining the 3 highest order bytes of the encrypted result.

    " } }, "documentation":"

    Parameter information for generating a WrappedKeyBlock for key exchange.

    " @@ -1738,7 +1798,7 @@ "type":"string", "max":4096, "min":16, - "pattern":"^[0-9A-F]+$" + "pattern":"[0-9A-F]+" }, "WrappedKeyMaterialFormat":{ "type":"string", diff --git a/tools/code-generation/api-descriptions/redshift-serverless-2021-04-21.normal.json b/tools/code-generation/api-descriptions/redshift-serverless-2021-04-21.normal.json index fe9f0075dd1..8dc9f0454c7 100644 --- a/tools/code-generation/api-descriptions/redshift-serverless-2021-04-21.normal.json +++ b/tools/code-generation/api-descriptions/redshift-serverless-2021-04-21.normal.json @@ -1204,7 +1204,7 @@ }, "schedule":{ "shape":"Schedule", - "documentation":"

    The schedule for a one-time (at format) or recurring (cron format) scheduled action. Schedule invocations must be separated by at least one hour.

    Format of at expressions is \"at(yyyy-mm-ddThh:mm:ss)\". For example, \"at(2016-03-04T17:27:00)\".

    Format of cron expressions is \"cron(Minutes Hours Day-of-month Month Day-of-week Year)\". For example, \"cron(0 10 ? * MON *)\". For more information, see Cron Expressions in the Amazon CloudWatch Events User Guide.

    " + "documentation":"

    The schedule for a one-time (at timestamp format) or recurring (cron format) scheduled action. Schedule invocations must be separated by at least one hour. Times are in UTC.

    • Format of at timestamp is yyyy-mm-ddThh:mm:ss. For example, 2016-03-04T17:27:00.

    • Format of cron expression is (Minutes Hours Day-of-month Month Day-of-week Year). For example, \"(0 10 ? * MON *)\". For more information, see Cron Expressions in the Amazon CloudWatch Events User Guide.

    " }, "scheduledActionDescription":{ "shape":"String", @@ -2878,11 +2878,11 @@ "members":{ "at":{ "shape":"Timestamp", - "documentation":"

    The timestamp of when Amazon Redshift Serverless should run the scheduled action. Format of at expressions is \"at(yyyy-mm-ddThh:mm:ss)\". For example, \"at(2016-03-04T17:27:00)\".

    " + "documentation":"

    The timestamp of when Amazon Redshift Serverless should run the scheduled action. Timestamp is in UTC. Format of at expression is yyyy-mm-ddThh:mm:ss. For example, 2016-03-04T17:27:00.

    " }, "cron":{ "shape":"String", - "documentation":"

    The cron expression to use to schedule a recurring scheduled action. Schedule invocations must be separated by at least one hour.

    Format of cron expressions is \"cron(Minutes Hours Day-of-month Month Day-of-week Year)\". For example, \"cron(0 10 ? * MON *)\". For more information, see Cron Expressions in the Amazon CloudWatch Events User Guide.

    " + "documentation":"

    The cron expression to use to schedule a recurring scheduled action. Schedule invocations must be separated by at least one hour. Times are in UTC.

    Format of cron expressions is (Minutes Hours Day-of-month Month Day-of-week Year). For example, \"(0 10 ? * MON *)\". For more information, see Cron Expressions in the Amazon CloudWatch Events User Guide.

    " } }, "documentation":"

    The schedule of when Amazon Redshift Serverless should run the scheduled action.

    ", @@ -2915,7 +2915,7 @@ }, "schedule":{ "shape":"Schedule", - "documentation":"

    The schedule for a one-time (at format) or recurring (cron format) scheduled action. Schedule invocations must be separated by at least one hour.

    Format of at expressions is \"at(yyyy-mm-ddThh:mm:ss)\". For example, \"at(2016-03-04T17:27:00)\".

    Format of cron expressions is \"cron(Minutes Hours Day-of-month Month Day-of-week Year)\". For example, \"cron(0 10 ? * MON *)\". For more information, see Cron Expressions in the Amazon CloudWatch Events User Guide.

    " + "documentation":"

    The schedule for a one-time (at timestamp format) or recurring (cron format) scheduled action. Schedule invocations must be separated by at least one hour. Times are in UTC.

    • Format of at timestamp is yyyy-mm-ddThh:mm:ss. For example, 2016-03-04T17:27:00.

    • Format of cron expression is (Minutes Hours Day-of-month Month Day-of-week Year). For example, \"(0 10 ? * MON *)\". For more information, see Cron Expressions in the Amazon CloudWatch Events User Guide.

    " }, "scheduledActionDescription":{ "shape":"String", @@ -3451,7 +3451,7 @@ }, "schedule":{ "shape":"Schedule", - "documentation":"

    The schedule for a one-time (at format) or recurring (cron format) scheduled action. Schedule invocations must be separated by at least one hour.

    Format of at expressions is \"at(yyyy-mm-ddThh:mm:ss)\". For example, \"at(2016-03-04T17:27:00)\".

    Format of cron expressions is \"cron(Minutes Hours Day-of-month Month Day-of-week Year)\". For example, \"cron(0 10 ? * MON *)\". For more information, see Cron Expressions in the Amazon CloudWatch Events User Guide.

    " + "documentation":"

    The schedule for a one-time (at timestamp format) or recurring (cron format) scheduled action. Schedule invocations must be separated by at least one hour. Times are in UTC.

    • Format of at timestamp is yyyy-mm-ddThh:mm:ss. For example, 2016-03-04T17:27:00.

    • Format of cron expression is (Minutes Hours Day-of-month Month Day-of-week Year). For example, \"(0 10 ? * MON *)\". For more information, see Cron Expressions in the Amazon CloudWatch Events User Guide.

    " }, "scheduledActionDescription":{ "shape":"String", diff --git a/tools/code-generation/api-descriptions/route53profiles-2018-05-10.normal.json b/tools/code-generation/api-descriptions/route53profiles-2018-05-10.normal.json new file mode 100644 index 00000000000..17b8f176401 --- /dev/null +++ b/tools/code-generation/api-descriptions/route53profiles-2018-05-10.normal.json @@ -0,0 +1,1157 @@ +{ + "version":"2.0", + "metadata":{ + "apiVersion":"2018-05-10", + "endpointPrefix":"route53profiles", + "jsonVersion":"1.1", + "protocol":"rest-json", + "serviceFullName":"Route 53 Profiles", + "serviceId":"Route53Profiles", + "signatureVersion":"v4", + "signingName":"route53profiles", + "uid":"route53profiles-2018-05-10" + }, + "operations":{ + "AssociateProfile":{ + "name":"AssociateProfile", + "http":{ + "method":"POST", + "requestUri":"/profileassociation", + "responseCode":200 + }, + "input":{"shape":"AssociateProfileRequest"}, + "output":{"shape":"AssociateProfileResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"ResourceExistsException"}, + {"shape":"LimitExceededException"}, + {"shape":"InvalidParameterException"}, + {"shape":"ThrottlingException"}, + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ConflictException"} + ], + "documentation":"

    Associates a Route 53 Profiles profile with a VPC. A VPC can have only one Profile associated with it, but a Profile can be associated with up to 5000 VPCs.

    " + }, + "AssociateResourceToProfile":{ + "name":"AssociateResourceToProfile", + "http":{ + "method":"POST", + "requestUri":"/profileresourceassociation", + "responseCode":200 + }, + "input":{"shape":"AssociateResourceToProfileRequest"}, + "output":{"shape":"AssociateResourceToProfileResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"LimitExceededException"}, + {"shape":"InternalServiceErrorException"}, + {"shape":"InvalidParameterException"}, + {"shape":"ThrottlingException"}, + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ConflictException"} + ], + "documentation":"

    Associates a DNS reource configuration to a Route 53 Profile.

    " + }, + "CreateProfile":{ + "name":"CreateProfile", + "http":{ + "method":"POST", + "requestUri":"/profile", + "responseCode":200 + }, + "input":{"shape":"CreateProfileRequest"}, + "output":{"shape":"CreateProfileResponse"}, + "errors":[ + {"shape":"LimitExceededException"}, + {"shape":"InvalidParameterException"}, + {"shape":"ThrottlingException"}, + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"} + ], + "documentation":"

    Creates an empty Route 53 Profile.

    " + }, + "DeleteProfile":{ + "name":"DeleteProfile", + "http":{ + "method":"DELETE", + "requestUri":"/profile/{ProfileId}", + "responseCode":200 + }, + "input":{"shape":"DeleteProfileRequest"}, + "output":{"shape":"DeleteProfileResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"}, + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ConflictException"} + ], + "documentation":"

    Deletes the specified Route 53 Profile. Before you can delete a profile, you must first disassociate it from all VPCs.

    ", + "idempotent":true + }, + "DisassociateProfile":{ + "name":"DisassociateProfile", + "http":{ + "method":"DELETE", + "requestUri":"/profileassociation/Profileid/{ProfileId}/resourceid/{ResourceId}", + "responseCode":200 + }, + "input":{"shape":"DisassociateProfileRequest"}, + "output":{"shape":"DisassociateProfileResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"LimitExceededException"}, + {"shape":"InvalidParameterException"}, + {"shape":"ThrottlingException"}, + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"} + ], + "documentation":"

    Dissociates a specified Route 53 Profile from the specified VPC.

    ", + "idempotent":true + }, + "DisassociateResourceFromProfile":{ + "name":"DisassociateResourceFromProfile", + "http":{ + "method":"DELETE", + "requestUri":"/profileresourceassociation/profileid/{ProfileId}/resourcearn/{ResourceArn}", + "responseCode":200 + }, + "input":{"shape":"DisassociateResourceFromProfileRequest"}, + "output":{"shape":"DisassociateResourceFromProfileResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"LimitExceededException"}, + {"shape":"InternalServiceErrorException"}, + {"shape":"InvalidParameterException"}, + {"shape":"ThrottlingException"}, + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ConflictException"} + ], + "documentation":"

    Dissoaciated a specified resource, from the Route 53 Profile.

    ", + "idempotent":true + }, + "GetProfile":{ + "name":"GetProfile", + "http":{ + "method":"GET", + "requestUri":"/profile/{ProfileId}", + "responseCode":200 + }, + "input":{"shape":"GetProfileRequest"}, + "output":{"shape":"GetProfileResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"}, + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"} + ], + "documentation":"

    Returns information about a specified Route 53 Profile, such as whether whether the Profile is shared, and the current status of the Profile.

    " + }, + "GetProfileAssociation":{ + "name":"GetProfileAssociation", + "http":{ + "method":"GET", + "requestUri":"/profileassociation/{ProfileAssociationId}", + "responseCode":200 + }, + "input":{"shape":"GetProfileAssociationRequest"}, + "output":{"shape":"GetProfileAssociationResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"}, + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"} + ], + "documentation":"

    Retrieves a Route 53 Profile association for a VPC. A VPC can have only one Profile association, but a Profile can be associated with up to 5000 VPCs.

    " + }, + "GetProfileResourceAssociation":{ + "name":"GetProfileResourceAssociation", + "http":{ + "method":"GET", + "requestUri":"/profileresourceassociation/{ProfileResourceAssociationId}", + "responseCode":200 + }, + "input":{"shape":"GetProfileResourceAssociationRequest"}, + "output":{"shape":"GetProfileResourceAssociationResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"InvalidParameterException"}, + {"shape":"ThrottlingException"}, + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"} + ], + "documentation":"

    Returns information about a specified Route 53 Profile resource association.

    " + }, + "ListProfileAssociations":{ + "name":"ListProfileAssociations", + "http":{ + "method":"GET", + "requestUri":"/profileassociations", + "responseCode":200 + }, + "input":{"shape":"ListProfileAssociationsRequest"}, + "output":{"shape":"ListProfileAssociationsResponse"}, + "errors":[ + {"shape":"InvalidParameterException"}, + {"shape":"ThrottlingException"}, + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"InvalidNextTokenException"} + ], + "documentation":"

    Lists all the VPCs that the specified Route 53 Profile is associated with.

    " + }, + "ListProfileResourceAssociations":{ + "name":"ListProfileResourceAssociations", + "http":{ + "method":"GET", + "requestUri":"/profileresourceassociations/profileid/{ProfileId}", + "responseCode":200 + }, + "input":{"shape":"ListProfileResourceAssociationsRequest"}, + "output":{"shape":"ListProfileResourceAssociationsResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServiceErrorException"}, + {"shape":"InvalidParameterException"}, + {"shape":"ThrottlingException"}, + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"InvalidNextTokenException"} + ], + "documentation":"

    Lists all the resource associations for the specified Route 53 Profile.

    " + }, + "ListProfiles":{ + "name":"ListProfiles", + "http":{ + "method":"GET", + "requestUri":"/profiles", + "responseCode":200 + }, + "input":{"shape":"ListProfilesRequest"}, + "output":{"shape":"ListProfilesResponse"}, + "errors":[ + {"shape":"InvalidParameterException"}, + {"shape":"ThrottlingException"}, + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"InvalidNextTokenException"} + ], + "documentation":"

    Lists all the Route 53 Profiles associated with your Amazon Web Services account.

    " + }, + "ListTagsForResource":{ + "name":"ListTagsForResource", + "http":{ + "method":"GET", + "requestUri":"/tags/{ResourceArn}", + "responseCode":200 + }, + "input":{"shape":"ListTagsForResourceRequest"}, + "output":{"shape":"ListTagsForResourceResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"}, + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ConflictException"} + ], + "documentation":"

    Lists the tags that you associated with the specified resource.

    " + }, + "TagResource":{ + "name":"TagResource", + "http":{ + "method":"POST", + "requestUri":"/tags/{ResourceArn}", + "responseCode":204 + }, + "input":{"shape":"TagResourceRequest"}, + "output":{"shape":"TagResourceResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"}, + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"} + ], + "documentation":"

    Adds one or more tags to a specified resource.

    ", + "idempotent":true + }, + "UntagResource":{ + "name":"UntagResource", + "http":{ + "method":"DELETE", + "requestUri":"/tags/{ResourceArn}", + "responseCode":204 + }, + "input":{"shape":"UntagResourceRequest"}, + "output":{"shape":"UntagResourceResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"}, + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ConflictException"} + ], + "documentation":"

    Removes one or more tags from a specified resource.

    ", + "idempotent":true + }, + "UpdateProfileResourceAssociation":{ + "name":"UpdateProfileResourceAssociation", + "http":{ + "method":"PATCH", + "requestUri":"/profileresourceassociation/{ProfileResourceAssociationId}", + "responseCode":200 + }, + "input":{"shape":"UpdateProfileResourceAssociationRequest"}, + "output":{"shape":"UpdateProfileResourceAssociationResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"LimitExceededException"}, + {"shape":"InternalServiceErrorException"}, + {"shape":"InvalidParameterException"}, + {"shape":"ThrottlingException"}, + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ConflictException"} + ], + "documentation":"

    Updates the specified Route 53 Profile resourse association.

    " + } + }, + "shapes":{ + "AccessDeniedException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ExceptionMessage"} + }, + "documentation":"

    The current account doesn't have the IAM permissions required to perform the specified operation.

    ", + "exception":true + }, + "AccountId":{ + "type":"string", + "max":32, + "min":12 + }, + "Arn":{ + "type":"string", + "max":255, + "min":1 + }, + "AssociateProfileRequest":{ + "type":"structure", + "required":[ + "Name", + "ProfileId", + "ResourceId" + ], + "members":{ + "Name":{ + "shape":"Name", + "documentation":"

    A name for the association.

    " + }, + "ProfileId":{ + "shape":"ResourceId", + "documentation":"

    ID of the Profile.

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

    The ID of the VPC.

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

    A list of the tag keys and values that you want to identify the Profile association.

    " + } + } + }, + "AssociateProfileResponse":{ + "type":"structure", + "members":{ + "ProfileAssociation":{ + "shape":"ProfileAssociation", + "documentation":"

    The association that you just created. The association has an ID that you can use to identify it in other requests, like update and delete.

    " + } + } + }, + "AssociateResourceToProfileRequest":{ + "type":"structure", + "required":[ + "Name", + "ProfileId", + "ResourceArn" + ], + "members":{ + "Name":{ + "shape":"Name", + "documentation":"

    Name for the resource association.

    " + }, + "ProfileId":{ + "shape":"ResourceId", + "documentation":"

    ID of the Profile.

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

    Amazon resource number, ARN, of the DNS resource.

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

    If you are adding a DNS Firewall rule group, include also a priority in this format:

    Key=FirewallRuleGroupPriority,Value=100

    " + } + } + }, + "AssociateResourceToProfileResponse":{ + "type":"structure", + "members":{ + "ProfileResourceAssociation":{ + "shape":"ProfileResourceAssociation", + "documentation":"

    Infromation about the AssociateResourceToProfile, including a status message.

    " + } + } + }, + "ConflictException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ExceptionMessage"} + }, + "documentation":"

    The request you submitted conflicts with an existing request.

    ", + "exception":true + }, + "CreateProfileRequest":{ + "type":"structure", + "required":[ + "ClientToken", + "Name" + ], + "members":{ + "ClientToken":{ + "shape":"CreatorRequestId", + "documentation":"

    ClientToken is an idempotency token that ensures a call to CreateProfile completes only once. You choose the value to pass. For example, an issue might prevent you from getting a response from CreateProfile. In this case, safely retry your call to CreateProfile by using the same CreateProfile parameter value.

    ", + "idempotencyToken":true + }, + "Name":{ + "shape":"Name", + "documentation":"

    A name for the Profile.

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

    A list of the tag keys and values that you want to associate with the Route 53 Profile.

    " + } + } + }, + "CreateProfileResponse":{ + "type":"structure", + "members":{ + "Profile":{ + "shape":"Profile", + "documentation":"

    The Profile that you just created.

    " + } + } + }, + "CreatorRequestId":{ + "type":"string", + "max":255, + "min":1 + }, + "DeleteProfileRequest":{ + "type":"structure", + "required":["ProfileId"], + "members":{ + "ProfileId":{ + "shape":"ResourceId", + "documentation":"

    The ID of the Profile that you want to delete.

    ", + "location":"uri", + "locationName":"ProfileId" + } + } + }, + "DeleteProfileResponse":{ + "type":"structure", + "members":{ + "Profile":{ + "shape":"Profile", + "documentation":"

    Information about the DeleteProfile request, including the status of the request.

    " + } + } + }, + "DisassociateProfileRequest":{ + "type":"structure", + "required":[ + "ProfileId", + "ResourceId" + ], + "members":{ + "ProfileId":{ + "shape":"ResourceId", + "documentation":"

    ID of the Profile.

    ", + "location":"uri", + "locationName":"ProfileId" + }, + "ResourceId":{ + "shape":"ResourceId", + "documentation":"

    The ID of the VPC.

    ", + "location":"uri", + "locationName":"ResourceId" + } + } + }, + "DisassociateProfileResponse":{ + "type":"structure", + "members":{ + "ProfileAssociation":{ + "shape":"ProfileAssociation", + "documentation":"

    Information about the DisassociateProfile request.

    " + } + } + }, + "DisassociateResourceFromProfileRequest":{ + "type":"structure", + "required":[ + "ProfileId", + "ResourceArn" + ], + "members":{ + "ProfileId":{ + "shape":"ResourceId", + "documentation":"

    The ID of the Profile.

    ", + "location":"uri", + "locationName":"ProfileId" + }, + "ResourceArn":{ + "shape":"Arn", + "documentation":"

    The Amazon Resource Name (ARN) of the resource.

    ", + "location":"uri", + "locationName":"ResourceArn" + } + } + }, + "DisassociateResourceFromProfileResponse":{ + "type":"structure", + "members":{ + "ProfileResourceAssociation":{ + "shape":"ProfileResourceAssociation", + "documentation":"

    Information about the DisassociateResourceFromProfile request, including the status of the request.

    " + } + } + }, + "ExceptionMessage":{"type":"string"}, + "GetProfileAssociationRequest":{ + "type":"structure", + "required":["ProfileAssociationId"], + "members":{ + "ProfileAssociationId":{ + "shape":"ResourceId", + "documentation":"

    The identifier of the association you want to get information about.

    ", + "location":"uri", + "locationName":"ProfileAssociationId" + } + } + }, + "GetProfileAssociationResponse":{ + "type":"structure", + "members":{ + "ProfileAssociation":{ + "shape":"ProfileAssociation", + "documentation":"

    Information about the Profile association that you specified in a GetProfileAssociation request.

    " + } + } + }, + "GetProfileRequest":{ + "type":"structure", + "required":["ProfileId"], + "members":{ + "ProfileId":{ + "shape":"ResourceId", + "documentation":"

    ID of the Profile.

    ", + "location":"uri", + "locationName":"ProfileId" + } + } + }, + "GetProfileResourceAssociationRequest":{ + "type":"structure", + "required":["ProfileResourceAssociationId"], + "members":{ + "ProfileResourceAssociationId":{ + "shape":"ResourceId", + "documentation":"

    The ID of the profile resource association that you want to get information about.

    ", + "location":"uri", + "locationName":"ProfileResourceAssociationId" + } + } + }, + "GetProfileResourceAssociationResponse":{ + "type":"structure", + "members":{ + "ProfileResourceAssociation":{ + "shape":"ProfileResourceAssociation", + "documentation":"

    Information about the Profile resource association that you specified in a GetProfileResourceAssociation request.

    " + } + } + }, + "GetProfileResponse":{ + "type":"structure", + "members":{ + "Profile":{ + "shape":"Profile", + "documentation":"

    Information about the Profile, including the status of the Profile.

    " + } + } + }, + "InternalServiceErrorException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ExceptionMessage"} + }, + "documentation":"

    An internal server error occured. Retry your request.

    ", + "exception":true + }, + "InvalidNextTokenException":{ + "type":"structure", + "members":{ + "Message":{"shape":"String"} + }, + "documentation":"

    The NextToken you provided isn;t valid.

    ", + "exception":true + }, + "InvalidParameterException":{ + "type":"structure", + "required":["Message"], + "members":{ + "FieldName":{ + "shape":"String", + "documentation":"

    The parameter field name for the invalid parameter exception.

    " + }, + "Message":{"shape":"ExceptionMessage"} + }, + "documentation":"

    One or more parameters in this request are not valid.

    ", + "exception":true + }, + "LimitExceededException":{ + "type":"structure", + "members":{ + "Message":{"shape":"String"}, + "ResourceType":{ + "shape":"String", + "documentation":"

    The resource type that caused the limits to be exceeded.

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

    The request caused one or more limits to be exceeded.

    ", + "exception":true + }, + "ListProfileAssociationsRequest":{ + "type":"structure", + "members":{ + "MaxResults":{ + "shape":"MaxResults", + "documentation":"

    The maximum number of objects that you want to return for this request. If more objects are available, in the response, a NextToken value, which you can use in a subsequent call to get the next batch of objects, is provided.

    If you don't specify a value for MaxResults, up to 100 objects are returned.

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

    For the first call to this list request, omit this value.

    When you request a list of objects, at most the number of objects specified by MaxResults is returned. If more objects are available for retrieval, a NextToken value is returned in the response. To retrieve the next batch of objects, use the token that was returned for the prior request in your next request.

    ", + "location":"querystring", + "locationName":"nextToken" + }, + "ProfileId":{ + "shape":"ResourceId", + "documentation":"

    ID of the Profile.

    ", + "location":"querystring", + "locationName":"profileId" + }, + "ResourceId":{ + "shape":"ResourceId", + "documentation":"

    ID of the VPC.

    ", + "location":"querystring", + "locationName":"resourceId" + } + } + }, + "ListProfileAssociationsResponse":{ + "type":"structure", + "members":{ + "NextToken":{ + "shape":"NextToken", + "documentation":"

    If more than MaxResults profile associations match the specified criteria, you can submit another ListProfileAssociations request to get the next group of results. In the next request, specify the value of NextToken from the previous response.

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

    A complex type that containts settings information about the profile's VPC associations.

    " + } + } + }, + "ListProfileResourceAssociationsRequest":{ + "type":"structure", + "required":["ProfileId"], + "members":{ + "MaxResults":{ + "shape":"MaxResults", + "documentation":"

    The maximum number of objects that you want to return for this request. If more objects are available, in the response, a NextToken value, which you can use in a subsequent call to get the next batch of objects, is provided.

    If you don't specify a value for MaxResults, up to 100 objects are returned.

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

    For the first call to this list request, omit this value.

    When you request a list of objects, at most the number of objects specified by MaxResults is returned. If more objects are available for retrieval, a NextToken value is returned in the response. To retrieve the next batch of objects, use the token that was returned for the prior request in your next request.

    ", + "location":"querystring", + "locationName":"nextToken" + }, + "ProfileId":{ + "shape":"ResourceId", + "documentation":"

    The ID of the Profile.

    ", + "location":"uri", + "locationName":"ProfileId" + }, + "ResourceType":{ + "shape":"String", + "documentation":"

    ID of a resource if you want information on only one type.

    ", + "location":"querystring", + "locationName":"resourceType" + } + } + }, + "ListProfileResourceAssociationsResponse":{ + "type":"structure", + "members":{ + "NextToken":{ + "shape":"NextToken", + "documentation":"

    If more than MaxResults resource associations match the specified criteria, you can submit another ListProfileResourceAssociations request to get the next group of results. In the next request, specify the value of NextToken from the previous response.

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

    Information about the profile resource association that you specified in a GetProfileResourceAssociation request.

    " + } + } + }, + "ListProfilesRequest":{ + "type":"structure", + "members":{ + "MaxResults":{ + "shape":"MaxResults", + "documentation":"

    The maximum number of objects that you want to return for this request. If more objects are available, in the response, a NextToken value, which you can use in a subsequent call to get the next batch of objects, is provided.

    If you don't specify a value for MaxResults, up to 100 objects are returned.

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

    For the first call to this list request, omit this value.

    When you request a list of objects, at most the number of objects specified by MaxResults is returned. If more objects are available for retrieval, a NextToken value is returned in the response. To retrieve the next batch of objects, use the token that was returned for the prior request in your next request.

    ", + "location":"querystring", + "locationName":"nextToken" + } + } + }, + "ListProfilesResponse":{ + "type":"structure", + "members":{ + "NextToken":{ + "shape":"NextToken", + "documentation":"

    If more than MaxResults resource associations match the specified criteria, you can submit another ListProfiles request to get the next group of results. In the next request, specify the value of NextToken from the previous response.

    " + }, + "ProfileSummaries":{ + "shape":"ProfileSummaryList", + "documentation":"

    Summary information about the Profiles.

    " + } + } + }, + "ListTagsForResourceRequest":{ + "type":"structure", + "required":["ResourceArn"], + "members":{ + "ResourceArn":{ + "shape":"Arn", + "documentation":"

    The Amazon Resource Name (ARN) for the resource that you want to list the tags for.

    ", + "location":"uri", + "locationName":"ResourceArn" + } + } + }, + "ListTagsForResourceResponse":{ + "type":"structure", + "required":["Tags"], + "members":{ + "Tags":{ + "shape":"TagMap", + "documentation":"

    The tags that are associated with the resource that you specified in the ListTagsForResource request.

    " + } + } + }, + "MaxResults":{ + "type":"integer", + "box":true, + "max":100, + "min":1 + }, + "Name":{ + "type":"string", + "max":64, + "min":0, + "pattern":"^(?!^[0-9]+$)([a-zA-Z0-9\\-_' ']+)$" + }, + "NextToken":{"type":"string"}, + "Profile":{ + "type":"structure", + "members":{ + "Arn":{ + "shape":"Arn", + "documentation":"

    The Amazon Resource Name (ARN) of the Profile.

    " + }, + "ClientToken":{ + "shape":"CreatorRequestId", + "documentation":"

    The ClientToken value that was assigned when the Profile was created.

    " + }, + "CreationTime":{ + "shape":"Rfc3339Timestamp", + "documentation":"

    The date and time that the Profile was created, in Unix time format and Coordinated Universal Time (UTC).

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

    ID of the Profile.

    " + }, + "ModificationTime":{ + "shape":"Rfc3339Timestamp", + "documentation":"

    The date and time that the Profile was modified, in Unix time format and Coordinated Universal Time (UTC).

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

    Name of the Profile.

    " + }, + "OwnerId":{ + "shape":"AccountId", + "documentation":"

    Amazon Web Services account ID of the Profile owner.

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

    Sharing status for the Profile.

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

    The status for the Profile.

    " + }, + "StatusMessage":{ + "shape":"String", + "documentation":"

    Status message that includes additiona information about the Profile.

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

    A complex type that includes settings for a Route 53 Profile.

    " + }, + "ProfileAssociation":{ + "type":"structure", + "members":{ + "CreationTime":{ + "shape":"Rfc3339Timestamp", + "documentation":"

    The date and time that the Profile association was created, in Unix time format and Coordinated Universal Time (UTC).

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

    ID of the Profile association.

    " + }, + "ModificationTime":{ + "shape":"Rfc3339Timestamp", + "documentation":"

    The date and time that the Profile association was modified, in Unix time format and Coordinated Universal Time (UTC).

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

    Name of the Profile association.

    " + }, + "OwnerId":{ + "shape":"AccountId", + "documentation":"

    Amazon Web Services account ID of the Profile association owner.

    " + }, + "ProfileId":{ + "shape":"ResourceId", + "documentation":"

    ID of the Profile.

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

    The Amazon Resource Name (ARN) of the VPC.

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

    Status of the Profile association.

    " + }, + "StatusMessage":{ + "shape":"String", + "documentation":"

    Additional information about the Profile association.

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

    An association between a Route 53 Profile and a VPC.

    " + }, + "ProfileAssociations":{ + "type":"list", + "member":{"shape":"ProfileAssociation"} + }, + "ProfileResourceAssociation":{ + "type":"structure", + "members":{ + "CreationTime":{ + "shape":"Rfc3339Timestamp", + "documentation":"

    The date and time that the Profile resource association was created, in Unix time format and Coordinated Universal Time (UTC).

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

    ID of the Profile resource association.

    " + }, + "ModificationTime":{ + "shape":"Rfc3339Timestamp", + "documentation":"

    The date and time that the Profile resource association was modified, in Unix time format and Coordinated Universal Time (UTC).

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

    Name of the Profile resource association.

    " + }, + "OwnerId":{ + "shape":"AccountId", + "documentation":"

    Amazon Web Services account ID of the Profile resource association owner.

    " + }, + "ProfileId":{ + "shape":"ResourceId", + "documentation":"

    Profile ID of the Profile that the resources are associated with.

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

    The Amazon Resource Name (ARN) of the resource association.

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

    If the DNS resource is a DNS Firewall rule group, this indicates the priority.

    " + }, + "ResourceType":{ + "shape":"String", + "documentation":"

    Resource type, such as a private hosted zone, or DNS Firewall rule group.

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

    Status of the Profile resource association.

    " + }, + "StatusMessage":{ + "shape":"String", + "documentation":"

    Additional information about the Profile resource association.

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

    The association between a Route 53 Profile and resources.

    " + }, + "ProfileResourceAssociations":{ + "type":"list", + "member":{"shape":"ProfileResourceAssociation"} + }, + "ProfileStatus":{ + "type":"string", + "enum":[ + "COMPLETE", + "DELETING", + "UPDATING", + "CREATING", + "DELETED", + "FAILED" + ] + }, + "ProfileSummary":{ + "type":"structure", + "members":{ + "Arn":{ + "shape":"Arn", + "documentation":"

    The Amazon Resource Name (ARN) of the Profile.

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

    ID of the Profile.

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

    Name of the Profile.

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

    Share status of the Profile.

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

    Summary information about a Route 53 Profile.

    " + }, + "ProfileSummaryList":{ + "type":"list", + "member":{"shape":"ProfileSummary"} + }, + "ResourceExistsException":{ + "type":"structure", + "members":{ + "Message":{"shape":"String"}, + "ResourceType":{ + "shape":"String", + "documentation":"

    The resource type that caused the resource exists exception.

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

    The resource you are trying to associate, has already been associated.

    ", + "exception":true + }, + "ResourceId":{ + "type":"string", + "max":64, + "min":1 + }, + "ResourceNotFoundException":{ + "type":"structure", + "members":{ + "Message":{"shape":"String"}, + "ResourceType":{ + "shape":"String", + "documentation":"

    The resource type that caused the resource not found exception.

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

    The resource you are associating is not found.

    ", + "exception":true + }, + "ResourceProperties":{"type":"string"}, + "Rfc3339Timestamp":{"type":"timestamp"}, + "ShareStatus":{ + "type":"string", + "enum":[ + "NOT_SHARED", + "SHARED_WITH_ME", + "SHARED_BY_ME" + ] + }, + "String":{"type":"string"}, + "Tag":{ + "type":"structure", + "required":[ + "Key", + "Value" + ], + "members":{ + "Key":{ + "shape":"TagKey", + "documentation":"

    Key associated with the Tag.

    " + }, + "Value":{ + "shape":"TagValue", + "documentation":"

    Value for the Tag.

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

    Tag for the Profile.

    " + }, + "TagKey":{ + "type":"string", + "max":128, + "min":1 + }, + "TagKeyList":{ + "type":"list", + "member":{"shape":"TagKey"}, + "max":200, + "min":0 + }, + "TagList":{ + "type":"list", + "member":{"shape":"Tag"}, + "max":200, + "min":0 + }, + "TagMap":{ + "type":"map", + "key":{"shape":"TagKey"}, + "value":{"shape":"TagValue"}, + "max":200, + "min":0 + }, + "TagResourceRequest":{ + "type":"structure", + "required":[ + "ResourceArn", + "Tags" + ], + "members":{ + "ResourceArn":{ + "shape":"Arn", + "documentation":"

    The Amazon Resource Name (ARN) for the resource that you want to add tags to.

    ", + "location":"uri", + "locationName":"ResourceArn" + }, + "Tags":{ + "shape":"TagMap", + "documentation":"

    The tags that you want to add to the specified resource.

    " + } + } + }, + "TagResourceResponse":{ + "type":"structure", + "members":{ + } + }, + "TagValue":{ + "type":"string", + "max":256, + "min":0 + }, + "ThrottlingException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ExceptionMessage"} + }, + "documentation":"

    The request was throttled. Try again in a few minutes.

    ", + "exception":true + }, + "UntagResourceRequest":{ + "type":"structure", + "required":[ + "ResourceArn", + "TagKeys" + ], + "members":{ + "ResourceArn":{ + "shape":"Arn", + "documentation":"

    The Amazon Resource Name (ARN) for the resource that you want to remove tags from.

    ", + "location":"uri", + "locationName":"ResourceArn" + }, + "TagKeys":{ + "shape":"TagKeyList", + "documentation":"

    The tags that you want to remove to the specified resource.

    ", + "location":"querystring", + "locationName":"tagKeys" + } + } + }, + "UntagResourceResponse":{ + "type":"structure", + "members":{ + } + }, + "UpdateProfileResourceAssociationRequest":{ + "type":"structure", + "required":["ProfileResourceAssociationId"], + "members":{ + "Name":{ + "shape":"Name", + "documentation":"

    Name of the resource association.

    " + }, + "ProfileResourceAssociationId":{ + "shape":"ResourceId", + "documentation":"

    ID of the resource association.

    ", + "location":"uri", + "locationName":"ProfileResourceAssociationId" + }, + "ResourceProperties":{ + "shape":"ResourceProperties", + "documentation":"

    If you are adding a DNS Firewall rule group, include also a priority in this format:

    Key=FirewallRuleGroupPriority,Value=100.

    " + } + } + }, + "UpdateProfileResourceAssociationResponse":{ + "type":"structure", + "members":{ + "ProfileResourceAssociation":{ + "shape":"ProfileResourceAssociation", + "documentation":"

    Information about the UpdateProfileResourceAssociation request, including a status message.

    " + } + } + }, + "ValidationException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ExceptionMessage"} + }, + "documentation":"

    You have provided an invalid command.

    ", + "exception":true + } + }, + "documentation":"

    With Amazon Route 53 Profiles you can share Route 53 configurations with VPCs and AWS accounts

    " +} 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 a1b37f26be5..00fb8be87dc 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 @@ -11033,14 +11033,14 @@ "members":{ "DefaultEbsVolumeSizeInGb":{ "shape":"SpaceEbsVolumeSizeInGb", - "documentation":"

    The default size of the EBS storage volume for a private space.

    " + "documentation":"

    The default size of the EBS storage volume for a space.

    " }, "MaximumEbsVolumeSizeInGb":{ "shape":"SpaceEbsVolumeSizeInGb", - "documentation":"

    The maximum size of the EBS storage volume for a private space.

    " + "documentation":"

    The maximum size of the EBS storage volume for a space.

    " } }, - "documentation":"

    A collection of default EBS storage settings that applies to private spaces created within a domain or user profile.

    " + "documentation":"

    A collection of default EBS storage settings that apply to spaces created within a domain or user profile.

    " }, "DefaultGid":{ "type":"integer", @@ -11059,7 +11059,14 @@ "documentation":"

    The security group IDs for the Amazon VPC that the space uses for communication.

    " }, "JupyterServerAppSettings":{"shape":"JupyterServerAppSettings"}, - "KernelGatewayAppSettings":{"shape":"KernelGatewayAppSettings"} + "KernelGatewayAppSettings":{"shape":"KernelGatewayAppSettings"}, + "JupyterLabAppSettings":{"shape":"JupyterLabAppSettings"}, + "SpaceStorageSettings":{"shape":"DefaultSpaceStorageSettings"}, + "CustomPosixUserConfig":{"shape":"CustomPosixUserConfig"}, + "CustomFileSystemConfigs":{ + "shape":"CustomFileSystemConfigs", + "documentation":"

    The settings for assigning a custom file system to a domain. Permitted users can access this file system in Amazon SageMaker Studio.

    " + } }, "documentation":"

    A collection of settings that apply to spaces created in the domain.

    " }, @@ -11068,10 +11075,10 @@ "members":{ "DefaultEbsStorageSettings":{ "shape":"DefaultEbsStorageSettings", - "documentation":"

    The default EBS storage settings for a private space.

    " + "documentation":"

    The default EBS storage settings for a space.

    " } }, - "documentation":"

    The default storage settings for a private space.

    " + "documentation":"

    The default storage settings for a space.

    " }, "DefaultUid":{ "type":"integer", @@ -16818,10 +16825,10 @@ "members":{ "EbsVolumeSizeInGb":{ "shape":"SpaceEbsVolumeSizeInGb", - "documentation":"

    The size of an EBS storage volume for a private space.

    " + "documentation":"

    The size of an EBS storage volume for a space.

    " } }, - "documentation":"

    A collection of EBS storage settings that applies to private spaces.

    " + "documentation":"

    A collection of EBS storage settings that apply to both private and shared spaces.

    " }, "Edge":{ "type":"structure", @@ -28980,7 +28987,7 @@ "members":{ "OwnerUserProfileName":{ "shape":"UserProfileName", - "documentation":"

    The user profile who is the owner of the private space.

    " + "documentation":"

    The user profile who is the owner of the space.

    " } }, "documentation":"

    The collection of ownership settings for a space.

    " @@ -28990,7 +28997,7 @@ "members":{ "OwnerUserProfileName":{ "shape":"UserProfileName", - "documentation":"

    The user profile who is the owner of the private space.

    " + "documentation":"

    The user profile who is the owner of the space.

    " } }, "documentation":"

    Specifies summary information about the ownership settings.

    " @@ -33202,7 +33209,7 @@ }, "SpaceStorageSettings":{ "shape":"SpaceStorageSettings", - "documentation":"

    The storage settings for a private space.

    " + "documentation":"

    The storage settings for a space.

    " }, "CustomFileSystems":{ "shape":"CustomFileSystems", @@ -33220,7 +33227,7 @@ }, "SpaceStorageSettings":{ "shape":"SpaceStorageSettings", - "documentation":"

    The storage settings for a private space.

    " + "documentation":"

    The storage settings for a space.

    " } }, "documentation":"

    Specifies summary information about the space settings.

    " @@ -33270,10 +33277,10 @@ "members":{ "EbsStorageSettings":{ "shape":"EbsStorageSettings", - "documentation":"

    A collection of EBS storage settings for a private space.

    " + "documentation":"

    A collection of EBS storage settings for a space.

    " } }, - "documentation":"

    The storage settings for a private space.

    " + "documentation":"

    The storage settings for a space.

    " }, "SpawnRate":{ "type":"integer", @@ -37276,7 +37283,7 @@ }, "SpaceStorageSettings":{ "shape":"DefaultSpaceStorageSettings", - "documentation":"

    The storage settings for a private space.

    " + "documentation":"

    The storage settings for a space.

    " }, "DefaultLandingUri":{ "shape":"LandingUri", diff --git a/tools/code-generation/api-descriptions/servicediscovery-2017-03-14.normal.json b/tools/code-generation/api-descriptions/servicediscovery-2017-03-14.normal.json index e708931868b..77f38f56222 100644 --- a/tools/code-generation/api-descriptions/servicediscovery-2017-03-14.normal.json +++ b/tools/code-generation/api-descriptions/servicediscovery-2017-03-14.normal.json @@ -286,7 +286,7 @@ "errors":[ {"shape":"InvalidInput"} ], - "documentation":"

    Lists summary information for all the services that are associated with one or more specified namespaces.

    " + "documentation":"

    Lists summary information for all the services that are associated with one or more namespaces.

    " }, "ListTagsForResource":{ "name":"ListTagsForResource", @@ -700,7 +700,7 @@ "members":{ "NamespaceName":{ "shape":"NamespaceName", - "documentation":"

    The HttpName name of the namespace. It's found in the HttpProperties member of the Properties member of the namespace.

    " + "documentation":"

    The HttpName name of the namespace. It's found in the HttpProperties member of the Properties member of the namespace. In most cases, Name and HttpName match. However, if you reuse Name for namespace creation, a generated hash is added to HttpName to distinguish the two.

    " }, "ServiceName":{ "shape":"ServiceName", @@ -1788,7 +1788,7 @@ }, "Attributes":{ "shape":"Attributes", - "documentation":"

    A string map that contains the following information for the service that you specify in ServiceId:

    • The attributes that apply to the records that are defined in the service.

    • For each attribute, the applicable value.

    Do not include sensitive information in the attributes if the namespace is discoverable by public DNS queries.

    Supported attribute keys include the following:

    AWS_ALIAS_DNS_NAME

    If you want Cloud Map to create an Amazon Route 53 alias record that routes traffic to an Elastic Load Balancing load balancer, specify the DNS name that's associated with the load balancer. For information about how to get the DNS name, see \"DNSName\" in the topic AliasTarget in the Route 53 API Reference.

    Note the following:

    • The configuration for the service that's specified by ServiceId must include settings for an A record, an AAAA record, or both.

    • In the service that's specified by ServiceId, the value of RoutingPolicy must be WEIGHTED.

    • If the service that's specified by ServiceId includes HealthCheckConfig settings, Cloud Map will create the Route 53 health check, but it doesn't associate the health check with the alias record.

    • Cloud Map currently doesn't support creating alias records that route traffic to Amazon Web Services resources other than Elastic Load Balancing load balancers.

    • If you specify a value for AWS_ALIAS_DNS_NAME, don't specify values for any of the AWS_INSTANCE attributes.

    AWS_EC2_INSTANCE_ID

    HTTP namespaces only. The Amazon EC2 instance ID for the instance. If the AWS_EC2_INSTANCE_ID attribute is specified, then the only other attribute that can be specified is AWS_INIT_HEALTH_STATUS. When the AWS_EC2_INSTANCE_ID attribute is specified, then the AWS_INSTANCE_IPV4 attribute will be filled out with the primary private IPv4 address.

    AWS_INIT_HEALTH_STATUS

    If the service configuration includes HealthCheckCustomConfig, you can optionally use AWS_INIT_HEALTH_STATUS to specify the initial status of the custom health check, HEALTHY or UNHEALTHY. If you don't specify a value for AWS_INIT_HEALTH_STATUS, the initial status is HEALTHY.

    AWS_INSTANCE_CNAME

    If the service configuration includes a CNAME record, the domain name that you want Route 53 to return in response to DNS queries (for example, example.com).

    This value is required if the service specified by ServiceId includes settings for an CNAME record.

    AWS_INSTANCE_IPV4

    If the service configuration includes an A record, the IPv4 address that you want Route 53 to return in response to DNS queries (for example, 192.0.2.44).

    This value is required if the service specified by ServiceId includes settings for an A record. If the service includes settings for an SRV record, you must specify a value for AWS_INSTANCE_IPV4, AWS_INSTANCE_IPV6, or both.

    AWS_INSTANCE_IPV6

    If the service configuration includes an AAAA record, the IPv6 address that you want Route 53 to return in response to DNS queries (for example, 2001:0db8:85a3:0000:0000:abcd:0001:2345).

    This value is required if the service specified by ServiceId includes settings for an AAAA record. If the service includes settings for an SRV record, you must specify a value for AWS_INSTANCE_IPV4, AWS_INSTANCE_IPV6, or both.

    AWS_INSTANCE_PORT

    If the service includes an SRV record, the value that you want Route 53 to return for the port.

    If the service includes HealthCheckConfig, the port on the endpoint that you want Route 53 to send requests to.

    This value is required if you specified settings for an SRV record or a Route 53 health check when you created the service.

    Custom attributes

    You can add up to 30 custom attributes. For each key-value pair, the maximum length of the attribute name is 255 characters, and the maximum length of the attribute value is 1,024 characters. The total size of all provided attributes (sum of all keys and values) must not exceed 5,000 characters.

    " + "documentation":"

    A string map that contains the following information for the service that you specify in ServiceId:

    • The attributes that apply to the records that are defined in the service.

    • For each attribute, the applicable value.

    Do not include sensitive information in the attributes if the namespace is discoverable by public DNS queries.

    The following are the supported attribute keys.

    AWS_ALIAS_DNS_NAME

    If you want Cloud Map to create an Amazon Route 53 alias record that routes traffic to an Elastic Load Balancing load balancer, specify the DNS name that's associated with the load balancer. For information about how to get the DNS name, see \"DNSName\" in the topic AliasTarget in the Route 53 API Reference.

    Note the following:

    • The configuration for the service that's specified by ServiceId must include settings for an A record, an AAAA record, or both.

    • In the service that's specified by ServiceId, the value of RoutingPolicy must be WEIGHTED.

    • If the service that's specified by ServiceId includes HealthCheckConfig settings, Cloud Map will create the Route 53 health check, but it doesn't associate the health check with the alias record.

    • Cloud Map currently doesn't support creating alias records that route traffic to Amazon Web Services resources other than Elastic Load Balancing load balancers.

    • If you specify a value for AWS_ALIAS_DNS_NAME, don't specify values for any of the AWS_INSTANCE attributes.

    • The AWS_ALIAS_DNS_NAME is not supported in the GovCloud (US) Regions.

    AWS_EC2_INSTANCE_ID

    HTTP namespaces only. The Amazon EC2 instance ID for the instance. If the AWS_EC2_INSTANCE_ID attribute is specified, then the only other attribute that can be specified is AWS_INIT_HEALTH_STATUS. When the AWS_EC2_INSTANCE_ID attribute is specified, then the AWS_INSTANCE_IPV4 attribute will be filled out with the primary private IPv4 address.

    AWS_INIT_HEALTH_STATUS

    If the service configuration includes HealthCheckCustomConfig, you can optionally use AWS_INIT_HEALTH_STATUS to specify the initial status of the custom health check, HEALTHY or UNHEALTHY. If you don't specify a value for AWS_INIT_HEALTH_STATUS, the initial status is HEALTHY.

    AWS_INSTANCE_CNAME

    If the service configuration includes a CNAME record, the domain name that you want Route 53 to return in response to DNS queries (for example, example.com).

    This value is required if the service specified by ServiceId includes settings for an CNAME record.

    AWS_INSTANCE_IPV4

    If the service configuration includes an A record, the IPv4 address that you want Route 53 to return in response to DNS queries (for example, 192.0.2.44).

    This value is required if the service specified by ServiceId includes settings for an A record. If the service includes settings for an SRV record, you must specify a value for AWS_INSTANCE_IPV4, AWS_INSTANCE_IPV6, or both.

    AWS_INSTANCE_IPV6

    If the service configuration includes an AAAA record, the IPv6 address that you want Route 53 to return in response to DNS queries (for example, 2001:0db8:85a3:0000:0000:abcd:0001:2345).

    This value is required if the service specified by ServiceId includes settings for an AAAA record. If the service includes settings for an SRV record, you must specify a value for AWS_INSTANCE_IPV4, AWS_INSTANCE_IPV6, or both.

    AWS_INSTANCE_PORT

    If the service includes an SRV record, the value that you want Route 53 to return for the port.

    If the service includes HealthCheckConfig, the port on the endpoint that you want Route 53 to send requests to.

    This value is required if you specified settings for an SRV record or a Route 53 health check when you created the service.

    Custom attributes

    You can add up to 30 custom attributes. For each key-value pair, the maximum length of the attribute name is 255 characters, and the maximum length of the attribute value is 1,024 characters. The total size of all provided attributes (sum of all keys and values) must not exceed 5,000 characters.

    " } } }, diff --git a/tools/code-generation/api-descriptions/transfer-2018-11-05.normal.json b/tools/code-generation/api-descriptions/transfer-2018-11-05.normal.json index 5f16e4af440..fca73962e9c 100644 --- a/tools/code-generation/api-descriptions/transfer-2018-11-05.normal.json +++ b/tools/code-generation/api-descriptions/transfer-2018-11-05.normal.json @@ -738,6 +738,23 @@ ], "documentation":"

    Sends a callback for asynchronous custom steps.

    The ExecutionId, WorkflowId, and Token are passed to the target resource during execution of a custom step of a workflow. You must include those with their callback as well as providing a status.

    " }, + "StartDirectoryListing":{ + "name":"StartDirectoryListing", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"StartDirectoryListingRequest"}, + "output":{"shape":"StartDirectoryListingResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"InvalidRequestException"}, + {"shape":"ThrottlingException"}, + {"shape":"InternalServiceError"}, + {"shape":"ServiceUnavailableException"} + ], + "documentation":"

    Retrieves a list of the contents of a directory from a remote SFTP server. You specify the connector ID, the output path, and the remote directory path. You can also specify the optional MaxItems value to control the maximum number of items that are listed from the remote directory. This API returns a list of all files and directories in the remote directory (up to the maximum value), but does not return files or folders in sub-directories. That is, it only returns a list of files and directories one-level deep.

    After you receive the listing file, you can provide the files that you want to transfer to the RetrieveFilePaths parameter of the StartFileTransfer API call.

    The naming convention for the output file is connector-ID-listing-ID.json. The output file contains the following information:

    • filePath: the complete path of a remote file, relative to the directory of the listing request for your SFTP connector on the remote server.

    • modifiedTimestamp: the last time the file was modified, in UTC time format. This field is optional. If the remote file attributes don't contain a timestamp, it is omitted from the file listing.

    • size: the size of the file, in bytes. This field is optional. If the remote file attributes don't contain a file size, it is omitted from the file listing.

    • path: the complete path of a remote directory, relative to the directory of the listing request for your SFTP connector on the remote server.

    • truncated: a flag indicating whether the list output contains all of the items contained in the remote directory or not. If your Truncated output value is true, you can increase the value provided in the optional max-items input attribute to be able to list more items (up to the maximum allowed list size of 10,000 items).

    " + }, "StartFileTransfer":{ "name":"StartFileTransfer", "http":{ @@ -753,7 +770,7 @@ {"shape":"InternalServiceError"}, {"shape":"ServiceUnavailableException"} ], - "documentation":"

    Begins a file transfer between local Amazon Web Services storage and a remote AS2 or SFTP server.

    • For an AS2 connector, you specify the ConnectorId and one or more SendFilePaths to identify the files you want to transfer.

    • For an SFTP connector, the file transfer can be either outbound or inbound. In both cases, you specify the ConnectorId. Depending on the direction of the transfer, you also specify the following items:

      • If you are transferring file from a partner's SFTP server to Amazon Web Services storage, you specify one or more RetreiveFilePaths to identify the files you want to transfer, and a LocalDirectoryPath to specify the destination folder.

      • If you are transferring file to a partner's SFTP server from Amazon Web Services storage, you specify one or more SendFilePaths to identify the files you want to transfer, and a RemoteDirectoryPath to specify the destination folder.

    " + "documentation":"

    Begins a file transfer between local Amazon Web Services storage and a remote AS2 or SFTP server.

    • For an AS2 connector, you specify the ConnectorId and one or more SendFilePaths to identify the files you want to transfer.

    • For an SFTP connector, the file transfer can be either outbound or inbound. In both cases, you specify the ConnectorId. Depending on the direction of the transfer, you also specify the following items:

      • If you are transferring file from a partner's SFTP server to Amazon Web Services storage, you specify one or more RetrieveFilePaths to identify the files you want to transfer, and a LocalDirectoryPath to specify the destination folder.

      • If you are transferring file to a partner's SFTP server from Amazon Web Services storage, you specify one or more SendFilePaths to identify the files you want to transfer, and a RemoteDirectoryPath to specify the destination folder.

    " }, "StartServer":{ "name":"StartServer", @@ -2171,7 +2188,7 @@ }, "Usage":{ "shape":"CertificateUsageType", - "documentation":"

    Specifies how this certificate is used. It can be used in the following ways:

    • SIGNING: For signing AS2 messages

    • ENCRYPTION: For encrypting AS2 messages

    • TLS: For securing AS2 communications sent over HTTPS

    " + "documentation":"

    Specifies whether this certificate is used for signing or encryption.

    " }, "Status":{ "shape":"CertificateStatusType", @@ -2918,7 +2935,7 @@ "members":{ "Usage":{ "shape":"CertificateUsageType", - "documentation":"

    Specifies how this certificate is used. It can be used in the following ways:

    • SIGNING: For signing AS2 messages

    • ENCRYPTION: For encrypting AS2 messages

    • TLS: For securing AS2 communications sent over HTTPS

    " + "documentation":"

    Specifies whether this certificate is used for signing or encryption.

    " }, "Certificate":{ "shape":"CertificateBodyType", @@ -3555,7 +3572,7 @@ }, "Usage":{ "shape":"CertificateUsageType", - "documentation":"

    Specifies how this certificate is used. It can be used in the following ways:

    • SIGNING: For signing AS2 messages

    • ENCRYPTION: For encrypting AS2 messages

    • TLS: For securing AS2 communications sent over HTTPS

    " + "documentation":"

    Specifies whether this certificate is used for signing or encryption.

    " }, "Status":{ "shape":"CertificateStatusType", @@ -3793,6 +3810,12 @@ "type":"list", "member":{"shape":"ListedWorkflow"} }, + "ListingId":{ + "type":"string", + "max":512, + "min":1, + "pattern":"[0-9a-zA-Z./-]+" + }, "LogGroupName":{ "type":"string", "max":512, @@ -3832,6 +3855,12 @@ "DIRECTORY" ] }, + "MaxItems":{ + "type":"integer", + "box":true, + "max":10000, + "min":1 + }, "MaxResults":{ "type":"integer", "box":true, @@ -3886,6 +3915,12 @@ "max":1, "min":0 }, + "OutputFileName":{ + "type":"string", + "max":537, + "min":26, + "pattern":"c-([0-9a-f]{17})-[0-9a-zA-Z./-]+.json" + }, "OverwriteExisting":{ "type":"string", "enum":[ @@ -4386,6 +4421,49 @@ "max":5, "min":0 }, + "StartDirectoryListingRequest":{ + "type":"structure", + "required":[ + "ConnectorId", + "RemoteDirectoryPath", + "OutputDirectoryPath" + ], + "members":{ + "ConnectorId":{ + "shape":"ConnectorId", + "documentation":"

    The unique identifier for the connector.

    " + }, + "RemoteDirectoryPath":{ + "shape":"FilePath", + "documentation":"

    Specifies the directory on the remote SFTP server for which you want to list its contents.

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

    An optional parameter where you can specify the maximum number of file/directory names to retrieve. The default value is 1,000.

    " + }, + "OutputDirectoryPath":{ + "shape":"FilePath", + "documentation":"

    Specifies the path (bucket and prefix) in Amazon S3 storage to store the results of the directory listing.

    " + } + } + }, + "StartDirectoryListingResponse":{ + "type":"structure", + "required":[ + "ListingId", + "OutputFileName" + ], + "members":{ + "ListingId":{ + "shape":"ListingId", + "documentation":"

    Returns a unique identifier for the directory listing call.

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

    Returns the file name where the results are stored. This is a combination of the connector ID and the listing ID: <connector-id>-<listing-id>.json.

    " + } + } + }, "StartFileTransferRequest":{ "type":"structure", "required":["ConnectorId"], diff --git a/tools/code-generation/endpoints/route53profiles-2018-05-10.endpoint-rule-set.json b/tools/code-generation/endpoints/route53profiles-2018-05-10.endpoint-rule-set.json new file mode 100644 index 00000000000..b5387298440 --- /dev/null +++ b/tools/code-generation/endpoints/route53profiles-2018-05-10.endpoint-rule-set.json @@ -0,0 +1,350 @@ +{ + "version": "1.0", + "parameters": { + "Region": { + "builtIn": "AWS::Region", + "required": false, + "documentation": "The AWS region used to dispatch the request.", + "type": "String" + }, + "UseDualStack": { + "builtIn": "AWS::UseDualStack", + "required": true, + "default": false, + "documentation": "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", + "type": "Boolean" + }, + "UseFIPS": { + "builtIn": "AWS::UseFIPS", + "required": true, + "default": false, + "documentation": "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", + "type": "Boolean" + }, + "Endpoint": { + "builtIn": "SDK::Endpoint", + "required": false, + "documentation": "Override the endpoint used to send this request", + "type": "String" + } + }, + "rules": [ + { + "conditions": [ + { + "fn": "isSet", + "argv": [ + { + "ref": "Endpoint" + } + ] + } + ], + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseFIPS" + }, + true + ] + } + ], + "error": "Invalid Configuration: FIPS and custom endpoint are not supported", + "type": "error" + }, + { + "conditions": [], + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseDualStack" + }, + true + ] + } + ], + "error": "Invalid Configuration: Dualstack and custom endpoint are not supported", + "type": "error" + }, + { + "conditions": [], + "endpoint": { + "url": { + "ref": "Endpoint" + }, + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ], + "type": "tree" + } + ], + "type": "tree" + }, + { + "conditions": [], + "rules": [ + { + "conditions": [ + { + "fn": "isSet", + "argv": [ + { + "ref": "Region" + } + ] + } + ], + "rules": [ + { + "conditions": [ + { + "fn": "aws.partition", + "argv": [ + { + "ref": "Region" + } + ], + "assign": "PartitionResult" + } + ], + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseFIPS" + }, + true + ] + }, + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseDualStack" + }, + true + ] + } + ], + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + true, + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsFIPS" + ] + } + ] + }, + { + "fn": "booleanEquals", + "argv": [ + true, + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsDualStack" + ] + } + ] + } + ], + "rules": [ + { + "conditions": [], + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://route53profiles-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ], + "type": "tree" + } + ], + "type": "tree" + }, + { + "conditions": [], + "error": "FIPS and DualStack are enabled, but this partition does not support one or both", + "type": "error" + } + ], + "type": "tree" + }, + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseFIPS" + }, + true + ] + } + ], + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsFIPS" + ] + }, + true + ] + } + ], + "rules": [ + { + "conditions": [], + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://route53profiles-fips.{Region}.{PartitionResult#dnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ], + "type": "tree" + } + ], + "type": "tree" + }, + { + "conditions": [], + "error": "FIPS is enabled but this partition does not support FIPS", + "type": "error" + } + ], + "type": "tree" + }, + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseDualStack" + }, + true + ] + } + ], + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + true, + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsDualStack" + ] + } + ] + } + ], + "rules": [ + { + "conditions": [], + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://route53profiles.{Region}.{PartitionResult#dualStackDnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ], + "type": "tree" + } + ], + "type": "tree" + }, + { + "conditions": [], + "error": "DualStack is enabled but this partition does not support DualStack", + "type": "error" + } + ], + "type": "tree" + }, + { + "conditions": [], + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://route53profiles.{Region}.{PartitionResult#dnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ], + "type": "tree" + } + ], + "type": "tree" + } + ], + "type": "tree" + }, + { + "conditions": [], + "error": "Invalid Configuration: Missing Region", + "type": "error" + } + ], + "type": "tree" + } + ] +} \ No newline at end of file diff --git a/tools/code-generation/endpoints/route53profiles-2018-05-10.endpoint-tests.json b/tools/code-generation/endpoints/route53profiles-2018-05-10.endpoint-tests.json new file mode 100644 index 00000000000..34fdea876e5 --- /dev/null +++ b/tools/code-generation/endpoints/route53profiles-2018-05-10.endpoint-tests.json @@ -0,0 +1,314 @@ +{ + "testCases": [ + { + "documentation": "For region us-east-1 with FIPS enabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://route53profiles-fips.us-east-1.api.aws" + } + }, + "params": { + "Region": "us-east-1", + "UseFIPS": true, + "UseDualStack": true + } + }, + { + "documentation": "For region us-east-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://route53profiles-fips.us-east-1.amazonaws.com" + } + }, + "params": { + "Region": "us-east-1", + "UseFIPS": true, + "UseDualStack": false + } + }, + { + "documentation": "For region us-east-1 with FIPS disabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://route53profiles.us-east-1.api.aws" + } + }, + "params": { + "Region": "us-east-1", + "UseFIPS": false, + "UseDualStack": true + } + }, + { + "documentation": "For region us-east-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://route53profiles.us-east-1.amazonaws.com" + } + }, + "params": { + "Region": "us-east-1", + "UseFIPS": false, + "UseDualStack": false + } + }, + { + "documentation": "For region cn-north-1 with FIPS enabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://route53profiles-fips.cn-north-1.api.amazonwebservices.com.cn" + } + }, + "params": { + "Region": "cn-north-1", + "UseFIPS": true, + "UseDualStack": true + } + }, + { + "documentation": "For region cn-north-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://route53profiles-fips.cn-north-1.amazonaws.com.cn" + } + }, + "params": { + "Region": "cn-north-1", + "UseFIPS": true, + "UseDualStack": false + } + }, + { + "documentation": "For region cn-north-1 with FIPS disabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://route53profiles.cn-north-1.api.amazonwebservices.com.cn" + } + }, + "params": { + "Region": "cn-north-1", + "UseFIPS": false, + "UseDualStack": true + } + }, + { + "documentation": "For region cn-north-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://route53profiles.cn-north-1.amazonaws.com.cn" + } + }, + "params": { + "Region": "cn-north-1", + "UseFIPS": false, + "UseDualStack": false + } + }, + { + "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://route53profiles-fips.us-gov-east-1.api.aws" + } + }, + "params": { + "Region": "us-gov-east-1", + "UseFIPS": true, + "UseDualStack": true + } + }, + { + "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://route53profiles-fips.us-gov-east-1.amazonaws.com" + } + }, + "params": { + "Region": "us-gov-east-1", + "UseFIPS": true, + "UseDualStack": false + } + }, + { + "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://route53profiles.us-gov-east-1.api.aws" + } + }, + "params": { + "Region": "us-gov-east-1", + "UseFIPS": false, + "UseDualStack": true + } + }, + { + "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://route53profiles.us-gov-east-1.amazonaws.com" + } + }, + "params": { + "Region": "us-gov-east-1", + "UseFIPS": false, + "UseDualStack": false + } + }, + { + "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack enabled", + "expect": { + "error": "FIPS and DualStack are enabled, but this partition does not support one or both" + }, + "params": { + "Region": "us-iso-east-1", + "UseFIPS": true, + "UseDualStack": true + } + }, + { + "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://route53profiles-fips.us-iso-east-1.c2s.ic.gov" + } + }, + "params": { + "Region": "us-iso-east-1", + "UseFIPS": true, + "UseDualStack": false + } + }, + { + "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack enabled", + "expect": { + "error": "DualStack is enabled but this partition does not support DualStack" + }, + "params": { + "Region": "us-iso-east-1", + "UseFIPS": false, + "UseDualStack": true + } + }, + { + "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://route53profiles.us-iso-east-1.c2s.ic.gov" + } + }, + "params": { + "Region": "us-iso-east-1", + "UseFIPS": false, + "UseDualStack": false + } + }, + { + "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack enabled", + "expect": { + "error": "FIPS and DualStack are enabled, but this partition does not support one or both" + }, + "params": { + "Region": "us-isob-east-1", + "UseFIPS": true, + "UseDualStack": true + } + }, + { + "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://route53profiles-fips.us-isob-east-1.sc2s.sgov.gov" + } + }, + "params": { + "Region": "us-isob-east-1", + "UseFIPS": true, + "UseDualStack": false + } + }, + { + "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack enabled", + "expect": { + "error": "DualStack is enabled but this partition does not support DualStack" + }, + "params": { + "Region": "us-isob-east-1", + "UseFIPS": false, + "UseDualStack": true + } + }, + { + "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://route53profiles.us-isob-east-1.sc2s.sgov.gov" + } + }, + "params": { + "Region": "us-isob-east-1", + "UseFIPS": false, + "UseDualStack": false + } + }, + { + "documentation": "For custom endpoint with region set and fips disabled and dualstack disabled", + "expect": { + "endpoint": { + "url": "https://example.com" + } + }, + "params": { + "Region": "us-east-1", + "UseFIPS": false, + "UseDualStack": false, + "Endpoint": "https://example.com" + } + }, + { + "documentation": "For custom endpoint with region not set and fips disabled and dualstack disabled", + "expect": { + "endpoint": { + "url": "https://example.com" + } + }, + "params": { + "UseFIPS": false, + "UseDualStack": false, + "Endpoint": "https://example.com" + } + }, + { + "documentation": "For custom endpoint with fips enabled and dualstack disabled", + "expect": { + "error": "Invalid Configuration: FIPS and custom endpoint are not supported" + }, + "params": { + "Region": "us-east-1", + "UseFIPS": true, + "UseDualStack": false, + "Endpoint": "https://example.com" + } + }, + { + "documentation": "For custom endpoint with fips disabled and dualstack enabled", + "expect": { + "error": "Invalid Configuration: Dualstack and custom endpoint are not supported" + }, + "params": { + "Region": "us-east-1", + "UseFIPS": false, + "UseDualStack": true, + "Endpoint": "https://example.com" + } + }, + { + "documentation": "Missing region", + "expect": { + "error": "Invalid Configuration: Missing Region" + } + } + ], + "version": "1.0" +} \ No newline at end of file diff --git a/tools/code-generation/endpoints/servicediscovery-2017-03-14.endpoint-rule-set.json b/tools/code-generation/endpoints/servicediscovery-2017-03-14.endpoint-rule-set.json index 637ad5695ec..21fa3885c70 100644 --- a/tools/code-generation/endpoints/servicediscovery-2017-03-14.endpoint-rule-set.json +++ b/tools/code-generation/endpoints/servicediscovery-2017-03-14.endpoint-rule-set.json @@ -40,7 +40,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [ @@ -83,7 +82,8 @@ }, "type": "endpoint" } - ] + ], + "type": "tree" }, { "conditions": [ @@ -96,7 +96,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [ @@ -110,7 +109,6 @@ "assign": "PartitionResult" } ], - "type": "tree", "rules": [ { "conditions": [ @@ -133,7 +131,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [ @@ -168,7 +165,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [], @@ -179,14 +175,16 @@ }, "type": "endpoint" } - ] + ], + "type": "tree" }, { "conditions": [], "error": "FIPS and DualStack are enabled, but this partition does not support one or both", "type": "error" } - ] + ], + "type": "tree" }, { "conditions": [ @@ -200,14 +198,12 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [ { "fn": "booleanEquals", "argv": [ - true, { "fn": "getAttr", "argv": [ @@ -216,11 +212,11 @@ }, "supportsFIPS" ] - } + }, + true ] } ], - "type": "tree", "rules": [ { "conditions": [], @@ -231,14 +227,16 @@ }, "type": "endpoint" } - ] + ], + "type": "tree" }, { "conditions": [], "error": "FIPS is enabled but this partition does not support FIPS", "type": "error" } - ] + ], + "type": "tree" }, { "conditions": [ @@ -252,7 +250,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [ @@ -272,7 +269,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [ @@ -358,14 +354,16 @@ }, "type": "endpoint" } - ] + ], + "type": "tree" }, { "conditions": [], "error": "DualStack is enabled but this partition does not support DualStack", "type": "error" } - ] + ], + "type": "tree" }, { "conditions": [], @@ -376,9 +374,11 @@ }, "type": "endpoint" } - ] + ], + "type": "tree" } - ] + ], + "type": "tree" }, { "conditions": [],