@aws-sdk/client-cloudfront 3.154.0 → 3.157.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 +11 -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 +1 -1
|
@@ -5,8 +5,8 @@ import { XmlNode as __XmlNode } from "@aws-sdk/xml-builder";
|
|
|
5
5
|
import { decodeHTML } from "entities";
|
|
6
6
|
import { parse as xmlParse } from "fast-xml-parser";
|
|
7
7
|
import { CloudFrontServiceException as __BaseException } from "../models/CloudFrontServiceException";
|
|
8
|
-
import { AccessDenied, BatchTooLarge, CachePolicyAlreadyExists, CachePolicyInUse, CannotChangeImmutablePublicKeyFields, CloudFrontOriginAccessIdentityAlreadyExists,
|
|
9
|
-
import { NoSuchInvalidation, NoSuchStreamingDistribution, OriginRequestPolicyInUse, PublicKeyInUse, RealtimeLogConfigInUse, ResourceInUse, ResponseHeadersPolicyInUse, StreamingDistributionNotDisabled, TestFunctionFailed, } from "../models/models_1";
|
|
8
|
+
import { AccessDenied, BatchTooLarge, CachePolicyAlreadyExists, CachePolicyInUse, CannotChangeImmutablePublicKeyFields, CloudFrontOriginAccessIdentityAlreadyExists, CNAMEAlreadyExists, DistributionAlreadyExists, FieldLevelEncryptionConfigAlreadyExists, FieldLevelEncryptionProfileAlreadyExists, FieldLevelEncryptionProfileSizeExceeded, FunctionAlreadyExists, FunctionSizeLimitExceeded, IllegalDelete, IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior, IllegalOriginAccessConfiguration, IllegalUpdate, InconsistentQuantities, InvalidArgument, InvalidDefaultRootObject, InvalidDomainNameForOriginAccessControl, InvalidErrorCode, InvalidForwardCookies, InvalidFunctionAssociation, InvalidGeoRestrictionParameter, InvalidHeadersForS3Origin, InvalidIfMatchVersion, InvalidLambdaFunctionAssociation, InvalidLocationCode, InvalidMinimumProtocolVersion, InvalidOrigin, InvalidOriginAccessControl, InvalidOriginAccessIdentity, InvalidOriginKeepaliveTimeout, InvalidOriginReadTimeout, InvalidProtocolSettings, InvalidQueryStringParameters, InvalidRelativePath, InvalidRequiredProtocol, InvalidResponseCode, InvalidTagging, InvalidTTLOrder, InvalidViewerCertificate, InvalidWebACLId, KeyGroupAlreadyExists, MissingBody, MonitoringSubscriptionAlreadyExists, NoSuchCachePolicy, NoSuchDistribution, NoSuchFieldLevelEncryptionConfig, NoSuchFieldLevelEncryptionProfile, NoSuchOrigin, NoSuchOriginRequestPolicy, NoSuchPublicKey, NoSuchRealtimeLogConfig, NoSuchResponseHeadersPolicy, OriginAccessControlAlreadyExists, OriginRequestPolicyAlreadyExists, PreconditionFailed, PublicKeyAlreadyExists, QueryArgProfileEmpty, RealtimeLogConfigAlreadyExists, RealtimeLogConfigOwnerMismatch, ResponseHeadersPolicyAlreadyExists, StreamingDistributionAlreadyExists, TooLongCSPInResponseHeadersPolicy, TooManyCacheBehaviors, TooManyCachePolicies, TooManyCertificates, TooManyCloudFrontOriginAccessIdentities, TooManyCookieNamesInWhiteList, TooManyCookiesInCachePolicy, TooManyCookiesInOriginRequestPolicy, TooManyCustomHeadersInResponseHeadersPolicy, TooManyDistributionCNAMEs, TooManyDistributions, TooManyDistributionsAssociatedToCachePolicy, TooManyDistributionsAssociatedToFieldLevelEncryptionConfig, TooManyDistributionsAssociatedToKeyGroup, TooManyDistributionsAssociatedToOriginAccessControl, TooManyDistributionsAssociatedToOriginRequestPolicy, TooManyDistributionsAssociatedToResponseHeadersPolicy, TooManyDistributionsWithFunctionAssociations, TooManyDistributionsWithLambdaAssociations, TooManyDistributionsWithSingleFunctionARN, TooManyFieldLevelEncryptionConfigs, TooManyFieldLevelEncryptionContentTypeProfiles, TooManyFieldLevelEncryptionEncryptionEntities, TooManyFieldLevelEncryptionFieldPatterns, TooManyFieldLevelEncryptionProfiles, TooManyFieldLevelEncryptionQueryArgProfiles, TooManyFunctionAssociations, TooManyFunctions, TooManyHeadersInCachePolicy, TooManyHeadersInForwardedValues, TooManyHeadersInOriginRequestPolicy, TooManyInvalidationsInProgress, TooManyKeyGroups, TooManyKeyGroupsAssociatedToDistribution, TooManyLambdaFunctionAssociations, TooManyOriginAccessControls, TooManyOriginCustomHeaders, TooManyOriginGroupsPerDistribution, TooManyOriginRequestPolicies, TooManyOrigins, TooManyPublicKeys, TooManyPublicKeysInKeyGroup, TooManyQueryStringParameters, TooManyQueryStringsInCachePolicy, TooManyQueryStringsInOriginRequestPolicy, TooManyRealtimeLogConfigs, TooManyResponseHeadersPolicies, TooManyStreamingDistributionCNAMEs, TooManyStreamingDistributions, TooManyTrustedSigners, TrustedKeyGroupDoesNotExist, TrustedSignerDoesNotExist, UnsupportedOperation, } from "../models/models_0";
|
|
9
|
+
import { CloudFrontOriginAccessIdentityInUse, DistributionNotDisabled, FieldLevelEncryptionConfigInUse, FieldLevelEncryptionProfileInUse, FunctionInUse, NoSuchCloudFrontOriginAccessIdentity, NoSuchFunctionExists, NoSuchInvalidation, NoSuchMonitoringSubscription, NoSuchOriginAccessControl, NoSuchResource, NoSuchStreamingDistribution, OriginAccessControlInUse, OriginRequestPolicyInUse, PublicKeyInUse, RealtimeLogConfigInUse, ResourceInUse, ResponseHeadersPolicyInUse, StreamingDistributionNotDisabled, TestFunctionFailed, } from "../models/models_1";
|
|
10
10
|
export var serializeAws_restXmlAssociateAliasCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
11
11
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
12
12
|
return __generator(this, function (_c) {
|
|
@@ -371,6 +371,38 @@ export var serializeAws_restXmlCreateMonitoringSubscriptionCommand = function (i
|
|
|
371
371
|
}
|
|
372
372
|
});
|
|
373
373
|
}); };
|
|
374
|
+
export var serializeAws_restXmlCreateOriginAccessControlCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
375
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body, contents;
|
|
376
|
+
return __generator(this, function (_c) {
|
|
377
|
+
switch (_c.label) {
|
|
378
|
+
case 0: return [4, context.endpoint()];
|
|
379
|
+
case 1:
|
|
380
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
381
|
+
headers = {
|
|
382
|
+
"content-type": "application/xml",
|
|
383
|
+
};
|
|
384
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2020-05-31/origin-access-control";
|
|
385
|
+
if (input.OriginAccessControlConfig !== undefined) {
|
|
386
|
+
body = serializeAws_restXmlOriginAccessControlConfig(input.OriginAccessControlConfig, context);
|
|
387
|
+
}
|
|
388
|
+
if (input.OriginAccessControlConfig !== undefined) {
|
|
389
|
+
contents = serializeAws_restXmlOriginAccessControlConfig(input.OriginAccessControlConfig, context);
|
|
390
|
+
body = '<?xml version="1.0" encoding="UTF-8"?>';
|
|
391
|
+
contents.addAttribute("xmlns", "http://cloudfront.amazonaws.com/doc/2020-05-31/");
|
|
392
|
+
body += contents.toString();
|
|
393
|
+
}
|
|
394
|
+
return [2, new __HttpRequest({
|
|
395
|
+
protocol: protocol,
|
|
396
|
+
hostname: hostname,
|
|
397
|
+
port: port,
|
|
398
|
+
method: "POST",
|
|
399
|
+
headers: headers,
|
|
400
|
+
path: resolvedPath,
|
|
401
|
+
body: body,
|
|
402
|
+
})];
|
|
403
|
+
}
|
|
404
|
+
});
|
|
405
|
+
}); };
|
|
374
406
|
export var serializeAws_restXmlCreateOriginRequestPolicyCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
375
407
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body, contents;
|
|
376
408
|
return __generator(this, function (_c) {
|
|
@@ -779,6 +811,30 @@ export var serializeAws_restXmlDeleteMonitoringSubscriptionCommand = function (i
|
|
|
779
811
|
}
|
|
780
812
|
});
|
|
781
813
|
}); };
|
|
814
|
+
export var serializeAws_restXmlDeleteOriginAccessControlCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
815
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
816
|
+
return __generator(this, function (_c) {
|
|
817
|
+
switch (_c.label) {
|
|
818
|
+
case 0: return [4, context.endpoint()];
|
|
819
|
+
case 1:
|
|
820
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
821
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
822
|
+
"if-match": input.IfMatch,
|
|
823
|
+
});
|
|
824
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2020-05-31/origin-access-control/{Id}";
|
|
825
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "Id", function () { return input.Id; }, "{Id}", false);
|
|
826
|
+
return [2, new __HttpRequest({
|
|
827
|
+
protocol: protocol,
|
|
828
|
+
hostname: hostname,
|
|
829
|
+
port: port,
|
|
830
|
+
method: "DELETE",
|
|
831
|
+
headers: headers,
|
|
832
|
+
path: resolvedPath,
|
|
833
|
+
body: body,
|
|
834
|
+
})];
|
|
835
|
+
}
|
|
836
|
+
});
|
|
837
|
+
}); };
|
|
782
838
|
export var serializeAws_restXmlDeleteOriginRequestPolicyCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
783
839
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
784
840
|
return __generator(this, function (_c) {
|
|
@@ -1278,6 +1334,51 @@ export var serializeAws_restXmlGetMonitoringSubscriptionCommand = function (inpu
|
|
|
1278
1334
|
}
|
|
1279
1335
|
});
|
|
1280
1336
|
}); };
|
|
1337
|
+
export var serializeAws_restXmlGetOriginAccessControlCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1338
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
1339
|
+
return __generator(this, function (_c) {
|
|
1340
|
+
switch (_c.label) {
|
|
1341
|
+
case 0: return [4, context.endpoint()];
|
|
1342
|
+
case 1:
|
|
1343
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1344
|
+
headers = {};
|
|
1345
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2020-05-31/origin-access-control/{Id}";
|
|
1346
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "Id", function () { return input.Id; }, "{Id}", false);
|
|
1347
|
+
return [2, new __HttpRequest({
|
|
1348
|
+
protocol: protocol,
|
|
1349
|
+
hostname: hostname,
|
|
1350
|
+
port: port,
|
|
1351
|
+
method: "GET",
|
|
1352
|
+
headers: headers,
|
|
1353
|
+
path: resolvedPath,
|
|
1354
|
+
body: body,
|
|
1355
|
+
})];
|
|
1356
|
+
}
|
|
1357
|
+
});
|
|
1358
|
+
}); };
|
|
1359
|
+
export var serializeAws_restXmlGetOriginAccessControlConfigCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1360
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
1361
|
+
return __generator(this, function (_c) {
|
|
1362
|
+
switch (_c.label) {
|
|
1363
|
+
case 0: return [4, context.endpoint()];
|
|
1364
|
+
case 1:
|
|
1365
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1366
|
+
headers = {};
|
|
1367
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1368
|
+
"/2020-05-31/origin-access-control/{Id}/config";
|
|
1369
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "Id", function () { return input.Id; }, "{Id}", false);
|
|
1370
|
+
return [2, new __HttpRequest({
|
|
1371
|
+
protocol: protocol,
|
|
1372
|
+
hostname: hostname,
|
|
1373
|
+
port: port,
|
|
1374
|
+
method: "GET",
|
|
1375
|
+
headers: headers,
|
|
1376
|
+
path: resolvedPath,
|
|
1377
|
+
body: body,
|
|
1378
|
+
})];
|
|
1379
|
+
}
|
|
1380
|
+
});
|
|
1381
|
+
}); };
|
|
1281
1382
|
export var serializeAws_restXmlGetOriginRequestPolicyCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1282
1383
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
1283
1384
|
return __generator(this, function (_c) {
|
|
@@ -1918,6 +2019,32 @@ export var serializeAws_restXmlListKeyGroupsCommand = function (input, context)
|
|
|
1918
2019
|
}
|
|
1919
2020
|
});
|
|
1920
2021
|
}); };
|
|
2022
|
+
export var serializeAws_restXmlListOriginAccessControlsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2023
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
2024
|
+
return __generator(this, function (_c) {
|
|
2025
|
+
switch (_c.label) {
|
|
2026
|
+
case 0: return [4, context.endpoint()];
|
|
2027
|
+
case 1:
|
|
2028
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
2029
|
+
headers = {};
|
|
2030
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2020-05-31/origin-access-control";
|
|
2031
|
+
query = map({
|
|
2032
|
+
Marker: [, input.Marker],
|
|
2033
|
+
MaxItems: [function () { return input.MaxItems !== void 0; }, function () { return input.MaxItems.toString(); }],
|
|
2034
|
+
});
|
|
2035
|
+
return [2, new __HttpRequest({
|
|
2036
|
+
protocol: protocol,
|
|
2037
|
+
hostname: hostname,
|
|
2038
|
+
port: port,
|
|
2039
|
+
method: "GET",
|
|
2040
|
+
headers: headers,
|
|
2041
|
+
path: resolvedPath,
|
|
2042
|
+
query: query,
|
|
2043
|
+
body: body,
|
|
2044
|
+
})];
|
|
2045
|
+
}
|
|
2046
|
+
});
|
|
2047
|
+
}); };
|
|
1921
2048
|
export var serializeAws_restXmlListOriginRequestPoliciesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1922
2049
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
1923
2050
|
return __generator(this, function (_c) {
|
|
@@ -2454,6 +2581,41 @@ export var serializeAws_restXmlUpdateKeyGroupCommand = function (input, context)
|
|
|
2454
2581
|
}
|
|
2455
2582
|
});
|
|
2456
2583
|
}); };
|
|
2584
|
+
export var serializeAws_restXmlUpdateOriginAccessControlCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2585
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body, contents;
|
|
2586
|
+
return __generator(this, function (_c) {
|
|
2587
|
+
switch (_c.label) {
|
|
2588
|
+
case 0: return [4, context.endpoint()];
|
|
2589
|
+
case 1:
|
|
2590
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
2591
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
2592
|
+
"content-type": "application/xml",
|
|
2593
|
+
"if-match": input.IfMatch,
|
|
2594
|
+
});
|
|
2595
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
2596
|
+
"/2020-05-31/origin-access-control/{Id}/config";
|
|
2597
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "Id", function () { return input.Id; }, "{Id}", false);
|
|
2598
|
+
if (input.OriginAccessControlConfig !== undefined) {
|
|
2599
|
+
body = serializeAws_restXmlOriginAccessControlConfig(input.OriginAccessControlConfig, context);
|
|
2600
|
+
}
|
|
2601
|
+
if (input.OriginAccessControlConfig !== undefined) {
|
|
2602
|
+
contents = serializeAws_restXmlOriginAccessControlConfig(input.OriginAccessControlConfig, context);
|
|
2603
|
+
body = '<?xml version="1.0" encoding="UTF-8"?>';
|
|
2604
|
+
contents.addAttribute("xmlns", "http://cloudfront.amazonaws.com/doc/2020-05-31/");
|
|
2605
|
+
body += contents.toString();
|
|
2606
|
+
}
|
|
2607
|
+
return [2, new __HttpRequest({
|
|
2608
|
+
protocol: protocol,
|
|
2609
|
+
hostname: hostname,
|
|
2610
|
+
port: port,
|
|
2611
|
+
method: "PUT",
|
|
2612
|
+
headers: headers,
|
|
2613
|
+
path: resolvedPath,
|
|
2614
|
+
body: body,
|
|
2615
|
+
})];
|
|
2616
|
+
}
|
|
2617
|
+
});
|
|
2618
|
+
}); };
|
|
2457
2619
|
export var serializeAws_restXmlUpdateOriginRequestPolicyCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2458
2620
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body, contents;
|
|
2459
2621
|
return __generator(this, function (_c) {
|
|
@@ -2911,118 +3073,126 @@ var deserializeAws_restXmlCreateDistributionCommandError = function (output, con
|
|
|
2911
3073
|
case "com.amazonaws.cloudfront#DistributionAlreadyExists": return [3, 6];
|
|
2912
3074
|
case "IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior": return [3, 8];
|
|
2913
3075
|
case "com.amazonaws.cloudfront#IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior": return [3, 8];
|
|
2914
|
-
case "
|
|
2915
|
-
case "com.amazonaws.cloudfront#
|
|
2916
|
-
case "
|
|
2917
|
-
case "com.amazonaws.cloudfront#
|
|
2918
|
-
case "
|
|
2919
|
-
case "com.amazonaws.cloudfront#
|
|
2920
|
-
case "
|
|
2921
|
-
case "com.amazonaws.cloudfront#
|
|
2922
|
-
case "
|
|
2923
|
-
case "com.amazonaws.cloudfront#
|
|
2924
|
-
case "
|
|
2925
|
-
case "com.amazonaws.cloudfront#
|
|
2926
|
-
case "
|
|
2927
|
-
case "com.amazonaws.cloudfront#
|
|
2928
|
-
case "
|
|
2929
|
-
case "com.amazonaws.cloudfront#
|
|
2930
|
-
case "
|
|
2931
|
-
case "com.amazonaws.cloudfront#
|
|
2932
|
-
case "
|
|
2933
|
-
case "com.amazonaws.cloudfront#
|
|
2934
|
-
case "
|
|
2935
|
-
case "com.amazonaws.cloudfront#
|
|
2936
|
-
case "
|
|
2937
|
-
case "com.amazonaws.cloudfront#
|
|
2938
|
-
case "
|
|
2939
|
-
case "com.amazonaws.cloudfront#
|
|
2940
|
-
case "
|
|
2941
|
-
case "com.amazonaws.cloudfront#
|
|
2942
|
-
case "
|
|
2943
|
-
case "com.amazonaws.cloudfront#
|
|
2944
|
-
case "
|
|
2945
|
-
case "com.amazonaws.cloudfront#
|
|
2946
|
-
case "
|
|
2947
|
-
case "com.amazonaws.cloudfront#
|
|
2948
|
-
case "
|
|
2949
|
-
case "com.amazonaws.cloudfront#
|
|
2950
|
-
case "
|
|
2951
|
-
case "com.amazonaws.cloudfront#
|
|
2952
|
-
case "
|
|
2953
|
-
case "com.amazonaws.cloudfront#
|
|
2954
|
-
case "
|
|
2955
|
-
case "com.amazonaws.cloudfront#
|
|
2956
|
-
case "
|
|
2957
|
-
case "com.amazonaws.cloudfront#
|
|
2958
|
-
case "
|
|
2959
|
-
case "com.amazonaws.cloudfront#
|
|
2960
|
-
case "
|
|
2961
|
-
case "com.amazonaws.cloudfront#
|
|
2962
|
-
case "
|
|
2963
|
-
case "com.amazonaws.cloudfront#
|
|
2964
|
-
case "
|
|
2965
|
-
case "com.amazonaws.cloudfront#
|
|
2966
|
-
case "
|
|
2967
|
-
case "com.amazonaws.cloudfront#
|
|
2968
|
-
case "
|
|
2969
|
-
case "com.amazonaws.cloudfront#
|
|
2970
|
-
case "
|
|
2971
|
-
case "com.amazonaws.cloudfront#
|
|
2972
|
-
case "
|
|
2973
|
-
case "com.amazonaws.cloudfront#
|
|
2974
|
-
case "
|
|
2975
|
-
case "com.amazonaws.cloudfront#
|
|
2976
|
-
case "
|
|
2977
|
-
case "com.amazonaws.cloudfront#
|
|
2978
|
-
case "
|
|
2979
|
-
case "com.amazonaws.cloudfront#
|
|
2980
|
-
case "
|
|
2981
|
-
case "com.amazonaws.cloudfront#
|
|
2982
|
-
case "
|
|
2983
|
-
case "com.amazonaws.cloudfront#
|
|
2984
|
-
case "
|
|
2985
|
-
case "com.amazonaws.cloudfront#
|
|
2986
|
-
case "
|
|
2987
|
-
case "com.amazonaws.cloudfront#
|
|
2988
|
-
case "
|
|
2989
|
-
case "com.amazonaws.cloudfront#
|
|
2990
|
-
case "
|
|
2991
|
-
case "com.amazonaws.cloudfront#
|
|
2992
|
-
case "
|
|
2993
|
-
case "com.amazonaws.cloudfront#
|
|
2994
|
-
case "
|
|
2995
|
-
case "com.amazonaws.cloudfront#
|
|
2996
|
-
case "
|
|
2997
|
-
case "com.amazonaws.cloudfront#
|
|
2998
|
-
case "
|
|
2999
|
-
case "com.amazonaws.cloudfront#
|
|
3000
|
-
case "
|
|
3001
|
-
case "com.amazonaws.cloudfront#
|
|
3002
|
-
case "
|
|
3003
|
-
case "com.amazonaws.cloudfront#
|
|
3004
|
-
case "
|
|
3005
|
-
case "com.amazonaws.cloudfront#
|
|
3006
|
-
case "
|
|
3007
|
-
case "com.amazonaws.cloudfront#
|
|
3008
|
-
case "
|
|
3009
|
-
case "com.amazonaws.cloudfront#
|
|
3010
|
-
case "
|
|
3011
|
-
case "com.amazonaws.cloudfront#
|
|
3012
|
-
case "
|
|
3013
|
-
case "com.amazonaws.cloudfront#
|
|
3014
|
-
case "
|
|
3015
|
-
case "com.amazonaws.cloudfront#
|
|
3016
|
-
case "
|
|
3017
|
-
case "com.amazonaws.cloudfront#
|
|
3018
|
-
case "
|
|
3019
|
-
case "com.amazonaws.cloudfront#
|
|
3020
|
-
case "
|
|
3021
|
-
case "com.amazonaws.cloudfront#
|
|
3022
|
-
case "
|
|
3023
|
-
case "com.amazonaws.cloudfront#
|
|
3024
|
-
|
|
3025
|
-
|
|
3076
|
+
case "IllegalOriginAccessConfiguration": return [3, 10];
|
|
3077
|
+
case "com.amazonaws.cloudfront#IllegalOriginAccessConfiguration": return [3, 10];
|
|
3078
|
+
case "InconsistentQuantities": return [3, 12];
|
|
3079
|
+
case "com.amazonaws.cloudfront#InconsistentQuantities": return [3, 12];
|
|
3080
|
+
case "InvalidArgument": return [3, 14];
|
|
3081
|
+
case "com.amazonaws.cloudfront#InvalidArgument": return [3, 14];
|
|
3082
|
+
case "InvalidDefaultRootObject": return [3, 16];
|
|
3083
|
+
case "com.amazonaws.cloudfront#InvalidDefaultRootObject": return [3, 16];
|
|
3084
|
+
case "InvalidDomainNameForOriginAccessControl": return [3, 18];
|
|
3085
|
+
case "com.amazonaws.cloudfront#InvalidDomainNameForOriginAccessControl": return [3, 18];
|
|
3086
|
+
case "InvalidErrorCode": return [3, 20];
|
|
3087
|
+
case "com.amazonaws.cloudfront#InvalidErrorCode": return [3, 20];
|
|
3088
|
+
case "InvalidForwardCookies": return [3, 22];
|
|
3089
|
+
case "com.amazonaws.cloudfront#InvalidForwardCookies": return [3, 22];
|
|
3090
|
+
case "InvalidFunctionAssociation": return [3, 24];
|
|
3091
|
+
case "com.amazonaws.cloudfront#InvalidFunctionAssociation": return [3, 24];
|
|
3092
|
+
case "InvalidGeoRestrictionParameter": return [3, 26];
|
|
3093
|
+
case "com.amazonaws.cloudfront#InvalidGeoRestrictionParameter": return [3, 26];
|
|
3094
|
+
case "InvalidHeadersForS3Origin": return [3, 28];
|
|
3095
|
+
case "com.amazonaws.cloudfront#InvalidHeadersForS3Origin": return [3, 28];
|
|
3096
|
+
case "InvalidLambdaFunctionAssociation": return [3, 30];
|
|
3097
|
+
case "com.amazonaws.cloudfront#InvalidLambdaFunctionAssociation": return [3, 30];
|
|
3098
|
+
case "InvalidLocationCode": return [3, 32];
|
|
3099
|
+
case "com.amazonaws.cloudfront#InvalidLocationCode": return [3, 32];
|
|
3100
|
+
case "InvalidMinimumProtocolVersion": return [3, 34];
|
|
3101
|
+
case "com.amazonaws.cloudfront#InvalidMinimumProtocolVersion": return [3, 34];
|
|
3102
|
+
case "InvalidOrigin": return [3, 36];
|
|
3103
|
+
case "com.amazonaws.cloudfront#InvalidOrigin": return [3, 36];
|
|
3104
|
+
case "InvalidOriginAccessControl": return [3, 38];
|
|
3105
|
+
case "com.amazonaws.cloudfront#InvalidOriginAccessControl": return [3, 38];
|
|
3106
|
+
case "InvalidOriginAccessIdentity": return [3, 40];
|
|
3107
|
+
case "com.amazonaws.cloudfront#InvalidOriginAccessIdentity": return [3, 40];
|
|
3108
|
+
case "InvalidOriginKeepaliveTimeout": return [3, 42];
|
|
3109
|
+
case "com.amazonaws.cloudfront#InvalidOriginKeepaliveTimeout": return [3, 42];
|
|
3110
|
+
case "InvalidOriginReadTimeout": return [3, 44];
|
|
3111
|
+
case "com.amazonaws.cloudfront#InvalidOriginReadTimeout": return [3, 44];
|
|
3112
|
+
case "InvalidProtocolSettings": return [3, 46];
|
|
3113
|
+
case "com.amazonaws.cloudfront#InvalidProtocolSettings": return [3, 46];
|
|
3114
|
+
case "InvalidQueryStringParameters": return [3, 48];
|
|
3115
|
+
case "com.amazonaws.cloudfront#InvalidQueryStringParameters": return [3, 48];
|
|
3116
|
+
case "InvalidRelativePath": return [3, 50];
|
|
3117
|
+
case "com.amazonaws.cloudfront#InvalidRelativePath": return [3, 50];
|
|
3118
|
+
case "InvalidRequiredProtocol": return [3, 52];
|
|
3119
|
+
case "com.amazonaws.cloudfront#InvalidRequiredProtocol": return [3, 52];
|
|
3120
|
+
case "InvalidResponseCode": return [3, 54];
|
|
3121
|
+
case "com.amazonaws.cloudfront#InvalidResponseCode": return [3, 54];
|
|
3122
|
+
case "InvalidTTLOrder": return [3, 56];
|
|
3123
|
+
case "com.amazonaws.cloudfront#InvalidTTLOrder": return [3, 56];
|
|
3124
|
+
case "InvalidViewerCertificate": return [3, 58];
|
|
3125
|
+
case "com.amazonaws.cloudfront#InvalidViewerCertificate": return [3, 58];
|
|
3126
|
+
case "InvalidWebACLId": return [3, 60];
|
|
3127
|
+
case "com.amazonaws.cloudfront#InvalidWebACLId": return [3, 60];
|
|
3128
|
+
case "MissingBody": return [3, 62];
|
|
3129
|
+
case "com.amazonaws.cloudfront#MissingBody": return [3, 62];
|
|
3130
|
+
case "NoSuchCachePolicy": return [3, 64];
|
|
3131
|
+
case "com.amazonaws.cloudfront#NoSuchCachePolicy": return [3, 64];
|
|
3132
|
+
case "NoSuchFieldLevelEncryptionConfig": return [3, 66];
|
|
3133
|
+
case "com.amazonaws.cloudfront#NoSuchFieldLevelEncryptionConfig": return [3, 66];
|
|
3134
|
+
case "NoSuchOrigin": return [3, 68];
|
|
3135
|
+
case "com.amazonaws.cloudfront#NoSuchOrigin": return [3, 68];
|
|
3136
|
+
case "NoSuchOriginRequestPolicy": return [3, 70];
|
|
3137
|
+
case "com.amazonaws.cloudfront#NoSuchOriginRequestPolicy": return [3, 70];
|
|
3138
|
+
case "NoSuchRealtimeLogConfig": return [3, 72];
|
|
3139
|
+
case "com.amazonaws.cloudfront#NoSuchRealtimeLogConfig": return [3, 72];
|
|
3140
|
+
case "NoSuchResponseHeadersPolicy": return [3, 74];
|
|
3141
|
+
case "com.amazonaws.cloudfront#NoSuchResponseHeadersPolicy": return [3, 74];
|
|
3142
|
+
case "RealtimeLogConfigOwnerMismatch": return [3, 76];
|
|
3143
|
+
case "com.amazonaws.cloudfront#RealtimeLogConfigOwnerMismatch": return [3, 76];
|
|
3144
|
+
case "TooManyCacheBehaviors": return [3, 78];
|
|
3145
|
+
case "com.amazonaws.cloudfront#TooManyCacheBehaviors": return [3, 78];
|
|
3146
|
+
case "TooManyCertificates": return [3, 80];
|
|
3147
|
+
case "com.amazonaws.cloudfront#TooManyCertificates": return [3, 80];
|
|
3148
|
+
case "TooManyCookieNamesInWhiteList": return [3, 82];
|
|
3149
|
+
case "com.amazonaws.cloudfront#TooManyCookieNamesInWhiteList": return [3, 82];
|
|
3150
|
+
case "TooManyDistributionCNAMEs": return [3, 84];
|
|
3151
|
+
case "com.amazonaws.cloudfront#TooManyDistributionCNAMEs": return [3, 84];
|
|
3152
|
+
case "TooManyDistributions": return [3, 86];
|
|
3153
|
+
case "com.amazonaws.cloudfront#TooManyDistributions": return [3, 86];
|
|
3154
|
+
case "TooManyDistributionsAssociatedToCachePolicy": return [3, 88];
|
|
3155
|
+
case "com.amazonaws.cloudfront#TooManyDistributionsAssociatedToCachePolicy": return [3, 88];
|
|
3156
|
+
case "TooManyDistributionsAssociatedToFieldLevelEncryptionConfig": return [3, 90];
|
|
3157
|
+
case "com.amazonaws.cloudfront#TooManyDistributionsAssociatedToFieldLevelEncryptionConfig": return [3, 90];
|
|
3158
|
+
case "TooManyDistributionsAssociatedToKeyGroup": return [3, 92];
|
|
3159
|
+
case "com.amazonaws.cloudfront#TooManyDistributionsAssociatedToKeyGroup": return [3, 92];
|
|
3160
|
+
case "TooManyDistributionsAssociatedToOriginAccessControl": return [3, 94];
|
|
3161
|
+
case "com.amazonaws.cloudfront#TooManyDistributionsAssociatedToOriginAccessControl": return [3, 94];
|
|
3162
|
+
case "TooManyDistributionsAssociatedToOriginRequestPolicy": return [3, 96];
|
|
3163
|
+
case "com.amazonaws.cloudfront#TooManyDistributionsAssociatedToOriginRequestPolicy": return [3, 96];
|
|
3164
|
+
case "TooManyDistributionsAssociatedToResponseHeadersPolicy": return [3, 98];
|
|
3165
|
+
case "com.amazonaws.cloudfront#TooManyDistributionsAssociatedToResponseHeadersPolicy": return [3, 98];
|
|
3166
|
+
case "TooManyDistributionsWithFunctionAssociations": return [3, 100];
|
|
3167
|
+
case "com.amazonaws.cloudfront#TooManyDistributionsWithFunctionAssociations": return [3, 100];
|
|
3168
|
+
case "TooManyDistributionsWithLambdaAssociations": return [3, 102];
|
|
3169
|
+
case "com.amazonaws.cloudfront#TooManyDistributionsWithLambdaAssociations": return [3, 102];
|
|
3170
|
+
case "TooManyDistributionsWithSingleFunctionARN": return [3, 104];
|
|
3171
|
+
case "com.amazonaws.cloudfront#TooManyDistributionsWithSingleFunctionARN": return [3, 104];
|
|
3172
|
+
case "TooManyFunctionAssociations": return [3, 106];
|
|
3173
|
+
case "com.amazonaws.cloudfront#TooManyFunctionAssociations": return [3, 106];
|
|
3174
|
+
case "TooManyHeadersInForwardedValues": return [3, 108];
|
|
3175
|
+
case "com.amazonaws.cloudfront#TooManyHeadersInForwardedValues": return [3, 108];
|
|
3176
|
+
case "TooManyKeyGroupsAssociatedToDistribution": return [3, 110];
|
|
3177
|
+
case "com.amazonaws.cloudfront#TooManyKeyGroupsAssociatedToDistribution": return [3, 110];
|
|
3178
|
+
case "TooManyLambdaFunctionAssociations": return [3, 112];
|
|
3179
|
+
case "com.amazonaws.cloudfront#TooManyLambdaFunctionAssociations": return [3, 112];
|
|
3180
|
+
case "TooManyOriginCustomHeaders": return [3, 114];
|
|
3181
|
+
case "com.amazonaws.cloudfront#TooManyOriginCustomHeaders": return [3, 114];
|
|
3182
|
+
case "TooManyOriginGroupsPerDistribution": return [3, 116];
|
|
3183
|
+
case "com.amazonaws.cloudfront#TooManyOriginGroupsPerDistribution": return [3, 116];
|
|
3184
|
+
case "TooManyOrigins": return [3, 118];
|
|
3185
|
+
case "com.amazonaws.cloudfront#TooManyOrigins": return [3, 118];
|
|
3186
|
+
case "TooManyQueryStringParameters": return [3, 120];
|
|
3187
|
+
case "com.amazonaws.cloudfront#TooManyQueryStringParameters": return [3, 120];
|
|
3188
|
+
case "TooManyTrustedSigners": return [3, 122];
|
|
3189
|
+
case "com.amazonaws.cloudfront#TooManyTrustedSigners": return [3, 122];
|
|
3190
|
+
case "TrustedKeyGroupDoesNotExist": return [3, 124];
|
|
3191
|
+
case "com.amazonaws.cloudfront#TrustedKeyGroupDoesNotExist": return [3, 124];
|
|
3192
|
+
case "TrustedSignerDoesNotExist": return [3, 126];
|
|
3193
|
+
case "com.amazonaws.cloudfront#TrustedSignerDoesNotExist": return [3, 126];
|
|
3194
|
+
}
|
|
3195
|
+
return [3, 128];
|
|
3026
3196
|
case 2: return [4, deserializeAws_restXmlAccessDeniedResponse(parsedOutput, context)];
|
|
3027
3197
|
case 3: throw _d.sent();
|
|
3028
3198
|
case 4: return [4, deserializeAws_restXmlCNAMEAlreadyExistsResponse(parsedOutput, context)];
|
|
@@ -3031,117 +3201,125 @@ var deserializeAws_restXmlCreateDistributionCommandError = function (output, con
|
|
|
3031
3201
|
case 7: throw _d.sent();
|
|
3032
3202
|
case 8: return [4, deserializeAws_restXmlIllegalFieldLevelEncryptionConfigAssociationWithCacheBehaviorResponse(parsedOutput, context)];
|
|
3033
3203
|
case 9: throw _d.sent();
|
|
3034
|
-
case 10: return [4,
|
|
3204
|
+
case 10: return [4, deserializeAws_restXmlIllegalOriginAccessConfigurationResponse(parsedOutput, context)];
|
|
3035
3205
|
case 11: throw _d.sent();
|
|
3036
|
-
case 12: return [4,
|
|
3206
|
+
case 12: return [4, deserializeAws_restXmlInconsistentQuantitiesResponse(parsedOutput, context)];
|
|
3037
3207
|
case 13: throw _d.sent();
|
|
3038
|
-
case 14: return [4,
|
|
3208
|
+
case 14: return [4, deserializeAws_restXmlInvalidArgumentResponse(parsedOutput, context)];
|
|
3039
3209
|
case 15: throw _d.sent();
|
|
3040
|
-
case 16: return [4,
|
|
3210
|
+
case 16: return [4, deserializeAws_restXmlInvalidDefaultRootObjectResponse(parsedOutput, context)];
|
|
3041
3211
|
case 17: throw _d.sent();
|
|
3042
|
-
case 18: return [4,
|
|
3212
|
+
case 18: return [4, deserializeAws_restXmlInvalidDomainNameForOriginAccessControlResponse(parsedOutput, context)];
|
|
3043
3213
|
case 19: throw _d.sent();
|
|
3044
|
-
case 20: return [4,
|
|
3214
|
+
case 20: return [4, deserializeAws_restXmlInvalidErrorCodeResponse(parsedOutput, context)];
|
|
3045
3215
|
case 21: throw _d.sent();
|
|
3046
|
-
case 22: return [4,
|
|
3216
|
+
case 22: return [4, deserializeAws_restXmlInvalidForwardCookiesResponse(parsedOutput, context)];
|
|
3047
3217
|
case 23: throw _d.sent();
|
|
3048
|
-
case 24: return [4,
|
|
3218
|
+
case 24: return [4, deserializeAws_restXmlInvalidFunctionAssociationResponse(parsedOutput, context)];
|
|
3049
3219
|
case 25: throw _d.sent();
|
|
3050
|
-
case 26: return [4,
|
|
3220
|
+
case 26: return [4, deserializeAws_restXmlInvalidGeoRestrictionParameterResponse(parsedOutput, context)];
|
|
3051
3221
|
case 27: throw _d.sent();
|
|
3052
|
-
case 28: return [4,
|
|
3222
|
+
case 28: return [4, deserializeAws_restXmlInvalidHeadersForS3OriginResponse(parsedOutput, context)];
|
|
3053
3223
|
case 29: throw _d.sent();
|
|
3054
|
-
case 30: return [4,
|
|
3224
|
+
case 30: return [4, deserializeAws_restXmlInvalidLambdaFunctionAssociationResponse(parsedOutput, context)];
|
|
3055
3225
|
case 31: throw _d.sent();
|
|
3056
|
-
case 32: return [4,
|
|
3226
|
+
case 32: return [4, deserializeAws_restXmlInvalidLocationCodeResponse(parsedOutput, context)];
|
|
3057
3227
|
case 33: throw _d.sent();
|
|
3058
|
-
case 34: return [4,
|
|
3228
|
+
case 34: return [4, deserializeAws_restXmlInvalidMinimumProtocolVersionResponse(parsedOutput, context)];
|
|
3059
3229
|
case 35: throw _d.sent();
|
|
3060
|
-
case 36: return [4,
|
|
3230
|
+
case 36: return [4, deserializeAws_restXmlInvalidOriginResponse(parsedOutput, context)];
|
|
3061
3231
|
case 37: throw _d.sent();
|
|
3062
|
-
case 38: return [4,
|
|
3232
|
+
case 38: return [4, deserializeAws_restXmlInvalidOriginAccessControlResponse(parsedOutput, context)];
|
|
3063
3233
|
case 39: throw _d.sent();
|
|
3064
|
-
case 40: return [4,
|
|
3234
|
+
case 40: return [4, deserializeAws_restXmlInvalidOriginAccessIdentityResponse(parsedOutput, context)];
|
|
3065
3235
|
case 41: throw _d.sent();
|
|
3066
|
-
case 42: return [4,
|
|
3236
|
+
case 42: return [4, deserializeAws_restXmlInvalidOriginKeepaliveTimeoutResponse(parsedOutput, context)];
|
|
3067
3237
|
case 43: throw _d.sent();
|
|
3068
|
-
case 44: return [4,
|
|
3238
|
+
case 44: return [4, deserializeAws_restXmlInvalidOriginReadTimeoutResponse(parsedOutput, context)];
|
|
3069
3239
|
case 45: throw _d.sent();
|
|
3070
|
-
case 46: return [4,
|
|
3240
|
+
case 46: return [4, deserializeAws_restXmlInvalidProtocolSettingsResponse(parsedOutput, context)];
|
|
3071
3241
|
case 47: throw _d.sent();
|
|
3072
|
-
case 48: return [4,
|
|
3242
|
+
case 48: return [4, deserializeAws_restXmlInvalidQueryStringParametersResponse(parsedOutput, context)];
|
|
3073
3243
|
case 49: throw _d.sent();
|
|
3074
|
-
case 50: return [4,
|
|
3244
|
+
case 50: return [4, deserializeAws_restXmlInvalidRelativePathResponse(parsedOutput, context)];
|
|
3075
3245
|
case 51: throw _d.sent();
|
|
3076
|
-
case 52: return [4,
|
|
3246
|
+
case 52: return [4, deserializeAws_restXmlInvalidRequiredProtocolResponse(parsedOutput, context)];
|
|
3077
3247
|
case 53: throw _d.sent();
|
|
3078
|
-
case 54: return [4,
|
|
3248
|
+
case 54: return [4, deserializeAws_restXmlInvalidResponseCodeResponse(parsedOutput, context)];
|
|
3079
3249
|
case 55: throw _d.sent();
|
|
3080
|
-
case 56: return [4,
|
|
3250
|
+
case 56: return [4, deserializeAws_restXmlInvalidTTLOrderResponse(parsedOutput, context)];
|
|
3081
3251
|
case 57: throw _d.sent();
|
|
3082
|
-
case 58: return [4,
|
|
3252
|
+
case 58: return [4, deserializeAws_restXmlInvalidViewerCertificateResponse(parsedOutput, context)];
|
|
3083
3253
|
case 59: throw _d.sent();
|
|
3084
|
-
case 60: return [4,
|
|
3254
|
+
case 60: return [4, deserializeAws_restXmlInvalidWebACLIdResponse(parsedOutput, context)];
|
|
3085
3255
|
case 61: throw _d.sent();
|
|
3086
|
-
case 62: return [4,
|
|
3256
|
+
case 62: return [4, deserializeAws_restXmlMissingBodyResponse(parsedOutput, context)];
|
|
3087
3257
|
case 63: throw _d.sent();
|
|
3088
|
-
case 64: return [4,
|
|
3258
|
+
case 64: return [4, deserializeAws_restXmlNoSuchCachePolicyResponse(parsedOutput, context)];
|
|
3089
3259
|
case 65: throw _d.sent();
|
|
3090
|
-
case 66: return [4,
|
|
3260
|
+
case 66: return [4, deserializeAws_restXmlNoSuchFieldLevelEncryptionConfigResponse(parsedOutput, context)];
|
|
3091
3261
|
case 67: throw _d.sent();
|
|
3092
|
-
case 68: return [4,
|
|
3262
|
+
case 68: return [4, deserializeAws_restXmlNoSuchOriginResponse(parsedOutput, context)];
|
|
3093
3263
|
case 69: throw _d.sent();
|
|
3094
|
-
case 70: return [4,
|
|
3264
|
+
case 70: return [4, deserializeAws_restXmlNoSuchOriginRequestPolicyResponse(parsedOutput, context)];
|
|
3095
3265
|
case 71: throw _d.sent();
|
|
3096
|
-
case 72: return [4,
|
|
3266
|
+
case 72: return [4, deserializeAws_restXmlNoSuchRealtimeLogConfigResponse(parsedOutput, context)];
|
|
3097
3267
|
case 73: throw _d.sent();
|
|
3098
|
-
case 74: return [4,
|
|
3268
|
+
case 74: return [4, deserializeAws_restXmlNoSuchResponseHeadersPolicyResponse(parsedOutput, context)];
|
|
3099
3269
|
case 75: throw _d.sent();
|
|
3100
|
-
case 76: return [4,
|
|
3270
|
+
case 76: return [4, deserializeAws_restXmlRealtimeLogConfigOwnerMismatchResponse(parsedOutput, context)];
|
|
3101
3271
|
case 77: throw _d.sent();
|
|
3102
|
-
case 78: return [4,
|
|
3272
|
+
case 78: return [4, deserializeAws_restXmlTooManyCacheBehaviorsResponse(parsedOutput, context)];
|
|
3103
3273
|
case 79: throw _d.sent();
|
|
3104
|
-
case 80: return [4,
|
|
3274
|
+
case 80: return [4, deserializeAws_restXmlTooManyCertificatesResponse(parsedOutput, context)];
|
|
3105
3275
|
case 81: throw _d.sent();
|
|
3106
|
-
case 82: return [4,
|
|
3276
|
+
case 82: return [4, deserializeAws_restXmlTooManyCookieNamesInWhiteListResponse(parsedOutput, context)];
|
|
3107
3277
|
case 83: throw _d.sent();
|
|
3108
|
-
case 84: return [4,
|
|
3278
|
+
case 84: return [4, deserializeAws_restXmlTooManyDistributionCNAMEsResponse(parsedOutput, context)];
|
|
3109
3279
|
case 85: throw _d.sent();
|
|
3110
|
-
case 86: return [4,
|
|
3280
|
+
case 86: return [4, deserializeAws_restXmlTooManyDistributionsResponse(parsedOutput, context)];
|
|
3111
3281
|
case 87: throw _d.sent();
|
|
3112
|
-
case 88: return [4,
|
|
3282
|
+
case 88: return [4, deserializeAws_restXmlTooManyDistributionsAssociatedToCachePolicyResponse(parsedOutput, context)];
|
|
3113
3283
|
case 89: throw _d.sent();
|
|
3114
|
-
case 90: return [4,
|
|
3284
|
+
case 90: return [4, deserializeAws_restXmlTooManyDistributionsAssociatedToFieldLevelEncryptionConfigResponse(parsedOutput, context)];
|
|
3115
3285
|
case 91: throw _d.sent();
|
|
3116
|
-
case 92: return [4,
|
|
3286
|
+
case 92: return [4, deserializeAws_restXmlTooManyDistributionsAssociatedToKeyGroupResponse(parsedOutput, context)];
|
|
3117
3287
|
case 93: throw _d.sent();
|
|
3118
|
-
case 94: return [4,
|
|
3288
|
+
case 94: return [4, deserializeAws_restXmlTooManyDistributionsAssociatedToOriginAccessControlResponse(parsedOutput, context)];
|
|
3119
3289
|
case 95: throw _d.sent();
|
|
3120
|
-
case 96: return [4,
|
|
3290
|
+
case 96: return [4, deserializeAws_restXmlTooManyDistributionsAssociatedToOriginRequestPolicyResponse(parsedOutput, context)];
|
|
3121
3291
|
case 97: throw _d.sent();
|
|
3122
|
-
case 98: return [4,
|
|
3292
|
+
case 98: return [4, deserializeAws_restXmlTooManyDistributionsAssociatedToResponseHeadersPolicyResponse(parsedOutput, context)];
|
|
3123
3293
|
case 99: throw _d.sent();
|
|
3124
|
-
case 100: return [4,
|
|
3294
|
+
case 100: return [4, deserializeAws_restXmlTooManyDistributionsWithFunctionAssociationsResponse(parsedOutput, context)];
|
|
3125
3295
|
case 101: throw _d.sent();
|
|
3126
|
-
case 102: return [4,
|
|
3296
|
+
case 102: return [4, deserializeAws_restXmlTooManyDistributionsWithLambdaAssociationsResponse(parsedOutput, context)];
|
|
3127
3297
|
case 103: throw _d.sent();
|
|
3128
|
-
case 104: return [4,
|
|
3298
|
+
case 104: return [4, deserializeAws_restXmlTooManyDistributionsWithSingleFunctionARNResponse(parsedOutput, context)];
|
|
3129
3299
|
case 105: throw _d.sent();
|
|
3130
|
-
case 106: return [4,
|
|
3300
|
+
case 106: return [4, deserializeAws_restXmlTooManyFunctionAssociationsResponse(parsedOutput, context)];
|
|
3131
3301
|
case 107: throw _d.sent();
|
|
3132
|
-
case 108: return [4,
|
|
3302
|
+
case 108: return [4, deserializeAws_restXmlTooManyHeadersInForwardedValuesResponse(parsedOutput, context)];
|
|
3133
3303
|
case 109: throw _d.sent();
|
|
3134
|
-
case 110: return [4,
|
|
3304
|
+
case 110: return [4, deserializeAws_restXmlTooManyKeyGroupsAssociatedToDistributionResponse(parsedOutput, context)];
|
|
3135
3305
|
case 111: throw _d.sent();
|
|
3136
|
-
case 112: return [4,
|
|
3306
|
+
case 112: return [4, deserializeAws_restXmlTooManyLambdaFunctionAssociationsResponse(parsedOutput, context)];
|
|
3137
3307
|
case 113: throw _d.sent();
|
|
3138
|
-
case 114: return [4,
|
|
3308
|
+
case 114: return [4, deserializeAws_restXmlTooManyOriginCustomHeadersResponse(parsedOutput, context)];
|
|
3139
3309
|
case 115: throw _d.sent();
|
|
3140
|
-
case 116: return [4,
|
|
3310
|
+
case 116: return [4, deserializeAws_restXmlTooManyOriginGroupsPerDistributionResponse(parsedOutput, context)];
|
|
3141
3311
|
case 117: throw _d.sent();
|
|
3142
|
-
case 118: return [4,
|
|
3312
|
+
case 118: return [4, deserializeAws_restXmlTooManyOriginsResponse(parsedOutput, context)];
|
|
3143
3313
|
case 119: throw _d.sent();
|
|
3144
|
-
case 120:
|
|
3314
|
+
case 120: return [4, deserializeAws_restXmlTooManyQueryStringParametersResponse(parsedOutput, context)];
|
|
3315
|
+
case 121: throw _d.sent();
|
|
3316
|
+
case 122: return [4, deserializeAws_restXmlTooManyTrustedSignersResponse(parsedOutput, context)];
|
|
3317
|
+
case 123: throw _d.sent();
|
|
3318
|
+
case 124: return [4, deserializeAws_restXmlTrustedKeyGroupDoesNotExistResponse(parsedOutput, context)];
|
|
3319
|
+
case 125: throw _d.sent();
|
|
3320
|
+
case 126: return [4, deserializeAws_restXmlTrustedSignerDoesNotExistResponse(parsedOutput, context)];
|
|
3321
|
+
case 127: throw _d.sent();
|
|
3322
|
+
case 128:
|
|
3145
3323
|
parsedBody = parsedOutput.body;
|
|
3146
3324
|
throwDefaultError({
|
|
3147
3325
|
output: output,
|
|
@@ -3149,8 +3327,8 @@ var deserializeAws_restXmlCreateDistributionCommandError = function (output, con
|
|
|
3149
3327
|
exceptionCtor: __BaseException,
|
|
3150
3328
|
errorCode: errorCode,
|
|
3151
3329
|
});
|
|
3152
|
-
_d.label =
|
|
3153
|
-
case
|
|
3330
|
+
_d.label = 129;
|
|
3331
|
+
case 129: return [2];
|
|
3154
3332
|
}
|
|
3155
3333
|
});
|
|
3156
3334
|
}); };
|
|
@@ -3204,114 +3382,118 @@ var deserializeAws_restXmlCreateDistributionWithTagsCommandError = function (out
|
|
|
3204
3382
|
case "com.amazonaws.cloudfront#InvalidArgument": return [3, 12];
|
|
3205
3383
|
case "InvalidDefaultRootObject": return [3, 14];
|
|
3206
3384
|
case "com.amazonaws.cloudfront#InvalidDefaultRootObject": return [3, 14];
|
|
3207
|
-
case "
|
|
3208
|
-
case "com.amazonaws.cloudfront#
|
|
3209
|
-
case "
|
|
3210
|
-
case "com.amazonaws.cloudfront#
|
|
3211
|
-
case "
|
|
3212
|
-
case "com.amazonaws.cloudfront#
|
|
3213
|
-
case "
|
|
3214
|
-
case "com.amazonaws.cloudfront#
|
|
3215
|
-
case "
|
|
3216
|
-
case "com.amazonaws.cloudfront#
|
|
3217
|
-
case "
|
|
3218
|
-
case "com.amazonaws.cloudfront#
|
|
3219
|
-
case "
|
|
3220
|
-
case "com.amazonaws.cloudfront#
|
|
3221
|
-
case "
|
|
3222
|
-
case "com.amazonaws.cloudfront#
|
|
3223
|
-
case "
|
|
3224
|
-
case "com.amazonaws.cloudfront#
|
|
3225
|
-
case "
|
|
3226
|
-
case "com.amazonaws.cloudfront#
|
|
3227
|
-
case "
|
|
3228
|
-
case "com.amazonaws.cloudfront#
|
|
3229
|
-
case "
|
|
3230
|
-
case "com.amazonaws.cloudfront#
|
|
3231
|
-
case "
|
|
3232
|
-
case "com.amazonaws.cloudfront#
|
|
3233
|
-
case "
|
|
3234
|
-
case "com.amazonaws.cloudfront#
|
|
3235
|
-
case "
|
|
3236
|
-
case "com.amazonaws.cloudfront#
|
|
3237
|
-
case "
|
|
3238
|
-
case "com.amazonaws.cloudfront#
|
|
3239
|
-
case "
|
|
3240
|
-
case "com.amazonaws.cloudfront#
|
|
3241
|
-
case "
|
|
3242
|
-
case "com.amazonaws.cloudfront#
|
|
3243
|
-
case "
|
|
3244
|
-
case "com.amazonaws.cloudfront#
|
|
3245
|
-
case "
|
|
3246
|
-
case "com.amazonaws.cloudfront#
|
|
3247
|
-
case "
|
|
3248
|
-
case "com.amazonaws.cloudfront#
|
|
3249
|
-
case "
|
|
3250
|
-
case "com.amazonaws.cloudfront#
|
|
3251
|
-
case "
|
|
3252
|
-
case "com.amazonaws.cloudfront#
|
|
3253
|
-
case "
|
|
3254
|
-
case "com.amazonaws.cloudfront#
|
|
3255
|
-
case "
|
|
3256
|
-
case "com.amazonaws.cloudfront#
|
|
3257
|
-
case "
|
|
3258
|
-
case "com.amazonaws.cloudfront#
|
|
3259
|
-
case "
|
|
3260
|
-
case "com.amazonaws.cloudfront#
|
|
3261
|
-
case "
|
|
3262
|
-
case "com.amazonaws.cloudfront#
|
|
3263
|
-
case "
|
|
3264
|
-
case "com.amazonaws.cloudfront#
|
|
3265
|
-
case "
|
|
3266
|
-
case "com.amazonaws.cloudfront#
|
|
3267
|
-
case "
|
|
3268
|
-
case "com.amazonaws.cloudfront#
|
|
3269
|
-
case "
|
|
3270
|
-
case "com.amazonaws.cloudfront#
|
|
3271
|
-
case "
|
|
3272
|
-
case "com.amazonaws.cloudfront#
|
|
3273
|
-
case "
|
|
3274
|
-
case "com.amazonaws.cloudfront#
|
|
3275
|
-
case "
|
|
3276
|
-
case "com.amazonaws.cloudfront#
|
|
3277
|
-
case "
|
|
3278
|
-
case "com.amazonaws.cloudfront#
|
|
3279
|
-
case "
|
|
3280
|
-
case "com.amazonaws.cloudfront#
|
|
3281
|
-
case "
|
|
3282
|
-
case "com.amazonaws.cloudfront#
|
|
3283
|
-
case "
|
|
3284
|
-
case "com.amazonaws.cloudfront#
|
|
3285
|
-
case "
|
|
3286
|
-
case "com.amazonaws.cloudfront#
|
|
3287
|
-
case "
|
|
3288
|
-
case "com.amazonaws.cloudfront#
|
|
3289
|
-
case "
|
|
3290
|
-
case "com.amazonaws.cloudfront#
|
|
3291
|
-
case "
|
|
3292
|
-
case "com.amazonaws.cloudfront#
|
|
3293
|
-
case "
|
|
3294
|
-
case "com.amazonaws.cloudfront#
|
|
3295
|
-
case "
|
|
3296
|
-
case "com.amazonaws.cloudfront#
|
|
3297
|
-
case "
|
|
3298
|
-
case "com.amazonaws.cloudfront#
|
|
3299
|
-
case "
|
|
3300
|
-
case "com.amazonaws.cloudfront#
|
|
3301
|
-
case "
|
|
3302
|
-
case "com.amazonaws.cloudfront#
|
|
3303
|
-
case "
|
|
3304
|
-
case "com.amazonaws.cloudfront#
|
|
3305
|
-
case "
|
|
3306
|
-
case "com.amazonaws.cloudfront#
|
|
3307
|
-
case "
|
|
3308
|
-
case "com.amazonaws.cloudfront#
|
|
3309
|
-
case "
|
|
3310
|
-
case "com.amazonaws.cloudfront#
|
|
3311
|
-
case "
|
|
3312
|
-
case "com.amazonaws.cloudfront#
|
|
3313
|
-
|
|
3314
|
-
|
|
3385
|
+
case "InvalidDomainNameForOriginAccessControl": return [3, 16];
|
|
3386
|
+
case "com.amazonaws.cloudfront#InvalidDomainNameForOriginAccessControl": return [3, 16];
|
|
3387
|
+
case "InvalidErrorCode": return [3, 18];
|
|
3388
|
+
case "com.amazonaws.cloudfront#InvalidErrorCode": return [3, 18];
|
|
3389
|
+
case "InvalidForwardCookies": return [3, 20];
|
|
3390
|
+
case "com.amazonaws.cloudfront#InvalidForwardCookies": return [3, 20];
|
|
3391
|
+
case "InvalidFunctionAssociation": return [3, 22];
|
|
3392
|
+
case "com.amazonaws.cloudfront#InvalidFunctionAssociation": return [3, 22];
|
|
3393
|
+
case "InvalidGeoRestrictionParameter": return [3, 24];
|
|
3394
|
+
case "com.amazonaws.cloudfront#InvalidGeoRestrictionParameter": return [3, 24];
|
|
3395
|
+
case "InvalidHeadersForS3Origin": return [3, 26];
|
|
3396
|
+
case "com.amazonaws.cloudfront#InvalidHeadersForS3Origin": return [3, 26];
|
|
3397
|
+
case "InvalidLambdaFunctionAssociation": return [3, 28];
|
|
3398
|
+
case "com.amazonaws.cloudfront#InvalidLambdaFunctionAssociation": return [3, 28];
|
|
3399
|
+
case "InvalidLocationCode": return [3, 30];
|
|
3400
|
+
case "com.amazonaws.cloudfront#InvalidLocationCode": return [3, 30];
|
|
3401
|
+
case "InvalidMinimumProtocolVersion": return [3, 32];
|
|
3402
|
+
case "com.amazonaws.cloudfront#InvalidMinimumProtocolVersion": return [3, 32];
|
|
3403
|
+
case "InvalidOrigin": return [3, 34];
|
|
3404
|
+
case "com.amazonaws.cloudfront#InvalidOrigin": return [3, 34];
|
|
3405
|
+
case "InvalidOriginAccessControl": return [3, 36];
|
|
3406
|
+
case "com.amazonaws.cloudfront#InvalidOriginAccessControl": return [3, 36];
|
|
3407
|
+
case "InvalidOriginAccessIdentity": return [3, 38];
|
|
3408
|
+
case "com.amazonaws.cloudfront#InvalidOriginAccessIdentity": return [3, 38];
|
|
3409
|
+
case "InvalidOriginKeepaliveTimeout": return [3, 40];
|
|
3410
|
+
case "com.amazonaws.cloudfront#InvalidOriginKeepaliveTimeout": return [3, 40];
|
|
3411
|
+
case "InvalidOriginReadTimeout": return [3, 42];
|
|
3412
|
+
case "com.amazonaws.cloudfront#InvalidOriginReadTimeout": return [3, 42];
|
|
3413
|
+
case "InvalidProtocolSettings": return [3, 44];
|
|
3414
|
+
case "com.amazonaws.cloudfront#InvalidProtocolSettings": return [3, 44];
|
|
3415
|
+
case "InvalidQueryStringParameters": return [3, 46];
|
|
3416
|
+
case "com.amazonaws.cloudfront#InvalidQueryStringParameters": return [3, 46];
|
|
3417
|
+
case "InvalidRelativePath": return [3, 48];
|
|
3418
|
+
case "com.amazonaws.cloudfront#InvalidRelativePath": return [3, 48];
|
|
3419
|
+
case "InvalidRequiredProtocol": return [3, 50];
|
|
3420
|
+
case "com.amazonaws.cloudfront#InvalidRequiredProtocol": return [3, 50];
|
|
3421
|
+
case "InvalidResponseCode": return [3, 52];
|
|
3422
|
+
case "com.amazonaws.cloudfront#InvalidResponseCode": return [3, 52];
|
|
3423
|
+
case "InvalidTagging": return [3, 54];
|
|
3424
|
+
case "com.amazonaws.cloudfront#InvalidTagging": return [3, 54];
|
|
3425
|
+
case "InvalidTTLOrder": return [3, 56];
|
|
3426
|
+
case "com.amazonaws.cloudfront#InvalidTTLOrder": return [3, 56];
|
|
3427
|
+
case "InvalidViewerCertificate": return [3, 58];
|
|
3428
|
+
case "com.amazonaws.cloudfront#InvalidViewerCertificate": return [3, 58];
|
|
3429
|
+
case "InvalidWebACLId": return [3, 60];
|
|
3430
|
+
case "com.amazonaws.cloudfront#InvalidWebACLId": return [3, 60];
|
|
3431
|
+
case "MissingBody": return [3, 62];
|
|
3432
|
+
case "com.amazonaws.cloudfront#MissingBody": return [3, 62];
|
|
3433
|
+
case "NoSuchCachePolicy": return [3, 64];
|
|
3434
|
+
case "com.amazonaws.cloudfront#NoSuchCachePolicy": return [3, 64];
|
|
3435
|
+
case "NoSuchFieldLevelEncryptionConfig": return [3, 66];
|
|
3436
|
+
case "com.amazonaws.cloudfront#NoSuchFieldLevelEncryptionConfig": return [3, 66];
|
|
3437
|
+
case "NoSuchOrigin": return [3, 68];
|
|
3438
|
+
case "com.amazonaws.cloudfront#NoSuchOrigin": return [3, 68];
|
|
3439
|
+
case "NoSuchOriginRequestPolicy": return [3, 70];
|
|
3440
|
+
case "com.amazonaws.cloudfront#NoSuchOriginRequestPolicy": return [3, 70];
|
|
3441
|
+
case "NoSuchRealtimeLogConfig": return [3, 72];
|
|
3442
|
+
case "com.amazonaws.cloudfront#NoSuchRealtimeLogConfig": return [3, 72];
|
|
3443
|
+
case "NoSuchResponseHeadersPolicy": return [3, 74];
|
|
3444
|
+
case "com.amazonaws.cloudfront#NoSuchResponseHeadersPolicy": return [3, 74];
|
|
3445
|
+
case "RealtimeLogConfigOwnerMismatch": return [3, 76];
|
|
3446
|
+
case "com.amazonaws.cloudfront#RealtimeLogConfigOwnerMismatch": return [3, 76];
|
|
3447
|
+
case "TooManyCacheBehaviors": return [3, 78];
|
|
3448
|
+
case "com.amazonaws.cloudfront#TooManyCacheBehaviors": return [3, 78];
|
|
3449
|
+
case "TooManyCertificates": return [3, 80];
|
|
3450
|
+
case "com.amazonaws.cloudfront#TooManyCertificates": return [3, 80];
|
|
3451
|
+
case "TooManyCookieNamesInWhiteList": return [3, 82];
|
|
3452
|
+
case "com.amazonaws.cloudfront#TooManyCookieNamesInWhiteList": return [3, 82];
|
|
3453
|
+
case "TooManyDistributionCNAMEs": return [3, 84];
|
|
3454
|
+
case "com.amazonaws.cloudfront#TooManyDistributionCNAMEs": return [3, 84];
|
|
3455
|
+
case "TooManyDistributions": return [3, 86];
|
|
3456
|
+
case "com.amazonaws.cloudfront#TooManyDistributions": return [3, 86];
|
|
3457
|
+
case "TooManyDistributionsAssociatedToCachePolicy": return [3, 88];
|
|
3458
|
+
case "com.amazonaws.cloudfront#TooManyDistributionsAssociatedToCachePolicy": return [3, 88];
|
|
3459
|
+
case "TooManyDistributionsAssociatedToFieldLevelEncryptionConfig": return [3, 90];
|
|
3460
|
+
case "com.amazonaws.cloudfront#TooManyDistributionsAssociatedToFieldLevelEncryptionConfig": return [3, 90];
|
|
3461
|
+
case "TooManyDistributionsAssociatedToKeyGroup": return [3, 92];
|
|
3462
|
+
case "com.amazonaws.cloudfront#TooManyDistributionsAssociatedToKeyGroup": return [3, 92];
|
|
3463
|
+
case "TooManyDistributionsAssociatedToOriginRequestPolicy": return [3, 94];
|
|
3464
|
+
case "com.amazonaws.cloudfront#TooManyDistributionsAssociatedToOriginRequestPolicy": return [3, 94];
|
|
3465
|
+
case "TooManyDistributionsAssociatedToResponseHeadersPolicy": return [3, 96];
|
|
3466
|
+
case "com.amazonaws.cloudfront#TooManyDistributionsAssociatedToResponseHeadersPolicy": return [3, 96];
|
|
3467
|
+
case "TooManyDistributionsWithFunctionAssociations": return [3, 98];
|
|
3468
|
+
case "com.amazonaws.cloudfront#TooManyDistributionsWithFunctionAssociations": return [3, 98];
|
|
3469
|
+
case "TooManyDistributionsWithLambdaAssociations": return [3, 100];
|
|
3470
|
+
case "com.amazonaws.cloudfront#TooManyDistributionsWithLambdaAssociations": return [3, 100];
|
|
3471
|
+
case "TooManyDistributionsWithSingleFunctionARN": return [3, 102];
|
|
3472
|
+
case "com.amazonaws.cloudfront#TooManyDistributionsWithSingleFunctionARN": return [3, 102];
|
|
3473
|
+
case "TooManyFunctionAssociations": return [3, 104];
|
|
3474
|
+
case "com.amazonaws.cloudfront#TooManyFunctionAssociations": return [3, 104];
|
|
3475
|
+
case "TooManyHeadersInForwardedValues": return [3, 106];
|
|
3476
|
+
case "com.amazonaws.cloudfront#TooManyHeadersInForwardedValues": return [3, 106];
|
|
3477
|
+
case "TooManyKeyGroupsAssociatedToDistribution": return [3, 108];
|
|
3478
|
+
case "com.amazonaws.cloudfront#TooManyKeyGroupsAssociatedToDistribution": return [3, 108];
|
|
3479
|
+
case "TooManyLambdaFunctionAssociations": return [3, 110];
|
|
3480
|
+
case "com.amazonaws.cloudfront#TooManyLambdaFunctionAssociations": return [3, 110];
|
|
3481
|
+
case "TooManyOriginCustomHeaders": return [3, 112];
|
|
3482
|
+
case "com.amazonaws.cloudfront#TooManyOriginCustomHeaders": return [3, 112];
|
|
3483
|
+
case "TooManyOriginGroupsPerDistribution": return [3, 114];
|
|
3484
|
+
case "com.amazonaws.cloudfront#TooManyOriginGroupsPerDistribution": return [3, 114];
|
|
3485
|
+
case "TooManyOrigins": return [3, 116];
|
|
3486
|
+
case "com.amazonaws.cloudfront#TooManyOrigins": return [3, 116];
|
|
3487
|
+
case "TooManyQueryStringParameters": return [3, 118];
|
|
3488
|
+
case "com.amazonaws.cloudfront#TooManyQueryStringParameters": return [3, 118];
|
|
3489
|
+
case "TooManyTrustedSigners": return [3, 120];
|
|
3490
|
+
case "com.amazonaws.cloudfront#TooManyTrustedSigners": return [3, 120];
|
|
3491
|
+
case "TrustedKeyGroupDoesNotExist": return [3, 122];
|
|
3492
|
+
case "com.amazonaws.cloudfront#TrustedKeyGroupDoesNotExist": return [3, 122];
|
|
3493
|
+
case "TrustedSignerDoesNotExist": return [3, 124];
|
|
3494
|
+
case "com.amazonaws.cloudfront#TrustedSignerDoesNotExist": return [3, 124];
|
|
3495
|
+
}
|
|
3496
|
+
return [3, 126];
|
|
3315
3497
|
case 2: return [4, deserializeAws_restXmlAccessDeniedResponse(parsedOutput, context)];
|
|
3316
3498
|
case 3: throw _d.sent();
|
|
3317
3499
|
case 4: return [4, deserializeAws_restXmlCNAMEAlreadyExistsResponse(parsedOutput, context)];
|
|
@@ -3326,113 +3508,117 @@ var deserializeAws_restXmlCreateDistributionWithTagsCommandError = function (out
|
|
|
3326
3508
|
case 13: throw _d.sent();
|
|
3327
3509
|
case 14: return [4, deserializeAws_restXmlInvalidDefaultRootObjectResponse(parsedOutput, context)];
|
|
3328
3510
|
case 15: throw _d.sent();
|
|
3329
|
-
case 16: return [4,
|
|
3511
|
+
case 16: return [4, deserializeAws_restXmlInvalidDomainNameForOriginAccessControlResponse(parsedOutput, context)];
|
|
3330
3512
|
case 17: throw _d.sent();
|
|
3331
|
-
case 18: return [4,
|
|
3513
|
+
case 18: return [4, deserializeAws_restXmlInvalidErrorCodeResponse(parsedOutput, context)];
|
|
3332
3514
|
case 19: throw _d.sent();
|
|
3333
|
-
case 20: return [4,
|
|
3515
|
+
case 20: return [4, deserializeAws_restXmlInvalidForwardCookiesResponse(parsedOutput, context)];
|
|
3334
3516
|
case 21: throw _d.sent();
|
|
3335
|
-
case 22: return [4,
|
|
3517
|
+
case 22: return [4, deserializeAws_restXmlInvalidFunctionAssociationResponse(parsedOutput, context)];
|
|
3336
3518
|
case 23: throw _d.sent();
|
|
3337
|
-
case 24: return [4,
|
|
3519
|
+
case 24: return [4, deserializeAws_restXmlInvalidGeoRestrictionParameterResponse(parsedOutput, context)];
|
|
3338
3520
|
case 25: throw _d.sent();
|
|
3339
|
-
case 26: return [4,
|
|
3521
|
+
case 26: return [4, deserializeAws_restXmlInvalidHeadersForS3OriginResponse(parsedOutput, context)];
|
|
3340
3522
|
case 27: throw _d.sent();
|
|
3341
|
-
case 28: return [4,
|
|
3523
|
+
case 28: return [4, deserializeAws_restXmlInvalidLambdaFunctionAssociationResponse(parsedOutput, context)];
|
|
3342
3524
|
case 29: throw _d.sent();
|
|
3343
|
-
case 30: return [4,
|
|
3525
|
+
case 30: return [4, deserializeAws_restXmlInvalidLocationCodeResponse(parsedOutput, context)];
|
|
3344
3526
|
case 31: throw _d.sent();
|
|
3345
|
-
case 32: return [4,
|
|
3527
|
+
case 32: return [4, deserializeAws_restXmlInvalidMinimumProtocolVersionResponse(parsedOutput, context)];
|
|
3346
3528
|
case 33: throw _d.sent();
|
|
3347
|
-
case 34: return [4,
|
|
3529
|
+
case 34: return [4, deserializeAws_restXmlInvalidOriginResponse(parsedOutput, context)];
|
|
3348
3530
|
case 35: throw _d.sent();
|
|
3349
|
-
case 36: return [4,
|
|
3531
|
+
case 36: return [4, deserializeAws_restXmlInvalidOriginAccessControlResponse(parsedOutput, context)];
|
|
3350
3532
|
case 37: throw _d.sent();
|
|
3351
|
-
case 38: return [4,
|
|
3533
|
+
case 38: return [4, deserializeAws_restXmlInvalidOriginAccessIdentityResponse(parsedOutput, context)];
|
|
3352
3534
|
case 39: throw _d.sent();
|
|
3353
|
-
case 40: return [4,
|
|
3535
|
+
case 40: return [4, deserializeAws_restXmlInvalidOriginKeepaliveTimeoutResponse(parsedOutput, context)];
|
|
3354
3536
|
case 41: throw _d.sent();
|
|
3355
|
-
case 42: return [4,
|
|
3537
|
+
case 42: return [4, deserializeAws_restXmlInvalidOriginReadTimeoutResponse(parsedOutput, context)];
|
|
3356
3538
|
case 43: throw _d.sent();
|
|
3357
|
-
case 44: return [4,
|
|
3539
|
+
case 44: return [4, deserializeAws_restXmlInvalidProtocolSettingsResponse(parsedOutput, context)];
|
|
3358
3540
|
case 45: throw _d.sent();
|
|
3359
|
-
case 46: return [4,
|
|
3541
|
+
case 46: return [4, deserializeAws_restXmlInvalidQueryStringParametersResponse(parsedOutput, context)];
|
|
3360
3542
|
case 47: throw _d.sent();
|
|
3361
|
-
case 48: return [4,
|
|
3543
|
+
case 48: return [4, deserializeAws_restXmlInvalidRelativePathResponse(parsedOutput, context)];
|
|
3362
3544
|
case 49: throw _d.sent();
|
|
3363
|
-
case 50: return [4,
|
|
3545
|
+
case 50: return [4, deserializeAws_restXmlInvalidRequiredProtocolResponse(parsedOutput, context)];
|
|
3364
3546
|
case 51: throw _d.sent();
|
|
3365
|
-
case 52: return [4,
|
|
3547
|
+
case 52: return [4, deserializeAws_restXmlInvalidResponseCodeResponse(parsedOutput, context)];
|
|
3366
3548
|
case 53: throw _d.sent();
|
|
3367
|
-
case 54: return [4,
|
|
3549
|
+
case 54: return [4, deserializeAws_restXmlInvalidTaggingResponse(parsedOutput, context)];
|
|
3368
3550
|
case 55: throw _d.sent();
|
|
3369
|
-
case 56: return [4,
|
|
3551
|
+
case 56: return [4, deserializeAws_restXmlInvalidTTLOrderResponse(parsedOutput, context)];
|
|
3370
3552
|
case 57: throw _d.sent();
|
|
3371
|
-
case 58: return [4,
|
|
3553
|
+
case 58: return [4, deserializeAws_restXmlInvalidViewerCertificateResponse(parsedOutput, context)];
|
|
3372
3554
|
case 59: throw _d.sent();
|
|
3373
|
-
case 60: return [4,
|
|
3555
|
+
case 60: return [4, deserializeAws_restXmlInvalidWebACLIdResponse(parsedOutput, context)];
|
|
3374
3556
|
case 61: throw _d.sent();
|
|
3375
|
-
case 62: return [4,
|
|
3557
|
+
case 62: return [4, deserializeAws_restXmlMissingBodyResponse(parsedOutput, context)];
|
|
3376
3558
|
case 63: throw _d.sent();
|
|
3377
|
-
case 64: return [4,
|
|
3559
|
+
case 64: return [4, deserializeAws_restXmlNoSuchCachePolicyResponse(parsedOutput, context)];
|
|
3378
3560
|
case 65: throw _d.sent();
|
|
3379
|
-
case 66: return [4,
|
|
3561
|
+
case 66: return [4, deserializeAws_restXmlNoSuchFieldLevelEncryptionConfigResponse(parsedOutput, context)];
|
|
3380
3562
|
case 67: throw _d.sent();
|
|
3381
|
-
case 68: return [4,
|
|
3563
|
+
case 68: return [4, deserializeAws_restXmlNoSuchOriginResponse(parsedOutput, context)];
|
|
3382
3564
|
case 69: throw _d.sent();
|
|
3383
|
-
case 70: return [4,
|
|
3565
|
+
case 70: return [4, deserializeAws_restXmlNoSuchOriginRequestPolicyResponse(parsedOutput, context)];
|
|
3384
3566
|
case 71: throw _d.sent();
|
|
3385
|
-
case 72: return [4,
|
|
3567
|
+
case 72: return [4, deserializeAws_restXmlNoSuchRealtimeLogConfigResponse(parsedOutput, context)];
|
|
3386
3568
|
case 73: throw _d.sent();
|
|
3387
|
-
case 74: return [4,
|
|
3569
|
+
case 74: return [4, deserializeAws_restXmlNoSuchResponseHeadersPolicyResponse(parsedOutput, context)];
|
|
3388
3570
|
case 75: throw _d.sent();
|
|
3389
|
-
case 76: return [4,
|
|
3571
|
+
case 76: return [4, deserializeAws_restXmlRealtimeLogConfigOwnerMismatchResponse(parsedOutput, context)];
|
|
3390
3572
|
case 77: throw _d.sent();
|
|
3391
|
-
case 78: return [4,
|
|
3573
|
+
case 78: return [4, deserializeAws_restXmlTooManyCacheBehaviorsResponse(parsedOutput, context)];
|
|
3392
3574
|
case 79: throw _d.sent();
|
|
3393
|
-
case 80: return [4,
|
|
3575
|
+
case 80: return [4, deserializeAws_restXmlTooManyCertificatesResponse(parsedOutput, context)];
|
|
3394
3576
|
case 81: throw _d.sent();
|
|
3395
|
-
case 82: return [4,
|
|
3577
|
+
case 82: return [4, deserializeAws_restXmlTooManyCookieNamesInWhiteListResponse(parsedOutput, context)];
|
|
3396
3578
|
case 83: throw _d.sent();
|
|
3397
|
-
case 84: return [4,
|
|
3579
|
+
case 84: return [4, deserializeAws_restXmlTooManyDistributionCNAMEsResponse(parsedOutput, context)];
|
|
3398
3580
|
case 85: throw _d.sent();
|
|
3399
|
-
case 86: return [4,
|
|
3581
|
+
case 86: return [4, deserializeAws_restXmlTooManyDistributionsResponse(parsedOutput, context)];
|
|
3400
3582
|
case 87: throw _d.sent();
|
|
3401
|
-
case 88: return [4,
|
|
3583
|
+
case 88: return [4, deserializeAws_restXmlTooManyDistributionsAssociatedToCachePolicyResponse(parsedOutput, context)];
|
|
3402
3584
|
case 89: throw _d.sent();
|
|
3403
|
-
case 90: return [4,
|
|
3585
|
+
case 90: return [4, deserializeAws_restXmlTooManyDistributionsAssociatedToFieldLevelEncryptionConfigResponse(parsedOutput, context)];
|
|
3404
3586
|
case 91: throw _d.sent();
|
|
3405
|
-
case 92: return [4,
|
|
3587
|
+
case 92: return [4, deserializeAws_restXmlTooManyDistributionsAssociatedToKeyGroupResponse(parsedOutput, context)];
|
|
3406
3588
|
case 93: throw _d.sent();
|
|
3407
|
-
case 94: return [4,
|
|
3589
|
+
case 94: return [4, deserializeAws_restXmlTooManyDistributionsAssociatedToOriginRequestPolicyResponse(parsedOutput, context)];
|
|
3408
3590
|
case 95: throw _d.sent();
|
|
3409
|
-
case 96: return [4,
|
|
3591
|
+
case 96: return [4, deserializeAws_restXmlTooManyDistributionsAssociatedToResponseHeadersPolicyResponse(parsedOutput, context)];
|
|
3410
3592
|
case 97: throw _d.sent();
|
|
3411
|
-
case 98: return [4,
|
|
3593
|
+
case 98: return [4, deserializeAws_restXmlTooManyDistributionsWithFunctionAssociationsResponse(parsedOutput, context)];
|
|
3412
3594
|
case 99: throw _d.sent();
|
|
3413
|
-
case 100: return [4,
|
|
3595
|
+
case 100: return [4, deserializeAws_restXmlTooManyDistributionsWithLambdaAssociationsResponse(parsedOutput, context)];
|
|
3414
3596
|
case 101: throw _d.sent();
|
|
3415
|
-
case 102: return [4,
|
|
3597
|
+
case 102: return [4, deserializeAws_restXmlTooManyDistributionsWithSingleFunctionARNResponse(parsedOutput, context)];
|
|
3416
3598
|
case 103: throw _d.sent();
|
|
3417
|
-
case 104: return [4,
|
|
3599
|
+
case 104: return [4, deserializeAws_restXmlTooManyFunctionAssociationsResponse(parsedOutput, context)];
|
|
3418
3600
|
case 105: throw _d.sent();
|
|
3419
|
-
case 106: return [4,
|
|
3601
|
+
case 106: return [4, deserializeAws_restXmlTooManyHeadersInForwardedValuesResponse(parsedOutput, context)];
|
|
3420
3602
|
case 107: throw _d.sent();
|
|
3421
|
-
case 108: return [4,
|
|
3603
|
+
case 108: return [4, deserializeAws_restXmlTooManyKeyGroupsAssociatedToDistributionResponse(parsedOutput, context)];
|
|
3422
3604
|
case 109: throw _d.sent();
|
|
3423
|
-
case 110: return [4,
|
|
3605
|
+
case 110: return [4, deserializeAws_restXmlTooManyLambdaFunctionAssociationsResponse(parsedOutput, context)];
|
|
3424
3606
|
case 111: throw _d.sent();
|
|
3425
|
-
case 112: return [4,
|
|
3607
|
+
case 112: return [4, deserializeAws_restXmlTooManyOriginCustomHeadersResponse(parsedOutput, context)];
|
|
3426
3608
|
case 113: throw _d.sent();
|
|
3427
|
-
case 114: return [4,
|
|
3609
|
+
case 114: return [4, deserializeAws_restXmlTooManyOriginGroupsPerDistributionResponse(parsedOutput, context)];
|
|
3428
3610
|
case 115: throw _d.sent();
|
|
3429
|
-
case 116: return [4,
|
|
3611
|
+
case 116: return [4, deserializeAws_restXmlTooManyOriginsResponse(parsedOutput, context)];
|
|
3430
3612
|
case 117: throw _d.sent();
|
|
3431
|
-
case 118: return [4,
|
|
3613
|
+
case 118: return [4, deserializeAws_restXmlTooManyQueryStringParametersResponse(parsedOutput, context)];
|
|
3432
3614
|
case 119: throw _d.sent();
|
|
3433
|
-
case 120: return [4,
|
|
3615
|
+
case 120: return [4, deserializeAws_restXmlTooManyTrustedSignersResponse(parsedOutput, context)];
|
|
3434
3616
|
case 121: throw _d.sent();
|
|
3435
|
-
case 122:
|
|
3617
|
+
case 122: return [4, deserializeAws_restXmlTrustedKeyGroupDoesNotExistResponse(parsedOutput, context)];
|
|
3618
|
+
case 123: throw _d.sent();
|
|
3619
|
+
case 124: return [4, deserializeAws_restXmlTrustedSignerDoesNotExistResponse(parsedOutput, context)];
|
|
3620
|
+
case 125: throw _d.sent();
|
|
3621
|
+
case 126:
|
|
3436
3622
|
parsedBody = parsedOutput.body;
|
|
3437
3623
|
throwDefaultError({
|
|
3438
3624
|
output: output,
|
|
@@ -3440,8 +3626,8 @@ var deserializeAws_restXmlCreateDistributionWithTagsCommandError = function (out
|
|
|
3440
3626
|
exceptionCtor: __BaseException,
|
|
3441
3627
|
errorCode: errorCode,
|
|
3442
3628
|
});
|
|
3443
|
-
_d.label =
|
|
3444
|
-
case
|
|
3629
|
+
_d.label = 127;
|
|
3630
|
+
case 127: return [2];
|
|
3445
3631
|
}
|
|
3446
3632
|
});
|
|
3447
3633
|
}); };
|
|
@@ -3863,17 +4049,84 @@ var deserializeAws_restXmlCreateMonitoringSubscriptionCommandError = function (o
|
|
|
3863
4049
|
switch (_b) {
|
|
3864
4050
|
case "AccessDenied": return [3, 2];
|
|
3865
4051
|
case "com.amazonaws.cloudfront#AccessDenied": return [3, 2];
|
|
3866
|
-
case "
|
|
3867
|
-
case "com.amazonaws.cloudfront#
|
|
3868
|
-
case "
|
|
3869
|
-
case "com.amazonaws.cloudfront#
|
|
4052
|
+
case "MonitoringSubscriptionAlreadyExists": return [3, 4];
|
|
4053
|
+
case "com.amazonaws.cloudfront#MonitoringSubscriptionAlreadyExists": return [3, 4];
|
|
4054
|
+
case "NoSuchDistribution": return [3, 6];
|
|
4055
|
+
case "com.amazonaws.cloudfront#NoSuchDistribution": return [3, 6];
|
|
4056
|
+
case "UnsupportedOperation": return [3, 8];
|
|
4057
|
+
case "com.amazonaws.cloudfront#UnsupportedOperation": return [3, 8];
|
|
3870
4058
|
}
|
|
3871
|
-
return [3,
|
|
4059
|
+
return [3, 10];
|
|
3872
4060
|
case 2: return [4, deserializeAws_restXmlAccessDeniedResponse(parsedOutput, context)];
|
|
3873
4061
|
case 3: throw _d.sent();
|
|
3874
|
-
case 4: return [4,
|
|
4062
|
+
case 4: return [4, deserializeAws_restXmlMonitoringSubscriptionAlreadyExistsResponse(parsedOutput, context)];
|
|
3875
4063
|
case 5: throw _d.sent();
|
|
3876
|
-
case 6: return [4,
|
|
4064
|
+
case 6: return [4, deserializeAws_restXmlNoSuchDistributionResponse(parsedOutput, context)];
|
|
4065
|
+
case 7: throw _d.sent();
|
|
4066
|
+
case 8: return [4, deserializeAws_restXmlUnsupportedOperationResponse(parsedOutput, context)];
|
|
4067
|
+
case 9: throw _d.sent();
|
|
4068
|
+
case 10:
|
|
4069
|
+
parsedBody = parsedOutput.body;
|
|
4070
|
+
throwDefaultError({
|
|
4071
|
+
output: output,
|
|
4072
|
+
parsedBody: parsedBody.Error,
|
|
4073
|
+
exceptionCtor: __BaseException,
|
|
4074
|
+
errorCode: errorCode,
|
|
4075
|
+
});
|
|
4076
|
+
_d.label = 11;
|
|
4077
|
+
case 11: return [2];
|
|
4078
|
+
}
|
|
4079
|
+
});
|
|
4080
|
+
}); };
|
|
4081
|
+
export var deserializeAws_restXmlCreateOriginAccessControlCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4082
|
+
var contents, data, _a;
|
|
4083
|
+
return __generator(this, function (_b) {
|
|
4084
|
+
switch (_b.label) {
|
|
4085
|
+
case 0:
|
|
4086
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
4087
|
+
return [2, deserializeAws_restXmlCreateOriginAccessControlCommandError(output, context)];
|
|
4088
|
+
}
|
|
4089
|
+
contents = map({
|
|
4090
|
+
$metadata: deserializeMetadata(output),
|
|
4091
|
+
Location: [, output.headers["location"]],
|
|
4092
|
+
ETag: [, output.headers["etag"]],
|
|
4093
|
+
});
|
|
4094
|
+
_a = __expectObject;
|
|
4095
|
+
return [4, parseBody(output.body, context)];
|
|
4096
|
+
case 1:
|
|
4097
|
+
data = _a.apply(void 0, [_b.sent()]);
|
|
4098
|
+
contents.OriginAccessControl = deserializeAws_restXmlOriginAccessControl(data, context);
|
|
4099
|
+
return [2, contents];
|
|
4100
|
+
}
|
|
4101
|
+
});
|
|
4102
|
+
}); };
|
|
4103
|
+
var deserializeAws_restXmlCreateOriginAccessControlCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4104
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4105
|
+
var _c;
|
|
4106
|
+
return __generator(this, function (_d) {
|
|
4107
|
+
switch (_d.label) {
|
|
4108
|
+
case 0:
|
|
4109
|
+
_a = [__assign({}, output)];
|
|
4110
|
+
_c = {};
|
|
4111
|
+
return [4, parseBody(output.body, context)];
|
|
4112
|
+
case 1:
|
|
4113
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4114
|
+
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4115
|
+
_b = errorCode;
|
|
4116
|
+
switch (_b) {
|
|
4117
|
+
case "InvalidArgument": return [3, 2];
|
|
4118
|
+
case "com.amazonaws.cloudfront#InvalidArgument": return [3, 2];
|
|
4119
|
+
case "OriginAccessControlAlreadyExists": return [3, 4];
|
|
4120
|
+
case "com.amazonaws.cloudfront#OriginAccessControlAlreadyExists": return [3, 4];
|
|
4121
|
+
case "TooManyOriginAccessControls": return [3, 6];
|
|
4122
|
+
case "com.amazonaws.cloudfront#TooManyOriginAccessControls": return [3, 6];
|
|
4123
|
+
}
|
|
4124
|
+
return [3, 8];
|
|
4125
|
+
case 2: return [4, deserializeAws_restXmlInvalidArgumentResponse(parsedOutput, context)];
|
|
4126
|
+
case 3: throw _d.sent();
|
|
4127
|
+
case 4: return [4, deserializeAws_restXmlOriginAccessControlAlreadyExistsResponse(parsedOutput, context)];
|
|
4128
|
+
case 5: throw _d.sent();
|
|
4129
|
+
case 6: return [4, deserializeAws_restXmlTooManyOriginAccessControlsResponse(parsedOutput, context)];
|
|
3877
4130
|
case 7: throw _d.sent();
|
|
3878
4131
|
case 8:
|
|
3879
4132
|
parsedBody = parsedOutput.body;
|
|
@@ -4227,22 +4480,24 @@ var deserializeAws_restXmlCreateStreamingDistributionCommandError = function (ou
|
|
|
4227
4480
|
case "com.amazonaws.cloudfront#InvalidArgument": return [3, 8];
|
|
4228
4481
|
case "InvalidOrigin": return [3, 10];
|
|
4229
4482
|
case "com.amazonaws.cloudfront#InvalidOrigin": return [3, 10];
|
|
4230
|
-
case "
|
|
4231
|
-
case "com.amazonaws.cloudfront#
|
|
4232
|
-
case "
|
|
4233
|
-
case "com.amazonaws.cloudfront#
|
|
4234
|
-
case "
|
|
4235
|
-
case "com.amazonaws.cloudfront#
|
|
4236
|
-
case "
|
|
4237
|
-
case "com.amazonaws.cloudfront#
|
|
4238
|
-
case "
|
|
4239
|
-
case "com.amazonaws.cloudfront#
|
|
4240
|
-
case "
|
|
4241
|
-
case "com.amazonaws.cloudfront#
|
|
4242
|
-
case "
|
|
4243
|
-
case "com.amazonaws.cloudfront#
|
|
4483
|
+
case "InvalidOriginAccessControl": return [3, 12];
|
|
4484
|
+
case "com.amazonaws.cloudfront#InvalidOriginAccessControl": return [3, 12];
|
|
4485
|
+
case "InvalidOriginAccessIdentity": return [3, 14];
|
|
4486
|
+
case "com.amazonaws.cloudfront#InvalidOriginAccessIdentity": return [3, 14];
|
|
4487
|
+
case "MissingBody": return [3, 16];
|
|
4488
|
+
case "com.amazonaws.cloudfront#MissingBody": return [3, 16];
|
|
4489
|
+
case "StreamingDistributionAlreadyExists": return [3, 18];
|
|
4490
|
+
case "com.amazonaws.cloudfront#StreamingDistributionAlreadyExists": return [3, 18];
|
|
4491
|
+
case "TooManyStreamingDistributionCNAMEs": return [3, 20];
|
|
4492
|
+
case "com.amazonaws.cloudfront#TooManyStreamingDistributionCNAMEs": return [3, 20];
|
|
4493
|
+
case "TooManyStreamingDistributions": return [3, 22];
|
|
4494
|
+
case "com.amazonaws.cloudfront#TooManyStreamingDistributions": return [3, 22];
|
|
4495
|
+
case "TooManyTrustedSigners": return [3, 24];
|
|
4496
|
+
case "com.amazonaws.cloudfront#TooManyTrustedSigners": return [3, 24];
|
|
4497
|
+
case "TrustedSignerDoesNotExist": return [3, 26];
|
|
4498
|
+
case "com.amazonaws.cloudfront#TrustedSignerDoesNotExist": return [3, 26];
|
|
4244
4499
|
}
|
|
4245
|
-
return [3,
|
|
4500
|
+
return [3, 28];
|
|
4246
4501
|
case 2: return [4, deserializeAws_restXmlAccessDeniedResponse(parsedOutput, context)];
|
|
4247
4502
|
case 3: throw _d.sent();
|
|
4248
4503
|
case 4: return [4, deserializeAws_restXmlCNAMEAlreadyExistsResponse(parsedOutput, context)];
|
|
@@ -4253,21 +4508,23 @@ var deserializeAws_restXmlCreateStreamingDistributionCommandError = function (ou
|
|
|
4253
4508
|
case 9: throw _d.sent();
|
|
4254
4509
|
case 10: return [4, deserializeAws_restXmlInvalidOriginResponse(parsedOutput, context)];
|
|
4255
4510
|
case 11: throw _d.sent();
|
|
4256
|
-
case 12: return [4,
|
|
4511
|
+
case 12: return [4, deserializeAws_restXmlInvalidOriginAccessControlResponse(parsedOutput, context)];
|
|
4257
4512
|
case 13: throw _d.sent();
|
|
4258
|
-
case 14: return [4,
|
|
4513
|
+
case 14: return [4, deserializeAws_restXmlInvalidOriginAccessIdentityResponse(parsedOutput, context)];
|
|
4259
4514
|
case 15: throw _d.sent();
|
|
4260
|
-
case 16: return [4,
|
|
4515
|
+
case 16: return [4, deserializeAws_restXmlMissingBodyResponse(parsedOutput, context)];
|
|
4261
4516
|
case 17: throw _d.sent();
|
|
4262
|
-
case 18: return [4,
|
|
4517
|
+
case 18: return [4, deserializeAws_restXmlStreamingDistributionAlreadyExistsResponse(parsedOutput, context)];
|
|
4263
4518
|
case 19: throw _d.sent();
|
|
4264
|
-
case 20: return [4,
|
|
4519
|
+
case 20: return [4, deserializeAws_restXmlTooManyStreamingDistributionCNAMEsResponse(parsedOutput, context)];
|
|
4265
4520
|
case 21: throw _d.sent();
|
|
4266
|
-
case 22: return [4,
|
|
4521
|
+
case 22: return [4, deserializeAws_restXmlTooManyStreamingDistributionsResponse(parsedOutput, context)];
|
|
4267
4522
|
case 23: throw _d.sent();
|
|
4268
|
-
case 24: return [4,
|
|
4523
|
+
case 24: return [4, deserializeAws_restXmlTooManyTrustedSignersResponse(parsedOutput, context)];
|
|
4269
4524
|
case 25: throw _d.sent();
|
|
4270
|
-
case 26:
|
|
4525
|
+
case 26: return [4, deserializeAws_restXmlTrustedSignerDoesNotExistResponse(parsedOutput, context)];
|
|
4526
|
+
case 27: throw _d.sent();
|
|
4527
|
+
case 28:
|
|
4271
4528
|
parsedBody = parsedOutput.body;
|
|
4272
4529
|
throwDefaultError({
|
|
4273
4530
|
output: output,
|
|
@@ -4275,8 +4532,8 @@ var deserializeAws_restXmlCreateStreamingDistributionCommandError = function (ou
|
|
|
4275
4532
|
exceptionCtor: __BaseException,
|
|
4276
4533
|
errorCode: errorCode,
|
|
4277
4534
|
});
|
|
4278
|
-
_d.label =
|
|
4279
|
-
case
|
|
4535
|
+
_d.label = 29;
|
|
4536
|
+
case 29: return [2];
|
|
4280
4537
|
}
|
|
4281
4538
|
});
|
|
4282
4539
|
}); };
|
|
@@ -4326,24 +4583,26 @@ var deserializeAws_restXmlCreateStreamingDistributionWithTagsCommandError = func
|
|
|
4326
4583
|
case "com.amazonaws.cloudfront#InvalidArgument": return [3, 8];
|
|
4327
4584
|
case "InvalidOrigin": return [3, 10];
|
|
4328
4585
|
case "com.amazonaws.cloudfront#InvalidOrigin": return [3, 10];
|
|
4329
|
-
case "
|
|
4330
|
-
case "com.amazonaws.cloudfront#
|
|
4331
|
-
case "
|
|
4332
|
-
case "com.amazonaws.cloudfront#
|
|
4333
|
-
case "
|
|
4334
|
-
case "com.amazonaws.cloudfront#
|
|
4335
|
-
case "
|
|
4336
|
-
case "com.amazonaws.cloudfront#
|
|
4337
|
-
case "
|
|
4338
|
-
case "com.amazonaws.cloudfront#
|
|
4339
|
-
case "
|
|
4340
|
-
case "com.amazonaws.cloudfront#
|
|
4341
|
-
case "
|
|
4342
|
-
case "com.amazonaws.cloudfront#
|
|
4343
|
-
case "
|
|
4344
|
-
case "com.amazonaws.cloudfront#
|
|
4345
|
-
|
|
4346
|
-
|
|
4586
|
+
case "InvalidOriginAccessControl": return [3, 12];
|
|
4587
|
+
case "com.amazonaws.cloudfront#InvalidOriginAccessControl": return [3, 12];
|
|
4588
|
+
case "InvalidOriginAccessIdentity": return [3, 14];
|
|
4589
|
+
case "com.amazonaws.cloudfront#InvalidOriginAccessIdentity": return [3, 14];
|
|
4590
|
+
case "InvalidTagging": return [3, 16];
|
|
4591
|
+
case "com.amazonaws.cloudfront#InvalidTagging": return [3, 16];
|
|
4592
|
+
case "MissingBody": return [3, 18];
|
|
4593
|
+
case "com.amazonaws.cloudfront#MissingBody": return [3, 18];
|
|
4594
|
+
case "StreamingDistributionAlreadyExists": return [3, 20];
|
|
4595
|
+
case "com.amazonaws.cloudfront#StreamingDistributionAlreadyExists": return [3, 20];
|
|
4596
|
+
case "TooManyStreamingDistributionCNAMEs": return [3, 22];
|
|
4597
|
+
case "com.amazonaws.cloudfront#TooManyStreamingDistributionCNAMEs": return [3, 22];
|
|
4598
|
+
case "TooManyStreamingDistributions": return [3, 24];
|
|
4599
|
+
case "com.amazonaws.cloudfront#TooManyStreamingDistributions": return [3, 24];
|
|
4600
|
+
case "TooManyTrustedSigners": return [3, 26];
|
|
4601
|
+
case "com.amazonaws.cloudfront#TooManyTrustedSigners": return [3, 26];
|
|
4602
|
+
case "TrustedSignerDoesNotExist": return [3, 28];
|
|
4603
|
+
case "com.amazonaws.cloudfront#TrustedSignerDoesNotExist": return [3, 28];
|
|
4604
|
+
}
|
|
4605
|
+
return [3, 30];
|
|
4347
4606
|
case 2: return [4, deserializeAws_restXmlAccessDeniedResponse(parsedOutput, context)];
|
|
4348
4607
|
case 3: throw _d.sent();
|
|
4349
4608
|
case 4: return [4, deserializeAws_restXmlCNAMEAlreadyExistsResponse(parsedOutput, context)];
|
|
@@ -4354,23 +4613,25 @@ var deserializeAws_restXmlCreateStreamingDistributionWithTagsCommandError = func
|
|
|
4354
4613
|
case 9: throw _d.sent();
|
|
4355
4614
|
case 10: return [4, deserializeAws_restXmlInvalidOriginResponse(parsedOutput, context)];
|
|
4356
4615
|
case 11: throw _d.sent();
|
|
4357
|
-
case 12: return [4,
|
|
4616
|
+
case 12: return [4, deserializeAws_restXmlInvalidOriginAccessControlResponse(parsedOutput, context)];
|
|
4358
4617
|
case 13: throw _d.sent();
|
|
4359
|
-
case 14: return [4,
|
|
4618
|
+
case 14: return [4, deserializeAws_restXmlInvalidOriginAccessIdentityResponse(parsedOutput, context)];
|
|
4360
4619
|
case 15: throw _d.sent();
|
|
4361
|
-
case 16: return [4,
|
|
4620
|
+
case 16: return [4, deserializeAws_restXmlInvalidTaggingResponse(parsedOutput, context)];
|
|
4362
4621
|
case 17: throw _d.sent();
|
|
4363
|
-
case 18: return [4,
|
|
4622
|
+
case 18: return [4, deserializeAws_restXmlMissingBodyResponse(parsedOutput, context)];
|
|
4364
4623
|
case 19: throw _d.sent();
|
|
4365
|
-
case 20: return [4,
|
|
4624
|
+
case 20: return [4, deserializeAws_restXmlStreamingDistributionAlreadyExistsResponse(parsedOutput, context)];
|
|
4366
4625
|
case 21: throw _d.sent();
|
|
4367
|
-
case 22: return [4,
|
|
4626
|
+
case 22: return [4, deserializeAws_restXmlTooManyStreamingDistributionCNAMEsResponse(parsedOutput, context)];
|
|
4368
4627
|
case 23: throw _d.sent();
|
|
4369
|
-
case 24: return [4,
|
|
4628
|
+
case 24: return [4, deserializeAws_restXmlTooManyStreamingDistributionsResponse(parsedOutput, context)];
|
|
4370
4629
|
case 25: throw _d.sent();
|
|
4371
|
-
case 26: return [4,
|
|
4630
|
+
case 26: return [4, deserializeAws_restXmlTooManyTrustedSignersResponse(parsedOutput, context)];
|
|
4372
4631
|
case 27: throw _d.sent();
|
|
4373
|
-
case 28:
|
|
4632
|
+
case 28: return [4, deserializeAws_restXmlTrustedSignerDoesNotExistResponse(parsedOutput, context)];
|
|
4633
|
+
case 29: throw _d.sent();
|
|
4634
|
+
case 30:
|
|
4374
4635
|
parsedBody = parsedOutput.body;
|
|
4375
4636
|
throwDefaultError({
|
|
4376
4637
|
output: output,
|
|
@@ -4378,8 +4639,8 @@ var deserializeAws_restXmlCreateStreamingDistributionWithTagsCommandError = func
|
|
|
4378
4639
|
exceptionCtor: __BaseException,
|
|
4379
4640
|
errorCode: errorCode,
|
|
4380
4641
|
});
|
|
4381
|
-
_d.label =
|
|
4382
|
-
case
|
|
4642
|
+
_d.label = 31;
|
|
4643
|
+
case 31: return [2];
|
|
4383
4644
|
}
|
|
4384
4645
|
});
|
|
4385
4646
|
}); };
|
|
@@ -4888,17 +5149,88 @@ var deserializeAws_restXmlDeleteMonitoringSubscriptionCommandError = function (o
|
|
|
4888
5149
|
case "com.amazonaws.cloudfront#AccessDenied": return [3, 2];
|
|
4889
5150
|
case "NoSuchDistribution": return [3, 4];
|
|
4890
5151
|
case "com.amazonaws.cloudfront#NoSuchDistribution": return [3, 4];
|
|
4891
|
-
case "
|
|
4892
|
-
case "com.amazonaws.cloudfront#
|
|
5152
|
+
case "NoSuchMonitoringSubscription": return [3, 6];
|
|
5153
|
+
case "com.amazonaws.cloudfront#NoSuchMonitoringSubscription": return [3, 6];
|
|
5154
|
+
case "UnsupportedOperation": return [3, 8];
|
|
5155
|
+
case "com.amazonaws.cloudfront#UnsupportedOperation": return [3, 8];
|
|
5156
|
+
}
|
|
5157
|
+
return [3, 10];
|
|
5158
|
+
case 2: return [4, deserializeAws_restXmlAccessDeniedResponse(parsedOutput, context)];
|
|
5159
|
+
case 3: throw _d.sent();
|
|
5160
|
+
case 4: return [4, deserializeAws_restXmlNoSuchDistributionResponse(parsedOutput, context)];
|
|
5161
|
+
case 5: throw _d.sent();
|
|
5162
|
+
case 6: return [4, deserializeAws_restXmlNoSuchMonitoringSubscriptionResponse(parsedOutput, context)];
|
|
5163
|
+
case 7: throw _d.sent();
|
|
5164
|
+
case 8: return [4, deserializeAws_restXmlUnsupportedOperationResponse(parsedOutput, context)];
|
|
5165
|
+
case 9: throw _d.sent();
|
|
5166
|
+
case 10:
|
|
5167
|
+
parsedBody = parsedOutput.body;
|
|
5168
|
+
throwDefaultError({
|
|
5169
|
+
output: output,
|
|
5170
|
+
parsedBody: parsedBody.Error,
|
|
5171
|
+
exceptionCtor: __BaseException,
|
|
5172
|
+
errorCode: errorCode,
|
|
5173
|
+
});
|
|
5174
|
+
_d.label = 11;
|
|
5175
|
+
case 11: return [2];
|
|
5176
|
+
}
|
|
5177
|
+
});
|
|
5178
|
+
}); };
|
|
5179
|
+
export var deserializeAws_restXmlDeleteOriginAccessControlCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5180
|
+
var contents;
|
|
5181
|
+
return __generator(this, function (_a) {
|
|
5182
|
+
switch (_a.label) {
|
|
5183
|
+
case 0:
|
|
5184
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
5185
|
+
return [2, deserializeAws_restXmlDeleteOriginAccessControlCommandError(output, context)];
|
|
5186
|
+
}
|
|
5187
|
+
contents = map({
|
|
5188
|
+
$metadata: deserializeMetadata(output),
|
|
5189
|
+
});
|
|
5190
|
+
return [4, collectBody(output.body, context)];
|
|
5191
|
+
case 1:
|
|
5192
|
+
_a.sent();
|
|
5193
|
+
return [2, contents];
|
|
5194
|
+
}
|
|
5195
|
+
});
|
|
5196
|
+
}); };
|
|
5197
|
+
var deserializeAws_restXmlDeleteOriginAccessControlCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5198
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
5199
|
+
var _c;
|
|
5200
|
+
return __generator(this, function (_d) {
|
|
5201
|
+
switch (_d.label) {
|
|
5202
|
+
case 0:
|
|
5203
|
+
_a = [__assign({}, output)];
|
|
5204
|
+
_c = {};
|
|
5205
|
+
return [4, parseBody(output.body, context)];
|
|
5206
|
+
case 1:
|
|
5207
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
5208
|
+
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5209
|
+
_b = errorCode;
|
|
5210
|
+
switch (_b) {
|
|
5211
|
+
case "AccessDenied": return [3, 2];
|
|
5212
|
+
case "com.amazonaws.cloudfront#AccessDenied": return [3, 2];
|
|
5213
|
+
case "InvalidIfMatchVersion": return [3, 4];
|
|
5214
|
+
case "com.amazonaws.cloudfront#InvalidIfMatchVersion": return [3, 4];
|
|
5215
|
+
case "NoSuchOriginAccessControl": return [3, 6];
|
|
5216
|
+
case "com.amazonaws.cloudfront#NoSuchOriginAccessControl": return [3, 6];
|
|
5217
|
+
case "OriginAccessControlInUse": return [3, 8];
|
|
5218
|
+
case "com.amazonaws.cloudfront#OriginAccessControlInUse": return [3, 8];
|
|
5219
|
+
case "PreconditionFailed": return [3, 10];
|
|
5220
|
+
case "com.amazonaws.cloudfront#PreconditionFailed": return [3, 10];
|
|
4893
5221
|
}
|
|
4894
|
-
return [3,
|
|
5222
|
+
return [3, 12];
|
|
4895
5223
|
case 2: return [4, deserializeAws_restXmlAccessDeniedResponse(parsedOutput, context)];
|
|
4896
5224
|
case 3: throw _d.sent();
|
|
4897
|
-
case 4: return [4,
|
|
5225
|
+
case 4: return [4, deserializeAws_restXmlInvalidIfMatchVersionResponse(parsedOutput, context)];
|
|
4898
5226
|
case 5: throw _d.sent();
|
|
4899
|
-
case 6: return [4,
|
|
5227
|
+
case 6: return [4, deserializeAws_restXmlNoSuchOriginAccessControlResponse(parsedOutput, context)];
|
|
4900
5228
|
case 7: throw _d.sent();
|
|
4901
|
-
case 8:
|
|
5229
|
+
case 8: return [4, deserializeAws_restXmlOriginAccessControlInUseResponse(parsedOutput, context)];
|
|
5230
|
+
case 9: throw _d.sent();
|
|
5231
|
+
case 10: return [4, deserializeAws_restXmlPreconditionFailedResponse(parsedOutput, context)];
|
|
5232
|
+
case 11: throw _d.sent();
|
|
5233
|
+
case 12:
|
|
4902
5234
|
parsedBody = parsedOutput.body;
|
|
4903
5235
|
throwDefaultError({
|
|
4904
5236
|
output: output,
|
|
@@ -4906,8 +5238,8 @@ var deserializeAws_restXmlDeleteMonitoringSubscriptionCommandError = function (o
|
|
|
4906
5238
|
exceptionCtor: __BaseException,
|
|
4907
5239
|
errorCode: errorCode,
|
|
4908
5240
|
});
|
|
4909
|
-
_d.label =
|
|
4910
|
-
case
|
|
5241
|
+
_d.label = 13;
|
|
5242
|
+
case 13: return [2];
|
|
4911
5243
|
}
|
|
4912
5244
|
});
|
|
4913
5245
|
}); };
|
|
@@ -6153,17 +6485,21 @@ var deserializeAws_restXmlGetMonitoringSubscriptionCommandError = function (outp
|
|
|
6153
6485
|
case "com.amazonaws.cloudfront#AccessDenied": return [3, 2];
|
|
6154
6486
|
case "NoSuchDistribution": return [3, 4];
|
|
6155
6487
|
case "com.amazonaws.cloudfront#NoSuchDistribution": return [3, 4];
|
|
6156
|
-
case "
|
|
6157
|
-
case "com.amazonaws.cloudfront#
|
|
6488
|
+
case "NoSuchMonitoringSubscription": return [3, 6];
|
|
6489
|
+
case "com.amazonaws.cloudfront#NoSuchMonitoringSubscription": return [3, 6];
|
|
6490
|
+
case "UnsupportedOperation": return [3, 8];
|
|
6491
|
+
case "com.amazonaws.cloudfront#UnsupportedOperation": return [3, 8];
|
|
6158
6492
|
}
|
|
6159
|
-
return [3,
|
|
6493
|
+
return [3, 10];
|
|
6160
6494
|
case 2: return [4, deserializeAws_restXmlAccessDeniedResponse(parsedOutput, context)];
|
|
6161
6495
|
case 3: throw _d.sent();
|
|
6162
6496
|
case 4: return [4, deserializeAws_restXmlNoSuchDistributionResponse(parsedOutput, context)];
|
|
6163
6497
|
case 5: throw _d.sent();
|
|
6164
|
-
case 6: return [4,
|
|
6498
|
+
case 6: return [4, deserializeAws_restXmlNoSuchMonitoringSubscriptionResponse(parsedOutput, context)];
|
|
6165
6499
|
case 7: throw _d.sent();
|
|
6166
|
-
case 8:
|
|
6500
|
+
case 8: return [4, deserializeAws_restXmlUnsupportedOperationResponse(parsedOutput, context)];
|
|
6501
|
+
case 9: throw _d.sent();
|
|
6502
|
+
case 10:
|
|
6167
6503
|
parsedBody = parsedOutput.body;
|
|
6168
6504
|
throwDefaultError({
|
|
6169
6505
|
output: output,
|
|
@@ -6171,8 +6507,124 @@ var deserializeAws_restXmlGetMonitoringSubscriptionCommandError = function (outp
|
|
|
6171
6507
|
exceptionCtor: __BaseException,
|
|
6172
6508
|
errorCode: errorCode,
|
|
6173
6509
|
});
|
|
6174
|
-
_d.label =
|
|
6175
|
-
case
|
|
6510
|
+
_d.label = 11;
|
|
6511
|
+
case 11: return [2];
|
|
6512
|
+
}
|
|
6513
|
+
});
|
|
6514
|
+
}); };
|
|
6515
|
+
export var deserializeAws_restXmlGetOriginAccessControlCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6516
|
+
var contents, data, _a;
|
|
6517
|
+
return __generator(this, function (_b) {
|
|
6518
|
+
switch (_b.label) {
|
|
6519
|
+
case 0:
|
|
6520
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6521
|
+
return [2, deserializeAws_restXmlGetOriginAccessControlCommandError(output, context)];
|
|
6522
|
+
}
|
|
6523
|
+
contents = map({
|
|
6524
|
+
$metadata: deserializeMetadata(output),
|
|
6525
|
+
ETag: [, output.headers["etag"]],
|
|
6526
|
+
});
|
|
6527
|
+
_a = __expectObject;
|
|
6528
|
+
return [4, parseBody(output.body, context)];
|
|
6529
|
+
case 1:
|
|
6530
|
+
data = _a.apply(void 0, [_b.sent()]);
|
|
6531
|
+
contents.OriginAccessControl = deserializeAws_restXmlOriginAccessControl(data, context);
|
|
6532
|
+
return [2, contents];
|
|
6533
|
+
}
|
|
6534
|
+
});
|
|
6535
|
+
}); };
|
|
6536
|
+
var deserializeAws_restXmlGetOriginAccessControlCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6537
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
6538
|
+
var _c;
|
|
6539
|
+
return __generator(this, function (_d) {
|
|
6540
|
+
switch (_d.label) {
|
|
6541
|
+
case 0:
|
|
6542
|
+
_a = [__assign({}, output)];
|
|
6543
|
+
_c = {};
|
|
6544
|
+
return [4, parseBody(output.body, context)];
|
|
6545
|
+
case 1:
|
|
6546
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
6547
|
+
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
6548
|
+
_b = errorCode;
|
|
6549
|
+
switch (_b) {
|
|
6550
|
+
case "AccessDenied": return [3, 2];
|
|
6551
|
+
case "com.amazonaws.cloudfront#AccessDenied": return [3, 2];
|
|
6552
|
+
case "NoSuchOriginAccessControl": return [3, 4];
|
|
6553
|
+
case "com.amazonaws.cloudfront#NoSuchOriginAccessControl": return [3, 4];
|
|
6554
|
+
}
|
|
6555
|
+
return [3, 6];
|
|
6556
|
+
case 2: return [4, deserializeAws_restXmlAccessDeniedResponse(parsedOutput, context)];
|
|
6557
|
+
case 3: throw _d.sent();
|
|
6558
|
+
case 4: return [4, deserializeAws_restXmlNoSuchOriginAccessControlResponse(parsedOutput, context)];
|
|
6559
|
+
case 5: throw _d.sent();
|
|
6560
|
+
case 6:
|
|
6561
|
+
parsedBody = parsedOutput.body;
|
|
6562
|
+
throwDefaultError({
|
|
6563
|
+
output: output,
|
|
6564
|
+
parsedBody: parsedBody.Error,
|
|
6565
|
+
exceptionCtor: __BaseException,
|
|
6566
|
+
errorCode: errorCode,
|
|
6567
|
+
});
|
|
6568
|
+
_d.label = 7;
|
|
6569
|
+
case 7: return [2];
|
|
6570
|
+
}
|
|
6571
|
+
});
|
|
6572
|
+
}); };
|
|
6573
|
+
export var deserializeAws_restXmlGetOriginAccessControlConfigCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6574
|
+
var contents, data, _a;
|
|
6575
|
+
return __generator(this, function (_b) {
|
|
6576
|
+
switch (_b.label) {
|
|
6577
|
+
case 0:
|
|
6578
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6579
|
+
return [2, deserializeAws_restXmlGetOriginAccessControlConfigCommandError(output, context)];
|
|
6580
|
+
}
|
|
6581
|
+
contents = map({
|
|
6582
|
+
$metadata: deserializeMetadata(output),
|
|
6583
|
+
ETag: [, output.headers["etag"]],
|
|
6584
|
+
});
|
|
6585
|
+
_a = __expectObject;
|
|
6586
|
+
return [4, parseBody(output.body, context)];
|
|
6587
|
+
case 1:
|
|
6588
|
+
data = _a.apply(void 0, [_b.sent()]);
|
|
6589
|
+
contents.OriginAccessControlConfig = deserializeAws_restXmlOriginAccessControlConfig(data, context);
|
|
6590
|
+
return [2, contents];
|
|
6591
|
+
}
|
|
6592
|
+
});
|
|
6593
|
+
}); };
|
|
6594
|
+
var deserializeAws_restXmlGetOriginAccessControlConfigCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6595
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
6596
|
+
var _c;
|
|
6597
|
+
return __generator(this, function (_d) {
|
|
6598
|
+
switch (_d.label) {
|
|
6599
|
+
case 0:
|
|
6600
|
+
_a = [__assign({}, output)];
|
|
6601
|
+
_c = {};
|
|
6602
|
+
return [4, parseBody(output.body, context)];
|
|
6603
|
+
case 1:
|
|
6604
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
6605
|
+
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
6606
|
+
_b = errorCode;
|
|
6607
|
+
switch (_b) {
|
|
6608
|
+
case "AccessDenied": return [3, 2];
|
|
6609
|
+
case "com.amazonaws.cloudfront#AccessDenied": return [3, 2];
|
|
6610
|
+
case "NoSuchOriginAccessControl": return [3, 4];
|
|
6611
|
+
case "com.amazonaws.cloudfront#NoSuchOriginAccessControl": return [3, 4];
|
|
6612
|
+
}
|
|
6613
|
+
return [3, 6];
|
|
6614
|
+
case 2: return [4, deserializeAws_restXmlAccessDeniedResponse(parsedOutput, context)];
|
|
6615
|
+
case 3: throw _d.sent();
|
|
6616
|
+
case 4: return [4, deserializeAws_restXmlNoSuchOriginAccessControlResponse(parsedOutput, context)];
|
|
6617
|
+
case 5: throw _d.sent();
|
|
6618
|
+
case 6:
|
|
6619
|
+
parsedBody = parsedOutput.body;
|
|
6620
|
+
throwDefaultError({
|
|
6621
|
+
output: output,
|
|
6622
|
+
parsedBody: parsedBody.Error,
|
|
6623
|
+
exceptionCtor: __BaseException,
|
|
6624
|
+
errorCode: errorCode,
|
|
6625
|
+
});
|
|
6626
|
+
_d.label = 7;
|
|
6627
|
+
case 7: return [2];
|
|
6176
6628
|
}
|
|
6177
6629
|
});
|
|
6178
6630
|
}); };
|
|
@@ -7555,6 +8007,59 @@ var deserializeAws_restXmlListKeyGroupsCommandError = function (output, context)
|
|
|
7555
8007
|
}
|
|
7556
8008
|
});
|
|
7557
8009
|
}); };
|
|
8010
|
+
export var deserializeAws_restXmlListOriginAccessControlsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
8011
|
+
var contents, data, _a;
|
|
8012
|
+
return __generator(this, function (_b) {
|
|
8013
|
+
switch (_b.label) {
|
|
8014
|
+
case 0:
|
|
8015
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
8016
|
+
return [2, deserializeAws_restXmlListOriginAccessControlsCommandError(output, context)];
|
|
8017
|
+
}
|
|
8018
|
+
contents = map({
|
|
8019
|
+
$metadata: deserializeMetadata(output),
|
|
8020
|
+
});
|
|
8021
|
+
_a = __expectObject;
|
|
8022
|
+
return [4, parseBody(output.body, context)];
|
|
8023
|
+
case 1:
|
|
8024
|
+
data = _a.apply(void 0, [_b.sent()]);
|
|
8025
|
+
contents.OriginAccessControlList = deserializeAws_restXmlOriginAccessControlList(data, context);
|
|
8026
|
+
return [2, contents];
|
|
8027
|
+
}
|
|
8028
|
+
});
|
|
8029
|
+
}); };
|
|
8030
|
+
var deserializeAws_restXmlListOriginAccessControlsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
8031
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
8032
|
+
var _c;
|
|
8033
|
+
return __generator(this, function (_d) {
|
|
8034
|
+
switch (_d.label) {
|
|
8035
|
+
case 0:
|
|
8036
|
+
_a = [__assign({}, output)];
|
|
8037
|
+
_c = {};
|
|
8038
|
+
return [4, parseBody(output.body, context)];
|
|
8039
|
+
case 1:
|
|
8040
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
8041
|
+
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
8042
|
+
_b = errorCode;
|
|
8043
|
+
switch (_b) {
|
|
8044
|
+
case "InvalidArgument": return [3, 2];
|
|
8045
|
+
case "com.amazonaws.cloudfront#InvalidArgument": return [3, 2];
|
|
8046
|
+
}
|
|
8047
|
+
return [3, 4];
|
|
8048
|
+
case 2: return [4, deserializeAws_restXmlInvalidArgumentResponse(parsedOutput, context)];
|
|
8049
|
+
case 3: throw _d.sent();
|
|
8050
|
+
case 4:
|
|
8051
|
+
parsedBody = parsedOutput.body;
|
|
8052
|
+
throwDefaultError({
|
|
8053
|
+
output: output,
|
|
8054
|
+
parsedBody: parsedBody.Error,
|
|
8055
|
+
exceptionCtor: __BaseException,
|
|
8056
|
+
errorCode: errorCode,
|
|
8057
|
+
});
|
|
8058
|
+
_d.label = 5;
|
|
8059
|
+
case 5: return [2];
|
|
8060
|
+
}
|
|
8061
|
+
});
|
|
8062
|
+
}); };
|
|
7558
8063
|
export var deserializeAws_restXmlListOriginRequestPoliciesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
7559
8064
|
var contents, data, _a;
|
|
7560
8065
|
return __generator(this, function (_b) {
|
|
@@ -8390,239 +8895,251 @@ var deserializeAws_restXmlUpdateDistributionCommandError = function (output, con
|
|
|
8390
8895
|
case "com.amazonaws.cloudfront#CNAMEAlreadyExists": return [3, 4];
|
|
8391
8896
|
case "IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior": return [3, 6];
|
|
8392
8897
|
case "com.amazonaws.cloudfront#IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior": return [3, 6];
|
|
8393
|
-
case "
|
|
8394
|
-
case "com.amazonaws.cloudfront#
|
|
8395
|
-
case "
|
|
8396
|
-
case "com.amazonaws.cloudfront#
|
|
8397
|
-
case "
|
|
8398
|
-
case "com.amazonaws.cloudfront#
|
|
8399
|
-
case "
|
|
8400
|
-
case "com.amazonaws.cloudfront#
|
|
8401
|
-
case "
|
|
8402
|
-
case "com.amazonaws.cloudfront#
|
|
8403
|
-
case "
|
|
8404
|
-
case "com.amazonaws.cloudfront#
|
|
8405
|
-
case "
|
|
8406
|
-
case "com.amazonaws.cloudfront#
|
|
8407
|
-
case "
|
|
8408
|
-
case "com.amazonaws.cloudfront#
|
|
8409
|
-
case "
|
|
8410
|
-
case "com.amazonaws.cloudfront#
|
|
8411
|
-
case "
|
|
8412
|
-
case "com.amazonaws.cloudfront#
|
|
8413
|
-
case "
|
|
8414
|
-
case "com.amazonaws.cloudfront#
|
|
8415
|
-
case "
|
|
8416
|
-
case "com.amazonaws.cloudfront#
|
|
8417
|
-
case "
|
|
8418
|
-
case "com.amazonaws.cloudfront#
|
|
8419
|
-
case "
|
|
8420
|
-
case "com.amazonaws.cloudfront#
|
|
8421
|
-
case "
|
|
8422
|
-
case "com.amazonaws.cloudfront#
|
|
8423
|
-
case "
|
|
8424
|
-
case "com.amazonaws.cloudfront#
|
|
8425
|
-
case "
|
|
8426
|
-
case "com.amazonaws.cloudfront#
|
|
8427
|
-
case "
|
|
8428
|
-
case "com.amazonaws.cloudfront#
|
|
8429
|
-
case "
|
|
8430
|
-
case "com.amazonaws.cloudfront#
|
|
8431
|
-
case "
|
|
8432
|
-
case "com.amazonaws.cloudfront#
|
|
8433
|
-
case "
|
|
8434
|
-
case "com.amazonaws.cloudfront#
|
|
8435
|
-
case "
|
|
8436
|
-
case "com.amazonaws.cloudfront#
|
|
8437
|
-
case "
|
|
8438
|
-
case "com.amazonaws.cloudfront#
|
|
8439
|
-
case "
|
|
8440
|
-
case "com.amazonaws.cloudfront#
|
|
8441
|
-
case "
|
|
8442
|
-
case "com.amazonaws.cloudfront#
|
|
8443
|
-
case "
|
|
8444
|
-
case "com.amazonaws.cloudfront#
|
|
8445
|
-
case "
|
|
8446
|
-
case "com.amazonaws.cloudfront#
|
|
8447
|
-
case "
|
|
8448
|
-
case "com.amazonaws.cloudfront#
|
|
8449
|
-
case "
|
|
8450
|
-
case "com.amazonaws.cloudfront#
|
|
8451
|
-
case "
|
|
8452
|
-
case "com.amazonaws.cloudfront#
|
|
8453
|
-
case "
|
|
8454
|
-
case "com.amazonaws.cloudfront#
|
|
8455
|
-
case "
|
|
8456
|
-
case "com.amazonaws.cloudfront#
|
|
8457
|
-
case "
|
|
8458
|
-
case "com.amazonaws.cloudfront#
|
|
8459
|
-
case "
|
|
8460
|
-
case "com.amazonaws.cloudfront#
|
|
8461
|
-
case "
|
|
8462
|
-
case "com.amazonaws.cloudfront#
|
|
8463
|
-
case "
|
|
8464
|
-
case "com.amazonaws.cloudfront#
|
|
8465
|
-
case "
|
|
8466
|
-
case "com.amazonaws.cloudfront#
|
|
8467
|
-
case "
|
|
8468
|
-
case "com.amazonaws.cloudfront#
|
|
8469
|
-
case "
|
|
8470
|
-
case "com.amazonaws.cloudfront#
|
|
8471
|
-
case "
|
|
8472
|
-
case "com.amazonaws.cloudfront#
|
|
8473
|
-
case "
|
|
8474
|
-
case "com.amazonaws.cloudfront#
|
|
8475
|
-
case "
|
|
8476
|
-
case "com.amazonaws.cloudfront#
|
|
8477
|
-
case "
|
|
8478
|
-
case "com.amazonaws.cloudfront#
|
|
8479
|
-
case "
|
|
8480
|
-
case "com.amazonaws.cloudfront#
|
|
8481
|
-
case "
|
|
8482
|
-
case "com.amazonaws.cloudfront#
|
|
8483
|
-
case "
|
|
8484
|
-
case "com.amazonaws.cloudfront#
|
|
8485
|
-
case "
|
|
8486
|
-
case "com.amazonaws.cloudfront#
|
|
8487
|
-
case "
|
|
8488
|
-
case "com.amazonaws.cloudfront#
|
|
8489
|
-
case "
|
|
8490
|
-
case "com.amazonaws.cloudfront#
|
|
8491
|
-
case "
|
|
8492
|
-
case "com.amazonaws.cloudfront#
|
|
8493
|
-
case "
|
|
8494
|
-
case "com.amazonaws.cloudfront#
|
|
8495
|
-
case "
|
|
8496
|
-
case "com.amazonaws.cloudfront#
|
|
8497
|
-
case "
|
|
8498
|
-
case "com.amazonaws.cloudfront#
|
|
8499
|
-
case "
|
|
8500
|
-
case "com.amazonaws.cloudfront#
|
|
8501
|
-
case "
|
|
8502
|
-
case "com.amazonaws.cloudfront#
|
|
8503
|
-
case "
|
|
8504
|
-
case "com.amazonaws.cloudfront#
|
|
8505
|
-
|
|
8506
|
-
|
|
8898
|
+
case "IllegalOriginAccessConfiguration": return [3, 8];
|
|
8899
|
+
case "com.amazonaws.cloudfront#IllegalOriginAccessConfiguration": return [3, 8];
|
|
8900
|
+
case "IllegalUpdate": return [3, 10];
|
|
8901
|
+
case "com.amazonaws.cloudfront#IllegalUpdate": return [3, 10];
|
|
8902
|
+
case "InconsistentQuantities": return [3, 12];
|
|
8903
|
+
case "com.amazonaws.cloudfront#InconsistentQuantities": return [3, 12];
|
|
8904
|
+
case "InvalidArgument": return [3, 14];
|
|
8905
|
+
case "com.amazonaws.cloudfront#InvalidArgument": return [3, 14];
|
|
8906
|
+
case "InvalidDefaultRootObject": return [3, 16];
|
|
8907
|
+
case "com.amazonaws.cloudfront#InvalidDefaultRootObject": return [3, 16];
|
|
8908
|
+
case "InvalidDomainNameForOriginAccessControl": return [3, 18];
|
|
8909
|
+
case "com.amazonaws.cloudfront#InvalidDomainNameForOriginAccessControl": return [3, 18];
|
|
8910
|
+
case "InvalidErrorCode": return [3, 20];
|
|
8911
|
+
case "com.amazonaws.cloudfront#InvalidErrorCode": return [3, 20];
|
|
8912
|
+
case "InvalidForwardCookies": return [3, 22];
|
|
8913
|
+
case "com.amazonaws.cloudfront#InvalidForwardCookies": return [3, 22];
|
|
8914
|
+
case "InvalidFunctionAssociation": return [3, 24];
|
|
8915
|
+
case "com.amazonaws.cloudfront#InvalidFunctionAssociation": return [3, 24];
|
|
8916
|
+
case "InvalidGeoRestrictionParameter": return [3, 26];
|
|
8917
|
+
case "com.amazonaws.cloudfront#InvalidGeoRestrictionParameter": return [3, 26];
|
|
8918
|
+
case "InvalidHeadersForS3Origin": return [3, 28];
|
|
8919
|
+
case "com.amazonaws.cloudfront#InvalidHeadersForS3Origin": return [3, 28];
|
|
8920
|
+
case "InvalidIfMatchVersion": return [3, 30];
|
|
8921
|
+
case "com.amazonaws.cloudfront#InvalidIfMatchVersion": return [3, 30];
|
|
8922
|
+
case "InvalidLambdaFunctionAssociation": return [3, 32];
|
|
8923
|
+
case "com.amazonaws.cloudfront#InvalidLambdaFunctionAssociation": return [3, 32];
|
|
8924
|
+
case "InvalidLocationCode": return [3, 34];
|
|
8925
|
+
case "com.amazonaws.cloudfront#InvalidLocationCode": return [3, 34];
|
|
8926
|
+
case "InvalidMinimumProtocolVersion": return [3, 36];
|
|
8927
|
+
case "com.amazonaws.cloudfront#InvalidMinimumProtocolVersion": return [3, 36];
|
|
8928
|
+
case "InvalidOriginAccessControl": return [3, 38];
|
|
8929
|
+
case "com.amazonaws.cloudfront#InvalidOriginAccessControl": return [3, 38];
|
|
8930
|
+
case "InvalidOriginAccessIdentity": return [3, 40];
|
|
8931
|
+
case "com.amazonaws.cloudfront#InvalidOriginAccessIdentity": return [3, 40];
|
|
8932
|
+
case "InvalidOriginKeepaliveTimeout": return [3, 42];
|
|
8933
|
+
case "com.amazonaws.cloudfront#InvalidOriginKeepaliveTimeout": return [3, 42];
|
|
8934
|
+
case "InvalidOriginReadTimeout": return [3, 44];
|
|
8935
|
+
case "com.amazonaws.cloudfront#InvalidOriginReadTimeout": return [3, 44];
|
|
8936
|
+
case "InvalidQueryStringParameters": return [3, 46];
|
|
8937
|
+
case "com.amazonaws.cloudfront#InvalidQueryStringParameters": return [3, 46];
|
|
8938
|
+
case "InvalidRelativePath": return [3, 48];
|
|
8939
|
+
case "com.amazonaws.cloudfront#InvalidRelativePath": return [3, 48];
|
|
8940
|
+
case "InvalidRequiredProtocol": return [3, 50];
|
|
8941
|
+
case "com.amazonaws.cloudfront#InvalidRequiredProtocol": return [3, 50];
|
|
8942
|
+
case "InvalidResponseCode": return [3, 52];
|
|
8943
|
+
case "com.amazonaws.cloudfront#InvalidResponseCode": return [3, 52];
|
|
8944
|
+
case "InvalidTTLOrder": return [3, 54];
|
|
8945
|
+
case "com.amazonaws.cloudfront#InvalidTTLOrder": return [3, 54];
|
|
8946
|
+
case "InvalidViewerCertificate": return [3, 56];
|
|
8947
|
+
case "com.amazonaws.cloudfront#InvalidViewerCertificate": return [3, 56];
|
|
8948
|
+
case "InvalidWebACLId": return [3, 58];
|
|
8949
|
+
case "com.amazonaws.cloudfront#InvalidWebACLId": return [3, 58];
|
|
8950
|
+
case "MissingBody": return [3, 60];
|
|
8951
|
+
case "com.amazonaws.cloudfront#MissingBody": return [3, 60];
|
|
8952
|
+
case "NoSuchCachePolicy": return [3, 62];
|
|
8953
|
+
case "com.amazonaws.cloudfront#NoSuchCachePolicy": return [3, 62];
|
|
8954
|
+
case "NoSuchDistribution": return [3, 64];
|
|
8955
|
+
case "com.amazonaws.cloudfront#NoSuchDistribution": return [3, 64];
|
|
8956
|
+
case "NoSuchFieldLevelEncryptionConfig": return [3, 66];
|
|
8957
|
+
case "com.amazonaws.cloudfront#NoSuchFieldLevelEncryptionConfig": return [3, 66];
|
|
8958
|
+
case "NoSuchOrigin": return [3, 68];
|
|
8959
|
+
case "com.amazonaws.cloudfront#NoSuchOrigin": return [3, 68];
|
|
8960
|
+
case "NoSuchOriginRequestPolicy": return [3, 70];
|
|
8961
|
+
case "com.amazonaws.cloudfront#NoSuchOriginRequestPolicy": return [3, 70];
|
|
8962
|
+
case "NoSuchRealtimeLogConfig": return [3, 72];
|
|
8963
|
+
case "com.amazonaws.cloudfront#NoSuchRealtimeLogConfig": return [3, 72];
|
|
8964
|
+
case "NoSuchResponseHeadersPolicy": return [3, 74];
|
|
8965
|
+
case "com.amazonaws.cloudfront#NoSuchResponseHeadersPolicy": return [3, 74];
|
|
8966
|
+
case "PreconditionFailed": return [3, 76];
|
|
8967
|
+
case "com.amazonaws.cloudfront#PreconditionFailed": return [3, 76];
|
|
8968
|
+
case "RealtimeLogConfigOwnerMismatch": return [3, 78];
|
|
8969
|
+
case "com.amazonaws.cloudfront#RealtimeLogConfigOwnerMismatch": return [3, 78];
|
|
8970
|
+
case "TooManyCacheBehaviors": return [3, 80];
|
|
8971
|
+
case "com.amazonaws.cloudfront#TooManyCacheBehaviors": return [3, 80];
|
|
8972
|
+
case "TooManyCertificates": return [3, 82];
|
|
8973
|
+
case "com.amazonaws.cloudfront#TooManyCertificates": return [3, 82];
|
|
8974
|
+
case "TooManyCookieNamesInWhiteList": return [3, 84];
|
|
8975
|
+
case "com.amazonaws.cloudfront#TooManyCookieNamesInWhiteList": return [3, 84];
|
|
8976
|
+
case "TooManyDistributionCNAMEs": return [3, 86];
|
|
8977
|
+
case "com.amazonaws.cloudfront#TooManyDistributionCNAMEs": return [3, 86];
|
|
8978
|
+
case "TooManyDistributionsAssociatedToCachePolicy": return [3, 88];
|
|
8979
|
+
case "com.amazonaws.cloudfront#TooManyDistributionsAssociatedToCachePolicy": return [3, 88];
|
|
8980
|
+
case "TooManyDistributionsAssociatedToFieldLevelEncryptionConfig": return [3, 90];
|
|
8981
|
+
case "com.amazonaws.cloudfront#TooManyDistributionsAssociatedToFieldLevelEncryptionConfig": return [3, 90];
|
|
8982
|
+
case "TooManyDistributionsAssociatedToKeyGroup": return [3, 92];
|
|
8983
|
+
case "com.amazonaws.cloudfront#TooManyDistributionsAssociatedToKeyGroup": return [3, 92];
|
|
8984
|
+
case "TooManyDistributionsAssociatedToOriginRequestPolicy": return [3, 94];
|
|
8985
|
+
case "com.amazonaws.cloudfront#TooManyDistributionsAssociatedToOriginRequestPolicy": return [3, 94];
|
|
8986
|
+
case "TooManyDistributionsAssociatedToResponseHeadersPolicy": return [3, 96];
|
|
8987
|
+
case "com.amazonaws.cloudfront#TooManyDistributionsAssociatedToResponseHeadersPolicy": return [3, 96];
|
|
8988
|
+
case "TooManyDistributionsWithFunctionAssociations": return [3, 98];
|
|
8989
|
+
case "com.amazonaws.cloudfront#TooManyDistributionsWithFunctionAssociations": return [3, 98];
|
|
8990
|
+
case "TooManyDistributionsWithLambdaAssociations": return [3, 100];
|
|
8991
|
+
case "com.amazonaws.cloudfront#TooManyDistributionsWithLambdaAssociations": return [3, 100];
|
|
8992
|
+
case "TooManyDistributionsWithSingleFunctionARN": return [3, 102];
|
|
8993
|
+
case "com.amazonaws.cloudfront#TooManyDistributionsWithSingleFunctionARN": return [3, 102];
|
|
8994
|
+
case "TooManyFunctionAssociations": return [3, 104];
|
|
8995
|
+
case "com.amazonaws.cloudfront#TooManyFunctionAssociations": return [3, 104];
|
|
8996
|
+
case "TooManyHeadersInForwardedValues": return [3, 106];
|
|
8997
|
+
case "com.amazonaws.cloudfront#TooManyHeadersInForwardedValues": return [3, 106];
|
|
8998
|
+
case "TooManyKeyGroupsAssociatedToDistribution": return [3, 108];
|
|
8999
|
+
case "com.amazonaws.cloudfront#TooManyKeyGroupsAssociatedToDistribution": return [3, 108];
|
|
9000
|
+
case "TooManyLambdaFunctionAssociations": return [3, 110];
|
|
9001
|
+
case "com.amazonaws.cloudfront#TooManyLambdaFunctionAssociations": return [3, 110];
|
|
9002
|
+
case "TooManyOriginCustomHeaders": return [3, 112];
|
|
9003
|
+
case "com.amazonaws.cloudfront#TooManyOriginCustomHeaders": return [3, 112];
|
|
9004
|
+
case "TooManyOriginGroupsPerDistribution": return [3, 114];
|
|
9005
|
+
case "com.amazonaws.cloudfront#TooManyOriginGroupsPerDistribution": return [3, 114];
|
|
9006
|
+
case "TooManyOrigins": return [3, 116];
|
|
9007
|
+
case "com.amazonaws.cloudfront#TooManyOrigins": return [3, 116];
|
|
9008
|
+
case "TooManyQueryStringParameters": return [3, 118];
|
|
9009
|
+
case "com.amazonaws.cloudfront#TooManyQueryStringParameters": return [3, 118];
|
|
9010
|
+
case "TooManyTrustedSigners": return [3, 120];
|
|
9011
|
+
case "com.amazonaws.cloudfront#TooManyTrustedSigners": return [3, 120];
|
|
9012
|
+
case "TrustedKeyGroupDoesNotExist": return [3, 122];
|
|
9013
|
+
case "com.amazonaws.cloudfront#TrustedKeyGroupDoesNotExist": return [3, 122];
|
|
9014
|
+
case "TrustedSignerDoesNotExist": return [3, 124];
|
|
9015
|
+
case "com.amazonaws.cloudfront#TrustedSignerDoesNotExist": return [3, 124];
|
|
9016
|
+
}
|
|
9017
|
+
return [3, 126];
|
|
8507
9018
|
case 2: return [4, deserializeAws_restXmlAccessDeniedResponse(parsedOutput, context)];
|
|
8508
9019
|
case 3: throw _d.sent();
|
|
8509
9020
|
case 4: return [4, deserializeAws_restXmlCNAMEAlreadyExistsResponse(parsedOutput, context)];
|
|
8510
9021
|
case 5: throw _d.sent();
|
|
8511
9022
|
case 6: return [4, deserializeAws_restXmlIllegalFieldLevelEncryptionConfigAssociationWithCacheBehaviorResponse(parsedOutput, context)];
|
|
8512
9023
|
case 7: throw _d.sent();
|
|
8513
|
-
case 8: return [4,
|
|
9024
|
+
case 8: return [4, deserializeAws_restXmlIllegalOriginAccessConfigurationResponse(parsedOutput, context)];
|
|
8514
9025
|
case 9: throw _d.sent();
|
|
8515
|
-
case 10: return [4,
|
|
9026
|
+
case 10: return [4, deserializeAws_restXmlIllegalUpdateResponse(parsedOutput, context)];
|
|
8516
9027
|
case 11: throw _d.sent();
|
|
8517
|
-
case 12: return [4,
|
|
9028
|
+
case 12: return [4, deserializeAws_restXmlInconsistentQuantitiesResponse(parsedOutput, context)];
|
|
8518
9029
|
case 13: throw _d.sent();
|
|
8519
|
-
case 14: return [4,
|
|
9030
|
+
case 14: return [4, deserializeAws_restXmlInvalidArgumentResponse(parsedOutput, context)];
|
|
8520
9031
|
case 15: throw _d.sent();
|
|
8521
|
-
case 16: return [4,
|
|
9032
|
+
case 16: return [4, deserializeAws_restXmlInvalidDefaultRootObjectResponse(parsedOutput, context)];
|
|
8522
9033
|
case 17: throw _d.sent();
|
|
8523
|
-
case 18: return [4,
|
|
9034
|
+
case 18: return [4, deserializeAws_restXmlInvalidDomainNameForOriginAccessControlResponse(parsedOutput, context)];
|
|
8524
9035
|
case 19: throw _d.sent();
|
|
8525
|
-
case 20: return [4,
|
|
9036
|
+
case 20: return [4, deserializeAws_restXmlInvalidErrorCodeResponse(parsedOutput, context)];
|
|
8526
9037
|
case 21: throw _d.sent();
|
|
8527
|
-
case 22: return [4,
|
|
9038
|
+
case 22: return [4, deserializeAws_restXmlInvalidForwardCookiesResponse(parsedOutput, context)];
|
|
8528
9039
|
case 23: throw _d.sent();
|
|
8529
|
-
case 24: return [4,
|
|
9040
|
+
case 24: return [4, deserializeAws_restXmlInvalidFunctionAssociationResponse(parsedOutput, context)];
|
|
8530
9041
|
case 25: throw _d.sent();
|
|
8531
|
-
case 26: return [4,
|
|
9042
|
+
case 26: return [4, deserializeAws_restXmlInvalidGeoRestrictionParameterResponse(parsedOutput, context)];
|
|
8532
9043
|
case 27: throw _d.sent();
|
|
8533
|
-
case 28: return [4,
|
|
9044
|
+
case 28: return [4, deserializeAws_restXmlInvalidHeadersForS3OriginResponse(parsedOutput, context)];
|
|
8534
9045
|
case 29: throw _d.sent();
|
|
8535
|
-
case 30: return [4,
|
|
9046
|
+
case 30: return [4, deserializeAws_restXmlInvalidIfMatchVersionResponse(parsedOutput, context)];
|
|
8536
9047
|
case 31: throw _d.sent();
|
|
8537
|
-
case 32: return [4,
|
|
9048
|
+
case 32: return [4, deserializeAws_restXmlInvalidLambdaFunctionAssociationResponse(parsedOutput, context)];
|
|
8538
9049
|
case 33: throw _d.sent();
|
|
8539
|
-
case 34: return [4,
|
|
9050
|
+
case 34: return [4, deserializeAws_restXmlInvalidLocationCodeResponse(parsedOutput, context)];
|
|
8540
9051
|
case 35: throw _d.sent();
|
|
8541
|
-
case 36: return [4,
|
|
9052
|
+
case 36: return [4, deserializeAws_restXmlInvalidMinimumProtocolVersionResponse(parsedOutput, context)];
|
|
8542
9053
|
case 37: throw _d.sent();
|
|
8543
|
-
case 38: return [4,
|
|
9054
|
+
case 38: return [4, deserializeAws_restXmlInvalidOriginAccessControlResponse(parsedOutput, context)];
|
|
8544
9055
|
case 39: throw _d.sent();
|
|
8545
|
-
case 40: return [4,
|
|
9056
|
+
case 40: return [4, deserializeAws_restXmlInvalidOriginAccessIdentityResponse(parsedOutput, context)];
|
|
8546
9057
|
case 41: throw _d.sent();
|
|
8547
|
-
case 42: return [4,
|
|
9058
|
+
case 42: return [4, deserializeAws_restXmlInvalidOriginKeepaliveTimeoutResponse(parsedOutput, context)];
|
|
8548
9059
|
case 43: throw _d.sent();
|
|
8549
|
-
case 44: return [4,
|
|
9060
|
+
case 44: return [4, deserializeAws_restXmlInvalidOriginReadTimeoutResponse(parsedOutput, context)];
|
|
8550
9061
|
case 45: throw _d.sent();
|
|
8551
|
-
case 46: return [4,
|
|
9062
|
+
case 46: return [4, deserializeAws_restXmlInvalidQueryStringParametersResponse(parsedOutput, context)];
|
|
8552
9063
|
case 47: throw _d.sent();
|
|
8553
|
-
case 48: return [4,
|
|
9064
|
+
case 48: return [4, deserializeAws_restXmlInvalidRelativePathResponse(parsedOutput, context)];
|
|
8554
9065
|
case 49: throw _d.sent();
|
|
8555
|
-
case 50: return [4,
|
|
9066
|
+
case 50: return [4, deserializeAws_restXmlInvalidRequiredProtocolResponse(parsedOutput, context)];
|
|
8556
9067
|
case 51: throw _d.sent();
|
|
8557
|
-
case 52: return [4,
|
|
9068
|
+
case 52: return [4, deserializeAws_restXmlInvalidResponseCodeResponse(parsedOutput, context)];
|
|
8558
9069
|
case 53: throw _d.sent();
|
|
8559
|
-
case 54: return [4,
|
|
9070
|
+
case 54: return [4, deserializeAws_restXmlInvalidTTLOrderResponse(parsedOutput, context)];
|
|
8560
9071
|
case 55: throw _d.sent();
|
|
8561
|
-
case 56: return [4,
|
|
9072
|
+
case 56: return [4, deserializeAws_restXmlInvalidViewerCertificateResponse(parsedOutput, context)];
|
|
8562
9073
|
case 57: throw _d.sent();
|
|
8563
|
-
case 58: return [4,
|
|
9074
|
+
case 58: return [4, deserializeAws_restXmlInvalidWebACLIdResponse(parsedOutput, context)];
|
|
8564
9075
|
case 59: throw _d.sent();
|
|
8565
|
-
case 60: return [4,
|
|
9076
|
+
case 60: return [4, deserializeAws_restXmlMissingBodyResponse(parsedOutput, context)];
|
|
8566
9077
|
case 61: throw _d.sent();
|
|
8567
|
-
case 62: return [4,
|
|
9078
|
+
case 62: return [4, deserializeAws_restXmlNoSuchCachePolicyResponse(parsedOutput, context)];
|
|
8568
9079
|
case 63: throw _d.sent();
|
|
8569
|
-
case 64: return [4,
|
|
9080
|
+
case 64: return [4, deserializeAws_restXmlNoSuchDistributionResponse(parsedOutput, context)];
|
|
8570
9081
|
case 65: throw _d.sent();
|
|
8571
|
-
case 66: return [4,
|
|
9082
|
+
case 66: return [4, deserializeAws_restXmlNoSuchFieldLevelEncryptionConfigResponse(parsedOutput, context)];
|
|
8572
9083
|
case 67: throw _d.sent();
|
|
8573
|
-
case 68: return [4,
|
|
9084
|
+
case 68: return [4, deserializeAws_restXmlNoSuchOriginResponse(parsedOutput, context)];
|
|
8574
9085
|
case 69: throw _d.sent();
|
|
8575
|
-
case 70: return [4,
|
|
9086
|
+
case 70: return [4, deserializeAws_restXmlNoSuchOriginRequestPolicyResponse(parsedOutput, context)];
|
|
8576
9087
|
case 71: throw _d.sent();
|
|
8577
|
-
case 72: return [4,
|
|
9088
|
+
case 72: return [4, deserializeAws_restXmlNoSuchRealtimeLogConfigResponse(parsedOutput, context)];
|
|
8578
9089
|
case 73: throw _d.sent();
|
|
8579
|
-
case 74: return [4,
|
|
9090
|
+
case 74: return [4, deserializeAws_restXmlNoSuchResponseHeadersPolicyResponse(parsedOutput, context)];
|
|
8580
9091
|
case 75: throw _d.sent();
|
|
8581
|
-
case 76: return [4,
|
|
9092
|
+
case 76: return [4, deserializeAws_restXmlPreconditionFailedResponse(parsedOutput, context)];
|
|
8582
9093
|
case 77: throw _d.sent();
|
|
8583
|
-
case 78: return [4,
|
|
9094
|
+
case 78: return [4, deserializeAws_restXmlRealtimeLogConfigOwnerMismatchResponse(parsedOutput, context)];
|
|
8584
9095
|
case 79: throw _d.sent();
|
|
8585
|
-
case 80: return [4,
|
|
9096
|
+
case 80: return [4, deserializeAws_restXmlTooManyCacheBehaviorsResponse(parsedOutput, context)];
|
|
8586
9097
|
case 81: throw _d.sent();
|
|
8587
|
-
case 82: return [4,
|
|
9098
|
+
case 82: return [4, deserializeAws_restXmlTooManyCertificatesResponse(parsedOutput, context)];
|
|
8588
9099
|
case 83: throw _d.sent();
|
|
8589
|
-
case 84: return [4,
|
|
9100
|
+
case 84: return [4, deserializeAws_restXmlTooManyCookieNamesInWhiteListResponse(parsedOutput, context)];
|
|
8590
9101
|
case 85: throw _d.sent();
|
|
8591
|
-
case 86: return [4,
|
|
9102
|
+
case 86: return [4, deserializeAws_restXmlTooManyDistributionCNAMEsResponse(parsedOutput, context)];
|
|
8592
9103
|
case 87: throw _d.sent();
|
|
8593
|
-
case 88: return [4,
|
|
9104
|
+
case 88: return [4, deserializeAws_restXmlTooManyDistributionsAssociatedToCachePolicyResponse(parsedOutput, context)];
|
|
8594
9105
|
case 89: throw _d.sent();
|
|
8595
|
-
case 90: return [4,
|
|
9106
|
+
case 90: return [4, deserializeAws_restXmlTooManyDistributionsAssociatedToFieldLevelEncryptionConfigResponse(parsedOutput, context)];
|
|
8596
9107
|
case 91: throw _d.sent();
|
|
8597
|
-
case 92: return [4,
|
|
9108
|
+
case 92: return [4, deserializeAws_restXmlTooManyDistributionsAssociatedToKeyGroupResponse(parsedOutput, context)];
|
|
8598
9109
|
case 93: throw _d.sent();
|
|
8599
|
-
case 94: return [4,
|
|
9110
|
+
case 94: return [4, deserializeAws_restXmlTooManyDistributionsAssociatedToOriginRequestPolicyResponse(parsedOutput, context)];
|
|
8600
9111
|
case 95: throw _d.sent();
|
|
8601
|
-
case 96: return [4,
|
|
9112
|
+
case 96: return [4, deserializeAws_restXmlTooManyDistributionsAssociatedToResponseHeadersPolicyResponse(parsedOutput, context)];
|
|
8602
9113
|
case 97: throw _d.sent();
|
|
8603
|
-
case 98: return [4,
|
|
9114
|
+
case 98: return [4, deserializeAws_restXmlTooManyDistributionsWithFunctionAssociationsResponse(parsedOutput, context)];
|
|
8604
9115
|
case 99: throw _d.sent();
|
|
8605
|
-
case 100: return [4,
|
|
9116
|
+
case 100: return [4, deserializeAws_restXmlTooManyDistributionsWithLambdaAssociationsResponse(parsedOutput, context)];
|
|
8606
9117
|
case 101: throw _d.sent();
|
|
8607
|
-
case 102: return [4,
|
|
9118
|
+
case 102: return [4, deserializeAws_restXmlTooManyDistributionsWithSingleFunctionARNResponse(parsedOutput, context)];
|
|
8608
9119
|
case 103: throw _d.sent();
|
|
8609
|
-
case 104: return [4,
|
|
9120
|
+
case 104: return [4, deserializeAws_restXmlTooManyFunctionAssociationsResponse(parsedOutput, context)];
|
|
8610
9121
|
case 105: throw _d.sent();
|
|
8611
|
-
case 106: return [4,
|
|
9122
|
+
case 106: return [4, deserializeAws_restXmlTooManyHeadersInForwardedValuesResponse(parsedOutput, context)];
|
|
8612
9123
|
case 107: throw _d.sent();
|
|
8613
|
-
case 108: return [4,
|
|
9124
|
+
case 108: return [4, deserializeAws_restXmlTooManyKeyGroupsAssociatedToDistributionResponse(parsedOutput, context)];
|
|
8614
9125
|
case 109: throw _d.sent();
|
|
8615
|
-
case 110: return [4,
|
|
9126
|
+
case 110: return [4, deserializeAws_restXmlTooManyLambdaFunctionAssociationsResponse(parsedOutput, context)];
|
|
8616
9127
|
case 111: throw _d.sent();
|
|
8617
|
-
case 112: return [4,
|
|
9128
|
+
case 112: return [4, deserializeAws_restXmlTooManyOriginCustomHeadersResponse(parsedOutput, context)];
|
|
8618
9129
|
case 113: throw _d.sent();
|
|
8619
|
-
case 114: return [4,
|
|
9130
|
+
case 114: return [4, deserializeAws_restXmlTooManyOriginGroupsPerDistributionResponse(parsedOutput, context)];
|
|
8620
9131
|
case 115: throw _d.sent();
|
|
8621
|
-
case 116: return [4,
|
|
9132
|
+
case 116: return [4, deserializeAws_restXmlTooManyOriginsResponse(parsedOutput, context)];
|
|
8622
9133
|
case 117: throw _d.sent();
|
|
8623
|
-
case 118: return [4,
|
|
9134
|
+
case 118: return [4, deserializeAws_restXmlTooManyQueryStringParametersResponse(parsedOutput, context)];
|
|
8624
9135
|
case 119: throw _d.sent();
|
|
8625
|
-
case 120:
|
|
9136
|
+
case 120: return [4, deserializeAws_restXmlTooManyTrustedSignersResponse(parsedOutput, context)];
|
|
9137
|
+
case 121: throw _d.sent();
|
|
9138
|
+
case 122: return [4, deserializeAws_restXmlTrustedKeyGroupDoesNotExistResponse(parsedOutput, context)];
|
|
9139
|
+
case 123: throw _d.sent();
|
|
9140
|
+
case 124: return [4, deserializeAws_restXmlTrustedSignerDoesNotExistResponse(parsedOutput, context)];
|
|
9141
|
+
case 125: throw _d.sent();
|
|
9142
|
+
case 126:
|
|
8626
9143
|
parsedBody = parsedOutput.body;
|
|
8627
9144
|
throwDefaultError({
|
|
8628
9145
|
output: output,
|
|
@@ -8630,8 +9147,8 @@ var deserializeAws_restXmlUpdateDistributionCommandError = function (output, con
|
|
|
8630
9147
|
exceptionCtor: __BaseException,
|
|
8631
9148
|
errorCode: errorCode,
|
|
8632
9149
|
});
|
|
8633
|
-
_d.label =
|
|
8634
|
-
case
|
|
9150
|
+
_d.label = 127;
|
|
9151
|
+
case 127: return [2];
|
|
8635
9152
|
}
|
|
8636
9153
|
});
|
|
8637
9154
|
}); };
|
|
@@ -8949,20 +9466,98 @@ var deserializeAws_restXmlUpdateKeyGroupCommandError = function (output, context
|
|
|
8949
9466
|
case "TooManyPublicKeysInKeyGroup": return [3, 12];
|
|
8950
9467
|
case "com.amazonaws.cloudfront#TooManyPublicKeysInKeyGroup": return [3, 12];
|
|
8951
9468
|
}
|
|
8952
|
-
return [3, 14];
|
|
8953
|
-
case 2: return [4, deserializeAws_restXmlInvalidArgumentResponse(parsedOutput, context)];
|
|
9469
|
+
return [3, 14];
|
|
9470
|
+
case 2: return [4, deserializeAws_restXmlInvalidArgumentResponse(parsedOutput, context)];
|
|
9471
|
+
case 3: throw _d.sent();
|
|
9472
|
+
case 4: return [4, deserializeAws_restXmlInvalidIfMatchVersionResponse(parsedOutput, context)];
|
|
9473
|
+
case 5: throw _d.sent();
|
|
9474
|
+
case 6: return [4, deserializeAws_restXmlKeyGroupAlreadyExistsResponse(parsedOutput, context)];
|
|
9475
|
+
case 7: throw _d.sent();
|
|
9476
|
+
case 8: return [4, deserializeAws_restXmlNoSuchResourceResponse(parsedOutput, context)];
|
|
9477
|
+
case 9: throw _d.sent();
|
|
9478
|
+
case 10: return [4, deserializeAws_restXmlPreconditionFailedResponse(parsedOutput, context)];
|
|
9479
|
+
case 11: throw _d.sent();
|
|
9480
|
+
case 12: return [4, deserializeAws_restXmlTooManyPublicKeysInKeyGroupResponse(parsedOutput, context)];
|
|
9481
|
+
case 13: throw _d.sent();
|
|
9482
|
+
case 14:
|
|
9483
|
+
parsedBody = parsedOutput.body;
|
|
9484
|
+
throwDefaultError({
|
|
9485
|
+
output: output,
|
|
9486
|
+
parsedBody: parsedBody.Error,
|
|
9487
|
+
exceptionCtor: __BaseException,
|
|
9488
|
+
errorCode: errorCode,
|
|
9489
|
+
});
|
|
9490
|
+
_d.label = 15;
|
|
9491
|
+
case 15: return [2];
|
|
9492
|
+
}
|
|
9493
|
+
});
|
|
9494
|
+
}); };
|
|
9495
|
+
export var deserializeAws_restXmlUpdateOriginAccessControlCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
9496
|
+
var contents, data, _a;
|
|
9497
|
+
return __generator(this, function (_b) {
|
|
9498
|
+
switch (_b.label) {
|
|
9499
|
+
case 0:
|
|
9500
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
9501
|
+
return [2, deserializeAws_restXmlUpdateOriginAccessControlCommandError(output, context)];
|
|
9502
|
+
}
|
|
9503
|
+
contents = map({
|
|
9504
|
+
$metadata: deserializeMetadata(output),
|
|
9505
|
+
ETag: [, output.headers["etag"]],
|
|
9506
|
+
});
|
|
9507
|
+
_a = __expectObject;
|
|
9508
|
+
return [4, parseBody(output.body, context)];
|
|
9509
|
+
case 1:
|
|
9510
|
+
data = _a.apply(void 0, [_b.sent()]);
|
|
9511
|
+
contents.OriginAccessControl = deserializeAws_restXmlOriginAccessControl(data, context);
|
|
9512
|
+
return [2, contents];
|
|
9513
|
+
}
|
|
9514
|
+
});
|
|
9515
|
+
}); };
|
|
9516
|
+
var deserializeAws_restXmlUpdateOriginAccessControlCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
9517
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
9518
|
+
var _c;
|
|
9519
|
+
return __generator(this, function (_d) {
|
|
9520
|
+
switch (_d.label) {
|
|
9521
|
+
case 0:
|
|
9522
|
+
_a = [__assign({}, output)];
|
|
9523
|
+
_c = {};
|
|
9524
|
+
return [4, parseBody(output.body, context)];
|
|
9525
|
+
case 1:
|
|
9526
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
9527
|
+
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
9528
|
+
_b = errorCode;
|
|
9529
|
+
switch (_b) {
|
|
9530
|
+
case "AccessDenied": return [3, 2];
|
|
9531
|
+
case "com.amazonaws.cloudfront#AccessDenied": return [3, 2];
|
|
9532
|
+
case "IllegalUpdate": return [3, 4];
|
|
9533
|
+
case "com.amazonaws.cloudfront#IllegalUpdate": return [3, 4];
|
|
9534
|
+
case "InvalidArgument": return [3, 6];
|
|
9535
|
+
case "com.amazonaws.cloudfront#InvalidArgument": return [3, 6];
|
|
9536
|
+
case "InvalidIfMatchVersion": return [3, 8];
|
|
9537
|
+
case "com.amazonaws.cloudfront#InvalidIfMatchVersion": return [3, 8];
|
|
9538
|
+
case "NoSuchOriginAccessControl": return [3, 10];
|
|
9539
|
+
case "com.amazonaws.cloudfront#NoSuchOriginAccessControl": return [3, 10];
|
|
9540
|
+
case "OriginAccessControlAlreadyExists": return [3, 12];
|
|
9541
|
+
case "com.amazonaws.cloudfront#OriginAccessControlAlreadyExists": return [3, 12];
|
|
9542
|
+
case "PreconditionFailed": return [3, 14];
|
|
9543
|
+
case "com.amazonaws.cloudfront#PreconditionFailed": return [3, 14];
|
|
9544
|
+
}
|
|
9545
|
+
return [3, 16];
|
|
9546
|
+
case 2: return [4, deserializeAws_restXmlAccessDeniedResponse(parsedOutput, context)];
|
|
8954
9547
|
case 3: throw _d.sent();
|
|
8955
|
-
case 4: return [4,
|
|
9548
|
+
case 4: return [4, deserializeAws_restXmlIllegalUpdateResponse(parsedOutput, context)];
|
|
8956
9549
|
case 5: throw _d.sent();
|
|
8957
|
-
case 6: return [4,
|
|
9550
|
+
case 6: return [4, deserializeAws_restXmlInvalidArgumentResponse(parsedOutput, context)];
|
|
8958
9551
|
case 7: throw _d.sent();
|
|
8959
|
-
case 8: return [4,
|
|
9552
|
+
case 8: return [4, deserializeAws_restXmlInvalidIfMatchVersionResponse(parsedOutput, context)];
|
|
8960
9553
|
case 9: throw _d.sent();
|
|
8961
|
-
case 10: return [4,
|
|
9554
|
+
case 10: return [4, deserializeAws_restXmlNoSuchOriginAccessControlResponse(parsedOutput, context)];
|
|
8962
9555
|
case 11: throw _d.sent();
|
|
8963
|
-
case 12: return [4,
|
|
9556
|
+
case 12: return [4, deserializeAws_restXmlOriginAccessControlAlreadyExistsResponse(parsedOutput, context)];
|
|
8964
9557
|
case 13: throw _d.sent();
|
|
8965
|
-
case 14:
|
|
9558
|
+
case 14: return [4, deserializeAws_restXmlPreconditionFailedResponse(parsedOutput, context)];
|
|
9559
|
+
case 15: throw _d.sent();
|
|
9560
|
+
case 16:
|
|
8966
9561
|
parsedBody = parsedOutput.body;
|
|
8967
9562
|
throwDefaultError({
|
|
8968
9563
|
output: output,
|
|
@@ -8970,8 +9565,8 @@ var deserializeAws_restXmlUpdateKeyGroupCommandError = function (output, context
|
|
|
8970
9565
|
exceptionCtor: __BaseException,
|
|
8971
9566
|
errorCode: errorCode,
|
|
8972
9567
|
});
|
|
8973
|
-
_d.label =
|
|
8974
|
-
case
|
|
9568
|
+
_d.label = 17;
|
|
9569
|
+
case 17: return [2];
|
|
8975
9570
|
}
|
|
8976
9571
|
});
|
|
8977
9572
|
}); };
|
|
@@ -9348,22 +9943,24 @@ var deserializeAws_restXmlUpdateStreamingDistributionCommandError = function (ou
|
|
|
9348
9943
|
case "com.amazonaws.cloudfront#InvalidArgument": return [3, 10];
|
|
9349
9944
|
case "InvalidIfMatchVersion": return [3, 12];
|
|
9350
9945
|
case "com.amazonaws.cloudfront#InvalidIfMatchVersion": return [3, 12];
|
|
9351
|
-
case "
|
|
9352
|
-
case "com.amazonaws.cloudfront#
|
|
9353
|
-
case "
|
|
9354
|
-
case "com.amazonaws.cloudfront#
|
|
9355
|
-
case "
|
|
9356
|
-
case "com.amazonaws.cloudfront#
|
|
9357
|
-
case "
|
|
9358
|
-
case "com.amazonaws.cloudfront#
|
|
9359
|
-
case "
|
|
9360
|
-
case "com.amazonaws.cloudfront#
|
|
9361
|
-
case "
|
|
9362
|
-
case "com.amazonaws.cloudfront#
|
|
9363
|
-
case "
|
|
9364
|
-
case "com.amazonaws.cloudfront#
|
|
9365
|
-
|
|
9366
|
-
|
|
9946
|
+
case "InvalidOriginAccessControl": return [3, 14];
|
|
9947
|
+
case "com.amazonaws.cloudfront#InvalidOriginAccessControl": return [3, 14];
|
|
9948
|
+
case "InvalidOriginAccessIdentity": return [3, 16];
|
|
9949
|
+
case "com.amazonaws.cloudfront#InvalidOriginAccessIdentity": return [3, 16];
|
|
9950
|
+
case "MissingBody": return [3, 18];
|
|
9951
|
+
case "com.amazonaws.cloudfront#MissingBody": return [3, 18];
|
|
9952
|
+
case "NoSuchStreamingDistribution": return [3, 20];
|
|
9953
|
+
case "com.amazonaws.cloudfront#NoSuchStreamingDistribution": return [3, 20];
|
|
9954
|
+
case "PreconditionFailed": return [3, 22];
|
|
9955
|
+
case "com.amazonaws.cloudfront#PreconditionFailed": return [3, 22];
|
|
9956
|
+
case "TooManyStreamingDistributionCNAMEs": return [3, 24];
|
|
9957
|
+
case "com.amazonaws.cloudfront#TooManyStreamingDistributionCNAMEs": return [3, 24];
|
|
9958
|
+
case "TooManyTrustedSigners": return [3, 26];
|
|
9959
|
+
case "com.amazonaws.cloudfront#TooManyTrustedSigners": return [3, 26];
|
|
9960
|
+
case "TrustedSignerDoesNotExist": return [3, 28];
|
|
9961
|
+
case "com.amazonaws.cloudfront#TrustedSignerDoesNotExist": return [3, 28];
|
|
9962
|
+
}
|
|
9963
|
+
return [3, 30];
|
|
9367
9964
|
case 2: return [4, deserializeAws_restXmlAccessDeniedResponse(parsedOutput, context)];
|
|
9368
9965
|
case 3: throw _d.sent();
|
|
9369
9966
|
case 4: return [4, deserializeAws_restXmlCNAMEAlreadyExistsResponse(parsedOutput, context)];
|
|
@@ -9376,21 +9973,23 @@ var deserializeAws_restXmlUpdateStreamingDistributionCommandError = function (ou
|
|
|
9376
9973
|
case 11: throw _d.sent();
|
|
9377
9974
|
case 12: return [4, deserializeAws_restXmlInvalidIfMatchVersionResponse(parsedOutput, context)];
|
|
9378
9975
|
case 13: throw _d.sent();
|
|
9379
|
-
case 14: return [4,
|
|
9976
|
+
case 14: return [4, deserializeAws_restXmlInvalidOriginAccessControlResponse(parsedOutput, context)];
|
|
9380
9977
|
case 15: throw _d.sent();
|
|
9381
|
-
case 16: return [4,
|
|
9978
|
+
case 16: return [4, deserializeAws_restXmlInvalidOriginAccessIdentityResponse(parsedOutput, context)];
|
|
9382
9979
|
case 17: throw _d.sent();
|
|
9383
|
-
case 18: return [4,
|
|
9980
|
+
case 18: return [4, deserializeAws_restXmlMissingBodyResponse(parsedOutput, context)];
|
|
9384
9981
|
case 19: throw _d.sent();
|
|
9385
|
-
case 20: return [4,
|
|
9982
|
+
case 20: return [4, deserializeAws_restXmlNoSuchStreamingDistributionResponse(parsedOutput, context)];
|
|
9386
9983
|
case 21: throw _d.sent();
|
|
9387
|
-
case 22: return [4,
|
|
9984
|
+
case 22: return [4, deserializeAws_restXmlPreconditionFailedResponse(parsedOutput, context)];
|
|
9388
9985
|
case 23: throw _d.sent();
|
|
9389
|
-
case 24: return [4,
|
|
9986
|
+
case 24: return [4, deserializeAws_restXmlTooManyStreamingDistributionCNAMEsResponse(parsedOutput, context)];
|
|
9390
9987
|
case 25: throw _d.sent();
|
|
9391
|
-
case 26: return [4,
|
|
9988
|
+
case 26: return [4, deserializeAws_restXmlTooManyTrustedSignersResponse(parsedOutput, context)];
|
|
9392
9989
|
case 27: throw _d.sent();
|
|
9393
|
-
case 28:
|
|
9990
|
+
case 28: return [4, deserializeAws_restXmlTrustedSignerDoesNotExistResponse(parsedOutput, context)];
|
|
9991
|
+
case 29: throw _d.sent();
|
|
9992
|
+
case 30:
|
|
9394
9993
|
parsedBody = parsedOutput.body;
|
|
9395
9994
|
throwDefaultError({
|
|
9396
9995
|
output: output,
|
|
@@ -9398,8 +9997,8 @@ var deserializeAws_restXmlUpdateStreamingDistributionCommandError = function (ou
|
|
|
9398
9997
|
exceptionCtor: __BaseException,
|
|
9399
9998
|
errorCode: errorCode,
|
|
9400
9999
|
});
|
|
9401
|
-
_d.label =
|
|
9402
|
-
case
|
|
10000
|
+
_d.label = 31;
|
|
10001
|
+
case 31: return [2];
|
|
9403
10002
|
}
|
|
9404
10003
|
});
|
|
9405
10004
|
}); };
|
|
@@ -9644,6 +10243,18 @@ var deserializeAws_restXmlIllegalFieldLevelEncryptionConfigAssociationWithCacheB
|
|
|
9644
10243
|
return [2, __decorateServiceException(exception, parsedOutput.body.Error)];
|
|
9645
10244
|
});
|
|
9646
10245
|
}); };
|
|
10246
|
+
var deserializeAws_restXmlIllegalOriginAccessConfigurationResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
10247
|
+
var contents, data, exception;
|
|
10248
|
+
return __generator(this, function (_a) {
|
|
10249
|
+
contents = map({});
|
|
10250
|
+
data = parsedOutput.body.Error;
|
|
10251
|
+
if (data["Message"] !== undefined) {
|
|
10252
|
+
contents.Message = __expectString(data["Message"]);
|
|
10253
|
+
}
|
|
10254
|
+
exception = new IllegalOriginAccessConfiguration(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
10255
|
+
return [2, __decorateServiceException(exception, parsedOutput.body.Error)];
|
|
10256
|
+
});
|
|
10257
|
+
}); };
|
|
9647
10258
|
var deserializeAws_restXmlIllegalUpdateResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
9648
10259
|
var contents, data, exception;
|
|
9649
10260
|
return __generator(this, function (_a) {
|
|
@@ -9692,6 +10303,18 @@ var deserializeAws_restXmlInvalidDefaultRootObjectResponse = function (parsedOut
|
|
|
9692
10303
|
return [2, __decorateServiceException(exception, parsedOutput.body.Error)];
|
|
9693
10304
|
});
|
|
9694
10305
|
}); };
|
|
10306
|
+
var deserializeAws_restXmlInvalidDomainNameForOriginAccessControlResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
10307
|
+
var contents, data, exception;
|
|
10308
|
+
return __generator(this, function (_a) {
|
|
10309
|
+
contents = map({});
|
|
10310
|
+
data = parsedOutput.body.Error;
|
|
10311
|
+
if (data["Message"] !== undefined) {
|
|
10312
|
+
contents.Message = __expectString(data["Message"]);
|
|
10313
|
+
}
|
|
10314
|
+
exception = new InvalidDomainNameForOriginAccessControl(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
10315
|
+
return [2, __decorateServiceException(exception, parsedOutput.body.Error)];
|
|
10316
|
+
});
|
|
10317
|
+
}); };
|
|
9695
10318
|
var deserializeAws_restXmlInvalidErrorCodeResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
9696
10319
|
var contents, data, exception;
|
|
9697
10320
|
return __generator(this, function (_a) {
|
|
@@ -9812,6 +10435,18 @@ var deserializeAws_restXmlInvalidOriginResponse = function (parsedOutput, contex
|
|
|
9812
10435
|
return [2, __decorateServiceException(exception, parsedOutput.body.Error)];
|
|
9813
10436
|
});
|
|
9814
10437
|
}); };
|
|
10438
|
+
var deserializeAws_restXmlInvalidOriginAccessControlResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
10439
|
+
var contents, data, exception;
|
|
10440
|
+
return __generator(this, function (_a) {
|
|
10441
|
+
contents = map({});
|
|
10442
|
+
data = parsedOutput.body.Error;
|
|
10443
|
+
if (data["Message"] !== undefined) {
|
|
10444
|
+
contents.Message = __expectString(data["Message"]);
|
|
10445
|
+
}
|
|
10446
|
+
exception = new InvalidOriginAccessControl(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
10447
|
+
return [2, __decorateServiceException(exception, parsedOutput.body.Error)];
|
|
10448
|
+
});
|
|
10449
|
+
}); };
|
|
9815
10450
|
var deserializeAws_restXmlInvalidOriginAccessIdentityResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
9816
10451
|
var contents, data, exception;
|
|
9817
10452
|
return __generator(this, function (_a) {
|
|
@@ -9980,6 +10615,18 @@ var deserializeAws_restXmlMissingBodyResponse = function (parsedOutput, context)
|
|
|
9980
10615
|
return [2, __decorateServiceException(exception, parsedOutput.body.Error)];
|
|
9981
10616
|
});
|
|
9982
10617
|
}); };
|
|
10618
|
+
var deserializeAws_restXmlMonitoringSubscriptionAlreadyExistsResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
10619
|
+
var contents, data, exception;
|
|
10620
|
+
return __generator(this, function (_a) {
|
|
10621
|
+
contents = map({});
|
|
10622
|
+
data = parsedOutput.body.Error;
|
|
10623
|
+
if (data["Message"] !== undefined) {
|
|
10624
|
+
contents.Message = __expectString(data["Message"]);
|
|
10625
|
+
}
|
|
10626
|
+
exception = new MonitoringSubscriptionAlreadyExists(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
10627
|
+
return [2, __decorateServiceException(exception, parsedOutput.body.Error)];
|
|
10628
|
+
});
|
|
10629
|
+
}); };
|
|
9983
10630
|
var deserializeAws_restXmlNoSuchCachePolicyResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
9984
10631
|
var contents, data, exception;
|
|
9985
10632
|
return __generator(this, function (_a) {
|
|
@@ -10064,6 +10711,18 @@ var deserializeAws_restXmlNoSuchInvalidationResponse = function (parsedOutput, c
|
|
|
10064
10711
|
return [2, __decorateServiceException(exception, parsedOutput.body.Error)];
|
|
10065
10712
|
});
|
|
10066
10713
|
}); };
|
|
10714
|
+
var deserializeAws_restXmlNoSuchMonitoringSubscriptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
10715
|
+
var contents, data, exception;
|
|
10716
|
+
return __generator(this, function (_a) {
|
|
10717
|
+
contents = map({});
|
|
10718
|
+
data = parsedOutput.body.Error;
|
|
10719
|
+
if (data["Message"] !== undefined) {
|
|
10720
|
+
contents.Message = __expectString(data["Message"]);
|
|
10721
|
+
}
|
|
10722
|
+
exception = new NoSuchMonitoringSubscription(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
10723
|
+
return [2, __decorateServiceException(exception, parsedOutput.body.Error)];
|
|
10724
|
+
});
|
|
10725
|
+
}); };
|
|
10067
10726
|
var deserializeAws_restXmlNoSuchOriginResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
10068
10727
|
var contents, data, exception;
|
|
10069
10728
|
return __generator(this, function (_a) {
|
|
@@ -10076,6 +10735,18 @@ var deserializeAws_restXmlNoSuchOriginResponse = function (parsedOutput, context
|
|
|
10076
10735
|
return [2, __decorateServiceException(exception, parsedOutput.body.Error)];
|
|
10077
10736
|
});
|
|
10078
10737
|
}); };
|
|
10738
|
+
var deserializeAws_restXmlNoSuchOriginAccessControlResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
10739
|
+
var contents, data, exception;
|
|
10740
|
+
return __generator(this, function (_a) {
|
|
10741
|
+
contents = map({});
|
|
10742
|
+
data = parsedOutput.body.Error;
|
|
10743
|
+
if (data["Message"] !== undefined) {
|
|
10744
|
+
contents.Message = __expectString(data["Message"]);
|
|
10745
|
+
}
|
|
10746
|
+
exception = new NoSuchOriginAccessControl(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
10747
|
+
return [2, __decorateServiceException(exception, parsedOutput.body.Error)];
|
|
10748
|
+
});
|
|
10749
|
+
}); };
|
|
10079
10750
|
var deserializeAws_restXmlNoSuchOriginRequestPolicyResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
10080
10751
|
var contents, data, exception;
|
|
10081
10752
|
return __generator(this, function (_a) {
|
|
@@ -10148,6 +10819,30 @@ var deserializeAws_restXmlNoSuchStreamingDistributionResponse = function (parsed
|
|
|
10148
10819
|
return [2, __decorateServiceException(exception, parsedOutput.body.Error)];
|
|
10149
10820
|
});
|
|
10150
10821
|
}); };
|
|
10822
|
+
var deserializeAws_restXmlOriginAccessControlAlreadyExistsResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
10823
|
+
var contents, data, exception;
|
|
10824
|
+
return __generator(this, function (_a) {
|
|
10825
|
+
contents = map({});
|
|
10826
|
+
data = parsedOutput.body.Error;
|
|
10827
|
+
if (data["Message"] !== undefined) {
|
|
10828
|
+
contents.Message = __expectString(data["Message"]);
|
|
10829
|
+
}
|
|
10830
|
+
exception = new OriginAccessControlAlreadyExists(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
10831
|
+
return [2, __decorateServiceException(exception, parsedOutput.body.Error)];
|
|
10832
|
+
});
|
|
10833
|
+
}); };
|
|
10834
|
+
var deserializeAws_restXmlOriginAccessControlInUseResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
10835
|
+
var contents, data, exception;
|
|
10836
|
+
return __generator(this, function (_a) {
|
|
10837
|
+
contents = map({});
|
|
10838
|
+
data = parsedOutput.body.Error;
|
|
10839
|
+
if (data["Message"] !== undefined) {
|
|
10840
|
+
contents.Message = __expectString(data["Message"]);
|
|
10841
|
+
}
|
|
10842
|
+
exception = new OriginAccessControlInUse(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
10843
|
+
return [2, __decorateServiceException(exception, parsedOutput.body.Error)];
|
|
10844
|
+
});
|
|
10845
|
+
}); };
|
|
10151
10846
|
var deserializeAws_restXmlOriginRequestPolicyAlreadyExistsResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
10152
10847
|
var contents, data, exception;
|
|
10153
10848
|
return __generator(this, function (_a) {
|
|
@@ -10496,6 +11191,18 @@ var deserializeAws_restXmlTooManyDistributionsAssociatedToKeyGroupResponse = fun
|
|
|
10496
11191
|
return [2, __decorateServiceException(exception, parsedOutput.body.Error)];
|
|
10497
11192
|
});
|
|
10498
11193
|
}); };
|
|
11194
|
+
var deserializeAws_restXmlTooManyDistributionsAssociatedToOriginAccessControlResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
11195
|
+
var contents, data, exception;
|
|
11196
|
+
return __generator(this, function (_a) {
|
|
11197
|
+
contents = map({});
|
|
11198
|
+
data = parsedOutput.body.Error;
|
|
11199
|
+
if (data["Message"] !== undefined) {
|
|
11200
|
+
contents.Message = __expectString(data["Message"]);
|
|
11201
|
+
}
|
|
11202
|
+
exception = new TooManyDistributionsAssociatedToOriginAccessControl(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
11203
|
+
return [2, __decorateServiceException(exception, parsedOutput.body.Error)];
|
|
11204
|
+
});
|
|
11205
|
+
}); };
|
|
10499
11206
|
var deserializeAws_restXmlTooManyDistributionsAssociatedToOriginRequestPolicyResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
10500
11207
|
var contents, data, exception;
|
|
10501
11208
|
return __generator(this, function (_a) {
|
|
@@ -10736,6 +11443,18 @@ var deserializeAws_restXmlTooManyLambdaFunctionAssociationsResponse = function (
|
|
|
10736
11443
|
return [2, __decorateServiceException(exception, parsedOutput.body.Error)];
|
|
10737
11444
|
});
|
|
10738
11445
|
}); };
|
|
11446
|
+
var deserializeAws_restXmlTooManyOriginAccessControlsResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
11447
|
+
var contents, data, exception;
|
|
11448
|
+
return __generator(this, function (_a) {
|
|
11449
|
+
contents = map({});
|
|
11450
|
+
data = parsedOutput.body.Error;
|
|
11451
|
+
if (data["Message"] !== undefined) {
|
|
11452
|
+
contents.Message = __expectString(data["Message"]);
|
|
11453
|
+
}
|
|
11454
|
+
exception = new TooManyOriginAccessControls(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
11455
|
+
return [2, __decorateServiceException(exception, parsedOutput.body.Error)];
|
|
11456
|
+
});
|
|
11457
|
+
}); };
|
|
10739
11458
|
var deserializeAws_restXmlTooManyOriginCustomHeadersResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
10740
11459
|
var contents, data, exception;
|
|
10741
11460
|
return __generator(this, function (_a) {
|
|
@@ -11970,6 +12689,36 @@ var serializeAws_restXmlOrigin = function (input, context) {
|
|
|
11970
12689
|
var node = serializeAws_restXmlOriginShield(input.OriginShield, context).withName("OriginShield");
|
|
11971
12690
|
bodyNode.addChildNode(node);
|
|
11972
12691
|
}
|
|
12692
|
+
if (input.OriginAccessControlId != null) {
|
|
12693
|
+
var node = __XmlNode.of("string", input.OriginAccessControlId).withName("OriginAccessControlId");
|
|
12694
|
+
bodyNode.addChildNode(node);
|
|
12695
|
+
}
|
|
12696
|
+
return bodyNode;
|
|
12697
|
+
};
|
|
12698
|
+
var serializeAws_restXmlOriginAccessControlConfig = function (input, context) {
|
|
12699
|
+
var bodyNode = new __XmlNode("OriginAccessControlConfig");
|
|
12700
|
+
if (input.Name != null) {
|
|
12701
|
+
var node = __XmlNode.of("string", input.Name).withName("Name");
|
|
12702
|
+
bodyNode.addChildNode(node);
|
|
12703
|
+
}
|
|
12704
|
+
if (input.Description != null) {
|
|
12705
|
+
var node = __XmlNode.of("string", input.Description).withName("Description");
|
|
12706
|
+
bodyNode.addChildNode(node);
|
|
12707
|
+
}
|
|
12708
|
+
if (input.SigningProtocol != null) {
|
|
12709
|
+
var node = __XmlNode.of("OriginAccessControlSigningProtocols", input.SigningProtocol).withName("SigningProtocol");
|
|
12710
|
+
bodyNode.addChildNode(node);
|
|
12711
|
+
}
|
|
12712
|
+
if (input.SigningBehavior != null) {
|
|
12713
|
+
var node = __XmlNode.of("OriginAccessControlSigningBehaviors", input.SigningBehavior).withName("SigningBehavior");
|
|
12714
|
+
bodyNode.addChildNode(node);
|
|
12715
|
+
}
|
|
12716
|
+
if (input.OriginAccessControlOriginType != null) {
|
|
12717
|
+
var node = __XmlNode
|
|
12718
|
+
.of("OriginAccessControlOriginTypes", input.OriginAccessControlOriginType)
|
|
12719
|
+
.withName("OriginAccessControlOriginType");
|
|
12720
|
+
bodyNode.addChildNode(node);
|
|
12721
|
+
}
|
|
11973
12722
|
return bodyNode;
|
|
11974
12723
|
};
|
|
11975
12724
|
var serializeAws_restXmlOriginCustomHeader = function (input, context) {
|
|
@@ -12454,14 +13203,14 @@ var serializeAws_restXmlResponseHeadersPolicyConfig = function (input, context)
|
|
|
12454
13203
|
var node = serializeAws_restXmlResponseHeadersPolicySecurityHeadersConfig(input.SecurityHeadersConfig, context).withName("SecurityHeadersConfig");
|
|
12455
13204
|
bodyNode.addChildNode(node);
|
|
12456
13205
|
}
|
|
12457
|
-
if (input.CustomHeadersConfig != null) {
|
|
12458
|
-
var node = serializeAws_restXmlResponseHeadersPolicyCustomHeadersConfig(input.CustomHeadersConfig, context).withName("CustomHeadersConfig");
|
|
12459
|
-
bodyNode.addChildNode(node);
|
|
12460
|
-
}
|
|
12461
13206
|
if (input.ServerTimingHeadersConfig != null) {
|
|
12462
13207
|
var node = serializeAws_restXmlResponseHeadersPolicyServerTimingHeadersConfig(input.ServerTimingHeadersConfig, context).withName("ServerTimingHeadersConfig");
|
|
12463
13208
|
bodyNode.addChildNode(node);
|
|
12464
13209
|
}
|
|
13210
|
+
if (input.CustomHeadersConfig != null) {
|
|
13211
|
+
var node = serializeAws_restXmlResponseHeadersPolicyCustomHeadersConfig(input.CustomHeadersConfig, context).withName("CustomHeadersConfig");
|
|
13212
|
+
bodyNode.addChildNode(node);
|
|
13213
|
+
}
|
|
12465
13214
|
return bodyNode;
|
|
12466
13215
|
};
|
|
12467
13216
|
var serializeAws_restXmlResponseHeadersPolicyContentSecurityPolicy = function (input, context) {
|
|
@@ -14776,6 +15525,7 @@ var deserializeAws_restXmlOrigin = function (output, context) {
|
|
|
14776
15525
|
ConnectionAttempts: undefined,
|
|
14777
15526
|
ConnectionTimeout: undefined,
|
|
14778
15527
|
OriginShield: undefined,
|
|
15528
|
+
OriginAccessControlId: undefined,
|
|
14779
15529
|
};
|
|
14780
15530
|
if (output["Id"] !== undefined) {
|
|
14781
15531
|
contents.Id = __expectString(output["Id"]);
|
|
@@ -14804,8 +15554,117 @@ var deserializeAws_restXmlOrigin = function (output, context) {
|
|
|
14804
15554
|
if (output["OriginShield"] !== undefined) {
|
|
14805
15555
|
contents.OriginShield = deserializeAws_restXmlOriginShield(output["OriginShield"], context);
|
|
14806
15556
|
}
|
|
15557
|
+
if (output["OriginAccessControlId"] !== undefined) {
|
|
15558
|
+
contents.OriginAccessControlId = __expectString(output["OriginAccessControlId"]);
|
|
15559
|
+
}
|
|
15560
|
+
return contents;
|
|
15561
|
+
};
|
|
15562
|
+
var deserializeAws_restXmlOriginAccessControl = function (output, context) {
|
|
15563
|
+
var contents = {
|
|
15564
|
+
Id: undefined,
|
|
15565
|
+
OriginAccessControlConfig: undefined,
|
|
15566
|
+
};
|
|
15567
|
+
if (output["Id"] !== undefined) {
|
|
15568
|
+
contents.Id = __expectString(output["Id"]);
|
|
15569
|
+
}
|
|
15570
|
+
if (output["OriginAccessControlConfig"] !== undefined) {
|
|
15571
|
+
contents.OriginAccessControlConfig = deserializeAws_restXmlOriginAccessControlConfig(output["OriginAccessControlConfig"], context);
|
|
15572
|
+
}
|
|
15573
|
+
return contents;
|
|
15574
|
+
};
|
|
15575
|
+
var deserializeAws_restXmlOriginAccessControlConfig = function (output, context) {
|
|
15576
|
+
var contents = {
|
|
15577
|
+
Name: undefined,
|
|
15578
|
+
Description: undefined,
|
|
15579
|
+
SigningProtocol: undefined,
|
|
15580
|
+
SigningBehavior: undefined,
|
|
15581
|
+
OriginAccessControlOriginType: undefined,
|
|
15582
|
+
};
|
|
15583
|
+
if (output["Name"] !== undefined) {
|
|
15584
|
+
contents.Name = __expectString(output["Name"]);
|
|
15585
|
+
}
|
|
15586
|
+
if (output["Description"] !== undefined) {
|
|
15587
|
+
contents.Description = __expectString(output["Description"]);
|
|
15588
|
+
}
|
|
15589
|
+
if (output["SigningProtocol"] !== undefined) {
|
|
15590
|
+
contents.SigningProtocol = __expectString(output["SigningProtocol"]);
|
|
15591
|
+
}
|
|
15592
|
+
if (output["SigningBehavior"] !== undefined) {
|
|
15593
|
+
contents.SigningBehavior = __expectString(output["SigningBehavior"]);
|
|
15594
|
+
}
|
|
15595
|
+
if (output["OriginAccessControlOriginType"] !== undefined) {
|
|
15596
|
+
contents.OriginAccessControlOriginType = __expectString(output["OriginAccessControlOriginType"]);
|
|
15597
|
+
}
|
|
15598
|
+
return contents;
|
|
15599
|
+
};
|
|
15600
|
+
var deserializeAws_restXmlOriginAccessControlList = function (output, context) {
|
|
15601
|
+
var contents = {
|
|
15602
|
+
Marker: undefined,
|
|
15603
|
+
NextMarker: undefined,
|
|
15604
|
+
MaxItems: undefined,
|
|
15605
|
+
IsTruncated: undefined,
|
|
15606
|
+
Quantity: undefined,
|
|
15607
|
+
Items: undefined,
|
|
15608
|
+
};
|
|
15609
|
+
if (output["Marker"] !== undefined) {
|
|
15610
|
+
contents.Marker = __expectString(output["Marker"]);
|
|
15611
|
+
}
|
|
15612
|
+
if (output["NextMarker"] !== undefined) {
|
|
15613
|
+
contents.NextMarker = __expectString(output["NextMarker"]);
|
|
15614
|
+
}
|
|
15615
|
+
if (output["MaxItems"] !== undefined) {
|
|
15616
|
+
contents.MaxItems = __strictParseInt32(output["MaxItems"]);
|
|
15617
|
+
}
|
|
15618
|
+
if (output["IsTruncated"] !== undefined) {
|
|
15619
|
+
contents.IsTruncated = __parseBoolean(output["IsTruncated"]);
|
|
15620
|
+
}
|
|
15621
|
+
if (output["Quantity"] !== undefined) {
|
|
15622
|
+
contents.Quantity = __strictParseInt32(output["Quantity"]);
|
|
15623
|
+
}
|
|
15624
|
+
if (output.Items === "") {
|
|
15625
|
+
contents.Items = [];
|
|
15626
|
+
}
|
|
15627
|
+
else if (output["Items"] !== undefined && output["Items"]["OriginAccessControlSummary"] !== undefined) {
|
|
15628
|
+
contents.Items = deserializeAws_restXmlOriginAccessControlSummaryList(__getArrayIfSingleItem(output["Items"]["OriginAccessControlSummary"]), context);
|
|
15629
|
+
}
|
|
15630
|
+
return contents;
|
|
15631
|
+
};
|
|
15632
|
+
var deserializeAws_restXmlOriginAccessControlSummary = function (output, context) {
|
|
15633
|
+
var contents = {
|
|
15634
|
+
Id: undefined,
|
|
15635
|
+
Description: undefined,
|
|
15636
|
+
Name: undefined,
|
|
15637
|
+
SigningProtocol: undefined,
|
|
15638
|
+
SigningBehavior: undefined,
|
|
15639
|
+
OriginAccessControlOriginType: undefined,
|
|
15640
|
+
};
|
|
15641
|
+
if (output["Id"] !== undefined) {
|
|
15642
|
+
contents.Id = __expectString(output["Id"]);
|
|
15643
|
+
}
|
|
15644
|
+
if (output["Description"] !== undefined) {
|
|
15645
|
+
contents.Description = __expectString(output["Description"]);
|
|
15646
|
+
}
|
|
15647
|
+
if (output["Name"] !== undefined) {
|
|
15648
|
+
contents.Name = __expectString(output["Name"]);
|
|
15649
|
+
}
|
|
15650
|
+
if (output["SigningProtocol"] !== undefined) {
|
|
15651
|
+
contents.SigningProtocol = __expectString(output["SigningProtocol"]);
|
|
15652
|
+
}
|
|
15653
|
+
if (output["SigningBehavior"] !== undefined) {
|
|
15654
|
+
contents.SigningBehavior = __expectString(output["SigningBehavior"]);
|
|
15655
|
+
}
|
|
15656
|
+
if (output["OriginAccessControlOriginType"] !== undefined) {
|
|
15657
|
+
contents.OriginAccessControlOriginType = __expectString(output["OriginAccessControlOriginType"]);
|
|
15658
|
+
}
|
|
14807
15659
|
return contents;
|
|
14808
15660
|
};
|
|
15661
|
+
var deserializeAws_restXmlOriginAccessControlSummaryList = function (output, context) {
|
|
15662
|
+
return (output || [])
|
|
15663
|
+
.filter(function (e) { return e != null; })
|
|
15664
|
+
.map(function (entry) {
|
|
15665
|
+
return deserializeAws_restXmlOriginAccessControlSummary(entry, context);
|
|
15666
|
+
});
|
|
15667
|
+
};
|
|
14809
15668
|
var deserializeAws_restXmlOriginCustomHeader = function (output, context) {
|
|
14810
15669
|
var contents = {
|
|
14811
15670
|
HeaderName: undefined,
|
|
@@ -15490,8 +16349,8 @@ var deserializeAws_restXmlResponseHeadersPolicyConfig = function (output, contex
|
|
|
15490
16349
|
Name: undefined,
|
|
15491
16350
|
CorsConfig: undefined,
|
|
15492
16351
|
SecurityHeadersConfig: undefined,
|
|
15493
|
-
CustomHeadersConfig: undefined,
|
|
15494
16352
|
ServerTimingHeadersConfig: undefined,
|
|
16353
|
+
CustomHeadersConfig: undefined,
|
|
15495
16354
|
};
|
|
15496
16355
|
if (output["Comment"] !== undefined) {
|
|
15497
16356
|
contents.Comment = __expectString(output["Comment"]);
|
|
@@ -15505,12 +16364,12 @@ var deserializeAws_restXmlResponseHeadersPolicyConfig = function (output, contex
|
|
|
15505
16364
|
if (output["SecurityHeadersConfig"] !== undefined) {
|
|
15506
16365
|
contents.SecurityHeadersConfig = deserializeAws_restXmlResponseHeadersPolicySecurityHeadersConfig(output["SecurityHeadersConfig"], context);
|
|
15507
16366
|
}
|
|
15508
|
-
if (output["CustomHeadersConfig"] !== undefined) {
|
|
15509
|
-
contents.CustomHeadersConfig = deserializeAws_restXmlResponseHeadersPolicyCustomHeadersConfig(output["CustomHeadersConfig"], context);
|
|
15510
|
-
}
|
|
15511
16367
|
if (output["ServerTimingHeadersConfig"] !== undefined) {
|
|
15512
16368
|
contents.ServerTimingHeadersConfig = deserializeAws_restXmlResponseHeadersPolicyServerTimingHeadersConfig(output["ServerTimingHeadersConfig"], context);
|
|
15513
16369
|
}
|
|
16370
|
+
if (output["CustomHeadersConfig"] !== undefined) {
|
|
16371
|
+
contents.CustomHeadersConfig = deserializeAws_restXmlResponseHeadersPolicyCustomHeadersConfig(output["CustomHeadersConfig"], context);
|
|
16372
|
+
}
|
|
15514
16373
|
return contents;
|
|
15515
16374
|
};
|
|
15516
16375
|
var deserializeAws_restXmlResponseHeadersPolicyContentSecurityPolicy = function (output, context) {
|