@aws-sdk/client-cloudfront 3.150.0 → 3.159.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/dist-cjs/CloudFront.js +90 -0
- package/dist-cjs/commands/CreateOriginAccessControlCommand.js +36 -0
- package/dist-cjs/commands/DeleteCloudFrontOriginAccessIdentityCommand.js +2 -2
- package/dist-cjs/commands/DeleteDistributionCommand.js +2 -2
- package/dist-cjs/commands/DeleteFieldLevelEncryptionConfigCommand.js +2 -2
- package/dist-cjs/commands/DeleteFieldLevelEncryptionProfileCommand.js +2 -2
- package/dist-cjs/commands/DeleteFunctionCommand.js +2 -2
- package/dist-cjs/commands/DeleteKeyGroupCommand.js +2 -2
- package/dist-cjs/commands/DeleteOriginAccessControlCommand.js +36 -0
- package/dist-cjs/commands/GetOriginAccessControlCommand.js +36 -0
- package/dist-cjs/commands/GetOriginAccessControlConfigCommand.js +36 -0
- package/dist-cjs/commands/ListOriginAccessControlsCommand.js +36 -0
- package/dist-cjs/commands/UpdateOriginAccessControlCommand.js +36 -0
- package/dist-cjs/commands/index.js +6 -0
- package/dist-cjs/models/models_0.js +134 -142
- package/dist-cjs/models/models_1.js +226 -4
- package/dist-cjs/protocols/Aws_restXml.js +697 -20
- package/dist-es/CloudFront.js +90 -0
- package/dist-es/commands/CreateOriginAccessControlCommand.js +39 -0
- package/dist-es/commands/DeleteCloudFrontOriginAccessIdentityCommand.js +1 -1
- package/dist-es/commands/DeleteDistributionCommand.js +1 -1
- package/dist-es/commands/DeleteFieldLevelEncryptionConfigCommand.js +1 -1
- package/dist-es/commands/DeleteFieldLevelEncryptionProfileCommand.js +1 -1
- package/dist-es/commands/DeleteFunctionCommand.js +1 -1
- package/dist-es/commands/DeleteKeyGroupCommand.js +1 -1
- package/dist-es/commands/DeleteOriginAccessControlCommand.js +39 -0
- package/dist-es/commands/GetOriginAccessControlCommand.js +39 -0
- package/dist-es/commands/GetOriginAccessControlConfigCommand.js +39 -0
- package/dist-es/commands/ListOriginAccessControlsCommand.js +39 -0
- package/dist-es/commands/UpdateOriginAccessControlCommand.js +39 -0
- package/dist-es/commands/index.js +6 -0
- package/dist-es/models/models_0.js +109 -110
- package/dist-es/models/models_1.js +160 -0
- package/dist-es/protocols/Aws_restXml.js +1488 -629
- package/dist-types/CloudFront.d.ts +56 -0
- package/dist-types/CloudFrontClient.d.ts +8 -2
- package/dist-types/commands/CreateOriginAccessControlCommand.d.ts +41 -0
- package/dist-types/commands/DeleteCloudFrontOriginAccessIdentityCommand.d.ts +1 -1
- package/dist-types/commands/DeleteDistributionCommand.d.ts +1 -1
- package/dist-types/commands/DeleteFieldLevelEncryptionConfigCommand.d.ts +1 -1
- package/dist-types/commands/DeleteFieldLevelEncryptionProfileCommand.d.ts +1 -1
- package/dist-types/commands/DeleteFunctionCommand.d.ts +1 -1
- package/dist-types/commands/DeleteKeyGroupCommand.d.ts +1 -1
- package/dist-types/commands/DeleteOriginAccessControlCommand.d.ts +38 -0
- package/dist-types/commands/GetOriginAccessControlCommand.d.ts +35 -0
- package/dist-types/commands/GetOriginAccessControlConfigCommand.d.ts +35 -0
- package/dist-types/commands/ListOriginAccessControlsCommand.d.ts +40 -0
- package/dist-types/commands/UpdateOriginAccessControlCommand.d.ts +35 -0
- package/dist-types/commands/index.d.ts +6 -0
- package/dist-types/models/models_0.d.ts +217 -246
- package/dist-types/models/models_1.d.ts +494 -1
- package/dist-types/protocols/Aws_restXml.d.ts +18 -0
- package/dist-types/ts3.4/CloudFront.d.ts +30 -0
- package/dist-types/ts3.4/CloudFrontClient.d.ts +8 -2
- package/dist-types/ts3.4/commands/CreateOriginAccessControlCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteCloudFrontOriginAccessIdentityCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DeleteDistributionCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DeleteFieldLevelEncryptionConfigCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DeleteFieldLevelEncryptionProfileCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DeleteFunctionCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DeleteKeyGroupCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DeleteOriginAccessControlCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetOriginAccessControlCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetOriginAccessControlConfigCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListOriginAccessControlsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateOriginAccessControlCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +6 -0
- package/dist-types/ts3.4/models/models_1.d.ts +241 -1
- package/dist-types/ts3.4/protocols/Aws_restXml.d.ts +18 -0
- package/package.json +28 -28
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.
|
|
6
|
-
exports.deserializeAws_restXmlUpdateStreamingDistributionCommand = exports.deserializeAws_restXmlUpdateResponseHeadersPolicyCommand = exports.deserializeAws_restXmlUpdateRealtimeLogConfigCommand = exports.deserializeAws_restXmlUpdatePublicKeyCommand = exports.deserializeAws_restXmlUpdateOriginRequestPolicyCommand = exports.deserializeAws_restXmlUpdateKeyGroupCommand = exports.deserializeAws_restXmlUpdateFunctionCommand = exports.deserializeAws_restXmlUpdateFieldLevelEncryptionProfileCommand = exports.deserializeAws_restXmlUpdateFieldLevelEncryptionConfigCommand = exports.deserializeAws_restXmlUpdateDistributionCommand = 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_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 = void 0;
|
|
3
|
+
exports.serializeAws_restXmlGetOriginAccessControlConfigCommand = exports.serializeAws_restXmlGetOriginAccessControlCommand = exports.serializeAws_restXmlGetMonitoringSubscriptionCommand = exports.serializeAws_restXmlGetKeyGroupConfigCommand = exports.serializeAws_restXmlGetKeyGroupCommand = 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_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_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_restXmlCreateCloudFrontOriginAccessIdentityCommand = exports.serializeAws_restXmlCreateCachePolicyCommand = exports.serializeAws_restXmlAssociateAliasCommand = void 0;
|
|
4
|
+
exports.deserializeAws_restXmlCreateCachePolicyCommand = exports.deserializeAws_restXmlAssociateAliasCommand = exports.serializeAws_restXmlUpdateStreamingDistributionCommand = exports.serializeAws_restXmlUpdateResponseHeadersPolicyCommand = exports.serializeAws_restXmlUpdateRealtimeLogConfigCommand = exports.serializeAws_restXmlUpdatePublicKeyCommand = exports.serializeAws_restXmlUpdateOriginRequestPolicyCommand = exports.serializeAws_restXmlUpdateOriginAccessControlCommand = exports.serializeAws_restXmlUpdateKeyGroupCommand = exports.serializeAws_restXmlUpdateFunctionCommand = exports.serializeAws_restXmlUpdateFieldLevelEncryptionProfileCommand = exports.serializeAws_restXmlUpdateFieldLevelEncryptionConfigCommand = exports.serializeAws_restXmlUpdateDistributionCommand = 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_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 = void 0;
|
|
5
|
+
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 = exports.deserializeAws_restXmlGetFieldLevelEncryptionCommand = exports.deserializeAws_restXmlGetDistributionConfigCommand = exports.deserializeAws_restXmlGetDistributionCommand = 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_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_restXmlCreateCloudFrontOriginAccessIdentityCommand = void 0;
|
|
6
|
+
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 = exports.deserializeAws_restXmlUpdateDistributionCommand = 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_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 = void 0;
|
|
7
7
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
8
8
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
9
9
|
const xml_builder_1 = require("@aws-sdk/xml-builder");
|
|
@@ -330,6 +330,34 @@ const serializeAws_restXmlCreateMonitoringSubscriptionCommand = async (input, co
|
|
|
330
330
|
});
|
|
331
331
|
};
|
|
332
332
|
exports.serializeAws_restXmlCreateMonitoringSubscriptionCommand = serializeAws_restXmlCreateMonitoringSubscriptionCommand;
|
|
333
|
+
const serializeAws_restXmlCreateOriginAccessControlCommand = async (input, context) => {
|
|
334
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
335
|
+
const headers = {
|
|
336
|
+
"content-type": "application/xml",
|
|
337
|
+
};
|
|
338
|
+
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/origin-access-control";
|
|
339
|
+
let body;
|
|
340
|
+
if (input.OriginAccessControlConfig !== undefined) {
|
|
341
|
+
body = serializeAws_restXmlOriginAccessControlConfig(input.OriginAccessControlConfig, context);
|
|
342
|
+
}
|
|
343
|
+
let contents;
|
|
344
|
+
if (input.OriginAccessControlConfig !== undefined) {
|
|
345
|
+
contents = serializeAws_restXmlOriginAccessControlConfig(input.OriginAccessControlConfig, context);
|
|
346
|
+
body = '<?xml version="1.0" encoding="UTF-8"?>';
|
|
347
|
+
contents.addAttribute("xmlns", "http://cloudfront.amazonaws.com/doc/2020-05-31/");
|
|
348
|
+
body += contents.toString();
|
|
349
|
+
}
|
|
350
|
+
return new protocol_http_1.HttpRequest({
|
|
351
|
+
protocol,
|
|
352
|
+
hostname,
|
|
353
|
+
port,
|
|
354
|
+
method: "POST",
|
|
355
|
+
headers,
|
|
356
|
+
path: resolvedPath,
|
|
357
|
+
body,
|
|
358
|
+
});
|
|
359
|
+
};
|
|
360
|
+
exports.serializeAws_restXmlCreateOriginAccessControlCommand = serializeAws_restXmlCreateOriginAccessControlCommand;
|
|
333
361
|
const serializeAws_restXmlCreateOriginRequestPolicyCommand = async (input, context) => {
|
|
334
362
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
335
363
|
const headers = {
|
|
@@ -673,6 +701,25 @@ const serializeAws_restXmlDeleteMonitoringSubscriptionCommand = async (input, co
|
|
|
673
701
|
});
|
|
674
702
|
};
|
|
675
703
|
exports.serializeAws_restXmlDeleteMonitoringSubscriptionCommand = serializeAws_restXmlDeleteMonitoringSubscriptionCommand;
|
|
704
|
+
const serializeAws_restXmlDeleteOriginAccessControlCommand = async (input, context) => {
|
|
705
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
706
|
+
const headers = map({}, isSerializableHeaderValue, {
|
|
707
|
+
"if-match": input.IfMatch,
|
|
708
|
+
});
|
|
709
|
+
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/origin-access-control/{Id}";
|
|
710
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
|
|
711
|
+
let body;
|
|
712
|
+
return new protocol_http_1.HttpRequest({
|
|
713
|
+
protocol,
|
|
714
|
+
hostname,
|
|
715
|
+
port,
|
|
716
|
+
method: "DELETE",
|
|
717
|
+
headers,
|
|
718
|
+
path: resolvedPath,
|
|
719
|
+
body,
|
|
720
|
+
});
|
|
721
|
+
};
|
|
722
|
+
exports.serializeAws_restXmlDeleteOriginAccessControlCommand = serializeAws_restXmlDeleteOriginAccessControlCommand;
|
|
676
723
|
const serializeAws_restXmlDeleteOriginRequestPolicyCommand = async (input, context) => {
|
|
677
724
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
678
725
|
const headers = map({}, isSerializableHeaderValue, {
|
|
@@ -1067,6 +1114,41 @@ const serializeAws_restXmlGetMonitoringSubscriptionCommand = async (input, conte
|
|
|
1067
1114
|
});
|
|
1068
1115
|
};
|
|
1069
1116
|
exports.serializeAws_restXmlGetMonitoringSubscriptionCommand = serializeAws_restXmlGetMonitoringSubscriptionCommand;
|
|
1117
|
+
const serializeAws_restXmlGetOriginAccessControlCommand = async (input, context) => {
|
|
1118
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1119
|
+
const headers = {};
|
|
1120
|
+
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/origin-access-control/{Id}";
|
|
1121
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
|
|
1122
|
+
let body;
|
|
1123
|
+
return new protocol_http_1.HttpRequest({
|
|
1124
|
+
protocol,
|
|
1125
|
+
hostname,
|
|
1126
|
+
port,
|
|
1127
|
+
method: "GET",
|
|
1128
|
+
headers,
|
|
1129
|
+
path: resolvedPath,
|
|
1130
|
+
body,
|
|
1131
|
+
});
|
|
1132
|
+
};
|
|
1133
|
+
exports.serializeAws_restXmlGetOriginAccessControlCommand = serializeAws_restXmlGetOriginAccessControlCommand;
|
|
1134
|
+
const serializeAws_restXmlGetOriginAccessControlConfigCommand = async (input, context) => {
|
|
1135
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1136
|
+
const headers = {};
|
|
1137
|
+
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1138
|
+
"/2020-05-31/origin-access-control/{Id}/config";
|
|
1139
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
|
|
1140
|
+
let body;
|
|
1141
|
+
return new protocol_http_1.HttpRequest({
|
|
1142
|
+
protocol,
|
|
1143
|
+
hostname,
|
|
1144
|
+
port,
|
|
1145
|
+
method: "GET",
|
|
1146
|
+
headers,
|
|
1147
|
+
path: resolvedPath,
|
|
1148
|
+
body,
|
|
1149
|
+
});
|
|
1150
|
+
};
|
|
1151
|
+
exports.serializeAws_restXmlGetOriginAccessControlConfigCommand = serializeAws_restXmlGetOriginAccessControlConfigCommand;
|
|
1070
1152
|
const serializeAws_restXmlGetOriginRequestPolicyCommand = async (input, context) => {
|
|
1071
1153
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1072
1154
|
const headers = {};
|
|
@@ -1587,6 +1669,27 @@ const serializeAws_restXmlListKeyGroupsCommand = async (input, context) => {
|
|
|
1587
1669
|
});
|
|
1588
1670
|
};
|
|
1589
1671
|
exports.serializeAws_restXmlListKeyGroupsCommand = serializeAws_restXmlListKeyGroupsCommand;
|
|
1672
|
+
const serializeAws_restXmlListOriginAccessControlsCommand = async (input, context) => {
|
|
1673
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1674
|
+
const headers = {};
|
|
1675
|
+
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/2020-05-31/origin-access-control";
|
|
1676
|
+
const query = map({
|
|
1677
|
+
Marker: [, input.Marker],
|
|
1678
|
+
MaxItems: [() => input.MaxItems !== void 0, () => input.MaxItems.toString()],
|
|
1679
|
+
});
|
|
1680
|
+
let body;
|
|
1681
|
+
return new protocol_http_1.HttpRequest({
|
|
1682
|
+
protocol,
|
|
1683
|
+
hostname,
|
|
1684
|
+
port,
|
|
1685
|
+
method: "GET",
|
|
1686
|
+
headers,
|
|
1687
|
+
path: resolvedPath,
|
|
1688
|
+
query,
|
|
1689
|
+
body,
|
|
1690
|
+
});
|
|
1691
|
+
};
|
|
1692
|
+
exports.serializeAws_restXmlListOriginAccessControlsCommand = serializeAws_restXmlListOriginAccessControlsCommand;
|
|
1590
1693
|
const serializeAws_restXmlListOriginRequestPoliciesCommand = async (input, context) => {
|
|
1591
1694
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1592
1695
|
const headers = {};
|
|
@@ -2046,6 +2149,37 @@ const serializeAws_restXmlUpdateKeyGroupCommand = async (input, context) => {
|
|
|
2046
2149
|
});
|
|
2047
2150
|
};
|
|
2048
2151
|
exports.serializeAws_restXmlUpdateKeyGroupCommand = serializeAws_restXmlUpdateKeyGroupCommand;
|
|
2152
|
+
const serializeAws_restXmlUpdateOriginAccessControlCommand = async (input, context) => {
|
|
2153
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2154
|
+
const headers = map({}, isSerializableHeaderValue, {
|
|
2155
|
+
"content-type": "application/xml",
|
|
2156
|
+
"if-match": input.IfMatch,
|
|
2157
|
+
});
|
|
2158
|
+
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
2159
|
+
"/2020-05-31/origin-access-control/{Id}/config";
|
|
2160
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
|
|
2161
|
+
let body;
|
|
2162
|
+
if (input.OriginAccessControlConfig !== undefined) {
|
|
2163
|
+
body = serializeAws_restXmlOriginAccessControlConfig(input.OriginAccessControlConfig, context);
|
|
2164
|
+
}
|
|
2165
|
+
let contents;
|
|
2166
|
+
if (input.OriginAccessControlConfig !== undefined) {
|
|
2167
|
+
contents = serializeAws_restXmlOriginAccessControlConfig(input.OriginAccessControlConfig, context);
|
|
2168
|
+
body = '<?xml version="1.0" encoding="UTF-8"?>';
|
|
2169
|
+
contents.addAttribute("xmlns", "http://cloudfront.amazonaws.com/doc/2020-05-31/");
|
|
2170
|
+
body += contents.toString();
|
|
2171
|
+
}
|
|
2172
|
+
return new protocol_http_1.HttpRequest({
|
|
2173
|
+
protocol,
|
|
2174
|
+
hostname,
|
|
2175
|
+
port,
|
|
2176
|
+
method: "PUT",
|
|
2177
|
+
headers,
|
|
2178
|
+
path: resolvedPath,
|
|
2179
|
+
body,
|
|
2180
|
+
});
|
|
2181
|
+
};
|
|
2182
|
+
exports.serializeAws_restXmlUpdateOriginAccessControlCommand = serializeAws_restXmlUpdateOriginAccessControlCommand;
|
|
2049
2183
|
const serializeAws_restXmlUpdateOriginRequestPolicyCommand = async (input, context) => {
|
|
2050
2184
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2051
2185
|
const headers = map({}, isSerializableHeaderValue, {
|
|
@@ -2394,6 +2528,9 @@ const deserializeAws_restXmlCreateDistributionCommandError = async (output, cont
|
|
|
2394
2528
|
case "IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior":
|
|
2395
2529
|
case "com.amazonaws.cloudfront#IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior":
|
|
2396
2530
|
throw await deserializeAws_restXmlIllegalFieldLevelEncryptionConfigAssociationWithCacheBehaviorResponse(parsedOutput, context);
|
|
2531
|
+
case "IllegalOriginAccessConfiguration":
|
|
2532
|
+
case "com.amazonaws.cloudfront#IllegalOriginAccessConfiguration":
|
|
2533
|
+
throw await deserializeAws_restXmlIllegalOriginAccessConfigurationResponse(parsedOutput, context);
|
|
2397
2534
|
case "InconsistentQuantities":
|
|
2398
2535
|
case "com.amazonaws.cloudfront#InconsistentQuantities":
|
|
2399
2536
|
throw await deserializeAws_restXmlInconsistentQuantitiesResponse(parsedOutput, context);
|
|
@@ -2403,6 +2540,9 @@ const deserializeAws_restXmlCreateDistributionCommandError = async (output, cont
|
|
|
2403
2540
|
case "InvalidDefaultRootObject":
|
|
2404
2541
|
case "com.amazonaws.cloudfront#InvalidDefaultRootObject":
|
|
2405
2542
|
throw await deserializeAws_restXmlInvalidDefaultRootObjectResponse(parsedOutput, context);
|
|
2543
|
+
case "InvalidDomainNameForOriginAccessControl":
|
|
2544
|
+
case "com.amazonaws.cloudfront#InvalidDomainNameForOriginAccessControl":
|
|
2545
|
+
throw await deserializeAws_restXmlInvalidDomainNameForOriginAccessControlResponse(parsedOutput, context);
|
|
2406
2546
|
case "InvalidErrorCode":
|
|
2407
2547
|
case "com.amazonaws.cloudfront#InvalidErrorCode":
|
|
2408
2548
|
throw await deserializeAws_restXmlInvalidErrorCodeResponse(parsedOutput, context);
|
|
@@ -2430,6 +2570,9 @@ const deserializeAws_restXmlCreateDistributionCommandError = async (output, cont
|
|
|
2430
2570
|
case "InvalidOrigin":
|
|
2431
2571
|
case "com.amazonaws.cloudfront#InvalidOrigin":
|
|
2432
2572
|
throw await deserializeAws_restXmlInvalidOriginResponse(parsedOutput, context);
|
|
2573
|
+
case "InvalidOriginAccessControl":
|
|
2574
|
+
case "com.amazonaws.cloudfront#InvalidOriginAccessControl":
|
|
2575
|
+
throw await deserializeAws_restXmlInvalidOriginAccessControlResponse(parsedOutput, context);
|
|
2433
2576
|
case "InvalidOriginAccessIdentity":
|
|
2434
2577
|
case "com.amazonaws.cloudfront#InvalidOriginAccessIdentity":
|
|
2435
2578
|
throw await deserializeAws_restXmlInvalidOriginAccessIdentityResponse(parsedOutput, context);
|
|
@@ -2511,6 +2654,9 @@ const deserializeAws_restXmlCreateDistributionCommandError = async (output, cont
|
|
|
2511
2654
|
case "TooManyDistributionsAssociatedToKeyGroup":
|
|
2512
2655
|
case "com.amazonaws.cloudfront#TooManyDistributionsAssociatedToKeyGroup":
|
|
2513
2656
|
throw await deserializeAws_restXmlTooManyDistributionsAssociatedToKeyGroupResponse(parsedOutput, context);
|
|
2657
|
+
case "TooManyDistributionsAssociatedToOriginAccessControl":
|
|
2658
|
+
case "com.amazonaws.cloudfront#TooManyDistributionsAssociatedToOriginAccessControl":
|
|
2659
|
+
throw await deserializeAws_restXmlTooManyDistributionsAssociatedToOriginAccessControlResponse(parsedOutput, context);
|
|
2514
2660
|
case "TooManyDistributionsAssociatedToOriginRequestPolicy":
|
|
2515
2661
|
case "com.amazonaws.cloudfront#TooManyDistributionsAssociatedToOriginRequestPolicy":
|
|
2516
2662
|
throw await deserializeAws_restXmlTooManyDistributionsAssociatedToOriginRequestPolicyResponse(parsedOutput, context);
|
|
@@ -2611,6 +2757,9 @@ const deserializeAws_restXmlCreateDistributionWithTagsCommandError = async (outp
|
|
|
2611
2757
|
case "InvalidDefaultRootObject":
|
|
2612
2758
|
case "com.amazonaws.cloudfront#InvalidDefaultRootObject":
|
|
2613
2759
|
throw await deserializeAws_restXmlInvalidDefaultRootObjectResponse(parsedOutput, context);
|
|
2760
|
+
case "InvalidDomainNameForOriginAccessControl":
|
|
2761
|
+
case "com.amazonaws.cloudfront#InvalidDomainNameForOriginAccessControl":
|
|
2762
|
+
throw await deserializeAws_restXmlInvalidDomainNameForOriginAccessControlResponse(parsedOutput, context);
|
|
2614
2763
|
case "InvalidErrorCode":
|
|
2615
2764
|
case "com.amazonaws.cloudfront#InvalidErrorCode":
|
|
2616
2765
|
throw await deserializeAws_restXmlInvalidErrorCodeResponse(parsedOutput, context);
|
|
@@ -2638,6 +2787,9 @@ const deserializeAws_restXmlCreateDistributionWithTagsCommandError = async (outp
|
|
|
2638
2787
|
case "InvalidOrigin":
|
|
2639
2788
|
case "com.amazonaws.cloudfront#InvalidOrigin":
|
|
2640
2789
|
throw await deserializeAws_restXmlInvalidOriginResponse(parsedOutput, context);
|
|
2790
|
+
case "InvalidOriginAccessControl":
|
|
2791
|
+
case "com.amazonaws.cloudfront#InvalidOriginAccessControl":
|
|
2792
|
+
throw await deserializeAws_restXmlInvalidOriginAccessControlResponse(parsedOutput, context);
|
|
2641
2793
|
case "InvalidOriginAccessIdentity":
|
|
2642
2794
|
case "com.amazonaws.cloudfront#InvalidOriginAccessIdentity":
|
|
2643
2795
|
throw await deserializeAws_restXmlInvalidOriginAccessIdentityResponse(parsedOutput, context);
|
|
@@ -3052,6 +3204,9 @@ const deserializeAws_restXmlCreateMonitoringSubscriptionCommandError = async (ou
|
|
|
3052
3204
|
case "AccessDenied":
|
|
3053
3205
|
case "com.amazonaws.cloudfront#AccessDenied":
|
|
3054
3206
|
throw await deserializeAws_restXmlAccessDeniedResponse(parsedOutput, context);
|
|
3207
|
+
case "MonitoringSubscriptionAlreadyExists":
|
|
3208
|
+
case "com.amazonaws.cloudfront#MonitoringSubscriptionAlreadyExists":
|
|
3209
|
+
throw await deserializeAws_restXmlMonitoringSubscriptionAlreadyExistsResponse(parsedOutput, context);
|
|
3055
3210
|
case "NoSuchDistribution":
|
|
3056
3211
|
case "com.amazonaws.cloudfront#NoSuchDistribution":
|
|
3057
3212
|
throw await deserializeAws_restXmlNoSuchDistributionResponse(parsedOutput, context);
|
|
@@ -3068,6 +3223,46 @@ const deserializeAws_restXmlCreateMonitoringSubscriptionCommandError = async (ou
|
|
|
3068
3223
|
});
|
|
3069
3224
|
}
|
|
3070
3225
|
};
|
|
3226
|
+
const deserializeAws_restXmlCreateOriginAccessControlCommand = async (output, context) => {
|
|
3227
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
3228
|
+
return deserializeAws_restXmlCreateOriginAccessControlCommandError(output, context);
|
|
3229
|
+
}
|
|
3230
|
+
const contents = map({
|
|
3231
|
+
$metadata: deserializeMetadata(output),
|
|
3232
|
+
Location: [, output.headers["location"]],
|
|
3233
|
+
ETag: [, output.headers["etag"]],
|
|
3234
|
+
});
|
|
3235
|
+
const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
|
|
3236
|
+
contents.OriginAccessControl = deserializeAws_restXmlOriginAccessControl(data, context);
|
|
3237
|
+
return contents;
|
|
3238
|
+
};
|
|
3239
|
+
exports.deserializeAws_restXmlCreateOriginAccessControlCommand = deserializeAws_restXmlCreateOriginAccessControlCommand;
|
|
3240
|
+
const deserializeAws_restXmlCreateOriginAccessControlCommandError = async (output, context) => {
|
|
3241
|
+
const parsedOutput = {
|
|
3242
|
+
...output,
|
|
3243
|
+
body: await parseBody(output.body, context),
|
|
3244
|
+
};
|
|
3245
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3246
|
+
switch (errorCode) {
|
|
3247
|
+
case "InvalidArgument":
|
|
3248
|
+
case "com.amazonaws.cloudfront#InvalidArgument":
|
|
3249
|
+
throw await deserializeAws_restXmlInvalidArgumentResponse(parsedOutput, context);
|
|
3250
|
+
case "OriginAccessControlAlreadyExists":
|
|
3251
|
+
case "com.amazonaws.cloudfront#OriginAccessControlAlreadyExists":
|
|
3252
|
+
throw await deserializeAws_restXmlOriginAccessControlAlreadyExistsResponse(parsedOutput, context);
|
|
3253
|
+
case "TooManyOriginAccessControls":
|
|
3254
|
+
case "com.amazonaws.cloudfront#TooManyOriginAccessControls":
|
|
3255
|
+
throw await deserializeAws_restXmlTooManyOriginAccessControlsResponse(parsedOutput, context);
|
|
3256
|
+
default:
|
|
3257
|
+
const parsedBody = parsedOutput.body;
|
|
3258
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3259
|
+
output,
|
|
3260
|
+
parsedBody: parsedBody.Error,
|
|
3261
|
+
exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
|
|
3262
|
+
errorCode,
|
|
3263
|
+
});
|
|
3264
|
+
}
|
|
3265
|
+
};
|
|
3071
3266
|
const deserializeAws_restXmlCreateOriginRequestPolicyCommand = async (output, context) => {
|
|
3072
3267
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
3073
3268
|
return deserializeAws_restXmlCreateOriginRequestPolicyCommandError(output, context);
|
|
@@ -3294,6 +3489,9 @@ const deserializeAws_restXmlCreateStreamingDistributionCommandError = async (out
|
|
|
3294
3489
|
case "InvalidOrigin":
|
|
3295
3490
|
case "com.amazonaws.cloudfront#InvalidOrigin":
|
|
3296
3491
|
throw await deserializeAws_restXmlInvalidOriginResponse(parsedOutput, context);
|
|
3492
|
+
case "InvalidOriginAccessControl":
|
|
3493
|
+
case "com.amazonaws.cloudfront#InvalidOriginAccessControl":
|
|
3494
|
+
throw await deserializeAws_restXmlInvalidOriginAccessControlResponse(parsedOutput, context);
|
|
3297
3495
|
case "InvalidOriginAccessIdentity":
|
|
3298
3496
|
case "com.amazonaws.cloudfront#InvalidOriginAccessIdentity":
|
|
3299
3497
|
throw await deserializeAws_restXmlInvalidOriginAccessIdentityResponse(parsedOutput, context);
|
|
@@ -3361,6 +3559,9 @@ const deserializeAws_restXmlCreateStreamingDistributionWithTagsCommandError = as
|
|
|
3361
3559
|
case "InvalidOrigin":
|
|
3362
3560
|
case "com.amazonaws.cloudfront#InvalidOrigin":
|
|
3363
3561
|
throw await deserializeAws_restXmlInvalidOriginResponse(parsedOutput, context);
|
|
3562
|
+
case "InvalidOriginAccessControl":
|
|
3563
|
+
case "com.amazonaws.cloudfront#InvalidOriginAccessControl":
|
|
3564
|
+
throw await deserializeAws_restXmlInvalidOriginAccessControlResponse(parsedOutput, context);
|
|
3364
3565
|
case "InvalidOriginAccessIdentity":
|
|
3365
3566
|
case "com.amazonaws.cloudfront#InvalidOriginAccessIdentity":
|
|
3366
3567
|
throw await deserializeAws_restXmlInvalidOriginAccessIdentityResponse(parsedOutput, context);
|
|
@@ -3720,6 +3921,9 @@ const deserializeAws_restXmlDeleteMonitoringSubscriptionCommandError = async (ou
|
|
|
3720
3921
|
case "NoSuchDistribution":
|
|
3721
3922
|
case "com.amazonaws.cloudfront#NoSuchDistribution":
|
|
3722
3923
|
throw await deserializeAws_restXmlNoSuchDistributionResponse(parsedOutput, context);
|
|
3924
|
+
case "NoSuchMonitoringSubscription":
|
|
3925
|
+
case "com.amazonaws.cloudfront#NoSuchMonitoringSubscription":
|
|
3926
|
+
throw await deserializeAws_restXmlNoSuchMonitoringSubscriptionResponse(parsedOutput, context);
|
|
3723
3927
|
case "UnsupportedOperation":
|
|
3724
3928
|
case "com.amazonaws.cloudfront#UnsupportedOperation":
|
|
3725
3929
|
throw await deserializeAws_restXmlUnsupportedOperationResponse(parsedOutput, context);
|
|
@@ -3733,6 +3937,49 @@ const deserializeAws_restXmlDeleteMonitoringSubscriptionCommandError = async (ou
|
|
|
3733
3937
|
});
|
|
3734
3938
|
}
|
|
3735
3939
|
};
|
|
3940
|
+
const deserializeAws_restXmlDeleteOriginAccessControlCommand = async (output, context) => {
|
|
3941
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
3942
|
+
return deserializeAws_restXmlDeleteOriginAccessControlCommandError(output, context);
|
|
3943
|
+
}
|
|
3944
|
+
const contents = map({
|
|
3945
|
+
$metadata: deserializeMetadata(output),
|
|
3946
|
+
});
|
|
3947
|
+
await collectBody(output.body, context);
|
|
3948
|
+
return contents;
|
|
3949
|
+
};
|
|
3950
|
+
exports.deserializeAws_restXmlDeleteOriginAccessControlCommand = deserializeAws_restXmlDeleteOriginAccessControlCommand;
|
|
3951
|
+
const deserializeAws_restXmlDeleteOriginAccessControlCommandError = async (output, context) => {
|
|
3952
|
+
const parsedOutput = {
|
|
3953
|
+
...output,
|
|
3954
|
+
body: await parseBody(output.body, context),
|
|
3955
|
+
};
|
|
3956
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3957
|
+
switch (errorCode) {
|
|
3958
|
+
case "AccessDenied":
|
|
3959
|
+
case "com.amazonaws.cloudfront#AccessDenied":
|
|
3960
|
+
throw await deserializeAws_restXmlAccessDeniedResponse(parsedOutput, context);
|
|
3961
|
+
case "InvalidIfMatchVersion":
|
|
3962
|
+
case "com.amazonaws.cloudfront#InvalidIfMatchVersion":
|
|
3963
|
+
throw await deserializeAws_restXmlInvalidIfMatchVersionResponse(parsedOutput, context);
|
|
3964
|
+
case "NoSuchOriginAccessControl":
|
|
3965
|
+
case "com.amazonaws.cloudfront#NoSuchOriginAccessControl":
|
|
3966
|
+
throw await deserializeAws_restXmlNoSuchOriginAccessControlResponse(parsedOutput, context);
|
|
3967
|
+
case "OriginAccessControlInUse":
|
|
3968
|
+
case "com.amazonaws.cloudfront#OriginAccessControlInUse":
|
|
3969
|
+
throw await deserializeAws_restXmlOriginAccessControlInUseResponse(parsedOutput, context);
|
|
3970
|
+
case "PreconditionFailed":
|
|
3971
|
+
case "com.amazonaws.cloudfront#PreconditionFailed":
|
|
3972
|
+
throw await deserializeAws_restXmlPreconditionFailedResponse(parsedOutput, context);
|
|
3973
|
+
default:
|
|
3974
|
+
const parsedBody = parsedOutput.body;
|
|
3975
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3976
|
+
output,
|
|
3977
|
+
parsedBody: parsedBody.Error,
|
|
3978
|
+
exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
|
|
3979
|
+
errorCode,
|
|
3980
|
+
});
|
|
3981
|
+
}
|
|
3982
|
+
};
|
|
3736
3983
|
const deserializeAws_restXmlDeleteOriginRequestPolicyCommand = async (output, context) => {
|
|
3737
3984
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
3738
3985
|
return deserializeAws_restXmlDeleteOriginRequestPolicyCommandError(output, context);
|
|
@@ -4513,6 +4760,9 @@ const deserializeAws_restXmlGetMonitoringSubscriptionCommandError = async (outpu
|
|
|
4513
4760
|
case "NoSuchDistribution":
|
|
4514
4761
|
case "com.amazonaws.cloudfront#NoSuchDistribution":
|
|
4515
4762
|
throw await deserializeAws_restXmlNoSuchDistributionResponse(parsedOutput, context);
|
|
4763
|
+
case "NoSuchMonitoringSubscription":
|
|
4764
|
+
case "com.amazonaws.cloudfront#NoSuchMonitoringSubscription":
|
|
4765
|
+
throw await deserializeAws_restXmlNoSuchMonitoringSubscriptionResponse(parsedOutput, context);
|
|
4516
4766
|
case "UnsupportedOperation":
|
|
4517
4767
|
case "com.amazonaws.cloudfront#UnsupportedOperation":
|
|
4518
4768
|
throw await deserializeAws_restXmlUnsupportedOperationResponse(parsedOutput, context);
|
|
@@ -4526,6 +4776,78 @@ const deserializeAws_restXmlGetMonitoringSubscriptionCommandError = async (outpu
|
|
|
4526
4776
|
});
|
|
4527
4777
|
}
|
|
4528
4778
|
};
|
|
4779
|
+
const deserializeAws_restXmlGetOriginAccessControlCommand = async (output, context) => {
|
|
4780
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4781
|
+
return deserializeAws_restXmlGetOriginAccessControlCommandError(output, context);
|
|
4782
|
+
}
|
|
4783
|
+
const contents = map({
|
|
4784
|
+
$metadata: deserializeMetadata(output),
|
|
4785
|
+
ETag: [, output.headers["etag"]],
|
|
4786
|
+
});
|
|
4787
|
+
const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
|
|
4788
|
+
contents.OriginAccessControl = deserializeAws_restXmlOriginAccessControl(data, context);
|
|
4789
|
+
return contents;
|
|
4790
|
+
};
|
|
4791
|
+
exports.deserializeAws_restXmlGetOriginAccessControlCommand = deserializeAws_restXmlGetOriginAccessControlCommand;
|
|
4792
|
+
const deserializeAws_restXmlGetOriginAccessControlCommandError = async (output, context) => {
|
|
4793
|
+
const parsedOutput = {
|
|
4794
|
+
...output,
|
|
4795
|
+
body: await parseBody(output.body, context),
|
|
4796
|
+
};
|
|
4797
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4798
|
+
switch (errorCode) {
|
|
4799
|
+
case "AccessDenied":
|
|
4800
|
+
case "com.amazonaws.cloudfront#AccessDenied":
|
|
4801
|
+
throw await deserializeAws_restXmlAccessDeniedResponse(parsedOutput, context);
|
|
4802
|
+
case "NoSuchOriginAccessControl":
|
|
4803
|
+
case "com.amazonaws.cloudfront#NoSuchOriginAccessControl":
|
|
4804
|
+
throw await deserializeAws_restXmlNoSuchOriginAccessControlResponse(parsedOutput, context);
|
|
4805
|
+
default:
|
|
4806
|
+
const parsedBody = parsedOutput.body;
|
|
4807
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4808
|
+
output,
|
|
4809
|
+
parsedBody: parsedBody.Error,
|
|
4810
|
+
exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
|
|
4811
|
+
errorCode,
|
|
4812
|
+
});
|
|
4813
|
+
}
|
|
4814
|
+
};
|
|
4815
|
+
const deserializeAws_restXmlGetOriginAccessControlConfigCommand = async (output, context) => {
|
|
4816
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4817
|
+
return deserializeAws_restXmlGetOriginAccessControlConfigCommandError(output, context);
|
|
4818
|
+
}
|
|
4819
|
+
const contents = map({
|
|
4820
|
+
$metadata: deserializeMetadata(output),
|
|
4821
|
+
ETag: [, output.headers["etag"]],
|
|
4822
|
+
});
|
|
4823
|
+
const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
|
|
4824
|
+
contents.OriginAccessControlConfig = deserializeAws_restXmlOriginAccessControlConfig(data, context);
|
|
4825
|
+
return contents;
|
|
4826
|
+
};
|
|
4827
|
+
exports.deserializeAws_restXmlGetOriginAccessControlConfigCommand = deserializeAws_restXmlGetOriginAccessControlConfigCommand;
|
|
4828
|
+
const deserializeAws_restXmlGetOriginAccessControlConfigCommandError = async (output, context) => {
|
|
4829
|
+
const parsedOutput = {
|
|
4830
|
+
...output,
|
|
4831
|
+
body: await parseBody(output.body, context),
|
|
4832
|
+
};
|
|
4833
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4834
|
+
switch (errorCode) {
|
|
4835
|
+
case "AccessDenied":
|
|
4836
|
+
case "com.amazonaws.cloudfront#AccessDenied":
|
|
4837
|
+
throw await deserializeAws_restXmlAccessDeniedResponse(parsedOutput, context);
|
|
4838
|
+
case "NoSuchOriginAccessControl":
|
|
4839
|
+
case "com.amazonaws.cloudfront#NoSuchOriginAccessControl":
|
|
4840
|
+
throw await deserializeAws_restXmlNoSuchOriginAccessControlResponse(parsedOutput, context);
|
|
4841
|
+
default:
|
|
4842
|
+
const parsedBody = parsedOutput.body;
|
|
4843
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4844
|
+
output,
|
|
4845
|
+
parsedBody: parsedBody.Error,
|
|
4846
|
+
exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
|
|
4847
|
+
errorCode,
|
|
4848
|
+
});
|
|
4849
|
+
}
|
|
4850
|
+
};
|
|
4529
4851
|
const deserializeAws_restXmlGetOriginRequestPolicyCommand = async (output, context) => {
|
|
4530
4852
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4531
4853
|
return deserializeAws_restXmlGetOriginRequestPolicyCommandError(output, context);
|
|
@@ -5376,6 +5698,38 @@ const deserializeAws_restXmlListKeyGroupsCommandError = async (output, context)
|
|
|
5376
5698
|
});
|
|
5377
5699
|
}
|
|
5378
5700
|
};
|
|
5701
|
+
const deserializeAws_restXmlListOriginAccessControlsCommand = async (output, context) => {
|
|
5702
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5703
|
+
return deserializeAws_restXmlListOriginAccessControlsCommandError(output, context);
|
|
5704
|
+
}
|
|
5705
|
+
const contents = map({
|
|
5706
|
+
$metadata: deserializeMetadata(output),
|
|
5707
|
+
});
|
|
5708
|
+
const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
|
|
5709
|
+
contents.OriginAccessControlList = deserializeAws_restXmlOriginAccessControlList(data, context);
|
|
5710
|
+
return contents;
|
|
5711
|
+
};
|
|
5712
|
+
exports.deserializeAws_restXmlListOriginAccessControlsCommand = deserializeAws_restXmlListOriginAccessControlsCommand;
|
|
5713
|
+
const deserializeAws_restXmlListOriginAccessControlsCommandError = async (output, context) => {
|
|
5714
|
+
const parsedOutput = {
|
|
5715
|
+
...output,
|
|
5716
|
+
body: await parseBody(output.body, context),
|
|
5717
|
+
};
|
|
5718
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5719
|
+
switch (errorCode) {
|
|
5720
|
+
case "InvalidArgument":
|
|
5721
|
+
case "com.amazonaws.cloudfront#InvalidArgument":
|
|
5722
|
+
throw await deserializeAws_restXmlInvalidArgumentResponse(parsedOutput, context);
|
|
5723
|
+
default:
|
|
5724
|
+
const parsedBody = parsedOutput.body;
|
|
5725
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
5726
|
+
output,
|
|
5727
|
+
parsedBody: parsedBody.Error,
|
|
5728
|
+
exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
|
|
5729
|
+
errorCode,
|
|
5730
|
+
});
|
|
5731
|
+
}
|
|
5732
|
+
};
|
|
5379
5733
|
const deserializeAws_restXmlListOriginRequestPoliciesCommand = async (output, context) => {
|
|
5380
5734
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5381
5735
|
return deserializeAws_restXmlListOriginRequestPoliciesCommandError(output, context);
|
|
@@ -5909,6 +6263,9 @@ const deserializeAws_restXmlUpdateDistributionCommandError = async (output, cont
|
|
|
5909
6263
|
case "IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior":
|
|
5910
6264
|
case "com.amazonaws.cloudfront#IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior":
|
|
5911
6265
|
throw await deserializeAws_restXmlIllegalFieldLevelEncryptionConfigAssociationWithCacheBehaviorResponse(parsedOutput, context);
|
|
6266
|
+
case "IllegalOriginAccessConfiguration":
|
|
6267
|
+
case "com.amazonaws.cloudfront#IllegalOriginAccessConfiguration":
|
|
6268
|
+
throw await deserializeAws_restXmlIllegalOriginAccessConfigurationResponse(parsedOutput, context);
|
|
5912
6269
|
case "IllegalUpdate":
|
|
5913
6270
|
case "com.amazonaws.cloudfront#IllegalUpdate":
|
|
5914
6271
|
throw await deserializeAws_restXmlIllegalUpdateResponse(parsedOutput, context);
|
|
@@ -5921,6 +6278,9 @@ const deserializeAws_restXmlUpdateDistributionCommandError = async (output, cont
|
|
|
5921
6278
|
case "InvalidDefaultRootObject":
|
|
5922
6279
|
case "com.amazonaws.cloudfront#InvalidDefaultRootObject":
|
|
5923
6280
|
throw await deserializeAws_restXmlInvalidDefaultRootObjectResponse(parsedOutput, context);
|
|
6281
|
+
case "InvalidDomainNameForOriginAccessControl":
|
|
6282
|
+
case "com.amazonaws.cloudfront#InvalidDomainNameForOriginAccessControl":
|
|
6283
|
+
throw await deserializeAws_restXmlInvalidDomainNameForOriginAccessControlResponse(parsedOutput, context);
|
|
5924
6284
|
case "InvalidErrorCode":
|
|
5925
6285
|
case "com.amazonaws.cloudfront#InvalidErrorCode":
|
|
5926
6286
|
throw await deserializeAws_restXmlInvalidErrorCodeResponse(parsedOutput, context);
|
|
@@ -5948,6 +6308,9 @@ const deserializeAws_restXmlUpdateDistributionCommandError = async (output, cont
|
|
|
5948
6308
|
case "InvalidMinimumProtocolVersion":
|
|
5949
6309
|
case "com.amazonaws.cloudfront#InvalidMinimumProtocolVersion":
|
|
5950
6310
|
throw await deserializeAws_restXmlInvalidMinimumProtocolVersionResponse(parsedOutput, context);
|
|
6311
|
+
case "InvalidOriginAccessControl":
|
|
6312
|
+
case "com.amazonaws.cloudfront#InvalidOriginAccessControl":
|
|
6313
|
+
throw await deserializeAws_restXmlInvalidOriginAccessControlResponse(parsedOutput, context);
|
|
5951
6314
|
case "InvalidOriginAccessIdentity":
|
|
5952
6315
|
case "com.amazonaws.cloudfront#InvalidOriginAccessIdentity":
|
|
5953
6316
|
throw await deserializeAws_restXmlInvalidOriginAccessIdentityResponse(parsedOutput, context);
|
|
@@ -6312,6 +6675,57 @@ const deserializeAws_restXmlUpdateKeyGroupCommandError = async (output, context)
|
|
|
6312
6675
|
});
|
|
6313
6676
|
}
|
|
6314
6677
|
};
|
|
6678
|
+
const deserializeAws_restXmlUpdateOriginAccessControlCommand = async (output, context) => {
|
|
6679
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6680
|
+
return deserializeAws_restXmlUpdateOriginAccessControlCommandError(output, context);
|
|
6681
|
+
}
|
|
6682
|
+
const contents = map({
|
|
6683
|
+
$metadata: deserializeMetadata(output),
|
|
6684
|
+
ETag: [, output.headers["etag"]],
|
|
6685
|
+
});
|
|
6686
|
+
const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
|
|
6687
|
+
contents.OriginAccessControl = deserializeAws_restXmlOriginAccessControl(data, context);
|
|
6688
|
+
return contents;
|
|
6689
|
+
};
|
|
6690
|
+
exports.deserializeAws_restXmlUpdateOriginAccessControlCommand = deserializeAws_restXmlUpdateOriginAccessControlCommand;
|
|
6691
|
+
const deserializeAws_restXmlUpdateOriginAccessControlCommandError = async (output, context) => {
|
|
6692
|
+
const parsedOutput = {
|
|
6693
|
+
...output,
|
|
6694
|
+
body: await parseBody(output.body, context),
|
|
6695
|
+
};
|
|
6696
|
+
const errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
6697
|
+
switch (errorCode) {
|
|
6698
|
+
case "AccessDenied":
|
|
6699
|
+
case "com.amazonaws.cloudfront#AccessDenied":
|
|
6700
|
+
throw await deserializeAws_restXmlAccessDeniedResponse(parsedOutput, context);
|
|
6701
|
+
case "IllegalUpdate":
|
|
6702
|
+
case "com.amazonaws.cloudfront#IllegalUpdate":
|
|
6703
|
+
throw await deserializeAws_restXmlIllegalUpdateResponse(parsedOutput, context);
|
|
6704
|
+
case "InvalidArgument":
|
|
6705
|
+
case "com.amazonaws.cloudfront#InvalidArgument":
|
|
6706
|
+
throw await deserializeAws_restXmlInvalidArgumentResponse(parsedOutput, context);
|
|
6707
|
+
case "InvalidIfMatchVersion":
|
|
6708
|
+
case "com.amazonaws.cloudfront#InvalidIfMatchVersion":
|
|
6709
|
+
throw await deserializeAws_restXmlInvalidIfMatchVersionResponse(parsedOutput, context);
|
|
6710
|
+
case "NoSuchOriginAccessControl":
|
|
6711
|
+
case "com.amazonaws.cloudfront#NoSuchOriginAccessControl":
|
|
6712
|
+
throw await deserializeAws_restXmlNoSuchOriginAccessControlResponse(parsedOutput, context);
|
|
6713
|
+
case "OriginAccessControlAlreadyExists":
|
|
6714
|
+
case "com.amazonaws.cloudfront#OriginAccessControlAlreadyExists":
|
|
6715
|
+
throw await deserializeAws_restXmlOriginAccessControlAlreadyExistsResponse(parsedOutput, context);
|
|
6716
|
+
case "PreconditionFailed":
|
|
6717
|
+
case "com.amazonaws.cloudfront#PreconditionFailed":
|
|
6718
|
+
throw await deserializeAws_restXmlPreconditionFailedResponse(parsedOutput, context);
|
|
6719
|
+
default:
|
|
6720
|
+
const parsedBody = parsedOutput.body;
|
|
6721
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
6722
|
+
output,
|
|
6723
|
+
parsedBody: parsedBody.Error,
|
|
6724
|
+
exceptionCtor: CloudFrontServiceException_1.CloudFrontServiceException,
|
|
6725
|
+
errorCode,
|
|
6726
|
+
});
|
|
6727
|
+
}
|
|
6728
|
+
};
|
|
6315
6729
|
const deserializeAws_restXmlUpdateOriginRequestPolicyCommand = async (output, context) => {
|
|
6316
6730
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6317
6731
|
return deserializeAws_restXmlUpdateOriginRequestPolicyCommandError(output, context);
|
|
@@ -6564,6 +6978,9 @@ const deserializeAws_restXmlUpdateStreamingDistributionCommandError = async (out
|
|
|
6564
6978
|
case "InvalidIfMatchVersion":
|
|
6565
6979
|
case "com.amazonaws.cloudfront#InvalidIfMatchVersion":
|
|
6566
6980
|
throw await deserializeAws_restXmlInvalidIfMatchVersionResponse(parsedOutput, context);
|
|
6981
|
+
case "InvalidOriginAccessControl":
|
|
6982
|
+
case "com.amazonaws.cloudfront#InvalidOriginAccessControl":
|
|
6983
|
+
throw await deserializeAws_restXmlInvalidOriginAccessControlResponse(parsedOutput, context);
|
|
6567
6984
|
case "InvalidOriginAccessIdentity":
|
|
6568
6985
|
case "com.amazonaws.cloudfront#InvalidOriginAccessIdentity":
|
|
6569
6986
|
throw await deserializeAws_restXmlInvalidOriginAccessIdentityResponse(parsedOutput, context);
|
|
@@ -6674,7 +7091,7 @@ const deserializeAws_restXmlCloudFrontOriginAccessIdentityInUseResponse = async
|
|
|
6674
7091
|
if (data["Message"] !== undefined) {
|
|
6675
7092
|
contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
|
|
6676
7093
|
}
|
|
6677
|
-
const exception = new
|
|
7094
|
+
const exception = new models_1_1.CloudFrontOriginAccessIdentityInUse({
|
|
6678
7095
|
$metadata: deserializeMetadata(parsedOutput),
|
|
6679
7096
|
...contents,
|
|
6680
7097
|
});
|
|
@@ -6710,7 +7127,7 @@ const deserializeAws_restXmlDistributionNotDisabledResponse = async (parsedOutpu
|
|
|
6710
7127
|
if (data["Message"] !== undefined) {
|
|
6711
7128
|
contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
|
|
6712
7129
|
}
|
|
6713
|
-
const exception = new
|
|
7130
|
+
const exception = new models_1_1.DistributionNotDisabled({
|
|
6714
7131
|
$metadata: deserializeMetadata(parsedOutput),
|
|
6715
7132
|
...contents,
|
|
6716
7133
|
});
|
|
@@ -6734,7 +7151,7 @@ const deserializeAws_restXmlFieldLevelEncryptionConfigInUseResponse = async (par
|
|
|
6734
7151
|
if (data["Message"] !== undefined) {
|
|
6735
7152
|
contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
|
|
6736
7153
|
}
|
|
6737
|
-
const exception = new
|
|
7154
|
+
const exception = new models_1_1.FieldLevelEncryptionConfigInUse({
|
|
6738
7155
|
$metadata: deserializeMetadata(parsedOutput),
|
|
6739
7156
|
...contents,
|
|
6740
7157
|
});
|
|
@@ -6758,7 +7175,7 @@ const deserializeAws_restXmlFieldLevelEncryptionProfileInUseResponse = async (pa
|
|
|
6758
7175
|
if (data["Message"] !== undefined) {
|
|
6759
7176
|
contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
|
|
6760
7177
|
}
|
|
6761
|
-
const exception = new
|
|
7178
|
+
const exception = new models_1_1.FieldLevelEncryptionProfileInUse({
|
|
6762
7179
|
$metadata: deserializeMetadata(parsedOutput),
|
|
6763
7180
|
...contents,
|
|
6764
7181
|
});
|
|
@@ -6794,7 +7211,7 @@ const deserializeAws_restXmlFunctionInUseResponse = async (parsedOutput, context
|
|
|
6794
7211
|
if (data["Message"] !== undefined) {
|
|
6795
7212
|
contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
|
|
6796
7213
|
}
|
|
6797
|
-
const exception = new
|
|
7214
|
+
const exception = new models_1_1.FunctionInUse({
|
|
6798
7215
|
$metadata: deserializeMetadata(parsedOutput),
|
|
6799
7216
|
...contents,
|
|
6800
7217
|
});
|
|
@@ -6836,6 +7253,18 @@ const deserializeAws_restXmlIllegalFieldLevelEncryptionConfigAssociationWithCach
|
|
|
6836
7253
|
});
|
|
6837
7254
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
|
|
6838
7255
|
};
|
|
7256
|
+
const deserializeAws_restXmlIllegalOriginAccessConfigurationResponse = async (parsedOutput, context) => {
|
|
7257
|
+
const contents = map({});
|
|
7258
|
+
const data = parsedOutput.body.Error;
|
|
7259
|
+
if (data["Message"] !== undefined) {
|
|
7260
|
+
contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
|
|
7261
|
+
}
|
|
7262
|
+
const exception = new models_0_1.IllegalOriginAccessConfiguration({
|
|
7263
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
7264
|
+
...contents,
|
|
7265
|
+
});
|
|
7266
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
|
|
7267
|
+
};
|
|
6839
7268
|
const deserializeAws_restXmlIllegalUpdateResponse = async (parsedOutput, context) => {
|
|
6840
7269
|
const contents = map({});
|
|
6841
7270
|
const data = parsedOutput.body.Error;
|
|
@@ -6884,6 +7313,18 @@ const deserializeAws_restXmlInvalidDefaultRootObjectResponse = async (parsedOutp
|
|
|
6884
7313
|
});
|
|
6885
7314
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
|
|
6886
7315
|
};
|
|
7316
|
+
const deserializeAws_restXmlInvalidDomainNameForOriginAccessControlResponse = async (parsedOutput, context) => {
|
|
7317
|
+
const contents = map({});
|
|
7318
|
+
const data = parsedOutput.body.Error;
|
|
7319
|
+
if (data["Message"] !== undefined) {
|
|
7320
|
+
contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
|
|
7321
|
+
}
|
|
7322
|
+
const exception = new models_0_1.InvalidDomainNameForOriginAccessControl({
|
|
7323
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
7324
|
+
...contents,
|
|
7325
|
+
});
|
|
7326
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
|
|
7327
|
+
};
|
|
6887
7328
|
const deserializeAws_restXmlInvalidErrorCodeResponse = async (parsedOutput, context) => {
|
|
6888
7329
|
const contents = map({});
|
|
6889
7330
|
const data = parsedOutput.body.Error;
|
|
@@ -7004,6 +7445,18 @@ const deserializeAws_restXmlInvalidOriginResponse = async (parsedOutput, context
|
|
|
7004
7445
|
});
|
|
7005
7446
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
|
|
7006
7447
|
};
|
|
7448
|
+
const deserializeAws_restXmlInvalidOriginAccessControlResponse = async (parsedOutput, context) => {
|
|
7449
|
+
const contents = map({});
|
|
7450
|
+
const data = parsedOutput.body.Error;
|
|
7451
|
+
if (data["Message"] !== undefined) {
|
|
7452
|
+
contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
|
|
7453
|
+
}
|
|
7454
|
+
const exception = new models_0_1.InvalidOriginAccessControl({
|
|
7455
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
7456
|
+
...contents,
|
|
7457
|
+
});
|
|
7458
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
|
|
7459
|
+
};
|
|
7007
7460
|
const deserializeAws_restXmlInvalidOriginAccessIdentityResponse = async (parsedOutput, context) => {
|
|
7008
7461
|
const contents = map({});
|
|
7009
7462
|
const data = parsedOutput.body.Error;
|
|
@@ -7172,6 +7625,18 @@ const deserializeAws_restXmlMissingBodyResponse = async (parsedOutput, context)
|
|
|
7172
7625
|
});
|
|
7173
7626
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
|
|
7174
7627
|
};
|
|
7628
|
+
const deserializeAws_restXmlMonitoringSubscriptionAlreadyExistsResponse = async (parsedOutput, context) => {
|
|
7629
|
+
const contents = map({});
|
|
7630
|
+
const data = parsedOutput.body.Error;
|
|
7631
|
+
if (data["Message"] !== undefined) {
|
|
7632
|
+
contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
|
|
7633
|
+
}
|
|
7634
|
+
const exception = new models_0_1.MonitoringSubscriptionAlreadyExists({
|
|
7635
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
7636
|
+
...contents,
|
|
7637
|
+
});
|
|
7638
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
|
|
7639
|
+
};
|
|
7175
7640
|
const deserializeAws_restXmlNoSuchCachePolicyResponse = async (parsedOutput, context) => {
|
|
7176
7641
|
const contents = map({});
|
|
7177
7642
|
const data = parsedOutput.body.Error;
|
|
@@ -7190,7 +7655,7 @@ const deserializeAws_restXmlNoSuchCloudFrontOriginAccessIdentityResponse = async
|
|
|
7190
7655
|
if (data["Message"] !== undefined) {
|
|
7191
7656
|
contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
|
|
7192
7657
|
}
|
|
7193
|
-
const exception = new
|
|
7658
|
+
const exception = new models_1_1.NoSuchCloudFrontOriginAccessIdentity({
|
|
7194
7659
|
$metadata: deserializeMetadata(parsedOutput),
|
|
7195
7660
|
...contents,
|
|
7196
7661
|
});
|
|
@@ -7238,7 +7703,7 @@ const deserializeAws_restXmlNoSuchFunctionExistsResponse = async (parsedOutput,
|
|
|
7238
7703
|
if (data["Message"] !== undefined) {
|
|
7239
7704
|
contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
|
|
7240
7705
|
}
|
|
7241
|
-
const exception = new
|
|
7706
|
+
const exception = new models_1_1.NoSuchFunctionExists({
|
|
7242
7707
|
$metadata: deserializeMetadata(parsedOutput),
|
|
7243
7708
|
...contents,
|
|
7244
7709
|
});
|
|
@@ -7256,6 +7721,18 @@ const deserializeAws_restXmlNoSuchInvalidationResponse = async (parsedOutput, co
|
|
|
7256
7721
|
});
|
|
7257
7722
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
|
|
7258
7723
|
};
|
|
7724
|
+
const deserializeAws_restXmlNoSuchMonitoringSubscriptionResponse = async (parsedOutput, context) => {
|
|
7725
|
+
const contents = map({});
|
|
7726
|
+
const data = parsedOutput.body.Error;
|
|
7727
|
+
if (data["Message"] !== undefined) {
|
|
7728
|
+
contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
|
|
7729
|
+
}
|
|
7730
|
+
const exception = new models_1_1.NoSuchMonitoringSubscription({
|
|
7731
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
7732
|
+
...contents,
|
|
7733
|
+
});
|
|
7734
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
|
|
7735
|
+
};
|
|
7259
7736
|
const deserializeAws_restXmlNoSuchOriginResponse = async (parsedOutput, context) => {
|
|
7260
7737
|
const contents = map({});
|
|
7261
7738
|
const data = parsedOutput.body.Error;
|
|
@@ -7268,6 +7745,18 @@ const deserializeAws_restXmlNoSuchOriginResponse = async (parsedOutput, context)
|
|
|
7268
7745
|
});
|
|
7269
7746
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
|
|
7270
7747
|
};
|
|
7748
|
+
const deserializeAws_restXmlNoSuchOriginAccessControlResponse = async (parsedOutput, context) => {
|
|
7749
|
+
const contents = map({});
|
|
7750
|
+
const data = parsedOutput.body.Error;
|
|
7751
|
+
if (data["Message"] !== undefined) {
|
|
7752
|
+
contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
|
|
7753
|
+
}
|
|
7754
|
+
const exception = new models_1_1.NoSuchOriginAccessControl({
|
|
7755
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
7756
|
+
...contents,
|
|
7757
|
+
});
|
|
7758
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
|
|
7759
|
+
};
|
|
7271
7760
|
const deserializeAws_restXmlNoSuchOriginRequestPolicyResponse = async (parsedOutput, context) => {
|
|
7272
7761
|
const contents = map({});
|
|
7273
7762
|
const data = parsedOutput.body.Error;
|
|
@@ -7310,7 +7799,7 @@ const deserializeAws_restXmlNoSuchResourceResponse = async (parsedOutput, contex
|
|
|
7310
7799
|
if (data["Message"] !== undefined) {
|
|
7311
7800
|
contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
|
|
7312
7801
|
}
|
|
7313
|
-
const exception = new
|
|
7802
|
+
const exception = new models_1_1.NoSuchResource({
|
|
7314
7803
|
$metadata: deserializeMetadata(parsedOutput),
|
|
7315
7804
|
...contents,
|
|
7316
7805
|
});
|
|
@@ -7340,6 +7829,30 @@ const deserializeAws_restXmlNoSuchStreamingDistributionResponse = async (parsedO
|
|
|
7340
7829
|
});
|
|
7341
7830
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
|
|
7342
7831
|
};
|
|
7832
|
+
const deserializeAws_restXmlOriginAccessControlAlreadyExistsResponse = async (parsedOutput, context) => {
|
|
7833
|
+
const contents = map({});
|
|
7834
|
+
const data = parsedOutput.body.Error;
|
|
7835
|
+
if (data["Message"] !== undefined) {
|
|
7836
|
+
contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
|
|
7837
|
+
}
|
|
7838
|
+
const exception = new models_0_1.OriginAccessControlAlreadyExists({
|
|
7839
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
7840
|
+
...contents,
|
|
7841
|
+
});
|
|
7842
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
|
|
7843
|
+
};
|
|
7844
|
+
const deserializeAws_restXmlOriginAccessControlInUseResponse = async (parsedOutput, context) => {
|
|
7845
|
+
const contents = map({});
|
|
7846
|
+
const data = parsedOutput.body.Error;
|
|
7847
|
+
if (data["Message"] !== undefined) {
|
|
7848
|
+
contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
|
|
7849
|
+
}
|
|
7850
|
+
const exception = new models_1_1.OriginAccessControlInUse({
|
|
7851
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
7852
|
+
...contents,
|
|
7853
|
+
});
|
|
7854
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
|
|
7855
|
+
};
|
|
7343
7856
|
const deserializeAws_restXmlOriginRequestPolicyAlreadyExistsResponse = async (parsedOutput, context) => {
|
|
7344
7857
|
const contents = map({});
|
|
7345
7858
|
const data = parsedOutput.body.Error;
|
|
@@ -7688,6 +8201,18 @@ const deserializeAws_restXmlTooManyDistributionsAssociatedToKeyGroupResponse = a
|
|
|
7688
8201
|
});
|
|
7689
8202
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
|
|
7690
8203
|
};
|
|
8204
|
+
const deserializeAws_restXmlTooManyDistributionsAssociatedToOriginAccessControlResponse = async (parsedOutput, context) => {
|
|
8205
|
+
const contents = map({});
|
|
8206
|
+
const data = parsedOutput.body.Error;
|
|
8207
|
+
if (data["Message"] !== undefined) {
|
|
8208
|
+
contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
|
|
8209
|
+
}
|
|
8210
|
+
const exception = new models_0_1.TooManyDistributionsAssociatedToOriginAccessControl({
|
|
8211
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
8212
|
+
...contents,
|
|
8213
|
+
});
|
|
8214
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
|
|
8215
|
+
};
|
|
7691
8216
|
const deserializeAws_restXmlTooManyDistributionsAssociatedToOriginRequestPolicyResponse = async (parsedOutput, context) => {
|
|
7692
8217
|
const contents = map({});
|
|
7693
8218
|
const data = parsedOutput.body.Error;
|
|
@@ -7928,6 +8453,18 @@ const deserializeAws_restXmlTooManyLambdaFunctionAssociationsResponse = async (p
|
|
|
7928
8453
|
});
|
|
7929
8454
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
|
|
7930
8455
|
};
|
|
8456
|
+
const deserializeAws_restXmlTooManyOriginAccessControlsResponse = async (parsedOutput, context) => {
|
|
8457
|
+
const contents = map({});
|
|
8458
|
+
const data = parsedOutput.body.Error;
|
|
8459
|
+
if (data["Message"] !== undefined) {
|
|
8460
|
+
contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
|
|
8461
|
+
}
|
|
8462
|
+
const exception = new models_0_1.TooManyOriginAccessControls({
|
|
8463
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
8464
|
+
...contents,
|
|
8465
|
+
});
|
|
8466
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
|
|
8467
|
+
};
|
|
7931
8468
|
const deserializeAws_restXmlTooManyOriginCustomHeadersResponse = async (parsedOutput, context) => {
|
|
7932
8469
|
const contents = map({});
|
|
7933
8470
|
const data = parsedOutput.body.Error;
|
|
@@ -9162,6 +9699,36 @@ const serializeAws_restXmlOrigin = (input, context) => {
|
|
|
9162
9699
|
const node = serializeAws_restXmlOriginShield(input.OriginShield, context).withName("OriginShield");
|
|
9163
9700
|
bodyNode.addChildNode(node);
|
|
9164
9701
|
}
|
|
9702
|
+
if (input.OriginAccessControlId != null) {
|
|
9703
|
+
const node = xml_builder_1.XmlNode.of("string", input.OriginAccessControlId).withName("OriginAccessControlId");
|
|
9704
|
+
bodyNode.addChildNode(node);
|
|
9705
|
+
}
|
|
9706
|
+
return bodyNode;
|
|
9707
|
+
};
|
|
9708
|
+
const serializeAws_restXmlOriginAccessControlConfig = (input, context) => {
|
|
9709
|
+
const bodyNode = new xml_builder_1.XmlNode("OriginAccessControlConfig");
|
|
9710
|
+
if (input.Name != null) {
|
|
9711
|
+
const node = xml_builder_1.XmlNode.of("string", input.Name).withName("Name");
|
|
9712
|
+
bodyNode.addChildNode(node);
|
|
9713
|
+
}
|
|
9714
|
+
if (input.Description != null) {
|
|
9715
|
+
const node = xml_builder_1.XmlNode.of("string", input.Description).withName("Description");
|
|
9716
|
+
bodyNode.addChildNode(node);
|
|
9717
|
+
}
|
|
9718
|
+
if (input.SigningProtocol != null) {
|
|
9719
|
+
const node = xml_builder_1.XmlNode.of("OriginAccessControlSigningProtocols", input.SigningProtocol).withName("SigningProtocol");
|
|
9720
|
+
bodyNode.addChildNode(node);
|
|
9721
|
+
}
|
|
9722
|
+
if (input.SigningBehavior != null) {
|
|
9723
|
+
const node = xml_builder_1.XmlNode.of("OriginAccessControlSigningBehaviors", input.SigningBehavior).withName("SigningBehavior");
|
|
9724
|
+
bodyNode.addChildNode(node);
|
|
9725
|
+
}
|
|
9726
|
+
if (input.OriginAccessControlOriginType != null) {
|
|
9727
|
+
const node = xml_builder_1.XmlNode
|
|
9728
|
+
.of("OriginAccessControlOriginTypes", input.OriginAccessControlOriginType)
|
|
9729
|
+
.withName("OriginAccessControlOriginType");
|
|
9730
|
+
bodyNode.addChildNode(node);
|
|
9731
|
+
}
|
|
9165
9732
|
return bodyNode;
|
|
9166
9733
|
};
|
|
9167
9734
|
const serializeAws_restXmlOriginCustomHeader = (input, context) => {
|
|
@@ -9646,14 +10213,14 @@ const serializeAws_restXmlResponseHeadersPolicyConfig = (input, context) => {
|
|
|
9646
10213
|
const node = serializeAws_restXmlResponseHeadersPolicySecurityHeadersConfig(input.SecurityHeadersConfig, context).withName("SecurityHeadersConfig");
|
|
9647
10214
|
bodyNode.addChildNode(node);
|
|
9648
10215
|
}
|
|
9649
|
-
if (input.CustomHeadersConfig != null) {
|
|
9650
|
-
const node = serializeAws_restXmlResponseHeadersPolicyCustomHeadersConfig(input.CustomHeadersConfig, context).withName("CustomHeadersConfig");
|
|
9651
|
-
bodyNode.addChildNode(node);
|
|
9652
|
-
}
|
|
9653
10216
|
if (input.ServerTimingHeadersConfig != null) {
|
|
9654
10217
|
const node = serializeAws_restXmlResponseHeadersPolicyServerTimingHeadersConfig(input.ServerTimingHeadersConfig, context).withName("ServerTimingHeadersConfig");
|
|
9655
10218
|
bodyNode.addChildNode(node);
|
|
9656
10219
|
}
|
|
10220
|
+
if (input.CustomHeadersConfig != null) {
|
|
10221
|
+
const node = serializeAws_restXmlResponseHeadersPolicyCustomHeadersConfig(input.CustomHeadersConfig, context).withName("CustomHeadersConfig");
|
|
10222
|
+
bodyNode.addChildNode(node);
|
|
10223
|
+
}
|
|
9657
10224
|
return bodyNode;
|
|
9658
10225
|
};
|
|
9659
10226
|
const serializeAws_restXmlResponseHeadersPolicyContentSecurityPolicy = (input, context) => {
|
|
@@ -11968,6 +12535,7 @@ const deserializeAws_restXmlOrigin = (output, context) => {
|
|
|
11968
12535
|
ConnectionAttempts: undefined,
|
|
11969
12536
|
ConnectionTimeout: undefined,
|
|
11970
12537
|
OriginShield: undefined,
|
|
12538
|
+
OriginAccessControlId: undefined,
|
|
11971
12539
|
};
|
|
11972
12540
|
if (output["Id"] !== undefined) {
|
|
11973
12541
|
contents.Id = (0, smithy_client_1.expectString)(output["Id"]);
|
|
@@ -11996,8 +12564,117 @@ const deserializeAws_restXmlOrigin = (output, context) => {
|
|
|
11996
12564
|
if (output["OriginShield"] !== undefined) {
|
|
11997
12565
|
contents.OriginShield = deserializeAws_restXmlOriginShield(output["OriginShield"], context);
|
|
11998
12566
|
}
|
|
12567
|
+
if (output["OriginAccessControlId"] !== undefined) {
|
|
12568
|
+
contents.OriginAccessControlId = (0, smithy_client_1.expectString)(output["OriginAccessControlId"]);
|
|
12569
|
+
}
|
|
12570
|
+
return contents;
|
|
12571
|
+
};
|
|
12572
|
+
const deserializeAws_restXmlOriginAccessControl = (output, context) => {
|
|
12573
|
+
const contents = {
|
|
12574
|
+
Id: undefined,
|
|
12575
|
+
OriginAccessControlConfig: undefined,
|
|
12576
|
+
};
|
|
12577
|
+
if (output["Id"] !== undefined) {
|
|
12578
|
+
contents.Id = (0, smithy_client_1.expectString)(output["Id"]);
|
|
12579
|
+
}
|
|
12580
|
+
if (output["OriginAccessControlConfig"] !== undefined) {
|
|
12581
|
+
contents.OriginAccessControlConfig = deserializeAws_restXmlOriginAccessControlConfig(output["OriginAccessControlConfig"], context);
|
|
12582
|
+
}
|
|
12583
|
+
return contents;
|
|
12584
|
+
};
|
|
12585
|
+
const deserializeAws_restXmlOriginAccessControlConfig = (output, context) => {
|
|
12586
|
+
const contents = {
|
|
12587
|
+
Name: undefined,
|
|
12588
|
+
Description: undefined,
|
|
12589
|
+
SigningProtocol: undefined,
|
|
12590
|
+
SigningBehavior: undefined,
|
|
12591
|
+
OriginAccessControlOriginType: undefined,
|
|
12592
|
+
};
|
|
12593
|
+
if (output["Name"] !== undefined) {
|
|
12594
|
+
contents.Name = (0, smithy_client_1.expectString)(output["Name"]);
|
|
12595
|
+
}
|
|
12596
|
+
if (output["Description"] !== undefined) {
|
|
12597
|
+
contents.Description = (0, smithy_client_1.expectString)(output["Description"]);
|
|
12598
|
+
}
|
|
12599
|
+
if (output["SigningProtocol"] !== undefined) {
|
|
12600
|
+
contents.SigningProtocol = (0, smithy_client_1.expectString)(output["SigningProtocol"]);
|
|
12601
|
+
}
|
|
12602
|
+
if (output["SigningBehavior"] !== undefined) {
|
|
12603
|
+
contents.SigningBehavior = (0, smithy_client_1.expectString)(output["SigningBehavior"]);
|
|
12604
|
+
}
|
|
12605
|
+
if (output["OriginAccessControlOriginType"] !== undefined) {
|
|
12606
|
+
contents.OriginAccessControlOriginType = (0, smithy_client_1.expectString)(output["OriginAccessControlOriginType"]);
|
|
12607
|
+
}
|
|
12608
|
+
return contents;
|
|
12609
|
+
};
|
|
12610
|
+
const deserializeAws_restXmlOriginAccessControlList = (output, context) => {
|
|
12611
|
+
const contents = {
|
|
12612
|
+
Marker: undefined,
|
|
12613
|
+
NextMarker: undefined,
|
|
12614
|
+
MaxItems: undefined,
|
|
12615
|
+
IsTruncated: undefined,
|
|
12616
|
+
Quantity: undefined,
|
|
12617
|
+
Items: undefined,
|
|
12618
|
+
};
|
|
12619
|
+
if (output["Marker"] !== undefined) {
|
|
12620
|
+
contents.Marker = (0, smithy_client_1.expectString)(output["Marker"]);
|
|
12621
|
+
}
|
|
12622
|
+
if (output["NextMarker"] !== undefined) {
|
|
12623
|
+
contents.NextMarker = (0, smithy_client_1.expectString)(output["NextMarker"]);
|
|
12624
|
+
}
|
|
12625
|
+
if (output["MaxItems"] !== undefined) {
|
|
12626
|
+
contents.MaxItems = (0, smithy_client_1.strictParseInt32)(output["MaxItems"]);
|
|
12627
|
+
}
|
|
12628
|
+
if (output["IsTruncated"] !== undefined) {
|
|
12629
|
+
contents.IsTruncated = (0, smithy_client_1.parseBoolean)(output["IsTruncated"]);
|
|
12630
|
+
}
|
|
12631
|
+
if (output["Quantity"] !== undefined) {
|
|
12632
|
+
contents.Quantity = (0, smithy_client_1.strictParseInt32)(output["Quantity"]);
|
|
12633
|
+
}
|
|
12634
|
+
if (output.Items === "") {
|
|
12635
|
+
contents.Items = [];
|
|
12636
|
+
}
|
|
12637
|
+
else if (output["Items"] !== undefined && output["Items"]["OriginAccessControlSummary"] !== undefined) {
|
|
12638
|
+
contents.Items = deserializeAws_restXmlOriginAccessControlSummaryList((0, smithy_client_1.getArrayIfSingleItem)(output["Items"]["OriginAccessControlSummary"]), context);
|
|
12639
|
+
}
|
|
11999
12640
|
return contents;
|
|
12000
12641
|
};
|
|
12642
|
+
const deserializeAws_restXmlOriginAccessControlSummary = (output, context) => {
|
|
12643
|
+
const contents = {
|
|
12644
|
+
Id: undefined,
|
|
12645
|
+
Description: undefined,
|
|
12646
|
+
Name: undefined,
|
|
12647
|
+
SigningProtocol: undefined,
|
|
12648
|
+
SigningBehavior: undefined,
|
|
12649
|
+
OriginAccessControlOriginType: undefined,
|
|
12650
|
+
};
|
|
12651
|
+
if (output["Id"] !== undefined) {
|
|
12652
|
+
contents.Id = (0, smithy_client_1.expectString)(output["Id"]);
|
|
12653
|
+
}
|
|
12654
|
+
if (output["Description"] !== undefined) {
|
|
12655
|
+
contents.Description = (0, smithy_client_1.expectString)(output["Description"]);
|
|
12656
|
+
}
|
|
12657
|
+
if (output["Name"] !== undefined) {
|
|
12658
|
+
contents.Name = (0, smithy_client_1.expectString)(output["Name"]);
|
|
12659
|
+
}
|
|
12660
|
+
if (output["SigningProtocol"] !== undefined) {
|
|
12661
|
+
contents.SigningProtocol = (0, smithy_client_1.expectString)(output["SigningProtocol"]);
|
|
12662
|
+
}
|
|
12663
|
+
if (output["SigningBehavior"] !== undefined) {
|
|
12664
|
+
contents.SigningBehavior = (0, smithy_client_1.expectString)(output["SigningBehavior"]);
|
|
12665
|
+
}
|
|
12666
|
+
if (output["OriginAccessControlOriginType"] !== undefined) {
|
|
12667
|
+
contents.OriginAccessControlOriginType = (0, smithy_client_1.expectString)(output["OriginAccessControlOriginType"]);
|
|
12668
|
+
}
|
|
12669
|
+
return contents;
|
|
12670
|
+
};
|
|
12671
|
+
const deserializeAws_restXmlOriginAccessControlSummaryList = (output, context) => {
|
|
12672
|
+
return (output || [])
|
|
12673
|
+
.filter((e) => e != null)
|
|
12674
|
+
.map((entry) => {
|
|
12675
|
+
return deserializeAws_restXmlOriginAccessControlSummary(entry, context);
|
|
12676
|
+
});
|
|
12677
|
+
};
|
|
12001
12678
|
const deserializeAws_restXmlOriginCustomHeader = (output, context) => {
|
|
12002
12679
|
const contents = {
|
|
12003
12680
|
HeaderName: undefined,
|
|
@@ -12682,8 +13359,8 @@ const deserializeAws_restXmlResponseHeadersPolicyConfig = (output, context) => {
|
|
|
12682
13359
|
Name: undefined,
|
|
12683
13360
|
CorsConfig: undefined,
|
|
12684
13361
|
SecurityHeadersConfig: undefined,
|
|
12685
|
-
CustomHeadersConfig: undefined,
|
|
12686
13362
|
ServerTimingHeadersConfig: undefined,
|
|
13363
|
+
CustomHeadersConfig: undefined,
|
|
12687
13364
|
};
|
|
12688
13365
|
if (output["Comment"] !== undefined) {
|
|
12689
13366
|
contents.Comment = (0, smithy_client_1.expectString)(output["Comment"]);
|
|
@@ -12697,12 +13374,12 @@ const deserializeAws_restXmlResponseHeadersPolicyConfig = (output, context) => {
|
|
|
12697
13374
|
if (output["SecurityHeadersConfig"] !== undefined) {
|
|
12698
13375
|
contents.SecurityHeadersConfig = deserializeAws_restXmlResponseHeadersPolicySecurityHeadersConfig(output["SecurityHeadersConfig"], context);
|
|
12699
13376
|
}
|
|
12700
|
-
if (output["CustomHeadersConfig"] !== undefined) {
|
|
12701
|
-
contents.CustomHeadersConfig = deserializeAws_restXmlResponseHeadersPolicyCustomHeadersConfig(output["CustomHeadersConfig"], context);
|
|
12702
|
-
}
|
|
12703
13377
|
if (output["ServerTimingHeadersConfig"] !== undefined) {
|
|
12704
13378
|
contents.ServerTimingHeadersConfig = deserializeAws_restXmlResponseHeadersPolicyServerTimingHeadersConfig(output["ServerTimingHeadersConfig"], context);
|
|
12705
13379
|
}
|
|
13380
|
+
if (output["CustomHeadersConfig"] !== undefined) {
|
|
13381
|
+
contents.CustomHeadersConfig = deserializeAws_restXmlResponseHeadersPolicyCustomHeadersConfig(output["CustomHeadersConfig"], context);
|
|
13382
|
+
}
|
|
12706
13383
|
return contents;
|
|
12707
13384
|
};
|
|
12708
13385
|
const deserializeAws_restXmlResponseHeadersPolicyContentSecurityPolicy = (output, context) => {
|