@aws-sdk/client-cloudfront 3.696.0 → 3.697.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/README.md +88 -0
- package/dist-cjs/index.js +976 -199
- package/dist-es/CloudFront.js +22 -0
- package/dist-es/commands/CreateAnycastIpListCommand.js +22 -0
- package/dist-es/commands/CreateVpcOriginCommand.js +22 -0
- package/dist-es/commands/DeleteAnycastIpListCommand.js +22 -0
- package/dist-es/commands/DeleteVpcOriginCommand.js +22 -0
- package/dist-es/commands/GetAnycastIpListCommand.js +22 -0
- package/dist-es/commands/GetVpcOriginCommand.js +22 -0
- package/dist-es/commands/ListAnycastIpListsCommand.js +22 -0
- package/dist-es/commands/ListDistributionsByAnycastIpListIdCommand.js +23 -0
- package/dist-es/commands/ListDistributionsByVpcOriginIdCommand.js +22 -0
- package/dist-es/commands/ListVpcOriginsCommand.js +22 -0
- package/dist-es/commands/UpdateVpcOriginCommand.js +22 -0
- package/dist-es/commands/index.js +11 -0
- package/dist-es/models/models_0.js +78 -52
- package/dist-es/models/models_1.js +3 -13
- package/dist-es/protocols/Aws_restXml.js +630 -56
- package/dist-types/CloudFront.d.ts +79 -0
- package/dist-types/CloudFrontClient.d.ts +13 -2
- package/dist-types/commands/CopyDistributionCommand.d.ts +14 -4
- package/dist-types/commands/CreateAnycastIpListCommand.d.ts +110 -0
- package/dist-types/commands/CreateDistributionCommand.d.ts +31 -8
- package/dist-types/commands/CreateDistributionWithTagsCommand.d.ts +31 -8
- package/dist-types/commands/CreateKeyValueStoreCommand.d.ts +3 -3
- package/dist-types/commands/CreateVpcOriginCommand.d.ts +135 -0
- package/dist-types/commands/DeleteAnycastIpListCommand.d.ts +95 -0
- package/dist-types/commands/DeleteCachePolicyCommand.d.ts +1 -1
- package/dist-types/commands/DeleteKeyValueStoreCommand.d.ts +2 -2
- package/dist-types/commands/DeleteOriginRequestPolicyCommand.d.ts +1 -1
- package/dist-types/commands/DeleteResponseHeadersPolicyCommand.d.ts +1 -1
- package/dist-types/commands/DeleteVpcOriginCommand.d.ts +117 -0
- package/dist-types/commands/DescribeKeyValueStoreCommand.d.ts +1 -1
- package/dist-types/commands/GetAnycastIpListCommand.d.ts +94 -0
- package/dist-types/commands/GetDistributionCommand.d.ts +14 -4
- package/dist-types/commands/GetDistributionConfigCommand.d.ts +14 -4
- package/dist-types/commands/GetVpcOriginCommand.d.ts +103 -0
- package/dist-types/commands/ListAnycastIpListsCommand.d.ts +100 -0
- package/dist-types/commands/ListDistributionsByAnycastIpListIdCommand.d.ts +392 -0
- package/dist-types/commands/ListDistributionsByRealtimeLogConfigCommand.d.ts +10 -0
- package/dist-types/commands/ListDistributionsByVpcOriginIdCommand.d.ts +94 -0
- package/dist-types/commands/ListDistributionsByWebACLIdCommand.d.ts +10 -0
- package/dist-types/commands/ListDistributionsCommand.d.ts +10 -0
- package/dist-types/commands/ListVpcOriginsCommand.d.ts +101 -0
- package/dist-types/commands/UpdateDistributionCommand.d.ts +31 -8
- package/dist-types/commands/UpdateDistributionWithStagingConfigCommand.d.ts +17 -4
- package/dist-types/commands/UpdateKeyValueStoreCommand.d.ts +1 -1
- package/dist-types/commands/UpdateVpcOriginCommand.d.ts +141 -0
- package/dist-types/commands/index.d.ts +11 -0
- package/dist-types/models/models_0.d.ts +337 -314
- package/dist-types/models/models_1.d.ts +668 -24
- package/dist-types/protocols/Aws_restXml.d.ts +99 -0
- package/dist-types/ts3.4/CloudFront.d.ts +195 -0
- package/dist-types/ts3.4/CloudFrontClient.d.ts +68 -2
- package/dist-types/ts3.4/commands/CreateAnycastIpListCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/CreateVpcOriginCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/DeleteAnycastIpListCommand.d.ts +46 -0
- package/dist-types/ts3.4/commands/DeleteVpcOriginCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/GetAnycastIpListCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/GetVpcOriginCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/ListAnycastIpListsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListDistributionsByAnycastIpListIdCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListDistributionsByVpcOriginIdCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListVpcOriginsCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/UpdateVpcOriginCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/index.d.ts +11 -0
- package/dist-types/ts3.4/models/models_0.d.ts +99 -89
- package/dist-types/ts3.4/models/models_1.d.ts +167 -13
- package/dist-types/ts3.4/protocols/Aws_restXml.d.ts +132 -0
- package/package.json +1 -1
|
@@ -3,8 +3,8 @@ import { XmlNode as __XmlNode } from "@aws-sdk/xml-builder";
|
|
|
3
3
|
import { requestBuilder as rb } from "@smithy/core";
|
|
4
4
|
import { collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, getArrayIfSingleItem as __getArrayIfSingleItem, isSerializableHeaderValue, map, parseBoolean as __parseBoolean, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, strictParseFloat as __strictParseFloat, strictParseInt32 as __strictParseInt32, strictParseLong as __strictParseLong, withBaseException, } from "@smithy/smithy-client";
|
|
5
5
|
import { CloudFrontServiceException as __BaseException } from "../models/CloudFrontServiceException";
|
|
6
|
-
import { AccessDenied, BatchTooLarge, CachePolicyAlreadyExists, CachePolicyInUse, CannotChangeImmutablePublicKeyFields, CannotDeleteEntityWhileInUse, CloudFrontOriginAccessIdentityAlreadyExists, CNAMEAlreadyExists, ContinuousDeploymentPolicyAlreadyExists, ContinuousDeploymentPolicyInUse, DistributionAlreadyExists, EntityAlreadyExists, EntityLimitExceeded, EntitySizeLimitExceeded, FieldLevelEncryptionConfigAlreadyExists, FieldLevelEncryptionProfileAlreadyExists, FieldLevelEncryptionProfileSizeExceeded, FunctionAlreadyExists, FunctionSizeLimitExceeded, IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior, IllegalOriginAccessConfiguration, IllegalUpdate, InconsistentQuantities, InvalidArgument, InvalidDefaultRootObject, InvalidDomainNameForOriginAccessControl, InvalidErrorCode, InvalidForwardCookies, InvalidFunctionAssociation, InvalidGeoRestrictionParameter, InvalidHeadersForS3Origin, InvalidIfMatchVersion, InvalidLambdaFunctionAssociation, InvalidLocationCode, InvalidMinimumProtocolVersion, InvalidOrigin, InvalidOriginAccessControl, InvalidOriginAccessIdentity, InvalidOriginKeepaliveTimeout, InvalidOriginReadTimeout, InvalidProtocolSettings, InvalidQueryStringParameters, InvalidRelativePath, InvalidRequiredProtocol, InvalidResponseCode, InvalidTagging, InvalidTTLOrder, InvalidViewerCertificate, InvalidWebACLId, KeyGroupAlreadyExists, MissingBody, MonitoringSubscriptionAlreadyExists, NoSuchCachePolicy, NoSuchContinuousDeploymentPolicy, NoSuchDistribution, NoSuchFieldLevelEncryptionConfig, NoSuchFieldLevelEncryptionProfile, NoSuchOrigin, NoSuchOriginRequestPolicy, NoSuchPublicKey, NoSuchRealtimeLogConfig, NoSuchResponseHeadersPolicy, OriginAccessControlAlreadyExists, OriginRequestPolicyAlreadyExists, PreconditionFailed, PublicKeyAlreadyExists, QueryArgProfileEmpty, RealtimeLogConfigAlreadyExists, RealtimeLogConfigOwnerMismatch, StagingDistributionInUse, TooManyCacheBehaviors, TooManyCachePolicies, TooManyCertificates, TooManyCloudFrontOriginAccessIdentities, TooManyContinuousDeploymentPolicies, TooManyCookieNamesInWhiteList, TooManyCookiesInCachePolicy, TooManyCookiesInOriginRequestPolicy, TooManyDistributionCNAMEs, TooManyDistributions, TooManyDistributionsAssociatedToCachePolicy, TooManyDistributionsAssociatedToFieldLevelEncryptionConfig, TooManyDistributionsAssociatedToKeyGroup, TooManyDistributionsAssociatedToOriginAccessControl, TooManyDistributionsAssociatedToOriginRequestPolicy, TooManyDistributionsAssociatedToResponseHeadersPolicy, TooManyDistributionsWithFunctionAssociations, TooManyDistributionsWithLambdaAssociations, TooManyDistributionsWithSingleFunctionARN, TooManyFieldLevelEncryptionConfigs, TooManyFieldLevelEncryptionContentTypeProfiles, TooManyFieldLevelEncryptionEncryptionEntities, TooManyFieldLevelEncryptionFieldPatterns, TooManyFieldLevelEncryptionProfiles, TooManyFieldLevelEncryptionQueryArgProfiles, TooManyFunctionAssociations, TooManyFunctions, TooManyHeadersInCachePolicy, TooManyHeadersInForwardedValues, TooManyHeadersInOriginRequestPolicy, TooManyInvalidationsInProgress, TooManyKeyGroups, TooManyKeyGroupsAssociatedToDistribution, TooManyLambdaFunctionAssociations, TooManyOriginAccessControls, TooManyOriginCustomHeaders, TooManyOriginGroupsPerDistribution, TooManyOriginRequestPolicies, TooManyOrigins, TooManyPublicKeys, TooManyPublicKeysInKeyGroup, TooManyQueryStringParameters, TooManyQueryStringsInCachePolicy, TooManyQueryStringsInOriginRequestPolicy, TooManyRealtimeLogConfigs, TooManyTrustedSigners, TrustedKeyGroupDoesNotExist, TrustedSignerDoesNotExist, UnsupportedOperation, } from "../models/models_0";
|
|
7
|
-
import { CloudFrontOriginAccessIdentityInUse, DistributionNotDisabled,
|
|
6
|
+
import { AccessDenied, BatchTooLarge, CachePolicyAlreadyExists, CachePolicyInUse, CannotChangeImmutablePublicKeyFields, CannotDeleteEntityWhileInUse, CannotUpdateEntityWhileInUse, CloudFrontOriginAccessIdentityAlreadyExists, CNAMEAlreadyExists, ContinuousDeploymentPolicyAlreadyExists, ContinuousDeploymentPolicyInUse, DistributionAlreadyExists, EntityAlreadyExists, EntityLimitExceeded, EntityNotFound, EntitySizeLimitExceeded, FieldLevelEncryptionConfigAlreadyExists, FieldLevelEncryptionProfileAlreadyExists, FieldLevelEncryptionProfileSizeExceeded, FunctionAlreadyExists, FunctionSizeLimitExceeded, IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior, IllegalOriginAccessConfiguration, IllegalUpdate, InconsistentQuantities, InvalidArgument, InvalidDefaultRootObject, InvalidDomainNameForOriginAccessControl, InvalidErrorCode, InvalidForwardCookies, InvalidFunctionAssociation, InvalidGeoRestrictionParameter, InvalidHeadersForS3Origin, InvalidIfMatchVersion, InvalidLambdaFunctionAssociation, InvalidLocationCode, InvalidMinimumProtocolVersion, InvalidOrigin, InvalidOriginAccessControl, InvalidOriginAccessIdentity, InvalidOriginKeepaliveTimeout, InvalidOriginReadTimeout, InvalidProtocolSettings, InvalidQueryStringParameters, InvalidRelativePath, InvalidRequiredProtocol, InvalidResponseCode, InvalidTagging, InvalidTTLOrder, InvalidViewerCertificate, InvalidWebACLId, KeyGroupAlreadyExists, MissingBody, MonitoringSubscriptionAlreadyExists, NoSuchCachePolicy, NoSuchContinuousDeploymentPolicy, NoSuchDistribution, NoSuchFieldLevelEncryptionConfig, NoSuchFieldLevelEncryptionProfile, NoSuchOrigin, NoSuchOriginRequestPolicy, NoSuchPublicKey, NoSuchRealtimeLogConfig, NoSuchResponseHeadersPolicy, OriginAccessControlAlreadyExists, OriginRequestPolicyAlreadyExists, PreconditionFailed, PublicKeyAlreadyExists, QueryArgProfileEmpty, RealtimeLogConfigAlreadyExists, RealtimeLogConfigOwnerMismatch, StagingDistributionInUse, TooManyCacheBehaviors, TooManyCachePolicies, TooManyCertificates, TooManyCloudFrontOriginAccessIdentities, TooManyContinuousDeploymentPolicies, TooManyCookieNamesInWhiteList, TooManyCookiesInCachePolicy, TooManyCookiesInOriginRequestPolicy, TooManyDistributionCNAMEs, TooManyDistributions, TooManyDistributionsAssociatedToCachePolicy, TooManyDistributionsAssociatedToFieldLevelEncryptionConfig, TooManyDistributionsAssociatedToKeyGroup, TooManyDistributionsAssociatedToOriginAccessControl, TooManyDistributionsAssociatedToOriginRequestPolicy, TooManyDistributionsAssociatedToResponseHeadersPolicy, TooManyDistributionsWithFunctionAssociations, TooManyDistributionsWithLambdaAssociations, TooManyDistributionsWithSingleFunctionARN, TooManyFieldLevelEncryptionConfigs, TooManyFieldLevelEncryptionContentTypeProfiles, TooManyFieldLevelEncryptionEncryptionEntities, TooManyFieldLevelEncryptionFieldPatterns, TooManyFieldLevelEncryptionProfiles, TooManyFieldLevelEncryptionQueryArgProfiles, TooManyFunctionAssociations, TooManyFunctions, TooManyHeadersInCachePolicy, TooManyHeadersInForwardedValues, TooManyHeadersInOriginRequestPolicy, TooManyInvalidationsInProgress, TooManyKeyGroups, TooManyKeyGroupsAssociatedToDistribution, TooManyLambdaFunctionAssociations, TooManyOriginAccessControls, TooManyOriginCustomHeaders, TooManyOriginGroupsPerDistribution, TooManyOriginRequestPolicies, TooManyOrigins, TooManyPublicKeys, TooManyPublicKeysInKeyGroup, TooManyQueryStringParameters, TooManyQueryStringsInCachePolicy, TooManyQueryStringsInOriginRequestPolicy, TooManyRealtimeLogConfigs, TooManyTrustedSigners, TrustedKeyGroupDoesNotExist, TrustedSignerDoesNotExist, UnsupportedOperation, } from "../models/models_0";
|
|
7
|
+
import { CloudFrontOriginAccessIdentityInUse, DistributionNotDisabled, FieldLevelEncryptionConfigInUse, FieldLevelEncryptionProfileInUse, FunctionInUse, IllegalDelete, NoSuchCloudFrontOriginAccessIdentity, NoSuchFunctionExists, NoSuchInvalidation, NoSuchMonitoringSubscription, NoSuchOriginAccessControl, NoSuchResource, NoSuchStreamingDistribution, OriginAccessControlInUse, OriginRequestPolicyInUse, PublicKeyInUse, RealtimeLogConfigInUse, ResourceInUse, ResponseHeadersPolicyAlreadyExists, ResponseHeadersPolicyInUse, StreamingDistributionAlreadyExists, StreamingDistributionNotDisabled, TestFunctionFailed, TooLongCSPInResponseHeadersPolicy, TooManyCustomHeadersInResponseHeadersPolicy, TooManyRemoveHeadersInResponseHeadersPolicy, TooManyResponseHeadersPolicies, TooManyStreamingDistributionCNAMEs, TooManyStreamingDistributions, } from "../models/models_1";
|
|
8
8
|
export const se_AssociateAliasCommand = async (input, context) => {
|
|
9
9
|
const b = rb(input, context);
|
|
10
10
|
const headers = {};
|
|
@@ -40,6 +40,29 @@ export const se_CopyDistributionCommand = async (input, context) => {
|
|
|
40
40
|
b.m("POST").h(headers).b(body);
|
|
41
41
|
return b.build();
|
|
42
42
|
};
|
|
43
|
+
export const se_CreateAnycastIpListCommand = async (input, context) => {
|
|
44
|
+
const b = rb(input, context);
|
|
45
|
+
const headers = {
|
|
46
|
+
"content-type": "application/xml",
|
|
47
|
+
};
|
|
48
|
+
b.bp("/2020-05-31/anycast-ip-list");
|
|
49
|
+
let body;
|
|
50
|
+
body = _ve;
|
|
51
|
+
const bn = new __XmlNode(_CAILR);
|
|
52
|
+
bn.a("xmlns", "http://cloudfront.amazonaws.com/doc/2020-05-31/");
|
|
53
|
+
if (input[_IC] != null) {
|
|
54
|
+
bn.c(__XmlNode.of(_i, String(input[_IC])).n(_IC));
|
|
55
|
+
}
|
|
56
|
+
if (input[_N] != null) {
|
|
57
|
+
bn.c(__XmlNode.of(_AILN, input[_N]).n(_N));
|
|
58
|
+
}
|
|
59
|
+
if (input[_T] != null) {
|
|
60
|
+
bn.c(se_Tags(input[_T], context).n(_T));
|
|
61
|
+
}
|
|
62
|
+
body += bn.toString();
|
|
63
|
+
b.m("POST").h(headers).b(body);
|
|
64
|
+
return b.build();
|
|
65
|
+
};
|
|
43
66
|
export const se_CreateCachePolicyCommand = async (input, context) => {
|
|
44
67
|
const b = rb(input, context);
|
|
45
68
|
const headers = {
|
|
@@ -388,6 +411,37 @@ export const se_CreateStreamingDistributionWithTagsCommand = async (input, conte
|
|
|
388
411
|
b.m("POST").h(headers).q(query).b(body);
|
|
389
412
|
return b.build();
|
|
390
413
|
};
|
|
414
|
+
export const se_CreateVpcOriginCommand = async (input, context) => {
|
|
415
|
+
const b = rb(input, context);
|
|
416
|
+
const headers = {
|
|
417
|
+
"content-type": "application/xml",
|
|
418
|
+
};
|
|
419
|
+
b.bp("/2020-05-31/vpc-origin");
|
|
420
|
+
let body;
|
|
421
|
+
body = _ve;
|
|
422
|
+
const bn = new __XmlNode(_CVOR);
|
|
423
|
+
bn.a("xmlns", "http://cloudfront.amazonaws.com/doc/2020-05-31/");
|
|
424
|
+
if (input[_T] != null) {
|
|
425
|
+
bn.c(se_Tags(input[_T], context).n(_T));
|
|
426
|
+
}
|
|
427
|
+
if (input[_VOEC] != null) {
|
|
428
|
+
bn.c(se_VpcOriginEndpointConfig(input[_VOEC], context).n(_VOEC));
|
|
429
|
+
}
|
|
430
|
+
body += bn.toString();
|
|
431
|
+
b.m("POST").h(headers).b(body);
|
|
432
|
+
return b.build();
|
|
433
|
+
};
|
|
434
|
+
export const se_DeleteAnycastIpListCommand = async (input, context) => {
|
|
435
|
+
const b = rb(input, context);
|
|
436
|
+
const headers = map({}, isSerializableHeaderValue, {
|
|
437
|
+
[_im]: input[_IM],
|
|
438
|
+
});
|
|
439
|
+
b.bp("/2020-05-31/anycast-ip-list/{Id}");
|
|
440
|
+
b.p("Id", () => input.Id, "{Id}", false);
|
|
441
|
+
let body;
|
|
442
|
+
b.m("DELETE").h(headers).b(body);
|
|
443
|
+
return b.build();
|
|
444
|
+
};
|
|
391
445
|
export const se_DeleteCachePolicyCommand = async (input, context) => {
|
|
392
446
|
const b = rb(input, context);
|
|
393
447
|
const headers = map({}, isSerializableHeaderValue, {
|
|
@@ -571,6 +625,17 @@ export const se_DeleteStreamingDistributionCommand = async (input, context) => {
|
|
|
571
625
|
b.m("DELETE").h(headers).b(body);
|
|
572
626
|
return b.build();
|
|
573
627
|
};
|
|
628
|
+
export const se_DeleteVpcOriginCommand = async (input, context) => {
|
|
629
|
+
const b = rb(input, context);
|
|
630
|
+
const headers = map({}, isSerializableHeaderValue, {
|
|
631
|
+
[_im]: input[_IM],
|
|
632
|
+
});
|
|
633
|
+
b.bp("/2020-05-31/vpc-origin/{Id}");
|
|
634
|
+
b.p("Id", () => input.Id, "{Id}", false);
|
|
635
|
+
let body;
|
|
636
|
+
b.m("DELETE").h(headers).b(body);
|
|
637
|
+
return b.build();
|
|
638
|
+
};
|
|
574
639
|
export const se_DescribeFunctionCommand = async (input, context) => {
|
|
575
640
|
const b = rb(input, context);
|
|
576
641
|
const headers = {};
|
|
@@ -592,6 +657,15 @@ export const se_DescribeKeyValueStoreCommand = async (input, context) => {
|
|
|
592
657
|
b.m("GET").h(headers).b(body);
|
|
593
658
|
return b.build();
|
|
594
659
|
};
|
|
660
|
+
export const se_GetAnycastIpListCommand = async (input, context) => {
|
|
661
|
+
const b = rb(input, context);
|
|
662
|
+
const headers = {};
|
|
663
|
+
b.bp("/2020-05-31/anycast-ip-list/{Id}");
|
|
664
|
+
b.p("Id", () => input.Id, "{Id}", false);
|
|
665
|
+
let body;
|
|
666
|
+
b.m("GET").h(headers).b(body);
|
|
667
|
+
return b.build();
|
|
668
|
+
};
|
|
595
669
|
export const se_GetCachePolicyCommand = async (input, context) => {
|
|
596
670
|
const b = rb(input, context);
|
|
597
671
|
const headers = {};
|
|
@@ -859,12 +933,33 @@ export const se_GetStreamingDistributionConfigCommand = async (input, context) =
|
|
|
859
933
|
b.m("GET").h(headers).b(body);
|
|
860
934
|
return b.build();
|
|
861
935
|
};
|
|
936
|
+
export const se_GetVpcOriginCommand = async (input, context) => {
|
|
937
|
+
const b = rb(input, context);
|
|
938
|
+
const headers = {};
|
|
939
|
+
b.bp("/2020-05-31/vpc-origin/{Id}");
|
|
940
|
+
b.p("Id", () => input.Id, "{Id}", false);
|
|
941
|
+
let body;
|
|
942
|
+
b.m("GET").h(headers).b(body);
|
|
943
|
+
return b.build();
|
|
944
|
+
};
|
|
945
|
+
export const se_ListAnycastIpListsCommand = async (input, context) => {
|
|
946
|
+
const b = rb(input, context);
|
|
947
|
+
const headers = {};
|
|
948
|
+
b.bp("/2020-05-31/anycast-ip-list");
|
|
949
|
+
const query = map({
|
|
950
|
+
[_M]: [, input[_M]],
|
|
951
|
+
[_MI]: [() => input.MaxItems !== void 0, () => input[_MI].toString()],
|
|
952
|
+
});
|
|
953
|
+
let body;
|
|
954
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
955
|
+
return b.build();
|
|
956
|
+
};
|
|
862
957
|
export const se_ListCachePoliciesCommand = async (input, context) => {
|
|
863
958
|
const b = rb(input, context);
|
|
864
959
|
const headers = {};
|
|
865
960
|
b.bp("/2020-05-31/cache-policy");
|
|
866
961
|
const query = map({
|
|
867
|
-
[
|
|
962
|
+
[_Ty]: [, input[_Ty]],
|
|
868
963
|
[_M]: [, input[_M]],
|
|
869
964
|
[_MI]: [() => input.MaxItems !== void 0, () => input[_MI].toString()],
|
|
870
965
|
});
|
|
@@ -922,6 +1017,19 @@ export const se_ListDistributionsCommand = async (input, context) => {
|
|
|
922
1017
|
b.m("GET").h(headers).q(query).b(body);
|
|
923
1018
|
return b.build();
|
|
924
1019
|
};
|
|
1020
|
+
export const se_ListDistributionsByAnycastIpListIdCommand = async (input, context) => {
|
|
1021
|
+
const b = rb(input, context);
|
|
1022
|
+
const headers = {};
|
|
1023
|
+
b.bp("/2020-05-31/distributionsByAnycastIpListId/{AnycastIpListId}");
|
|
1024
|
+
b.p("AnycastIpListId", () => input.AnycastIpListId, "{AnycastIpListId}", false);
|
|
1025
|
+
const query = map({
|
|
1026
|
+
[_M]: [, input[_M]],
|
|
1027
|
+
[_MI]: [() => input.MaxItems !== void 0, () => input[_MI].toString()],
|
|
1028
|
+
});
|
|
1029
|
+
let body;
|
|
1030
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
1031
|
+
return b.build();
|
|
1032
|
+
};
|
|
925
1033
|
export const se_ListDistributionsByCachePolicyIdCommand = async (input, context) => {
|
|
926
1034
|
const b = rb(input, context);
|
|
927
1035
|
const headers = {};
|
|
@@ -1000,6 +1108,19 @@ export const se_ListDistributionsByResponseHeadersPolicyIdCommand = async (input
|
|
|
1000
1108
|
b.m("GET").h(headers).q(query).b(body);
|
|
1001
1109
|
return b.build();
|
|
1002
1110
|
};
|
|
1111
|
+
export const se_ListDistributionsByVpcOriginIdCommand = async (input, context) => {
|
|
1112
|
+
const b = rb(input, context);
|
|
1113
|
+
const headers = {};
|
|
1114
|
+
b.bp("/2020-05-31/distributionsByVpcOriginId/{VpcOriginId}");
|
|
1115
|
+
b.p("VpcOriginId", () => input.VpcOriginId, "{VpcOriginId}", false);
|
|
1116
|
+
const query = map({
|
|
1117
|
+
[_M]: [, input[_M]],
|
|
1118
|
+
[_MI]: [() => input.MaxItems !== void 0, () => input[_MI].toString()],
|
|
1119
|
+
});
|
|
1120
|
+
let body;
|
|
1121
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
1122
|
+
return b.build();
|
|
1123
|
+
};
|
|
1003
1124
|
export const se_ListDistributionsByWebACLIdCommand = async (input, context) => {
|
|
1004
1125
|
const b = rb(input, context);
|
|
1005
1126
|
const headers = {};
|
|
@@ -1105,7 +1226,7 @@ export const se_ListOriginRequestPoliciesCommand = async (input, context) => {
|
|
|
1105
1226
|
const headers = {};
|
|
1106
1227
|
b.bp("/2020-05-31/origin-request-policy");
|
|
1107
1228
|
const query = map({
|
|
1108
|
-
[
|
|
1229
|
+
[_Ty]: [, input[_Ty]],
|
|
1109
1230
|
[_M]: [, input[_M]],
|
|
1110
1231
|
[_MI]: [() => input.MaxItems !== void 0, () => input[_MI].toString()],
|
|
1111
1232
|
});
|
|
@@ -1142,7 +1263,7 @@ export const se_ListResponseHeadersPoliciesCommand = async (input, context) => {
|
|
|
1142
1263
|
const headers = {};
|
|
1143
1264
|
b.bp("/2020-05-31/response-headers-policy");
|
|
1144
1265
|
const query = map({
|
|
1145
|
-
[
|
|
1266
|
+
[_Ty]: [, input[_Ty]],
|
|
1146
1267
|
[_M]: [, input[_M]],
|
|
1147
1268
|
[_MI]: [() => input.MaxItems !== void 0, () => input[_MI].toString()],
|
|
1148
1269
|
});
|
|
@@ -1173,6 +1294,18 @@ export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
|
1173
1294
|
b.m("GET").h(headers).q(query).b(body);
|
|
1174
1295
|
return b.build();
|
|
1175
1296
|
};
|
|
1297
|
+
export const se_ListVpcOriginsCommand = async (input, context) => {
|
|
1298
|
+
const b = rb(input, context);
|
|
1299
|
+
const headers = {};
|
|
1300
|
+
b.bp("/2020-05-31/vpc-origin");
|
|
1301
|
+
const query = map({
|
|
1302
|
+
[_M]: [, input[_M]],
|
|
1303
|
+
[_MI]: [() => input.MaxItems !== void 0, () => input[_MI].toString()],
|
|
1304
|
+
});
|
|
1305
|
+
let body;
|
|
1306
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
1307
|
+
return b.build();
|
|
1308
|
+
};
|
|
1176
1309
|
export const se_PublishFunctionCommand = async (input, context) => {
|
|
1177
1310
|
const b = rb(input, context);
|
|
1178
1311
|
const headers = map({}, isSerializableHeaderValue, {
|
|
@@ -1556,6 +1689,25 @@ export const se_UpdateStreamingDistributionCommand = async (input, context) => {
|
|
|
1556
1689
|
b.m("PUT").h(headers).b(body);
|
|
1557
1690
|
return b.build();
|
|
1558
1691
|
};
|
|
1692
|
+
export const se_UpdateVpcOriginCommand = async (input, context) => {
|
|
1693
|
+
const b = rb(input, context);
|
|
1694
|
+
const headers = map({}, isSerializableHeaderValue, {
|
|
1695
|
+
"content-type": "application/xml",
|
|
1696
|
+
[_im]: input[_IM],
|
|
1697
|
+
});
|
|
1698
|
+
b.bp("/2020-05-31/vpc-origin/{Id}");
|
|
1699
|
+
b.p("Id", () => input.Id, "{Id}", false);
|
|
1700
|
+
let body;
|
|
1701
|
+
let contents;
|
|
1702
|
+
if (input.VpcOriginEndpointConfig !== undefined) {
|
|
1703
|
+
contents = se_VpcOriginEndpointConfig(input.VpcOriginEndpointConfig, context);
|
|
1704
|
+
body = _ve;
|
|
1705
|
+
contents.a("xmlns", "http://cloudfront.amazonaws.com/doc/2020-05-31/");
|
|
1706
|
+
body += contents.toString();
|
|
1707
|
+
}
|
|
1708
|
+
b.m("PUT").h(headers).b(body);
|
|
1709
|
+
return b.build();
|
|
1710
|
+
};
|
|
1559
1711
|
export const de_AssociateAliasCommand = async (output, context) => {
|
|
1560
1712
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1561
1713
|
return de_CommandError(output, context);
|
|
@@ -1579,6 +1731,18 @@ export const de_CopyDistributionCommand = async (output, context) => {
|
|
|
1579
1731
|
contents.Distribution = de_Distribution(data, context);
|
|
1580
1732
|
return contents;
|
|
1581
1733
|
};
|
|
1734
|
+
export const de_CreateAnycastIpListCommand = async (output, context) => {
|
|
1735
|
+
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1736
|
+
return de_CommandError(output, context);
|
|
1737
|
+
}
|
|
1738
|
+
const contents = map({
|
|
1739
|
+
$metadata: deserializeMetadata(output),
|
|
1740
|
+
[_ET]: [, output.headers[_e]],
|
|
1741
|
+
});
|
|
1742
|
+
const data = __expectObject(await parseBody(output.body, context));
|
|
1743
|
+
contents.AnycastIpList = de_AnycastIpList(data, context);
|
|
1744
|
+
return contents;
|
|
1745
|
+
};
|
|
1582
1746
|
export const de_CreateCachePolicyCommand = async (output, context) => {
|
|
1583
1747
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1584
1748
|
return de_CommandError(output, context);
|
|
@@ -1823,6 +1987,29 @@ export const de_CreateStreamingDistributionWithTagsCommand = async (output, cont
|
|
|
1823
1987
|
contents.StreamingDistribution = de_StreamingDistribution(data, context);
|
|
1824
1988
|
return contents;
|
|
1825
1989
|
};
|
|
1990
|
+
export const de_CreateVpcOriginCommand = async (output, context) => {
|
|
1991
|
+
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1992
|
+
return de_CommandError(output, context);
|
|
1993
|
+
}
|
|
1994
|
+
const contents = map({
|
|
1995
|
+
$metadata: deserializeMetadata(output),
|
|
1996
|
+
[_L]: [, output.headers[_lo]],
|
|
1997
|
+
[_ET]: [, output.headers[_e]],
|
|
1998
|
+
});
|
|
1999
|
+
const data = __expectObject(await parseBody(output.body, context));
|
|
2000
|
+
contents.VpcOrigin = de_VpcOrigin(data, context);
|
|
2001
|
+
return contents;
|
|
2002
|
+
};
|
|
2003
|
+
export const de_DeleteAnycastIpListCommand = async (output, context) => {
|
|
2004
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2005
|
+
return de_CommandError(output, context);
|
|
2006
|
+
}
|
|
2007
|
+
const contents = map({
|
|
2008
|
+
$metadata: deserializeMetadata(output),
|
|
2009
|
+
});
|
|
2010
|
+
await collectBody(output.body, context);
|
|
2011
|
+
return contents;
|
|
2012
|
+
};
|
|
1826
2013
|
export const de_DeleteCachePolicyCommand = async (output, context) => {
|
|
1827
2014
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1828
2015
|
return de_CommandError(output, context);
|
|
@@ -1983,6 +2170,18 @@ export const de_DeleteStreamingDistributionCommand = async (output, context) =>
|
|
|
1983
2170
|
await collectBody(output.body, context);
|
|
1984
2171
|
return contents;
|
|
1985
2172
|
};
|
|
2173
|
+
export const de_DeleteVpcOriginCommand = async (output, context) => {
|
|
2174
|
+
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
2175
|
+
return de_CommandError(output, context);
|
|
2176
|
+
}
|
|
2177
|
+
const contents = map({
|
|
2178
|
+
$metadata: deserializeMetadata(output),
|
|
2179
|
+
[_ET]: [, output.headers[_e]],
|
|
2180
|
+
});
|
|
2181
|
+
const data = __expectObject(await parseBody(output.body, context));
|
|
2182
|
+
contents.VpcOrigin = de_VpcOrigin(data, context);
|
|
2183
|
+
return contents;
|
|
2184
|
+
};
|
|
1986
2185
|
export const de_DescribeFunctionCommand = async (output, context) => {
|
|
1987
2186
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1988
2187
|
return de_CommandError(output, context);
|
|
@@ -2007,6 +2206,18 @@ export const de_DescribeKeyValueStoreCommand = async (output, context) => {
|
|
|
2007
2206
|
contents.KeyValueStore = de_KeyValueStore(data, context);
|
|
2008
2207
|
return contents;
|
|
2009
2208
|
};
|
|
2209
|
+
export const de_GetAnycastIpListCommand = async (output, context) => {
|
|
2210
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2211
|
+
return de_CommandError(output, context);
|
|
2212
|
+
}
|
|
2213
|
+
const contents = map({
|
|
2214
|
+
$metadata: deserializeMetadata(output),
|
|
2215
|
+
[_ET]: [, output.headers[_e]],
|
|
2216
|
+
});
|
|
2217
|
+
const data = __expectObject(await parseBody(output.body, context));
|
|
2218
|
+
contents.AnycastIpList = de_AnycastIpList(data, context);
|
|
2219
|
+
return contents;
|
|
2220
|
+
};
|
|
2010
2221
|
export const de_GetCachePolicyCommand = async (output, context) => {
|
|
2011
2222
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2012
2223
|
return de_CommandError(output, context);
|
|
@@ -2343,6 +2554,29 @@ export const de_GetStreamingDistributionConfigCommand = async (output, context)
|
|
|
2343
2554
|
contents.StreamingDistributionConfig = de_StreamingDistributionConfig(data, context);
|
|
2344
2555
|
return contents;
|
|
2345
2556
|
};
|
|
2557
|
+
export const de_GetVpcOriginCommand = async (output, context) => {
|
|
2558
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2559
|
+
return de_CommandError(output, context);
|
|
2560
|
+
}
|
|
2561
|
+
const contents = map({
|
|
2562
|
+
$metadata: deserializeMetadata(output),
|
|
2563
|
+
[_ET]: [, output.headers[_e]],
|
|
2564
|
+
});
|
|
2565
|
+
const data = __expectObject(await parseBody(output.body, context));
|
|
2566
|
+
contents.VpcOrigin = de_VpcOrigin(data, context);
|
|
2567
|
+
return contents;
|
|
2568
|
+
};
|
|
2569
|
+
export const de_ListAnycastIpListsCommand = async (output, context) => {
|
|
2570
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2571
|
+
return de_CommandError(output, context);
|
|
2572
|
+
}
|
|
2573
|
+
const contents = map({
|
|
2574
|
+
$metadata: deserializeMetadata(output),
|
|
2575
|
+
});
|
|
2576
|
+
const data = __expectObject(await parseBody(output.body, context));
|
|
2577
|
+
contents.AnycastIpLists = de_AnycastIpListCollection(data, context);
|
|
2578
|
+
return contents;
|
|
2579
|
+
};
|
|
2346
2580
|
export const de_ListCachePoliciesCommand = async (output, context) => {
|
|
2347
2581
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2348
2582
|
return de_CommandError(output, context);
|
|
@@ -2398,6 +2632,17 @@ export const de_ListDistributionsCommand = async (output, context) => {
|
|
|
2398
2632
|
contents.DistributionList = de_DistributionList(data, context);
|
|
2399
2633
|
return contents;
|
|
2400
2634
|
};
|
|
2635
|
+
export const de_ListDistributionsByAnycastIpListIdCommand = async (output, context) => {
|
|
2636
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2637
|
+
return de_CommandError(output, context);
|
|
2638
|
+
}
|
|
2639
|
+
const contents = map({
|
|
2640
|
+
$metadata: deserializeMetadata(output),
|
|
2641
|
+
});
|
|
2642
|
+
const data = __expectObject(await parseBody(output.body, context));
|
|
2643
|
+
contents.DistributionList = de_DistributionList(data, context);
|
|
2644
|
+
return contents;
|
|
2645
|
+
};
|
|
2401
2646
|
export const de_ListDistributionsByCachePolicyIdCommand = async (output, context) => {
|
|
2402
2647
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2403
2648
|
return de_CommandError(output, context);
|
|
@@ -2453,6 +2698,17 @@ export const de_ListDistributionsByResponseHeadersPolicyIdCommand = async (outpu
|
|
|
2453
2698
|
contents.DistributionIdList = de_DistributionIdList(data, context);
|
|
2454
2699
|
return contents;
|
|
2455
2700
|
};
|
|
2701
|
+
export const de_ListDistributionsByVpcOriginIdCommand = async (output, context) => {
|
|
2702
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2703
|
+
return de_CommandError(output, context);
|
|
2704
|
+
}
|
|
2705
|
+
const contents = map({
|
|
2706
|
+
$metadata: deserializeMetadata(output),
|
|
2707
|
+
});
|
|
2708
|
+
const data = __expectObject(await parseBody(output.body, context));
|
|
2709
|
+
contents.DistributionIdList = de_DistributionIdList(data, context);
|
|
2710
|
+
return contents;
|
|
2711
|
+
};
|
|
2456
2712
|
export const de_ListDistributionsByWebACLIdCommand = async (output, context) => {
|
|
2457
2713
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2458
2714
|
return de_CommandError(output, context);
|
|
@@ -2607,6 +2863,17 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
2607
2863
|
contents.Tags = de_Tags(data, context);
|
|
2608
2864
|
return contents;
|
|
2609
2865
|
};
|
|
2866
|
+
export const de_ListVpcOriginsCommand = async (output, context) => {
|
|
2867
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2868
|
+
return de_CommandError(output, context);
|
|
2869
|
+
}
|
|
2870
|
+
const contents = map({
|
|
2871
|
+
$metadata: deserializeMetadata(output),
|
|
2872
|
+
});
|
|
2873
|
+
const data = __expectObject(await parseBody(output.body, context));
|
|
2874
|
+
contents.VpcOriginList = de_VpcOriginList(data, context);
|
|
2875
|
+
return contents;
|
|
2876
|
+
};
|
|
2610
2877
|
export const de_PublishFunctionCommand = async (output, context) => {
|
|
2611
2878
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2612
2879
|
return de_CommandError(output, context);
|
|
@@ -2842,6 +3109,18 @@ export const de_UpdateStreamingDistributionCommand = async (output, context) =>
|
|
|
2842
3109
|
contents.StreamingDistribution = de_StreamingDistribution(data, context);
|
|
2843
3110
|
return contents;
|
|
2844
3111
|
};
|
|
3112
|
+
export const de_UpdateVpcOriginCommand = async (output, context) => {
|
|
3113
|
+
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
3114
|
+
return de_CommandError(output, context);
|
|
3115
|
+
}
|
|
3116
|
+
const contents = map({
|
|
3117
|
+
$metadata: deserializeMetadata(output),
|
|
3118
|
+
[_ET]: [, output.headers[_e]],
|
|
3119
|
+
});
|
|
3120
|
+
const data = __expectObject(await parseBody(output.body, context));
|
|
3121
|
+
contents.VpcOrigin = de_VpcOrigin(data, context);
|
|
3122
|
+
return contents;
|
|
3123
|
+
};
|
|
2845
3124
|
const de_CommandError = async (output, context) => {
|
|
2846
3125
|
const parsedOutput = {
|
|
2847
3126
|
...output,
|
|
@@ -3044,6 +3323,18 @@ const de_CommandError = async (output, context) => {
|
|
|
3044
3323
|
case "TrustedSignerDoesNotExist":
|
|
3045
3324
|
case "com.amazonaws.cloudfront#TrustedSignerDoesNotExist":
|
|
3046
3325
|
throw await de_TrustedSignerDoesNotExistRes(parsedOutput, context);
|
|
3326
|
+
case "EntityAlreadyExists":
|
|
3327
|
+
case "com.amazonaws.cloudfront#EntityAlreadyExists":
|
|
3328
|
+
throw await de_EntityAlreadyExistsRes(parsedOutput, context);
|
|
3329
|
+
case "EntityLimitExceeded":
|
|
3330
|
+
case "com.amazonaws.cloudfront#EntityLimitExceeded":
|
|
3331
|
+
throw await de_EntityLimitExceededRes(parsedOutput, context);
|
|
3332
|
+
case "InvalidTagging":
|
|
3333
|
+
case "com.amazonaws.cloudfront#InvalidTagging":
|
|
3334
|
+
throw await de_InvalidTaggingRes(parsedOutput, context);
|
|
3335
|
+
case "UnsupportedOperation":
|
|
3336
|
+
case "com.amazonaws.cloudfront#UnsupportedOperation":
|
|
3337
|
+
throw await de_UnsupportedOperationRes(parsedOutput, context);
|
|
3047
3338
|
case "CachePolicyAlreadyExists":
|
|
3048
3339
|
case "com.amazonaws.cloudfront#CachePolicyAlreadyExists":
|
|
3049
3340
|
throw await de_CachePolicyAlreadyExistsRes(parsedOutput, context);
|
|
@@ -3077,6 +3368,9 @@ const de_CommandError = async (output, context) => {
|
|
|
3077
3368
|
case "ContinuousDeploymentPolicyInUse":
|
|
3078
3369
|
case "com.amazonaws.cloudfront#ContinuousDeploymentPolicyInUse":
|
|
3079
3370
|
throw await de_ContinuousDeploymentPolicyInUseRes(parsedOutput, context);
|
|
3371
|
+
case "EntityNotFound":
|
|
3372
|
+
case "com.amazonaws.cloudfront#EntityNotFound":
|
|
3373
|
+
throw await de_EntityNotFoundRes(parsedOutput, context);
|
|
3080
3374
|
case "IllegalOriginAccessConfiguration":
|
|
3081
3375
|
case "com.amazonaws.cloudfront#IllegalOriginAccessConfiguration":
|
|
3082
3376
|
throw await de_IllegalOriginAccessConfigurationRes(parsedOutput, context);
|
|
@@ -3086,9 +3380,6 @@ const de_CommandError = async (output, context) => {
|
|
|
3086
3380
|
case "NoSuchContinuousDeploymentPolicy":
|
|
3087
3381
|
case "com.amazonaws.cloudfront#NoSuchContinuousDeploymentPolicy":
|
|
3088
3382
|
throw await de_NoSuchContinuousDeploymentPolicyRes(parsedOutput, context);
|
|
3089
|
-
case "InvalidTagging":
|
|
3090
|
-
case "com.amazonaws.cloudfront#InvalidTagging":
|
|
3091
|
-
throw await de_InvalidTaggingRes(parsedOutput, context);
|
|
3092
3383
|
case "FieldLevelEncryptionConfigAlreadyExists":
|
|
3093
3384
|
case "com.amazonaws.cloudfront#FieldLevelEncryptionConfigAlreadyExists":
|
|
3094
3385
|
throw await de_FieldLevelEncryptionConfigAlreadyExistsRes(parsedOutput, context);
|
|
@@ -3134,9 +3425,6 @@ const de_CommandError = async (output, context) => {
|
|
|
3134
3425
|
case "TooManyFunctions":
|
|
3135
3426
|
case "com.amazonaws.cloudfront#TooManyFunctions":
|
|
3136
3427
|
throw await de_TooManyFunctionsRes(parsedOutput, context);
|
|
3137
|
-
case "UnsupportedOperation":
|
|
3138
|
-
case "com.amazonaws.cloudfront#UnsupportedOperation":
|
|
3139
|
-
throw await de_UnsupportedOperationRes(parsedOutput, context);
|
|
3140
3428
|
case "BatchTooLarge":
|
|
3141
3429
|
case "com.amazonaws.cloudfront#BatchTooLarge":
|
|
3142
3430
|
throw await de_BatchTooLargeRes(parsedOutput, context);
|
|
@@ -3152,12 +3440,6 @@ const de_CommandError = async (output, context) => {
|
|
|
3152
3440
|
case "TooManyPublicKeysInKeyGroup":
|
|
3153
3441
|
case "com.amazonaws.cloudfront#TooManyPublicKeysInKeyGroup":
|
|
3154
3442
|
throw await de_TooManyPublicKeysInKeyGroupRes(parsedOutput, context);
|
|
3155
|
-
case "EntityAlreadyExists":
|
|
3156
|
-
case "com.amazonaws.cloudfront#EntityAlreadyExists":
|
|
3157
|
-
throw await de_EntityAlreadyExistsRes(parsedOutput, context);
|
|
3158
|
-
case "EntityLimitExceeded":
|
|
3159
|
-
case "com.amazonaws.cloudfront#EntityLimitExceeded":
|
|
3160
|
-
throw await de_EntityLimitExceededRes(parsedOutput, context);
|
|
3161
3443
|
case "EntitySizeLimitExceeded":
|
|
3162
3444
|
case "com.amazonaws.cloudfront#EntitySizeLimitExceeded":
|
|
3163
3445
|
throw await de_EntitySizeLimitExceededRes(parsedOutput, context);
|
|
@@ -3221,12 +3503,15 @@ const de_CommandError = async (output, context) => {
|
|
|
3221
3503
|
case "TooManyStreamingDistributions":
|
|
3222
3504
|
case "com.amazonaws.cloudfront#TooManyStreamingDistributions":
|
|
3223
3505
|
throw await de_TooManyStreamingDistributionsRes(parsedOutput, context);
|
|
3224
|
-
case "
|
|
3225
|
-
case "com.amazonaws.cloudfront#
|
|
3226
|
-
throw await
|
|
3506
|
+
case "CannotDeleteEntityWhileInUse":
|
|
3507
|
+
case "com.amazonaws.cloudfront#CannotDeleteEntityWhileInUse":
|
|
3508
|
+
throw await de_CannotDeleteEntityWhileInUseRes(parsedOutput, context);
|
|
3227
3509
|
case "IllegalDelete":
|
|
3228
3510
|
case "com.amazonaws.cloudfront#IllegalDelete":
|
|
3229
3511
|
throw await de_IllegalDeleteRes(parsedOutput, context);
|
|
3512
|
+
case "CachePolicyInUse":
|
|
3513
|
+
case "com.amazonaws.cloudfront#CachePolicyInUse":
|
|
3514
|
+
throw await de_CachePolicyInUseRes(parsedOutput, context);
|
|
3230
3515
|
case "CloudFrontOriginAccessIdentityInUse":
|
|
3231
3516
|
case "com.amazonaws.cloudfront#CloudFrontOriginAccessIdentityInUse":
|
|
3232
3517
|
throw await de_CloudFrontOriginAccessIdentityInUseRes(parsedOutput, context);
|
|
@@ -3254,12 +3539,6 @@ const de_CommandError = async (output, context) => {
|
|
|
3254
3539
|
case "ResourceInUse":
|
|
3255
3540
|
case "com.amazonaws.cloudfront#ResourceInUse":
|
|
3256
3541
|
throw await de_ResourceInUseRes(parsedOutput, context);
|
|
3257
|
-
case "CannotDeleteEntityWhileInUse":
|
|
3258
|
-
case "com.amazonaws.cloudfront#CannotDeleteEntityWhileInUse":
|
|
3259
|
-
throw await de_CannotDeleteEntityWhileInUseRes(parsedOutput, context);
|
|
3260
|
-
case "EntityNotFound":
|
|
3261
|
-
case "com.amazonaws.cloudfront#EntityNotFound":
|
|
3262
|
-
throw await de_EntityNotFoundRes(parsedOutput, context);
|
|
3263
3542
|
case "NoSuchMonitoringSubscription":
|
|
3264
3543
|
case "com.amazonaws.cloudfront#NoSuchMonitoringSubscription":
|
|
3265
3544
|
throw await de_NoSuchMonitoringSubscriptionRes(parsedOutput, context);
|
|
@@ -3296,6 +3575,9 @@ const de_CommandError = async (output, context) => {
|
|
|
3296
3575
|
case "CannotChangeImmutablePublicKeyFields":
|
|
3297
3576
|
case "com.amazonaws.cloudfront#CannotChangeImmutablePublicKeyFields":
|
|
3298
3577
|
throw await de_CannotChangeImmutablePublicKeyFieldsRes(parsedOutput, context);
|
|
3578
|
+
case "CannotUpdateEntityWhileInUse":
|
|
3579
|
+
case "com.amazonaws.cloudfront#CannotUpdateEntityWhileInUse":
|
|
3580
|
+
throw await de_CannotUpdateEntityWhileInUseRes(parsedOutput, context);
|
|
3299
3581
|
default:
|
|
3300
3582
|
const parsedBody = parsedOutput.body;
|
|
3301
3583
|
return throwDefaultError({
|
|
@@ -3378,6 +3660,18 @@ const de_CannotDeleteEntityWhileInUseRes = async (parsedOutput, context) => {
|
|
|
3378
3660
|
});
|
|
3379
3661
|
return __decorateServiceException(exception, parsedOutput.body.Error);
|
|
3380
3662
|
};
|
|
3663
|
+
const de_CannotUpdateEntityWhileInUseRes = async (parsedOutput, context) => {
|
|
3664
|
+
const contents = map({});
|
|
3665
|
+
const data = parsedOutput.body.Error;
|
|
3666
|
+
if (data[_Me] != null) {
|
|
3667
|
+
contents[_Me] = __expectString(data[_Me]);
|
|
3668
|
+
}
|
|
3669
|
+
const exception = new CannotUpdateEntityWhileInUse({
|
|
3670
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3671
|
+
...contents,
|
|
3672
|
+
});
|
|
3673
|
+
return __decorateServiceException(exception, parsedOutput.body.Error);
|
|
3674
|
+
};
|
|
3381
3675
|
const de_CloudFrontOriginAccessIdentityAlreadyExistsRes = async (parsedOutput, context) => {
|
|
3382
3676
|
const contents = map({});
|
|
3383
3677
|
const data = parsedOutput.body.Error;
|
|
@@ -5206,6 +5500,9 @@ const se_CacheBehavior = (input, context) => {
|
|
|
5206
5500
|
if (input[_RHPI] != null) {
|
|
5207
5501
|
bn.c(__XmlNode.of(_st, input[_RHPI]).n(_RHPI));
|
|
5208
5502
|
}
|
|
5503
|
+
if (input[_GC] != null) {
|
|
5504
|
+
bn.c(se_GrpcConfig(input[_GC], context).n(_GC));
|
|
5505
|
+
}
|
|
5209
5506
|
if (input[_FV] != null) {
|
|
5210
5507
|
bn.c(se_ForwardedValues(input[_FV], context).n(_FV));
|
|
5211
5508
|
}
|
|
@@ -5504,6 +5801,9 @@ const se_DefaultCacheBehavior = (input, context) => {
|
|
|
5504
5801
|
if (input[_RHPI] != null) {
|
|
5505
5802
|
bn.c(__XmlNode.of(_st, input[_RHPI]).n(_RHPI));
|
|
5506
5803
|
}
|
|
5804
|
+
if (input[_GC] != null) {
|
|
5805
|
+
bn.c(se_GrpcConfig(input[_GC], context).n(_GC));
|
|
5806
|
+
}
|
|
5507
5807
|
if (input[_FV] != null) {
|
|
5508
5808
|
bn.c(se_ForwardedValues(input[_FV], context).n(_FV));
|
|
5509
5809
|
}
|
|
@@ -5573,6 +5873,9 @@ const se_DistributionConfig = (input, context) => {
|
|
|
5573
5873
|
if (input[_S] != null) {
|
|
5574
5874
|
bn.c(__XmlNode.of(_b, String(input[_S])).n(_S));
|
|
5575
5875
|
}
|
|
5876
|
+
if (input[_AILI] != null) {
|
|
5877
|
+
bn.c(__XmlNode.of(_st, input[_AILI]).n(_AILI));
|
|
5878
|
+
}
|
|
5576
5879
|
return bn;
|
|
5577
5880
|
};
|
|
5578
5881
|
const se_DistributionConfigWithTags = (input, context) => {
|
|
@@ -5580,8 +5883,8 @@ const se_DistributionConfigWithTags = (input, context) => {
|
|
|
5580
5883
|
if (input[_DC] != null) {
|
|
5581
5884
|
bn.c(se_DistributionConfig(input[_DC], context).n(_DC));
|
|
5582
5885
|
}
|
|
5583
|
-
if (input[
|
|
5584
|
-
bn.c(se_Tags(input[
|
|
5886
|
+
if (input[_T] != null) {
|
|
5887
|
+
bn.c(se_Tags(input[_T], context).n(_T));
|
|
5585
5888
|
}
|
|
5586
5889
|
return bn;
|
|
5587
5890
|
};
|
|
@@ -5750,6 +6053,13 @@ const se_GeoRestriction = (input, context) => {
|
|
|
5750
6053
|
bn.lc(input, "Items", "Items", () => se_LocationList(input[_I], context));
|
|
5751
6054
|
return bn;
|
|
5752
6055
|
};
|
|
6056
|
+
const se_GrpcConfig = (input, context) => {
|
|
6057
|
+
const bn = new __XmlNode(_GC);
|
|
6058
|
+
if (input[_E] != null) {
|
|
6059
|
+
bn.c(__XmlNode.of(_b, String(input[_E])).n(_E));
|
|
6060
|
+
}
|
|
6061
|
+
return bn;
|
|
6062
|
+
};
|
|
5753
6063
|
const se_HeaderList = (input, context) => {
|
|
5754
6064
|
return input
|
|
5755
6065
|
.filter((e) => e != null)
|
|
@@ -5866,8 +6176,8 @@ const se_LoggingConfig = (input, context) => {
|
|
|
5866
6176
|
if (input[_E] != null) {
|
|
5867
6177
|
bn.c(__XmlNode.of(_b, String(input[_E])).n(_E));
|
|
5868
6178
|
}
|
|
5869
|
-
if (input[
|
|
5870
|
-
bn.c(__XmlNode.of(_b, String(input[
|
|
6179
|
+
if (input[_ICn] != null) {
|
|
6180
|
+
bn.c(__XmlNode.of(_b, String(input[_ICn])).n(_ICn));
|
|
5871
6181
|
}
|
|
5872
6182
|
if (input[_B] != null) {
|
|
5873
6183
|
bn.c(__XmlNode.of(_st, input[_B]).n(_B));
|
|
@@ -5912,6 +6222,9 @@ const se_Origin = (input, context) => {
|
|
|
5912
6222
|
if (input[_COC] != null) {
|
|
5913
6223
|
bn.c(se_CustomOriginConfig(input[_COC], context).n(_COC));
|
|
5914
6224
|
}
|
|
6225
|
+
if (input[_VOC] != null) {
|
|
6226
|
+
bn.c(se_VpcOriginConfig(input[_VOC], context).n(_VOC));
|
|
6227
|
+
}
|
|
5915
6228
|
if (input[_CA] != null) {
|
|
5916
6229
|
bn.c(__XmlNode.of(_i, String(input[_CA])).n(_CA));
|
|
5917
6230
|
}
|
|
@@ -6575,8 +6888,8 @@ const se_StreamingDistributionConfigWithTags = (input, context) => {
|
|
|
6575
6888
|
if (input[_SDC] != null) {
|
|
6576
6889
|
bn.c(se_StreamingDistributionConfig(input[_SDC], context).n(_SDC));
|
|
6577
6890
|
}
|
|
6578
|
-
if (input[
|
|
6579
|
-
bn.c(se_Tags(input[
|
|
6891
|
+
if (input[_T] != null) {
|
|
6892
|
+
bn.c(se_Tags(input[_T], context).n(_T));
|
|
6580
6893
|
}
|
|
6581
6894
|
return bn;
|
|
6582
6895
|
};
|
|
@@ -6594,7 +6907,7 @@ const se_StreamingLoggingConfig = (input, context) => {
|
|
|
6594
6907
|
return bn;
|
|
6595
6908
|
};
|
|
6596
6909
|
const se_Tag = (input, context) => {
|
|
6597
|
-
const bn = new __XmlNode(
|
|
6910
|
+
const bn = new __XmlNode(_Ta);
|
|
6598
6911
|
if (input[_K] != null) {
|
|
6599
6912
|
bn.c(__XmlNode.of(_TK, input[_K]).n(_K));
|
|
6600
6913
|
}
|
|
@@ -6621,11 +6934,11 @@ const se_TagList = (input, context) => {
|
|
|
6621
6934
|
.filter((e) => e != null)
|
|
6622
6935
|
.map((entry) => {
|
|
6623
6936
|
const n = se_Tag(entry, context);
|
|
6624
|
-
return n.n(
|
|
6937
|
+
return n.n(_Ta);
|
|
6625
6938
|
});
|
|
6626
6939
|
};
|
|
6627
6940
|
const se_Tags = (input, context) => {
|
|
6628
|
-
const bn = new __XmlNode(
|
|
6941
|
+
const bn = new __XmlNode(_T);
|
|
6629
6942
|
bn.lc(input, "Items", "Items", () => se_TagList(input[_I], context));
|
|
6630
6943
|
return bn;
|
|
6631
6944
|
};
|
|
@@ -6637,8 +6950,8 @@ const se_TrafficConfig = (input, context) => {
|
|
|
6637
6950
|
if (input[_SHCi] != null) {
|
|
6638
6951
|
bn.c(se_ContinuousDeploymentSingleHeaderConfig(input[_SHCi], context).n(_SHCi));
|
|
6639
6952
|
}
|
|
6640
|
-
if (input[
|
|
6641
|
-
bn.c(__XmlNode.of(_CDPT, input[
|
|
6953
|
+
if (input[_Ty] != null) {
|
|
6954
|
+
bn.c(__XmlNode.of(_CDPT, input[_Ty]).n(_Ty));
|
|
6642
6955
|
}
|
|
6643
6956
|
return bn;
|
|
6644
6957
|
};
|
|
@@ -6691,6 +7004,33 @@ const se_ViewerCertificate = (input, context) => {
|
|
|
6691
7004
|
bn.cc(input, _CS);
|
|
6692
7005
|
return bn;
|
|
6693
7006
|
};
|
|
7007
|
+
const se_VpcOriginConfig = (input, context) => {
|
|
7008
|
+
const bn = new __XmlNode(_VOC);
|
|
7009
|
+
if (input[_VOI] != null) {
|
|
7010
|
+
bn.c(__XmlNode.of(_st, input[_VOI]).n(_VOI));
|
|
7011
|
+
}
|
|
7012
|
+
return bn;
|
|
7013
|
+
};
|
|
7014
|
+
const se_VpcOriginEndpointConfig = (input, context) => {
|
|
7015
|
+
const bn = new __XmlNode(_VOEC);
|
|
7016
|
+
if (input[_N] != null) {
|
|
7017
|
+
bn.c(__XmlNode.of(_st, input[_N]).n(_N));
|
|
7018
|
+
}
|
|
7019
|
+
if (input[_Ar] != null) {
|
|
7020
|
+
bn.c(__XmlNode.of(_st, input[_Ar]).n(_Ar));
|
|
7021
|
+
}
|
|
7022
|
+
if (input[_HTTPP] != null) {
|
|
7023
|
+
bn.c(__XmlNode.of(_i, String(input[_HTTPP])).n(_HTTPP));
|
|
7024
|
+
}
|
|
7025
|
+
if (input[_HTTPSP] != null) {
|
|
7026
|
+
bn.c(__XmlNode.of(_i, String(input[_HTTPSP])).n(_HTTPSP));
|
|
7027
|
+
}
|
|
7028
|
+
bn.cc(input, _OPP);
|
|
7029
|
+
if (input[_OSP] != null) {
|
|
7030
|
+
bn.c(se_OriginSslProtocols(input[_OSP], context).n(_OSP));
|
|
7031
|
+
}
|
|
7032
|
+
return bn;
|
|
7033
|
+
};
|
|
6694
7034
|
const de_AccessControlAllowHeadersList = (output, context) => {
|
|
6695
7035
|
return (output || [])
|
|
6696
7036
|
.filter((e) => e != null)
|
|
@@ -6804,6 +7144,95 @@ const de_AllowedMethods = (output, context) => {
|
|
|
6804
7144
|
}
|
|
6805
7145
|
return contents;
|
|
6806
7146
|
};
|
|
7147
|
+
const de_AnycastIpList = (output, context) => {
|
|
7148
|
+
const contents = {};
|
|
7149
|
+
if (output[_Id] != null) {
|
|
7150
|
+
contents[_Id] = __expectString(output[_Id]);
|
|
7151
|
+
}
|
|
7152
|
+
if (output[_N] != null) {
|
|
7153
|
+
contents[_N] = __expectString(output[_N]);
|
|
7154
|
+
}
|
|
7155
|
+
if (output[_Sta] != null) {
|
|
7156
|
+
contents[_Sta] = __expectString(output[_Sta]);
|
|
7157
|
+
}
|
|
7158
|
+
if (output[_Ar] != null) {
|
|
7159
|
+
contents[_Ar] = __expectString(output[_Ar]);
|
|
7160
|
+
}
|
|
7161
|
+
if (output.AnycastIps === "") {
|
|
7162
|
+
contents[_AI] = [];
|
|
7163
|
+
}
|
|
7164
|
+
else if (output[_AI] != null && output[_AI][_AIn] != null) {
|
|
7165
|
+
contents[_AI] = de_AnycastIps(__getArrayIfSingleItem(output[_AI][_AIn]), context);
|
|
7166
|
+
}
|
|
7167
|
+
if (output[_IC] != null) {
|
|
7168
|
+
contents[_IC] = __strictParseInt32(output[_IC]);
|
|
7169
|
+
}
|
|
7170
|
+
if (output[_LMT] != null) {
|
|
7171
|
+
contents[_LMT] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_LMT]));
|
|
7172
|
+
}
|
|
7173
|
+
return contents;
|
|
7174
|
+
};
|
|
7175
|
+
const de_AnycastIpListCollection = (output, context) => {
|
|
7176
|
+
const contents = {};
|
|
7177
|
+
if (output.Items === "") {
|
|
7178
|
+
contents[_I] = [];
|
|
7179
|
+
}
|
|
7180
|
+
else if (output[_I] != null && output[_I][_AILS] != null) {
|
|
7181
|
+
contents[_I] = de_AnycastIpListSummaries(__getArrayIfSingleItem(output[_I][_AILS]), context);
|
|
7182
|
+
}
|
|
7183
|
+
if (output[_M] != null) {
|
|
7184
|
+
contents[_M] = __expectString(output[_M]);
|
|
7185
|
+
}
|
|
7186
|
+
if (output[_NM] != null) {
|
|
7187
|
+
contents[_NM] = __expectString(output[_NM]);
|
|
7188
|
+
}
|
|
7189
|
+
if (output[_MI] != null) {
|
|
7190
|
+
contents[_MI] = __strictParseInt32(output[_MI]);
|
|
7191
|
+
}
|
|
7192
|
+
if (output[_IT] != null) {
|
|
7193
|
+
contents[_IT] = __parseBoolean(output[_IT]);
|
|
7194
|
+
}
|
|
7195
|
+
if (output[_Q] != null) {
|
|
7196
|
+
contents[_Q] = __strictParseInt32(output[_Q]);
|
|
7197
|
+
}
|
|
7198
|
+
return contents;
|
|
7199
|
+
};
|
|
7200
|
+
const de_AnycastIpListSummaries = (output, context) => {
|
|
7201
|
+
return (output || [])
|
|
7202
|
+
.filter((e) => e != null)
|
|
7203
|
+
.map((entry) => {
|
|
7204
|
+
return de_AnycastIpListSummary(entry, context);
|
|
7205
|
+
});
|
|
7206
|
+
};
|
|
7207
|
+
const de_AnycastIpListSummary = (output, context) => {
|
|
7208
|
+
const contents = {};
|
|
7209
|
+
if (output[_Id] != null) {
|
|
7210
|
+
contents[_Id] = __expectString(output[_Id]);
|
|
7211
|
+
}
|
|
7212
|
+
if (output[_N] != null) {
|
|
7213
|
+
contents[_N] = __expectString(output[_N]);
|
|
7214
|
+
}
|
|
7215
|
+
if (output[_Sta] != null) {
|
|
7216
|
+
contents[_Sta] = __expectString(output[_Sta]);
|
|
7217
|
+
}
|
|
7218
|
+
if (output[_Ar] != null) {
|
|
7219
|
+
contents[_Ar] = __expectString(output[_Ar]);
|
|
7220
|
+
}
|
|
7221
|
+
if (output[_IC] != null) {
|
|
7222
|
+
contents[_IC] = __strictParseInt32(output[_IC]);
|
|
7223
|
+
}
|
|
7224
|
+
if (output[_LMT] != null) {
|
|
7225
|
+
contents[_LMT] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_LMT]));
|
|
7226
|
+
}
|
|
7227
|
+
return contents;
|
|
7228
|
+
};
|
|
7229
|
+
const de_AnycastIps = (output, context) => {
|
|
7230
|
+
return (output || [])
|
|
7231
|
+
.filter((e) => e != null)
|
|
7232
|
+
.map((entry) => {
|
|
7233
|
+
return __expectString(entry);
|
|
7234
|
+
});
|
|
7235
|
+
};
|
|
6807
7236
|
const de_AwsAccountNumberList = (output, context) => {
|
|
6808
7237
|
return (output || [])
|
|
6809
7238
|
.filter((e) => e != null)
|
|
@@ -6858,6 +7287,9 @@ const de_CacheBehavior = (output, context) => {
|
|
|
6858
7287
|
if (output[_RHPI] != null) {
|
|
6859
7288
|
contents[_RHPI] = __expectString(output[_RHPI]);
|
|
6860
7289
|
}
|
|
7290
|
+
if (output[_GC] != null) {
|
|
7291
|
+
contents[_GC] = de_GrpcConfig(output[_GC], context);
|
|
7292
|
+
}
|
|
6861
7293
|
if (output[_FV] != null) {
|
|
6862
7294
|
contents[_FV] = de_ForwardedValues(output[_FV], context);
|
|
6863
7295
|
}
|
|
@@ -6991,8 +7423,8 @@ const de_CachePolicyQueryStringsConfig = (output, context) => {
|
|
|
6991
7423
|
};
|
|
6992
7424
|
const de_CachePolicySummary = (output, context) => {
|
|
6993
7425
|
const contents = {};
|
|
6994
|
-
if (output[
|
|
6995
|
-
contents[
|
|
7426
|
+
if (output[_Ty] != null) {
|
|
7427
|
+
contents[_Ty] = __expectString(output[_Ty]);
|
|
6996
7428
|
}
|
|
6997
7429
|
if (output[_CPa] != null) {
|
|
6998
7430
|
contents[_CPa] = de_CachePolicy(output[_CPa], context);
|
|
@@ -7082,8 +7514,8 @@ const de_ConflictingAlias = (output, context) => {
|
|
|
7082
7514
|
if (output[_DI] != null) {
|
|
7083
7515
|
contents[_DI] = __expectString(output[_DI]);
|
|
7084
7516
|
}
|
|
7085
|
-
if (output[
|
|
7086
|
-
contents[
|
|
7517
|
+
if (output[_AIc] != null) {
|
|
7518
|
+
contents[_AIc] = __expectString(output[_AIc]);
|
|
7087
7519
|
}
|
|
7088
7520
|
return contents;
|
|
7089
7521
|
};
|
|
@@ -7380,6 +7812,9 @@ const de_DefaultCacheBehavior = (output, context) => {
|
|
|
7380
7812
|
if (output[_RHPI] != null) {
|
|
7381
7813
|
contents[_RHPI] = __expectString(output[_RHPI]);
|
|
7382
7814
|
}
|
|
7815
|
+
if (output[_GC] != null) {
|
|
7816
|
+
contents[_GC] = de_GrpcConfig(output[_GC], context);
|
|
7817
|
+
}
|
|
7383
7818
|
if (output[_FV] != null) {
|
|
7384
7819
|
contents[_FV] = de_ForwardedValues(output[_FV], context);
|
|
7385
7820
|
}
|
|
@@ -7490,6 +7925,9 @@ const de_DistributionConfig = (output, context) => {
|
|
|
7490
7925
|
if (output[_S] != null) {
|
|
7491
7926
|
contents[_S] = __parseBoolean(output[_S]);
|
|
7492
7927
|
}
|
|
7928
|
+
if (output[_AILI] != null) {
|
|
7929
|
+
contents[_AILI] = __expectString(output[_AILI]);
|
|
7930
|
+
}
|
|
7493
7931
|
return contents;
|
|
7494
7932
|
};
|
|
7495
7933
|
const de_DistributionIdList = (output, context) => {
|
|
@@ -7617,6 +8055,9 @@ const de_DistributionSummary = (output, context) => {
|
|
|
7617
8055
|
if (output[_S] != null) {
|
|
7618
8056
|
contents[_S] = __parseBoolean(output[_S]);
|
|
7619
8057
|
}
|
|
8058
|
+
if (output[_AILI] != null) {
|
|
8059
|
+
contents[_AILI] = __expectString(output[_AILI]);
|
|
8060
|
+
}
|
|
7620
8061
|
return contents;
|
|
7621
8062
|
};
|
|
7622
8063
|
const de_DistributionSummaryList = (output, context) => {
|
|
@@ -7991,6 +8432,13 @@ const de_GeoRestriction = (output, context) => {
|
|
|
7991
8432
|
}
|
|
7992
8433
|
return contents;
|
|
7993
8434
|
};
|
|
8435
|
+
const de_GrpcConfig = (output, context) => {
|
|
8436
|
+
const contents = {};
|
|
8437
|
+
if (output[_E] != null) {
|
|
8438
|
+
contents[_E] = __parseBoolean(output[_E]);
|
|
8439
|
+
}
|
|
8440
|
+
return contents;
|
|
8441
|
+
};
|
|
7994
8442
|
const de_HeaderList = (output, context) => {
|
|
7995
8443
|
return (output || [])
|
|
7996
8444
|
.filter((e) => e != null)
|
|
@@ -8311,8 +8759,8 @@ const de_LoggingConfig = (output, context) => {
|
|
|
8311
8759
|
if (output[_E] != null) {
|
|
8312
8760
|
contents[_E] = __parseBoolean(output[_E]);
|
|
8313
8761
|
}
|
|
8314
|
-
if (output[
|
|
8315
|
-
contents[
|
|
8762
|
+
if (output[_ICn] != null) {
|
|
8763
|
+
contents[_ICn] = __parseBoolean(output[_ICn]);
|
|
8316
8764
|
}
|
|
8317
8765
|
if (output[_B] != null) {
|
|
8318
8766
|
contents[_B] = __expectString(output[_B]);
|
|
@@ -8356,6 +8804,9 @@ const de_Origin = (output, context) => {
|
|
|
8356
8804
|
if (output[_COC] != null) {
|
|
8357
8805
|
contents[_COC] = de_CustomOriginConfig(output[_COC], context);
|
|
8358
8806
|
}
|
|
8807
|
+
if (output[_VOC] != null) {
|
|
8808
|
+
contents[_VOC] = de_VpcOriginConfig(output[_VOC], context);
|
|
8809
|
+
}
|
|
8359
8810
|
if (output[_CA] != null) {
|
|
8360
8811
|
contents[_CA] = __strictParseInt32(output[_CA]);
|
|
8361
8812
|
}
|
|
@@ -8627,8 +9078,8 @@ const de_OriginRequestPolicyQueryStringsConfig = (output, context) => {
|
|
|
8627
9078
|
};
|
|
8628
9079
|
const de_OriginRequestPolicySummary = (output, context) => {
|
|
8629
9080
|
const contents = {};
|
|
8630
|
-
if (output[
|
|
8631
|
-
contents[
|
|
9081
|
+
if (output[_Ty] != null) {
|
|
9082
|
+
contents[_Ty] = __expectString(output[_Ty]);
|
|
8632
9083
|
}
|
|
8633
9084
|
if (output[_ORP] != null) {
|
|
8634
9085
|
contents[_ORP] = de_OriginRequestPolicy(output[_ORP], context);
|
|
@@ -9220,8 +9671,8 @@ const de_ResponseHeadersPolicyStrictTransportSecurity = (output, context) => {
|
|
|
9220
9671
|
};
|
|
9221
9672
|
const de_ResponseHeadersPolicySummary = (output, context) => {
|
|
9222
9673
|
const contents = {};
|
|
9223
|
-
if (output[
|
|
9224
|
-
contents[
|
|
9674
|
+
if (output[_Ty] != null) {
|
|
9675
|
+
contents[_Ty] = __expectString(output[_Ty]);
|
|
9225
9676
|
}
|
|
9226
9677
|
if (output[_RHP] != null) {
|
|
9227
9678
|
contents[_RHP] = de_ResponseHeadersPolicy(output[_RHP], context);
|
|
@@ -9506,8 +9957,8 @@ const de_Tags = (output, context) => {
|
|
|
9506
9957
|
if (output.Items === "") {
|
|
9507
9958
|
contents[_I] = [];
|
|
9508
9959
|
}
|
|
9509
|
-
else if (output[_I] != null && output[_I][
|
|
9510
|
-
contents[_I] = de_TagList(__getArrayIfSingleItem(output[_I][
|
|
9960
|
+
else if (output[_I] != null && output[_I][_Ta] != null) {
|
|
9961
|
+
contents[_I] = de_TagList(__getArrayIfSingleItem(output[_I][_Ta]), context);
|
|
9511
9962
|
}
|
|
9512
9963
|
return contents;
|
|
9513
9964
|
};
|
|
@@ -9541,8 +9992,8 @@ const de_TrafficConfig = (output, context) => {
|
|
|
9541
9992
|
if (output[_SHCi] != null) {
|
|
9542
9993
|
contents[_SHCi] = de_ContinuousDeploymentSingleHeaderConfig(output[_SHCi], context);
|
|
9543
9994
|
}
|
|
9544
|
-
if (output[
|
|
9545
|
-
contents[
|
|
9995
|
+
if (output[_Ty] != null) {
|
|
9996
|
+
contents[_Ty] = __expectString(output[_Ty]);
|
|
9546
9997
|
}
|
|
9547
9998
|
return contents;
|
|
9548
9999
|
};
|
|
@@ -9610,6 +10061,114 @@ const de_ViewerCertificate = (output, context) => {
|
|
|
9610
10061
|
}
|
|
9611
10062
|
return contents;
|
|
9612
10063
|
};
|
|
10064
|
+
const de_VpcOrigin = (output, context) => {
|
|
10065
|
+
const contents = {};
|
|
10066
|
+
if (output[_Id] != null) {
|
|
10067
|
+
contents[_Id] = __expectString(output[_Id]);
|
|
10068
|
+
}
|
|
10069
|
+
if (output[_Ar] != null) {
|
|
10070
|
+
contents[_Ar] = __expectString(output[_Ar]);
|
|
10071
|
+
}
|
|
10072
|
+
if (output[_Sta] != null) {
|
|
10073
|
+
contents[_Sta] = __expectString(output[_Sta]);
|
|
10074
|
+
}
|
|
10075
|
+
if (output[_CTr] != null) {
|
|
10076
|
+
contents[_CTr] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_CTr]));
|
|
10077
|
+
}
|
|
10078
|
+
if (output[_LMT] != null) {
|
|
10079
|
+
contents[_LMT] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_LMT]));
|
|
10080
|
+
}
|
|
10081
|
+
if (output[_VOEC] != null) {
|
|
10082
|
+
contents[_VOEC] = de_VpcOriginEndpointConfig(output[_VOEC], context);
|
|
10083
|
+
}
|
|
10084
|
+
return contents;
|
|
10085
|
+
};
|
|
10086
|
+
const de_VpcOriginConfig = (output, context) => {
|
|
10087
|
+
const contents = {};
|
|
10088
|
+
if (output[_VOI] != null) {
|
|
10089
|
+
contents[_VOI] = __expectString(output[_VOI]);
|
|
10090
|
+
}
|
|
10091
|
+
return contents;
|
|
10092
|
+
};
|
|
10093
|
+
const de_VpcOriginEndpointConfig = (output, context) => {
|
|
10094
|
+
const contents = {};
|
|
10095
|
+
if (output[_N] != null) {
|
|
10096
|
+
contents[_N] = __expectString(output[_N]);
|
|
10097
|
+
}
|
|
10098
|
+
if (output[_Ar] != null) {
|
|
10099
|
+
contents[_Ar] = __expectString(output[_Ar]);
|
|
10100
|
+
}
|
|
10101
|
+
if (output[_HTTPP] != null) {
|
|
10102
|
+
contents[_HTTPP] = __strictParseInt32(output[_HTTPP]);
|
|
10103
|
+
}
|
|
10104
|
+
if (output[_HTTPSP] != null) {
|
|
10105
|
+
contents[_HTTPSP] = __strictParseInt32(output[_HTTPSP]);
|
|
10106
|
+
}
|
|
10107
|
+
if (output[_OPP] != null) {
|
|
10108
|
+
contents[_OPP] = __expectString(output[_OPP]);
|
|
10109
|
+
}
|
|
10110
|
+
if (output[_OSP] != null) {
|
|
10111
|
+
contents[_OSP] = de_OriginSslProtocols(output[_OSP], context);
|
|
10112
|
+
}
|
|
10113
|
+
return contents;
|
|
10114
|
+
};
|
|
10115
|
+
const de_VpcOriginList = (output, context) => {
|
|
10116
|
+
const contents = {};
|
|
10117
|
+
if (output[_M] != null) {
|
|
10118
|
+
contents[_M] = __expectString(output[_M]);
|
|
10119
|
+
}
|
|
10120
|
+
if (output[_NM] != null) {
|
|
10121
|
+
contents[_NM] = __expectString(output[_NM]);
|
|
10122
|
+
}
|
|
10123
|
+
if (output[_MI] != null) {
|
|
10124
|
+
contents[_MI] = __strictParseInt32(output[_MI]);
|
|
10125
|
+
}
|
|
10126
|
+
if (output[_IT] != null) {
|
|
10127
|
+
contents[_IT] = __parseBoolean(output[_IT]);
|
|
10128
|
+
}
|
|
10129
|
+
if (output[_Q] != null) {
|
|
10130
|
+
contents[_Q] = __strictParseInt32(output[_Q]);
|
|
10131
|
+
}
|
|
10132
|
+
if (output.Items === "") {
|
|
10133
|
+
contents[_I] = [];
|
|
10134
|
+
}
|
|
10135
|
+
else if (output[_I] != null && output[_I][_VOS] != null) {
|
|
10136
|
+
contents[_I] = de_VpcOriginSummaryList(__getArrayIfSingleItem(output[_I][_VOS]), context);
|
|
10137
|
+
}
|
|
10138
|
+
return contents;
|
|
10139
|
+
};
|
|
10140
|
+
const de_VpcOriginSummary = (output, context) => {
|
|
10141
|
+
const contents = {};
|
|
10142
|
+
if (output[_Id] != null) {
|
|
10143
|
+
contents[_Id] = __expectString(output[_Id]);
|
|
10144
|
+
}
|
|
10145
|
+
if (output[_N] != null) {
|
|
10146
|
+
contents[_N] = __expectString(output[_N]);
|
|
10147
|
+
}
|
|
10148
|
+
if (output[_Sta] != null) {
|
|
10149
|
+
contents[_Sta] = __expectString(output[_Sta]);
|
|
10150
|
+
}
|
|
10151
|
+
if (output[_CTr] != null) {
|
|
10152
|
+
contents[_CTr] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_CTr]));
|
|
10153
|
+
}
|
|
10154
|
+
if (output[_LMT] != null) {
|
|
10155
|
+
contents[_LMT] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_LMT]));
|
|
10156
|
+
}
|
|
10157
|
+
if (output[_Ar] != null) {
|
|
10158
|
+
contents[_Ar] = __expectString(output[_Ar]);
|
|
10159
|
+
}
|
|
10160
|
+
if (output[_OEA] != null) {
|
|
10161
|
+
contents[_OEA] = __expectString(output[_OEA]);
|
|
10162
|
+
}
|
|
10163
|
+
return contents;
|
|
10164
|
+
};
|
|
10165
|
+
const de_VpcOriginSummaryList = (output, context) => {
|
|
10166
|
+
return (output || [])
|
|
10167
|
+
.filter((e) => e != null)
|
|
10168
|
+
.map((entry) => {
|
|
10169
|
+
return de_VpcOriginSummary(entry, context);
|
|
10170
|
+
});
|
|
10171
|
+
};
|
|
9613
10172
|
const deserializeMetadata = (output) => ({
|
|
9614
10173
|
httpStatusCode: output.statusCode,
|
|
9615
10174
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
@@ -9626,17 +10185,24 @@ const _ACAO = "AccessControlAllowOrigins";
|
|
|
9626
10185
|
const _ACEH = "AccessControlExposeHeaders";
|
|
9627
10186
|
const _ACMAS = "AccessControlMaxAgeSec";
|
|
9628
10187
|
const _ACMCA = "ACMCertificateArn";
|
|
9629
|
-
const _AI = "
|
|
10188
|
+
const _AI = "AnycastIps";
|
|
9630
10189
|
const _AICPR = "AliasICPRecordals";
|
|
9631
10190
|
const _AICPRl = "AliasICPRecordal";
|
|
10191
|
+
const _AILI = "AnycastIpListId";
|
|
10192
|
+
const _AILN = "AnycastIpListName";
|
|
10193
|
+
const _AILS = "AnycastIpListSummary";
|
|
10194
|
+
const _AIc = "AccountId";
|
|
10195
|
+
const _AIn = "AnycastIp";
|
|
9632
10196
|
const _AM = "AllowedMethods";
|
|
9633
10197
|
const _ARN = "ARN";
|
|
9634
10198
|
const _ATKG = "ActiveTrustedKeyGroups";
|
|
9635
10199
|
const _ATS = "ActiveTrustedSigners";
|
|
9636
10200
|
const _Al = "Aliases";
|
|
10201
|
+
const _Ar = "Arn";
|
|
9637
10202
|
const _B = "Bucket";
|
|
9638
10203
|
const _C = "Comment";
|
|
9639
10204
|
const _CA = "ConnectionAttempts";
|
|
10205
|
+
const _CAILR = "CreateAnycastIpListRequest";
|
|
9640
10206
|
const _CAo = "ConflictingAlias";
|
|
9641
10207
|
const _CB = "CacheBehavior";
|
|
9642
10208
|
const _CBa = "CacheBehaviors";
|
|
@@ -9689,6 +10255,7 @@ const _CTon = "ConnectionTimeout";
|
|
|
9689
10255
|
const _CTr = "CreatedTime";
|
|
9690
10256
|
const _CTre = "CreateTime";
|
|
9691
10257
|
const _CU = "ComputeUtilization";
|
|
10258
|
+
const _CVOR = "CreateVpcOriginRequest";
|
|
9692
10259
|
const _Ce = "Certificate";
|
|
9693
10260
|
const _Co = "Compress";
|
|
9694
10261
|
const _Coo = "Cookies";
|
|
@@ -9749,6 +10316,7 @@ const _FWQAPIU = "ForwardWhenQueryArgProfileIsUnknown";
|
|
|
9749
10316
|
const _Fi = "Field";
|
|
9750
10317
|
const _Fo = "Format";
|
|
9751
10318
|
const _For = "Forward";
|
|
10319
|
+
const _GC = "GrpcConfig";
|
|
9752
10320
|
const _GR = "GeoRestriction";
|
|
9753
10321
|
const _GRLCR = "GetRealtimeLogConfigRequest";
|
|
9754
10322
|
const _GRT = "GeoRestrictionType";
|
|
@@ -9765,8 +10333,9 @@ const _I = "Items";
|
|
|
9765
10333
|
const _IAMCI = "IAMCertificateId";
|
|
9766
10334
|
const _IB = "InvalidationBatch";
|
|
9767
10335
|
const _IBn = "IncludeBody";
|
|
9768
|
-
const _IC = "
|
|
10336
|
+
const _IC = "IpCount";
|
|
9769
10337
|
const _ICPRS = "ICPRecordalStatus";
|
|
10338
|
+
const _ICn = "IncludeCookies";
|
|
9770
10339
|
const _IIPVE = "IsIPV6Enabled";
|
|
9771
10340
|
const _IM = "IfMatch";
|
|
9772
10341
|
const _IPIB = "InProgressInvalidationBatches";
|
|
@@ -9823,6 +10392,7 @@ const _OACSB = "OriginAccessControlSigningBehaviors";
|
|
|
9823
10392
|
const _OACSP = "OriginAccessControlSigningProtocols";
|
|
9824
10393
|
const _OAI = "OriginAccessIdentity";
|
|
9825
10394
|
const _OCH = "OriginCustomHeader";
|
|
10395
|
+
const _OEA = "OriginEndpointArn";
|
|
9826
10396
|
const _OG = "OriginGroups";
|
|
9827
10397
|
const _OGFC = "OriginGroupFailoverCriteria";
|
|
9828
10398
|
const _OGM = "OriginGroupMember";
|
|
@@ -9944,7 +10514,7 @@ const _SWC = "SingleWeightConfig";
|
|
|
9944
10514
|
const _Si = "Signer";
|
|
9945
10515
|
const _St = "Stage";
|
|
9946
10516
|
const _Sta = "Status";
|
|
9947
|
-
const _T = "
|
|
10517
|
+
const _T = "Tags";
|
|
9948
10518
|
const _TC = "TrafficConfig";
|
|
9949
10519
|
const _TFR = "TestFunctionRequest";
|
|
9950
10520
|
const _TK = "TagKey";
|
|
@@ -9953,13 +10523,17 @@ const _TKa = "TagKeys";
|
|
|
9953
10523
|
const _TOI = "TargetOriginId";
|
|
9954
10524
|
const _TS = "TrustedSigners";
|
|
9955
10525
|
const _TV = "TagValue";
|
|
9956
|
-
const _Ta = "
|
|
9957
|
-
const
|
|
10526
|
+
const _Ta = "Tag";
|
|
10527
|
+
const _Ty = "Type";
|
|
9958
10528
|
const _UFR = "UpdateFunctionRequest";
|
|
9959
10529
|
const _UKVSR = "UpdateKeyValueStoreRequest";
|
|
9960
10530
|
const _URLCR = "UpdateRealtimeLogConfigRequest";
|
|
9961
10531
|
const _V = "Value";
|
|
9962
10532
|
const _VC = "ViewerCertificate";
|
|
10533
|
+
const _VOC = "VpcOriginConfig";
|
|
10534
|
+
const _VOEC = "VpcOriginEndpointConfig";
|
|
10535
|
+
const _VOI = "VpcOriginId";
|
|
10536
|
+
const _VOS = "VpcOriginSummary";
|
|
9963
10537
|
const _VPP = "ViewerProtocolPolicy";
|
|
9964
10538
|
const _W = "Weight";
|
|
9965
10539
|
const _WACLI = "WebACLId";
|