From e45f7f5d2bb7b8814b6084ef6f8c086e3f487290 Mon Sep 17 00:00:00 2001 From: aws-sdk-cpp-automation Date: Mon, 11 Nov 2024 19:11:16 +0000 Subject: [PATCH] Adds Support for new AssociatePackages and DissociatePackages API in Amazon OpenSearch Service that allows association and dissociation operations to be carried out on multiple packages at the same time. No API changes from previous release. This release migrated the model to Smithy keeping all features unchanged. This release updates StartCapacityTask to allow an active Outpost to be modified. It also adds a new API to list all running EC2 instances on the Outpost. Add Python 3.13 (python3.13) support to AWS Lambda Adds support for filePath filter. --- VERSION | 2 +- .../include/aws/cloudfront/CloudFrontClient.h | 28 +- .../source/CloudFrontClient.cpp | 16 +- .../source/CloudFrontErrors.cpp | 30 +- .../include/aws/inspector2/Inspector2Client.h | 4 +- .../inspector2/model/CoverageFilterCriteria.h | 2 +- .../model/CreateSbomExportRequest.h | 5 +- .../aws/inspector2/model/FindingDetail.h | 9 +- .../inspector2/model/GetSbomExportResult.h | 5 +- .../model/LambdaFunctionAggregationResponse.h | 4 +- .../model/LambdaLayerAggregationResponse.h | 4 +- .../aws/inspector2/model/PackageFilter.h | 19 +- .../aws/inspector2/model/PackageManager.h | 3 +- .../aws/inspector2/model/ResourceState.h | 10 +- .../include/aws/inspector2/model/Runtime.h | 8 +- .../source/model/PackageFilter.cpp | 14 + .../source/model/PackageManager.cpp | 7 + .../source/model/Runtime.cpp | 42 + .../include/aws/lambda/model/Runtime.h | 3 +- .../source/model/Runtime.cpp | 7 + .../aws/opensearch/OpenSearchServiceClient.h | 78 + .../OpenSearchServiceServiceClientModel.h | 15 + .../model/AssociatePackageRequest.h | 37 + .../model/AssociatePackagesRequest.h | 74 + .../model/AssociatePackagesResult.h | 69 + .../opensearch/model/CreatePackageRequest.h | 68 + .../model/DescribePackagesFilterName.h | 3 +- .../model/DissociatePackagesRequest.h | 73 + .../model/DissociatePackagesResult.h | 70 + .../opensearch/model/DomainPackageDetails.h | 37 + .../opensearch/model/KeyStoreAccessOption.h | 75 + .../model/PackageAssociationConfiguration.h | 61 + .../opensearch/model/PackageConfiguration.h | 106 + .../aws/opensearch/model/PackageDetails.h | 86 + .../model/PackageDetailsForAssociation.h | 98 + .../model/PackageEncryptionOptions.h | 74 + .../model/PackageScopeOperationEnum.h | 32 + .../aws/opensearch/model/PackageType.h | 4 +- .../opensearch/model/PackageVendingOptions.h | 57 + .../opensearch/model/PackageVersionHistory.h | 16 + .../aws/opensearch/model/RequirementLevel.h | 32 + .../opensearch/model/UpdatePackageRequest.h | 32 + .../model/UpdatePackageScopeRequest.h | 92 + .../model/UpdatePackageScopeResult.h | 98 + .../source/OpenSearchServiceClient.cpp | 84 + .../source/model/AssociatePackageRequest.cpp | 25 +- .../source/model/AssociatePackagesRequest.cpp | 47 + .../source/model/AssociatePackagesResult.cpp | 51 + .../source/model/CreatePackageRequest.cpp | 30 +- .../model/DescribePackagesFilterName.cpp | 7 + .../model/DissociatePackagesRequest.cpp | 47 + .../source/model/DissociatePackagesResult.cpp | 51 + .../source/model/DomainPackageDetails.cpp | 38 +- .../source/model/KeyStoreAccessOption.cpp | 74 + .../model/PackageAssociationConfiguration.cpp | 59 + .../source/model/PackageConfiguration.cpp | 102 + .../source/model/PackageDetails.cpp | 80 +- .../model/PackageDetailsForAssociation.cpp | 95 + .../source/model/PackageEncryptionOptions.cpp | 74 + .../model/PackageScopeOperationEnum.cpp | 79 + .../source/model/PackageType.cpp | 14 + .../source/model/PackageVendingOptions.cpp | 60 + .../source/model/PackageVersionHistory.cpp | 16 +- .../source/model/RequirementLevel.cpp | 79 + .../source/model/UpdatePackageRequest.cpp | 16 +- .../model/UpdatePackageScopeRequest.cpp | 54 + .../source/model/UpdatePackageScopeResult.cpp | 65 + .../include/aws/outposts/OutpostsClient.h | 59 +- .../aws/outposts/OutpostsServiceClientModel.h | 10 + .../aws/outposts/model/AWSServiceName.h | 35 + .../aws/outposts/model/AssetInstance.h | 126 + .../model/AssetInstanceTypeCapacity.h | 74 + .../aws/outposts/model/BlockingInstance.h | 94 + .../outposts/model/CapacityTaskFailureType.h | 6 +- .../aws/outposts/model/CapacityTaskStatus.h | 2 + .../aws/outposts/model/ComputeAttributes.h | 32 + .../outposts/model/GetCapacityTaskResult.h | 34 + .../aws/outposts/model/InstancesToExclude.h | 102 + .../model/ListAssetInstancesRequest.h | 161 ++ .../outposts/model/ListAssetInstancesResult.h | 83 + ...tBlockingInstancesForCapacityTaskRequest.h | 105 + ...stBlockingInstancesForCapacityTaskResult.h | 84 + .../outposts/model/StartCapacityTaskRequest.h | 37 + .../outposts/model/StartCapacityTaskResult.h | 33 + .../model/TaskActionOnBlockingInstances.h | 31 + .../source/OutpostsClient.cpp | 82 +- .../source/model/AWSServiceName.cpp | 100 + .../source/model/AssetInstance.cpp | 115 + .../model/AssetInstanceTypeCapacity.cpp | 74 + .../source/model/BlockingInstance.cpp | 87 + .../source/model/CapacityTaskFailureType.cpp | 28 + .../source/model/CapacityTaskStatus.cpp | 14 + .../source/model/ComputeAttributes.cpp | 39 +- .../source/model/GetCapacityTaskResult.cpp | 15 +- .../source/model/InstancesToExclude.cpp | 111 + .../model/ListAssetInstancesRequest.cpp | 95 + .../source/model/ListAssetInstancesResult.cpp | 57 + ...lockingInstancesForCapacityTaskRequest.cpp | 52 + ...BlockingInstancesForCapacityTaskResult.cpp | 57 + .../source/model/StartCapacityTaskRequest.cpp | 16 +- .../source/model/StartCapacityTaskResult.cpp | 15 +- .../model/TaskActionOnBlockingInstances.cpp | 72 + .../include/aws/core/VersionConfig.h | 4 +- .../cloudfront-2020-05-31.normal.json | 2059 +++++++++++------ .../inspector2-2020-06-08.normal.json | 68 +- .../lambda-2015-03-31.normal.json | 3 +- .../opensearch-2021-01-01.normal.json | 350 ++- .../outposts-2019-12-03.normal.json | 315 ++- 108 files changed, 6932 insertions(+), 860 deletions(-) create mode 100644 generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/AssociatePackagesRequest.h create mode 100644 generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/AssociatePackagesResult.h create mode 100644 generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/DissociatePackagesRequest.h create mode 100644 generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/DissociatePackagesResult.h create mode 100644 generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/KeyStoreAccessOption.h create mode 100644 generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/PackageAssociationConfiguration.h create mode 100644 generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/PackageConfiguration.h create mode 100644 generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/PackageDetailsForAssociation.h create mode 100644 generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/PackageEncryptionOptions.h create mode 100644 generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/PackageScopeOperationEnum.h create mode 100644 generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/PackageVendingOptions.h create mode 100644 generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/RequirementLevel.h create mode 100644 generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/UpdatePackageScopeRequest.h create mode 100644 generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/UpdatePackageScopeResult.h create mode 100644 generated/src/aws-cpp-sdk-opensearch/source/model/AssociatePackagesRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-opensearch/source/model/AssociatePackagesResult.cpp create mode 100644 generated/src/aws-cpp-sdk-opensearch/source/model/DissociatePackagesRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-opensearch/source/model/DissociatePackagesResult.cpp create mode 100644 generated/src/aws-cpp-sdk-opensearch/source/model/KeyStoreAccessOption.cpp create mode 100644 generated/src/aws-cpp-sdk-opensearch/source/model/PackageAssociationConfiguration.cpp create mode 100644 generated/src/aws-cpp-sdk-opensearch/source/model/PackageConfiguration.cpp create mode 100644 generated/src/aws-cpp-sdk-opensearch/source/model/PackageDetailsForAssociation.cpp create mode 100644 generated/src/aws-cpp-sdk-opensearch/source/model/PackageEncryptionOptions.cpp create mode 100644 generated/src/aws-cpp-sdk-opensearch/source/model/PackageScopeOperationEnum.cpp create mode 100644 generated/src/aws-cpp-sdk-opensearch/source/model/PackageVendingOptions.cpp create mode 100644 generated/src/aws-cpp-sdk-opensearch/source/model/RequirementLevel.cpp create mode 100644 generated/src/aws-cpp-sdk-opensearch/source/model/UpdatePackageScopeRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-opensearch/source/model/UpdatePackageScopeResult.cpp create mode 100644 generated/src/aws-cpp-sdk-outposts/include/aws/outposts/model/AWSServiceName.h create mode 100644 generated/src/aws-cpp-sdk-outposts/include/aws/outposts/model/AssetInstance.h create mode 100644 generated/src/aws-cpp-sdk-outposts/include/aws/outposts/model/AssetInstanceTypeCapacity.h create mode 100644 generated/src/aws-cpp-sdk-outposts/include/aws/outposts/model/BlockingInstance.h create mode 100644 generated/src/aws-cpp-sdk-outposts/include/aws/outposts/model/InstancesToExclude.h create mode 100644 generated/src/aws-cpp-sdk-outposts/include/aws/outposts/model/ListAssetInstancesRequest.h create mode 100644 generated/src/aws-cpp-sdk-outposts/include/aws/outposts/model/ListAssetInstancesResult.h create mode 100644 generated/src/aws-cpp-sdk-outposts/include/aws/outposts/model/ListBlockingInstancesForCapacityTaskRequest.h create mode 100644 generated/src/aws-cpp-sdk-outposts/include/aws/outposts/model/ListBlockingInstancesForCapacityTaskResult.h create mode 100644 generated/src/aws-cpp-sdk-outposts/include/aws/outposts/model/TaskActionOnBlockingInstances.h create mode 100644 generated/src/aws-cpp-sdk-outposts/source/model/AWSServiceName.cpp create mode 100644 generated/src/aws-cpp-sdk-outposts/source/model/AssetInstance.cpp create mode 100644 generated/src/aws-cpp-sdk-outposts/source/model/AssetInstanceTypeCapacity.cpp create mode 100644 generated/src/aws-cpp-sdk-outposts/source/model/BlockingInstance.cpp create mode 100644 generated/src/aws-cpp-sdk-outposts/source/model/InstancesToExclude.cpp create mode 100644 generated/src/aws-cpp-sdk-outposts/source/model/ListAssetInstancesRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-outposts/source/model/ListAssetInstancesResult.cpp create mode 100644 generated/src/aws-cpp-sdk-outposts/source/model/ListBlockingInstancesForCapacityTaskRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-outposts/source/model/ListBlockingInstancesForCapacityTaskResult.cpp create mode 100644 generated/src/aws-cpp-sdk-outposts/source/model/TaskActionOnBlockingInstances.cpp diff --git a/VERSION b/VERSION index 94dc9891dd4..5c3093ef2bc 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.11.443 \ No newline at end of file +1.11.444 \ No newline at end of file diff --git a/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/CloudFrontClient.h b/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/CloudFrontClient.h index 78646fd0d6e..97d2bc07c33 100644 --- a/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/CloudFrontClient.h +++ b/generated/src/aws-cpp-sdk-cloudfront/include/aws/cloudfront/CloudFrontClient.h @@ -17,12 +17,12 @@ namespace Aws namespace CloudFront { /** - * Amazon CloudFront

This is the Amazon CloudFront API - * Reference. This guide is for developers who need detailed information about - * CloudFront API actions, data types, and errors. For detailed information about - * CloudFront features, see the Amazon CloudFront

This is the Amazon CloudFront + * API Reference. This guide is for developers who need detailed information + * about CloudFront API actions, data types, and errors. For detailed information + * about CloudFront features, see the Amazon - * CloudFront Developer Guide.

+ * CloudFront Developer Guide.

*/ class AWS_CLOUDFRONT_API CloudFrontClient : public Aws::Client::AWSXMLClient, public Aws::Client::ClientWithAsyncTemplateMethods { @@ -2580,13 +2580,17 @@ namespace CloudFront } /** - *

Gets the list of CloudFront origin access controls in this Amazon Web + *

Gets the list of CloudFront origin access controls (OACs) in this Amazon Web * Services account.

You can optionally specify the maximum number of items * to receive in the response. If the total number of items in the list exceeds the * maximum that you specify, or the default maximum, the response is paginated. To * get the next page of items, send another request that specifies the * NextMarker value from the current response as the - * Marker value in the next request.

See Also:

Marker value in the next request.

If you're not using + * origin access controls for your Amazon Web Services account, the + * ListOriginAccessControls operation doesn't return the + * Items element in the response.

See Also:

+ *
AWS * API Reference

*/ @@ -3016,12 +3020,12 @@ namespace CloudFront * get the current configuration, including the version identifier * (ETag).

  • Update the distribution configuration * that was returned in the response. Note the following important requirements and - * restrictions:

    • You must rename the ETag field to - * IfMatch, leaving the value unchanged. (Set the value of - * IfMatch to the value of ETag, then remove the - * ETag field.)

    • You can't change the value of + * restrictions:

      • You must copy the ETag field value + * from the response. (You'll use it for the IfMatch parameter in your + * request.) Then, remove the ETag field from the distribution + * configuration.

      • You can't change the value of * CallerReference.

    • Submit an - * UpdateDistribution request, providing the distribution + * UpdateDistribution request, providing the updated distribution * configuration. The new configuration replaces the existing configuration. The * values that you specify in an UpdateDistribution request are not * merged into your existing configuration. Make sure to include all fields: the diff --git a/generated/src/aws-cpp-sdk-cloudfront/source/CloudFrontClient.cpp b/generated/src/aws-cpp-sdk-cloudfront/source/CloudFrontClient.cpp index 9e74fd7b4d2..1fd027e7e1d 100644 --- a/generated/src/aws-cpp-sdk-cloudfront/source/CloudFrontClient.cpp +++ b/generated/src/aws-cpp-sdk-cloudfront/source/CloudFrontClient.cpp @@ -648,7 +648,7 @@ CreateKeyValueStore2020_05_31Outcome CloudFrontClient::CreateKeyValueStore2020_0 *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CreateKeyValueStore2020_05_31, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/2020-05-31/key-value-store/"); + endpointResolutionOutcome.GetResult().AddPathSegments("/2020-05-31/key-value-store"); return CreateKeyValueStore2020_05_31Outcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, @@ -682,7 +682,7 @@ CreateMonitoringSubscription2020_05_31Outcome CloudFrontClient::CreateMonitoring AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CreateMonitoringSubscription2020_05_31, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); endpointResolutionOutcome.GetResult().AddPathSegments("/2020-05-31/distributions/"); endpointResolutionOutcome.GetResult().AddPathSegment(request.GetDistributionId()); - endpointResolutionOutcome.GetResult().AddPathSegments("/monitoring-subscription/"); + endpointResolutionOutcome.GetResult().AddPathSegments("/monitoring-subscription"); return CreateMonitoringSubscription2020_05_31Outcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, @@ -1215,7 +1215,7 @@ DeleteMonitoringSubscription2020_05_31Outcome CloudFrontClient::DeleteMonitoring AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteMonitoringSubscription2020_05_31, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); endpointResolutionOutcome.GetResult().AddPathSegments("/2020-05-31/distributions/"); endpointResolutionOutcome.GetResult().AddPathSegment(request.GetDistributionId()); - endpointResolutionOutcome.GetResult().AddPathSegments("/monitoring-subscription/"); + endpointResolutionOutcome.GetResult().AddPathSegments("/monitoring-subscription"); return DeleteMonitoringSubscription2020_05_31Outcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_DELETE)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, @@ -1341,7 +1341,7 @@ DeleteRealtimeLogConfig2020_05_31Outcome CloudFrontClient::DeleteRealtimeLogConf *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteRealtimeLogConfig2020_05_31, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/2020-05-31/delete-realtime-log-config/"); + endpointResolutionOutcome.GetResult().AddPathSegments("/2020-05-31/delete-realtime-log-config"); return DeleteRealtimeLogConfig2020_05_31Outcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, @@ -2050,7 +2050,7 @@ GetMonitoringSubscription2020_05_31Outcome CloudFrontClient::GetMonitoringSubscr AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, GetMonitoringSubscription2020_05_31, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); endpointResolutionOutcome.GetResult().AddPathSegments("/2020-05-31/distributions/"); endpointResolutionOutcome.GetResult().AddPathSegment(request.GetDistributionId()); - endpointResolutionOutcome.GetResult().AddPathSegments("/monitoring-subscription/"); + endpointResolutionOutcome.GetResult().AddPathSegments("/monitoring-subscription"); return GetMonitoringSubscription2020_05_31Outcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, @@ -2278,7 +2278,7 @@ GetRealtimeLogConfig2020_05_31Outcome CloudFrontClient::GetRealtimeLogConfig2020 *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, GetRealtimeLogConfig2020_05_31, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/2020-05-31/get-realtime-log-config/"); + endpointResolutionOutcome.GetResult().AddPathSegments("/2020-05-31/get-realtime-log-config"); return GetRealtimeLogConfig2020_05_31Outcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, @@ -2683,7 +2683,7 @@ ListDistributionsByRealtimeLogConfig2020_05_31Outcome CloudFrontClient::ListDist *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListDistributionsByRealtimeLogConfig2020_05_31, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/2020-05-31/distributionsByRealtimeLogConfig/"); + endpointResolutionOutcome.GetResult().AddPathSegments("/2020-05-31/distributionsByRealtimeLogConfig"); return ListDistributionsByRealtimeLogConfig2020_05_31Outcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, @@ -3733,7 +3733,7 @@ UpdateRealtimeLogConfig2020_05_31Outcome CloudFrontClient::UpdateRealtimeLogConf *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, UpdateRealtimeLogConfig2020_05_31, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/2020-05-31/realtime-log-config/"); + endpointResolutionOutcome.GetResult().AddPathSegments("/2020-05-31/realtime-log-config"); return UpdateRealtimeLogConfig2020_05_31Outcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_PUT)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, diff --git a/generated/src/aws-cpp-sdk-cloudfront/source/CloudFrontErrors.cpp b/generated/src/aws-cpp-sdk-cloudfront/source/CloudFrontErrors.cpp index a1251fee74e..cc00f467c7d 100644 --- a/generated/src/aws-cpp-sdk-cloudfront/source/CloudFrontErrors.cpp +++ b/generated/src/aws-cpp-sdk-cloudfront/source/CloudFrontErrors.cpp @@ -52,8 +52,8 @@ static const int ORIGIN_REQUEST_POLICY_IN_USE_HASH = HashingUtils::HashString("O static const int TOO_MANY_DISTRIBUTIONS_ASSOCIATED_TO_ORIGIN_ACCESS_CONTROL_HASH = HashingUtils::HashString("TooManyDistributionsAssociatedToOriginAccessControl"); static const int NO_SUCH_CACHE_POLICY_HASH = HashingUtils::HashString("NoSuchCachePolicy"); static const int NO_SUCH_FIELD_LEVEL_ENCRYPTION_PROFILE_HASH = HashingUtils::HashString("NoSuchFieldLevelEncryptionProfile"); -static const int INVALID_ORIGIN_READ_TIMEOUT_HASH = HashingUtils::HashString("InvalidOriginReadTimeout"); static const int INVALID_ORIGIN_KEEPALIVE_TIMEOUT_HASH = HashingUtils::HashString("InvalidOriginKeepaliveTimeout"); +static const int INVALID_ORIGIN_READ_TIMEOUT_HASH = HashingUtils::HashString("InvalidOriginReadTimeout"); static const int ENTITY_ALREADY_EXISTS_HASH = HashingUtils::HashString("EntityAlreadyExists"); static const int TOO_MANY_CLOUD_FRONT_ORIGIN_ACCESS_IDENTITIES_HASH = HashingUtils::HashString("TooManyCloudFrontOriginAccessIdentities"); static const int INVALID_HEADERS_FOR_S3_ORIGIN_HASH = HashingUtils::HashString("InvalidHeadersForS3Origin"); @@ -82,8 +82,8 @@ static const int TOO_MANY_COOKIES_IN_CACHE_POLICY_HASH = HashingUtils::HashStrin static const int FUNCTION_SIZE_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("FunctionSizeLimitExceeded"); static const int UNSUPPORTED_OPERATION_HASH = HashingUtils::HashString("UnsupportedOperation"); static const int INVALID_FUNCTION_ASSOCIATION_HASH = HashingUtils::HashString("InvalidFunctionAssociation"); -static const int TOO_MANY_LAMBDA_FUNCTION_ASSOCIATIONS_HASH = HashingUtils::HashString("TooManyLambdaFunctionAssociations"); static const int TOO_MANY_FUNCTION_ASSOCIATIONS_HASH = HashingUtils::HashString("TooManyFunctionAssociations"); +static const int TOO_MANY_LAMBDA_FUNCTION_ASSOCIATIONS_HASH = HashingUtils::HashString("TooManyLambdaFunctionAssociations"); static const int TOO_MANY_QUERY_STRINGS_IN_ORIGIN_REQUEST_POLICY_HASH = HashingUtils::HashString("TooManyQueryStringsInOriginRequestPolicy"); static const int TOO_MANY_PUBLIC_KEYS_HASH = HashingUtils::HashString("TooManyPublicKeys"); static const int TOO_MANY_CONTINUOUS_DEPLOYMENT_POLICIES_HASH = HashingUtils::HashString("TooManyContinuousDeploymentPolicies"); @@ -128,8 +128,8 @@ static const int TRUSTED_KEY_GROUP_DOES_NOT_EXIST_HASH = HashingUtils::HashStrin static const int ILLEGAL_ORIGIN_ACCESS_CONFIGURATION_HASH = HashingUtils::HashString("IllegalOriginAccessConfiguration"); static const int QUERY_ARG_PROFILE_EMPTY_HASH = HashingUtils::HashString("QueryArgProfileEmpty"); static const int ENTITY_NOT_FOUND_HASH = HashingUtils::HashString("EntityNotFound"); -static const int PRECONDITION_FAILED_HASH = HashingUtils::HashString("PreconditionFailed"); static const int TOO_MANY_DISTRIBUTIONS_ASSOCIATED_TO_CACHE_POLICY_HASH = HashingUtils::HashString("TooManyDistributionsAssociatedToCachePolicy"); +static const int PRECONDITION_FAILED_HASH = HashingUtils::HashString("PreconditionFailed"); static const int NO_SUCH_ORIGIN_ACCESS_CONTROL_HASH = HashingUtils::HashString("NoSuchOriginAccessControl"); static const int TOO_MANY_COOKIE_NAMES_IN_WHITE_LIST_HASH = HashingUtils::HashString("TooManyCookieNamesInWhiteList"); static const int TEST_FUNCTION_FAILED_HASH = HashingUtils::HashString("TestFunctionFailed"); @@ -346,14 +346,14 @@ static bool GetErrorForNameHelper0(int hashCode, AWSError& error) error = AWSError(static_cast(CloudFrontErrors::NO_SUCH_FIELD_LEVEL_ENCRYPTION_PROFILE), RetryableType::NOT_RETRYABLE); return true; } - else if (hashCode == INVALID_ORIGIN_READ_TIMEOUT_HASH) + else if (hashCode == INVALID_ORIGIN_KEEPALIVE_TIMEOUT_HASH) { - error = AWSError(static_cast(CloudFrontErrors::INVALID_ORIGIN_READ_TIMEOUT), RetryableType::NOT_RETRYABLE); + error = AWSError(static_cast(CloudFrontErrors::INVALID_ORIGIN_KEEPALIVE_TIMEOUT), RetryableType::NOT_RETRYABLE); return true; } - else if (hashCode == INVALID_ORIGIN_KEEPALIVE_TIMEOUT_HASH) + else if (hashCode == INVALID_ORIGIN_READ_TIMEOUT_HASH) { - error = AWSError(static_cast(CloudFrontErrors::INVALID_ORIGIN_KEEPALIVE_TIMEOUT), RetryableType::NOT_RETRYABLE); + error = AWSError(static_cast(CloudFrontErrors::INVALID_ORIGIN_READ_TIMEOUT), RetryableType::NOT_RETRYABLE); return true; } else if (hashCode == ENTITY_ALREADY_EXISTS_HASH) @@ -496,14 +496,14 @@ static bool GetErrorForNameHelper0(int hashCode, AWSError& error) error = AWSError(static_cast(CloudFrontErrors::INVALID_FUNCTION_ASSOCIATION), RetryableType::NOT_RETRYABLE); return true; } - else if (hashCode == TOO_MANY_LAMBDA_FUNCTION_ASSOCIATIONS_HASH) + else if (hashCode == TOO_MANY_FUNCTION_ASSOCIATIONS_HASH) { - error = AWSError(static_cast(CloudFrontErrors::TOO_MANY_LAMBDA_FUNCTION_ASSOCIATIONS), RetryableType::NOT_RETRYABLE); + error = AWSError(static_cast(CloudFrontErrors::TOO_MANY_FUNCTION_ASSOCIATIONS), RetryableType::NOT_RETRYABLE); return true; } - else if (hashCode == TOO_MANY_FUNCTION_ASSOCIATIONS_HASH) + else if (hashCode == TOO_MANY_LAMBDA_FUNCTION_ASSOCIATIONS_HASH) { - error = AWSError(static_cast(CloudFrontErrors::TOO_MANY_FUNCTION_ASSOCIATIONS), RetryableType::NOT_RETRYABLE); + error = AWSError(static_cast(CloudFrontErrors::TOO_MANY_LAMBDA_FUNCTION_ASSOCIATIONS), RetryableType::NOT_RETRYABLE); return true; } else if (hashCode == TOO_MANY_QUERY_STRINGS_IN_ORIGIN_REQUEST_POLICY_HASH) @@ -726,14 +726,14 @@ static bool GetErrorForNameHelper0(int hashCode, AWSError& error) error = AWSError(static_cast(CloudFrontErrors::ENTITY_NOT_FOUND), RetryableType::NOT_RETRYABLE); return true; } - else if (hashCode == PRECONDITION_FAILED_HASH) + else if (hashCode == TOO_MANY_DISTRIBUTIONS_ASSOCIATED_TO_CACHE_POLICY_HASH) { - error = AWSError(static_cast(CloudFrontErrors::PRECONDITION_FAILED), RetryableType::NOT_RETRYABLE); + error = AWSError(static_cast(CloudFrontErrors::TOO_MANY_DISTRIBUTIONS_ASSOCIATED_TO_CACHE_POLICY), RetryableType::NOT_RETRYABLE); return true; } - else if (hashCode == TOO_MANY_DISTRIBUTIONS_ASSOCIATED_TO_CACHE_POLICY_HASH) + else if (hashCode == PRECONDITION_FAILED_HASH) { - error = AWSError(static_cast(CloudFrontErrors::TOO_MANY_DISTRIBUTIONS_ASSOCIATED_TO_CACHE_POLICY), RetryableType::NOT_RETRYABLE); + error = AWSError(static_cast(CloudFrontErrors::PRECONDITION_FAILED), RetryableType::NOT_RETRYABLE); return true; } else if (hashCode == NO_SUCH_ORIGIN_ACCESS_CONTROL_HASH) diff --git a/generated/src/aws-cpp-sdk-inspector2/include/aws/inspector2/Inspector2Client.h b/generated/src/aws-cpp-sdk-inspector2/include/aws/inspector2/Inspector2Client.h index e2f5314918a..a2a7e0c1fc0 100644 --- a/generated/src/aws-cpp-sdk-inspector2/include/aws/inspector2/Inspector2Client.h +++ b/generated/src/aws-cpp-sdk-inspector2/include/aws/inspector2/Inspector2Client.h @@ -990,7 +990,7 @@ namespace Inspector2 } /** - *

      Lists coverage details for you environment.

      See Also:

      Lists coverage details for your environment.

      See Also:

      AWS * API Reference

      */ @@ -1358,7 +1358,7 @@ namespace Inspector2 /** *

      Stops a CIS session. This API is used by the Amazon Inspector SSM plugin to * communicate with the Amazon Inspector service. The Amazon Inspector SSM plugin - * calls this API to start a CIS scan session for the scan ID supplied by the + * calls this API to stop a CIS scan session for the scan ID supplied by the * service.

      See Also:

      AWS * API Reference

      diff --git a/generated/src/aws-cpp-sdk-inspector2/include/aws/inspector2/model/CoverageFilterCriteria.h b/generated/src/aws-cpp-sdk-inspector2/include/aws/inspector2/model/CoverageFilterCriteria.h index f136ce0c43a..51f019b24da 100644 --- a/generated/src/aws-cpp-sdk-inspector2/include/aws/inspector2/model/CoverageFilterCriteria.h +++ b/generated/src/aws-cpp-sdk-inspector2/include/aws/inspector2/model/CoverageFilterCriteria.h @@ -207,7 +207,7 @@ namespace Model ///@{ /** *

      The filter to search for Amazon EC2 instance coverage by scan mode. Valid - * values are EC2_SSM_AGENT_BASED and EC2_HYBRID.

      + * values are EC2_SSM_AGENT_BASED and EC2_AGENTLESS.

      */ inline const Aws::Vector& GetScanMode() const{ return m_scanMode; } inline bool ScanModeHasBeenSet() const { return m_scanModeHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-inspector2/include/aws/inspector2/model/CreateSbomExportRequest.h b/generated/src/aws-cpp-sdk-inspector2/include/aws/inspector2/model/CreateSbomExportRequest.h index 4fa40e28ab1..4f3f20e5fc9 100644 --- a/generated/src/aws-cpp-sdk-inspector2/include/aws/inspector2/model/CreateSbomExportRequest.h +++ b/generated/src/aws-cpp-sdk-inspector2/include/aws/inspector2/model/CreateSbomExportRequest.h @@ -60,7 +60,10 @@ namespace Model ///@} ///@{ - + /** + *

      Contains details of the Amazon S3 bucket and KMS key used to export + * findings.

      + */ inline const Destination& GetS3Destination() const{ return m_s3Destination; } inline bool S3DestinationHasBeenSet() const { return m_s3DestinationHasBeenSet; } inline void SetS3Destination(const Destination& value) { m_s3DestinationHasBeenSet = true; m_s3Destination = value; } diff --git a/generated/src/aws-cpp-sdk-inspector2/include/aws/inspector2/model/FindingDetail.h b/generated/src/aws-cpp-sdk-inspector2/include/aws/inspector2/model/FindingDetail.h index f0dfb6b0280..a9e0cb56ddd 100644 --- a/generated/src/aws-cpp-sdk-inspector2/include/aws/inspector2/model/FindingDetail.h +++ b/generated/src/aws-cpp-sdk-inspector2/include/aws/inspector2/model/FindingDetail.h @@ -43,7 +43,10 @@ namespace Model ///@{ - + /** + *

      The Cybersecurity and Infrastructure Security Agency (CISA) details for a + * specific vulnerability.

      + */ inline const CisaData& GetCisaData() const{ return m_cisaData; } inline bool CisaDataHasBeenSet() const { return m_cisaDataHasBeenSet; } inline void SetCisaData(const CisaData& value) { m_cisaDataHasBeenSet = true; m_cisaData = value; } @@ -93,7 +96,9 @@ namespace Model ///@} ///@{ - + /** + *

      Contains information on when this exploit was observed.

      + */ inline const ExploitObserved& GetExploitObserved() const{ return m_exploitObserved; } inline bool ExploitObservedHasBeenSet() const { return m_exploitObservedHasBeenSet; } inline void SetExploitObserved(const ExploitObserved& value) { m_exploitObservedHasBeenSet = true; m_exploitObserved = value; } diff --git a/generated/src/aws-cpp-sdk-inspector2/include/aws/inspector2/model/GetSbomExportResult.h b/generated/src/aws-cpp-sdk-inspector2/include/aws/inspector2/model/GetSbomExportResult.h index 79e8a0bd17b..b8a3cbd0714 100644 --- a/generated/src/aws-cpp-sdk-inspector2/include/aws/inspector2/model/GetSbomExportResult.h +++ b/generated/src/aws-cpp-sdk-inspector2/include/aws/inspector2/model/GetSbomExportResult.h @@ -98,7 +98,10 @@ namespace Model ///@} ///@{ - + /** + *

      Contains details of the Amazon S3 bucket and KMS key used to export + * findings

      + */ inline const Destination& GetS3Destination() const{ return m_s3Destination; } inline void SetS3Destination(const Destination& value) { m_s3Destination = value; } inline void SetS3Destination(Destination&& value) { m_s3Destination = std::move(value); } diff --git a/generated/src/aws-cpp-sdk-inspector2/include/aws/inspector2/model/LambdaFunctionAggregationResponse.h b/generated/src/aws-cpp-sdk-inspector2/include/aws/inspector2/model/LambdaFunctionAggregationResponse.h index d37d1b447d3..24cc40ce284 100644 --- a/generated/src/aws-cpp-sdk-inspector2/include/aws/inspector2/model/LambdaFunctionAggregationResponse.h +++ b/generated/src/aws-cpp-sdk-inspector2/include/aws/inspector2/model/LambdaFunctionAggregationResponse.h @@ -132,7 +132,9 @@ namespace Model ///@} ///@{ - + /** + *

      An object that contains the counts of aggregated finding per severity.

      + */ inline const SeverityCounts& GetSeverityCounts() const{ return m_severityCounts; } inline bool SeverityCountsHasBeenSet() const { return m_severityCountsHasBeenSet; } inline void SetSeverityCounts(const SeverityCounts& value) { m_severityCountsHasBeenSet = true; m_severityCounts = value; } diff --git a/generated/src/aws-cpp-sdk-inspector2/include/aws/inspector2/model/LambdaLayerAggregationResponse.h b/generated/src/aws-cpp-sdk-inspector2/include/aws/inspector2/model/LambdaLayerAggregationResponse.h index 529467fbe6c..d351bea2186 100644 --- a/generated/src/aws-cpp-sdk-inspector2/include/aws/inspector2/model/LambdaLayerAggregationResponse.h +++ b/generated/src/aws-cpp-sdk-inspector2/include/aws/inspector2/model/LambdaLayerAggregationResponse.h @@ -98,7 +98,9 @@ namespace Model ///@} ///@{ - + /** + *

      An object that contains the counts of aggregated finding per severity.

      + */ inline const SeverityCounts& GetSeverityCounts() const{ return m_severityCounts; } inline bool SeverityCountsHasBeenSet() const { return m_severityCountsHasBeenSet; } inline void SetSeverityCounts(const SeverityCounts& value) { m_severityCountsHasBeenSet = true; m_severityCounts = value; } diff --git a/generated/src/aws-cpp-sdk-inspector2/include/aws/inspector2/model/PackageFilter.h b/generated/src/aws-cpp-sdk-inspector2/include/aws/inspector2/model/PackageFilter.h index f38732786b3..61e0f928a01 100644 --- a/generated/src/aws-cpp-sdk-inspector2/include/aws/inspector2/model/PackageFilter.h +++ b/generated/src/aws-cpp-sdk-inspector2/include/aws/inspector2/model/PackageFilter.h @@ -64,6 +64,18 @@ namespace Model inline PackageFilter& WithEpoch(NumberFilter&& value) { SetEpoch(std::move(value)); return *this;} ///@} + ///@{ + /** + *

      An object that contains details on the package file path to filter on.

      + */ + inline const StringFilter& GetFilePath() const{ return m_filePath; } + inline bool FilePathHasBeenSet() const { return m_filePathHasBeenSet; } + inline void SetFilePath(const StringFilter& value) { m_filePathHasBeenSet = true; m_filePath = value; } + inline void SetFilePath(StringFilter&& value) { m_filePathHasBeenSet = true; m_filePath = std::move(value); } + inline PackageFilter& WithFilePath(const StringFilter& value) { SetFilePath(value); return *this;} + inline PackageFilter& WithFilePath(StringFilter&& value) { SetFilePath(std::move(value)); return *this;} + ///@} + ///@{ /** *

      An object that contains details on the name of the package to filter on.

      @@ -89,7 +101,9 @@ namespace Model ///@} ///@{ - + /** + *

      An object that describes the details of a string filter.

      + */ inline const StringFilter& GetSourceLambdaLayerArn() const{ return m_sourceLambdaLayerArn; } inline bool SourceLambdaLayerArnHasBeenSet() const { return m_sourceLambdaLayerArnHasBeenSet; } inline void SetSourceLambdaLayerArn(const StringFilter& value) { m_sourceLambdaLayerArnHasBeenSet = true; m_sourceLambdaLayerArn = value; } @@ -129,6 +143,9 @@ namespace Model NumberFilter m_epoch; bool m_epochHasBeenSet = false; + StringFilter m_filePath; + bool m_filePathHasBeenSet = false; + StringFilter m_name; bool m_nameHasBeenSet = false; diff --git a/generated/src/aws-cpp-sdk-inspector2/include/aws/inspector2/model/PackageManager.h b/generated/src/aws-cpp-sdk-inspector2/include/aws/inspector2/model/PackageManager.h index 3ed88e94e3d..48f6a9d7fce 100644 --- a/generated/src/aws-cpp-sdk-inspector2/include/aws/inspector2/model/PackageManager.h +++ b/generated/src/aws-cpp-sdk-inspector2/include/aws/inspector2/model/PackageManager.h @@ -32,7 +32,8 @@ namespace Model PYTHONPKG, NODEPKG, POM, - GEMSPEC + GEMSPEC, + DOTNET_CORE }; namespace PackageManagerMapper diff --git a/generated/src/aws-cpp-sdk-inspector2/include/aws/inspector2/model/ResourceState.h b/generated/src/aws-cpp-sdk-inspector2/include/aws/inspector2/model/ResourceState.h index b3abc37d0f7..12a2f0d1ab6 100644 --- a/generated/src/aws-cpp-sdk-inspector2/include/aws/inspector2/model/ResourceState.h +++ b/generated/src/aws-cpp-sdk-inspector2/include/aws/inspector2/model/ResourceState.h @@ -65,7 +65,10 @@ namespace Model ///@} ///@{ - + /** + *

      An object that described the state of Amazon Inspector scans for an + * account.

      + */ inline const State& GetLambda() const{ return m_lambda; } inline bool LambdaHasBeenSet() const { return m_lambdaHasBeenSet; } inline void SetLambda(const State& value) { m_lambdaHasBeenSet = true; m_lambda = value; } @@ -75,7 +78,10 @@ namespace Model ///@} ///@{ - + /** + *

      An object that described the state of Amazon Inspector scans for an + * account.

      + */ inline const State& GetLambdaCode() const{ return m_lambdaCode; } inline bool LambdaCodeHasBeenSet() const { return m_lambdaCodeHasBeenSet; } inline void SetLambdaCode(const State& value) { m_lambdaCodeHasBeenSet = true; m_lambdaCode = value; } diff --git a/generated/src/aws-cpp-sdk-inspector2/include/aws/inspector2/model/Runtime.h b/generated/src/aws-cpp-sdk-inspector2/include/aws/inspector2/model/Runtime.h index 2874d5d06df..7b8aca1cf42 100644 --- a/generated/src/aws-cpp-sdk-inspector2/include/aws/inspector2/model/Runtime.h +++ b/generated/src/aws-cpp-sdk-inspector2/include/aws/inspector2/model/Runtime.h @@ -30,7 +30,13 @@ namespace Model NODEJS_18_X, GO_1_X, JAVA_17, - PYTHON_3_10 + PYTHON_3_10, + PYTHON_3_11, + DOTNETCORE_3_1, + DOTNET_6, + DOTNET_7, + RUBY_2_7, + RUBY_3_2 }; namespace RuntimeMapper diff --git a/generated/src/aws-cpp-sdk-inspector2/source/model/PackageFilter.cpp b/generated/src/aws-cpp-sdk-inspector2/source/model/PackageFilter.cpp index bdc422e6360..4e1eccf9d7d 100644 --- a/generated/src/aws-cpp-sdk-inspector2/source/model/PackageFilter.cpp +++ b/generated/src/aws-cpp-sdk-inspector2/source/model/PackageFilter.cpp @@ -21,6 +21,7 @@ namespace Model PackageFilter::PackageFilter() : m_architectureHasBeenSet(false), m_epochHasBeenSet(false), + m_filePathHasBeenSet(false), m_nameHasBeenSet(false), m_releaseHasBeenSet(false), m_sourceLambdaLayerArnHasBeenSet(false), @@ -51,6 +52,13 @@ PackageFilter& PackageFilter::operator =(JsonView jsonValue) m_epochHasBeenSet = true; } + if(jsonValue.ValueExists("filePath")) + { + m_filePath = jsonValue.GetObject("filePath"); + + m_filePathHasBeenSet = true; + } + if(jsonValue.ValueExists("name")) { m_name = jsonValue.GetObject("name"); @@ -105,6 +113,12 @@ JsonValue PackageFilter::Jsonize() const } + if(m_filePathHasBeenSet) + { + payload.WithObject("filePath", m_filePath.Jsonize()); + + } + if(m_nameHasBeenSet) { payload.WithObject("name", m_name.Jsonize()); diff --git a/generated/src/aws-cpp-sdk-inspector2/source/model/PackageManager.cpp b/generated/src/aws-cpp-sdk-inspector2/source/model/PackageManager.cpp index 6c4a582612a..82658d6c50b 100644 --- a/generated/src/aws-cpp-sdk-inspector2/source/model/PackageManager.cpp +++ b/generated/src/aws-cpp-sdk-inspector2/source/model/PackageManager.cpp @@ -37,6 +37,7 @@ namespace Aws static const int NODEPKG_HASH = HashingUtils::HashString("NODEPKG"); static const int POM_HASH = HashingUtils::HashString("POM"); static const int GEMSPEC_HASH = HashingUtils::HashString("GEMSPEC"); + static const int DOTNET_CORE_HASH = HashingUtils::HashString("DOTNET_CORE"); PackageManager GetPackageManagerForName(const Aws::String& name) @@ -110,6 +111,10 @@ namespace Aws { return PackageManager::GEMSPEC; } + else if (hashCode == DOTNET_CORE_HASH) + { + return PackageManager::DOTNET_CORE; + } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { @@ -160,6 +165,8 @@ namespace Aws return "POM"; case PackageManager::GEMSPEC: return "GEMSPEC"; + case PackageManager::DOTNET_CORE: + return "DOTNET_CORE"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) diff --git a/generated/src/aws-cpp-sdk-inspector2/source/model/Runtime.cpp b/generated/src/aws-cpp-sdk-inspector2/source/model/Runtime.cpp index 6dfb232222f..a4236b019e8 100644 --- a/generated/src/aws-cpp-sdk-inspector2/source/model/Runtime.cpp +++ b/generated/src/aws-cpp-sdk-inspector2/source/model/Runtime.cpp @@ -35,6 +35,12 @@ namespace Aws static const int GO_1_X_HASH = HashingUtils::HashString("GO_1_X"); static const int JAVA_17_HASH = HashingUtils::HashString("JAVA_17"); static const int PYTHON_3_10_HASH = HashingUtils::HashString("PYTHON_3_10"); + static const int PYTHON_3_11_HASH = HashingUtils::HashString("PYTHON_3_11"); + static const int DOTNETCORE_3_1_HASH = HashingUtils::HashString("DOTNETCORE_3_1"); + static const int DOTNET_6_HASH = HashingUtils::HashString("DOTNET_6"); + static const int DOTNET_7_HASH = HashingUtils::HashString("DOTNET_7"); + static const int RUBY_2_7_HASH = HashingUtils::HashString("RUBY_2_7"); + static const int RUBY_3_2_HASH = HashingUtils::HashString("RUBY_3_2"); Runtime GetRuntimeForName(const Aws::String& name) @@ -100,6 +106,30 @@ namespace Aws { return Runtime::PYTHON_3_10; } + else if (hashCode == PYTHON_3_11_HASH) + { + return Runtime::PYTHON_3_11; + } + else if (hashCode == DOTNETCORE_3_1_HASH) + { + return Runtime::DOTNETCORE_3_1; + } + else if (hashCode == DOTNET_6_HASH) + { + return Runtime::DOTNET_6; + } + else if (hashCode == DOTNET_7_HASH) + { + return Runtime::DOTNET_7; + } + else if (hashCode == RUBY_2_7_HASH) + { + return Runtime::RUBY_2_7; + } + else if (hashCode == RUBY_3_2_HASH) + { + return Runtime::RUBY_3_2; + } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { @@ -146,6 +176,18 @@ namespace Aws return "JAVA_17"; case Runtime::PYTHON_3_10: return "PYTHON_3_10"; + case Runtime::PYTHON_3_11: + return "PYTHON_3_11"; + case Runtime::DOTNETCORE_3_1: + return "DOTNETCORE_3_1"; + case Runtime::DOTNET_6: + return "DOTNET_6"; + case Runtime::DOTNET_7: + return "DOTNET_7"; + case Runtime::RUBY_2_7: + return "RUBY_2_7"; + case Runtime::RUBY_3_2: + return "RUBY_3_2"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) diff --git a/generated/src/aws-cpp-sdk-lambda/include/aws/lambda/model/Runtime.h b/generated/src/aws-cpp-sdk-lambda/include/aws/lambda/model/Runtime.h index a9090651f6d..e8ebe9088d2 100644 --- a/generated/src/aws-cpp-sdk-lambda/include/aws/lambda/model/Runtime.h +++ b/generated/src/aws-cpp-sdk-lambda/include/aws/lambda/model/Runtime.h @@ -53,7 +53,8 @@ namespace Model nodejs20_x, provided_al2023, python3_12, - java21 + java21, + python3_13 }; namespace RuntimeMapper diff --git a/generated/src/aws-cpp-sdk-lambda/source/model/Runtime.cpp b/generated/src/aws-cpp-sdk-lambda/source/model/Runtime.cpp index 6b98cde4053..72606c60c8e 100644 --- a/generated/src/aws-cpp-sdk-lambda/source/model/Runtime.cpp +++ b/generated/src/aws-cpp-sdk-lambda/source/model/Runtime.cpp @@ -58,6 +58,7 @@ namespace Aws static const int provided_al2023_HASH = HashingUtils::HashString("provided.al2023"); static const int python3_12_HASH = HashingUtils::HashString("python3.12"); static const int java21_HASH = HashingUtils::HashString("java21"); + static const int python3_13_HASH = HashingUtils::HashString("python3.13"); Runtime GetRuntimeForName(const Aws::String& name) @@ -215,6 +216,10 @@ namespace Aws { return Runtime::java21; } + else if (hashCode == python3_13_HASH) + { + return Runtime::python3_13; + } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { @@ -307,6 +312,8 @@ namespace Aws return "python3.12"; case Runtime::java21: return "java21"; + case Runtime::python3_13: + return "python3.13"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) diff --git a/generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/OpenSearchServiceClient.h b/generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/OpenSearchServiceClient.h index 6af4ab42868..b71a6f83e33 100644 --- a/generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/OpenSearchServiceClient.h +++ b/generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/OpenSearchServiceClient.h @@ -196,6 +196,32 @@ namespace OpenSearchService return SubmitAsync(&OpenSearchServiceClient::AssociatePackage, request, handler, context); } + /** + *

      Operation in the Amazon OpenSearch Service API for associating multiple + * packages with a domain simultaneously.

      See Also:

      AWS + * API Reference

      + */ + virtual Model::AssociatePackagesOutcome AssociatePackages(const Model::AssociatePackagesRequest& request) const; + + /** + * A Callable wrapper for AssociatePackages that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::AssociatePackagesOutcomeCallable AssociatePackagesCallable(const AssociatePackagesRequestT& request) const + { + return SubmitCallable(&OpenSearchServiceClient::AssociatePackages, request); + } + + /** + * An Async wrapper for AssociatePackages that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void AssociatePackagesAsync(const AssociatePackagesRequestT& request, const AssociatePackagesResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&OpenSearchServiceClient::AssociatePackages, request, handler, context); + } + /** *

      Provides access to an Amazon OpenSearch Service domain through the use of an * interface VPC endpoint.

      See Also:

      Dissociates multiple packages from a domain simulatneously.

      See + * Also:

      AWS + * API Reference

      + */ + virtual Model::DissociatePackagesOutcome DissociatePackages(const Model::DissociatePackagesRequest& request) const; + + /** + * A Callable wrapper for DissociatePackages that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::DissociatePackagesOutcomeCallable DissociatePackagesCallable(const DissociatePackagesRequestT& request) const + { + return SubmitCallable(&OpenSearchServiceClient::DissociatePackages, request); + } + + /** + * An Async wrapper for DissociatePackages that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void DissociatePackagesAsync(const DissociatePackagesRequestT& request, const DissociatePackagesResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&OpenSearchServiceClient::DissociatePackages, request, handler, context); + } + /** *

      Check the configuration and status of an existing OpenSearch * Application.

      See Also:

      Updates the scope of a package. Scope of the package defines users who can + * view and associate a package.

      See Also:

      AWS + * API Reference

      + */ + virtual Model::UpdatePackageScopeOutcome UpdatePackageScope(const Model::UpdatePackageScopeRequest& request) const; + + /** + * A Callable wrapper for UpdatePackageScope that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::UpdatePackageScopeOutcomeCallable UpdatePackageScopeCallable(const UpdatePackageScopeRequestT& request) const + { + return SubmitCallable(&OpenSearchServiceClient::UpdatePackageScope, request); + } + + /** + * An Async wrapper for UpdatePackageScope that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void UpdatePackageScopeAsync(const UpdatePackageScopeRequestT& request, const UpdatePackageScopeResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&OpenSearchServiceClient::UpdatePackageScope, request, handler, context); + } + /** *

      Reschedules a planned domain configuration change for a later time. This * change can be a scheduled #include #include +#include #include #include #include @@ -52,6 +53,7 @@ #include #include #include +#include #include #include #include @@ -81,6 +83,7 @@ #include #include #include +#include #include #include #include @@ -139,6 +142,7 @@ namespace Aws class AddDataSourceRequest; class AddTagsRequest; class AssociatePackageRequest; + class AssociatePackagesRequest; class AuthorizeVpcEndpointAccessRequest; class CancelDomainConfigChangeRequest; class CancelServiceSoftwareUpdateRequest; @@ -170,6 +174,7 @@ namespace Aws class DescribeReservedInstancesRequest; class DescribeVpcEndpointsRequest; class DissociatePackageRequest; + class DissociatePackagesRequest; class GetApplicationRequest; class GetCompatibleVersionsRequest; class GetDataSourceRequest; @@ -200,6 +205,7 @@ namespace Aws class UpdateDataSourceRequest; class UpdateDomainConfigRequest; class UpdatePackageRequest; + class UpdatePackageScopeRequest; class UpdateScheduledActionRequest; class UpdateVpcEndpointRequest; class UpgradeDomainRequest; @@ -210,6 +216,7 @@ namespace Aws typedef Aws::Utils::Outcome AddDataSourceOutcome; typedef Aws::Utils::Outcome AddTagsOutcome; typedef Aws::Utils::Outcome AssociatePackageOutcome; + typedef Aws::Utils::Outcome AssociatePackagesOutcome; typedef Aws::Utils::Outcome AuthorizeVpcEndpointAccessOutcome; typedef Aws::Utils::Outcome CancelDomainConfigChangeOutcome; typedef Aws::Utils::Outcome CancelServiceSoftwareUpdateOutcome; @@ -241,6 +248,7 @@ namespace Aws typedef Aws::Utils::Outcome DescribeReservedInstancesOutcome; typedef Aws::Utils::Outcome DescribeVpcEndpointsOutcome; typedef Aws::Utils::Outcome DissociatePackageOutcome; + typedef Aws::Utils::Outcome DissociatePackagesOutcome; typedef Aws::Utils::Outcome GetApplicationOutcome; typedef Aws::Utils::Outcome GetCompatibleVersionsOutcome; typedef Aws::Utils::Outcome GetDataSourceOutcome; @@ -271,6 +279,7 @@ namespace Aws typedef Aws::Utils::Outcome UpdateDataSourceOutcome; typedef Aws::Utils::Outcome UpdateDomainConfigOutcome; typedef Aws::Utils::Outcome UpdatePackageOutcome; + typedef Aws::Utils::Outcome UpdatePackageScopeOutcome; typedef Aws::Utils::Outcome UpdateScheduledActionOutcome; typedef Aws::Utils::Outcome UpdateVpcEndpointOutcome; typedef Aws::Utils::Outcome UpgradeDomainOutcome; @@ -281,6 +290,7 @@ namespace Aws typedef std::future AddDataSourceOutcomeCallable; typedef std::future AddTagsOutcomeCallable; typedef std::future AssociatePackageOutcomeCallable; + typedef std::future AssociatePackagesOutcomeCallable; typedef std::future AuthorizeVpcEndpointAccessOutcomeCallable; typedef std::future CancelDomainConfigChangeOutcomeCallable; typedef std::future CancelServiceSoftwareUpdateOutcomeCallable; @@ -312,6 +322,7 @@ namespace Aws typedef std::future DescribeReservedInstancesOutcomeCallable; typedef std::future DescribeVpcEndpointsOutcomeCallable; typedef std::future DissociatePackageOutcomeCallable; + typedef std::future DissociatePackagesOutcomeCallable; typedef std::future GetApplicationOutcomeCallable; typedef std::future GetCompatibleVersionsOutcomeCallable; typedef std::future GetDataSourceOutcomeCallable; @@ -342,6 +353,7 @@ namespace Aws typedef std::future UpdateDataSourceOutcomeCallable; typedef std::future UpdateDomainConfigOutcomeCallable; typedef std::future UpdatePackageOutcomeCallable; + typedef std::future UpdatePackageScopeOutcomeCallable; typedef std::future UpdateScheduledActionOutcomeCallable; typedef std::future UpdateVpcEndpointOutcomeCallable; typedef std::future UpgradeDomainOutcomeCallable; @@ -355,6 +367,7 @@ namespace Aws typedef std::function&) > AddDataSourceResponseReceivedHandler; typedef std::function&) > AddTagsResponseReceivedHandler; typedef std::function&) > AssociatePackageResponseReceivedHandler; + typedef std::function&) > AssociatePackagesResponseReceivedHandler; typedef std::function&) > AuthorizeVpcEndpointAccessResponseReceivedHandler; typedef std::function&) > CancelDomainConfigChangeResponseReceivedHandler; typedef std::function&) > CancelServiceSoftwareUpdateResponseReceivedHandler; @@ -386,6 +399,7 @@ namespace Aws typedef std::function&) > DescribeReservedInstancesResponseReceivedHandler; typedef std::function&) > DescribeVpcEndpointsResponseReceivedHandler; typedef std::function&) > DissociatePackageResponseReceivedHandler; + typedef std::function&) > DissociatePackagesResponseReceivedHandler; typedef std::function&) > GetApplicationResponseReceivedHandler; typedef std::function&) > GetCompatibleVersionsResponseReceivedHandler; typedef std::function&) > GetDataSourceResponseReceivedHandler; @@ -416,6 +430,7 @@ namespace Aws typedef std::function&) > UpdateDataSourceResponseReceivedHandler; typedef std::function&) > UpdateDomainConfigResponseReceivedHandler; typedef std::function&) > UpdatePackageResponseReceivedHandler; + typedef std::function&) > UpdatePackageScopeResponseReceivedHandler; typedef std::function&) > UpdateScheduledActionResponseReceivedHandler; typedef std::function&) > UpdateVpcEndpointResponseReceivedHandler; typedef std::function&) > UpgradeDomainResponseReceivedHandler; diff --git a/generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/AssociatePackageRequest.h b/generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/AssociatePackageRequest.h index 02c5711461d..3e6c4a3efc1 100644 --- a/generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/AssociatePackageRequest.h +++ b/generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/AssociatePackageRequest.h @@ -7,6 +7,8 @@ #include #include #include +#include +#include #include namespace Aws @@ -64,6 +66,35 @@ namespace Model inline AssociatePackageRequest& WithDomainName(Aws::String&& value) { SetDomainName(std::move(value)); return *this;} inline AssociatePackageRequest& WithDomainName(const char* value) { SetDomainName(value); return *this;} ///@} + + ///@{ + /** + *

      A list of package IDs that must be associated with the domain before the + * package specified in the request can be associated.

      + */ + inline const Aws::Vector& GetPrerequisitePackageIDList() const{ return m_prerequisitePackageIDList; } + inline bool PrerequisitePackageIDListHasBeenSet() const { return m_prerequisitePackageIDListHasBeenSet; } + inline void SetPrerequisitePackageIDList(const Aws::Vector& value) { m_prerequisitePackageIDListHasBeenSet = true; m_prerequisitePackageIDList = value; } + inline void SetPrerequisitePackageIDList(Aws::Vector&& value) { m_prerequisitePackageIDListHasBeenSet = true; m_prerequisitePackageIDList = std::move(value); } + inline AssociatePackageRequest& WithPrerequisitePackageIDList(const Aws::Vector& value) { SetPrerequisitePackageIDList(value); return *this;} + inline AssociatePackageRequest& WithPrerequisitePackageIDList(Aws::Vector&& value) { SetPrerequisitePackageIDList(std::move(value)); return *this;} + inline AssociatePackageRequest& AddPrerequisitePackageIDList(const Aws::String& value) { m_prerequisitePackageIDListHasBeenSet = true; m_prerequisitePackageIDList.push_back(value); return *this; } + inline AssociatePackageRequest& AddPrerequisitePackageIDList(Aws::String&& value) { m_prerequisitePackageIDListHasBeenSet = true; m_prerequisitePackageIDList.push_back(std::move(value)); return *this; } + inline AssociatePackageRequest& AddPrerequisitePackageIDList(const char* value) { m_prerequisitePackageIDListHasBeenSet = true; m_prerequisitePackageIDList.push_back(value); return *this; } + ///@} + + ///@{ + /** + *

      The configuration for associating a package with an Amazon OpenSearch Service + * domain.

      + */ + inline const PackageAssociationConfiguration& GetAssociationConfiguration() const{ return m_associationConfiguration; } + inline bool AssociationConfigurationHasBeenSet() const { return m_associationConfigurationHasBeenSet; } + inline void SetAssociationConfiguration(const PackageAssociationConfiguration& value) { m_associationConfigurationHasBeenSet = true; m_associationConfiguration = value; } + inline void SetAssociationConfiguration(PackageAssociationConfiguration&& value) { m_associationConfigurationHasBeenSet = true; m_associationConfiguration = std::move(value); } + inline AssociatePackageRequest& WithAssociationConfiguration(const PackageAssociationConfiguration& value) { SetAssociationConfiguration(value); return *this;} + inline AssociatePackageRequest& WithAssociationConfiguration(PackageAssociationConfiguration&& value) { SetAssociationConfiguration(std::move(value)); return *this;} + ///@} private: Aws::String m_packageID; @@ -71,6 +102,12 @@ namespace Model Aws::String m_domainName; bool m_domainNameHasBeenSet = false; + + Aws::Vector m_prerequisitePackageIDList; + bool m_prerequisitePackageIDListHasBeenSet = false; + + PackageAssociationConfiguration m_associationConfiguration; + bool m_associationConfigurationHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/AssociatePackagesRequest.h b/generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/AssociatePackagesRequest.h new file mode 100644 index 00000000000..cb1b1a3b356 --- /dev/null +++ b/generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/AssociatePackagesRequest.h @@ -0,0 +1,74 @@ +/** + * 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 OpenSearchService +{ +namespace Model +{ + + /** + */ + class AssociatePackagesRequest : public OpenSearchServiceRequest + { + public: + AWS_OPENSEARCHSERVICE_API AssociatePackagesRequest(); + + // 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 "AssociatePackages"; } + + AWS_OPENSEARCHSERVICE_API Aws::String SerializePayload() const override; + + + ///@{ + /** + *

      A list of packages and their prerequisites to be associated with a + * domain.

      + */ + inline const Aws::Vector& GetPackageList() const{ return m_packageList; } + inline bool PackageListHasBeenSet() const { return m_packageListHasBeenSet; } + inline void SetPackageList(const Aws::Vector& value) { m_packageListHasBeenSet = true; m_packageList = value; } + inline void SetPackageList(Aws::Vector&& value) { m_packageListHasBeenSet = true; m_packageList = std::move(value); } + inline AssociatePackagesRequest& WithPackageList(const Aws::Vector& value) { SetPackageList(value); return *this;} + inline AssociatePackagesRequest& WithPackageList(Aws::Vector&& value) { SetPackageList(std::move(value)); return *this;} + inline AssociatePackagesRequest& AddPackageList(const PackageDetailsForAssociation& value) { m_packageListHasBeenSet = true; m_packageList.push_back(value); return *this; } + inline AssociatePackagesRequest& AddPackageList(PackageDetailsForAssociation&& value) { m_packageListHasBeenSet = true; m_packageList.push_back(std::move(value)); return *this; } + ///@} + + ///@{ + + inline const Aws::String& GetDomainName() const{ return m_domainName; } + inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; } + inline void SetDomainName(const Aws::String& value) { m_domainNameHasBeenSet = true; m_domainName = value; } + inline void SetDomainName(Aws::String&& value) { m_domainNameHasBeenSet = true; m_domainName = std::move(value); } + inline void SetDomainName(const char* value) { m_domainNameHasBeenSet = true; m_domainName.assign(value); } + inline AssociatePackagesRequest& WithDomainName(const Aws::String& value) { SetDomainName(value); return *this;} + inline AssociatePackagesRequest& WithDomainName(Aws::String&& value) { SetDomainName(std::move(value)); return *this;} + inline AssociatePackagesRequest& WithDomainName(const char* value) { SetDomainName(value); return *this;} + ///@} + private: + + Aws::Vector m_packageList; + bool m_packageListHasBeenSet = false; + + Aws::String m_domainName; + bool m_domainNameHasBeenSet = false; + }; + +} // namespace Model +} // namespace OpenSearchService +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/AssociatePackagesResult.h b/generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/AssociatePackagesResult.h new file mode 100644 index 00000000000..c6afc6fb1a3 --- /dev/null +++ b/generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/AssociatePackagesResult.h @@ -0,0 +1,69 @@ +/** + * 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 OpenSearchService +{ +namespace Model +{ + class AssociatePackagesResult + { + public: + AWS_OPENSEARCHSERVICE_API AssociatePackagesResult(); + AWS_OPENSEARCHSERVICE_API AssociatePackagesResult(const Aws::AmazonWebServiceResult& result); + AWS_OPENSEARCHSERVICE_API AssociatePackagesResult& operator=(const Aws::AmazonWebServiceResult& result); + + + ///@{ + /** + *

      List of information about packages that are associated with a domain.

      + */ + inline const Aws::Vector& GetDomainPackageDetailsList() const{ return m_domainPackageDetailsList; } + inline void SetDomainPackageDetailsList(const Aws::Vector& value) { m_domainPackageDetailsList = value; } + inline void SetDomainPackageDetailsList(Aws::Vector&& value) { m_domainPackageDetailsList = std::move(value); } + inline AssociatePackagesResult& WithDomainPackageDetailsList(const Aws::Vector& value) { SetDomainPackageDetailsList(value); return *this;} + inline AssociatePackagesResult& WithDomainPackageDetailsList(Aws::Vector&& value) { SetDomainPackageDetailsList(std::move(value)); return *this;} + inline AssociatePackagesResult& AddDomainPackageDetailsList(const DomainPackageDetails& value) { m_domainPackageDetailsList.push_back(value); return *this; } + inline AssociatePackagesResult& AddDomainPackageDetailsList(DomainPackageDetails&& value) { m_domainPackageDetailsList.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 AssociatePackagesResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + inline AssociatePackagesResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + inline AssociatePackagesResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + ///@} + private: + + Aws::Vector m_domainPackageDetailsList; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace OpenSearchService +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/CreatePackageRequest.h b/generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/CreatePackageRequest.h index d7113b1fb5a..8c08176def4 100644 --- a/generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/CreatePackageRequest.h +++ b/generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/CreatePackageRequest.h @@ -9,6 +9,9 @@ #include #include #include +#include +#include +#include #include namespace Aws @@ -89,6 +92,59 @@ namespace Model inline CreatePackageRequest& WithPackageSource(const PackageSource& value) { SetPackageSource(value); return *this;} inline CreatePackageRequest& WithPackageSource(PackageSource&& value) { SetPackageSource(std::move(value)); return *this;} ///@} + + ///@{ + /** + *

      The configuration parameters for the package being created.

      + */ + inline const PackageConfiguration& GetPackageConfiguration() const{ return m_packageConfiguration; } + inline bool PackageConfigurationHasBeenSet() const { return m_packageConfigurationHasBeenSet; } + inline void SetPackageConfiguration(const PackageConfiguration& value) { m_packageConfigurationHasBeenSet = true; m_packageConfiguration = value; } + inline void SetPackageConfiguration(PackageConfiguration&& value) { m_packageConfigurationHasBeenSet = true; m_packageConfiguration = std::move(value); } + inline CreatePackageRequest& WithPackageConfiguration(const PackageConfiguration& value) { SetPackageConfiguration(value); return *this;} + inline CreatePackageRequest& WithPackageConfiguration(PackageConfiguration&& value) { SetPackageConfiguration(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

      The version of the Amazon OpenSearch Service engine for which is compatible + * with the package. This can only be specified for package type + * ZIP-PLUGIN

      + */ + inline const Aws::String& GetEngineVersion() const{ return m_engineVersion; } + inline bool EngineVersionHasBeenSet() const { return m_engineVersionHasBeenSet; } + inline void SetEngineVersion(const Aws::String& value) { m_engineVersionHasBeenSet = true; m_engineVersion = value; } + inline void SetEngineVersion(Aws::String&& value) { m_engineVersionHasBeenSet = true; m_engineVersion = std::move(value); } + inline void SetEngineVersion(const char* value) { m_engineVersionHasBeenSet = true; m_engineVersion.assign(value); } + inline CreatePackageRequest& WithEngineVersion(const Aws::String& value) { SetEngineVersion(value); return *this;} + inline CreatePackageRequest& WithEngineVersion(Aws::String&& value) { SetEngineVersion(std::move(value)); return *this;} + inline CreatePackageRequest& WithEngineVersion(const char* value) { SetEngineVersion(value); return *this;} + ///@} + + ///@{ + /** + *

      The vending options for the package being created. They determine if the + * package can be vended to other users.

      + */ + inline const PackageVendingOptions& GetPackageVendingOptions() const{ return m_packageVendingOptions; } + inline bool PackageVendingOptionsHasBeenSet() const { return m_packageVendingOptionsHasBeenSet; } + inline void SetPackageVendingOptions(const PackageVendingOptions& value) { m_packageVendingOptionsHasBeenSet = true; m_packageVendingOptions = value; } + inline void SetPackageVendingOptions(PackageVendingOptions&& value) { m_packageVendingOptionsHasBeenSet = true; m_packageVendingOptions = std::move(value); } + inline CreatePackageRequest& WithPackageVendingOptions(const PackageVendingOptions& value) { SetPackageVendingOptions(value); return *this;} + inline CreatePackageRequest& WithPackageVendingOptions(PackageVendingOptions&& value) { SetPackageVendingOptions(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

      The encryption parameters for the package being created.

      + */ + inline const PackageEncryptionOptions& GetPackageEncryptionOptions() const{ return m_packageEncryptionOptions; } + inline bool PackageEncryptionOptionsHasBeenSet() const { return m_packageEncryptionOptionsHasBeenSet; } + inline void SetPackageEncryptionOptions(const PackageEncryptionOptions& value) { m_packageEncryptionOptionsHasBeenSet = true; m_packageEncryptionOptions = value; } + inline void SetPackageEncryptionOptions(PackageEncryptionOptions&& value) { m_packageEncryptionOptionsHasBeenSet = true; m_packageEncryptionOptions = std::move(value); } + inline CreatePackageRequest& WithPackageEncryptionOptions(const PackageEncryptionOptions& value) { SetPackageEncryptionOptions(value); return *this;} + inline CreatePackageRequest& WithPackageEncryptionOptions(PackageEncryptionOptions&& value) { SetPackageEncryptionOptions(std::move(value)); return *this;} + ///@} private: Aws::String m_packageName; @@ -102,6 +158,18 @@ namespace Model PackageSource m_packageSource; bool m_packageSourceHasBeenSet = false; + + PackageConfiguration m_packageConfiguration; + bool m_packageConfigurationHasBeenSet = false; + + Aws::String m_engineVersion; + bool m_engineVersionHasBeenSet = false; + + PackageVendingOptions m_packageVendingOptions; + bool m_packageVendingOptionsHasBeenSet = false; + + PackageEncryptionOptions m_packageEncryptionOptions; + bool m_packageEncryptionOptionsHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/DescribePackagesFilterName.h b/generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/DescribePackagesFilterName.h index f907b2c7992..24670cd4856 100644 --- a/generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/DescribePackagesFilterName.h +++ b/generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/DescribePackagesFilterName.h @@ -20,7 +20,8 @@ namespace Model PackageName, PackageStatus, PackageType, - EngineVersion + EngineVersion, + PackageOwner }; namespace DescribePackagesFilterNameMapper diff --git a/generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/DissociatePackagesRequest.h b/generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/DissociatePackagesRequest.h new file mode 100644 index 00000000000..1fb4e8e19fc --- /dev/null +++ b/generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/DissociatePackagesRequest.h @@ -0,0 +1,73 @@ +/** + * 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 OpenSearchService +{ +namespace Model +{ + + /** + */ + class DissociatePackagesRequest : public OpenSearchServiceRequest + { + public: + AWS_OPENSEARCHSERVICE_API DissociatePackagesRequest(); + + // 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 "DissociatePackages"; } + + AWS_OPENSEARCHSERVICE_API Aws::String SerializePayload() const override; + + + ///@{ + /** + *

      A list of package IDs to be dissociated from a domain.

      + */ + inline const Aws::Vector& GetPackageList() const{ return m_packageList; } + inline bool PackageListHasBeenSet() const { return m_packageListHasBeenSet; } + inline void SetPackageList(const Aws::Vector& value) { m_packageListHasBeenSet = true; m_packageList = value; } + inline void SetPackageList(Aws::Vector&& value) { m_packageListHasBeenSet = true; m_packageList = std::move(value); } + inline DissociatePackagesRequest& WithPackageList(const Aws::Vector& value) { SetPackageList(value); return *this;} + inline DissociatePackagesRequest& WithPackageList(Aws::Vector&& value) { SetPackageList(std::move(value)); return *this;} + inline DissociatePackagesRequest& AddPackageList(const Aws::String& value) { m_packageListHasBeenSet = true; m_packageList.push_back(value); return *this; } + inline DissociatePackagesRequest& AddPackageList(Aws::String&& value) { m_packageListHasBeenSet = true; m_packageList.push_back(std::move(value)); return *this; } + inline DissociatePackagesRequest& AddPackageList(const char* value) { m_packageListHasBeenSet = true; m_packageList.push_back(value); return *this; } + ///@} + + ///@{ + + inline const Aws::String& GetDomainName() const{ return m_domainName; } + inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; } + inline void SetDomainName(const Aws::String& value) { m_domainNameHasBeenSet = true; m_domainName = value; } + inline void SetDomainName(Aws::String&& value) { m_domainNameHasBeenSet = true; m_domainName = std::move(value); } + inline void SetDomainName(const char* value) { m_domainNameHasBeenSet = true; m_domainName.assign(value); } + inline DissociatePackagesRequest& WithDomainName(const Aws::String& value) { SetDomainName(value); return *this;} + inline DissociatePackagesRequest& WithDomainName(Aws::String&& value) { SetDomainName(std::move(value)); return *this;} + inline DissociatePackagesRequest& WithDomainName(const char* value) { SetDomainName(value); return *this;} + ///@} + private: + + Aws::Vector m_packageList; + bool m_packageListHasBeenSet = false; + + Aws::String m_domainName; + bool m_domainNameHasBeenSet = false; + }; + +} // namespace Model +} // namespace OpenSearchService +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/DissociatePackagesResult.h b/generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/DissociatePackagesResult.h new file mode 100644 index 00000000000..d46abcf19a4 --- /dev/null +++ b/generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/DissociatePackagesResult.h @@ -0,0 +1,70 @@ +/** + * 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 OpenSearchService +{ +namespace Model +{ + class DissociatePackagesResult + { + public: + AWS_OPENSEARCHSERVICE_API DissociatePackagesResult(); + AWS_OPENSEARCHSERVICE_API DissociatePackagesResult(const Aws::AmazonWebServiceResult& result); + AWS_OPENSEARCHSERVICE_API DissociatePackagesResult& operator=(const Aws::AmazonWebServiceResult& result); + + + ///@{ + /** + *

      A list of package details for the packages that were dissociated from the + * domain.

      + */ + inline const Aws::Vector& GetDomainPackageDetailsList() const{ return m_domainPackageDetailsList; } + inline void SetDomainPackageDetailsList(const Aws::Vector& value) { m_domainPackageDetailsList = value; } + inline void SetDomainPackageDetailsList(Aws::Vector&& value) { m_domainPackageDetailsList = std::move(value); } + inline DissociatePackagesResult& WithDomainPackageDetailsList(const Aws::Vector& value) { SetDomainPackageDetailsList(value); return *this;} + inline DissociatePackagesResult& WithDomainPackageDetailsList(Aws::Vector&& value) { SetDomainPackageDetailsList(std::move(value)); return *this;} + inline DissociatePackagesResult& AddDomainPackageDetailsList(const DomainPackageDetails& value) { m_domainPackageDetailsList.push_back(value); return *this; } + inline DissociatePackagesResult& AddDomainPackageDetailsList(DomainPackageDetails&& value) { m_domainPackageDetailsList.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 DissociatePackagesResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + inline DissociatePackagesResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + inline DissociatePackagesResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + ///@} + private: + + Aws::Vector m_domainPackageDetailsList; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace OpenSearchService +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/DomainPackageDetails.h b/generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/DomainPackageDetails.h index c9b64d023e0..e935bd432d5 100644 --- a/generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/DomainPackageDetails.h +++ b/generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/DomainPackageDetails.h @@ -9,7 +9,9 @@ #include #include #include +#include #include +#include #include namespace Aws @@ -136,6 +138,22 @@ namespace Model inline DomainPackageDetails& WithPackageVersion(const char* value) { SetPackageVersion(value); return *this;} ///@} + ///@{ + /** + *

      A list of package IDs that must be associated with the domain before or with + * the package can be associated.

      + */ + inline const Aws::Vector& GetPrerequisitePackageIDList() const{ return m_prerequisitePackageIDList; } + inline bool PrerequisitePackageIDListHasBeenSet() const { return m_prerequisitePackageIDListHasBeenSet; } + inline void SetPrerequisitePackageIDList(const Aws::Vector& value) { m_prerequisitePackageIDListHasBeenSet = true; m_prerequisitePackageIDList = value; } + inline void SetPrerequisitePackageIDList(Aws::Vector&& value) { m_prerequisitePackageIDListHasBeenSet = true; m_prerequisitePackageIDList = std::move(value); } + inline DomainPackageDetails& WithPrerequisitePackageIDList(const Aws::Vector& value) { SetPrerequisitePackageIDList(value); return *this;} + inline DomainPackageDetails& WithPrerequisitePackageIDList(Aws::Vector&& value) { SetPrerequisitePackageIDList(std::move(value)); return *this;} + inline DomainPackageDetails& AddPrerequisitePackageIDList(const Aws::String& value) { m_prerequisitePackageIDListHasBeenSet = true; m_prerequisitePackageIDList.push_back(value); return *this; } + inline DomainPackageDetails& AddPrerequisitePackageIDList(Aws::String&& value) { m_prerequisitePackageIDListHasBeenSet = true; m_prerequisitePackageIDList.push_back(std::move(value)); return *this; } + inline DomainPackageDetails& AddPrerequisitePackageIDList(const char* value) { m_prerequisitePackageIDListHasBeenSet = true; m_prerequisitePackageIDList.push_back(value); return *this; } + ///@} + ///@{ /** *

      The relative path of the package on the OpenSearch Service cluster nodes. @@ -163,6 +181,19 @@ namespace Model inline DomainPackageDetails& WithErrorDetails(const ErrorDetails& value) { SetErrorDetails(value); return *this;} inline DomainPackageDetails& WithErrorDetails(ErrorDetails&& value) { SetErrorDetails(std::move(value)); return *this;} ///@} + + ///@{ + /** + *

      The configuration for associating a package with an Amazon OpenSearch Service + * domain.

      + */ + inline const PackageAssociationConfiguration& GetAssociationConfiguration() const{ return m_associationConfiguration; } + inline bool AssociationConfigurationHasBeenSet() const { return m_associationConfigurationHasBeenSet; } + inline void SetAssociationConfiguration(const PackageAssociationConfiguration& value) { m_associationConfigurationHasBeenSet = true; m_associationConfiguration = value; } + inline void SetAssociationConfiguration(PackageAssociationConfiguration&& value) { m_associationConfigurationHasBeenSet = true; m_associationConfiguration = std::move(value); } + inline DomainPackageDetails& WithAssociationConfiguration(const PackageAssociationConfiguration& value) { SetAssociationConfiguration(value); return *this;} + inline DomainPackageDetails& WithAssociationConfiguration(PackageAssociationConfiguration&& value) { SetAssociationConfiguration(std::move(value)); return *this;} + ///@} private: Aws::String m_packageID; @@ -186,11 +217,17 @@ namespace Model Aws::String m_packageVersion; bool m_packageVersionHasBeenSet = false; + Aws::Vector m_prerequisitePackageIDList; + bool m_prerequisitePackageIDListHasBeenSet = false; + Aws::String m_referencePath; bool m_referencePathHasBeenSet = false; ErrorDetails m_errorDetails; bool m_errorDetailsHasBeenSet = false; + + PackageAssociationConfiguration m_associationConfiguration; + bool m_associationConfigurationHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/KeyStoreAccessOption.h b/generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/KeyStoreAccessOption.h new file mode 100644 index 00000000000..9691b74a50e --- /dev/null +++ b/generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/KeyStoreAccessOption.h @@ -0,0 +1,75 @@ +/** + * 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 OpenSearchService +{ +namespace Model +{ + + /** + *

      The configuration parameters to enable access to the key store required by + * the package.

      See Also:

      AWS + * API Reference

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

      Role ARN to access the KeyStore Key

      + */ + inline const Aws::String& GetKeyAccessRoleArn() const{ return m_keyAccessRoleArn; } + inline bool KeyAccessRoleArnHasBeenSet() const { return m_keyAccessRoleArnHasBeenSet; } + inline void SetKeyAccessRoleArn(const Aws::String& value) { m_keyAccessRoleArnHasBeenSet = true; m_keyAccessRoleArn = value; } + inline void SetKeyAccessRoleArn(Aws::String&& value) { m_keyAccessRoleArnHasBeenSet = true; m_keyAccessRoleArn = std::move(value); } + inline void SetKeyAccessRoleArn(const char* value) { m_keyAccessRoleArnHasBeenSet = true; m_keyAccessRoleArn.assign(value); } + inline KeyStoreAccessOption& WithKeyAccessRoleArn(const Aws::String& value) { SetKeyAccessRoleArn(value); return *this;} + inline KeyStoreAccessOption& WithKeyAccessRoleArn(Aws::String&& value) { SetKeyAccessRoleArn(std::move(value)); return *this;} + inline KeyStoreAccessOption& WithKeyAccessRoleArn(const char* value) { SetKeyAccessRoleArn(value); return *this;} + ///@} + + ///@{ + /** + *

      This indicates whether Key Store access is enabled

      + */ + inline bool GetKeyStoreAccessEnabled() const{ return m_keyStoreAccessEnabled; } + inline bool KeyStoreAccessEnabledHasBeenSet() const { return m_keyStoreAccessEnabledHasBeenSet; } + inline void SetKeyStoreAccessEnabled(bool value) { m_keyStoreAccessEnabledHasBeenSet = true; m_keyStoreAccessEnabled = value; } + inline KeyStoreAccessOption& WithKeyStoreAccessEnabled(bool value) { SetKeyStoreAccessEnabled(value); return *this;} + ///@} + private: + + Aws::String m_keyAccessRoleArn; + bool m_keyAccessRoleArnHasBeenSet = false; + + bool m_keyStoreAccessEnabled; + bool m_keyStoreAccessEnabledHasBeenSet = false; + }; + +} // namespace Model +} // namespace OpenSearchService +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/PackageAssociationConfiguration.h b/generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/PackageAssociationConfiguration.h new file mode 100644 index 00000000000..e1c0682f836 --- /dev/null +++ b/generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/PackageAssociationConfiguration.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 + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace OpenSearchService +{ +namespace Model +{ + + /** + *

      The configuration for associating a package with a domain.

      See + * Also:

      AWS + * API Reference

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

      The configuration parameters to enable accessing the key store required by + * the package.

      + */ + inline const KeyStoreAccessOption& GetKeyStoreAccessOption() const{ return m_keyStoreAccessOption; } + inline bool KeyStoreAccessOptionHasBeenSet() const { return m_keyStoreAccessOptionHasBeenSet; } + inline void SetKeyStoreAccessOption(const KeyStoreAccessOption& value) { m_keyStoreAccessOptionHasBeenSet = true; m_keyStoreAccessOption = value; } + inline void SetKeyStoreAccessOption(KeyStoreAccessOption&& value) { m_keyStoreAccessOptionHasBeenSet = true; m_keyStoreAccessOption = std::move(value); } + inline PackageAssociationConfiguration& WithKeyStoreAccessOption(const KeyStoreAccessOption& value) { SetKeyStoreAccessOption(value); return *this;} + inline PackageAssociationConfiguration& WithKeyStoreAccessOption(KeyStoreAccessOption&& value) { SetKeyStoreAccessOption(std::move(value)); return *this;} + ///@} + private: + + KeyStoreAccessOption m_keyStoreAccessOption; + bool m_keyStoreAccessOptionHasBeenSet = false; + }; + +} // namespace Model +} // namespace OpenSearchService +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/PackageConfiguration.h b/generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/PackageConfiguration.h new file mode 100644 index 00000000000..39857bdc0a3 --- /dev/null +++ b/generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/PackageConfiguration.h @@ -0,0 +1,106 @@ +/** + * 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 OpenSearchService +{ +namespace Model +{ + + /** + *

      The configuration parameters for a package.

      See Also:

      AWS + * API Reference

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

      The license requirements for the package.

      + */ + inline const RequirementLevel& GetLicenseRequirement() const{ return m_licenseRequirement; } + inline bool LicenseRequirementHasBeenSet() const { return m_licenseRequirementHasBeenSet; } + inline void SetLicenseRequirement(const RequirementLevel& value) { m_licenseRequirementHasBeenSet = true; m_licenseRequirement = value; } + inline void SetLicenseRequirement(RequirementLevel&& value) { m_licenseRequirementHasBeenSet = true; m_licenseRequirement = std::move(value); } + inline PackageConfiguration& WithLicenseRequirement(const RequirementLevel& value) { SetLicenseRequirement(value); return *this;} + inline PackageConfiguration& WithLicenseRequirement(RequirementLevel&& value) { SetLicenseRequirement(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

      The relative file path for the license associated with the package.

      + */ + inline const Aws::String& GetLicenseFilepath() const{ return m_licenseFilepath; } + inline bool LicenseFilepathHasBeenSet() const { return m_licenseFilepathHasBeenSet; } + inline void SetLicenseFilepath(const Aws::String& value) { m_licenseFilepathHasBeenSet = true; m_licenseFilepath = value; } + inline void SetLicenseFilepath(Aws::String&& value) { m_licenseFilepathHasBeenSet = true; m_licenseFilepath = std::move(value); } + inline void SetLicenseFilepath(const char* value) { m_licenseFilepathHasBeenSet = true; m_licenseFilepath.assign(value); } + inline PackageConfiguration& WithLicenseFilepath(const Aws::String& value) { SetLicenseFilepath(value); return *this;} + inline PackageConfiguration& WithLicenseFilepath(Aws::String&& value) { SetLicenseFilepath(std::move(value)); return *this;} + inline PackageConfiguration& WithLicenseFilepath(const char* value) { SetLicenseFilepath(value); return *this;} + ///@} + + ///@{ + /** + *

      The configuration requirements for the package.

      + */ + inline const RequirementLevel& GetConfigurationRequirement() const{ return m_configurationRequirement; } + inline bool ConfigurationRequirementHasBeenSet() const { return m_configurationRequirementHasBeenSet; } + inline void SetConfigurationRequirement(const RequirementLevel& value) { m_configurationRequirementHasBeenSet = true; m_configurationRequirement = value; } + inline void SetConfigurationRequirement(RequirementLevel&& value) { m_configurationRequirementHasBeenSet = true; m_configurationRequirement = std::move(value); } + inline PackageConfiguration& WithConfigurationRequirement(const RequirementLevel& value) { SetConfigurationRequirement(value); return *this;} + inline PackageConfiguration& WithConfigurationRequirement(RequirementLevel&& value) { SetConfigurationRequirement(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

      This indicates whether a B/G deployment is required for updating the + * configuration that the plugin is prerequisite for.

      + */ + inline bool GetRequiresRestartForConfigurationUpdate() const{ return m_requiresRestartForConfigurationUpdate; } + inline bool RequiresRestartForConfigurationUpdateHasBeenSet() const { return m_requiresRestartForConfigurationUpdateHasBeenSet; } + inline void SetRequiresRestartForConfigurationUpdate(bool value) { m_requiresRestartForConfigurationUpdateHasBeenSet = true; m_requiresRestartForConfigurationUpdate = value; } + inline PackageConfiguration& WithRequiresRestartForConfigurationUpdate(bool value) { SetRequiresRestartForConfigurationUpdate(value); return *this;} + ///@} + private: + + RequirementLevel m_licenseRequirement; + bool m_licenseRequirementHasBeenSet = false; + + Aws::String m_licenseFilepath; + bool m_licenseFilepathHasBeenSet = false; + + RequirementLevel m_configurationRequirement; + bool m_configurationRequirementHasBeenSet = false; + + bool m_requiresRestartForConfigurationUpdate; + bool m_requiresRestartForConfigurationUpdateHasBeenSet = false; + }; + +} // namespace Model +} // namespace OpenSearchService +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/PackageDetails.h b/generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/PackageDetails.h index 59cb504d323..a2176de92aa 100644 --- a/generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/PackageDetails.h +++ b/generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/PackageDetails.h @@ -11,6 +11,10 @@ #include #include #include +#include +#include +#include +#include #include namespace Aws @@ -189,6 +193,73 @@ namespace Model inline PackageDetails& WithAvailablePluginProperties(const PluginProperties& value) { SetAvailablePluginProperties(value); return *this;} inline PackageDetails& WithAvailablePluginProperties(PluginProperties&& value) { SetAvailablePluginProperties(std::move(value)); return *this;} ///@} + + ///@{ + /** + *

      This represents the available configuration parameters for the package.

      + */ + inline const PackageConfiguration& GetAvailablePackageConfiguration() const{ return m_availablePackageConfiguration; } + inline bool AvailablePackageConfigurationHasBeenSet() const { return m_availablePackageConfigurationHasBeenSet; } + inline void SetAvailablePackageConfiguration(const PackageConfiguration& value) { m_availablePackageConfigurationHasBeenSet = true; m_availablePackageConfiguration = value; } + inline void SetAvailablePackageConfiguration(PackageConfiguration&& value) { m_availablePackageConfigurationHasBeenSet = true; m_availablePackageConfiguration = std::move(value); } + inline PackageDetails& WithAvailablePackageConfiguration(const PackageConfiguration& value) { SetAvailablePackageConfiguration(value); return *this;} + inline PackageDetails& WithAvailablePackageConfiguration(PackageConfiguration&& value) { SetAvailablePackageConfiguration(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

      A list of users who are allowed to view and associate the package. This + * field is only visible to the owner of a package.

      + */ + inline const Aws::Vector& GetAllowListedUserList() const{ return m_allowListedUserList; } + inline bool AllowListedUserListHasBeenSet() const { return m_allowListedUserListHasBeenSet; } + inline void SetAllowListedUserList(const Aws::Vector& value) { m_allowListedUserListHasBeenSet = true; m_allowListedUserList = value; } + inline void SetAllowListedUserList(Aws::Vector&& value) { m_allowListedUserListHasBeenSet = true; m_allowListedUserList = std::move(value); } + inline PackageDetails& WithAllowListedUserList(const Aws::Vector& value) { SetAllowListedUserList(value); return *this;} + inline PackageDetails& WithAllowListedUserList(Aws::Vector&& value) { SetAllowListedUserList(std::move(value)); return *this;} + inline PackageDetails& AddAllowListedUserList(const Aws::String& value) { m_allowListedUserListHasBeenSet = true; m_allowListedUserList.push_back(value); return *this; } + inline PackageDetails& AddAllowListedUserList(Aws::String&& value) { m_allowListedUserListHasBeenSet = true; m_allowListedUserList.push_back(std::move(value)); return *this; } + inline PackageDetails& AddAllowListedUserList(const char* value) { m_allowListedUserListHasBeenSet = true; m_allowListedUserList.push_back(value); return *this; } + ///@} + + ///@{ + /** + *

      The owner of the package who is allowed to create/update a package and add + * users to the package scope.

      + */ + inline const Aws::String& GetPackageOwner() const{ return m_packageOwner; } + inline bool PackageOwnerHasBeenSet() const { return m_packageOwnerHasBeenSet; } + inline void SetPackageOwner(const Aws::String& value) { m_packageOwnerHasBeenSet = true; m_packageOwner = value; } + inline void SetPackageOwner(Aws::String&& value) { m_packageOwnerHasBeenSet = true; m_packageOwner = std::move(value); } + inline void SetPackageOwner(const char* value) { m_packageOwnerHasBeenSet = true; m_packageOwner.assign(value); } + inline PackageDetails& WithPackageOwner(const Aws::String& value) { SetPackageOwner(value); return *this;} + inline PackageDetails& WithPackageOwner(Aws::String&& value) { SetPackageOwner(std::move(value)); return *this;} + inline PackageDetails& WithPackageOwner(const char* value) { SetPackageOwner(value); return *this;} + ///@} + + ///@{ + /** + *

      Package Vending Options for a package.

      + */ + inline const PackageVendingOptions& GetPackageVendingOptions() const{ return m_packageVendingOptions; } + inline bool PackageVendingOptionsHasBeenSet() const { return m_packageVendingOptionsHasBeenSet; } + inline void SetPackageVendingOptions(const PackageVendingOptions& value) { m_packageVendingOptionsHasBeenSet = true; m_packageVendingOptions = value; } + inline void SetPackageVendingOptions(PackageVendingOptions&& value) { m_packageVendingOptionsHasBeenSet = true; m_packageVendingOptions = std::move(value); } + inline PackageDetails& WithPackageVendingOptions(const PackageVendingOptions& value) { SetPackageVendingOptions(value); return *this;} + inline PackageDetails& WithPackageVendingOptions(PackageVendingOptions&& value) { SetPackageVendingOptions(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

      Package Encryption Options for a package.

      + */ + inline const PackageEncryptionOptions& GetPackageEncryptionOptions() const{ return m_packageEncryptionOptions; } + inline bool PackageEncryptionOptionsHasBeenSet() const { return m_packageEncryptionOptionsHasBeenSet; } + inline void SetPackageEncryptionOptions(const PackageEncryptionOptions& value) { m_packageEncryptionOptionsHasBeenSet = true; m_packageEncryptionOptions = value; } + inline void SetPackageEncryptionOptions(PackageEncryptionOptions&& value) { m_packageEncryptionOptionsHasBeenSet = true; m_packageEncryptionOptions = std::move(value); } + inline PackageDetails& WithPackageEncryptionOptions(const PackageEncryptionOptions& value) { SetPackageEncryptionOptions(value); return *this;} + inline PackageDetails& WithPackageEncryptionOptions(PackageEncryptionOptions&& value) { SetPackageEncryptionOptions(std::move(value)); return *this;} + ///@} private: Aws::String m_packageID; @@ -223,6 +294,21 @@ namespace Model PluginProperties m_availablePluginProperties; bool m_availablePluginPropertiesHasBeenSet = false; + + PackageConfiguration m_availablePackageConfiguration; + bool m_availablePackageConfigurationHasBeenSet = false; + + Aws::Vector m_allowListedUserList; + bool m_allowListedUserListHasBeenSet = false; + + Aws::String m_packageOwner; + bool m_packageOwnerHasBeenSet = false; + + PackageVendingOptions m_packageVendingOptions; + bool m_packageVendingOptionsHasBeenSet = false; + + PackageEncryptionOptions m_packageEncryptionOptions; + bool m_packageEncryptionOptionsHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/PackageDetailsForAssociation.h b/generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/PackageDetailsForAssociation.h new file mode 100644 index 00000000000..d213b949e73 --- /dev/null +++ b/generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/PackageDetailsForAssociation.h @@ -0,0 +1,98 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace OpenSearchService +{ +namespace Model +{ + + /** + *

      Details of a package that is associated with a domain.

      See + * Also:

      AWS + * API Reference

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

      Internal ID of the package that you want to associate with a domain.

      + */ + inline const Aws::String& GetPackageID() const{ return m_packageID; } + inline bool PackageIDHasBeenSet() const { return m_packageIDHasBeenSet; } + inline void SetPackageID(const Aws::String& value) { m_packageIDHasBeenSet = true; m_packageID = value; } + inline void SetPackageID(Aws::String&& value) { m_packageIDHasBeenSet = true; m_packageID = std::move(value); } + inline void SetPackageID(const char* value) { m_packageIDHasBeenSet = true; m_packageID.assign(value); } + inline PackageDetailsForAssociation& WithPackageID(const Aws::String& value) { SetPackageID(value); return *this;} + inline PackageDetailsForAssociation& WithPackageID(Aws::String&& value) { SetPackageID(std::move(value)); return *this;} + inline PackageDetailsForAssociation& WithPackageID(const char* value) { SetPackageID(value); return *this;} + ///@} + + ///@{ + /** + *

      List of package IDs that must be associated with the domain with or before + * the package can be associated.

      + */ + inline const Aws::Vector& GetPrerequisitePackageIDList() const{ return m_prerequisitePackageIDList; } + inline bool PrerequisitePackageIDListHasBeenSet() const { return m_prerequisitePackageIDListHasBeenSet; } + inline void SetPrerequisitePackageIDList(const Aws::Vector& value) { m_prerequisitePackageIDListHasBeenSet = true; m_prerequisitePackageIDList = value; } + inline void SetPrerequisitePackageIDList(Aws::Vector&& value) { m_prerequisitePackageIDListHasBeenSet = true; m_prerequisitePackageIDList = std::move(value); } + inline PackageDetailsForAssociation& WithPrerequisitePackageIDList(const Aws::Vector& value) { SetPrerequisitePackageIDList(value); return *this;} + inline PackageDetailsForAssociation& WithPrerequisitePackageIDList(Aws::Vector&& value) { SetPrerequisitePackageIDList(std::move(value)); return *this;} + inline PackageDetailsForAssociation& AddPrerequisitePackageIDList(const Aws::String& value) { m_prerequisitePackageIDListHasBeenSet = true; m_prerequisitePackageIDList.push_back(value); return *this; } + inline PackageDetailsForAssociation& AddPrerequisitePackageIDList(Aws::String&& value) { m_prerequisitePackageIDListHasBeenSet = true; m_prerequisitePackageIDList.push_back(std::move(value)); return *this; } + inline PackageDetailsForAssociation& AddPrerequisitePackageIDList(const char* value) { m_prerequisitePackageIDListHasBeenSet = true; m_prerequisitePackageIDList.push_back(value); return *this; } + ///@} + + ///@{ + /** + *

      The configuration parameters for associating the package with a domain.

      + */ + inline const PackageAssociationConfiguration& GetAssociationConfiguration() const{ return m_associationConfiguration; } + inline bool AssociationConfigurationHasBeenSet() const { return m_associationConfigurationHasBeenSet; } + inline void SetAssociationConfiguration(const PackageAssociationConfiguration& value) { m_associationConfigurationHasBeenSet = true; m_associationConfiguration = value; } + inline void SetAssociationConfiguration(PackageAssociationConfiguration&& value) { m_associationConfigurationHasBeenSet = true; m_associationConfiguration = std::move(value); } + inline PackageDetailsForAssociation& WithAssociationConfiguration(const PackageAssociationConfiguration& value) { SetAssociationConfiguration(value); return *this;} + inline PackageDetailsForAssociation& WithAssociationConfiguration(PackageAssociationConfiguration&& value) { SetAssociationConfiguration(std::move(value)); return *this;} + ///@} + private: + + Aws::String m_packageID; + bool m_packageIDHasBeenSet = false; + + Aws::Vector m_prerequisitePackageIDList; + bool m_prerequisitePackageIDListHasBeenSet = false; + + PackageAssociationConfiguration m_associationConfiguration; + bool m_associationConfigurationHasBeenSet = false; + }; + +} // namespace Model +} // namespace OpenSearchService +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/PackageEncryptionOptions.h b/generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/PackageEncryptionOptions.h new file mode 100644 index 00000000000..26d2017ff82 --- /dev/null +++ b/generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/PackageEncryptionOptions.h @@ -0,0 +1,74 @@ +/** + * 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 OpenSearchService +{ +namespace Model +{ + + /** + *

      Encryption options for a package.

      See Also:

      AWS + * API Reference

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

      KMS key ID for encrypting the package.

      + */ + inline const Aws::String& GetKmsKeyIdentifier() const{ return m_kmsKeyIdentifier; } + inline bool KmsKeyIdentifierHasBeenSet() const { return m_kmsKeyIdentifierHasBeenSet; } + inline void SetKmsKeyIdentifier(const Aws::String& value) { m_kmsKeyIdentifierHasBeenSet = true; m_kmsKeyIdentifier = value; } + inline void SetKmsKeyIdentifier(Aws::String&& value) { m_kmsKeyIdentifierHasBeenSet = true; m_kmsKeyIdentifier = std::move(value); } + inline void SetKmsKeyIdentifier(const char* value) { m_kmsKeyIdentifierHasBeenSet = true; m_kmsKeyIdentifier.assign(value); } + inline PackageEncryptionOptions& WithKmsKeyIdentifier(const Aws::String& value) { SetKmsKeyIdentifier(value); return *this;} + inline PackageEncryptionOptions& WithKmsKeyIdentifier(Aws::String&& value) { SetKmsKeyIdentifier(std::move(value)); return *this;} + inline PackageEncryptionOptions& WithKmsKeyIdentifier(const char* value) { SetKmsKeyIdentifier(value); return *this;} + ///@} + + ///@{ + /** + *

      This indicates whether encryption is enabled for the package.

      + */ + inline bool GetEncryptionEnabled() const{ return m_encryptionEnabled; } + inline bool EncryptionEnabledHasBeenSet() const { return m_encryptionEnabledHasBeenSet; } + inline void SetEncryptionEnabled(bool value) { m_encryptionEnabledHasBeenSet = true; m_encryptionEnabled = value; } + inline PackageEncryptionOptions& WithEncryptionEnabled(bool value) { SetEncryptionEnabled(value); return *this;} + ///@} + private: + + Aws::String m_kmsKeyIdentifier; + bool m_kmsKeyIdentifierHasBeenSet = false; + + bool m_encryptionEnabled; + bool m_encryptionEnabledHasBeenSet = false; + }; + +} // namespace Model +} // namespace OpenSearchService +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/PackageScopeOperationEnum.h b/generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/PackageScopeOperationEnum.h new file mode 100644 index 00000000000..439169feec5 --- /dev/null +++ b/generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/PackageScopeOperationEnum.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 OpenSearchService +{ +namespace Model +{ + enum class PackageScopeOperationEnum + { + NOT_SET, + ADD, + OVERRIDE, + REMOVE + }; + +namespace PackageScopeOperationEnumMapper +{ +AWS_OPENSEARCHSERVICE_API PackageScopeOperationEnum GetPackageScopeOperationEnumForName(const Aws::String& name); + +AWS_OPENSEARCHSERVICE_API Aws::String GetNameForPackageScopeOperationEnum(PackageScopeOperationEnum value); +} // namespace PackageScopeOperationEnumMapper +} // namespace Model +} // namespace OpenSearchService +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/PackageType.h b/generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/PackageType.h index b87727b1726..666dc55ba71 100644 --- a/generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/PackageType.h +++ b/generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/PackageType.h @@ -17,7 +17,9 @@ namespace Model { NOT_SET, TXT_DICTIONARY, - ZIP_PLUGIN + ZIP_PLUGIN, + PACKAGE_LICENSE, + PACKAGE_CONFIG }; namespace PackageTypeMapper diff --git a/generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/PackageVendingOptions.h b/generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/PackageVendingOptions.h new file mode 100644 index 00000000000..101f5dd0a94 --- /dev/null +++ b/generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/PackageVendingOptions.h @@ -0,0 +1,57 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace OpenSearchService +{ +namespace Model +{ + + /** + *

      The vending options for a package to determine if the package can be used by + * other users.

      See Also:

      AWS + * API Reference

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

      This indicates whether vending is enabled for the package to determine if + * package can be used by other users.

      + */ + inline bool GetVendingEnabled() const{ return m_vendingEnabled; } + inline bool VendingEnabledHasBeenSet() const { return m_vendingEnabledHasBeenSet; } + inline void SetVendingEnabled(bool value) { m_vendingEnabledHasBeenSet = true; m_vendingEnabled = value; } + inline PackageVendingOptions& WithVendingEnabled(bool value) { SetVendingEnabled(value); return *this;} + ///@} + private: + + bool m_vendingEnabled; + bool m_vendingEnabledHasBeenSet = false; + }; + +} // namespace Model +} // namespace OpenSearchService +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/PackageVersionHistory.h b/generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/PackageVersionHistory.h index 2d66adfb17b..8dbac5b1d5f 100644 --- a/generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/PackageVersionHistory.h +++ b/generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/PackageVersionHistory.h @@ -8,6 +8,7 @@ #include #include #include +#include #include namespace Aws @@ -91,6 +92,18 @@ namespace Model inline PackageVersionHistory& WithPluginProperties(const PluginProperties& value) { SetPluginProperties(value); return *this;} inline PackageVersionHistory& WithPluginProperties(PluginProperties&& value) { SetPluginProperties(std::move(value)); return *this;} ///@} + + ///@{ + /** + *

      The configuration details for a specific version of a package.

      + */ + inline const PackageConfiguration& GetPackageConfiguration() const{ return m_packageConfiguration; } + inline bool PackageConfigurationHasBeenSet() const { return m_packageConfigurationHasBeenSet; } + inline void SetPackageConfiguration(const PackageConfiguration& value) { m_packageConfigurationHasBeenSet = true; m_packageConfiguration = value; } + inline void SetPackageConfiguration(PackageConfiguration&& value) { m_packageConfigurationHasBeenSet = true; m_packageConfiguration = std::move(value); } + inline PackageVersionHistory& WithPackageConfiguration(const PackageConfiguration& value) { SetPackageConfiguration(value); return *this;} + inline PackageVersionHistory& WithPackageConfiguration(PackageConfiguration&& value) { SetPackageConfiguration(std::move(value)); return *this;} + ///@} private: Aws::String m_packageVersion; @@ -104,6 +117,9 @@ namespace Model PluginProperties m_pluginProperties; bool m_pluginPropertiesHasBeenSet = false; + + PackageConfiguration m_packageConfiguration; + bool m_packageConfigurationHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/RequirementLevel.h b/generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/RequirementLevel.h new file mode 100644 index 00000000000..e9fd600738d --- /dev/null +++ b/generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/RequirementLevel.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 OpenSearchService +{ +namespace Model +{ + enum class RequirementLevel + { + NOT_SET, + REQUIRED, + OPTIONAL, + NONE + }; + +namespace RequirementLevelMapper +{ +AWS_OPENSEARCHSERVICE_API RequirementLevel GetRequirementLevelForName(const Aws::String& name); + +AWS_OPENSEARCHSERVICE_API Aws::String GetNameForRequirementLevel(RequirementLevel value); +} // namespace RequirementLevelMapper +} // namespace Model +} // namespace OpenSearchService +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/UpdatePackageRequest.h b/generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/UpdatePackageRequest.h index 77d663019e0..2484d05c581 100644 --- a/generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/UpdatePackageRequest.h +++ b/generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/UpdatePackageRequest.h @@ -8,6 +8,8 @@ #include #include #include +#include +#include #include namespace Aws @@ -91,6 +93,30 @@ namespace Model inline UpdatePackageRequest& WithCommitMessage(Aws::String&& value) { SetCommitMessage(std::move(value)); return *this;} inline UpdatePackageRequest& WithCommitMessage(const char* value) { SetCommitMessage(value); return *this;} ///@} + + ///@{ + /** + *

      The updated configuration details for a package.

      + */ + inline const PackageConfiguration& GetPackageConfiguration() const{ return m_packageConfiguration; } + inline bool PackageConfigurationHasBeenSet() const { return m_packageConfigurationHasBeenSet; } + inline void SetPackageConfiguration(const PackageConfiguration& value) { m_packageConfigurationHasBeenSet = true; m_packageConfiguration = value; } + inline void SetPackageConfiguration(PackageConfiguration&& value) { m_packageConfigurationHasBeenSet = true; m_packageConfiguration = std::move(value); } + inline UpdatePackageRequest& WithPackageConfiguration(const PackageConfiguration& value) { SetPackageConfiguration(value); return *this;} + inline UpdatePackageRequest& WithPackageConfiguration(PackageConfiguration&& value) { SetPackageConfiguration(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

      Encryption options for a package.

      + */ + inline const PackageEncryptionOptions& GetPackageEncryptionOptions() const{ return m_packageEncryptionOptions; } + inline bool PackageEncryptionOptionsHasBeenSet() const { return m_packageEncryptionOptionsHasBeenSet; } + inline void SetPackageEncryptionOptions(const PackageEncryptionOptions& value) { m_packageEncryptionOptionsHasBeenSet = true; m_packageEncryptionOptions = value; } + inline void SetPackageEncryptionOptions(PackageEncryptionOptions&& value) { m_packageEncryptionOptionsHasBeenSet = true; m_packageEncryptionOptions = std::move(value); } + inline UpdatePackageRequest& WithPackageEncryptionOptions(const PackageEncryptionOptions& value) { SetPackageEncryptionOptions(value); return *this;} + inline UpdatePackageRequest& WithPackageEncryptionOptions(PackageEncryptionOptions&& value) { SetPackageEncryptionOptions(std::move(value)); return *this;} + ///@} private: Aws::String m_packageID; @@ -104,6 +130,12 @@ namespace Model Aws::String m_commitMessage; bool m_commitMessageHasBeenSet = false; + + PackageConfiguration m_packageConfiguration; + bool m_packageConfigurationHasBeenSet = false; + + PackageEncryptionOptions m_packageEncryptionOptions; + bool m_packageEncryptionOptionsHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/UpdatePackageScopeRequest.h b/generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/UpdatePackageScopeRequest.h new file mode 100644 index 00000000000..f6df4b727e7 --- /dev/null +++ b/generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/UpdatePackageScopeRequest.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 +#include +#include + +namespace Aws +{ +namespace OpenSearchService +{ +namespace Model +{ + + /** + */ + class UpdatePackageScopeRequest : public OpenSearchServiceRequest + { + public: + AWS_OPENSEARCHSERVICE_API UpdatePackageScopeRequest(); + + // 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 "UpdatePackageScope"; } + + AWS_OPENSEARCHSERVICE_API Aws::String SerializePayload() const override; + + + ///@{ + /** + *

      ID of the package whose scope is being updated.

      + */ + inline const Aws::String& GetPackageID() const{ return m_packageID; } + inline bool PackageIDHasBeenSet() const { return m_packageIDHasBeenSet; } + inline void SetPackageID(const Aws::String& value) { m_packageIDHasBeenSet = true; m_packageID = value; } + inline void SetPackageID(Aws::String&& value) { m_packageIDHasBeenSet = true; m_packageID = std::move(value); } + inline void SetPackageID(const char* value) { m_packageIDHasBeenSet = true; m_packageID.assign(value); } + inline UpdatePackageScopeRequest& WithPackageID(const Aws::String& value) { SetPackageID(value); return *this;} + inline UpdatePackageScopeRequest& WithPackageID(Aws::String&& value) { SetPackageID(std::move(value)); return *this;} + inline UpdatePackageScopeRequest& WithPackageID(const char* value) { SetPackageID(value); return *this;} + ///@} + + ///@{ + /** + *

      The operation to perform on the package scope (e.g., add/remove/override + * users).

      + */ + inline const PackageScopeOperationEnum& GetOperation() const{ return m_operation; } + inline bool OperationHasBeenSet() const { return m_operationHasBeenSet; } + inline void SetOperation(const PackageScopeOperationEnum& value) { m_operationHasBeenSet = true; m_operation = value; } + inline void SetOperation(PackageScopeOperationEnum&& value) { m_operationHasBeenSet = true; m_operation = std::move(value); } + inline UpdatePackageScopeRequest& WithOperation(const PackageScopeOperationEnum& value) { SetOperation(value); return *this;} + inline UpdatePackageScopeRequest& WithOperation(PackageScopeOperationEnum&& value) { SetOperation(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

      List of users to be added or removed from the package scope.

      + */ + inline const Aws::Vector& GetPackageUserList() const{ return m_packageUserList; } + inline bool PackageUserListHasBeenSet() const { return m_packageUserListHasBeenSet; } + inline void SetPackageUserList(const Aws::Vector& value) { m_packageUserListHasBeenSet = true; m_packageUserList = value; } + inline void SetPackageUserList(Aws::Vector&& value) { m_packageUserListHasBeenSet = true; m_packageUserList = std::move(value); } + inline UpdatePackageScopeRequest& WithPackageUserList(const Aws::Vector& value) { SetPackageUserList(value); return *this;} + inline UpdatePackageScopeRequest& WithPackageUserList(Aws::Vector&& value) { SetPackageUserList(std::move(value)); return *this;} + inline UpdatePackageScopeRequest& AddPackageUserList(const Aws::String& value) { m_packageUserListHasBeenSet = true; m_packageUserList.push_back(value); return *this; } + inline UpdatePackageScopeRequest& AddPackageUserList(Aws::String&& value) { m_packageUserListHasBeenSet = true; m_packageUserList.push_back(std::move(value)); return *this; } + inline UpdatePackageScopeRequest& AddPackageUserList(const char* value) { m_packageUserListHasBeenSet = true; m_packageUserList.push_back(value); return *this; } + ///@} + private: + + Aws::String m_packageID; + bool m_packageIDHasBeenSet = false; + + PackageScopeOperationEnum m_operation; + bool m_operationHasBeenSet = false; + + Aws::Vector m_packageUserList; + bool m_packageUserListHasBeenSet = false; + }; + +} // namespace Model +} // namespace OpenSearchService +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/UpdatePackageScopeResult.h b/generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/UpdatePackageScopeResult.h new file mode 100644 index 00000000000..6d756cc2515 --- /dev/null +++ b/generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/UpdatePackageScopeResult.h @@ -0,0 +1,98 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace OpenSearchService +{ +namespace Model +{ + class UpdatePackageScopeResult + { + public: + AWS_OPENSEARCHSERVICE_API UpdatePackageScopeResult(); + AWS_OPENSEARCHSERVICE_API UpdatePackageScopeResult(const Aws::AmazonWebServiceResult& result); + AWS_OPENSEARCHSERVICE_API UpdatePackageScopeResult& operator=(const Aws::AmazonWebServiceResult& result); + + + ///@{ + /** + *

      ID of the package whose scope was updated.

      + */ + inline const Aws::String& GetPackageID() const{ return m_packageID; } + inline void SetPackageID(const Aws::String& value) { m_packageID = value; } + inline void SetPackageID(Aws::String&& value) { m_packageID = std::move(value); } + inline void SetPackageID(const char* value) { m_packageID.assign(value); } + inline UpdatePackageScopeResult& WithPackageID(const Aws::String& value) { SetPackageID(value); return *this;} + inline UpdatePackageScopeResult& WithPackageID(Aws::String&& value) { SetPackageID(std::move(value)); return *this;} + inline UpdatePackageScopeResult& WithPackageID(const char* value) { SetPackageID(value); return *this;} + ///@} + + ///@{ + /** + *

      The operation that was performed on the package scope.

      + */ + inline const PackageScopeOperationEnum& GetOperation() const{ return m_operation; } + inline void SetOperation(const PackageScopeOperationEnum& value) { m_operation = value; } + inline void SetOperation(PackageScopeOperationEnum&& value) { m_operation = std::move(value); } + inline UpdatePackageScopeResult& WithOperation(const PackageScopeOperationEnum& value) { SetOperation(value); return *this;} + inline UpdatePackageScopeResult& WithOperation(PackageScopeOperationEnum&& value) { SetOperation(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

      List of users who have access to the package after the scope update.

      + */ + inline const Aws::Vector& GetPackageUserList() const{ return m_packageUserList; } + inline void SetPackageUserList(const Aws::Vector& value) { m_packageUserList = value; } + inline void SetPackageUserList(Aws::Vector&& value) { m_packageUserList = std::move(value); } + inline UpdatePackageScopeResult& WithPackageUserList(const Aws::Vector& value) { SetPackageUserList(value); return *this;} + inline UpdatePackageScopeResult& WithPackageUserList(Aws::Vector&& value) { SetPackageUserList(std::move(value)); return *this;} + inline UpdatePackageScopeResult& AddPackageUserList(const Aws::String& value) { m_packageUserList.push_back(value); return *this; } + inline UpdatePackageScopeResult& AddPackageUserList(Aws::String&& value) { m_packageUserList.push_back(std::move(value)); return *this; } + inline UpdatePackageScopeResult& AddPackageUserList(const char* value) { m_packageUserList.push_back(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 UpdatePackageScopeResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + inline UpdatePackageScopeResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + inline UpdatePackageScopeResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + ///@} + private: + + Aws::String m_packageID; + + PackageScopeOperationEnum m_operation; + + Aws::Vector m_packageUserList; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace OpenSearchService +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-opensearch/source/OpenSearchServiceClient.cpp b/generated/src/aws-cpp-sdk-opensearch/source/OpenSearchServiceClient.cpp index 6bca63a1bf0..ee62d5e3a9c 100644 --- a/generated/src/aws-cpp-sdk-opensearch/source/OpenSearchServiceClient.cpp +++ b/generated/src/aws-cpp-sdk-opensearch/source/OpenSearchServiceClient.cpp @@ -25,6 +25,7 @@ #include #include #include +#include #include #include #include @@ -56,6 +57,7 @@ #include #include #include +#include #include #include #include @@ -86,6 +88,7 @@ #include #include #include +#include #include #include #include @@ -366,6 +369,33 @@ AssociatePackageOutcome OpenSearchServiceClient::AssociatePackage(const Associat {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +AssociatePackagesOutcome OpenSearchServiceClient::AssociatePackages(const AssociatePackagesRequest& request) const +{ + AWS_OPERATION_GUARD(AssociatePackages); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, AssociatePackages, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, AssociatePackages, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, AssociatePackages, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".AssociatePackages", + {{ 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( + [&]()-> AssociatePackagesOutcome { + 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, AssociatePackages, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/2021-01-01/packages/associateMultiple"); + return AssociatePackagesOutcome(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()}}); +} + AuthorizeVpcEndpointAccessOutcome OpenSearchServiceClient::AuthorizeVpcEndpointAccess(const AuthorizeVpcEndpointAccessRequest& request) const { AWS_OPERATION_GUARD(AuthorizeVpcEndpointAccess); @@ -1338,6 +1368,33 @@ DissociatePackageOutcome OpenSearchServiceClient::DissociatePackage(const Dissoc {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +DissociatePackagesOutcome OpenSearchServiceClient::DissociatePackages(const DissociatePackagesRequest& request) const +{ + AWS_OPERATION_GUARD(DissociatePackages); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DissociatePackages, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DissociatePackages, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, DissociatePackages, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DissociatePackages", + {{ 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( + [&]()-> DissociatePackagesOutcome { + 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, DissociatePackages, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/2021-01-01/packages/dissociateMultiple"); + return DissociatePackagesOutcome(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()}}); +} + GetApplicationOutcome OpenSearchServiceClient::GetApplication(const GetApplicationRequest& request) const { AWS_OPERATION_GUARD(GetApplication); @@ -2307,6 +2364,33 @@ UpdatePackageOutcome OpenSearchServiceClient::UpdatePackage(const UpdatePackageR {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +UpdatePackageScopeOutcome OpenSearchServiceClient::UpdatePackageScope(const UpdatePackageScopeRequest& request) const +{ + AWS_OPERATION_GUARD(UpdatePackageScope); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, UpdatePackageScope, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, UpdatePackageScope, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, UpdatePackageScope, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".UpdatePackageScope", + {{ 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( + [&]()-> UpdatePackageScopeOutcome { + 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, UpdatePackageScope, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/2021-01-01/packages/updateScope"); + return UpdatePackageScopeOutcome(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()}}); +} + UpdateScheduledActionOutcome OpenSearchServiceClient::UpdateScheduledAction(const UpdateScheduledActionRequest& request) const { AWS_OPERATION_GUARD(UpdateScheduledAction); diff --git a/generated/src/aws-cpp-sdk-opensearch/source/model/AssociatePackageRequest.cpp b/generated/src/aws-cpp-sdk-opensearch/source/model/AssociatePackageRequest.cpp index ec5d99f8b4b..9627294d25e 100644 --- a/generated/src/aws-cpp-sdk-opensearch/source/model/AssociatePackageRequest.cpp +++ b/generated/src/aws-cpp-sdk-opensearch/source/model/AssociatePackageRequest.cpp @@ -14,13 +14,34 @@ using namespace Aws::Utils; AssociatePackageRequest::AssociatePackageRequest() : m_packageIDHasBeenSet(false), - m_domainNameHasBeenSet(false) + m_domainNameHasBeenSet(false), + m_prerequisitePackageIDListHasBeenSet(false), + m_associationConfigurationHasBeenSet(false) { } Aws::String AssociatePackageRequest::SerializePayload() const { - return {}; + JsonValue payload; + + if(m_prerequisitePackageIDListHasBeenSet) + { + Aws::Utils::Array prerequisitePackageIDListJsonList(m_prerequisitePackageIDList.size()); + for(unsigned prerequisitePackageIDListIndex = 0; prerequisitePackageIDListIndex < prerequisitePackageIDListJsonList.GetLength(); ++prerequisitePackageIDListIndex) + { + prerequisitePackageIDListJsonList[prerequisitePackageIDListIndex].AsString(m_prerequisitePackageIDList[prerequisitePackageIDListIndex]); + } + payload.WithArray("PrerequisitePackageIDList", std::move(prerequisitePackageIDListJsonList)); + + } + + if(m_associationConfigurationHasBeenSet) + { + payload.WithObject("AssociationConfiguration", m_associationConfiguration.Jsonize()); + + } + + return payload.View().WriteReadable(); } diff --git a/generated/src/aws-cpp-sdk-opensearch/source/model/AssociatePackagesRequest.cpp b/generated/src/aws-cpp-sdk-opensearch/source/model/AssociatePackagesRequest.cpp new file mode 100644 index 00000000000..6a2a7da5838 --- /dev/null +++ b/generated/src/aws-cpp-sdk-opensearch/source/model/AssociatePackagesRequest.cpp @@ -0,0 +1,47 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::OpenSearchService::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +AssociatePackagesRequest::AssociatePackagesRequest() : + m_packageListHasBeenSet(false), + m_domainNameHasBeenSet(false) +{ +} + +Aws::String AssociatePackagesRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_packageListHasBeenSet) + { + Aws::Utils::Array packageListJsonList(m_packageList.size()); + for(unsigned packageListIndex = 0; packageListIndex < packageListJsonList.GetLength(); ++packageListIndex) + { + packageListJsonList[packageListIndex].AsObject(m_packageList[packageListIndex].Jsonize()); + } + payload.WithArray("PackageList", std::move(packageListJsonList)); + + } + + if(m_domainNameHasBeenSet) + { + payload.WithString("DomainName", m_domainName); + + } + + return payload.View().WriteReadable(); +} + + + + diff --git a/generated/src/aws-cpp-sdk-opensearch/source/model/AssociatePackagesResult.cpp b/generated/src/aws-cpp-sdk-opensearch/source/model/AssociatePackagesResult.cpp new file mode 100644 index 00000000000..7bcf538792b --- /dev/null +++ b/generated/src/aws-cpp-sdk-opensearch/source/model/AssociatePackagesResult.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::OpenSearchService::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +AssociatePackagesResult::AssociatePackagesResult() +{ +} + +AssociatePackagesResult::AssociatePackagesResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +AssociatePackagesResult& AssociatePackagesResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("DomainPackageDetailsList")) + { + Aws::Utils::Array domainPackageDetailsListJsonList = jsonValue.GetArray("DomainPackageDetailsList"); + for(unsigned domainPackageDetailsListIndex = 0; domainPackageDetailsListIndex < domainPackageDetailsListJsonList.GetLength(); ++domainPackageDetailsListIndex) + { + m_domainPackageDetailsList.push_back(domainPackageDetailsListJsonList[domainPackageDetailsListIndex].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-opensearch/source/model/CreatePackageRequest.cpp b/generated/src/aws-cpp-sdk-opensearch/source/model/CreatePackageRequest.cpp index 9042352b875..fbb4d2dd270 100644 --- a/generated/src/aws-cpp-sdk-opensearch/source/model/CreatePackageRequest.cpp +++ b/generated/src/aws-cpp-sdk-opensearch/source/model/CreatePackageRequest.cpp @@ -17,7 +17,11 @@ CreatePackageRequest::CreatePackageRequest() : m_packageType(PackageType::NOT_SET), m_packageTypeHasBeenSet(false), m_packageDescriptionHasBeenSet(false), - m_packageSourceHasBeenSet(false) + m_packageSourceHasBeenSet(false), + m_packageConfigurationHasBeenSet(false), + m_engineVersionHasBeenSet(false), + m_packageVendingOptionsHasBeenSet(false), + m_packageEncryptionOptionsHasBeenSet(false) { } @@ -48,6 +52,30 @@ Aws::String CreatePackageRequest::SerializePayload() const } + if(m_packageConfigurationHasBeenSet) + { + payload.WithObject("PackageConfiguration", m_packageConfiguration.Jsonize()); + + } + + if(m_engineVersionHasBeenSet) + { + payload.WithString("EngineVersion", m_engineVersion); + + } + + if(m_packageVendingOptionsHasBeenSet) + { + payload.WithObject("PackageVendingOptions", m_packageVendingOptions.Jsonize()); + + } + + if(m_packageEncryptionOptionsHasBeenSet) + { + payload.WithObject("PackageEncryptionOptions", m_packageEncryptionOptions.Jsonize()); + + } + return payload.View().WriteReadable(); } diff --git a/generated/src/aws-cpp-sdk-opensearch/source/model/DescribePackagesFilterName.cpp b/generated/src/aws-cpp-sdk-opensearch/source/model/DescribePackagesFilterName.cpp index 7aa15eba31e..45c9249f945 100644 --- a/generated/src/aws-cpp-sdk-opensearch/source/model/DescribePackagesFilterName.cpp +++ b/generated/src/aws-cpp-sdk-opensearch/source/model/DescribePackagesFilterName.cpp @@ -25,6 +25,7 @@ namespace Aws static const int PackageStatus_HASH = HashingUtils::HashString("PackageStatus"); static const int PackageType_HASH = HashingUtils::HashString("PackageType"); static const int EngineVersion_HASH = HashingUtils::HashString("EngineVersion"); + static const int PackageOwner_HASH = HashingUtils::HashString("PackageOwner"); DescribePackagesFilterName GetDescribePackagesFilterNameForName(const Aws::String& name) @@ -50,6 +51,10 @@ namespace Aws { return DescribePackagesFilterName::EngineVersion; } + else if (hashCode == PackageOwner_HASH) + { + return DescribePackagesFilterName::PackageOwner; + } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { @@ -76,6 +81,8 @@ namespace Aws return "PackageType"; case DescribePackagesFilterName::EngineVersion: return "EngineVersion"; + case DescribePackagesFilterName::PackageOwner: + return "PackageOwner"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) diff --git a/generated/src/aws-cpp-sdk-opensearch/source/model/DissociatePackagesRequest.cpp b/generated/src/aws-cpp-sdk-opensearch/source/model/DissociatePackagesRequest.cpp new file mode 100644 index 00000000000..32489051223 --- /dev/null +++ b/generated/src/aws-cpp-sdk-opensearch/source/model/DissociatePackagesRequest.cpp @@ -0,0 +1,47 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::OpenSearchService::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +DissociatePackagesRequest::DissociatePackagesRequest() : + m_packageListHasBeenSet(false), + m_domainNameHasBeenSet(false) +{ +} + +Aws::String DissociatePackagesRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_packageListHasBeenSet) + { + Aws::Utils::Array packageListJsonList(m_packageList.size()); + for(unsigned packageListIndex = 0; packageListIndex < packageListJsonList.GetLength(); ++packageListIndex) + { + packageListJsonList[packageListIndex].AsString(m_packageList[packageListIndex]); + } + payload.WithArray("PackageList", std::move(packageListJsonList)); + + } + + if(m_domainNameHasBeenSet) + { + payload.WithString("DomainName", m_domainName); + + } + + return payload.View().WriteReadable(); +} + + + + diff --git a/generated/src/aws-cpp-sdk-opensearch/source/model/DissociatePackagesResult.cpp b/generated/src/aws-cpp-sdk-opensearch/source/model/DissociatePackagesResult.cpp new file mode 100644 index 00000000000..bcaa957d707 --- /dev/null +++ b/generated/src/aws-cpp-sdk-opensearch/source/model/DissociatePackagesResult.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::OpenSearchService::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +DissociatePackagesResult::DissociatePackagesResult() +{ +} + +DissociatePackagesResult::DissociatePackagesResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +DissociatePackagesResult& DissociatePackagesResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("DomainPackageDetailsList")) + { + Aws::Utils::Array domainPackageDetailsListJsonList = jsonValue.GetArray("DomainPackageDetailsList"); + for(unsigned domainPackageDetailsListIndex = 0; domainPackageDetailsListIndex < domainPackageDetailsListJsonList.GetLength(); ++domainPackageDetailsListIndex) + { + m_domainPackageDetailsList.push_back(domainPackageDetailsListJsonList[domainPackageDetailsListIndex].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-opensearch/source/model/DomainPackageDetails.cpp b/generated/src/aws-cpp-sdk-opensearch/source/model/DomainPackageDetails.cpp index e27b31a3f40..03dd54534bd 100644 --- a/generated/src/aws-cpp-sdk-opensearch/source/model/DomainPackageDetails.cpp +++ b/generated/src/aws-cpp-sdk-opensearch/source/model/DomainPackageDetails.cpp @@ -28,8 +28,10 @@ DomainPackageDetails::DomainPackageDetails() : m_domainPackageStatus(DomainPackageStatus::NOT_SET), m_domainPackageStatusHasBeenSet(false), m_packageVersionHasBeenSet(false), + m_prerequisitePackageIDListHasBeenSet(false), m_referencePathHasBeenSet(false), - m_errorDetailsHasBeenSet(false) + m_errorDetailsHasBeenSet(false), + m_associationConfigurationHasBeenSet(false) { } @@ -90,6 +92,16 @@ DomainPackageDetails& DomainPackageDetails::operator =(JsonView jsonValue) m_packageVersionHasBeenSet = true; } + if(jsonValue.ValueExists("PrerequisitePackageIDList")) + { + Aws::Utils::Array prerequisitePackageIDListJsonList = jsonValue.GetArray("PrerequisitePackageIDList"); + for(unsigned prerequisitePackageIDListIndex = 0; prerequisitePackageIDListIndex < prerequisitePackageIDListJsonList.GetLength(); ++prerequisitePackageIDListIndex) + { + m_prerequisitePackageIDList.push_back(prerequisitePackageIDListJsonList[prerequisitePackageIDListIndex].AsString()); + } + m_prerequisitePackageIDListHasBeenSet = true; + } + if(jsonValue.ValueExists("ReferencePath")) { m_referencePath = jsonValue.GetString("ReferencePath"); @@ -104,6 +116,13 @@ DomainPackageDetails& DomainPackageDetails::operator =(JsonView jsonValue) m_errorDetailsHasBeenSet = true; } + if(jsonValue.ValueExists("AssociationConfiguration")) + { + m_associationConfiguration = jsonValue.GetObject("AssociationConfiguration"); + + m_associationConfigurationHasBeenSet = true; + } + return *this; } @@ -150,6 +169,17 @@ JsonValue DomainPackageDetails::Jsonize() const } + if(m_prerequisitePackageIDListHasBeenSet) + { + Aws::Utils::Array prerequisitePackageIDListJsonList(m_prerequisitePackageIDList.size()); + for(unsigned prerequisitePackageIDListIndex = 0; prerequisitePackageIDListIndex < prerequisitePackageIDListJsonList.GetLength(); ++prerequisitePackageIDListIndex) + { + prerequisitePackageIDListJsonList[prerequisitePackageIDListIndex].AsString(m_prerequisitePackageIDList[prerequisitePackageIDListIndex]); + } + payload.WithArray("PrerequisitePackageIDList", std::move(prerequisitePackageIDListJsonList)); + + } + if(m_referencePathHasBeenSet) { payload.WithString("ReferencePath", m_referencePath); @@ -162,6 +192,12 @@ JsonValue DomainPackageDetails::Jsonize() const } + if(m_associationConfigurationHasBeenSet) + { + payload.WithObject("AssociationConfiguration", m_associationConfiguration.Jsonize()); + + } + return payload; } diff --git a/generated/src/aws-cpp-sdk-opensearch/source/model/KeyStoreAccessOption.cpp b/generated/src/aws-cpp-sdk-opensearch/source/model/KeyStoreAccessOption.cpp new file mode 100644 index 00000000000..2d8ea173553 --- /dev/null +++ b/generated/src/aws-cpp-sdk-opensearch/source/model/KeyStoreAccessOption.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 OpenSearchService +{ +namespace Model +{ + +KeyStoreAccessOption::KeyStoreAccessOption() : + m_keyAccessRoleArnHasBeenSet(false), + m_keyStoreAccessEnabled(false), + m_keyStoreAccessEnabledHasBeenSet(false) +{ +} + +KeyStoreAccessOption::KeyStoreAccessOption(JsonView jsonValue) + : KeyStoreAccessOption() +{ + *this = jsonValue; +} + +KeyStoreAccessOption& KeyStoreAccessOption::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("KeyAccessRoleArn")) + { + m_keyAccessRoleArn = jsonValue.GetString("KeyAccessRoleArn"); + + m_keyAccessRoleArnHasBeenSet = true; + } + + if(jsonValue.ValueExists("KeyStoreAccessEnabled")) + { + m_keyStoreAccessEnabled = jsonValue.GetBool("KeyStoreAccessEnabled"); + + m_keyStoreAccessEnabledHasBeenSet = true; + } + + return *this; +} + +JsonValue KeyStoreAccessOption::Jsonize() const +{ + JsonValue payload; + + if(m_keyAccessRoleArnHasBeenSet) + { + payload.WithString("KeyAccessRoleArn", m_keyAccessRoleArn); + + } + + if(m_keyStoreAccessEnabledHasBeenSet) + { + payload.WithBool("KeyStoreAccessEnabled", m_keyStoreAccessEnabled); + + } + + return payload; +} + +} // namespace Model +} // namespace OpenSearchService +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-opensearch/source/model/PackageAssociationConfiguration.cpp b/generated/src/aws-cpp-sdk-opensearch/source/model/PackageAssociationConfiguration.cpp new file mode 100644 index 00000000000..b11bdf67081 --- /dev/null +++ b/generated/src/aws-cpp-sdk-opensearch/source/model/PackageAssociationConfiguration.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 OpenSearchService +{ +namespace Model +{ + +PackageAssociationConfiguration::PackageAssociationConfiguration() : + m_keyStoreAccessOptionHasBeenSet(false) +{ +} + +PackageAssociationConfiguration::PackageAssociationConfiguration(JsonView jsonValue) + : PackageAssociationConfiguration() +{ + *this = jsonValue; +} + +PackageAssociationConfiguration& PackageAssociationConfiguration::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("KeyStoreAccessOption")) + { + m_keyStoreAccessOption = jsonValue.GetObject("KeyStoreAccessOption"); + + m_keyStoreAccessOptionHasBeenSet = true; + } + + return *this; +} + +JsonValue PackageAssociationConfiguration::Jsonize() const +{ + JsonValue payload; + + if(m_keyStoreAccessOptionHasBeenSet) + { + payload.WithObject("KeyStoreAccessOption", m_keyStoreAccessOption.Jsonize()); + + } + + return payload; +} + +} // namespace Model +} // namespace OpenSearchService +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-opensearch/source/model/PackageConfiguration.cpp b/generated/src/aws-cpp-sdk-opensearch/source/model/PackageConfiguration.cpp new file mode 100644 index 00000000000..53e2bc8b26d --- /dev/null +++ b/generated/src/aws-cpp-sdk-opensearch/source/model/PackageConfiguration.cpp @@ -0,0 +1,102 @@ +/** + * 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 OpenSearchService +{ +namespace Model +{ + +PackageConfiguration::PackageConfiguration() : + m_licenseRequirement(RequirementLevel::NOT_SET), + m_licenseRequirementHasBeenSet(false), + m_licenseFilepathHasBeenSet(false), + m_configurationRequirement(RequirementLevel::NOT_SET), + m_configurationRequirementHasBeenSet(false), + m_requiresRestartForConfigurationUpdate(false), + m_requiresRestartForConfigurationUpdateHasBeenSet(false) +{ +} + +PackageConfiguration::PackageConfiguration(JsonView jsonValue) + : PackageConfiguration() +{ + *this = jsonValue; +} + +PackageConfiguration& PackageConfiguration::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("LicenseRequirement")) + { + m_licenseRequirement = RequirementLevelMapper::GetRequirementLevelForName(jsonValue.GetString("LicenseRequirement")); + + m_licenseRequirementHasBeenSet = true; + } + + if(jsonValue.ValueExists("LicenseFilepath")) + { + m_licenseFilepath = jsonValue.GetString("LicenseFilepath"); + + m_licenseFilepathHasBeenSet = true; + } + + if(jsonValue.ValueExists("ConfigurationRequirement")) + { + m_configurationRequirement = RequirementLevelMapper::GetRequirementLevelForName(jsonValue.GetString("ConfigurationRequirement")); + + m_configurationRequirementHasBeenSet = true; + } + + if(jsonValue.ValueExists("RequiresRestartForConfigurationUpdate")) + { + m_requiresRestartForConfigurationUpdate = jsonValue.GetBool("RequiresRestartForConfigurationUpdate"); + + m_requiresRestartForConfigurationUpdateHasBeenSet = true; + } + + return *this; +} + +JsonValue PackageConfiguration::Jsonize() const +{ + JsonValue payload; + + if(m_licenseRequirementHasBeenSet) + { + payload.WithString("LicenseRequirement", RequirementLevelMapper::GetNameForRequirementLevel(m_licenseRequirement)); + } + + if(m_licenseFilepathHasBeenSet) + { + payload.WithString("LicenseFilepath", m_licenseFilepath); + + } + + if(m_configurationRequirementHasBeenSet) + { + payload.WithString("ConfigurationRequirement", RequirementLevelMapper::GetNameForRequirementLevel(m_configurationRequirement)); + } + + if(m_requiresRestartForConfigurationUpdateHasBeenSet) + { + payload.WithBool("RequiresRestartForConfigurationUpdate", m_requiresRestartForConfigurationUpdate); + + } + + return payload; +} + +} // namespace Model +} // namespace OpenSearchService +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-opensearch/source/model/PackageDetails.cpp b/generated/src/aws-cpp-sdk-opensearch/source/model/PackageDetails.cpp index ba1c38d27fe..71ecc966d6c 100644 --- a/generated/src/aws-cpp-sdk-opensearch/source/model/PackageDetails.cpp +++ b/generated/src/aws-cpp-sdk-opensearch/source/model/PackageDetails.cpp @@ -31,7 +31,12 @@ PackageDetails::PackageDetails() : m_availablePackageVersionHasBeenSet(false), m_errorDetailsHasBeenSet(false), m_engineVersionHasBeenSet(false), - m_availablePluginPropertiesHasBeenSet(false) + m_availablePluginPropertiesHasBeenSet(false), + m_availablePackageConfigurationHasBeenSet(false), + m_allowListedUserListHasBeenSet(false), + m_packageOwnerHasBeenSet(false), + m_packageVendingOptionsHasBeenSet(false), + m_packageEncryptionOptionsHasBeenSet(false) { } @@ -120,6 +125,44 @@ PackageDetails& PackageDetails::operator =(JsonView jsonValue) m_availablePluginPropertiesHasBeenSet = true; } + if(jsonValue.ValueExists("AvailablePackageConfiguration")) + { + m_availablePackageConfiguration = jsonValue.GetObject("AvailablePackageConfiguration"); + + m_availablePackageConfigurationHasBeenSet = true; + } + + if(jsonValue.ValueExists("AllowListedUserList")) + { + Aws::Utils::Array allowListedUserListJsonList = jsonValue.GetArray("AllowListedUserList"); + for(unsigned allowListedUserListIndex = 0; allowListedUserListIndex < allowListedUserListJsonList.GetLength(); ++allowListedUserListIndex) + { + m_allowListedUserList.push_back(allowListedUserListJsonList[allowListedUserListIndex].AsString()); + } + m_allowListedUserListHasBeenSet = true; + } + + if(jsonValue.ValueExists("PackageOwner")) + { + m_packageOwner = jsonValue.GetString("PackageOwner"); + + m_packageOwnerHasBeenSet = true; + } + + if(jsonValue.ValueExists("PackageVendingOptions")) + { + m_packageVendingOptions = jsonValue.GetObject("PackageVendingOptions"); + + m_packageVendingOptionsHasBeenSet = true; + } + + if(jsonValue.ValueExists("PackageEncryptionOptions")) + { + m_packageEncryptionOptions = jsonValue.GetObject("PackageEncryptionOptions"); + + m_packageEncryptionOptionsHasBeenSet = true; + } + return *this; } @@ -189,6 +232,41 @@ JsonValue PackageDetails::Jsonize() const } + if(m_availablePackageConfigurationHasBeenSet) + { + payload.WithObject("AvailablePackageConfiguration", m_availablePackageConfiguration.Jsonize()); + + } + + if(m_allowListedUserListHasBeenSet) + { + Aws::Utils::Array allowListedUserListJsonList(m_allowListedUserList.size()); + for(unsigned allowListedUserListIndex = 0; allowListedUserListIndex < allowListedUserListJsonList.GetLength(); ++allowListedUserListIndex) + { + allowListedUserListJsonList[allowListedUserListIndex].AsString(m_allowListedUserList[allowListedUserListIndex]); + } + payload.WithArray("AllowListedUserList", std::move(allowListedUserListJsonList)); + + } + + if(m_packageOwnerHasBeenSet) + { + payload.WithString("PackageOwner", m_packageOwner); + + } + + if(m_packageVendingOptionsHasBeenSet) + { + payload.WithObject("PackageVendingOptions", m_packageVendingOptions.Jsonize()); + + } + + if(m_packageEncryptionOptionsHasBeenSet) + { + payload.WithObject("PackageEncryptionOptions", m_packageEncryptionOptions.Jsonize()); + + } + return payload; } diff --git a/generated/src/aws-cpp-sdk-opensearch/source/model/PackageDetailsForAssociation.cpp b/generated/src/aws-cpp-sdk-opensearch/source/model/PackageDetailsForAssociation.cpp new file mode 100644 index 00000000000..b0e5fb97398 --- /dev/null +++ b/generated/src/aws-cpp-sdk-opensearch/source/model/PackageDetailsForAssociation.cpp @@ -0,0 +1,95 @@ +/** + * 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 OpenSearchService +{ +namespace Model +{ + +PackageDetailsForAssociation::PackageDetailsForAssociation() : + m_packageIDHasBeenSet(false), + m_prerequisitePackageIDListHasBeenSet(false), + m_associationConfigurationHasBeenSet(false) +{ +} + +PackageDetailsForAssociation::PackageDetailsForAssociation(JsonView jsonValue) + : PackageDetailsForAssociation() +{ + *this = jsonValue; +} + +PackageDetailsForAssociation& PackageDetailsForAssociation::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("PackageID")) + { + m_packageID = jsonValue.GetString("PackageID"); + + m_packageIDHasBeenSet = true; + } + + if(jsonValue.ValueExists("PrerequisitePackageIDList")) + { + Aws::Utils::Array prerequisitePackageIDListJsonList = jsonValue.GetArray("PrerequisitePackageIDList"); + for(unsigned prerequisitePackageIDListIndex = 0; prerequisitePackageIDListIndex < prerequisitePackageIDListJsonList.GetLength(); ++prerequisitePackageIDListIndex) + { + m_prerequisitePackageIDList.push_back(prerequisitePackageIDListJsonList[prerequisitePackageIDListIndex].AsString()); + } + m_prerequisitePackageIDListHasBeenSet = true; + } + + if(jsonValue.ValueExists("AssociationConfiguration")) + { + m_associationConfiguration = jsonValue.GetObject("AssociationConfiguration"); + + m_associationConfigurationHasBeenSet = true; + } + + return *this; +} + +JsonValue PackageDetailsForAssociation::Jsonize() const +{ + JsonValue payload; + + if(m_packageIDHasBeenSet) + { + payload.WithString("PackageID", m_packageID); + + } + + if(m_prerequisitePackageIDListHasBeenSet) + { + Aws::Utils::Array prerequisitePackageIDListJsonList(m_prerequisitePackageIDList.size()); + for(unsigned prerequisitePackageIDListIndex = 0; prerequisitePackageIDListIndex < prerequisitePackageIDListJsonList.GetLength(); ++prerequisitePackageIDListIndex) + { + prerequisitePackageIDListJsonList[prerequisitePackageIDListIndex].AsString(m_prerequisitePackageIDList[prerequisitePackageIDListIndex]); + } + payload.WithArray("PrerequisitePackageIDList", std::move(prerequisitePackageIDListJsonList)); + + } + + if(m_associationConfigurationHasBeenSet) + { + payload.WithObject("AssociationConfiguration", m_associationConfiguration.Jsonize()); + + } + + return payload; +} + +} // namespace Model +} // namespace OpenSearchService +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-opensearch/source/model/PackageEncryptionOptions.cpp b/generated/src/aws-cpp-sdk-opensearch/source/model/PackageEncryptionOptions.cpp new file mode 100644 index 00000000000..09c71971011 --- /dev/null +++ b/generated/src/aws-cpp-sdk-opensearch/source/model/PackageEncryptionOptions.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 OpenSearchService +{ +namespace Model +{ + +PackageEncryptionOptions::PackageEncryptionOptions() : + m_kmsKeyIdentifierHasBeenSet(false), + m_encryptionEnabled(false), + m_encryptionEnabledHasBeenSet(false) +{ +} + +PackageEncryptionOptions::PackageEncryptionOptions(JsonView jsonValue) + : PackageEncryptionOptions() +{ + *this = jsonValue; +} + +PackageEncryptionOptions& PackageEncryptionOptions::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("KmsKeyIdentifier")) + { + m_kmsKeyIdentifier = jsonValue.GetString("KmsKeyIdentifier"); + + m_kmsKeyIdentifierHasBeenSet = true; + } + + if(jsonValue.ValueExists("EncryptionEnabled")) + { + m_encryptionEnabled = jsonValue.GetBool("EncryptionEnabled"); + + m_encryptionEnabledHasBeenSet = true; + } + + return *this; +} + +JsonValue PackageEncryptionOptions::Jsonize() const +{ + JsonValue payload; + + if(m_kmsKeyIdentifierHasBeenSet) + { + payload.WithString("KmsKeyIdentifier", m_kmsKeyIdentifier); + + } + + if(m_encryptionEnabledHasBeenSet) + { + payload.WithBool("EncryptionEnabled", m_encryptionEnabled); + + } + + return payload; +} + +} // namespace Model +} // namespace OpenSearchService +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-opensearch/source/model/PackageScopeOperationEnum.cpp b/generated/src/aws-cpp-sdk-opensearch/source/model/PackageScopeOperationEnum.cpp new file mode 100644 index 00000000000..250f23da7da --- /dev/null +++ b/generated/src/aws-cpp-sdk-opensearch/source/model/PackageScopeOperationEnum.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 OpenSearchService + { + namespace Model + { + namespace PackageScopeOperationEnumMapper + { + + static const int ADD_HASH = HashingUtils::HashString("ADD"); + static const int OVERRIDE_HASH = HashingUtils::HashString("OVERRIDE"); + static const int REMOVE_HASH = HashingUtils::HashString("REMOVE"); + + + PackageScopeOperationEnum GetPackageScopeOperationEnumForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == ADD_HASH) + { + return PackageScopeOperationEnum::ADD; + } + else if (hashCode == OVERRIDE_HASH) + { + return PackageScopeOperationEnum::OVERRIDE; + } + else if (hashCode == REMOVE_HASH) + { + return PackageScopeOperationEnum::REMOVE; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return PackageScopeOperationEnum::NOT_SET; + } + + Aws::String GetNameForPackageScopeOperationEnum(PackageScopeOperationEnum enumValue) + { + switch(enumValue) + { + case PackageScopeOperationEnum::NOT_SET: + return {}; + case PackageScopeOperationEnum::ADD: + return "ADD"; + case PackageScopeOperationEnum::OVERRIDE: + return "OVERRIDE"; + case PackageScopeOperationEnum::REMOVE: + return "REMOVE"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace PackageScopeOperationEnumMapper + } // namespace Model + } // namespace OpenSearchService +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-opensearch/source/model/PackageType.cpp b/generated/src/aws-cpp-sdk-opensearch/source/model/PackageType.cpp index ee180ae5ac5..4245708d408 100644 --- a/generated/src/aws-cpp-sdk-opensearch/source/model/PackageType.cpp +++ b/generated/src/aws-cpp-sdk-opensearch/source/model/PackageType.cpp @@ -22,6 +22,8 @@ namespace Aws static const int TXT_DICTIONARY_HASH = HashingUtils::HashString("TXT-DICTIONARY"); static const int ZIP_PLUGIN_HASH = HashingUtils::HashString("ZIP-PLUGIN"); + static const int PACKAGE_LICENSE_HASH = HashingUtils::HashString("PACKAGE-LICENSE"); + static const int PACKAGE_CONFIG_HASH = HashingUtils::HashString("PACKAGE-CONFIG"); PackageType GetPackageTypeForName(const Aws::String& name) @@ -35,6 +37,14 @@ namespace Aws { return PackageType::ZIP_PLUGIN; } + else if (hashCode == PACKAGE_LICENSE_HASH) + { + return PackageType::PACKAGE_LICENSE; + } + else if (hashCode == PACKAGE_CONFIG_HASH) + { + return PackageType::PACKAGE_CONFIG; + } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { @@ -55,6 +65,10 @@ namespace Aws return "TXT-DICTIONARY"; case PackageType::ZIP_PLUGIN: return "ZIP-PLUGIN"; + case PackageType::PACKAGE_LICENSE: + return "PACKAGE-LICENSE"; + case PackageType::PACKAGE_CONFIG: + return "PACKAGE-CONFIG"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) diff --git a/generated/src/aws-cpp-sdk-opensearch/source/model/PackageVendingOptions.cpp b/generated/src/aws-cpp-sdk-opensearch/source/model/PackageVendingOptions.cpp new file mode 100644 index 00000000000..84296d1945f --- /dev/null +++ b/generated/src/aws-cpp-sdk-opensearch/source/model/PackageVendingOptions.cpp @@ -0,0 +1,60 @@ +/** + * 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 OpenSearchService +{ +namespace Model +{ + +PackageVendingOptions::PackageVendingOptions() : + m_vendingEnabled(false), + m_vendingEnabledHasBeenSet(false) +{ +} + +PackageVendingOptions::PackageVendingOptions(JsonView jsonValue) + : PackageVendingOptions() +{ + *this = jsonValue; +} + +PackageVendingOptions& PackageVendingOptions::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("VendingEnabled")) + { + m_vendingEnabled = jsonValue.GetBool("VendingEnabled"); + + m_vendingEnabledHasBeenSet = true; + } + + return *this; +} + +JsonValue PackageVendingOptions::Jsonize() const +{ + JsonValue payload; + + if(m_vendingEnabledHasBeenSet) + { + payload.WithBool("VendingEnabled", m_vendingEnabled); + + } + + return payload; +} + +} // namespace Model +} // namespace OpenSearchService +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-opensearch/source/model/PackageVersionHistory.cpp b/generated/src/aws-cpp-sdk-opensearch/source/model/PackageVersionHistory.cpp index 99bce1830c2..f1e3de2da14 100644 --- a/generated/src/aws-cpp-sdk-opensearch/source/model/PackageVersionHistory.cpp +++ b/generated/src/aws-cpp-sdk-opensearch/source/model/PackageVersionHistory.cpp @@ -22,7 +22,8 @@ PackageVersionHistory::PackageVersionHistory() : m_packageVersionHasBeenSet(false), m_commitMessageHasBeenSet(false), m_createdAtHasBeenSet(false), - m_pluginPropertiesHasBeenSet(false) + m_pluginPropertiesHasBeenSet(false), + m_packageConfigurationHasBeenSet(false) { } @@ -62,6 +63,13 @@ PackageVersionHistory& PackageVersionHistory::operator =(JsonView jsonValue) m_pluginPropertiesHasBeenSet = true; } + if(jsonValue.ValueExists("PackageConfiguration")) + { + m_packageConfiguration = jsonValue.GetObject("PackageConfiguration"); + + m_packageConfigurationHasBeenSet = true; + } + return *this; } @@ -92,6 +100,12 @@ JsonValue PackageVersionHistory::Jsonize() const } + if(m_packageConfigurationHasBeenSet) + { + payload.WithObject("PackageConfiguration", m_packageConfiguration.Jsonize()); + + } + return payload; } diff --git a/generated/src/aws-cpp-sdk-opensearch/source/model/RequirementLevel.cpp b/generated/src/aws-cpp-sdk-opensearch/source/model/RequirementLevel.cpp new file mode 100644 index 00000000000..4e30d845c8e --- /dev/null +++ b/generated/src/aws-cpp-sdk-opensearch/source/model/RequirementLevel.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 OpenSearchService + { + namespace Model + { + namespace RequirementLevelMapper + { + + static const int REQUIRED_HASH = HashingUtils::HashString("REQUIRED"); + static const int OPTIONAL_HASH = HashingUtils::HashString("OPTIONAL"); + static const int NONE_HASH = HashingUtils::HashString("NONE"); + + + RequirementLevel GetRequirementLevelForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == REQUIRED_HASH) + { + return RequirementLevel::REQUIRED; + } + else if (hashCode == OPTIONAL_HASH) + { + return RequirementLevel::OPTIONAL; + } + else if (hashCode == NONE_HASH) + { + return RequirementLevel::NONE; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return RequirementLevel::NOT_SET; + } + + Aws::String GetNameForRequirementLevel(RequirementLevel enumValue) + { + switch(enumValue) + { + case RequirementLevel::NOT_SET: + return {}; + case RequirementLevel::REQUIRED: + return "REQUIRED"; + case RequirementLevel::OPTIONAL: + return "OPTIONAL"; + case RequirementLevel::NONE: + return "NONE"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace RequirementLevelMapper + } // namespace Model + } // namespace OpenSearchService +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-opensearch/source/model/UpdatePackageRequest.cpp b/generated/src/aws-cpp-sdk-opensearch/source/model/UpdatePackageRequest.cpp index 4e654115c9f..b37794ce8ce 100644 --- a/generated/src/aws-cpp-sdk-opensearch/source/model/UpdatePackageRequest.cpp +++ b/generated/src/aws-cpp-sdk-opensearch/source/model/UpdatePackageRequest.cpp @@ -16,7 +16,9 @@ UpdatePackageRequest::UpdatePackageRequest() : m_packageIDHasBeenSet(false), m_packageSourceHasBeenSet(false), m_packageDescriptionHasBeenSet(false), - m_commitMessageHasBeenSet(false) + m_commitMessageHasBeenSet(false), + m_packageConfigurationHasBeenSet(false), + m_packageEncryptionOptionsHasBeenSet(false) { } @@ -48,6 +50,18 @@ Aws::String UpdatePackageRequest::SerializePayload() const } + if(m_packageConfigurationHasBeenSet) + { + payload.WithObject("PackageConfiguration", m_packageConfiguration.Jsonize()); + + } + + if(m_packageEncryptionOptionsHasBeenSet) + { + payload.WithObject("PackageEncryptionOptions", m_packageEncryptionOptions.Jsonize()); + + } + return payload.View().WriteReadable(); } diff --git a/generated/src/aws-cpp-sdk-opensearch/source/model/UpdatePackageScopeRequest.cpp b/generated/src/aws-cpp-sdk-opensearch/source/model/UpdatePackageScopeRequest.cpp new file mode 100644 index 00000000000..de138810926 --- /dev/null +++ b/generated/src/aws-cpp-sdk-opensearch/source/model/UpdatePackageScopeRequest.cpp @@ -0,0 +1,54 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::OpenSearchService::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +UpdatePackageScopeRequest::UpdatePackageScopeRequest() : + m_packageIDHasBeenSet(false), + m_operation(PackageScopeOperationEnum::NOT_SET), + m_operationHasBeenSet(false), + m_packageUserListHasBeenSet(false) +{ +} + +Aws::String UpdatePackageScopeRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_packageIDHasBeenSet) + { + payload.WithString("PackageID", m_packageID); + + } + + if(m_operationHasBeenSet) + { + payload.WithString("Operation", PackageScopeOperationEnumMapper::GetNameForPackageScopeOperationEnum(m_operation)); + } + + if(m_packageUserListHasBeenSet) + { + Aws::Utils::Array packageUserListJsonList(m_packageUserList.size()); + for(unsigned packageUserListIndex = 0; packageUserListIndex < packageUserListJsonList.GetLength(); ++packageUserListIndex) + { + packageUserListJsonList[packageUserListIndex].AsString(m_packageUserList[packageUserListIndex]); + } + payload.WithArray("PackageUserList", std::move(packageUserListJsonList)); + + } + + return payload.View().WriteReadable(); +} + + + + diff --git a/generated/src/aws-cpp-sdk-opensearch/source/model/UpdatePackageScopeResult.cpp b/generated/src/aws-cpp-sdk-opensearch/source/model/UpdatePackageScopeResult.cpp new file mode 100644 index 00000000000..a3ce5d5450e --- /dev/null +++ b/generated/src/aws-cpp-sdk-opensearch/source/model/UpdatePackageScopeResult.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 +#include +#include + +#include + +using namespace Aws::OpenSearchService::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +UpdatePackageScopeResult::UpdatePackageScopeResult() : + m_operation(PackageScopeOperationEnum::NOT_SET) +{ +} + +UpdatePackageScopeResult::UpdatePackageScopeResult(const Aws::AmazonWebServiceResult& result) + : UpdatePackageScopeResult() +{ + *this = result; +} + +UpdatePackageScopeResult& UpdatePackageScopeResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("PackageID")) + { + m_packageID = jsonValue.GetString("PackageID"); + + } + + if(jsonValue.ValueExists("Operation")) + { + m_operation = PackageScopeOperationEnumMapper::GetPackageScopeOperationEnumForName(jsonValue.GetString("Operation")); + + } + + if(jsonValue.ValueExists("PackageUserList")) + { + Aws::Utils::Array packageUserListJsonList = jsonValue.GetArray("PackageUserList"); + for(unsigned packageUserListIndex = 0; packageUserListIndex < packageUserListJsonList.GetLength(); ++packageUserListIndex) + { + m_packageUserList.push_back(packageUserListJsonList[packageUserListIndex].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-outposts/include/aws/outposts/OutpostsClient.h b/generated/src/aws-cpp-sdk-outposts/include/aws/outposts/OutpostsClient.h index 280bf0e6a0d..da976269db8 100644 --- a/generated/src/aws-cpp-sdk-outposts/include/aws/outposts/OutpostsClient.h +++ b/generated/src/aws-cpp-sdk-outposts/include/aws/outposts/OutpostsClient.h @@ -497,6 +497,33 @@ namespace Outposts return SubmitAsync(&OutpostsClient::GetSiteAddress, request, handler, context); } + /** + *

      A list of Amazon EC2 instances, belonging to all accounts, running on the + * specified Outpost. Does not include Amazon EBS or Amazon S3 + * instances.

      See Also:

      AWS + * API Reference

      + */ + virtual Model::ListAssetInstancesOutcome ListAssetInstances(const Model::ListAssetInstancesRequest& request) const; + + /** + * A Callable wrapper for ListAssetInstances that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::ListAssetInstancesOutcomeCallable ListAssetInstancesCallable(const ListAssetInstancesRequestT& request) const + { + return SubmitCallable(&OutpostsClient::ListAssetInstances, request); + } + + /** + * An Async wrapper for ListAssetInstances that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void ListAssetInstancesAsync(const ListAssetInstancesRequestT& request, const ListAssetInstancesResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&OutpostsClient::ListAssetInstances, request, handler, context); + } + /** *

      Lists the hardware assets for the specified Outpost.

      Use filters to * return specific results. If you specify multiple filters, the results include @@ -526,6 +553,34 @@ namespace Outposts return SubmitAsync(&OutpostsClient::ListAssets, request, handler, context); } + /** + *

      A list of Amazon EC2 instances running on the Outpost and belonging to the + * account that initiated the capacity task. Use this list to specify the instances + * you cannot stop to free up capacity to run the capacity task.

      See + * Also:

      AWS + * API Reference

      + */ + virtual Model::ListBlockingInstancesForCapacityTaskOutcome ListBlockingInstancesForCapacityTask(const Model::ListBlockingInstancesForCapacityTaskRequest& request) const; + + /** + * A Callable wrapper for ListBlockingInstancesForCapacityTask that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::ListBlockingInstancesForCapacityTaskOutcomeCallable ListBlockingInstancesForCapacityTaskCallable(const ListBlockingInstancesForCapacityTaskRequestT& request) const + { + return SubmitCallable(&OutpostsClient::ListBlockingInstancesForCapacityTask, request); + } + + /** + * An Async wrapper for ListBlockingInstancesForCapacityTask that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void ListBlockingInstancesForCapacityTaskAsync(const ListBlockingInstancesForCapacityTaskRequestT& request, const ListBlockingInstancesForCapacityTaskResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&OutpostsClient::ListBlockingInstancesForCapacityTask, request, handler, context); + } + /** *

      Lists the capacity tasks for your Amazon Web Services account.

      Use * filters to return specific results. If you specify multiple filters, the results @@ -695,8 +750,8 @@ namespace Outposts } /** - *

      Starts the specified capacity task. You can have one active capacity task for - * an order.

      See Also:

      Starts the specified capacity task. You can have one active capacity task per + * order or Outpost.

      See Also:

      AWS * API Reference

      */ diff --git a/generated/src/aws-cpp-sdk-outposts/include/aws/outposts/OutpostsServiceClientModel.h b/generated/src/aws-cpp-sdk-outposts/include/aws/outposts/OutpostsServiceClientModel.h index 5e84fa61084..6518d2be403 100644 --- a/generated/src/aws-cpp-sdk-outposts/include/aws/outposts/OutpostsServiceClientModel.h +++ b/generated/src/aws-cpp-sdk-outposts/include/aws/outposts/OutpostsServiceClientModel.h @@ -34,7 +34,9 @@ #include #include #include +#include #include +#include #include #include #include @@ -110,7 +112,9 @@ namespace Aws class GetOutpostSupportedInstanceTypesRequest; class GetSiteRequest; class GetSiteAddressRequest; + class ListAssetInstancesRequest; class ListAssetsRequest; + class ListBlockingInstancesForCapacityTaskRequest; class ListCapacityTasksRequest; class ListCatalogItemsRequest; class ListOrdersRequest; @@ -144,7 +148,9 @@ namespace Aws typedef Aws::Utils::Outcome GetOutpostSupportedInstanceTypesOutcome; typedef Aws::Utils::Outcome GetSiteOutcome; typedef Aws::Utils::Outcome GetSiteAddressOutcome; + typedef Aws::Utils::Outcome ListAssetInstancesOutcome; typedef Aws::Utils::Outcome ListAssetsOutcome; + typedef Aws::Utils::Outcome ListBlockingInstancesForCapacityTaskOutcome; typedef Aws::Utils::Outcome ListCapacityTasksOutcome; typedef Aws::Utils::Outcome ListCatalogItemsOutcome; typedef Aws::Utils::Outcome ListOrdersOutcome; @@ -178,7 +184,9 @@ namespace Aws typedef std::future GetOutpostSupportedInstanceTypesOutcomeCallable; typedef std::future GetSiteOutcomeCallable; typedef std::future GetSiteAddressOutcomeCallable; + typedef std::future ListAssetInstancesOutcomeCallable; typedef std::future ListAssetsOutcomeCallable; + typedef std::future ListBlockingInstancesForCapacityTaskOutcomeCallable; typedef std::future ListCapacityTasksOutcomeCallable; typedef std::future ListCatalogItemsOutcomeCallable; typedef std::future ListOrdersOutcomeCallable; @@ -215,7 +223,9 @@ namespace Aws typedef std::function&) > GetOutpostSupportedInstanceTypesResponseReceivedHandler; typedef std::function&) > GetSiteResponseReceivedHandler; typedef std::function&) > GetSiteAddressResponseReceivedHandler; + typedef std::function&) > ListAssetInstancesResponseReceivedHandler; typedef std::function&) > ListAssetsResponseReceivedHandler; + typedef std::function&) > ListBlockingInstancesForCapacityTaskResponseReceivedHandler; typedef std::function&) > ListCapacityTasksResponseReceivedHandler; typedef std::function&) > ListCatalogItemsResponseReceivedHandler; typedef std::function&) > ListOrdersResponseReceivedHandler; diff --git a/generated/src/aws-cpp-sdk-outposts/include/aws/outposts/model/AWSServiceName.h b/generated/src/aws-cpp-sdk-outposts/include/aws/outposts/model/AWSServiceName.h new file mode 100644 index 00000000000..4c308472256 --- /dev/null +++ b/generated/src/aws-cpp-sdk-outposts/include/aws/outposts/model/AWSServiceName.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 Outposts +{ +namespace Model +{ + enum class AWSServiceName + { + NOT_SET, + AWS, + EC2, + ELASTICACHE, + ELB, + RDS, + ROUTE53 + }; + +namespace AWSServiceNameMapper +{ +AWS_OUTPOSTS_API AWSServiceName GetAWSServiceNameForName(const Aws::String& name); + +AWS_OUTPOSTS_API Aws::String GetNameForAWSServiceName(AWSServiceName value); +} // namespace AWSServiceNameMapper +} // namespace Model +} // namespace Outposts +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-outposts/include/aws/outposts/model/AssetInstance.h b/generated/src/aws-cpp-sdk-outposts/include/aws/outposts/model/AssetInstance.h new file mode 100644 index 00000000000..9d40f3311c3 --- /dev/null +++ b/generated/src/aws-cpp-sdk-outposts/include/aws/outposts/model/AssetInstance.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 + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace Outposts +{ +namespace Model +{ + + /** + *

      An Amazon EC2 instance.

      See Also:

      AWS + * API Reference

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

      The ID of the instance.

      + */ + inline const Aws::String& GetInstanceId() const{ return m_instanceId; } + inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; } + inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; } + inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); } + inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); } + inline AssetInstance& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;} + inline AssetInstance& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;} + inline AssetInstance& WithInstanceId(const char* value) { SetInstanceId(value); return *this;} + ///@} + + ///@{ + /** + *

      The type of instance.

      + */ + inline const Aws::String& GetInstanceType() const{ return m_instanceType; } + inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; } + inline void SetInstanceType(const Aws::String& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; } + inline void SetInstanceType(Aws::String&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); } + inline void SetInstanceType(const char* value) { m_instanceTypeHasBeenSet = true; m_instanceType.assign(value); } + inline AssetInstance& WithInstanceType(const Aws::String& value) { SetInstanceType(value); return *this;} + inline AssetInstance& WithInstanceType(Aws::String&& value) { SetInstanceType(std::move(value)); return *this;} + inline AssetInstance& WithInstanceType(const char* value) { SetInstanceType(value); return *this;} + ///@} + + ///@{ + /** + *

      The ID of the asset.

      + */ + inline const Aws::String& GetAssetId() const{ return m_assetId; } + inline bool AssetIdHasBeenSet() const { return m_assetIdHasBeenSet; } + inline void SetAssetId(const Aws::String& value) { m_assetIdHasBeenSet = true; m_assetId = value; } + inline void SetAssetId(Aws::String&& value) { m_assetIdHasBeenSet = true; m_assetId = std::move(value); } + inline void SetAssetId(const char* value) { m_assetIdHasBeenSet = true; m_assetId.assign(value); } + inline AssetInstance& WithAssetId(const Aws::String& value) { SetAssetId(value); return *this;} + inline AssetInstance& WithAssetId(Aws::String&& value) { SetAssetId(std::move(value)); return *this;} + inline AssetInstance& WithAssetId(const char* value) { SetAssetId(value); return *this;} + ///@} + + ///@{ + + inline const Aws::String& GetAccountId() const{ return m_accountId; } + inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; } + inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; } + inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); } + inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); } + inline AssetInstance& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;} + inline AssetInstance& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;} + inline AssetInstance& WithAccountId(const char* value) { SetAccountId(value); return *this;} + ///@} + + ///@{ + /** + *

      The Amazon Web Services service name of the instance.

      + */ + inline const AWSServiceName& GetAwsServiceName() const{ return m_awsServiceName; } + inline bool AwsServiceNameHasBeenSet() const { return m_awsServiceNameHasBeenSet; } + inline void SetAwsServiceName(const AWSServiceName& value) { m_awsServiceNameHasBeenSet = true; m_awsServiceName = value; } + inline void SetAwsServiceName(AWSServiceName&& value) { m_awsServiceNameHasBeenSet = true; m_awsServiceName = std::move(value); } + inline AssetInstance& WithAwsServiceName(const AWSServiceName& value) { SetAwsServiceName(value); return *this;} + inline AssetInstance& WithAwsServiceName(AWSServiceName&& value) { SetAwsServiceName(std::move(value)); return *this;} + ///@} + private: + + Aws::String m_instanceId; + bool m_instanceIdHasBeenSet = false; + + Aws::String m_instanceType; + bool m_instanceTypeHasBeenSet = false; + + Aws::String m_assetId; + bool m_assetIdHasBeenSet = false; + + Aws::String m_accountId; + bool m_accountIdHasBeenSet = false; + + AWSServiceName m_awsServiceName; + bool m_awsServiceNameHasBeenSet = false; + }; + +} // namespace Model +} // namespace Outposts +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-outposts/include/aws/outposts/model/AssetInstanceTypeCapacity.h b/generated/src/aws-cpp-sdk-outposts/include/aws/outposts/model/AssetInstanceTypeCapacity.h new file mode 100644 index 00000000000..9752a834cf1 --- /dev/null +++ b/generated/src/aws-cpp-sdk-outposts/include/aws/outposts/model/AssetInstanceTypeCapacity.h @@ -0,0 +1,74 @@ +/** + * 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 Outposts +{ +namespace Model +{ + + /** + *

      The capacity for each instance type.

      See Also:

      AWS + * API Reference

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

      The type of instance.

      + */ + inline const Aws::String& GetInstanceType() const{ return m_instanceType; } + inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; } + inline void SetInstanceType(const Aws::String& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; } + inline void SetInstanceType(Aws::String&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); } + inline void SetInstanceType(const char* value) { m_instanceTypeHasBeenSet = true; m_instanceType.assign(value); } + inline AssetInstanceTypeCapacity& WithInstanceType(const Aws::String& value) { SetInstanceType(value); return *this;} + inline AssetInstanceTypeCapacity& WithInstanceType(Aws::String&& value) { SetInstanceType(std::move(value)); return *this;} + inline AssetInstanceTypeCapacity& WithInstanceType(const char* value) { SetInstanceType(value); return *this;} + ///@} + + ///@{ + /** + *

      The number of each instance type.

      + */ + inline int GetCount() const{ return m_count; } + inline bool CountHasBeenSet() const { return m_countHasBeenSet; } + inline void SetCount(int value) { m_countHasBeenSet = true; m_count = value; } + inline AssetInstanceTypeCapacity& WithCount(int value) { SetCount(value); return *this;} + ///@} + private: + + Aws::String m_instanceType; + bool m_instanceTypeHasBeenSet = false; + + int m_count; + bool m_countHasBeenSet = false; + }; + +} // namespace Model +} // namespace Outposts +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-outposts/include/aws/outposts/model/BlockingInstance.h b/generated/src/aws-cpp-sdk-outposts/include/aws/outposts/model/BlockingInstance.h new file mode 100644 index 00000000000..1d44f98de0d --- /dev/null +++ b/generated/src/aws-cpp-sdk-outposts/include/aws/outposts/model/BlockingInstance.h @@ -0,0 +1,94 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace Outposts +{ +namespace Model +{ + + /** + *

      A running Amazon EC2 instance that can be stopped to free up capacity needed + * to run the capacity task.

      See Also:

      AWS + * API Reference

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

      The ID of the blocking instance.

      + */ + inline const Aws::String& GetInstanceId() const{ return m_instanceId; } + inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; } + inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; } + inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); } + inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); } + inline BlockingInstance& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;} + inline BlockingInstance& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;} + inline BlockingInstance& WithInstanceId(const char* value) { SetInstanceId(value); return *this;} + ///@} + + ///@{ + + inline const Aws::String& GetAccountId() const{ return m_accountId; } + inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; } + inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; } + inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); } + inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); } + inline BlockingInstance& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;} + inline BlockingInstance& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;} + inline BlockingInstance& WithAccountId(const char* value) { SetAccountId(value); return *this;} + ///@} + + ///@{ + /** + *

      The Amazon Web Services service name that owns the specified blocking + * instance.

      + */ + inline const AWSServiceName& GetAwsServiceName() const{ return m_awsServiceName; } + inline bool AwsServiceNameHasBeenSet() const { return m_awsServiceNameHasBeenSet; } + inline void SetAwsServiceName(const AWSServiceName& value) { m_awsServiceNameHasBeenSet = true; m_awsServiceName = value; } + inline void SetAwsServiceName(AWSServiceName&& value) { m_awsServiceNameHasBeenSet = true; m_awsServiceName = std::move(value); } + inline BlockingInstance& WithAwsServiceName(const AWSServiceName& value) { SetAwsServiceName(value); return *this;} + inline BlockingInstance& WithAwsServiceName(AWSServiceName&& value) { SetAwsServiceName(std::move(value)); return *this;} + ///@} + private: + + Aws::String m_instanceId; + bool m_instanceIdHasBeenSet = false; + + Aws::String m_accountId; + bool m_accountIdHasBeenSet = false; + + AWSServiceName m_awsServiceName; + bool m_awsServiceNameHasBeenSet = false; + }; + +} // namespace Model +} // namespace Outposts +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-outposts/include/aws/outposts/model/CapacityTaskFailureType.h b/generated/src/aws-cpp-sdk-outposts/include/aws/outposts/model/CapacityTaskFailureType.h index c690cf4d83e..bfae30b36ba 100644 --- a/generated/src/aws-cpp-sdk-outposts/include/aws/outposts/model/CapacityTaskFailureType.h +++ b/generated/src/aws-cpp-sdk-outposts/include/aws/outposts/model/CapacityTaskFailureType.h @@ -16,7 +16,11 @@ namespace Model enum class CapacityTaskFailureType { NOT_SET, - UNSUPPORTED_CAPACITY_CONFIGURATION + UNSUPPORTED_CAPACITY_CONFIGURATION, + UNEXPECTED_ASSET_STATE, + BLOCKING_INSTANCES_NOT_EVACUATED, + INTERNAL_SERVER_ERROR, + RESOURCE_NOT_FOUND }; namespace CapacityTaskFailureTypeMapper diff --git a/generated/src/aws-cpp-sdk-outposts/include/aws/outposts/model/CapacityTaskStatus.h b/generated/src/aws-cpp-sdk-outposts/include/aws/outposts/model/CapacityTaskStatus.h index abab6a51a2a..698097bfe34 100644 --- a/generated/src/aws-cpp-sdk-outposts/include/aws/outposts/model/CapacityTaskStatus.h +++ b/generated/src/aws-cpp-sdk-outposts/include/aws/outposts/model/CapacityTaskStatus.h @@ -20,6 +20,8 @@ namespace Model IN_PROGRESS, FAILED, COMPLETED, + WAITING_FOR_EVACUATION, + CANCELLATION_IN_PROGRESS, CANCELLED }; diff --git a/generated/src/aws-cpp-sdk-outposts/include/aws/outposts/model/ComputeAttributes.h b/generated/src/aws-cpp-sdk-outposts/include/aws/outposts/model/ComputeAttributes.h index 0f6dc82e1a1..0c6ab9aba04 100644 --- a/generated/src/aws-cpp-sdk-outposts/include/aws/outposts/model/ComputeAttributes.h +++ b/generated/src/aws-cpp-sdk-outposts/include/aws/outposts/model/ComputeAttributes.h @@ -8,6 +8,7 @@ #include #include #include +#include #include namespace Aws @@ -86,6 +87,31 @@ namespace Model inline ComputeAttributes& AddInstanceFamilies(Aws::String&& value) { m_instanceFamiliesHasBeenSet = true; m_instanceFamilies.push_back(std::move(value)); return *this; } inline ComputeAttributes& AddInstanceFamilies(const char* value) { m_instanceFamiliesHasBeenSet = true; m_instanceFamilies.push_back(value); return *this; } ///@} + + ///@{ + /** + *

      The instance type capacities configured for this asset. This can be changed + * through a capacity task.

      + */ + inline const Aws::Vector& GetInstanceTypeCapacities() const{ return m_instanceTypeCapacities; } + inline bool InstanceTypeCapacitiesHasBeenSet() const { return m_instanceTypeCapacitiesHasBeenSet; } + inline void SetInstanceTypeCapacities(const Aws::Vector& value) { m_instanceTypeCapacitiesHasBeenSet = true; m_instanceTypeCapacities = value; } + inline void SetInstanceTypeCapacities(Aws::Vector&& value) { m_instanceTypeCapacitiesHasBeenSet = true; m_instanceTypeCapacities = std::move(value); } + inline ComputeAttributes& WithInstanceTypeCapacities(const Aws::Vector& value) { SetInstanceTypeCapacities(value); return *this;} + inline ComputeAttributes& WithInstanceTypeCapacities(Aws::Vector&& value) { SetInstanceTypeCapacities(std::move(value)); return *this;} + inline ComputeAttributes& AddInstanceTypeCapacities(const AssetInstanceTypeCapacity& value) { m_instanceTypeCapacitiesHasBeenSet = true; m_instanceTypeCapacities.push_back(value); return *this; } + inline ComputeAttributes& AddInstanceTypeCapacities(AssetInstanceTypeCapacity&& value) { m_instanceTypeCapacitiesHasBeenSet = true; m_instanceTypeCapacities.push_back(std::move(value)); return *this; } + ///@} + + ///@{ + /** + *

      The maximum number of vCPUs possible for the specified asset.

      + */ + inline int GetMaxVcpus() const{ return m_maxVcpus; } + inline bool MaxVcpusHasBeenSet() const { return m_maxVcpusHasBeenSet; } + inline void SetMaxVcpus(int value) { m_maxVcpusHasBeenSet = true; m_maxVcpus = value; } + inline ComputeAttributes& WithMaxVcpus(int value) { SetMaxVcpus(value); return *this;} + ///@} private: Aws::String m_hostId; @@ -96,6 +122,12 @@ namespace Model Aws::Vector m_instanceFamilies; bool m_instanceFamiliesHasBeenSet = false; + + Aws::Vector m_instanceTypeCapacities; + bool m_instanceTypeCapacitiesHasBeenSet = false; + + int m_maxVcpus; + bool m_maxVcpusHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-outposts/include/aws/outposts/model/GetCapacityTaskResult.h b/generated/src/aws-cpp-sdk-outposts/include/aws/outposts/model/GetCapacityTaskResult.h index e1776e2d7dc..c4e3ac91eb9 100644 --- a/generated/src/aws-cpp-sdk-outposts/include/aws/outposts/model/GetCapacityTaskResult.h +++ b/generated/src/aws-cpp-sdk-outposts/include/aws/outposts/model/GetCapacityTaskResult.h @@ -7,9 +7,11 @@ #include #include #include +#include #include #include #include +#include #include #include @@ -90,6 +92,18 @@ namespace Model inline GetCapacityTaskResult& AddRequestedInstancePools(InstanceTypeCapacity&& value) { m_requestedInstancePools.push_back(std::move(value)); return *this; } ///@} + ///@{ + /** + *

      Instances that the user specified they cannot stop in order to free up the + * capacity needed to run the capacity task.

      + */ + inline const InstancesToExclude& GetInstancesToExclude() const{ return m_instancesToExclude; } + inline void SetInstancesToExclude(const InstancesToExclude& value) { m_instancesToExclude = value; } + inline void SetInstancesToExclude(InstancesToExclude&& value) { m_instancesToExclude = std::move(value); } + inline GetCapacityTaskResult& WithInstancesToExclude(const InstancesToExclude& value) { SetInstancesToExclude(value); return *this;} + inline GetCapacityTaskResult& WithInstancesToExclude(InstancesToExclude&& value) { SetInstancesToExclude(std::move(value)); return *this;} + ///@} + ///@{ /** *

      Performs a dry run to determine if you are above or below instance @@ -161,6 +175,22 @@ namespace Model inline GetCapacityTaskResult& WithLastModifiedDate(Aws::Utils::DateTime&& value) { SetLastModifiedDate(std::move(value)); return *this;} ///@} + ///@{ + /** + *

      User-specified option in case an instance is blocking the capacity task from + * running. Shows one of the following options:

      • + * WAIT_FOR_EVACUATION - Checks every 10 minutes over 48 hours to + * determine if instances have stopped and capacity is available to complete the + * task.

      • FAIL_TASK - The capacity task fails.

        + *
      + */ + inline const TaskActionOnBlockingInstances& GetTaskActionOnBlockingInstances() const{ return m_taskActionOnBlockingInstances; } + inline void SetTaskActionOnBlockingInstances(const TaskActionOnBlockingInstances& value) { m_taskActionOnBlockingInstances = value; } + inline void SetTaskActionOnBlockingInstances(TaskActionOnBlockingInstances&& value) { m_taskActionOnBlockingInstances = std::move(value); } + inline GetCapacityTaskResult& WithTaskActionOnBlockingInstances(const TaskActionOnBlockingInstances& value) { SetTaskActionOnBlockingInstances(value); return *this;} + inline GetCapacityTaskResult& WithTaskActionOnBlockingInstances(TaskActionOnBlockingInstances&& value) { SetTaskActionOnBlockingInstances(std::move(value)); return *this;} + ///@} + ///@{ inline const Aws::String& GetRequestId() const{ return m_requestId; } @@ -181,6 +211,8 @@ namespace Model Aws::Vector m_requestedInstancePools; + InstancesToExclude m_instancesToExclude; + bool m_dryRun; CapacityTaskStatus m_capacityTaskStatus; @@ -193,6 +225,8 @@ namespace Model Aws::Utils::DateTime m_lastModifiedDate; + TaskActionOnBlockingInstances m_taskActionOnBlockingInstances; + Aws::String m_requestId; }; diff --git a/generated/src/aws-cpp-sdk-outposts/include/aws/outposts/model/InstancesToExclude.h b/generated/src/aws-cpp-sdk-outposts/include/aws/outposts/model/InstancesToExclude.h new file mode 100644 index 00000000000..618812c33e7 --- /dev/null +++ b/generated/src/aws-cpp-sdk-outposts/include/aws/outposts/model/InstancesToExclude.h @@ -0,0 +1,102 @@ +/** + * 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 Outposts +{ +namespace Model +{ + + /** + *

      User-specified instances that must not be stopped. These instances will not + * appear in the list of instances that Amazon Web Services recommends to stop in + * order to free up capacity.

      See Also:

      AWS + * API Reference

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

      List of user-specified instances that must not be stopped.

      + */ + inline const Aws::Vector& GetInstances() const{ return m_instances; } + inline bool InstancesHasBeenSet() const { return m_instancesHasBeenSet; } + inline void SetInstances(const Aws::Vector& value) { m_instancesHasBeenSet = true; m_instances = value; } + inline void SetInstances(Aws::Vector&& value) { m_instancesHasBeenSet = true; m_instances = std::move(value); } + inline InstancesToExclude& WithInstances(const Aws::Vector& value) { SetInstances(value); return *this;} + inline InstancesToExclude& WithInstances(Aws::Vector&& value) { SetInstances(std::move(value)); return *this;} + inline InstancesToExclude& AddInstances(const Aws::String& value) { m_instancesHasBeenSet = true; m_instances.push_back(value); return *this; } + inline InstancesToExclude& AddInstances(Aws::String&& value) { m_instancesHasBeenSet = true; m_instances.push_back(std::move(value)); return *this; } + inline InstancesToExclude& AddInstances(const char* value) { m_instancesHasBeenSet = true; m_instances.push_back(value); return *this; } + ///@} + + ///@{ + /** + *

      IDs of the accounts that own each instance that must not be stopped.

      + */ + inline const Aws::Vector& GetAccountIds() const{ return m_accountIds; } + inline bool AccountIdsHasBeenSet() const { return m_accountIdsHasBeenSet; } + inline void SetAccountIds(const Aws::Vector& value) { m_accountIdsHasBeenSet = true; m_accountIds = value; } + inline void SetAccountIds(Aws::Vector&& value) { m_accountIdsHasBeenSet = true; m_accountIds = std::move(value); } + inline InstancesToExclude& WithAccountIds(const Aws::Vector& value) { SetAccountIds(value); return *this;} + inline InstancesToExclude& WithAccountIds(Aws::Vector&& value) { SetAccountIds(std::move(value)); return *this;} + inline InstancesToExclude& AddAccountIds(const Aws::String& value) { m_accountIdsHasBeenSet = true; m_accountIds.push_back(value); return *this; } + inline InstancesToExclude& AddAccountIds(Aws::String&& value) { m_accountIdsHasBeenSet = true; m_accountIds.push_back(std::move(value)); return *this; } + inline InstancesToExclude& AddAccountIds(const char* value) { m_accountIdsHasBeenSet = true; m_accountIds.push_back(value); return *this; } + ///@} + + ///@{ + /** + *

      Names of the services that own each instance that must not be stopped in + * order to free up the capacity needed to run the capacity task.

      + */ + inline const Aws::Vector& GetServices() const{ return m_services; } + inline bool ServicesHasBeenSet() const { return m_servicesHasBeenSet; } + inline void SetServices(const Aws::Vector& value) { m_servicesHasBeenSet = true; m_services = value; } + inline void SetServices(Aws::Vector&& value) { m_servicesHasBeenSet = true; m_services = std::move(value); } + inline InstancesToExclude& WithServices(const Aws::Vector& value) { SetServices(value); return *this;} + inline InstancesToExclude& WithServices(Aws::Vector&& value) { SetServices(std::move(value)); return *this;} + inline InstancesToExclude& AddServices(const AWSServiceName& value) { m_servicesHasBeenSet = true; m_services.push_back(value); return *this; } + inline InstancesToExclude& AddServices(AWSServiceName&& value) { m_servicesHasBeenSet = true; m_services.push_back(std::move(value)); return *this; } + ///@} + private: + + Aws::Vector m_instances; + bool m_instancesHasBeenSet = false; + + Aws::Vector m_accountIds; + bool m_accountIdsHasBeenSet = false; + + Aws::Vector m_services; + bool m_servicesHasBeenSet = false; + }; + +} // namespace Model +} // namespace Outposts +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-outposts/include/aws/outposts/model/ListAssetInstancesRequest.h b/generated/src/aws-cpp-sdk-outposts/include/aws/outposts/model/ListAssetInstancesRequest.h new file mode 100644 index 00000000000..3dcb6dbb425 --- /dev/null +++ b/generated/src/aws-cpp-sdk-outposts/include/aws/outposts/model/ListAssetInstancesRequest.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 +#include + +namespace Aws +{ +namespace Http +{ + class URI; +} //namespace Http +namespace Outposts +{ +namespace Model +{ + + /** + */ + class ListAssetInstancesRequest : public OutpostsRequest + { + public: + AWS_OUTPOSTS_API ListAssetInstancesRequest(); + + // 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 "ListAssetInstances"; } + + AWS_OUTPOSTS_API Aws::String SerializePayload() const override; + + AWS_OUTPOSTS_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; + + + ///@{ + /** + *

      The ID of the Outpost.

      + */ + inline const Aws::String& GetOutpostIdentifier() const{ return m_outpostIdentifier; } + inline bool OutpostIdentifierHasBeenSet() const { return m_outpostIdentifierHasBeenSet; } + inline void SetOutpostIdentifier(const Aws::String& value) { m_outpostIdentifierHasBeenSet = true; m_outpostIdentifier = value; } + inline void SetOutpostIdentifier(Aws::String&& value) { m_outpostIdentifierHasBeenSet = true; m_outpostIdentifier = std::move(value); } + inline void SetOutpostIdentifier(const char* value) { m_outpostIdentifierHasBeenSet = true; m_outpostIdentifier.assign(value); } + inline ListAssetInstancesRequest& WithOutpostIdentifier(const Aws::String& value) { SetOutpostIdentifier(value); return *this;} + inline ListAssetInstancesRequest& WithOutpostIdentifier(Aws::String&& value) { SetOutpostIdentifier(std::move(value)); return *this;} + inline ListAssetInstancesRequest& WithOutpostIdentifier(const char* value) { SetOutpostIdentifier(value); return *this;} + ///@} + + ///@{ + /** + *

      Filters the results by asset ID.

      + */ + inline const Aws::Vector& GetAssetIdFilter() const{ return m_assetIdFilter; } + inline bool AssetIdFilterHasBeenSet() const { return m_assetIdFilterHasBeenSet; } + inline void SetAssetIdFilter(const Aws::Vector& value) { m_assetIdFilterHasBeenSet = true; m_assetIdFilter = value; } + inline void SetAssetIdFilter(Aws::Vector&& value) { m_assetIdFilterHasBeenSet = true; m_assetIdFilter = std::move(value); } + inline ListAssetInstancesRequest& WithAssetIdFilter(const Aws::Vector& value) { SetAssetIdFilter(value); return *this;} + inline ListAssetInstancesRequest& WithAssetIdFilter(Aws::Vector&& value) { SetAssetIdFilter(std::move(value)); return *this;} + inline ListAssetInstancesRequest& AddAssetIdFilter(const Aws::String& value) { m_assetIdFilterHasBeenSet = true; m_assetIdFilter.push_back(value); return *this; } + inline ListAssetInstancesRequest& AddAssetIdFilter(Aws::String&& value) { m_assetIdFilterHasBeenSet = true; m_assetIdFilter.push_back(std::move(value)); return *this; } + inline ListAssetInstancesRequest& AddAssetIdFilter(const char* value) { m_assetIdFilterHasBeenSet = true; m_assetIdFilter.push_back(value); return *this; } + ///@} + + ///@{ + /** + *

      Filters the results by instance ID.

      + */ + inline const Aws::Vector& GetInstanceTypeFilter() const{ return m_instanceTypeFilter; } + inline bool InstanceTypeFilterHasBeenSet() const { return m_instanceTypeFilterHasBeenSet; } + inline void SetInstanceTypeFilter(const Aws::Vector& value) { m_instanceTypeFilterHasBeenSet = true; m_instanceTypeFilter = value; } + inline void SetInstanceTypeFilter(Aws::Vector&& value) { m_instanceTypeFilterHasBeenSet = true; m_instanceTypeFilter = std::move(value); } + inline ListAssetInstancesRequest& WithInstanceTypeFilter(const Aws::Vector& value) { SetInstanceTypeFilter(value); return *this;} + inline ListAssetInstancesRequest& WithInstanceTypeFilter(Aws::Vector&& value) { SetInstanceTypeFilter(std::move(value)); return *this;} + inline ListAssetInstancesRequest& AddInstanceTypeFilter(const Aws::String& value) { m_instanceTypeFilterHasBeenSet = true; m_instanceTypeFilter.push_back(value); return *this; } + inline ListAssetInstancesRequest& AddInstanceTypeFilter(Aws::String&& value) { m_instanceTypeFilterHasBeenSet = true; m_instanceTypeFilter.push_back(std::move(value)); return *this; } + inline ListAssetInstancesRequest& AddInstanceTypeFilter(const char* value) { m_instanceTypeFilterHasBeenSet = true; m_instanceTypeFilter.push_back(value); return *this; } + ///@} + + ///@{ + /** + *

      Filters the results by account ID.

      + */ + inline const Aws::Vector& GetAccountIdFilter() const{ return m_accountIdFilter; } + inline bool AccountIdFilterHasBeenSet() const { return m_accountIdFilterHasBeenSet; } + inline void SetAccountIdFilter(const Aws::Vector& value) { m_accountIdFilterHasBeenSet = true; m_accountIdFilter = value; } + inline void SetAccountIdFilter(Aws::Vector&& value) { m_accountIdFilterHasBeenSet = true; m_accountIdFilter = std::move(value); } + inline ListAssetInstancesRequest& WithAccountIdFilter(const Aws::Vector& value) { SetAccountIdFilter(value); return *this;} + inline ListAssetInstancesRequest& WithAccountIdFilter(Aws::Vector&& value) { SetAccountIdFilter(std::move(value)); return *this;} + inline ListAssetInstancesRequest& AddAccountIdFilter(const Aws::String& value) { m_accountIdFilterHasBeenSet = true; m_accountIdFilter.push_back(value); return *this; } + inline ListAssetInstancesRequest& AddAccountIdFilter(Aws::String&& value) { m_accountIdFilterHasBeenSet = true; m_accountIdFilter.push_back(std::move(value)); return *this; } + inline ListAssetInstancesRequest& AddAccountIdFilter(const char* value) { m_accountIdFilterHasBeenSet = true; m_accountIdFilter.push_back(value); return *this; } + ///@} + + ///@{ + /** + *

      Filters the results by Amazon Web Services service.

      + */ + inline const Aws::Vector& GetAwsServiceFilter() const{ return m_awsServiceFilter; } + inline bool AwsServiceFilterHasBeenSet() const { return m_awsServiceFilterHasBeenSet; } + inline void SetAwsServiceFilter(const Aws::Vector& value) { m_awsServiceFilterHasBeenSet = true; m_awsServiceFilter = value; } + inline void SetAwsServiceFilter(Aws::Vector&& value) { m_awsServiceFilterHasBeenSet = true; m_awsServiceFilter = std::move(value); } + inline ListAssetInstancesRequest& WithAwsServiceFilter(const Aws::Vector& value) { SetAwsServiceFilter(value); return *this;} + inline ListAssetInstancesRequest& WithAwsServiceFilter(Aws::Vector&& value) { SetAwsServiceFilter(std::move(value)); return *this;} + inline ListAssetInstancesRequest& AddAwsServiceFilter(const AWSServiceName& value) { m_awsServiceFilterHasBeenSet = true; m_awsServiceFilter.push_back(value); return *this; } + inline ListAssetInstancesRequest& AddAwsServiceFilter(AWSServiceName&& value) { m_awsServiceFilterHasBeenSet = true; m_awsServiceFilter.push_back(std::move(value)); return *this; } + ///@} + + ///@{ + + inline int GetMaxResults() const{ return m_maxResults; } + inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } + inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } + inline ListAssetInstancesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} + ///@} + + ///@{ + + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } + inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } + inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } + inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } + inline ListAssetInstancesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + inline ListAssetInstancesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + inline ListAssetInstancesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} + ///@} + private: + + Aws::String m_outpostIdentifier; + bool m_outpostIdentifierHasBeenSet = false; + + Aws::Vector m_assetIdFilter; + bool m_assetIdFilterHasBeenSet = false; + + Aws::Vector m_instanceTypeFilter; + bool m_instanceTypeFilterHasBeenSet = false; + + Aws::Vector m_accountIdFilter; + bool m_accountIdFilterHasBeenSet = false; + + Aws::Vector m_awsServiceFilter; + bool m_awsServiceFilterHasBeenSet = false; + + int m_maxResults; + bool m_maxResultsHasBeenSet = false; + + Aws::String m_nextToken; + bool m_nextTokenHasBeenSet = false; + }; + +} // namespace Model +} // namespace Outposts +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-outposts/include/aws/outposts/model/ListAssetInstancesResult.h b/generated/src/aws-cpp-sdk-outposts/include/aws/outposts/model/ListAssetInstancesResult.h new file mode 100644 index 00000000000..753f10804d7 --- /dev/null +++ b/generated/src/aws-cpp-sdk-outposts/include/aws/outposts/model/ListAssetInstancesResult.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 +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace Outposts +{ +namespace Model +{ + class ListAssetInstancesResult + { + public: + AWS_OUTPOSTS_API ListAssetInstancesResult(); + AWS_OUTPOSTS_API ListAssetInstancesResult(const Aws::AmazonWebServiceResult& result); + AWS_OUTPOSTS_API ListAssetInstancesResult& operator=(const Aws::AmazonWebServiceResult& result); + + + ///@{ + /** + *

      List of instances owned by all accounts on the Outpost. Does not include + * Amazon EBS or Amazon S3 instances.

      + */ + inline const Aws::Vector& GetAssetInstances() const{ return m_assetInstances; } + inline void SetAssetInstances(const Aws::Vector& value) { m_assetInstances = value; } + inline void SetAssetInstances(Aws::Vector&& value) { m_assetInstances = std::move(value); } + inline ListAssetInstancesResult& WithAssetInstances(const Aws::Vector& value) { SetAssetInstances(value); return *this;} + inline ListAssetInstancesResult& WithAssetInstances(Aws::Vector&& value) { SetAssetInstances(std::move(value)); return *this;} + inline ListAssetInstancesResult& AddAssetInstances(const AssetInstance& value) { m_assetInstances.push_back(value); return *this; } + inline ListAssetInstancesResult& AddAssetInstances(AssetInstance&& value) { m_assetInstances.push_back(std::move(value)); return *this; } + ///@} + + ///@{ + + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + inline void SetNextToken(const Aws::String& value) { m_nextToken = value; } + inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); } + inline void SetNextToken(const char* value) { m_nextToken.assign(value); } + inline ListAssetInstancesResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + inline ListAssetInstancesResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + inline ListAssetInstancesResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} + ///@} + + ///@{ + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + inline ListAssetInstancesResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + inline ListAssetInstancesResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + inline ListAssetInstancesResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + ///@} + private: + + Aws::Vector m_assetInstances; + + Aws::String m_nextToken; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace Outposts +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-outposts/include/aws/outposts/model/ListBlockingInstancesForCapacityTaskRequest.h b/generated/src/aws-cpp-sdk-outposts/include/aws/outposts/model/ListBlockingInstancesForCapacityTaskRequest.h new file mode 100644 index 00000000000..6b02e834223 --- /dev/null +++ b/generated/src/aws-cpp-sdk-outposts/include/aws/outposts/model/ListBlockingInstancesForCapacityTaskRequest.h @@ -0,0 +1,105 @@ +/** + * 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 Outposts +{ +namespace Model +{ + + /** + */ + class ListBlockingInstancesForCapacityTaskRequest : public OutpostsRequest + { + public: + AWS_OUTPOSTS_API ListBlockingInstancesForCapacityTaskRequest(); + + // 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 "ListBlockingInstancesForCapacityTask"; } + + AWS_OUTPOSTS_API Aws::String SerializePayload() const override; + + AWS_OUTPOSTS_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; + + + ///@{ + /** + *

      The ID or ARN of the Outpost associated with the specified capacity task.

      + */ + inline const Aws::String& GetOutpostIdentifier() const{ return m_outpostIdentifier; } + inline bool OutpostIdentifierHasBeenSet() const { return m_outpostIdentifierHasBeenSet; } + inline void SetOutpostIdentifier(const Aws::String& value) { m_outpostIdentifierHasBeenSet = true; m_outpostIdentifier = value; } + inline void SetOutpostIdentifier(Aws::String&& value) { m_outpostIdentifierHasBeenSet = true; m_outpostIdentifier = std::move(value); } + inline void SetOutpostIdentifier(const char* value) { m_outpostIdentifierHasBeenSet = true; m_outpostIdentifier.assign(value); } + inline ListBlockingInstancesForCapacityTaskRequest& WithOutpostIdentifier(const Aws::String& value) { SetOutpostIdentifier(value); return *this;} + inline ListBlockingInstancesForCapacityTaskRequest& WithOutpostIdentifier(Aws::String&& value) { SetOutpostIdentifier(std::move(value)); return *this;} + inline ListBlockingInstancesForCapacityTaskRequest& WithOutpostIdentifier(const char* value) { SetOutpostIdentifier(value); return *this;} + ///@} + + ///@{ + /** + *

      The ID of the capacity task.

      + */ + inline const Aws::String& GetCapacityTaskId() const{ return m_capacityTaskId; } + inline bool CapacityTaskIdHasBeenSet() const { return m_capacityTaskIdHasBeenSet; } + inline void SetCapacityTaskId(const Aws::String& value) { m_capacityTaskIdHasBeenSet = true; m_capacityTaskId = value; } + inline void SetCapacityTaskId(Aws::String&& value) { m_capacityTaskIdHasBeenSet = true; m_capacityTaskId = std::move(value); } + inline void SetCapacityTaskId(const char* value) { m_capacityTaskIdHasBeenSet = true; m_capacityTaskId.assign(value); } + inline ListBlockingInstancesForCapacityTaskRequest& WithCapacityTaskId(const Aws::String& value) { SetCapacityTaskId(value); return *this;} + inline ListBlockingInstancesForCapacityTaskRequest& WithCapacityTaskId(Aws::String&& value) { SetCapacityTaskId(std::move(value)); return *this;} + inline ListBlockingInstancesForCapacityTaskRequest& WithCapacityTaskId(const char* value) { SetCapacityTaskId(value); return *this;} + ///@} + + ///@{ + + inline int GetMaxResults() const{ return m_maxResults; } + inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } + inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } + inline ListBlockingInstancesForCapacityTaskRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} + ///@} + + ///@{ + + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } + inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } + inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } + inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } + inline ListBlockingInstancesForCapacityTaskRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + inline ListBlockingInstancesForCapacityTaskRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + inline ListBlockingInstancesForCapacityTaskRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} + ///@} + private: + + Aws::String m_outpostIdentifier; + bool m_outpostIdentifierHasBeenSet = false; + + Aws::String m_capacityTaskId; + bool m_capacityTaskIdHasBeenSet = false; + + int m_maxResults; + bool m_maxResultsHasBeenSet = false; + + Aws::String m_nextToken; + bool m_nextTokenHasBeenSet = false; + }; + +} // namespace Model +} // namespace Outposts +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-outposts/include/aws/outposts/model/ListBlockingInstancesForCapacityTaskResult.h b/generated/src/aws-cpp-sdk-outposts/include/aws/outposts/model/ListBlockingInstancesForCapacityTaskResult.h new file mode 100644 index 00000000000..382ab8afc50 --- /dev/null +++ b/generated/src/aws-cpp-sdk-outposts/include/aws/outposts/model/ListBlockingInstancesForCapacityTaskResult.h @@ -0,0 +1,84 @@ +/** + * 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 Outposts +{ +namespace Model +{ + class ListBlockingInstancesForCapacityTaskResult + { + public: + AWS_OUTPOSTS_API ListBlockingInstancesForCapacityTaskResult(); + AWS_OUTPOSTS_API ListBlockingInstancesForCapacityTaskResult(const Aws::AmazonWebServiceResult& result); + AWS_OUTPOSTS_API ListBlockingInstancesForCapacityTaskResult& operator=(const Aws::AmazonWebServiceResult& result); + + + ///@{ + /** + *

      A list of all running Amazon EC2 instances on the Outpost. Stopping one or + * more of these instances can free up the capacity needed to run the capacity + * task.

      + */ + inline const Aws::Vector& GetBlockingInstances() const{ return m_blockingInstances; } + inline void SetBlockingInstances(const Aws::Vector& value) { m_blockingInstances = value; } + inline void SetBlockingInstances(Aws::Vector&& value) { m_blockingInstances = std::move(value); } + inline ListBlockingInstancesForCapacityTaskResult& WithBlockingInstances(const Aws::Vector& value) { SetBlockingInstances(value); return *this;} + inline ListBlockingInstancesForCapacityTaskResult& WithBlockingInstances(Aws::Vector&& value) { SetBlockingInstances(std::move(value)); return *this;} + inline ListBlockingInstancesForCapacityTaskResult& AddBlockingInstances(const BlockingInstance& value) { m_blockingInstances.push_back(value); return *this; } + inline ListBlockingInstancesForCapacityTaskResult& AddBlockingInstances(BlockingInstance&& value) { m_blockingInstances.push_back(std::move(value)); return *this; } + ///@} + + ///@{ + + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + inline void SetNextToken(const Aws::String& value) { m_nextToken = value; } + inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); } + inline void SetNextToken(const char* value) { m_nextToken.assign(value); } + inline ListBlockingInstancesForCapacityTaskResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + inline ListBlockingInstancesForCapacityTaskResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + inline ListBlockingInstancesForCapacityTaskResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} + ///@} + + ///@{ + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + inline ListBlockingInstancesForCapacityTaskResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + inline ListBlockingInstancesForCapacityTaskResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + inline ListBlockingInstancesForCapacityTaskResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + ///@} + private: + + Aws::Vector m_blockingInstances; + + Aws::String m_nextToken; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace Outposts +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-outposts/include/aws/outposts/model/StartCapacityTaskRequest.h b/generated/src/aws-cpp-sdk-outposts/include/aws/outposts/model/StartCapacityTaskRequest.h index f80da398c4b..ea3476ffc9b 100644 --- a/generated/src/aws-cpp-sdk-outposts/include/aws/outposts/model/StartCapacityTaskRequest.h +++ b/generated/src/aws-cpp-sdk-outposts/include/aws/outposts/model/StartCapacityTaskRequest.h @@ -8,6 +8,8 @@ #include #include #include +#include +#include #include #include @@ -78,6 +80,19 @@ namespace Model inline StartCapacityTaskRequest& AddInstancePools(InstanceTypeCapacity&& value) { m_instancePoolsHasBeenSet = true; m_instancePools.push_back(std::move(value)); return *this; } ///@} + ///@{ + /** + *

      List of user-specified running instances that must not be stopped in order to + * free up the capacity needed to run the capacity task.

      + */ + inline const InstancesToExclude& GetInstancesToExclude() const{ return m_instancesToExclude; } + inline bool InstancesToExcludeHasBeenSet() const { return m_instancesToExcludeHasBeenSet; } + inline void SetInstancesToExclude(const InstancesToExclude& value) { m_instancesToExcludeHasBeenSet = true; m_instancesToExclude = value; } + inline void SetInstancesToExclude(InstancesToExclude&& value) { m_instancesToExcludeHasBeenSet = true; m_instancesToExclude = std::move(value); } + inline StartCapacityTaskRequest& WithInstancesToExclude(const InstancesToExclude& value) { SetInstancesToExclude(value); return *this;} + inline StartCapacityTaskRequest& WithInstancesToExclude(InstancesToExclude&& value) { SetInstancesToExclude(std::move(value)); return *this;} + ///@} + ///@{ /** *

      You can request a dry run to determine if the instance type and instance size @@ -89,6 +104,22 @@ namespace Model inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; } inline StartCapacityTaskRequest& WithDryRun(bool value) { SetDryRun(value); return *this;} ///@} + + ///@{ + /** + *

      Specify one of the following options in case an instance is blocking the + * capacity task from running.

      • WAIT_FOR_EVACUATION - + * Checks every 10 minutes over 48 hours to determine if instances have stopped and + * capacity is available to complete the task.

      • + * FAIL_TASK - The capacity task fails.

      + */ + inline const TaskActionOnBlockingInstances& GetTaskActionOnBlockingInstances() const{ return m_taskActionOnBlockingInstances; } + inline bool TaskActionOnBlockingInstancesHasBeenSet() const { return m_taskActionOnBlockingInstancesHasBeenSet; } + inline void SetTaskActionOnBlockingInstances(const TaskActionOnBlockingInstances& value) { m_taskActionOnBlockingInstancesHasBeenSet = true; m_taskActionOnBlockingInstances = value; } + inline void SetTaskActionOnBlockingInstances(TaskActionOnBlockingInstances&& value) { m_taskActionOnBlockingInstancesHasBeenSet = true; m_taskActionOnBlockingInstances = std::move(value); } + inline StartCapacityTaskRequest& WithTaskActionOnBlockingInstances(const TaskActionOnBlockingInstances& value) { SetTaskActionOnBlockingInstances(value); return *this;} + inline StartCapacityTaskRequest& WithTaskActionOnBlockingInstances(TaskActionOnBlockingInstances&& value) { SetTaskActionOnBlockingInstances(std::move(value)); return *this;} + ///@} private: Aws::String m_outpostIdentifier; @@ -100,8 +131,14 @@ namespace Model Aws::Vector m_instancePools; bool m_instancePoolsHasBeenSet = false; + InstancesToExclude m_instancesToExclude; + bool m_instancesToExcludeHasBeenSet = false; + bool m_dryRun; bool m_dryRunHasBeenSet = false; + + TaskActionOnBlockingInstances m_taskActionOnBlockingInstances; + bool m_taskActionOnBlockingInstancesHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-outposts/include/aws/outposts/model/StartCapacityTaskResult.h b/generated/src/aws-cpp-sdk-outposts/include/aws/outposts/model/StartCapacityTaskResult.h index b89d22e7e5a..7a4588a0e7b 100644 --- a/generated/src/aws-cpp-sdk-outposts/include/aws/outposts/model/StartCapacityTaskResult.h +++ b/generated/src/aws-cpp-sdk-outposts/include/aws/outposts/model/StartCapacityTaskResult.h @@ -7,9 +7,11 @@ #include #include #include +#include #include #include #include +#include #include #include @@ -90,6 +92,18 @@ namespace Model inline StartCapacityTaskResult& AddRequestedInstancePools(InstanceTypeCapacity&& value) { m_requestedInstancePools.push_back(std::move(value)); return *this; } ///@} + ///@{ + /** + *

      User-specified instances that must not be stopped in order to free up the + * capacity needed to run the capacity task.

      + */ + inline const InstancesToExclude& GetInstancesToExclude() const{ return m_instancesToExclude; } + inline void SetInstancesToExclude(const InstancesToExclude& value) { m_instancesToExclude = value; } + inline void SetInstancesToExclude(InstancesToExclude&& value) { m_instancesToExclude = std::move(value); } + inline StartCapacityTaskResult& WithInstancesToExclude(const InstancesToExclude& value) { SetInstancesToExclude(value); return *this;} + inline StartCapacityTaskResult& WithInstancesToExclude(InstancesToExclude&& value) { SetInstancesToExclude(std::move(value)); return *this;} + ///@} + ///@{ /** *

      Results of the dry run showing if the specified capacity task is above or @@ -155,6 +169,21 @@ namespace Model inline StartCapacityTaskResult& WithLastModifiedDate(Aws::Utils::DateTime&& value) { SetLastModifiedDate(std::move(value)); return *this;} ///@} + ///@{ + /** + *

      User-specified option in case an instance is blocking the capacity task from + * running.

      • WAIT_FOR_EVACUATION - Checks every 10 + * minutes over 48 hours to determine if instances have stopped and capacity is + * available to complete the task.

      • FAIL_TASK - The + * capacity task fails.

      + */ + inline const TaskActionOnBlockingInstances& GetTaskActionOnBlockingInstances() const{ return m_taskActionOnBlockingInstances; } + inline void SetTaskActionOnBlockingInstances(const TaskActionOnBlockingInstances& value) { m_taskActionOnBlockingInstances = value; } + inline void SetTaskActionOnBlockingInstances(TaskActionOnBlockingInstances&& value) { m_taskActionOnBlockingInstances = std::move(value); } + inline StartCapacityTaskResult& WithTaskActionOnBlockingInstances(const TaskActionOnBlockingInstances& value) { SetTaskActionOnBlockingInstances(value); return *this;} + inline StartCapacityTaskResult& WithTaskActionOnBlockingInstances(TaskActionOnBlockingInstances&& value) { SetTaskActionOnBlockingInstances(std::move(value)); return *this;} + ///@} + ///@{ inline const Aws::String& GetRequestId() const{ return m_requestId; } @@ -175,6 +204,8 @@ namespace Model Aws::Vector m_requestedInstancePools; + InstancesToExclude m_instancesToExclude; + bool m_dryRun; CapacityTaskStatus m_capacityTaskStatus; @@ -187,6 +218,8 @@ namespace Model Aws::Utils::DateTime m_lastModifiedDate; + TaskActionOnBlockingInstances m_taskActionOnBlockingInstances; + Aws::String m_requestId; }; diff --git a/generated/src/aws-cpp-sdk-outposts/include/aws/outposts/model/TaskActionOnBlockingInstances.h b/generated/src/aws-cpp-sdk-outposts/include/aws/outposts/model/TaskActionOnBlockingInstances.h new file mode 100644 index 00000000000..2248d247e57 --- /dev/null +++ b/generated/src/aws-cpp-sdk-outposts/include/aws/outposts/model/TaskActionOnBlockingInstances.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 Outposts +{ +namespace Model +{ + enum class TaskActionOnBlockingInstances + { + NOT_SET, + WAIT_FOR_EVACUATION, + FAIL_TASK + }; + +namespace TaskActionOnBlockingInstancesMapper +{ +AWS_OUTPOSTS_API TaskActionOnBlockingInstances GetTaskActionOnBlockingInstancesForName(const Aws::String& name); + +AWS_OUTPOSTS_API Aws::String GetNameForTaskActionOnBlockingInstances(TaskActionOnBlockingInstances value); +} // namespace TaskActionOnBlockingInstancesMapper +} // namespace Model +} // namespace Outposts +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-outposts/source/OutpostsClient.cpp b/generated/src/aws-cpp-sdk-outposts/source/OutpostsClient.cpp index d1b77f5dad3..bde98368b21 100644 --- a/generated/src/aws-cpp-sdk-outposts/source/OutpostsClient.cpp +++ b/generated/src/aws-cpp-sdk-outposts/source/OutpostsClient.cpp @@ -37,7 +37,9 @@ #include #include #include +#include #include +#include #include #include #include @@ -631,11 +633,6 @@ GetOutpostSupportedInstanceTypesOutcome OutpostsClient::GetOutpostSupportedInsta AWS_LOGSTREAM_ERROR("GetOutpostSupportedInstanceTypes", "Required field: OutpostIdentifier, is not set"); return GetOutpostSupportedInstanceTypesOutcome(Aws::Client::AWSError(OutpostsErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [OutpostIdentifier]", false)); } - if (!request.OrderIdHasBeenSet()) - { - AWS_LOGSTREAM_ERROR("GetOutpostSupportedInstanceTypes", "Required field: OrderId, is not set"); - return GetOutpostSupportedInstanceTypesOutcome(Aws::Client::AWSError(OutpostsErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [OrderId]", false)); - } AWS_OPERATION_CHECK_PTR(m_telemetryProvider, GetOutpostSupportedInstanceTypes, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); @@ -733,6 +730,40 @@ GetSiteAddressOutcome OutpostsClient::GetSiteAddress(const GetSiteAddressRequest {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +ListAssetInstancesOutcome OutpostsClient::ListAssetInstances(const ListAssetInstancesRequest& request) const +{ + AWS_OPERATION_GUARD(ListAssetInstances); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListAssetInstances, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.OutpostIdentifierHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("ListAssetInstances", "Required field: OutpostIdentifier, is not set"); + return ListAssetInstancesOutcome(Aws::Client::AWSError(OutpostsErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [OutpostIdentifier]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListAssetInstances, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, ListAssetInstances, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListAssetInstances", + {{ 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( + [&]()-> ListAssetInstancesOutcome { + 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, ListAssetInstances, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/outposts/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetOutpostIdentifier()); + endpointResolutionOutcome.GetResult().AddPathSegments("/assetInstances"); + return ListAssetInstancesOutcome(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()}}); +} + ListAssetsOutcome OutpostsClient::ListAssets(const ListAssetsRequest& request) const { AWS_OPERATION_GUARD(ListAssets); @@ -767,6 +798,47 @@ ListAssetsOutcome OutpostsClient::ListAssets(const ListAssetsRequest& request) c {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +ListBlockingInstancesForCapacityTaskOutcome OutpostsClient::ListBlockingInstancesForCapacityTask(const ListBlockingInstancesForCapacityTaskRequest& request) const +{ + AWS_OPERATION_GUARD(ListBlockingInstancesForCapacityTask); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListBlockingInstancesForCapacityTask, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.OutpostIdentifierHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("ListBlockingInstancesForCapacityTask", "Required field: OutpostIdentifier, is not set"); + return ListBlockingInstancesForCapacityTaskOutcome(Aws::Client::AWSError(OutpostsErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [OutpostIdentifier]", false)); + } + if (!request.CapacityTaskIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("ListBlockingInstancesForCapacityTask", "Required field: CapacityTaskId, is not set"); + return ListBlockingInstancesForCapacityTaskOutcome(Aws::Client::AWSError(OutpostsErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [CapacityTaskId]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListBlockingInstancesForCapacityTask, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, ListBlockingInstancesForCapacityTask, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListBlockingInstancesForCapacityTask", + {{ 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( + [&]()-> ListBlockingInstancesForCapacityTaskOutcome { + 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, ListBlockingInstancesForCapacityTask, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/outposts/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetOutpostIdentifier()); + endpointResolutionOutcome.GetResult().AddPathSegments("/capacity/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetCapacityTaskId()); + endpointResolutionOutcome.GetResult().AddPathSegments("/blockingInstances"); + return ListBlockingInstancesForCapacityTaskOutcome(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()}}); +} + ListCapacityTasksOutcome OutpostsClient::ListCapacityTasks(const ListCapacityTasksRequest& request) const { AWS_OPERATION_GUARD(ListCapacityTasks); diff --git a/generated/src/aws-cpp-sdk-outposts/source/model/AWSServiceName.cpp b/generated/src/aws-cpp-sdk-outposts/source/model/AWSServiceName.cpp new file mode 100644 index 00000000000..e6bf32f32ac --- /dev/null +++ b/generated/src/aws-cpp-sdk-outposts/source/model/AWSServiceName.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 Outposts + { + namespace Model + { + namespace AWSServiceNameMapper + { + + static const int AWS_HASH = HashingUtils::HashString("AWS"); + static const int EC2_HASH = HashingUtils::HashString("EC2"); + static const int ELASTICACHE_HASH = HashingUtils::HashString("ELASTICACHE"); + static const int ELB_HASH = HashingUtils::HashString("ELB"); + static const int RDS_HASH = HashingUtils::HashString("RDS"); + static const int ROUTE53_HASH = HashingUtils::HashString("ROUTE53"); + + + AWSServiceName GetAWSServiceNameForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == AWS_HASH) + { + return AWSServiceName::AWS; + } + else if (hashCode == EC2_HASH) + { + return AWSServiceName::EC2; + } + else if (hashCode == ELASTICACHE_HASH) + { + return AWSServiceName::ELASTICACHE; + } + else if (hashCode == ELB_HASH) + { + return AWSServiceName::ELB; + } + else if (hashCode == RDS_HASH) + { + return AWSServiceName::RDS; + } + else if (hashCode == ROUTE53_HASH) + { + return AWSServiceName::ROUTE53; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return AWSServiceName::NOT_SET; + } + + Aws::String GetNameForAWSServiceName(AWSServiceName enumValue) + { + switch(enumValue) + { + case AWSServiceName::NOT_SET: + return {}; + case AWSServiceName::AWS: + return "AWS"; + case AWSServiceName::EC2: + return "EC2"; + case AWSServiceName::ELASTICACHE: + return "ELASTICACHE"; + case AWSServiceName::ELB: + return "ELB"; + case AWSServiceName::RDS: + return "RDS"; + case AWSServiceName::ROUTE53: + return "ROUTE53"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace AWSServiceNameMapper + } // namespace Model + } // namespace Outposts +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-outposts/source/model/AssetInstance.cpp b/generated/src/aws-cpp-sdk-outposts/source/model/AssetInstance.cpp new file mode 100644 index 00000000000..e637eeb3998 --- /dev/null +++ b/generated/src/aws-cpp-sdk-outposts/source/model/AssetInstance.cpp @@ -0,0 +1,115 @@ +/** + * 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 Outposts +{ +namespace Model +{ + +AssetInstance::AssetInstance() : + m_instanceIdHasBeenSet(false), + m_instanceTypeHasBeenSet(false), + m_assetIdHasBeenSet(false), + m_accountIdHasBeenSet(false), + m_awsServiceName(AWSServiceName::NOT_SET), + m_awsServiceNameHasBeenSet(false) +{ +} + +AssetInstance::AssetInstance(JsonView jsonValue) + : AssetInstance() +{ + *this = jsonValue; +} + +AssetInstance& AssetInstance::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("InstanceId")) + { + m_instanceId = jsonValue.GetString("InstanceId"); + + m_instanceIdHasBeenSet = true; + } + + if(jsonValue.ValueExists("InstanceType")) + { + m_instanceType = jsonValue.GetString("InstanceType"); + + m_instanceTypeHasBeenSet = true; + } + + if(jsonValue.ValueExists("AssetId")) + { + m_assetId = jsonValue.GetString("AssetId"); + + m_assetIdHasBeenSet = true; + } + + if(jsonValue.ValueExists("AccountId")) + { + m_accountId = jsonValue.GetString("AccountId"); + + m_accountIdHasBeenSet = true; + } + + if(jsonValue.ValueExists("AwsServiceName")) + { + m_awsServiceName = AWSServiceNameMapper::GetAWSServiceNameForName(jsonValue.GetString("AwsServiceName")); + + m_awsServiceNameHasBeenSet = true; + } + + return *this; +} + +JsonValue AssetInstance::Jsonize() const +{ + JsonValue payload; + + if(m_instanceIdHasBeenSet) + { + payload.WithString("InstanceId", m_instanceId); + + } + + if(m_instanceTypeHasBeenSet) + { + payload.WithString("InstanceType", m_instanceType); + + } + + if(m_assetIdHasBeenSet) + { + payload.WithString("AssetId", m_assetId); + + } + + if(m_accountIdHasBeenSet) + { + payload.WithString("AccountId", m_accountId); + + } + + if(m_awsServiceNameHasBeenSet) + { + payload.WithString("AwsServiceName", AWSServiceNameMapper::GetNameForAWSServiceName(m_awsServiceName)); + } + + return payload; +} + +} // namespace Model +} // namespace Outposts +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-outposts/source/model/AssetInstanceTypeCapacity.cpp b/generated/src/aws-cpp-sdk-outposts/source/model/AssetInstanceTypeCapacity.cpp new file mode 100644 index 00000000000..464f8a53648 --- /dev/null +++ b/generated/src/aws-cpp-sdk-outposts/source/model/AssetInstanceTypeCapacity.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 Outposts +{ +namespace Model +{ + +AssetInstanceTypeCapacity::AssetInstanceTypeCapacity() : + m_instanceTypeHasBeenSet(false), + m_count(0), + m_countHasBeenSet(false) +{ +} + +AssetInstanceTypeCapacity::AssetInstanceTypeCapacity(JsonView jsonValue) + : AssetInstanceTypeCapacity() +{ + *this = jsonValue; +} + +AssetInstanceTypeCapacity& AssetInstanceTypeCapacity::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("InstanceType")) + { + m_instanceType = jsonValue.GetString("InstanceType"); + + m_instanceTypeHasBeenSet = true; + } + + if(jsonValue.ValueExists("Count")) + { + m_count = jsonValue.GetInteger("Count"); + + m_countHasBeenSet = true; + } + + return *this; +} + +JsonValue AssetInstanceTypeCapacity::Jsonize() const +{ + JsonValue payload; + + if(m_instanceTypeHasBeenSet) + { + payload.WithString("InstanceType", m_instanceType); + + } + + if(m_countHasBeenSet) + { + payload.WithInteger("Count", m_count); + + } + + return payload; +} + +} // namespace Model +} // namespace Outposts +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-outposts/source/model/BlockingInstance.cpp b/generated/src/aws-cpp-sdk-outposts/source/model/BlockingInstance.cpp new file mode 100644 index 00000000000..b326765b280 --- /dev/null +++ b/generated/src/aws-cpp-sdk-outposts/source/model/BlockingInstance.cpp @@ -0,0 +1,87 @@ +/** + * 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 Outposts +{ +namespace Model +{ + +BlockingInstance::BlockingInstance() : + m_instanceIdHasBeenSet(false), + m_accountIdHasBeenSet(false), + m_awsServiceName(AWSServiceName::NOT_SET), + m_awsServiceNameHasBeenSet(false) +{ +} + +BlockingInstance::BlockingInstance(JsonView jsonValue) + : BlockingInstance() +{ + *this = jsonValue; +} + +BlockingInstance& BlockingInstance::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("InstanceId")) + { + m_instanceId = jsonValue.GetString("InstanceId"); + + m_instanceIdHasBeenSet = true; + } + + if(jsonValue.ValueExists("AccountId")) + { + m_accountId = jsonValue.GetString("AccountId"); + + m_accountIdHasBeenSet = true; + } + + if(jsonValue.ValueExists("AwsServiceName")) + { + m_awsServiceName = AWSServiceNameMapper::GetAWSServiceNameForName(jsonValue.GetString("AwsServiceName")); + + m_awsServiceNameHasBeenSet = true; + } + + return *this; +} + +JsonValue BlockingInstance::Jsonize() const +{ + JsonValue payload; + + if(m_instanceIdHasBeenSet) + { + payload.WithString("InstanceId", m_instanceId); + + } + + if(m_accountIdHasBeenSet) + { + payload.WithString("AccountId", m_accountId); + + } + + if(m_awsServiceNameHasBeenSet) + { + payload.WithString("AwsServiceName", AWSServiceNameMapper::GetNameForAWSServiceName(m_awsServiceName)); + } + + return payload; +} + +} // namespace Model +} // namespace Outposts +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-outposts/source/model/CapacityTaskFailureType.cpp b/generated/src/aws-cpp-sdk-outposts/source/model/CapacityTaskFailureType.cpp index ed740033f28..d4ab13f87e1 100644 --- a/generated/src/aws-cpp-sdk-outposts/source/model/CapacityTaskFailureType.cpp +++ b/generated/src/aws-cpp-sdk-outposts/source/model/CapacityTaskFailureType.cpp @@ -21,6 +21,10 @@ namespace Aws { static const int UNSUPPORTED_CAPACITY_CONFIGURATION_HASH = HashingUtils::HashString("UNSUPPORTED_CAPACITY_CONFIGURATION"); + static const int UNEXPECTED_ASSET_STATE_HASH = HashingUtils::HashString("UNEXPECTED_ASSET_STATE"); + static const int BLOCKING_INSTANCES_NOT_EVACUATED_HASH = HashingUtils::HashString("BLOCKING_INSTANCES_NOT_EVACUATED"); + static const int INTERNAL_SERVER_ERROR_HASH = HashingUtils::HashString("INTERNAL_SERVER_ERROR"); + static const int RESOURCE_NOT_FOUND_HASH = HashingUtils::HashString("RESOURCE_NOT_FOUND"); CapacityTaskFailureType GetCapacityTaskFailureTypeForName(const Aws::String& name) @@ -30,6 +34,22 @@ namespace Aws { return CapacityTaskFailureType::UNSUPPORTED_CAPACITY_CONFIGURATION; } + else if (hashCode == UNEXPECTED_ASSET_STATE_HASH) + { + return CapacityTaskFailureType::UNEXPECTED_ASSET_STATE; + } + else if (hashCode == BLOCKING_INSTANCES_NOT_EVACUATED_HASH) + { + return CapacityTaskFailureType::BLOCKING_INSTANCES_NOT_EVACUATED; + } + else if (hashCode == INTERNAL_SERVER_ERROR_HASH) + { + return CapacityTaskFailureType::INTERNAL_SERVER_ERROR; + } + else if (hashCode == RESOURCE_NOT_FOUND_HASH) + { + return CapacityTaskFailureType::RESOURCE_NOT_FOUND; + } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { @@ -48,6 +68,14 @@ namespace Aws return {}; case CapacityTaskFailureType::UNSUPPORTED_CAPACITY_CONFIGURATION: return "UNSUPPORTED_CAPACITY_CONFIGURATION"; + case CapacityTaskFailureType::UNEXPECTED_ASSET_STATE: + return "UNEXPECTED_ASSET_STATE"; + case CapacityTaskFailureType::BLOCKING_INSTANCES_NOT_EVACUATED: + return "BLOCKING_INSTANCES_NOT_EVACUATED"; + case CapacityTaskFailureType::INTERNAL_SERVER_ERROR: + return "INTERNAL_SERVER_ERROR"; + case CapacityTaskFailureType::RESOURCE_NOT_FOUND: + return "RESOURCE_NOT_FOUND"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) diff --git a/generated/src/aws-cpp-sdk-outposts/source/model/CapacityTaskStatus.cpp b/generated/src/aws-cpp-sdk-outposts/source/model/CapacityTaskStatus.cpp index e56ba7acd88..b0bdbd74acf 100644 --- a/generated/src/aws-cpp-sdk-outposts/source/model/CapacityTaskStatus.cpp +++ b/generated/src/aws-cpp-sdk-outposts/source/model/CapacityTaskStatus.cpp @@ -24,6 +24,8 @@ namespace Aws static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); static const int FAILED_HASH = HashingUtils::HashString("FAILED"); static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); + static const int WAITING_FOR_EVACUATION_HASH = HashingUtils::HashString("WAITING_FOR_EVACUATION"); + static const int CANCELLATION_IN_PROGRESS_HASH = HashingUtils::HashString("CANCELLATION_IN_PROGRESS"); static const int CANCELLED_HASH = HashingUtils::HashString("CANCELLED"); @@ -46,6 +48,14 @@ namespace Aws { return CapacityTaskStatus::COMPLETED; } + else if (hashCode == WAITING_FOR_EVACUATION_HASH) + { + return CapacityTaskStatus::WAITING_FOR_EVACUATION; + } + else if (hashCode == CANCELLATION_IN_PROGRESS_HASH) + { + return CapacityTaskStatus::CANCELLATION_IN_PROGRESS; + } else if (hashCode == CANCELLED_HASH) { return CapacityTaskStatus::CANCELLED; @@ -74,6 +84,10 @@ namespace Aws return "FAILED"; case CapacityTaskStatus::COMPLETED: return "COMPLETED"; + case CapacityTaskStatus::WAITING_FOR_EVACUATION: + return "WAITING_FOR_EVACUATION"; + case CapacityTaskStatus::CANCELLATION_IN_PROGRESS: + return "CANCELLATION_IN_PROGRESS"; case CapacityTaskStatus::CANCELLED: return "CANCELLED"; default: diff --git a/generated/src/aws-cpp-sdk-outposts/source/model/ComputeAttributes.cpp b/generated/src/aws-cpp-sdk-outposts/source/model/ComputeAttributes.cpp index 4d5cd108804..aaadb2c4296 100644 --- a/generated/src/aws-cpp-sdk-outposts/source/model/ComputeAttributes.cpp +++ b/generated/src/aws-cpp-sdk-outposts/source/model/ComputeAttributes.cpp @@ -22,7 +22,10 @@ ComputeAttributes::ComputeAttributes() : m_hostIdHasBeenSet(false), m_state(ComputeAssetState::NOT_SET), m_stateHasBeenSet(false), - m_instanceFamiliesHasBeenSet(false) + m_instanceFamiliesHasBeenSet(false), + m_instanceTypeCapacitiesHasBeenSet(false), + m_maxVcpus(0), + m_maxVcpusHasBeenSet(false) { } @@ -58,6 +61,23 @@ ComputeAttributes& ComputeAttributes::operator =(JsonView jsonValue) m_instanceFamiliesHasBeenSet = true; } + if(jsonValue.ValueExists("InstanceTypeCapacities")) + { + Aws::Utils::Array instanceTypeCapacitiesJsonList = jsonValue.GetArray("InstanceTypeCapacities"); + for(unsigned instanceTypeCapacitiesIndex = 0; instanceTypeCapacitiesIndex < instanceTypeCapacitiesJsonList.GetLength(); ++instanceTypeCapacitiesIndex) + { + m_instanceTypeCapacities.push_back(instanceTypeCapacitiesJsonList[instanceTypeCapacitiesIndex].AsObject()); + } + m_instanceTypeCapacitiesHasBeenSet = true; + } + + if(jsonValue.ValueExists("MaxVcpus")) + { + m_maxVcpus = jsonValue.GetInteger("MaxVcpus"); + + m_maxVcpusHasBeenSet = true; + } + return *this; } @@ -87,6 +107,23 @@ JsonValue ComputeAttributes::Jsonize() const } + if(m_instanceTypeCapacitiesHasBeenSet) + { + Aws::Utils::Array instanceTypeCapacitiesJsonList(m_instanceTypeCapacities.size()); + for(unsigned instanceTypeCapacitiesIndex = 0; instanceTypeCapacitiesIndex < instanceTypeCapacitiesJsonList.GetLength(); ++instanceTypeCapacitiesIndex) + { + instanceTypeCapacitiesJsonList[instanceTypeCapacitiesIndex].AsObject(m_instanceTypeCapacities[instanceTypeCapacitiesIndex].Jsonize()); + } + payload.WithArray("InstanceTypeCapacities", std::move(instanceTypeCapacitiesJsonList)); + + } + + if(m_maxVcpusHasBeenSet) + { + payload.WithInteger("MaxVcpus", m_maxVcpus); + + } + return payload; } diff --git a/generated/src/aws-cpp-sdk-outposts/source/model/GetCapacityTaskResult.cpp b/generated/src/aws-cpp-sdk-outposts/source/model/GetCapacityTaskResult.cpp index 19313d92713..8a22a1d189d 100644 --- a/generated/src/aws-cpp-sdk-outposts/source/model/GetCapacityTaskResult.cpp +++ b/generated/src/aws-cpp-sdk-outposts/source/model/GetCapacityTaskResult.cpp @@ -19,7 +19,8 @@ using namespace Aws; GetCapacityTaskResult::GetCapacityTaskResult() : m_dryRun(false), - m_capacityTaskStatus(CapacityTaskStatus::NOT_SET) + m_capacityTaskStatus(CapacityTaskStatus::NOT_SET), + m_taskActionOnBlockingInstances(TaskActionOnBlockingInstances::NOT_SET) { } @@ -59,6 +60,12 @@ GetCapacityTaskResult& GetCapacityTaskResult::operator =(const Aws::AmazonWebSer } } + if(jsonValue.ValueExists("InstancesToExclude")) + { + m_instancesToExclude = jsonValue.GetObject("InstancesToExclude"); + + } + if(jsonValue.ValueExists("DryRun")) { m_dryRun = jsonValue.GetBool("DryRun"); @@ -95,6 +102,12 @@ GetCapacityTaskResult& GetCapacityTaskResult::operator =(const Aws::AmazonWebSer } + if(jsonValue.ValueExists("TaskActionOnBlockingInstances")) + { + m_taskActionOnBlockingInstances = TaskActionOnBlockingInstancesMapper::GetTaskActionOnBlockingInstancesForName(jsonValue.GetString("TaskActionOnBlockingInstances")); + + } + const auto& headers = result.GetHeaderValueCollection(); const auto& requestIdIter = headers.find("x-amzn-requestid"); diff --git a/generated/src/aws-cpp-sdk-outposts/source/model/InstancesToExclude.cpp b/generated/src/aws-cpp-sdk-outposts/source/model/InstancesToExclude.cpp new file mode 100644 index 00000000000..ab2a26c205e --- /dev/null +++ b/generated/src/aws-cpp-sdk-outposts/source/model/InstancesToExclude.cpp @@ -0,0 +1,111 @@ +/** + * 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 Outposts +{ +namespace Model +{ + +InstancesToExclude::InstancesToExclude() : + m_instancesHasBeenSet(false), + m_accountIdsHasBeenSet(false), + m_servicesHasBeenSet(false) +{ +} + +InstancesToExclude::InstancesToExclude(JsonView jsonValue) + : InstancesToExclude() +{ + *this = jsonValue; +} + +InstancesToExclude& InstancesToExclude::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("Instances")) + { + Aws::Utils::Array instancesJsonList = jsonValue.GetArray("Instances"); + for(unsigned instancesIndex = 0; instancesIndex < instancesJsonList.GetLength(); ++instancesIndex) + { + m_instances.push_back(instancesJsonList[instancesIndex].AsString()); + } + m_instancesHasBeenSet = true; + } + + if(jsonValue.ValueExists("AccountIds")) + { + Aws::Utils::Array accountIdsJsonList = jsonValue.GetArray("AccountIds"); + for(unsigned accountIdsIndex = 0; accountIdsIndex < accountIdsJsonList.GetLength(); ++accountIdsIndex) + { + m_accountIds.push_back(accountIdsJsonList[accountIdsIndex].AsString()); + } + m_accountIdsHasBeenSet = true; + } + + if(jsonValue.ValueExists("Services")) + { + Aws::Utils::Array servicesJsonList = jsonValue.GetArray("Services"); + for(unsigned servicesIndex = 0; servicesIndex < servicesJsonList.GetLength(); ++servicesIndex) + { + m_services.push_back(AWSServiceNameMapper::GetAWSServiceNameForName(servicesJsonList[servicesIndex].AsString())); + } + m_servicesHasBeenSet = true; + } + + return *this; +} + +JsonValue InstancesToExclude::Jsonize() const +{ + JsonValue payload; + + if(m_instancesHasBeenSet) + { + Aws::Utils::Array instancesJsonList(m_instances.size()); + for(unsigned instancesIndex = 0; instancesIndex < instancesJsonList.GetLength(); ++instancesIndex) + { + instancesJsonList[instancesIndex].AsString(m_instances[instancesIndex]); + } + payload.WithArray("Instances", std::move(instancesJsonList)); + + } + + if(m_accountIdsHasBeenSet) + { + Aws::Utils::Array accountIdsJsonList(m_accountIds.size()); + for(unsigned accountIdsIndex = 0; accountIdsIndex < accountIdsJsonList.GetLength(); ++accountIdsIndex) + { + accountIdsJsonList[accountIdsIndex].AsString(m_accountIds[accountIdsIndex]); + } + payload.WithArray("AccountIds", std::move(accountIdsJsonList)); + + } + + if(m_servicesHasBeenSet) + { + Aws::Utils::Array servicesJsonList(m_services.size()); + for(unsigned servicesIndex = 0; servicesIndex < servicesJsonList.GetLength(); ++servicesIndex) + { + servicesJsonList[servicesIndex].AsString(AWSServiceNameMapper::GetNameForAWSServiceName(m_services[servicesIndex])); + } + payload.WithArray("Services", std::move(servicesJsonList)); + + } + + return payload; +} + +} // namespace Model +} // namespace Outposts +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-outposts/source/model/ListAssetInstancesRequest.cpp b/generated/src/aws-cpp-sdk-outposts/source/model/ListAssetInstancesRequest.cpp new file mode 100644 index 00000000000..65e1efccd3f --- /dev/null +++ b/generated/src/aws-cpp-sdk-outposts/source/model/ListAssetInstancesRequest.cpp @@ -0,0 +1,95 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +#include + +using namespace Aws::Outposts::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws::Http; + +ListAssetInstancesRequest::ListAssetInstancesRequest() : + m_outpostIdentifierHasBeenSet(false), + m_assetIdFilterHasBeenSet(false), + m_instanceTypeFilterHasBeenSet(false), + m_accountIdFilterHasBeenSet(false), + m_awsServiceFilterHasBeenSet(false), + m_maxResults(0), + m_maxResultsHasBeenSet(false), + m_nextTokenHasBeenSet(false) +{ +} + +Aws::String ListAssetInstancesRequest::SerializePayload() const +{ + return {}; +} + +void ListAssetInstancesRequest::AddQueryStringParameters(URI& uri) const +{ + Aws::StringStream ss; + if(m_assetIdFilterHasBeenSet) + { + for(const auto& item : m_assetIdFilter) + { + ss << item; + uri.AddQueryStringParameter("AssetIdFilter", ss.str()); + ss.str(""); + } + } + + if(m_instanceTypeFilterHasBeenSet) + { + for(const auto& item : m_instanceTypeFilter) + { + ss << item; + uri.AddQueryStringParameter("InstanceTypeFilter", ss.str()); + ss.str(""); + } + } + + if(m_accountIdFilterHasBeenSet) + { + for(const auto& item : m_accountIdFilter) + { + ss << item; + uri.AddQueryStringParameter("AccountIdFilter", ss.str()); + ss.str(""); + } + } + + if(m_awsServiceFilterHasBeenSet) + { + for(const auto& item : m_awsServiceFilter) + { + ss << AWSServiceNameMapper::GetNameForAWSServiceName(item); + uri.AddQueryStringParameter("AwsServiceFilter", ss.str()); + ss.str(""); + } + } + + 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-outposts/source/model/ListAssetInstancesResult.cpp b/generated/src/aws-cpp-sdk-outposts/source/model/ListAssetInstancesResult.cpp new file mode 100644 index 00000000000..382dcbc784b --- /dev/null +++ b/generated/src/aws-cpp-sdk-outposts/source/model/ListAssetInstancesResult.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::Outposts::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +ListAssetInstancesResult::ListAssetInstancesResult() +{ +} + +ListAssetInstancesResult::ListAssetInstancesResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +ListAssetInstancesResult& ListAssetInstancesResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("AssetInstances")) + { + Aws::Utils::Array assetInstancesJsonList = jsonValue.GetArray("AssetInstances"); + for(unsigned assetInstancesIndex = 0; assetInstancesIndex < assetInstancesJsonList.GetLength(); ++assetInstancesIndex) + { + m_assetInstances.push_back(assetInstancesJsonList[assetInstancesIndex].AsObject()); + } + } + + if(jsonValue.ValueExists("NextToken")) + { + m_nextToken = jsonValue.GetString("NextToken"); + + } + + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-outposts/source/model/ListBlockingInstancesForCapacityTaskRequest.cpp b/generated/src/aws-cpp-sdk-outposts/source/model/ListBlockingInstancesForCapacityTaskRequest.cpp new file mode 100644 index 00000000000..34e214c7c39 --- /dev/null +++ b/generated/src/aws-cpp-sdk-outposts/source/model/ListBlockingInstancesForCapacityTaskRequest.cpp @@ -0,0 +1,52 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +#include + +using namespace Aws::Outposts::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws::Http; + +ListBlockingInstancesForCapacityTaskRequest::ListBlockingInstancesForCapacityTaskRequest() : + m_outpostIdentifierHasBeenSet(false), + m_capacityTaskIdHasBeenSet(false), + m_maxResults(0), + m_maxResultsHasBeenSet(false), + m_nextTokenHasBeenSet(false) +{ +} + +Aws::String ListBlockingInstancesForCapacityTaskRequest::SerializePayload() const +{ + return {}; +} + +void ListBlockingInstancesForCapacityTaskRequest::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-outposts/source/model/ListBlockingInstancesForCapacityTaskResult.cpp b/generated/src/aws-cpp-sdk-outposts/source/model/ListBlockingInstancesForCapacityTaskResult.cpp new file mode 100644 index 00000000000..72b373b6d24 --- /dev/null +++ b/generated/src/aws-cpp-sdk-outposts/source/model/ListBlockingInstancesForCapacityTaskResult.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::Outposts::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +ListBlockingInstancesForCapacityTaskResult::ListBlockingInstancesForCapacityTaskResult() +{ +} + +ListBlockingInstancesForCapacityTaskResult::ListBlockingInstancesForCapacityTaskResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +ListBlockingInstancesForCapacityTaskResult& ListBlockingInstancesForCapacityTaskResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("BlockingInstances")) + { + Aws::Utils::Array blockingInstancesJsonList = jsonValue.GetArray("BlockingInstances"); + for(unsigned blockingInstancesIndex = 0; blockingInstancesIndex < blockingInstancesJsonList.GetLength(); ++blockingInstancesIndex) + { + m_blockingInstances.push_back(blockingInstancesJsonList[blockingInstancesIndex].AsObject()); + } + } + + if(jsonValue.ValueExists("NextToken")) + { + m_nextToken = jsonValue.GetString("NextToken"); + + } + + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-outposts/source/model/StartCapacityTaskRequest.cpp b/generated/src/aws-cpp-sdk-outposts/source/model/StartCapacityTaskRequest.cpp index 58501e8d2e2..1f78ac6f002 100644 --- a/generated/src/aws-cpp-sdk-outposts/source/model/StartCapacityTaskRequest.cpp +++ b/generated/src/aws-cpp-sdk-outposts/source/model/StartCapacityTaskRequest.cpp @@ -16,8 +16,11 @@ StartCapacityTaskRequest::StartCapacityTaskRequest() : m_outpostIdentifierHasBeenSet(false), m_orderIdHasBeenSet(false), m_instancePoolsHasBeenSet(false), + m_instancesToExcludeHasBeenSet(false), m_dryRun(false), - m_dryRunHasBeenSet(false) + m_dryRunHasBeenSet(false), + m_taskActionOnBlockingInstances(TaskActionOnBlockingInstances::NOT_SET), + m_taskActionOnBlockingInstancesHasBeenSet(false) { } @@ -42,12 +45,23 @@ Aws::String StartCapacityTaskRequest::SerializePayload() const } + if(m_instancesToExcludeHasBeenSet) + { + payload.WithObject("InstancesToExclude", m_instancesToExclude.Jsonize()); + + } + if(m_dryRunHasBeenSet) { payload.WithBool("DryRun", m_dryRun); } + if(m_taskActionOnBlockingInstancesHasBeenSet) + { + payload.WithString("TaskActionOnBlockingInstances", TaskActionOnBlockingInstancesMapper::GetNameForTaskActionOnBlockingInstances(m_taskActionOnBlockingInstances)); + } + return payload.View().WriteReadable(); } diff --git a/generated/src/aws-cpp-sdk-outposts/source/model/StartCapacityTaskResult.cpp b/generated/src/aws-cpp-sdk-outposts/source/model/StartCapacityTaskResult.cpp index 06279f9a1f0..f6f4398327a 100644 --- a/generated/src/aws-cpp-sdk-outposts/source/model/StartCapacityTaskResult.cpp +++ b/generated/src/aws-cpp-sdk-outposts/source/model/StartCapacityTaskResult.cpp @@ -19,7 +19,8 @@ using namespace Aws; StartCapacityTaskResult::StartCapacityTaskResult() : m_dryRun(false), - m_capacityTaskStatus(CapacityTaskStatus::NOT_SET) + m_capacityTaskStatus(CapacityTaskStatus::NOT_SET), + m_taskActionOnBlockingInstances(TaskActionOnBlockingInstances::NOT_SET) { } @@ -59,6 +60,12 @@ StartCapacityTaskResult& StartCapacityTaskResult::operator =(const Aws::AmazonWe } } + if(jsonValue.ValueExists("InstancesToExclude")) + { + m_instancesToExclude = jsonValue.GetObject("InstancesToExclude"); + + } + if(jsonValue.ValueExists("DryRun")) { m_dryRun = jsonValue.GetBool("DryRun"); @@ -95,6 +102,12 @@ StartCapacityTaskResult& StartCapacityTaskResult::operator =(const Aws::AmazonWe } + if(jsonValue.ValueExists("TaskActionOnBlockingInstances")) + { + m_taskActionOnBlockingInstances = TaskActionOnBlockingInstancesMapper::GetTaskActionOnBlockingInstancesForName(jsonValue.GetString("TaskActionOnBlockingInstances")); + + } + const auto& headers = result.GetHeaderValueCollection(); const auto& requestIdIter = headers.find("x-amzn-requestid"); diff --git a/generated/src/aws-cpp-sdk-outposts/source/model/TaskActionOnBlockingInstances.cpp b/generated/src/aws-cpp-sdk-outposts/source/model/TaskActionOnBlockingInstances.cpp new file mode 100644 index 00000000000..dee7c305626 --- /dev/null +++ b/generated/src/aws-cpp-sdk-outposts/source/model/TaskActionOnBlockingInstances.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 Outposts + { + namespace Model + { + namespace TaskActionOnBlockingInstancesMapper + { + + static const int WAIT_FOR_EVACUATION_HASH = HashingUtils::HashString("WAIT_FOR_EVACUATION"); + static const int FAIL_TASK_HASH = HashingUtils::HashString("FAIL_TASK"); + + + TaskActionOnBlockingInstances GetTaskActionOnBlockingInstancesForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == WAIT_FOR_EVACUATION_HASH) + { + return TaskActionOnBlockingInstances::WAIT_FOR_EVACUATION; + } + else if (hashCode == FAIL_TASK_HASH) + { + return TaskActionOnBlockingInstances::FAIL_TASK; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return TaskActionOnBlockingInstances::NOT_SET; + } + + Aws::String GetNameForTaskActionOnBlockingInstances(TaskActionOnBlockingInstances enumValue) + { + switch(enumValue) + { + case TaskActionOnBlockingInstances::NOT_SET: + return {}; + case TaskActionOnBlockingInstances::WAIT_FOR_EVACUATION: + return "WAIT_FOR_EVACUATION"; + case TaskActionOnBlockingInstances::FAIL_TASK: + return "FAIL_TASK"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace TaskActionOnBlockingInstancesMapper + } // namespace Model + } // namespace Outposts +} // namespace Aws diff --git a/src/aws-cpp-sdk-core/include/aws/core/VersionConfig.h b/src/aws-cpp-sdk-core/include/aws/core/VersionConfig.h index 01300515e4c..e5b49741d85 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.443" +#define AWS_SDK_VERSION_STRING "1.11.444" #define AWS_SDK_VERSION_MAJOR 1 #define AWS_SDK_VERSION_MINOR 11 -#define AWS_SDK_VERSION_PATCH 443 +#define AWS_SDK_VERSION_PATCH 444 diff --git a/tools/code-generation/api-descriptions/cloudfront-2020-05-31.normal.json b/tools/code-generation/api-descriptions/cloudfront-2020-05-31.normal.json index 475f1744856..943bdb84c5d 100644 --- a/tools/code-generation/api-descriptions/cloudfront-2020-05-31.normal.json +++ b/tools/code-generation/api-descriptions/cloudfront-2020-05-31.normal.json @@ -2,6 +2,7 @@ "version":"2.0", "metadata":{ "apiVersion":"2020-05-31", + "auth":["aws.auth#sigv4"], "endpointPrefix":"cloudfront", "globalEndpoint":"cloudfront.amazonaws.com", "protocol":"rest-xml", @@ -10,8 +11,8 @@ "serviceFullName":"Amazon CloudFront", "serviceId":"CloudFront", "signatureVersion":"v4", - "uid":"cloudfront-2020-05-31", - "auth":["aws.auth#sigv4"] + "signingName":"cloudfront", + "uid":"cloudfront-2020-05-31" }, "operations":{ "AssociateAlias":{ @@ -23,11 +24,11 @@ }, "input":{"shape":"AssociateAliasRequest"}, "errors":[ - {"shape":"InvalidArgument"}, {"shape":"NoSuchDistribution"}, + {"shape":"AccessDenied"}, + {"shape":"InvalidArgument"}, {"shape":"TooManyDistributionCNAMEs"}, - {"shape":"IllegalUpdate"}, - {"shape":"AccessDenied"} + {"shape":"IllegalUpdate"} ], "documentation":"

      Associates an alias (also known as a CNAME or an alternate domain name) with a CloudFront distribution.

      With this operation you can move an alias that's already in use on a CloudFront distribution to a different distribution in one step. This prevents the downtime that could occur if you first remove the alias from one distribution and then separately add the alias to another distribution.

      To use this operation to associate an alias with a distribution, you provide the alias and the ID of the target distribution for the alias. For more information, including how to set up the target distribution, prerequisites that you must complete, and other restrictions, see Moving an alternate domain name to a different distribution in the Amazon CloudFront Developer Guide.

      " }, @@ -45,70 +46,70 @@ }, "output":{"shape":"CopyDistributionResult"}, "errors":[ - {"shape":"CNAMEAlreadyExists"}, - {"shape":"DistributionAlreadyExists"}, - {"shape":"InvalidOrigin"}, - {"shape":"InvalidOriginAccessIdentity"}, - {"shape":"InvalidOriginAccessControl"}, - {"shape":"InvalidIfMatchVersion"}, - {"shape":"NoSuchDistribution"}, - {"shape":"PreconditionFailed"}, {"shape":"AccessDenied"}, - {"shape":"TooManyTrustedSigners"}, - {"shape":"TrustedSignerDoesNotExist"}, - {"shape":"InvalidViewerCertificate"}, - {"shape":"InvalidMinimumProtocolVersion"}, - {"shape":"MissingBody"}, - {"shape":"TooManyDistributionCNAMEs"}, - {"shape":"TooManyDistributions"}, + {"shape":"TooManyDistributionsAssociatedToOriginAccessControl"}, {"shape":"InvalidDefaultRootObject"}, - {"shape":"InvalidRelativePath"}, + {"shape":"InvalidQueryStringParameters"}, + {"shape":"TooManyTrustedSigners"}, + {"shape":"TooManyCookieNamesInWhiteList"}, + {"shape":"NoSuchFieldLevelEncryptionConfig"}, {"shape":"InvalidErrorCode"}, - {"shape":"InvalidResponseCode"}, - {"shape":"InvalidArgument"}, + {"shape":"InvalidProtocolSettings"}, + {"shape":"TooManyFunctionAssociations"}, + {"shape":"TooManyOriginCustomHeaders"}, + {"shape":"InvalidOrigin"}, + {"shape":"InvalidForwardCookies"}, + {"shape":"InvalidMinimumProtocolVersion"}, + {"shape":"NoSuchCachePolicy"}, + {"shape":"TooManyKeyGroupsAssociatedToDistribution"}, + {"shape":"TooManyDistributionsAssociatedToCachePolicy"}, {"shape":"InvalidRequiredProtocol"}, - {"shape":"NoSuchOrigin"}, - {"shape":"TooManyOrigins"}, + {"shape":"TooManyDistributionsWithFunctionAssociations"}, {"shape":"TooManyOriginGroupsPerDistribution"}, - {"shape":"TooManyCacheBehaviors"}, - {"shape":"TooManyCookieNamesInWhiteList"}, - {"shape":"InvalidForwardCookies"}, - {"shape":"TooManyHeadersInForwardedValues"}, - {"shape":"InvalidHeadersForS3Origin"}, - {"shape":"InconsistentQuantities"}, - {"shape":"TooManyCertificates"}, - {"shape":"InvalidLocationCode"}, - {"shape":"InvalidGeoRestrictionParameter"}, - {"shape":"InvalidProtocolSettings"}, + {"shape":"TooManyDistributions"}, {"shape":"InvalidTTLOrder"}, + {"shape":"IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior"}, + {"shape":"InvalidOriginKeepaliveTimeout"}, + {"shape":"InvalidArgument"}, + {"shape":"InvalidOriginReadTimeout"}, + {"shape":"InvalidOriginAccessControl"}, + {"shape":"InvalidHeadersForS3Origin"}, + {"shape":"TrustedSignerDoesNotExist"}, {"shape":"InvalidWebACLId"}, - {"shape":"TooManyOriginCustomHeaders"}, - {"shape":"TooManyQueryStringParameters"}, - {"shape":"InvalidQueryStringParameters"}, - {"shape":"TooManyDistributionsWithLambdaAssociations"}, {"shape":"TooManyDistributionsWithSingleFunctionARN"}, + {"shape":"InvalidRelativePath"}, {"shape":"TooManyLambdaFunctionAssociations"}, - {"shape":"InvalidLambdaFunctionAssociation"}, - {"shape":"TooManyDistributionsWithFunctionAssociations"}, - {"shape":"TooManyFunctionAssociations"}, - {"shape":"InvalidFunctionAssociation"}, - {"shape":"InvalidOriginReadTimeout"}, - {"shape":"InvalidOriginKeepaliveTimeout"}, - {"shape":"NoSuchFieldLevelEncryptionConfig"}, - {"shape":"IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior"}, - {"shape":"TooManyDistributionsAssociatedToFieldLevelEncryptionConfig"}, - {"shape":"NoSuchCachePolicy"}, - {"shape":"TooManyDistributionsAssociatedToCachePolicy"}, - {"shape":"TooManyDistributionsAssociatedToOriginAccessControl"}, - {"shape":"NoSuchResponseHeadersPolicy"}, - {"shape":"TooManyDistributionsAssociatedToResponseHeadersPolicy"}, + {"shape":"NoSuchDistribution"}, {"shape":"NoSuchOriginRequestPolicy"}, + {"shape":"TooManyDistributionsAssociatedToFieldLevelEncryptionConfig"}, + {"shape":"InconsistentQuantities"}, + {"shape":"InvalidLocationCode"}, + {"shape":"InvalidOriginAccessIdentity"}, + {"shape":"TooManyDistributionCNAMEs"}, + {"shape":"InvalidIfMatchVersion"}, {"shape":"TooManyDistributionsAssociatedToOriginRequestPolicy"}, - {"shape":"TooManyDistributionsAssociatedToKeyGroup"}, - {"shape":"TooManyKeyGroupsAssociatedToDistribution"}, + {"shape":"TooManyQueryStringParameters"}, + {"shape":"RealtimeLogConfigOwnerMismatch"}, + {"shape":"PreconditionFailed"}, + {"shape":"MissingBody"}, + {"shape":"TooManyHeadersInForwardedValues"}, + {"shape":"InvalidLambdaFunctionAssociation"}, + {"shape":"CNAMEAlreadyExists"}, + {"shape":"TooManyCertificates"}, {"shape":"TrustedKeyGroupDoesNotExist"}, + {"shape":"TooManyDistributionsAssociatedToResponseHeadersPolicy"}, + {"shape":"NoSuchResponseHeadersPolicy"}, {"shape":"NoSuchRealtimeLogConfig"}, - {"shape":"RealtimeLogConfigOwnerMismatch"} + {"shape":"InvalidResponseCode"}, + {"shape":"InvalidGeoRestrictionParameter"}, + {"shape":"TooManyOrigins"}, + {"shape":"InvalidViewerCertificate"}, + {"shape":"InvalidFunctionAssociation"}, + {"shape":"TooManyDistributionsWithLambdaAssociations"}, + {"shape":"TooManyDistributionsAssociatedToKeyGroup"}, + {"shape":"DistributionAlreadyExists"}, + {"shape":"NoSuchOrigin"}, + {"shape":"TooManyCacheBehaviors"} ], "documentation":"

      Creates a staging distribution using the configuration of the provided primary distribution. A staging distribution is a copy of an existing distribution (called the primary distribution) that you can use in a continuous deployment workflow.

      After you create a staging distribution, you can use UpdateDistribution to modify the staging distribution's configuration. Then you can use CreateContinuousDeploymentPolicy to incrementally move traffic to the staging distribution.

      This API operation requires the following IAM permissions:

      " }, @@ -123,12 +124,12 @@ "output":{"shape":"CreateCachePolicyResult"}, "errors":[ {"shape":"AccessDenied"}, - {"shape":"InconsistentQuantities"}, - {"shape":"InvalidArgument"}, - {"shape":"CachePolicyAlreadyExists"}, - {"shape":"TooManyCachePolicies"}, {"shape":"TooManyHeadersInCachePolicy"}, + {"shape":"CachePolicyAlreadyExists"}, {"shape":"TooManyCookiesInCachePolicy"}, + {"shape":"InconsistentQuantities"}, + {"shape":"TooManyCachePolicies"}, + {"shape":"InvalidArgument"}, {"shape":"TooManyQueryStringsInCachePolicy"} ], "documentation":"

      Creates a cache policy.

      After you create a cache policy, you can attach it to one or more cache behaviors. When it's attached to a cache behavior, the cache policy determines the following:

      • The values that CloudFront includes in the cache key. These values can include HTTP headers, cookies, and URL query strings. CloudFront uses the cache key to find an object in its cache that it can return to the viewer.

      • The default, minimum, and maximum time to live (TTL) values that you want objects to stay in the CloudFront cache.

      The headers, cookies, and query strings that are included in the cache key are also included in requests that CloudFront sends to the origin. CloudFront sends a request when it can't find an object in its cache that matches the request's cache key. If you want to send values to the origin but not include them in the cache key, use OriginRequestPolicy.

      For more information about cache policies, see Controlling the cache key in the Amazon CloudFront Developer Guide.

      " @@ -143,11 +144,11 @@ "input":{"shape":"CreateCloudFrontOriginAccessIdentityRequest"}, "output":{"shape":"CreateCloudFrontOriginAccessIdentityResult"}, "errors":[ - {"shape":"CloudFrontOriginAccessIdentityAlreadyExists"}, {"shape":"MissingBody"}, {"shape":"TooManyCloudFrontOriginAccessIdentities"}, + {"shape":"InconsistentQuantities"}, {"shape":"InvalidArgument"}, - {"shape":"InconsistentQuantities"} + {"shape":"CloudFrontOriginAccessIdentityAlreadyExists"} ], "documentation":"

      Creates a new origin access identity. If you're using Amazon S3 for your origin, you can use an origin access identity to require users to access your content using a CloudFront URL instead of the Amazon S3 URL. For more information about how to use origin access identities, see Serving Private Content through CloudFront in the Amazon CloudFront Developer Guide.

      " }, @@ -162,11 +163,11 @@ "output":{"shape":"CreateContinuousDeploymentPolicyResult"}, "errors":[ {"shape":"AccessDenied"}, - {"shape":"InvalidArgument"}, + {"shape":"TooManyContinuousDeploymentPolicies"}, + {"shape":"StagingDistributionInUse"}, {"shape":"InconsistentQuantities"}, {"shape":"ContinuousDeploymentPolicyAlreadyExists"}, - {"shape":"TooManyContinuousDeploymentPolicies"}, - {"shape":"StagingDistributionInUse"} + {"shape":"InvalidArgument"} ], "documentation":"

      Creates a continuous deployment policy that distributes traffic for a custom domain name to two different CloudFront distributions.

      To use a continuous deployment policy, first use CopyDistribution to create a staging distribution, then use UpdateDistribution to modify the staging distribution's configuration.

      After you create and update a staging distribution, you can use a continuous deployment policy to incrementally move traffic to the staging distribution. This workflow enables you to test changes to a distribution's configuration before moving all of your domain's production traffic to the new configuration.

      " }, @@ -180,71 +181,71 @@ "input":{"shape":"CreateDistributionRequest"}, "output":{"shape":"CreateDistributionResult"}, "errors":[ - {"shape":"CNAMEAlreadyExists"}, - {"shape":"DistributionAlreadyExists"}, - {"shape":"InvalidOrigin"}, - {"shape":"InvalidOriginAccessIdentity"}, - {"shape":"InvalidOriginAccessControl"}, - {"shape":"IllegalOriginAccessConfiguration"}, - {"shape":"TooManyDistributionsAssociatedToOriginAccessControl"}, {"shape":"AccessDenied"}, - {"shape":"TooManyTrustedSigners"}, - {"shape":"TrustedSignerDoesNotExist"}, - {"shape":"InvalidViewerCertificate"}, - {"shape":"InvalidMinimumProtocolVersion"}, - {"shape":"MissingBody"}, - {"shape":"TooManyDistributionCNAMEs"}, - {"shape":"TooManyDistributions"}, + {"shape":"TooManyDistributionsAssociatedToOriginAccessControl"}, {"shape":"InvalidDefaultRootObject"}, - {"shape":"InvalidRelativePath"}, + {"shape":"InvalidDomainNameForOriginAccessControl"}, + {"shape":"InvalidQueryStringParameters"}, + {"shape":"TooManyTrustedSigners"}, + {"shape":"TooManyCookieNamesInWhiteList"}, + {"shape":"NoSuchFieldLevelEncryptionConfig"}, {"shape":"InvalidErrorCode"}, - {"shape":"InvalidResponseCode"}, - {"shape":"InvalidArgument"}, + {"shape":"IllegalOriginAccessConfiguration"}, + {"shape":"InvalidProtocolSettings"}, + {"shape":"TooManyFunctionAssociations"}, + {"shape":"TooManyOriginCustomHeaders"}, + {"shape":"InvalidOrigin"}, + {"shape":"InvalidForwardCookies"}, + {"shape":"InvalidMinimumProtocolVersion"}, + {"shape":"NoSuchCachePolicy"}, + {"shape":"TooManyKeyGroupsAssociatedToDistribution"}, + {"shape":"TooManyDistributionsAssociatedToCachePolicy"}, {"shape":"InvalidRequiredProtocol"}, - {"shape":"NoSuchOrigin"}, - {"shape":"TooManyOrigins"}, + {"shape":"TooManyDistributionsWithFunctionAssociations"}, {"shape":"TooManyOriginGroupsPerDistribution"}, - {"shape":"TooManyCacheBehaviors"}, - {"shape":"TooManyCookieNamesInWhiteList"}, - {"shape":"InvalidForwardCookies"}, - {"shape":"TooManyHeadersInForwardedValues"}, - {"shape":"InvalidHeadersForS3Origin"}, - {"shape":"InconsistentQuantities"}, - {"shape":"TooManyCertificates"}, - {"shape":"InvalidLocationCode"}, - {"shape":"InvalidGeoRestrictionParameter"}, - {"shape":"InvalidProtocolSettings"}, + {"shape":"TooManyDistributions"}, {"shape":"InvalidTTLOrder"}, + {"shape":"IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior"}, + {"shape":"InvalidOriginKeepaliveTimeout"}, + {"shape":"InvalidArgument"}, + {"shape":"InvalidOriginReadTimeout"}, + {"shape":"InvalidOriginAccessControl"}, + {"shape":"InvalidHeadersForS3Origin"}, + {"shape":"TrustedSignerDoesNotExist"}, {"shape":"InvalidWebACLId"}, - {"shape":"TooManyOriginCustomHeaders"}, - {"shape":"TooManyQueryStringParameters"}, - {"shape":"InvalidQueryStringParameters"}, - {"shape":"TooManyDistributionsWithLambdaAssociations"}, {"shape":"TooManyDistributionsWithSingleFunctionARN"}, + {"shape":"InvalidRelativePath"}, {"shape":"TooManyLambdaFunctionAssociations"}, - {"shape":"InvalidLambdaFunctionAssociation"}, - {"shape":"TooManyDistributionsWithFunctionAssociations"}, - {"shape":"TooManyFunctionAssociations"}, - {"shape":"InvalidFunctionAssociation"}, - {"shape":"InvalidOriginReadTimeout"}, - {"shape":"InvalidOriginKeepaliveTimeout"}, - {"shape":"NoSuchFieldLevelEncryptionConfig"}, - {"shape":"IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior"}, - {"shape":"TooManyDistributionsAssociatedToFieldLevelEncryptionConfig"}, - {"shape":"NoSuchCachePolicy"}, - {"shape":"TooManyDistributionsAssociatedToCachePolicy"}, - {"shape":"NoSuchResponseHeadersPolicy"}, - {"shape":"TooManyDistributionsAssociatedToResponseHeadersPolicy"}, {"shape":"NoSuchOriginRequestPolicy"}, + {"shape":"TooManyDistributionsAssociatedToFieldLevelEncryptionConfig"}, + {"shape":"InconsistentQuantities"}, + {"shape":"InvalidLocationCode"}, + {"shape":"InvalidOriginAccessIdentity"}, + {"shape":"TooManyDistributionCNAMEs"}, + {"shape":"NoSuchContinuousDeploymentPolicy"}, {"shape":"TooManyDistributionsAssociatedToOriginRequestPolicy"}, - {"shape":"TooManyDistributionsAssociatedToKeyGroup"}, - {"shape":"TooManyKeyGroupsAssociatedToDistribution"}, - {"shape":"TrustedKeyGroupDoesNotExist"}, - {"shape":"NoSuchRealtimeLogConfig"}, + {"shape":"TooManyQueryStringParameters"}, {"shape":"RealtimeLogConfigOwnerMismatch"}, {"shape":"ContinuousDeploymentPolicyInUse"}, - {"shape":"NoSuchContinuousDeploymentPolicy"}, - {"shape":"InvalidDomainNameForOriginAccessControl"} + {"shape":"MissingBody"}, + {"shape":"TooManyHeadersInForwardedValues"}, + {"shape":"InvalidLambdaFunctionAssociation"}, + {"shape":"CNAMEAlreadyExists"}, + {"shape":"TooManyCertificates"}, + {"shape":"TrustedKeyGroupDoesNotExist"}, + {"shape":"TooManyDistributionsAssociatedToResponseHeadersPolicy"}, + {"shape":"NoSuchResponseHeadersPolicy"}, + {"shape":"NoSuchRealtimeLogConfig"}, + {"shape":"InvalidResponseCode"}, + {"shape":"InvalidGeoRestrictionParameter"}, + {"shape":"TooManyOrigins"}, + {"shape":"InvalidViewerCertificate"}, + {"shape":"InvalidFunctionAssociation"}, + {"shape":"TooManyDistributionsWithLambdaAssociations"}, + {"shape":"TooManyDistributionsAssociatedToKeyGroup"}, + {"shape":"DistributionAlreadyExists"}, + {"shape":"NoSuchOrigin"}, + {"shape":"TooManyCacheBehaviors"} ], "documentation":"

      Creates a CloudFront distribution.

      " }, @@ -258,72 +259,72 @@ "input":{"shape":"CreateDistributionWithTagsRequest"}, "output":{"shape":"CreateDistributionWithTagsResult"}, "errors":[ - {"shape":"CNAMEAlreadyExists"}, - {"shape":"DistributionAlreadyExists"}, - {"shape":"InvalidOrigin"}, - {"shape":"InvalidOriginAccessIdentity"}, - {"shape":"InvalidOriginAccessControl"}, - {"shape":"IllegalOriginAccessConfiguration"}, {"shape":"AccessDenied"}, - {"shape":"TooManyTrustedSigners"}, - {"shape":"TrustedSignerDoesNotExist"}, - {"shape":"InvalidViewerCertificate"}, - {"shape":"InvalidMinimumProtocolVersion"}, - {"shape":"MissingBody"}, - {"shape":"TooManyDistributionCNAMEs"}, - {"shape":"TooManyDistributions"}, + {"shape":"TooManyDistributionsAssociatedToOriginAccessControl"}, {"shape":"InvalidDefaultRootObject"}, - {"shape":"InvalidRelativePath"}, + {"shape":"InvalidDomainNameForOriginAccessControl"}, + {"shape":"InvalidQueryStringParameters"}, + {"shape":"TooManyTrustedSigners"}, + {"shape":"TooManyCookieNamesInWhiteList"}, + {"shape":"NoSuchFieldLevelEncryptionConfig"}, {"shape":"InvalidErrorCode"}, - {"shape":"InvalidResponseCode"}, - {"shape":"InvalidArgument"}, + {"shape":"IllegalOriginAccessConfiguration"}, + {"shape":"InvalidProtocolSettings"}, + {"shape":"TooManyFunctionAssociations"}, + {"shape":"TooManyOriginCustomHeaders"}, + {"shape":"InvalidOrigin"}, + {"shape":"InvalidForwardCookies"}, + {"shape":"InvalidMinimumProtocolVersion"}, + {"shape":"NoSuchCachePolicy"}, + {"shape":"TooManyKeyGroupsAssociatedToDistribution"}, + {"shape":"TooManyDistributionsAssociatedToCachePolicy"}, {"shape":"InvalidRequiredProtocol"}, - {"shape":"NoSuchOrigin"}, - {"shape":"TooManyOrigins"}, + {"shape":"TooManyDistributionsWithFunctionAssociations"}, {"shape":"TooManyOriginGroupsPerDistribution"}, - {"shape":"TooManyCacheBehaviors"}, - {"shape":"TooManyCookieNamesInWhiteList"}, - {"shape":"InvalidForwardCookies"}, - {"shape":"TooManyHeadersInForwardedValues"}, - {"shape":"InvalidHeadersForS3Origin"}, - {"shape":"InconsistentQuantities"}, - {"shape":"TooManyCertificates"}, - {"shape":"InvalidLocationCode"}, - {"shape":"InvalidGeoRestrictionParameter"}, - {"shape":"InvalidProtocolSettings"}, + {"shape":"TooManyDistributions"}, {"shape":"InvalidTTLOrder"}, + {"shape":"IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior"}, + {"shape":"InvalidOriginKeepaliveTimeout"}, + {"shape":"InvalidArgument"}, + {"shape":"InvalidOriginReadTimeout"}, + {"shape":"InvalidOriginAccessControl"}, + {"shape":"InvalidHeadersForS3Origin"}, + {"shape":"TrustedSignerDoesNotExist"}, {"shape":"InvalidWebACLId"}, - {"shape":"TooManyOriginCustomHeaders"}, - {"shape":"InvalidTagging"}, - {"shape":"TooManyQueryStringParameters"}, - {"shape":"InvalidQueryStringParameters"}, - {"shape":"TooManyDistributionsWithLambdaAssociations"}, {"shape":"TooManyDistributionsWithSingleFunctionARN"}, + {"shape":"InvalidRelativePath"}, {"shape":"TooManyLambdaFunctionAssociations"}, - {"shape":"InvalidLambdaFunctionAssociation"}, - {"shape":"TooManyDistributionsWithFunctionAssociations"}, - {"shape":"TooManyFunctionAssociations"}, - {"shape":"InvalidFunctionAssociation"}, - {"shape":"InvalidOriginReadTimeout"}, - {"shape":"InvalidOriginKeepaliveTimeout"}, - {"shape":"NoSuchFieldLevelEncryptionConfig"}, - {"shape":"IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior"}, - {"shape":"TooManyDistributionsAssociatedToFieldLevelEncryptionConfig"}, - {"shape":"NoSuchCachePolicy"}, - {"shape":"TooManyDistributionsAssociatedToCachePolicy"}, - {"shape":"TooManyDistributionsAssociatedToOriginAccessControl"}, - {"shape":"NoSuchResponseHeadersPolicy"}, - {"shape":"TooManyDistributionsAssociatedToResponseHeadersPolicy"}, {"shape":"NoSuchOriginRequestPolicy"}, + {"shape":"TooManyDistributionsAssociatedToFieldLevelEncryptionConfig"}, + {"shape":"InconsistentQuantities"}, + {"shape":"InvalidLocationCode"}, + {"shape":"InvalidOriginAccessIdentity"}, + {"shape":"InvalidTagging"}, + {"shape":"TooManyDistributionCNAMEs"}, + {"shape":"NoSuchContinuousDeploymentPolicy"}, {"shape":"TooManyDistributionsAssociatedToOriginRequestPolicy"}, - {"shape":"TooManyDistributionsAssociatedToKeyGroup"}, - {"shape":"TooManyKeyGroupsAssociatedToDistribution"}, - {"shape":"TrustedKeyGroupDoesNotExist"}, - {"shape":"NoSuchRealtimeLogConfig"}, + {"shape":"TooManyQueryStringParameters"}, {"shape":"RealtimeLogConfigOwnerMismatch"}, {"shape":"ContinuousDeploymentPolicyInUse"}, - {"shape":"NoSuchContinuousDeploymentPolicy"}, - {"shape":"InvalidDomainNameForOriginAccessControl"} + {"shape":"MissingBody"}, + {"shape":"TooManyHeadersInForwardedValues"}, + {"shape":"InvalidLambdaFunctionAssociation"}, + {"shape":"CNAMEAlreadyExists"}, + {"shape":"TooManyCertificates"}, + {"shape":"TrustedKeyGroupDoesNotExist"}, + {"shape":"TooManyDistributionsAssociatedToResponseHeadersPolicy"}, + {"shape":"NoSuchResponseHeadersPolicy"}, + {"shape":"NoSuchRealtimeLogConfig"}, + {"shape":"InvalidResponseCode"}, + {"shape":"InvalidGeoRestrictionParameter"}, + {"shape":"TooManyOrigins"}, + {"shape":"InvalidViewerCertificate"}, + {"shape":"InvalidFunctionAssociation"}, + {"shape":"TooManyDistributionsWithLambdaAssociations"}, + {"shape":"TooManyDistributionsAssociatedToKeyGroup"}, + {"shape":"DistributionAlreadyExists"}, + {"shape":"NoSuchOrigin"}, + {"shape":"TooManyCacheBehaviors"} ], "documentation":"

      Create a new distribution with tags. This API operation requires the following IAM permissions:

      " }, @@ -337,14 +338,14 @@ "input":{"shape":"CreateFieldLevelEncryptionConfigRequest"}, "output":{"shape":"CreateFieldLevelEncryptionConfigResult"}, "errors":[ - {"shape":"InconsistentQuantities"}, - {"shape":"InvalidArgument"}, - {"shape":"NoSuchFieldLevelEncryptionProfile"}, - {"shape":"FieldLevelEncryptionConfigAlreadyExists"}, - {"shape":"TooManyFieldLevelEncryptionConfigs"}, + {"shape":"QueryArgProfileEmpty"}, {"shape":"TooManyFieldLevelEncryptionQueryArgProfiles"}, {"shape":"TooManyFieldLevelEncryptionContentTypeProfiles"}, - {"shape":"QueryArgProfileEmpty"} + {"shape":"FieldLevelEncryptionConfigAlreadyExists"}, + {"shape":"InconsistentQuantities"}, + {"shape":"TooManyFieldLevelEncryptionConfigs"}, + {"shape":"NoSuchFieldLevelEncryptionProfile"}, + {"shape":"InvalidArgument"} ], "documentation":"

      Create a new field-level encryption configuration.

      " }, @@ -358,14 +359,14 @@ "input":{"shape":"CreateFieldLevelEncryptionProfileRequest"}, "output":{"shape":"CreateFieldLevelEncryptionProfileResult"}, "errors":[ - {"shape":"InconsistentQuantities"}, - {"shape":"InvalidArgument"}, - {"shape":"NoSuchPublicKey"}, + {"shape":"TooManyFieldLevelEncryptionFieldPatterns"}, {"shape":"FieldLevelEncryptionProfileAlreadyExists"}, + {"shape":"NoSuchPublicKey"}, {"shape":"FieldLevelEncryptionProfileSizeExceeded"}, + {"shape":"InconsistentQuantities"}, {"shape":"TooManyFieldLevelEncryptionProfiles"}, {"shape":"TooManyFieldLevelEncryptionEncryptionEntities"}, - {"shape":"TooManyFieldLevelEncryptionFieldPatterns"} + {"shape":"InvalidArgument"} ], "documentation":"

      Create a field-level encryption profile.

      " }, @@ -383,11 +384,11 @@ }, "output":{"shape":"CreateFunctionResult"}, "errors":[ - {"shape":"TooManyFunctions"}, {"shape":"FunctionAlreadyExists"}, + {"shape":"UnsupportedOperation"}, {"shape":"FunctionSizeLimitExceeded"}, {"shape":"InvalidArgument"}, - {"shape":"UnsupportedOperation"} + {"shape":"TooManyFunctions"} ], "documentation":"

      Creates a CloudFront function.

      To create a function, you provide the function code and some configuration information about the function. The response contains an Amazon Resource Name (ARN) that uniquely identifies the function.

      When you create a function, it's in the DEVELOPMENT stage. In this stage, you can test the function with TestFunction, and update it with UpdateFunction.

      When you're ready to use your function with a CloudFront distribution, use PublishFunction to copy the function from the DEVELOPMENT stage to LIVE. When it's live, you can attach the function to a distribution's cache behavior, using the function's ARN.

      " }, @@ -401,13 +402,13 @@ "input":{"shape":"CreateInvalidationRequest"}, "output":{"shape":"CreateInvalidationResult"}, "errors":[ + {"shape":"NoSuchDistribution"}, {"shape":"AccessDenied"}, + {"shape":"TooManyInvalidationsInProgress"}, {"shape":"MissingBody"}, + {"shape":"InconsistentQuantities"}, {"shape":"InvalidArgument"}, - {"shape":"NoSuchDistribution"}, - {"shape":"BatchTooLarge"}, - {"shape":"TooManyInvalidationsInProgress"}, - {"shape":"InconsistentQuantities"} + {"shape":"BatchTooLarge"} ], "documentation":"

      Create a new invalidation. For more information, see Invalidating files in the Amazon CloudFront Developer Guide.

      " }, @@ -421,10 +422,10 @@ "input":{"shape":"CreateKeyGroupRequest"}, "output":{"shape":"CreateKeyGroupResult"}, "errors":[ - {"shape":"InvalidArgument"}, - {"shape":"KeyGroupAlreadyExists"}, + {"shape":"TooManyPublicKeysInKeyGroup"}, {"shape":"TooManyKeyGroups"}, - {"shape":"TooManyPublicKeysInKeyGroup"} + {"shape":"InvalidArgument"}, + {"shape":"KeyGroupAlreadyExists"} ], "documentation":"

      Creates a key group that you can use with CloudFront signed URLs and signed cookies.

      To create a key group, you must specify at least one public key for the key group. After you create a key group, you can reference it from one or more cache behaviors. When you reference a key group in a cache behavior, CloudFront requires signed URLs or signed cookies for all requests that match the cache behavior. The URLs or cookies must be signed with a private key whose corresponding public key is in the key group. The signed URL or cookie contains information about which public key CloudFront should use to verify the signature. For more information, see Serving private content in the Amazon CloudFront Developer Guide.

      " }, @@ -432,7 +433,7 @@ "name":"CreateKeyValueStore2020_05_31", "http":{ "method":"POST", - "requestUri":"/2020-05-31/key-value-store/", + "requestUri":"/2020-05-31/key-value-store", "responseCode":201 }, "input":{ @@ -443,11 +444,11 @@ "output":{"shape":"CreateKeyValueStoreResult"}, "errors":[ {"shape":"AccessDenied"}, - {"shape":"EntityLimitExceeded"}, + {"shape":"UnsupportedOperation"}, {"shape":"EntityAlreadyExists"}, - {"shape":"EntitySizeLimitExceeded"}, {"shape":"InvalidArgument"}, - {"shape":"UnsupportedOperation"} + {"shape":"EntityLimitExceeded"}, + {"shape":"EntitySizeLimitExceeded"} ], "documentation":"

      Specifies the key value store resource to add to your account. In your account, the key value store names must be unique. You can also import key value store data in JSON format from an S3 bucket by providing a valid ImportSource that you own.

      " }, @@ -455,13 +456,14 @@ "name":"CreateMonitoringSubscription2020_05_31", "http":{ "method":"POST", - "requestUri":"/2020-05-31/distributions/{DistributionId}/monitoring-subscription/" + "requestUri":"/2020-05-31/distributions/{DistributionId}/monitoring-subscription", + "responseCode":200 }, "input":{"shape":"CreateMonitoringSubscriptionRequest"}, "output":{"shape":"CreateMonitoringSubscriptionResult"}, "errors":[ - {"shape":"AccessDenied"}, {"shape":"NoSuchDistribution"}, + {"shape":"AccessDenied"}, {"shape":"MonitoringSubscriptionAlreadyExists"}, {"shape":"UnsupportedOperation"} ], @@ -494,13 +496,13 @@ "output":{"shape":"CreateOriginRequestPolicyResult"}, "errors":[ {"shape":"AccessDenied"}, - {"shape":"InconsistentQuantities"}, - {"shape":"InvalidArgument"}, - {"shape":"OriginRequestPolicyAlreadyExists"}, - {"shape":"TooManyOriginRequestPolicies"}, {"shape":"TooManyHeadersInOriginRequestPolicy"}, {"shape":"TooManyCookiesInOriginRequestPolicy"}, - {"shape":"TooManyQueryStringsInOriginRequestPolicy"} + {"shape":"InconsistentQuantities"}, + {"shape":"OriginRequestPolicyAlreadyExists"}, + {"shape":"TooManyQueryStringsInOriginRequestPolicy"}, + {"shape":"InvalidArgument"}, + {"shape":"TooManyOriginRequestPolicies"} ], "documentation":"

      Creates an origin request policy.

      After you create an origin request policy, you can attach it to one or more cache behaviors. When it's attached to a cache behavior, the origin request policy determines the values that CloudFront includes in requests that it sends to the origin. Each request that CloudFront sends to the origin includes the following:

      • The request body and the URL path (without the domain name) from the viewer request.

      • The headers that CloudFront automatically includes in every origin request, including Host, User-Agent, and X-Amz-Cf-Id.

      • All HTTP headers, cookies, and URL query strings that are specified in the cache policy or the origin request policy. These can include items from the viewer request and, in the case of headers, additional ones that are added by CloudFront.

      CloudFront sends a request when it can't find a valid object in its cache that matches the request. If you want to send values to the origin and also include them in the cache key, use CachePolicy.

      For more information about origin request policies, see Controlling origin requests in the Amazon CloudFront Developer Guide.

      " }, @@ -514,9 +516,9 @@ "input":{"shape":"CreatePublicKeyRequest"}, "output":{"shape":"CreatePublicKeyResult"}, "errors":[ + {"shape":"TooManyPublicKeys"}, {"shape":"PublicKeyAlreadyExists"}, - {"shape":"InvalidArgument"}, - {"shape":"TooManyPublicKeys"} + {"shape":"InvalidArgument"} ], "documentation":"

      Uploads a public key to CloudFront that you can use with signed URLs and signed cookies, or with field-level encryption.

      " }, @@ -534,10 +536,10 @@ }, "output":{"shape":"CreateRealtimeLogConfigResult"}, "errors":[ + {"shape":"AccessDenied"}, {"shape":"RealtimeLogConfigAlreadyExists"}, {"shape":"TooManyRealtimeLogConfigs"}, - {"shape":"InvalidArgument"}, - {"shape":"AccessDenied"} + {"shape":"InvalidArgument"} ], "documentation":"

      Creates a real-time log configuration.

      After you create a real-time log configuration, you can attach it to one or more cache behaviors to send real-time log data to the specified Amazon Kinesis data stream.

      For more information about real-time log configurations, see Real-time logs in the Amazon CloudFront Developer Guide.

      " }, @@ -552,13 +554,13 @@ "output":{"shape":"CreateResponseHeadersPolicyResult"}, "errors":[ {"shape":"AccessDenied"}, - {"shape":"InconsistentQuantities"}, - {"shape":"InvalidArgument"}, - {"shape":"ResponseHeadersPolicyAlreadyExists"}, - {"shape":"TooManyResponseHeadersPolicies"}, {"shape":"TooManyCustomHeadersInResponseHeadersPolicy"}, + {"shape":"ResponseHeadersPolicyAlreadyExists"}, + {"shape":"InconsistentQuantities"}, {"shape":"TooLongCSPInResponseHeadersPolicy"}, - {"shape":"TooManyRemoveHeadersInResponseHeadersPolicy"} + {"shape":"InvalidArgument"}, + {"shape":"TooManyRemoveHeadersInResponseHeadersPolicy"}, + {"shape":"TooManyResponseHeadersPolicies"} ], "documentation":"

      Creates a response headers policy.

      A response headers policy contains information about a set of HTTP headers. To create a response headers policy, you provide some metadata about the policy and a set of configurations that specify the headers.

      After you create a response headers policy, you can use its ID to attach it to one or more cache behaviors in a CloudFront distribution. When it's attached to a cache behavior, the response headers policy affects the HTTP headers that CloudFront includes in HTTP responses to requests that match the cache behavior. CloudFront adds or removes response headers according to the configuration of the response headers policy.

      For more information, see Adding or removing HTTP headers in CloudFront responses in the Amazon CloudFront Developer Guide.

      " }, @@ -572,19 +574,19 @@ "input":{"shape":"CreateStreamingDistributionRequest"}, "output":{"shape":"CreateStreamingDistributionResult"}, "errors":[ - {"shape":"CNAMEAlreadyExists"}, + {"shape":"AccessDenied"}, {"shape":"StreamingDistributionAlreadyExists"}, - {"shape":"InvalidOrigin"}, + {"shape":"InconsistentQuantities"}, {"shape":"InvalidOriginAccessIdentity"}, - {"shape":"InvalidOriginAccessControl"}, - {"shape":"AccessDenied"}, + {"shape":"InvalidArgument"}, {"shape":"TooManyTrustedSigners"}, - {"shape":"TrustedSignerDoesNotExist"}, + {"shape":"InvalidOriginAccessControl"}, + {"shape":"TooManyStreamingDistributions"}, {"shape":"MissingBody"}, {"shape":"TooManyStreamingDistributionCNAMEs"}, - {"shape":"TooManyStreamingDistributions"}, - {"shape":"InvalidArgument"}, - {"shape":"InconsistentQuantities"} + {"shape":"TrustedSignerDoesNotExist"}, + {"shape":"CNAMEAlreadyExists"}, + {"shape":"InvalidOrigin"} ], "documentation":"

      This API is deprecated. Amazon CloudFront is deprecating real-time messaging protocol (RTMP) distributions on December 31, 2020. For more information, read the announcement on the Amazon CloudFront discussion forum.

      " }, @@ -598,20 +600,20 @@ "input":{"shape":"CreateStreamingDistributionWithTagsRequest"}, "output":{"shape":"CreateStreamingDistributionWithTagsResult"}, "errors":[ - {"shape":"CNAMEAlreadyExists"}, - {"shape":"StreamingDistributionAlreadyExists"}, - {"shape":"InvalidOrigin"}, - {"shape":"InvalidOriginAccessIdentity"}, - {"shape":"InvalidOriginAccessControl"}, {"shape":"AccessDenied"}, + {"shape":"StreamingDistributionAlreadyExists"}, + {"shape":"InconsistentQuantities"}, + {"shape":"InvalidOriginAccessIdentity"}, + {"shape":"InvalidTagging"}, + {"shape":"InvalidArgument"}, {"shape":"TooManyTrustedSigners"}, - {"shape":"TrustedSignerDoesNotExist"}, + {"shape":"InvalidOriginAccessControl"}, + {"shape":"TooManyStreamingDistributions"}, {"shape":"MissingBody"}, {"shape":"TooManyStreamingDistributionCNAMEs"}, - {"shape":"TooManyStreamingDistributions"}, - {"shape":"InvalidArgument"}, - {"shape":"InconsistentQuantities"}, - {"shape":"InvalidTagging"} + {"shape":"TrustedSignerDoesNotExist"}, + {"shape":"CNAMEAlreadyExists"}, + {"shape":"InvalidOrigin"} ], "documentation":"

      This API is deprecated. Amazon CloudFront is deprecating real-time messaging protocol (RTMP) distributions on December 31, 2020. For more information, read the announcement on the Amazon CloudFront discussion forum.

      " }, @@ -624,12 +626,12 @@ }, "input":{"shape":"DeleteCachePolicyRequest"}, "errors":[ - {"shape":"AccessDenied"}, - {"shape":"InvalidIfMatchVersion"}, {"shape":"NoSuchCachePolicy"}, {"shape":"PreconditionFailed"}, + {"shape":"AccessDenied"}, {"shape":"IllegalDelete"}, - {"shape":"CachePolicyInUse"} + {"shape":"CachePolicyInUse"}, + {"shape":"InvalidIfMatchVersion"} ], "documentation":"

      Deletes a cache policy.

      You cannot delete a cache policy if it's attached to a cache behavior. First update your distributions to remove the cache policy from all cache behaviors, then delete the cache policy.

      To delete a cache policy, you must provide the policy's identifier and version. To get these values, you can use ListCachePolicies or GetCachePolicy.

      " }, @@ -642,10 +644,10 @@ }, "input":{"shape":"DeleteCloudFrontOriginAccessIdentityRequest"}, "errors":[ + {"shape":"PreconditionFailed"}, {"shape":"AccessDenied"}, {"shape":"InvalidIfMatchVersion"}, {"shape":"NoSuchCloudFrontOriginAccessIdentity"}, - {"shape":"PreconditionFailed"}, {"shape":"CloudFrontOriginAccessIdentityInUse"} ], "documentation":"

      Delete an origin access identity.

      " @@ -659,12 +661,12 @@ }, "input":{"shape":"DeleteContinuousDeploymentPolicyRequest"}, "errors":[ - {"shape":"InvalidIfMatchVersion"}, - {"shape":"InvalidArgument"}, - {"shape":"AccessDenied"}, - {"shape":"PreconditionFailed"}, {"shape":"ContinuousDeploymentPolicyInUse"}, - {"shape":"NoSuchContinuousDeploymentPolicy"} + {"shape":"PreconditionFailed"}, + {"shape":"AccessDenied"}, + {"shape":"InvalidArgument"}, + {"shape":"NoSuchContinuousDeploymentPolicy"}, + {"shape":"InvalidIfMatchVersion"} ], "documentation":"

      Deletes a continuous deployment policy.

      You cannot delete a continuous deployment policy that's attached to a primary distribution. First update your distribution to remove the continuous deployment policy, then you can delete the policy.

      " }, @@ -677,11 +679,11 @@ }, "input":{"shape":"DeleteDistributionRequest"}, "errors":[ + {"shape":"NoSuchDistribution"}, + {"shape":"PreconditionFailed"}, {"shape":"AccessDenied"}, {"shape":"DistributionNotDisabled"}, - {"shape":"InvalidIfMatchVersion"}, - {"shape":"NoSuchDistribution"}, - {"shape":"PreconditionFailed"} + {"shape":"InvalidIfMatchVersion"} ], "documentation":"

      Delete a distribution.

      " }, @@ -694,11 +696,11 @@ }, "input":{"shape":"DeleteFieldLevelEncryptionConfigRequest"}, "errors":[ + {"shape":"PreconditionFailed"}, {"shape":"AccessDenied"}, - {"shape":"InvalidIfMatchVersion"}, + {"shape":"FieldLevelEncryptionConfigInUse"}, {"shape":"NoSuchFieldLevelEncryptionConfig"}, - {"shape":"PreconditionFailed"}, - {"shape":"FieldLevelEncryptionConfigInUse"} + {"shape":"InvalidIfMatchVersion"} ], "documentation":"

      Remove a field-level encryption configuration.

      " }, @@ -711,11 +713,11 @@ }, "input":{"shape":"DeleteFieldLevelEncryptionProfileRequest"}, "errors":[ + {"shape":"PreconditionFailed"}, {"shape":"AccessDenied"}, - {"shape":"InvalidIfMatchVersion"}, {"shape":"NoSuchFieldLevelEncryptionProfile"}, - {"shape":"PreconditionFailed"}, - {"shape":"FieldLevelEncryptionProfileInUse"} + {"shape":"FieldLevelEncryptionProfileInUse"}, + {"shape":"InvalidIfMatchVersion"} ], "documentation":"

      Remove a field-level encryption profile.

      " }, @@ -728,11 +730,11 @@ }, "input":{"shape":"DeleteFunctionRequest"}, "errors":[ - {"shape":"InvalidIfMatchVersion"}, - {"shape":"NoSuchFunctionExists"}, - {"shape":"FunctionInUse"}, {"shape":"PreconditionFailed"}, - {"shape":"UnsupportedOperation"} + {"shape":"UnsupportedOperation"}, + {"shape":"FunctionInUse"}, + {"shape":"NoSuchFunctionExists"}, + {"shape":"InvalidIfMatchVersion"} ], "documentation":"

      Deletes a CloudFront function.

      You cannot delete a function if it's associated with a cache behavior. First, update your distributions to remove the function association from all cache behaviors, then delete the function.

      To delete a function, you must provide the function's name and version (ETag value). To get these values, you can use ListFunctions and DescribeFunction.

      " }, @@ -745,10 +747,10 @@ }, "input":{"shape":"DeleteKeyGroupRequest"}, "errors":[ - {"shape":"InvalidIfMatchVersion"}, - {"shape":"NoSuchResource"}, + {"shape":"ResourceInUse"}, {"shape":"PreconditionFailed"}, - {"shape":"ResourceInUse"} + {"shape":"NoSuchResource"}, + {"shape":"InvalidIfMatchVersion"} ], "documentation":"

      Deletes a key group.

      You cannot delete a key group that is referenced in a cache behavior. First update your distributions to remove the key group from all cache behaviors, then delete the key group.

      To delete a key group, you must provide the key group's identifier and version. To get these values, use ListKeyGroups followed by GetKeyGroup or GetKeyGroupConfig.

      " }, @@ -761,12 +763,12 @@ }, "input":{"shape":"DeleteKeyValueStoreRequest"}, "errors":[ - {"shape":"AccessDenied"}, - {"shape":"InvalidIfMatchVersion"}, - {"shape":"EntityNotFound"}, {"shape":"CannotDeleteEntityWhileInUse"}, {"shape":"PreconditionFailed"}, - {"shape":"UnsupportedOperation"} + {"shape":"EntityNotFound"}, + {"shape":"AccessDenied"}, + {"shape":"UnsupportedOperation"}, + {"shape":"InvalidIfMatchVersion"} ], "documentation":"

      Specifies the key value store to delete.

      ", "idempotent":true @@ -775,15 +777,16 @@ "name":"DeleteMonitoringSubscription2020_05_31", "http":{ "method":"DELETE", - "requestUri":"/2020-05-31/distributions/{DistributionId}/monitoring-subscription/" + "requestUri":"/2020-05-31/distributions/{DistributionId}/monitoring-subscription", + "responseCode":200 }, "input":{"shape":"DeleteMonitoringSubscriptionRequest"}, "output":{"shape":"DeleteMonitoringSubscriptionResult"}, "errors":[ - {"shape":"AccessDenied"}, {"shape":"NoSuchDistribution"}, - {"shape":"NoSuchMonitoringSubscription"}, - {"shape":"UnsupportedOperation"} + {"shape":"AccessDenied"}, + {"shape":"UnsupportedOperation"}, + {"shape":"NoSuchMonitoringSubscription"} ], "documentation":"

      Disables additional CloudWatch metrics for the specified CloudFront distribution.

      " }, @@ -796,11 +799,11 @@ }, "input":{"shape":"DeleteOriginAccessControlRequest"}, "errors":[ + {"shape":"PreconditionFailed"}, {"shape":"AccessDenied"}, - {"shape":"InvalidIfMatchVersion"}, + {"shape":"OriginAccessControlInUse"}, {"shape":"NoSuchOriginAccessControl"}, - {"shape":"PreconditionFailed"}, - {"shape":"OriginAccessControlInUse"} + {"shape":"InvalidIfMatchVersion"} ], "documentation":"

      Deletes a CloudFront origin access control.

      You cannot delete an origin access control if it's in use. First, update all distributions to remove the origin access control from all origins, then delete the origin access control.

      " }, @@ -813,11 +816,11 @@ }, "input":{"shape":"DeleteOriginRequestPolicyRequest"}, "errors":[ - {"shape":"AccessDenied"}, - {"shape":"InvalidIfMatchVersion"}, - {"shape":"NoSuchOriginRequestPolicy"}, {"shape":"PreconditionFailed"}, + {"shape":"AccessDenied"}, {"shape":"IllegalDelete"}, + {"shape":"NoSuchOriginRequestPolicy"}, + {"shape":"InvalidIfMatchVersion"}, {"shape":"OriginRequestPolicyInUse"} ], "documentation":"

      Deletes an origin request policy.

      You cannot delete an origin request policy if it's attached to any cache behaviors. First update your distributions to remove the origin request policy from all cache behaviors, then delete the origin request policy.

      To delete an origin request policy, you must provide the policy's identifier and version. To get the identifier, you can use ListOriginRequestPolicies or GetOriginRequestPolicy.

      " @@ -831,11 +834,11 @@ }, "input":{"shape":"DeletePublicKeyRequest"}, "errors":[ + {"shape":"PreconditionFailed"}, {"shape":"AccessDenied"}, - {"shape":"PublicKeyInUse"}, - {"shape":"InvalidIfMatchVersion"}, {"shape":"NoSuchPublicKey"}, - {"shape":"PreconditionFailed"} + {"shape":"PublicKeyInUse"}, + {"shape":"InvalidIfMatchVersion"} ], "documentation":"

      Remove a public key you previously added to CloudFront.

      " }, @@ -843,7 +846,7 @@ "name":"DeleteRealtimeLogConfig2020_05_31", "http":{ "method":"POST", - "requestUri":"/2020-05-31/delete-realtime-log-config/", + "requestUri":"/2020-05-31/delete-realtime-log-config", "responseCode":204 }, "input":{ @@ -852,10 +855,10 @@ "xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2020-05-31/"} }, "errors":[ - {"shape":"NoSuchRealtimeLogConfig"}, - {"shape":"RealtimeLogConfigInUse"}, + {"shape":"AccessDenied"}, {"shape":"InvalidArgument"}, - {"shape":"AccessDenied"} + {"shape":"RealtimeLogConfigInUse"}, + {"shape":"NoSuchRealtimeLogConfig"} ], "documentation":"

      Deletes a real-time log configuration.

      You cannot delete a real-time log configuration if it's attached to a cache behavior. First update your distributions to remove the real-time log configuration from all cache behaviors, then delete the real-time log configuration.

      To delete a real-time log configuration, you can provide the configuration's name or its Amazon Resource Name (ARN). You must provide at least one. If you provide both, CloudFront uses the name to identify the real-time log configuration to delete.

      " }, @@ -868,12 +871,12 @@ }, "input":{"shape":"DeleteResponseHeadersPolicyRequest"}, "errors":[ - {"shape":"AccessDenied"}, - {"shape":"InvalidIfMatchVersion"}, - {"shape":"NoSuchResponseHeadersPolicy"}, + {"shape":"ResponseHeadersPolicyInUse"}, {"shape":"PreconditionFailed"}, + {"shape":"AccessDenied"}, {"shape":"IllegalDelete"}, - {"shape":"ResponseHeadersPolicyInUse"} + {"shape":"NoSuchResponseHeadersPolicy"}, + {"shape":"InvalidIfMatchVersion"} ], "documentation":"

      Deletes a response headers policy.

      You cannot delete a response headers policy if it's attached to a cache behavior. First update your distributions to remove the response headers policy from all cache behaviors, then delete the response headers policy.

      To delete a response headers policy, you must provide the policy's identifier and version. To get these values, you can use ListResponseHeadersPolicies or GetResponseHeadersPolicy.

      " }, @@ -886,11 +889,11 @@ }, "input":{"shape":"DeleteStreamingDistributionRequest"}, "errors":[ + {"shape":"PreconditionFailed"}, {"shape":"AccessDenied"}, {"shape":"StreamingDistributionNotDisabled"}, - {"shape":"InvalidIfMatchVersion"}, {"shape":"NoSuchStreamingDistribution"}, - {"shape":"PreconditionFailed"} + {"shape":"InvalidIfMatchVersion"} ], "documentation":"

      Delete a streaming distribution. To delete an RTMP distribution using the CloudFront API, perform the following steps.

      To delete an RTMP distribution using the CloudFront API:

      1. Disable the RTMP distribution.

      2. Submit a GET Streaming Distribution Config request to get the current configuration and the Etag header for the distribution.

      3. Update the XML document that was returned in the response to your GET Streaming Distribution Config request to change the value of Enabled to false.

      4. Submit a PUT Streaming Distribution Config request to update the configuration for your distribution. In the request body, include the XML document that you updated in Step 3. Then set the value of the HTTP If-Match header to the value of the ETag header that CloudFront returned when you submitted the GET Streaming Distribution Config request in Step 2.

      5. Review the response to the PUT Streaming Distribution Config request to confirm that the distribution was successfully disabled.

      6. Submit a GET Streaming Distribution Config request to confirm that your changes have propagated. When propagation is complete, the value of Status is Deployed.

      7. Submit a DELETE Streaming Distribution request. Set the value of the HTTP If-Match header to the value of the ETag header that CloudFront returned when you submitted the GET Streaming Distribution Config request in Step 2.

      8. Review the response to your DELETE Streaming Distribution request to confirm that the distribution was successfully deleted.

      For information about deleting a distribution using the CloudFront console, see Deleting a Distribution in the Amazon CloudFront Developer Guide.

      " }, @@ -898,13 +901,14 @@ "name":"DescribeFunction2020_05_31", "http":{ "method":"GET", - "requestUri":"/2020-05-31/function/{Name}/describe" + "requestUri":"/2020-05-31/function/{Name}/describe", + "responseCode":200 }, "input":{"shape":"DescribeFunctionRequest"}, "output":{"shape":"DescribeFunctionResult"}, "errors":[ - {"shape":"NoSuchFunctionExists"}, - {"shape":"UnsupportedOperation"} + {"shape":"UnsupportedOperation"}, + {"shape":"NoSuchFunctionExists"} ], "documentation":"

      Gets configuration information and metadata about a CloudFront function, but not the function's code. To get a function's code, use GetFunction.

      To get configuration information and metadata about a function, you must provide the function's name and stage. To get these values, you can use ListFunctions.

      " }, @@ -912,15 +916,16 @@ "name":"DescribeKeyValueStore2020_05_31", "http":{ "method":"GET", - "requestUri":"/2020-05-31/key-value-store/{Name}" + "requestUri":"/2020-05-31/key-value-store/{Name}", + "responseCode":200 }, "input":{"shape":"DescribeKeyValueStoreRequest"}, "output":{"shape":"DescribeKeyValueStoreResult"}, "errors":[ - {"shape":"AccessDenied"}, - {"shape":"InvalidArgument"}, {"shape":"EntityNotFound"}, - {"shape":"UnsupportedOperation"} + {"shape":"AccessDenied"}, + {"shape":"UnsupportedOperation"}, + {"shape":"InvalidArgument"} ], "documentation":"

      Specifies the key value store and its configuration.

      " }, @@ -928,13 +933,14 @@ "name":"GetCachePolicy2020_05_31", "http":{ "method":"GET", - "requestUri":"/2020-05-31/cache-policy/{Id}" + "requestUri":"/2020-05-31/cache-policy/{Id}", + "responseCode":200 }, "input":{"shape":"GetCachePolicyRequest"}, "output":{"shape":"GetCachePolicyResult"}, "errors":[ - {"shape":"AccessDenied"}, - {"shape":"NoSuchCachePolicy"} + {"shape":"NoSuchCachePolicy"}, + {"shape":"AccessDenied"} ], "documentation":"

      Gets a cache policy, including the following metadata:

      • The policy's identifier.

      • The date and time when the policy was last modified.

      To get a cache policy, you must provide the policy's identifier. If the cache policy is attached to a distribution's cache behavior, you can get the policy's identifier using ListDistributions or GetDistribution. If the cache policy is not attached to a cache behavior, you can get the identifier using ListCachePolicies.

      " }, @@ -942,13 +948,14 @@ "name":"GetCachePolicyConfig2020_05_31", "http":{ "method":"GET", - "requestUri":"/2020-05-31/cache-policy/{Id}/config" + "requestUri":"/2020-05-31/cache-policy/{Id}/config", + "responseCode":200 }, "input":{"shape":"GetCachePolicyConfigRequest"}, "output":{"shape":"GetCachePolicyConfigResult"}, "errors":[ - {"shape":"AccessDenied"}, - {"shape":"NoSuchCachePolicy"} + {"shape":"NoSuchCachePolicy"}, + {"shape":"AccessDenied"} ], "documentation":"

      Gets a cache policy configuration.

      To get a cache policy configuration, you must provide the policy's identifier. If the cache policy is attached to a distribution's cache behavior, you can get the policy's identifier using ListDistributions or GetDistribution. If the cache policy is not attached to a cache behavior, you can get the identifier using ListCachePolicies.

      " }, @@ -956,13 +963,14 @@ "name":"GetCloudFrontOriginAccessIdentity2020_05_31", "http":{ "method":"GET", - "requestUri":"/2020-05-31/origin-access-identity/cloudfront/{Id}" + "requestUri":"/2020-05-31/origin-access-identity/cloudfront/{Id}", + "responseCode":200 }, "input":{"shape":"GetCloudFrontOriginAccessIdentityRequest"}, "output":{"shape":"GetCloudFrontOriginAccessIdentityResult"}, "errors":[ - {"shape":"NoSuchCloudFrontOriginAccessIdentity"}, - {"shape":"AccessDenied"} + {"shape":"AccessDenied"}, + {"shape":"NoSuchCloudFrontOriginAccessIdentity"} ], "documentation":"

      Get the information about an origin access identity.

      " }, @@ -970,13 +978,14 @@ "name":"GetCloudFrontOriginAccessIdentityConfig2020_05_31", "http":{ "method":"GET", - "requestUri":"/2020-05-31/origin-access-identity/cloudfront/{Id}/config" + "requestUri":"/2020-05-31/origin-access-identity/cloudfront/{Id}/config", + "responseCode":200 }, "input":{"shape":"GetCloudFrontOriginAccessIdentityConfigRequest"}, "output":{"shape":"GetCloudFrontOriginAccessIdentityConfigResult"}, "errors":[ - {"shape":"NoSuchCloudFrontOriginAccessIdentity"}, - {"shape":"AccessDenied"} + {"shape":"AccessDenied"}, + {"shape":"NoSuchCloudFrontOriginAccessIdentity"} ], "documentation":"

      Get the configuration information about an origin access identity.

      " }, @@ -984,7 +993,8 @@ "name":"GetContinuousDeploymentPolicy2020_05_31", "http":{ "method":"GET", - "requestUri":"/2020-05-31/continuous-deployment-policy/{Id}" + "requestUri":"/2020-05-31/continuous-deployment-policy/{Id}", + "responseCode":200 }, "input":{"shape":"GetContinuousDeploymentPolicyRequest"}, "output":{"shape":"GetContinuousDeploymentPolicyResult"}, @@ -998,7 +1008,8 @@ "name":"GetContinuousDeploymentPolicyConfig2020_05_31", "http":{ "method":"GET", - "requestUri":"/2020-05-31/continuous-deployment-policy/{Id}/config" + "requestUri":"/2020-05-31/continuous-deployment-policy/{Id}/config", + "responseCode":200 }, "input":{"shape":"GetContinuousDeploymentPolicyConfigRequest"}, "output":{"shape":"GetContinuousDeploymentPolicyConfigResult"}, @@ -1012,7 +1023,8 @@ "name":"GetDistribution2020_05_31", "http":{ "method":"GET", - "requestUri":"/2020-05-31/distribution/{Id}" + "requestUri":"/2020-05-31/distribution/{Id}", + "responseCode":200 }, "input":{"shape":"GetDistributionRequest"}, "output":{"shape":"GetDistributionResult"}, @@ -1026,7 +1038,8 @@ "name":"GetDistributionConfig2020_05_31", "http":{ "method":"GET", - "requestUri":"/2020-05-31/distribution/{Id}/config" + "requestUri":"/2020-05-31/distribution/{Id}/config", + "responseCode":200 }, "input":{"shape":"GetDistributionConfigRequest"}, "output":{"shape":"GetDistributionConfigResult"}, @@ -1040,7 +1053,8 @@ "name":"GetFieldLevelEncryption2020_05_31", "http":{ "method":"GET", - "requestUri":"/2020-05-31/field-level-encryption/{Id}" + "requestUri":"/2020-05-31/field-level-encryption/{Id}", + "responseCode":200 }, "input":{"shape":"GetFieldLevelEncryptionRequest"}, "output":{"shape":"GetFieldLevelEncryptionResult"}, @@ -1054,7 +1068,8 @@ "name":"GetFieldLevelEncryptionConfig2020_05_31", "http":{ "method":"GET", - "requestUri":"/2020-05-31/field-level-encryption/{Id}/config" + "requestUri":"/2020-05-31/field-level-encryption/{Id}/config", + "responseCode":200 }, "input":{"shape":"GetFieldLevelEncryptionConfigRequest"}, "output":{"shape":"GetFieldLevelEncryptionConfigResult"}, @@ -1068,7 +1083,8 @@ "name":"GetFieldLevelEncryptionProfile2020_05_31", "http":{ "method":"GET", - "requestUri":"/2020-05-31/field-level-encryption-profile/{Id}" + "requestUri":"/2020-05-31/field-level-encryption-profile/{Id}", + "responseCode":200 }, "input":{"shape":"GetFieldLevelEncryptionProfileRequest"}, "output":{"shape":"GetFieldLevelEncryptionProfileResult"}, @@ -1082,7 +1098,8 @@ "name":"GetFieldLevelEncryptionProfileConfig2020_05_31", "http":{ "method":"GET", - "requestUri":"/2020-05-31/field-level-encryption-profile/{Id}/config" + "requestUri":"/2020-05-31/field-level-encryption-profile/{Id}/config", + "responseCode":200 }, "input":{"shape":"GetFieldLevelEncryptionProfileConfigRequest"}, "output":{"shape":"GetFieldLevelEncryptionProfileConfigResult"}, @@ -1096,13 +1113,14 @@ "name":"GetFunction2020_05_31", "http":{ "method":"GET", - "requestUri":"/2020-05-31/function/{Name}" + "requestUri":"/2020-05-31/function/{Name}", + "responseCode":200 }, "input":{"shape":"GetFunctionRequest"}, "output":{"shape":"GetFunctionResult"}, "errors":[ - {"shape":"NoSuchFunctionExists"}, - {"shape":"UnsupportedOperation"} + {"shape":"UnsupportedOperation"}, + {"shape":"NoSuchFunctionExists"} ], "documentation":"

      Gets the code of a CloudFront function. To get configuration information and metadata about a function, use DescribeFunction.

      To get a function's code, you must provide the function's name and stage. To get these values, you can use ListFunctions.

      " }, @@ -1110,14 +1128,15 @@ "name":"GetInvalidation2020_05_31", "http":{ "method":"GET", - "requestUri":"/2020-05-31/distribution/{DistributionId}/invalidation/{Id}" + "requestUri":"/2020-05-31/distribution/{DistributionId}/invalidation/{Id}", + "responseCode":200 }, "input":{"shape":"GetInvalidationRequest"}, "output":{"shape":"GetInvalidationResult"}, "errors":[ - {"shape":"NoSuchInvalidation"}, {"shape":"NoSuchDistribution"}, - {"shape":"AccessDenied"} + {"shape":"AccessDenied"}, + {"shape":"NoSuchInvalidation"} ], "documentation":"

      Get the information about an invalidation.

      " }, @@ -1125,7 +1144,8 @@ "name":"GetKeyGroup2020_05_31", "http":{ "method":"GET", - "requestUri":"/2020-05-31/key-group/{Id}" + "requestUri":"/2020-05-31/key-group/{Id}", + "responseCode":200 }, "input":{"shape":"GetKeyGroupRequest"}, "output":{"shape":"GetKeyGroupResult"}, @@ -1138,7 +1158,8 @@ "name":"GetKeyGroupConfig2020_05_31", "http":{ "method":"GET", - "requestUri":"/2020-05-31/key-group/{Id}/config" + "requestUri":"/2020-05-31/key-group/{Id}/config", + "responseCode":200 }, "input":{"shape":"GetKeyGroupConfigRequest"}, "output":{"shape":"GetKeyGroupConfigResult"}, @@ -1151,15 +1172,16 @@ "name":"GetMonitoringSubscription2020_05_31", "http":{ "method":"GET", - "requestUri":"/2020-05-31/distributions/{DistributionId}/monitoring-subscription/" + "requestUri":"/2020-05-31/distributions/{DistributionId}/monitoring-subscription", + "responseCode":200 }, "input":{"shape":"GetMonitoringSubscriptionRequest"}, "output":{"shape":"GetMonitoringSubscriptionResult"}, "errors":[ - {"shape":"AccessDenied"}, {"shape":"NoSuchDistribution"}, - {"shape":"NoSuchMonitoringSubscription"}, - {"shape":"UnsupportedOperation"} + {"shape":"AccessDenied"}, + {"shape":"UnsupportedOperation"}, + {"shape":"NoSuchMonitoringSubscription"} ], "documentation":"

      Gets information about whether additional CloudWatch metrics are enabled for the specified CloudFront distribution.

      " }, @@ -1167,13 +1189,14 @@ "name":"GetOriginAccessControl2020_05_31", "http":{ "method":"GET", - "requestUri":"/2020-05-31/origin-access-control/{Id}" + "requestUri":"/2020-05-31/origin-access-control/{Id}", + "responseCode":200 }, "input":{"shape":"GetOriginAccessControlRequest"}, "output":{"shape":"GetOriginAccessControlResult"}, "errors":[ - {"shape":"NoSuchOriginAccessControl"}, - {"shape":"AccessDenied"} + {"shape":"AccessDenied"}, + {"shape":"NoSuchOriginAccessControl"} ], "documentation":"

      Gets a CloudFront origin access control, including its unique identifier.

      " }, @@ -1181,13 +1204,14 @@ "name":"GetOriginAccessControlConfig2020_05_31", "http":{ "method":"GET", - "requestUri":"/2020-05-31/origin-access-control/{Id}/config" + "requestUri":"/2020-05-31/origin-access-control/{Id}/config", + "responseCode":200 }, "input":{"shape":"GetOriginAccessControlConfigRequest"}, "output":{"shape":"GetOriginAccessControlConfigResult"}, "errors":[ - {"shape":"NoSuchOriginAccessControl"}, - {"shape":"AccessDenied"} + {"shape":"AccessDenied"}, + {"shape":"NoSuchOriginAccessControl"} ], "documentation":"

      Gets a CloudFront origin access control configuration.

      " }, @@ -1195,7 +1219,8 @@ "name":"GetOriginRequestPolicy2020_05_31", "http":{ "method":"GET", - "requestUri":"/2020-05-31/origin-request-policy/{Id}" + "requestUri":"/2020-05-31/origin-request-policy/{Id}", + "responseCode":200 }, "input":{"shape":"GetOriginRequestPolicyRequest"}, "output":{"shape":"GetOriginRequestPolicyResult"}, @@ -1209,7 +1234,8 @@ "name":"GetOriginRequestPolicyConfig2020_05_31", "http":{ "method":"GET", - "requestUri":"/2020-05-31/origin-request-policy/{Id}/config" + "requestUri":"/2020-05-31/origin-request-policy/{Id}/config", + "responseCode":200 }, "input":{"shape":"GetOriginRequestPolicyConfigRequest"}, "output":{"shape":"GetOriginRequestPolicyConfigResult"}, @@ -1223,7 +1249,8 @@ "name":"GetPublicKey2020_05_31", "http":{ "method":"GET", - "requestUri":"/2020-05-31/public-key/{Id}" + "requestUri":"/2020-05-31/public-key/{Id}", + "responseCode":200 }, "input":{"shape":"GetPublicKeyRequest"}, "output":{"shape":"GetPublicKeyResult"}, @@ -1237,7 +1264,8 @@ "name":"GetPublicKeyConfig2020_05_31", "http":{ "method":"GET", - "requestUri":"/2020-05-31/public-key/{Id}/config" + "requestUri":"/2020-05-31/public-key/{Id}/config", + "responseCode":200 }, "input":{"shape":"GetPublicKeyConfigRequest"}, "output":{"shape":"GetPublicKeyConfigResult"}, @@ -1251,7 +1279,8 @@ "name":"GetRealtimeLogConfig2020_05_31", "http":{ "method":"POST", - "requestUri":"/2020-05-31/get-realtime-log-config/" + "requestUri":"/2020-05-31/get-realtime-log-config", + "responseCode":200 }, "input":{ "shape":"GetRealtimeLogConfigRequest", @@ -1260,9 +1289,9 @@ }, "output":{"shape":"GetRealtimeLogConfigResult"}, "errors":[ - {"shape":"NoSuchRealtimeLogConfig"}, + {"shape":"AccessDenied"}, {"shape":"InvalidArgument"}, - {"shape":"AccessDenied"} + {"shape":"NoSuchRealtimeLogConfig"} ], "documentation":"

      Gets a real-time log configuration.

      To get a real-time log configuration, you can provide the configuration's name or its Amazon Resource Name (ARN). You must provide at least one. If you provide both, CloudFront uses the name to identify the real-time log configuration to get.

      " }, @@ -1270,7 +1299,8 @@ "name":"GetResponseHeadersPolicy2020_05_31", "http":{ "method":"GET", - "requestUri":"/2020-05-31/response-headers-policy/{Id}" + "requestUri":"/2020-05-31/response-headers-policy/{Id}", + "responseCode":200 }, "input":{"shape":"GetResponseHeadersPolicyRequest"}, "output":{"shape":"GetResponseHeadersPolicyResult"}, @@ -1284,7 +1314,8 @@ "name":"GetResponseHeadersPolicyConfig2020_05_31", "http":{ "method":"GET", - "requestUri":"/2020-05-31/response-headers-policy/{Id}/config" + "requestUri":"/2020-05-31/response-headers-policy/{Id}/config", + "responseCode":200 }, "input":{"shape":"GetResponseHeadersPolicyConfigRequest"}, "output":{"shape":"GetResponseHeadersPolicyConfigResult"}, @@ -1298,13 +1329,14 @@ "name":"GetStreamingDistribution2020_05_31", "http":{ "method":"GET", - "requestUri":"/2020-05-31/streaming-distribution/{Id}" + "requestUri":"/2020-05-31/streaming-distribution/{Id}", + "responseCode":200 }, "input":{"shape":"GetStreamingDistributionRequest"}, "output":{"shape":"GetStreamingDistributionResult"}, "errors":[ - {"shape":"NoSuchStreamingDistribution"}, - {"shape":"AccessDenied"} + {"shape":"AccessDenied"}, + {"shape":"NoSuchStreamingDistribution"} ], "documentation":"

      Gets information about a specified RTMP distribution, including the distribution configuration.

      " }, @@ -1312,13 +1344,14 @@ "name":"GetStreamingDistributionConfig2020_05_31", "http":{ "method":"GET", - "requestUri":"/2020-05-31/streaming-distribution/{Id}/config" + "requestUri":"/2020-05-31/streaming-distribution/{Id}/config", + "responseCode":200 }, "input":{"shape":"GetStreamingDistributionConfigRequest"}, "output":{"shape":"GetStreamingDistributionConfigResult"}, "errors":[ - {"shape":"NoSuchStreamingDistribution"}, - {"shape":"AccessDenied"} + {"shape":"AccessDenied"}, + {"shape":"NoSuchStreamingDistribution"} ], "documentation":"

      Get the configuration information about a streaming distribution.

      " }, @@ -1326,13 +1359,14 @@ "name":"ListCachePolicies2020_05_31", "http":{ "method":"GET", - "requestUri":"/2020-05-31/cache-policy" + "requestUri":"/2020-05-31/cache-policy", + "responseCode":200 }, "input":{"shape":"ListCachePoliciesRequest"}, "output":{"shape":"ListCachePoliciesResult"}, "errors":[ - {"shape":"AccessDenied"}, {"shape":"NoSuchCachePolicy"}, + {"shape":"AccessDenied"}, {"shape":"InvalidArgument"} ], "documentation":"

      Gets a list of cache policies.

      You can optionally apply a filter to return only the managed policies created by Amazon Web Services, or only the custom policies created in your Amazon Web Services account.

      You can optionally specify the maximum number of items to receive in the response. If the total number of items in the list exceeds the maximum that you specify, or the default maximum, the response is paginated. To get the next page of items, send a subsequent request that specifies the NextMarker value from the current response as the Marker value in the subsequent request.

      " @@ -1341,7 +1375,8 @@ "name":"ListCloudFrontOriginAccessIdentities2020_05_31", "http":{ "method":"GET", - "requestUri":"/2020-05-31/origin-access-identity/cloudfront" + "requestUri":"/2020-05-31/origin-access-identity/cloudfront", + "responseCode":200 }, "input":{"shape":"ListCloudFrontOriginAccessIdentitiesRequest"}, "output":{"shape":"ListCloudFrontOriginAccessIdentitiesResult"}, @@ -1360,8 +1395,8 @@ "input":{"shape":"ListConflictingAliasesRequest"}, "output":{"shape":"ListConflictingAliasesResult"}, "errors":[ - {"shape":"InvalidArgument"}, - {"shape":"NoSuchDistribution"} + {"shape":"NoSuchDistribution"}, + {"shape":"InvalidArgument"} ], "documentation":"

      Gets a list of aliases (also called CNAMEs or alternate domain names) that conflict or overlap with the provided alias, and the associated CloudFront distributions and Amazon Web Services accounts for each conflicting alias. In the returned list, the distribution and account IDs are partially hidden, which allows you to identify the distributions and accounts that you own, but helps to protect the information of ones that you don't own.

      Use this operation to find aliases that are in use in CloudFront that conflict or overlap with the provided alias. For example, if you provide www.example.com as input, the returned list can include www.example.com and the overlapping wildcard alternate domain name (*.example.com), if they exist. If you provide *.example.com as input, the returned list can include *.example.com and any alternate domain names covered by that wildcard (for example, www.example.com, test.example.com, dev.example.com, and so on), if they exist.

      To list conflicting aliases, you provide the alias to search and the ID of a distribution in your account that has an attached SSL/TLS certificate that includes the provided alias. For more information, including how to set up the distribution and certificate, see Moving an alternate domain name to a different distribution in the Amazon CloudFront Developer Guide.

      You can optionally specify the maximum number of items to receive in the response. If the total number of items in the list exceeds the maximum that you specify, or the default maximum, the response is paginated. To get the next page of items, send a subsequent request that specifies the NextMarker value from the current response as the Marker value in the subsequent request.

      " }, @@ -1369,13 +1404,14 @@ "name":"ListContinuousDeploymentPolicies2020_05_31", "http":{ "method":"GET", - "requestUri":"/2020-05-31/continuous-deployment-policy" + "requestUri":"/2020-05-31/continuous-deployment-policy", + "responseCode":200 }, "input":{"shape":"ListContinuousDeploymentPoliciesRequest"}, "output":{"shape":"ListContinuousDeploymentPoliciesResult"}, "errors":[ - {"shape":"InvalidArgument"}, {"shape":"AccessDenied"}, + {"shape":"InvalidArgument"}, {"shape":"NoSuchContinuousDeploymentPolicy"} ], "documentation":"

      Gets a list of the continuous deployment policies in your Amazon Web Services account.

      You can optionally specify the maximum number of items to receive in the response. If the total number of items in the list exceeds the maximum that you specify, or the default maximum, the response is paginated. To get the next page of items, send a subsequent request that specifies the NextMarker value from the current response as the Marker value in the subsequent request.

      " @@ -1384,7 +1420,8 @@ "name":"ListDistributions2020_05_31", "http":{ "method":"GET", - "requestUri":"/2020-05-31/distribution" + "requestUri":"/2020-05-31/distribution", + "responseCode":200 }, "input":{"shape":"ListDistributionsRequest"}, "output":{"shape":"ListDistributionsResult"}, @@ -1397,14 +1434,15 @@ "name":"ListDistributionsByCachePolicyId2020_05_31", "http":{ "method":"GET", - "requestUri":"/2020-05-31/distributionsByCachePolicyId/{CachePolicyId}" + "requestUri":"/2020-05-31/distributionsByCachePolicyId/{CachePolicyId}", + "responseCode":200 }, "input":{"shape":"ListDistributionsByCachePolicyIdRequest"}, "output":{"shape":"ListDistributionsByCachePolicyIdResult"}, "errors":[ {"shape":"NoSuchCachePolicy"}, - {"shape":"InvalidArgument"}, - {"shape":"AccessDenied"} + {"shape":"AccessDenied"}, + {"shape":"InvalidArgument"} ], "documentation":"

      Gets a list of distribution IDs for distributions that have a cache behavior that's associated with the specified cache policy.

      You can optionally specify the maximum number of items to receive in the response. If the total number of items in the list exceeds the maximum that you specify, or the default maximum, the response is paginated. To get the next page of items, send a subsequent request that specifies the NextMarker value from the current response as the Marker value in the subsequent request.

      " }, @@ -1412,13 +1450,14 @@ "name":"ListDistributionsByKeyGroup2020_05_31", "http":{ "method":"GET", - "requestUri":"/2020-05-31/distributionsByKeyGroupId/{KeyGroupId}" + "requestUri":"/2020-05-31/distributionsByKeyGroupId/{KeyGroupId}", + "responseCode":200 }, "input":{"shape":"ListDistributionsByKeyGroupRequest"}, "output":{"shape":"ListDistributionsByKeyGroupResult"}, "errors":[ - {"shape":"NoSuchResource"}, - {"shape":"InvalidArgument"} + {"shape":"InvalidArgument"}, + {"shape":"NoSuchResource"} ], "documentation":"

      Gets a list of distribution IDs for distributions that have a cache behavior that references the specified key group.

      You can optionally specify the maximum number of items to receive in the response. If the total number of items in the list exceeds the maximum that you specify, or the default maximum, the response is paginated. To get the next page of items, send a subsequent request that specifies the NextMarker value from the current response as the Marker value in the subsequent request.

      " }, @@ -1426,14 +1465,15 @@ "name":"ListDistributionsByOriginRequestPolicyId2020_05_31", "http":{ "method":"GET", - "requestUri":"/2020-05-31/distributionsByOriginRequestPolicyId/{OriginRequestPolicyId}" + "requestUri":"/2020-05-31/distributionsByOriginRequestPolicyId/{OriginRequestPolicyId}", + "responseCode":200 }, "input":{"shape":"ListDistributionsByOriginRequestPolicyIdRequest"}, "output":{"shape":"ListDistributionsByOriginRequestPolicyIdResult"}, "errors":[ + {"shape":"AccessDenied"}, {"shape":"NoSuchOriginRequestPolicy"}, - {"shape":"InvalidArgument"}, - {"shape":"AccessDenied"} + {"shape":"InvalidArgument"} ], "documentation":"

      Gets a list of distribution IDs for distributions that have a cache behavior that's associated with the specified origin request policy.

      You can optionally specify the maximum number of items to receive in the response. If the total number of items in the list exceeds the maximum that you specify, or the default maximum, the response is paginated. To get the next page of items, send a subsequent request that specifies the NextMarker value from the current response as the Marker value in the subsequent request.

      " }, @@ -1441,7 +1481,8 @@ "name":"ListDistributionsByRealtimeLogConfig2020_05_31", "http":{ "method":"POST", - "requestUri":"/2020-05-31/distributionsByRealtimeLogConfig/" + "requestUri":"/2020-05-31/distributionsByRealtimeLogConfig", + "responseCode":200 }, "input":{ "shape":"ListDistributionsByRealtimeLogConfigRequest", @@ -1458,14 +1499,15 @@ "name":"ListDistributionsByResponseHeadersPolicyId2020_05_31", "http":{ "method":"GET", - "requestUri":"/2020-05-31/distributionsByResponseHeadersPolicyId/{ResponseHeadersPolicyId}" + "requestUri":"/2020-05-31/distributionsByResponseHeadersPolicyId/{ResponseHeadersPolicyId}", + "responseCode":200 }, "input":{"shape":"ListDistributionsByResponseHeadersPolicyIdRequest"}, "output":{"shape":"ListDistributionsByResponseHeadersPolicyIdResult"}, "errors":[ + {"shape":"AccessDenied"}, {"shape":"NoSuchResponseHeadersPolicy"}, - {"shape":"InvalidArgument"}, - {"shape":"AccessDenied"} + {"shape":"InvalidArgument"} ], "documentation":"

      Gets a list of distribution IDs for distributions that have a cache behavior that's associated with the specified response headers policy.

      You can optionally specify the maximum number of items to receive in the response. If the total number of items in the list exceeds the maximum that you specify, or the default maximum, the response is paginated. To get the next page of items, send a subsequent request that specifies the NextMarker value from the current response as the Marker value in the subsequent request.

      " }, @@ -1473,13 +1515,14 @@ "name":"ListDistributionsByWebACLId2020_05_31", "http":{ "method":"GET", - "requestUri":"/2020-05-31/distributionsByWebACLId/{WebACLId}" + "requestUri":"/2020-05-31/distributionsByWebACLId/{WebACLId}", + "responseCode":200 }, "input":{"shape":"ListDistributionsByWebACLIdRequest"}, "output":{"shape":"ListDistributionsByWebACLIdResult"}, "errors":[ - {"shape":"InvalidArgument"}, - {"shape":"InvalidWebACLId"} + {"shape":"InvalidWebACLId"}, + {"shape":"InvalidArgument"} ], "documentation":"

      List the distributions that are associated with a specified WAF web ACL.

      " }, @@ -1487,7 +1530,8 @@ "name":"ListFieldLevelEncryptionConfigs2020_05_31", "http":{ "method":"GET", - "requestUri":"/2020-05-31/field-level-encryption" + "requestUri":"/2020-05-31/field-level-encryption", + "responseCode":200 }, "input":{"shape":"ListFieldLevelEncryptionConfigsRequest"}, "output":{"shape":"ListFieldLevelEncryptionConfigsResult"}, @@ -1500,7 +1544,8 @@ "name":"ListFieldLevelEncryptionProfiles2020_05_31", "http":{ "method":"GET", - "requestUri":"/2020-05-31/field-level-encryption-profile" + "requestUri":"/2020-05-31/field-level-encryption-profile", + "responseCode":200 }, "input":{"shape":"ListFieldLevelEncryptionProfilesRequest"}, "output":{"shape":"ListFieldLevelEncryptionProfilesResult"}, @@ -1513,13 +1558,14 @@ "name":"ListFunctions2020_05_31", "http":{ "method":"GET", - "requestUri":"/2020-05-31/function" + "requestUri":"/2020-05-31/function", + "responseCode":200 }, "input":{"shape":"ListFunctionsRequest"}, "output":{"shape":"ListFunctionsResult"}, "errors":[ - {"shape":"InvalidArgument"}, - {"shape":"UnsupportedOperation"} + {"shape":"UnsupportedOperation"}, + {"shape":"InvalidArgument"} ], "documentation":"

      Gets a list of all CloudFront functions in your Amazon Web Services account.

      You can optionally apply a filter to return only the functions that are in the specified stage, either DEVELOPMENT or LIVE.

      You can optionally specify the maximum number of items to receive in the response. If the total number of items in the list exceeds the maximum that you specify, or the default maximum, the response is paginated. To get the next page of items, send a subsequent request that specifies the NextMarker value from the current response as the Marker value in the subsequent request.

      " }, @@ -1527,14 +1573,15 @@ "name":"ListInvalidations2020_05_31", "http":{ "method":"GET", - "requestUri":"/2020-05-31/distribution/{DistributionId}/invalidation" + "requestUri":"/2020-05-31/distribution/{DistributionId}/invalidation", + "responseCode":200 }, "input":{"shape":"ListInvalidationsRequest"}, "output":{"shape":"ListInvalidationsResult"}, "errors":[ - {"shape":"InvalidArgument"}, {"shape":"NoSuchDistribution"}, - {"shape":"AccessDenied"} + {"shape":"AccessDenied"}, + {"shape":"InvalidArgument"} ], "documentation":"

      Lists invalidation batches.

      " }, @@ -1542,7 +1589,8 @@ "name":"ListKeyGroups2020_05_31", "http":{ "method":"GET", - "requestUri":"/2020-05-31/key-group" + "requestUri":"/2020-05-31/key-group", + "responseCode":200 }, "input":{"shape":"ListKeyGroupsRequest"}, "output":{"shape":"ListKeyGroupsResult"}, @@ -1555,14 +1603,15 @@ "name":"ListKeyValueStores2020_05_31", "http":{ "method":"GET", - "requestUri":"/2020-05-31/key-value-store" + "requestUri":"/2020-05-31/key-value-store", + "responseCode":200 }, "input":{"shape":"ListKeyValueStoresRequest"}, "output":{"shape":"ListKeyValueStoresResult"}, "errors":[ {"shape":"AccessDenied"}, - {"shape":"InvalidArgument"}, - {"shape":"UnsupportedOperation"} + {"shape":"UnsupportedOperation"}, + {"shape":"InvalidArgument"} ], "documentation":"

      Specifies the key value stores to list.

      " }, @@ -1570,20 +1619,22 @@ "name":"ListOriginAccessControls2020_05_31", "http":{ "method":"GET", - "requestUri":"/2020-05-31/origin-access-control" + "requestUri":"/2020-05-31/origin-access-control", + "responseCode":200 }, "input":{"shape":"ListOriginAccessControlsRequest"}, "output":{"shape":"ListOriginAccessControlsResult"}, "errors":[ {"shape":"InvalidArgument"} ], - "documentation":"

      Gets the list of CloudFront origin access controls in this Amazon Web Services account.

      You can optionally specify the maximum number of items to receive in the response. If the total number of items in the list exceeds the maximum that you specify, or the default maximum, the response is paginated. To get the next page of items, send another request that specifies the NextMarker value from the current response as the Marker value in the next request.

      " + "documentation":"

      Gets the list of CloudFront origin access controls (OACs) in this Amazon Web Services account.

      You can optionally specify the maximum number of items to receive in the response. If the total number of items in the list exceeds the maximum that you specify, or the default maximum, the response is paginated. To get the next page of items, send another request that specifies the NextMarker value from the current response as the Marker value in the next request.

      If you're not using origin access controls for your Amazon Web Services account, the ListOriginAccessControls operation doesn't return the Items element in the response.

      " }, "ListOriginRequestPolicies":{ "name":"ListOriginRequestPolicies2020_05_31", "http":{ "method":"GET", - "requestUri":"/2020-05-31/origin-request-policy" + "requestUri":"/2020-05-31/origin-request-policy", + "responseCode":200 }, "input":{"shape":"ListOriginRequestPoliciesRequest"}, "output":{"shape":"ListOriginRequestPoliciesResult"}, @@ -1598,7 +1649,8 @@ "name":"ListPublicKeys2020_05_31", "http":{ "method":"GET", - "requestUri":"/2020-05-31/public-key" + "requestUri":"/2020-05-31/public-key", + "responseCode":200 }, "input":{"shape":"ListPublicKeysRequest"}, "output":{"shape":"ListPublicKeysResult"}, @@ -1611,13 +1663,14 @@ "name":"ListRealtimeLogConfigs2020_05_31", "http":{ "method":"GET", - "requestUri":"/2020-05-31/realtime-log-config" + "requestUri":"/2020-05-31/realtime-log-config", + "responseCode":200 }, "input":{"shape":"ListRealtimeLogConfigsRequest"}, "output":{"shape":"ListRealtimeLogConfigsResult"}, "errors":[ - {"shape":"InvalidArgument"}, {"shape":"AccessDenied"}, + {"shape":"InvalidArgument"}, {"shape":"NoSuchRealtimeLogConfig"} ], "documentation":"

      Gets a list of real-time log configurations.

      You can optionally specify the maximum number of items to receive in the response. If the total number of items in the list exceeds the maximum that you specify, or the default maximum, the response is paginated. To get the next page of items, send a subsequent request that specifies the NextMarker value from the current response as the Marker value in the subsequent request.

      " @@ -1626,7 +1679,8 @@ "name":"ListResponseHeadersPolicies2020_05_31", "http":{ "method":"GET", - "requestUri":"/2020-05-31/response-headers-policy" + "requestUri":"/2020-05-31/response-headers-policy", + "responseCode":200 }, "input":{"shape":"ListResponseHeadersPoliciesRequest"}, "output":{"shape":"ListResponseHeadersPoliciesResult"}, @@ -1641,7 +1695,8 @@ "name":"ListStreamingDistributions2020_05_31", "http":{ "method":"GET", - "requestUri":"/2020-05-31/streaming-distribution" + "requestUri":"/2020-05-31/streaming-distribution", + "responseCode":200 }, "input":{"shape":"ListStreamingDistributionsRequest"}, "output":{"shape":"ListStreamingDistributionsResult"}, @@ -1654,14 +1709,15 @@ "name":"ListTagsForResource2020_05_31", "http":{ "method":"GET", - "requestUri":"/2020-05-31/tagging" + "requestUri":"/2020-05-31/tagging", + "responseCode":200 }, "input":{"shape":"ListTagsForResourceRequest"}, "output":{"shape":"ListTagsForResourceResult"}, "errors":[ {"shape":"AccessDenied"}, - {"shape":"InvalidArgument"}, {"shape":"InvalidTagging"}, + {"shape":"InvalidArgument"}, {"shape":"NoSuchResource"} ], "documentation":"

      List tags for a CloudFront resource. For more information, see Tagging a distribution in the Amazon CloudFront Developer Guide.

      " @@ -1670,16 +1726,17 @@ "name":"PublishFunction2020_05_31", "http":{ "method":"POST", - "requestUri":"/2020-05-31/function/{Name}/publish" + "requestUri":"/2020-05-31/function/{Name}/publish", + "responseCode":200 }, "input":{"shape":"PublishFunctionRequest"}, "output":{"shape":"PublishFunctionResult"}, "errors":[ + {"shape":"PreconditionFailed"}, + {"shape":"UnsupportedOperation"}, {"shape":"InvalidArgument"}, - {"shape":"InvalidIfMatchVersion"}, {"shape":"NoSuchFunctionExists"}, - {"shape":"PreconditionFailed"}, - {"shape":"UnsupportedOperation"} + {"shape":"InvalidIfMatchVersion"} ], "documentation":"

      Publishes a CloudFront function by copying the function code from the DEVELOPMENT stage to LIVE. This automatically updates all cache behaviors that are using this function to use the newly published copy in the LIVE stage.

      When a function is published to the LIVE stage, you can attach the function to a distribution's cache behavior, using the function's Amazon Resource Name (ARN).

      To publish a function, you must provide the function's name and version (ETag value). To get these values, you can use ListFunctions and DescribeFunction.

      " }, @@ -1693,8 +1750,8 @@ "input":{"shape":"TagResourceRequest"}, "errors":[ {"shape":"AccessDenied"}, - {"shape":"InvalidArgument"}, {"shape":"InvalidTagging"}, + {"shape":"InvalidArgument"}, {"shape":"NoSuchResource"} ], "documentation":"

      Add tags to a CloudFront resource. For more information, see Tagging a distribution in the Amazon CloudFront Developer Guide.

      " @@ -1703,7 +1760,8 @@ "name":"TestFunction2020_05_31", "http":{ "method":"POST", - "requestUri":"/2020-05-31/function/{Name}/test" + "requestUri":"/2020-05-31/function/{Name}/test", + "responseCode":200 }, "input":{ "shape":"TestFunctionRequest", @@ -1712,11 +1770,11 @@ }, "output":{"shape":"TestFunctionResult"}, "errors":[ + {"shape":"TestFunctionFailed"}, + {"shape":"UnsupportedOperation"}, {"shape":"InvalidArgument"}, - {"shape":"InvalidIfMatchVersion"}, {"shape":"NoSuchFunctionExists"}, - {"shape":"TestFunctionFailed"}, - {"shape":"UnsupportedOperation"} + {"shape":"InvalidIfMatchVersion"} ], "documentation":"

      Tests a CloudFront function.

      To test a function, you provide an event object that represents an HTTP request or response that your CloudFront distribution could receive in production. CloudFront runs the function, passing it the event object that you provided, and returns the function's result (the modified event object) in the response. The response also contains function logs and error messages, if any exist. For more information about testing functions, see Testing functions in the Amazon CloudFront Developer Guide.

      To test a function, you provide the function's name and version (ETag value) along with the event object. To get the function's name and version, you can use ListFunctions and DescribeFunction.

      " }, @@ -1730,8 +1788,8 @@ "input":{"shape":"UntagResourceRequest"}, "errors":[ {"shape":"AccessDenied"}, - {"shape":"InvalidArgument"}, {"shape":"InvalidTagging"}, + {"shape":"InvalidArgument"}, {"shape":"NoSuchResource"} ], "documentation":"

      Remove tags from a CloudFront resource. For more information, see Tagging a distribution in the Amazon CloudFront Developer Guide.

      " @@ -1740,22 +1798,23 @@ "name":"UpdateCachePolicy2020_05_31", "http":{ "method":"PUT", - "requestUri":"/2020-05-31/cache-policy/{Id}" + "requestUri":"/2020-05-31/cache-policy/{Id}", + "responseCode":200 }, "input":{"shape":"UpdateCachePolicyRequest"}, "output":{"shape":"UpdateCachePolicyResult"}, "errors":[ - {"shape":"AccessDenied"}, - {"shape":"IllegalUpdate"}, - {"shape":"InconsistentQuantities"}, - {"shape":"InvalidArgument"}, - {"shape":"InvalidIfMatchVersion"}, {"shape":"NoSuchCachePolicy"}, {"shape":"PreconditionFailed"}, - {"shape":"CachePolicyAlreadyExists"}, + {"shape":"AccessDenied"}, {"shape":"TooManyHeadersInCachePolicy"}, + {"shape":"CachePolicyAlreadyExists"}, {"shape":"TooManyCookiesInCachePolicy"}, - {"shape":"TooManyQueryStringsInCachePolicy"} + {"shape":"InconsistentQuantities"}, + {"shape":"InvalidArgument"}, + {"shape":"IllegalUpdate"}, + {"shape":"TooManyQueryStringsInCachePolicy"}, + {"shape":"InvalidIfMatchVersion"} ], "documentation":"

      Updates a cache policy configuration.

      When you update a cache policy configuration, all the fields are updated with the values provided in the request. You cannot update some fields independent of others. To update a cache policy configuration:

      1. Use GetCachePolicyConfig to get the current configuration.

      2. Locally modify the fields in the cache policy configuration that you want to update.

      3. Call UpdateCachePolicy by providing the entire cache policy configuration, including the fields that you modified and those that you didn't.

      " }, @@ -1763,19 +1822,20 @@ "name":"UpdateCloudFrontOriginAccessIdentity2020_05_31", "http":{ "method":"PUT", - "requestUri":"/2020-05-31/origin-access-identity/cloudfront/{Id}/config" + "requestUri":"/2020-05-31/origin-access-identity/cloudfront/{Id}/config", + "responseCode":200 }, "input":{"shape":"UpdateCloudFrontOriginAccessIdentityRequest"}, "output":{"shape":"UpdateCloudFrontOriginAccessIdentityResult"}, "errors":[ + {"shape":"PreconditionFailed"}, {"shape":"AccessDenied"}, - {"shape":"IllegalUpdate"}, - {"shape":"InvalidIfMatchVersion"}, {"shape":"MissingBody"}, - {"shape":"NoSuchCloudFrontOriginAccessIdentity"}, - {"shape":"PreconditionFailed"}, + {"shape":"InconsistentQuantities"}, {"shape":"InvalidArgument"}, - {"shape":"InconsistentQuantities"} + {"shape":"IllegalUpdate"}, + {"shape":"InvalidIfMatchVersion"}, + {"shape":"NoSuchCloudFrontOriginAccessIdentity"} ], "documentation":"

      Update an origin access identity.

      " }, @@ -1783,18 +1843,19 @@ "name":"UpdateContinuousDeploymentPolicy2020_05_31", "http":{ "method":"PUT", - "requestUri":"/2020-05-31/continuous-deployment-policy/{Id}" + "requestUri":"/2020-05-31/continuous-deployment-policy/{Id}", + "responseCode":200 }, "input":{"shape":"UpdateContinuousDeploymentPolicyRequest"}, "output":{"shape":"UpdateContinuousDeploymentPolicyResult"}, "errors":[ - {"shape":"InvalidIfMatchVersion"}, - {"shape":"InvalidArgument"}, - {"shape":"AccessDenied"}, - {"shape":"InconsistentQuantities"}, {"shape":"PreconditionFailed"}, + {"shape":"AccessDenied"}, {"shape":"StagingDistributionInUse"}, - {"shape":"NoSuchContinuousDeploymentPolicy"} + {"shape":"InconsistentQuantities"}, + {"shape":"InvalidArgument"}, + {"shape":"NoSuchContinuousDeploymentPolicy"}, + {"shape":"InvalidIfMatchVersion"} ], "documentation":"

      Updates a continuous deployment policy. You can update a continuous deployment policy to enable or disable it, to change the percentage of traffic that it sends to the staging distribution, or to change the staging distribution that it sends traffic to.

      When you update a continuous deployment policy configuration, all the fields are updated with the values that are provided in the request. You cannot update some fields independent of others. To update a continuous deployment policy configuration:

      1. Use GetContinuousDeploymentPolicyConfig to get the current configuration.

      2. Locally modify the fields in the continuous deployment policy configuration that you want to update.

      3. Use UpdateContinuousDeploymentPolicy, providing the entire continuous deployment policy configuration, including the fields that you modified and those that you didn't.

      " }, @@ -1802,150 +1863,152 @@ "name":"UpdateDistribution2020_05_31", "http":{ "method":"PUT", - "requestUri":"/2020-05-31/distribution/{Id}/config" + "requestUri":"/2020-05-31/distribution/{Id}/config", + "responseCode":200 }, "input":{"shape":"UpdateDistributionRequest"}, "output":{"shape":"UpdateDistributionResult"}, "errors":[ {"shape":"AccessDenied"}, - {"shape":"CNAMEAlreadyExists"}, - {"shape":"IllegalUpdate"}, - {"shape":"InvalidIfMatchVersion"}, - {"shape":"MissingBody"}, - {"shape":"NoSuchDistribution"}, - {"shape":"PreconditionFailed"}, - {"shape":"TooManyDistributionCNAMEs"}, + {"shape":"TooManyDistributionsAssociatedToOriginAccessControl"}, {"shape":"InvalidDefaultRootObject"}, - {"shape":"InvalidRelativePath"}, - {"shape":"InvalidErrorCode"}, - {"shape":"InvalidResponseCode"}, - {"shape":"InvalidArgument"}, - {"shape":"InvalidOriginAccessIdentity"}, - {"shape":"InvalidOriginAccessControl"}, + {"shape":"InvalidDomainNameForOriginAccessControl"}, + {"shape":"InvalidQueryStringParameters"}, {"shape":"TooManyTrustedSigners"}, - {"shape":"TrustedSignerDoesNotExist"}, - {"shape":"InvalidViewerCertificate"}, + {"shape":"TooManyCookieNamesInWhiteList"}, + {"shape":"NoSuchFieldLevelEncryptionConfig"}, + {"shape":"InvalidErrorCode"}, + {"shape":"IllegalOriginAccessConfiguration"}, + {"shape":"TooManyFunctionAssociations"}, + {"shape":"TooManyOriginCustomHeaders"}, + {"shape":"InvalidForwardCookies"}, {"shape":"InvalidMinimumProtocolVersion"}, + {"shape":"NoSuchCachePolicy"}, + {"shape":"TooManyKeyGroupsAssociatedToDistribution"}, + {"shape":"TooManyDistributionsAssociatedToCachePolicy"}, {"shape":"InvalidRequiredProtocol"}, - {"shape":"NoSuchOrigin"}, - {"shape":"TooManyOrigins"}, + {"shape":"TooManyDistributionsWithFunctionAssociations"}, {"shape":"TooManyOriginGroupsPerDistribution"}, - {"shape":"TooManyCacheBehaviors"}, - {"shape":"TooManyCookieNamesInWhiteList"}, - {"shape":"InvalidForwardCookies"}, - {"shape":"TooManyHeadersInForwardedValues"}, - {"shape":"InvalidHeadersForS3Origin"}, - {"shape":"InconsistentQuantities"}, - {"shape":"TooManyCertificates"}, - {"shape":"InvalidLocationCode"}, - {"shape":"InvalidGeoRestrictionParameter"}, {"shape":"InvalidTTLOrder"}, + {"shape":"IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior"}, + {"shape":"InvalidOriginKeepaliveTimeout"}, + {"shape":"InvalidArgument"}, + {"shape":"InvalidOriginReadTimeout"}, + {"shape":"IllegalUpdate"}, + {"shape":"InvalidOriginAccessControl"}, + {"shape":"StagingDistributionInUse"}, + {"shape":"InvalidHeadersForS3Origin"}, + {"shape":"TrustedSignerDoesNotExist"}, {"shape":"InvalidWebACLId"}, - {"shape":"TooManyOriginCustomHeaders"}, - {"shape":"TooManyQueryStringParameters"}, - {"shape":"InvalidQueryStringParameters"}, - {"shape":"TooManyDistributionsWithLambdaAssociations"}, {"shape":"TooManyDistributionsWithSingleFunctionARN"}, + {"shape":"InvalidRelativePath"}, {"shape":"TooManyLambdaFunctionAssociations"}, - {"shape":"InvalidLambdaFunctionAssociation"}, - {"shape":"TooManyDistributionsWithFunctionAssociations"}, - {"shape":"TooManyFunctionAssociations"}, - {"shape":"InvalidFunctionAssociation"}, - {"shape":"InvalidOriginReadTimeout"}, - {"shape":"InvalidOriginKeepaliveTimeout"}, - {"shape":"NoSuchFieldLevelEncryptionConfig"}, - {"shape":"IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior"}, - {"shape":"TooManyDistributionsAssociatedToFieldLevelEncryptionConfig"}, - {"shape":"NoSuchCachePolicy"}, - {"shape":"TooManyDistributionsAssociatedToCachePolicy"}, - {"shape":"TooManyDistributionsAssociatedToOriginAccessControl"}, - {"shape":"NoSuchResponseHeadersPolicy"}, - {"shape":"TooManyDistributionsAssociatedToResponseHeadersPolicy"}, + {"shape":"NoSuchDistribution"}, {"shape":"NoSuchOriginRequestPolicy"}, + {"shape":"TooManyDistributionsAssociatedToFieldLevelEncryptionConfig"}, + {"shape":"InconsistentQuantities"}, + {"shape":"InvalidLocationCode"}, + {"shape":"InvalidOriginAccessIdentity"}, + {"shape":"TooManyDistributionCNAMEs"}, + {"shape":"NoSuchContinuousDeploymentPolicy"}, + {"shape":"InvalidIfMatchVersion"}, {"shape":"TooManyDistributionsAssociatedToOriginRequestPolicy"}, - {"shape":"TooManyDistributionsAssociatedToKeyGroup"}, - {"shape":"TooManyKeyGroupsAssociatedToDistribution"}, - {"shape":"TrustedKeyGroupDoesNotExist"}, - {"shape":"NoSuchRealtimeLogConfig"}, + {"shape":"TooManyQueryStringParameters"}, {"shape":"RealtimeLogConfigOwnerMismatch"}, + {"shape":"PreconditionFailed"}, {"shape":"ContinuousDeploymentPolicyInUse"}, - {"shape":"NoSuchContinuousDeploymentPolicy"}, - {"shape":"StagingDistributionInUse"}, - {"shape":"IllegalOriginAccessConfiguration"}, - {"shape":"InvalidDomainNameForOriginAccessControl"} + {"shape":"MissingBody"}, + {"shape":"TooManyHeadersInForwardedValues"}, + {"shape":"InvalidLambdaFunctionAssociation"}, + {"shape":"CNAMEAlreadyExists"}, + {"shape":"TooManyCertificates"}, + {"shape":"TrustedKeyGroupDoesNotExist"}, + {"shape":"TooManyDistributionsAssociatedToResponseHeadersPolicy"}, + {"shape":"NoSuchResponseHeadersPolicy"}, + {"shape":"NoSuchRealtimeLogConfig"}, + {"shape":"InvalidResponseCode"}, + {"shape":"InvalidGeoRestrictionParameter"}, + {"shape":"TooManyOrigins"}, + {"shape":"InvalidViewerCertificate"}, + {"shape":"InvalidFunctionAssociation"}, + {"shape":"TooManyDistributionsWithLambdaAssociations"}, + {"shape":"TooManyDistributionsAssociatedToKeyGroup"}, + {"shape":"NoSuchOrigin"}, + {"shape":"TooManyCacheBehaviors"} ], - "documentation":"

      Updates the configuration for a CloudFront distribution.

      The update process includes getting the current distribution configuration, updating it to make your changes, and then submitting an UpdateDistribution request to make the updates.

      To update a web distribution using the CloudFront API

      1. Use GetDistributionConfig to get the current configuration, including the version identifier (ETag).

      2. Update the distribution configuration that was returned in the response. Note the following important requirements and restrictions:

        • You must rename the ETag field to IfMatch, leaving the value unchanged. (Set the value of IfMatch to the value of ETag, then remove the ETag field.)

        • You can't change the value of CallerReference.

      3. Submit an UpdateDistribution request, providing the distribution configuration. The new configuration replaces the existing configuration. The values that you specify in an UpdateDistribution request are not merged into your existing configuration. Make sure to include all fields: the ones that you modified and also the ones that you didn't.

      " + "documentation":"

      Updates the configuration for a CloudFront distribution.

      The update process includes getting the current distribution configuration, updating it to make your changes, and then submitting an UpdateDistribution request to make the updates.

      To update a web distribution using the CloudFront API

      1. Use GetDistributionConfig to get the current configuration, including the version identifier (ETag).

      2. Update the distribution configuration that was returned in the response. Note the following important requirements and restrictions:

        • You must copy the ETag field value from the response. (You'll use it for the IfMatch parameter in your request.) Then, remove the ETag field from the distribution configuration.

        • You can't change the value of CallerReference.

      3. Submit an UpdateDistribution request, providing the updated distribution configuration. The new configuration replaces the existing configuration. The values that you specify in an UpdateDistribution request are not merged into your existing configuration. Make sure to include all fields: the ones that you modified and also the ones that you didn't.

      " }, "UpdateDistributionWithStagingConfig":{ "name":"UpdateDistributionWithStagingConfig2020_05_31", "http":{ "method":"PUT", - "requestUri":"/2020-05-31/distribution/{Id}/promote-staging-config" + "requestUri":"/2020-05-31/distribution/{Id}/promote-staging-config", + "responseCode":200 }, "input":{"shape":"UpdateDistributionWithStagingConfigRequest"}, "output":{"shape":"UpdateDistributionWithStagingConfigResult"}, "errors":[ {"shape":"AccessDenied"}, - {"shape":"CNAMEAlreadyExists"}, - {"shape":"IllegalUpdate"}, - {"shape":"InvalidIfMatchVersion"}, - {"shape":"MissingBody"}, - {"shape":"NoSuchDistribution"}, - {"shape":"PreconditionFailed"}, - {"shape":"TooManyDistributionCNAMEs"}, + {"shape":"TooManyDistributionsAssociatedToOriginAccessControl"}, {"shape":"InvalidDefaultRootObject"}, - {"shape":"InvalidRelativePath"}, - {"shape":"InvalidErrorCode"}, - {"shape":"InvalidResponseCode"}, - {"shape":"InvalidArgument"}, - {"shape":"InvalidOriginAccessIdentity"}, - {"shape":"InvalidOriginAccessControl"}, + {"shape":"InvalidQueryStringParameters"}, {"shape":"TooManyTrustedSigners"}, - {"shape":"TrustedSignerDoesNotExist"}, - {"shape":"InvalidViewerCertificate"}, + {"shape":"TooManyCookieNamesInWhiteList"}, + {"shape":"NoSuchFieldLevelEncryptionConfig"}, + {"shape":"InvalidErrorCode"}, + {"shape":"TooManyFunctionAssociations"}, + {"shape":"TooManyOriginCustomHeaders"}, + {"shape":"InvalidForwardCookies"}, {"shape":"InvalidMinimumProtocolVersion"}, + {"shape":"NoSuchCachePolicy"}, + {"shape":"TooManyKeyGroupsAssociatedToDistribution"}, + {"shape":"TooManyDistributionsAssociatedToCachePolicy"}, {"shape":"InvalidRequiredProtocol"}, - {"shape":"NoSuchOrigin"}, - {"shape":"TooManyOrigins"}, + {"shape":"TooManyDistributionsWithFunctionAssociations"}, {"shape":"TooManyOriginGroupsPerDistribution"}, - {"shape":"TooManyCacheBehaviors"}, - {"shape":"TooManyCookieNamesInWhiteList"}, - {"shape":"InvalidForwardCookies"}, - {"shape":"TooManyHeadersInForwardedValues"}, - {"shape":"InvalidHeadersForS3Origin"}, - {"shape":"InconsistentQuantities"}, - {"shape":"TooManyCertificates"}, - {"shape":"InvalidLocationCode"}, - {"shape":"InvalidGeoRestrictionParameter"}, {"shape":"InvalidTTLOrder"}, + {"shape":"IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior"}, + {"shape":"InvalidOriginKeepaliveTimeout"}, + {"shape":"InvalidArgument"}, + {"shape":"InvalidOriginReadTimeout"}, + {"shape":"IllegalUpdate"}, + {"shape":"InvalidOriginAccessControl"}, + {"shape":"InvalidHeadersForS3Origin"}, + {"shape":"TrustedSignerDoesNotExist"}, {"shape":"InvalidWebACLId"}, - {"shape":"TooManyOriginCustomHeaders"}, - {"shape":"TooManyQueryStringParameters"}, - {"shape":"InvalidQueryStringParameters"}, - {"shape":"TooManyDistributionsWithLambdaAssociations"}, {"shape":"TooManyDistributionsWithSingleFunctionARN"}, + {"shape":"InvalidRelativePath"}, {"shape":"TooManyLambdaFunctionAssociations"}, - {"shape":"InvalidLambdaFunctionAssociation"}, - {"shape":"TooManyDistributionsWithFunctionAssociations"}, - {"shape":"TooManyFunctionAssociations"}, - {"shape":"InvalidFunctionAssociation"}, - {"shape":"InvalidOriginReadTimeout"}, - {"shape":"InvalidOriginKeepaliveTimeout"}, - {"shape":"NoSuchFieldLevelEncryptionConfig"}, - {"shape":"IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior"}, - {"shape":"TooManyDistributionsAssociatedToFieldLevelEncryptionConfig"}, - {"shape":"NoSuchCachePolicy"}, - {"shape":"TooManyDistributionsAssociatedToCachePolicy"}, - {"shape":"TooManyDistributionsAssociatedToOriginAccessControl"}, - {"shape":"NoSuchResponseHeadersPolicy"}, - {"shape":"TooManyDistributionsAssociatedToResponseHeadersPolicy"}, + {"shape":"NoSuchDistribution"}, {"shape":"NoSuchOriginRequestPolicy"}, + {"shape":"TooManyDistributionsAssociatedToFieldLevelEncryptionConfig"}, + {"shape":"InconsistentQuantities"}, + {"shape":"InvalidLocationCode"}, + {"shape":"InvalidOriginAccessIdentity"}, + {"shape":"TooManyDistributionCNAMEs"}, + {"shape":"InvalidIfMatchVersion"}, {"shape":"TooManyDistributionsAssociatedToOriginRequestPolicy"}, - {"shape":"TooManyDistributionsAssociatedToKeyGroup"}, - {"shape":"TooManyKeyGroupsAssociatedToDistribution"}, + {"shape":"TooManyQueryStringParameters"}, + {"shape":"RealtimeLogConfigOwnerMismatch"}, + {"shape":"PreconditionFailed"}, + {"shape":"MissingBody"}, + {"shape":"TooManyHeadersInForwardedValues"}, + {"shape":"InvalidLambdaFunctionAssociation"}, + {"shape":"CNAMEAlreadyExists"}, + {"shape":"TooManyCertificates"}, {"shape":"TrustedKeyGroupDoesNotExist"}, + {"shape":"TooManyDistributionsAssociatedToResponseHeadersPolicy"}, + {"shape":"NoSuchResponseHeadersPolicy"}, {"shape":"NoSuchRealtimeLogConfig"}, - {"shape":"RealtimeLogConfigOwnerMismatch"} + {"shape":"InvalidResponseCode"}, + {"shape":"InvalidGeoRestrictionParameter"}, + {"shape":"TooManyOrigins"}, + {"shape":"InvalidViewerCertificate"}, + {"shape":"InvalidFunctionAssociation"}, + {"shape":"TooManyDistributionsWithLambdaAssociations"}, + {"shape":"TooManyDistributionsAssociatedToKeyGroup"}, + {"shape":"NoSuchOrigin"}, + {"shape":"TooManyCacheBehaviors"} ], "documentation":"

      Copies the staging distribution's configuration to its corresponding primary distribution. The primary distribution retains its Aliases (also known as alternate domain names or CNAMEs) and ContinuousDeploymentPolicyId value, but otherwise its configuration is overwritten to match the staging distribution.

      You can use this operation in a continuous deployment workflow after you have tested configuration changes on the staging distribution. After using a continuous deployment policy to move a portion of your domain name's traffic to the staging distribution and verifying that it works as intended, you can use this operation to copy the staging distribution's configuration to the primary distribution. This action will disable the continuous deployment policy and move your domain's traffic back to the primary distribution.

      This API operation requires the following IAM permissions:

      " }, @@ -1953,22 +2016,23 @@ "name":"UpdateFieldLevelEncryptionConfig2020_05_31", "http":{ "method":"PUT", - "requestUri":"/2020-05-31/field-level-encryption/{Id}/config" + "requestUri":"/2020-05-31/field-level-encryption/{Id}/config", + "responseCode":200 }, "input":{"shape":"UpdateFieldLevelEncryptionConfigRequest"}, "output":{"shape":"UpdateFieldLevelEncryptionConfigResult"}, "errors":[ - {"shape":"AccessDenied"}, - {"shape":"IllegalUpdate"}, - {"shape":"InconsistentQuantities"}, - {"shape":"InvalidArgument"}, - {"shape":"InvalidIfMatchVersion"}, - {"shape":"NoSuchFieldLevelEncryptionProfile"}, - {"shape":"NoSuchFieldLevelEncryptionConfig"}, + {"shape":"QueryArgProfileEmpty"}, {"shape":"PreconditionFailed"}, + {"shape":"AccessDenied"}, {"shape":"TooManyFieldLevelEncryptionQueryArgProfiles"}, + {"shape":"NoSuchFieldLevelEncryptionConfig"}, {"shape":"TooManyFieldLevelEncryptionContentTypeProfiles"}, - {"shape":"QueryArgProfileEmpty"} + {"shape":"InconsistentQuantities"}, + {"shape":"NoSuchFieldLevelEncryptionProfile"}, + {"shape":"InvalidArgument"}, + {"shape":"IllegalUpdate"}, + {"shape":"InvalidIfMatchVersion"} ], "documentation":"

      Update a field-level encryption configuration.

      " }, @@ -1976,23 +2040,24 @@ "name":"UpdateFieldLevelEncryptionProfile2020_05_31", "http":{ "method":"PUT", - "requestUri":"/2020-05-31/field-level-encryption-profile/{Id}/config" + "requestUri":"/2020-05-31/field-level-encryption-profile/{Id}/config", + "responseCode":200 }, "input":{"shape":"UpdateFieldLevelEncryptionProfileRequest"}, "output":{"shape":"UpdateFieldLevelEncryptionProfileResult"}, "errors":[ + {"shape":"PreconditionFailed"}, + {"shape":"TooManyFieldLevelEncryptionFieldPatterns"}, {"shape":"AccessDenied"}, {"shape":"FieldLevelEncryptionProfileAlreadyExists"}, - {"shape":"IllegalUpdate"}, - {"shape":"InconsistentQuantities"}, - {"shape":"InvalidArgument"}, - {"shape":"InvalidIfMatchVersion"}, {"shape":"NoSuchPublicKey"}, - {"shape":"NoSuchFieldLevelEncryptionProfile"}, - {"shape":"PreconditionFailed"}, {"shape":"FieldLevelEncryptionProfileSizeExceeded"}, + {"shape":"InconsistentQuantities"}, + {"shape":"NoSuchFieldLevelEncryptionProfile"}, {"shape":"TooManyFieldLevelEncryptionEncryptionEntities"}, - {"shape":"TooManyFieldLevelEncryptionFieldPatterns"} + {"shape":"InvalidArgument"}, + {"shape":"IllegalUpdate"}, + {"shape":"InvalidIfMatchVersion"} ], "documentation":"

      Update a field-level encryption profile.

      " }, @@ -2000,7 +2065,8 @@ "name":"UpdateFunction2020_05_31", "http":{ "method":"PUT", - "requestUri":"/2020-05-31/function/{Name}" + "requestUri":"/2020-05-31/function/{Name}", + "responseCode":200 }, "input":{ "shape":"UpdateFunctionRequest", @@ -2009,12 +2075,12 @@ }, "output":{"shape":"UpdateFunctionResult"}, "errors":[ - {"shape":"InvalidArgument"}, - {"shape":"InvalidIfMatchVersion"}, - {"shape":"NoSuchFunctionExists"}, {"shape":"PreconditionFailed"}, + {"shape":"UnsupportedOperation"}, {"shape":"FunctionSizeLimitExceeded"}, - {"shape":"UnsupportedOperation"} + {"shape":"InvalidArgument"}, + {"shape":"NoSuchFunctionExists"}, + {"shape":"InvalidIfMatchVersion"} ], "documentation":"

      Updates a CloudFront function.

      You can update a function's code or the comment that describes the function. You cannot update a function's name.

      To update a function, you provide the function's name and version (ETag value) along with the updated function code. To get the name and version, you can use ListFunctions and DescribeFunction.

      " }, @@ -2022,17 +2088,18 @@ "name":"UpdateKeyGroup2020_05_31", "http":{ "method":"PUT", - "requestUri":"/2020-05-31/key-group/{Id}" + "requestUri":"/2020-05-31/key-group/{Id}", + "responseCode":200 }, "input":{"shape":"UpdateKeyGroupRequest"}, "output":{"shape":"UpdateKeyGroupResult"}, "errors":[ - {"shape":"InvalidIfMatchVersion"}, - {"shape":"NoSuchResource"}, {"shape":"PreconditionFailed"}, - {"shape":"KeyGroupAlreadyExists"}, + {"shape":"TooManyPublicKeysInKeyGroup"}, {"shape":"InvalidArgument"}, - {"shape":"TooManyPublicKeysInKeyGroup"} + {"shape":"NoSuchResource"}, + {"shape":"InvalidIfMatchVersion"}, + {"shape":"KeyGroupAlreadyExists"} ], "documentation":"

      Updates a key group.

      When you update a key group, all the fields are updated with the values provided in the request. You cannot update some fields independent of others. To update a key group:

      1. Get the current key group with GetKeyGroup or GetKeyGroupConfig.

      2. Locally modify the fields in the key group that you want to update. For example, add or remove public key IDs.

      3. Call UpdateKeyGroup with the entire key group object, including the fields that you modified and those that you didn't.

      " }, @@ -2040,7 +2107,8 @@ "name":"UpdateKeyValueStore2020_05_31", "http":{ "method":"PUT", - "requestUri":"/2020-05-31/key-value-store/{Name}" + "requestUri":"/2020-05-31/key-value-store/{Name}", + "responseCode":200 }, "input":{ "shape":"UpdateKeyValueStoreRequest", @@ -2049,12 +2117,12 @@ }, "output":{"shape":"UpdateKeyValueStoreResult"}, "errors":[ + {"shape":"PreconditionFailed"}, + {"shape":"EntityNotFound"}, {"shape":"AccessDenied"}, + {"shape":"UnsupportedOperation"}, {"shape":"InvalidArgument"}, - {"shape":"EntityNotFound"}, - {"shape":"InvalidIfMatchVersion"}, - {"shape":"PreconditionFailed"}, - {"shape":"UnsupportedOperation"} + {"shape":"InvalidIfMatchVersion"} ], "documentation":"

      Specifies the key value store to update.

      ", "idempotent":true @@ -2063,18 +2131,19 @@ "name":"UpdateOriginAccessControl2020_05_31", "http":{ "method":"PUT", - "requestUri":"/2020-05-31/origin-access-control/{Id}/config" + "requestUri":"/2020-05-31/origin-access-control/{Id}/config", + "responseCode":200 }, "input":{"shape":"UpdateOriginAccessControlRequest"}, "output":{"shape":"UpdateOriginAccessControlResult"}, "errors":[ - {"shape":"AccessDenied"}, - {"shape":"IllegalUpdate"}, - {"shape":"InvalidIfMatchVersion"}, + {"shape":"PreconditionFailed"}, {"shape":"OriginAccessControlAlreadyExists"}, + {"shape":"AccessDenied"}, {"shape":"NoSuchOriginAccessControl"}, - {"shape":"PreconditionFailed"}, - {"shape":"InvalidArgument"} + {"shape":"InvalidArgument"}, + {"shape":"IllegalUpdate"}, + {"shape":"InvalidIfMatchVersion"} ], "documentation":"

      Updates a CloudFront origin access control.

      " }, @@ -2082,22 +2151,23 @@ "name":"UpdateOriginRequestPolicy2020_05_31", "http":{ "method":"PUT", - "requestUri":"/2020-05-31/origin-request-policy/{Id}" + "requestUri":"/2020-05-31/origin-request-policy/{Id}", + "responseCode":200 }, "input":{"shape":"UpdateOriginRequestPolicyRequest"}, "output":{"shape":"UpdateOriginRequestPolicyResult"}, "errors":[ - {"shape":"AccessDenied"}, - {"shape":"IllegalUpdate"}, - {"shape":"InconsistentQuantities"}, - {"shape":"InvalidArgument"}, - {"shape":"InvalidIfMatchVersion"}, - {"shape":"NoSuchOriginRequestPolicy"}, {"shape":"PreconditionFailed"}, - {"shape":"OriginRequestPolicyAlreadyExists"}, + {"shape":"AccessDenied"}, {"shape":"TooManyHeadersInOriginRequestPolicy"}, + {"shape":"NoSuchOriginRequestPolicy"}, {"shape":"TooManyCookiesInOriginRequestPolicy"}, - {"shape":"TooManyQueryStringsInOriginRequestPolicy"} + {"shape":"InconsistentQuantities"}, + {"shape":"OriginRequestPolicyAlreadyExists"}, + {"shape":"TooManyQueryStringsInOriginRequestPolicy"}, + {"shape":"InvalidArgument"}, + {"shape":"IllegalUpdate"}, + {"shape":"InvalidIfMatchVersion"} ], "documentation":"

      Updates an origin request policy configuration.

      When you update an origin request policy configuration, all the fields are updated with the values provided in the request. You cannot update some fields independent of others. To update an origin request policy configuration:

      1. Use GetOriginRequestPolicyConfig to get the current configuration.

      2. Locally modify the fields in the origin request policy configuration that you want to update.

      3. Call UpdateOriginRequestPolicy by providing the entire origin request policy configuration, including the fields that you modified and those that you didn't.

      " }, @@ -2105,18 +2175,19 @@ "name":"UpdatePublicKey2020_05_31", "http":{ "method":"PUT", - "requestUri":"/2020-05-31/public-key/{Id}/config" + "requestUri":"/2020-05-31/public-key/{Id}/config", + "responseCode":200 }, "input":{"shape":"UpdatePublicKeyRequest"}, "output":{"shape":"UpdatePublicKeyResult"}, "errors":[ + {"shape":"PreconditionFailed"}, {"shape":"AccessDenied"}, + {"shape":"NoSuchPublicKey"}, {"shape":"CannotChangeImmutablePublicKeyFields"}, {"shape":"InvalidArgument"}, - {"shape":"InvalidIfMatchVersion"}, {"shape":"IllegalUpdate"}, - {"shape":"NoSuchPublicKey"}, - {"shape":"PreconditionFailed"} + {"shape":"InvalidIfMatchVersion"} ], "documentation":"

      Update public key information. Note that the only value you can change is the comment.

      " }, @@ -2124,7 +2195,8 @@ "name":"UpdateRealtimeLogConfig2020_05_31", "http":{ "method":"PUT", - "requestUri":"/2020-05-31/realtime-log-config/" + "requestUri":"/2020-05-31/realtime-log-config", + "responseCode":200 }, "input":{ "shape":"UpdateRealtimeLogConfigRequest", @@ -2133,9 +2205,9 @@ }, "output":{"shape":"UpdateRealtimeLogConfigResult"}, "errors":[ - {"shape":"NoSuchRealtimeLogConfig"}, + {"shape":"AccessDenied"}, {"shape":"InvalidArgument"}, - {"shape":"AccessDenied"} + {"shape":"NoSuchRealtimeLogConfig"} ], "documentation":"

      Updates a real-time log configuration.

      When you update a real-time log configuration, all the parameters are updated with the values provided in the request. You cannot update some parameters independent of others. To update a real-time log configuration:

      1. Call GetRealtimeLogConfig to get the current real-time log configuration.

      2. Locally modify the parameters in the real-time log configuration that you want to update.

      3. Call this API (UpdateRealtimeLogConfig) by providing the entire real-time log configuration, including the parameters that you modified and those that you didn't.

      You cannot update a real-time log configuration's Name or ARN.

      " }, @@ -2143,22 +2215,23 @@ "name":"UpdateResponseHeadersPolicy2020_05_31", "http":{ "method":"PUT", - "requestUri":"/2020-05-31/response-headers-policy/{Id}" + "requestUri":"/2020-05-31/response-headers-policy/{Id}", + "responseCode":200 }, "input":{"shape":"UpdateResponseHeadersPolicyRequest"}, "output":{"shape":"UpdateResponseHeadersPolicyResult"}, "errors":[ - {"shape":"AccessDenied"}, - {"shape":"IllegalUpdate"}, - {"shape":"InconsistentQuantities"}, - {"shape":"InvalidArgument"}, - {"shape":"InvalidIfMatchVersion"}, - {"shape":"NoSuchResponseHeadersPolicy"}, {"shape":"PreconditionFailed"}, - {"shape":"ResponseHeadersPolicyAlreadyExists"}, + {"shape":"AccessDenied"}, {"shape":"TooManyCustomHeadersInResponseHeadersPolicy"}, + {"shape":"ResponseHeadersPolicyAlreadyExists"}, + {"shape":"InconsistentQuantities"}, {"shape":"TooLongCSPInResponseHeadersPolicy"}, - {"shape":"TooManyRemoveHeadersInResponseHeadersPolicy"} + {"shape":"NoSuchResponseHeadersPolicy"}, + {"shape":"InvalidArgument"}, + {"shape":"TooManyRemoveHeadersInResponseHeadersPolicy"}, + {"shape":"IllegalUpdate"}, + {"shape":"InvalidIfMatchVersion"} ], "documentation":"

      Updates a response headers policy.

      When you update a response headers policy, the entire policy is replaced. You cannot update some policy fields independent of others. To update a response headers policy configuration:

      1. Use GetResponseHeadersPolicyConfig to get the current policy's configuration.

      2. Modify the fields in the response headers policy configuration that you want to update.

      3. Call UpdateResponseHeadersPolicy, providing the entire response headers policy configuration, including the fields that you modified and those that you didn't.

      " }, @@ -2166,25 +2239,26 @@ "name":"UpdateStreamingDistribution2020_05_31", "http":{ "method":"PUT", - "requestUri":"/2020-05-31/streaming-distribution/{Id}/config" + "requestUri":"/2020-05-31/streaming-distribution/{Id}/config", + "responseCode":200 }, "input":{"shape":"UpdateStreamingDistributionRequest"}, "output":{"shape":"UpdateStreamingDistributionResult"}, "errors":[ {"shape":"AccessDenied"}, - {"shape":"CNAMEAlreadyExists"}, + {"shape":"InconsistentQuantities"}, + {"shape":"InvalidOriginAccessIdentity"}, + {"shape":"InvalidArgument"}, {"shape":"IllegalUpdate"}, + {"shape":"TooManyTrustedSigners"}, + {"shape":"InvalidOriginAccessControl"}, {"shape":"InvalidIfMatchVersion"}, - {"shape":"MissingBody"}, - {"shape":"NoSuchStreamingDistribution"}, {"shape":"PreconditionFailed"}, + {"shape":"MissingBody"}, {"shape":"TooManyStreamingDistributionCNAMEs"}, - {"shape":"InvalidArgument"}, - {"shape":"InvalidOriginAccessIdentity"}, - {"shape":"InvalidOriginAccessControl"}, - {"shape":"TooManyTrustedSigners"}, {"shape":"TrustedSignerDoesNotExist"}, - {"shape":"InconsistentQuantities"} + {"shape":"CNAMEAlreadyExists"}, + {"shape":"NoSuchStreamingDistribution"} ], "documentation":"

      Update a streaming distribution.

      " } @@ -2224,7 +2298,10 @@ "Message":{"shape":"string"} }, "documentation":"

      Access denied.

      ", - "error":{"httpStatusCode":403}, + "error":{ + "httpStatusCode":403, + "senderFault":true + }, "exception":true }, "ActiveTrustedKeyGroups":{ @@ -2367,7 +2444,10 @@ "Message":{"shape":"string"} }, "documentation":"

      Invalidation batch specified is too large.

      ", - "error":{"httpStatusCode":413}, + "error":{ + "httpStatusCode":413, + "senderFault":true + }, "exception":true }, "CNAMEAlreadyExists":{ @@ -2376,7 +2456,10 @@ "Message":{"shape":"string"} }, "documentation":"

      The CNAME specified is already defined for CloudFront.

      ", - "error":{"httpStatusCode":409}, + "error":{ + "httpStatusCode":409, + "senderFault":true + }, "exception":true }, "CacheBehavior":{ @@ -2518,7 +2601,10 @@ "Message":{"shape":"string"} }, "documentation":"

      A cache policy with this name already exists. You must provide a unique name. To modify an existing cache policy, use UpdateCachePolicy.

      ", - "error":{"httpStatusCode":409}, + "error":{ + "httpStatusCode":409, + "senderFault":true + }, "exception":true }, "CachePolicyConfig":{ @@ -2601,7 +2687,10 @@ "Message":{"shape":"string"} }, "documentation":"

      Cannot delete the cache policy because it is attached to one or more cache behaviors.

      ", - "error":{"httpStatusCode":409}, + "error":{ + "httpStatusCode":409, + "senderFault":true + }, "exception":true }, "CachePolicyList":{ @@ -2710,7 +2799,10 @@ "Message":{"shape":"string"} }, "documentation":"

      You can't change the value of a public key.

      ", - "error":{"httpStatusCode":400}, + "error":{ + "httpStatusCode":400, + "senderFault":true + }, "exception":true }, "CannotDeleteEntityWhileInUse":{ @@ -2719,7 +2811,10 @@ "Message":{"shape":"string"} }, "documentation":"

      The key value store entity cannot be deleted while it is in use.

      ", - "error":{"httpStatusCode":409}, + "error":{ + "httpStatusCode":409, + "senderFault":true + }, "exception":true }, "CertificateSource":{ @@ -2758,7 +2853,10 @@ "Message":{"shape":"string"} }, "documentation":"

      If the CallerReference is a value you already sent in a previous request to create an identity but the content of the CloudFrontOriginAccessIdentityConfig is different from the original request, CloudFront returns a CloudFrontOriginAccessIdentityAlreadyExists error.

      ", - "error":{"httpStatusCode":409}, + "error":{ + "httpStatusCode":409, + "senderFault":true + }, "exception":true }, "CloudFrontOriginAccessIdentityConfig":{ @@ -2785,7 +2883,10 @@ "Message":{"shape":"string"} }, "documentation":"

      The Origin Access Identity specified is already in use.

      ", - "error":{"httpStatusCode":409}, + "error":{ + "httpStatusCode":409, + "senderFault":true + }, "exception":true }, "CloudFrontOriginAccessIdentityList":{ @@ -2990,7 +3091,10 @@ "Message":{"shape":"string"} }, "documentation":"

      A continuous deployment policy with this configuration already exists.

      ", - "error":{"httpStatusCode":409}, + "error":{ + "httpStatusCode":409, + "senderFault":true + }, "exception":true }, "ContinuousDeploymentPolicyConfig":{ @@ -3021,7 +3125,10 @@ "Message":{"shape":"string"} }, "documentation":"

      You cannot delete a continuous deployment policy that is associated with a primary distribution.

      ", - "error":{"httpStatusCode":409}, + "error":{ + "httpStatusCode":409, + "senderFault":true + }, "exception":true }, "ContinuousDeploymentPolicyList":{ @@ -3609,8 +3716,8 @@ "CreateMonitoringSubscriptionRequest":{ "type":"structure", "required":[ - "MonitoringSubscription", - "DistributionId" + "DistributionId", + "MonitoringSubscription" ], "members":{ "DistributionId":{ @@ -4179,8 +4286,8 @@ "DeleteFunctionRequest":{ "type":"structure", "required":[ - "IfMatch", - "Name" + "Name", + "IfMatch" ], "members":{ "Name":{ @@ -4218,8 +4325,8 @@ "DeleteKeyValueStoreRequest":{ "type":"structure", "required":[ - "IfMatch", - "Name" + "Name", + "IfMatch" ], "members":{ "Name":{ @@ -4480,7 +4587,10 @@ "Message":{"shape":"string"} }, "documentation":"

      The caller reference you attempted to create the distribution with is associated with another distribution.

      ", - "error":{"httpStatusCode":409}, + "error":{ + "httpStatusCode":409, + "senderFault":true + }, "exception":true }, "DistributionConfig":{ @@ -4675,7 +4785,10 @@ "Message":{"shape":"string"} }, "documentation":"

      The specified CloudFront distribution is not disabled. You must disable the distribution before you can delete it.

      ", - "error":{"httpStatusCode":409}, + "error":{ + "httpStatusCode":409, + "senderFault":true + }, "exception":true }, "DistributionSummary":{ @@ -4866,7 +4979,10 @@ "Message":{"shape":"string"} }, "documentation":"

      The key value store entity already exists. You must provide a unique key value store entity.

      ", - "error":{"httpStatusCode":409}, + "error":{ + "httpStatusCode":409, + "senderFault":true + }, "exception":true }, "EntityLimitExceeded":{ @@ -4875,7 +4991,10 @@ "Message":{"shape":"string"} }, "documentation":"

      The key value store entity limit has been exceeded.

      ", - "error":{"httpStatusCode":400}, + "error":{ + "httpStatusCode":400, + "senderFault":true + }, "exception":true }, "EntityNotFound":{ @@ -4884,7 +5003,10 @@ "Message":{"shape":"string"} }, "documentation":"

      The key value store entity was not found.

      ", - "error":{"httpStatusCode":404}, + "error":{ + "httpStatusCode":404, + "senderFault":true + }, "exception":true }, "EntitySizeLimitExceeded":{ @@ -4893,7 +5015,10 @@ "Message":{"shape":"string"} }, "documentation":"

      The key value store entity size limit was exceeded.

      ", - "error":{"httpStatusCode":413}, + "error":{ + "httpStatusCode":413, + "senderFault":true + }, "exception":true }, "EventType":{ @@ -4957,7 +5082,10 @@ "Message":{"shape":"string"} }, "documentation":"

      The specified configuration for field-level encryption already exists.

      ", - "error":{"httpStatusCode":409}, + "error":{ + "httpStatusCode":409, + "senderFault":true + }, "exception":true }, "FieldLevelEncryptionConfigInUse":{ @@ -4966,7 +5094,10 @@ "Message":{"shape":"string"} }, "documentation":"

      The specified configuration for field-level encryption is in use.

      ", - "error":{"httpStatusCode":409}, + "error":{ + "httpStatusCode":409, + "senderFault":true + }, "exception":true }, "FieldLevelEncryptionList":{ @@ -5024,7 +5155,10 @@ "Message":{"shape":"string"} }, "documentation":"

      The specified profile for field-level encryption already exists.

      ", - "error":{"httpStatusCode":409}, + "error":{ + "httpStatusCode":409, + "senderFault":true + }, "exception":true }, "FieldLevelEncryptionProfileConfig":{ @@ -5060,7 +5194,10 @@ "Message":{"shape":"string"} }, "documentation":"

      The specified profile for field-level encryption is in use.

      ", - "error":{"httpStatusCode":409}, + "error":{ + "httpStatusCode":409, + "senderFault":true + }, "exception":true }, "FieldLevelEncryptionProfileList":{ @@ -5095,7 +5232,10 @@ "Message":{"shape":"string"} }, "documentation":"

      The maximum size of a profile for field-level encryption was exceeded.

      ", - "error":{"httpStatusCode":400}, + "error":{ + "httpStatusCode":400, + "senderFault":true + }, "exception":true }, "FieldLevelEncryptionProfileSummary":{ @@ -5243,7 +5383,8 @@ "FunctionARN":{ "type":"string", "max":108, - "pattern":"arn:aws:cloudfront::[0-9]{12}:function\\/[a-zA-Z0-9-_]{1,64}$" + "min":0, + "pattern":"arn:aws:cloudfront::[0-9]{12}:function\\/[a-zA-Z0-9-_]{1,64}" }, "FunctionAlreadyExists":{ "type":"structure", @@ -5251,7 +5392,10 @@ "Message":{"shape":"string"} }, "documentation":"

      A function with the same name already exists in this Amazon Web Services account. To create a function, you must provide a unique name. To update an existing function, use UpdateFunction.

      ", - "error":{"httpStatusCode":409}, + "error":{ + "httpStatusCode":409, + "senderFault":true + }, "exception":true }, "FunctionAssociation":{ @@ -5325,6 +5469,7 @@ "FunctionEventObject":{ "type":"blob", "max":40960, + "min":0, "sensitive":true }, "FunctionExecutionLogList":{ @@ -5338,7 +5483,10 @@ "Message":{"shape":"string"} }, "documentation":"

      Cannot delete the function because it's attached to one or more cache behaviors.

      ", - "error":{"httpStatusCode":409}, + "error":{ + "httpStatusCode":409, + "senderFault":true + }, "exception":true }, "FunctionList":{ @@ -5397,7 +5545,7 @@ "type":"string", "max":64, "min":1, - "pattern":"^[a-zA-Z0-9-_]{1,64}$" + "pattern":"[a-zA-Z0-9-_]{1,64}" }, "FunctionRuntime":{ "type":"string", @@ -5412,7 +5560,10 @@ "Message":{"shape":"string"} }, "documentation":"

      The function is too large. For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.

      ", - "error":{"httpStatusCode":413}, + "error":{ + "httpStatusCode":413, + "senderFault":true + }, "exception":true }, "FunctionStage":{ @@ -6329,7 +6480,10 @@ "Message":{"shape":"string"} }, "documentation":"

      You cannot delete a managed policy.

      ", - "error":{"httpStatusCode":400}, + "error":{ + "httpStatusCode":400, + "senderFault":true + }, "exception":true }, "IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior":{ @@ -6338,7 +6492,10 @@ "Message":{"shape":"string"} }, "documentation":"

      The specified configuration for field-level encryption can't be associated with the specified cache behavior.

      ", - "error":{"httpStatusCode":400}, + "error":{ + "httpStatusCode":400, + "senderFault":true + }, "exception":true }, "IllegalOriginAccessConfiguration":{ @@ -6347,7 +6504,10 @@ "Message":{"shape":"string"} }, "documentation":"

      An origin cannot contain both an origin access control (OAC) and an origin access identity (OAI).

      ", - "error":{"httpStatusCode":400}, + "error":{ + "httpStatusCode":400, + "senderFault":true + }, "exception":true }, "IllegalUpdate":{ @@ -6356,7 +6516,10 @@ "Message":{"shape":"string"} }, "documentation":"

      The update contains modifications that are not allowed.

      ", - "error":{"httpStatusCode":400}, + "error":{ + "httpStatusCode":400, + "senderFault":true + }, "exception":true }, "ImportSource":{ @@ -6387,7 +6550,10 @@ "Message":{"shape":"string"} }, "documentation":"

      The value of Quantity and the size of Items don't match.

      ", - "error":{"httpStatusCode":400}, + "error":{ + "httpStatusCode":400, + "senderFault":true + }, "exception":true }, "InvalidArgument":{ @@ -6396,7 +6562,10 @@ "Message":{"shape":"string"} }, "documentation":"

      An argument is invalid.

      ", - "error":{"httpStatusCode":400}, + "error":{ + "httpStatusCode":400, + "senderFault":true + }, "exception":true }, "InvalidDefaultRootObject":{ @@ -6405,7 +6574,10 @@ "Message":{"shape":"string"} }, "documentation":"

      The default root object file name is too big or contains an invalid character.

      ", - "error":{"httpStatusCode":400}, + "error":{ + "httpStatusCode":400, + "senderFault":true + }, "exception":true }, "InvalidDomainNameForOriginAccessControl":{ @@ -6414,7 +6586,10 @@ "Message":{"shape":"string"} }, "documentation":"

      An origin access control is associated with an origin whose domain name is not supported.

      ", - "error":{"httpStatusCode":400}, + "error":{ + "httpStatusCode":400, + "senderFault":true + }, "exception":true }, "InvalidErrorCode":{ @@ -6423,7 +6598,10 @@ "Message":{"shape":"string"} }, "documentation":"

      An invalid error code was specified.

      ", - "error":{"httpStatusCode":400}, + "error":{ + "httpStatusCode":400, + "senderFault":true + }, "exception":true }, "InvalidForwardCookies":{ @@ -6432,7 +6610,10 @@ "Message":{"shape":"string"} }, "documentation":"

      Your request contains forward cookies option which doesn't match with the expectation for the whitelisted list of cookie names. Either list of cookie names has been specified when not allowed or list of cookie names is missing when expected.

      ", - "error":{"httpStatusCode":400}, + "error":{ + "httpStatusCode":400, + "senderFault":true + }, "exception":true }, "InvalidFunctionAssociation":{ @@ -6441,7 +6622,10 @@ "Message":{"shape":"string"} }, "documentation":"

      A CloudFront function association is invalid.

      ", - "error":{"httpStatusCode":400}, + "error":{ + "httpStatusCode":400, + "senderFault":true + }, "exception":true }, "InvalidGeoRestrictionParameter":{ @@ -6450,7 +6634,10 @@ "Message":{"shape":"string"} }, "documentation":"

      The specified geo restriction parameter is not valid.

      ", - "error":{"httpStatusCode":400}, + "error":{ + "httpStatusCode":400, + "senderFault":true + }, "exception":true }, "InvalidHeadersForS3Origin":{ @@ -6459,7 +6646,10 @@ "Message":{"shape":"string"} }, "documentation":"

      The headers specified are not valid for an Amazon S3 origin.

      ", - "error":{"httpStatusCode":400}, + "error":{ + "httpStatusCode":400, + "senderFault":true + }, "exception":true }, "InvalidIfMatchVersion":{ @@ -6468,7 +6658,10 @@ "Message":{"shape":"string"} }, "documentation":"

      The If-Match version is missing or not valid.

      ", - "error":{"httpStatusCode":400}, + "error":{ + "httpStatusCode":400, + "senderFault":true + }, "exception":true }, "InvalidLambdaFunctionAssociation":{ @@ -6477,7 +6670,10 @@ "Message":{"shape":"string"} }, "documentation":"

      The specified Lambda@Edge function association is invalid.

      ", - "error":{"httpStatusCode":400}, + "error":{ + "httpStatusCode":400, + "senderFault":true + }, "exception":true }, "InvalidLocationCode":{ @@ -6486,7 +6682,10 @@ "Message":{"shape":"string"} }, "documentation":"

      The location code specified is not valid.

      ", - "error":{"httpStatusCode":400}, + "error":{ + "httpStatusCode":400, + "senderFault":true + }, "exception":true }, "InvalidMinimumProtocolVersion":{ @@ -6495,7 +6694,10 @@ "Message":{"shape":"string"} }, "documentation":"

      The minimum protocol version specified is not valid.

      ", - "error":{"httpStatusCode":400}, + "error":{ + "httpStatusCode":400, + "senderFault":true + }, "exception":true }, "InvalidOrigin":{ @@ -6504,7 +6706,10 @@ "Message":{"shape":"string"} }, "documentation":"

      The Amazon S3 origin server specified does not refer to a valid Amazon S3 bucket.

      ", - "error":{"httpStatusCode":400}, + "error":{ + "httpStatusCode":400, + "senderFault":true + }, "exception":true }, "InvalidOriginAccessControl":{ @@ -6513,7 +6718,10 @@ "Message":{"shape":"string"} }, "documentation":"

      The origin access control is not valid.

      ", - "error":{"httpStatusCode":400}, + "error":{ + "httpStatusCode":400, + "senderFault":true + }, "exception":true }, "InvalidOriginAccessIdentity":{ @@ -6522,7 +6730,10 @@ "Message":{"shape":"string"} }, "documentation":"

      The origin access identity is not valid or doesn't exist.

      ", - "error":{"httpStatusCode":400}, + "error":{ + "httpStatusCode":400, + "senderFault":true + }, "exception":true }, "InvalidOriginKeepaliveTimeout":{ @@ -6531,7 +6742,10 @@ "Message":{"shape":"string"} }, "documentation":"

      The keep alive timeout specified for the origin is not valid.

      ", - "error":{"httpStatusCode":400}, + "error":{ + "httpStatusCode":400, + "senderFault":true + }, "exception":true }, "InvalidOriginReadTimeout":{ @@ -6540,7 +6754,10 @@ "Message":{"shape":"string"} }, "documentation":"

      The read timeout specified for the origin is not valid.

      ", - "error":{"httpStatusCode":400}, + "error":{ + "httpStatusCode":400, + "senderFault":true + }, "exception":true }, "InvalidProtocolSettings":{ @@ -6549,7 +6766,10 @@ "Message":{"shape":"string"} }, "documentation":"

      You cannot specify SSLv3 as the minimum protocol version if you only want to support only clients that support Server Name Indication (SNI).

      ", - "error":{"httpStatusCode":400}, + "error":{ + "httpStatusCode":400, + "senderFault":true + }, "exception":true }, "InvalidQueryStringParameters":{ @@ -6558,7 +6778,10 @@ "Message":{"shape":"string"} }, "documentation":"

      The query string parameters specified are not valid.

      ", - "error":{"httpStatusCode":400}, + "error":{ + "httpStatusCode":400, + "senderFault":true + }, "exception":true }, "InvalidRelativePath":{ @@ -6567,7 +6790,10 @@ "Message":{"shape":"string"} }, "documentation":"

      The relative path is too big, is not URL-encoded, or does not begin with a slash (/).

      ", - "error":{"httpStatusCode":400}, + "error":{ + "httpStatusCode":400, + "senderFault":true + }, "exception":true }, "InvalidRequiredProtocol":{ @@ -6576,7 +6802,10 @@ "Message":{"shape":"string"} }, "documentation":"

      This operation requires the HTTPS protocol. Ensure that you specify the HTTPS protocol in your request, or omit the RequiredProtocols element from your distribution configuration.

      ", - "error":{"httpStatusCode":400}, + "error":{ + "httpStatusCode":400, + "senderFault":true + }, "exception":true }, "InvalidResponseCode":{ @@ -6585,7 +6814,10 @@ "Message":{"shape":"string"} }, "documentation":"

      A response code is not valid.

      ", - "error":{"httpStatusCode":400}, + "error":{ + "httpStatusCode":400, + "senderFault":true + }, "exception":true }, "InvalidTTLOrder":{ @@ -6594,7 +6826,10 @@ "Message":{"shape":"string"} }, "documentation":"

      The TTL order specified is not valid.

      ", - "error":{"httpStatusCode":400}, + "error":{ + "httpStatusCode":400, + "senderFault":true + }, "exception":true }, "InvalidTagging":{ @@ -6603,7 +6838,10 @@ "Message":{"shape":"string"} }, "documentation":"

      The tagging specified is not valid.

      ", - "error":{"httpStatusCode":400}, + "error":{ + "httpStatusCode":400, + "senderFault":true + }, "exception":true }, "InvalidViewerCertificate":{ @@ -6612,7 +6850,10 @@ "Message":{"shape":"string"} }, "documentation":"

      A viewer certificate specified is not valid.

      ", - "error":{"httpStatusCode":400}, + "error":{ + "httpStatusCode":400, + "senderFault":true + }, "exception":true }, "InvalidWebACLId":{ @@ -6621,7 +6862,10 @@ "Message":{"shape":"string"} }, "documentation":"

      A web ACL ID specified is not valid. To specify a web ACL created using the latest version of WAF, use the ACL ARN, for example arn:aws:wafv2:us-east-1:123456789012:global/webacl/ExampleWebACL/473e64fd-f30b-4765-81a0-62ad96dd167a. To specify a web ACL created using WAF Classic, use the ACL ID, for example 473e64fd-f30b-4765-81a0-62ad96dd167a.

      ", - "error":{"httpStatusCode":400}, + "error":{ + "httpStatusCode":400, + "senderFault":true + }, "exception":true }, "Invalidation":{ @@ -6791,7 +7035,10 @@ "Message":{"shape":"string"} }, "documentation":"

      A key group with this name already exists. You must provide a unique name. To modify an existing key group, use UpdateKeyGroup.

      ", - "error":{"httpStatusCode":409}, + "error":{ + "httpStatusCode":409, + "senderFault":true + }, "exception":true }, "KeyGroupConfig":{ @@ -6922,7 +7169,8 @@ "KeyValueStoreARN":{ "type":"string", "max":85, - "pattern":"arn:aws:cloudfront::[0-9]{12}:key-value-store\\/[0-9a-fA-F-]{36}$" + "min":0, + "pattern":"arn:aws:cloudfront::[0-9]{12}:key-value-store\\/[0-9a-fA-F-]{36}" }, "KeyValueStoreAssociation":{ "type":"structure", @@ -6959,7 +7207,8 @@ }, "KeyValueStoreComment":{ "type":"string", - "max":128 + "max":128, + "min":0 }, "KeyValueStoreList":{ "type":"structure", @@ -6991,7 +7240,7 @@ "type":"string", "max":64, "min":1, - "pattern":"^[a-zA-Z0-9-_]{1,64}$" + "pattern":"[a-zA-Z0-9-_]{1,64}" }, "KeyValueStoreSummaryList":{ "type":"list", @@ -7874,7 +8123,10 @@ "Message":{"shape":"string"} }, "documentation":"

      This operation requires a body. Ensure that the body is present and the Content-Type header is set.

      ", - "error":{"httpStatusCode":400}, + "error":{ + "httpStatusCode":400, + "senderFault":true + }, "exception":true }, "MonitoringSubscription":{ @@ -7893,7 +8145,10 @@ "Message":{"shape":"string"} }, "documentation":"

      A monitoring subscription already exists for the specified distribution.

      ", - "error":{"httpStatusCode":409}, + "error":{ + "httpStatusCode":409, + "senderFault":true + }, "exception":true }, "NoSuchCachePolicy":{ @@ -7902,7 +8157,10 @@ "Message":{"shape":"string"} }, "documentation":"

      The cache policy does not exist.

      ", - "error":{"httpStatusCode":404}, + "error":{ + "httpStatusCode":404, + "senderFault":true + }, "exception":true }, "NoSuchCloudFrontOriginAccessIdentity":{ @@ -7911,7 +8169,10 @@ "Message":{"shape":"string"} }, "documentation":"

      The specified origin access identity does not exist.

      ", - "error":{"httpStatusCode":404}, + "error":{ + "httpStatusCode":404, + "senderFault":true + }, "exception":true }, "NoSuchContinuousDeploymentPolicy":{ @@ -7920,7 +8181,10 @@ "Message":{"shape":"string"} }, "documentation":"

      The continuous deployment policy doesn't exist.

      ", - "error":{"httpStatusCode":404}, + "error":{ + "httpStatusCode":404, + "senderFault":true + }, "exception":true }, "NoSuchDistribution":{ @@ -7929,7 +8193,10 @@ "Message":{"shape":"string"} }, "documentation":"

      The specified distribution does not exist.

      ", - "error":{"httpStatusCode":404}, + "error":{ + "httpStatusCode":404, + "senderFault":true + }, "exception":true }, "NoSuchFieldLevelEncryptionConfig":{ @@ -7938,7 +8205,10 @@ "Message":{"shape":"string"} }, "documentation":"

      The specified configuration for field-level encryption doesn't exist.

      ", - "error":{"httpStatusCode":404}, + "error":{ + "httpStatusCode":404, + "senderFault":true + }, "exception":true }, "NoSuchFieldLevelEncryptionProfile":{ @@ -7947,7 +8217,10 @@ "Message":{"shape":"string"} }, "documentation":"

      The specified profile for field-level encryption doesn't exist.

      ", - "error":{"httpStatusCode":404}, + "error":{ + "httpStatusCode":404, + "senderFault":true + }, "exception":true }, "NoSuchFunctionExists":{ @@ -7956,7 +8229,10 @@ "Message":{"shape":"string"} }, "documentation":"

      The function does not exist.

      ", - "error":{"httpStatusCode":404}, + "error":{ + "httpStatusCode":404, + "senderFault":true + }, "exception":true }, "NoSuchInvalidation":{ @@ -7965,7 +8241,10 @@ "Message":{"shape":"string"} }, "documentation":"

      The specified invalidation does not exist.

      ", - "error":{"httpStatusCode":404}, + "error":{ + "httpStatusCode":404, + "senderFault":true + }, "exception":true }, "NoSuchMonitoringSubscription":{ @@ -7974,7 +8253,10 @@ "Message":{"shape":"string"} }, "documentation":"

      A monitoring subscription does not exist for the specified distribution.

      ", - "error":{"httpStatusCode":404}, + "error":{ + "httpStatusCode":404, + "senderFault":true + }, "exception":true }, "NoSuchOrigin":{ @@ -7983,7 +8265,10 @@ "Message":{"shape":"string"} }, "documentation":"

      No origin exists with the specified Origin Id.

      ", - "error":{"httpStatusCode":404}, + "error":{ + "httpStatusCode":404, + "senderFault":true + }, "exception":true }, "NoSuchOriginAccessControl":{ @@ -7992,7 +8277,10 @@ "Message":{"shape":"string"} }, "documentation":"

      The origin access control does not exist.

      ", - "error":{"httpStatusCode":404}, + "error":{ + "httpStatusCode":404, + "senderFault":true + }, "exception":true }, "NoSuchOriginRequestPolicy":{ @@ -8001,7 +8289,10 @@ "Message":{"shape":"string"} }, "documentation":"

      The origin request policy does not exist.

      ", - "error":{"httpStatusCode":404}, + "error":{ + "httpStatusCode":404, + "senderFault":true + }, "exception":true }, "NoSuchPublicKey":{ @@ -8010,7 +8301,10 @@ "Message":{"shape":"string"} }, "documentation":"

      The specified public key doesn't exist.

      ", - "error":{"httpStatusCode":404}, + "error":{ + "httpStatusCode":404, + "senderFault":true + }, "exception":true }, "NoSuchRealtimeLogConfig":{ @@ -8019,7 +8313,10 @@ "Message":{"shape":"string"} }, "documentation":"

      The real-time log configuration does not exist.

      ", - "error":{"httpStatusCode":404}, + "error":{ + "httpStatusCode":404, + "senderFault":true + }, "exception":true }, "NoSuchResource":{ @@ -8028,7 +8325,10 @@ "Message":{"shape":"string"} }, "documentation":"

      A resource that was specified is not valid.

      ", - "error":{"httpStatusCode":404}, + "error":{ + "httpStatusCode":404, + "senderFault":true + }, "exception":true }, "NoSuchResponseHeadersPolicy":{ @@ -8037,7 +8337,10 @@ "Message":{"shape":"string"} }, "documentation":"

      The response headers policy does not exist.

      ", - "error":{"httpStatusCode":404}, + "error":{ + "httpStatusCode":404, + "senderFault":true + }, "exception":true }, "NoSuchStreamingDistribution":{ @@ -8046,7 +8349,10 @@ "Message":{"shape":"string"} }, "documentation":"

      The specified streaming distribution does not exist.

      ", - "error":{"httpStatusCode":404}, + "error":{ + "httpStatusCode":404, + "senderFault":true + }, "exception":true }, "Origin":{ @@ -8120,7 +8426,10 @@ "Message":{"shape":"string"} }, "documentation":"

      An origin access control with the specified parameters already exists.

      ", - "error":{"httpStatusCode":409}, + "error":{ + "httpStatusCode":409, + "senderFault":true + }, "exception":true }, "OriginAccessControlConfig":{ @@ -8161,7 +8470,10 @@ "Message":{"shape":"string"} }, "documentation":"

      Cannot delete the origin access control because it's in use by one or more distributions.

      ", - "error":{"httpStatusCode":409}, + "error":{ + "httpStatusCode":409, + "senderFault":true + }, "exception":true }, "OriginAccessControlList":{ @@ -8432,7 +8744,10 @@ "Message":{"shape":"string"} }, "documentation":"

      An origin request policy with this name already exists. You must provide a unique name. To modify an existing origin request policy, use UpdateOriginRequestPolicy.

      ", - "error":{"httpStatusCode":409}, + "error":{ + "httpStatusCode":409, + "senderFault":true + }, "exception":true }, "OriginRequestPolicyConfig":{ @@ -8516,7 +8831,10 @@ "Message":{"shape":"string"} }, "documentation":"

      Cannot delete the origin request policy because it is attached to one or more cache behaviors.

      ", - "error":{"httpStatusCode":409}, + "error":{ + "httpStatusCode":409, + "senderFault":true + }, "exception":true }, "OriginRequestPolicyList":{ @@ -8718,7 +9036,10 @@ "Message":{"shape":"string"} }, "documentation":"

      The precondition in one or more of the request fields evaluated to false.

      ", - "error":{"httpStatusCode":412}, + "error":{ + "httpStatusCode":412, + "senderFault":true + }, "exception":true }, "PriceClass":{ @@ -8758,7 +9079,10 @@ "Message":{"shape":"string"} }, "documentation":"

      The specified public key already exists.

      ", - "error":{"httpStatusCode":409}, + "error":{ + "httpStatusCode":409, + "senderFault":true + }, "exception":true }, "PublicKeyConfig":{ @@ -8801,7 +9125,10 @@ "Message":{"shape":"string"} }, "documentation":"

      The specified public key is in use.

      ", - "error":{"httpStatusCode":409}, + "error":{ + "httpStatusCode":409, + "senderFault":true + }, "exception":true }, "PublicKeyList":{ @@ -8939,7 +9266,10 @@ "Message":{"shape":"string"} }, "documentation":"

      No profile specified for the field-level encryption query argument.

      ", - "error":{"httpStatusCode":400}, + "error":{ + "httpStatusCode":400, + "senderFault":true + }, "exception":true }, "QueryArgProfileList":{ @@ -9047,7 +9377,10 @@ "Message":{"shape":"string"} }, "documentation":"

      A real-time log configuration with this name already exists. You must provide a unique name. To modify an existing real-time log configuration, use UpdateRealtimeLogConfig.

      ", - "error":{"httpStatusCode":409}, + "error":{ + "httpStatusCode":409, + "senderFault":true + }, "exception":true }, "RealtimeLogConfigInUse":{ @@ -9056,7 +9389,10 @@ "Message":{"shape":"string"} }, "documentation":"

      Cannot delete the real-time log configuration because it is attached to one or more cache behaviors.

      ", - "error":{"httpStatusCode":400}, + "error":{ + "httpStatusCode":400, + "senderFault":true + }, "exception":true }, "RealtimeLogConfigList":{ @@ -9069,7 +9405,10 @@ "Message":{"shape":"string"} }, "documentation":"

      The specified real-time log configuration belongs to a different Amazon Web Services account.

      ", - "error":{"httpStatusCode":401}, + "error":{ + "httpStatusCode":401, + "senderFault":true + }, "exception":true }, "RealtimeLogConfigs":{ @@ -9144,7 +9483,10 @@ "Message":{"shape":"string"} }, "documentation":"

      Cannot delete this resource because it is in use.

      ", - "error":{"httpStatusCode":409}, + "error":{ + "httpStatusCode":409, + "senderFault":true + }, "exception":true }, "ResponseHeadersPolicy":{ @@ -9258,7 +9600,10 @@ "Message":{"shape":"string"} }, "documentation":"

      A response headers policy with this name already exists. You must provide a unique name. To modify an existing response headers policy, use UpdateResponseHeadersPolicy.

      ", - "error":{"httpStatusCode":409}, + "error":{ + "httpStatusCode":409, + "senderFault":true + }, "exception":true }, "ResponseHeadersPolicyConfig":{ @@ -9435,7 +9780,10 @@ "Message":{"shape":"string"} }, "documentation":"

      Cannot delete the response headers policy because it is attached to one or more cache behaviors in a CloudFront distribution.

      ", - "error":{"httpStatusCode":409}, + "error":{ + "httpStatusCode":409, + "senderFault":true + }, "exception":true }, "ResponseHeadersPolicyList":{ @@ -9694,6 +10042,7 @@ }, "SamplingRate":{ "type":"double", + "box":true, "max":100.0, "min":0.0 }, @@ -9780,7 +10129,10 @@ "Message":{"shape":"string"} }, "documentation":"

      A continuous deployment policy for this staging distribution already exists.

      ", - "error":{"httpStatusCode":409}, + "error":{ + "httpStatusCode":409, + "senderFault":true + }, "exception":true }, "StatusCodeList":{ @@ -9858,7 +10210,10 @@ "Message":{"shape":"string"} }, "documentation":"

      The caller reference you attempted to create the streaming distribution with is associated with another distribution

      ", - "error":{"httpStatusCode":409}, + "error":{ + "httpStatusCode":409, + "senderFault":true + }, "exception":true }, "StreamingDistributionConfig":{ @@ -9966,7 +10321,10 @@ "Message":{"shape":"string"} }, "documentation":"

      The specified CloudFront distribution is not disabled. You must disable the distribution before you can delete it.

      ", - "error":{"httpStatusCode":409}, + "error":{ + "httpStatusCode":409, + "senderFault":true + }, "exception":true }, "StreamingDistributionSummary":{ @@ -10082,7 +10440,7 @@ "documentation":"

      A string that contains Tag key.

      The string length should be between 1 and 128 characters. Valid characters include a-z, A-Z, 0-9, space, and the special characters _ - . : / = + @.

      ", "max":128, "min":1, - "pattern":"^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$" + "pattern":"([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)" }, "TagKeyList":{ "type":"list", @@ -10135,7 +10493,7 @@ "type":"string", "max":256, "min":0, - "pattern":"^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$" + "pattern":"([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)" }, "Tags":{ "type":"structure", @@ -10154,7 +10512,8 @@ }, "documentation":"

      The CloudFront function failed.

      ", "error":{"httpStatusCode":500}, - "exception":true + "exception":true, + "fault":true }, "TestFunctionRequest":{ "type":"structure", @@ -10228,7 +10587,10 @@ "Message":{"shape":"string"} }, "documentation":"

      The length of the Content-Security-Policy header value in the response headers policy exceeds the maximum.

      For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.

      ", - "error":{"httpStatusCode":400}, + "error":{ + "httpStatusCode":400, + "senderFault":true + }, "exception":true }, "TooManyCacheBehaviors":{ @@ -10237,7 +10599,10 @@ "Message":{"shape":"string"} }, "documentation":"

      You cannot create more cache behaviors for the distribution.

      ", - "error":{"httpStatusCode":400}, + "error":{ + "httpStatusCode":400, + "senderFault":true + }, "exception":true }, "TooManyCachePolicies":{ @@ -10246,7 +10611,10 @@ "Message":{"shape":"string"} }, "documentation":"

      You have reached the maximum number of cache policies for this Amazon Web Services account. For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.

      ", - "error":{"httpStatusCode":400}, + "error":{ + "httpStatusCode":400, + "senderFault":true + }, "exception":true }, "TooManyCertificates":{ @@ -10255,7 +10623,10 @@ "Message":{"shape":"string"} }, "documentation":"

      You cannot create anymore custom SSL/TLS certificates.

      ", - "error":{"httpStatusCode":400}, + "error":{ + "httpStatusCode":400, + "senderFault":true + }, "exception":true }, "TooManyCloudFrontOriginAccessIdentities":{ @@ -10264,7 +10635,10 @@ "Message":{"shape":"string"} }, "documentation":"

      Processing your request would cause you to exceed the maximum number of origin access identities allowed.

      ", - "error":{"httpStatusCode":400}, + "error":{ + "httpStatusCode":400, + "senderFault":true + }, "exception":true }, "TooManyContinuousDeploymentPolicies":{ @@ -10273,7 +10647,10 @@ "Message":{"shape":"string"} }, "documentation":"

      You have reached the maximum number of continuous deployment policies for this Amazon Web Services account.

      ", - "error":{"httpStatusCode":400}, + "error":{ + "httpStatusCode":400, + "senderFault":true + }, "exception":true }, "TooManyCookieNamesInWhiteList":{ @@ -10282,7 +10659,10 @@ "Message":{"shape":"string"} }, "documentation":"

      Your request contains more cookie names in the whitelist than are allowed per cache behavior.

      ", - "error":{"httpStatusCode":400}, + "error":{ + "httpStatusCode":400, + "senderFault":true + }, "exception":true }, "TooManyCookiesInCachePolicy":{ @@ -10291,7 +10671,10 @@ "Message":{"shape":"string"} }, "documentation":"

      The number of cookies in the cache policy exceeds the maximum. For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.

      ", - "error":{"httpStatusCode":400}, + "error":{ + "httpStatusCode":400, + "senderFault":true + }, "exception":true }, "TooManyCookiesInOriginRequestPolicy":{ @@ -10300,7 +10683,10 @@ "Message":{"shape":"string"} }, "documentation":"

      The number of cookies in the origin request policy exceeds the maximum. For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.

      ", - "error":{"httpStatusCode":400}, + "error":{ + "httpStatusCode":400, + "senderFault":true + }, "exception":true }, "TooManyCustomHeadersInResponseHeadersPolicy":{ @@ -10309,7 +10695,10 @@ "Message":{"shape":"string"} }, "documentation":"

      The number of custom headers in the response headers policy exceeds the maximum.

      For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.

      ", - "error":{"httpStatusCode":400}, + "error":{ + "httpStatusCode":400, + "senderFault":true + }, "exception":true }, "TooManyDistributionCNAMEs":{ @@ -10318,7 +10707,10 @@ "Message":{"shape":"string"} }, "documentation":"

      Your request contains more CNAMEs than are allowed per distribution.

      ", - "error":{"httpStatusCode":400}, + "error":{ + "httpStatusCode":400, + "senderFault":true + }, "exception":true }, "TooManyDistributions":{ @@ -10327,7 +10719,10 @@ "Message":{"shape":"string"} }, "documentation":"

      Processing your request would cause you to exceed the maximum number of distributions allowed.

      ", - "error":{"httpStatusCode":400}, + "error":{ + "httpStatusCode":400, + "senderFault":true + }, "exception":true }, "TooManyDistributionsAssociatedToCachePolicy":{ @@ -10336,7 +10731,10 @@ "Message":{"shape":"string"} }, "documentation":"

      The maximum number of distributions have been associated with the specified cache policy. For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.

      ", - "error":{"httpStatusCode":400}, + "error":{ + "httpStatusCode":400, + "senderFault":true + }, "exception":true }, "TooManyDistributionsAssociatedToFieldLevelEncryptionConfig":{ @@ -10345,7 +10743,10 @@ "Message":{"shape":"string"} }, "documentation":"

      The maximum number of distributions have been associated with the specified configuration for field-level encryption.

      ", - "error":{"httpStatusCode":400}, + "error":{ + "httpStatusCode":400, + "senderFault":true + }, "exception":true }, "TooManyDistributionsAssociatedToKeyGroup":{ @@ -10354,7 +10755,10 @@ "Message":{"shape":"string"} }, "documentation":"

      The number of distributions that reference this key group is more than the maximum allowed. For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.

      ", - "error":{"httpStatusCode":400}, + "error":{ + "httpStatusCode":400, + "senderFault":true + }, "exception":true }, "TooManyDistributionsAssociatedToOriginAccessControl":{ @@ -10363,7 +10767,10 @@ "Message":{"shape":"string"} }, "documentation":"

      The maximum number of distributions have been associated with the specified origin access control.

      For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.

      ", - "error":{"httpStatusCode":400}, + "error":{ + "httpStatusCode":400, + "senderFault":true + }, "exception":true }, "TooManyDistributionsAssociatedToOriginRequestPolicy":{ @@ -10372,7 +10779,10 @@ "Message":{"shape":"string"} }, "documentation":"

      The maximum number of distributions have been associated with the specified origin request policy. For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.

      ", - "error":{"httpStatusCode":400}, + "error":{ + "httpStatusCode":400, + "senderFault":true + }, "exception":true }, "TooManyDistributionsAssociatedToResponseHeadersPolicy":{ @@ -10381,7 +10791,10 @@ "Message":{"shape":"string"} }, "documentation":"

      The maximum number of distributions have been associated with the specified response headers policy.

      For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.

      ", - "error":{"httpStatusCode":400}, + "error":{ + "httpStatusCode":400, + "senderFault":true + }, "exception":true }, "TooManyDistributionsWithFunctionAssociations":{ @@ -10390,7 +10803,10 @@ "Message":{"shape":"string"} }, "documentation":"

      You have reached the maximum number of distributions that are associated with a CloudFront function. For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.

      ", - "error":{"httpStatusCode":400}, + "error":{ + "httpStatusCode":400, + "senderFault":true + }, "exception":true }, "TooManyDistributionsWithLambdaAssociations":{ @@ -10399,7 +10815,10 @@ "Message":{"shape":"string"} }, "documentation":"

      Processing your request would cause the maximum number of distributions with Lambda@Edge function associations per owner to be exceeded.

      ", - "error":{"httpStatusCode":400}, + "error":{ + "httpStatusCode":400, + "senderFault":true + }, "exception":true }, "TooManyDistributionsWithSingleFunctionARN":{ @@ -10408,7 +10827,10 @@ "Message":{"shape":"string"} }, "documentation":"

      The maximum number of distributions have been associated with the specified Lambda@Edge function.

      ", - "error":{"httpStatusCode":400}, + "error":{ + "httpStatusCode":400, + "senderFault":true + }, "exception":true }, "TooManyFieldLevelEncryptionConfigs":{ @@ -10417,7 +10839,10 @@ "Message":{"shape":"string"} }, "documentation":"

      The maximum number of configurations for field-level encryption have been created.

      ", - "error":{"httpStatusCode":400}, + "error":{ + "httpStatusCode":400, + "senderFault":true + }, "exception":true }, "TooManyFieldLevelEncryptionContentTypeProfiles":{ @@ -10426,7 +10851,10 @@ "Message":{"shape":"string"} }, "documentation":"

      The maximum number of content type profiles for field-level encryption have been created.

      ", - "error":{"httpStatusCode":400}, + "error":{ + "httpStatusCode":400, + "senderFault":true + }, "exception":true }, "TooManyFieldLevelEncryptionEncryptionEntities":{ @@ -10435,7 +10863,10 @@ "Message":{"shape":"string"} }, "documentation":"

      The maximum number of encryption entities for field-level encryption have been created.

      ", - "error":{"httpStatusCode":400}, + "error":{ + "httpStatusCode":400, + "senderFault":true + }, "exception":true }, "TooManyFieldLevelEncryptionFieldPatterns":{ @@ -10444,7 +10875,10 @@ "Message":{"shape":"string"} }, "documentation":"

      The maximum number of field patterns for field-level encryption have been created.

      ", - "error":{"httpStatusCode":400}, + "error":{ + "httpStatusCode":400, + "senderFault":true + }, "exception":true }, "TooManyFieldLevelEncryptionProfiles":{ @@ -10453,7 +10887,10 @@ "Message":{"shape":"string"} }, "documentation":"

      The maximum number of profiles for field-level encryption have been created.

      ", - "error":{"httpStatusCode":400}, + "error":{ + "httpStatusCode":400, + "senderFault":true + }, "exception":true }, "TooManyFieldLevelEncryptionQueryArgProfiles":{ @@ -10462,7 +10899,10 @@ "Message":{"shape":"string"} }, "documentation":"

      The maximum number of query arg profiles for field-level encryption have been created.

      ", - "error":{"httpStatusCode":400}, + "error":{ + "httpStatusCode":400, + "senderFault":true + }, "exception":true }, "TooManyFunctionAssociations":{ @@ -10471,7 +10911,10 @@ "Message":{"shape":"string"} }, "documentation":"

      You have reached the maximum number of CloudFront function associations for this distribution. For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.

      ", - "error":{"httpStatusCode":400}, + "error":{ + "httpStatusCode":400, + "senderFault":true + }, "exception":true }, "TooManyFunctions":{ @@ -10480,7 +10923,10 @@ "Message":{"shape":"string"} }, "documentation":"

      You have reached the maximum number of CloudFront functions for this Amazon Web Services account. For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.

      ", - "error":{"httpStatusCode":400}, + "error":{ + "httpStatusCode":400, + "senderFault":true + }, "exception":true }, "TooManyHeadersInCachePolicy":{ @@ -10489,7 +10935,10 @@ "Message":{"shape":"string"} }, "documentation":"

      The number of headers in the cache policy exceeds the maximum. For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.

      ", - "error":{"httpStatusCode":400}, + "error":{ + "httpStatusCode":400, + "senderFault":true + }, "exception":true }, "TooManyHeadersInForwardedValues":{ @@ -10498,7 +10947,10 @@ "Message":{"shape":"string"} }, "documentation":"

      Your request contains too many headers in forwarded values.

      ", - "error":{"httpStatusCode":400}, + "error":{ + "httpStatusCode":400, + "senderFault":true + }, "exception":true }, "TooManyHeadersInOriginRequestPolicy":{ @@ -10507,7 +10959,10 @@ "Message":{"shape":"string"} }, "documentation":"

      The number of headers in the origin request policy exceeds the maximum. For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.

      ", - "error":{"httpStatusCode":400}, + "error":{ + "httpStatusCode":400, + "senderFault":true + }, "exception":true }, "TooManyInvalidationsInProgress":{ @@ -10516,7 +10971,10 @@ "Message":{"shape":"string"} }, "documentation":"

      You have exceeded the maximum number of allowable InProgress invalidation batch requests, or invalidation objects.

      ", - "error":{"httpStatusCode":400}, + "error":{ + "httpStatusCode":400, + "senderFault":true + }, "exception":true }, "TooManyKeyGroups":{ @@ -10525,7 +10983,10 @@ "Message":{"shape":"string"} }, "documentation":"

      You have reached the maximum number of key groups for this Amazon Web Services account. For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.

      ", - "error":{"httpStatusCode":400}, + "error":{ + "httpStatusCode":400, + "senderFault":true + }, "exception":true }, "TooManyKeyGroupsAssociatedToDistribution":{ @@ -10534,7 +10995,10 @@ "Message":{"shape":"string"} }, "documentation":"

      The number of key groups referenced by this distribution is more than the maximum allowed. For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.

      ", - "error":{"httpStatusCode":400}, + "error":{ + "httpStatusCode":400, + "senderFault":true + }, "exception":true }, "TooManyLambdaFunctionAssociations":{ @@ -10543,7 +11007,10 @@ "Message":{"shape":"string"} }, "documentation":"

      Your request contains more Lambda@Edge function associations than are allowed per distribution.

      ", - "error":{"httpStatusCode":400}, + "error":{ + "httpStatusCode":400, + "senderFault":true + }, "exception":true }, "TooManyOriginAccessControls":{ @@ -10552,7 +11019,10 @@ "Message":{"shape":"string"} }, "documentation":"

      The number of origin access controls in your Amazon Web Services account exceeds the maximum allowed.

      For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.

      ", - "error":{"httpStatusCode":400}, + "error":{ + "httpStatusCode":400, + "senderFault":true + }, "exception":true }, "TooManyOriginCustomHeaders":{ @@ -10561,7 +11031,10 @@ "Message":{"shape":"string"} }, "documentation":"

      Your request contains too many origin custom headers.

      ", - "error":{"httpStatusCode":400}, + "error":{ + "httpStatusCode":400, + "senderFault":true + }, "exception":true }, "TooManyOriginGroupsPerDistribution":{ @@ -10570,7 +11043,10 @@ "Message":{"shape":"string"} }, "documentation":"

      Processing your request would cause you to exceed the maximum number of origin groups allowed.

      ", - "error":{"httpStatusCode":400}, + "error":{ + "httpStatusCode":400, + "senderFault":true + }, "exception":true }, "TooManyOriginRequestPolicies":{ @@ -10579,7 +11055,10 @@ "Message":{"shape":"string"} }, "documentation":"

      You have reached the maximum number of origin request policies for this Amazon Web Services account. For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.

      ", - "error":{"httpStatusCode":400}, + "error":{ + "httpStatusCode":400, + "senderFault":true + }, "exception":true }, "TooManyOrigins":{ @@ -10588,7 +11067,10 @@ "Message":{"shape":"string"} }, "documentation":"

      You cannot create more origins for the distribution.

      ", - "error":{"httpStatusCode":400}, + "error":{ + "httpStatusCode":400, + "senderFault":true + }, "exception":true }, "TooManyPublicKeys":{ @@ -10597,7 +11079,10 @@ "Message":{"shape":"string"} }, "documentation":"

      The maximum number of public keys for field-level encryption have been created. To create a new public key, delete one of the existing keys.

      ", - "error":{"httpStatusCode":400}, + "error":{ + "httpStatusCode":400, + "senderFault":true + }, "exception":true }, "TooManyPublicKeysInKeyGroup":{ @@ -10606,7 +11091,10 @@ "Message":{"shape":"string"} }, "documentation":"

      The number of public keys in this key group is more than the maximum allowed. For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.

      ", - "error":{"httpStatusCode":400}, + "error":{ + "httpStatusCode":400, + "senderFault":true + }, "exception":true }, "TooManyQueryStringParameters":{ @@ -10615,7 +11103,10 @@ "Message":{"shape":"string"} }, "documentation":"

      Your request contains too many query string parameters.

      ", - "error":{"httpStatusCode":400}, + "error":{ + "httpStatusCode":400, + "senderFault":true + }, "exception":true }, "TooManyQueryStringsInCachePolicy":{ @@ -10624,7 +11115,10 @@ "Message":{"shape":"string"} }, "documentation":"

      The number of query strings in the cache policy exceeds the maximum. For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.

      ", - "error":{"httpStatusCode":400}, + "error":{ + "httpStatusCode":400, + "senderFault":true + }, "exception":true }, "TooManyQueryStringsInOriginRequestPolicy":{ @@ -10633,7 +11127,10 @@ "Message":{"shape":"string"} }, "documentation":"

      The number of query strings in the origin request policy exceeds the maximum. For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.

      ", - "error":{"httpStatusCode":400}, + "error":{ + "httpStatusCode":400, + "senderFault":true + }, "exception":true }, "TooManyRealtimeLogConfigs":{ @@ -10642,7 +11139,10 @@ "Message":{"shape":"string"} }, "documentation":"

      You have reached the maximum number of real-time log configurations for this Amazon Web Services account. For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.

      ", - "error":{"httpStatusCode":400}, + "error":{ + "httpStatusCode":400, + "senderFault":true + }, "exception":true }, "TooManyRemoveHeadersInResponseHeadersPolicy":{ @@ -10651,7 +11151,10 @@ "Message":{"shape":"string"} }, "documentation":"

      The number of headers in RemoveHeadersConfig in the response headers policy exceeds the maximum.

      For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.

      ", - "error":{"httpStatusCode":400}, + "error":{ + "httpStatusCode":400, + "senderFault":true + }, "exception":true }, "TooManyResponseHeadersPolicies":{ @@ -10660,7 +11163,10 @@ "Message":{"shape":"string"} }, "documentation":"

      You have reached the maximum number of response headers policies for this Amazon Web Services account.

      For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.

      ", - "error":{"httpStatusCode":400}, + "error":{ + "httpStatusCode":400, + "senderFault":true + }, "exception":true }, "TooManyStreamingDistributionCNAMEs":{ @@ -10669,7 +11175,10 @@ "Message":{"shape":"string"} }, "documentation":"

      Your request contains more CNAMEs than are allowed per distribution.

      ", - "error":{"httpStatusCode":400}, + "error":{ + "httpStatusCode":400, + "senderFault":true + }, "exception":true }, "TooManyStreamingDistributions":{ @@ -10678,7 +11187,10 @@ "Message":{"shape":"string"} }, "documentation":"

      Processing your request would cause you to exceed the maximum number of streaming distributions allowed.

      ", - "error":{"httpStatusCode":400}, + "error":{ + "httpStatusCode":400, + "senderFault":true + }, "exception":true }, "TooManyTrustedSigners":{ @@ -10687,7 +11199,10 @@ "Message":{"shape":"string"} }, "documentation":"

      Your request contains more trusted signers than are allowed per distribution.

      ", - "error":{"httpStatusCode":400}, + "error":{ + "httpStatusCode":400, + "senderFault":true + }, "exception":true }, "TrafficConfig":{ @@ -10715,7 +11230,10 @@ "Message":{"shape":"string"} }, "documentation":"

      The specified key group does not exist.

      ", - "error":{"httpStatusCode":400}, + "error":{ + "httpStatusCode":400, + "senderFault":true + }, "exception":true }, "TrustedKeyGroupIdList":{ @@ -10753,7 +11271,10 @@ "Message":{"shape":"string"} }, "documentation":"

      One or more of your trusted signers don't exist.

      ", - "error":{"httpStatusCode":400}, + "error":{ + "httpStatusCode":400, + "senderFault":true + }, "exception":true }, "TrustedSigners":{ @@ -10784,7 +11305,10 @@ "Message":{"shape":"string"} }, "documentation":"

      This operation is not supported in this region.

      ", - "error":{"httpStatusCode":400}, + "error":{ + "httpStatusCode":400, + "senderFault":true + }, "exception":true }, "UntagResourceRequest":{ @@ -11118,10 +11642,10 @@ "UpdateFunctionRequest":{ "type":"structure", "required":[ + "Name", "IfMatch", "FunctionConfig", - "FunctionCode", - "Name" + "FunctionCode" ], "members":{ "Name":{ @@ -11550,20 +12074,35 @@ }, "aliasString":{ "type":"string", - "max":253 + "max":253, + "min":0 + }, + "boolean":{ + "type":"boolean", + "box":true }, - "boolean":{"type":"boolean"}, "distributionIdString":{ "type":"string", - "max":25 + "max":25, + "min":0 + }, + "float":{ + "type":"float", + "box":true + }, + "integer":{ + "type":"integer", + "box":true }, - "float":{"type":"float"}, - "integer":{"type":"integer"}, "listConflictingAliasesMaxItemsInteger":{ "type":"integer", + "box":true, "max":100 }, - "long":{"type":"long"}, + "long":{ + "type":"long", + "box":true + }, "sensitiveStringType":{ "type":"string", "sensitive":true @@ -11571,5 +12110,5 @@ "string":{"type":"string"}, "timestamp":{"type":"timestamp"} }, - "documentation":"Amazon CloudFront

      This is the Amazon CloudFront API Reference. This guide is for developers who need detailed information about CloudFront API actions, data types, and errors. For detailed information about CloudFront features, see the Amazon CloudFront Developer Guide.

      " + "documentation":"

      Amazon CloudFront

      This is the Amazon CloudFront API Reference. This guide is for developers who need detailed information about CloudFront API actions, data types, and errors. For detailed information about CloudFront features, see the Amazon CloudFront Developer Guide.

      " } diff --git a/tools/code-generation/api-descriptions/inspector2-2020-06-08.normal.json b/tools/code-generation/api-descriptions/inspector2-2020-06-08.normal.json index fe597885bc2..613b20592bf 100644 --- a/tools/code-generation/api-descriptions/inspector2-2020-06-08.normal.json +++ b/tools/code-generation/api-descriptions/inspector2-2020-06-08.normal.json @@ -647,7 +647,7 @@ {"shape":"ThrottlingException"}, {"shape":"InternalServerException"} ], - "documentation":"

      Lists coverage details for you environment.

      " + "documentation":"

      Lists coverage details for your environment.

      " }, "ListCoverageStatistics":{ "name":"ListCoverageStatistics", @@ -891,7 +891,7 @@ {"shape":"ThrottlingException"}, {"shape":"InternalServerException"} ], - "documentation":"

      Stops a CIS session. This API is used by the Amazon Inspector SSM plugin to communicate with the Amazon Inspector service. The Amazon Inspector SSM plugin calls this API to start a CIS scan session for the scan ID supplied by the service.

      ", + "documentation":"

      Stops a CIS session. This API is used by the Amazon Inspector SSM plugin to communicate with the Amazon Inspector service. The Amazon Inspector SSM plugin calls this API to stop a CIS scan session for the scan ID supplied by the service.

      ", "idempotent":true }, "TagResource":{ @@ -1061,7 +1061,7 @@ "members":{ "message":{"shape":"String"} }, - "documentation":"

      You do not have sufficient access to perform this action.

      For Enable, you receive this error if you attempt to use a feature in an unsupported Amazon Web Services Region.

      ", + "documentation":"

      You do not have sufficient access to perform this action.

      ", "error":{ "httpStatusCode":403, "senderFault":true @@ -3049,7 +3049,7 @@ }, "scanMode":{ "shape":"CoverageStringFilterList", - "documentation":"

      The filter to search for Amazon EC2 instance coverage by scan mode. Valid values are EC2_SSM_AGENT_BASED and EC2_HYBRID.

      " + "documentation":"

      The filter to search for Amazon EC2 instance coverage by scan mode. Valid values are EC2_SSM_AGENT_BASED and EC2_AGENTLESS.

      " }, "scanStatusCode":{ "shape":"CoverageStringFilterList", @@ -3338,7 +3338,10 @@ "shape":"ResourceFilterCriteria", "documentation":"

      The resource filter criteria for the software bill of materials (SBOM) report.

      " }, - "s3Destination":{"shape":"Destination"} + "s3Destination":{ + "shape":"Destination", + "documentation":"

      Contains details of the Amazon S3 bucket and KMS key used to export findings.

      " + } } }, "CreateSbomExportResponse":{ @@ -4671,7 +4674,10 @@ "FindingDetail":{ "type":"structure", "members":{ - "cisaData":{"shape":"CisaData"}, + "cisaData":{ + "shape":"CisaData", + "documentation":"

      The Cybersecurity and Infrastructure Security Agency (CISA) details for a specific vulnerability.

      " + }, "cwes":{ "shape":"Cwes", "documentation":"

      The Common Weakness Enumerations (CWEs) associated with the vulnerability.

      " @@ -4684,7 +4690,10 @@ "shape":"EvidenceList", "documentation":"

      Information on the evidence of the vulnerability.

      " }, - "exploitObserved":{"shape":"ExploitObserved"}, + "exploitObserved":{ + "shape":"ExploitObserved", + "documentation":"

      Contains information on when this exploit was observed.

      " + }, "findingArn":{ "shape":"FindingArn", "documentation":"

      The finding ARN that the vulnerability details are associated with.

      " @@ -5216,7 +5225,10 @@ "shape":"ReportId", "documentation":"

      The report ID of the software bill of materials (SBOM) report.

      " }, - "s3Destination":{"shape":"Destination"}, + "s3Destination":{ + "shape":"Destination", + "documentation":"

      Contains details of the Amazon S3 bucket and KMS key used to export findings

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

      The status of the software bill of materials (SBOM) report.

      " @@ -5422,7 +5434,10 @@ "shape":"String", "documentation":"

      The runtimes included in the aggregation results.

      " }, - "severityCounts":{"shape":"SeverityCounts"} + "severityCounts":{ + "shape":"SeverityCounts", + "documentation":"

      An object that contains the counts of aggregated finding per severity.

      " + } }, "documentation":"

      A response that contains the results of an Amazon Web Services Lambda function finding aggregation.

      " }, @@ -5507,7 +5522,10 @@ "shape":"NonEmptyString", "documentation":"

      The Resource ID of the Amazon Web Services Lambda function layer.

      " }, - "severityCounts":{"shape":"SeverityCounts"} + "severityCounts":{ + "shape":"SeverityCounts", + "documentation":"

      An object that contains the counts of aggregated finding per severity.

      " + } }, "documentation":"

      A response that contains the results of an Amazon Web Services Lambda function layer finding aggregation.

      " }, @@ -6483,6 +6501,10 @@ "shape":"NumberFilter", "documentation":"

      An object that contains details on the package epoch to filter on.

      " }, + "filePath":{ + "shape":"StringFilter", + "documentation":"

      An object that contains details on the package file path to filter on.

      " + }, "name":{ "shape":"StringFilter", "documentation":"

      An object that contains details on the name of the package to filter on.

      " @@ -6491,7 +6513,10 @@ "shape":"StringFilter", "documentation":"

      An object that contains details on the package release to filter on.

      " }, - "sourceLambdaLayerArn":{"shape":"StringFilter"}, + "sourceLambdaLayerArn":{ + "shape":"StringFilter", + "documentation":"

      An object that describes the details of a string filter.

      " + }, "sourceLayerHash":{ "shape":"StringFilter", "documentation":"

      An object that contains details on the source layer hash to filter on.

      " @@ -6528,7 +6553,8 @@ "PYTHONPKG", "NODEPKG", "POM", - "GEMSPEC" + "GEMSPEC", + "DOTNET_CORE" ] }, "PackageName":{ @@ -7073,8 +7099,14 @@ "shape":"State", "documentation":"

      An object detailing the state of Amazon Inspector scanning for Amazon ECR resources.

      " }, - "lambda":{"shape":"State"}, - "lambdaCode":{"shape":"State"} + "lambda":{ + "shape":"State", + "documentation":"

      An object that described the state of Amazon Inspector scans for an account.

      " + }, + "lambdaCode":{ + "shape":"State", + "documentation":"

      An object that described the state of Amazon Inspector scans for an account.

      " + } }, "documentation":"

      Details the state of Amazon Inspector for each resource type Amazon Inspector scans.

      " }, @@ -7181,7 +7213,13 @@ "NODEJS_18_X", "GO_1_X", "JAVA_17", - "PYTHON_3_10" + "PYTHON_3_10", + "PYTHON_3_11", + "DOTNETCORE_3_1", + "DOTNET_6", + "DOTNET_7", + "RUBY_2_7", + "RUBY_3_2" ] }, "SbomReportFormat":{ diff --git a/tools/code-generation/api-descriptions/lambda-2015-03-31.normal.json b/tools/code-generation/api-descriptions/lambda-2015-03-31.normal.json index 27494f9cece..8a09127abda 100644 --- a/tools/code-generation/api-descriptions/lambda-2015-03-31.normal.json +++ b/tools/code-generation/api-descriptions/lambda-2015-03-31.normal.json @@ -5452,7 +5452,8 @@ "nodejs20.x", "provided.al2023", "python3.12", - "java21" + "java21", + "python3.13" ] }, "RuntimeVersionArn":{ diff --git a/tools/code-generation/api-descriptions/opensearch-2021-01-01.normal.json b/tools/code-generation/api-descriptions/opensearch-2021-01-01.normal.json index 0dd3f5a57a1..400f99658b3 100644 --- a/tools/code-generation/api-descriptions/opensearch-2021-01-01.normal.json +++ b/tools/code-generation/api-descriptions/opensearch-2021-01-01.normal.json @@ -79,6 +79,24 @@ ], "documentation":"

      Associates a package with an Amazon OpenSearch Service domain. For more information, see Custom packages for Amazon OpenSearch Service.

      " }, + "AssociatePackages":{ + "name":"AssociatePackages", + "http":{ + "method":"POST", + "requestUri":"/2021-01-01/packages/associateMultiple" + }, + "input":{"shape":"AssociatePackagesRequest"}, + "output":{"shape":"AssociatePackagesResponse"}, + "errors":[ + {"shape":"BaseException"}, + {"shape":"InternalException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ValidationException"}, + {"shape":"ConflictException"}, + {"shape":"DisabledOperationException"} + ], + "documentation":"

      Operation in the Amazon OpenSearch Service API for associating multiple packages with a domain simultaneously.

      " + }, "AuthorizeVpcEndpointAccess":{ "name":"AuthorizeVpcEndpointAccess", "http":{ @@ -597,6 +615,24 @@ ], "documentation":"

      Removes a package from the specified Amazon OpenSearch Service domain. The package can't be in use with any OpenSearch index for the dissociation to succeed. The package is still available in OpenSearch Service for association later. For more information, see Custom packages for Amazon OpenSearch Service.

      " }, + "DissociatePackages":{ + "name":"DissociatePackages", + "http":{ + "method":"POST", + "requestUri":"/2021-01-01/packages/dissociateMultiple" + }, + "input":{"shape":"DissociatePackagesRequest"}, + "output":{"shape":"DissociatePackagesResponse"}, + "errors":[ + {"shape":"BaseException"}, + {"shape":"InternalException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ValidationException"}, + {"shape":"ConflictException"}, + {"shape":"DisabledOperationException"} + ], + "documentation":"

      Dissociates multiple packages from a domain simulatneously.

      " + }, "GetApplication":{ "name":"GetApplication", "http":{ @@ -1103,6 +1139,23 @@ ], "documentation":"

      Updates a package for use with Amazon OpenSearch Service domains. For more information, see Custom packages for Amazon OpenSearch Service.

      " }, + "UpdatePackageScope":{ + "name":"UpdatePackageScope", + "http":{ + "method":"POST", + "requestUri":"/2021-01-01/packages/updateScope" + }, + "input":{"shape":"UpdatePackageScopeRequest"}, + "output":{"shape":"UpdatePackageScopeResponse"}, + "errors":[ + {"shape":"BaseException"}, + {"shape":"InternalException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ValidationException"}, + {"shape":"DisabledOperationException"} + ], + "documentation":"

      Updates the scope of a package. Scope of the package defines users who can view and associate a package.

      " + }, "UpdateScheduledAction":{ "name":"UpdateScheduledAction", "http":{ @@ -1582,6 +1635,14 @@ "documentation":"

      Name of the domain to associate the package with.

      ", "location":"uri", "locationName":"DomainName" + }, + "PrerequisitePackageIDList":{ + "shape":"PackageIDList", + "documentation":"

      A list of package IDs that must be associated with the domain before the package specified in the request can be associated.

      " + }, + "AssociationConfiguration":{ + "shape":"PackageAssociationConfiguration", + "documentation":"

      The configuration for associating a package with an Amazon OpenSearch Service domain.

      " } }, "documentation":"

      Container for the request parameters to the AssociatePackage operation.

      " @@ -1596,6 +1657,29 @@ }, "documentation":"

      Container for the response returned by the AssociatePackage operation.

      " }, + "AssociatePackagesRequest":{ + "type":"structure", + "required":[ + "PackageList", + "DomainName" + ], + "members":{ + "PackageList":{ + "shape":"PackageDetailsForAssociationList", + "documentation":"

      A list of packages and their prerequisites to be associated with a domain.

      " + }, + "DomainName":{"shape":"DomainName"} + } + }, + "AssociatePackagesResponse":{ + "type":"structure", + "members":{ + "DomainPackageDetailsList":{ + "shape":"DomainPackageDetailsList", + "documentation":"

      List of information about packages that are associated with a domain.

      " + } + } + }, "AuthorizeVpcEndpointAccessRequest":{ "type":"structure", "required":["DomainName"], @@ -2546,6 +2630,22 @@ "PackageSource":{ "shape":"PackageSource", "documentation":"

      The Amazon S3 location from which to import the package.

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

      The configuration parameters for the package being created.

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

      The version of the Amazon OpenSearch Service engine for which is compatible with the package. This can only be specified for package type ZIP-PLUGIN

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

      The vending options for the package being created. They determine if the package can be vended to other users.

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

      The encryption parameters for the package being created.

      " } }, "documentation":"

      Container for request parameters to the CreatePackage operation.

      " @@ -3256,7 +3356,8 @@ "PackageName", "PackageStatus", "PackageType", - "EngineVersion" + "EngineVersion", + "PackageOwner" ] }, "DescribePackagesFilterValue":{ @@ -3445,6 +3546,29 @@ }, "documentation":"

      Container for the response returned by an DissociatePackage operation.

      " }, + "DissociatePackagesRequest":{ + "type":"structure", + "required":[ + "PackageList", + "DomainName" + ], + "members":{ + "PackageList":{ + "shape":"PackageIDList", + "documentation":"

      A list of package IDs to be dissociated from a domain.

      " + }, + "DomainName":{"shape":"DomainName"} + } + }, + "DissociatePackagesResponse":{ + "type":"structure", + "members":{ + "DomainPackageDetailsList":{ + "shape":"DomainPackageDetailsList", + "documentation":"

      A list of package details for the packages that were dissociated from the domain.

      " + } + } + }, "DomainArn":{ "type":"string", "max":512, @@ -3763,6 +3887,10 @@ "shape":"PackageVersion", "documentation":"

      The current version of the package.

      " }, + "PrerequisitePackageIDList":{ + "shape":"PackageIDList", + "documentation":"

      A list of package IDs that must be associated with the domain before or with the package can be associated.

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

      The relative path of the package on the OpenSearch Service cluster nodes. This is synonym_path when the package is for synonym files.

      " @@ -3770,6 +3898,10 @@ "ErrorDetails":{ "shape":"ErrorDetails", "documentation":"

      Additional information if the package is in an error state. Null otherwise.

      " + }, + "AssociationConfiguration":{ + "shape":"PackageAssociationConfiguration", + "documentation":"

      The configuration for associating a package with an Amazon OpenSearch Service domain.

      " } }, "documentation":"

      Information about a package that is associated with a domain. For more information, see Custom packages for Amazon OpenSearch Service.

      " @@ -4848,6 +4980,21 @@ }, "documentation":"

      Describes the JWT options configured for the domain.

      " }, + "KeyStoreAccessOption":{ + "type":"structure", + "required":["KeyStoreAccessEnabled"], + "members":{ + "KeyAccessRoleArn":{ + "shape":"RoleArn", + "documentation":"

      Role ARN to access the KeyStore Key

      " + }, + "KeyStoreAccessEnabled":{ + "shape":"Boolean", + "documentation":"

      This indicates whether Key Store access is enabled

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

      The configuration parameters to enable access to the key store required by the package.

      " + }, "KmsKeyId":{ "type":"string", "max":500, @@ -4855,6 +5002,11 @@ "pattern":".*" }, "LastUpdated":{"type":"timestamp"}, + "LicenseFilepath":{ + "type":"string", + "max":256, + "pattern":"^(?!.*\\/\\.{2,})(?!.*\\.\\.)[a-zA-Z0-9_.-]+(?:\\/[a-zA-Z0-9_.-]+)*$" + }, "LimitExceededException":{ "type":"structure", "members":{ @@ -5911,6 +6063,42 @@ "min":12, "pattern":"[0-9]+" }, + "PackageAssociationConfiguration":{ + "type":"structure", + "members":{ + "KeyStoreAccessOption":{ + "shape":"KeyStoreAccessOption", + "documentation":"

      The configuration parameters to enable accessing the key store required by the package.

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

      The configuration for associating a package with a domain.

      " + }, + "PackageConfiguration":{ + "type":"structure", + "required":[ + "LicenseRequirement", + "ConfigurationRequirement" + ], + "members":{ + "LicenseRequirement":{ + "shape":"RequirementLevel", + "documentation":"

      The license requirements for the package.

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

      The relative file path for the license associated with the package.

      " + }, + "ConfigurationRequirement":{ + "shape":"RequirementLevel", + "documentation":"

      The configuration requirements for the package.

      " + }, + "RequiresRestartForConfigurationUpdate":{ + "shape":"Boolean", + "documentation":"

      This indicates whether a B/G deployment is required for updating the configuration that the plugin is prerequisite for.

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

      The configuration parameters for a package.

      " + }, "PackageDescription":{ "type":"string", "max":1024 @@ -5961,17 +6149,79 @@ "AvailablePluginProperties":{ "shape":"PluginProperties", "documentation":"

      If the package is a ZIP-PLUGIN package, additional information about plugin properties.

      " + }, + "AvailablePackageConfiguration":{ + "shape":"PackageConfiguration", + "documentation":"

      This represents the available configuration parameters for the package.

      " + }, + "AllowListedUserList":{ + "shape":"PackageUserList", + "documentation":"

      A list of users who are allowed to view and associate the package. This field is only visible to the owner of a package.

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

      The owner of the package who is allowed to create/update a package and add users to the package scope.

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

      Package Vending Options for a package.

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

      Package Encryption Options for a package.

      " } }, "documentation":"

      Basic information about a package.

      " }, + "PackageDetailsForAssociation":{ + "type":"structure", + "required":["PackageID"], + "members":{ + "PackageID":{ + "shape":"PackageID", + "documentation":"

      Internal ID of the package that you want to associate with a domain.

      " + }, + "PrerequisitePackageIDList":{ + "shape":"PackageIDList", + "documentation":"

      List of package IDs that must be associated with the domain with or before the package can be associated.

      " + }, + "AssociationConfiguration":{ + "shape":"PackageAssociationConfiguration", + "documentation":"

      The configuration parameters for associating the package with a domain.

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

      Details of a package that is associated with a domain.

      " + }, + "PackageDetailsForAssociationList":{ + "type":"list", + "member":{"shape":"PackageDetailsForAssociation"} + }, "PackageDetailsList":{ "type":"list", "member":{"shape":"PackageDetails"} }, + "PackageEncryptionOptions":{ + "type":"structure", + "required":["EncryptionEnabled"], + "members":{ + "KmsKeyIdentifier":{ + "shape":"KmsKeyId", + "documentation":"

      KMS key ID for encrypting the package.

      " + }, + "EncryptionEnabled":{ + "shape":"Boolean", + "documentation":"

      This indicates whether encryption is enabled for the package.

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

      Encryption options for a package.

      " + }, "PackageID":{ "type":"string", - "pattern":"^([FG][0-9]+)$" + "pattern":"^([FG][0-9]+)$|^(pkg-[a-f0-9]+)$" + }, + "PackageIDList":{ + "type":"list", + "member":{"shape":"PackageID"} }, "PackageName":{ "type":"string", @@ -5979,6 +6229,18 @@ "min":3, "pattern":"[a-z][a-z0-9\\-]+" }, + "PackageOwner":{ + "type":"string", + "max":1024 + }, + "PackageScopeOperationEnum":{ + "type":"string", + "enum":[ + "ADD", + "OVERRIDE", + "REMOVE" + ] + }, "PackageSource":{ "type":"structure", "members":{ @@ -6010,9 +6272,32 @@ "type":"string", "enum":[ "TXT-DICTIONARY", - "ZIP-PLUGIN" + "ZIP-PLUGIN", + "PACKAGE-LICENSE", + "PACKAGE-CONFIG" ] }, + "PackageUser":{ + "type":"string", + "max":12, + "min":6, + "pattern":"^[0-9]{12}$|^GLOBAL$" + }, + "PackageUserList":{ + "type":"list", + "member":{"shape":"PackageUser"} + }, + "PackageVendingOptions":{ + "type":"structure", + "required":["VendingEnabled"], + "members":{ + "VendingEnabled":{ + "shape":"Boolean", + "documentation":"

      This indicates whether vending is enabled for the package to determine if package can be used by other users.

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

      The vending options for a package to determine if the package can be used by other users.

      " + }, "PackageVersion":{"type":"string"}, "PackageVersionHistory":{ "type":"structure", @@ -6032,6 +6317,10 @@ "PluginProperties":{ "shape":"PluginProperties", "documentation":"

      Additional information about plugin properties if the package is a ZIP-PLUGIN package.

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

      The configuration details for a specific version of a package.

      " } }, "documentation":"

      Details about a package version.

      " @@ -6218,6 +6507,14 @@ "min":1, "pattern":"^([\\s\\S]*)$" }, + "RequirementLevel":{ + "type":"string", + "enum":[ + "REQUIRED", + "OPTIONAL", + "NONE" + ] + }, "ReservationToken":{ "type":"string", "max":64, @@ -7171,6 +7468,14 @@ "CommitMessage":{ "shape":"CommitMessage", "documentation":"

      Commit message for the updated file, which is shown as part of GetPackageVersionHistoryResponse.

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

      The updated configuration details for a package.

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

      Encryption options for a package.

      " } }, "documentation":"

      Container for request parameters to the UpdatePackage operation.

      " @@ -7185,6 +7490,45 @@ }, "documentation":"

      Container for the response returned by the UpdatePackage operation.

      " }, + "UpdatePackageScopeRequest":{ + "type":"structure", + "required":[ + "PackageID", + "Operation", + "PackageUserList" + ], + "members":{ + "PackageID":{ + "shape":"PackageID", + "documentation":"

      ID of the package whose scope is being updated.

      " + }, + "Operation":{ + "shape":"PackageScopeOperationEnum", + "documentation":"

      The operation to perform on the package scope (e.g., add/remove/override users).

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

      List of users to be added or removed from the package scope.

      " + } + } + }, + "UpdatePackageScopeResponse":{ + "type":"structure", + "members":{ + "PackageID":{ + "shape":"PackageID", + "documentation":"

      ID of the package whose scope was updated.

      " + }, + "Operation":{ + "shape":"PackageScopeOperationEnum", + "documentation":"

      The operation that was performed on the package scope.

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

      List of users who have access to the package after the scope update.

      " + } + } + }, "UpdateScheduledActionRequest":{ "type":"structure", "required":[ diff --git a/tools/code-generation/api-descriptions/outposts-2019-12-03.normal.json b/tools/code-generation/api-descriptions/outposts-2019-12-03.normal.json index 522bc7f6a27..eae3dbe23a2 100644 --- a/tools/code-generation/api-descriptions/outposts-2019-12-03.normal.json +++ b/tools/code-generation/api-descriptions/outposts-2019-12-03.normal.json @@ -278,6 +278,22 @@ ], "documentation":"

      Gets the site address of the specified site.

      " }, + "ListAssetInstances":{ + "name":"ListAssetInstances", + "http":{ + "method":"GET", + "requestUri":"/outposts/{OutpostId}/assetInstances" + }, + "input":{"shape":"ListAssetInstancesInput"}, + "output":{"shape":"ListAssetInstancesOutput"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"NotFoundException"}, + {"shape":"InternalServerException"} + ], + "documentation":"

      A list of Amazon EC2 instances, belonging to all accounts, running on the specified Outpost. Does not include Amazon EBS or Amazon S3 instances.

      " + }, "ListAssets":{ "name":"ListAssets", "http":{ @@ -294,6 +310,22 @@ ], "documentation":"

      Lists the hardware assets for the specified Outpost.

      Use filters to return specific results. If you specify multiple filters, the results include only the resources that match all of the specified filters. For a filter where you can specify multiple values, the results include items that match any of the values that you specify for the filter.

      " }, + "ListBlockingInstancesForCapacityTask":{ + "name":"ListBlockingInstancesForCapacityTask", + "http":{ + "method":"GET", + "requestUri":"/outposts/{OutpostId}/capacity/{CapacityTaskId}/blockingInstances" + }, + "input":{"shape":"ListBlockingInstancesForCapacityTaskInput"}, + "output":{"shape":"ListBlockingInstancesForCapacityTaskOutput"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"NotFoundException"}, + {"shape":"InternalServerException"} + ], + "documentation":"

      A list of Amazon EC2 instances running on the Outpost and belonging to the account that initiated the capacity task. Use this list to specify the instances you cannot stop to free up capacity to run the capacity task.

      " + }, "ListCapacityTasks":{ "name":"ListCapacityTasks", "http":{ @@ -401,7 +433,7 @@ {"shape":"InternalServerException"}, {"shape":"ConflictException"} ], - "documentation":"

      Starts the specified capacity task. You can have one active capacity task for an order.

      " + "documentation":"

      Starts the specified capacity task. You can have one active capacity task per order or Outpost.

      " }, "StartConnection":{ "name":"StartConnection", @@ -519,6 +551,21 @@ } }, "shapes":{ + "AWSServiceName":{ + "type":"string", + "enum":[ + "AWS", + "EC2", + "ELASTICACHE", + "ELB", + "RDS", + "ROUTE53" + ] + }, + "AWSServiceNameList":{ + "type":"list", + "member":{"shape":"AWSServiceName"} + }, "AccessDeniedException":{ "type":"structure", "members":{ @@ -535,6 +582,10 @@ "min":12, "pattern":"\\d{12}" }, + "AccountIdList":{ + "type":"list", + "member":{"shape":"AccountId"} + }, "Address":{ "type":"structure", "required":[ @@ -628,6 +679,10 @@ "min":1, "pattern":"^(\\w+)$" }, + "AssetIdList":{ + "type":"list", + "member":{"shape":"AssetId"} + }, "AssetInfo":{ "type":"structure", "members":{ @@ -654,6 +709,55 @@ }, "documentation":"

      Information about hardware assets.

      " }, + "AssetInstance":{ + "type":"structure", + "members":{ + "InstanceId":{ + "shape":"InstanceId", + "documentation":"

      The ID of the instance.

      " + }, + "InstanceType":{ + "shape":"OutpostInstanceType", + "documentation":"

      The type of instance.

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

      The ID of the asset.

      " + }, + "AccountId":{"shape":"AccountId"}, + "AwsServiceName":{ + "shape":"AWSServiceName", + "documentation":"

      The Amazon Web Services service name of the instance.

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

      An Amazon EC2 instance.

      " + }, + "AssetInstanceCapacityList":{ + "type":"list", + "member":{"shape":"AssetInstanceTypeCapacity"} + }, + "AssetInstanceList":{ + "type":"list", + "member":{"shape":"AssetInstance"} + }, + "AssetInstanceTypeCapacity":{ + "type":"structure", + "required":[ + "InstanceType", + "Count" + ], + "members":{ + "InstanceType":{ + "shape":"InstanceTypeName", + "documentation":"

      The type of instance.

      " + }, + "Count":{ + "shape":"InstanceTypeCount", + "documentation":"

      The number of each instance type.

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

      The capacity for each instance type.

      " + }, "AssetListDefinition":{ "type":"list", "member":{"shape":"AssetInfo"} @@ -706,6 +810,25 @@ "max":5, "min":1 }, + "BlockingInstance":{ + "type":"structure", + "members":{ + "InstanceId":{ + "shape":"InstanceId", + "documentation":"

      The ID of the blocking instance.

      " + }, + "AccountId":{"shape":"AccountId"}, + "AwsServiceName":{ + "shape":"AWSServiceName", + "documentation":"

      The Amazon Web Services service name that owns the specified blocking instance.

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

      A running Amazon EC2 instance that can be stopped to free up capacity needed to run the capacity task.

      " + }, + "BlockingInstancesList":{ + "type":"list", + "member":{"shape":"BlockingInstance"} + }, "CIDR":{ "type":"string", "max":18, @@ -776,7 +899,13 @@ }, "CapacityTaskFailureType":{ "type":"string", - "enum":["UNSUPPORTED_CAPACITY_CONFIGURATION"] + "enum":[ + "UNSUPPORTED_CAPACITY_CONFIGURATION", + "UNEXPECTED_ASSET_STATE", + "BLOCKING_INSTANCES_NOT_EVACUATED", + "INTERNAL_SERVER_ERROR", + "RESOURCE_NOT_FOUND" + ] }, "CapacityTaskId":{ "type":"string", @@ -795,6 +924,8 @@ "IN_PROGRESS", "FAILED", "COMPLETED", + "WAITING_FOR_EVACUATION", + "CANCELLATION_IN_PROGRESS", "CANCELLED" ] }, @@ -936,6 +1067,14 @@ "InstanceFamilies":{ "shape":"InstanceFamilies", "documentation":"

      A list of the names of instance families that are currently associated with a given asset.

      " + }, + "InstanceTypeCapacities":{ + "shape":"AssetInstanceCapacityList", + "documentation":"

      The instance type capacities configured for this asset. This can be changed through a capacity task.

      " + }, + "MaxVcpus":{ + "shape":"VCPUCount", + "documentation":"

      The maximum number of vCPUs possible for the specified asset.

      " } }, "documentation":"

      Information about compute hardware assets.

      " @@ -1247,6 +1386,10 @@ "shape":"RequestedInstancePools", "documentation":"

      List of instance pools requested in the capacity task.

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

      Instances that the user specified they cannot stop in order to free up the capacity needed to run the capacity task.

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

      Performs a dry run to determine if you are above or below instance capacity.

      " @@ -1270,6 +1413,10 @@ "LastModifiedDate":{ "shape":"ISO8601Timestamp", "documentation":"

      The date the capacity task was last modified.

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

      User-specified option in case an instance is blocking the capacity task from running. Shows one of the following options:

      • WAIT_FOR_EVACUATION - Checks every 10 minutes over 48 hours to determine if instances have stopped and capacity is available to complete the task.

      • FAIL_TASK - The capacity task fails.

      " } } }, @@ -1391,10 +1538,7 @@ }, "GetOutpostSupportedInstanceTypesInput":{ "type":"structure", - "required":[ - "OutpostIdentifier", - "OrderId" - ], + "required":["OutpostIdentifier"], "members":{ "OutpostIdentifier":{ "shape":"OutpostIdentifier", @@ -1501,6 +1645,16 @@ "min":1, "pattern":"^(?:.{1,200}/)?(?:[a-z0-9-_A-Z])+$" }, + "InstanceId":{ + "type":"string", + "max":32, + "min":11, + "pattern":"^i-[0-9a-z]+$" + }, + "InstanceIdList":{ + "type":"list", + "member":{"shape":"InstanceId"} + }, "InstanceType":{ "type":"string", "documentation":"

      The instance type.

      " @@ -1550,6 +1704,24 @@ "min":1, "pattern":"^[a-z0-9\\-]+\\.[a-z0-9\\-]+$" }, + "InstancesToExclude":{ + "type":"structure", + "members":{ + "Instances":{ + "shape":"InstanceIdList", + "documentation":"

      List of user-specified instances that must not be stopped.

      " + }, + "AccountIds":{ + "shape":"AccountIdList", + "documentation":"

      IDs of the accounts that own each instance that must not be stopped.

      " + }, + "Services":{ + "shape":"AWSServiceNameList", + "documentation":"

      Names of the services that own each instance that must not be stopped in order to free up the capacity needed to run the capacity task.

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

      User-specified instances that must not be stopped. These instances will not appear in the list of instances that Amazon Web Services recommends to stop in order to free up capacity.

      " + }, "InternalServerException":{ "type":"structure", "members":{ @@ -1679,6 +1851,62 @@ "key":{"shape":"LineItemStatus"}, "value":{"shape":"LineItemQuantity"} }, + "ListAssetInstancesInput":{ + "type":"structure", + "required":["OutpostIdentifier"], + "members":{ + "OutpostIdentifier":{ + "shape":"OutpostIdentifier", + "documentation":"

      The ID of the Outpost.

      ", + "location":"uri", + "locationName":"OutpostId" + }, + "AssetIdFilter":{ + "shape":"AssetIdList", + "documentation":"

      Filters the results by asset ID.

      ", + "location":"querystring", + "locationName":"AssetIdFilter" + }, + "InstanceTypeFilter":{ + "shape":"OutpostInstanceTypeList", + "documentation":"

      Filters the results by instance ID.

      ", + "location":"querystring", + "locationName":"InstanceTypeFilter" + }, + "AccountIdFilter":{ + "shape":"AccountIdList", + "documentation":"

      Filters the results by account ID.

      ", + "location":"querystring", + "locationName":"AccountIdFilter" + }, + "AwsServiceFilter":{ + "shape":"AWSServiceNameList", + "documentation":"

      Filters the results by Amazon Web Services service.

      ", + "location":"querystring", + "locationName":"AwsServiceFilter" + }, + "MaxResults":{ + "shape":"MaxResults1000", + "location":"querystring", + "locationName":"MaxResults" + }, + "NextToken":{ + "shape":"Token", + "location":"querystring", + "locationName":"NextToken" + } + } + }, + "ListAssetInstancesOutput":{ + "type":"structure", + "members":{ + "AssetInstances":{ + "shape":"AssetInstanceList", + "documentation":"

      List of instances owned by all accounts on the Outpost. Does not include Amazon EBS or Amazon S3 instances.

      " + }, + "NextToken":{"shape":"Token"} + } + }, "ListAssetsInput":{ "type":"structure", "required":["OutpostIdentifier"], @@ -1723,6 +1951,47 @@ "NextToken":{"shape":"Token"} } }, + "ListBlockingInstancesForCapacityTaskInput":{ + "type":"structure", + "required":[ + "OutpostIdentifier", + "CapacityTaskId" + ], + "members":{ + "OutpostIdentifier":{ + "shape":"OutpostIdentifier", + "documentation":"

      The ID or ARN of the Outpost associated with the specified capacity task.

      ", + "location":"uri", + "locationName":"OutpostId" + }, + "CapacityTaskId":{ + "shape":"CapacityTaskId", + "documentation":"

      The ID of the capacity task.

      ", + "location":"uri", + "locationName":"CapacityTaskId" + }, + "MaxResults":{ + "shape":"MaxResults1000", + "location":"querystring", + "locationName":"MaxResults" + }, + "NextToken":{ + "shape":"Token", + "location":"querystring", + "locationName":"NextToken" + } + } + }, + "ListBlockingInstancesForCapacityTaskOutput":{ + "type":"structure", + "members":{ + "BlockingInstances":{ + "shape":"BlockingInstancesList", + "documentation":"

      A list of all running Amazon EC2 instances on the Outpost. Stopping one or more of these instances can free up the capacity needed to run the capacity task.

      " + }, + "NextToken":{"shape":"Token"} + } + }, "ListCapacityTasksInput":{ "type":"structure", "members":{ @@ -2169,6 +2438,16 @@ "min":1, "pattern":"^(arn:aws([a-z-]+)?:outposts:[a-z\\d-]+:\\d{12}:outpost/)?op-[a-f0-9]{17}$" }, + "OutpostInstanceType":{ + "type":"string", + "max":30, + "min":3, + "pattern":"[a-z0-9\\-\\.]+" + }, + "OutpostInstanceTypeList":{ + "type":"list", + "member":{"shape":"OutpostInstanceType"} + }, "OutpostName":{ "type":"string", "documentation":"

      The name of the Outpost.

      ", @@ -2420,7 +2699,6 @@ "type":"structure", "required":[ "OutpostIdentifier", - "OrderId", "InstancePools" ], "members":{ @@ -2438,9 +2716,17 @@ "shape":"RequestedInstancePools", "documentation":"

      The instance pools specified in the capacity task.

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

      List of user-specified running instances that must not be stopped in order to free up the capacity needed to run the capacity task.

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

      You can request a dry run to determine if the instance type and instance size changes is above or below available instance capacity. Requesting a dry run does not make any changes to your plan.

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

      Specify one of the following options in case an instance is blocking the capacity task from running.

      • WAIT_FOR_EVACUATION - Checks every 10 minutes over 48 hours to determine if instances have stopped and capacity is available to complete the task.

      • FAIL_TASK - The capacity task fails.

      " } } }, @@ -2463,6 +2749,10 @@ "shape":"RequestedInstancePools", "documentation":"

      List of the instance pools requested in the specified capacity task.

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

      User-specified instances that must not be stopped in order to free up the capacity needed to run the capacity task.

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

      Results of the dry run showing if the specified capacity task is above or below the available instance capacity.

      " @@ -2486,6 +2776,10 @@ "LastModifiedDate":{ "shape":"ISO8601Timestamp", "documentation":"

      Date that the specified capacity task was last modified.

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

      User-specified option in case an instance is blocking the capacity task from running.

      • WAIT_FOR_EVACUATION - Checks every 10 minutes over 48 hours to determine if instances have stopped and capacity is available to complete the task.

      • FAIL_TASK - The capacity task fails.

      " } } }, @@ -2621,6 +2915,13 @@ "max":256, "pattern":"^[\\S \\n]+$" }, + "TaskActionOnBlockingInstances":{ + "type":"string", + "enum":[ + "WAIT_FOR_EVACUATION", + "FAIL_TASK" + ] + }, "Token":{ "type":"string", "documentation":"

      The pagination token.

      ",