@aws-sdk/client-cloudfront 3.212.0 → 3.214.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/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/package.json +2 -2
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.
|
|
6
|
-
exports.
|
|
3
|
+
exports.serializeAws_restXmlGetInvalidationCommand = exports.serializeAws_restXmlGetFunctionCommand = exports.serializeAws_restXmlGetFieldLevelEncryptionProfileConfigCommand = exports.serializeAws_restXmlGetFieldLevelEncryptionProfileCommand = exports.serializeAws_restXmlGetFieldLevelEncryptionConfigCommand = exports.serializeAws_restXmlGetFieldLevelEncryptionCommand = exports.serializeAws_restXmlGetDistributionConfigCommand = exports.serializeAws_restXmlGetDistributionCommand = exports.serializeAws_restXmlGetContinuousDeploymentPolicyConfigCommand = exports.serializeAws_restXmlGetContinuousDeploymentPolicyCommand = exports.serializeAws_restXmlGetCloudFrontOriginAccessIdentityConfigCommand = exports.serializeAws_restXmlGetCloudFrontOriginAccessIdentityCommand = exports.serializeAws_restXmlGetCachePolicyConfigCommand = exports.serializeAws_restXmlGetCachePolicyCommand = exports.serializeAws_restXmlDescribeFunctionCommand = exports.serializeAws_restXmlDeleteStreamingDistributionCommand = exports.serializeAws_restXmlDeleteResponseHeadersPolicyCommand = exports.serializeAws_restXmlDeleteRealtimeLogConfigCommand = exports.serializeAws_restXmlDeletePublicKeyCommand = exports.serializeAws_restXmlDeleteOriginRequestPolicyCommand = exports.serializeAws_restXmlDeleteOriginAccessControlCommand = exports.serializeAws_restXmlDeleteMonitoringSubscriptionCommand = exports.serializeAws_restXmlDeleteKeyGroupCommand = exports.serializeAws_restXmlDeleteFunctionCommand = exports.serializeAws_restXmlDeleteFieldLevelEncryptionProfileCommand = exports.serializeAws_restXmlDeleteFieldLevelEncryptionConfigCommand = exports.serializeAws_restXmlDeleteDistributionCommand = exports.serializeAws_restXmlDeleteContinuousDeploymentPolicyCommand = exports.serializeAws_restXmlDeleteCloudFrontOriginAccessIdentityCommand = exports.serializeAws_restXmlDeleteCachePolicyCommand = exports.serializeAws_restXmlCreateStreamingDistributionWithTagsCommand = exports.serializeAws_restXmlCreateStreamingDistributionCommand = exports.serializeAws_restXmlCreateResponseHeadersPolicyCommand = exports.serializeAws_restXmlCreateRealtimeLogConfigCommand = exports.serializeAws_restXmlCreatePublicKeyCommand = exports.serializeAws_restXmlCreateOriginRequestPolicyCommand = exports.serializeAws_restXmlCreateOriginAccessControlCommand = exports.serializeAws_restXmlCreateMonitoringSubscriptionCommand = exports.serializeAws_restXmlCreateKeyGroupCommand = exports.serializeAws_restXmlCreateInvalidationCommand = exports.serializeAws_restXmlCreateFunctionCommand = exports.serializeAws_restXmlCreateFieldLevelEncryptionProfileCommand = exports.serializeAws_restXmlCreateFieldLevelEncryptionConfigCommand = exports.serializeAws_restXmlCreateDistributionWithTagsCommand = exports.serializeAws_restXmlCreateDistributionCommand = exports.serializeAws_restXmlCreateContinuousDeploymentPolicyCommand = exports.serializeAws_restXmlCreateCloudFrontOriginAccessIdentityCommand = exports.serializeAws_restXmlCreateCachePolicyCommand = exports.serializeAws_restXmlCopyDistributionCommand = exports.serializeAws_restXmlAssociateAliasCommand = void 0;
|
|
4
|
+
exports.serializeAws_restXmlUpdateOriginAccessControlCommand = exports.serializeAws_restXmlUpdateKeyGroupCommand = exports.serializeAws_restXmlUpdateFunctionCommand = exports.serializeAws_restXmlUpdateFieldLevelEncryptionProfileCommand = exports.serializeAws_restXmlUpdateFieldLevelEncryptionConfigCommand = exports.serializeAws_restXmlUpdateDistributionCommand = exports.serializeAws_restXmlUpdateContinuousDeploymentPolicyCommand = exports.serializeAws_restXmlUpdateCloudFrontOriginAccessIdentityCommand = exports.serializeAws_restXmlUpdateCachePolicyCommand = exports.serializeAws_restXmlUntagResourceCommand = exports.serializeAws_restXmlTestFunctionCommand = exports.serializeAws_restXmlTagResourceCommand = exports.serializeAws_restXmlPublishFunctionCommand = exports.serializeAws_restXmlListTagsForResourceCommand = exports.serializeAws_restXmlListStreamingDistributionsCommand = exports.serializeAws_restXmlListResponseHeadersPoliciesCommand = exports.serializeAws_restXmlListRealtimeLogConfigsCommand = exports.serializeAws_restXmlListPublicKeysCommand = exports.serializeAws_restXmlListOriginRequestPoliciesCommand = exports.serializeAws_restXmlListOriginAccessControlsCommand = exports.serializeAws_restXmlListKeyGroupsCommand = exports.serializeAws_restXmlListInvalidationsCommand = exports.serializeAws_restXmlListFunctionsCommand = exports.serializeAws_restXmlListFieldLevelEncryptionProfilesCommand = exports.serializeAws_restXmlListFieldLevelEncryptionConfigsCommand = exports.serializeAws_restXmlListDistributionsByWebACLIdCommand = exports.serializeAws_restXmlListDistributionsByResponseHeadersPolicyIdCommand = exports.serializeAws_restXmlListDistributionsByRealtimeLogConfigCommand = exports.serializeAws_restXmlListDistributionsByOriginRequestPolicyIdCommand = exports.serializeAws_restXmlListDistributionsByKeyGroupCommand = exports.serializeAws_restXmlListDistributionsByCachePolicyIdCommand = exports.serializeAws_restXmlListDistributionsCommand = exports.serializeAws_restXmlListContinuousDeploymentPoliciesCommand = exports.serializeAws_restXmlListConflictingAliasesCommand = exports.serializeAws_restXmlListCloudFrontOriginAccessIdentitiesCommand = exports.serializeAws_restXmlListCachePoliciesCommand = exports.serializeAws_restXmlGetStreamingDistributionConfigCommand = exports.serializeAws_restXmlGetStreamingDistributionCommand = exports.serializeAws_restXmlGetResponseHeadersPolicyConfigCommand = exports.serializeAws_restXmlGetResponseHeadersPolicyCommand = exports.serializeAws_restXmlGetRealtimeLogConfigCommand = exports.serializeAws_restXmlGetPublicKeyConfigCommand = exports.serializeAws_restXmlGetPublicKeyCommand = exports.serializeAws_restXmlGetOriginRequestPolicyConfigCommand = exports.serializeAws_restXmlGetOriginRequestPolicyCommand = exports.serializeAws_restXmlGetOriginAccessControlConfigCommand = exports.serializeAws_restXmlGetOriginAccessControlCommand = exports.serializeAws_restXmlGetMonitoringSubscriptionCommand = exports.serializeAws_restXmlGetKeyGroupConfigCommand = exports.serializeAws_restXmlGetKeyGroupCommand = void 0;
|
|
5
|
+
exports.deserializeAws_restXmlGetFieldLevelEncryptionCommand = exports.deserializeAws_restXmlGetDistributionConfigCommand = exports.deserializeAws_restXmlGetDistributionCommand = exports.deserializeAws_restXmlGetContinuousDeploymentPolicyConfigCommand = exports.deserializeAws_restXmlGetContinuousDeploymentPolicyCommand = exports.deserializeAws_restXmlGetCloudFrontOriginAccessIdentityConfigCommand = exports.deserializeAws_restXmlGetCloudFrontOriginAccessIdentityCommand = exports.deserializeAws_restXmlGetCachePolicyConfigCommand = exports.deserializeAws_restXmlGetCachePolicyCommand = exports.deserializeAws_restXmlDescribeFunctionCommand = exports.deserializeAws_restXmlDeleteStreamingDistributionCommand = exports.deserializeAws_restXmlDeleteResponseHeadersPolicyCommand = exports.deserializeAws_restXmlDeleteRealtimeLogConfigCommand = exports.deserializeAws_restXmlDeletePublicKeyCommand = exports.deserializeAws_restXmlDeleteOriginRequestPolicyCommand = exports.deserializeAws_restXmlDeleteOriginAccessControlCommand = exports.deserializeAws_restXmlDeleteMonitoringSubscriptionCommand = exports.deserializeAws_restXmlDeleteKeyGroupCommand = exports.deserializeAws_restXmlDeleteFunctionCommand = exports.deserializeAws_restXmlDeleteFieldLevelEncryptionProfileCommand = exports.deserializeAws_restXmlDeleteFieldLevelEncryptionConfigCommand = exports.deserializeAws_restXmlDeleteDistributionCommand = exports.deserializeAws_restXmlDeleteContinuousDeploymentPolicyCommand = exports.deserializeAws_restXmlDeleteCloudFrontOriginAccessIdentityCommand = exports.deserializeAws_restXmlDeleteCachePolicyCommand = exports.deserializeAws_restXmlCreateStreamingDistributionWithTagsCommand = exports.deserializeAws_restXmlCreateStreamingDistributionCommand = exports.deserializeAws_restXmlCreateResponseHeadersPolicyCommand = exports.deserializeAws_restXmlCreateRealtimeLogConfigCommand = exports.deserializeAws_restXmlCreatePublicKeyCommand = exports.deserializeAws_restXmlCreateOriginRequestPolicyCommand = exports.deserializeAws_restXmlCreateOriginAccessControlCommand = exports.deserializeAws_restXmlCreateMonitoringSubscriptionCommand = exports.deserializeAws_restXmlCreateKeyGroupCommand = exports.deserializeAws_restXmlCreateInvalidationCommand = exports.deserializeAws_restXmlCreateFunctionCommand = exports.deserializeAws_restXmlCreateFieldLevelEncryptionProfileCommand = exports.deserializeAws_restXmlCreateFieldLevelEncryptionConfigCommand = exports.deserializeAws_restXmlCreateDistributionWithTagsCommand = exports.deserializeAws_restXmlCreateDistributionCommand = exports.deserializeAws_restXmlCreateContinuousDeploymentPolicyCommand = exports.deserializeAws_restXmlCreateCloudFrontOriginAccessIdentityCommand = exports.deserializeAws_restXmlCreateCachePolicyCommand = exports.deserializeAws_restXmlCopyDistributionCommand = exports.deserializeAws_restXmlAssociateAliasCommand = exports.serializeAws_restXmlUpdateStreamingDistributionCommand = exports.serializeAws_restXmlUpdateResponseHeadersPolicyCommand = exports.serializeAws_restXmlUpdateRealtimeLogConfigCommand = exports.serializeAws_restXmlUpdatePublicKeyCommand = exports.serializeAws_restXmlUpdateOriginRequestPolicyCommand = void 0;
|
|
6
|
+
exports.deserializeAws_restXmlUpdateDistributionCommand = exports.deserializeAws_restXmlUpdateContinuousDeploymentPolicyCommand = exports.deserializeAws_restXmlUpdateCloudFrontOriginAccessIdentityCommand = exports.deserializeAws_restXmlUpdateCachePolicyCommand = exports.deserializeAws_restXmlUntagResourceCommand = exports.deserializeAws_restXmlTestFunctionCommand = exports.deserializeAws_restXmlTagResourceCommand = exports.deserializeAws_restXmlPublishFunctionCommand = exports.deserializeAws_restXmlListTagsForResourceCommand = exports.deserializeAws_restXmlListStreamingDistributionsCommand = exports.deserializeAws_restXmlListResponseHeadersPoliciesCommand = exports.deserializeAws_restXmlListRealtimeLogConfigsCommand = exports.deserializeAws_restXmlListPublicKeysCommand = exports.deserializeAws_restXmlListOriginRequestPoliciesCommand = exports.deserializeAws_restXmlListOriginAccessControlsCommand = exports.deserializeAws_restXmlListKeyGroupsCommand = exports.deserializeAws_restXmlListInvalidationsCommand = exports.deserializeAws_restXmlListFunctionsCommand = exports.deserializeAws_restXmlListFieldLevelEncryptionProfilesCommand = exports.deserializeAws_restXmlListFieldLevelEncryptionConfigsCommand = exports.deserializeAws_restXmlListDistributionsByWebACLIdCommand = exports.deserializeAws_restXmlListDistributionsByResponseHeadersPolicyIdCommand = exports.deserializeAws_restXmlListDistributionsByRealtimeLogConfigCommand = exports.deserializeAws_restXmlListDistributionsByOriginRequestPolicyIdCommand = exports.deserializeAws_restXmlListDistributionsByKeyGroupCommand = exports.deserializeAws_restXmlListDistributionsByCachePolicyIdCommand = exports.deserializeAws_restXmlListDistributionsCommand = exports.deserializeAws_restXmlListContinuousDeploymentPoliciesCommand = exports.deserializeAws_restXmlListConflictingAliasesCommand = exports.deserializeAws_restXmlListCloudFrontOriginAccessIdentitiesCommand = exports.deserializeAws_restXmlListCachePoliciesCommand = exports.deserializeAws_restXmlGetStreamingDistributionConfigCommand = exports.deserializeAws_restXmlGetStreamingDistributionCommand = exports.deserializeAws_restXmlGetResponseHeadersPolicyConfigCommand = exports.deserializeAws_restXmlGetResponseHeadersPolicyCommand = exports.deserializeAws_restXmlGetRealtimeLogConfigCommand = exports.deserializeAws_restXmlGetPublicKeyConfigCommand = exports.deserializeAws_restXmlGetPublicKeyCommand = exports.deserializeAws_restXmlGetOriginRequestPolicyConfigCommand = exports.deserializeAws_restXmlGetOriginRequestPolicyCommand = exports.deserializeAws_restXmlGetOriginAccessControlConfigCommand = exports.deserializeAws_restXmlGetOriginAccessControlCommand = exports.deserializeAws_restXmlGetMonitoringSubscriptionCommand = exports.deserializeAws_restXmlGetKeyGroupConfigCommand = exports.deserializeAws_restXmlGetKeyGroupCommand = exports.deserializeAws_restXmlGetInvalidationCommand = exports.deserializeAws_restXmlGetFunctionCommand = exports.deserializeAws_restXmlGetFieldLevelEncryptionProfileConfigCommand = exports.deserializeAws_restXmlGetFieldLevelEncryptionProfileCommand = exports.deserializeAws_restXmlGetFieldLevelEncryptionConfigCommand = void 0;
|
|
7
|
+
exports.deserializeAws_restXmlUpdateStreamingDistributionCommand = exports.deserializeAws_restXmlUpdateResponseHeadersPolicyCommand = exports.deserializeAws_restXmlUpdateRealtimeLogConfigCommand = exports.deserializeAws_restXmlUpdatePublicKeyCommand = exports.deserializeAws_restXmlUpdateOriginRequestPolicyCommand = exports.deserializeAws_restXmlUpdateOriginAccessControlCommand = exports.deserializeAws_restXmlUpdateKeyGroupCommand = exports.deserializeAws_restXmlUpdateFunctionCommand = exports.deserializeAws_restXmlUpdateFieldLevelEncryptionProfileCommand = exports.deserializeAws_restXmlUpdateFieldLevelEncryptionConfigCommand = void 0;
|
|
7
8
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
8
9
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
9
10
|
const xml_builder_1 = require("@aws-sdk/xml-builder");
|
|
@@ -33,6 +34,36 @@ const serializeAws_restXmlAssociateAliasCommand = async (input, context) => {
|
|
|
33
34
|
});
|
|
34
35
|
};
|
|
35
36
|
exports.serializeAws_restXmlAssociateAliasCommand = serializeAws_restXmlAssociateAliasCommand;
|
|
37
|
+
const serializeAws_restXmlCopyDistributionCommand = async (input, context) => {
|
|
38
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
39
|
+
const headers = map({}, isSerializableHeaderValue, {
|
|
40
|
+
"content-type": "application/xml",
|
|
41
|
+
staging: [() => isSerializableHeaderValue(input.Staging), () => input.Staging.toString()],
|
|
42
|
+
"if-match": input.IfMatch,
|
|
43
|
+
});
|
|
44
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
45
|
+
"/2020-05-31/distribution/{PrimaryDistributionId}/copy";
|
|
46
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "PrimaryDistributionId", () => input.PrimaryDistributionId, "{PrimaryDistributionId}", false);
|
|
47
|
+
let body;
|
|
48
|
+
body = '<?xml version="1.0" encoding="UTF-8"?>';
|
|
49
|
+
const bodyNode = new xml_builder_1.XmlNode("CopyDistributionRequest");
|
|
50
|
+
bodyNode.addAttribute("xmlns", "http://cloudfront.amazonaws.com/doc/2020-05-31/");
|
|
51
|
+
if (input.CallerReference !== undefined) {
|
|
52
|
+
const node = xml_builder_1.XmlNode.of("string", input.CallerReference).withName("CallerReference");
|
|
53
|
+
bodyNode.addChildNode(node);
|
|
54
|
+
}
|
|
55
|
+
body += bodyNode.toString();
|
|
56
|
+
return new protocol_http_1.HttpRequest({
|
|
57
|
+
protocol,
|
|
58
|
+
hostname,
|
|
59
|
+
port,
|
|
60
|
+
method: "POST",
|
|
61
|
+
headers,
|
|
62
|
+
path: resolvedPath,
|
|
63
|
+
body,
|
|
64
|
+
});
|
|
65
|
+
};
|
|
66
|
+
exports.serializeAws_restXmlCopyDistributionCommand = serializeAws_restXmlCopyDistributionCommand;
|
|
36
67
|
const serializeAws_restXmlCreateCachePolicyCommand = async (input, context) => {
|
|
37
68
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
38
69
|
const headers = {
|
|
@@ -90,6 +121,34 @@ const serializeAws_restXmlCreateCloudFrontOriginAccessIdentityCommand = async (i
|
|
|
90
121
|
});
|
|
91
122
|
};
|
|
92
123
|
exports.serializeAws_restXmlCreateCloudFrontOriginAccessIdentityCommand = serializeAws_restXmlCreateCloudFrontOriginAccessIdentityCommand;
|
|
124
|
+
const serializeAws_restXmlCreateContinuousDeploymentPolicyCommand = async (input, context) => {
|
|
125
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
126
|
+
const headers = {
|
|
127
|
+
"content-type": "application/xml",
|
|
128
|
+
};
|
|
129
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/continuous-deployment-policy";
|
|
130
|
+
let body;
|
|
131
|
+
if (input.ContinuousDeploymentPolicyConfig !== undefined) {
|
|
132
|
+
body = serializeAws_restXmlContinuousDeploymentPolicyConfig(input.ContinuousDeploymentPolicyConfig, context);
|
|
133
|
+
}
|
|
134
|
+
let contents;
|
|
135
|
+
if (input.ContinuousDeploymentPolicyConfig !== undefined) {
|
|
136
|
+
contents = serializeAws_restXmlContinuousDeploymentPolicyConfig(input.ContinuousDeploymentPolicyConfig, context);
|
|
137
|
+
body = '<?xml version="1.0" encoding="UTF-8"?>';
|
|
138
|
+
contents.addAttribute("xmlns", "http://cloudfront.amazonaws.com/doc/2020-05-31/");
|
|
139
|
+
body += contents.toString();
|
|
140
|
+
}
|
|
141
|
+
return new protocol_http_1.HttpRequest({
|
|
142
|
+
protocol,
|
|
143
|
+
hostname,
|
|
144
|
+
port,
|
|
145
|
+
method: "POST",
|
|
146
|
+
headers,
|
|
147
|
+
path: resolvedPath,
|
|
148
|
+
body,
|
|
149
|
+
});
|
|
150
|
+
};
|
|
151
|
+
exports.serializeAws_restXmlCreateContinuousDeploymentPolicyCommand = serializeAws_restXmlCreateContinuousDeploymentPolicyCommand;
|
|
93
152
|
const serializeAws_restXmlCreateDistributionCommand = async (input, context) => {
|
|
94
153
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
95
154
|
const headers = {
|
|
@@ -586,6 +645,26 @@ const serializeAws_restXmlDeleteCloudFrontOriginAccessIdentityCommand = async (i
|
|
|
586
645
|
});
|
|
587
646
|
};
|
|
588
647
|
exports.serializeAws_restXmlDeleteCloudFrontOriginAccessIdentityCommand = serializeAws_restXmlDeleteCloudFrontOriginAccessIdentityCommand;
|
|
648
|
+
const serializeAws_restXmlDeleteContinuousDeploymentPolicyCommand = async (input, context) => {
|
|
649
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
650
|
+
const headers = map({}, isSerializableHeaderValue, {
|
|
651
|
+
"if-match": input.IfMatch,
|
|
652
|
+
});
|
|
653
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
654
|
+
"/2020-05-31/continuous-deployment-policy/{Id}";
|
|
655
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
|
|
656
|
+
let body;
|
|
657
|
+
return new protocol_http_1.HttpRequest({
|
|
658
|
+
protocol,
|
|
659
|
+
hostname,
|
|
660
|
+
port,
|
|
661
|
+
method: "DELETE",
|
|
662
|
+
headers,
|
|
663
|
+
path: resolvedPath,
|
|
664
|
+
body,
|
|
665
|
+
});
|
|
666
|
+
};
|
|
667
|
+
exports.serializeAws_restXmlDeleteContinuousDeploymentPolicyCommand = serializeAws_restXmlDeleteContinuousDeploymentPolicyCommand;
|
|
589
668
|
const serializeAws_restXmlDeleteDistributionCommand = async (input, context) => {
|
|
590
669
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
591
670
|
const headers = map({}, isSerializableHeaderValue, {
|
|
@@ -916,6 +995,42 @@ const serializeAws_restXmlGetCloudFrontOriginAccessIdentityConfigCommand = async
|
|
|
916
995
|
});
|
|
917
996
|
};
|
|
918
997
|
exports.serializeAws_restXmlGetCloudFrontOriginAccessIdentityConfigCommand = serializeAws_restXmlGetCloudFrontOriginAccessIdentityConfigCommand;
|
|
998
|
+
const serializeAws_restXmlGetContinuousDeploymentPolicyCommand = async (input, context) => {
|
|
999
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1000
|
+
const headers = {};
|
|
1001
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1002
|
+
"/2020-05-31/continuous-deployment-policy/{Id}";
|
|
1003
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
|
|
1004
|
+
let body;
|
|
1005
|
+
return new protocol_http_1.HttpRequest({
|
|
1006
|
+
protocol,
|
|
1007
|
+
hostname,
|
|
1008
|
+
port,
|
|
1009
|
+
method: "GET",
|
|
1010
|
+
headers,
|
|
1011
|
+
path: resolvedPath,
|
|
1012
|
+
body,
|
|
1013
|
+
});
|
|
1014
|
+
};
|
|
1015
|
+
exports.serializeAws_restXmlGetContinuousDeploymentPolicyCommand = serializeAws_restXmlGetContinuousDeploymentPolicyCommand;
|
|
1016
|
+
const serializeAws_restXmlGetContinuousDeploymentPolicyConfigCommand = async (input, context) => {
|
|
1017
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1018
|
+
const headers = {};
|
|
1019
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1020
|
+
"/2020-05-31/continuous-deployment-policy/{Id}/config";
|
|
1021
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
|
|
1022
|
+
let body;
|
|
1023
|
+
return new protocol_http_1.HttpRequest({
|
|
1024
|
+
protocol,
|
|
1025
|
+
hostname,
|
|
1026
|
+
port,
|
|
1027
|
+
method: "GET",
|
|
1028
|
+
headers,
|
|
1029
|
+
path: resolvedPath,
|
|
1030
|
+
body,
|
|
1031
|
+
});
|
|
1032
|
+
};
|
|
1033
|
+
exports.serializeAws_restXmlGetContinuousDeploymentPolicyConfigCommand = serializeAws_restXmlGetContinuousDeploymentPolicyConfigCommand;
|
|
919
1034
|
const serializeAws_restXmlGetDistributionCommand = async (input, context) => {
|
|
920
1035
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
921
1036
|
const headers = {};
|
|
@@ -1384,6 +1499,27 @@ const serializeAws_restXmlListConflictingAliasesCommand = async (input, context)
|
|
|
1384
1499
|
});
|
|
1385
1500
|
};
|
|
1386
1501
|
exports.serializeAws_restXmlListConflictingAliasesCommand = serializeAws_restXmlListConflictingAliasesCommand;
|
|
1502
|
+
const serializeAws_restXmlListContinuousDeploymentPoliciesCommand = async (input, context) => {
|
|
1503
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1504
|
+
const headers = {};
|
|
1505
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/continuous-deployment-policy";
|
|
1506
|
+
const query = map({
|
|
1507
|
+
Marker: [, input.Marker],
|
|
1508
|
+
MaxItems: [() => input.MaxItems !== void 0, () => input.MaxItems.toString()],
|
|
1509
|
+
});
|
|
1510
|
+
let body;
|
|
1511
|
+
return new protocol_http_1.HttpRequest({
|
|
1512
|
+
protocol,
|
|
1513
|
+
hostname,
|
|
1514
|
+
port,
|
|
1515
|
+
method: "GET",
|
|
1516
|
+
headers,
|
|
1517
|
+
path: resolvedPath,
|
|
1518
|
+
query,
|
|
1519
|
+
body,
|
|
1520
|
+
});
|
|
1521
|
+
};
|
|
1522
|
+
exports.serializeAws_restXmlListContinuousDeploymentPoliciesCommand = serializeAws_restXmlListContinuousDeploymentPoliciesCommand;
|
|
1387
1523
|
const serializeAws_restXmlListDistributionsCommand = async (input, context) => {
|
|
1388
1524
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1389
1525
|
const headers = {};
|
|
@@ -1994,6 +2130,37 @@ const serializeAws_restXmlUpdateCloudFrontOriginAccessIdentityCommand = async (i
|
|
|
1994
2130
|
});
|
|
1995
2131
|
};
|
|
1996
2132
|
exports.serializeAws_restXmlUpdateCloudFrontOriginAccessIdentityCommand = serializeAws_restXmlUpdateCloudFrontOriginAccessIdentityCommand;
|
|
2133
|
+
const serializeAws_restXmlUpdateContinuousDeploymentPolicyCommand = async (input, context) => {
|
|
2134
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2135
|
+
const headers = map({}, isSerializableHeaderValue, {
|
|
2136
|
+
"content-type": "application/xml",
|
|
2137
|
+
"if-match": input.IfMatch,
|
|
2138
|
+
});
|
|
2139
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
2140
|
+
"/2020-05-31/continuous-deployment-policy/{Id}";
|
|
2141
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
|
|
2142
|
+
let body;
|
|
2143
|
+
if (input.ContinuousDeploymentPolicyConfig !== undefined) {
|
|
2144
|
+
body = serializeAws_restXmlContinuousDeploymentPolicyConfig(input.ContinuousDeploymentPolicyConfig, context);
|
|
2145
|
+
}
|
|
2146
|
+
let contents;
|
|
2147
|
+
if (input.ContinuousDeploymentPolicyConfig !== undefined) {
|
|
2148
|
+
contents = serializeAws_restXmlContinuousDeploymentPolicyConfig(input.ContinuousDeploymentPolicyConfig, context);
|
|
2149
|
+
body = '<?xml version="1.0" encoding="UTF-8"?>';
|
|
2150
|
+
contents.addAttribute("xmlns", "http://cloudfront.amazonaws.com/doc/2020-05-31/");
|
|
2151
|
+
body += contents.toString();
|
|
2152
|
+
}
|
|
2153
|
+
return new protocol_http_1.HttpRequest({
|
|
2154
|
+
protocol,
|
|
2155
|
+
hostname,
|
|
2156
|
+
port,
|
|
2157
|
+
method: "PUT",
|
|
2158
|
+
headers,
|
|
2159
|
+
path: resolvedPath,
|
|
2160
|
+
body,
|
|
2161
|
+
});
|
|
2162
|
+
};
|
|
2163
|
+
exports.serializeAws_restXmlUpdateContinuousDeploymentPolicyCommand = serializeAws_restXmlUpdateContinuousDeploymentPolicyCommand;
|
|
1997
2164
|
const serializeAws_restXmlUpdateDistributionCommand = async (input, context) => {
|
|
1998
2165
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1999
2166
|
const headers = map({}, isSerializableHeaderValue, {
|
|
@@ -2393,6 +2560,226 @@ const deserializeAws_restXmlAssociateAliasCommandError = async (output, context)
|
|
|
2393
2560
|
});
|
|
2394
2561
|
}
|
|
2395
2562
|
};
|
|
2563
|
+
const deserializeAws_restXmlCopyDistributionCommand = async (output, context) => {
|
|
2564
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
2565
|
+
return deserializeAws_restXmlCopyDistributionCommandError(output, context);
|
|
2566
|
+
}
|
|
2567
|
+
const contents = map({
|
|
2568
|
+
$metadata: deserializeMetadata(output),
|
|
2569
|
+
Location: [, output.headers["location"]],
|
|
2570
|
+
ETag: [, output.headers["etag"]],
|
|
2571
|
+
});
|
|
2572
|
+
const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
|
|
2573
|
+
contents.Distribution = deserializeAws_restXmlDistribution(data, context);
|
|
2574
|
+
return contents;
|
|
2575
|
+
};
|
|
2576
|
+
exports.deserializeAws_restXmlCopyDistributionCommand = deserializeAws_restXmlCopyDistributionCommand;
|
|
2577
|
+
const deserializeAws_restXmlCopyDistributionCommandError = async (output, context) => {
|
|
2578
|
+
const parsedOutput = {
|
|
2579
|
+
...output,
|
|
2580
|
+
body: await parseErrorBody(output.body, context),
|
|
2581
|
+
};
|
|
2582
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
2583
|
+
switch (errorCode) {
|
|
2584
|
+
case "AccessDenied":
|
|
2585
|
+
case "com.amazonaws.cloudfront#AccessDenied":
|
|
2586
|
+
throw await deserializeAws_restXmlAccessDeniedResponse(parsedOutput, context);
|
|
2587
|
+
case "CNAMEAlreadyExists":
|
|
2588
|
+
case "com.amazonaws.cloudfront#CNAMEAlreadyExists":
|
|
2589
|
+
throw await deserializeAws_restXmlCNAMEAlreadyExistsResponse(parsedOutput, context);
|
|
2590
|
+
case "DistributionAlreadyExists":
|
|
2591
|
+
case "com.amazonaws.cloudfront#DistributionAlreadyExists":
|
|
2592
|
+
throw await deserializeAws_restXmlDistributionAlreadyExistsResponse(parsedOutput, context);
|
|
2593
|
+
case "IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior":
|
|
2594
|
+
case "com.amazonaws.cloudfront#IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior":
|
|
2595
|
+
throw await deserializeAws_restXmlIllegalFieldLevelEncryptionConfigAssociationWithCacheBehaviorResponse(parsedOutput, context);
|
|
2596
|
+
case "InconsistentQuantities":
|
|
2597
|
+
case "com.amazonaws.cloudfront#InconsistentQuantities":
|
|
2598
|
+
throw await deserializeAws_restXmlInconsistentQuantitiesResponse(parsedOutput, context);
|
|
2599
|
+
case "InvalidArgument":
|
|
2600
|
+
case "com.amazonaws.cloudfront#InvalidArgument":
|
|
2601
|
+
throw await deserializeAws_restXmlInvalidArgumentResponse(parsedOutput, context);
|
|
2602
|
+
case "InvalidDefaultRootObject":
|
|
2603
|
+
case "com.amazonaws.cloudfront#InvalidDefaultRootObject":
|
|
2604
|
+
throw await deserializeAws_restXmlInvalidDefaultRootObjectResponse(parsedOutput, context);
|
|
2605
|
+
case "InvalidErrorCode":
|
|
2606
|
+
case "com.amazonaws.cloudfront#InvalidErrorCode":
|
|
2607
|
+
throw await deserializeAws_restXmlInvalidErrorCodeResponse(parsedOutput, context);
|
|
2608
|
+
case "InvalidForwardCookies":
|
|
2609
|
+
case "com.amazonaws.cloudfront#InvalidForwardCookies":
|
|
2610
|
+
throw await deserializeAws_restXmlInvalidForwardCookiesResponse(parsedOutput, context);
|
|
2611
|
+
case "InvalidFunctionAssociation":
|
|
2612
|
+
case "com.amazonaws.cloudfront#InvalidFunctionAssociation":
|
|
2613
|
+
throw await deserializeAws_restXmlInvalidFunctionAssociationResponse(parsedOutput, context);
|
|
2614
|
+
case "InvalidGeoRestrictionParameter":
|
|
2615
|
+
case "com.amazonaws.cloudfront#InvalidGeoRestrictionParameter":
|
|
2616
|
+
throw await deserializeAws_restXmlInvalidGeoRestrictionParameterResponse(parsedOutput, context);
|
|
2617
|
+
case "InvalidHeadersForS3Origin":
|
|
2618
|
+
case "com.amazonaws.cloudfront#InvalidHeadersForS3Origin":
|
|
2619
|
+
throw await deserializeAws_restXmlInvalidHeadersForS3OriginResponse(parsedOutput, context);
|
|
2620
|
+
case "InvalidIfMatchVersion":
|
|
2621
|
+
case "com.amazonaws.cloudfront#InvalidIfMatchVersion":
|
|
2622
|
+
throw await deserializeAws_restXmlInvalidIfMatchVersionResponse(parsedOutput, context);
|
|
2623
|
+
case "InvalidLambdaFunctionAssociation":
|
|
2624
|
+
case "com.amazonaws.cloudfront#InvalidLambdaFunctionAssociation":
|
|
2625
|
+
throw await deserializeAws_restXmlInvalidLambdaFunctionAssociationResponse(parsedOutput, context);
|
|
2626
|
+
case "InvalidLocationCode":
|
|
2627
|
+
case "com.amazonaws.cloudfront#InvalidLocationCode":
|
|
2628
|
+
throw await deserializeAws_restXmlInvalidLocationCodeResponse(parsedOutput, context);
|
|
2629
|
+
case "InvalidMinimumProtocolVersion":
|
|
2630
|
+
case "com.amazonaws.cloudfront#InvalidMinimumProtocolVersion":
|
|
2631
|
+
throw await deserializeAws_restXmlInvalidMinimumProtocolVersionResponse(parsedOutput, context);
|
|
2632
|
+
case "InvalidOrigin":
|
|
2633
|
+
case "com.amazonaws.cloudfront#InvalidOrigin":
|
|
2634
|
+
throw await deserializeAws_restXmlInvalidOriginResponse(parsedOutput, context);
|
|
2635
|
+
case "InvalidOriginAccessControl":
|
|
2636
|
+
case "com.amazonaws.cloudfront#InvalidOriginAccessControl":
|
|
2637
|
+
throw await deserializeAws_restXmlInvalidOriginAccessControlResponse(parsedOutput, context);
|
|
2638
|
+
case "InvalidOriginAccessIdentity":
|
|
2639
|
+
case "com.amazonaws.cloudfront#InvalidOriginAccessIdentity":
|
|
2640
|
+
throw await deserializeAws_restXmlInvalidOriginAccessIdentityResponse(parsedOutput, context);
|
|
2641
|
+
case "InvalidOriginKeepaliveTimeout":
|
|
2642
|
+
case "com.amazonaws.cloudfront#InvalidOriginKeepaliveTimeout":
|
|
2643
|
+
throw await deserializeAws_restXmlInvalidOriginKeepaliveTimeoutResponse(parsedOutput, context);
|
|
2644
|
+
case "InvalidOriginReadTimeout":
|
|
2645
|
+
case "com.amazonaws.cloudfront#InvalidOriginReadTimeout":
|
|
2646
|
+
throw await deserializeAws_restXmlInvalidOriginReadTimeoutResponse(parsedOutput, context);
|
|
2647
|
+
case "InvalidProtocolSettings":
|
|
2648
|
+
case "com.amazonaws.cloudfront#InvalidProtocolSettings":
|
|
2649
|
+
throw await deserializeAws_restXmlInvalidProtocolSettingsResponse(parsedOutput, context);
|
|
2650
|
+
case "InvalidQueryStringParameters":
|
|
2651
|
+
case "com.amazonaws.cloudfront#InvalidQueryStringParameters":
|
|
2652
|
+
throw await deserializeAws_restXmlInvalidQueryStringParametersResponse(parsedOutput, context);
|
|
2653
|
+
case "InvalidRelativePath":
|
|
2654
|
+
case "com.amazonaws.cloudfront#InvalidRelativePath":
|
|
2655
|
+
throw await deserializeAws_restXmlInvalidRelativePathResponse(parsedOutput, context);
|
|
2656
|
+
case "InvalidRequiredProtocol":
|
|
2657
|
+
case "com.amazonaws.cloudfront#InvalidRequiredProtocol":
|
|
2658
|
+
throw await deserializeAws_restXmlInvalidRequiredProtocolResponse(parsedOutput, context);
|
|
2659
|
+
case "InvalidResponseCode":
|
|
2660
|
+
case "com.amazonaws.cloudfront#InvalidResponseCode":
|
|
2661
|
+
throw await deserializeAws_restXmlInvalidResponseCodeResponse(parsedOutput, context);
|
|
2662
|
+
case "InvalidTTLOrder":
|
|
2663
|
+
case "com.amazonaws.cloudfront#InvalidTTLOrder":
|
|
2664
|
+
throw await deserializeAws_restXmlInvalidTTLOrderResponse(parsedOutput, context);
|
|
2665
|
+
case "InvalidViewerCertificate":
|
|
2666
|
+
case "com.amazonaws.cloudfront#InvalidViewerCertificate":
|
|
2667
|
+
throw await deserializeAws_restXmlInvalidViewerCertificateResponse(parsedOutput, context);
|
|
2668
|
+
case "InvalidWebACLId":
|
|
2669
|
+
case "com.amazonaws.cloudfront#InvalidWebACLId":
|
|
2670
|
+
throw await deserializeAws_restXmlInvalidWebACLIdResponse(parsedOutput, context);
|
|
2671
|
+
case "MissingBody":
|
|
2672
|
+
case "com.amazonaws.cloudfront#MissingBody":
|
|
2673
|
+
throw await deserializeAws_restXmlMissingBodyResponse(parsedOutput, context);
|
|
2674
|
+
case "NoSuchCachePolicy":
|
|
2675
|
+
case "com.amazonaws.cloudfront#NoSuchCachePolicy":
|
|
2676
|
+
throw await deserializeAws_restXmlNoSuchCachePolicyResponse(parsedOutput, context);
|
|
2677
|
+
case "NoSuchDistribution":
|
|
2678
|
+
case "com.amazonaws.cloudfront#NoSuchDistribution":
|
|
2679
|
+
throw await deserializeAws_restXmlNoSuchDistributionResponse(parsedOutput, context);
|
|
2680
|
+
case "NoSuchFieldLevelEncryptionConfig":
|
|
2681
|
+
case "com.amazonaws.cloudfront#NoSuchFieldLevelEncryptionConfig":
|
|
2682
|
+
throw await deserializeAws_restXmlNoSuchFieldLevelEncryptionConfigResponse(parsedOutput, context);
|
|
2683
|
+
case "NoSuchOrigin":
|
|
2684
|
+
case "com.amazonaws.cloudfront#NoSuchOrigin":
|
|
2685
|
+
throw await deserializeAws_restXmlNoSuchOriginResponse(parsedOutput, context);
|
|
2686
|
+
case "NoSuchOriginRequestPolicy":
|
|
2687
|
+
case "com.amazonaws.cloudfront#NoSuchOriginRequestPolicy":
|
|
2688
|
+
throw await deserializeAws_restXmlNoSuchOriginRequestPolicyResponse(parsedOutput, context);
|
|
2689
|
+
case "NoSuchRealtimeLogConfig":
|
|
2690
|
+
case "com.amazonaws.cloudfront#NoSuchRealtimeLogConfig":
|
|
2691
|
+
throw await deserializeAws_restXmlNoSuchRealtimeLogConfigResponse(parsedOutput, context);
|
|
2692
|
+
case "NoSuchResponseHeadersPolicy":
|
|
2693
|
+
case "com.amazonaws.cloudfront#NoSuchResponseHeadersPolicy":
|
|
2694
|
+
throw await deserializeAws_restXmlNoSuchResponseHeadersPolicyResponse(parsedOutput, context);
|
|
2695
|
+
case "PreconditionFailed":
|
|
2696
|
+
case "com.amazonaws.cloudfront#PreconditionFailed":
|
|
2697
|
+
throw await deserializeAws_restXmlPreconditionFailedResponse(parsedOutput, context);
|
|
2698
|
+
case "RealtimeLogConfigOwnerMismatch":
|
|
2699
|
+
case "com.amazonaws.cloudfront#RealtimeLogConfigOwnerMismatch":
|
|
2700
|
+
throw await deserializeAws_restXmlRealtimeLogConfigOwnerMismatchResponse(parsedOutput, context);
|
|
2701
|
+
case "TooManyCacheBehaviors":
|
|
2702
|
+
case "com.amazonaws.cloudfront#TooManyCacheBehaviors":
|
|
2703
|
+
throw await deserializeAws_restXmlTooManyCacheBehaviorsResponse(parsedOutput, context);
|
|
2704
|
+
case "TooManyCertificates":
|
|
2705
|
+
case "com.amazonaws.cloudfront#TooManyCertificates":
|
|
2706
|
+
throw await deserializeAws_restXmlTooManyCertificatesResponse(parsedOutput, context);
|
|
2707
|
+
case "TooManyCookieNamesInWhiteList":
|
|
2708
|
+
case "com.amazonaws.cloudfront#TooManyCookieNamesInWhiteList":
|
|
2709
|
+
throw await deserializeAws_restXmlTooManyCookieNamesInWhiteListResponse(parsedOutput, context);
|
|
2710
|
+
case "TooManyDistributionCNAMEs":
|
|
2711
|
+
case "com.amazonaws.cloudfront#TooManyDistributionCNAMEs":
|
|
2712
|
+
throw await deserializeAws_restXmlTooManyDistributionCNAMEsResponse(parsedOutput, context);
|
|
2713
|
+
case "TooManyDistributions":
|
|
2714
|
+
case "com.amazonaws.cloudfront#TooManyDistributions":
|
|
2715
|
+
throw await deserializeAws_restXmlTooManyDistributionsResponse(parsedOutput, context);
|
|
2716
|
+
case "TooManyDistributionsAssociatedToCachePolicy":
|
|
2717
|
+
case "com.amazonaws.cloudfront#TooManyDistributionsAssociatedToCachePolicy":
|
|
2718
|
+
throw await deserializeAws_restXmlTooManyDistributionsAssociatedToCachePolicyResponse(parsedOutput, context);
|
|
2719
|
+
case "TooManyDistributionsAssociatedToFieldLevelEncryptionConfig":
|
|
2720
|
+
case "com.amazonaws.cloudfront#TooManyDistributionsAssociatedToFieldLevelEncryptionConfig":
|
|
2721
|
+
throw await deserializeAws_restXmlTooManyDistributionsAssociatedToFieldLevelEncryptionConfigResponse(parsedOutput, context);
|
|
2722
|
+
case "TooManyDistributionsAssociatedToKeyGroup":
|
|
2723
|
+
case "com.amazonaws.cloudfront#TooManyDistributionsAssociatedToKeyGroup":
|
|
2724
|
+
throw await deserializeAws_restXmlTooManyDistributionsAssociatedToKeyGroupResponse(parsedOutput, context);
|
|
2725
|
+
case "TooManyDistributionsAssociatedToOriginRequestPolicy":
|
|
2726
|
+
case "com.amazonaws.cloudfront#TooManyDistributionsAssociatedToOriginRequestPolicy":
|
|
2727
|
+
throw await deserializeAws_restXmlTooManyDistributionsAssociatedToOriginRequestPolicyResponse(parsedOutput, context);
|
|
2728
|
+
case "TooManyDistributionsAssociatedToResponseHeadersPolicy":
|
|
2729
|
+
case "com.amazonaws.cloudfront#TooManyDistributionsAssociatedToResponseHeadersPolicy":
|
|
2730
|
+
throw await deserializeAws_restXmlTooManyDistributionsAssociatedToResponseHeadersPolicyResponse(parsedOutput, context);
|
|
2731
|
+
case "TooManyDistributionsWithFunctionAssociations":
|
|
2732
|
+
case "com.amazonaws.cloudfront#TooManyDistributionsWithFunctionAssociations":
|
|
2733
|
+
throw await deserializeAws_restXmlTooManyDistributionsWithFunctionAssociationsResponse(parsedOutput, context);
|
|
2734
|
+
case "TooManyDistributionsWithLambdaAssociations":
|
|
2735
|
+
case "com.amazonaws.cloudfront#TooManyDistributionsWithLambdaAssociations":
|
|
2736
|
+
throw await deserializeAws_restXmlTooManyDistributionsWithLambdaAssociationsResponse(parsedOutput, context);
|
|
2737
|
+
case "TooManyDistributionsWithSingleFunctionARN":
|
|
2738
|
+
case "com.amazonaws.cloudfront#TooManyDistributionsWithSingleFunctionARN":
|
|
2739
|
+
throw await deserializeAws_restXmlTooManyDistributionsWithSingleFunctionARNResponse(parsedOutput, context);
|
|
2740
|
+
case "TooManyFunctionAssociations":
|
|
2741
|
+
case "com.amazonaws.cloudfront#TooManyFunctionAssociations":
|
|
2742
|
+
throw await deserializeAws_restXmlTooManyFunctionAssociationsResponse(parsedOutput, context);
|
|
2743
|
+
case "TooManyHeadersInForwardedValues":
|
|
2744
|
+
case "com.amazonaws.cloudfront#TooManyHeadersInForwardedValues":
|
|
2745
|
+
throw await deserializeAws_restXmlTooManyHeadersInForwardedValuesResponse(parsedOutput, context);
|
|
2746
|
+
case "TooManyKeyGroupsAssociatedToDistribution":
|
|
2747
|
+
case "com.amazonaws.cloudfront#TooManyKeyGroupsAssociatedToDistribution":
|
|
2748
|
+
throw await deserializeAws_restXmlTooManyKeyGroupsAssociatedToDistributionResponse(parsedOutput, context);
|
|
2749
|
+
case "TooManyLambdaFunctionAssociations":
|
|
2750
|
+
case "com.amazonaws.cloudfront#TooManyLambdaFunctionAssociations":
|
|
2751
|
+
throw await deserializeAws_restXmlTooManyLambdaFunctionAssociationsResponse(parsedOutput, context);
|
|
2752
|
+
case "TooManyOriginCustomHeaders":
|
|
2753
|
+
case "com.amazonaws.cloudfront#TooManyOriginCustomHeaders":
|
|
2754
|
+
throw await deserializeAws_restXmlTooManyOriginCustomHeadersResponse(parsedOutput, context);
|
|
2755
|
+
case "TooManyOriginGroupsPerDistribution":
|
|
2756
|
+
case "com.amazonaws.cloudfront#TooManyOriginGroupsPerDistribution":
|
|
2757
|
+
throw await deserializeAws_restXmlTooManyOriginGroupsPerDistributionResponse(parsedOutput, context);
|
|
2758
|
+
case "TooManyOrigins":
|
|
2759
|
+
case "com.amazonaws.cloudfront#TooManyOrigins":
|
|
2760
|
+
throw await deserializeAws_restXmlTooManyOriginsResponse(parsedOutput, context);
|
|
2761
|
+
case "TooManyQueryStringParameters":
|
|
2762
|
+
case "com.amazonaws.cloudfront#TooManyQueryStringParameters":
|
|
2763
|
+
throw await deserializeAws_restXmlTooManyQueryStringParametersResponse(parsedOutput, context);
|
|
2764
|
+
case "TooManyTrustedSigners":
|
|
2765
|
+
case "com.amazonaws.cloudfront#TooManyTrustedSigners":
|
|
2766
|
+
throw await deserializeAws_restXmlTooManyTrustedSignersResponse(parsedOutput, context);
|
|
2767
|
+
case "TrustedKeyGroupDoesNotExist":
|
|
2768
|
+
case "com.amazonaws.cloudfront#TrustedKeyGroupDoesNotExist":
|
|
2769
|
+
throw await deserializeAws_restXmlTrustedKeyGroupDoesNotExistResponse(parsedOutput, context);
|
|
2770
|
+
case "TrustedSignerDoesNotExist":
|
|
2771
|
+
case "com.amazonaws.cloudfront#TrustedSignerDoesNotExist":
|
|
2772
|
+
throw await deserializeAws_restXmlTrustedSignerDoesNotExistResponse(parsedOutput, context);
|
|
2773
|
+
default:
|
|
2774
|
+
const parsedBody = parsedOutput.body;
|
|
2775
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2776
|
+
output,
|
|
2777
|
+
parsedBody: parsedBody.Error,
|
|
2778
|
+
exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
|
|
2779
|
+
errorCode,
|
|
2780
|
+
});
|
|
2781
|
+
}
|
|
2782
|
+
};
|
|
2396
2783
|
const deserializeAws_restXmlCreateCachePolicyCommand = async (output, context) => {
|
|
2397
2784
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
2398
2785
|
return deserializeAws_restXmlCreateCachePolicyCommandError(output, context);
|
|
@@ -2494,6 +2881,49 @@ const deserializeAws_restXmlCreateCloudFrontOriginAccessIdentityCommandError = a
|
|
|
2494
2881
|
});
|
|
2495
2882
|
}
|
|
2496
2883
|
};
|
|
2884
|
+
const deserializeAws_restXmlCreateContinuousDeploymentPolicyCommand = async (output, context) => {
|
|
2885
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
2886
|
+
return deserializeAws_restXmlCreateContinuousDeploymentPolicyCommandError(output, context);
|
|
2887
|
+
}
|
|
2888
|
+
const contents = map({
|
|
2889
|
+
$metadata: deserializeMetadata(output),
|
|
2890
|
+
Location: [, output.headers["location"]],
|
|
2891
|
+
ETag: [, output.headers["etag"]],
|
|
2892
|
+
});
|
|
2893
|
+
const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
|
|
2894
|
+
contents.ContinuousDeploymentPolicy = deserializeAws_restXmlContinuousDeploymentPolicy(data, context);
|
|
2895
|
+
return contents;
|
|
2896
|
+
};
|
|
2897
|
+
exports.deserializeAws_restXmlCreateContinuousDeploymentPolicyCommand = deserializeAws_restXmlCreateContinuousDeploymentPolicyCommand;
|
|
2898
|
+
const deserializeAws_restXmlCreateContinuousDeploymentPolicyCommandError = async (output, context) => {
|
|
2899
|
+
const parsedOutput = {
|
|
2900
|
+
...output,
|
|
2901
|
+
body: await parseErrorBody(output.body, context),
|
|
2902
|
+
};
|
|
2903
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
2904
|
+
switch (errorCode) {
|
|
2905
|
+
case "AccessDenied":
|
|
2906
|
+
case "com.amazonaws.cloudfront#AccessDenied":
|
|
2907
|
+
throw await deserializeAws_restXmlAccessDeniedResponse(parsedOutput, context);
|
|
2908
|
+
case "InconsistentQuantities":
|
|
2909
|
+
case "com.amazonaws.cloudfront#InconsistentQuantities":
|
|
2910
|
+
throw await deserializeAws_restXmlInconsistentQuantitiesResponse(parsedOutput, context);
|
|
2911
|
+
case "InvalidArgument":
|
|
2912
|
+
case "com.amazonaws.cloudfront#InvalidArgument":
|
|
2913
|
+
throw await deserializeAws_restXmlInvalidArgumentResponse(parsedOutput, context);
|
|
2914
|
+
case "StagingDistributionInUse":
|
|
2915
|
+
case "com.amazonaws.cloudfront#StagingDistributionInUse":
|
|
2916
|
+
throw await deserializeAws_restXmlStagingDistributionInUseResponse(parsedOutput, context);
|
|
2917
|
+
default:
|
|
2918
|
+
const parsedBody = parsedOutput.body;
|
|
2919
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2920
|
+
output,
|
|
2921
|
+
parsedBody: parsedBody.Error,
|
|
2922
|
+
exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
|
|
2923
|
+
errorCode,
|
|
2924
|
+
});
|
|
2925
|
+
}
|
|
2926
|
+
};
|
|
2497
2927
|
const deserializeAws_restXmlCreateDistributionCommand = async (output, context) => {
|
|
2498
2928
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
2499
2929
|
return deserializeAws_restXmlCreateDistributionCommandError(output, context);
|
|
@@ -3684,6 +4114,46 @@ const deserializeAws_restXmlDeleteCloudFrontOriginAccessIdentityCommandError = a
|
|
|
3684
4114
|
});
|
|
3685
4115
|
}
|
|
3686
4116
|
};
|
|
4117
|
+
const deserializeAws_restXmlDeleteContinuousDeploymentPolicyCommand = async (output, context) => {
|
|
4118
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
4119
|
+
return deserializeAws_restXmlDeleteContinuousDeploymentPolicyCommandError(output, context);
|
|
4120
|
+
}
|
|
4121
|
+
const contents = map({
|
|
4122
|
+
$metadata: deserializeMetadata(output),
|
|
4123
|
+
});
|
|
4124
|
+
await collectBody(output.body, context);
|
|
4125
|
+
return contents;
|
|
4126
|
+
};
|
|
4127
|
+
exports.deserializeAws_restXmlDeleteContinuousDeploymentPolicyCommand = deserializeAws_restXmlDeleteContinuousDeploymentPolicyCommand;
|
|
4128
|
+
const deserializeAws_restXmlDeleteContinuousDeploymentPolicyCommandError = async (output, context) => {
|
|
4129
|
+
const parsedOutput = {
|
|
4130
|
+
...output,
|
|
4131
|
+
body: await parseErrorBody(output.body, context),
|
|
4132
|
+
};
|
|
4133
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4134
|
+
switch (errorCode) {
|
|
4135
|
+
case "AccessDenied":
|
|
4136
|
+
case "com.amazonaws.cloudfront#AccessDenied":
|
|
4137
|
+
throw await deserializeAws_restXmlAccessDeniedResponse(parsedOutput, context);
|
|
4138
|
+
case "InvalidArgument":
|
|
4139
|
+
case "com.amazonaws.cloudfront#InvalidArgument":
|
|
4140
|
+
throw await deserializeAws_restXmlInvalidArgumentResponse(parsedOutput, context);
|
|
4141
|
+
case "InvalidIfMatchVersion":
|
|
4142
|
+
case "com.amazonaws.cloudfront#InvalidIfMatchVersion":
|
|
4143
|
+
throw await deserializeAws_restXmlInvalidIfMatchVersionResponse(parsedOutput, context);
|
|
4144
|
+
case "PreconditionFailed":
|
|
4145
|
+
case "com.amazonaws.cloudfront#PreconditionFailed":
|
|
4146
|
+
throw await deserializeAws_restXmlPreconditionFailedResponse(parsedOutput, context);
|
|
4147
|
+
default:
|
|
4148
|
+
const parsedBody = parsedOutput.body;
|
|
4149
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4150
|
+
output,
|
|
4151
|
+
parsedBody: parsedBody.Error,
|
|
4152
|
+
exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
|
|
4153
|
+
errorCode,
|
|
4154
|
+
});
|
|
4155
|
+
}
|
|
4156
|
+
};
|
|
3687
4157
|
const deserializeAws_restXmlDeleteDistributionCommand = async (output, context) => {
|
|
3688
4158
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
3689
4159
|
return deserializeAws_restXmlDeleteDistributionCommandError(output, context);
|
|
@@ -4341,20 +4811,89 @@ const deserializeAws_restXmlGetCloudFrontOriginAccessIdentityCommandError = asyn
|
|
|
4341
4811
|
});
|
|
4342
4812
|
}
|
|
4343
4813
|
};
|
|
4344
|
-
const deserializeAws_restXmlGetCloudFrontOriginAccessIdentityConfigCommand = async (output, context) => {
|
|
4814
|
+
const deserializeAws_restXmlGetCloudFrontOriginAccessIdentityConfigCommand = async (output, context) => {
|
|
4815
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4816
|
+
return deserializeAws_restXmlGetCloudFrontOriginAccessIdentityConfigCommandError(output, context);
|
|
4817
|
+
}
|
|
4818
|
+
const contents = map({
|
|
4819
|
+
$metadata: deserializeMetadata(output),
|
|
4820
|
+
ETag: [, output.headers["etag"]],
|
|
4821
|
+
});
|
|
4822
|
+
const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
|
|
4823
|
+
contents.CloudFrontOriginAccessIdentityConfig = deserializeAws_restXmlCloudFrontOriginAccessIdentityConfig(data, context);
|
|
4824
|
+
return contents;
|
|
4825
|
+
};
|
|
4826
|
+
exports.deserializeAws_restXmlGetCloudFrontOriginAccessIdentityConfigCommand = deserializeAws_restXmlGetCloudFrontOriginAccessIdentityConfigCommand;
|
|
4827
|
+
const deserializeAws_restXmlGetCloudFrontOriginAccessIdentityConfigCommandError = async (output, context) => {
|
|
4828
|
+
const parsedOutput = {
|
|
4829
|
+
...output,
|
|
4830
|
+
body: await parseErrorBody(output.body, context),
|
|
4831
|
+
};
|
|
4832
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4833
|
+
switch (errorCode) {
|
|
4834
|
+
case "AccessDenied":
|
|
4835
|
+
case "com.amazonaws.cloudfront#AccessDenied":
|
|
4836
|
+
throw await deserializeAws_restXmlAccessDeniedResponse(parsedOutput, context);
|
|
4837
|
+
case "NoSuchCloudFrontOriginAccessIdentity":
|
|
4838
|
+
case "com.amazonaws.cloudfront#NoSuchCloudFrontOriginAccessIdentity":
|
|
4839
|
+
throw await deserializeAws_restXmlNoSuchCloudFrontOriginAccessIdentityResponse(parsedOutput, context);
|
|
4840
|
+
default:
|
|
4841
|
+
const parsedBody = parsedOutput.body;
|
|
4842
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4843
|
+
output,
|
|
4844
|
+
parsedBody: parsedBody.Error,
|
|
4845
|
+
exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
|
|
4846
|
+
errorCode,
|
|
4847
|
+
});
|
|
4848
|
+
}
|
|
4849
|
+
};
|
|
4850
|
+
const deserializeAws_restXmlGetContinuousDeploymentPolicyCommand = async (output, context) => {
|
|
4851
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4852
|
+
return deserializeAws_restXmlGetContinuousDeploymentPolicyCommandError(output, context);
|
|
4853
|
+
}
|
|
4854
|
+
const contents = map({
|
|
4855
|
+
$metadata: deserializeMetadata(output),
|
|
4856
|
+
ETag: [, output.headers["etag"]],
|
|
4857
|
+
});
|
|
4858
|
+
const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
|
|
4859
|
+
contents.ContinuousDeploymentPolicy = deserializeAws_restXmlContinuousDeploymentPolicy(data, context);
|
|
4860
|
+
return contents;
|
|
4861
|
+
};
|
|
4862
|
+
exports.deserializeAws_restXmlGetContinuousDeploymentPolicyCommand = deserializeAws_restXmlGetContinuousDeploymentPolicyCommand;
|
|
4863
|
+
const deserializeAws_restXmlGetContinuousDeploymentPolicyCommandError = async (output, context) => {
|
|
4864
|
+
const parsedOutput = {
|
|
4865
|
+
...output,
|
|
4866
|
+
body: await parseErrorBody(output.body, context),
|
|
4867
|
+
};
|
|
4868
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4869
|
+
switch (errorCode) {
|
|
4870
|
+
case "AccessDenied":
|
|
4871
|
+
case "com.amazonaws.cloudfront#AccessDenied":
|
|
4872
|
+
throw await deserializeAws_restXmlAccessDeniedResponse(parsedOutput, context);
|
|
4873
|
+
default:
|
|
4874
|
+
const parsedBody = parsedOutput.body;
|
|
4875
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4876
|
+
output,
|
|
4877
|
+
parsedBody: parsedBody.Error,
|
|
4878
|
+
exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
|
|
4879
|
+
errorCode,
|
|
4880
|
+
});
|
|
4881
|
+
}
|
|
4882
|
+
};
|
|
4883
|
+
const deserializeAws_restXmlGetContinuousDeploymentPolicyConfigCommand = async (output, context) => {
|
|
4345
4884
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4346
|
-
return
|
|
4885
|
+
return deserializeAws_restXmlGetContinuousDeploymentPolicyConfigCommandError(output, context);
|
|
4347
4886
|
}
|
|
4348
4887
|
const contents = map({
|
|
4349
4888
|
$metadata: deserializeMetadata(output),
|
|
4350
4889
|
ETag: [, output.headers["etag"]],
|
|
4351
4890
|
});
|
|
4352
4891
|
const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
|
|
4353
|
-
contents.
|
|
4892
|
+
contents.ContinuousDeploymentPolicyConfig = deserializeAws_restXmlContinuousDeploymentPolicyConfig(data, context);
|
|
4354
4893
|
return contents;
|
|
4355
4894
|
};
|
|
4356
|
-
exports.
|
|
4357
|
-
const
|
|
4895
|
+
exports.deserializeAws_restXmlGetContinuousDeploymentPolicyConfigCommand = deserializeAws_restXmlGetContinuousDeploymentPolicyConfigCommand;
|
|
4896
|
+
const deserializeAws_restXmlGetContinuousDeploymentPolicyConfigCommandError = async (output, context) => {
|
|
4358
4897
|
const parsedOutput = {
|
|
4359
4898
|
...output,
|
|
4360
4899
|
body: await parseErrorBody(output.body, context),
|
|
@@ -4364,9 +4903,6 @@ const deserializeAws_restXmlGetCloudFrontOriginAccessIdentityConfigCommandError
|
|
|
4364
4903
|
case "AccessDenied":
|
|
4365
4904
|
case "com.amazonaws.cloudfront#AccessDenied":
|
|
4366
4905
|
throw await deserializeAws_restXmlAccessDeniedResponse(parsedOutput, context);
|
|
4367
|
-
case "NoSuchCloudFrontOriginAccessIdentity":
|
|
4368
|
-
case "com.amazonaws.cloudfront#NoSuchCloudFrontOriginAccessIdentity":
|
|
4369
|
-
throw await deserializeAws_restXmlNoSuchCloudFrontOriginAccessIdentityResponse(parsedOutput, context);
|
|
4370
4906
|
default:
|
|
4371
4907
|
const parsedBody = parsedOutput.body;
|
|
4372
4908
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -5280,6 +5816,41 @@ const deserializeAws_restXmlListConflictingAliasesCommandError = async (output,
|
|
|
5280
5816
|
});
|
|
5281
5817
|
}
|
|
5282
5818
|
};
|
|
5819
|
+
const deserializeAws_restXmlListContinuousDeploymentPoliciesCommand = async (output, context) => {
|
|
5820
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5821
|
+
return deserializeAws_restXmlListContinuousDeploymentPoliciesCommandError(output, context);
|
|
5822
|
+
}
|
|
5823
|
+
const contents = map({
|
|
5824
|
+
$metadata: deserializeMetadata(output),
|
|
5825
|
+
});
|
|
5826
|
+
const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
|
|
5827
|
+
contents.ContinuousDeploymentPolicyList = deserializeAws_restXmlContinuousDeploymentPolicyList(data, context);
|
|
5828
|
+
return contents;
|
|
5829
|
+
};
|
|
5830
|
+
exports.deserializeAws_restXmlListContinuousDeploymentPoliciesCommand = deserializeAws_restXmlListContinuousDeploymentPoliciesCommand;
|
|
5831
|
+
const deserializeAws_restXmlListContinuousDeploymentPoliciesCommandError = async (output, context) => {
|
|
5832
|
+
const parsedOutput = {
|
|
5833
|
+
...output,
|
|
5834
|
+
body: await parseErrorBody(output.body, context),
|
|
5835
|
+
};
|
|
5836
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5837
|
+
switch (errorCode) {
|
|
5838
|
+
case "AccessDenied":
|
|
5839
|
+
case "com.amazonaws.cloudfront#AccessDenied":
|
|
5840
|
+
throw await deserializeAws_restXmlAccessDeniedResponse(parsedOutput, context);
|
|
5841
|
+
case "InvalidArgument":
|
|
5842
|
+
case "com.amazonaws.cloudfront#InvalidArgument":
|
|
5843
|
+
throw await deserializeAws_restXmlInvalidArgumentResponse(parsedOutput, context);
|
|
5844
|
+
default:
|
|
5845
|
+
const parsedBody = parsedOutput.body;
|
|
5846
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
5847
|
+
output,
|
|
5848
|
+
parsedBody: parsedBody.Error,
|
|
5849
|
+
exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
|
|
5850
|
+
errorCode,
|
|
5851
|
+
});
|
|
5852
|
+
}
|
|
5853
|
+
};
|
|
5283
5854
|
const deserializeAws_restXmlListDistributionsCommand = async (output, context) => {
|
|
5284
5855
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5285
5856
|
return deserializeAws_restXmlListDistributionsCommandError(output, context);
|
|
@@ -6233,6 +6804,54 @@ const deserializeAws_restXmlUpdateCloudFrontOriginAccessIdentityCommandError = a
|
|
|
6233
6804
|
});
|
|
6234
6805
|
}
|
|
6235
6806
|
};
|
|
6807
|
+
const deserializeAws_restXmlUpdateContinuousDeploymentPolicyCommand = async (output, context) => {
|
|
6808
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6809
|
+
return deserializeAws_restXmlUpdateContinuousDeploymentPolicyCommandError(output, context);
|
|
6810
|
+
}
|
|
6811
|
+
const contents = map({
|
|
6812
|
+
$metadata: deserializeMetadata(output),
|
|
6813
|
+
ETag: [, output.headers["etag"]],
|
|
6814
|
+
});
|
|
6815
|
+
const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
|
|
6816
|
+
contents.ContinuousDeploymentPolicy = deserializeAws_restXmlContinuousDeploymentPolicy(data, context);
|
|
6817
|
+
return contents;
|
|
6818
|
+
};
|
|
6819
|
+
exports.deserializeAws_restXmlUpdateContinuousDeploymentPolicyCommand = deserializeAws_restXmlUpdateContinuousDeploymentPolicyCommand;
|
|
6820
|
+
const deserializeAws_restXmlUpdateContinuousDeploymentPolicyCommandError = async (output, context) => {
|
|
6821
|
+
const parsedOutput = {
|
|
6822
|
+
...output,
|
|
6823
|
+
body: await parseErrorBody(output.body, context),
|
|
6824
|
+
};
|
|
6825
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
6826
|
+
switch (errorCode) {
|
|
6827
|
+
case "AccessDenied":
|
|
6828
|
+
case "com.amazonaws.cloudfront#AccessDenied":
|
|
6829
|
+
throw await deserializeAws_restXmlAccessDeniedResponse(parsedOutput, context);
|
|
6830
|
+
case "InconsistentQuantities":
|
|
6831
|
+
case "com.amazonaws.cloudfront#InconsistentQuantities":
|
|
6832
|
+
throw await deserializeAws_restXmlInconsistentQuantitiesResponse(parsedOutput, context);
|
|
6833
|
+
case "InvalidArgument":
|
|
6834
|
+
case "com.amazonaws.cloudfront#InvalidArgument":
|
|
6835
|
+
throw await deserializeAws_restXmlInvalidArgumentResponse(parsedOutput, context);
|
|
6836
|
+
case "InvalidIfMatchVersion":
|
|
6837
|
+
case "com.amazonaws.cloudfront#InvalidIfMatchVersion":
|
|
6838
|
+
throw await deserializeAws_restXmlInvalidIfMatchVersionResponse(parsedOutput, context);
|
|
6839
|
+
case "PreconditionFailed":
|
|
6840
|
+
case "com.amazonaws.cloudfront#PreconditionFailed":
|
|
6841
|
+
throw await deserializeAws_restXmlPreconditionFailedResponse(parsedOutput, context);
|
|
6842
|
+
case "StagingDistributionInUse":
|
|
6843
|
+
case "com.amazonaws.cloudfront#StagingDistributionInUse":
|
|
6844
|
+
throw await deserializeAws_restXmlStagingDistributionInUseResponse(parsedOutput, context);
|
|
6845
|
+
default:
|
|
6846
|
+
const parsedBody = parsedOutput.body;
|
|
6847
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
6848
|
+
output,
|
|
6849
|
+
parsedBody: parsedBody.Error,
|
|
6850
|
+
exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
|
|
6851
|
+
errorCode,
|
|
6852
|
+
});
|
|
6853
|
+
}
|
|
6854
|
+
};
|
|
6236
6855
|
const deserializeAws_restXmlUpdateDistributionCommand = async (output, context) => {
|
|
6237
6856
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6238
6857
|
return deserializeAws_restXmlUpdateDistributionCommandError(output, context);
|
|
@@ -6370,6 +6989,9 @@ const deserializeAws_restXmlUpdateDistributionCommandError = async (output, cont
|
|
|
6370
6989
|
case "RealtimeLogConfigOwnerMismatch":
|
|
6371
6990
|
case "com.amazonaws.cloudfront#RealtimeLogConfigOwnerMismatch":
|
|
6372
6991
|
throw await deserializeAws_restXmlRealtimeLogConfigOwnerMismatchResponse(parsedOutput, context);
|
|
6992
|
+
case "StagingDistributionInUse":
|
|
6993
|
+
case "com.amazonaws.cloudfront#StagingDistributionInUse":
|
|
6994
|
+
throw await deserializeAws_restXmlStagingDistributionInUseResponse(parsedOutput, context);
|
|
6373
6995
|
case "TooManyCacheBehaviors":
|
|
6374
6996
|
case "com.amazonaws.cloudfront#TooManyCacheBehaviors":
|
|
6375
6997
|
throw await deserializeAws_restXmlTooManyCacheBehaviorsResponse(parsedOutput, context);
|
|
@@ -7234,7 +7856,7 @@ const deserializeAws_restXmlIllegalDeleteResponse = async (parsedOutput, context
|
|
|
7234
7856
|
if (data["Message"] !== undefined) {
|
|
7235
7857
|
contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
|
|
7236
7858
|
}
|
|
7237
|
-
const exception = new
|
|
7859
|
+
const exception = new models_1_1.IllegalDelete({
|
|
7238
7860
|
$metadata: deserializeMetadata(parsedOutput),
|
|
7239
7861
|
...contents,
|
|
7240
7862
|
});
|
|
@@ -7996,13 +8618,25 @@ const deserializeAws_restXmlResponseHeadersPolicyInUseResponse = async (parsedOu
|
|
|
7996
8618
|
});
|
|
7997
8619
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
|
|
7998
8620
|
};
|
|
8621
|
+
const deserializeAws_restXmlStagingDistributionInUseResponse = async (parsedOutput, context) => {
|
|
8622
|
+
const contents = map({});
|
|
8623
|
+
const data = parsedOutput.body.Error;
|
|
8624
|
+
if (data["Message"] !== undefined) {
|
|
8625
|
+
contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
|
|
8626
|
+
}
|
|
8627
|
+
const exception = new models_0_1.StagingDistributionInUse({
|
|
8628
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
8629
|
+
...contents,
|
|
8630
|
+
});
|
|
8631
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
|
|
8632
|
+
};
|
|
7999
8633
|
const deserializeAws_restXmlStreamingDistributionAlreadyExistsResponse = async (parsedOutput, context) => {
|
|
8000
8634
|
const contents = map({});
|
|
8001
8635
|
const data = parsedOutput.body.Error;
|
|
8002
8636
|
if (data["Message"] !== undefined) {
|
|
8003
8637
|
contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
|
|
8004
8638
|
}
|
|
8005
|
-
const exception = new
|
|
8639
|
+
const exception = new models_1_1.StreamingDistributionAlreadyExists({
|
|
8006
8640
|
$metadata: deserializeMetadata(parsedOutput),
|
|
8007
8641
|
...contents,
|
|
8008
8642
|
});
|
|
@@ -8602,7 +9236,7 @@ const deserializeAws_restXmlTooManyStreamingDistributionCNAMEsResponse = async (
|
|
|
8602
9236
|
if (data["Message"] !== undefined) {
|
|
8603
9237
|
contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
|
|
8604
9238
|
}
|
|
8605
|
-
const exception = new
|
|
9239
|
+
const exception = new models_1_1.TooManyStreamingDistributionCNAMEs({
|
|
8606
9240
|
$metadata: deserializeMetadata(parsedOutput),
|
|
8607
9241
|
...contents,
|
|
8608
9242
|
});
|
|
@@ -8614,7 +9248,7 @@ const deserializeAws_restXmlTooManyStreamingDistributionsResponse = async (parse
|
|
|
8614
9248
|
if (data["Message"] !== undefined) {
|
|
8615
9249
|
contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
|
|
8616
9250
|
}
|
|
8617
|
-
const exception = new
|
|
9251
|
+
const exception = new models_1_1.TooManyStreamingDistributions({
|
|
8618
9252
|
$metadata: deserializeMetadata(parsedOutput),
|
|
8619
9253
|
...contents,
|
|
8620
9254
|
});
|
|
@@ -9004,6 +9638,46 @@ const serializeAws_restXmlContentTypeProfiles = (input, context) => {
|
|
|
9004
9638
|
}
|
|
9005
9639
|
return bodyNode;
|
|
9006
9640
|
};
|
|
9641
|
+
const serializeAws_restXmlContinuousDeploymentPolicyConfig = (input, context) => {
|
|
9642
|
+
const bodyNode = new xml_builder_1.XmlNode("ContinuousDeploymentPolicyConfig");
|
|
9643
|
+
if (input.StagingDistributionDnsNames != null) {
|
|
9644
|
+
const node = serializeAws_restXmlStagingDistributionDnsNames(input.StagingDistributionDnsNames, context).withName("StagingDistributionDnsNames");
|
|
9645
|
+
bodyNode.addChildNode(node);
|
|
9646
|
+
}
|
|
9647
|
+
if (input.Enabled != null) {
|
|
9648
|
+
const node = xml_builder_1.XmlNode.of("boolean", String(input.Enabled)).withName("Enabled");
|
|
9649
|
+
bodyNode.addChildNode(node);
|
|
9650
|
+
}
|
|
9651
|
+
if (input.TrafficConfig != null) {
|
|
9652
|
+
const node = serializeAws_restXmlTrafficConfig(input.TrafficConfig, context).withName("TrafficConfig");
|
|
9653
|
+
bodyNode.addChildNode(node);
|
|
9654
|
+
}
|
|
9655
|
+
return bodyNode;
|
|
9656
|
+
};
|
|
9657
|
+
const serializeAws_restXmlContinuousDeploymentSingleHeaderConfig = (input, context) => {
|
|
9658
|
+
const bodyNode = new xml_builder_1.XmlNode("ContinuousDeploymentSingleHeaderConfig");
|
|
9659
|
+
if (input.Header != null) {
|
|
9660
|
+
const node = xml_builder_1.XmlNode.of("string", input.Header).withName("Header");
|
|
9661
|
+
bodyNode.addChildNode(node);
|
|
9662
|
+
}
|
|
9663
|
+
if (input.Value != null) {
|
|
9664
|
+
const node = xml_builder_1.XmlNode.of("string", input.Value).withName("Value");
|
|
9665
|
+
bodyNode.addChildNode(node);
|
|
9666
|
+
}
|
|
9667
|
+
return bodyNode;
|
|
9668
|
+
};
|
|
9669
|
+
const serializeAws_restXmlContinuousDeploymentSingleWeightConfig = (input, context) => {
|
|
9670
|
+
const bodyNode = new xml_builder_1.XmlNode("ContinuousDeploymentSingleWeightConfig");
|
|
9671
|
+
if (input.Weight != null) {
|
|
9672
|
+
const node = xml_builder_1.XmlNode.of("float", String(input.Weight)).withName("Weight");
|
|
9673
|
+
bodyNode.addChildNode(node);
|
|
9674
|
+
}
|
|
9675
|
+
if (input.SessionStickinessConfig != null) {
|
|
9676
|
+
const node = serializeAws_restXmlSessionStickinessConfig(input.SessionStickinessConfig, context).withName("SessionStickinessConfig");
|
|
9677
|
+
bodyNode.addChildNode(node);
|
|
9678
|
+
}
|
|
9679
|
+
return bodyNode;
|
|
9680
|
+
};
|
|
9007
9681
|
const serializeAws_restXmlCookieNameList = (input, context) => {
|
|
9008
9682
|
return input
|
|
9009
9683
|
.filter((e) => e != null)
|
|
@@ -10448,6 +11122,18 @@ const serializeAws_restXmlS3OriginConfig = (input, context) => {
|
|
|
10448
11122
|
}
|
|
10449
11123
|
return bodyNode;
|
|
10450
11124
|
};
|
|
11125
|
+
const serializeAws_restXmlSessionStickinessConfig = (input, context) => {
|
|
11126
|
+
const bodyNode = new xml_builder_1.XmlNode("SessionStickinessConfig");
|
|
11127
|
+
if (input.IdleTTL != null) {
|
|
11128
|
+
const node = xml_builder_1.XmlNode.of("integer", String(input.IdleTTL)).withName("IdleTTL");
|
|
11129
|
+
bodyNode.addChildNode(node);
|
|
11130
|
+
}
|
|
11131
|
+
if (input.MaximumTTL != null) {
|
|
11132
|
+
const node = xml_builder_1.XmlNode.of("integer", String(input.MaximumTTL)).withName("MaximumTTL");
|
|
11133
|
+
bodyNode.addChildNode(node);
|
|
11134
|
+
}
|
|
11135
|
+
return bodyNode;
|
|
11136
|
+
};
|
|
10451
11137
|
const serializeAws_restXmlSslProtocolsList = (input, context) => {
|
|
10452
11138
|
return input
|
|
10453
11139
|
.filter((e) => e != null)
|
|
@@ -10456,6 +11142,30 @@ const serializeAws_restXmlSslProtocolsList = (input, context) => {
|
|
|
10456
11142
|
return node.withName("SslProtocol");
|
|
10457
11143
|
});
|
|
10458
11144
|
};
|
|
11145
|
+
const serializeAws_restXmlStagingDistributionDnsNameList = (input, context) => {
|
|
11146
|
+
return input
|
|
11147
|
+
.filter((e) => e != null)
|
|
11148
|
+
.map((entry) => {
|
|
11149
|
+
const node = xml_builder_1.XmlNode.of("string", entry);
|
|
11150
|
+
return node.withName("DnsName");
|
|
11151
|
+
});
|
|
11152
|
+
};
|
|
11153
|
+
const serializeAws_restXmlStagingDistributionDnsNames = (input, context) => {
|
|
11154
|
+
const bodyNode = new xml_builder_1.XmlNode("StagingDistributionDnsNames");
|
|
11155
|
+
if (input.Quantity != null) {
|
|
11156
|
+
const node = xml_builder_1.XmlNode.of("integer", String(input.Quantity)).withName("Quantity");
|
|
11157
|
+
bodyNode.addChildNode(node);
|
|
11158
|
+
}
|
|
11159
|
+
if (input.Items != null) {
|
|
11160
|
+
const nodes = serializeAws_restXmlStagingDistributionDnsNameList(input.Items, context);
|
|
11161
|
+
const containerNode = new xml_builder_1.XmlNode("Items");
|
|
11162
|
+
nodes.map((node) => {
|
|
11163
|
+
containerNode.addChildNode(node);
|
|
11164
|
+
});
|
|
11165
|
+
bodyNode.addChildNode(containerNode);
|
|
11166
|
+
}
|
|
11167
|
+
return bodyNode;
|
|
11168
|
+
};
|
|
10459
11169
|
const serializeAws_restXmlStatusCodeList = (input, context) => {
|
|
10460
11170
|
return input
|
|
10461
11171
|
.filter((e) => e != null)
|
|
@@ -10596,6 +11306,22 @@ const serializeAws_restXmlTags = (input, context) => {
|
|
|
10596
11306
|
}
|
|
10597
11307
|
return bodyNode;
|
|
10598
11308
|
};
|
|
11309
|
+
const serializeAws_restXmlTrafficConfig = (input, context) => {
|
|
11310
|
+
const bodyNode = new xml_builder_1.XmlNode("TrafficConfig");
|
|
11311
|
+
if (input.SingleWeightConfig != null) {
|
|
11312
|
+
const node = serializeAws_restXmlContinuousDeploymentSingleWeightConfig(input.SingleWeightConfig, context).withName("SingleWeightConfig");
|
|
11313
|
+
bodyNode.addChildNode(node);
|
|
11314
|
+
}
|
|
11315
|
+
if (input.SingleHeaderConfig != null) {
|
|
11316
|
+
const node = serializeAws_restXmlContinuousDeploymentSingleHeaderConfig(input.SingleHeaderConfig, context).withName("SingleHeaderConfig");
|
|
11317
|
+
bodyNode.addChildNode(node);
|
|
11318
|
+
}
|
|
11319
|
+
if (input.Type != null) {
|
|
11320
|
+
const node = xml_builder_1.XmlNode.of("ContinuousDeploymentPolicyType", input.Type).withName("Type");
|
|
11321
|
+
bodyNode.addChildNode(node);
|
|
11322
|
+
}
|
|
11323
|
+
return bodyNode;
|
|
11324
|
+
};
|
|
10599
11325
|
const serializeAws_restXmlTrustedKeyGroupIdList = (input, context) => {
|
|
10600
11326
|
return input
|
|
10601
11327
|
.filter((e) => e != null)
|
|
@@ -11254,6 +11980,106 @@ const deserializeAws_restXmlContentTypeProfiles = (output, context) => {
|
|
|
11254
11980
|
}
|
|
11255
11981
|
return contents;
|
|
11256
11982
|
};
|
|
11983
|
+
const deserializeAws_restXmlContinuousDeploymentPolicy = (output, context) => {
|
|
11984
|
+
const contents = {
|
|
11985
|
+
Id: undefined,
|
|
11986
|
+
LastModifiedTime: undefined,
|
|
11987
|
+
ContinuousDeploymentPolicyConfig: undefined,
|
|
11988
|
+
};
|
|
11989
|
+
if (output["Id"] !== undefined) {
|
|
11990
|
+
contents.Id = (0, smithy_client_1.expectString)(output["Id"]);
|
|
11991
|
+
}
|
|
11992
|
+
if (output["LastModifiedTime"] !== undefined) {
|
|
11993
|
+
contents.LastModifiedTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output["LastModifiedTime"]));
|
|
11994
|
+
}
|
|
11995
|
+
if (output["ContinuousDeploymentPolicyConfig"] !== undefined) {
|
|
11996
|
+
contents.ContinuousDeploymentPolicyConfig = deserializeAws_restXmlContinuousDeploymentPolicyConfig(output["ContinuousDeploymentPolicyConfig"], context);
|
|
11997
|
+
}
|
|
11998
|
+
return contents;
|
|
11999
|
+
};
|
|
12000
|
+
const deserializeAws_restXmlContinuousDeploymentPolicyConfig = (output, context) => {
|
|
12001
|
+
const contents = {
|
|
12002
|
+
StagingDistributionDnsNames: undefined,
|
|
12003
|
+
Enabled: undefined,
|
|
12004
|
+
TrafficConfig: undefined,
|
|
12005
|
+
};
|
|
12006
|
+
if (output["StagingDistributionDnsNames"] !== undefined) {
|
|
12007
|
+
contents.StagingDistributionDnsNames = deserializeAws_restXmlStagingDistributionDnsNames(output["StagingDistributionDnsNames"], context);
|
|
12008
|
+
}
|
|
12009
|
+
if (output["Enabled"] !== undefined) {
|
|
12010
|
+
contents.Enabled = (0, smithy_client_1.parseBoolean)(output["Enabled"]);
|
|
12011
|
+
}
|
|
12012
|
+
if (output["TrafficConfig"] !== undefined) {
|
|
12013
|
+
contents.TrafficConfig = deserializeAws_restXmlTrafficConfig(output["TrafficConfig"], context);
|
|
12014
|
+
}
|
|
12015
|
+
return contents;
|
|
12016
|
+
};
|
|
12017
|
+
const deserializeAws_restXmlContinuousDeploymentPolicyList = (output, context) => {
|
|
12018
|
+
const contents = {
|
|
12019
|
+
NextMarker: undefined,
|
|
12020
|
+
MaxItems: undefined,
|
|
12021
|
+
Quantity: undefined,
|
|
12022
|
+
Items: undefined,
|
|
12023
|
+
};
|
|
12024
|
+
if (output["NextMarker"] !== undefined) {
|
|
12025
|
+
contents.NextMarker = (0, smithy_client_1.expectString)(output["NextMarker"]);
|
|
12026
|
+
}
|
|
12027
|
+
if (output["MaxItems"] !== undefined) {
|
|
12028
|
+
contents.MaxItems = (0, smithy_client_1.strictParseInt32)(output["MaxItems"]);
|
|
12029
|
+
}
|
|
12030
|
+
if (output["Quantity"] !== undefined) {
|
|
12031
|
+
contents.Quantity = (0, smithy_client_1.strictParseInt32)(output["Quantity"]);
|
|
12032
|
+
}
|
|
12033
|
+
if (output.Items === "") {
|
|
12034
|
+
contents.Items = [];
|
|
12035
|
+
}
|
|
12036
|
+
else if (output["Items"] !== undefined && output["Items"]["ContinuousDeploymentPolicySummary"] !== undefined) {
|
|
12037
|
+
contents.Items = deserializeAws_restXmlContinuousDeploymentPolicySummaryList((0, smithy_client_1.getArrayIfSingleItem)(output["Items"]["ContinuousDeploymentPolicySummary"]), context);
|
|
12038
|
+
}
|
|
12039
|
+
return contents;
|
|
12040
|
+
};
|
|
12041
|
+
const deserializeAws_restXmlContinuousDeploymentPolicySummary = (output, context) => {
|
|
12042
|
+
const contents = {
|
|
12043
|
+
ContinuousDeploymentPolicy: undefined,
|
|
12044
|
+
};
|
|
12045
|
+
if (output["ContinuousDeploymentPolicy"] !== undefined) {
|
|
12046
|
+
contents.ContinuousDeploymentPolicy = deserializeAws_restXmlContinuousDeploymentPolicy(output["ContinuousDeploymentPolicy"], context);
|
|
12047
|
+
}
|
|
12048
|
+
return contents;
|
|
12049
|
+
};
|
|
12050
|
+
const deserializeAws_restXmlContinuousDeploymentPolicySummaryList = (output, context) => {
|
|
12051
|
+
return (output || [])
|
|
12052
|
+
.filter((e) => e != null)
|
|
12053
|
+
.map((entry) => {
|
|
12054
|
+
return deserializeAws_restXmlContinuousDeploymentPolicySummary(entry, context);
|
|
12055
|
+
});
|
|
12056
|
+
};
|
|
12057
|
+
const deserializeAws_restXmlContinuousDeploymentSingleHeaderConfig = (output, context) => {
|
|
12058
|
+
const contents = {
|
|
12059
|
+
Header: undefined,
|
|
12060
|
+
Value: undefined,
|
|
12061
|
+
};
|
|
12062
|
+
if (output["Header"] !== undefined) {
|
|
12063
|
+
contents.Header = (0, smithy_client_1.expectString)(output["Header"]);
|
|
12064
|
+
}
|
|
12065
|
+
if (output["Value"] !== undefined) {
|
|
12066
|
+
contents.Value = (0, smithy_client_1.expectString)(output["Value"]);
|
|
12067
|
+
}
|
|
12068
|
+
return contents;
|
|
12069
|
+
};
|
|
12070
|
+
const deserializeAws_restXmlContinuousDeploymentSingleWeightConfig = (output, context) => {
|
|
12071
|
+
const contents = {
|
|
12072
|
+
Weight: undefined,
|
|
12073
|
+
SessionStickinessConfig: undefined,
|
|
12074
|
+
};
|
|
12075
|
+
if (output["Weight"] !== undefined) {
|
|
12076
|
+
contents.Weight = (0, smithy_client_1.strictParseFloat)(output["Weight"]);
|
|
12077
|
+
}
|
|
12078
|
+
if (output["SessionStickinessConfig"] !== undefined) {
|
|
12079
|
+
contents.SessionStickinessConfig = deserializeAws_restXmlSessionStickinessConfig(output["SessionStickinessConfig"], context);
|
|
12080
|
+
}
|
|
12081
|
+
return contents;
|
|
12082
|
+
};
|
|
11257
12083
|
const deserializeAws_restXmlCookieNameList = (output, context) => {
|
|
11258
12084
|
return (output || [])
|
|
11259
12085
|
.filter((e) => e != null)
|
|
@@ -13661,6 +14487,19 @@ const deserializeAws_restXmlS3OriginConfig = (output, context) => {
|
|
|
13661
14487
|
}
|
|
13662
14488
|
return contents;
|
|
13663
14489
|
};
|
|
14490
|
+
const deserializeAws_restXmlSessionStickinessConfig = (output, context) => {
|
|
14491
|
+
const contents = {
|
|
14492
|
+
IdleTTL: undefined,
|
|
14493
|
+
MaximumTTL: undefined,
|
|
14494
|
+
};
|
|
14495
|
+
if (output["IdleTTL"] !== undefined) {
|
|
14496
|
+
contents.IdleTTL = (0, smithy_client_1.strictParseInt32)(output["IdleTTL"]);
|
|
14497
|
+
}
|
|
14498
|
+
if (output["MaximumTTL"] !== undefined) {
|
|
14499
|
+
contents.MaximumTTL = (0, smithy_client_1.strictParseInt32)(output["MaximumTTL"]);
|
|
14500
|
+
}
|
|
14501
|
+
return contents;
|
|
14502
|
+
};
|
|
13664
14503
|
const deserializeAws_restXmlSigner = (output, context) => {
|
|
13665
14504
|
const contents = {
|
|
13666
14505
|
AwsAccountNumber: undefined,
|
|
@@ -13688,6 +14527,29 @@ const deserializeAws_restXmlSslProtocolsList = (output, context) => {
|
|
|
13688
14527
|
return (0, smithy_client_1.expectString)(entry);
|
|
13689
14528
|
});
|
|
13690
14529
|
};
|
|
14530
|
+
const deserializeAws_restXmlStagingDistributionDnsNameList = (output, context) => {
|
|
14531
|
+
return (output || [])
|
|
14532
|
+
.filter((e) => e != null)
|
|
14533
|
+
.map((entry) => {
|
|
14534
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
14535
|
+
});
|
|
14536
|
+
};
|
|
14537
|
+
const deserializeAws_restXmlStagingDistributionDnsNames = (output, context) => {
|
|
14538
|
+
const contents = {
|
|
14539
|
+
Quantity: undefined,
|
|
14540
|
+
Items: undefined,
|
|
14541
|
+
};
|
|
14542
|
+
if (output["Quantity"] !== undefined) {
|
|
14543
|
+
contents.Quantity = (0, smithy_client_1.strictParseInt32)(output["Quantity"]);
|
|
14544
|
+
}
|
|
14545
|
+
if (output.Items === "") {
|
|
14546
|
+
contents.Items = [];
|
|
14547
|
+
}
|
|
14548
|
+
else if (output["Items"] !== undefined && output["Items"]["DnsName"] !== undefined) {
|
|
14549
|
+
contents.Items = deserializeAws_restXmlStagingDistributionDnsNameList((0, smithy_client_1.getArrayIfSingleItem)(output["Items"]["DnsName"]), context);
|
|
14550
|
+
}
|
|
14551
|
+
return contents;
|
|
14552
|
+
};
|
|
13691
14553
|
const deserializeAws_restXmlStatusCodeList = (output, context) => {
|
|
13692
14554
|
return (output || [])
|
|
13693
14555
|
.filter((e) => e != null)
|
|
@@ -13946,6 +14808,23 @@ const deserializeAws_restXmlTestResult = (output, context) => {
|
|
|
13946
14808
|
}
|
|
13947
14809
|
return contents;
|
|
13948
14810
|
};
|
|
14811
|
+
const deserializeAws_restXmlTrafficConfig = (output, context) => {
|
|
14812
|
+
const contents = {
|
|
14813
|
+
SingleWeightConfig: undefined,
|
|
14814
|
+
SingleHeaderConfig: undefined,
|
|
14815
|
+
Type: undefined,
|
|
14816
|
+
};
|
|
14817
|
+
if (output["SingleWeightConfig"] !== undefined) {
|
|
14818
|
+
contents.SingleWeightConfig = deserializeAws_restXmlContinuousDeploymentSingleWeightConfig(output["SingleWeightConfig"], context);
|
|
14819
|
+
}
|
|
14820
|
+
if (output["SingleHeaderConfig"] !== undefined) {
|
|
14821
|
+
contents.SingleHeaderConfig = deserializeAws_restXmlContinuousDeploymentSingleHeaderConfig(output["SingleHeaderConfig"], context);
|
|
14822
|
+
}
|
|
14823
|
+
if (output["Type"] !== undefined) {
|
|
14824
|
+
contents.Type = (0, smithy_client_1.expectString)(output["Type"]);
|
|
14825
|
+
}
|
|
14826
|
+
return contents;
|
|
14827
|
+
};
|
|
13949
14828
|
const deserializeAws_restXmlTrustedKeyGroupIdList = (output, context) => {
|
|
13950
14829
|
return (output || [])
|
|
13951
14830
|
.filter((e) => e != null)
|