@aws-sdk/client-cloudfront 3.213.0 → 3.215.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/dist-cjs/CloudFront.js +105 -0
- package/dist-cjs/commands/CopyDistributionCommand.js +46 -0
- package/dist-cjs/commands/CreateContinuousDeploymentPolicyCommand.js +46 -0
- package/dist-cjs/commands/CreateStreamingDistributionCommand.js +3 -3
- package/dist-cjs/commands/CreateStreamingDistributionWithTagsCommand.js +3 -3
- package/dist-cjs/commands/DeleteCachePolicyCommand.js +2 -2
- package/dist-cjs/commands/DeleteContinuousDeploymentPolicyCommand.js +46 -0
- package/dist-cjs/commands/GetContinuousDeploymentPolicyCommand.js +46 -0
- package/dist-cjs/commands/GetContinuousDeploymentPolicyConfigCommand.js +46 -0
- package/dist-cjs/commands/ListContinuousDeploymentPoliciesCommand.js +46 -0
- package/dist-cjs/commands/UpdateContinuousDeploymentPolicyCommand.js +46 -0
- package/dist-cjs/commands/index.js +7 -0
- package/dist-cjs/endpoint/ruleset.js +11 -11
- package/dist-cjs/models/models_0.js +405 -297
- package/dist-cjs/models/models_1.js +146 -4
- package/dist-cjs/protocols/Aws_restXml.js +895 -16
- package/dist-es/CloudFront.js +105 -0
- package/dist-es/commands/CopyDistributionCommand.js +42 -0
- package/dist-es/commands/CreateContinuousDeploymentPolicyCommand.js +42 -0
- package/dist-es/commands/CreateStreamingDistributionCommand.js +1 -1
- package/dist-es/commands/CreateStreamingDistributionWithTagsCommand.js +1 -1
- package/dist-es/commands/DeleteCachePolicyCommand.js +1 -1
- package/dist-es/commands/DeleteContinuousDeploymentPolicyCommand.js +42 -0
- package/dist-es/commands/GetContinuousDeploymentPolicyCommand.js +42 -0
- package/dist-es/commands/GetContinuousDeploymentPolicyConfigCommand.js +42 -0
- package/dist-es/commands/ListContinuousDeploymentPoliciesCommand.js +42 -0
- package/dist-es/commands/UpdateContinuousDeploymentPolicyCommand.js +42 -0
- package/dist-es/commands/index.js +7 -0
- package/dist-es/endpoint/ruleset.js +11 -11
- package/dist-es/models/models_0.js +366 -257
- package/dist-es/models/models_1.js +117 -0
- package/dist-es/protocols/Aws_restXml.js +876 -12
- package/dist-types/CloudFront.d.ts +114 -76
- package/dist-types/CloudFrontClient.d.ts +9 -2
- package/dist-types/commands/CopyDistributionCommand.d.ts +43 -0
- package/dist-types/commands/CreateContinuousDeploymentPolicyCommand.d.ts +46 -0
- package/dist-types/commands/CreateDistributionCommand.d.ts +1 -13
- package/dist-types/commands/CreateStreamingDistributionCommand.d.ts +1 -1
- package/dist-types/commands/CreateStreamingDistributionWithTagsCommand.d.ts +1 -1
- package/dist-types/commands/DeleteCachePolicyCommand.d.ts +1 -1
- package/dist-types/commands/DeleteContinuousDeploymentPolicyCommand.d.ts +40 -0
- package/dist-types/commands/GetContinuousDeploymentPolicyCommand.d.ts +38 -0
- package/dist-types/commands/GetContinuousDeploymentPolicyConfigCommand.d.ts +37 -0
- package/dist-types/commands/ListContinuousDeploymentPoliciesCommand.d.ts +42 -0
- package/dist-types/commands/UpdateContinuousDeploymentPolicyCommand.d.ts +57 -0
- package/dist-types/commands/UpdateDistributionCommand.d.ts +20 -63
- package/dist-types/commands/index.d.ts +7 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +824 -784
- package/dist-types/models/models_1.d.ts +458 -2
- package/dist-types/protocols/Aws_restXml.d.ts +21 -0
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/ts3.4/CloudFront.d.ts +125 -0
- package/dist-types/ts3.4/CloudFrontClient.d.ts +42 -0
- package/dist-types/ts3.4/commands/CopyDistributionCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/CreateContinuousDeploymentPolicyCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/CreateStreamingDistributionCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/CreateStreamingDistributionWithTagsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DeleteCachePolicyCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DeleteContinuousDeploymentPolicyCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/GetContinuousDeploymentPolicyCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/GetContinuousDeploymentPolicyConfigCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListContinuousDeploymentPoliciesCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/UpdateContinuousDeploymentPolicyCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/index.d.ts +7 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/ts3.4/models/models_0.d.ts +376 -338
- package/dist-types/ts3.4/models/models_1.d.ts +196 -4
- package/dist-types/ts3.4/protocols/Aws_restXml.d.ts +84 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -2
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -2
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -2
- package/package.json +29 -29
|
@@ -3,8 +3,8 @@ import { decorateServiceException as __decorateServiceException, expectNonNull a
|
|
|
3
3
|
import { XmlNode as __XmlNode } from "@aws-sdk/xml-builder";
|
|
4
4
|
import { XMLParser } from "fast-xml-parser";
|
|
5
5
|
import { CloudFrontServiceException as __BaseException } from "../models/CloudFrontServiceException";
|
|
6
|
-
import { AccessDenied, BatchTooLarge, CachePolicyAlreadyExists, CachePolicyInUse, CannotChangeImmutablePublicKeyFields, CloudFrontOriginAccessIdentityAlreadyExists, CNAMEAlreadyExists, DistributionAlreadyExists, FieldLevelEncryptionConfigAlreadyExists, FieldLevelEncryptionProfileAlreadyExists, FieldLevelEncryptionProfileSizeExceeded, FunctionAlreadyExists, FunctionSizeLimitExceeded,
|
|
7
|
-
import { CloudFrontOriginAccessIdentityInUse, DistributionNotDisabled, FieldLevelEncryptionConfigInUse, FieldLevelEncryptionProfileInUse, FunctionInUse, NoSuchCloudFrontOriginAccessIdentity, NoSuchFunctionExists, NoSuchInvalidation, NoSuchMonitoringSubscription, NoSuchOriginAccessControl, NoSuchResource, NoSuchStreamingDistribution, OriginAccessControlInUse, OriginRequestPolicyInUse, PublicKeyInUse, RealtimeLogConfigInUse, ResourceInUse, ResponseHeadersPolicyInUse, StreamingDistributionNotDisabled, TestFunctionFailed, } from "../models/models_1";
|
|
6
|
+
import { AccessDenied, BatchTooLarge, CachePolicyAlreadyExists, CachePolicyInUse, CannotChangeImmutablePublicKeyFields, CloudFrontOriginAccessIdentityAlreadyExists, CNAMEAlreadyExists, DistributionAlreadyExists, 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, NoSuchDistribution, NoSuchFieldLevelEncryptionConfig, NoSuchFieldLevelEncryptionProfile, NoSuchOrigin, NoSuchOriginRequestPolicy, NoSuchPublicKey, NoSuchRealtimeLogConfig, NoSuchResponseHeadersPolicy, OriginAccessControlAlreadyExists, OriginRequestPolicyAlreadyExists, PreconditionFailed, PublicKeyAlreadyExists, QueryArgProfileEmpty, RealtimeLogConfigAlreadyExists, RealtimeLogConfigOwnerMismatch, ResponseHeadersPolicyAlreadyExists, StagingDistributionInUse, TooLongCSPInResponseHeadersPolicy, TooManyCacheBehaviors, TooManyCachePolicies, TooManyCertificates, TooManyCloudFrontOriginAccessIdentities, TooManyCookieNamesInWhiteList, TooManyCookiesInCachePolicy, TooManyCookiesInOriginRequestPolicy, TooManyCustomHeadersInResponseHeadersPolicy, 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, TooManyResponseHeadersPolicies, 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, ResponseHeadersPolicyInUse, StreamingDistributionAlreadyExists, StreamingDistributionNotDisabled, TestFunctionFailed, TooManyStreamingDistributionCNAMEs, TooManyStreamingDistributions, } from "../models/models_1";
|
|
8
8
|
export const serializeAws_restXmlAssociateAliasCommand = async (input, context) => {
|
|
9
9
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
10
10
|
const headers = {};
|
|
@@ -26,6 +26,35 @@ export const serializeAws_restXmlAssociateAliasCommand = async (input, context)
|
|
|
26
26
|
body,
|
|
27
27
|
});
|
|
28
28
|
};
|
|
29
|
+
export const serializeAws_restXmlCopyDistributionCommand = async (input, context) => {
|
|
30
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
31
|
+
const headers = map({}, isSerializableHeaderValue, {
|
|
32
|
+
"content-type": "application/xml",
|
|
33
|
+
staging: [() => isSerializableHeaderValue(input.Staging), () => input.Staging.toString()],
|
|
34
|
+
"if-match": input.IfMatch,
|
|
35
|
+
});
|
|
36
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
37
|
+
"/2020-05-31/distribution/{PrimaryDistributionId}/copy";
|
|
38
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "PrimaryDistributionId", () => input.PrimaryDistributionId, "{PrimaryDistributionId}", false);
|
|
39
|
+
let body;
|
|
40
|
+
body = '<?xml version="1.0" encoding="UTF-8"?>';
|
|
41
|
+
const bodyNode = new __XmlNode("CopyDistributionRequest");
|
|
42
|
+
bodyNode.addAttribute("xmlns", "http://cloudfront.amazonaws.com/doc/2020-05-31/");
|
|
43
|
+
if (input.CallerReference !== undefined) {
|
|
44
|
+
const node = __XmlNode.of("string", input.CallerReference).withName("CallerReference");
|
|
45
|
+
bodyNode.addChildNode(node);
|
|
46
|
+
}
|
|
47
|
+
body += bodyNode.toString();
|
|
48
|
+
return new __HttpRequest({
|
|
49
|
+
protocol,
|
|
50
|
+
hostname,
|
|
51
|
+
port,
|
|
52
|
+
method: "POST",
|
|
53
|
+
headers,
|
|
54
|
+
path: resolvedPath,
|
|
55
|
+
body,
|
|
56
|
+
});
|
|
57
|
+
};
|
|
29
58
|
export const serializeAws_restXmlCreateCachePolicyCommand = async (input, context) => {
|
|
30
59
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
31
60
|
const headers = {
|
|
@@ -81,6 +110,33 @@ export const serializeAws_restXmlCreateCloudFrontOriginAccessIdentityCommand = a
|
|
|
81
110
|
body,
|
|
82
111
|
});
|
|
83
112
|
};
|
|
113
|
+
export const serializeAws_restXmlCreateContinuousDeploymentPolicyCommand = async (input, context) => {
|
|
114
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
115
|
+
const headers = {
|
|
116
|
+
"content-type": "application/xml",
|
|
117
|
+
};
|
|
118
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/continuous-deployment-policy";
|
|
119
|
+
let body;
|
|
120
|
+
if (input.ContinuousDeploymentPolicyConfig !== undefined) {
|
|
121
|
+
body = serializeAws_restXmlContinuousDeploymentPolicyConfig(input.ContinuousDeploymentPolicyConfig, context);
|
|
122
|
+
}
|
|
123
|
+
let contents;
|
|
124
|
+
if (input.ContinuousDeploymentPolicyConfig !== undefined) {
|
|
125
|
+
contents = serializeAws_restXmlContinuousDeploymentPolicyConfig(input.ContinuousDeploymentPolicyConfig, context);
|
|
126
|
+
body = '<?xml version="1.0" encoding="UTF-8"?>';
|
|
127
|
+
contents.addAttribute("xmlns", "http://cloudfront.amazonaws.com/doc/2020-05-31/");
|
|
128
|
+
body += contents.toString();
|
|
129
|
+
}
|
|
130
|
+
return new __HttpRequest({
|
|
131
|
+
protocol,
|
|
132
|
+
hostname,
|
|
133
|
+
port,
|
|
134
|
+
method: "POST",
|
|
135
|
+
headers,
|
|
136
|
+
path: resolvedPath,
|
|
137
|
+
body,
|
|
138
|
+
});
|
|
139
|
+
};
|
|
84
140
|
export const serializeAws_restXmlCreateDistributionCommand = async (input, context) => {
|
|
85
141
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
86
142
|
const headers = {
|
|
@@ -560,6 +616,25 @@ export const serializeAws_restXmlDeleteCloudFrontOriginAccessIdentityCommand = a
|
|
|
560
616
|
body,
|
|
561
617
|
});
|
|
562
618
|
};
|
|
619
|
+
export const serializeAws_restXmlDeleteContinuousDeploymentPolicyCommand = async (input, context) => {
|
|
620
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
621
|
+
const headers = map({}, isSerializableHeaderValue, {
|
|
622
|
+
"if-match": input.IfMatch,
|
|
623
|
+
});
|
|
624
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
625
|
+
"/2020-05-31/continuous-deployment-policy/{Id}";
|
|
626
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
|
|
627
|
+
let body;
|
|
628
|
+
return new __HttpRequest({
|
|
629
|
+
protocol,
|
|
630
|
+
hostname,
|
|
631
|
+
port,
|
|
632
|
+
method: "DELETE",
|
|
633
|
+
headers,
|
|
634
|
+
path: resolvedPath,
|
|
635
|
+
body,
|
|
636
|
+
});
|
|
637
|
+
};
|
|
563
638
|
export const serializeAws_restXmlDeleteDistributionCommand = async (input, context) => {
|
|
564
639
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
565
640
|
const headers = map({}, isSerializableHeaderValue, {
|
|
@@ -873,6 +948,40 @@ export const serializeAws_restXmlGetCloudFrontOriginAccessIdentityConfigCommand
|
|
|
873
948
|
body,
|
|
874
949
|
});
|
|
875
950
|
};
|
|
951
|
+
export const serializeAws_restXmlGetContinuousDeploymentPolicyCommand = async (input, context) => {
|
|
952
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
953
|
+
const headers = {};
|
|
954
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
955
|
+
"/2020-05-31/continuous-deployment-policy/{Id}";
|
|
956
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
|
|
957
|
+
let body;
|
|
958
|
+
return new __HttpRequest({
|
|
959
|
+
protocol,
|
|
960
|
+
hostname,
|
|
961
|
+
port,
|
|
962
|
+
method: "GET",
|
|
963
|
+
headers,
|
|
964
|
+
path: resolvedPath,
|
|
965
|
+
body,
|
|
966
|
+
});
|
|
967
|
+
};
|
|
968
|
+
export const serializeAws_restXmlGetContinuousDeploymentPolicyConfigCommand = async (input, context) => {
|
|
969
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
970
|
+
const headers = {};
|
|
971
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
972
|
+
"/2020-05-31/continuous-deployment-policy/{Id}/config";
|
|
973
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
|
|
974
|
+
let body;
|
|
975
|
+
return new __HttpRequest({
|
|
976
|
+
protocol,
|
|
977
|
+
hostname,
|
|
978
|
+
port,
|
|
979
|
+
method: "GET",
|
|
980
|
+
headers,
|
|
981
|
+
path: resolvedPath,
|
|
982
|
+
body,
|
|
983
|
+
});
|
|
984
|
+
};
|
|
876
985
|
export const serializeAws_restXmlGetDistributionCommand = async (input, context) => {
|
|
877
986
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
878
987
|
const headers = {};
|
|
@@ -1316,6 +1425,26 @@ export const serializeAws_restXmlListConflictingAliasesCommand = async (input, c
|
|
|
1316
1425
|
body,
|
|
1317
1426
|
});
|
|
1318
1427
|
};
|
|
1428
|
+
export const serializeAws_restXmlListContinuousDeploymentPoliciesCommand = async (input, context) => {
|
|
1429
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1430
|
+
const headers = {};
|
|
1431
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/continuous-deployment-policy";
|
|
1432
|
+
const query = map({
|
|
1433
|
+
Marker: [, input.Marker],
|
|
1434
|
+
MaxItems: [() => input.MaxItems !== void 0, () => input.MaxItems.toString()],
|
|
1435
|
+
});
|
|
1436
|
+
let body;
|
|
1437
|
+
return new __HttpRequest({
|
|
1438
|
+
protocol,
|
|
1439
|
+
hostname,
|
|
1440
|
+
port,
|
|
1441
|
+
method: "GET",
|
|
1442
|
+
headers,
|
|
1443
|
+
path: resolvedPath,
|
|
1444
|
+
query,
|
|
1445
|
+
body,
|
|
1446
|
+
});
|
|
1447
|
+
};
|
|
1319
1448
|
export const serializeAws_restXmlListDistributionsCommand = async (input, context) => {
|
|
1320
1449
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1321
1450
|
const headers = {};
|
|
@@ -1901,6 +2030,36 @@ export const serializeAws_restXmlUpdateCloudFrontOriginAccessIdentityCommand = a
|
|
|
1901
2030
|
body,
|
|
1902
2031
|
});
|
|
1903
2032
|
};
|
|
2033
|
+
export const serializeAws_restXmlUpdateContinuousDeploymentPolicyCommand = async (input, context) => {
|
|
2034
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2035
|
+
const headers = map({}, isSerializableHeaderValue, {
|
|
2036
|
+
"content-type": "application/xml",
|
|
2037
|
+
"if-match": input.IfMatch,
|
|
2038
|
+
});
|
|
2039
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
2040
|
+
"/2020-05-31/continuous-deployment-policy/{Id}";
|
|
2041
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
|
|
2042
|
+
let body;
|
|
2043
|
+
if (input.ContinuousDeploymentPolicyConfig !== undefined) {
|
|
2044
|
+
body = serializeAws_restXmlContinuousDeploymentPolicyConfig(input.ContinuousDeploymentPolicyConfig, context);
|
|
2045
|
+
}
|
|
2046
|
+
let contents;
|
|
2047
|
+
if (input.ContinuousDeploymentPolicyConfig !== undefined) {
|
|
2048
|
+
contents = serializeAws_restXmlContinuousDeploymentPolicyConfig(input.ContinuousDeploymentPolicyConfig, context);
|
|
2049
|
+
body = '<?xml version="1.0" encoding="UTF-8"?>';
|
|
2050
|
+
contents.addAttribute("xmlns", "http://cloudfront.amazonaws.com/doc/2020-05-31/");
|
|
2051
|
+
body += contents.toString();
|
|
2052
|
+
}
|
|
2053
|
+
return new __HttpRequest({
|
|
2054
|
+
protocol,
|
|
2055
|
+
hostname,
|
|
2056
|
+
port,
|
|
2057
|
+
method: "PUT",
|
|
2058
|
+
headers,
|
|
2059
|
+
path: resolvedPath,
|
|
2060
|
+
body,
|
|
2061
|
+
});
|
|
2062
|
+
};
|
|
1904
2063
|
export const serializeAws_restXmlUpdateDistributionCommand = async (input, context) => {
|
|
1905
2064
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1906
2065
|
const headers = map({}, isSerializableHeaderValue, {
|
|
@@ -2288,6 +2447,225 @@ const deserializeAws_restXmlAssociateAliasCommandError = async (output, context)
|
|
|
2288
2447
|
});
|
|
2289
2448
|
}
|
|
2290
2449
|
};
|
|
2450
|
+
export const deserializeAws_restXmlCopyDistributionCommand = async (output, context) => {
|
|
2451
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
2452
|
+
return deserializeAws_restXmlCopyDistributionCommandError(output, context);
|
|
2453
|
+
}
|
|
2454
|
+
const contents = map({
|
|
2455
|
+
$metadata: deserializeMetadata(output),
|
|
2456
|
+
Location: [, output.headers["location"]],
|
|
2457
|
+
ETag: [, output.headers["etag"]],
|
|
2458
|
+
});
|
|
2459
|
+
const data = __expectObject(await parseBody(output.body, context));
|
|
2460
|
+
contents.Distribution = deserializeAws_restXmlDistribution(data, context);
|
|
2461
|
+
return contents;
|
|
2462
|
+
};
|
|
2463
|
+
const deserializeAws_restXmlCopyDistributionCommandError = async (output, context) => {
|
|
2464
|
+
const parsedOutput = {
|
|
2465
|
+
...output,
|
|
2466
|
+
body: await parseErrorBody(output.body, context),
|
|
2467
|
+
};
|
|
2468
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
2469
|
+
switch (errorCode) {
|
|
2470
|
+
case "AccessDenied":
|
|
2471
|
+
case "com.amazonaws.cloudfront#AccessDenied":
|
|
2472
|
+
throw await deserializeAws_restXmlAccessDeniedResponse(parsedOutput, context);
|
|
2473
|
+
case "CNAMEAlreadyExists":
|
|
2474
|
+
case "com.amazonaws.cloudfront#CNAMEAlreadyExists":
|
|
2475
|
+
throw await deserializeAws_restXmlCNAMEAlreadyExistsResponse(parsedOutput, context);
|
|
2476
|
+
case "DistributionAlreadyExists":
|
|
2477
|
+
case "com.amazonaws.cloudfront#DistributionAlreadyExists":
|
|
2478
|
+
throw await deserializeAws_restXmlDistributionAlreadyExistsResponse(parsedOutput, context);
|
|
2479
|
+
case "IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior":
|
|
2480
|
+
case "com.amazonaws.cloudfront#IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior":
|
|
2481
|
+
throw await deserializeAws_restXmlIllegalFieldLevelEncryptionConfigAssociationWithCacheBehaviorResponse(parsedOutput, context);
|
|
2482
|
+
case "InconsistentQuantities":
|
|
2483
|
+
case "com.amazonaws.cloudfront#InconsistentQuantities":
|
|
2484
|
+
throw await deserializeAws_restXmlInconsistentQuantitiesResponse(parsedOutput, context);
|
|
2485
|
+
case "InvalidArgument":
|
|
2486
|
+
case "com.amazonaws.cloudfront#InvalidArgument":
|
|
2487
|
+
throw await deserializeAws_restXmlInvalidArgumentResponse(parsedOutput, context);
|
|
2488
|
+
case "InvalidDefaultRootObject":
|
|
2489
|
+
case "com.amazonaws.cloudfront#InvalidDefaultRootObject":
|
|
2490
|
+
throw await deserializeAws_restXmlInvalidDefaultRootObjectResponse(parsedOutput, context);
|
|
2491
|
+
case "InvalidErrorCode":
|
|
2492
|
+
case "com.amazonaws.cloudfront#InvalidErrorCode":
|
|
2493
|
+
throw await deserializeAws_restXmlInvalidErrorCodeResponse(parsedOutput, context);
|
|
2494
|
+
case "InvalidForwardCookies":
|
|
2495
|
+
case "com.amazonaws.cloudfront#InvalidForwardCookies":
|
|
2496
|
+
throw await deserializeAws_restXmlInvalidForwardCookiesResponse(parsedOutput, context);
|
|
2497
|
+
case "InvalidFunctionAssociation":
|
|
2498
|
+
case "com.amazonaws.cloudfront#InvalidFunctionAssociation":
|
|
2499
|
+
throw await deserializeAws_restXmlInvalidFunctionAssociationResponse(parsedOutput, context);
|
|
2500
|
+
case "InvalidGeoRestrictionParameter":
|
|
2501
|
+
case "com.amazonaws.cloudfront#InvalidGeoRestrictionParameter":
|
|
2502
|
+
throw await deserializeAws_restXmlInvalidGeoRestrictionParameterResponse(parsedOutput, context);
|
|
2503
|
+
case "InvalidHeadersForS3Origin":
|
|
2504
|
+
case "com.amazonaws.cloudfront#InvalidHeadersForS3Origin":
|
|
2505
|
+
throw await deserializeAws_restXmlInvalidHeadersForS3OriginResponse(parsedOutput, context);
|
|
2506
|
+
case "InvalidIfMatchVersion":
|
|
2507
|
+
case "com.amazonaws.cloudfront#InvalidIfMatchVersion":
|
|
2508
|
+
throw await deserializeAws_restXmlInvalidIfMatchVersionResponse(parsedOutput, context);
|
|
2509
|
+
case "InvalidLambdaFunctionAssociation":
|
|
2510
|
+
case "com.amazonaws.cloudfront#InvalidLambdaFunctionAssociation":
|
|
2511
|
+
throw await deserializeAws_restXmlInvalidLambdaFunctionAssociationResponse(parsedOutput, context);
|
|
2512
|
+
case "InvalidLocationCode":
|
|
2513
|
+
case "com.amazonaws.cloudfront#InvalidLocationCode":
|
|
2514
|
+
throw await deserializeAws_restXmlInvalidLocationCodeResponse(parsedOutput, context);
|
|
2515
|
+
case "InvalidMinimumProtocolVersion":
|
|
2516
|
+
case "com.amazonaws.cloudfront#InvalidMinimumProtocolVersion":
|
|
2517
|
+
throw await deserializeAws_restXmlInvalidMinimumProtocolVersionResponse(parsedOutput, context);
|
|
2518
|
+
case "InvalidOrigin":
|
|
2519
|
+
case "com.amazonaws.cloudfront#InvalidOrigin":
|
|
2520
|
+
throw await deserializeAws_restXmlInvalidOriginResponse(parsedOutput, context);
|
|
2521
|
+
case "InvalidOriginAccessControl":
|
|
2522
|
+
case "com.amazonaws.cloudfront#InvalidOriginAccessControl":
|
|
2523
|
+
throw await deserializeAws_restXmlInvalidOriginAccessControlResponse(parsedOutput, context);
|
|
2524
|
+
case "InvalidOriginAccessIdentity":
|
|
2525
|
+
case "com.amazonaws.cloudfront#InvalidOriginAccessIdentity":
|
|
2526
|
+
throw await deserializeAws_restXmlInvalidOriginAccessIdentityResponse(parsedOutput, context);
|
|
2527
|
+
case "InvalidOriginKeepaliveTimeout":
|
|
2528
|
+
case "com.amazonaws.cloudfront#InvalidOriginKeepaliveTimeout":
|
|
2529
|
+
throw await deserializeAws_restXmlInvalidOriginKeepaliveTimeoutResponse(parsedOutput, context);
|
|
2530
|
+
case "InvalidOriginReadTimeout":
|
|
2531
|
+
case "com.amazonaws.cloudfront#InvalidOriginReadTimeout":
|
|
2532
|
+
throw await deserializeAws_restXmlInvalidOriginReadTimeoutResponse(parsedOutput, context);
|
|
2533
|
+
case "InvalidProtocolSettings":
|
|
2534
|
+
case "com.amazonaws.cloudfront#InvalidProtocolSettings":
|
|
2535
|
+
throw await deserializeAws_restXmlInvalidProtocolSettingsResponse(parsedOutput, context);
|
|
2536
|
+
case "InvalidQueryStringParameters":
|
|
2537
|
+
case "com.amazonaws.cloudfront#InvalidQueryStringParameters":
|
|
2538
|
+
throw await deserializeAws_restXmlInvalidQueryStringParametersResponse(parsedOutput, context);
|
|
2539
|
+
case "InvalidRelativePath":
|
|
2540
|
+
case "com.amazonaws.cloudfront#InvalidRelativePath":
|
|
2541
|
+
throw await deserializeAws_restXmlInvalidRelativePathResponse(parsedOutput, context);
|
|
2542
|
+
case "InvalidRequiredProtocol":
|
|
2543
|
+
case "com.amazonaws.cloudfront#InvalidRequiredProtocol":
|
|
2544
|
+
throw await deserializeAws_restXmlInvalidRequiredProtocolResponse(parsedOutput, context);
|
|
2545
|
+
case "InvalidResponseCode":
|
|
2546
|
+
case "com.amazonaws.cloudfront#InvalidResponseCode":
|
|
2547
|
+
throw await deserializeAws_restXmlInvalidResponseCodeResponse(parsedOutput, context);
|
|
2548
|
+
case "InvalidTTLOrder":
|
|
2549
|
+
case "com.amazonaws.cloudfront#InvalidTTLOrder":
|
|
2550
|
+
throw await deserializeAws_restXmlInvalidTTLOrderResponse(parsedOutput, context);
|
|
2551
|
+
case "InvalidViewerCertificate":
|
|
2552
|
+
case "com.amazonaws.cloudfront#InvalidViewerCertificate":
|
|
2553
|
+
throw await deserializeAws_restXmlInvalidViewerCertificateResponse(parsedOutput, context);
|
|
2554
|
+
case "InvalidWebACLId":
|
|
2555
|
+
case "com.amazonaws.cloudfront#InvalidWebACLId":
|
|
2556
|
+
throw await deserializeAws_restXmlInvalidWebACLIdResponse(parsedOutput, context);
|
|
2557
|
+
case "MissingBody":
|
|
2558
|
+
case "com.amazonaws.cloudfront#MissingBody":
|
|
2559
|
+
throw await deserializeAws_restXmlMissingBodyResponse(parsedOutput, context);
|
|
2560
|
+
case "NoSuchCachePolicy":
|
|
2561
|
+
case "com.amazonaws.cloudfront#NoSuchCachePolicy":
|
|
2562
|
+
throw await deserializeAws_restXmlNoSuchCachePolicyResponse(parsedOutput, context);
|
|
2563
|
+
case "NoSuchDistribution":
|
|
2564
|
+
case "com.amazonaws.cloudfront#NoSuchDistribution":
|
|
2565
|
+
throw await deserializeAws_restXmlNoSuchDistributionResponse(parsedOutput, context);
|
|
2566
|
+
case "NoSuchFieldLevelEncryptionConfig":
|
|
2567
|
+
case "com.amazonaws.cloudfront#NoSuchFieldLevelEncryptionConfig":
|
|
2568
|
+
throw await deserializeAws_restXmlNoSuchFieldLevelEncryptionConfigResponse(parsedOutput, context);
|
|
2569
|
+
case "NoSuchOrigin":
|
|
2570
|
+
case "com.amazonaws.cloudfront#NoSuchOrigin":
|
|
2571
|
+
throw await deserializeAws_restXmlNoSuchOriginResponse(parsedOutput, context);
|
|
2572
|
+
case "NoSuchOriginRequestPolicy":
|
|
2573
|
+
case "com.amazonaws.cloudfront#NoSuchOriginRequestPolicy":
|
|
2574
|
+
throw await deserializeAws_restXmlNoSuchOriginRequestPolicyResponse(parsedOutput, context);
|
|
2575
|
+
case "NoSuchRealtimeLogConfig":
|
|
2576
|
+
case "com.amazonaws.cloudfront#NoSuchRealtimeLogConfig":
|
|
2577
|
+
throw await deserializeAws_restXmlNoSuchRealtimeLogConfigResponse(parsedOutput, context);
|
|
2578
|
+
case "NoSuchResponseHeadersPolicy":
|
|
2579
|
+
case "com.amazonaws.cloudfront#NoSuchResponseHeadersPolicy":
|
|
2580
|
+
throw await deserializeAws_restXmlNoSuchResponseHeadersPolicyResponse(parsedOutput, context);
|
|
2581
|
+
case "PreconditionFailed":
|
|
2582
|
+
case "com.amazonaws.cloudfront#PreconditionFailed":
|
|
2583
|
+
throw await deserializeAws_restXmlPreconditionFailedResponse(parsedOutput, context);
|
|
2584
|
+
case "RealtimeLogConfigOwnerMismatch":
|
|
2585
|
+
case "com.amazonaws.cloudfront#RealtimeLogConfigOwnerMismatch":
|
|
2586
|
+
throw await deserializeAws_restXmlRealtimeLogConfigOwnerMismatchResponse(parsedOutput, context);
|
|
2587
|
+
case "TooManyCacheBehaviors":
|
|
2588
|
+
case "com.amazonaws.cloudfront#TooManyCacheBehaviors":
|
|
2589
|
+
throw await deserializeAws_restXmlTooManyCacheBehaviorsResponse(parsedOutput, context);
|
|
2590
|
+
case "TooManyCertificates":
|
|
2591
|
+
case "com.amazonaws.cloudfront#TooManyCertificates":
|
|
2592
|
+
throw await deserializeAws_restXmlTooManyCertificatesResponse(parsedOutput, context);
|
|
2593
|
+
case "TooManyCookieNamesInWhiteList":
|
|
2594
|
+
case "com.amazonaws.cloudfront#TooManyCookieNamesInWhiteList":
|
|
2595
|
+
throw await deserializeAws_restXmlTooManyCookieNamesInWhiteListResponse(parsedOutput, context);
|
|
2596
|
+
case "TooManyDistributionCNAMEs":
|
|
2597
|
+
case "com.amazonaws.cloudfront#TooManyDistributionCNAMEs":
|
|
2598
|
+
throw await deserializeAws_restXmlTooManyDistributionCNAMEsResponse(parsedOutput, context);
|
|
2599
|
+
case "TooManyDistributions":
|
|
2600
|
+
case "com.amazonaws.cloudfront#TooManyDistributions":
|
|
2601
|
+
throw await deserializeAws_restXmlTooManyDistributionsResponse(parsedOutput, context);
|
|
2602
|
+
case "TooManyDistributionsAssociatedToCachePolicy":
|
|
2603
|
+
case "com.amazonaws.cloudfront#TooManyDistributionsAssociatedToCachePolicy":
|
|
2604
|
+
throw await deserializeAws_restXmlTooManyDistributionsAssociatedToCachePolicyResponse(parsedOutput, context);
|
|
2605
|
+
case "TooManyDistributionsAssociatedToFieldLevelEncryptionConfig":
|
|
2606
|
+
case "com.amazonaws.cloudfront#TooManyDistributionsAssociatedToFieldLevelEncryptionConfig":
|
|
2607
|
+
throw await deserializeAws_restXmlTooManyDistributionsAssociatedToFieldLevelEncryptionConfigResponse(parsedOutput, context);
|
|
2608
|
+
case "TooManyDistributionsAssociatedToKeyGroup":
|
|
2609
|
+
case "com.amazonaws.cloudfront#TooManyDistributionsAssociatedToKeyGroup":
|
|
2610
|
+
throw await deserializeAws_restXmlTooManyDistributionsAssociatedToKeyGroupResponse(parsedOutput, context);
|
|
2611
|
+
case "TooManyDistributionsAssociatedToOriginRequestPolicy":
|
|
2612
|
+
case "com.amazonaws.cloudfront#TooManyDistributionsAssociatedToOriginRequestPolicy":
|
|
2613
|
+
throw await deserializeAws_restXmlTooManyDistributionsAssociatedToOriginRequestPolicyResponse(parsedOutput, context);
|
|
2614
|
+
case "TooManyDistributionsAssociatedToResponseHeadersPolicy":
|
|
2615
|
+
case "com.amazonaws.cloudfront#TooManyDistributionsAssociatedToResponseHeadersPolicy":
|
|
2616
|
+
throw await deserializeAws_restXmlTooManyDistributionsAssociatedToResponseHeadersPolicyResponse(parsedOutput, context);
|
|
2617
|
+
case "TooManyDistributionsWithFunctionAssociations":
|
|
2618
|
+
case "com.amazonaws.cloudfront#TooManyDistributionsWithFunctionAssociations":
|
|
2619
|
+
throw await deserializeAws_restXmlTooManyDistributionsWithFunctionAssociationsResponse(parsedOutput, context);
|
|
2620
|
+
case "TooManyDistributionsWithLambdaAssociations":
|
|
2621
|
+
case "com.amazonaws.cloudfront#TooManyDistributionsWithLambdaAssociations":
|
|
2622
|
+
throw await deserializeAws_restXmlTooManyDistributionsWithLambdaAssociationsResponse(parsedOutput, context);
|
|
2623
|
+
case "TooManyDistributionsWithSingleFunctionARN":
|
|
2624
|
+
case "com.amazonaws.cloudfront#TooManyDistributionsWithSingleFunctionARN":
|
|
2625
|
+
throw await deserializeAws_restXmlTooManyDistributionsWithSingleFunctionARNResponse(parsedOutput, context);
|
|
2626
|
+
case "TooManyFunctionAssociations":
|
|
2627
|
+
case "com.amazonaws.cloudfront#TooManyFunctionAssociations":
|
|
2628
|
+
throw await deserializeAws_restXmlTooManyFunctionAssociationsResponse(parsedOutput, context);
|
|
2629
|
+
case "TooManyHeadersInForwardedValues":
|
|
2630
|
+
case "com.amazonaws.cloudfront#TooManyHeadersInForwardedValues":
|
|
2631
|
+
throw await deserializeAws_restXmlTooManyHeadersInForwardedValuesResponse(parsedOutput, context);
|
|
2632
|
+
case "TooManyKeyGroupsAssociatedToDistribution":
|
|
2633
|
+
case "com.amazonaws.cloudfront#TooManyKeyGroupsAssociatedToDistribution":
|
|
2634
|
+
throw await deserializeAws_restXmlTooManyKeyGroupsAssociatedToDistributionResponse(parsedOutput, context);
|
|
2635
|
+
case "TooManyLambdaFunctionAssociations":
|
|
2636
|
+
case "com.amazonaws.cloudfront#TooManyLambdaFunctionAssociations":
|
|
2637
|
+
throw await deserializeAws_restXmlTooManyLambdaFunctionAssociationsResponse(parsedOutput, context);
|
|
2638
|
+
case "TooManyOriginCustomHeaders":
|
|
2639
|
+
case "com.amazonaws.cloudfront#TooManyOriginCustomHeaders":
|
|
2640
|
+
throw await deserializeAws_restXmlTooManyOriginCustomHeadersResponse(parsedOutput, context);
|
|
2641
|
+
case "TooManyOriginGroupsPerDistribution":
|
|
2642
|
+
case "com.amazonaws.cloudfront#TooManyOriginGroupsPerDistribution":
|
|
2643
|
+
throw await deserializeAws_restXmlTooManyOriginGroupsPerDistributionResponse(parsedOutput, context);
|
|
2644
|
+
case "TooManyOrigins":
|
|
2645
|
+
case "com.amazonaws.cloudfront#TooManyOrigins":
|
|
2646
|
+
throw await deserializeAws_restXmlTooManyOriginsResponse(parsedOutput, context);
|
|
2647
|
+
case "TooManyQueryStringParameters":
|
|
2648
|
+
case "com.amazonaws.cloudfront#TooManyQueryStringParameters":
|
|
2649
|
+
throw await deserializeAws_restXmlTooManyQueryStringParametersResponse(parsedOutput, context);
|
|
2650
|
+
case "TooManyTrustedSigners":
|
|
2651
|
+
case "com.amazonaws.cloudfront#TooManyTrustedSigners":
|
|
2652
|
+
throw await deserializeAws_restXmlTooManyTrustedSignersResponse(parsedOutput, context);
|
|
2653
|
+
case "TrustedKeyGroupDoesNotExist":
|
|
2654
|
+
case "com.amazonaws.cloudfront#TrustedKeyGroupDoesNotExist":
|
|
2655
|
+
throw await deserializeAws_restXmlTrustedKeyGroupDoesNotExistResponse(parsedOutput, context);
|
|
2656
|
+
case "TrustedSignerDoesNotExist":
|
|
2657
|
+
case "com.amazonaws.cloudfront#TrustedSignerDoesNotExist":
|
|
2658
|
+
throw await deserializeAws_restXmlTrustedSignerDoesNotExistResponse(parsedOutput, context);
|
|
2659
|
+
default:
|
|
2660
|
+
const parsedBody = parsedOutput.body;
|
|
2661
|
+
throwDefaultError({
|
|
2662
|
+
output,
|
|
2663
|
+
parsedBody: parsedBody.Error,
|
|
2664
|
+
exceptionCtor: __BaseException,
|
|
2665
|
+
errorCode,
|
|
2666
|
+
});
|
|
2667
|
+
}
|
|
2668
|
+
};
|
|
2291
2669
|
export const deserializeAws_restXmlCreateCachePolicyCommand = async (output, context) => {
|
|
2292
2670
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
2293
2671
|
return deserializeAws_restXmlCreateCachePolicyCommandError(output, context);
|
|
@@ -2387,6 +2765,48 @@ const deserializeAws_restXmlCreateCloudFrontOriginAccessIdentityCommandError = a
|
|
|
2387
2765
|
});
|
|
2388
2766
|
}
|
|
2389
2767
|
};
|
|
2768
|
+
export const deserializeAws_restXmlCreateContinuousDeploymentPolicyCommand = async (output, context) => {
|
|
2769
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
2770
|
+
return deserializeAws_restXmlCreateContinuousDeploymentPolicyCommandError(output, context);
|
|
2771
|
+
}
|
|
2772
|
+
const contents = map({
|
|
2773
|
+
$metadata: deserializeMetadata(output),
|
|
2774
|
+
Location: [, output.headers["location"]],
|
|
2775
|
+
ETag: [, output.headers["etag"]],
|
|
2776
|
+
});
|
|
2777
|
+
const data = __expectObject(await parseBody(output.body, context));
|
|
2778
|
+
contents.ContinuousDeploymentPolicy = deserializeAws_restXmlContinuousDeploymentPolicy(data, context);
|
|
2779
|
+
return contents;
|
|
2780
|
+
};
|
|
2781
|
+
const deserializeAws_restXmlCreateContinuousDeploymentPolicyCommandError = async (output, context) => {
|
|
2782
|
+
const parsedOutput = {
|
|
2783
|
+
...output,
|
|
2784
|
+
body: await parseErrorBody(output.body, context),
|
|
2785
|
+
};
|
|
2786
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
2787
|
+
switch (errorCode) {
|
|
2788
|
+
case "AccessDenied":
|
|
2789
|
+
case "com.amazonaws.cloudfront#AccessDenied":
|
|
2790
|
+
throw await deserializeAws_restXmlAccessDeniedResponse(parsedOutput, context);
|
|
2791
|
+
case "InconsistentQuantities":
|
|
2792
|
+
case "com.amazonaws.cloudfront#InconsistentQuantities":
|
|
2793
|
+
throw await deserializeAws_restXmlInconsistentQuantitiesResponse(parsedOutput, context);
|
|
2794
|
+
case "InvalidArgument":
|
|
2795
|
+
case "com.amazonaws.cloudfront#InvalidArgument":
|
|
2796
|
+
throw await deserializeAws_restXmlInvalidArgumentResponse(parsedOutput, context);
|
|
2797
|
+
case "StagingDistributionInUse":
|
|
2798
|
+
case "com.amazonaws.cloudfront#StagingDistributionInUse":
|
|
2799
|
+
throw await deserializeAws_restXmlStagingDistributionInUseResponse(parsedOutput, context);
|
|
2800
|
+
default:
|
|
2801
|
+
const parsedBody = parsedOutput.body;
|
|
2802
|
+
throwDefaultError({
|
|
2803
|
+
output,
|
|
2804
|
+
parsedBody: parsedBody.Error,
|
|
2805
|
+
exceptionCtor: __BaseException,
|
|
2806
|
+
errorCode,
|
|
2807
|
+
});
|
|
2808
|
+
}
|
|
2809
|
+
};
|
|
2390
2810
|
export const deserializeAws_restXmlCreateDistributionCommand = async (output, context) => {
|
|
2391
2811
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
2392
2812
|
return deserializeAws_restXmlCreateDistributionCommandError(output, context);
|
|
@@ -3560,6 +3980,45 @@ const deserializeAws_restXmlDeleteCloudFrontOriginAccessIdentityCommandError = a
|
|
|
3560
3980
|
});
|
|
3561
3981
|
}
|
|
3562
3982
|
};
|
|
3983
|
+
export const deserializeAws_restXmlDeleteContinuousDeploymentPolicyCommand = async (output, context) => {
|
|
3984
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
3985
|
+
return deserializeAws_restXmlDeleteContinuousDeploymentPolicyCommandError(output, context);
|
|
3986
|
+
}
|
|
3987
|
+
const contents = map({
|
|
3988
|
+
$metadata: deserializeMetadata(output),
|
|
3989
|
+
});
|
|
3990
|
+
await collectBody(output.body, context);
|
|
3991
|
+
return contents;
|
|
3992
|
+
};
|
|
3993
|
+
const deserializeAws_restXmlDeleteContinuousDeploymentPolicyCommandError = async (output, context) => {
|
|
3994
|
+
const parsedOutput = {
|
|
3995
|
+
...output,
|
|
3996
|
+
body: await parseErrorBody(output.body, context),
|
|
3997
|
+
};
|
|
3998
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3999
|
+
switch (errorCode) {
|
|
4000
|
+
case "AccessDenied":
|
|
4001
|
+
case "com.amazonaws.cloudfront#AccessDenied":
|
|
4002
|
+
throw await deserializeAws_restXmlAccessDeniedResponse(parsedOutput, context);
|
|
4003
|
+
case "InvalidArgument":
|
|
4004
|
+
case "com.amazonaws.cloudfront#InvalidArgument":
|
|
4005
|
+
throw await deserializeAws_restXmlInvalidArgumentResponse(parsedOutput, context);
|
|
4006
|
+
case "InvalidIfMatchVersion":
|
|
4007
|
+
case "com.amazonaws.cloudfront#InvalidIfMatchVersion":
|
|
4008
|
+
throw await deserializeAws_restXmlInvalidIfMatchVersionResponse(parsedOutput, context);
|
|
4009
|
+
case "PreconditionFailed":
|
|
4010
|
+
case "com.amazonaws.cloudfront#PreconditionFailed":
|
|
4011
|
+
throw await deserializeAws_restXmlPreconditionFailedResponse(parsedOutput, context);
|
|
4012
|
+
default:
|
|
4013
|
+
const parsedBody = parsedOutput.body;
|
|
4014
|
+
throwDefaultError({
|
|
4015
|
+
output,
|
|
4016
|
+
parsedBody: parsedBody.Error,
|
|
4017
|
+
exceptionCtor: __BaseException,
|
|
4018
|
+
errorCode,
|
|
4019
|
+
});
|
|
4020
|
+
}
|
|
4021
|
+
};
|
|
3563
4022
|
export const deserializeAws_restXmlDeleteDistributionCommand = async (output, context) => {
|
|
3564
4023
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
3565
4024
|
return deserializeAws_restXmlDeleteDistributionCommandError(output, context);
|
|
@@ -4188,9 +4647,76 @@ const deserializeAws_restXmlGetCloudFrontOriginAccessIdentityCommandError = asyn
|
|
|
4188
4647
|
case "AccessDenied":
|
|
4189
4648
|
case "com.amazonaws.cloudfront#AccessDenied":
|
|
4190
4649
|
throw await deserializeAws_restXmlAccessDeniedResponse(parsedOutput, context);
|
|
4191
|
-
case "NoSuchCloudFrontOriginAccessIdentity":
|
|
4192
|
-
case "com.amazonaws.cloudfront#NoSuchCloudFrontOriginAccessIdentity":
|
|
4193
|
-
throw await deserializeAws_restXmlNoSuchCloudFrontOriginAccessIdentityResponse(parsedOutput, context);
|
|
4650
|
+
case "NoSuchCloudFrontOriginAccessIdentity":
|
|
4651
|
+
case "com.amazonaws.cloudfront#NoSuchCloudFrontOriginAccessIdentity":
|
|
4652
|
+
throw await deserializeAws_restXmlNoSuchCloudFrontOriginAccessIdentityResponse(parsedOutput, context);
|
|
4653
|
+
default:
|
|
4654
|
+
const parsedBody = parsedOutput.body;
|
|
4655
|
+
throwDefaultError({
|
|
4656
|
+
output,
|
|
4657
|
+
parsedBody: parsedBody.Error,
|
|
4658
|
+
exceptionCtor: __BaseException,
|
|
4659
|
+
errorCode,
|
|
4660
|
+
});
|
|
4661
|
+
}
|
|
4662
|
+
};
|
|
4663
|
+
export const deserializeAws_restXmlGetCloudFrontOriginAccessIdentityConfigCommand = async (output, context) => {
|
|
4664
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4665
|
+
return deserializeAws_restXmlGetCloudFrontOriginAccessIdentityConfigCommandError(output, context);
|
|
4666
|
+
}
|
|
4667
|
+
const contents = map({
|
|
4668
|
+
$metadata: deserializeMetadata(output),
|
|
4669
|
+
ETag: [, output.headers["etag"]],
|
|
4670
|
+
});
|
|
4671
|
+
const data = __expectObject(await parseBody(output.body, context));
|
|
4672
|
+
contents.CloudFrontOriginAccessIdentityConfig = deserializeAws_restXmlCloudFrontOriginAccessIdentityConfig(data, context);
|
|
4673
|
+
return contents;
|
|
4674
|
+
};
|
|
4675
|
+
const deserializeAws_restXmlGetCloudFrontOriginAccessIdentityConfigCommandError = async (output, context) => {
|
|
4676
|
+
const parsedOutput = {
|
|
4677
|
+
...output,
|
|
4678
|
+
body: await parseErrorBody(output.body, context),
|
|
4679
|
+
};
|
|
4680
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4681
|
+
switch (errorCode) {
|
|
4682
|
+
case "AccessDenied":
|
|
4683
|
+
case "com.amazonaws.cloudfront#AccessDenied":
|
|
4684
|
+
throw await deserializeAws_restXmlAccessDeniedResponse(parsedOutput, context);
|
|
4685
|
+
case "NoSuchCloudFrontOriginAccessIdentity":
|
|
4686
|
+
case "com.amazonaws.cloudfront#NoSuchCloudFrontOriginAccessIdentity":
|
|
4687
|
+
throw await deserializeAws_restXmlNoSuchCloudFrontOriginAccessIdentityResponse(parsedOutput, context);
|
|
4688
|
+
default:
|
|
4689
|
+
const parsedBody = parsedOutput.body;
|
|
4690
|
+
throwDefaultError({
|
|
4691
|
+
output,
|
|
4692
|
+
parsedBody: parsedBody.Error,
|
|
4693
|
+
exceptionCtor: __BaseException,
|
|
4694
|
+
errorCode,
|
|
4695
|
+
});
|
|
4696
|
+
}
|
|
4697
|
+
};
|
|
4698
|
+
export const deserializeAws_restXmlGetContinuousDeploymentPolicyCommand = async (output, context) => {
|
|
4699
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4700
|
+
return deserializeAws_restXmlGetContinuousDeploymentPolicyCommandError(output, context);
|
|
4701
|
+
}
|
|
4702
|
+
const contents = map({
|
|
4703
|
+
$metadata: deserializeMetadata(output),
|
|
4704
|
+
ETag: [, output.headers["etag"]],
|
|
4705
|
+
});
|
|
4706
|
+
const data = __expectObject(await parseBody(output.body, context));
|
|
4707
|
+
contents.ContinuousDeploymentPolicy = deserializeAws_restXmlContinuousDeploymentPolicy(data, context);
|
|
4708
|
+
return contents;
|
|
4709
|
+
};
|
|
4710
|
+
const deserializeAws_restXmlGetContinuousDeploymentPolicyCommandError = async (output, context) => {
|
|
4711
|
+
const parsedOutput = {
|
|
4712
|
+
...output,
|
|
4713
|
+
body: await parseErrorBody(output.body, context),
|
|
4714
|
+
};
|
|
4715
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4716
|
+
switch (errorCode) {
|
|
4717
|
+
case "AccessDenied":
|
|
4718
|
+
case "com.amazonaws.cloudfront#AccessDenied":
|
|
4719
|
+
throw await deserializeAws_restXmlAccessDeniedResponse(parsedOutput, context);
|
|
4194
4720
|
default:
|
|
4195
4721
|
const parsedBody = parsedOutput.body;
|
|
4196
4722
|
throwDefaultError({
|
|
@@ -4201,19 +4727,19 @@ const deserializeAws_restXmlGetCloudFrontOriginAccessIdentityCommandError = asyn
|
|
|
4201
4727
|
});
|
|
4202
4728
|
}
|
|
4203
4729
|
};
|
|
4204
|
-
export const
|
|
4730
|
+
export const deserializeAws_restXmlGetContinuousDeploymentPolicyConfigCommand = async (output, context) => {
|
|
4205
4731
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4206
|
-
return
|
|
4732
|
+
return deserializeAws_restXmlGetContinuousDeploymentPolicyConfigCommandError(output, context);
|
|
4207
4733
|
}
|
|
4208
4734
|
const contents = map({
|
|
4209
4735
|
$metadata: deserializeMetadata(output),
|
|
4210
4736
|
ETag: [, output.headers["etag"]],
|
|
4211
4737
|
});
|
|
4212
4738
|
const data = __expectObject(await parseBody(output.body, context));
|
|
4213
|
-
contents.
|
|
4739
|
+
contents.ContinuousDeploymentPolicyConfig = deserializeAws_restXmlContinuousDeploymentPolicyConfig(data, context);
|
|
4214
4740
|
return contents;
|
|
4215
4741
|
};
|
|
4216
|
-
const
|
|
4742
|
+
const deserializeAws_restXmlGetContinuousDeploymentPolicyConfigCommandError = async (output, context) => {
|
|
4217
4743
|
const parsedOutput = {
|
|
4218
4744
|
...output,
|
|
4219
4745
|
body: await parseErrorBody(output.body, context),
|
|
@@ -4223,9 +4749,6 @@ const deserializeAws_restXmlGetCloudFrontOriginAccessIdentityConfigCommandError
|
|
|
4223
4749
|
case "AccessDenied":
|
|
4224
4750
|
case "com.amazonaws.cloudfront#AccessDenied":
|
|
4225
4751
|
throw await deserializeAws_restXmlAccessDeniedResponse(parsedOutput, context);
|
|
4226
|
-
case "NoSuchCloudFrontOriginAccessIdentity":
|
|
4227
|
-
case "com.amazonaws.cloudfront#NoSuchCloudFrontOriginAccessIdentity":
|
|
4228
|
-
throw await deserializeAws_restXmlNoSuchCloudFrontOriginAccessIdentityResponse(parsedOutput, context);
|
|
4229
4752
|
default:
|
|
4230
4753
|
const parsedBody = parsedOutput.body;
|
|
4231
4754
|
throwDefaultError({
|
|
@@ -5114,6 +5637,40 @@ const deserializeAws_restXmlListConflictingAliasesCommandError = async (output,
|
|
|
5114
5637
|
});
|
|
5115
5638
|
}
|
|
5116
5639
|
};
|
|
5640
|
+
export const deserializeAws_restXmlListContinuousDeploymentPoliciesCommand = async (output, context) => {
|
|
5641
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5642
|
+
return deserializeAws_restXmlListContinuousDeploymentPoliciesCommandError(output, context);
|
|
5643
|
+
}
|
|
5644
|
+
const contents = map({
|
|
5645
|
+
$metadata: deserializeMetadata(output),
|
|
5646
|
+
});
|
|
5647
|
+
const data = __expectObject(await parseBody(output.body, context));
|
|
5648
|
+
contents.ContinuousDeploymentPolicyList = deserializeAws_restXmlContinuousDeploymentPolicyList(data, context);
|
|
5649
|
+
return contents;
|
|
5650
|
+
};
|
|
5651
|
+
const deserializeAws_restXmlListContinuousDeploymentPoliciesCommandError = async (output, context) => {
|
|
5652
|
+
const parsedOutput = {
|
|
5653
|
+
...output,
|
|
5654
|
+
body: await parseErrorBody(output.body, context),
|
|
5655
|
+
};
|
|
5656
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5657
|
+
switch (errorCode) {
|
|
5658
|
+
case "AccessDenied":
|
|
5659
|
+
case "com.amazonaws.cloudfront#AccessDenied":
|
|
5660
|
+
throw await deserializeAws_restXmlAccessDeniedResponse(parsedOutput, context);
|
|
5661
|
+
case "InvalidArgument":
|
|
5662
|
+
case "com.amazonaws.cloudfront#InvalidArgument":
|
|
5663
|
+
throw await deserializeAws_restXmlInvalidArgumentResponse(parsedOutput, context);
|
|
5664
|
+
default:
|
|
5665
|
+
const parsedBody = parsedOutput.body;
|
|
5666
|
+
throwDefaultError({
|
|
5667
|
+
output,
|
|
5668
|
+
parsedBody: parsedBody.Error,
|
|
5669
|
+
exceptionCtor: __BaseException,
|
|
5670
|
+
errorCode,
|
|
5671
|
+
});
|
|
5672
|
+
}
|
|
5673
|
+
};
|
|
5117
5674
|
export const deserializeAws_restXmlListDistributionsCommand = async (output, context) => {
|
|
5118
5675
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5119
5676
|
return deserializeAws_restXmlListDistributionsCommandError(output, context);
|
|
@@ -6042,6 +6599,53 @@ const deserializeAws_restXmlUpdateCloudFrontOriginAccessIdentityCommandError = a
|
|
|
6042
6599
|
});
|
|
6043
6600
|
}
|
|
6044
6601
|
};
|
|
6602
|
+
export const deserializeAws_restXmlUpdateContinuousDeploymentPolicyCommand = async (output, context) => {
|
|
6603
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6604
|
+
return deserializeAws_restXmlUpdateContinuousDeploymentPolicyCommandError(output, context);
|
|
6605
|
+
}
|
|
6606
|
+
const contents = map({
|
|
6607
|
+
$metadata: deserializeMetadata(output),
|
|
6608
|
+
ETag: [, output.headers["etag"]],
|
|
6609
|
+
});
|
|
6610
|
+
const data = __expectObject(await parseBody(output.body, context));
|
|
6611
|
+
contents.ContinuousDeploymentPolicy = deserializeAws_restXmlContinuousDeploymentPolicy(data, context);
|
|
6612
|
+
return contents;
|
|
6613
|
+
};
|
|
6614
|
+
const deserializeAws_restXmlUpdateContinuousDeploymentPolicyCommandError = async (output, context) => {
|
|
6615
|
+
const parsedOutput = {
|
|
6616
|
+
...output,
|
|
6617
|
+
body: await parseErrorBody(output.body, context),
|
|
6618
|
+
};
|
|
6619
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
6620
|
+
switch (errorCode) {
|
|
6621
|
+
case "AccessDenied":
|
|
6622
|
+
case "com.amazonaws.cloudfront#AccessDenied":
|
|
6623
|
+
throw await deserializeAws_restXmlAccessDeniedResponse(parsedOutput, context);
|
|
6624
|
+
case "InconsistentQuantities":
|
|
6625
|
+
case "com.amazonaws.cloudfront#InconsistentQuantities":
|
|
6626
|
+
throw await deserializeAws_restXmlInconsistentQuantitiesResponse(parsedOutput, context);
|
|
6627
|
+
case "InvalidArgument":
|
|
6628
|
+
case "com.amazonaws.cloudfront#InvalidArgument":
|
|
6629
|
+
throw await deserializeAws_restXmlInvalidArgumentResponse(parsedOutput, context);
|
|
6630
|
+
case "InvalidIfMatchVersion":
|
|
6631
|
+
case "com.amazonaws.cloudfront#InvalidIfMatchVersion":
|
|
6632
|
+
throw await deserializeAws_restXmlInvalidIfMatchVersionResponse(parsedOutput, context);
|
|
6633
|
+
case "PreconditionFailed":
|
|
6634
|
+
case "com.amazonaws.cloudfront#PreconditionFailed":
|
|
6635
|
+
throw await deserializeAws_restXmlPreconditionFailedResponse(parsedOutput, context);
|
|
6636
|
+
case "StagingDistributionInUse":
|
|
6637
|
+
case "com.amazonaws.cloudfront#StagingDistributionInUse":
|
|
6638
|
+
throw await deserializeAws_restXmlStagingDistributionInUseResponse(parsedOutput, context);
|
|
6639
|
+
default:
|
|
6640
|
+
const parsedBody = parsedOutput.body;
|
|
6641
|
+
throwDefaultError({
|
|
6642
|
+
output,
|
|
6643
|
+
parsedBody: parsedBody.Error,
|
|
6644
|
+
exceptionCtor: __BaseException,
|
|
6645
|
+
errorCode,
|
|
6646
|
+
});
|
|
6647
|
+
}
|
|
6648
|
+
};
|
|
6045
6649
|
export const deserializeAws_restXmlUpdateDistributionCommand = async (output, context) => {
|
|
6046
6650
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6047
6651
|
return deserializeAws_restXmlUpdateDistributionCommandError(output, context);
|
|
@@ -6178,6 +6782,9 @@ const deserializeAws_restXmlUpdateDistributionCommandError = async (output, cont
|
|
|
6178
6782
|
case "RealtimeLogConfigOwnerMismatch":
|
|
6179
6783
|
case "com.amazonaws.cloudfront#RealtimeLogConfigOwnerMismatch":
|
|
6180
6784
|
throw await deserializeAws_restXmlRealtimeLogConfigOwnerMismatchResponse(parsedOutput, context);
|
|
6785
|
+
case "StagingDistributionInUse":
|
|
6786
|
+
case "com.amazonaws.cloudfront#StagingDistributionInUse":
|
|
6787
|
+
throw await deserializeAws_restXmlStagingDistributionInUseResponse(parsedOutput, context);
|
|
6181
6788
|
case "TooManyCacheBehaviors":
|
|
6182
6789
|
case "com.amazonaws.cloudfront#TooManyCacheBehaviors":
|
|
6183
6790
|
throw await deserializeAws_restXmlTooManyCacheBehaviorsResponse(parsedOutput, context);
|
|
@@ -7794,6 +8401,18 @@ const deserializeAws_restXmlResponseHeadersPolicyInUseResponse = async (parsedOu
|
|
|
7794
8401
|
});
|
|
7795
8402
|
return __decorateServiceException(exception, parsedOutput.body.Error);
|
|
7796
8403
|
};
|
|
8404
|
+
const deserializeAws_restXmlStagingDistributionInUseResponse = async (parsedOutput, context) => {
|
|
8405
|
+
const contents = map({});
|
|
8406
|
+
const data = parsedOutput.body.Error;
|
|
8407
|
+
if (data["Message"] !== undefined) {
|
|
8408
|
+
contents.Message = __expectString(data["Message"]);
|
|
8409
|
+
}
|
|
8410
|
+
const exception = new StagingDistributionInUse({
|
|
8411
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
8412
|
+
...contents,
|
|
8413
|
+
});
|
|
8414
|
+
return __decorateServiceException(exception, parsedOutput.body.Error);
|
|
8415
|
+
};
|
|
7797
8416
|
const deserializeAws_restXmlStreamingDistributionAlreadyExistsResponse = async (parsedOutput, context) => {
|
|
7798
8417
|
const contents = map({});
|
|
7799
8418
|
const data = parsedOutput.body.Error;
|
|
@@ -8802,6 +9421,46 @@ const serializeAws_restXmlContentTypeProfiles = (input, context) => {
|
|
|
8802
9421
|
}
|
|
8803
9422
|
return bodyNode;
|
|
8804
9423
|
};
|
|
9424
|
+
const serializeAws_restXmlContinuousDeploymentPolicyConfig = (input, context) => {
|
|
9425
|
+
const bodyNode = new __XmlNode("ContinuousDeploymentPolicyConfig");
|
|
9426
|
+
if (input.StagingDistributionDnsNames != null) {
|
|
9427
|
+
const node = serializeAws_restXmlStagingDistributionDnsNames(input.StagingDistributionDnsNames, context).withName("StagingDistributionDnsNames");
|
|
9428
|
+
bodyNode.addChildNode(node);
|
|
9429
|
+
}
|
|
9430
|
+
if (input.Enabled != null) {
|
|
9431
|
+
const node = __XmlNode.of("boolean", String(input.Enabled)).withName("Enabled");
|
|
9432
|
+
bodyNode.addChildNode(node);
|
|
9433
|
+
}
|
|
9434
|
+
if (input.TrafficConfig != null) {
|
|
9435
|
+
const node = serializeAws_restXmlTrafficConfig(input.TrafficConfig, context).withName("TrafficConfig");
|
|
9436
|
+
bodyNode.addChildNode(node);
|
|
9437
|
+
}
|
|
9438
|
+
return bodyNode;
|
|
9439
|
+
};
|
|
9440
|
+
const serializeAws_restXmlContinuousDeploymentSingleHeaderConfig = (input, context) => {
|
|
9441
|
+
const bodyNode = new __XmlNode("ContinuousDeploymentSingleHeaderConfig");
|
|
9442
|
+
if (input.Header != null) {
|
|
9443
|
+
const node = __XmlNode.of("string", input.Header).withName("Header");
|
|
9444
|
+
bodyNode.addChildNode(node);
|
|
9445
|
+
}
|
|
9446
|
+
if (input.Value != null) {
|
|
9447
|
+
const node = __XmlNode.of("string", input.Value).withName("Value");
|
|
9448
|
+
bodyNode.addChildNode(node);
|
|
9449
|
+
}
|
|
9450
|
+
return bodyNode;
|
|
9451
|
+
};
|
|
9452
|
+
const serializeAws_restXmlContinuousDeploymentSingleWeightConfig = (input, context) => {
|
|
9453
|
+
const bodyNode = new __XmlNode("ContinuousDeploymentSingleWeightConfig");
|
|
9454
|
+
if (input.Weight != null) {
|
|
9455
|
+
const node = __XmlNode.of("float", String(input.Weight)).withName("Weight");
|
|
9456
|
+
bodyNode.addChildNode(node);
|
|
9457
|
+
}
|
|
9458
|
+
if (input.SessionStickinessConfig != null) {
|
|
9459
|
+
const node = serializeAws_restXmlSessionStickinessConfig(input.SessionStickinessConfig, context).withName("SessionStickinessConfig");
|
|
9460
|
+
bodyNode.addChildNode(node);
|
|
9461
|
+
}
|
|
9462
|
+
return bodyNode;
|
|
9463
|
+
};
|
|
8805
9464
|
const serializeAws_restXmlCookieNameList = (input, context) => {
|
|
8806
9465
|
return input
|
|
8807
9466
|
.filter((e) => e != null)
|
|
@@ -10246,6 +10905,18 @@ const serializeAws_restXmlS3OriginConfig = (input, context) => {
|
|
|
10246
10905
|
}
|
|
10247
10906
|
return bodyNode;
|
|
10248
10907
|
};
|
|
10908
|
+
const serializeAws_restXmlSessionStickinessConfig = (input, context) => {
|
|
10909
|
+
const bodyNode = new __XmlNode("SessionStickinessConfig");
|
|
10910
|
+
if (input.IdleTTL != null) {
|
|
10911
|
+
const node = __XmlNode.of("integer", String(input.IdleTTL)).withName("IdleTTL");
|
|
10912
|
+
bodyNode.addChildNode(node);
|
|
10913
|
+
}
|
|
10914
|
+
if (input.MaximumTTL != null) {
|
|
10915
|
+
const node = __XmlNode.of("integer", String(input.MaximumTTL)).withName("MaximumTTL");
|
|
10916
|
+
bodyNode.addChildNode(node);
|
|
10917
|
+
}
|
|
10918
|
+
return bodyNode;
|
|
10919
|
+
};
|
|
10249
10920
|
const serializeAws_restXmlSslProtocolsList = (input, context) => {
|
|
10250
10921
|
return input
|
|
10251
10922
|
.filter((e) => e != null)
|
|
@@ -10254,6 +10925,30 @@ const serializeAws_restXmlSslProtocolsList = (input, context) => {
|
|
|
10254
10925
|
return node.withName("SslProtocol");
|
|
10255
10926
|
});
|
|
10256
10927
|
};
|
|
10928
|
+
const serializeAws_restXmlStagingDistributionDnsNameList = (input, context) => {
|
|
10929
|
+
return input
|
|
10930
|
+
.filter((e) => e != null)
|
|
10931
|
+
.map((entry) => {
|
|
10932
|
+
const node = __XmlNode.of("string", entry);
|
|
10933
|
+
return node.withName("DnsName");
|
|
10934
|
+
});
|
|
10935
|
+
};
|
|
10936
|
+
const serializeAws_restXmlStagingDistributionDnsNames = (input, context) => {
|
|
10937
|
+
const bodyNode = new __XmlNode("StagingDistributionDnsNames");
|
|
10938
|
+
if (input.Quantity != null) {
|
|
10939
|
+
const node = __XmlNode.of("integer", String(input.Quantity)).withName("Quantity");
|
|
10940
|
+
bodyNode.addChildNode(node);
|
|
10941
|
+
}
|
|
10942
|
+
if (input.Items != null) {
|
|
10943
|
+
const nodes = serializeAws_restXmlStagingDistributionDnsNameList(input.Items, context);
|
|
10944
|
+
const containerNode = new __XmlNode("Items");
|
|
10945
|
+
nodes.map((node) => {
|
|
10946
|
+
containerNode.addChildNode(node);
|
|
10947
|
+
});
|
|
10948
|
+
bodyNode.addChildNode(containerNode);
|
|
10949
|
+
}
|
|
10950
|
+
return bodyNode;
|
|
10951
|
+
};
|
|
10257
10952
|
const serializeAws_restXmlStatusCodeList = (input, context) => {
|
|
10258
10953
|
return input
|
|
10259
10954
|
.filter((e) => e != null)
|
|
@@ -10394,6 +11089,22 @@ const serializeAws_restXmlTags = (input, context) => {
|
|
|
10394
11089
|
}
|
|
10395
11090
|
return bodyNode;
|
|
10396
11091
|
};
|
|
11092
|
+
const serializeAws_restXmlTrafficConfig = (input, context) => {
|
|
11093
|
+
const bodyNode = new __XmlNode("TrafficConfig");
|
|
11094
|
+
if (input.SingleWeightConfig != null) {
|
|
11095
|
+
const node = serializeAws_restXmlContinuousDeploymentSingleWeightConfig(input.SingleWeightConfig, context).withName("SingleWeightConfig");
|
|
11096
|
+
bodyNode.addChildNode(node);
|
|
11097
|
+
}
|
|
11098
|
+
if (input.SingleHeaderConfig != null) {
|
|
11099
|
+
const node = serializeAws_restXmlContinuousDeploymentSingleHeaderConfig(input.SingleHeaderConfig, context).withName("SingleHeaderConfig");
|
|
11100
|
+
bodyNode.addChildNode(node);
|
|
11101
|
+
}
|
|
11102
|
+
if (input.Type != null) {
|
|
11103
|
+
const node = __XmlNode.of("ContinuousDeploymentPolicyType", input.Type).withName("Type");
|
|
11104
|
+
bodyNode.addChildNode(node);
|
|
11105
|
+
}
|
|
11106
|
+
return bodyNode;
|
|
11107
|
+
};
|
|
10397
11108
|
const serializeAws_restXmlTrustedKeyGroupIdList = (input, context) => {
|
|
10398
11109
|
return input
|
|
10399
11110
|
.filter((e) => e != null)
|
|
@@ -11052,6 +11763,106 @@ const deserializeAws_restXmlContentTypeProfiles = (output, context) => {
|
|
|
11052
11763
|
}
|
|
11053
11764
|
return contents;
|
|
11054
11765
|
};
|
|
11766
|
+
const deserializeAws_restXmlContinuousDeploymentPolicy = (output, context) => {
|
|
11767
|
+
const contents = {
|
|
11768
|
+
Id: undefined,
|
|
11769
|
+
LastModifiedTime: undefined,
|
|
11770
|
+
ContinuousDeploymentPolicyConfig: undefined,
|
|
11771
|
+
};
|
|
11772
|
+
if (output["Id"] !== undefined) {
|
|
11773
|
+
contents.Id = __expectString(output["Id"]);
|
|
11774
|
+
}
|
|
11775
|
+
if (output["LastModifiedTime"] !== undefined) {
|
|
11776
|
+
contents.LastModifiedTime = __expectNonNull(__parseRfc3339DateTime(output["LastModifiedTime"]));
|
|
11777
|
+
}
|
|
11778
|
+
if (output["ContinuousDeploymentPolicyConfig"] !== undefined) {
|
|
11779
|
+
contents.ContinuousDeploymentPolicyConfig = deserializeAws_restXmlContinuousDeploymentPolicyConfig(output["ContinuousDeploymentPolicyConfig"], context);
|
|
11780
|
+
}
|
|
11781
|
+
return contents;
|
|
11782
|
+
};
|
|
11783
|
+
const deserializeAws_restXmlContinuousDeploymentPolicyConfig = (output, context) => {
|
|
11784
|
+
const contents = {
|
|
11785
|
+
StagingDistributionDnsNames: undefined,
|
|
11786
|
+
Enabled: undefined,
|
|
11787
|
+
TrafficConfig: undefined,
|
|
11788
|
+
};
|
|
11789
|
+
if (output["StagingDistributionDnsNames"] !== undefined) {
|
|
11790
|
+
contents.StagingDistributionDnsNames = deserializeAws_restXmlStagingDistributionDnsNames(output["StagingDistributionDnsNames"], context);
|
|
11791
|
+
}
|
|
11792
|
+
if (output["Enabled"] !== undefined) {
|
|
11793
|
+
contents.Enabled = __parseBoolean(output["Enabled"]);
|
|
11794
|
+
}
|
|
11795
|
+
if (output["TrafficConfig"] !== undefined) {
|
|
11796
|
+
contents.TrafficConfig = deserializeAws_restXmlTrafficConfig(output["TrafficConfig"], context);
|
|
11797
|
+
}
|
|
11798
|
+
return contents;
|
|
11799
|
+
};
|
|
11800
|
+
const deserializeAws_restXmlContinuousDeploymentPolicyList = (output, context) => {
|
|
11801
|
+
const contents = {
|
|
11802
|
+
NextMarker: undefined,
|
|
11803
|
+
MaxItems: undefined,
|
|
11804
|
+
Quantity: undefined,
|
|
11805
|
+
Items: undefined,
|
|
11806
|
+
};
|
|
11807
|
+
if (output["NextMarker"] !== undefined) {
|
|
11808
|
+
contents.NextMarker = __expectString(output["NextMarker"]);
|
|
11809
|
+
}
|
|
11810
|
+
if (output["MaxItems"] !== undefined) {
|
|
11811
|
+
contents.MaxItems = __strictParseInt32(output["MaxItems"]);
|
|
11812
|
+
}
|
|
11813
|
+
if (output["Quantity"] !== undefined) {
|
|
11814
|
+
contents.Quantity = __strictParseInt32(output["Quantity"]);
|
|
11815
|
+
}
|
|
11816
|
+
if (output.Items === "") {
|
|
11817
|
+
contents.Items = [];
|
|
11818
|
+
}
|
|
11819
|
+
else if (output["Items"] !== undefined && output["Items"]["ContinuousDeploymentPolicySummary"] !== undefined) {
|
|
11820
|
+
contents.Items = deserializeAws_restXmlContinuousDeploymentPolicySummaryList(__getArrayIfSingleItem(output["Items"]["ContinuousDeploymentPolicySummary"]), context);
|
|
11821
|
+
}
|
|
11822
|
+
return contents;
|
|
11823
|
+
};
|
|
11824
|
+
const deserializeAws_restXmlContinuousDeploymentPolicySummary = (output, context) => {
|
|
11825
|
+
const contents = {
|
|
11826
|
+
ContinuousDeploymentPolicy: undefined,
|
|
11827
|
+
};
|
|
11828
|
+
if (output["ContinuousDeploymentPolicy"] !== undefined) {
|
|
11829
|
+
contents.ContinuousDeploymentPolicy = deserializeAws_restXmlContinuousDeploymentPolicy(output["ContinuousDeploymentPolicy"], context);
|
|
11830
|
+
}
|
|
11831
|
+
return contents;
|
|
11832
|
+
};
|
|
11833
|
+
const deserializeAws_restXmlContinuousDeploymentPolicySummaryList = (output, context) => {
|
|
11834
|
+
return (output || [])
|
|
11835
|
+
.filter((e) => e != null)
|
|
11836
|
+
.map((entry) => {
|
|
11837
|
+
return deserializeAws_restXmlContinuousDeploymentPolicySummary(entry, context);
|
|
11838
|
+
});
|
|
11839
|
+
};
|
|
11840
|
+
const deserializeAws_restXmlContinuousDeploymentSingleHeaderConfig = (output, context) => {
|
|
11841
|
+
const contents = {
|
|
11842
|
+
Header: undefined,
|
|
11843
|
+
Value: undefined,
|
|
11844
|
+
};
|
|
11845
|
+
if (output["Header"] !== undefined) {
|
|
11846
|
+
contents.Header = __expectString(output["Header"]);
|
|
11847
|
+
}
|
|
11848
|
+
if (output["Value"] !== undefined) {
|
|
11849
|
+
contents.Value = __expectString(output["Value"]);
|
|
11850
|
+
}
|
|
11851
|
+
return contents;
|
|
11852
|
+
};
|
|
11853
|
+
const deserializeAws_restXmlContinuousDeploymentSingleWeightConfig = (output, context) => {
|
|
11854
|
+
const contents = {
|
|
11855
|
+
Weight: undefined,
|
|
11856
|
+
SessionStickinessConfig: undefined,
|
|
11857
|
+
};
|
|
11858
|
+
if (output["Weight"] !== undefined) {
|
|
11859
|
+
contents.Weight = __strictParseFloat(output["Weight"]);
|
|
11860
|
+
}
|
|
11861
|
+
if (output["SessionStickinessConfig"] !== undefined) {
|
|
11862
|
+
contents.SessionStickinessConfig = deserializeAws_restXmlSessionStickinessConfig(output["SessionStickinessConfig"], context);
|
|
11863
|
+
}
|
|
11864
|
+
return contents;
|
|
11865
|
+
};
|
|
11055
11866
|
const deserializeAws_restXmlCookieNameList = (output, context) => {
|
|
11056
11867
|
return (output || [])
|
|
11057
11868
|
.filter((e) => e != null)
|
|
@@ -13459,6 +14270,19 @@ const deserializeAws_restXmlS3OriginConfig = (output, context) => {
|
|
|
13459
14270
|
}
|
|
13460
14271
|
return contents;
|
|
13461
14272
|
};
|
|
14273
|
+
const deserializeAws_restXmlSessionStickinessConfig = (output, context) => {
|
|
14274
|
+
const contents = {
|
|
14275
|
+
IdleTTL: undefined,
|
|
14276
|
+
MaximumTTL: undefined,
|
|
14277
|
+
};
|
|
14278
|
+
if (output["IdleTTL"] !== undefined) {
|
|
14279
|
+
contents.IdleTTL = __strictParseInt32(output["IdleTTL"]);
|
|
14280
|
+
}
|
|
14281
|
+
if (output["MaximumTTL"] !== undefined) {
|
|
14282
|
+
contents.MaximumTTL = __strictParseInt32(output["MaximumTTL"]);
|
|
14283
|
+
}
|
|
14284
|
+
return contents;
|
|
14285
|
+
};
|
|
13462
14286
|
const deserializeAws_restXmlSigner = (output, context) => {
|
|
13463
14287
|
const contents = {
|
|
13464
14288
|
AwsAccountNumber: undefined,
|
|
@@ -13486,6 +14310,29 @@ const deserializeAws_restXmlSslProtocolsList = (output, context) => {
|
|
|
13486
14310
|
return __expectString(entry);
|
|
13487
14311
|
});
|
|
13488
14312
|
};
|
|
14313
|
+
const deserializeAws_restXmlStagingDistributionDnsNameList = (output, context) => {
|
|
14314
|
+
return (output || [])
|
|
14315
|
+
.filter((e) => e != null)
|
|
14316
|
+
.map((entry) => {
|
|
14317
|
+
return __expectString(entry);
|
|
14318
|
+
});
|
|
14319
|
+
};
|
|
14320
|
+
const deserializeAws_restXmlStagingDistributionDnsNames = (output, context) => {
|
|
14321
|
+
const contents = {
|
|
14322
|
+
Quantity: undefined,
|
|
14323
|
+
Items: undefined,
|
|
14324
|
+
};
|
|
14325
|
+
if (output["Quantity"] !== undefined) {
|
|
14326
|
+
contents.Quantity = __strictParseInt32(output["Quantity"]);
|
|
14327
|
+
}
|
|
14328
|
+
if (output.Items === "") {
|
|
14329
|
+
contents.Items = [];
|
|
14330
|
+
}
|
|
14331
|
+
else if (output["Items"] !== undefined && output["Items"]["DnsName"] !== undefined) {
|
|
14332
|
+
contents.Items = deserializeAws_restXmlStagingDistributionDnsNameList(__getArrayIfSingleItem(output["Items"]["DnsName"]), context);
|
|
14333
|
+
}
|
|
14334
|
+
return contents;
|
|
14335
|
+
};
|
|
13489
14336
|
const deserializeAws_restXmlStatusCodeList = (output, context) => {
|
|
13490
14337
|
return (output || [])
|
|
13491
14338
|
.filter((e) => e != null)
|
|
@@ -13744,6 +14591,23 @@ const deserializeAws_restXmlTestResult = (output, context) => {
|
|
|
13744
14591
|
}
|
|
13745
14592
|
return contents;
|
|
13746
14593
|
};
|
|
14594
|
+
const deserializeAws_restXmlTrafficConfig = (output, context) => {
|
|
14595
|
+
const contents = {
|
|
14596
|
+
SingleWeightConfig: undefined,
|
|
14597
|
+
SingleHeaderConfig: undefined,
|
|
14598
|
+
Type: undefined,
|
|
14599
|
+
};
|
|
14600
|
+
if (output["SingleWeightConfig"] !== undefined) {
|
|
14601
|
+
contents.SingleWeightConfig = deserializeAws_restXmlContinuousDeploymentSingleWeightConfig(output["SingleWeightConfig"], context);
|
|
14602
|
+
}
|
|
14603
|
+
if (output["SingleHeaderConfig"] !== undefined) {
|
|
14604
|
+
contents.SingleHeaderConfig = deserializeAws_restXmlContinuousDeploymentSingleHeaderConfig(output["SingleHeaderConfig"], context);
|
|
14605
|
+
}
|
|
14606
|
+
if (output["Type"] !== undefined) {
|
|
14607
|
+
contents.Type = __expectString(output["Type"]);
|
|
14608
|
+
}
|
|
14609
|
+
return contents;
|
|
14610
|
+
};
|
|
13747
14611
|
const deserializeAws_restXmlTrustedKeyGroupIdList = (output, context) => {
|
|
13748
14612
|
return (output || [])
|
|
13749
14613
|
.filter((e) => e != null)
|