@aws-sdk/client-cloudfront 3.82.0 → 3.92.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +30 -0
- package/README.md +2 -0
- package/dist-cjs/models/models_0.js +16 -16
- package/dist-cjs/models/models_1.js +18 -4
- package/dist-cjs/protocols/Aws_restXml.js +19 -1
- package/dist-es/models/models_0.js +13 -13
- package/dist-es/models/models_1.js +13 -0
- package/dist-es/protocols/Aws_restXml.js +35 -15
- package/dist-types/models/models_0.d.ts +15 -12
- package/dist-types/models/models_1.d.ts +12 -0
- package/dist-types/ts3.4/models/models_1.d.ts +8 -0
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,36 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.92.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.91.0...v3.92.0) (2022-05-16)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **client-cloudfront:** Introduced a new error (TooLongCSPInResponseHeadersPolicy) that is returned when the value of the Content-Security-Policy header in a response headers policy exceeds the maximum allowed length. ([f2875d3](https://github.com/aws/aws-sdk-js-v3/commit/f2875d385ab39fa91ebbe5813286168fdcb66076))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [3.87.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.86.0...v3.87.0) (2022-05-09)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @aws-sdk/client-cloudfront
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
# [3.85.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.84.0...v3.85.0) (2022-05-05)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
### Features
|
|
29
|
+
|
|
30
|
+
* **codegen:** add codegen indicator comment to all generated files ([#3592](https://github.com/aws/aws-sdk-js-v3/issues/3592)) ([567a530](https://github.com/aws/aws-sdk-js-v3/commit/567a5304232fcc1f9db3fd3df545054de8336b4b))
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
6
36
|
# [3.82.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.81.0...v3.82.0) (2022-05-02)
|
|
7
37
|
|
|
8
38
|
**Note:** Version bump only for package @aws-sdk/client-cloudfront
|
package/README.md
CHANGED
|
@@ -4,8 +4,8 @@ exports.CloudFrontOriginAccessIdentityAlreadyExists = exports.TooManyQueryString
|
|
|
4
4
|
exports.InvalidRelativePath = exports.InvalidQueryStringParameters = exports.InvalidProtocolSettings = exports.InvalidOriginReadTimeout = exports.InvalidOriginKeepaliveTimeout = exports.InvalidOriginAccessIdentity = exports.InvalidOrigin = exports.InvalidMinimumProtocolVersion = exports.InvalidLocationCode = exports.InvalidLambdaFunctionAssociation = exports.InvalidHeadersForS3Origin = exports.InvalidGeoRestrictionParameter = exports.InvalidFunctionAssociation = exports.InvalidForwardCookies = exports.InvalidErrorCode = exports.InvalidDefaultRootObject = exports.IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior = exports.DistributionAlreadyExists = exports.CreateDistributionResult = exports.Distribution = exports.CreateDistributionRequest = exports.DistributionConfig = exports.ViewerCertificate = exports.Restrictions = exports.GeoRestriction = exports.Origins = exports.Origin = exports.S3OriginConfig = exports.OriginShield = exports.CustomOriginConfig = exports.OriginSslProtocols = exports.CustomHeaders = exports.OriginCustomHeader = exports.OriginGroups = exports.OriginGroup = exports.OriginGroupMembers = exports.OriginGroupMember = exports.OriginGroupFailoverCriteria = exports.StatusCodes = exports.LoggingConfig = exports.DefaultCacheBehavior = exports.CustomErrorResponses = exports.CustomErrorResponse = exports.CNAMEAlreadyExists = exports.TooManyCloudFrontOriginAccessIdentities = exports.MissingBody = exports.CreateCloudFrontOriginAccessIdentityResult = exports.CloudFrontOriginAccessIdentity = exports.CreateCloudFrontOriginAccessIdentityRequest = exports.CloudFrontOriginAccessIdentityConfig = void 0;
|
|
5
5
|
exports.FieldLevelEncryption = exports.CreateFieldLevelEncryptionConfigRequest = exports.FieldLevelEncryptionConfig = exports.QueryArgProfileConfig = exports.QueryArgProfiles = exports.QueryArgProfile = exports.ContentTypeProfileConfig = exports.ContentTypeProfiles = exports.ContentTypeProfile = exports.InvalidTagging = exports.CreateDistributionWithTagsResult = exports.CreateDistributionWithTagsRequest = exports.DistributionConfigWithTags = exports.Tags = exports.Tag = exports.TrustedSignerDoesNotExist = exports.TrustedKeyGroupDoesNotExist = exports.TooManyTrustedSigners = exports.TooManyQueryStringParameters = exports.TooManyOrigins = exports.TooManyOriginGroupsPerDistribution = exports.TooManyOriginCustomHeaders = exports.TooManyLambdaFunctionAssociations = exports.TooManyKeyGroupsAssociatedToDistribution = exports.TooManyHeadersInForwardedValues = exports.TooManyFunctionAssociations = exports.TooManyDistributionsWithSingleFunctionARN = exports.TooManyDistributionsWithLambdaAssociations = exports.TooManyDistributionsWithFunctionAssociations = exports.TooManyDistributionsAssociatedToResponseHeadersPolicy = exports.TooManyDistributionsAssociatedToOriginRequestPolicy = exports.TooManyDistributionsAssociatedToKeyGroup = exports.TooManyDistributionsAssociatedToFieldLevelEncryptionConfig = exports.TooManyDistributionsAssociatedToCachePolicy = exports.TooManyDistributions = exports.TooManyCookieNamesInWhiteList = exports.TooManyCertificates = exports.TooManyCacheBehaviors = exports.RealtimeLogConfigOwnerMismatch = exports.NoSuchResponseHeadersPolicy = exports.NoSuchRealtimeLogConfig = exports.NoSuchOriginRequestPolicy = exports.NoSuchOrigin = exports.NoSuchFieldLevelEncryptionConfig = exports.NoSuchCachePolicy = exports.InvalidWebACLId = exports.InvalidViewerCertificate = exports.InvalidTTLOrder = exports.InvalidResponseCode = exports.InvalidRequiredProtocol = void 0;
|
|
6
6
|
exports.OriginRequestPolicyCookiesConfig = exports.CreateMonitoringSubscriptionResult = exports.CreateMonitoringSubscriptionRequest = exports.MonitoringSubscription = exports.RealtimeMetricsSubscriptionConfig = exports.RealtimeMetricsSubscriptionStatus = exports.TooManyPublicKeysInKeyGroup = exports.TooManyKeyGroups = exports.KeyGroupAlreadyExists = exports.CreateKeyGroupResult = exports.KeyGroup = exports.CreateKeyGroupRequest = exports.KeyGroupConfig = exports.TooManyInvalidationsInProgress = exports.CreateInvalidationResult = exports.Invalidation = exports.CreateInvalidationRequest = exports.InvalidationBatch = exports.Paths = exports.UnsupportedOperation = exports.TooManyFunctions = exports.FunctionSizeLimitExceeded = exports.FunctionAlreadyExists = exports.CreateFunctionResult = exports.FunctionSummary = exports.FunctionMetadata = exports.FunctionStage = exports.CreateFunctionRequest = exports.FunctionConfig = exports.FunctionRuntime = exports.TooManyFieldLevelEncryptionProfiles = exports.TooManyFieldLevelEncryptionFieldPatterns = exports.TooManyFieldLevelEncryptionEncryptionEntities = exports.NoSuchPublicKey = exports.FieldLevelEncryptionProfileSizeExceeded = exports.FieldLevelEncryptionProfileAlreadyExists = exports.CreateFieldLevelEncryptionProfileResult = exports.FieldLevelEncryptionProfile = exports.CreateFieldLevelEncryptionProfileRequest = exports.FieldLevelEncryptionProfileConfig = exports.EncryptionEntities = exports.EncryptionEntity = exports.FieldPatterns = exports.TooManyFieldLevelEncryptionQueryArgProfiles = exports.TooManyFieldLevelEncryptionContentTypeProfiles = exports.TooManyFieldLevelEncryptionConfigs = exports.QueryArgProfileEmpty = exports.NoSuchFieldLevelEncryptionProfile = exports.FieldLevelEncryptionConfigAlreadyExists = exports.CreateFieldLevelEncryptionConfigResult = void 0;
|
|
7
|
-
exports.
|
|
8
|
-
exports.
|
|
7
|
+
exports.StreamingLoggingConfig = exports.TooManyResponseHeadersPolicies = exports.TooManyCustomHeadersInResponseHeadersPolicy = exports.TooLongCSPInResponseHeadersPolicy = exports.ResponseHeadersPolicyAlreadyExists = exports.CreateResponseHeadersPolicyResult = exports.ResponseHeadersPolicy = exports.CreateResponseHeadersPolicyRequest = exports.ResponseHeadersPolicyConfig = exports.ResponseHeadersPolicyServerTimingHeadersConfig = exports.ResponseHeadersPolicySecurityHeadersConfig = exports.ResponseHeadersPolicyXSSProtection = exports.ResponseHeadersPolicyStrictTransportSecurity = exports.ResponseHeadersPolicyReferrerPolicy = exports.ReferrerPolicyList = exports.ResponseHeadersPolicyFrameOptions = exports.FrameOptionsList = exports.ResponseHeadersPolicyContentTypeOptions = exports.ResponseHeadersPolicyContentSecurityPolicy = exports.ResponseHeadersPolicyCustomHeadersConfig = exports.ResponseHeadersPolicyCustomHeader = exports.ResponseHeadersPolicyCorsConfig = exports.ResponseHeadersPolicyAccessControlExposeHeaders = exports.ResponseHeadersPolicyAccessControlAllowOrigins = exports.ResponseHeadersPolicyAccessControlAllowMethods = exports.ResponseHeadersPolicyAccessControlAllowHeaders = exports.TooManyRealtimeLogConfigs = exports.RealtimeLogConfigAlreadyExists = exports.CreateRealtimeLogConfigResult = exports.RealtimeLogConfig = exports.CreateRealtimeLogConfigRequest = exports.EndPoint = exports.KinesisStreamConfig = exports.TooManyPublicKeys = exports.PublicKeyAlreadyExists = exports.CreatePublicKeyResult = exports.PublicKey = exports.CreatePublicKeyRequest = exports.PublicKeyConfig = exports.TooManyQueryStringsInOriginRequestPolicy = exports.TooManyOriginRequestPolicies = exports.TooManyHeadersInOriginRequestPolicy = exports.TooManyCookiesInOriginRequestPolicy = exports.OriginRequestPolicyAlreadyExists = exports.CreateOriginRequestPolicyResult = exports.OriginRequestPolicy = exports.CreateOriginRequestPolicyRequest = exports.OriginRequestPolicyConfig = exports.OriginRequestPolicyQueryStringsConfig = exports.OriginRequestPolicyHeadersConfig = void 0;
|
|
8
|
+
exports.NoSuchResource = exports.DeleteKeyGroupRequest = exports.NoSuchFunctionExists = exports.FunctionInUse = exports.DeleteFunctionRequest = exports.FieldLevelEncryptionProfileInUse = exports.DeleteFieldLevelEncryptionProfileRequest = exports.FieldLevelEncryptionConfigInUse = exports.DeleteFieldLevelEncryptionConfigRequest = exports.DistributionNotDisabled = exports.DeleteDistributionRequest = exports.NoSuchCloudFrontOriginAccessIdentity = exports.DeleteCloudFrontOriginAccessIdentityRequest = exports.CloudFrontOriginAccessIdentityInUse = exports.PreconditionFailed = exports.InvalidIfMatchVersion = exports.IllegalDelete = exports.DeleteCachePolicyRequest = exports.CreateStreamingDistributionWithTagsResult = exports.CreateStreamingDistributionWithTagsRequest = exports.StreamingDistributionConfigWithTags = exports.TooManyStreamingDistributions = exports.TooManyStreamingDistributionCNAMEs = exports.StreamingDistributionAlreadyExists = exports.CreateStreamingDistributionResult = exports.StreamingDistribution = exports.CreateStreamingDistributionRequest = exports.StreamingDistributionConfig = exports.S3Origin = void 0;
|
|
9
9
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
10
10
|
const CloudFrontServiceException_1 = require("./CloudFrontServiceException");
|
|
11
11
|
var ResponseHeadersPolicyAccessControlAllowMethodsValues;
|
|
@@ -2324,6 +2324,20 @@ class ResponseHeadersPolicyAlreadyExists extends CloudFrontServiceException_1.Cl
|
|
|
2324
2324
|
}
|
|
2325
2325
|
}
|
|
2326
2326
|
exports.ResponseHeadersPolicyAlreadyExists = ResponseHeadersPolicyAlreadyExists;
|
|
2327
|
+
class TooLongCSPInResponseHeadersPolicy extends CloudFrontServiceException_1.CloudFrontServiceException {
|
|
2328
|
+
constructor(opts) {
|
|
2329
|
+
super({
|
|
2330
|
+
name: "TooLongCSPInResponseHeadersPolicy",
|
|
2331
|
+
$fault: "client",
|
|
2332
|
+
...opts,
|
|
2333
|
+
});
|
|
2334
|
+
this.name = "TooLongCSPInResponseHeadersPolicy";
|
|
2335
|
+
this.$fault = "client";
|
|
2336
|
+
Object.setPrototypeOf(this, TooLongCSPInResponseHeadersPolicy.prototype);
|
|
2337
|
+
this.Message = opts.Message;
|
|
2338
|
+
}
|
|
2339
|
+
}
|
|
2340
|
+
exports.TooLongCSPInResponseHeadersPolicy = TooLongCSPInResponseHeadersPolicy;
|
|
2327
2341
|
class TooManyCustomHeadersInResponseHeadersPolicy extends CloudFrontServiceException_1.CloudFrontServiceException {
|
|
2328
2342
|
constructor(opts) {
|
|
2329
2343
|
super({
|
|
@@ -2644,17 +2658,3 @@ class NoSuchResource extends CloudFrontServiceException_1.CloudFrontServiceExcep
|
|
|
2644
2658
|
}
|
|
2645
2659
|
}
|
|
2646
2660
|
exports.NoSuchResource = NoSuchResource;
|
|
2647
|
-
class ResourceInUse extends CloudFrontServiceException_1.CloudFrontServiceException {
|
|
2648
|
-
constructor(opts) {
|
|
2649
|
-
super({
|
|
2650
|
-
name: "ResourceInUse",
|
|
2651
|
-
$fault: "client",
|
|
2652
|
-
...opts,
|
|
2653
|
-
});
|
|
2654
|
-
this.name = "ResourceInUse";
|
|
2655
|
-
this.$fault = "client";
|
|
2656
|
-
Object.setPrototypeOf(this, ResourceInUse.prototype);
|
|
2657
|
-
this.Message = opts.Message;
|
|
2658
|
-
}
|
|
2659
|
-
}
|
|
2660
|
-
exports.ResourceInUse = ResourceInUse;
|
|
@@ -1,12 +1,26 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.
|
|
6
|
-
exports.UpdateStreamingDistributionResult = exports.UpdateStreamingDistributionRequest = exports.UpdateResponseHeadersPolicyResult = exports.UpdateResponseHeadersPolicyRequest = exports.UpdateRealtimeLogConfigResult = exports.UpdateRealtimeLogConfigRequest = exports.UpdatePublicKeyResult = exports.UpdatePublicKeyRequest = exports.UpdateOriginRequestPolicyResult = exports.UpdateOriginRequestPolicyRequest = exports.UpdateKeyGroupResult = exports.UpdateKeyGroupRequest = exports.UpdateFunctionResult = exports.UpdateFunctionRequest = exports.UpdateFieldLevelEncryptionProfileResult = void 0;
|
|
3
|
+
exports.GetOriginRequestPolicyConfigRequest = exports.GetOriginRequestPolicyResult = exports.GetOriginRequestPolicyRequest = exports.GetMonitoringSubscriptionResult = exports.GetMonitoringSubscriptionRequest = exports.GetKeyGroupConfigResult = exports.GetKeyGroupConfigRequest = exports.GetKeyGroupResult = exports.GetKeyGroupRequest = exports.NoSuchInvalidation = exports.GetInvalidationResult = exports.GetInvalidationRequest = exports.GetFunctionResult = exports.GetFunctionRequest = exports.GetFieldLevelEncryptionProfileConfigResult = exports.GetFieldLevelEncryptionProfileConfigRequest = exports.GetFieldLevelEncryptionProfileResult = exports.GetFieldLevelEncryptionProfileRequest = exports.GetFieldLevelEncryptionConfigResult = exports.GetFieldLevelEncryptionConfigRequest = exports.GetFieldLevelEncryptionResult = exports.GetFieldLevelEncryptionRequest = exports.GetDistributionConfigResult = exports.GetDistributionConfigRequest = exports.GetDistributionResult = exports.GetDistributionRequest = exports.GetCloudFrontOriginAccessIdentityConfigResult = exports.GetCloudFrontOriginAccessIdentityConfigRequest = exports.GetCloudFrontOriginAccessIdentityResult = exports.GetCloudFrontOriginAccessIdentityRequest = exports.GetCachePolicyConfigResult = exports.GetCachePolicyConfigRequest = exports.GetCachePolicyResult = exports.GetCachePolicyRequest = exports.DescribeFunctionResult = exports.DescribeFunctionRequest = exports.StreamingDistributionNotDisabled = exports.NoSuchStreamingDistribution = exports.DeleteStreamingDistributionRequest = exports.ResponseHeadersPolicyInUse = exports.DeleteResponseHeadersPolicyRequest = exports.RealtimeLogConfigInUse = exports.DeleteRealtimeLogConfigRequest = exports.PublicKeyInUse = exports.DeletePublicKeyRequest = exports.OriginRequestPolicyInUse = exports.DeleteOriginRequestPolicyRequest = exports.DeleteMonitoringSubscriptionResult = exports.DeleteMonitoringSubscriptionRequest = exports.ResourceInUse = void 0;
|
|
4
|
+
exports.ListFieldLevelEncryptionProfilesResult = exports.FieldLevelEncryptionProfileList = exports.FieldLevelEncryptionProfileSummary = exports.ListFieldLevelEncryptionProfilesRequest = exports.ListFieldLevelEncryptionConfigsResult = exports.FieldLevelEncryptionList = exports.FieldLevelEncryptionSummary = exports.ListFieldLevelEncryptionConfigsRequest = exports.ListDistributionsByWebACLIdResult = exports.ListDistributionsByWebACLIdRequest = exports.ListDistributionsByResponseHeadersPolicyIdResult = exports.ListDistributionsByResponseHeadersPolicyIdRequest = exports.ListDistributionsByRealtimeLogConfigResult = exports.ListDistributionsByRealtimeLogConfigRequest = exports.ListDistributionsByOriginRequestPolicyIdResult = exports.ListDistributionsByOriginRequestPolicyIdRequest = exports.ListDistributionsByKeyGroupResult = exports.ListDistributionsByKeyGroupRequest = exports.ListDistributionsByCachePolicyIdResult = exports.DistributionIdList = exports.ListDistributionsByCachePolicyIdRequest = exports.ListDistributionsResult = exports.DistributionList = exports.DistributionSummary = exports.ListDistributionsRequest = exports.ListConflictingAliasesResult = exports.ConflictingAliasesList = exports.ConflictingAlias = exports.ListConflictingAliasesRequest = exports.ListCloudFrontOriginAccessIdentitiesResult = exports.CloudFrontOriginAccessIdentityList = exports.CloudFrontOriginAccessIdentitySummary = exports.ListCloudFrontOriginAccessIdentitiesRequest = exports.ListCachePoliciesResult = exports.ListCachePoliciesRequest = exports.GetStreamingDistributionConfigResult = exports.GetStreamingDistributionConfigRequest = exports.GetStreamingDistributionResult = exports.GetStreamingDistributionRequest = exports.GetResponseHeadersPolicyConfigResult = exports.GetResponseHeadersPolicyConfigRequest = exports.GetResponseHeadersPolicyResult = exports.GetResponseHeadersPolicyRequest = exports.GetRealtimeLogConfigResult = exports.GetRealtimeLogConfigRequest = exports.GetPublicKeyConfigResult = exports.GetPublicKeyConfigRequest = exports.GetPublicKeyResult = exports.GetPublicKeyRequest = exports.GetOriginRequestPolicyConfigResult = void 0;
|
|
5
|
+
exports.UpdateFieldLevelEncryptionConfigResult = exports.UpdateFieldLevelEncryptionConfigRequest = exports.UpdateDistributionResult = exports.UpdateDistributionRequest = exports.UpdateCloudFrontOriginAccessIdentityResult = exports.UpdateCloudFrontOriginAccessIdentityRequest = exports.UpdateCachePolicyResult = exports.UpdateCachePolicyRequest = exports.UntagResourceRequest = exports.TagKeys = exports.TestFunctionResult = exports.TestResult = exports.TestFunctionRequest = exports.TestFunctionFailed = exports.TagResourceRequest = exports.PublishFunctionResult = exports.PublishFunctionRequest = exports.ListTagsForResourceResult = exports.ListTagsForResourceRequest = exports.ListStreamingDistributionsResult = exports.StreamingDistributionList = exports.StreamingDistributionSummary = exports.ListStreamingDistributionsRequest = exports.ListResponseHeadersPoliciesResult = exports.ResponseHeadersPolicyList = exports.ResponseHeadersPolicySummary = exports.ListResponseHeadersPoliciesRequest = exports.ResponseHeadersPolicyType = exports.ListRealtimeLogConfigsResult = exports.RealtimeLogConfigs = exports.ListRealtimeLogConfigsRequest = exports.ListPublicKeysResult = exports.PublicKeyList = exports.PublicKeySummary = exports.ListPublicKeysRequest = exports.ListOriginRequestPoliciesResult = exports.OriginRequestPolicyList = exports.OriginRequestPolicySummary = exports.ListOriginRequestPoliciesRequest = exports.ListKeyGroupsResult = exports.KeyGroupList = exports.KeyGroupSummary = exports.ListKeyGroupsRequest = exports.ListInvalidationsResult = exports.InvalidationList = exports.InvalidationSummary = exports.ListInvalidationsRequest = exports.ListFunctionsResult = exports.FunctionList = exports.ListFunctionsRequest = void 0;
|
|
6
|
+
exports.UpdateStreamingDistributionResult = exports.UpdateStreamingDistributionRequest = exports.UpdateResponseHeadersPolicyResult = exports.UpdateResponseHeadersPolicyRequest = exports.UpdateRealtimeLogConfigResult = exports.UpdateRealtimeLogConfigRequest = exports.UpdatePublicKeyResult = exports.UpdatePublicKeyRequest = exports.UpdateOriginRequestPolicyResult = exports.UpdateOriginRequestPolicyRequest = exports.UpdateKeyGroupResult = exports.UpdateKeyGroupRequest = exports.UpdateFunctionResult = exports.UpdateFunctionRequest = exports.UpdateFieldLevelEncryptionProfileResult = exports.UpdateFieldLevelEncryptionProfileRequest = void 0;
|
|
7
7
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
8
8
|
const CloudFrontServiceException_1 = require("./CloudFrontServiceException");
|
|
9
9
|
const models_0_1 = require("./models_0");
|
|
10
|
+
class ResourceInUse extends CloudFrontServiceException_1.CloudFrontServiceException {
|
|
11
|
+
constructor(opts) {
|
|
12
|
+
super({
|
|
13
|
+
name: "ResourceInUse",
|
|
14
|
+
$fault: "client",
|
|
15
|
+
...opts,
|
|
16
|
+
});
|
|
17
|
+
this.name = "ResourceInUse";
|
|
18
|
+
this.$fault = "client";
|
|
19
|
+
Object.setPrototypeOf(this, ResourceInUse.prototype);
|
|
20
|
+
this.Message = opts.Message;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
exports.ResourceInUse = ResourceInUse;
|
|
10
24
|
var DeleteMonitoringSubscriptionRequest;
|
|
11
25
|
(function (DeleteMonitoringSubscriptionRequest) {
|
|
12
26
|
DeleteMonitoringSubscriptionRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -3893,6 +3893,9 @@ const deserializeAws_restXmlCreateResponseHeadersPolicyCommandError = async (out
|
|
|
3893
3893
|
case "ResponseHeadersPolicyAlreadyExists":
|
|
3894
3894
|
case "com.amazonaws.cloudfront#ResponseHeadersPolicyAlreadyExists":
|
|
3895
3895
|
throw await deserializeAws_restXmlResponseHeadersPolicyAlreadyExistsResponse(parsedOutput, context);
|
|
3896
|
+
case "TooLongCSPInResponseHeadersPolicy":
|
|
3897
|
+
case "com.amazonaws.cloudfront#TooLongCSPInResponseHeadersPolicy":
|
|
3898
|
+
throw await deserializeAws_restXmlTooLongCSPInResponseHeadersPolicyResponse(parsedOutput, context);
|
|
3896
3899
|
case "TooManyCustomHeadersInResponseHeadersPolicy":
|
|
3897
3900
|
case "com.amazonaws.cloudfront#TooManyCustomHeadersInResponseHeadersPolicy":
|
|
3898
3901
|
throw await deserializeAws_restXmlTooManyCustomHeadersInResponseHeadersPolicyResponse(parsedOutput, context);
|
|
@@ -7485,6 +7488,9 @@ const deserializeAws_restXmlUpdateResponseHeadersPolicyCommandError = async (out
|
|
|
7485
7488
|
case "ResponseHeadersPolicyAlreadyExists":
|
|
7486
7489
|
case "com.amazonaws.cloudfront#ResponseHeadersPolicyAlreadyExists":
|
|
7487
7490
|
throw await deserializeAws_restXmlResponseHeadersPolicyAlreadyExistsResponse(parsedOutput, context);
|
|
7491
|
+
case "TooLongCSPInResponseHeadersPolicy":
|
|
7492
|
+
case "com.amazonaws.cloudfront#TooLongCSPInResponseHeadersPolicy":
|
|
7493
|
+
throw await deserializeAws_restXmlTooLongCSPInResponseHeadersPolicyResponse(parsedOutput, context);
|
|
7488
7494
|
case "TooManyCustomHeadersInResponseHeadersPolicy":
|
|
7489
7495
|
case "com.amazonaws.cloudfront#TooManyCustomHeadersInResponseHeadersPolicy":
|
|
7490
7496
|
throw await deserializeAws_restXmlTooManyCustomHeadersInResponseHeadersPolicyResponse(parsedOutput, context);
|
|
@@ -8431,7 +8437,7 @@ const deserializeAws_restXmlResourceInUseResponse = async (parsedOutput, context
|
|
|
8431
8437
|
if (data["Message"] !== undefined) {
|
|
8432
8438
|
contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
|
|
8433
8439
|
}
|
|
8434
|
-
const exception = new
|
|
8440
|
+
const exception = new models_1_1.ResourceInUse({
|
|
8435
8441
|
$metadata: deserializeMetadata(parsedOutput),
|
|
8436
8442
|
...contents,
|
|
8437
8443
|
});
|
|
@@ -8497,6 +8503,18 @@ const deserializeAws_restXmlTestFunctionFailedResponse = async (parsedOutput, co
|
|
|
8497
8503
|
});
|
|
8498
8504
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
|
|
8499
8505
|
};
|
|
8506
|
+
const deserializeAws_restXmlTooLongCSPInResponseHeadersPolicyResponse = async (parsedOutput, context) => {
|
|
8507
|
+
const contents = {};
|
|
8508
|
+
const data = parsedOutput.body.Error;
|
|
8509
|
+
if (data["Message"] !== undefined) {
|
|
8510
|
+
contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
|
|
8511
|
+
}
|
|
8512
|
+
const exception = new models_0_1.TooLongCSPInResponseHeadersPolicy({
|
|
8513
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
8514
|
+
...contents,
|
|
8515
|
+
});
|
|
8516
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
|
|
8517
|
+
};
|
|
8500
8518
|
const deserializeAws_restXmlTooManyCacheBehaviorsResponse = async (parsedOutput, context) => {
|
|
8501
8519
|
const contents = {};
|
|
8502
8520
|
const data = parsedOutput.body.Error;
|
|
@@ -1928,6 +1928,19 @@ var ResponseHeadersPolicyAlreadyExists = (function (_super) {
|
|
|
1928
1928
|
return ResponseHeadersPolicyAlreadyExists;
|
|
1929
1929
|
}(__BaseException));
|
|
1930
1930
|
export { ResponseHeadersPolicyAlreadyExists };
|
|
1931
|
+
var TooLongCSPInResponseHeadersPolicy = (function (_super) {
|
|
1932
|
+
__extends(TooLongCSPInResponseHeadersPolicy, _super);
|
|
1933
|
+
function TooLongCSPInResponseHeadersPolicy(opts) {
|
|
1934
|
+
var _this = _super.call(this, __assign({ name: "TooLongCSPInResponseHeadersPolicy", $fault: "client" }, opts)) || this;
|
|
1935
|
+
_this.name = "TooLongCSPInResponseHeadersPolicy";
|
|
1936
|
+
_this.$fault = "client";
|
|
1937
|
+
Object.setPrototypeOf(_this, TooLongCSPInResponseHeadersPolicy.prototype);
|
|
1938
|
+
_this.Message = opts.Message;
|
|
1939
|
+
return _this;
|
|
1940
|
+
}
|
|
1941
|
+
return TooLongCSPInResponseHeadersPolicy;
|
|
1942
|
+
}(__BaseException));
|
|
1943
|
+
export { TooLongCSPInResponseHeadersPolicy };
|
|
1931
1944
|
var TooManyCustomHeadersInResponseHeadersPolicy = (function (_super) {
|
|
1932
1945
|
__extends(TooManyCustomHeadersInResponseHeadersPolicy, _super);
|
|
1933
1946
|
function TooManyCustomHeadersInResponseHeadersPolicy(opts) {
|
|
@@ -2200,16 +2213,3 @@ var NoSuchResource = (function (_super) {
|
|
|
2200
2213
|
return NoSuchResource;
|
|
2201
2214
|
}(__BaseException));
|
|
2202
2215
|
export { NoSuchResource };
|
|
2203
|
-
var ResourceInUse = (function (_super) {
|
|
2204
|
-
__extends(ResourceInUse, _super);
|
|
2205
|
-
function ResourceInUse(opts) {
|
|
2206
|
-
var _this = _super.call(this, __assign({ name: "ResourceInUse", $fault: "client" }, opts)) || this;
|
|
2207
|
-
_this.name = "ResourceInUse";
|
|
2208
|
-
_this.$fault = "client";
|
|
2209
|
-
Object.setPrototypeOf(_this, ResourceInUse.prototype);
|
|
2210
|
-
_this.Message = opts.Message;
|
|
2211
|
-
return _this;
|
|
2212
|
-
}
|
|
2213
|
-
return ResourceInUse;
|
|
2214
|
-
}(__BaseException));
|
|
2215
|
-
export { ResourceInUse };
|
|
@@ -2,6 +2,19 @@ import { __assign, __extends } from "tslib";
|
|
|
2
2
|
import { SENSITIVE_STRING } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { CloudFrontServiceException as __BaseException } from "./CloudFrontServiceException";
|
|
4
4
|
import { Distribution, DistributionConfig, } from "./models_0";
|
|
5
|
+
var ResourceInUse = (function (_super) {
|
|
6
|
+
__extends(ResourceInUse, _super);
|
|
7
|
+
function ResourceInUse(opts) {
|
|
8
|
+
var _this = _super.call(this, __assign({ name: "ResourceInUse", $fault: "client" }, opts)) || this;
|
|
9
|
+
_this.name = "ResourceInUse";
|
|
10
|
+
_this.$fault = "client";
|
|
11
|
+
Object.setPrototypeOf(_this, ResourceInUse.prototype);
|
|
12
|
+
_this.Message = opts.Message;
|
|
13
|
+
return _this;
|
|
14
|
+
}
|
|
15
|
+
return ResourceInUse;
|
|
16
|
+
}(__BaseException));
|
|
17
|
+
export { ResourceInUse };
|
|
5
18
|
export var DeleteMonitoringSubscriptionRequest;
|
|
6
19
|
(function (DeleteMonitoringSubscriptionRequest) {
|
|
7
20
|
DeleteMonitoringSubscriptionRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -5,8 +5,8 @@ import { XmlNode as __XmlNode, XmlText as __XmlText } from "@aws-sdk/xml-builder
|
|
|
5
5
|
import { decodeHTML } from "entities";
|
|
6
6
|
import { parse as xmlParse } from "fast-xml-parser";
|
|
7
7
|
import { CloudFrontServiceException as __BaseException } from "../models/CloudFrontServiceException";
|
|
8
|
-
import { AccessDenied, BatchTooLarge, CachePolicyAlreadyExists, CachePolicyInUse, CannotChangeImmutablePublicKeyFields, CloudFrontOriginAccessIdentityAlreadyExists, CloudFrontOriginAccessIdentityInUse, CNAMEAlreadyExists, DistributionAlreadyExists, DistributionNotDisabled, FieldLevelEncryptionConfigAlreadyExists, FieldLevelEncryptionConfigInUse, FieldLevelEncryptionProfileAlreadyExists, FieldLevelEncryptionProfileInUse, FieldLevelEncryptionProfileSizeExceeded, FunctionAlreadyExists, FunctionInUse, FunctionSizeLimitExceeded, IllegalDelete, IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior, IllegalUpdate, InconsistentQuantities, InvalidArgument, InvalidDefaultRootObject, InvalidErrorCode, InvalidForwardCookies, InvalidFunctionAssociation, InvalidGeoRestrictionParameter, InvalidHeadersForS3Origin, InvalidIfMatchVersion, InvalidLambdaFunctionAssociation, InvalidLocationCode, InvalidMinimumProtocolVersion, InvalidOrigin, InvalidOriginAccessIdentity, InvalidOriginKeepaliveTimeout, InvalidOriginReadTimeout, InvalidProtocolSettings, InvalidQueryStringParameters, InvalidRelativePath, InvalidRequiredProtocol, InvalidResponseCode, InvalidTagging, InvalidTTLOrder, InvalidViewerCertificate, InvalidWebACLId, KeyGroupAlreadyExists, MissingBody, NoSuchCachePolicy, NoSuchCloudFrontOriginAccessIdentity, NoSuchDistribution, NoSuchFieldLevelEncryptionConfig, NoSuchFieldLevelEncryptionProfile, NoSuchFunctionExists, NoSuchOrigin, NoSuchOriginRequestPolicy, NoSuchPublicKey, NoSuchRealtimeLogConfig, NoSuchResource, NoSuchResponseHeadersPolicy, OriginRequestPolicyAlreadyExists, PreconditionFailed, PublicKeyAlreadyExists, QueryArgProfileEmpty, RealtimeLogConfigAlreadyExists, RealtimeLogConfigOwnerMismatch,
|
|
9
|
-
import { NoSuchInvalidation, NoSuchStreamingDistribution, OriginRequestPolicyInUse, PublicKeyInUse, RealtimeLogConfigInUse, ResponseHeadersPolicyInUse, StreamingDistributionNotDisabled, TestFunctionFailed, } from "../models/models_1";
|
|
8
|
+
import { AccessDenied, BatchTooLarge, CachePolicyAlreadyExists, CachePolicyInUse, CannotChangeImmutablePublicKeyFields, CloudFrontOriginAccessIdentityAlreadyExists, CloudFrontOriginAccessIdentityInUse, CNAMEAlreadyExists, DistributionAlreadyExists, DistributionNotDisabled, FieldLevelEncryptionConfigAlreadyExists, FieldLevelEncryptionConfigInUse, FieldLevelEncryptionProfileAlreadyExists, FieldLevelEncryptionProfileInUse, FieldLevelEncryptionProfileSizeExceeded, FunctionAlreadyExists, FunctionInUse, FunctionSizeLimitExceeded, IllegalDelete, IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior, IllegalUpdate, InconsistentQuantities, InvalidArgument, InvalidDefaultRootObject, InvalidErrorCode, InvalidForwardCookies, InvalidFunctionAssociation, InvalidGeoRestrictionParameter, InvalidHeadersForS3Origin, InvalidIfMatchVersion, InvalidLambdaFunctionAssociation, InvalidLocationCode, InvalidMinimumProtocolVersion, InvalidOrigin, InvalidOriginAccessIdentity, InvalidOriginKeepaliveTimeout, InvalidOriginReadTimeout, InvalidProtocolSettings, InvalidQueryStringParameters, InvalidRelativePath, InvalidRequiredProtocol, InvalidResponseCode, InvalidTagging, InvalidTTLOrder, InvalidViewerCertificate, InvalidWebACLId, KeyGroupAlreadyExists, MissingBody, NoSuchCachePolicy, NoSuchCloudFrontOriginAccessIdentity, NoSuchDistribution, NoSuchFieldLevelEncryptionConfig, NoSuchFieldLevelEncryptionProfile, NoSuchFunctionExists, NoSuchOrigin, NoSuchOriginRequestPolicy, NoSuchPublicKey, NoSuchRealtimeLogConfig, NoSuchResource, NoSuchResponseHeadersPolicy, OriginRequestPolicyAlreadyExists, PreconditionFailed, PublicKeyAlreadyExists, QueryArgProfileEmpty, RealtimeLogConfigAlreadyExists, RealtimeLogConfigOwnerMismatch, ResponseHeadersPolicyAlreadyExists, StreamingDistributionAlreadyExists, TooLongCSPInResponseHeadersPolicy, TooManyCacheBehaviors, TooManyCachePolicies, TooManyCertificates, TooManyCloudFrontOriginAccessIdentities, TooManyCookieNamesInWhiteList, TooManyCookiesInCachePolicy, TooManyCookiesInOriginRequestPolicy, TooManyCustomHeadersInResponseHeadersPolicy, TooManyDistributionCNAMEs, TooManyDistributions, TooManyDistributionsAssociatedToCachePolicy, TooManyDistributionsAssociatedToFieldLevelEncryptionConfig, TooManyDistributionsAssociatedToKeyGroup, TooManyDistributionsAssociatedToOriginRequestPolicy, TooManyDistributionsAssociatedToResponseHeadersPolicy, TooManyDistributionsWithFunctionAssociations, TooManyDistributionsWithLambdaAssociations, TooManyDistributionsWithSingleFunctionARN, TooManyFieldLevelEncryptionConfigs, TooManyFieldLevelEncryptionContentTypeProfiles, TooManyFieldLevelEncryptionEncryptionEntities, TooManyFieldLevelEncryptionFieldPatterns, TooManyFieldLevelEncryptionProfiles, TooManyFieldLevelEncryptionQueryArgProfiles, TooManyFunctionAssociations, TooManyFunctions, TooManyHeadersInCachePolicy, TooManyHeadersInForwardedValues, TooManyHeadersInOriginRequestPolicy, TooManyInvalidationsInProgress, TooManyKeyGroups, TooManyKeyGroupsAssociatedToDistribution, TooManyLambdaFunctionAssociations, TooManyOriginCustomHeaders, TooManyOriginGroupsPerDistribution, TooManyOriginRequestPolicies, TooManyOrigins, TooManyPublicKeys, TooManyPublicKeysInKeyGroup, TooManyQueryStringParameters, TooManyQueryStringsInCachePolicy, TooManyQueryStringsInOriginRequestPolicy, TooManyRealtimeLogConfigs, TooManyResponseHeadersPolicies, TooManyStreamingDistributionCNAMEs, TooManyStreamingDistributions, TooManyTrustedSigners, TrustedKeyGroupDoesNotExist, TrustedSignerDoesNotExist, UnsupportedOperation, } from "../models/models_0";
|
|
9
|
+
import { NoSuchInvalidation, NoSuchStreamingDistribution, OriginRequestPolicyInUse, PublicKeyInUse, RealtimeLogConfigInUse, ResourceInUse, ResponseHeadersPolicyInUse, StreamingDistributionNotDisabled, TestFunctionFailed, } from "../models/models_1";
|
|
10
10
|
export var serializeAws_restXmlAssociateAliasCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
11
11
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
|
|
12
12
|
return __generator(this, function (_c) {
|
|
@@ -4620,12 +4620,14 @@ var deserializeAws_restXmlCreateResponseHeadersPolicyCommandError = function (ou
|
|
|
4620
4620
|
case "com.amazonaws.cloudfront#InvalidArgument": return [3, 6];
|
|
4621
4621
|
case "ResponseHeadersPolicyAlreadyExists": return [3, 8];
|
|
4622
4622
|
case "com.amazonaws.cloudfront#ResponseHeadersPolicyAlreadyExists": return [3, 8];
|
|
4623
|
-
case "
|
|
4624
|
-
case "com.amazonaws.cloudfront#
|
|
4625
|
-
case "
|
|
4626
|
-
case "com.amazonaws.cloudfront#
|
|
4623
|
+
case "TooLongCSPInResponseHeadersPolicy": return [3, 10];
|
|
4624
|
+
case "com.amazonaws.cloudfront#TooLongCSPInResponseHeadersPolicy": return [3, 10];
|
|
4625
|
+
case "TooManyCustomHeadersInResponseHeadersPolicy": return [3, 12];
|
|
4626
|
+
case "com.amazonaws.cloudfront#TooManyCustomHeadersInResponseHeadersPolicy": return [3, 12];
|
|
4627
|
+
case "TooManyResponseHeadersPolicies": return [3, 14];
|
|
4628
|
+
case "com.amazonaws.cloudfront#TooManyResponseHeadersPolicies": return [3, 14];
|
|
4627
4629
|
}
|
|
4628
|
-
return [3,
|
|
4630
|
+
return [3, 16];
|
|
4629
4631
|
case 2: return [4, deserializeAws_restXmlAccessDeniedResponse(parsedOutput, context)];
|
|
4630
4632
|
case 3: throw _d.sent();
|
|
4631
4633
|
case 4: return [4, deserializeAws_restXmlInconsistentQuantitiesResponse(parsedOutput, context)];
|
|
@@ -4634,11 +4636,13 @@ var deserializeAws_restXmlCreateResponseHeadersPolicyCommandError = function (ou
|
|
|
4634
4636
|
case 7: throw _d.sent();
|
|
4635
4637
|
case 8: return [4, deserializeAws_restXmlResponseHeadersPolicyAlreadyExistsResponse(parsedOutput, context)];
|
|
4636
4638
|
case 9: throw _d.sent();
|
|
4637
|
-
case 10: return [4,
|
|
4639
|
+
case 10: return [4, deserializeAws_restXmlTooLongCSPInResponseHeadersPolicyResponse(parsedOutput, context)];
|
|
4638
4640
|
case 11: throw _d.sent();
|
|
4639
|
-
case 12: return [4,
|
|
4641
|
+
case 12: return [4, deserializeAws_restXmlTooManyCustomHeadersInResponseHeadersPolicyResponse(parsedOutput, context)];
|
|
4640
4642
|
case 13: throw _d.sent();
|
|
4641
|
-
case 14:
|
|
4643
|
+
case 14: return [4, deserializeAws_restXmlTooManyResponseHeadersPoliciesResponse(parsedOutput, context)];
|
|
4644
|
+
case 15: throw _d.sent();
|
|
4645
|
+
case 16:
|
|
4642
4646
|
parsedBody = parsedOutput.body;
|
|
4643
4647
|
response = new __BaseException({
|
|
4644
4648
|
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
@@ -9828,10 +9832,12 @@ var deserializeAws_restXmlUpdateResponseHeadersPolicyCommandError = function (ou
|
|
|
9828
9832
|
case "com.amazonaws.cloudfront#PreconditionFailed": return [3, 14];
|
|
9829
9833
|
case "ResponseHeadersPolicyAlreadyExists": return [3, 16];
|
|
9830
9834
|
case "com.amazonaws.cloudfront#ResponseHeadersPolicyAlreadyExists": return [3, 16];
|
|
9831
|
-
case "
|
|
9832
|
-
case "com.amazonaws.cloudfront#
|
|
9835
|
+
case "TooLongCSPInResponseHeadersPolicy": return [3, 18];
|
|
9836
|
+
case "com.amazonaws.cloudfront#TooLongCSPInResponseHeadersPolicy": return [3, 18];
|
|
9837
|
+
case "TooManyCustomHeadersInResponseHeadersPolicy": return [3, 20];
|
|
9838
|
+
case "com.amazonaws.cloudfront#TooManyCustomHeadersInResponseHeadersPolicy": return [3, 20];
|
|
9833
9839
|
}
|
|
9834
|
-
return [3,
|
|
9840
|
+
return [3, 22];
|
|
9835
9841
|
case 2: return [4, deserializeAws_restXmlAccessDeniedResponse(parsedOutput, context)];
|
|
9836
9842
|
case 3: throw _d.sent();
|
|
9837
9843
|
case 4: return [4, deserializeAws_restXmlIllegalUpdateResponse(parsedOutput, context)];
|
|
@@ -9848,9 +9854,11 @@ var deserializeAws_restXmlUpdateResponseHeadersPolicyCommandError = function (ou
|
|
|
9848
9854
|
case 15: throw _d.sent();
|
|
9849
9855
|
case 16: return [4, deserializeAws_restXmlResponseHeadersPolicyAlreadyExistsResponse(parsedOutput, context)];
|
|
9850
9856
|
case 17: throw _d.sent();
|
|
9851
|
-
case 18: return [4,
|
|
9857
|
+
case 18: return [4, deserializeAws_restXmlTooLongCSPInResponseHeadersPolicyResponse(parsedOutput, context)];
|
|
9852
9858
|
case 19: throw _d.sent();
|
|
9853
|
-
case 20:
|
|
9859
|
+
case 20: return [4, deserializeAws_restXmlTooManyCustomHeadersInResponseHeadersPolicyResponse(parsedOutput, context)];
|
|
9860
|
+
case 21: throw _d.sent();
|
|
9861
|
+
case 22:
|
|
9854
9862
|
parsedBody = parsedOutput.body;
|
|
9855
9863
|
response = new __BaseException({
|
|
9856
9864
|
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
@@ -10890,6 +10898,18 @@ var deserializeAws_restXmlTestFunctionFailedResponse = function (parsedOutput, c
|
|
|
10890
10898
|
return [2, __decorateServiceException(exception, parsedOutput.body.Error)];
|
|
10891
10899
|
});
|
|
10892
10900
|
}); };
|
|
10901
|
+
var deserializeAws_restXmlTooLongCSPInResponseHeadersPolicyResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
10902
|
+
var contents, data, exception;
|
|
10903
|
+
return __generator(this, function (_a) {
|
|
10904
|
+
contents = {};
|
|
10905
|
+
data = parsedOutput.body.Error;
|
|
10906
|
+
if (data["Message"] !== undefined) {
|
|
10907
|
+
contents.Message = __expectString(data["Message"]);
|
|
10908
|
+
}
|
|
10909
|
+
exception = new TooLongCSPInResponseHeadersPolicy(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
10910
|
+
return [2, __decorateServiceException(exception, parsedOutput.body.Error)];
|
|
10911
|
+
});
|
|
10912
|
+
}); };
|
|
10893
10913
|
var deserializeAws_restXmlTooManyCacheBehaviorsResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
10894
10914
|
var contents, data, exception;
|
|
10895
10915
|
return __generator(this, function (_a) {
|
|
@@ -6246,6 +6246,21 @@ export declare class ResponseHeadersPolicyAlreadyExists extends __BaseException
|
|
|
6246
6246
|
*/
|
|
6247
6247
|
constructor(opts: __ExceptionOptionType<ResponseHeadersPolicyAlreadyExists, __BaseException>);
|
|
6248
6248
|
}
|
|
6249
|
+
/**
|
|
6250
|
+
* <p>The length of the <code>Content-Security-Policy</code> header value in the response headers
|
|
6251
|
+
* policy exceeds the maximum.</p>
|
|
6252
|
+
* <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a> (formerly known as limits) in the
|
|
6253
|
+
* <i>Amazon CloudFront Developer Guide</i>.</p>
|
|
6254
|
+
*/
|
|
6255
|
+
export declare class TooLongCSPInResponseHeadersPolicy extends __BaseException {
|
|
6256
|
+
readonly name: "TooLongCSPInResponseHeadersPolicy";
|
|
6257
|
+
readonly $fault: "client";
|
|
6258
|
+
Message?: string;
|
|
6259
|
+
/**
|
|
6260
|
+
* @internal
|
|
6261
|
+
*/
|
|
6262
|
+
constructor(opts: __ExceptionOptionType<TooLongCSPInResponseHeadersPolicy, __BaseException>);
|
|
6263
|
+
}
|
|
6249
6264
|
/**
|
|
6250
6265
|
* <p>The number of custom headers in the response headers policy exceeds the maximum.</p>
|
|
6251
6266
|
* <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a> (formerly known as limits) in the
|
|
@@ -6892,15 +6907,3 @@ export declare class NoSuchResource extends __BaseException {
|
|
|
6892
6907
|
*/
|
|
6893
6908
|
constructor(opts: __ExceptionOptionType<NoSuchResource, __BaseException>);
|
|
6894
6909
|
}
|
|
6895
|
-
/**
|
|
6896
|
-
* <p>Cannot delete this resource because it is in use.</p>
|
|
6897
|
-
*/
|
|
6898
|
-
export declare class ResourceInUse extends __BaseException {
|
|
6899
|
-
readonly name: "ResourceInUse";
|
|
6900
|
-
readonly $fault: "client";
|
|
6901
|
-
Message?: string;
|
|
6902
|
-
/**
|
|
6903
|
-
* @internal
|
|
6904
|
-
*/
|
|
6905
|
-
constructor(opts: __ExceptionOptionType<ResourceInUse, __BaseException>);
|
|
6906
|
-
}
|
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
|
|
2
2
|
import { CloudFrontServiceException as __BaseException } from "./CloudFrontServiceException";
|
|
3
3
|
import { Aliases, AliasICPRecordal, CacheBehaviors, CachePolicy, CachePolicyConfig, CachePolicyList, CachePolicyType, CloudFrontOriginAccessIdentity, CloudFrontOriginAccessIdentityConfig, ContentTypeProfileConfig, CustomErrorResponses, DefaultCacheBehavior, Distribution, DistributionConfig, EncryptionEntities, EndPoint, FieldLevelEncryption, FieldLevelEncryptionConfig, FieldLevelEncryptionProfile, FieldLevelEncryptionProfileConfig, FunctionConfig, FunctionStage, FunctionSummary, HttpVersion, Invalidation, KeyGroup, KeyGroupConfig, MonitoringSubscription, OriginGroups, OriginRequestPolicy, OriginRequestPolicyConfig, Origins, PriceClass, PublicKey, PublicKeyConfig, QueryArgProfileConfig, RealtimeLogConfig, ResponseHeadersPolicy, ResponseHeadersPolicyConfig, Restrictions, S3Origin, StreamingDistribution, StreamingDistributionConfig, Tags, TrustedSigners, ViewerCertificate } from "./models_0";
|
|
4
|
+
/**
|
|
5
|
+
* <p>Cannot delete this resource because it is in use.</p>
|
|
6
|
+
*/
|
|
7
|
+
export declare class ResourceInUse extends __BaseException {
|
|
8
|
+
readonly name: "ResourceInUse";
|
|
9
|
+
readonly $fault: "client";
|
|
10
|
+
Message?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @internal
|
|
13
|
+
*/
|
|
14
|
+
constructor(opts: __ExceptionOptionType<ResourceInUse, __BaseException>);
|
|
15
|
+
}
|
|
4
16
|
export interface DeleteMonitoringSubscriptionRequest {
|
|
5
17
|
/**
|
|
6
18
|
* <p>The ID of the distribution that you are disabling metrics for.</p>
|
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
|
|
2
2
|
import { CloudFrontServiceException as __BaseException } from "./CloudFrontServiceException";
|
|
3
3
|
import { Aliases, AliasICPRecordal, CacheBehaviors, CachePolicy, CachePolicyConfig, CachePolicyList, CachePolicyType, CloudFrontOriginAccessIdentity, CloudFrontOriginAccessIdentityConfig, ContentTypeProfileConfig, CustomErrorResponses, DefaultCacheBehavior, Distribution, DistributionConfig, EncryptionEntities, EndPoint, FieldLevelEncryption, FieldLevelEncryptionConfig, FieldLevelEncryptionProfile, FieldLevelEncryptionProfileConfig, FunctionConfig, FunctionStage, FunctionSummary, HttpVersion, Invalidation, KeyGroup, KeyGroupConfig, MonitoringSubscription, OriginGroups, OriginRequestPolicy, OriginRequestPolicyConfig, Origins, PriceClass, PublicKey, PublicKeyConfig, QueryArgProfileConfig, RealtimeLogConfig, ResponseHeadersPolicy, ResponseHeadersPolicyConfig, Restrictions, S3Origin, StreamingDistribution, StreamingDistributionConfig, Tags, TrustedSigners, ViewerCertificate } from "./models_0";
|
|
4
|
+
|
|
5
|
+
export declare class ResourceInUse extends __BaseException {
|
|
6
|
+
readonly name: "ResourceInUse";
|
|
7
|
+
readonly $fault: "client";
|
|
8
|
+
Message?: string;
|
|
9
|
+
|
|
10
|
+
constructor(opts: __ExceptionOptionType<ResourceInUse, __BaseException>);
|
|
11
|
+
}
|
|
4
12
|
export interface DeleteMonitoringSubscriptionRequest {
|
|
5
13
|
|
|
6
14
|
DistributionId: string | undefined;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-cloudfront",
|
|
3
3
|
"description": "AWS SDK for JavaScript Cloudfront Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.92.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
20
20
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
21
|
-
"@aws-sdk/client-sts": "3.
|
|
21
|
+
"@aws-sdk/client-sts": "3.92.0",
|
|
22
22
|
"@aws-sdk/config-resolver": "3.80.0",
|
|
23
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/credential-provider-node": "3.87.0",
|
|
24
24
|
"@aws-sdk/fetch-http-handler": "3.78.0",
|
|
25
25
|
"@aws-sdk/hash-node": "3.78.0",
|
|
26
26
|
"@aws-sdk/invalid-dependency": "3.78.0",
|
|
@@ -35,15 +35,15 @@
|
|
|
35
35
|
"@aws-sdk/node-config-provider": "3.80.0",
|
|
36
36
|
"@aws-sdk/node-http-handler": "3.82.0",
|
|
37
37
|
"@aws-sdk/protocol-http": "3.78.0",
|
|
38
|
-
"@aws-sdk/smithy-client": "3.
|
|
38
|
+
"@aws-sdk/smithy-client": "3.85.0",
|
|
39
39
|
"@aws-sdk/types": "3.78.0",
|
|
40
40
|
"@aws-sdk/url-parser": "3.78.0",
|
|
41
41
|
"@aws-sdk/util-base64-browser": "3.58.0",
|
|
42
42
|
"@aws-sdk/util-base64-node": "3.55.0",
|
|
43
43
|
"@aws-sdk/util-body-length-browser": "3.55.0",
|
|
44
44
|
"@aws-sdk/util-body-length-node": "3.55.0",
|
|
45
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
46
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
45
|
+
"@aws-sdk/util-defaults-mode-browser": "3.85.0",
|
|
46
|
+
"@aws-sdk/util-defaults-mode-node": "3.85.0",
|
|
47
47
|
"@aws-sdk/util-user-agent-browser": "3.78.0",
|
|
48
48
|
"@aws-sdk/util-user-agent-node": "3.80.0",
|
|
49
49
|
"@aws-sdk/util-utf8-browser": "3.55.0",
|