@aws-sdk/client-cloudfront 3.39.0 → 3.40.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 +12 -0
- package/dist-cjs/CloudFront.js +105 -0
- package/dist-cjs/commands/CreateResponseHeadersPolicyCommand.js +36 -0
- package/dist-cjs/commands/DeleteMonitoringSubscriptionCommand.js +2 -1
- package/dist-cjs/commands/DeleteOriginRequestPolicyCommand.js +2 -2
- package/dist-cjs/commands/DeletePublicKeyCommand.js +2 -2
- package/dist-cjs/commands/DeleteRealtimeLogConfigCommand.js +2 -2
- package/dist-cjs/commands/DeleteResponseHeadersPolicyCommand.js +36 -0
- package/dist-cjs/commands/DeleteStreamingDistributionCommand.js +2 -2
- package/dist-cjs/commands/DescribeFunctionCommand.js +3 -3
- package/dist-cjs/commands/GetCachePolicyCommand.js +3 -3
- package/dist-cjs/commands/GetCachePolicyConfigCommand.js +3 -3
- package/dist-cjs/commands/GetCloudFrontOriginAccessIdentityCommand.js +3 -3
- package/dist-cjs/commands/GetCloudFrontOriginAccessIdentityConfigCommand.js +3 -3
- package/dist-cjs/commands/GetDistributionCommand.js +3 -3
- package/dist-cjs/commands/GetDistributionConfigCommand.js +3 -3
- package/dist-cjs/commands/GetFieldLevelEncryptionCommand.js +3 -3
- package/dist-cjs/commands/GetResponseHeadersPolicyCommand.js +36 -0
- package/dist-cjs/commands/GetResponseHeadersPolicyConfigCommand.js +36 -0
- package/dist-cjs/commands/ListDistributionsByResponseHeadersPolicyIdCommand.js +36 -0
- package/dist-cjs/commands/ListResponseHeadersPoliciesCommand.js +36 -0
- package/dist-cjs/commands/UpdateResponseHeadersPolicyCommand.js +36 -0
- package/dist-cjs/commands/index.js +7 -0
- package/dist-cjs/endpoints.js +78 -5
- package/dist-cjs/models/models_0.js +174 -166
- package/dist-cjs/models/models_1.js +257 -3
- package/dist-cjs/protocols/Aws_restXml.js +1725 -120
- package/dist-cjs/runtimeConfig.browser.js +6 -3
- package/dist-cjs/runtimeConfig.js +5 -3
- package/dist-es/CloudFront.js +105 -0
- package/dist-es/commands/CreateResponseHeadersPolicyCommand.js +39 -0
- package/dist-es/commands/DeleteMonitoringSubscriptionCommand.js +2 -1
- package/dist-es/commands/DeleteOriginRequestPolicyCommand.js +1 -1
- package/dist-es/commands/DeletePublicKeyCommand.js +1 -1
- package/dist-es/commands/DeleteRealtimeLogConfigCommand.js +1 -1
- package/dist-es/commands/DeleteResponseHeadersPolicyCommand.js +39 -0
- package/dist-es/commands/DeleteStreamingDistributionCommand.js +1 -1
- package/dist-es/commands/DescribeFunctionCommand.js +1 -1
- package/dist-es/commands/GetCachePolicyCommand.js +1 -1
- package/dist-es/commands/GetCachePolicyConfigCommand.js +1 -1
- package/dist-es/commands/GetCloudFrontOriginAccessIdentityCommand.js +1 -1
- package/dist-es/commands/GetCloudFrontOriginAccessIdentityConfigCommand.js +1 -1
- package/dist-es/commands/GetDistributionCommand.js +1 -1
- package/dist-es/commands/GetDistributionConfigCommand.js +1 -1
- package/dist-es/commands/GetFieldLevelEncryptionCommand.js +1 -1
- package/dist-es/commands/GetResponseHeadersPolicyCommand.js +39 -0
- package/dist-es/commands/GetResponseHeadersPolicyConfigCommand.js +39 -0
- package/dist-es/commands/ListDistributionsByResponseHeadersPolicyIdCommand.js +39 -0
- package/dist-es/commands/ListResponseHeadersPoliciesCommand.js +39 -0
- package/dist-es/commands/UpdateResponseHeadersPolicyCommand.js +39 -0
- package/dist-es/commands/index.js +7 -0
- package/dist-es/endpoints.js +78 -5
- package/dist-es/models/models_0.js +122 -109
- package/dist-es/models/models_1.js +169 -2
- package/dist-es/protocols/Aws_restXml.js +2398 -664
- package/dist-es/runtimeConfig.browser.js +3 -2
- package/dist-es/runtimeConfig.js +3 -3
- package/dist-types/CloudFront.d.ts +109 -3
- package/dist-types/CloudFrontClient.d.ts +17 -2
- package/dist-types/commands/CreateResponseHeadersPolicyCommand.d.ts +42 -0
- package/dist-types/commands/DeleteMonitoringSubscriptionCommand.d.ts +2 -1
- package/dist-types/commands/DeleteOriginRequestPolicyCommand.d.ts +1 -1
- package/dist-types/commands/DeletePublicKeyCommand.d.ts +1 -1
- package/dist-types/commands/DeleteRealtimeLogConfigCommand.d.ts +1 -1
- package/dist-types/commands/DeleteResponseHeadersPolicyCommand.d.ts +41 -0
- package/dist-types/commands/DeleteStreamingDistributionCommand.d.ts +1 -1
- package/dist-types/commands/DescribeFunctionCommand.d.ts +1 -1
- package/dist-types/commands/GetCachePolicyCommand.d.ts +1 -1
- package/dist-types/commands/GetCachePolicyConfigCommand.d.ts +1 -1
- package/dist-types/commands/GetCloudFrontOriginAccessIdentityCommand.d.ts +1 -1
- package/dist-types/commands/GetCloudFrontOriginAccessIdentityConfigCommand.d.ts +1 -1
- package/dist-types/commands/GetDistributionCommand.d.ts +1 -1
- package/dist-types/commands/GetDistributionConfigCommand.d.ts +1 -1
- package/dist-types/commands/GetFieldLevelEncryptionCommand.d.ts +1 -1
- package/dist-types/commands/GetResponseHeadersPolicyCommand.d.ts +42 -0
- package/dist-types/commands/GetResponseHeadersPolicyConfigCommand.d.ts +41 -0
- package/dist-types/commands/ListCachePoliciesCommand.d.ts +1 -1
- package/dist-types/commands/ListDistributionsByResponseHeadersPolicyIdCommand.d.ts +41 -0
- package/dist-types/commands/ListFunctionsCommand.d.ts +1 -1
- package/dist-types/commands/ListOriginRequestPoliciesCommand.d.ts +1 -1
- package/dist-types/commands/ListResponseHeadersPoliciesCommand.d.ts +42 -0
- package/dist-types/commands/UpdateResponseHeadersPolicyCommand.d.ts +53 -0
- package/dist-types/commands/index.d.ts +7 -0
- package/dist-types/models/models_0.d.ts +990 -676
- package/dist-types/models/models_1.d.ts +746 -51
- package/dist-types/protocols/Aws_restXml.d.ts +21 -0
- package/dist-types/runtimeConfig.browser.d.ts +2 -0
- package/dist-types/runtimeConfig.d.ts +2 -0
- package/dist-types/runtimeConfig.native.d.ts +2 -0
- package/dist-types/ts3.4/CloudFront.d.ts +35 -0
- package/dist-types/ts3.4/CloudFrontClient.d.ts +13 -2
- package/dist-types/ts3.4/commands/CreateResponseHeadersPolicyCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteMonitoringSubscriptionCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/DeleteOriginRequestPolicyCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DeletePublicKeyCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DeleteRealtimeLogConfigCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DeleteResponseHeadersPolicyCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteStreamingDistributionCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DescribeFunctionCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetCachePolicyCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetCachePolicyConfigCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetCloudFrontOriginAccessIdentityCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetCloudFrontOriginAccessIdentityConfigCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetDistributionCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetDistributionConfigCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetFieldLevelEncryptionCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetResponseHeadersPolicyCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetResponseHeadersPolicyConfigCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListDistributionsByResponseHeadersPolicyIdCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListResponseHeadersPoliciesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateResponseHeadersPolicyCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +7 -0
- package/dist-types/ts3.4/models/models_0.d.ts +10 -0
- package/dist-types/ts3.4/models/models_1.d.ts +418 -19
- package/dist-types/ts3.4/protocols/Aws_restXml.d.ts +21 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
- package/package.json +24 -24
|
@@ -510,6 +510,38 @@ export var serializeAws_restXmlCreateRealtimeLogConfigCommand = function (input,
|
|
|
510
510
|
}
|
|
511
511
|
});
|
|
512
512
|
}); };
|
|
513
|
+
export var serializeAws_restXmlCreateResponseHeadersPolicyCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
514
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body, contents;
|
|
515
|
+
return __generator(this, function (_c) {
|
|
516
|
+
switch (_c.label) {
|
|
517
|
+
case 0: return [4, context.endpoint()];
|
|
518
|
+
case 1:
|
|
519
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
520
|
+
headers = {
|
|
521
|
+
"content-type": "application/xml",
|
|
522
|
+
};
|
|
523
|
+
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2020-05-31/response-headers-policy";
|
|
524
|
+
if (input.ResponseHeadersPolicyConfig !== undefined) {
|
|
525
|
+
body = serializeAws_restXmlResponseHeadersPolicyConfig(input.ResponseHeadersPolicyConfig, context);
|
|
526
|
+
}
|
|
527
|
+
if (input.ResponseHeadersPolicyConfig !== undefined) {
|
|
528
|
+
contents = serializeAws_restXmlResponseHeadersPolicyConfig(input.ResponseHeadersPolicyConfig, context);
|
|
529
|
+
body = '<?xml version="1.0" encoding="UTF-8"?>';
|
|
530
|
+
contents.addAttribute("xmlns", "http://cloudfront.amazonaws.com/doc/2020-05-31/");
|
|
531
|
+
body += contents.toString();
|
|
532
|
+
}
|
|
533
|
+
return [2, new __HttpRequest({
|
|
534
|
+
protocol: protocol,
|
|
535
|
+
hostname: hostname,
|
|
536
|
+
port: port,
|
|
537
|
+
method: "POST",
|
|
538
|
+
headers: headers,
|
|
539
|
+
path: resolvedPath,
|
|
540
|
+
body: body,
|
|
541
|
+
})];
|
|
542
|
+
}
|
|
543
|
+
});
|
|
544
|
+
}); };
|
|
513
545
|
export var serializeAws_restXmlCreateStreamingDistributionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
514
546
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body, contents;
|
|
515
547
|
return __generator(this, function (_c) {
|
|
@@ -926,6 +958,37 @@ export var serializeAws_restXmlDeleteRealtimeLogConfigCommand = function (input,
|
|
|
926
958
|
}
|
|
927
959
|
});
|
|
928
960
|
}); };
|
|
961
|
+
export var serializeAws_restXmlDeleteResponseHeadersPolicyCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
962
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
963
|
+
return __generator(this, function (_c) {
|
|
964
|
+
switch (_c.label) {
|
|
965
|
+
case 0: return [4, context.endpoint()];
|
|
966
|
+
case 1:
|
|
967
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
968
|
+
headers = __assign({}, (isSerializableHeaderValue(input.IfMatch) && { "if-match": input.IfMatch }));
|
|
969
|
+
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2020-05-31/response-headers-policy/{Id}";
|
|
970
|
+
if (input.Id !== undefined) {
|
|
971
|
+
labelValue = input.Id;
|
|
972
|
+
if (labelValue.length <= 0) {
|
|
973
|
+
throw new Error("Empty value provided for input HTTP label: Id.");
|
|
974
|
+
}
|
|
975
|
+
resolvedPath = resolvedPath.replace("{Id}", __extendedEncodeURIComponent(labelValue));
|
|
976
|
+
}
|
|
977
|
+
else {
|
|
978
|
+
throw new Error("No value provided for input HTTP label: Id.");
|
|
979
|
+
}
|
|
980
|
+
return [2, new __HttpRequest({
|
|
981
|
+
protocol: protocol,
|
|
982
|
+
hostname: hostname,
|
|
983
|
+
port: port,
|
|
984
|
+
method: "DELETE",
|
|
985
|
+
headers: headers,
|
|
986
|
+
path: resolvedPath,
|
|
987
|
+
body: body,
|
|
988
|
+
})];
|
|
989
|
+
}
|
|
990
|
+
});
|
|
991
|
+
}); };
|
|
929
992
|
export var serializeAws_restXmlDeleteStreamingDistributionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
930
993
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
931
994
|
return __generator(this, function (_c) {
|
|
@@ -1634,6 +1697,69 @@ export var serializeAws_restXmlGetRealtimeLogConfigCommand = function (input, co
|
|
|
1634
1697
|
}
|
|
1635
1698
|
});
|
|
1636
1699
|
}); };
|
|
1700
|
+
export var serializeAws_restXmlGetResponseHeadersPolicyCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1701
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
1702
|
+
return __generator(this, function (_c) {
|
|
1703
|
+
switch (_c.label) {
|
|
1704
|
+
case 0: return [4, context.endpoint()];
|
|
1705
|
+
case 1:
|
|
1706
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1707
|
+
headers = {};
|
|
1708
|
+
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2020-05-31/response-headers-policy/{Id}";
|
|
1709
|
+
if (input.Id !== undefined) {
|
|
1710
|
+
labelValue = input.Id;
|
|
1711
|
+
if (labelValue.length <= 0) {
|
|
1712
|
+
throw new Error("Empty value provided for input HTTP label: Id.");
|
|
1713
|
+
}
|
|
1714
|
+
resolvedPath = resolvedPath.replace("{Id}", __extendedEncodeURIComponent(labelValue));
|
|
1715
|
+
}
|
|
1716
|
+
else {
|
|
1717
|
+
throw new Error("No value provided for input HTTP label: Id.");
|
|
1718
|
+
}
|
|
1719
|
+
return [2, new __HttpRequest({
|
|
1720
|
+
protocol: protocol,
|
|
1721
|
+
hostname: hostname,
|
|
1722
|
+
port: port,
|
|
1723
|
+
method: "GET",
|
|
1724
|
+
headers: headers,
|
|
1725
|
+
path: resolvedPath,
|
|
1726
|
+
body: body,
|
|
1727
|
+
})];
|
|
1728
|
+
}
|
|
1729
|
+
});
|
|
1730
|
+
}); };
|
|
1731
|
+
export var serializeAws_restXmlGetResponseHeadersPolicyConfigCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1732
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
1733
|
+
return __generator(this, function (_c) {
|
|
1734
|
+
switch (_c.label) {
|
|
1735
|
+
case 0: return [4, context.endpoint()];
|
|
1736
|
+
case 1:
|
|
1737
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1738
|
+
headers = {};
|
|
1739
|
+
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1740
|
+
"/2020-05-31/response-headers-policy/{Id}/config";
|
|
1741
|
+
if (input.Id !== undefined) {
|
|
1742
|
+
labelValue = input.Id;
|
|
1743
|
+
if (labelValue.length <= 0) {
|
|
1744
|
+
throw new Error("Empty value provided for input HTTP label: Id.");
|
|
1745
|
+
}
|
|
1746
|
+
resolvedPath = resolvedPath.replace("{Id}", __extendedEncodeURIComponent(labelValue));
|
|
1747
|
+
}
|
|
1748
|
+
else {
|
|
1749
|
+
throw new Error("No value provided for input HTTP label: Id.");
|
|
1750
|
+
}
|
|
1751
|
+
return [2, new __HttpRequest({
|
|
1752
|
+
protocol: protocol,
|
|
1753
|
+
hostname: hostname,
|
|
1754
|
+
port: port,
|
|
1755
|
+
method: "GET",
|
|
1756
|
+
headers: headers,
|
|
1757
|
+
path: resolvedPath,
|
|
1758
|
+
body: body,
|
|
1759
|
+
})];
|
|
1760
|
+
}
|
|
1761
|
+
});
|
|
1762
|
+
}); };
|
|
1637
1763
|
export var serializeAws_restXmlGetStreamingDistributionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1638
1764
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
1639
1765
|
return __generator(this, function (_c) {
|
|
@@ -1940,6 +2066,40 @@ export var serializeAws_restXmlListDistributionsByRealtimeLogConfigCommand = fun
|
|
|
1940
2066
|
}
|
|
1941
2067
|
});
|
|
1942
2068
|
}); };
|
|
2069
|
+
export var serializeAws_restXmlListDistributionsByResponseHeadersPolicyIdCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2070
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
|
|
2071
|
+
return __generator(this, function (_c) {
|
|
2072
|
+
switch (_c.label) {
|
|
2073
|
+
case 0: return [4, context.endpoint()];
|
|
2074
|
+
case 1:
|
|
2075
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
2076
|
+
headers = {};
|
|
2077
|
+
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
2078
|
+
"/2020-05-31/distributionsByResponseHeadersPolicyId/{ResponseHeadersPolicyId}";
|
|
2079
|
+
if (input.ResponseHeadersPolicyId !== undefined) {
|
|
2080
|
+
labelValue = input.ResponseHeadersPolicyId;
|
|
2081
|
+
if (labelValue.length <= 0) {
|
|
2082
|
+
throw new Error("Empty value provided for input HTTP label: ResponseHeadersPolicyId.");
|
|
2083
|
+
}
|
|
2084
|
+
resolvedPath = resolvedPath.replace("{ResponseHeadersPolicyId}", __extendedEncodeURIComponent(labelValue));
|
|
2085
|
+
}
|
|
2086
|
+
else {
|
|
2087
|
+
throw new Error("No value provided for input HTTP label: ResponseHeadersPolicyId.");
|
|
2088
|
+
}
|
|
2089
|
+
query = __assign(__assign({}, (input.Marker !== undefined && { Marker: input.Marker })), (input.MaxItems !== undefined && { MaxItems: input.MaxItems.toString() }));
|
|
2090
|
+
return [2, new __HttpRequest({
|
|
2091
|
+
protocol: protocol,
|
|
2092
|
+
hostname: hostname,
|
|
2093
|
+
port: port,
|
|
2094
|
+
method: "GET",
|
|
2095
|
+
headers: headers,
|
|
2096
|
+
path: resolvedPath,
|
|
2097
|
+
query: query,
|
|
2098
|
+
body: body,
|
|
2099
|
+
})];
|
|
2100
|
+
}
|
|
2101
|
+
});
|
|
2102
|
+
}); };
|
|
1943
2103
|
export var serializeAws_restXmlListDistributionsByWebACLIdCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1944
2104
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
|
|
1945
2105
|
return __generator(this, function (_c) {
|
|
@@ -2170,6 +2330,29 @@ export var serializeAws_restXmlListRealtimeLogConfigsCommand = function (input,
|
|
|
2170
2330
|
}
|
|
2171
2331
|
});
|
|
2172
2332
|
}); };
|
|
2333
|
+
export var serializeAws_restXmlListResponseHeadersPoliciesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2334
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
2335
|
+
return __generator(this, function (_c) {
|
|
2336
|
+
switch (_c.label) {
|
|
2337
|
+
case 0: return [4, context.endpoint()];
|
|
2338
|
+
case 1:
|
|
2339
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
2340
|
+
headers = {};
|
|
2341
|
+
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2020-05-31/response-headers-policy";
|
|
2342
|
+
query = __assign(__assign(__assign({}, (input.Type !== undefined && { Type: input.Type })), (input.Marker !== undefined && { Marker: input.Marker })), (input.MaxItems !== undefined && { MaxItems: input.MaxItems.toString() }));
|
|
2343
|
+
return [2, new __HttpRequest({
|
|
2344
|
+
protocol: protocol,
|
|
2345
|
+
hostname: hostname,
|
|
2346
|
+
port: port,
|
|
2347
|
+
method: "GET",
|
|
2348
|
+
headers: headers,
|
|
2349
|
+
path: resolvedPath,
|
|
2350
|
+
query: query,
|
|
2351
|
+
body: body,
|
|
2352
|
+
})];
|
|
2353
|
+
}
|
|
2354
|
+
});
|
|
2355
|
+
}); };
|
|
2173
2356
|
export var serializeAws_restXmlListStreamingDistributionsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2174
2357
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
2175
2358
|
return __generator(this, function (_c) {
|
|
@@ -2783,6 +2966,46 @@ export var serializeAws_restXmlUpdateRealtimeLogConfigCommand = function (input,
|
|
|
2783
2966
|
}
|
|
2784
2967
|
});
|
|
2785
2968
|
}); };
|
|
2969
|
+
export var serializeAws_restXmlUpdateResponseHeadersPolicyCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2970
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body, contents;
|
|
2971
|
+
return __generator(this, function (_c) {
|
|
2972
|
+
switch (_c.label) {
|
|
2973
|
+
case 0: return [4, context.endpoint()];
|
|
2974
|
+
case 1:
|
|
2975
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
2976
|
+
headers = __assign({ "content-type": "application/xml" }, (isSerializableHeaderValue(input.IfMatch) && { "if-match": input.IfMatch }));
|
|
2977
|
+
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2020-05-31/response-headers-policy/{Id}";
|
|
2978
|
+
if (input.Id !== undefined) {
|
|
2979
|
+
labelValue = input.Id;
|
|
2980
|
+
if (labelValue.length <= 0) {
|
|
2981
|
+
throw new Error("Empty value provided for input HTTP label: Id.");
|
|
2982
|
+
}
|
|
2983
|
+
resolvedPath = resolvedPath.replace("{Id}", __extendedEncodeURIComponent(labelValue));
|
|
2984
|
+
}
|
|
2985
|
+
else {
|
|
2986
|
+
throw new Error("No value provided for input HTTP label: Id.");
|
|
2987
|
+
}
|
|
2988
|
+
if (input.ResponseHeadersPolicyConfig !== undefined) {
|
|
2989
|
+
body = serializeAws_restXmlResponseHeadersPolicyConfig(input.ResponseHeadersPolicyConfig, context);
|
|
2990
|
+
}
|
|
2991
|
+
if (input.ResponseHeadersPolicyConfig !== undefined) {
|
|
2992
|
+
contents = serializeAws_restXmlResponseHeadersPolicyConfig(input.ResponseHeadersPolicyConfig, context);
|
|
2993
|
+
body = '<?xml version="1.0" encoding="UTF-8"?>';
|
|
2994
|
+
contents.addAttribute("xmlns", "http://cloudfront.amazonaws.com/doc/2020-05-31/");
|
|
2995
|
+
body += contents.toString();
|
|
2996
|
+
}
|
|
2997
|
+
return [2, new __HttpRequest({
|
|
2998
|
+
protocol: protocol,
|
|
2999
|
+
hostname: hostname,
|
|
3000
|
+
port: port,
|
|
3001
|
+
method: "PUT",
|
|
3002
|
+
headers: headers,
|
|
3003
|
+
path: resolvedPath,
|
|
3004
|
+
body: body,
|
|
3005
|
+
})];
|
|
3006
|
+
}
|
|
3007
|
+
});
|
|
3008
|
+
}); };
|
|
2786
3009
|
export var serializeAws_restXmlUpdateStreamingDistributionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2787
3010
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body, contents;
|
|
2788
3011
|
return __generator(this, function (_c) {
|
|
@@ -3164,16 +3387,16 @@ export var deserializeAws_restXmlCreateDistributionCommand = function (output, c
|
|
|
3164
3387
|
});
|
|
3165
3388
|
}); };
|
|
3166
3389
|
var deserializeAws_restXmlCreateDistributionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3167
|
-
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32, _33, _34, parsedBody, message;
|
|
3168
|
-
var
|
|
3169
|
-
return __generator(this, function (
|
|
3170
|
-
switch (
|
|
3390
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32, _33, _34, _35, _36, parsedBody, message;
|
|
3391
|
+
var _37;
|
|
3392
|
+
return __generator(this, function (_38) {
|
|
3393
|
+
switch (_38.label) {
|
|
3171
3394
|
case 0:
|
|
3172
3395
|
_a = [__assign({}, output)];
|
|
3173
|
-
|
|
3396
|
+
_37 = {};
|
|
3174
3397
|
return [4, parseBody(output.body, context)];
|
|
3175
3398
|
case 1:
|
|
3176
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
3399
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_37.body = _38.sent(), _37)]));
|
|
3177
3400
|
errorCode = "UnknownError";
|
|
3178
3401
|
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3179
3402
|
_b = errorCode;
|
|
@@ -3244,404 +3467,420 @@ var deserializeAws_restXmlCreateDistributionCommandError = function (output, con
|
|
|
3244
3467
|
case "com.amazonaws.cloudfront#NoSuchOriginRequestPolicy": return [3, 64];
|
|
3245
3468
|
case "NoSuchRealtimeLogConfig": return [3, 66];
|
|
3246
3469
|
case "com.amazonaws.cloudfront#NoSuchRealtimeLogConfig": return [3, 66];
|
|
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
|
-
|
|
3296
|
-
|
|
3470
|
+
case "NoSuchResponseHeadersPolicy": return [3, 68];
|
|
3471
|
+
case "com.amazonaws.cloudfront#NoSuchResponseHeadersPolicy": return [3, 68];
|
|
3472
|
+
case "RealtimeLogConfigOwnerMismatch": return [3, 70];
|
|
3473
|
+
case "com.amazonaws.cloudfront#RealtimeLogConfigOwnerMismatch": return [3, 70];
|
|
3474
|
+
case "TooManyCacheBehaviors": return [3, 72];
|
|
3475
|
+
case "com.amazonaws.cloudfront#TooManyCacheBehaviors": return [3, 72];
|
|
3476
|
+
case "TooManyCertificates": return [3, 74];
|
|
3477
|
+
case "com.amazonaws.cloudfront#TooManyCertificates": return [3, 74];
|
|
3478
|
+
case "TooManyCookieNamesInWhiteList": return [3, 76];
|
|
3479
|
+
case "com.amazonaws.cloudfront#TooManyCookieNamesInWhiteList": return [3, 76];
|
|
3480
|
+
case "TooManyDistributionCNAMEs": return [3, 78];
|
|
3481
|
+
case "com.amazonaws.cloudfront#TooManyDistributionCNAMEs": return [3, 78];
|
|
3482
|
+
case "TooManyDistributions": return [3, 80];
|
|
3483
|
+
case "com.amazonaws.cloudfront#TooManyDistributions": return [3, 80];
|
|
3484
|
+
case "TooManyDistributionsAssociatedToCachePolicy": return [3, 82];
|
|
3485
|
+
case "com.amazonaws.cloudfront#TooManyDistributionsAssociatedToCachePolicy": return [3, 82];
|
|
3486
|
+
case "TooManyDistributionsAssociatedToFieldLevelEncryptionConfig": return [3, 84];
|
|
3487
|
+
case "com.amazonaws.cloudfront#TooManyDistributionsAssociatedToFieldLevelEncryptionConfig": return [3, 84];
|
|
3488
|
+
case "TooManyDistributionsAssociatedToKeyGroup": return [3, 86];
|
|
3489
|
+
case "com.amazonaws.cloudfront#TooManyDistributionsAssociatedToKeyGroup": return [3, 86];
|
|
3490
|
+
case "TooManyDistributionsAssociatedToOriginRequestPolicy": return [3, 88];
|
|
3491
|
+
case "com.amazonaws.cloudfront#TooManyDistributionsAssociatedToOriginRequestPolicy": return [3, 88];
|
|
3492
|
+
case "TooManyDistributionsAssociatedToResponseHeadersPolicy": return [3, 90];
|
|
3493
|
+
case "com.amazonaws.cloudfront#TooManyDistributionsAssociatedToResponseHeadersPolicy": return [3, 90];
|
|
3494
|
+
case "TooManyDistributionsWithFunctionAssociations": return [3, 92];
|
|
3495
|
+
case "com.amazonaws.cloudfront#TooManyDistributionsWithFunctionAssociations": return [3, 92];
|
|
3496
|
+
case "TooManyDistributionsWithLambdaAssociations": return [3, 94];
|
|
3497
|
+
case "com.amazonaws.cloudfront#TooManyDistributionsWithLambdaAssociations": return [3, 94];
|
|
3498
|
+
case "TooManyDistributionsWithSingleFunctionARN": return [3, 96];
|
|
3499
|
+
case "com.amazonaws.cloudfront#TooManyDistributionsWithSingleFunctionARN": return [3, 96];
|
|
3500
|
+
case "TooManyFunctionAssociations": return [3, 98];
|
|
3501
|
+
case "com.amazonaws.cloudfront#TooManyFunctionAssociations": return [3, 98];
|
|
3502
|
+
case "TooManyHeadersInForwardedValues": return [3, 100];
|
|
3503
|
+
case "com.amazonaws.cloudfront#TooManyHeadersInForwardedValues": return [3, 100];
|
|
3504
|
+
case "TooManyKeyGroupsAssociatedToDistribution": return [3, 102];
|
|
3505
|
+
case "com.amazonaws.cloudfront#TooManyKeyGroupsAssociatedToDistribution": return [3, 102];
|
|
3506
|
+
case "TooManyLambdaFunctionAssociations": return [3, 104];
|
|
3507
|
+
case "com.amazonaws.cloudfront#TooManyLambdaFunctionAssociations": return [3, 104];
|
|
3508
|
+
case "TooManyOriginCustomHeaders": return [3, 106];
|
|
3509
|
+
case "com.amazonaws.cloudfront#TooManyOriginCustomHeaders": return [3, 106];
|
|
3510
|
+
case "TooManyOriginGroupsPerDistribution": return [3, 108];
|
|
3511
|
+
case "com.amazonaws.cloudfront#TooManyOriginGroupsPerDistribution": return [3, 108];
|
|
3512
|
+
case "TooManyOrigins": return [3, 110];
|
|
3513
|
+
case "com.amazonaws.cloudfront#TooManyOrigins": return [3, 110];
|
|
3514
|
+
case "TooManyQueryStringParameters": return [3, 112];
|
|
3515
|
+
case "com.amazonaws.cloudfront#TooManyQueryStringParameters": return [3, 112];
|
|
3516
|
+
case "TooManyTrustedSigners": return [3, 114];
|
|
3517
|
+
case "com.amazonaws.cloudfront#TooManyTrustedSigners": return [3, 114];
|
|
3518
|
+
case "TrustedKeyGroupDoesNotExist": return [3, 116];
|
|
3519
|
+
case "com.amazonaws.cloudfront#TrustedKeyGroupDoesNotExist": return [3, 116];
|
|
3520
|
+
case "TrustedSignerDoesNotExist": return [3, 118];
|
|
3521
|
+
case "com.amazonaws.cloudfront#TrustedSignerDoesNotExist": return [3, 118];
|
|
3522
|
+
}
|
|
3523
|
+
return [3, 120];
|
|
3297
3524
|
case 2:
|
|
3298
3525
|
_c = [{}];
|
|
3299
3526
|
return [4, deserializeAws_restXmlAccessDeniedResponse(parsedOutput, context)];
|
|
3300
3527
|
case 3:
|
|
3301
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(
|
|
3302
|
-
return [3,
|
|
3528
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3529
|
+
return [3, 121];
|
|
3303
3530
|
case 4:
|
|
3304
3531
|
_d = [{}];
|
|
3305
3532
|
return [4, deserializeAws_restXmlCNAMEAlreadyExistsResponse(parsedOutput, context)];
|
|
3306
3533
|
case 5:
|
|
3307
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(
|
|
3308
|
-
return [3,
|
|
3534
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3535
|
+
return [3, 121];
|
|
3309
3536
|
case 6:
|
|
3310
3537
|
_e = [{}];
|
|
3311
3538
|
return [4, deserializeAws_restXmlDistributionAlreadyExistsResponse(parsedOutput, context)];
|
|
3312
3539
|
case 7:
|
|
3313
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(
|
|
3314
|
-
return [3,
|
|
3540
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3541
|
+
return [3, 121];
|
|
3315
3542
|
case 8:
|
|
3316
3543
|
_f = [{}];
|
|
3317
3544
|
return [4, deserializeAws_restXmlIllegalFieldLevelEncryptionConfigAssociationWithCacheBehaviorResponse(parsedOutput, context)];
|
|
3318
3545
|
case 9:
|
|
3319
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(
|
|
3320
|
-
return [3,
|
|
3546
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3547
|
+
return [3, 121];
|
|
3321
3548
|
case 10:
|
|
3322
3549
|
_g = [{}];
|
|
3323
3550
|
return [4, deserializeAws_restXmlInconsistentQuantitiesResponse(parsedOutput, context)];
|
|
3324
3551
|
case 11:
|
|
3325
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(
|
|
3326
|
-
return [3,
|
|
3552
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3553
|
+
return [3, 121];
|
|
3327
3554
|
case 12:
|
|
3328
3555
|
_h = [{}];
|
|
3329
3556
|
return [4, deserializeAws_restXmlInvalidArgumentResponse(parsedOutput, context)];
|
|
3330
3557
|
case 13:
|
|
3331
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(
|
|
3332
|
-
return [3,
|
|
3558
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3559
|
+
return [3, 121];
|
|
3333
3560
|
case 14:
|
|
3334
3561
|
_j = [{}];
|
|
3335
3562
|
return [4, deserializeAws_restXmlInvalidDefaultRootObjectResponse(parsedOutput, context)];
|
|
3336
3563
|
case 15:
|
|
3337
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(
|
|
3338
|
-
return [3,
|
|
3564
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3565
|
+
return [3, 121];
|
|
3339
3566
|
case 16:
|
|
3340
3567
|
_k = [{}];
|
|
3341
3568
|
return [4, deserializeAws_restXmlInvalidErrorCodeResponse(parsedOutput, context)];
|
|
3342
3569
|
case 17:
|
|
3343
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _k.concat([(
|
|
3344
|
-
return [3,
|
|
3570
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _k.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3571
|
+
return [3, 121];
|
|
3345
3572
|
case 18:
|
|
3346
3573
|
_l = [{}];
|
|
3347
3574
|
return [4, deserializeAws_restXmlInvalidForwardCookiesResponse(parsedOutput, context)];
|
|
3348
3575
|
case 19:
|
|
3349
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _l.concat([(
|
|
3350
|
-
return [3,
|
|
3576
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _l.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3577
|
+
return [3, 121];
|
|
3351
3578
|
case 20:
|
|
3352
3579
|
_m = [{}];
|
|
3353
3580
|
return [4, deserializeAws_restXmlInvalidFunctionAssociationResponse(parsedOutput, context)];
|
|
3354
3581
|
case 21:
|
|
3355
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _m.concat([(
|
|
3356
|
-
return [3,
|
|
3582
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _m.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3583
|
+
return [3, 121];
|
|
3357
3584
|
case 22:
|
|
3358
3585
|
_o = [{}];
|
|
3359
3586
|
return [4, deserializeAws_restXmlInvalidGeoRestrictionParameterResponse(parsedOutput, context)];
|
|
3360
3587
|
case 23:
|
|
3361
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _o.concat([(
|
|
3362
|
-
return [3,
|
|
3588
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _o.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3589
|
+
return [3, 121];
|
|
3363
3590
|
case 24:
|
|
3364
3591
|
_p = [{}];
|
|
3365
3592
|
return [4, deserializeAws_restXmlInvalidHeadersForS3OriginResponse(parsedOutput, context)];
|
|
3366
3593
|
case 25:
|
|
3367
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _p.concat([(
|
|
3368
|
-
return [3,
|
|
3594
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _p.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3595
|
+
return [3, 121];
|
|
3369
3596
|
case 26:
|
|
3370
3597
|
_q = [{}];
|
|
3371
3598
|
return [4, deserializeAws_restXmlInvalidLambdaFunctionAssociationResponse(parsedOutput, context)];
|
|
3372
3599
|
case 27:
|
|
3373
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _q.concat([(
|
|
3374
|
-
return [3,
|
|
3600
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _q.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3601
|
+
return [3, 121];
|
|
3375
3602
|
case 28:
|
|
3376
3603
|
_r = [{}];
|
|
3377
3604
|
return [4, deserializeAws_restXmlInvalidLocationCodeResponse(parsedOutput, context)];
|
|
3378
3605
|
case 29:
|
|
3379
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _r.concat([(
|
|
3380
|
-
return [3,
|
|
3606
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _r.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3607
|
+
return [3, 121];
|
|
3381
3608
|
case 30:
|
|
3382
3609
|
_s = [{}];
|
|
3383
3610
|
return [4, deserializeAws_restXmlInvalidMinimumProtocolVersionResponse(parsedOutput, context)];
|
|
3384
3611
|
case 31:
|
|
3385
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _s.concat([(
|
|
3386
|
-
return [3,
|
|
3612
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _s.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3613
|
+
return [3, 121];
|
|
3387
3614
|
case 32:
|
|
3388
3615
|
_t = [{}];
|
|
3389
3616
|
return [4, deserializeAws_restXmlInvalidOriginResponse(parsedOutput, context)];
|
|
3390
3617
|
case 33:
|
|
3391
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _t.concat([(
|
|
3392
|
-
return [3,
|
|
3618
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _t.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3619
|
+
return [3, 121];
|
|
3393
3620
|
case 34:
|
|
3394
3621
|
_u = [{}];
|
|
3395
3622
|
return [4, deserializeAws_restXmlInvalidOriginAccessIdentityResponse(parsedOutput, context)];
|
|
3396
3623
|
case 35:
|
|
3397
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _u.concat([(
|
|
3398
|
-
return [3,
|
|
3624
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _u.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3625
|
+
return [3, 121];
|
|
3399
3626
|
case 36:
|
|
3400
3627
|
_v = [{}];
|
|
3401
3628
|
return [4, deserializeAws_restXmlInvalidOriginKeepaliveTimeoutResponse(parsedOutput, context)];
|
|
3402
3629
|
case 37:
|
|
3403
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _v.concat([(
|
|
3404
|
-
return [3,
|
|
3630
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _v.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3631
|
+
return [3, 121];
|
|
3405
3632
|
case 38:
|
|
3406
3633
|
_w = [{}];
|
|
3407
3634
|
return [4, deserializeAws_restXmlInvalidOriginReadTimeoutResponse(parsedOutput, context)];
|
|
3408
3635
|
case 39:
|
|
3409
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _w.concat([(
|
|
3410
|
-
return [3,
|
|
3636
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _w.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3637
|
+
return [3, 121];
|
|
3411
3638
|
case 40:
|
|
3412
3639
|
_x = [{}];
|
|
3413
3640
|
return [4, deserializeAws_restXmlInvalidProtocolSettingsResponse(parsedOutput, context)];
|
|
3414
3641
|
case 41:
|
|
3415
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _x.concat([(
|
|
3416
|
-
return [3,
|
|
3642
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _x.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3643
|
+
return [3, 121];
|
|
3417
3644
|
case 42:
|
|
3418
3645
|
_y = [{}];
|
|
3419
3646
|
return [4, deserializeAws_restXmlInvalidQueryStringParametersResponse(parsedOutput, context)];
|
|
3420
3647
|
case 43:
|
|
3421
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _y.concat([(
|
|
3422
|
-
return [3,
|
|
3648
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _y.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3649
|
+
return [3, 121];
|
|
3423
3650
|
case 44:
|
|
3424
3651
|
_z = [{}];
|
|
3425
3652
|
return [4, deserializeAws_restXmlInvalidRelativePathResponse(parsedOutput, context)];
|
|
3426
3653
|
case 45:
|
|
3427
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _z.concat([(
|
|
3428
|
-
return [3,
|
|
3654
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _z.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3655
|
+
return [3, 121];
|
|
3429
3656
|
case 46:
|
|
3430
3657
|
_0 = [{}];
|
|
3431
3658
|
return [4, deserializeAws_restXmlInvalidRequiredProtocolResponse(parsedOutput, context)];
|
|
3432
3659
|
case 47:
|
|
3433
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _0.concat([(
|
|
3434
|
-
return [3,
|
|
3660
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _0.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3661
|
+
return [3, 121];
|
|
3435
3662
|
case 48:
|
|
3436
3663
|
_1 = [{}];
|
|
3437
3664
|
return [4, deserializeAws_restXmlInvalidResponseCodeResponse(parsedOutput, context)];
|
|
3438
3665
|
case 49:
|
|
3439
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _1.concat([(
|
|
3440
|
-
return [3,
|
|
3666
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _1.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3667
|
+
return [3, 121];
|
|
3441
3668
|
case 50:
|
|
3442
3669
|
_2 = [{}];
|
|
3443
3670
|
return [4, deserializeAws_restXmlInvalidTTLOrderResponse(parsedOutput, context)];
|
|
3444
3671
|
case 51:
|
|
3445
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _2.concat([(
|
|
3446
|
-
return [3,
|
|
3672
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _2.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3673
|
+
return [3, 121];
|
|
3447
3674
|
case 52:
|
|
3448
3675
|
_3 = [{}];
|
|
3449
3676
|
return [4, deserializeAws_restXmlInvalidViewerCertificateResponse(parsedOutput, context)];
|
|
3450
3677
|
case 53:
|
|
3451
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _3.concat([(
|
|
3452
|
-
return [3,
|
|
3678
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _3.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3679
|
+
return [3, 121];
|
|
3453
3680
|
case 54:
|
|
3454
3681
|
_4 = [{}];
|
|
3455
3682
|
return [4, deserializeAws_restXmlInvalidWebACLIdResponse(parsedOutput, context)];
|
|
3456
3683
|
case 55:
|
|
3457
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _4.concat([(
|
|
3458
|
-
return [3,
|
|
3684
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _4.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3685
|
+
return [3, 121];
|
|
3459
3686
|
case 56:
|
|
3460
3687
|
_5 = [{}];
|
|
3461
3688
|
return [4, deserializeAws_restXmlMissingBodyResponse(parsedOutput, context)];
|
|
3462
3689
|
case 57:
|
|
3463
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _5.concat([(
|
|
3464
|
-
return [3,
|
|
3690
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _5.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3691
|
+
return [3, 121];
|
|
3465
3692
|
case 58:
|
|
3466
3693
|
_6 = [{}];
|
|
3467
3694
|
return [4, deserializeAws_restXmlNoSuchCachePolicyResponse(parsedOutput, context)];
|
|
3468
3695
|
case 59:
|
|
3469
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _6.concat([(
|
|
3470
|
-
return [3,
|
|
3696
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _6.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3697
|
+
return [3, 121];
|
|
3471
3698
|
case 60:
|
|
3472
3699
|
_7 = [{}];
|
|
3473
3700
|
return [4, deserializeAws_restXmlNoSuchFieldLevelEncryptionConfigResponse(parsedOutput, context)];
|
|
3474
3701
|
case 61:
|
|
3475
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _7.concat([(
|
|
3476
|
-
return [3,
|
|
3702
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _7.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3703
|
+
return [3, 121];
|
|
3477
3704
|
case 62:
|
|
3478
3705
|
_8 = [{}];
|
|
3479
3706
|
return [4, deserializeAws_restXmlNoSuchOriginResponse(parsedOutput, context)];
|
|
3480
3707
|
case 63:
|
|
3481
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _8.concat([(
|
|
3482
|
-
return [3,
|
|
3708
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _8.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3709
|
+
return [3, 121];
|
|
3483
3710
|
case 64:
|
|
3484
3711
|
_9 = [{}];
|
|
3485
3712
|
return [4, deserializeAws_restXmlNoSuchOriginRequestPolicyResponse(parsedOutput, context)];
|
|
3486
3713
|
case 65:
|
|
3487
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _9.concat([(
|
|
3488
|
-
return [3,
|
|
3714
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _9.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3715
|
+
return [3, 121];
|
|
3489
3716
|
case 66:
|
|
3490
3717
|
_10 = [{}];
|
|
3491
3718
|
return [4, deserializeAws_restXmlNoSuchRealtimeLogConfigResponse(parsedOutput, context)];
|
|
3492
3719
|
case 67:
|
|
3493
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _10.concat([(
|
|
3494
|
-
return [3,
|
|
3720
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _10.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3721
|
+
return [3, 121];
|
|
3495
3722
|
case 68:
|
|
3496
3723
|
_11 = [{}];
|
|
3497
|
-
return [4,
|
|
3724
|
+
return [4, deserializeAws_restXmlNoSuchResponseHeadersPolicyResponse(parsedOutput, context)];
|
|
3498
3725
|
case 69:
|
|
3499
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _11.concat([(
|
|
3500
|
-
return [3,
|
|
3726
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _11.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3727
|
+
return [3, 121];
|
|
3501
3728
|
case 70:
|
|
3502
3729
|
_12 = [{}];
|
|
3503
|
-
return [4,
|
|
3730
|
+
return [4, deserializeAws_restXmlRealtimeLogConfigOwnerMismatchResponse(parsedOutput, context)];
|
|
3504
3731
|
case 71:
|
|
3505
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _12.concat([(
|
|
3506
|
-
return [3,
|
|
3732
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _12.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3733
|
+
return [3, 121];
|
|
3507
3734
|
case 72:
|
|
3508
3735
|
_13 = [{}];
|
|
3509
|
-
return [4,
|
|
3736
|
+
return [4, deserializeAws_restXmlTooManyCacheBehaviorsResponse(parsedOutput, context)];
|
|
3510
3737
|
case 73:
|
|
3511
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _13.concat([(
|
|
3512
|
-
return [3,
|
|
3738
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _13.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3739
|
+
return [3, 121];
|
|
3513
3740
|
case 74:
|
|
3514
3741
|
_14 = [{}];
|
|
3515
|
-
return [4,
|
|
3742
|
+
return [4, deserializeAws_restXmlTooManyCertificatesResponse(parsedOutput, context)];
|
|
3516
3743
|
case 75:
|
|
3517
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _14.concat([(
|
|
3518
|
-
return [3,
|
|
3744
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _14.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3745
|
+
return [3, 121];
|
|
3519
3746
|
case 76:
|
|
3520
3747
|
_15 = [{}];
|
|
3521
|
-
return [4,
|
|
3748
|
+
return [4, deserializeAws_restXmlTooManyCookieNamesInWhiteListResponse(parsedOutput, context)];
|
|
3522
3749
|
case 77:
|
|
3523
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _15.concat([(
|
|
3524
|
-
return [3,
|
|
3750
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _15.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3751
|
+
return [3, 121];
|
|
3525
3752
|
case 78:
|
|
3526
3753
|
_16 = [{}];
|
|
3527
|
-
return [4,
|
|
3754
|
+
return [4, deserializeAws_restXmlTooManyDistributionCNAMEsResponse(parsedOutput, context)];
|
|
3528
3755
|
case 79:
|
|
3529
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _16.concat([(
|
|
3530
|
-
return [3,
|
|
3756
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _16.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3757
|
+
return [3, 121];
|
|
3531
3758
|
case 80:
|
|
3532
3759
|
_17 = [{}];
|
|
3533
|
-
return [4,
|
|
3760
|
+
return [4, deserializeAws_restXmlTooManyDistributionsResponse(parsedOutput, context)];
|
|
3534
3761
|
case 81:
|
|
3535
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _17.concat([(
|
|
3536
|
-
return [3,
|
|
3762
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _17.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3763
|
+
return [3, 121];
|
|
3537
3764
|
case 82:
|
|
3538
3765
|
_18 = [{}];
|
|
3539
|
-
return [4,
|
|
3766
|
+
return [4, deserializeAws_restXmlTooManyDistributionsAssociatedToCachePolicyResponse(parsedOutput, context)];
|
|
3540
3767
|
case 83:
|
|
3541
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _18.concat([(
|
|
3542
|
-
return [3,
|
|
3768
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _18.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3769
|
+
return [3, 121];
|
|
3543
3770
|
case 84:
|
|
3544
3771
|
_19 = [{}];
|
|
3545
|
-
return [4,
|
|
3772
|
+
return [4, deserializeAws_restXmlTooManyDistributionsAssociatedToFieldLevelEncryptionConfigResponse(parsedOutput, context)];
|
|
3546
3773
|
case 85:
|
|
3547
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _19.concat([(
|
|
3548
|
-
return [3,
|
|
3774
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _19.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3775
|
+
return [3, 121];
|
|
3549
3776
|
case 86:
|
|
3550
3777
|
_20 = [{}];
|
|
3551
|
-
return [4,
|
|
3778
|
+
return [4, deserializeAws_restXmlTooManyDistributionsAssociatedToKeyGroupResponse(parsedOutput, context)];
|
|
3552
3779
|
case 87:
|
|
3553
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _20.concat([(
|
|
3554
|
-
return [3,
|
|
3780
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _20.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3781
|
+
return [3, 121];
|
|
3555
3782
|
case 88:
|
|
3556
3783
|
_21 = [{}];
|
|
3557
|
-
return [4,
|
|
3784
|
+
return [4, deserializeAws_restXmlTooManyDistributionsAssociatedToOriginRequestPolicyResponse(parsedOutput, context)];
|
|
3558
3785
|
case 89:
|
|
3559
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _21.concat([(
|
|
3560
|
-
return [3,
|
|
3786
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _21.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3787
|
+
return [3, 121];
|
|
3561
3788
|
case 90:
|
|
3562
3789
|
_22 = [{}];
|
|
3563
|
-
return [4,
|
|
3790
|
+
return [4, deserializeAws_restXmlTooManyDistributionsAssociatedToResponseHeadersPolicyResponse(parsedOutput, context)];
|
|
3564
3791
|
case 91:
|
|
3565
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _22.concat([(
|
|
3566
|
-
return [3,
|
|
3792
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _22.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3793
|
+
return [3, 121];
|
|
3567
3794
|
case 92:
|
|
3568
3795
|
_23 = [{}];
|
|
3569
|
-
return [4,
|
|
3796
|
+
return [4, deserializeAws_restXmlTooManyDistributionsWithFunctionAssociationsResponse(parsedOutput, context)];
|
|
3570
3797
|
case 93:
|
|
3571
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _23.concat([(
|
|
3572
|
-
return [3,
|
|
3798
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _23.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3799
|
+
return [3, 121];
|
|
3573
3800
|
case 94:
|
|
3574
3801
|
_24 = [{}];
|
|
3575
|
-
return [4,
|
|
3802
|
+
return [4, deserializeAws_restXmlTooManyDistributionsWithLambdaAssociationsResponse(parsedOutput, context)];
|
|
3576
3803
|
case 95:
|
|
3577
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _24.concat([(
|
|
3578
|
-
return [3,
|
|
3804
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _24.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3805
|
+
return [3, 121];
|
|
3579
3806
|
case 96:
|
|
3580
3807
|
_25 = [{}];
|
|
3581
|
-
return [4,
|
|
3808
|
+
return [4, deserializeAws_restXmlTooManyDistributionsWithSingleFunctionARNResponse(parsedOutput, context)];
|
|
3582
3809
|
case 97:
|
|
3583
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _25.concat([(
|
|
3584
|
-
return [3,
|
|
3810
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _25.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3811
|
+
return [3, 121];
|
|
3585
3812
|
case 98:
|
|
3586
3813
|
_26 = [{}];
|
|
3587
|
-
return [4,
|
|
3814
|
+
return [4, deserializeAws_restXmlTooManyFunctionAssociationsResponse(parsedOutput, context)];
|
|
3588
3815
|
case 99:
|
|
3589
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _26.concat([(
|
|
3590
|
-
return [3,
|
|
3816
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _26.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3817
|
+
return [3, 121];
|
|
3591
3818
|
case 100:
|
|
3592
3819
|
_27 = [{}];
|
|
3593
|
-
return [4,
|
|
3820
|
+
return [4, deserializeAws_restXmlTooManyHeadersInForwardedValuesResponse(parsedOutput, context)];
|
|
3594
3821
|
case 101:
|
|
3595
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _27.concat([(
|
|
3596
|
-
return [3,
|
|
3822
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _27.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3823
|
+
return [3, 121];
|
|
3597
3824
|
case 102:
|
|
3598
3825
|
_28 = [{}];
|
|
3599
|
-
return [4,
|
|
3826
|
+
return [4, deserializeAws_restXmlTooManyKeyGroupsAssociatedToDistributionResponse(parsedOutput, context)];
|
|
3600
3827
|
case 103:
|
|
3601
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _28.concat([(
|
|
3602
|
-
return [3,
|
|
3828
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _28.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3829
|
+
return [3, 121];
|
|
3603
3830
|
case 104:
|
|
3604
3831
|
_29 = [{}];
|
|
3605
|
-
return [4,
|
|
3832
|
+
return [4, deserializeAws_restXmlTooManyLambdaFunctionAssociationsResponse(parsedOutput, context)];
|
|
3606
3833
|
case 105:
|
|
3607
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _29.concat([(
|
|
3608
|
-
return [3,
|
|
3834
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _29.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3835
|
+
return [3, 121];
|
|
3609
3836
|
case 106:
|
|
3610
3837
|
_30 = [{}];
|
|
3611
|
-
return [4,
|
|
3838
|
+
return [4, deserializeAws_restXmlTooManyOriginCustomHeadersResponse(parsedOutput, context)];
|
|
3612
3839
|
case 107:
|
|
3613
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _30.concat([(
|
|
3614
|
-
return [3,
|
|
3840
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _30.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3841
|
+
return [3, 121];
|
|
3615
3842
|
case 108:
|
|
3616
3843
|
_31 = [{}];
|
|
3617
|
-
return [4,
|
|
3844
|
+
return [4, deserializeAws_restXmlTooManyOriginGroupsPerDistributionResponse(parsedOutput, context)];
|
|
3618
3845
|
case 109:
|
|
3619
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _31.concat([(
|
|
3620
|
-
return [3,
|
|
3846
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _31.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3847
|
+
return [3, 121];
|
|
3621
3848
|
case 110:
|
|
3622
3849
|
_32 = [{}];
|
|
3623
|
-
return [4,
|
|
3850
|
+
return [4, deserializeAws_restXmlTooManyOriginsResponse(parsedOutput, context)];
|
|
3624
3851
|
case 111:
|
|
3625
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _32.concat([(
|
|
3626
|
-
return [3,
|
|
3852
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _32.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3853
|
+
return [3, 121];
|
|
3627
3854
|
case 112:
|
|
3628
3855
|
_33 = [{}];
|
|
3629
|
-
return [4,
|
|
3856
|
+
return [4, deserializeAws_restXmlTooManyQueryStringParametersResponse(parsedOutput, context)];
|
|
3630
3857
|
case 113:
|
|
3631
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _33.concat([(
|
|
3632
|
-
return [3,
|
|
3858
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _33.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3859
|
+
return [3, 121];
|
|
3633
3860
|
case 114:
|
|
3634
3861
|
_34 = [{}];
|
|
3635
|
-
return [4,
|
|
3862
|
+
return [4, deserializeAws_restXmlTooManyTrustedSignersResponse(parsedOutput, context)];
|
|
3636
3863
|
case 115:
|
|
3637
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _34.concat([(
|
|
3638
|
-
return [3,
|
|
3864
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _34.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3865
|
+
return [3, 121];
|
|
3639
3866
|
case 116:
|
|
3867
|
+
_35 = [{}];
|
|
3868
|
+
return [4, deserializeAws_restXmlTrustedKeyGroupDoesNotExistResponse(parsedOutput, context)];
|
|
3869
|
+
case 117:
|
|
3870
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _35.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3871
|
+
return [3, 121];
|
|
3872
|
+
case 118:
|
|
3873
|
+
_36 = [{}];
|
|
3874
|
+
return [4, deserializeAws_restXmlTrustedSignerDoesNotExistResponse(parsedOutput, context)];
|
|
3875
|
+
case 119:
|
|
3876
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _36.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3877
|
+
return [3, 121];
|
|
3878
|
+
case 120:
|
|
3640
3879
|
parsedBody = parsedOutput.body;
|
|
3641
3880
|
errorCode = parsedBody.Error.code || parsedBody.Error.Code || errorCode;
|
|
3642
3881
|
response = __assign(__assign({}, parsedBody.Error), { name: "" + errorCode, message: parsedBody.Error.message || parsedBody.Error.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
3643
|
-
|
|
3644
|
-
case
|
|
3882
|
+
_38.label = 121;
|
|
3883
|
+
case 121:
|
|
3645
3884
|
message = response.message || response.Message || errorCode;
|
|
3646
3885
|
response.message = message;
|
|
3647
3886
|
delete response.Message;
|
|
@@ -3679,16 +3918,16 @@ export var deserializeAws_restXmlCreateDistributionWithTagsCommand = function (o
|
|
|
3679
3918
|
});
|
|
3680
3919
|
}); };
|
|
3681
3920
|
var deserializeAws_restXmlCreateDistributionWithTagsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3682
|
-
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32, _33, _34, _35, parsedBody, message;
|
|
3683
|
-
var
|
|
3684
|
-
return __generator(this, function (
|
|
3685
|
-
switch (
|
|
3921
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32, _33, _34, _35, _36, _37, parsedBody, message;
|
|
3922
|
+
var _38;
|
|
3923
|
+
return __generator(this, function (_39) {
|
|
3924
|
+
switch (_39.label) {
|
|
3686
3925
|
case 0:
|
|
3687
3926
|
_a = [__assign({}, output)];
|
|
3688
|
-
|
|
3927
|
+
_38 = {};
|
|
3689
3928
|
return [4, parseBody(output.body, context)];
|
|
3690
3929
|
case 1:
|
|
3691
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
3930
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_38.body = _39.sent(), _38)]));
|
|
3692
3931
|
errorCode = "UnknownError";
|
|
3693
3932
|
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3694
3933
|
_b = errorCode;
|
|
@@ -3761,410 +4000,426 @@ var deserializeAws_restXmlCreateDistributionWithTagsCommandError = function (out
|
|
|
3761
4000
|
case "com.amazonaws.cloudfront#NoSuchOriginRequestPolicy": return [3, 66];
|
|
3762
4001
|
case "NoSuchRealtimeLogConfig": return [3, 68];
|
|
3763
4002
|
case "com.amazonaws.cloudfront#NoSuchRealtimeLogConfig": return [3, 68];
|
|
3764
|
-
case "
|
|
3765
|
-
case "com.amazonaws.cloudfront#
|
|
3766
|
-
case "
|
|
3767
|
-
case "com.amazonaws.cloudfront#
|
|
3768
|
-
case "
|
|
3769
|
-
case "com.amazonaws.cloudfront#
|
|
3770
|
-
case "
|
|
3771
|
-
case "com.amazonaws.cloudfront#
|
|
3772
|
-
case "
|
|
3773
|
-
case "com.amazonaws.cloudfront#
|
|
3774
|
-
case "
|
|
3775
|
-
case "com.amazonaws.cloudfront#
|
|
3776
|
-
case "
|
|
3777
|
-
case "com.amazonaws.cloudfront#
|
|
3778
|
-
case "
|
|
3779
|
-
case "com.amazonaws.cloudfront#
|
|
3780
|
-
case "
|
|
3781
|
-
case "com.amazonaws.cloudfront#
|
|
3782
|
-
case "
|
|
3783
|
-
case "com.amazonaws.cloudfront#
|
|
3784
|
-
case "
|
|
3785
|
-
case "com.amazonaws.cloudfront#
|
|
3786
|
-
case "
|
|
3787
|
-
case "com.amazonaws.cloudfront#
|
|
3788
|
-
case "
|
|
3789
|
-
case "com.amazonaws.cloudfront#
|
|
3790
|
-
case "
|
|
3791
|
-
case "com.amazonaws.cloudfront#
|
|
3792
|
-
case "
|
|
3793
|
-
case "com.amazonaws.cloudfront#
|
|
3794
|
-
case "
|
|
3795
|
-
case "com.amazonaws.cloudfront#
|
|
3796
|
-
case "
|
|
3797
|
-
case "com.amazonaws.cloudfront#
|
|
3798
|
-
case "
|
|
3799
|
-
case "com.amazonaws.cloudfront#
|
|
3800
|
-
case "
|
|
3801
|
-
case "com.amazonaws.cloudfront#
|
|
3802
|
-
case "
|
|
3803
|
-
case "com.amazonaws.cloudfront#
|
|
3804
|
-
case "
|
|
3805
|
-
case "com.amazonaws.cloudfront#
|
|
3806
|
-
case "
|
|
3807
|
-
case "com.amazonaws.cloudfront#
|
|
3808
|
-
case "
|
|
3809
|
-
case "com.amazonaws.cloudfront#
|
|
3810
|
-
case "
|
|
3811
|
-
case "com.amazonaws.cloudfront#
|
|
3812
|
-
|
|
3813
|
-
|
|
4003
|
+
case "NoSuchResponseHeadersPolicy": return [3, 70];
|
|
4004
|
+
case "com.amazonaws.cloudfront#NoSuchResponseHeadersPolicy": return [3, 70];
|
|
4005
|
+
case "RealtimeLogConfigOwnerMismatch": return [3, 72];
|
|
4006
|
+
case "com.amazonaws.cloudfront#RealtimeLogConfigOwnerMismatch": return [3, 72];
|
|
4007
|
+
case "TooManyCacheBehaviors": return [3, 74];
|
|
4008
|
+
case "com.amazonaws.cloudfront#TooManyCacheBehaviors": return [3, 74];
|
|
4009
|
+
case "TooManyCertificates": return [3, 76];
|
|
4010
|
+
case "com.amazonaws.cloudfront#TooManyCertificates": return [3, 76];
|
|
4011
|
+
case "TooManyCookieNamesInWhiteList": return [3, 78];
|
|
4012
|
+
case "com.amazonaws.cloudfront#TooManyCookieNamesInWhiteList": return [3, 78];
|
|
4013
|
+
case "TooManyDistributionCNAMEs": return [3, 80];
|
|
4014
|
+
case "com.amazonaws.cloudfront#TooManyDistributionCNAMEs": return [3, 80];
|
|
4015
|
+
case "TooManyDistributions": return [3, 82];
|
|
4016
|
+
case "com.amazonaws.cloudfront#TooManyDistributions": return [3, 82];
|
|
4017
|
+
case "TooManyDistributionsAssociatedToCachePolicy": return [3, 84];
|
|
4018
|
+
case "com.amazonaws.cloudfront#TooManyDistributionsAssociatedToCachePolicy": return [3, 84];
|
|
4019
|
+
case "TooManyDistributionsAssociatedToFieldLevelEncryptionConfig": return [3, 86];
|
|
4020
|
+
case "com.amazonaws.cloudfront#TooManyDistributionsAssociatedToFieldLevelEncryptionConfig": return [3, 86];
|
|
4021
|
+
case "TooManyDistributionsAssociatedToKeyGroup": return [3, 88];
|
|
4022
|
+
case "com.amazonaws.cloudfront#TooManyDistributionsAssociatedToKeyGroup": return [3, 88];
|
|
4023
|
+
case "TooManyDistributionsAssociatedToOriginRequestPolicy": return [3, 90];
|
|
4024
|
+
case "com.amazonaws.cloudfront#TooManyDistributionsAssociatedToOriginRequestPolicy": return [3, 90];
|
|
4025
|
+
case "TooManyDistributionsAssociatedToResponseHeadersPolicy": return [3, 92];
|
|
4026
|
+
case "com.amazonaws.cloudfront#TooManyDistributionsAssociatedToResponseHeadersPolicy": return [3, 92];
|
|
4027
|
+
case "TooManyDistributionsWithFunctionAssociations": return [3, 94];
|
|
4028
|
+
case "com.amazonaws.cloudfront#TooManyDistributionsWithFunctionAssociations": return [3, 94];
|
|
4029
|
+
case "TooManyDistributionsWithLambdaAssociations": return [3, 96];
|
|
4030
|
+
case "com.amazonaws.cloudfront#TooManyDistributionsWithLambdaAssociations": return [3, 96];
|
|
4031
|
+
case "TooManyDistributionsWithSingleFunctionARN": return [3, 98];
|
|
4032
|
+
case "com.amazonaws.cloudfront#TooManyDistributionsWithSingleFunctionARN": return [3, 98];
|
|
4033
|
+
case "TooManyFunctionAssociations": return [3, 100];
|
|
4034
|
+
case "com.amazonaws.cloudfront#TooManyFunctionAssociations": return [3, 100];
|
|
4035
|
+
case "TooManyHeadersInForwardedValues": return [3, 102];
|
|
4036
|
+
case "com.amazonaws.cloudfront#TooManyHeadersInForwardedValues": return [3, 102];
|
|
4037
|
+
case "TooManyKeyGroupsAssociatedToDistribution": return [3, 104];
|
|
4038
|
+
case "com.amazonaws.cloudfront#TooManyKeyGroupsAssociatedToDistribution": return [3, 104];
|
|
4039
|
+
case "TooManyLambdaFunctionAssociations": return [3, 106];
|
|
4040
|
+
case "com.amazonaws.cloudfront#TooManyLambdaFunctionAssociations": return [3, 106];
|
|
4041
|
+
case "TooManyOriginCustomHeaders": return [3, 108];
|
|
4042
|
+
case "com.amazonaws.cloudfront#TooManyOriginCustomHeaders": return [3, 108];
|
|
4043
|
+
case "TooManyOriginGroupsPerDistribution": return [3, 110];
|
|
4044
|
+
case "com.amazonaws.cloudfront#TooManyOriginGroupsPerDistribution": return [3, 110];
|
|
4045
|
+
case "TooManyOrigins": return [3, 112];
|
|
4046
|
+
case "com.amazonaws.cloudfront#TooManyOrigins": return [3, 112];
|
|
4047
|
+
case "TooManyQueryStringParameters": return [3, 114];
|
|
4048
|
+
case "com.amazonaws.cloudfront#TooManyQueryStringParameters": return [3, 114];
|
|
4049
|
+
case "TooManyTrustedSigners": return [3, 116];
|
|
4050
|
+
case "com.amazonaws.cloudfront#TooManyTrustedSigners": return [3, 116];
|
|
4051
|
+
case "TrustedKeyGroupDoesNotExist": return [3, 118];
|
|
4052
|
+
case "com.amazonaws.cloudfront#TrustedKeyGroupDoesNotExist": return [3, 118];
|
|
4053
|
+
case "TrustedSignerDoesNotExist": return [3, 120];
|
|
4054
|
+
case "com.amazonaws.cloudfront#TrustedSignerDoesNotExist": return [3, 120];
|
|
4055
|
+
}
|
|
4056
|
+
return [3, 122];
|
|
3814
4057
|
case 2:
|
|
3815
4058
|
_c = [{}];
|
|
3816
4059
|
return [4, deserializeAws_restXmlAccessDeniedResponse(parsedOutput, context)];
|
|
3817
4060
|
case 3:
|
|
3818
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(
|
|
3819
|
-
return [3,
|
|
4061
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_39.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4062
|
+
return [3, 123];
|
|
3820
4063
|
case 4:
|
|
3821
4064
|
_d = [{}];
|
|
3822
4065
|
return [4, deserializeAws_restXmlCNAMEAlreadyExistsResponse(parsedOutput, context)];
|
|
3823
4066
|
case 5:
|
|
3824
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(
|
|
3825
|
-
return [3,
|
|
4067
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_39.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4068
|
+
return [3, 123];
|
|
3826
4069
|
case 6:
|
|
3827
4070
|
_e = [{}];
|
|
3828
4071
|
return [4, deserializeAws_restXmlDistributionAlreadyExistsResponse(parsedOutput, context)];
|
|
3829
4072
|
case 7:
|
|
3830
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(
|
|
3831
|
-
return [3,
|
|
4073
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_39.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4074
|
+
return [3, 123];
|
|
3832
4075
|
case 8:
|
|
3833
4076
|
_f = [{}];
|
|
3834
4077
|
return [4, deserializeAws_restXmlIllegalFieldLevelEncryptionConfigAssociationWithCacheBehaviorResponse(parsedOutput, context)];
|
|
3835
4078
|
case 9:
|
|
3836
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(
|
|
3837
|
-
return [3,
|
|
4079
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_39.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4080
|
+
return [3, 123];
|
|
3838
4081
|
case 10:
|
|
3839
4082
|
_g = [{}];
|
|
3840
4083
|
return [4, deserializeAws_restXmlInconsistentQuantitiesResponse(parsedOutput, context)];
|
|
3841
4084
|
case 11:
|
|
3842
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(
|
|
3843
|
-
return [3,
|
|
4085
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_39.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4086
|
+
return [3, 123];
|
|
3844
4087
|
case 12:
|
|
3845
4088
|
_h = [{}];
|
|
3846
4089
|
return [4, deserializeAws_restXmlInvalidArgumentResponse(parsedOutput, context)];
|
|
3847
4090
|
case 13:
|
|
3848
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(
|
|
3849
|
-
return [3,
|
|
4091
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_39.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4092
|
+
return [3, 123];
|
|
3850
4093
|
case 14:
|
|
3851
4094
|
_j = [{}];
|
|
3852
4095
|
return [4, deserializeAws_restXmlInvalidDefaultRootObjectResponse(parsedOutput, context)];
|
|
3853
4096
|
case 15:
|
|
3854
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(
|
|
3855
|
-
return [3,
|
|
4097
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_39.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4098
|
+
return [3, 123];
|
|
3856
4099
|
case 16:
|
|
3857
4100
|
_k = [{}];
|
|
3858
4101
|
return [4, deserializeAws_restXmlInvalidErrorCodeResponse(parsedOutput, context)];
|
|
3859
4102
|
case 17:
|
|
3860
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _k.concat([(
|
|
3861
|
-
return [3,
|
|
4103
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _k.concat([(_39.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4104
|
+
return [3, 123];
|
|
3862
4105
|
case 18:
|
|
3863
4106
|
_l = [{}];
|
|
3864
4107
|
return [4, deserializeAws_restXmlInvalidForwardCookiesResponse(parsedOutput, context)];
|
|
3865
4108
|
case 19:
|
|
3866
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _l.concat([(
|
|
3867
|
-
return [3,
|
|
4109
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _l.concat([(_39.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4110
|
+
return [3, 123];
|
|
3868
4111
|
case 20:
|
|
3869
4112
|
_m = [{}];
|
|
3870
4113
|
return [4, deserializeAws_restXmlInvalidFunctionAssociationResponse(parsedOutput, context)];
|
|
3871
4114
|
case 21:
|
|
3872
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _m.concat([(
|
|
3873
|
-
return [3,
|
|
4115
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _m.concat([(_39.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4116
|
+
return [3, 123];
|
|
3874
4117
|
case 22:
|
|
3875
4118
|
_o = [{}];
|
|
3876
4119
|
return [4, deserializeAws_restXmlInvalidGeoRestrictionParameterResponse(parsedOutput, context)];
|
|
3877
4120
|
case 23:
|
|
3878
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _o.concat([(
|
|
3879
|
-
return [3,
|
|
4121
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _o.concat([(_39.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4122
|
+
return [3, 123];
|
|
3880
4123
|
case 24:
|
|
3881
4124
|
_p = [{}];
|
|
3882
4125
|
return [4, deserializeAws_restXmlInvalidHeadersForS3OriginResponse(parsedOutput, context)];
|
|
3883
4126
|
case 25:
|
|
3884
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _p.concat([(
|
|
3885
|
-
return [3,
|
|
4127
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _p.concat([(_39.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4128
|
+
return [3, 123];
|
|
3886
4129
|
case 26:
|
|
3887
4130
|
_q = [{}];
|
|
3888
4131
|
return [4, deserializeAws_restXmlInvalidLambdaFunctionAssociationResponse(parsedOutput, context)];
|
|
3889
4132
|
case 27:
|
|
3890
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _q.concat([(
|
|
3891
|
-
return [3,
|
|
4133
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _q.concat([(_39.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4134
|
+
return [3, 123];
|
|
3892
4135
|
case 28:
|
|
3893
4136
|
_r = [{}];
|
|
3894
4137
|
return [4, deserializeAws_restXmlInvalidLocationCodeResponse(parsedOutput, context)];
|
|
3895
4138
|
case 29:
|
|
3896
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _r.concat([(
|
|
3897
|
-
return [3,
|
|
4139
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _r.concat([(_39.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4140
|
+
return [3, 123];
|
|
3898
4141
|
case 30:
|
|
3899
4142
|
_s = [{}];
|
|
3900
4143
|
return [4, deserializeAws_restXmlInvalidMinimumProtocolVersionResponse(parsedOutput, context)];
|
|
3901
4144
|
case 31:
|
|
3902
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _s.concat([(
|
|
3903
|
-
return [3,
|
|
4145
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _s.concat([(_39.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4146
|
+
return [3, 123];
|
|
3904
4147
|
case 32:
|
|
3905
4148
|
_t = [{}];
|
|
3906
4149
|
return [4, deserializeAws_restXmlInvalidOriginResponse(parsedOutput, context)];
|
|
3907
4150
|
case 33:
|
|
3908
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _t.concat([(
|
|
3909
|
-
return [3,
|
|
4151
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _t.concat([(_39.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4152
|
+
return [3, 123];
|
|
3910
4153
|
case 34:
|
|
3911
4154
|
_u = [{}];
|
|
3912
4155
|
return [4, deserializeAws_restXmlInvalidOriginAccessIdentityResponse(parsedOutput, context)];
|
|
3913
4156
|
case 35:
|
|
3914
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _u.concat([(
|
|
3915
|
-
return [3,
|
|
4157
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _u.concat([(_39.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4158
|
+
return [3, 123];
|
|
3916
4159
|
case 36:
|
|
3917
4160
|
_v = [{}];
|
|
3918
4161
|
return [4, deserializeAws_restXmlInvalidOriginKeepaliveTimeoutResponse(parsedOutput, context)];
|
|
3919
4162
|
case 37:
|
|
3920
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _v.concat([(
|
|
3921
|
-
return [3,
|
|
4163
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _v.concat([(_39.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4164
|
+
return [3, 123];
|
|
3922
4165
|
case 38:
|
|
3923
4166
|
_w = [{}];
|
|
3924
4167
|
return [4, deserializeAws_restXmlInvalidOriginReadTimeoutResponse(parsedOutput, context)];
|
|
3925
4168
|
case 39:
|
|
3926
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _w.concat([(
|
|
3927
|
-
return [3,
|
|
4169
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _w.concat([(_39.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4170
|
+
return [3, 123];
|
|
3928
4171
|
case 40:
|
|
3929
4172
|
_x = [{}];
|
|
3930
4173
|
return [4, deserializeAws_restXmlInvalidProtocolSettingsResponse(parsedOutput, context)];
|
|
3931
4174
|
case 41:
|
|
3932
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _x.concat([(
|
|
3933
|
-
return [3,
|
|
4175
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _x.concat([(_39.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4176
|
+
return [3, 123];
|
|
3934
4177
|
case 42:
|
|
3935
4178
|
_y = [{}];
|
|
3936
4179
|
return [4, deserializeAws_restXmlInvalidQueryStringParametersResponse(parsedOutput, context)];
|
|
3937
4180
|
case 43:
|
|
3938
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _y.concat([(
|
|
3939
|
-
return [3,
|
|
4181
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _y.concat([(_39.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4182
|
+
return [3, 123];
|
|
3940
4183
|
case 44:
|
|
3941
4184
|
_z = [{}];
|
|
3942
4185
|
return [4, deserializeAws_restXmlInvalidRelativePathResponse(parsedOutput, context)];
|
|
3943
4186
|
case 45:
|
|
3944
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _z.concat([(
|
|
3945
|
-
return [3,
|
|
4187
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _z.concat([(_39.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4188
|
+
return [3, 123];
|
|
3946
4189
|
case 46:
|
|
3947
4190
|
_0 = [{}];
|
|
3948
4191
|
return [4, deserializeAws_restXmlInvalidRequiredProtocolResponse(parsedOutput, context)];
|
|
3949
4192
|
case 47:
|
|
3950
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _0.concat([(
|
|
3951
|
-
return [3,
|
|
4193
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _0.concat([(_39.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4194
|
+
return [3, 123];
|
|
3952
4195
|
case 48:
|
|
3953
4196
|
_1 = [{}];
|
|
3954
4197
|
return [4, deserializeAws_restXmlInvalidResponseCodeResponse(parsedOutput, context)];
|
|
3955
4198
|
case 49:
|
|
3956
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _1.concat([(
|
|
3957
|
-
return [3,
|
|
4199
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _1.concat([(_39.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4200
|
+
return [3, 123];
|
|
3958
4201
|
case 50:
|
|
3959
4202
|
_2 = [{}];
|
|
3960
4203
|
return [4, deserializeAws_restXmlInvalidTaggingResponse(parsedOutput, context)];
|
|
3961
4204
|
case 51:
|
|
3962
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _2.concat([(
|
|
3963
|
-
return [3,
|
|
4205
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _2.concat([(_39.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4206
|
+
return [3, 123];
|
|
3964
4207
|
case 52:
|
|
3965
4208
|
_3 = [{}];
|
|
3966
4209
|
return [4, deserializeAws_restXmlInvalidTTLOrderResponse(parsedOutput, context)];
|
|
3967
4210
|
case 53:
|
|
3968
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _3.concat([(
|
|
3969
|
-
return [3,
|
|
4211
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _3.concat([(_39.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4212
|
+
return [3, 123];
|
|
3970
4213
|
case 54:
|
|
3971
4214
|
_4 = [{}];
|
|
3972
4215
|
return [4, deserializeAws_restXmlInvalidViewerCertificateResponse(parsedOutput, context)];
|
|
3973
4216
|
case 55:
|
|
3974
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _4.concat([(
|
|
3975
|
-
return [3,
|
|
4217
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _4.concat([(_39.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4218
|
+
return [3, 123];
|
|
3976
4219
|
case 56:
|
|
3977
4220
|
_5 = [{}];
|
|
3978
4221
|
return [4, deserializeAws_restXmlInvalidWebACLIdResponse(parsedOutput, context)];
|
|
3979
4222
|
case 57:
|
|
3980
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _5.concat([(
|
|
3981
|
-
return [3,
|
|
4223
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _5.concat([(_39.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4224
|
+
return [3, 123];
|
|
3982
4225
|
case 58:
|
|
3983
4226
|
_6 = [{}];
|
|
3984
4227
|
return [4, deserializeAws_restXmlMissingBodyResponse(parsedOutput, context)];
|
|
3985
4228
|
case 59:
|
|
3986
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _6.concat([(
|
|
3987
|
-
return [3,
|
|
4229
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _6.concat([(_39.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4230
|
+
return [3, 123];
|
|
3988
4231
|
case 60:
|
|
3989
4232
|
_7 = [{}];
|
|
3990
4233
|
return [4, deserializeAws_restXmlNoSuchCachePolicyResponse(parsedOutput, context)];
|
|
3991
4234
|
case 61:
|
|
3992
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _7.concat([(
|
|
3993
|
-
return [3,
|
|
4235
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _7.concat([(_39.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4236
|
+
return [3, 123];
|
|
3994
4237
|
case 62:
|
|
3995
4238
|
_8 = [{}];
|
|
3996
4239
|
return [4, deserializeAws_restXmlNoSuchFieldLevelEncryptionConfigResponse(parsedOutput, context)];
|
|
3997
4240
|
case 63:
|
|
3998
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _8.concat([(
|
|
3999
|
-
return [3,
|
|
4241
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _8.concat([(_39.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4242
|
+
return [3, 123];
|
|
4000
4243
|
case 64:
|
|
4001
4244
|
_9 = [{}];
|
|
4002
4245
|
return [4, deserializeAws_restXmlNoSuchOriginResponse(parsedOutput, context)];
|
|
4003
4246
|
case 65:
|
|
4004
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _9.concat([(
|
|
4005
|
-
return [3,
|
|
4247
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _9.concat([(_39.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4248
|
+
return [3, 123];
|
|
4006
4249
|
case 66:
|
|
4007
4250
|
_10 = [{}];
|
|
4008
4251
|
return [4, deserializeAws_restXmlNoSuchOriginRequestPolicyResponse(parsedOutput, context)];
|
|
4009
4252
|
case 67:
|
|
4010
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _10.concat([(
|
|
4011
|
-
return [3,
|
|
4253
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _10.concat([(_39.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4254
|
+
return [3, 123];
|
|
4012
4255
|
case 68:
|
|
4013
4256
|
_11 = [{}];
|
|
4014
4257
|
return [4, deserializeAws_restXmlNoSuchRealtimeLogConfigResponse(parsedOutput, context)];
|
|
4015
4258
|
case 69:
|
|
4016
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _11.concat([(
|
|
4017
|
-
return [3,
|
|
4259
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _11.concat([(_39.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4260
|
+
return [3, 123];
|
|
4018
4261
|
case 70:
|
|
4019
4262
|
_12 = [{}];
|
|
4020
|
-
return [4,
|
|
4263
|
+
return [4, deserializeAws_restXmlNoSuchResponseHeadersPolicyResponse(parsedOutput, context)];
|
|
4021
4264
|
case 71:
|
|
4022
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _12.concat([(
|
|
4023
|
-
return [3,
|
|
4265
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _12.concat([(_39.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4266
|
+
return [3, 123];
|
|
4024
4267
|
case 72:
|
|
4025
4268
|
_13 = [{}];
|
|
4026
|
-
return [4,
|
|
4269
|
+
return [4, deserializeAws_restXmlRealtimeLogConfigOwnerMismatchResponse(parsedOutput, context)];
|
|
4027
4270
|
case 73:
|
|
4028
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _13.concat([(
|
|
4029
|
-
return [3,
|
|
4271
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _13.concat([(_39.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4272
|
+
return [3, 123];
|
|
4030
4273
|
case 74:
|
|
4031
4274
|
_14 = [{}];
|
|
4032
|
-
return [4,
|
|
4275
|
+
return [4, deserializeAws_restXmlTooManyCacheBehaviorsResponse(parsedOutput, context)];
|
|
4033
4276
|
case 75:
|
|
4034
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _14.concat([(
|
|
4035
|
-
return [3,
|
|
4277
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _14.concat([(_39.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4278
|
+
return [3, 123];
|
|
4036
4279
|
case 76:
|
|
4037
4280
|
_15 = [{}];
|
|
4038
|
-
return [4,
|
|
4281
|
+
return [4, deserializeAws_restXmlTooManyCertificatesResponse(parsedOutput, context)];
|
|
4039
4282
|
case 77:
|
|
4040
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _15.concat([(
|
|
4041
|
-
return [3,
|
|
4283
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _15.concat([(_39.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4284
|
+
return [3, 123];
|
|
4042
4285
|
case 78:
|
|
4043
4286
|
_16 = [{}];
|
|
4044
|
-
return [4,
|
|
4287
|
+
return [4, deserializeAws_restXmlTooManyCookieNamesInWhiteListResponse(parsedOutput, context)];
|
|
4045
4288
|
case 79:
|
|
4046
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _16.concat([(
|
|
4047
|
-
return [3,
|
|
4289
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _16.concat([(_39.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4290
|
+
return [3, 123];
|
|
4048
4291
|
case 80:
|
|
4049
4292
|
_17 = [{}];
|
|
4050
|
-
return [4,
|
|
4293
|
+
return [4, deserializeAws_restXmlTooManyDistributionCNAMEsResponse(parsedOutput, context)];
|
|
4051
4294
|
case 81:
|
|
4052
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _17.concat([(
|
|
4053
|
-
return [3,
|
|
4295
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _17.concat([(_39.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4296
|
+
return [3, 123];
|
|
4054
4297
|
case 82:
|
|
4055
4298
|
_18 = [{}];
|
|
4056
|
-
return [4,
|
|
4299
|
+
return [4, deserializeAws_restXmlTooManyDistributionsResponse(parsedOutput, context)];
|
|
4057
4300
|
case 83:
|
|
4058
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _18.concat([(
|
|
4059
|
-
return [3,
|
|
4301
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _18.concat([(_39.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4302
|
+
return [3, 123];
|
|
4060
4303
|
case 84:
|
|
4061
4304
|
_19 = [{}];
|
|
4062
|
-
return [4,
|
|
4305
|
+
return [4, deserializeAws_restXmlTooManyDistributionsAssociatedToCachePolicyResponse(parsedOutput, context)];
|
|
4063
4306
|
case 85:
|
|
4064
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _19.concat([(
|
|
4065
|
-
return [3,
|
|
4307
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _19.concat([(_39.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4308
|
+
return [3, 123];
|
|
4066
4309
|
case 86:
|
|
4067
4310
|
_20 = [{}];
|
|
4068
|
-
return [4,
|
|
4311
|
+
return [4, deserializeAws_restXmlTooManyDistributionsAssociatedToFieldLevelEncryptionConfigResponse(parsedOutput, context)];
|
|
4069
4312
|
case 87:
|
|
4070
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _20.concat([(
|
|
4071
|
-
return [3,
|
|
4313
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _20.concat([(_39.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4314
|
+
return [3, 123];
|
|
4072
4315
|
case 88:
|
|
4073
4316
|
_21 = [{}];
|
|
4074
|
-
return [4,
|
|
4317
|
+
return [4, deserializeAws_restXmlTooManyDistributionsAssociatedToKeyGroupResponse(parsedOutput, context)];
|
|
4075
4318
|
case 89:
|
|
4076
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _21.concat([(
|
|
4077
|
-
return [3,
|
|
4319
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _21.concat([(_39.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4320
|
+
return [3, 123];
|
|
4078
4321
|
case 90:
|
|
4079
4322
|
_22 = [{}];
|
|
4080
|
-
return [4,
|
|
4323
|
+
return [4, deserializeAws_restXmlTooManyDistributionsAssociatedToOriginRequestPolicyResponse(parsedOutput, context)];
|
|
4081
4324
|
case 91:
|
|
4082
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _22.concat([(
|
|
4083
|
-
return [3,
|
|
4325
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _22.concat([(_39.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4326
|
+
return [3, 123];
|
|
4084
4327
|
case 92:
|
|
4085
4328
|
_23 = [{}];
|
|
4086
|
-
return [4,
|
|
4329
|
+
return [4, deserializeAws_restXmlTooManyDistributionsAssociatedToResponseHeadersPolicyResponse(parsedOutput, context)];
|
|
4087
4330
|
case 93:
|
|
4088
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _23.concat([(
|
|
4089
|
-
return [3,
|
|
4331
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _23.concat([(_39.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4332
|
+
return [3, 123];
|
|
4090
4333
|
case 94:
|
|
4091
4334
|
_24 = [{}];
|
|
4092
|
-
return [4,
|
|
4335
|
+
return [4, deserializeAws_restXmlTooManyDistributionsWithFunctionAssociationsResponse(parsedOutput, context)];
|
|
4093
4336
|
case 95:
|
|
4094
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _24.concat([(
|
|
4095
|
-
return [3,
|
|
4337
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _24.concat([(_39.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4338
|
+
return [3, 123];
|
|
4096
4339
|
case 96:
|
|
4097
4340
|
_25 = [{}];
|
|
4098
|
-
return [4,
|
|
4341
|
+
return [4, deserializeAws_restXmlTooManyDistributionsWithLambdaAssociationsResponse(parsedOutput, context)];
|
|
4099
4342
|
case 97:
|
|
4100
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _25.concat([(
|
|
4101
|
-
return [3,
|
|
4343
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _25.concat([(_39.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4344
|
+
return [3, 123];
|
|
4102
4345
|
case 98:
|
|
4103
4346
|
_26 = [{}];
|
|
4104
|
-
return [4,
|
|
4347
|
+
return [4, deserializeAws_restXmlTooManyDistributionsWithSingleFunctionARNResponse(parsedOutput, context)];
|
|
4105
4348
|
case 99:
|
|
4106
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _26.concat([(
|
|
4107
|
-
return [3,
|
|
4349
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _26.concat([(_39.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4350
|
+
return [3, 123];
|
|
4108
4351
|
case 100:
|
|
4109
4352
|
_27 = [{}];
|
|
4110
|
-
return [4,
|
|
4353
|
+
return [4, deserializeAws_restXmlTooManyFunctionAssociationsResponse(parsedOutput, context)];
|
|
4111
4354
|
case 101:
|
|
4112
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _27.concat([(
|
|
4113
|
-
return [3,
|
|
4355
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _27.concat([(_39.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4356
|
+
return [3, 123];
|
|
4114
4357
|
case 102:
|
|
4115
4358
|
_28 = [{}];
|
|
4116
|
-
return [4,
|
|
4359
|
+
return [4, deserializeAws_restXmlTooManyHeadersInForwardedValuesResponse(parsedOutput, context)];
|
|
4117
4360
|
case 103:
|
|
4118
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _28.concat([(
|
|
4119
|
-
return [3,
|
|
4361
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _28.concat([(_39.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4362
|
+
return [3, 123];
|
|
4120
4363
|
case 104:
|
|
4121
4364
|
_29 = [{}];
|
|
4122
|
-
return [4,
|
|
4365
|
+
return [4, deserializeAws_restXmlTooManyKeyGroupsAssociatedToDistributionResponse(parsedOutput, context)];
|
|
4123
4366
|
case 105:
|
|
4124
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _29.concat([(
|
|
4125
|
-
return [3,
|
|
4367
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _29.concat([(_39.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4368
|
+
return [3, 123];
|
|
4126
4369
|
case 106:
|
|
4127
4370
|
_30 = [{}];
|
|
4128
|
-
return [4,
|
|
4371
|
+
return [4, deserializeAws_restXmlTooManyLambdaFunctionAssociationsResponse(parsedOutput, context)];
|
|
4129
4372
|
case 107:
|
|
4130
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _30.concat([(
|
|
4131
|
-
return [3,
|
|
4373
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _30.concat([(_39.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4374
|
+
return [3, 123];
|
|
4132
4375
|
case 108:
|
|
4133
4376
|
_31 = [{}];
|
|
4134
|
-
return [4,
|
|
4377
|
+
return [4, deserializeAws_restXmlTooManyOriginCustomHeadersResponse(parsedOutput, context)];
|
|
4135
4378
|
case 109:
|
|
4136
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _31.concat([(
|
|
4137
|
-
return [3,
|
|
4379
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _31.concat([(_39.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4380
|
+
return [3, 123];
|
|
4138
4381
|
case 110:
|
|
4139
4382
|
_32 = [{}];
|
|
4140
|
-
return [4,
|
|
4383
|
+
return [4, deserializeAws_restXmlTooManyOriginGroupsPerDistributionResponse(parsedOutput, context)];
|
|
4141
4384
|
case 111:
|
|
4142
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _32.concat([(
|
|
4143
|
-
return [3,
|
|
4385
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _32.concat([(_39.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4386
|
+
return [3, 123];
|
|
4144
4387
|
case 112:
|
|
4145
4388
|
_33 = [{}];
|
|
4146
|
-
return [4,
|
|
4389
|
+
return [4, deserializeAws_restXmlTooManyOriginsResponse(parsedOutput, context)];
|
|
4147
4390
|
case 113:
|
|
4148
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _33.concat([(
|
|
4149
|
-
return [3,
|
|
4391
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _33.concat([(_39.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4392
|
+
return [3, 123];
|
|
4150
4393
|
case 114:
|
|
4151
4394
|
_34 = [{}];
|
|
4152
|
-
return [4,
|
|
4395
|
+
return [4, deserializeAws_restXmlTooManyQueryStringParametersResponse(parsedOutput, context)];
|
|
4153
4396
|
case 115:
|
|
4154
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _34.concat([(
|
|
4155
|
-
return [3,
|
|
4397
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _34.concat([(_39.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4398
|
+
return [3, 123];
|
|
4156
4399
|
case 116:
|
|
4157
4400
|
_35 = [{}];
|
|
4158
|
-
return [4,
|
|
4401
|
+
return [4, deserializeAws_restXmlTooManyTrustedSignersResponse(parsedOutput, context)];
|
|
4159
4402
|
case 117:
|
|
4160
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _35.concat([(
|
|
4161
|
-
return [3,
|
|
4403
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _35.concat([(_39.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4404
|
+
return [3, 123];
|
|
4162
4405
|
case 118:
|
|
4406
|
+
_36 = [{}];
|
|
4407
|
+
return [4, deserializeAws_restXmlTrustedKeyGroupDoesNotExistResponse(parsedOutput, context)];
|
|
4408
|
+
case 119:
|
|
4409
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _36.concat([(_39.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4410
|
+
return [3, 123];
|
|
4411
|
+
case 120:
|
|
4412
|
+
_37 = [{}];
|
|
4413
|
+
return [4, deserializeAws_restXmlTrustedSignerDoesNotExistResponse(parsedOutput, context)];
|
|
4414
|
+
case 121:
|
|
4415
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _37.concat([(_39.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4416
|
+
return [3, 123];
|
|
4417
|
+
case 122:
|
|
4163
4418
|
parsedBody = parsedOutput.body;
|
|
4164
4419
|
errorCode = parsedBody.Error.code || parsedBody.Error.Code || errorCode;
|
|
4165
4420
|
response = __assign(__assign({}, parsedBody.Error), { name: "" + errorCode, message: parsedBody.Error.message || parsedBody.Error.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
4166
|
-
|
|
4167
|
-
case
|
|
4421
|
+
_39.label = 123;
|
|
4422
|
+
case 123:
|
|
4168
4423
|
message = response.message || response.Message || errorCode;
|
|
4169
4424
|
response.message = message;
|
|
4170
4425
|
delete response.Message;
|
|
@@ -5086,6 +5341,113 @@ var deserializeAws_restXmlCreateRealtimeLogConfigCommandError = function (output
|
|
|
5086
5341
|
}
|
|
5087
5342
|
});
|
|
5088
5343
|
}); };
|
|
5344
|
+
export var deserializeAws_restXmlCreateResponseHeadersPolicyCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5345
|
+
var contents, data, _a;
|
|
5346
|
+
return __generator(this, function (_b) {
|
|
5347
|
+
switch (_b.label) {
|
|
5348
|
+
case 0:
|
|
5349
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
5350
|
+
return [2, deserializeAws_restXmlCreateResponseHeadersPolicyCommandError(output, context)];
|
|
5351
|
+
}
|
|
5352
|
+
contents = {
|
|
5353
|
+
$metadata: deserializeMetadata(output),
|
|
5354
|
+
ETag: undefined,
|
|
5355
|
+
Location: undefined,
|
|
5356
|
+
ResponseHeadersPolicy: undefined,
|
|
5357
|
+
};
|
|
5358
|
+
if (output.headers["location"] !== undefined) {
|
|
5359
|
+
contents.Location = output.headers["location"];
|
|
5360
|
+
}
|
|
5361
|
+
if (output.headers["etag"] !== undefined) {
|
|
5362
|
+
contents.ETag = output.headers["etag"];
|
|
5363
|
+
}
|
|
5364
|
+
_a = __expectObject;
|
|
5365
|
+
return [4, parseBody(output.body, context)];
|
|
5366
|
+
case 1:
|
|
5367
|
+
data = _a.apply(void 0, [_b.sent()]);
|
|
5368
|
+
contents.ResponseHeadersPolicy = deserializeAws_restXmlResponseHeadersPolicy(data, context);
|
|
5369
|
+
return [2, Promise.resolve(contents)];
|
|
5370
|
+
}
|
|
5371
|
+
});
|
|
5372
|
+
}); };
|
|
5373
|
+
var deserializeAws_restXmlCreateResponseHeadersPolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5374
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, parsedBody, message;
|
|
5375
|
+
var _j;
|
|
5376
|
+
return __generator(this, function (_k) {
|
|
5377
|
+
switch (_k.label) {
|
|
5378
|
+
case 0:
|
|
5379
|
+
_a = [__assign({}, output)];
|
|
5380
|
+
_j = {};
|
|
5381
|
+
return [4, parseBody(output.body, context)];
|
|
5382
|
+
case 1:
|
|
5383
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
5384
|
+
errorCode = "UnknownError";
|
|
5385
|
+
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
5386
|
+
_b = errorCode;
|
|
5387
|
+
switch (_b) {
|
|
5388
|
+
case "AccessDenied": return [3, 2];
|
|
5389
|
+
case "com.amazonaws.cloudfront#AccessDenied": return [3, 2];
|
|
5390
|
+
case "InconsistentQuantities": return [3, 4];
|
|
5391
|
+
case "com.amazonaws.cloudfront#InconsistentQuantities": return [3, 4];
|
|
5392
|
+
case "InvalidArgument": return [3, 6];
|
|
5393
|
+
case "com.amazonaws.cloudfront#InvalidArgument": return [3, 6];
|
|
5394
|
+
case "ResponseHeadersPolicyAlreadyExists": return [3, 8];
|
|
5395
|
+
case "com.amazonaws.cloudfront#ResponseHeadersPolicyAlreadyExists": return [3, 8];
|
|
5396
|
+
case "TooManyCustomHeadersInResponseHeadersPolicy": return [3, 10];
|
|
5397
|
+
case "com.amazonaws.cloudfront#TooManyCustomHeadersInResponseHeadersPolicy": return [3, 10];
|
|
5398
|
+
case "TooManyResponseHeadersPolicies": return [3, 12];
|
|
5399
|
+
case "com.amazonaws.cloudfront#TooManyResponseHeadersPolicies": return [3, 12];
|
|
5400
|
+
}
|
|
5401
|
+
return [3, 14];
|
|
5402
|
+
case 2:
|
|
5403
|
+
_c = [{}];
|
|
5404
|
+
return [4, deserializeAws_restXmlAccessDeniedResponse(parsedOutput, context)];
|
|
5405
|
+
case 3:
|
|
5406
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
5407
|
+
return [3, 15];
|
|
5408
|
+
case 4:
|
|
5409
|
+
_d = [{}];
|
|
5410
|
+
return [4, deserializeAws_restXmlInconsistentQuantitiesResponse(parsedOutput, context)];
|
|
5411
|
+
case 5:
|
|
5412
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
5413
|
+
return [3, 15];
|
|
5414
|
+
case 6:
|
|
5415
|
+
_e = [{}];
|
|
5416
|
+
return [4, deserializeAws_restXmlInvalidArgumentResponse(parsedOutput, context)];
|
|
5417
|
+
case 7:
|
|
5418
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
5419
|
+
return [3, 15];
|
|
5420
|
+
case 8:
|
|
5421
|
+
_f = [{}];
|
|
5422
|
+
return [4, deserializeAws_restXmlResponseHeadersPolicyAlreadyExistsResponse(parsedOutput, context)];
|
|
5423
|
+
case 9:
|
|
5424
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
5425
|
+
return [3, 15];
|
|
5426
|
+
case 10:
|
|
5427
|
+
_g = [{}];
|
|
5428
|
+
return [4, deserializeAws_restXmlTooManyCustomHeadersInResponseHeadersPolicyResponse(parsedOutput, context)];
|
|
5429
|
+
case 11:
|
|
5430
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
5431
|
+
return [3, 15];
|
|
5432
|
+
case 12:
|
|
5433
|
+
_h = [{}];
|
|
5434
|
+
return [4, deserializeAws_restXmlTooManyResponseHeadersPoliciesResponse(parsedOutput, context)];
|
|
5435
|
+
case 13:
|
|
5436
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
5437
|
+
return [3, 15];
|
|
5438
|
+
case 14:
|
|
5439
|
+
parsedBody = parsedOutput.body;
|
|
5440
|
+
errorCode = parsedBody.Error.code || parsedBody.Error.Code || errorCode;
|
|
5441
|
+
response = __assign(__assign({}, parsedBody.Error), { name: "" + errorCode, message: parsedBody.Error.message || parsedBody.Error.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
5442
|
+
_k.label = 15;
|
|
5443
|
+
case 15:
|
|
5444
|
+
message = response.message || response.Message || errorCode;
|
|
5445
|
+
response.message = message;
|
|
5446
|
+
delete response.Message;
|
|
5447
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
5448
|
+
}
|
|
5449
|
+
});
|
|
5450
|
+
}); };
|
|
5089
5451
|
export var deserializeAws_restXmlCreateStreamingDistributionCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5090
5452
|
var contents, data, _a;
|
|
5091
5453
|
return __generator(this, function (_b) {
|
|
@@ -6356,13 +6718,13 @@ var deserializeAws_restXmlDeleteRealtimeLogConfigCommandError = function (output
|
|
|
6356
6718
|
}
|
|
6357
6719
|
});
|
|
6358
6720
|
}); };
|
|
6359
|
-
export var
|
|
6721
|
+
export var deserializeAws_restXmlDeleteResponseHeadersPolicyCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6360
6722
|
var contents;
|
|
6361
6723
|
return __generator(this, function (_a) {
|
|
6362
6724
|
switch (_a.label) {
|
|
6363
6725
|
case 0:
|
|
6364
6726
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
6365
|
-
return [2,
|
|
6727
|
+
return [2, deserializeAws_restXmlDeleteResponseHeadersPolicyCommandError(output, context)];
|
|
6366
6728
|
}
|
|
6367
6729
|
contents = {
|
|
6368
6730
|
$metadata: deserializeMetadata(output),
|
|
@@ -6374,69 +6736,77 @@ export var deserializeAws_restXmlDeleteStreamingDistributionCommand = function (
|
|
|
6374
6736
|
}
|
|
6375
6737
|
});
|
|
6376
6738
|
}); };
|
|
6377
|
-
var
|
|
6378
|
-
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
|
|
6379
|
-
var
|
|
6380
|
-
return __generator(this, function (
|
|
6381
|
-
switch (
|
|
6739
|
+
var deserializeAws_restXmlDeleteResponseHeadersPolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6740
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, parsedBody, message;
|
|
6741
|
+
var _j;
|
|
6742
|
+
return __generator(this, function (_k) {
|
|
6743
|
+
switch (_k.label) {
|
|
6382
6744
|
case 0:
|
|
6383
6745
|
_a = [__assign({}, output)];
|
|
6384
|
-
|
|
6746
|
+
_j = {};
|
|
6385
6747
|
return [4, parseBody(output.body, context)];
|
|
6386
6748
|
case 1:
|
|
6387
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
6749
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
6388
6750
|
errorCode = "UnknownError";
|
|
6389
6751
|
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
6390
6752
|
_b = errorCode;
|
|
6391
6753
|
switch (_b) {
|
|
6392
6754
|
case "AccessDenied": return [3, 2];
|
|
6393
6755
|
case "com.amazonaws.cloudfront#AccessDenied": return [3, 2];
|
|
6394
|
-
case "
|
|
6395
|
-
case "com.amazonaws.cloudfront#
|
|
6396
|
-
case "
|
|
6397
|
-
case "com.amazonaws.cloudfront#
|
|
6398
|
-
case "
|
|
6399
|
-
case "com.amazonaws.cloudfront#
|
|
6400
|
-
case "
|
|
6401
|
-
case "com.amazonaws.cloudfront#
|
|
6756
|
+
case "IllegalDelete": return [3, 4];
|
|
6757
|
+
case "com.amazonaws.cloudfront#IllegalDelete": return [3, 4];
|
|
6758
|
+
case "InvalidIfMatchVersion": return [3, 6];
|
|
6759
|
+
case "com.amazonaws.cloudfront#InvalidIfMatchVersion": return [3, 6];
|
|
6760
|
+
case "NoSuchResponseHeadersPolicy": return [3, 8];
|
|
6761
|
+
case "com.amazonaws.cloudfront#NoSuchResponseHeadersPolicy": return [3, 8];
|
|
6762
|
+
case "PreconditionFailed": return [3, 10];
|
|
6763
|
+
case "com.amazonaws.cloudfront#PreconditionFailed": return [3, 10];
|
|
6764
|
+
case "ResponseHeadersPolicyInUse": return [3, 12];
|
|
6765
|
+
case "com.amazonaws.cloudfront#ResponseHeadersPolicyInUse": return [3, 12];
|
|
6402
6766
|
}
|
|
6403
|
-
return [3,
|
|
6767
|
+
return [3, 14];
|
|
6404
6768
|
case 2:
|
|
6405
6769
|
_c = [{}];
|
|
6406
6770
|
return [4, deserializeAws_restXmlAccessDeniedResponse(parsedOutput, context)];
|
|
6407
6771
|
case 3:
|
|
6408
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(
|
|
6409
|
-
return [3,
|
|
6772
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
6773
|
+
return [3, 15];
|
|
6410
6774
|
case 4:
|
|
6411
6775
|
_d = [{}];
|
|
6412
|
-
return [4,
|
|
6776
|
+
return [4, deserializeAws_restXmlIllegalDeleteResponse(parsedOutput, context)];
|
|
6413
6777
|
case 5:
|
|
6414
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(
|
|
6415
|
-
return [3,
|
|
6778
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
6779
|
+
return [3, 15];
|
|
6416
6780
|
case 6:
|
|
6417
6781
|
_e = [{}];
|
|
6418
|
-
return [4,
|
|
6782
|
+
return [4, deserializeAws_restXmlInvalidIfMatchVersionResponse(parsedOutput, context)];
|
|
6419
6783
|
case 7:
|
|
6420
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(
|
|
6421
|
-
return [3,
|
|
6784
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
6785
|
+
return [3, 15];
|
|
6422
6786
|
case 8:
|
|
6423
6787
|
_f = [{}];
|
|
6424
|
-
return [4,
|
|
6788
|
+
return [4, deserializeAws_restXmlNoSuchResponseHeadersPolicyResponse(parsedOutput, context)];
|
|
6425
6789
|
case 9:
|
|
6426
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(
|
|
6427
|
-
return [3,
|
|
6790
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
6791
|
+
return [3, 15];
|
|
6428
6792
|
case 10:
|
|
6429
6793
|
_g = [{}];
|
|
6430
|
-
return [4,
|
|
6794
|
+
return [4, deserializeAws_restXmlPreconditionFailedResponse(parsedOutput, context)];
|
|
6431
6795
|
case 11:
|
|
6432
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(
|
|
6433
|
-
return [3,
|
|
6796
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
6797
|
+
return [3, 15];
|
|
6434
6798
|
case 12:
|
|
6799
|
+
_h = [{}];
|
|
6800
|
+
return [4, deserializeAws_restXmlResponseHeadersPolicyInUseResponse(parsedOutput, context)];
|
|
6801
|
+
case 13:
|
|
6802
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
6803
|
+
return [3, 15];
|
|
6804
|
+
case 14:
|
|
6435
6805
|
parsedBody = parsedOutput.body;
|
|
6436
6806
|
errorCode = parsedBody.Error.code || parsedBody.Error.Code || errorCode;
|
|
6437
6807
|
response = __assign(__assign({}, parsedBody.Error), { name: "" + errorCode, message: parsedBody.Error.message || parsedBody.Error.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
6438
|
-
|
|
6439
|
-
case
|
|
6808
|
+
_k.label = 15;
|
|
6809
|
+
case 15:
|
|
6440
6810
|
message = response.message || response.Message || errorCode;
|
|
6441
6811
|
response.message = message;
|
|
6442
6812
|
delete response.Message;
|
|
@@ -6444,17 +6814,105 @@ var deserializeAws_restXmlDeleteStreamingDistributionCommandError = function (ou
|
|
|
6444
6814
|
}
|
|
6445
6815
|
});
|
|
6446
6816
|
}); };
|
|
6447
|
-
export var
|
|
6448
|
-
var contents
|
|
6449
|
-
return __generator(this, function (
|
|
6450
|
-
switch (
|
|
6817
|
+
export var deserializeAws_restXmlDeleteStreamingDistributionCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6818
|
+
var contents;
|
|
6819
|
+
return __generator(this, function (_a) {
|
|
6820
|
+
switch (_a.label) {
|
|
6451
6821
|
case 0:
|
|
6452
|
-
if (output.statusCode !==
|
|
6453
|
-
return [2,
|
|
6822
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
6823
|
+
return [2, deserializeAws_restXmlDeleteStreamingDistributionCommandError(output, context)];
|
|
6454
6824
|
}
|
|
6455
6825
|
contents = {
|
|
6456
6826
|
$metadata: deserializeMetadata(output),
|
|
6457
|
-
|
|
6827
|
+
};
|
|
6828
|
+
return [4, collectBody(output.body, context)];
|
|
6829
|
+
case 1:
|
|
6830
|
+
_a.sent();
|
|
6831
|
+
return [2, Promise.resolve(contents)];
|
|
6832
|
+
}
|
|
6833
|
+
});
|
|
6834
|
+
}); };
|
|
6835
|
+
var deserializeAws_restXmlDeleteStreamingDistributionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6836
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
|
|
6837
|
+
var _h;
|
|
6838
|
+
return __generator(this, function (_j) {
|
|
6839
|
+
switch (_j.label) {
|
|
6840
|
+
case 0:
|
|
6841
|
+
_a = [__assign({}, output)];
|
|
6842
|
+
_h = {};
|
|
6843
|
+
return [4, parseBody(output.body, context)];
|
|
6844
|
+
case 1:
|
|
6845
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
6846
|
+
errorCode = "UnknownError";
|
|
6847
|
+
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
6848
|
+
_b = errorCode;
|
|
6849
|
+
switch (_b) {
|
|
6850
|
+
case "AccessDenied": return [3, 2];
|
|
6851
|
+
case "com.amazonaws.cloudfront#AccessDenied": return [3, 2];
|
|
6852
|
+
case "InvalidIfMatchVersion": return [3, 4];
|
|
6853
|
+
case "com.amazonaws.cloudfront#InvalidIfMatchVersion": return [3, 4];
|
|
6854
|
+
case "NoSuchStreamingDistribution": return [3, 6];
|
|
6855
|
+
case "com.amazonaws.cloudfront#NoSuchStreamingDistribution": return [3, 6];
|
|
6856
|
+
case "PreconditionFailed": return [3, 8];
|
|
6857
|
+
case "com.amazonaws.cloudfront#PreconditionFailed": return [3, 8];
|
|
6858
|
+
case "StreamingDistributionNotDisabled": return [3, 10];
|
|
6859
|
+
case "com.amazonaws.cloudfront#StreamingDistributionNotDisabled": return [3, 10];
|
|
6860
|
+
}
|
|
6861
|
+
return [3, 12];
|
|
6862
|
+
case 2:
|
|
6863
|
+
_c = [{}];
|
|
6864
|
+
return [4, deserializeAws_restXmlAccessDeniedResponse(parsedOutput, context)];
|
|
6865
|
+
case 3:
|
|
6866
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
6867
|
+
return [3, 13];
|
|
6868
|
+
case 4:
|
|
6869
|
+
_d = [{}];
|
|
6870
|
+
return [4, deserializeAws_restXmlInvalidIfMatchVersionResponse(parsedOutput, context)];
|
|
6871
|
+
case 5:
|
|
6872
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
6873
|
+
return [3, 13];
|
|
6874
|
+
case 6:
|
|
6875
|
+
_e = [{}];
|
|
6876
|
+
return [4, deserializeAws_restXmlNoSuchStreamingDistributionResponse(parsedOutput, context)];
|
|
6877
|
+
case 7:
|
|
6878
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
6879
|
+
return [3, 13];
|
|
6880
|
+
case 8:
|
|
6881
|
+
_f = [{}];
|
|
6882
|
+
return [4, deserializeAws_restXmlPreconditionFailedResponse(parsedOutput, context)];
|
|
6883
|
+
case 9:
|
|
6884
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
6885
|
+
return [3, 13];
|
|
6886
|
+
case 10:
|
|
6887
|
+
_g = [{}];
|
|
6888
|
+
return [4, deserializeAws_restXmlStreamingDistributionNotDisabledResponse(parsedOutput, context)];
|
|
6889
|
+
case 11:
|
|
6890
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
6891
|
+
return [3, 13];
|
|
6892
|
+
case 12:
|
|
6893
|
+
parsedBody = parsedOutput.body;
|
|
6894
|
+
errorCode = parsedBody.Error.code || parsedBody.Error.Code || errorCode;
|
|
6895
|
+
response = __assign(__assign({}, parsedBody.Error), { name: "" + errorCode, message: parsedBody.Error.message || parsedBody.Error.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
6896
|
+
_j.label = 13;
|
|
6897
|
+
case 13:
|
|
6898
|
+
message = response.message || response.Message || errorCode;
|
|
6899
|
+
response.message = message;
|
|
6900
|
+
delete response.Message;
|
|
6901
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
6902
|
+
}
|
|
6903
|
+
});
|
|
6904
|
+
}); };
|
|
6905
|
+
export var deserializeAws_restXmlDescribeFunctionCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6906
|
+
var contents, data, _a;
|
|
6907
|
+
return __generator(this, function (_b) {
|
|
6908
|
+
switch (_b.label) {
|
|
6909
|
+
case 0:
|
|
6910
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6911
|
+
return [2, deserializeAws_restXmlDescribeFunctionCommandError(output, context)];
|
|
6912
|
+
}
|
|
6913
|
+
contents = {
|
|
6914
|
+
$metadata: deserializeMetadata(output),
|
|
6915
|
+
ETag: undefined,
|
|
6458
6916
|
FunctionSummary: undefined,
|
|
6459
6917
|
};
|
|
6460
6918
|
if (output.headers["etag"] !== undefined) {
|
|
@@ -7937,6 +8395,148 @@ var deserializeAws_restXmlGetRealtimeLogConfigCommandError = function (output, c
|
|
|
7937
8395
|
}
|
|
7938
8396
|
});
|
|
7939
8397
|
}); };
|
|
8398
|
+
export var deserializeAws_restXmlGetResponseHeadersPolicyCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
8399
|
+
var contents, data, _a;
|
|
8400
|
+
return __generator(this, function (_b) {
|
|
8401
|
+
switch (_b.label) {
|
|
8402
|
+
case 0:
|
|
8403
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
8404
|
+
return [2, deserializeAws_restXmlGetResponseHeadersPolicyCommandError(output, context)];
|
|
8405
|
+
}
|
|
8406
|
+
contents = {
|
|
8407
|
+
$metadata: deserializeMetadata(output),
|
|
8408
|
+
ETag: undefined,
|
|
8409
|
+
ResponseHeadersPolicy: undefined,
|
|
8410
|
+
};
|
|
8411
|
+
if (output.headers["etag"] !== undefined) {
|
|
8412
|
+
contents.ETag = output.headers["etag"];
|
|
8413
|
+
}
|
|
8414
|
+
_a = __expectObject;
|
|
8415
|
+
return [4, parseBody(output.body, context)];
|
|
8416
|
+
case 1:
|
|
8417
|
+
data = _a.apply(void 0, [_b.sent()]);
|
|
8418
|
+
contents.ResponseHeadersPolicy = deserializeAws_restXmlResponseHeadersPolicy(data, context);
|
|
8419
|
+
return [2, Promise.resolve(contents)];
|
|
8420
|
+
}
|
|
8421
|
+
});
|
|
8422
|
+
}); };
|
|
8423
|
+
var deserializeAws_restXmlGetResponseHeadersPolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
8424
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, parsedBody, message;
|
|
8425
|
+
var _e;
|
|
8426
|
+
return __generator(this, function (_f) {
|
|
8427
|
+
switch (_f.label) {
|
|
8428
|
+
case 0:
|
|
8429
|
+
_a = [__assign({}, output)];
|
|
8430
|
+
_e = {};
|
|
8431
|
+
return [4, parseBody(output.body, context)];
|
|
8432
|
+
case 1:
|
|
8433
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
8434
|
+
errorCode = "UnknownError";
|
|
8435
|
+
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
8436
|
+
_b = errorCode;
|
|
8437
|
+
switch (_b) {
|
|
8438
|
+
case "AccessDenied": return [3, 2];
|
|
8439
|
+
case "com.amazonaws.cloudfront#AccessDenied": return [3, 2];
|
|
8440
|
+
case "NoSuchResponseHeadersPolicy": return [3, 4];
|
|
8441
|
+
case "com.amazonaws.cloudfront#NoSuchResponseHeadersPolicy": return [3, 4];
|
|
8442
|
+
}
|
|
8443
|
+
return [3, 6];
|
|
8444
|
+
case 2:
|
|
8445
|
+
_c = [{}];
|
|
8446
|
+
return [4, deserializeAws_restXmlAccessDeniedResponse(parsedOutput, context)];
|
|
8447
|
+
case 3:
|
|
8448
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
8449
|
+
return [3, 7];
|
|
8450
|
+
case 4:
|
|
8451
|
+
_d = [{}];
|
|
8452
|
+
return [4, deserializeAws_restXmlNoSuchResponseHeadersPolicyResponse(parsedOutput, context)];
|
|
8453
|
+
case 5:
|
|
8454
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
8455
|
+
return [3, 7];
|
|
8456
|
+
case 6:
|
|
8457
|
+
parsedBody = parsedOutput.body;
|
|
8458
|
+
errorCode = parsedBody.Error.code || parsedBody.Error.Code || errorCode;
|
|
8459
|
+
response = __assign(__assign({}, parsedBody.Error), { name: "" + errorCode, message: parsedBody.Error.message || parsedBody.Error.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
8460
|
+
_f.label = 7;
|
|
8461
|
+
case 7:
|
|
8462
|
+
message = response.message || response.Message || errorCode;
|
|
8463
|
+
response.message = message;
|
|
8464
|
+
delete response.Message;
|
|
8465
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
8466
|
+
}
|
|
8467
|
+
});
|
|
8468
|
+
}); };
|
|
8469
|
+
export var deserializeAws_restXmlGetResponseHeadersPolicyConfigCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
8470
|
+
var contents, data, _a;
|
|
8471
|
+
return __generator(this, function (_b) {
|
|
8472
|
+
switch (_b.label) {
|
|
8473
|
+
case 0:
|
|
8474
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
8475
|
+
return [2, deserializeAws_restXmlGetResponseHeadersPolicyConfigCommandError(output, context)];
|
|
8476
|
+
}
|
|
8477
|
+
contents = {
|
|
8478
|
+
$metadata: deserializeMetadata(output),
|
|
8479
|
+
ETag: undefined,
|
|
8480
|
+
ResponseHeadersPolicyConfig: undefined,
|
|
8481
|
+
};
|
|
8482
|
+
if (output.headers["etag"] !== undefined) {
|
|
8483
|
+
contents.ETag = output.headers["etag"];
|
|
8484
|
+
}
|
|
8485
|
+
_a = __expectObject;
|
|
8486
|
+
return [4, parseBody(output.body, context)];
|
|
8487
|
+
case 1:
|
|
8488
|
+
data = _a.apply(void 0, [_b.sent()]);
|
|
8489
|
+
contents.ResponseHeadersPolicyConfig = deserializeAws_restXmlResponseHeadersPolicyConfig(data, context);
|
|
8490
|
+
return [2, Promise.resolve(contents)];
|
|
8491
|
+
}
|
|
8492
|
+
});
|
|
8493
|
+
}); };
|
|
8494
|
+
var deserializeAws_restXmlGetResponseHeadersPolicyConfigCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
8495
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, parsedBody, message;
|
|
8496
|
+
var _e;
|
|
8497
|
+
return __generator(this, function (_f) {
|
|
8498
|
+
switch (_f.label) {
|
|
8499
|
+
case 0:
|
|
8500
|
+
_a = [__assign({}, output)];
|
|
8501
|
+
_e = {};
|
|
8502
|
+
return [4, parseBody(output.body, context)];
|
|
8503
|
+
case 1:
|
|
8504
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
8505
|
+
errorCode = "UnknownError";
|
|
8506
|
+
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
8507
|
+
_b = errorCode;
|
|
8508
|
+
switch (_b) {
|
|
8509
|
+
case "AccessDenied": return [3, 2];
|
|
8510
|
+
case "com.amazonaws.cloudfront#AccessDenied": return [3, 2];
|
|
8511
|
+
case "NoSuchResponseHeadersPolicy": return [3, 4];
|
|
8512
|
+
case "com.amazonaws.cloudfront#NoSuchResponseHeadersPolicy": return [3, 4];
|
|
8513
|
+
}
|
|
8514
|
+
return [3, 6];
|
|
8515
|
+
case 2:
|
|
8516
|
+
_c = [{}];
|
|
8517
|
+
return [4, deserializeAws_restXmlAccessDeniedResponse(parsedOutput, context)];
|
|
8518
|
+
case 3:
|
|
8519
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
8520
|
+
return [3, 7];
|
|
8521
|
+
case 4:
|
|
8522
|
+
_d = [{}];
|
|
8523
|
+
return [4, deserializeAws_restXmlNoSuchResponseHeadersPolicyResponse(parsedOutput, context)];
|
|
8524
|
+
case 5:
|
|
8525
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
8526
|
+
return [3, 7];
|
|
8527
|
+
case 6:
|
|
8528
|
+
parsedBody = parsedOutput.body;
|
|
8529
|
+
errorCode = parsedBody.Error.code || parsedBody.Error.Code || errorCode;
|
|
8530
|
+
response = __assign(__assign({}, parsedBody.Error), { name: "" + errorCode, message: parsedBody.Error.message || parsedBody.Error.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
8531
|
+
_f.label = 7;
|
|
8532
|
+
case 7:
|
|
8533
|
+
message = response.message || response.Message || errorCode;
|
|
8534
|
+
response.message = message;
|
|
8535
|
+
delete response.Message;
|
|
8536
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
8537
|
+
}
|
|
8538
|
+
});
|
|
8539
|
+
}); };
|
|
7940
8540
|
export var deserializeAws_restXmlGetStreamingDistributionCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
7941
8541
|
var contents, data, _a;
|
|
7942
8542
|
return __generator(this, function (_b) {
|
|
@@ -8615,6 +9215,81 @@ var deserializeAws_restXmlListDistributionsByRealtimeLogConfigCommandError = fun
|
|
|
8615
9215
|
}
|
|
8616
9216
|
});
|
|
8617
9217
|
}); };
|
|
9218
|
+
export var deserializeAws_restXmlListDistributionsByResponseHeadersPolicyIdCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
9219
|
+
var contents, data, _a;
|
|
9220
|
+
return __generator(this, function (_b) {
|
|
9221
|
+
switch (_b.label) {
|
|
9222
|
+
case 0:
|
|
9223
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
9224
|
+
return [2, deserializeAws_restXmlListDistributionsByResponseHeadersPolicyIdCommandError(output, context)];
|
|
9225
|
+
}
|
|
9226
|
+
contents = {
|
|
9227
|
+
$metadata: deserializeMetadata(output),
|
|
9228
|
+
DistributionIdList: undefined,
|
|
9229
|
+
};
|
|
9230
|
+
_a = __expectObject;
|
|
9231
|
+
return [4, parseBody(output.body, context)];
|
|
9232
|
+
case 1:
|
|
9233
|
+
data = _a.apply(void 0, [_b.sent()]);
|
|
9234
|
+
contents.DistributionIdList = deserializeAws_restXmlDistributionIdList(data, context);
|
|
9235
|
+
return [2, Promise.resolve(contents)];
|
|
9236
|
+
}
|
|
9237
|
+
});
|
|
9238
|
+
}); };
|
|
9239
|
+
var deserializeAws_restXmlListDistributionsByResponseHeadersPolicyIdCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
9240
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, parsedBody, message;
|
|
9241
|
+
var _f;
|
|
9242
|
+
return __generator(this, function (_g) {
|
|
9243
|
+
switch (_g.label) {
|
|
9244
|
+
case 0:
|
|
9245
|
+
_a = [__assign({}, output)];
|
|
9246
|
+
_f = {};
|
|
9247
|
+
return [4, parseBody(output.body, context)];
|
|
9248
|
+
case 1:
|
|
9249
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
9250
|
+
errorCode = "UnknownError";
|
|
9251
|
+
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
9252
|
+
_b = errorCode;
|
|
9253
|
+
switch (_b) {
|
|
9254
|
+
case "AccessDenied": return [3, 2];
|
|
9255
|
+
case "com.amazonaws.cloudfront#AccessDenied": return [3, 2];
|
|
9256
|
+
case "InvalidArgument": return [3, 4];
|
|
9257
|
+
case "com.amazonaws.cloudfront#InvalidArgument": return [3, 4];
|
|
9258
|
+
case "NoSuchResponseHeadersPolicy": return [3, 6];
|
|
9259
|
+
case "com.amazonaws.cloudfront#NoSuchResponseHeadersPolicy": return [3, 6];
|
|
9260
|
+
}
|
|
9261
|
+
return [3, 8];
|
|
9262
|
+
case 2:
|
|
9263
|
+
_c = [{}];
|
|
9264
|
+
return [4, deserializeAws_restXmlAccessDeniedResponse(parsedOutput, context)];
|
|
9265
|
+
case 3:
|
|
9266
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
9267
|
+
return [3, 9];
|
|
9268
|
+
case 4:
|
|
9269
|
+
_d = [{}];
|
|
9270
|
+
return [4, deserializeAws_restXmlInvalidArgumentResponse(parsedOutput, context)];
|
|
9271
|
+
case 5:
|
|
9272
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
9273
|
+
return [3, 9];
|
|
9274
|
+
case 6:
|
|
9275
|
+
_e = [{}];
|
|
9276
|
+
return [4, deserializeAws_restXmlNoSuchResponseHeadersPolicyResponse(parsedOutput, context)];
|
|
9277
|
+
case 7:
|
|
9278
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
9279
|
+
return [3, 9];
|
|
9280
|
+
case 8:
|
|
9281
|
+
parsedBody = parsedOutput.body;
|
|
9282
|
+
errorCode = parsedBody.Error.code || parsedBody.Error.Code || errorCode;
|
|
9283
|
+
response = __assign(__assign({}, parsedBody.Error), { name: "" + errorCode, message: parsedBody.Error.message || parsedBody.Error.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
9284
|
+
_g.label = 9;
|
|
9285
|
+
case 9:
|
|
9286
|
+
message = response.message || response.Message || errorCode;
|
|
9287
|
+
response.message = message;
|
|
9288
|
+
delete response.Message;
|
|
9289
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
9290
|
+
}
|
|
9291
|
+
});
|
|
9292
|
+
}); };
|
|
8618
9293
|
export var deserializeAws_restXmlListDistributionsByWebACLIdCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
8619
9294
|
var contents, data, _a;
|
|
8620
9295
|
return __generator(this, function (_b) {
|
|
@@ -9112,22 +9787,97 @@ var deserializeAws_restXmlListPublicKeysCommandError = function (output, context
|
|
|
9112
9787
|
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
9113
9788
|
_b = errorCode;
|
|
9114
9789
|
switch (_b) {
|
|
9115
|
-
case "InvalidArgument": return [3, 2];
|
|
9116
|
-
case "com.amazonaws.cloudfront#InvalidArgument": return [3, 2];
|
|
9790
|
+
case "InvalidArgument": return [3, 2];
|
|
9791
|
+
case "com.amazonaws.cloudfront#InvalidArgument": return [3, 2];
|
|
9792
|
+
}
|
|
9793
|
+
return [3, 4];
|
|
9794
|
+
case 2:
|
|
9795
|
+
_c = [{}];
|
|
9796
|
+
return [4, deserializeAws_restXmlInvalidArgumentResponse(parsedOutput, context)];
|
|
9797
|
+
case 3:
|
|
9798
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_e.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
9799
|
+
return [3, 5];
|
|
9800
|
+
case 4:
|
|
9801
|
+
parsedBody = parsedOutput.body;
|
|
9802
|
+
errorCode = parsedBody.Error.code || parsedBody.Error.Code || errorCode;
|
|
9803
|
+
response = __assign(__assign({}, parsedBody.Error), { name: "" + errorCode, message: parsedBody.Error.message || parsedBody.Error.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
9804
|
+
_e.label = 5;
|
|
9805
|
+
case 5:
|
|
9806
|
+
message = response.message || response.Message || errorCode;
|
|
9807
|
+
response.message = message;
|
|
9808
|
+
delete response.Message;
|
|
9809
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
9810
|
+
}
|
|
9811
|
+
});
|
|
9812
|
+
}); };
|
|
9813
|
+
export var deserializeAws_restXmlListRealtimeLogConfigsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
9814
|
+
var contents, data, _a;
|
|
9815
|
+
return __generator(this, function (_b) {
|
|
9816
|
+
switch (_b.label) {
|
|
9817
|
+
case 0:
|
|
9818
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
9819
|
+
return [2, deserializeAws_restXmlListRealtimeLogConfigsCommandError(output, context)];
|
|
9820
|
+
}
|
|
9821
|
+
contents = {
|
|
9822
|
+
$metadata: deserializeMetadata(output),
|
|
9823
|
+
RealtimeLogConfigs: undefined,
|
|
9824
|
+
};
|
|
9825
|
+
_a = __expectObject;
|
|
9826
|
+
return [4, parseBody(output.body, context)];
|
|
9827
|
+
case 1:
|
|
9828
|
+
data = _a.apply(void 0, [_b.sent()]);
|
|
9829
|
+
contents.RealtimeLogConfigs = deserializeAws_restXmlRealtimeLogConfigs(data, context);
|
|
9830
|
+
return [2, Promise.resolve(contents)];
|
|
9831
|
+
}
|
|
9832
|
+
});
|
|
9833
|
+
}); };
|
|
9834
|
+
var deserializeAws_restXmlListRealtimeLogConfigsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
9835
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, parsedBody, message;
|
|
9836
|
+
var _f;
|
|
9837
|
+
return __generator(this, function (_g) {
|
|
9838
|
+
switch (_g.label) {
|
|
9839
|
+
case 0:
|
|
9840
|
+
_a = [__assign({}, output)];
|
|
9841
|
+
_f = {};
|
|
9842
|
+
return [4, parseBody(output.body, context)];
|
|
9843
|
+
case 1:
|
|
9844
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
9845
|
+
errorCode = "UnknownError";
|
|
9846
|
+
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
9847
|
+
_b = errorCode;
|
|
9848
|
+
switch (_b) {
|
|
9849
|
+
case "AccessDenied": return [3, 2];
|
|
9850
|
+
case "com.amazonaws.cloudfront#AccessDenied": return [3, 2];
|
|
9851
|
+
case "InvalidArgument": return [3, 4];
|
|
9852
|
+
case "com.amazonaws.cloudfront#InvalidArgument": return [3, 4];
|
|
9853
|
+
case "NoSuchRealtimeLogConfig": return [3, 6];
|
|
9854
|
+
case "com.amazonaws.cloudfront#NoSuchRealtimeLogConfig": return [3, 6];
|
|
9117
9855
|
}
|
|
9118
|
-
return [3,
|
|
9856
|
+
return [3, 8];
|
|
9119
9857
|
case 2:
|
|
9120
9858
|
_c = [{}];
|
|
9121
|
-
return [4,
|
|
9859
|
+
return [4, deserializeAws_restXmlAccessDeniedResponse(parsedOutput, context)];
|
|
9122
9860
|
case 3:
|
|
9123
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(
|
|
9124
|
-
return [3,
|
|
9861
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
9862
|
+
return [3, 9];
|
|
9125
9863
|
case 4:
|
|
9864
|
+
_d = [{}];
|
|
9865
|
+
return [4, deserializeAws_restXmlInvalidArgumentResponse(parsedOutput, context)];
|
|
9866
|
+
case 5:
|
|
9867
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
9868
|
+
return [3, 9];
|
|
9869
|
+
case 6:
|
|
9870
|
+
_e = [{}];
|
|
9871
|
+
return [4, deserializeAws_restXmlNoSuchRealtimeLogConfigResponse(parsedOutput, context)];
|
|
9872
|
+
case 7:
|
|
9873
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
9874
|
+
return [3, 9];
|
|
9875
|
+
case 8:
|
|
9126
9876
|
parsedBody = parsedOutput.body;
|
|
9127
9877
|
errorCode = parsedBody.Error.code || parsedBody.Error.Code || errorCode;
|
|
9128
9878
|
response = __assign(__assign({}, parsedBody.Error), { name: "" + errorCode, message: parsedBody.Error.message || parsedBody.Error.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
9129
|
-
|
|
9130
|
-
case
|
|
9879
|
+
_g.label = 9;
|
|
9880
|
+
case 9:
|
|
9131
9881
|
message = response.message || response.Message || errorCode;
|
|
9132
9882
|
response.message = message;
|
|
9133
9883
|
delete response.Message;
|
|
@@ -9135,28 +9885,28 @@ var deserializeAws_restXmlListPublicKeysCommandError = function (output, context
|
|
|
9135
9885
|
}
|
|
9136
9886
|
});
|
|
9137
9887
|
}); };
|
|
9138
|
-
export var
|
|
9888
|
+
export var deserializeAws_restXmlListResponseHeadersPoliciesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
9139
9889
|
var contents, data, _a;
|
|
9140
9890
|
return __generator(this, function (_b) {
|
|
9141
9891
|
switch (_b.label) {
|
|
9142
9892
|
case 0:
|
|
9143
9893
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
9144
|
-
return [2,
|
|
9894
|
+
return [2, deserializeAws_restXmlListResponseHeadersPoliciesCommandError(output, context)];
|
|
9145
9895
|
}
|
|
9146
9896
|
contents = {
|
|
9147
9897
|
$metadata: deserializeMetadata(output),
|
|
9148
|
-
|
|
9898
|
+
ResponseHeadersPolicyList: undefined,
|
|
9149
9899
|
};
|
|
9150
9900
|
_a = __expectObject;
|
|
9151
9901
|
return [4, parseBody(output.body, context)];
|
|
9152
9902
|
case 1:
|
|
9153
9903
|
data = _a.apply(void 0, [_b.sent()]);
|
|
9154
|
-
contents.
|
|
9904
|
+
contents.ResponseHeadersPolicyList = deserializeAws_restXmlResponseHeadersPolicyList(data, context);
|
|
9155
9905
|
return [2, Promise.resolve(contents)];
|
|
9156
9906
|
}
|
|
9157
9907
|
});
|
|
9158
9908
|
}); };
|
|
9159
|
-
var
|
|
9909
|
+
var deserializeAws_restXmlListResponseHeadersPoliciesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
9160
9910
|
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, parsedBody, message;
|
|
9161
9911
|
var _f;
|
|
9162
9912
|
return __generator(this, function (_g) {
|
|
@@ -9175,8 +9925,8 @@ var deserializeAws_restXmlListRealtimeLogConfigsCommandError = function (output,
|
|
|
9175
9925
|
case "com.amazonaws.cloudfront#AccessDenied": return [3, 2];
|
|
9176
9926
|
case "InvalidArgument": return [3, 4];
|
|
9177
9927
|
case "com.amazonaws.cloudfront#InvalidArgument": return [3, 4];
|
|
9178
|
-
case "
|
|
9179
|
-
case "com.amazonaws.cloudfront#
|
|
9928
|
+
case "NoSuchResponseHeadersPolicy": return [3, 6];
|
|
9929
|
+
case "com.amazonaws.cloudfront#NoSuchResponseHeadersPolicy": return [3, 6];
|
|
9180
9930
|
}
|
|
9181
9931
|
return [3, 8];
|
|
9182
9932
|
case 2:
|
|
@@ -9193,7 +9943,7 @@ var deserializeAws_restXmlListRealtimeLogConfigsCommandError = function (output,
|
|
|
9193
9943
|
return [3, 9];
|
|
9194
9944
|
case 6:
|
|
9195
9945
|
_e = [{}];
|
|
9196
|
-
return [4,
|
|
9946
|
+
return [4, deserializeAws_restXmlNoSuchResponseHeadersPolicyResponse(parsedOutput, context)];
|
|
9197
9947
|
case 7:
|
|
9198
9948
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
9199
9949
|
return [3, 9];
|
|
@@ -9982,16 +10732,16 @@ export var deserializeAws_restXmlUpdateDistributionCommand = function (output, c
|
|
|
9982
10732
|
});
|
|
9983
10733
|
}); };
|
|
9984
10734
|
var deserializeAws_restXmlUpdateDistributionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
9985
|
-
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32, _33, _34, parsedBody, message;
|
|
9986
|
-
var
|
|
9987
|
-
return __generator(this, function (
|
|
9988
|
-
switch (
|
|
10735
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32, _33, _34, _35, _36, parsedBody, message;
|
|
10736
|
+
var _37;
|
|
10737
|
+
return __generator(this, function (_38) {
|
|
10738
|
+
switch (_38.label) {
|
|
9989
10739
|
case 0:
|
|
9990
10740
|
_a = [__assign({}, output)];
|
|
9991
|
-
|
|
10741
|
+
_37 = {};
|
|
9992
10742
|
return [4, parseBody(output.body, context)];
|
|
9993
10743
|
case 1:
|
|
9994
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
10744
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_37.body = _38.sent(), _37)]));
|
|
9995
10745
|
errorCode = "UnknownError";
|
|
9996
10746
|
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
9997
10747
|
_b = errorCode;
|
|
@@ -10062,404 +10812,420 @@ var deserializeAws_restXmlUpdateDistributionCommandError = function (output, con
|
|
|
10062
10812
|
case "com.amazonaws.cloudfront#NoSuchOriginRequestPolicy": return [3, 64];
|
|
10063
10813
|
case "NoSuchRealtimeLogConfig": return [3, 66];
|
|
10064
10814
|
case "com.amazonaws.cloudfront#NoSuchRealtimeLogConfig": return [3, 66];
|
|
10065
|
-
case "
|
|
10066
|
-
case "com.amazonaws.cloudfront#
|
|
10067
|
-
case "
|
|
10068
|
-
case "com.amazonaws.cloudfront#
|
|
10069
|
-
case "
|
|
10070
|
-
case "com.amazonaws.cloudfront#
|
|
10071
|
-
case "
|
|
10072
|
-
case "com.amazonaws.cloudfront#
|
|
10073
|
-
case "
|
|
10074
|
-
case "com.amazonaws.cloudfront#
|
|
10075
|
-
case "
|
|
10076
|
-
case "com.amazonaws.cloudfront#
|
|
10077
|
-
case "
|
|
10078
|
-
case "com.amazonaws.cloudfront#
|
|
10079
|
-
case "
|
|
10080
|
-
case "com.amazonaws.cloudfront#
|
|
10081
|
-
case "
|
|
10082
|
-
case "com.amazonaws.cloudfront#
|
|
10083
|
-
case "
|
|
10084
|
-
case "com.amazonaws.cloudfront#
|
|
10085
|
-
case "
|
|
10086
|
-
case "com.amazonaws.cloudfront#
|
|
10087
|
-
case "
|
|
10088
|
-
case "com.amazonaws.cloudfront#
|
|
10089
|
-
case "
|
|
10090
|
-
case "com.amazonaws.cloudfront#
|
|
10091
|
-
case "
|
|
10092
|
-
case "com.amazonaws.cloudfront#
|
|
10093
|
-
case "
|
|
10094
|
-
case "com.amazonaws.cloudfront#
|
|
10095
|
-
case "
|
|
10096
|
-
case "com.amazonaws.cloudfront#
|
|
10097
|
-
case "
|
|
10098
|
-
case "com.amazonaws.cloudfront#
|
|
10099
|
-
case "
|
|
10100
|
-
case "com.amazonaws.cloudfront#
|
|
10101
|
-
case "
|
|
10102
|
-
case "com.amazonaws.cloudfront#
|
|
10103
|
-
case "
|
|
10104
|
-
case "com.amazonaws.cloudfront#
|
|
10105
|
-
case "
|
|
10106
|
-
case "com.amazonaws.cloudfront#
|
|
10107
|
-
case "
|
|
10108
|
-
case "com.amazonaws.cloudfront#
|
|
10109
|
-
case "
|
|
10110
|
-
case "com.amazonaws.cloudfront#
|
|
10111
|
-
case "
|
|
10112
|
-
case "com.amazonaws.cloudfront#
|
|
10113
|
-
|
|
10114
|
-
|
|
10815
|
+
case "NoSuchResponseHeadersPolicy": return [3, 68];
|
|
10816
|
+
case "com.amazonaws.cloudfront#NoSuchResponseHeadersPolicy": return [3, 68];
|
|
10817
|
+
case "PreconditionFailed": return [3, 70];
|
|
10818
|
+
case "com.amazonaws.cloudfront#PreconditionFailed": return [3, 70];
|
|
10819
|
+
case "RealtimeLogConfigOwnerMismatch": return [3, 72];
|
|
10820
|
+
case "com.amazonaws.cloudfront#RealtimeLogConfigOwnerMismatch": return [3, 72];
|
|
10821
|
+
case "TooManyCacheBehaviors": return [3, 74];
|
|
10822
|
+
case "com.amazonaws.cloudfront#TooManyCacheBehaviors": return [3, 74];
|
|
10823
|
+
case "TooManyCertificates": return [3, 76];
|
|
10824
|
+
case "com.amazonaws.cloudfront#TooManyCertificates": return [3, 76];
|
|
10825
|
+
case "TooManyCookieNamesInWhiteList": return [3, 78];
|
|
10826
|
+
case "com.amazonaws.cloudfront#TooManyCookieNamesInWhiteList": return [3, 78];
|
|
10827
|
+
case "TooManyDistributionCNAMEs": return [3, 80];
|
|
10828
|
+
case "com.amazonaws.cloudfront#TooManyDistributionCNAMEs": return [3, 80];
|
|
10829
|
+
case "TooManyDistributionsAssociatedToCachePolicy": return [3, 82];
|
|
10830
|
+
case "com.amazonaws.cloudfront#TooManyDistributionsAssociatedToCachePolicy": return [3, 82];
|
|
10831
|
+
case "TooManyDistributionsAssociatedToFieldLevelEncryptionConfig": return [3, 84];
|
|
10832
|
+
case "com.amazonaws.cloudfront#TooManyDistributionsAssociatedToFieldLevelEncryptionConfig": return [3, 84];
|
|
10833
|
+
case "TooManyDistributionsAssociatedToKeyGroup": return [3, 86];
|
|
10834
|
+
case "com.amazonaws.cloudfront#TooManyDistributionsAssociatedToKeyGroup": return [3, 86];
|
|
10835
|
+
case "TooManyDistributionsAssociatedToOriginRequestPolicy": return [3, 88];
|
|
10836
|
+
case "com.amazonaws.cloudfront#TooManyDistributionsAssociatedToOriginRequestPolicy": return [3, 88];
|
|
10837
|
+
case "TooManyDistributionsAssociatedToResponseHeadersPolicy": return [3, 90];
|
|
10838
|
+
case "com.amazonaws.cloudfront#TooManyDistributionsAssociatedToResponseHeadersPolicy": return [3, 90];
|
|
10839
|
+
case "TooManyDistributionsWithFunctionAssociations": return [3, 92];
|
|
10840
|
+
case "com.amazonaws.cloudfront#TooManyDistributionsWithFunctionAssociations": return [3, 92];
|
|
10841
|
+
case "TooManyDistributionsWithLambdaAssociations": return [3, 94];
|
|
10842
|
+
case "com.amazonaws.cloudfront#TooManyDistributionsWithLambdaAssociations": return [3, 94];
|
|
10843
|
+
case "TooManyDistributionsWithSingleFunctionARN": return [3, 96];
|
|
10844
|
+
case "com.amazonaws.cloudfront#TooManyDistributionsWithSingleFunctionARN": return [3, 96];
|
|
10845
|
+
case "TooManyFunctionAssociations": return [3, 98];
|
|
10846
|
+
case "com.amazonaws.cloudfront#TooManyFunctionAssociations": return [3, 98];
|
|
10847
|
+
case "TooManyHeadersInForwardedValues": return [3, 100];
|
|
10848
|
+
case "com.amazonaws.cloudfront#TooManyHeadersInForwardedValues": return [3, 100];
|
|
10849
|
+
case "TooManyKeyGroupsAssociatedToDistribution": return [3, 102];
|
|
10850
|
+
case "com.amazonaws.cloudfront#TooManyKeyGroupsAssociatedToDistribution": return [3, 102];
|
|
10851
|
+
case "TooManyLambdaFunctionAssociations": return [3, 104];
|
|
10852
|
+
case "com.amazonaws.cloudfront#TooManyLambdaFunctionAssociations": return [3, 104];
|
|
10853
|
+
case "TooManyOriginCustomHeaders": return [3, 106];
|
|
10854
|
+
case "com.amazonaws.cloudfront#TooManyOriginCustomHeaders": return [3, 106];
|
|
10855
|
+
case "TooManyOriginGroupsPerDistribution": return [3, 108];
|
|
10856
|
+
case "com.amazonaws.cloudfront#TooManyOriginGroupsPerDistribution": return [3, 108];
|
|
10857
|
+
case "TooManyOrigins": return [3, 110];
|
|
10858
|
+
case "com.amazonaws.cloudfront#TooManyOrigins": return [3, 110];
|
|
10859
|
+
case "TooManyQueryStringParameters": return [3, 112];
|
|
10860
|
+
case "com.amazonaws.cloudfront#TooManyQueryStringParameters": return [3, 112];
|
|
10861
|
+
case "TooManyTrustedSigners": return [3, 114];
|
|
10862
|
+
case "com.amazonaws.cloudfront#TooManyTrustedSigners": return [3, 114];
|
|
10863
|
+
case "TrustedKeyGroupDoesNotExist": return [3, 116];
|
|
10864
|
+
case "com.amazonaws.cloudfront#TrustedKeyGroupDoesNotExist": return [3, 116];
|
|
10865
|
+
case "TrustedSignerDoesNotExist": return [3, 118];
|
|
10866
|
+
case "com.amazonaws.cloudfront#TrustedSignerDoesNotExist": return [3, 118];
|
|
10867
|
+
}
|
|
10868
|
+
return [3, 120];
|
|
10115
10869
|
case 2:
|
|
10116
10870
|
_c = [{}];
|
|
10117
10871
|
return [4, deserializeAws_restXmlAccessDeniedResponse(parsedOutput, context)];
|
|
10118
10872
|
case 3:
|
|
10119
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(
|
|
10120
|
-
return [3,
|
|
10873
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
10874
|
+
return [3, 121];
|
|
10121
10875
|
case 4:
|
|
10122
10876
|
_d = [{}];
|
|
10123
10877
|
return [4, deserializeAws_restXmlCNAMEAlreadyExistsResponse(parsedOutput, context)];
|
|
10124
10878
|
case 5:
|
|
10125
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(
|
|
10126
|
-
return [3,
|
|
10879
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
10880
|
+
return [3, 121];
|
|
10127
10881
|
case 6:
|
|
10128
10882
|
_e = [{}];
|
|
10129
10883
|
return [4, deserializeAws_restXmlIllegalFieldLevelEncryptionConfigAssociationWithCacheBehaviorResponse(parsedOutput, context)];
|
|
10130
10884
|
case 7:
|
|
10131
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(
|
|
10132
|
-
return [3,
|
|
10885
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
10886
|
+
return [3, 121];
|
|
10133
10887
|
case 8:
|
|
10134
10888
|
_f = [{}];
|
|
10135
10889
|
return [4, deserializeAws_restXmlIllegalUpdateResponse(parsedOutput, context)];
|
|
10136
10890
|
case 9:
|
|
10137
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(
|
|
10138
|
-
return [3,
|
|
10891
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
10892
|
+
return [3, 121];
|
|
10139
10893
|
case 10:
|
|
10140
10894
|
_g = [{}];
|
|
10141
10895
|
return [4, deserializeAws_restXmlInconsistentQuantitiesResponse(parsedOutput, context)];
|
|
10142
10896
|
case 11:
|
|
10143
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(
|
|
10144
|
-
return [3,
|
|
10897
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
10898
|
+
return [3, 121];
|
|
10145
10899
|
case 12:
|
|
10146
10900
|
_h = [{}];
|
|
10147
10901
|
return [4, deserializeAws_restXmlInvalidArgumentResponse(parsedOutput, context)];
|
|
10148
10902
|
case 13:
|
|
10149
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(
|
|
10150
|
-
return [3,
|
|
10903
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
10904
|
+
return [3, 121];
|
|
10151
10905
|
case 14:
|
|
10152
10906
|
_j = [{}];
|
|
10153
10907
|
return [4, deserializeAws_restXmlInvalidDefaultRootObjectResponse(parsedOutput, context)];
|
|
10154
10908
|
case 15:
|
|
10155
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(
|
|
10156
|
-
return [3,
|
|
10909
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
10910
|
+
return [3, 121];
|
|
10157
10911
|
case 16:
|
|
10158
10912
|
_k = [{}];
|
|
10159
10913
|
return [4, deserializeAws_restXmlInvalidErrorCodeResponse(parsedOutput, context)];
|
|
10160
10914
|
case 17:
|
|
10161
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _k.concat([(
|
|
10162
|
-
return [3,
|
|
10915
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _k.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
10916
|
+
return [3, 121];
|
|
10163
10917
|
case 18:
|
|
10164
10918
|
_l = [{}];
|
|
10165
10919
|
return [4, deserializeAws_restXmlInvalidForwardCookiesResponse(parsedOutput, context)];
|
|
10166
10920
|
case 19:
|
|
10167
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _l.concat([(
|
|
10168
|
-
return [3,
|
|
10921
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _l.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
10922
|
+
return [3, 121];
|
|
10169
10923
|
case 20:
|
|
10170
10924
|
_m = [{}];
|
|
10171
10925
|
return [4, deserializeAws_restXmlInvalidFunctionAssociationResponse(parsedOutput, context)];
|
|
10172
10926
|
case 21:
|
|
10173
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _m.concat([(
|
|
10174
|
-
return [3,
|
|
10927
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _m.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
10928
|
+
return [3, 121];
|
|
10175
10929
|
case 22:
|
|
10176
10930
|
_o = [{}];
|
|
10177
10931
|
return [4, deserializeAws_restXmlInvalidGeoRestrictionParameterResponse(parsedOutput, context)];
|
|
10178
10932
|
case 23:
|
|
10179
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _o.concat([(
|
|
10180
|
-
return [3,
|
|
10933
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _o.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
10934
|
+
return [3, 121];
|
|
10181
10935
|
case 24:
|
|
10182
10936
|
_p = [{}];
|
|
10183
10937
|
return [4, deserializeAws_restXmlInvalidHeadersForS3OriginResponse(parsedOutput, context)];
|
|
10184
10938
|
case 25:
|
|
10185
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _p.concat([(
|
|
10186
|
-
return [3,
|
|
10939
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _p.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
10940
|
+
return [3, 121];
|
|
10187
10941
|
case 26:
|
|
10188
10942
|
_q = [{}];
|
|
10189
10943
|
return [4, deserializeAws_restXmlInvalidIfMatchVersionResponse(parsedOutput, context)];
|
|
10190
10944
|
case 27:
|
|
10191
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _q.concat([(
|
|
10192
|
-
return [3,
|
|
10945
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _q.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
10946
|
+
return [3, 121];
|
|
10193
10947
|
case 28:
|
|
10194
10948
|
_r = [{}];
|
|
10195
10949
|
return [4, deserializeAws_restXmlInvalidLambdaFunctionAssociationResponse(parsedOutput, context)];
|
|
10196
10950
|
case 29:
|
|
10197
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _r.concat([(
|
|
10198
|
-
return [3,
|
|
10951
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _r.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
10952
|
+
return [3, 121];
|
|
10199
10953
|
case 30:
|
|
10200
10954
|
_s = [{}];
|
|
10201
10955
|
return [4, deserializeAws_restXmlInvalidLocationCodeResponse(parsedOutput, context)];
|
|
10202
10956
|
case 31:
|
|
10203
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _s.concat([(
|
|
10204
|
-
return [3,
|
|
10957
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _s.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
10958
|
+
return [3, 121];
|
|
10205
10959
|
case 32:
|
|
10206
10960
|
_t = [{}];
|
|
10207
10961
|
return [4, deserializeAws_restXmlInvalidMinimumProtocolVersionResponse(parsedOutput, context)];
|
|
10208
10962
|
case 33:
|
|
10209
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _t.concat([(
|
|
10210
|
-
return [3,
|
|
10963
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _t.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
10964
|
+
return [3, 121];
|
|
10211
10965
|
case 34:
|
|
10212
10966
|
_u = [{}];
|
|
10213
10967
|
return [4, deserializeAws_restXmlInvalidOriginAccessIdentityResponse(parsedOutput, context)];
|
|
10214
10968
|
case 35:
|
|
10215
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _u.concat([(
|
|
10216
|
-
return [3,
|
|
10969
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _u.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
10970
|
+
return [3, 121];
|
|
10217
10971
|
case 36:
|
|
10218
10972
|
_v = [{}];
|
|
10219
10973
|
return [4, deserializeAws_restXmlInvalidOriginKeepaliveTimeoutResponse(parsedOutput, context)];
|
|
10220
10974
|
case 37:
|
|
10221
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _v.concat([(
|
|
10222
|
-
return [3,
|
|
10975
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _v.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
10976
|
+
return [3, 121];
|
|
10223
10977
|
case 38:
|
|
10224
10978
|
_w = [{}];
|
|
10225
10979
|
return [4, deserializeAws_restXmlInvalidOriginReadTimeoutResponse(parsedOutput, context)];
|
|
10226
10980
|
case 39:
|
|
10227
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _w.concat([(
|
|
10228
|
-
return [3,
|
|
10981
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _w.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
10982
|
+
return [3, 121];
|
|
10229
10983
|
case 40:
|
|
10230
10984
|
_x = [{}];
|
|
10231
10985
|
return [4, deserializeAws_restXmlInvalidQueryStringParametersResponse(parsedOutput, context)];
|
|
10232
10986
|
case 41:
|
|
10233
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _x.concat([(
|
|
10234
|
-
return [3,
|
|
10987
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _x.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
10988
|
+
return [3, 121];
|
|
10235
10989
|
case 42:
|
|
10236
10990
|
_y = [{}];
|
|
10237
10991
|
return [4, deserializeAws_restXmlInvalidRelativePathResponse(parsedOutput, context)];
|
|
10238
10992
|
case 43:
|
|
10239
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _y.concat([(
|
|
10240
|
-
return [3,
|
|
10993
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _y.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
10994
|
+
return [3, 121];
|
|
10241
10995
|
case 44:
|
|
10242
10996
|
_z = [{}];
|
|
10243
10997
|
return [4, deserializeAws_restXmlInvalidRequiredProtocolResponse(parsedOutput, context)];
|
|
10244
10998
|
case 45:
|
|
10245
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _z.concat([(
|
|
10246
|
-
return [3,
|
|
10999
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _z.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
11000
|
+
return [3, 121];
|
|
10247
11001
|
case 46:
|
|
10248
11002
|
_0 = [{}];
|
|
10249
11003
|
return [4, deserializeAws_restXmlInvalidResponseCodeResponse(parsedOutput, context)];
|
|
10250
11004
|
case 47:
|
|
10251
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _0.concat([(
|
|
10252
|
-
return [3,
|
|
11005
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _0.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
11006
|
+
return [3, 121];
|
|
10253
11007
|
case 48:
|
|
10254
11008
|
_1 = [{}];
|
|
10255
11009
|
return [4, deserializeAws_restXmlInvalidTTLOrderResponse(parsedOutput, context)];
|
|
10256
11010
|
case 49:
|
|
10257
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _1.concat([(
|
|
10258
|
-
return [3,
|
|
11011
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _1.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
11012
|
+
return [3, 121];
|
|
10259
11013
|
case 50:
|
|
10260
11014
|
_2 = [{}];
|
|
10261
11015
|
return [4, deserializeAws_restXmlInvalidViewerCertificateResponse(parsedOutput, context)];
|
|
10262
11016
|
case 51:
|
|
10263
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _2.concat([(
|
|
10264
|
-
return [3,
|
|
11017
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _2.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
11018
|
+
return [3, 121];
|
|
10265
11019
|
case 52:
|
|
10266
11020
|
_3 = [{}];
|
|
10267
11021
|
return [4, deserializeAws_restXmlInvalidWebACLIdResponse(parsedOutput, context)];
|
|
10268
11022
|
case 53:
|
|
10269
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _3.concat([(
|
|
10270
|
-
return [3,
|
|
11023
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _3.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
11024
|
+
return [3, 121];
|
|
10271
11025
|
case 54:
|
|
10272
11026
|
_4 = [{}];
|
|
10273
11027
|
return [4, deserializeAws_restXmlMissingBodyResponse(parsedOutput, context)];
|
|
10274
11028
|
case 55:
|
|
10275
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _4.concat([(
|
|
10276
|
-
return [3,
|
|
11029
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _4.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
11030
|
+
return [3, 121];
|
|
10277
11031
|
case 56:
|
|
10278
11032
|
_5 = [{}];
|
|
10279
11033
|
return [4, deserializeAws_restXmlNoSuchCachePolicyResponse(parsedOutput, context)];
|
|
10280
11034
|
case 57:
|
|
10281
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _5.concat([(
|
|
10282
|
-
return [3,
|
|
11035
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _5.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
11036
|
+
return [3, 121];
|
|
10283
11037
|
case 58:
|
|
10284
11038
|
_6 = [{}];
|
|
10285
11039
|
return [4, deserializeAws_restXmlNoSuchDistributionResponse(parsedOutput, context)];
|
|
10286
11040
|
case 59:
|
|
10287
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _6.concat([(
|
|
10288
|
-
return [3,
|
|
11041
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _6.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
11042
|
+
return [3, 121];
|
|
10289
11043
|
case 60:
|
|
10290
11044
|
_7 = [{}];
|
|
10291
11045
|
return [4, deserializeAws_restXmlNoSuchFieldLevelEncryptionConfigResponse(parsedOutput, context)];
|
|
10292
11046
|
case 61:
|
|
10293
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _7.concat([(
|
|
10294
|
-
return [3,
|
|
11047
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _7.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
11048
|
+
return [3, 121];
|
|
10295
11049
|
case 62:
|
|
10296
11050
|
_8 = [{}];
|
|
10297
11051
|
return [4, deserializeAws_restXmlNoSuchOriginResponse(parsedOutput, context)];
|
|
10298
11052
|
case 63:
|
|
10299
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _8.concat([(
|
|
10300
|
-
return [3,
|
|
11053
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _8.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
11054
|
+
return [3, 121];
|
|
10301
11055
|
case 64:
|
|
10302
11056
|
_9 = [{}];
|
|
10303
11057
|
return [4, deserializeAws_restXmlNoSuchOriginRequestPolicyResponse(parsedOutput, context)];
|
|
10304
11058
|
case 65:
|
|
10305
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _9.concat([(
|
|
10306
|
-
return [3,
|
|
11059
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _9.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
11060
|
+
return [3, 121];
|
|
10307
11061
|
case 66:
|
|
10308
11062
|
_10 = [{}];
|
|
10309
11063
|
return [4, deserializeAws_restXmlNoSuchRealtimeLogConfigResponse(parsedOutput, context)];
|
|
10310
11064
|
case 67:
|
|
10311
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _10.concat([(
|
|
10312
|
-
return [3,
|
|
11065
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _10.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
11066
|
+
return [3, 121];
|
|
10313
11067
|
case 68:
|
|
10314
11068
|
_11 = [{}];
|
|
10315
|
-
return [4,
|
|
11069
|
+
return [4, deserializeAws_restXmlNoSuchResponseHeadersPolicyResponse(parsedOutput, context)];
|
|
10316
11070
|
case 69:
|
|
10317
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _11.concat([(
|
|
10318
|
-
return [3,
|
|
11071
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _11.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
11072
|
+
return [3, 121];
|
|
10319
11073
|
case 70:
|
|
10320
11074
|
_12 = [{}];
|
|
10321
|
-
return [4,
|
|
11075
|
+
return [4, deserializeAws_restXmlPreconditionFailedResponse(parsedOutput, context)];
|
|
10322
11076
|
case 71:
|
|
10323
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _12.concat([(
|
|
10324
|
-
return [3,
|
|
11077
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _12.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
11078
|
+
return [3, 121];
|
|
10325
11079
|
case 72:
|
|
10326
11080
|
_13 = [{}];
|
|
10327
|
-
return [4,
|
|
11081
|
+
return [4, deserializeAws_restXmlRealtimeLogConfigOwnerMismatchResponse(parsedOutput, context)];
|
|
10328
11082
|
case 73:
|
|
10329
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _13.concat([(
|
|
10330
|
-
return [3,
|
|
11083
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _13.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
11084
|
+
return [3, 121];
|
|
10331
11085
|
case 74:
|
|
10332
11086
|
_14 = [{}];
|
|
10333
|
-
return [4,
|
|
11087
|
+
return [4, deserializeAws_restXmlTooManyCacheBehaviorsResponse(parsedOutput, context)];
|
|
10334
11088
|
case 75:
|
|
10335
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _14.concat([(
|
|
10336
|
-
return [3,
|
|
11089
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _14.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
11090
|
+
return [3, 121];
|
|
10337
11091
|
case 76:
|
|
10338
11092
|
_15 = [{}];
|
|
10339
|
-
return [4,
|
|
11093
|
+
return [4, deserializeAws_restXmlTooManyCertificatesResponse(parsedOutput, context)];
|
|
10340
11094
|
case 77:
|
|
10341
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _15.concat([(
|
|
10342
|
-
return [3,
|
|
11095
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _15.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
11096
|
+
return [3, 121];
|
|
10343
11097
|
case 78:
|
|
10344
11098
|
_16 = [{}];
|
|
10345
|
-
return [4,
|
|
11099
|
+
return [4, deserializeAws_restXmlTooManyCookieNamesInWhiteListResponse(parsedOutput, context)];
|
|
10346
11100
|
case 79:
|
|
10347
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _16.concat([(
|
|
10348
|
-
return [3,
|
|
11101
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _16.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
11102
|
+
return [3, 121];
|
|
10349
11103
|
case 80:
|
|
10350
11104
|
_17 = [{}];
|
|
10351
|
-
return [4,
|
|
11105
|
+
return [4, deserializeAws_restXmlTooManyDistributionCNAMEsResponse(parsedOutput, context)];
|
|
10352
11106
|
case 81:
|
|
10353
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _17.concat([(
|
|
10354
|
-
return [3,
|
|
11107
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _17.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
11108
|
+
return [3, 121];
|
|
10355
11109
|
case 82:
|
|
10356
11110
|
_18 = [{}];
|
|
10357
|
-
return [4,
|
|
11111
|
+
return [4, deserializeAws_restXmlTooManyDistributionsAssociatedToCachePolicyResponse(parsedOutput, context)];
|
|
10358
11112
|
case 83:
|
|
10359
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _18.concat([(
|
|
10360
|
-
return [3,
|
|
11113
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _18.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
11114
|
+
return [3, 121];
|
|
10361
11115
|
case 84:
|
|
10362
11116
|
_19 = [{}];
|
|
10363
|
-
return [4,
|
|
11117
|
+
return [4, deserializeAws_restXmlTooManyDistributionsAssociatedToFieldLevelEncryptionConfigResponse(parsedOutput, context)];
|
|
10364
11118
|
case 85:
|
|
10365
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _19.concat([(
|
|
10366
|
-
return [3,
|
|
11119
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _19.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
11120
|
+
return [3, 121];
|
|
10367
11121
|
case 86:
|
|
10368
11122
|
_20 = [{}];
|
|
10369
|
-
return [4,
|
|
11123
|
+
return [4, deserializeAws_restXmlTooManyDistributionsAssociatedToKeyGroupResponse(parsedOutput, context)];
|
|
10370
11124
|
case 87:
|
|
10371
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _20.concat([(
|
|
10372
|
-
return [3,
|
|
11125
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _20.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
11126
|
+
return [3, 121];
|
|
10373
11127
|
case 88:
|
|
10374
11128
|
_21 = [{}];
|
|
10375
|
-
return [4,
|
|
11129
|
+
return [4, deserializeAws_restXmlTooManyDistributionsAssociatedToOriginRequestPolicyResponse(parsedOutput, context)];
|
|
10376
11130
|
case 89:
|
|
10377
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _21.concat([(
|
|
10378
|
-
return [3,
|
|
11131
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _21.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
11132
|
+
return [3, 121];
|
|
10379
11133
|
case 90:
|
|
10380
11134
|
_22 = [{}];
|
|
10381
|
-
return [4,
|
|
11135
|
+
return [4, deserializeAws_restXmlTooManyDistributionsAssociatedToResponseHeadersPolicyResponse(parsedOutput, context)];
|
|
10382
11136
|
case 91:
|
|
10383
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _22.concat([(
|
|
10384
|
-
return [3,
|
|
11137
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _22.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
11138
|
+
return [3, 121];
|
|
10385
11139
|
case 92:
|
|
10386
11140
|
_23 = [{}];
|
|
10387
|
-
return [4,
|
|
11141
|
+
return [4, deserializeAws_restXmlTooManyDistributionsWithFunctionAssociationsResponse(parsedOutput, context)];
|
|
10388
11142
|
case 93:
|
|
10389
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _23.concat([(
|
|
10390
|
-
return [3,
|
|
11143
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _23.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
11144
|
+
return [3, 121];
|
|
10391
11145
|
case 94:
|
|
10392
11146
|
_24 = [{}];
|
|
10393
|
-
return [4,
|
|
11147
|
+
return [4, deserializeAws_restXmlTooManyDistributionsWithLambdaAssociationsResponse(parsedOutput, context)];
|
|
10394
11148
|
case 95:
|
|
10395
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _24.concat([(
|
|
10396
|
-
return [3,
|
|
11149
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _24.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
11150
|
+
return [3, 121];
|
|
10397
11151
|
case 96:
|
|
10398
11152
|
_25 = [{}];
|
|
10399
|
-
return [4,
|
|
11153
|
+
return [4, deserializeAws_restXmlTooManyDistributionsWithSingleFunctionARNResponse(parsedOutput, context)];
|
|
10400
11154
|
case 97:
|
|
10401
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _25.concat([(
|
|
10402
|
-
return [3,
|
|
11155
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _25.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
11156
|
+
return [3, 121];
|
|
10403
11157
|
case 98:
|
|
10404
11158
|
_26 = [{}];
|
|
10405
|
-
return [4,
|
|
11159
|
+
return [4, deserializeAws_restXmlTooManyFunctionAssociationsResponse(parsedOutput, context)];
|
|
10406
11160
|
case 99:
|
|
10407
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _26.concat([(
|
|
10408
|
-
return [3,
|
|
11161
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _26.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
11162
|
+
return [3, 121];
|
|
10409
11163
|
case 100:
|
|
10410
11164
|
_27 = [{}];
|
|
10411
|
-
return [4,
|
|
11165
|
+
return [4, deserializeAws_restXmlTooManyHeadersInForwardedValuesResponse(parsedOutput, context)];
|
|
10412
11166
|
case 101:
|
|
10413
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _27.concat([(
|
|
10414
|
-
return [3,
|
|
11167
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _27.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
11168
|
+
return [3, 121];
|
|
10415
11169
|
case 102:
|
|
10416
11170
|
_28 = [{}];
|
|
10417
|
-
return [4,
|
|
11171
|
+
return [4, deserializeAws_restXmlTooManyKeyGroupsAssociatedToDistributionResponse(parsedOutput, context)];
|
|
10418
11172
|
case 103:
|
|
10419
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _28.concat([(
|
|
10420
|
-
return [3,
|
|
11173
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _28.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
11174
|
+
return [3, 121];
|
|
10421
11175
|
case 104:
|
|
10422
11176
|
_29 = [{}];
|
|
10423
|
-
return [4,
|
|
11177
|
+
return [4, deserializeAws_restXmlTooManyLambdaFunctionAssociationsResponse(parsedOutput, context)];
|
|
10424
11178
|
case 105:
|
|
10425
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _29.concat([(
|
|
10426
|
-
return [3,
|
|
11179
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _29.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
11180
|
+
return [3, 121];
|
|
10427
11181
|
case 106:
|
|
10428
11182
|
_30 = [{}];
|
|
10429
|
-
return [4,
|
|
11183
|
+
return [4, deserializeAws_restXmlTooManyOriginCustomHeadersResponse(parsedOutput, context)];
|
|
10430
11184
|
case 107:
|
|
10431
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _30.concat([(
|
|
10432
|
-
return [3,
|
|
11185
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _30.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
11186
|
+
return [3, 121];
|
|
10433
11187
|
case 108:
|
|
10434
11188
|
_31 = [{}];
|
|
10435
|
-
return [4,
|
|
11189
|
+
return [4, deserializeAws_restXmlTooManyOriginGroupsPerDistributionResponse(parsedOutput, context)];
|
|
10436
11190
|
case 109:
|
|
10437
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _31.concat([(
|
|
10438
|
-
return [3,
|
|
11191
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _31.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
11192
|
+
return [3, 121];
|
|
10439
11193
|
case 110:
|
|
10440
11194
|
_32 = [{}];
|
|
10441
|
-
return [4,
|
|
11195
|
+
return [4, deserializeAws_restXmlTooManyOriginsResponse(parsedOutput, context)];
|
|
10442
11196
|
case 111:
|
|
10443
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _32.concat([(
|
|
10444
|
-
return [3,
|
|
11197
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _32.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
11198
|
+
return [3, 121];
|
|
10445
11199
|
case 112:
|
|
10446
11200
|
_33 = [{}];
|
|
10447
|
-
return [4,
|
|
11201
|
+
return [4, deserializeAws_restXmlTooManyQueryStringParametersResponse(parsedOutput, context)];
|
|
10448
11202
|
case 113:
|
|
10449
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _33.concat([(
|
|
10450
|
-
return [3,
|
|
11203
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _33.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
11204
|
+
return [3, 121];
|
|
10451
11205
|
case 114:
|
|
10452
11206
|
_34 = [{}];
|
|
10453
|
-
return [4,
|
|
11207
|
+
return [4, deserializeAws_restXmlTooManyTrustedSignersResponse(parsedOutput, context)];
|
|
10454
11208
|
case 115:
|
|
10455
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _34.concat([(
|
|
10456
|
-
return [3,
|
|
11209
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _34.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
11210
|
+
return [3, 121];
|
|
10457
11211
|
case 116:
|
|
11212
|
+
_35 = [{}];
|
|
11213
|
+
return [4, deserializeAws_restXmlTrustedKeyGroupDoesNotExistResponse(parsedOutput, context)];
|
|
11214
|
+
case 117:
|
|
11215
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _35.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
11216
|
+
return [3, 121];
|
|
11217
|
+
case 118:
|
|
11218
|
+
_36 = [{}];
|
|
11219
|
+
return [4, deserializeAws_restXmlTrustedSignerDoesNotExistResponse(parsedOutput, context)];
|
|
11220
|
+
case 119:
|
|
11221
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _36.concat([(_38.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
11222
|
+
return [3, 121];
|
|
11223
|
+
case 120:
|
|
10458
11224
|
parsedBody = parsedOutput.body;
|
|
10459
11225
|
errorCode = parsedBody.Error.code || parsedBody.Error.Code || errorCode;
|
|
10460
11226
|
response = __assign(__assign({}, parsedBody.Error), { name: "" + errorCode, message: parsedBody.Error.message || parsedBody.Error.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
10461
|
-
|
|
10462
|
-
case
|
|
11227
|
+
_38.label = 121;
|
|
11228
|
+
case 121:
|
|
10463
11229
|
message = response.message || response.Message || errorCode;
|
|
10464
11230
|
response.message = message;
|
|
10465
11231
|
delete response.Message;
|
|
@@ -11299,6 +12065,133 @@ var deserializeAws_restXmlUpdateRealtimeLogConfigCommandError = function (output
|
|
|
11299
12065
|
}
|
|
11300
12066
|
});
|
|
11301
12067
|
}); };
|
|
12068
|
+
export var deserializeAws_restXmlUpdateResponseHeadersPolicyCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
12069
|
+
var contents, data, _a;
|
|
12070
|
+
return __generator(this, function (_b) {
|
|
12071
|
+
switch (_b.label) {
|
|
12072
|
+
case 0:
|
|
12073
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
12074
|
+
return [2, deserializeAws_restXmlUpdateResponseHeadersPolicyCommandError(output, context)];
|
|
12075
|
+
}
|
|
12076
|
+
contents = {
|
|
12077
|
+
$metadata: deserializeMetadata(output),
|
|
12078
|
+
ETag: undefined,
|
|
12079
|
+
ResponseHeadersPolicy: undefined,
|
|
12080
|
+
};
|
|
12081
|
+
if (output.headers["etag"] !== undefined) {
|
|
12082
|
+
contents.ETag = output.headers["etag"];
|
|
12083
|
+
}
|
|
12084
|
+
_a = __expectObject;
|
|
12085
|
+
return [4, parseBody(output.body, context)];
|
|
12086
|
+
case 1:
|
|
12087
|
+
data = _a.apply(void 0, [_b.sent()]);
|
|
12088
|
+
contents.ResponseHeadersPolicy = deserializeAws_restXmlResponseHeadersPolicy(data, context);
|
|
12089
|
+
return [2, Promise.resolve(contents)];
|
|
12090
|
+
}
|
|
12091
|
+
});
|
|
12092
|
+
}); };
|
|
12093
|
+
var deserializeAws_restXmlUpdateResponseHeadersPolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
12094
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, parsedBody, message;
|
|
12095
|
+
var _m;
|
|
12096
|
+
return __generator(this, function (_o) {
|
|
12097
|
+
switch (_o.label) {
|
|
12098
|
+
case 0:
|
|
12099
|
+
_a = [__assign({}, output)];
|
|
12100
|
+
_m = {};
|
|
12101
|
+
return [4, parseBody(output.body, context)];
|
|
12102
|
+
case 1:
|
|
12103
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_m.body = _o.sent(), _m)]));
|
|
12104
|
+
errorCode = "UnknownError";
|
|
12105
|
+
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
12106
|
+
_b = errorCode;
|
|
12107
|
+
switch (_b) {
|
|
12108
|
+
case "AccessDenied": return [3, 2];
|
|
12109
|
+
case "com.amazonaws.cloudfront#AccessDenied": return [3, 2];
|
|
12110
|
+
case "IllegalUpdate": return [3, 4];
|
|
12111
|
+
case "com.amazonaws.cloudfront#IllegalUpdate": return [3, 4];
|
|
12112
|
+
case "InconsistentQuantities": return [3, 6];
|
|
12113
|
+
case "com.amazonaws.cloudfront#InconsistentQuantities": return [3, 6];
|
|
12114
|
+
case "InvalidArgument": return [3, 8];
|
|
12115
|
+
case "com.amazonaws.cloudfront#InvalidArgument": return [3, 8];
|
|
12116
|
+
case "InvalidIfMatchVersion": return [3, 10];
|
|
12117
|
+
case "com.amazonaws.cloudfront#InvalidIfMatchVersion": return [3, 10];
|
|
12118
|
+
case "NoSuchResponseHeadersPolicy": return [3, 12];
|
|
12119
|
+
case "com.amazonaws.cloudfront#NoSuchResponseHeadersPolicy": return [3, 12];
|
|
12120
|
+
case "PreconditionFailed": return [3, 14];
|
|
12121
|
+
case "com.amazonaws.cloudfront#PreconditionFailed": return [3, 14];
|
|
12122
|
+
case "ResponseHeadersPolicyAlreadyExists": return [3, 16];
|
|
12123
|
+
case "com.amazonaws.cloudfront#ResponseHeadersPolicyAlreadyExists": return [3, 16];
|
|
12124
|
+
case "TooManyCustomHeadersInResponseHeadersPolicy": return [3, 18];
|
|
12125
|
+
case "com.amazonaws.cloudfront#TooManyCustomHeadersInResponseHeadersPolicy": return [3, 18];
|
|
12126
|
+
}
|
|
12127
|
+
return [3, 20];
|
|
12128
|
+
case 2:
|
|
12129
|
+
_c = [{}];
|
|
12130
|
+
return [4, deserializeAws_restXmlAccessDeniedResponse(parsedOutput, context)];
|
|
12131
|
+
case 3:
|
|
12132
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
12133
|
+
return [3, 21];
|
|
12134
|
+
case 4:
|
|
12135
|
+
_d = [{}];
|
|
12136
|
+
return [4, deserializeAws_restXmlIllegalUpdateResponse(parsedOutput, context)];
|
|
12137
|
+
case 5:
|
|
12138
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
12139
|
+
return [3, 21];
|
|
12140
|
+
case 6:
|
|
12141
|
+
_e = [{}];
|
|
12142
|
+
return [4, deserializeAws_restXmlInconsistentQuantitiesResponse(parsedOutput, context)];
|
|
12143
|
+
case 7:
|
|
12144
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
12145
|
+
return [3, 21];
|
|
12146
|
+
case 8:
|
|
12147
|
+
_f = [{}];
|
|
12148
|
+
return [4, deserializeAws_restXmlInvalidArgumentResponse(parsedOutput, context)];
|
|
12149
|
+
case 9:
|
|
12150
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
12151
|
+
return [3, 21];
|
|
12152
|
+
case 10:
|
|
12153
|
+
_g = [{}];
|
|
12154
|
+
return [4, deserializeAws_restXmlInvalidIfMatchVersionResponse(parsedOutput, context)];
|
|
12155
|
+
case 11:
|
|
12156
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
12157
|
+
return [3, 21];
|
|
12158
|
+
case 12:
|
|
12159
|
+
_h = [{}];
|
|
12160
|
+
return [4, deserializeAws_restXmlNoSuchResponseHeadersPolicyResponse(parsedOutput, context)];
|
|
12161
|
+
case 13:
|
|
12162
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
12163
|
+
return [3, 21];
|
|
12164
|
+
case 14:
|
|
12165
|
+
_j = [{}];
|
|
12166
|
+
return [4, deserializeAws_restXmlPreconditionFailedResponse(parsedOutput, context)];
|
|
12167
|
+
case 15:
|
|
12168
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
12169
|
+
return [3, 21];
|
|
12170
|
+
case 16:
|
|
12171
|
+
_k = [{}];
|
|
12172
|
+
return [4, deserializeAws_restXmlResponseHeadersPolicyAlreadyExistsResponse(parsedOutput, context)];
|
|
12173
|
+
case 17:
|
|
12174
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _k.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
12175
|
+
return [3, 21];
|
|
12176
|
+
case 18:
|
|
12177
|
+
_l = [{}];
|
|
12178
|
+
return [4, deserializeAws_restXmlTooManyCustomHeadersInResponseHeadersPolicyResponse(parsedOutput, context)];
|
|
12179
|
+
case 19:
|
|
12180
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _l.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
12181
|
+
return [3, 21];
|
|
12182
|
+
case 20:
|
|
12183
|
+
parsedBody = parsedOutput.body;
|
|
12184
|
+
errorCode = parsedBody.Error.code || parsedBody.Error.Code || errorCode;
|
|
12185
|
+
response = __assign(__assign({}, parsedBody.Error), { name: "" + errorCode, message: parsedBody.Error.message || parsedBody.Error.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
12186
|
+
_o.label = 21;
|
|
12187
|
+
case 21:
|
|
12188
|
+
message = response.message || response.Message || errorCode;
|
|
12189
|
+
response.message = message;
|
|
12190
|
+
delete response.Message;
|
|
12191
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
12192
|
+
}
|
|
12193
|
+
});
|
|
12194
|
+
}); };
|
|
11302
12195
|
export var deserializeAws_restXmlUpdateStreamingDistributionCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
11303
12196
|
var contents, data, _a;
|
|
11304
12197
|
return __generator(this, function (_b) {
|
|
@@ -12418,6 +13311,22 @@ var deserializeAws_restXmlNoSuchResourceResponse = function (parsedOutput, conte
|
|
|
12418
13311
|
return [2, contents];
|
|
12419
13312
|
});
|
|
12420
13313
|
}); };
|
|
13314
|
+
var deserializeAws_restXmlNoSuchResponseHeadersPolicyResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
13315
|
+
var contents, data;
|
|
13316
|
+
return __generator(this, function (_a) {
|
|
13317
|
+
contents = {
|
|
13318
|
+
name: "NoSuchResponseHeadersPolicy",
|
|
13319
|
+
$fault: "client",
|
|
13320
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
13321
|
+
Message: undefined,
|
|
13322
|
+
};
|
|
13323
|
+
data = parsedOutput.body.Error;
|
|
13324
|
+
if (data["Message"] !== undefined) {
|
|
13325
|
+
contents.Message = __expectString(data["Message"]);
|
|
13326
|
+
}
|
|
13327
|
+
return [2, contents];
|
|
13328
|
+
});
|
|
13329
|
+
}); };
|
|
12421
13330
|
var deserializeAws_restXmlNoSuchStreamingDistributionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
12422
13331
|
var contents, data;
|
|
12423
13332
|
return __generator(this, function (_a) {
|
|
@@ -12594,6 +13503,38 @@ var deserializeAws_restXmlResourceInUseResponse = function (parsedOutput, contex
|
|
|
12594
13503
|
return [2, contents];
|
|
12595
13504
|
});
|
|
12596
13505
|
}); };
|
|
13506
|
+
var deserializeAws_restXmlResponseHeadersPolicyAlreadyExistsResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
13507
|
+
var contents, data;
|
|
13508
|
+
return __generator(this, function (_a) {
|
|
13509
|
+
contents = {
|
|
13510
|
+
name: "ResponseHeadersPolicyAlreadyExists",
|
|
13511
|
+
$fault: "client",
|
|
13512
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
13513
|
+
Message: undefined,
|
|
13514
|
+
};
|
|
13515
|
+
data = parsedOutput.body.Error;
|
|
13516
|
+
if (data["Message"] !== undefined) {
|
|
13517
|
+
contents.Message = __expectString(data["Message"]);
|
|
13518
|
+
}
|
|
13519
|
+
return [2, contents];
|
|
13520
|
+
});
|
|
13521
|
+
}); };
|
|
13522
|
+
var deserializeAws_restXmlResponseHeadersPolicyInUseResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
13523
|
+
var contents, data;
|
|
13524
|
+
return __generator(this, function (_a) {
|
|
13525
|
+
contents = {
|
|
13526
|
+
name: "ResponseHeadersPolicyInUse",
|
|
13527
|
+
$fault: "client",
|
|
13528
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
13529
|
+
Message: undefined,
|
|
13530
|
+
};
|
|
13531
|
+
data = parsedOutput.body.Error;
|
|
13532
|
+
if (data["Message"] !== undefined) {
|
|
13533
|
+
contents.Message = __expectString(data["Message"]);
|
|
13534
|
+
}
|
|
13535
|
+
return [2, contents];
|
|
13536
|
+
});
|
|
13537
|
+
}); };
|
|
12597
13538
|
var deserializeAws_restXmlStreamingDistributionAlreadyExistsResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
12598
13539
|
var contents, data;
|
|
12599
13540
|
return __generator(this, function (_a) {
|
|
@@ -12742,7 +13683,23 @@ var deserializeAws_restXmlTooManyCookiesInOriginRequestPolicyResponse = function
|
|
|
12742
13683
|
var contents, data;
|
|
12743
13684
|
return __generator(this, function (_a) {
|
|
12744
13685
|
contents = {
|
|
12745
|
-
name: "TooManyCookiesInOriginRequestPolicy",
|
|
13686
|
+
name: "TooManyCookiesInOriginRequestPolicy",
|
|
13687
|
+
$fault: "client",
|
|
13688
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
13689
|
+
Message: undefined,
|
|
13690
|
+
};
|
|
13691
|
+
data = parsedOutput.body.Error;
|
|
13692
|
+
if (data["Message"] !== undefined) {
|
|
13693
|
+
contents.Message = __expectString(data["Message"]);
|
|
13694
|
+
}
|
|
13695
|
+
return [2, contents];
|
|
13696
|
+
});
|
|
13697
|
+
}); };
|
|
13698
|
+
var deserializeAws_restXmlTooManyCustomHeadersInResponseHeadersPolicyResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
13699
|
+
var contents, data;
|
|
13700
|
+
return __generator(this, function (_a) {
|
|
13701
|
+
contents = {
|
|
13702
|
+
name: "TooManyCustomHeadersInResponseHeadersPolicy",
|
|
12746
13703
|
$fault: "client",
|
|
12747
13704
|
$metadata: deserializeMetadata(parsedOutput),
|
|
12748
13705
|
Message: undefined,
|
|
@@ -12850,6 +13807,22 @@ var deserializeAws_restXmlTooManyDistributionsAssociatedToOriginRequestPolicyRes
|
|
|
12850
13807
|
return [2, contents];
|
|
12851
13808
|
});
|
|
12852
13809
|
}); };
|
|
13810
|
+
var deserializeAws_restXmlTooManyDistributionsAssociatedToResponseHeadersPolicyResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
13811
|
+
var contents, data;
|
|
13812
|
+
return __generator(this, function (_a) {
|
|
13813
|
+
contents = {
|
|
13814
|
+
name: "TooManyDistributionsAssociatedToResponseHeadersPolicy",
|
|
13815
|
+
$fault: "client",
|
|
13816
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
13817
|
+
Message: undefined,
|
|
13818
|
+
};
|
|
13819
|
+
data = parsedOutput.body.Error;
|
|
13820
|
+
if (data["Message"] !== undefined) {
|
|
13821
|
+
contents.Message = __expectString(data["Message"]);
|
|
13822
|
+
}
|
|
13823
|
+
return [2, contents];
|
|
13824
|
+
});
|
|
13825
|
+
}); };
|
|
12853
13826
|
var deserializeAws_restXmlTooManyDistributionsWithFunctionAssociationsResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
12854
13827
|
var contents, data;
|
|
12855
13828
|
return __generator(this, function (_a) {
|
|
@@ -13298,6 +14271,22 @@ var deserializeAws_restXmlTooManyRealtimeLogConfigsResponse = function (parsedOu
|
|
|
13298
14271
|
return [2, contents];
|
|
13299
14272
|
});
|
|
13300
14273
|
}); };
|
|
14274
|
+
var deserializeAws_restXmlTooManyResponseHeadersPoliciesResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
14275
|
+
var contents, data;
|
|
14276
|
+
return __generator(this, function (_a) {
|
|
14277
|
+
contents = {
|
|
14278
|
+
name: "TooManyResponseHeadersPolicies",
|
|
14279
|
+
$fault: "client",
|
|
14280
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
14281
|
+
Message: undefined,
|
|
14282
|
+
};
|
|
14283
|
+
data = parsedOutput.body.Error;
|
|
14284
|
+
if (data["Message"] !== undefined) {
|
|
14285
|
+
contents.Message = __expectString(data["Message"]);
|
|
14286
|
+
}
|
|
14287
|
+
return [2, contents];
|
|
14288
|
+
});
|
|
14289
|
+
}); };
|
|
13301
14290
|
var deserializeAws_restXmlTooManyStreamingDistributionCNAMEsResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
13302
14291
|
var contents, data;
|
|
13303
14292
|
return __generator(this, function (_a) {
|
|
@@ -13394,6 +14383,50 @@ var deserializeAws_restXmlUnsupportedOperationResponse = function (parsedOutput,
|
|
|
13394
14383
|
return [2, contents];
|
|
13395
14384
|
});
|
|
13396
14385
|
}); };
|
|
14386
|
+
var serializeAws_restXmlAccessControlAllowHeadersList = function (input, context) {
|
|
14387
|
+
return input
|
|
14388
|
+
.filter(function (e) { return e != null; })
|
|
14389
|
+
.map(function (entry) {
|
|
14390
|
+
if (entry === null) {
|
|
14391
|
+
return null;
|
|
14392
|
+
}
|
|
14393
|
+
var node = new __XmlNode("string").addChildNode(new __XmlText(entry));
|
|
14394
|
+
return node.withName("Header");
|
|
14395
|
+
});
|
|
14396
|
+
};
|
|
14397
|
+
var serializeAws_restXmlAccessControlAllowMethodsList = function (input, context) {
|
|
14398
|
+
return input
|
|
14399
|
+
.filter(function (e) { return e != null; })
|
|
14400
|
+
.map(function (entry) {
|
|
14401
|
+
if (entry === null) {
|
|
14402
|
+
return null;
|
|
14403
|
+
}
|
|
14404
|
+
var node = new __XmlNode("ResponseHeadersPolicyAccessControlAllowMethodsValues").addChildNode(new __XmlText(entry));
|
|
14405
|
+
return node.withName("Method");
|
|
14406
|
+
});
|
|
14407
|
+
};
|
|
14408
|
+
var serializeAws_restXmlAccessControlAllowOriginsList = function (input, context) {
|
|
14409
|
+
return input
|
|
14410
|
+
.filter(function (e) { return e != null; })
|
|
14411
|
+
.map(function (entry) {
|
|
14412
|
+
if (entry === null) {
|
|
14413
|
+
return null;
|
|
14414
|
+
}
|
|
14415
|
+
var node = new __XmlNode("string").addChildNode(new __XmlText(entry));
|
|
14416
|
+
return node.withName("Origin");
|
|
14417
|
+
});
|
|
14418
|
+
};
|
|
14419
|
+
var serializeAws_restXmlAccessControlExposeHeadersList = function (input, context) {
|
|
14420
|
+
return input
|
|
14421
|
+
.filter(function (e) { return e != null; })
|
|
14422
|
+
.map(function (entry) {
|
|
14423
|
+
if (entry === null) {
|
|
14424
|
+
return null;
|
|
14425
|
+
}
|
|
14426
|
+
var node = new __XmlNode("string").addChildNode(new __XmlText(entry));
|
|
14427
|
+
return node.withName("Header");
|
|
14428
|
+
});
|
|
14429
|
+
};
|
|
13397
14430
|
var serializeAws_restXmlAliases = function (input, context) {
|
|
13398
14431
|
var bodyNode = new __XmlNode("Aliases");
|
|
13399
14432
|
if (input.Quantity !== undefined && input.Quantity !== null) {
|
|
@@ -13520,6 +14553,12 @@ var serializeAws_restXmlCacheBehavior = function (input, context) {
|
|
|
13520
14553
|
.withName("OriginRequestPolicyId");
|
|
13521
14554
|
bodyNode.addChildNode(node);
|
|
13522
14555
|
}
|
|
14556
|
+
if (input.ResponseHeadersPolicyId !== undefined && input.ResponseHeadersPolicyId !== null) {
|
|
14557
|
+
var node = new __XmlNode("string")
|
|
14558
|
+
.addChildNode(new __XmlText(input.ResponseHeadersPolicyId))
|
|
14559
|
+
.withName("ResponseHeadersPolicyId");
|
|
14560
|
+
bodyNode.addChildNode(node);
|
|
14561
|
+
}
|
|
13523
14562
|
if (input.ForwardedValues !== undefined && input.ForwardedValues !== null) {
|
|
13524
14563
|
var node = serializeAws_restXmlForwardedValues(input.ForwardedValues, context).withName("ForwardedValues");
|
|
13525
14564
|
bodyNode.addChildNode(node);
|
|
@@ -13925,6 +14964,12 @@ var serializeAws_restXmlDefaultCacheBehavior = function (input, context) {
|
|
|
13925
14964
|
.withName("OriginRequestPolicyId");
|
|
13926
14965
|
bodyNode.addChildNode(node);
|
|
13927
14966
|
}
|
|
14967
|
+
if (input.ResponseHeadersPolicyId !== undefined && input.ResponseHeadersPolicyId !== null) {
|
|
14968
|
+
var node = new __XmlNode("string")
|
|
14969
|
+
.addChildNode(new __XmlText(input.ResponseHeadersPolicyId))
|
|
14970
|
+
.withName("ResponseHeadersPolicyId");
|
|
14971
|
+
bodyNode.addChildNode(node);
|
|
14972
|
+
}
|
|
13928
14973
|
if (input.ForwardedValues !== undefined && input.ForwardedValues !== null) {
|
|
13929
14974
|
var node = serializeAws_restXmlForwardedValues(input.ForwardedValues, context).withName("ForwardedValues");
|
|
13930
14975
|
bodyNode.addChildNode(node);
|
|
@@ -14491,7 +15536,9 @@ var serializeAws_restXmlOriginCustomHeader = function (input, context) {
|
|
|
14491
15536
|
bodyNode.addChildNode(node);
|
|
14492
15537
|
}
|
|
14493
15538
|
if (input.HeaderValue !== undefined && input.HeaderValue !== null) {
|
|
14494
|
-
var node = new __XmlNode("
|
|
15539
|
+
var node = new __XmlNode("sensitiveStringType")
|
|
15540
|
+
.addChildNode(new __XmlText(input.HeaderValue))
|
|
15541
|
+
.withName("HeaderValue");
|
|
14495
15542
|
bodyNode.addChildNode(node);
|
|
14496
15543
|
}
|
|
14497
15544
|
return bodyNode;
|
|
@@ -14919,6 +15966,297 @@ var serializeAws_restXmlRealtimeMetricsSubscriptionConfig = function (input, con
|
|
|
14919
15966
|
}
|
|
14920
15967
|
return bodyNode;
|
|
14921
15968
|
};
|
|
15969
|
+
var serializeAws_restXmlResponseHeadersPolicyAccessControlAllowHeaders = function (input, context) {
|
|
15970
|
+
var bodyNode = new __XmlNode("ResponseHeadersPolicyAccessControlAllowHeaders");
|
|
15971
|
+
if (input.Quantity !== undefined && input.Quantity !== null) {
|
|
15972
|
+
var node = new __XmlNode("integer").addChildNode(new __XmlText(String(input.Quantity))).withName("Quantity");
|
|
15973
|
+
bodyNode.addChildNode(node);
|
|
15974
|
+
}
|
|
15975
|
+
if (input.Items !== undefined && input.Items !== null) {
|
|
15976
|
+
var nodes = serializeAws_restXmlAccessControlAllowHeadersList(input.Items, context);
|
|
15977
|
+
var containerNode_28 = new __XmlNode("Items");
|
|
15978
|
+
nodes.map(function (node) {
|
|
15979
|
+
containerNode_28.addChildNode(node);
|
|
15980
|
+
});
|
|
15981
|
+
bodyNode.addChildNode(containerNode_28);
|
|
15982
|
+
}
|
|
15983
|
+
return bodyNode;
|
|
15984
|
+
};
|
|
15985
|
+
var serializeAws_restXmlResponseHeadersPolicyAccessControlAllowMethods = function (input, context) {
|
|
15986
|
+
var bodyNode = new __XmlNode("ResponseHeadersPolicyAccessControlAllowMethods");
|
|
15987
|
+
if (input.Quantity !== undefined && input.Quantity !== null) {
|
|
15988
|
+
var node = new __XmlNode("integer").addChildNode(new __XmlText(String(input.Quantity))).withName("Quantity");
|
|
15989
|
+
bodyNode.addChildNode(node);
|
|
15990
|
+
}
|
|
15991
|
+
if (input.Items !== undefined && input.Items !== null) {
|
|
15992
|
+
var nodes = serializeAws_restXmlAccessControlAllowMethodsList(input.Items, context);
|
|
15993
|
+
var containerNode_29 = new __XmlNode("Items");
|
|
15994
|
+
nodes.map(function (node) {
|
|
15995
|
+
containerNode_29.addChildNode(node);
|
|
15996
|
+
});
|
|
15997
|
+
bodyNode.addChildNode(containerNode_29);
|
|
15998
|
+
}
|
|
15999
|
+
return bodyNode;
|
|
16000
|
+
};
|
|
16001
|
+
var serializeAws_restXmlResponseHeadersPolicyAccessControlAllowOrigins = function (input, context) {
|
|
16002
|
+
var bodyNode = new __XmlNode("ResponseHeadersPolicyAccessControlAllowOrigins");
|
|
16003
|
+
if (input.Quantity !== undefined && input.Quantity !== null) {
|
|
16004
|
+
var node = new __XmlNode("integer").addChildNode(new __XmlText(String(input.Quantity))).withName("Quantity");
|
|
16005
|
+
bodyNode.addChildNode(node);
|
|
16006
|
+
}
|
|
16007
|
+
if (input.Items !== undefined && input.Items !== null) {
|
|
16008
|
+
var nodes = serializeAws_restXmlAccessControlAllowOriginsList(input.Items, context);
|
|
16009
|
+
var containerNode_30 = new __XmlNode("Items");
|
|
16010
|
+
nodes.map(function (node) {
|
|
16011
|
+
containerNode_30.addChildNode(node);
|
|
16012
|
+
});
|
|
16013
|
+
bodyNode.addChildNode(containerNode_30);
|
|
16014
|
+
}
|
|
16015
|
+
return bodyNode;
|
|
16016
|
+
};
|
|
16017
|
+
var serializeAws_restXmlResponseHeadersPolicyAccessControlExposeHeaders = function (input, context) {
|
|
16018
|
+
var bodyNode = new __XmlNode("ResponseHeadersPolicyAccessControlExposeHeaders");
|
|
16019
|
+
if (input.Quantity !== undefined && input.Quantity !== null) {
|
|
16020
|
+
var node = new __XmlNode("integer").addChildNode(new __XmlText(String(input.Quantity))).withName("Quantity");
|
|
16021
|
+
bodyNode.addChildNode(node);
|
|
16022
|
+
}
|
|
16023
|
+
if (input.Items !== undefined && input.Items !== null) {
|
|
16024
|
+
var nodes = serializeAws_restXmlAccessControlExposeHeadersList(input.Items, context);
|
|
16025
|
+
var containerNode_31 = new __XmlNode("Items");
|
|
16026
|
+
nodes.map(function (node) {
|
|
16027
|
+
containerNode_31.addChildNode(node);
|
|
16028
|
+
});
|
|
16029
|
+
bodyNode.addChildNode(containerNode_31);
|
|
16030
|
+
}
|
|
16031
|
+
return bodyNode;
|
|
16032
|
+
};
|
|
16033
|
+
var serializeAws_restXmlResponseHeadersPolicyConfig = function (input, context) {
|
|
16034
|
+
var bodyNode = new __XmlNode("ResponseHeadersPolicyConfig");
|
|
16035
|
+
if (input.Comment !== undefined && input.Comment !== null) {
|
|
16036
|
+
var node = new __XmlNode("string").addChildNode(new __XmlText(input.Comment)).withName("Comment");
|
|
16037
|
+
bodyNode.addChildNode(node);
|
|
16038
|
+
}
|
|
16039
|
+
if (input.Name !== undefined && input.Name !== null) {
|
|
16040
|
+
var node = new __XmlNode("string").addChildNode(new __XmlText(input.Name)).withName("Name");
|
|
16041
|
+
bodyNode.addChildNode(node);
|
|
16042
|
+
}
|
|
16043
|
+
if (input.CorsConfig !== undefined && input.CorsConfig !== null) {
|
|
16044
|
+
var node = serializeAws_restXmlResponseHeadersPolicyCorsConfig(input.CorsConfig, context).withName("CorsConfig");
|
|
16045
|
+
bodyNode.addChildNode(node);
|
|
16046
|
+
}
|
|
16047
|
+
if (input.SecurityHeadersConfig !== undefined && input.SecurityHeadersConfig !== null) {
|
|
16048
|
+
var node = serializeAws_restXmlResponseHeadersPolicySecurityHeadersConfig(input.SecurityHeadersConfig, context).withName("SecurityHeadersConfig");
|
|
16049
|
+
bodyNode.addChildNode(node);
|
|
16050
|
+
}
|
|
16051
|
+
if (input.CustomHeadersConfig !== undefined && input.CustomHeadersConfig !== null) {
|
|
16052
|
+
var node = serializeAws_restXmlResponseHeadersPolicyCustomHeadersConfig(input.CustomHeadersConfig, context).withName("CustomHeadersConfig");
|
|
16053
|
+
bodyNode.addChildNode(node);
|
|
16054
|
+
}
|
|
16055
|
+
return bodyNode;
|
|
16056
|
+
};
|
|
16057
|
+
var serializeAws_restXmlResponseHeadersPolicyContentSecurityPolicy = function (input, context) {
|
|
16058
|
+
var bodyNode = new __XmlNode("ResponseHeadersPolicyContentSecurityPolicy");
|
|
16059
|
+
if (input.Override !== undefined && input.Override !== null) {
|
|
16060
|
+
var node = new __XmlNode("boolean").addChildNode(new __XmlText(String(input.Override))).withName("Override");
|
|
16061
|
+
bodyNode.addChildNode(node);
|
|
16062
|
+
}
|
|
16063
|
+
if (input.ContentSecurityPolicy !== undefined && input.ContentSecurityPolicy !== null) {
|
|
16064
|
+
var node = new __XmlNode("string")
|
|
16065
|
+
.addChildNode(new __XmlText(input.ContentSecurityPolicy))
|
|
16066
|
+
.withName("ContentSecurityPolicy");
|
|
16067
|
+
bodyNode.addChildNode(node);
|
|
16068
|
+
}
|
|
16069
|
+
return bodyNode;
|
|
16070
|
+
};
|
|
16071
|
+
var serializeAws_restXmlResponseHeadersPolicyContentTypeOptions = function (input, context) {
|
|
16072
|
+
var bodyNode = new __XmlNode("ResponseHeadersPolicyContentTypeOptions");
|
|
16073
|
+
if (input.Override !== undefined && input.Override !== null) {
|
|
16074
|
+
var node = new __XmlNode("boolean").addChildNode(new __XmlText(String(input.Override))).withName("Override");
|
|
16075
|
+
bodyNode.addChildNode(node);
|
|
16076
|
+
}
|
|
16077
|
+
return bodyNode;
|
|
16078
|
+
};
|
|
16079
|
+
var serializeAws_restXmlResponseHeadersPolicyCorsConfig = function (input, context) {
|
|
16080
|
+
var bodyNode = new __XmlNode("ResponseHeadersPolicyCorsConfig");
|
|
16081
|
+
if (input.AccessControlAllowOrigins !== undefined && input.AccessControlAllowOrigins !== null) {
|
|
16082
|
+
var node = serializeAws_restXmlResponseHeadersPolicyAccessControlAllowOrigins(input.AccessControlAllowOrigins, context).withName("AccessControlAllowOrigins");
|
|
16083
|
+
bodyNode.addChildNode(node);
|
|
16084
|
+
}
|
|
16085
|
+
if (input.AccessControlAllowHeaders !== undefined && input.AccessControlAllowHeaders !== null) {
|
|
16086
|
+
var node = serializeAws_restXmlResponseHeadersPolicyAccessControlAllowHeaders(input.AccessControlAllowHeaders, context).withName("AccessControlAllowHeaders");
|
|
16087
|
+
bodyNode.addChildNode(node);
|
|
16088
|
+
}
|
|
16089
|
+
if (input.AccessControlAllowMethods !== undefined && input.AccessControlAllowMethods !== null) {
|
|
16090
|
+
var node = serializeAws_restXmlResponseHeadersPolicyAccessControlAllowMethods(input.AccessControlAllowMethods, context).withName("AccessControlAllowMethods");
|
|
16091
|
+
bodyNode.addChildNode(node);
|
|
16092
|
+
}
|
|
16093
|
+
if (input.AccessControlAllowCredentials !== undefined && input.AccessControlAllowCredentials !== null) {
|
|
16094
|
+
var node = new __XmlNode("boolean")
|
|
16095
|
+
.addChildNode(new __XmlText(String(input.AccessControlAllowCredentials)))
|
|
16096
|
+
.withName("AccessControlAllowCredentials");
|
|
16097
|
+
bodyNode.addChildNode(node);
|
|
16098
|
+
}
|
|
16099
|
+
if (input.AccessControlExposeHeaders !== undefined && input.AccessControlExposeHeaders !== null) {
|
|
16100
|
+
var node = serializeAws_restXmlResponseHeadersPolicyAccessControlExposeHeaders(input.AccessControlExposeHeaders, context).withName("AccessControlExposeHeaders");
|
|
16101
|
+
bodyNode.addChildNode(node);
|
|
16102
|
+
}
|
|
16103
|
+
if (input.AccessControlMaxAgeSec !== undefined && input.AccessControlMaxAgeSec !== null) {
|
|
16104
|
+
var node = new __XmlNode("integer")
|
|
16105
|
+
.addChildNode(new __XmlText(String(input.AccessControlMaxAgeSec)))
|
|
16106
|
+
.withName("AccessControlMaxAgeSec");
|
|
16107
|
+
bodyNode.addChildNode(node);
|
|
16108
|
+
}
|
|
16109
|
+
if (input.OriginOverride !== undefined && input.OriginOverride !== null) {
|
|
16110
|
+
var node = new __XmlNode("boolean")
|
|
16111
|
+
.addChildNode(new __XmlText(String(input.OriginOverride)))
|
|
16112
|
+
.withName("OriginOverride");
|
|
16113
|
+
bodyNode.addChildNode(node);
|
|
16114
|
+
}
|
|
16115
|
+
return bodyNode;
|
|
16116
|
+
};
|
|
16117
|
+
var serializeAws_restXmlResponseHeadersPolicyCustomHeader = function (input, context) {
|
|
16118
|
+
var bodyNode = new __XmlNode("ResponseHeadersPolicyCustomHeader");
|
|
16119
|
+
if (input.Header !== undefined && input.Header !== null) {
|
|
16120
|
+
var node = new __XmlNode("string").addChildNode(new __XmlText(input.Header)).withName("Header");
|
|
16121
|
+
bodyNode.addChildNode(node);
|
|
16122
|
+
}
|
|
16123
|
+
if (input.Value !== undefined && input.Value !== null) {
|
|
16124
|
+
var node = new __XmlNode("string").addChildNode(new __XmlText(input.Value)).withName("Value");
|
|
16125
|
+
bodyNode.addChildNode(node);
|
|
16126
|
+
}
|
|
16127
|
+
if (input.Override !== undefined && input.Override !== null) {
|
|
16128
|
+
var node = new __XmlNode("boolean").addChildNode(new __XmlText(String(input.Override))).withName("Override");
|
|
16129
|
+
bodyNode.addChildNode(node);
|
|
16130
|
+
}
|
|
16131
|
+
return bodyNode;
|
|
16132
|
+
};
|
|
16133
|
+
var serializeAws_restXmlResponseHeadersPolicyCustomHeaderList = function (input, context) {
|
|
16134
|
+
return input
|
|
16135
|
+
.filter(function (e) { return e != null; })
|
|
16136
|
+
.map(function (entry) {
|
|
16137
|
+
if (entry === null) {
|
|
16138
|
+
return null;
|
|
16139
|
+
}
|
|
16140
|
+
var node = serializeAws_restXmlResponseHeadersPolicyCustomHeader(entry, context);
|
|
16141
|
+
return node.withName("ResponseHeadersPolicyCustomHeader");
|
|
16142
|
+
});
|
|
16143
|
+
};
|
|
16144
|
+
var serializeAws_restXmlResponseHeadersPolicyCustomHeadersConfig = function (input, context) {
|
|
16145
|
+
var bodyNode = new __XmlNode("ResponseHeadersPolicyCustomHeadersConfig");
|
|
16146
|
+
if (input.Quantity !== undefined && input.Quantity !== null) {
|
|
16147
|
+
var node = new __XmlNode("integer").addChildNode(new __XmlText(String(input.Quantity))).withName("Quantity");
|
|
16148
|
+
bodyNode.addChildNode(node);
|
|
16149
|
+
}
|
|
16150
|
+
if (input.Items !== undefined && input.Items !== null) {
|
|
16151
|
+
var nodes = serializeAws_restXmlResponseHeadersPolicyCustomHeaderList(input.Items, context);
|
|
16152
|
+
var containerNode_32 = new __XmlNode("Items");
|
|
16153
|
+
nodes.map(function (node) {
|
|
16154
|
+
containerNode_32.addChildNode(node);
|
|
16155
|
+
});
|
|
16156
|
+
bodyNode.addChildNode(containerNode_32);
|
|
16157
|
+
}
|
|
16158
|
+
return bodyNode;
|
|
16159
|
+
};
|
|
16160
|
+
var serializeAws_restXmlResponseHeadersPolicyFrameOptions = function (input, context) {
|
|
16161
|
+
var bodyNode = new __XmlNode("ResponseHeadersPolicyFrameOptions");
|
|
16162
|
+
if (input.Override !== undefined && input.Override !== null) {
|
|
16163
|
+
var node = new __XmlNode("boolean").addChildNode(new __XmlText(String(input.Override))).withName("Override");
|
|
16164
|
+
bodyNode.addChildNode(node);
|
|
16165
|
+
}
|
|
16166
|
+
if (input.FrameOption !== undefined && input.FrameOption !== null) {
|
|
16167
|
+
var node = new __XmlNode("FrameOptionsList")
|
|
16168
|
+
.addChildNode(new __XmlText(input.FrameOption))
|
|
16169
|
+
.withName("FrameOption");
|
|
16170
|
+
bodyNode.addChildNode(node);
|
|
16171
|
+
}
|
|
16172
|
+
return bodyNode;
|
|
16173
|
+
};
|
|
16174
|
+
var serializeAws_restXmlResponseHeadersPolicyReferrerPolicy = function (input, context) {
|
|
16175
|
+
var bodyNode = new __XmlNode("ResponseHeadersPolicyReferrerPolicy");
|
|
16176
|
+
if (input.Override !== undefined && input.Override !== null) {
|
|
16177
|
+
var node = new __XmlNode("boolean").addChildNode(new __XmlText(String(input.Override))).withName("Override");
|
|
16178
|
+
bodyNode.addChildNode(node);
|
|
16179
|
+
}
|
|
16180
|
+
if (input.ReferrerPolicy !== undefined && input.ReferrerPolicy !== null) {
|
|
16181
|
+
var node = new __XmlNode("ReferrerPolicyList")
|
|
16182
|
+
.addChildNode(new __XmlText(input.ReferrerPolicy))
|
|
16183
|
+
.withName("ReferrerPolicy");
|
|
16184
|
+
bodyNode.addChildNode(node);
|
|
16185
|
+
}
|
|
16186
|
+
return bodyNode;
|
|
16187
|
+
};
|
|
16188
|
+
var serializeAws_restXmlResponseHeadersPolicySecurityHeadersConfig = function (input, context) {
|
|
16189
|
+
var bodyNode = new __XmlNode("ResponseHeadersPolicySecurityHeadersConfig");
|
|
16190
|
+
if (input.XSSProtection !== undefined && input.XSSProtection !== null) {
|
|
16191
|
+
var node = serializeAws_restXmlResponseHeadersPolicyXSSProtection(input.XSSProtection, context).withName("XSSProtection");
|
|
16192
|
+
bodyNode.addChildNode(node);
|
|
16193
|
+
}
|
|
16194
|
+
if (input.FrameOptions !== undefined && input.FrameOptions !== null) {
|
|
16195
|
+
var node = serializeAws_restXmlResponseHeadersPolicyFrameOptions(input.FrameOptions, context).withName("FrameOptions");
|
|
16196
|
+
bodyNode.addChildNode(node);
|
|
16197
|
+
}
|
|
16198
|
+
if (input.ReferrerPolicy !== undefined && input.ReferrerPolicy !== null) {
|
|
16199
|
+
var node = serializeAws_restXmlResponseHeadersPolicyReferrerPolicy(input.ReferrerPolicy, context).withName("ReferrerPolicy");
|
|
16200
|
+
bodyNode.addChildNode(node);
|
|
16201
|
+
}
|
|
16202
|
+
if (input.ContentSecurityPolicy !== undefined && input.ContentSecurityPolicy !== null) {
|
|
16203
|
+
var node = serializeAws_restXmlResponseHeadersPolicyContentSecurityPolicy(input.ContentSecurityPolicy, context).withName("ContentSecurityPolicy");
|
|
16204
|
+
bodyNode.addChildNode(node);
|
|
16205
|
+
}
|
|
16206
|
+
if (input.ContentTypeOptions !== undefined && input.ContentTypeOptions !== null) {
|
|
16207
|
+
var node = serializeAws_restXmlResponseHeadersPolicyContentTypeOptions(input.ContentTypeOptions, context).withName("ContentTypeOptions");
|
|
16208
|
+
bodyNode.addChildNode(node);
|
|
16209
|
+
}
|
|
16210
|
+
if (input.StrictTransportSecurity !== undefined && input.StrictTransportSecurity !== null) {
|
|
16211
|
+
var node = serializeAws_restXmlResponseHeadersPolicyStrictTransportSecurity(input.StrictTransportSecurity, context).withName("StrictTransportSecurity");
|
|
16212
|
+
bodyNode.addChildNode(node);
|
|
16213
|
+
}
|
|
16214
|
+
return bodyNode;
|
|
16215
|
+
};
|
|
16216
|
+
var serializeAws_restXmlResponseHeadersPolicyStrictTransportSecurity = function (input, context) {
|
|
16217
|
+
var bodyNode = new __XmlNode("ResponseHeadersPolicyStrictTransportSecurity");
|
|
16218
|
+
if (input.Override !== undefined && input.Override !== null) {
|
|
16219
|
+
var node = new __XmlNode("boolean").addChildNode(new __XmlText(String(input.Override))).withName("Override");
|
|
16220
|
+
bodyNode.addChildNode(node);
|
|
16221
|
+
}
|
|
16222
|
+
if (input.IncludeSubdomains !== undefined && input.IncludeSubdomains !== null) {
|
|
16223
|
+
var node = new __XmlNode("boolean")
|
|
16224
|
+
.addChildNode(new __XmlText(String(input.IncludeSubdomains)))
|
|
16225
|
+
.withName("IncludeSubdomains");
|
|
16226
|
+
bodyNode.addChildNode(node);
|
|
16227
|
+
}
|
|
16228
|
+
if (input.Preload !== undefined && input.Preload !== null) {
|
|
16229
|
+
var node = new __XmlNode("boolean").addChildNode(new __XmlText(String(input.Preload))).withName("Preload");
|
|
16230
|
+
bodyNode.addChildNode(node);
|
|
16231
|
+
}
|
|
16232
|
+
if (input.AccessControlMaxAgeSec !== undefined && input.AccessControlMaxAgeSec !== null) {
|
|
16233
|
+
var node = new __XmlNode("integer")
|
|
16234
|
+
.addChildNode(new __XmlText(String(input.AccessControlMaxAgeSec)))
|
|
16235
|
+
.withName("AccessControlMaxAgeSec");
|
|
16236
|
+
bodyNode.addChildNode(node);
|
|
16237
|
+
}
|
|
16238
|
+
return bodyNode;
|
|
16239
|
+
};
|
|
16240
|
+
var serializeAws_restXmlResponseHeadersPolicyXSSProtection = function (input, context) {
|
|
16241
|
+
var bodyNode = new __XmlNode("ResponseHeadersPolicyXSSProtection");
|
|
16242
|
+
if (input.Override !== undefined && input.Override !== null) {
|
|
16243
|
+
var node = new __XmlNode("boolean").addChildNode(new __XmlText(String(input.Override))).withName("Override");
|
|
16244
|
+
bodyNode.addChildNode(node);
|
|
16245
|
+
}
|
|
16246
|
+
if (input.Protection !== undefined && input.Protection !== null) {
|
|
16247
|
+
var node = new __XmlNode("boolean").addChildNode(new __XmlText(String(input.Protection))).withName("Protection");
|
|
16248
|
+
bodyNode.addChildNode(node);
|
|
16249
|
+
}
|
|
16250
|
+
if (input.ModeBlock !== undefined && input.ModeBlock !== null) {
|
|
16251
|
+
var node = new __XmlNode("boolean").addChildNode(new __XmlText(String(input.ModeBlock))).withName("ModeBlock");
|
|
16252
|
+
bodyNode.addChildNode(node);
|
|
16253
|
+
}
|
|
16254
|
+
if (input.ReportUri !== undefined && input.ReportUri !== null) {
|
|
16255
|
+
var node = new __XmlNode("string").addChildNode(new __XmlText(input.ReportUri)).withName("ReportUri");
|
|
16256
|
+
bodyNode.addChildNode(node);
|
|
16257
|
+
}
|
|
16258
|
+
return bodyNode;
|
|
16259
|
+
};
|
|
14922
16260
|
var serializeAws_restXmlRestrictions = function (input, context) {
|
|
14923
16261
|
var bodyNode = new __XmlNode("Restrictions");
|
|
14924
16262
|
if (input.GeoRestriction !== undefined && input.GeoRestriction !== null) {
|
|
@@ -14981,11 +16319,11 @@ var serializeAws_restXmlStatusCodes = function (input, context) {
|
|
|
14981
16319
|
}
|
|
14982
16320
|
if (input.Items !== undefined && input.Items !== null) {
|
|
14983
16321
|
var nodes = serializeAws_restXmlStatusCodeList(input.Items, context);
|
|
14984
|
-
var
|
|
16322
|
+
var containerNode_33 = new __XmlNode("Items");
|
|
14985
16323
|
nodes.map(function (node) {
|
|
14986
|
-
|
|
16324
|
+
containerNode_33.addChildNode(node);
|
|
14987
16325
|
});
|
|
14988
|
-
bodyNode.addChildNode(
|
|
16326
|
+
bodyNode.addChildNode(containerNode_33);
|
|
14989
16327
|
}
|
|
14990
16328
|
return bodyNode;
|
|
14991
16329
|
};
|
|
@@ -15080,11 +16418,11 @@ var serializeAws_restXmlTagKeys = function (input, context) {
|
|
|
15080
16418
|
var bodyNode = new __XmlNode("TagKeys");
|
|
15081
16419
|
if (input.Items !== undefined && input.Items !== null) {
|
|
15082
16420
|
var nodes = serializeAws_restXmlTagKeyList(input.Items, context);
|
|
15083
|
-
var
|
|
16421
|
+
var containerNode_34 = new __XmlNode("Items");
|
|
15084
16422
|
nodes.map(function (node) {
|
|
15085
|
-
|
|
16423
|
+
containerNode_34.addChildNode(node);
|
|
15086
16424
|
});
|
|
15087
|
-
bodyNode.addChildNode(
|
|
16425
|
+
bodyNode.addChildNode(containerNode_34);
|
|
15088
16426
|
}
|
|
15089
16427
|
return bodyNode;
|
|
15090
16428
|
};
|
|
@@ -15103,11 +16441,11 @@ var serializeAws_restXmlTags = function (input, context) {
|
|
|
15103
16441
|
var bodyNode = new __XmlNode("Tags");
|
|
15104
16442
|
if (input.Items !== undefined && input.Items !== null) {
|
|
15105
16443
|
var nodes = serializeAws_restXmlTagList(input.Items, context);
|
|
15106
|
-
var
|
|
16444
|
+
var containerNode_35 = new __XmlNode("Items");
|
|
15107
16445
|
nodes.map(function (node) {
|
|
15108
|
-
|
|
16446
|
+
containerNode_35.addChildNode(node);
|
|
15109
16447
|
});
|
|
15110
|
-
bodyNode.addChildNode(
|
|
16448
|
+
bodyNode.addChildNode(containerNode_35);
|
|
15111
16449
|
}
|
|
15112
16450
|
return bodyNode;
|
|
15113
16451
|
};
|
|
@@ -15134,11 +16472,11 @@ var serializeAws_restXmlTrustedKeyGroups = function (input, context) {
|
|
|
15134
16472
|
}
|
|
15135
16473
|
if (input.Items !== undefined && input.Items !== null) {
|
|
15136
16474
|
var nodes = serializeAws_restXmlTrustedKeyGroupIdList(input.Items, context);
|
|
15137
|
-
var
|
|
16475
|
+
var containerNode_36 = new __XmlNode("Items");
|
|
15138
16476
|
nodes.map(function (node) {
|
|
15139
|
-
|
|
16477
|
+
containerNode_36.addChildNode(node);
|
|
15140
16478
|
});
|
|
15141
|
-
bodyNode.addChildNode(
|
|
16479
|
+
bodyNode.addChildNode(containerNode_36);
|
|
15142
16480
|
}
|
|
15143
16481
|
return bodyNode;
|
|
15144
16482
|
};
|
|
@@ -15154,11 +16492,11 @@ var serializeAws_restXmlTrustedSigners = function (input, context) {
|
|
|
15154
16492
|
}
|
|
15155
16493
|
if (input.Items !== undefined && input.Items !== null) {
|
|
15156
16494
|
var nodes = serializeAws_restXmlAwsAccountNumberList(input.Items, context);
|
|
15157
|
-
var
|
|
16495
|
+
var containerNode_37 = new __XmlNode("Items");
|
|
15158
16496
|
nodes.map(function (node) {
|
|
15159
|
-
|
|
16497
|
+
containerNode_37.addChildNode(node);
|
|
15160
16498
|
});
|
|
15161
|
-
bodyNode.addChildNode(
|
|
16499
|
+
bodyNode.addChildNode(containerNode_37);
|
|
15162
16500
|
}
|
|
15163
16501
|
return bodyNode;
|
|
15164
16502
|
};
|
|
@@ -15206,6 +16544,46 @@ var serializeAws_restXmlViewerCertificate = function (input, context) {
|
|
|
15206
16544
|
}
|
|
15207
16545
|
return bodyNode;
|
|
15208
16546
|
};
|
|
16547
|
+
var deserializeAws_restXmlAccessControlAllowHeadersList = function (output, context) {
|
|
16548
|
+
return (output || [])
|
|
16549
|
+
.filter(function (e) { return e != null; })
|
|
16550
|
+
.map(function (entry) {
|
|
16551
|
+
if (entry === null) {
|
|
16552
|
+
return null;
|
|
16553
|
+
}
|
|
16554
|
+
return __expectString(entry);
|
|
16555
|
+
});
|
|
16556
|
+
};
|
|
16557
|
+
var deserializeAws_restXmlAccessControlAllowMethodsList = function (output, context) {
|
|
16558
|
+
return (output || [])
|
|
16559
|
+
.filter(function (e) { return e != null; })
|
|
16560
|
+
.map(function (entry) {
|
|
16561
|
+
if (entry === null) {
|
|
16562
|
+
return null;
|
|
16563
|
+
}
|
|
16564
|
+
return __expectString(entry);
|
|
16565
|
+
});
|
|
16566
|
+
};
|
|
16567
|
+
var deserializeAws_restXmlAccessControlAllowOriginsList = function (output, context) {
|
|
16568
|
+
return (output || [])
|
|
16569
|
+
.filter(function (e) { return e != null; })
|
|
16570
|
+
.map(function (entry) {
|
|
16571
|
+
if (entry === null) {
|
|
16572
|
+
return null;
|
|
16573
|
+
}
|
|
16574
|
+
return __expectString(entry);
|
|
16575
|
+
});
|
|
16576
|
+
};
|
|
16577
|
+
var deserializeAws_restXmlAccessControlExposeHeadersList = function (output, context) {
|
|
16578
|
+
return (output || [])
|
|
16579
|
+
.filter(function (e) { return e != null; })
|
|
16580
|
+
.map(function (entry) {
|
|
16581
|
+
if (entry === null) {
|
|
16582
|
+
return null;
|
|
16583
|
+
}
|
|
16584
|
+
return __expectString(entry);
|
|
16585
|
+
});
|
|
16586
|
+
};
|
|
15209
16587
|
var deserializeAws_restXmlActiveTrustedKeyGroups = function (output, context) {
|
|
15210
16588
|
var contents = {
|
|
15211
16589
|
Enabled: undefined,
|
|
@@ -15341,6 +16719,7 @@ var deserializeAws_restXmlCacheBehavior = function (output, context) {
|
|
|
15341
16719
|
RealtimeLogConfigArn: undefined,
|
|
15342
16720
|
CachePolicyId: undefined,
|
|
15343
16721
|
OriginRequestPolicyId: undefined,
|
|
16722
|
+
ResponseHeadersPolicyId: undefined,
|
|
15344
16723
|
ForwardedValues: undefined,
|
|
15345
16724
|
MinTTL: undefined,
|
|
15346
16725
|
DefaultTTL: undefined,
|
|
@@ -15388,6 +16767,9 @@ var deserializeAws_restXmlCacheBehavior = function (output, context) {
|
|
|
15388
16767
|
if (output["OriginRequestPolicyId"] !== undefined) {
|
|
15389
16768
|
contents.OriginRequestPolicyId = __expectString(output["OriginRequestPolicyId"]);
|
|
15390
16769
|
}
|
|
16770
|
+
if (output["ResponseHeadersPolicyId"] !== undefined) {
|
|
16771
|
+
contents.ResponseHeadersPolicyId = __expectString(output["ResponseHeadersPolicyId"]);
|
|
16772
|
+
}
|
|
15391
16773
|
if (output["ForwardedValues"] !== undefined) {
|
|
15392
16774
|
contents.ForwardedValues = deserializeAws_restXmlForwardedValues(output["ForwardedValues"], context);
|
|
15393
16775
|
}
|
|
@@ -15918,6 +17300,7 @@ var deserializeAws_restXmlDefaultCacheBehavior = function (output, context) {
|
|
|
15918
17300
|
RealtimeLogConfigArn: undefined,
|
|
15919
17301
|
CachePolicyId: undefined,
|
|
15920
17302
|
OriginRequestPolicyId: undefined,
|
|
17303
|
+
ResponseHeadersPolicyId: undefined,
|
|
15921
17304
|
ForwardedValues: undefined,
|
|
15922
17305
|
MinTTL: undefined,
|
|
15923
17306
|
DefaultTTL: undefined,
|
|
@@ -15962,6 +17345,9 @@ var deserializeAws_restXmlDefaultCacheBehavior = function (output, context) {
|
|
|
15962
17345
|
if (output["OriginRequestPolicyId"] !== undefined) {
|
|
15963
17346
|
contents.OriginRequestPolicyId = __expectString(output["OriginRequestPolicyId"]);
|
|
15964
17347
|
}
|
|
17348
|
+
if (output["ResponseHeadersPolicyId"] !== undefined) {
|
|
17349
|
+
contents.ResponseHeadersPolicyId = __expectString(output["ResponseHeadersPolicyId"]);
|
|
17350
|
+
}
|
|
15965
17351
|
if (output["ForwardedValues"] !== undefined) {
|
|
15966
17352
|
contents.ForwardedValues = deserializeAws_restXmlForwardedValues(output["ForwardedValues"], context);
|
|
15967
17353
|
}
|
|
@@ -17772,6 +19158,354 @@ var deserializeAws_restXmlRealtimeMetricsSubscriptionConfig = function (output,
|
|
|
17772
19158
|
}
|
|
17773
19159
|
return contents;
|
|
17774
19160
|
};
|
|
19161
|
+
var deserializeAws_restXmlResponseHeadersPolicy = function (output, context) {
|
|
19162
|
+
var contents = {
|
|
19163
|
+
Id: undefined,
|
|
19164
|
+
LastModifiedTime: undefined,
|
|
19165
|
+
ResponseHeadersPolicyConfig: undefined,
|
|
19166
|
+
};
|
|
19167
|
+
if (output["Id"] !== undefined) {
|
|
19168
|
+
contents.Id = __expectString(output["Id"]);
|
|
19169
|
+
}
|
|
19170
|
+
if (output["LastModifiedTime"] !== undefined) {
|
|
19171
|
+
contents.LastModifiedTime = __expectNonNull(__parseRfc3339DateTime(output["LastModifiedTime"]));
|
|
19172
|
+
}
|
|
19173
|
+
if (output["ResponseHeadersPolicyConfig"] !== undefined) {
|
|
19174
|
+
contents.ResponseHeadersPolicyConfig = deserializeAws_restXmlResponseHeadersPolicyConfig(output["ResponseHeadersPolicyConfig"], context);
|
|
19175
|
+
}
|
|
19176
|
+
return contents;
|
|
19177
|
+
};
|
|
19178
|
+
var deserializeAws_restXmlResponseHeadersPolicyAccessControlAllowHeaders = function (output, context) {
|
|
19179
|
+
var contents = {
|
|
19180
|
+
Quantity: undefined,
|
|
19181
|
+
Items: undefined,
|
|
19182
|
+
};
|
|
19183
|
+
if (output["Quantity"] !== undefined) {
|
|
19184
|
+
contents.Quantity = __strictParseInt32(output["Quantity"]);
|
|
19185
|
+
}
|
|
19186
|
+
if (output.Items === "") {
|
|
19187
|
+
contents.Items = [];
|
|
19188
|
+
}
|
|
19189
|
+
if (output["Items"] !== undefined && output["Items"]["Header"] !== undefined) {
|
|
19190
|
+
contents.Items = deserializeAws_restXmlAccessControlAllowHeadersList(__getArrayIfSingleItem(output["Items"]["Header"]), context);
|
|
19191
|
+
}
|
|
19192
|
+
return contents;
|
|
19193
|
+
};
|
|
19194
|
+
var deserializeAws_restXmlResponseHeadersPolicyAccessControlAllowMethods = function (output, context) {
|
|
19195
|
+
var contents = {
|
|
19196
|
+
Quantity: undefined,
|
|
19197
|
+
Items: undefined,
|
|
19198
|
+
};
|
|
19199
|
+
if (output["Quantity"] !== undefined) {
|
|
19200
|
+
contents.Quantity = __strictParseInt32(output["Quantity"]);
|
|
19201
|
+
}
|
|
19202
|
+
if (output.Items === "") {
|
|
19203
|
+
contents.Items = [];
|
|
19204
|
+
}
|
|
19205
|
+
if (output["Items"] !== undefined && output["Items"]["Method"] !== undefined) {
|
|
19206
|
+
contents.Items = deserializeAws_restXmlAccessControlAllowMethodsList(__getArrayIfSingleItem(output["Items"]["Method"]), context);
|
|
19207
|
+
}
|
|
19208
|
+
return contents;
|
|
19209
|
+
};
|
|
19210
|
+
var deserializeAws_restXmlResponseHeadersPolicyAccessControlAllowOrigins = function (output, context) {
|
|
19211
|
+
var contents = {
|
|
19212
|
+
Quantity: undefined,
|
|
19213
|
+
Items: undefined,
|
|
19214
|
+
};
|
|
19215
|
+
if (output["Quantity"] !== undefined) {
|
|
19216
|
+
contents.Quantity = __strictParseInt32(output["Quantity"]);
|
|
19217
|
+
}
|
|
19218
|
+
if (output.Items === "") {
|
|
19219
|
+
contents.Items = [];
|
|
19220
|
+
}
|
|
19221
|
+
if (output["Items"] !== undefined && output["Items"]["Origin"] !== undefined) {
|
|
19222
|
+
contents.Items = deserializeAws_restXmlAccessControlAllowOriginsList(__getArrayIfSingleItem(output["Items"]["Origin"]), context);
|
|
19223
|
+
}
|
|
19224
|
+
return contents;
|
|
19225
|
+
};
|
|
19226
|
+
var deserializeAws_restXmlResponseHeadersPolicyAccessControlExposeHeaders = function (output, context) {
|
|
19227
|
+
var contents = {
|
|
19228
|
+
Quantity: undefined,
|
|
19229
|
+
Items: undefined,
|
|
19230
|
+
};
|
|
19231
|
+
if (output["Quantity"] !== undefined) {
|
|
19232
|
+
contents.Quantity = __strictParseInt32(output["Quantity"]);
|
|
19233
|
+
}
|
|
19234
|
+
if (output.Items === "") {
|
|
19235
|
+
contents.Items = [];
|
|
19236
|
+
}
|
|
19237
|
+
if (output["Items"] !== undefined && output["Items"]["Header"] !== undefined) {
|
|
19238
|
+
contents.Items = deserializeAws_restXmlAccessControlExposeHeadersList(__getArrayIfSingleItem(output["Items"]["Header"]), context);
|
|
19239
|
+
}
|
|
19240
|
+
return contents;
|
|
19241
|
+
};
|
|
19242
|
+
var deserializeAws_restXmlResponseHeadersPolicyConfig = function (output, context) {
|
|
19243
|
+
var contents = {
|
|
19244
|
+
Comment: undefined,
|
|
19245
|
+
Name: undefined,
|
|
19246
|
+
CorsConfig: undefined,
|
|
19247
|
+
SecurityHeadersConfig: undefined,
|
|
19248
|
+
CustomHeadersConfig: undefined,
|
|
19249
|
+
};
|
|
19250
|
+
if (output["Comment"] !== undefined) {
|
|
19251
|
+
contents.Comment = __expectString(output["Comment"]);
|
|
19252
|
+
}
|
|
19253
|
+
if (output["Name"] !== undefined) {
|
|
19254
|
+
contents.Name = __expectString(output["Name"]);
|
|
19255
|
+
}
|
|
19256
|
+
if (output["CorsConfig"] !== undefined) {
|
|
19257
|
+
contents.CorsConfig = deserializeAws_restXmlResponseHeadersPolicyCorsConfig(output["CorsConfig"], context);
|
|
19258
|
+
}
|
|
19259
|
+
if (output["SecurityHeadersConfig"] !== undefined) {
|
|
19260
|
+
contents.SecurityHeadersConfig = deserializeAws_restXmlResponseHeadersPolicySecurityHeadersConfig(output["SecurityHeadersConfig"], context);
|
|
19261
|
+
}
|
|
19262
|
+
if (output["CustomHeadersConfig"] !== undefined) {
|
|
19263
|
+
contents.CustomHeadersConfig = deserializeAws_restXmlResponseHeadersPolicyCustomHeadersConfig(output["CustomHeadersConfig"], context);
|
|
19264
|
+
}
|
|
19265
|
+
return contents;
|
|
19266
|
+
};
|
|
19267
|
+
var deserializeAws_restXmlResponseHeadersPolicyContentSecurityPolicy = function (output, context) {
|
|
19268
|
+
var contents = {
|
|
19269
|
+
Override: undefined,
|
|
19270
|
+
ContentSecurityPolicy: undefined,
|
|
19271
|
+
};
|
|
19272
|
+
if (output["Override"] !== undefined) {
|
|
19273
|
+
contents.Override = __parseBoolean(output["Override"]);
|
|
19274
|
+
}
|
|
19275
|
+
if (output["ContentSecurityPolicy"] !== undefined) {
|
|
19276
|
+
contents.ContentSecurityPolicy = __expectString(output["ContentSecurityPolicy"]);
|
|
19277
|
+
}
|
|
19278
|
+
return contents;
|
|
19279
|
+
};
|
|
19280
|
+
var deserializeAws_restXmlResponseHeadersPolicyContentTypeOptions = function (output, context) {
|
|
19281
|
+
var contents = {
|
|
19282
|
+
Override: undefined,
|
|
19283
|
+
};
|
|
19284
|
+
if (output["Override"] !== undefined) {
|
|
19285
|
+
contents.Override = __parseBoolean(output["Override"]);
|
|
19286
|
+
}
|
|
19287
|
+
return contents;
|
|
19288
|
+
};
|
|
19289
|
+
var deserializeAws_restXmlResponseHeadersPolicyCorsConfig = function (output, context) {
|
|
19290
|
+
var contents = {
|
|
19291
|
+
AccessControlAllowOrigins: undefined,
|
|
19292
|
+
AccessControlAllowHeaders: undefined,
|
|
19293
|
+
AccessControlAllowMethods: undefined,
|
|
19294
|
+
AccessControlAllowCredentials: undefined,
|
|
19295
|
+
AccessControlExposeHeaders: undefined,
|
|
19296
|
+
AccessControlMaxAgeSec: undefined,
|
|
19297
|
+
OriginOverride: undefined,
|
|
19298
|
+
};
|
|
19299
|
+
if (output["AccessControlAllowOrigins"] !== undefined) {
|
|
19300
|
+
contents.AccessControlAllowOrigins = deserializeAws_restXmlResponseHeadersPolicyAccessControlAllowOrigins(output["AccessControlAllowOrigins"], context);
|
|
19301
|
+
}
|
|
19302
|
+
if (output["AccessControlAllowHeaders"] !== undefined) {
|
|
19303
|
+
contents.AccessControlAllowHeaders = deserializeAws_restXmlResponseHeadersPolicyAccessControlAllowHeaders(output["AccessControlAllowHeaders"], context);
|
|
19304
|
+
}
|
|
19305
|
+
if (output["AccessControlAllowMethods"] !== undefined) {
|
|
19306
|
+
contents.AccessControlAllowMethods = deserializeAws_restXmlResponseHeadersPolicyAccessControlAllowMethods(output["AccessControlAllowMethods"], context);
|
|
19307
|
+
}
|
|
19308
|
+
if (output["AccessControlAllowCredentials"] !== undefined) {
|
|
19309
|
+
contents.AccessControlAllowCredentials = __parseBoolean(output["AccessControlAllowCredentials"]);
|
|
19310
|
+
}
|
|
19311
|
+
if (output["AccessControlExposeHeaders"] !== undefined) {
|
|
19312
|
+
contents.AccessControlExposeHeaders = deserializeAws_restXmlResponseHeadersPolicyAccessControlExposeHeaders(output["AccessControlExposeHeaders"], context);
|
|
19313
|
+
}
|
|
19314
|
+
if (output["AccessControlMaxAgeSec"] !== undefined) {
|
|
19315
|
+
contents.AccessControlMaxAgeSec = __strictParseInt32(output["AccessControlMaxAgeSec"]);
|
|
19316
|
+
}
|
|
19317
|
+
if (output["OriginOverride"] !== undefined) {
|
|
19318
|
+
contents.OriginOverride = __parseBoolean(output["OriginOverride"]);
|
|
19319
|
+
}
|
|
19320
|
+
return contents;
|
|
19321
|
+
};
|
|
19322
|
+
var deserializeAws_restXmlResponseHeadersPolicyCustomHeader = function (output, context) {
|
|
19323
|
+
var contents = {
|
|
19324
|
+
Header: undefined,
|
|
19325
|
+
Value: undefined,
|
|
19326
|
+
Override: undefined,
|
|
19327
|
+
};
|
|
19328
|
+
if (output["Header"] !== undefined) {
|
|
19329
|
+
contents.Header = __expectString(output["Header"]);
|
|
19330
|
+
}
|
|
19331
|
+
if (output["Value"] !== undefined) {
|
|
19332
|
+
contents.Value = __expectString(output["Value"]);
|
|
19333
|
+
}
|
|
19334
|
+
if (output["Override"] !== undefined) {
|
|
19335
|
+
contents.Override = __parseBoolean(output["Override"]);
|
|
19336
|
+
}
|
|
19337
|
+
return contents;
|
|
19338
|
+
};
|
|
19339
|
+
var deserializeAws_restXmlResponseHeadersPolicyCustomHeaderList = function (output, context) {
|
|
19340
|
+
return (output || [])
|
|
19341
|
+
.filter(function (e) { return e != null; })
|
|
19342
|
+
.map(function (entry) {
|
|
19343
|
+
if (entry === null) {
|
|
19344
|
+
return null;
|
|
19345
|
+
}
|
|
19346
|
+
return deserializeAws_restXmlResponseHeadersPolicyCustomHeader(entry, context);
|
|
19347
|
+
});
|
|
19348
|
+
};
|
|
19349
|
+
var deserializeAws_restXmlResponseHeadersPolicyCustomHeadersConfig = function (output, context) {
|
|
19350
|
+
var contents = {
|
|
19351
|
+
Quantity: undefined,
|
|
19352
|
+
Items: undefined,
|
|
19353
|
+
};
|
|
19354
|
+
if (output["Quantity"] !== undefined) {
|
|
19355
|
+
contents.Quantity = __strictParseInt32(output["Quantity"]);
|
|
19356
|
+
}
|
|
19357
|
+
if (output.Items === "") {
|
|
19358
|
+
contents.Items = [];
|
|
19359
|
+
}
|
|
19360
|
+
if (output["Items"] !== undefined && output["Items"]["ResponseHeadersPolicyCustomHeader"] !== undefined) {
|
|
19361
|
+
contents.Items = deserializeAws_restXmlResponseHeadersPolicyCustomHeaderList(__getArrayIfSingleItem(output["Items"]["ResponseHeadersPolicyCustomHeader"]), context);
|
|
19362
|
+
}
|
|
19363
|
+
return contents;
|
|
19364
|
+
};
|
|
19365
|
+
var deserializeAws_restXmlResponseHeadersPolicyFrameOptions = function (output, context) {
|
|
19366
|
+
var contents = {
|
|
19367
|
+
Override: undefined,
|
|
19368
|
+
FrameOption: undefined,
|
|
19369
|
+
};
|
|
19370
|
+
if (output["Override"] !== undefined) {
|
|
19371
|
+
contents.Override = __parseBoolean(output["Override"]);
|
|
19372
|
+
}
|
|
19373
|
+
if (output["FrameOption"] !== undefined) {
|
|
19374
|
+
contents.FrameOption = __expectString(output["FrameOption"]);
|
|
19375
|
+
}
|
|
19376
|
+
return contents;
|
|
19377
|
+
};
|
|
19378
|
+
var deserializeAws_restXmlResponseHeadersPolicyList = function (output, context) {
|
|
19379
|
+
var contents = {
|
|
19380
|
+
NextMarker: undefined,
|
|
19381
|
+
MaxItems: undefined,
|
|
19382
|
+
Quantity: undefined,
|
|
19383
|
+
Items: undefined,
|
|
19384
|
+
};
|
|
19385
|
+
if (output["NextMarker"] !== undefined) {
|
|
19386
|
+
contents.NextMarker = __expectString(output["NextMarker"]);
|
|
19387
|
+
}
|
|
19388
|
+
if (output["MaxItems"] !== undefined) {
|
|
19389
|
+
contents.MaxItems = __strictParseInt32(output["MaxItems"]);
|
|
19390
|
+
}
|
|
19391
|
+
if (output["Quantity"] !== undefined) {
|
|
19392
|
+
contents.Quantity = __strictParseInt32(output["Quantity"]);
|
|
19393
|
+
}
|
|
19394
|
+
if (output.Items === "") {
|
|
19395
|
+
contents.Items = [];
|
|
19396
|
+
}
|
|
19397
|
+
if (output["Items"] !== undefined && output["Items"]["ResponseHeadersPolicySummary"] !== undefined) {
|
|
19398
|
+
contents.Items = deserializeAws_restXmlResponseHeadersPolicySummaryList(__getArrayIfSingleItem(output["Items"]["ResponseHeadersPolicySummary"]), context);
|
|
19399
|
+
}
|
|
19400
|
+
return contents;
|
|
19401
|
+
};
|
|
19402
|
+
var deserializeAws_restXmlResponseHeadersPolicyReferrerPolicy = function (output, context) {
|
|
19403
|
+
var contents = {
|
|
19404
|
+
Override: undefined,
|
|
19405
|
+
ReferrerPolicy: undefined,
|
|
19406
|
+
};
|
|
19407
|
+
if (output["Override"] !== undefined) {
|
|
19408
|
+
contents.Override = __parseBoolean(output["Override"]);
|
|
19409
|
+
}
|
|
19410
|
+
if (output["ReferrerPolicy"] !== undefined) {
|
|
19411
|
+
contents.ReferrerPolicy = __expectString(output["ReferrerPolicy"]);
|
|
19412
|
+
}
|
|
19413
|
+
return contents;
|
|
19414
|
+
};
|
|
19415
|
+
var deserializeAws_restXmlResponseHeadersPolicySecurityHeadersConfig = function (output, context) {
|
|
19416
|
+
var contents = {
|
|
19417
|
+
XSSProtection: undefined,
|
|
19418
|
+
FrameOptions: undefined,
|
|
19419
|
+
ReferrerPolicy: undefined,
|
|
19420
|
+
ContentSecurityPolicy: undefined,
|
|
19421
|
+
ContentTypeOptions: undefined,
|
|
19422
|
+
StrictTransportSecurity: undefined,
|
|
19423
|
+
};
|
|
19424
|
+
if (output["XSSProtection"] !== undefined) {
|
|
19425
|
+
contents.XSSProtection = deserializeAws_restXmlResponseHeadersPolicyXSSProtection(output["XSSProtection"], context);
|
|
19426
|
+
}
|
|
19427
|
+
if (output["FrameOptions"] !== undefined) {
|
|
19428
|
+
contents.FrameOptions = deserializeAws_restXmlResponseHeadersPolicyFrameOptions(output["FrameOptions"], context);
|
|
19429
|
+
}
|
|
19430
|
+
if (output["ReferrerPolicy"] !== undefined) {
|
|
19431
|
+
contents.ReferrerPolicy = deserializeAws_restXmlResponseHeadersPolicyReferrerPolicy(output["ReferrerPolicy"], context);
|
|
19432
|
+
}
|
|
19433
|
+
if (output["ContentSecurityPolicy"] !== undefined) {
|
|
19434
|
+
contents.ContentSecurityPolicy = deserializeAws_restXmlResponseHeadersPolicyContentSecurityPolicy(output["ContentSecurityPolicy"], context);
|
|
19435
|
+
}
|
|
19436
|
+
if (output["ContentTypeOptions"] !== undefined) {
|
|
19437
|
+
contents.ContentTypeOptions = deserializeAws_restXmlResponseHeadersPolicyContentTypeOptions(output["ContentTypeOptions"], context);
|
|
19438
|
+
}
|
|
19439
|
+
if (output["StrictTransportSecurity"] !== undefined) {
|
|
19440
|
+
contents.StrictTransportSecurity = deserializeAws_restXmlResponseHeadersPolicyStrictTransportSecurity(output["StrictTransportSecurity"], context);
|
|
19441
|
+
}
|
|
19442
|
+
return contents;
|
|
19443
|
+
};
|
|
19444
|
+
var deserializeAws_restXmlResponseHeadersPolicyStrictTransportSecurity = function (output, context) {
|
|
19445
|
+
var contents = {
|
|
19446
|
+
Override: undefined,
|
|
19447
|
+
IncludeSubdomains: undefined,
|
|
19448
|
+
Preload: undefined,
|
|
19449
|
+
AccessControlMaxAgeSec: undefined,
|
|
19450
|
+
};
|
|
19451
|
+
if (output["Override"] !== undefined) {
|
|
19452
|
+
contents.Override = __parseBoolean(output["Override"]);
|
|
19453
|
+
}
|
|
19454
|
+
if (output["IncludeSubdomains"] !== undefined) {
|
|
19455
|
+
contents.IncludeSubdomains = __parseBoolean(output["IncludeSubdomains"]);
|
|
19456
|
+
}
|
|
19457
|
+
if (output["Preload"] !== undefined) {
|
|
19458
|
+
contents.Preload = __parseBoolean(output["Preload"]);
|
|
19459
|
+
}
|
|
19460
|
+
if (output["AccessControlMaxAgeSec"] !== undefined) {
|
|
19461
|
+
contents.AccessControlMaxAgeSec = __strictParseInt32(output["AccessControlMaxAgeSec"]);
|
|
19462
|
+
}
|
|
19463
|
+
return contents;
|
|
19464
|
+
};
|
|
19465
|
+
var deserializeAws_restXmlResponseHeadersPolicySummary = function (output, context) {
|
|
19466
|
+
var contents = {
|
|
19467
|
+
Type: undefined,
|
|
19468
|
+
ResponseHeadersPolicy: undefined,
|
|
19469
|
+
};
|
|
19470
|
+
if (output["Type"] !== undefined) {
|
|
19471
|
+
contents.Type = __expectString(output["Type"]);
|
|
19472
|
+
}
|
|
19473
|
+
if (output["ResponseHeadersPolicy"] !== undefined) {
|
|
19474
|
+
contents.ResponseHeadersPolicy = deserializeAws_restXmlResponseHeadersPolicy(output["ResponseHeadersPolicy"], context);
|
|
19475
|
+
}
|
|
19476
|
+
return contents;
|
|
19477
|
+
};
|
|
19478
|
+
var deserializeAws_restXmlResponseHeadersPolicySummaryList = function (output, context) {
|
|
19479
|
+
return (output || [])
|
|
19480
|
+
.filter(function (e) { return e != null; })
|
|
19481
|
+
.map(function (entry) {
|
|
19482
|
+
if (entry === null) {
|
|
19483
|
+
return null;
|
|
19484
|
+
}
|
|
19485
|
+
return deserializeAws_restXmlResponseHeadersPolicySummary(entry, context);
|
|
19486
|
+
});
|
|
19487
|
+
};
|
|
19488
|
+
var deserializeAws_restXmlResponseHeadersPolicyXSSProtection = function (output, context) {
|
|
19489
|
+
var contents = {
|
|
19490
|
+
Override: undefined,
|
|
19491
|
+
Protection: undefined,
|
|
19492
|
+
ModeBlock: undefined,
|
|
19493
|
+
ReportUri: undefined,
|
|
19494
|
+
};
|
|
19495
|
+
if (output["Override"] !== undefined) {
|
|
19496
|
+
contents.Override = __parseBoolean(output["Override"]);
|
|
19497
|
+
}
|
|
19498
|
+
if (output["Protection"] !== undefined) {
|
|
19499
|
+
contents.Protection = __parseBoolean(output["Protection"]);
|
|
19500
|
+
}
|
|
19501
|
+
if (output["ModeBlock"] !== undefined) {
|
|
19502
|
+
contents.ModeBlock = __parseBoolean(output["ModeBlock"]);
|
|
19503
|
+
}
|
|
19504
|
+
if (output["ReportUri"] !== undefined) {
|
|
19505
|
+
contents.ReportUri = __expectString(output["ReportUri"]);
|
|
19506
|
+
}
|
|
19507
|
+
return contents;
|
|
19508
|
+
};
|
|
17775
19509
|
var deserializeAws_restXmlRestrictions = function (output, context) {
|
|
17776
19510
|
var contents = {
|
|
17777
19511
|
GeoRestriction: undefined,
|