@aws-sdk/client-route-53 3.99.0 → 3.105.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 +30 -0
- package/README.md +2 -1
- package/dist-cjs/Route53.js +90 -0
- package/dist-cjs/Route53Client.js +2 -0
- package/dist-cjs/commands/ChangeCidrCollectionCommand.js +38 -0
- package/dist-cjs/commands/CreateCidrCollectionCommand.js +36 -0
- package/dist-cjs/commands/DeleteCidrCollectionCommand.js +38 -0
- package/dist-cjs/commands/ListCidrBlocksCommand.js +36 -0
- package/dist-cjs/commands/ListCidrCollectionsCommand.js +36 -0
- package/dist-cjs/commands/ListCidrLocationsCommand.js +36 -0
- package/dist-cjs/commands/index.js +6 -0
- package/dist-cjs/models/models_0.js +202 -5
- package/dist-cjs/pagination/ListCidrBlocksPaginator.js +36 -0
- package/dist-cjs/pagination/ListCidrCollectionsPaginator.js +36 -0
- package/dist-cjs/pagination/ListCidrLocationsPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +3 -0
- package/dist-cjs/protocols/Aws_restXml.js +784 -63
- package/dist-es/Route53.js +90 -0
- package/dist-es/Route53Client.js +2 -0
- package/dist-es/commands/ChangeCidrCollectionCommand.js +41 -0
- package/dist-es/commands/CreateCidrCollectionCommand.js +39 -0
- package/dist-es/commands/DeleteCidrCollectionCommand.js +41 -0
- package/dist-es/commands/ListCidrBlocksCommand.js +39 -0
- package/dist-es/commands/ListCidrCollectionsCommand.js +39 -0
- package/dist-es/commands/ListCidrLocationsCommand.js +39 -0
- package/dist-es/commands/index.js +6 -0
- package/dist-es/models/models_0.js +155 -0
- package/dist-es/pagination/ListCidrBlocksPaginator.js +75 -0
- package/dist-es/pagination/ListCidrCollectionsPaginator.js +75 -0
- package/dist-es/pagination/ListCidrLocationsPaginator.js +75 -0
- package/dist-es/pagination/index.js +3 -0
- package/dist-es/protocols/Aws_restXml.js +966 -99
- package/dist-types/Route53.d.ts +768 -557
- package/dist-types/Route53Client.d.ts +10 -3
- package/dist-types/commands/ActivateKeySigningKeyCommand.d.ts +2 -2
- package/dist-types/commands/AssociateVPCWithHostedZoneCommand.d.ts +19 -18
- package/dist-types/commands/ChangeCidrCollectionCommand.d.ts +60 -0
- package/dist-types/commands/ChangeResourceRecordSetsCommand.d.ts +63 -53
- package/dist-types/commands/ChangeTagsForResourceCommand.d.ts +2 -3
- package/dist-types/commands/CreateCidrCollectionCommand.d.ts +37 -0
- package/dist-types/commands/CreateHealthCheckCommand.d.ts +20 -19
- package/dist-types/commands/CreateHostedZoneCommand.d.ts +40 -31
- package/dist-types/commands/CreateKeySigningKeyCommand.d.ts +2 -1
- package/dist-types/commands/CreateQueryLoggingConfigCommand.d.ts +103 -74
- package/dist-types/commands/CreateReusableDelegationSetCommand.d.ts +42 -35
- package/dist-types/commands/CreateTrafficPolicyCommand.d.ts +3 -2
- package/dist-types/commands/CreateTrafficPolicyInstanceCommand.d.ts +6 -4
- package/dist-types/commands/CreateTrafficPolicyVersionCommand.d.ts +7 -5
- package/dist-types/commands/CreateVPCAssociationAuthorizationCommand.d.ts +10 -8
- package/dist-types/commands/DeactivateKeySigningKeyCommand.d.ts +2 -2
- package/dist-types/commands/DeleteCidrCollectionCommand.d.ts +36 -0
- package/dist-types/commands/DeleteHealthCheckCommand.d.ts +12 -11
- package/dist-types/commands/DeleteHostedZoneCommand.d.ts +33 -30
- package/dist-types/commands/DeleteKeySigningKeyCommand.d.ts +4 -4
- package/dist-types/commands/DeleteQueryLoggingConfigCommand.d.ts +4 -5
- package/dist-types/commands/DeleteReusableDelegationSetCommand.d.ts +5 -4
- package/dist-types/commands/DeleteTrafficPolicyCommand.d.ts +10 -9
- package/dist-types/commands/DeleteTrafficPolicyInstanceCommand.d.ts +4 -2
- package/dist-types/commands/DeleteVPCAssociationAuthorizationCommand.d.ts +10 -7
- package/dist-types/commands/DisableHostedZoneDNSSECCommand.d.ts +2 -2
- package/dist-types/commands/DisassociateVPCFromHostedZoneCommand.d.ts +30 -23
- package/dist-types/commands/GetAccountLimitCommand.d.ts +7 -8
- package/dist-types/commands/GetChangeCommand.d.ts +5 -3
- package/dist-types/commands/GetCheckerIpRangesCommand.d.ts +7 -5
- package/dist-types/commands/GetDNSSECCommand.d.ts +2 -1
- package/dist-types/commands/GetGeoLocationCommand.d.ts +17 -12
- package/dist-types/commands/GetHealthCheckStatusCommand.d.ts +4 -2
- package/dist-types/commands/GetHostedZoneCommand.d.ts +2 -1
- package/dist-types/commands/GetHostedZoneLimitCommand.d.ts +5 -5
- package/dist-types/commands/GetQueryLoggingConfigCommand.d.ts +2 -5
- package/dist-types/commands/GetReusableDelegationSetCommand.d.ts +2 -2
- package/dist-types/commands/GetReusableDelegationSetLimitCommand.d.ts +5 -4
- package/dist-types/commands/GetTrafficPolicyCommand.d.ts +2 -3
- package/dist-types/commands/GetTrafficPolicyInstanceCommand.d.ts +7 -4
- package/dist-types/commands/GetTrafficPolicyInstanceCountCommand.d.ts +2 -1
- package/dist-types/commands/ListCidrBlocksCommand.d.ts +35 -0
- package/dist-types/commands/ListCidrCollectionsCommand.d.ts +36 -0
- package/dist-types/commands/ListCidrLocationsCommand.d.ts +36 -0
- package/dist-types/commands/ListGeoLocationsCommand.d.ts +8 -5
- package/dist-types/commands/ListHostedZonesByNameCommand.d.ts +38 -27
- package/dist-types/commands/ListHostedZonesByVPCCommand.d.ts +22 -18
- package/dist-types/commands/ListHostedZonesCommand.d.ts +6 -4
- package/dist-types/commands/ListQueryLoggingConfigsCommand.d.ts +6 -8
- package/dist-types/commands/ListResourceRecordSetsCommand.d.ts +42 -35
- package/dist-types/commands/ListReusableDelegationSetsCommand.d.ts +2 -1
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +2 -3
- package/dist-types/commands/ListTagsForResourcesCommand.d.ts +2 -3
- package/dist-types/commands/ListTrafficPoliciesCommand.d.ts +5 -7
- package/dist-types/commands/ListTrafficPolicyInstancesByHostedZoneCommand.d.ts +10 -6
- package/dist-types/commands/ListTrafficPolicyInstancesByPolicyCommand.d.ts +10 -6
- package/dist-types/commands/ListTrafficPolicyInstancesCommand.d.ts +9 -5
- package/dist-types/commands/ListTrafficPolicyVersionsCommand.d.ts +2 -1
- package/dist-types/commands/ListVPCAssociationAuthorizationsCommand.d.ts +5 -4
- package/dist-types/commands/TestDNSAnswerCommand.d.ts +3 -2
- package/dist-types/commands/UpdateHealthCheckCommand.d.ts +3 -3
- package/dist-types/commands/UpdateTrafficPolicyInstanceCommand.d.ts +15 -8
- package/dist-types/commands/index.d.ts +6 -0
- package/dist-types/models/models_0.d.ts +3053 -1877
- package/dist-types/pagination/ListCidrBlocksPaginator.d.ts +4 -0
- package/dist-types/pagination/ListCidrCollectionsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListCidrLocationsPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +3 -0
- package/dist-types/protocols/Aws_restXml.d.ts +18 -0
- package/dist-types/ts3.4/Route53.d.ts +14 -0
- package/dist-types/ts3.4/Route53Client.d.ts +8 -2
- package/dist-types/ts3.4/commands/ChangeCidrCollectionCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateCidrCollectionCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteCidrCollectionCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListCidrBlocksCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListCidrCollectionsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListCidrLocationsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +248 -0
- package/dist-types/ts3.4/pagination/ListCidrBlocksPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListCidrCollectionsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListCidrLocationsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +3 -0
- package/dist-types/ts3.4/protocols/Aws_restXml.d.ts +18 -0
- package/package.json +4 -3
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.deserializeAws_restXmlUpdateTrafficPolicyInstanceCommand = exports.deserializeAws_restXmlUpdateTrafficPolicyCommentCommand = exports.deserializeAws_restXmlUpdateHostedZoneCommentCommand = exports.deserializeAws_restXmlUpdateHealthCheckCommand = exports.deserializeAws_restXmlTestDNSAnswerCommand = exports.deserializeAws_restXmlListVPCAssociationAuthorizationsCommand = exports.deserializeAws_restXmlListTrafficPolicyVersionsCommand = exports.deserializeAws_restXmlListTrafficPolicyInstancesByPolicyCommand = exports.deserializeAws_restXmlListTrafficPolicyInstancesByHostedZoneCommand = exports.deserializeAws_restXmlListTrafficPolicyInstancesCommand = exports.deserializeAws_restXmlListTrafficPoliciesCommand = exports.deserializeAws_restXmlListTagsForResourcesCommand = exports.deserializeAws_restXmlListTagsForResourceCommand = exports.deserializeAws_restXmlListReusableDelegationSetsCommand = exports.deserializeAws_restXmlListResourceRecordSetsCommand = exports.deserializeAws_restXmlListQueryLoggingConfigsCommand = exports.deserializeAws_restXmlListHostedZonesByVPCCommand = exports.deserializeAws_restXmlListHostedZonesByNameCommand = exports.deserializeAws_restXmlListHostedZonesCommand = exports.deserializeAws_restXmlListHealthChecksCommand = exports.deserializeAws_restXmlListGeoLocationsCommand = exports.deserializeAws_restXmlGetTrafficPolicyInstanceCountCommand = exports.deserializeAws_restXmlGetTrafficPolicyInstanceCommand = exports.deserializeAws_restXmlGetTrafficPolicyCommand = exports.deserializeAws_restXmlGetReusableDelegationSetLimitCommand = exports.deserializeAws_restXmlGetReusableDelegationSetCommand = exports.deserializeAws_restXmlGetQueryLoggingConfigCommand = exports.deserializeAws_restXmlGetHostedZoneLimitCommand = void 0;
|
|
3
|
+
exports.serializeAws_restXmlListGeoLocationsCommand = exports.serializeAws_restXmlListCidrLocationsCommand = exports.serializeAws_restXmlListCidrCollectionsCommand = exports.serializeAws_restXmlListCidrBlocksCommand = exports.serializeAws_restXmlGetTrafficPolicyInstanceCountCommand = exports.serializeAws_restXmlGetTrafficPolicyInstanceCommand = exports.serializeAws_restXmlGetTrafficPolicyCommand = exports.serializeAws_restXmlGetReusableDelegationSetLimitCommand = exports.serializeAws_restXmlGetReusableDelegationSetCommand = exports.serializeAws_restXmlGetQueryLoggingConfigCommand = exports.serializeAws_restXmlGetHostedZoneLimitCommand = exports.serializeAws_restXmlGetHostedZoneCountCommand = exports.serializeAws_restXmlGetHostedZoneCommand = exports.serializeAws_restXmlGetHealthCheckStatusCommand = exports.serializeAws_restXmlGetHealthCheckLastFailureReasonCommand = exports.serializeAws_restXmlGetHealthCheckCountCommand = exports.serializeAws_restXmlGetHealthCheckCommand = exports.serializeAws_restXmlGetGeoLocationCommand = exports.serializeAws_restXmlGetDNSSECCommand = exports.serializeAws_restXmlGetCheckerIpRangesCommand = exports.serializeAws_restXmlGetChangeCommand = exports.serializeAws_restXmlGetAccountLimitCommand = exports.serializeAws_restXmlEnableHostedZoneDNSSECCommand = exports.serializeAws_restXmlDisassociateVPCFromHostedZoneCommand = exports.serializeAws_restXmlDisableHostedZoneDNSSECCommand = exports.serializeAws_restXmlDeleteVPCAssociationAuthorizationCommand = exports.serializeAws_restXmlDeleteTrafficPolicyInstanceCommand = exports.serializeAws_restXmlDeleteTrafficPolicyCommand = exports.serializeAws_restXmlDeleteReusableDelegationSetCommand = exports.serializeAws_restXmlDeleteQueryLoggingConfigCommand = exports.serializeAws_restXmlDeleteKeySigningKeyCommand = exports.serializeAws_restXmlDeleteHostedZoneCommand = exports.serializeAws_restXmlDeleteHealthCheckCommand = exports.serializeAws_restXmlDeleteCidrCollectionCommand = exports.serializeAws_restXmlDeactivateKeySigningKeyCommand = exports.serializeAws_restXmlCreateVPCAssociationAuthorizationCommand = exports.serializeAws_restXmlCreateTrafficPolicyVersionCommand = exports.serializeAws_restXmlCreateTrafficPolicyInstanceCommand = exports.serializeAws_restXmlCreateTrafficPolicyCommand = exports.serializeAws_restXmlCreateReusableDelegationSetCommand = exports.serializeAws_restXmlCreateQueryLoggingConfigCommand = exports.serializeAws_restXmlCreateKeySigningKeyCommand = exports.serializeAws_restXmlCreateHostedZoneCommand = exports.serializeAws_restXmlCreateHealthCheckCommand = exports.serializeAws_restXmlCreateCidrCollectionCommand = exports.serializeAws_restXmlChangeTagsForResourceCommand = exports.serializeAws_restXmlChangeResourceRecordSetsCommand = exports.serializeAws_restXmlChangeCidrCollectionCommand = exports.serializeAws_restXmlAssociateVPCWithHostedZoneCommand = exports.serializeAws_restXmlActivateKeySigningKeyCommand = void 0;
|
|
4
|
+
exports.deserializeAws_restXmlGetChangeCommand = exports.deserializeAws_restXmlGetAccountLimitCommand = exports.deserializeAws_restXmlEnableHostedZoneDNSSECCommand = exports.deserializeAws_restXmlDisassociateVPCFromHostedZoneCommand = exports.deserializeAws_restXmlDisableHostedZoneDNSSECCommand = exports.deserializeAws_restXmlDeleteVPCAssociationAuthorizationCommand = exports.deserializeAws_restXmlDeleteTrafficPolicyInstanceCommand = exports.deserializeAws_restXmlDeleteTrafficPolicyCommand = exports.deserializeAws_restXmlDeleteReusableDelegationSetCommand = exports.deserializeAws_restXmlDeleteQueryLoggingConfigCommand = exports.deserializeAws_restXmlDeleteKeySigningKeyCommand = exports.deserializeAws_restXmlDeleteHostedZoneCommand = exports.deserializeAws_restXmlDeleteHealthCheckCommand = exports.deserializeAws_restXmlDeleteCidrCollectionCommand = exports.deserializeAws_restXmlDeactivateKeySigningKeyCommand = exports.deserializeAws_restXmlCreateVPCAssociationAuthorizationCommand = exports.deserializeAws_restXmlCreateTrafficPolicyVersionCommand = exports.deserializeAws_restXmlCreateTrafficPolicyInstanceCommand = exports.deserializeAws_restXmlCreateTrafficPolicyCommand = exports.deserializeAws_restXmlCreateReusableDelegationSetCommand = exports.deserializeAws_restXmlCreateQueryLoggingConfigCommand = exports.deserializeAws_restXmlCreateKeySigningKeyCommand = exports.deserializeAws_restXmlCreateHostedZoneCommand = exports.deserializeAws_restXmlCreateHealthCheckCommand = exports.deserializeAws_restXmlCreateCidrCollectionCommand = exports.deserializeAws_restXmlChangeTagsForResourceCommand = exports.deserializeAws_restXmlChangeResourceRecordSetsCommand = exports.deserializeAws_restXmlChangeCidrCollectionCommand = exports.deserializeAws_restXmlAssociateVPCWithHostedZoneCommand = exports.deserializeAws_restXmlActivateKeySigningKeyCommand = exports.serializeAws_restXmlUpdateTrafficPolicyInstanceCommand = exports.serializeAws_restXmlUpdateTrafficPolicyCommentCommand = exports.serializeAws_restXmlUpdateHostedZoneCommentCommand = exports.serializeAws_restXmlUpdateHealthCheckCommand = exports.serializeAws_restXmlTestDNSAnswerCommand = exports.serializeAws_restXmlListVPCAssociationAuthorizationsCommand = exports.serializeAws_restXmlListTrafficPolicyVersionsCommand = exports.serializeAws_restXmlListTrafficPolicyInstancesByPolicyCommand = exports.serializeAws_restXmlListTrafficPolicyInstancesByHostedZoneCommand = exports.serializeAws_restXmlListTrafficPolicyInstancesCommand = exports.serializeAws_restXmlListTrafficPoliciesCommand = exports.serializeAws_restXmlListTagsForResourcesCommand = exports.serializeAws_restXmlListTagsForResourceCommand = exports.serializeAws_restXmlListReusableDelegationSetsCommand = exports.serializeAws_restXmlListResourceRecordSetsCommand = exports.serializeAws_restXmlListQueryLoggingConfigsCommand = exports.serializeAws_restXmlListHostedZonesByVPCCommand = exports.serializeAws_restXmlListHostedZonesByNameCommand = exports.serializeAws_restXmlListHostedZonesCommand = exports.serializeAws_restXmlListHealthChecksCommand = void 0;
|
|
5
|
+
exports.deserializeAws_restXmlUpdateTrafficPolicyInstanceCommand = exports.deserializeAws_restXmlUpdateTrafficPolicyCommentCommand = exports.deserializeAws_restXmlUpdateHostedZoneCommentCommand = exports.deserializeAws_restXmlUpdateHealthCheckCommand = exports.deserializeAws_restXmlTestDNSAnswerCommand = exports.deserializeAws_restXmlListVPCAssociationAuthorizationsCommand = exports.deserializeAws_restXmlListTrafficPolicyVersionsCommand = exports.deserializeAws_restXmlListTrafficPolicyInstancesByPolicyCommand = exports.deserializeAws_restXmlListTrafficPolicyInstancesByHostedZoneCommand = exports.deserializeAws_restXmlListTrafficPolicyInstancesCommand = exports.deserializeAws_restXmlListTrafficPoliciesCommand = exports.deserializeAws_restXmlListTagsForResourcesCommand = exports.deserializeAws_restXmlListTagsForResourceCommand = exports.deserializeAws_restXmlListReusableDelegationSetsCommand = exports.deserializeAws_restXmlListResourceRecordSetsCommand = exports.deserializeAws_restXmlListQueryLoggingConfigsCommand = exports.deserializeAws_restXmlListHostedZonesByVPCCommand = exports.deserializeAws_restXmlListHostedZonesByNameCommand = exports.deserializeAws_restXmlListHostedZonesCommand = exports.deserializeAws_restXmlListHealthChecksCommand = exports.deserializeAws_restXmlListGeoLocationsCommand = exports.deserializeAws_restXmlListCidrLocationsCommand = exports.deserializeAws_restXmlListCidrCollectionsCommand = exports.deserializeAws_restXmlListCidrBlocksCommand = exports.deserializeAws_restXmlGetTrafficPolicyInstanceCountCommand = exports.deserializeAws_restXmlGetTrafficPolicyInstanceCommand = exports.deserializeAws_restXmlGetTrafficPolicyCommand = exports.deserializeAws_restXmlGetReusableDelegationSetLimitCommand = exports.deserializeAws_restXmlGetReusableDelegationSetCommand = exports.deserializeAws_restXmlGetQueryLoggingConfigCommand = exports.deserializeAws_restXmlGetHostedZoneLimitCommand = exports.deserializeAws_restXmlGetHostedZoneCountCommand = exports.deserializeAws_restXmlGetHostedZoneCommand = exports.deserializeAws_restXmlGetHealthCheckStatusCommand = exports.deserializeAws_restXmlGetHealthCheckLastFailureReasonCommand = exports.deserializeAws_restXmlGetHealthCheckCountCommand = exports.deserializeAws_restXmlGetHealthCheckCommand = exports.deserializeAws_restXmlGetGeoLocationCommand = exports.deserializeAws_restXmlGetDNSSECCommand = exports.deserializeAws_restXmlGetCheckerIpRangesCommand = void 0;
|
|
6
6
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
7
7
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
8
8
|
const xml_builder_1 = require("@aws-sdk/xml-builder");
|
|
@@ -88,6 +88,52 @@ const serializeAws_restXmlAssociateVPCWithHostedZoneCommand = async (input, cont
|
|
|
88
88
|
});
|
|
89
89
|
};
|
|
90
90
|
exports.serializeAws_restXmlAssociateVPCWithHostedZoneCommand = serializeAws_restXmlAssociateVPCWithHostedZoneCommand;
|
|
91
|
+
const serializeAws_restXmlChangeCidrCollectionCommand = async (input, context) => {
|
|
92
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
93
|
+
const headers = {
|
|
94
|
+
"content-type": "application/xml",
|
|
95
|
+
};
|
|
96
|
+
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/2013-04-01/cidrcollection/{Id}";
|
|
97
|
+
if (input.Id !== undefined) {
|
|
98
|
+
const labelValue = input.Id;
|
|
99
|
+
if (labelValue.length <= 0) {
|
|
100
|
+
throw new Error("Empty value provided for input HTTP label: Id.");
|
|
101
|
+
}
|
|
102
|
+
resolvedPath = resolvedPath.replace("{Id}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
103
|
+
}
|
|
104
|
+
else {
|
|
105
|
+
throw new Error("No value provided for input HTTP label: Id.");
|
|
106
|
+
}
|
|
107
|
+
let body;
|
|
108
|
+
body = '<?xml version="1.0" encoding="UTF-8"?>';
|
|
109
|
+
const bodyNode = new xml_builder_1.XmlNode("ChangeCidrCollectionRequest");
|
|
110
|
+
bodyNode.addAttribute("xmlns", "https://route53.amazonaws.com/doc/2013-04-01/");
|
|
111
|
+
if (input.Changes !== undefined) {
|
|
112
|
+
const nodes = serializeAws_restXmlCidrCollectionChanges(input.Changes, context);
|
|
113
|
+
const containerNode = new xml_builder_1.XmlNode("Changes");
|
|
114
|
+
nodes.map((node) => {
|
|
115
|
+
containerNode.addChildNode(node);
|
|
116
|
+
});
|
|
117
|
+
bodyNode.addChildNode(containerNode);
|
|
118
|
+
}
|
|
119
|
+
if (input.CollectionVersion !== undefined) {
|
|
120
|
+
const node = new xml_builder_1.XmlNode("CollectionVersion")
|
|
121
|
+
.addChildNode(new xml_builder_1.XmlText(String(input.CollectionVersion)))
|
|
122
|
+
.withName("CollectionVersion");
|
|
123
|
+
bodyNode.addChildNode(node);
|
|
124
|
+
}
|
|
125
|
+
body += bodyNode.toString();
|
|
126
|
+
return new protocol_http_1.HttpRequest({
|
|
127
|
+
protocol,
|
|
128
|
+
hostname,
|
|
129
|
+
port,
|
|
130
|
+
method: "POST",
|
|
131
|
+
headers,
|
|
132
|
+
path: resolvedPath,
|
|
133
|
+
body,
|
|
134
|
+
});
|
|
135
|
+
};
|
|
136
|
+
exports.serializeAws_restXmlChangeCidrCollectionCommand = serializeAws_restXmlChangeCidrCollectionCommand;
|
|
91
137
|
const serializeAws_restXmlChangeResourceRecordSetsCommand = async (input, context) => {
|
|
92
138
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
93
139
|
const headers = {
|
|
@@ -184,6 +230,38 @@ const serializeAws_restXmlChangeTagsForResourceCommand = async (input, context)
|
|
|
184
230
|
});
|
|
185
231
|
};
|
|
186
232
|
exports.serializeAws_restXmlChangeTagsForResourceCommand = serializeAws_restXmlChangeTagsForResourceCommand;
|
|
233
|
+
const serializeAws_restXmlCreateCidrCollectionCommand = async (input, context) => {
|
|
234
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
235
|
+
const headers = {
|
|
236
|
+
"content-type": "application/xml",
|
|
237
|
+
};
|
|
238
|
+
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/2013-04-01/cidrcollection";
|
|
239
|
+
let body;
|
|
240
|
+
body = '<?xml version="1.0" encoding="UTF-8"?>';
|
|
241
|
+
const bodyNode = new xml_builder_1.XmlNode("CreateCidrCollectionRequest");
|
|
242
|
+
bodyNode.addAttribute("xmlns", "https://route53.amazonaws.com/doc/2013-04-01/");
|
|
243
|
+
if (input.CallerReference !== undefined) {
|
|
244
|
+
const node = new xml_builder_1.XmlNode("CidrNonce")
|
|
245
|
+
.addChildNode(new xml_builder_1.XmlText(input.CallerReference))
|
|
246
|
+
.withName("CallerReference");
|
|
247
|
+
bodyNode.addChildNode(node);
|
|
248
|
+
}
|
|
249
|
+
if (input.Name !== undefined) {
|
|
250
|
+
const node = new xml_builder_1.XmlNode("CollectionName").addChildNode(new xml_builder_1.XmlText(input.Name)).withName("Name");
|
|
251
|
+
bodyNode.addChildNode(node);
|
|
252
|
+
}
|
|
253
|
+
body += bodyNode.toString();
|
|
254
|
+
return new protocol_http_1.HttpRequest({
|
|
255
|
+
protocol,
|
|
256
|
+
hostname,
|
|
257
|
+
port,
|
|
258
|
+
method: "POST",
|
|
259
|
+
headers,
|
|
260
|
+
path: resolvedPath,
|
|
261
|
+
body,
|
|
262
|
+
});
|
|
263
|
+
};
|
|
264
|
+
exports.serializeAws_restXmlCreateCidrCollectionCommand = serializeAws_restXmlCreateCidrCollectionCommand;
|
|
187
265
|
const serializeAws_restXmlCreateHealthCheckCommand = async (input, context) => {
|
|
188
266
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
189
267
|
const headers = {
|
|
@@ -564,6 +642,32 @@ const serializeAws_restXmlDeactivateKeySigningKeyCommand = async (input, context
|
|
|
564
642
|
});
|
|
565
643
|
};
|
|
566
644
|
exports.serializeAws_restXmlDeactivateKeySigningKeyCommand = serializeAws_restXmlDeactivateKeySigningKeyCommand;
|
|
645
|
+
const serializeAws_restXmlDeleteCidrCollectionCommand = async (input, context) => {
|
|
646
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
647
|
+
const headers = {};
|
|
648
|
+
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/2013-04-01/cidrcollection/{Id}";
|
|
649
|
+
if (input.Id !== undefined) {
|
|
650
|
+
const labelValue = input.Id;
|
|
651
|
+
if (labelValue.length <= 0) {
|
|
652
|
+
throw new Error("Empty value provided for input HTTP label: Id.");
|
|
653
|
+
}
|
|
654
|
+
resolvedPath = resolvedPath.replace("{Id}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
655
|
+
}
|
|
656
|
+
else {
|
|
657
|
+
throw new Error("No value provided for input HTTP label: Id.");
|
|
658
|
+
}
|
|
659
|
+
let body;
|
|
660
|
+
return new protocol_http_1.HttpRequest({
|
|
661
|
+
protocol,
|
|
662
|
+
hostname,
|
|
663
|
+
port,
|
|
664
|
+
method: "DELETE",
|
|
665
|
+
headers,
|
|
666
|
+
path: resolvedPath,
|
|
667
|
+
body,
|
|
668
|
+
});
|
|
669
|
+
};
|
|
670
|
+
exports.serializeAws_restXmlDeleteCidrCollectionCommand = serializeAws_restXmlDeleteCidrCollectionCommand;
|
|
567
671
|
const serializeAws_restXmlDeleteHealthCheckCommand = async (input, context) => {
|
|
568
672
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
569
673
|
const headers = {};
|
|
@@ -1370,6 +1474,91 @@ const serializeAws_restXmlGetTrafficPolicyInstanceCountCommand = async (input, c
|
|
|
1370
1474
|
});
|
|
1371
1475
|
};
|
|
1372
1476
|
exports.serializeAws_restXmlGetTrafficPolicyInstanceCountCommand = serializeAws_restXmlGetTrafficPolicyInstanceCountCommand;
|
|
1477
|
+
const serializeAws_restXmlListCidrBlocksCommand = async (input, context) => {
|
|
1478
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1479
|
+
const headers = {};
|
|
1480
|
+
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1481
|
+
"/2013-04-01/cidrcollection/{CollectionId}/cidrblocks";
|
|
1482
|
+
if (input.CollectionId !== undefined) {
|
|
1483
|
+
const labelValue = input.CollectionId;
|
|
1484
|
+
if (labelValue.length <= 0) {
|
|
1485
|
+
throw new Error("Empty value provided for input HTTP label: CollectionId.");
|
|
1486
|
+
}
|
|
1487
|
+
resolvedPath = resolvedPath.replace("{CollectionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
1488
|
+
}
|
|
1489
|
+
else {
|
|
1490
|
+
throw new Error("No value provided for input HTTP label: CollectionId.");
|
|
1491
|
+
}
|
|
1492
|
+
const query = {
|
|
1493
|
+
...(input.LocationName !== undefined && { location: input.LocationName }),
|
|
1494
|
+
...(input.NextToken !== undefined && { nexttoken: input.NextToken }),
|
|
1495
|
+
...(input.MaxResults !== undefined && { maxresults: input.MaxResults.toString() }),
|
|
1496
|
+
};
|
|
1497
|
+
let body;
|
|
1498
|
+
return new protocol_http_1.HttpRequest({
|
|
1499
|
+
protocol,
|
|
1500
|
+
hostname,
|
|
1501
|
+
port,
|
|
1502
|
+
method: "GET",
|
|
1503
|
+
headers,
|
|
1504
|
+
path: resolvedPath,
|
|
1505
|
+
query,
|
|
1506
|
+
body,
|
|
1507
|
+
});
|
|
1508
|
+
};
|
|
1509
|
+
exports.serializeAws_restXmlListCidrBlocksCommand = serializeAws_restXmlListCidrBlocksCommand;
|
|
1510
|
+
const serializeAws_restXmlListCidrCollectionsCommand = async (input, context) => {
|
|
1511
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1512
|
+
const headers = {};
|
|
1513
|
+
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/2013-04-01/cidrcollection";
|
|
1514
|
+
const query = {
|
|
1515
|
+
...(input.NextToken !== undefined && { nexttoken: input.NextToken }),
|
|
1516
|
+
...(input.MaxResults !== undefined && { maxresults: input.MaxResults.toString() }),
|
|
1517
|
+
};
|
|
1518
|
+
let body;
|
|
1519
|
+
return new protocol_http_1.HttpRequest({
|
|
1520
|
+
protocol,
|
|
1521
|
+
hostname,
|
|
1522
|
+
port,
|
|
1523
|
+
method: "GET",
|
|
1524
|
+
headers,
|
|
1525
|
+
path: resolvedPath,
|
|
1526
|
+
query,
|
|
1527
|
+
body,
|
|
1528
|
+
});
|
|
1529
|
+
};
|
|
1530
|
+
exports.serializeAws_restXmlListCidrCollectionsCommand = serializeAws_restXmlListCidrCollectionsCommand;
|
|
1531
|
+
const serializeAws_restXmlListCidrLocationsCommand = async (input, context) => {
|
|
1532
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1533
|
+
const headers = {};
|
|
1534
|
+
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/2013-04-01/cidrcollection/{CollectionId}";
|
|
1535
|
+
if (input.CollectionId !== undefined) {
|
|
1536
|
+
const labelValue = input.CollectionId;
|
|
1537
|
+
if (labelValue.length <= 0) {
|
|
1538
|
+
throw new Error("Empty value provided for input HTTP label: CollectionId.");
|
|
1539
|
+
}
|
|
1540
|
+
resolvedPath = resolvedPath.replace("{CollectionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
1541
|
+
}
|
|
1542
|
+
else {
|
|
1543
|
+
throw new Error("No value provided for input HTTP label: CollectionId.");
|
|
1544
|
+
}
|
|
1545
|
+
const query = {
|
|
1546
|
+
...(input.NextToken !== undefined && { nexttoken: input.NextToken }),
|
|
1547
|
+
...(input.MaxResults !== undefined && { maxresults: input.MaxResults.toString() }),
|
|
1548
|
+
};
|
|
1549
|
+
let body;
|
|
1550
|
+
return new protocol_http_1.HttpRequest({
|
|
1551
|
+
protocol,
|
|
1552
|
+
hostname,
|
|
1553
|
+
port,
|
|
1554
|
+
method: "GET",
|
|
1555
|
+
headers,
|
|
1556
|
+
path: resolvedPath,
|
|
1557
|
+
query,
|
|
1558
|
+
body,
|
|
1559
|
+
});
|
|
1560
|
+
};
|
|
1561
|
+
exports.serializeAws_restXmlListCidrLocationsCommand = serializeAws_restXmlListCidrLocationsCommand;
|
|
1373
1562
|
const serializeAws_restXmlListGeoLocationsCommand = async (input, context) => {
|
|
1374
1563
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1375
1564
|
const headers = {};
|
|
@@ -2187,6 +2376,58 @@ const deserializeAws_restXmlAssociateVPCWithHostedZoneCommandError = async (outp
|
|
|
2187
2376
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2188
2377
|
}
|
|
2189
2378
|
};
|
|
2379
|
+
const deserializeAws_restXmlChangeCidrCollectionCommand = async (output, context) => {
|
|
2380
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2381
|
+
return deserializeAws_restXmlChangeCidrCollectionCommandError(output, context);
|
|
2382
|
+
}
|
|
2383
|
+
const contents = {
|
|
2384
|
+
$metadata: deserializeMetadata(output),
|
|
2385
|
+
Id: undefined,
|
|
2386
|
+
};
|
|
2387
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2388
|
+
if (data["Id"] !== undefined) {
|
|
2389
|
+
contents.Id = (0, smithy_client_1.expectString)(data["Id"]);
|
|
2390
|
+
}
|
|
2391
|
+
return Promise.resolve(contents);
|
|
2392
|
+
};
|
|
2393
|
+
exports.deserializeAws_restXmlChangeCidrCollectionCommand = deserializeAws_restXmlChangeCidrCollectionCommand;
|
|
2394
|
+
const deserializeAws_restXmlChangeCidrCollectionCommandError = async (output, context) => {
|
|
2395
|
+
const parsedOutput = {
|
|
2396
|
+
...output,
|
|
2397
|
+
body: await parseBody(output.body, context),
|
|
2398
|
+
};
|
|
2399
|
+
let response;
|
|
2400
|
+
let errorCode = "UnknownError";
|
|
2401
|
+
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
2402
|
+
switch (errorCode) {
|
|
2403
|
+
case "CidrBlockInUseException":
|
|
2404
|
+
case "com.amazonaws.route53#CidrBlockInUseException":
|
|
2405
|
+
throw await deserializeAws_restXmlCidrBlockInUseExceptionResponse(parsedOutput, context);
|
|
2406
|
+
case "CidrCollectionVersionMismatchException":
|
|
2407
|
+
case "com.amazonaws.route53#CidrCollectionVersionMismatchException":
|
|
2408
|
+
throw await deserializeAws_restXmlCidrCollectionVersionMismatchExceptionResponse(parsedOutput, context);
|
|
2409
|
+
case "ConcurrentModification":
|
|
2410
|
+
case "com.amazonaws.route53#ConcurrentModification":
|
|
2411
|
+
throw await deserializeAws_restXmlConcurrentModificationResponse(parsedOutput, context);
|
|
2412
|
+
case "InvalidInput":
|
|
2413
|
+
case "com.amazonaws.route53#InvalidInput":
|
|
2414
|
+
throw await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context);
|
|
2415
|
+
case "LimitsExceeded":
|
|
2416
|
+
case "com.amazonaws.route53#LimitsExceeded":
|
|
2417
|
+
throw await deserializeAws_restXmlLimitsExceededResponse(parsedOutput, context);
|
|
2418
|
+
case "NoSuchCidrCollectionException":
|
|
2419
|
+
case "com.amazonaws.route53#NoSuchCidrCollectionException":
|
|
2420
|
+
throw await deserializeAws_restXmlNoSuchCidrCollectionExceptionResponse(parsedOutput, context);
|
|
2421
|
+
default:
|
|
2422
|
+
const parsedBody = parsedOutput.body;
|
|
2423
|
+
response = new Route53ServiceException_1.Route53ServiceException({
|
|
2424
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2425
|
+
$fault: "client",
|
|
2426
|
+
$metadata: deserializeMetadata(output),
|
|
2427
|
+
});
|
|
2428
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2429
|
+
}
|
|
2430
|
+
};
|
|
2190
2431
|
const deserializeAws_restXmlChangeResourceRecordSetsCommand = async (output, context) => {
|
|
2191
2432
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2192
2433
|
return deserializeAws_restXmlChangeResourceRecordSetsCommandError(output, context);
|
|
@@ -2281,6 +2522,56 @@ const deserializeAws_restXmlChangeTagsForResourceCommandError = async (output, c
|
|
|
2281
2522
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2282
2523
|
}
|
|
2283
2524
|
};
|
|
2525
|
+
const deserializeAws_restXmlCreateCidrCollectionCommand = async (output, context) => {
|
|
2526
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
2527
|
+
return deserializeAws_restXmlCreateCidrCollectionCommandError(output, context);
|
|
2528
|
+
}
|
|
2529
|
+
const contents = {
|
|
2530
|
+
$metadata: deserializeMetadata(output),
|
|
2531
|
+
Collection: undefined,
|
|
2532
|
+
Location: undefined,
|
|
2533
|
+
};
|
|
2534
|
+
if (output.headers["location"] !== undefined) {
|
|
2535
|
+
contents.Location = output.headers["location"];
|
|
2536
|
+
}
|
|
2537
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2538
|
+
if (data["Collection"] !== undefined) {
|
|
2539
|
+
contents.Collection = deserializeAws_restXmlCidrCollection(data["Collection"], context);
|
|
2540
|
+
}
|
|
2541
|
+
return Promise.resolve(contents);
|
|
2542
|
+
};
|
|
2543
|
+
exports.deserializeAws_restXmlCreateCidrCollectionCommand = deserializeAws_restXmlCreateCidrCollectionCommand;
|
|
2544
|
+
const deserializeAws_restXmlCreateCidrCollectionCommandError = async (output, context) => {
|
|
2545
|
+
const parsedOutput = {
|
|
2546
|
+
...output,
|
|
2547
|
+
body: await parseBody(output.body, context),
|
|
2548
|
+
};
|
|
2549
|
+
let response;
|
|
2550
|
+
let errorCode = "UnknownError";
|
|
2551
|
+
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
2552
|
+
switch (errorCode) {
|
|
2553
|
+
case "CidrCollectionAlreadyExistsException":
|
|
2554
|
+
case "com.amazonaws.route53#CidrCollectionAlreadyExistsException":
|
|
2555
|
+
throw await deserializeAws_restXmlCidrCollectionAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
2556
|
+
case "ConcurrentModification":
|
|
2557
|
+
case "com.amazonaws.route53#ConcurrentModification":
|
|
2558
|
+
throw await deserializeAws_restXmlConcurrentModificationResponse(parsedOutput, context);
|
|
2559
|
+
case "InvalidInput":
|
|
2560
|
+
case "com.amazonaws.route53#InvalidInput":
|
|
2561
|
+
throw await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context);
|
|
2562
|
+
case "LimitsExceeded":
|
|
2563
|
+
case "com.amazonaws.route53#LimitsExceeded":
|
|
2564
|
+
throw await deserializeAws_restXmlLimitsExceededResponse(parsedOutput, context);
|
|
2565
|
+
default:
|
|
2566
|
+
const parsedBody = parsedOutput.body;
|
|
2567
|
+
response = new Route53ServiceException_1.Route53ServiceException({
|
|
2568
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2569
|
+
$fault: "client",
|
|
2570
|
+
$metadata: deserializeMetadata(output),
|
|
2571
|
+
});
|
|
2572
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2573
|
+
}
|
|
2574
|
+
};
|
|
2284
2575
|
const deserializeAws_restXmlCreateHealthCheckCommand = async (output, context) => {
|
|
2285
2576
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
2286
2577
|
return deserializeAws_restXmlCreateHealthCheckCommandError(output, context);
|
|
@@ -2856,6 +3147,48 @@ const deserializeAws_restXmlDeactivateKeySigningKeyCommandError = async (output,
|
|
|
2856
3147
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2857
3148
|
}
|
|
2858
3149
|
};
|
|
3150
|
+
const deserializeAws_restXmlDeleteCidrCollectionCommand = async (output, context) => {
|
|
3151
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3152
|
+
return deserializeAws_restXmlDeleteCidrCollectionCommandError(output, context);
|
|
3153
|
+
}
|
|
3154
|
+
const contents = {
|
|
3155
|
+
$metadata: deserializeMetadata(output),
|
|
3156
|
+
};
|
|
3157
|
+
await collectBody(output.body, context);
|
|
3158
|
+
return Promise.resolve(contents);
|
|
3159
|
+
};
|
|
3160
|
+
exports.deserializeAws_restXmlDeleteCidrCollectionCommand = deserializeAws_restXmlDeleteCidrCollectionCommand;
|
|
3161
|
+
const deserializeAws_restXmlDeleteCidrCollectionCommandError = async (output, context) => {
|
|
3162
|
+
const parsedOutput = {
|
|
3163
|
+
...output,
|
|
3164
|
+
body: await parseBody(output.body, context),
|
|
3165
|
+
};
|
|
3166
|
+
let response;
|
|
3167
|
+
let errorCode = "UnknownError";
|
|
3168
|
+
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3169
|
+
switch (errorCode) {
|
|
3170
|
+
case "CidrCollectionInUseException":
|
|
3171
|
+
case "com.amazonaws.route53#CidrCollectionInUseException":
|
|
3172
|
+
throw await deserializeAws_restXmlCidrCollectionInUseExceptionResponse(parsedOutput, context);
|
|
3173
|
+
case "ConcurrentModification":
|
|
3174
|
+
case "com.amazonaws.route53#ConcurrentModification":
|
|
3175
|
+
throw await deserializeAws_restXmlConcurrentModificationResponse(parsedOutput, context);
|
|
3176
|
+
case "InvalidInput":
|
|
3177
|
+
case "com.amazonaws.route53#InvalidInput":
|
|
3178
|
+
throw await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context);
|
|
3179
|
+
case "NoSuchCidrCollectionException":
|
|
3180
|
+
case "com.amazonaws.route53#NoSuchCidrCollectionException":
|
|
3181
|
+
throw await deserializeAws_restXmlNoSuchCidrCollectionExceptionResponse(parsedOutput, context);
|
|
3182
|
+
default:
|
|
3183
|
+
const parsedBody = parsedOutput.body;
|
|
3184
|
+
response = new Route53ServiceException_1.Route53ServiceException({
|
|
3185
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3186
|
+
$fault: "client",
|
|
3187
|
+
$metadata: deserializeMetadata(output),
|
|
3188
|
+
});
|
|
3189
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
3190
|
+
}
|
|
3191
|
+
};
|
|
2859
3192
|
const deserializeAws_restXmlDeleteHealthCheckCommand = async (output, context) => {
|
|
2860
3193
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2861
3194
|
return deserializeAws_restXmlDeleteHealthCheckCommandError(output, context);
|
|
@@ -3906,9 +4239,136 @@ const deserializeAws_restXmlGetQueryLoggingConfigCommandError = async (output, c
|
|
|
3906
4239
|
case "InvalidInput":
|
|
3907
4240
|
case "com.amazonaws.route53#InvalidInput":
|
|
3908
4241
|
throw await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context);
|
|
3909
|
-
case "NoSuchQueryLoggingConfig":
|
|
3910
|
-
case "com.amazonaws.route53#NoSuchQueryLoggingConfig":
|
|
3911
|
-
throw await deserializeAws_restXmlNoSuchQueryLoggingConfigResponse(parsedOutput, context);
|
|
4242
|
+
case "NoSuchQueryLoggingConfig":
|
|
4243
|
+
case "com.amazonaws.route53#NoSuchQueryLoggingConfig":
|
|
4244
|
+
throw await deserializeAws_restXmlNoSuchQueryLoggingConfigResponse(parsedOutput, context);
|
|
4245
|
+
default:
|
|
4246
|
+
const parsedBody = parsedOutput.body;
|
|
4247
|
+
response = new Route53ServiceException_1.Route53ServiceException({
|
|
4248
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
4249
|
+
$fault: "client",
|
|
4250
|
+
$metadata: deserializeMetadata(output),
|
|
4251
|
+
});
|
|
4252
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
4253
|
+
}
|
|
4254
|
+
};
|
|
4255
|
+
const deserializeAws_restXmlGetReusableDelegationSetCommand = async (output, context) => {
|
|
4256
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4257
|
+
return deserializeAws_restXmlGetReusableDelegationSetCommandError(output, context);
|
|
4258
|
+
}
|
|
4259
|
+
const contents = {
|
|
4260
|
+
$metadata: deserializeMetadata(output),
|
|
4261
|
+
DelegationSet: undefined,
|
|
4262
|
+
};
|
|
4263
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4264
|
+
if (data["DelegationSet"] !== undefined) {
|
|
4265
|
+
contents.DelegationSet = deserializeAws_restXmlDelegationSet(data["DelegationSet"], context);
|
|
4266
|
+
}
|
|
4267
|
+
return Promise.resolve(contents);
|
|
4268
|
+
};
|
|
4269
|
+
exports.deserializeAws_restXmlGetReusableDelegationSetCommand = deserializeAws_restXmlGetReusableDelegationSetCommand;
|
|
4270
|
+
const deserializeAws_restXmlGetReusableDelegationSetCommandError = async (output, context) => {
|
|
4271
|
+
const parsedOutput = {
|
|
4272
|
+
...output,
|
|
4273
|
+
body: await parseBody(output.body, context),
|
|
4274
|
+
};
|
|
4275
|
+
let response;
|
|
4276
|
+
let errorCode = "UnknownError";
|
|
4277
|
+
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4278
|
+
switch (errorCode) {
|
|
4279
|
+
case "DelegationSetNotReusable":
|
|
4280
|
+
case "com.amazonaws.route53#DelegationSetNotReusable":
|
|
4281
|
+
throw await deserializeAws_restXmlDelegationSetNotReusableResponse(parsedOutput, context);
|
|
4282
|
+
case "InvalidInput":
|
|
4283
|
+
case "com.amazonaws.route53#InvalidInput":
|
|
4284
|
+
throw await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context);
|
|
4285
|
+
case "NoSuchDelegationSet":
|
|
4286
|
+
case "com.amazonaws.route53#NoSuchDelegationSet":
|
|
4287
|
+
throw await deserializeAws_restXmlNoSuchDelegationSetResponse(parsedOutput, context);
|
|
4288
|
+
default:
|
|
4289
|
+
const parsedBody = parsedOutput.body;
|
|
4290
|
+
response = new Route53ServiceException_1.Route53ServiceException({
|
|
4291
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
4292
|
+
$fault: "client",
|
|
4293
|
+
$metadata: deserializeMetadata(output),
|
|
4294
|
+
});
|
|
4295
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
4296
|
+
}
|
|
4297
|
+
};
|
|
4298
|
+
const deserializeAws_restXmlGetReusableDelegationSetLimitCommand = async (output, context) => {
|
|
4299
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4300
|
+
return deserializeAws_restXmlGetReusableDelegationSetLimitCommandError(output, context);
|
|
4301
|
+
}
|
|
4302
|
+
const contents = {
|
|
4303
|
+
$metadata: deserializeMetadata(output),
|
|
4304
|
+
Count: undefined,
|
|
4305
|
+
Limit: undefined,
|
|
4306
|
+
};
|
|
4307
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4308
|
+
if (data["Count"] !== undefined) {
|
|
4309
|
+
contents.Count = (0, smithy_client_1.strictParseLong)(data["Count"]);
|
|
4310
|
+
}
|
|
4311
|
+
if (data["Limit"] !== undefined) {
|
|
4312
|
+
contents.Limit = deserializeAws_restXmlReusableDelegationSetLimit(data["Limit"], context);
|
|
4313
|
+
}
|
|
4314
|
+
return Promise.resolve(contents);
|
|
4315
|
+
};
|
|
4316
|
+
exports.deserializeAws_restXmlGetReusableDelegationSetLimitCommand = deserializeAws_restXmlGetReusableDelegationSetLimitCommand;
|
|
4317
|
+
const deserializeAws_restXmlGetReusableDelegationSetLimitCommandError = async (output, context) => {
|
|
4318
|
+
const parsedOutput = {
|
|
4319
|
+
...output,
|
|
4320
|
+
body: await parseBody(output.body, context),
|
|
4321
|
+
};
|
|
4322
|
+
let response;
|
|
4323
|
+
let errorCode = "UnknownError";
|
|
4324
|
+
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4325
|
+
switch (errorCode) {
|
|
4326
|
+
case "InvalidInput":
|
|
4327
|
+
case "com.amazonaws.route53#InvalidInput":
|
|
4328
|
+
throw await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context);
|
|
4329
|
+
case "NoSuchDelegationSet":
|
|
4330
|
+
case "com.amazonaws.route53#NoSuchDelegationSet":
|
|
4331
|
+
throw await deserializeAws_restXmlNoSuchDelegationSetResponse(parsedOutput, context);
|
|
4332
|
+
default:
|
|
4333
|
+
const parsedBody = parsedOutput.body;
|
|
4334
|
+
response = new Route53ServiceException_1.Route53ServiceException({
|
|
4335
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
4336
|
+
$fault: "client",
|
|
4337
|
+
$metadata: deserializeMetadata(output),
|
|
4338
|
+
});
|
|
4339
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
4340
|
+
}
|
|
4341
|
+
};
|
|
4342
|
+
const deserializeAws_restXmlGetTrafficPolicyCommand = async (output, context) => {
|
|
4343
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4344
|
+
return deserializeAws_restXmlGetTrafficPolicyCommandError(output, context);
|
|
4345
|
+
}
|
|
4346
|
+
const contents = {
|
|
4347
|
+
$metadata: deserializeMetadata(output),
|
|
4348
|
+
TrafficPolicy: undefined,
|
|
4349
|
+
};
|
|
4350
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4351
|
+
if (data["TrafficPolicy"] !== undefined) {
|
|
4352
|
+
contents.TrafficPolicy = deserializeAws_restXmlTrafficPolicy(data["TrafficPolicy"], context);
|
|
4353
|
+
}
|
|
4354
|
+
return Promise.resolve(contents);
|
|
4355
|
+
};
|
|
4356
|
+
exports.deserializeAws_restXmlGetTrafficPolicyCommand = deserializeAws_restXmlGetTrafficPolicyCommand;
|
|
4357
|
+
const deserializeAws_restXmlGetTrafficPolicyCommandError = async (output, context) => {
|
|
4358
|
+
const parsedOutput = {
|
|
4359
|
+
...output,
|
|
4360
|
+
body: await parseBody(output.body, context),
|
|
4361
|
+
};
|
|
4362
|
+
let response;
|
|
4363
|
+
let errorCode = "UnknownError";
|
|
4364
|
+
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4365
|
+
switch (errorCode) {
|
|
4366
|
+
case "InvalidInput":
|
|
4367
|
+
case "com.amazonaws.route53#InvalidInput":
|
|
4368
|
+
throw await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context);
|
|
4369
|
+
case "NoSuchTrafficPolicy":
|
|
4370
|
+
case "com.amazonaws.route53#NoSuchTrafficPolicy":
|
|
4371
|
+
throw await deserializeAws_restXmlNoSuchTrafficPolicyResponse(parsedOutput, context);
|
|
3912
4372
|
default:
|
|
3913
4373
|
const parsedBody = parsedOutput.body;
|
|
3914
4374
|
response = new Route53ServiceException_1.Route53ServiceException({
|
|
@@ -3919,22 +4379,22 @@ const deserializeAws_restXmlGetQueryLoggingConfigCommandError = async (output, c
|
|
|
3919
4379
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
3920
4380
|
}
|
|
3921
4381
|
};
|
|
3922
|
-
const
|
|
4382
|
+
const deserializeAws_restXmlGetTrafficPolicyInstanceCommand = async (output, context) => {
|
|
3923
4383
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3924
|
-
return
|
|
4384
|
+
return deserializeAws_restXmlGetTrafficPolicyInstanceCommandError(output, context);
|
|
3925
4385
|
}
|
|
3926
4386
|
const contents = {
|
|
3927
4387
|
$metadata: deserializeMetadata(output),
|
|
3928
|
-
|
|
4388
|
+
TrafficPolicyInstance: undefined,
|
|
3929
4389
|
};
|
|
3930
4390
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3931
|
-
if (data["
|
|
3932
|
-
contents.
|
|
4391
|
+
if (data["TrafficPolicyInstance"] !== undefined) {
|
|
4392
|
+
contents.TrafficPolicyInstance = deserializeAws_restXmlTrafficPolicyInstance(data["TrafficPolicyInstance"], context);
|
|
3933
4393
|
}
|
|
3934
4394
|
return Promise.resolve(contents);
|
|
3935
4395
|
};
|
|
3936
|
-
exports.
|
|
3937
|
-
const
|
|
4396
|
+
exports.deserializeAws_restXmlGetTrafficPolicyInstanceCommand = deserializeAws_restXmlGetTrafficPolicyInstanceCommand;
|
|
4397
|
+
const deserializeAws_restXmlGetTrafficPolicyInstanceCommandError = async (output, context) => {
|
|
3938
4398
|
const parsedOutput = {
|
|
3939
4399
|
...output,
|
|
3940
4400
|
body: await parseBody(output.body, context),
|
|
@@ -3943,15 +4403,12 @@ const deserializeAws_restXmlGetReusableDelegationSetCommandError = async (output
|
|
|
3943
4403
|
let errorCode = "UnknownError";
|
|
3944
4404
|
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3945
4405
|
switch (errorCode) {
|
|
3946
|
-
case "DelegationSetNotReusable":
|
|
3947
|
-
case "com.amazonaws.route53#DelegationSetNotReusable":
|
|
3948
|
-
throw await deserializeAws_restXmlDelegationSetNotReusableResponse(parsedOutput, context);
|
|
3949
4406
|
case "InvalidInput":
|
|
3950
4407
|
case "com.amazonaws.route53#InvalidInput":
|
|
3951
4408
|
throw await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context);
|
|
3952
|
-
case "
|
|
3953
|
-
case "com.amazonaws.route53#
|
|
3954
|
-
throw await
|
|
4409
|
+
case "NoSuchTrafficPolicyInstance":
|
|
4410
|
+
case "com.amazonaws.route53#NoSuchTrafficPolicyInstance":
|
|
4411
|
+
throw await deserializeAws_restXmlNoSuchTrafficPolicyInstanceResponse(parsedOutput, context);
|
|
3955
4412
|
default:
|
|
3956
4413
|
const parsedBody = parsedOutput.body;
|
|
3957
4414
|
response = new Route53ServiceException_1.Route53ServiceException({
|
|
@@ -3962,26 +4419,22 @@ const deserializeAws_restXmlGetReusableDelegationSetCommandError = async (output
|
|
|
3962
4419
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
3963
4420
|
}
|
|
3964
4421
|
};
|
|
3965
|
-
const
|
|
4422
|
+
const deserializeAws_restXmlGetTrafficPolicyInstanceCountCommand = async (output, context) => {
|
|
3966
4423
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3967
|
-
return
|
|
4424
|
+
return deserializeAws_restXmlGetTrafficPolicyInstanceCountCommandError(output, context);
|
|
3968
4425
|
}
|
|
3969
4426
|
const contents = {
|
|
3970
4427
|
$metadata: deserializeMetadata(output),
|
|
3971
|
-
|
|
3972
|
-
Limit: undefined,
|
|
4428
|
+
TrafficPolicyInstanceCount: undefined,
|
|
3973
4429
|
};
|
|
3974
4430
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3975
|
-
if (data["
|
|
3976
|
-
contents.
|
|
3977
|
-
}
|
|
3978
|
-
if (data["Limit"] !== undefined) {
|
|
3979
|
-
contents.Limit = deserializeAws_restXmlReusableDelegationSetLimit(data["Limit"], context);
|
|
4431
|
+
if (data["TrafficPolicyInstanceCount"] !== undefined) {
|
|
4432
|
+
contents.TrafficPolicyInstanceCount = (0, smithy_client_1.strictParseInt32)(data["TrafficPolicyInstanceCount"]);
|
|
3980
4433
|
}
|
|
3981
4434
|
return Promise.resolve(contents);
|
|
3982
4435
|
};
|
|
3983
|
-
exports.
|
|
3984
|
-
const
|
|
4436
|
+
exports.deserializeAws_restXmlGetTrafficPolicyInstanceCountCommand = deserializeAws_restXmlGetTrafficPolicyInstanceCountCommand;
|
|
4437
|
+
const deserializeAws_restXmlGetTrafficPolicyInstanceCountCommandError = async (output, context) => {
|
|
3985
4438
|
const parsedOutput = {
|
|
3986
4439
|
...output,
|
|
3987
4440
|
body: await parseBody(output.body, context),
|
|
@@ -3990,12 +4443,6 @@ const deserializeAws_restXmlGetReusableDelegationSetLimitCommandError = async (o
|
|
|
3990
4443
|
let errorCode = "UnknownError";
|
|
3991
4444
|
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
3992
4445
|
switch (errorCode) {
|
|
3993
|
-
case "InvalidInput":
|
|
3994
|
-
case "com.amazonaws.route53#InvalidInput":
|
|
3995
|
-
throw await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context);
|
|
3996
|
-
case "NoSuchDelegationSet":
|
|
3997
|
-
case "com.amazonaws.route53#NoSuchDelegationSet":
|
|
3998
|
-
throw await deserializeAws_restXmlNoSuchDelegationSetResponse(parsedOutput, context);
|
|
3999
4446
|
default:
|
|
4000
4447
|
const parsedBody = parsedOutput.body;
|
|
4001
4448
|
response = new Route53ServiceException_1.Route53ServiceException({
|
|
@@ -4006,22 +4453,29 @@ const deserializeAws_restXmlGetReusableDelegationSetLimitCommandError = async (o
|
|
|
4006
4453
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
4007
4454
|
}
|
|
4008
4455
|
};
|
|
4009
|
-
const
|
|
4456
|
+
const deserializeAws_restXmlListCidrBlocksCommand = async (output, context) => {
|
|
4010
4457
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4011
|
-
return
|
|
4458
|
+
return deserializeAws_restXmlListCidrBlocksCommandError(output, context);
|
|
4012
4459
|
}
|
|
4013
4460
|
const contents = {
|
|
4014
4461
|
$metadata: deserializeMetadata(output),
|
|
4015
|
-
|
|
4462
|
+
CidrBlocks: undefined,
|
|
4463
|
+
NextToken: undefined,
|
|
4016
4464
|
};
|
|
4017
4465
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4018
|
-
if (data
|
|
4019
|
-
contents.
|
|
4466
|
+
if (data.CidrBlocks === "") {
|
|
4467
|
+
contents.CidrBlocks = [];
|
|
4468
|
+
}
|
|
4469
|
+
if (data["CidrBlocks"] !== undefined && data["CidrBlocks"]["member"] !== undefined) {
|
|
4470
|
+
contents.CidrBlocks = deserializeAws_restXmlCidrBlockSummaries((0, smithy_client_1.getArrayIfSingleItem)(data["CidrBlocks"]["member"]), context);
|
|
4471
|
+
}
|
|
4472
|
+
if (data["NextToken"] !== undefined) {
|
|
4473
|
+
contents.NextToken = (0, smithy_client_1.expectString)(data["NextToken"]);
|
|
4020
4474
|
}
|
|
4021
4475
|
return Promise.resolve(contents);
|
|
4022
4476
|
};
|
|
4023
|
-
exports.
|
|
4024
|
-
const
|
|
4477
|
+
exports.deserializeAws_restXmlListCidrBlocksCommand = deserializeAws_restXmlListCidrBlocksCommand;
|
|
4478
|
+
const deserializeAws_restXmlListCidrBlocksCommandError = async (output, context) => {
|
|
4025
4479
|
const parsedOutput = {
|
|
4026
4480
|
...output,
|
|
4027
4481
|
body: await parseBody(output.body, context),
|
|
@@ -4033,9 +4487,12 @@ const deserializeAws_restXmlGetTrafficPolicyCommandError = async (output, contex
|
|
|
4033
4487
|
case "InvalidInput":
|
|
4034
4488
|
case "com.amazonaws.route53#InvalidInput":
|
|
4035
4489
|
throw await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context);
|
|
4036
|
-
case "
|
|
4037
|
-
case "com.amazonaws.route53#
|
|
4038
|
-
throw await
|
|
4490
|
+
case "NoSuchCidrCollectionException":
|
|
4491
|
+
case "com.amazonaws.route53#NoSuchCidrCollectionException":
|
|
4492
|
+
throw await deserializeAws_restXmlNoSuchCidrCollectionExceptionResponse(parsedOutput, context);
|
|
4493
|
+
case "NoSuchCidrLocationException":
|
|
4494
|
+
case "com.amazonaws.route53#NoSuchCidrLocationException":
|
|
4495
|
+
throw await deserializeAws_restXmlNoSuchCidrLocationExceptionResponse(parsedOutput, context);
|
|
4039
4496
|
default:
|
|
4040
4497
|
const parsedBody = parsedOutput.body;
|
|
4041
4498
|
response = new Route53ServiceException_1.Route53ServiceException({
|
|
@@ -4046,22 +4503,29 @@ const deserializeAws_restXmlGetTrafficPolicyCommandError = async (output, contex
|
|
|
4046
4503
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
4047
4504
|
}
|
|
4048
4505
|
};
|
|
4049
|
-
const
|
|
4506
|
+
const deserializeAws_restXmlListCidrCollectionsCommand = async (output, context) => {
|
|
4050
4507
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4051
|
-
return
|
|
4508
|
+
return deserializeAws_restXmlListCidrCollectionsCommandError(output, context);
|
|
4052
4509
|
}
|
|
4053
4510
|
const contents = {
|
|
4054
4511
|
$metadata: deserializeMetadata(output),
|
|
4055
|
-
|
|
4512
|
+
CidrCollections: undefined,
|
|
4513
|
+
NextToken: undefined,
|
|
4056
4514
|
};
|
|
4057
4515
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4058
|
-
if (data
|
|
4059
|
-
contents.
|
|
4516
|
+
if (data.CidrCollections === "") {
|
|
4517
|
+
contents.CidrCollections = [];
|
|
4518
|
+
}
|
|
4519
|
+
if (data["CidrCollections"] !== undefined && data["CidrCollections"]["member"] !== undefined) {
|
|
4520
|
+
contents.CidrCollections = deserializeAws_restXmlCollectionSummaries((0, smithy_client_1.getArrayIfSingleItem)(data["CidrCollections"]["member"]), context);
|
|
4521
|
+
}
|
|
4522
|
+
if (data["NextToken"] !== undefined) {
|
|
4523
|
+
contents.NextToken = (0, smithy_client_1.expectString)(data["NextToken"]);
|
|
4060
4524
|
}
|
|
4061
4525
|
return Promise.resolve(contents);
|
|
4062
4526
|
};
|
|
4063
|
-
exports.
|
|
4064
|
-
const
|
|
4527
|
+
exports.deserializeAws_restXmlListCidrCollectionsCommand = deserializeAws_restXmlListCidrCollectionsCommand;
|
|
4528
|
+
const deserializeAws_restXmlListCidrCollectionsCommandError = async (output, context) => {
|
|
4065
4529
|
const parsedOutput = {
|
|
4066
4530
|
...output,
|
|
4067
4531
|
body: await parseBody(output.body, context),
|
|
@@ -4073,9 +4537,6 @@ const deserializeAws_restXmlGetTrafficPolicyInstanceCommandError = async (output
|
|
|
4073
4537
|
case "InvalidInput":
|
|
4074
4538
|
case "com.amazonaws.route53#InvalidInput":
|
|
4075
4539
|
throw await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context);
|
|
4076
|
-
case "NoSuchTrafficPolicyInstance":
|
|
4077
|
-
case "com.amazonaws.route53#NoSuchTrafficPolicyInstance":
|
|
4078
|
-
throw await deserializeAws_restXmlNoSuchTrafficPolicyInstanceResponse(parsedOutput, context);
|
|
4079
4540
|
default:
|
|
4080
4541
|
const parsedBody = parsedOutput.body;
|
|
4081
4542
|
response = new Route53ServiceException_1.Route53ServiceException({
|
|
@@ -4086,22 +4547,29 @@ const deserializeAws_restXmlGetTrafficPolicyInstanceCommandError = async (output
|
|
|
4086
4547
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
4087
4548
|
}
|
|
4088
4549
|
};
|
|
4089
|
-
const
|
|
4550
|
+
const deserializeAws_restXmlListCidrLocationsCommand = async (output, context) => {
|
|
4090
4551
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4091
|
-
return
|
|
4552
|
+
return deserializeAws_restXmlListCidrLocationsCommandError(output, context);
|
|
4092
4553
|
}
|
|
4093
4554
|
const contents = {
|
|
4094
4555
|
$metadata: deserializeMetadata(output),
|
|
4095
|
-
|
|
4556
|
+
CidrLocations: undefined,
|
|
4557
|
+
NextToken: undefined,
|
|
4096
4558
|
};
|
|
4097
4559
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4098
|
-
if (data
|
|
4099
|
-
contents.
|
|
4560
|
+
if (data.CidrLocations === "") {
|
|
4561
|
+
contents.CidrLocations = [];
|
|
4562
|
+
}
|
|
4563
|
+
if (data["CidrLocations"] !== undefined && data["CidrLocations"]["member"] !== undefined) {
|
|
4564
|
+
contents.CidrLocations = deserializeAws_restXmlLocationSummaries((0, smithy_client_1.getArrayIfSingleItem)(data["CidrLocations"]["member"]), context);
|
|
4565
|
+
}
|
|
4566
|
+
if (data["NextToken"] !== undefined) {
|
|
4567
|
+
contents.NextToken = (0, smithy_client_1.expectString)(data["NextToken"]);
|
|
4100
4568
|
}
|
|
4101
4569
|
return Promise.resolve(contents);
|
|
4102
4570
|
};
|
|
4103
|
-
exports.
|
|
4104
|
-
const
|
|
4571
|
+
exports.deserializeAws_restXmlListCidrLocationsCommand = deserializeAws_restXmlListCidrLocationsCommand;
|
|
4572
|
+
const deserializeAws_restXmlListCidrLocationsCommandError = async (output, context) => {
|
|
4105
4573
|
const parsedOutput = {
|
|
4106
4574
|
...output,
|
|
4107
4575
|
body: await parseBody(output.body, context),
|
|
@@ -4110,6 +4578,12 @@ const deserializeAws_restXmlGetTrafficPolicyInstanceCountCommandError = async (o
|
|
|
4110
4578
|
let errorCode = "UnknownError";
|
|
4111
4579
|
errorCode = loadRestXmlErrorCode(output, parsedOutput.body);
|
|
4112
4580
|
switch (errorCode) {
|
|
4581
|
+
case "InvalidInput":
|
|
4582
|
+
case "com.amazonaws.route53#InvalidInput":
|
|
4583
|
+
throw await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context);
|
|
4584
|
+
case "NoSuchCidrCollectionException":
|
|
4585
|
+
case "com.amazonaws.route53#NoSuchCidrCollectionException":
|
|
4586
|
+
throw await deserializeAws_restXmlNoSuchCidrCollectionExceptionResponse(parsedOutput, context);
|
|
4113
4587
|
default:
|
|
4114
4588
|
const parsedBody = parsedOutput.body;
|
|
4115
4589
|
response = new Route53ServiceException_1.Route53ServiceException({
|
|
@@ -5287,6 +5761,54 @@ const deserializeAws_restXmlUpdateTrafficPolicyInstanceCommandError = async (out
|
|
|
5287
5761
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
5288
5762
|
}
|
|
5289
5763
|
};
|
|
5764
|
+
const deserializeAws_restXmlCidrBlockInUseExceptionResponse = async (parsedOutput, context) => {
|
|
5765
|
+
const contents = {};
|
|
5766
|
+
const data = parsedOutput.body.Error;
|
|
5767
|
+
if (data["Message"] !== undefined) {
|
|
5768
|
+
contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
|
|
5769
|
+
}
|
|
5770
|
+
const exception = new models_0_1.CidrBlockInUseException({
|
|
5771
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
5772
|
+
...contents,
|
|
5773
|
+
});
|
|
5774
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
|
|
5775
|
+
};
|
|
5776
|
+
const deserializeAws_restXmlCidrCollectionAlreadyExistsExceptionResponse = async (parsedOutput, context) => {
|
|
5777
|
+
const contents = {};
|
|
5778
|
+
const data = parsedOutput.body.Error;
|
|
5779
|
+
if (data["Message"] !== undefined) {
|
|
5780
|
+
contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
|
|
5781
|
+
}
|
|
5782
|
+
const exception = new models_0_1.CidrCollectionAlreadyExistsException({
|
|
5783
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
5784
|
+
...contents,
|
|
5785
|
+
});
|
|
5786
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
|
|
5787
|
+
};
|
|
5788
|
+
const deserializeAws_restXmlCidrCollectionInUseExceptionResponse = async (parsedOutput, context) => {
|
|
5789
|
+
const contents = {};
|
|
5790
|
+
const data = parsedOutput.body.Error;
|
|
5791
|
+
if (data["Message"] !== undefined) {
|
|
5792
|
+
contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
|
|
5793
|
+
}
|
|
5794
|
+
const exception = new models_0_1.CidrCollectionInUseException({
|
|
5795
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
5796
|
+
...contents,
|
|
5797
|
+
});
|
|
5798
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
|
|
5799
|
+
};
|
|
5800
|
+
const deserializeAws_restXmlCidrCollectionVersionMismatchExceptionResponse = async (parsedOutput, context) => {
|
|
5801
|
+
const contents = {};
|
|
5802
|
+
const data = parsedOutput.body.Error;
|
|
5803
|
+
if (data["Message"] !== undefined) {
|
|
5804
|
+
contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
|
|
5805
|
+
}
|
|
5806
|
+
const exception = new models_0_1.CidrCollectionVersionMismatchException({
|
|
5807
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
5808
|
+
...contents,
|
|
5809
|
+
});
|
|
5810
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
|
|
5811
|
+
};
|
|
5290
5812
|
const deserializeAws_restXmlConcurrentModificationResponse = async (parsedOutput, context) => {
|
|
5291
5813
|
const contents = {};
|
|
5292
5814
|
const data = parsedOutput.body.Error;
|
|
@@ -5737,6 +6259,30 @@ const deserializeAws_restXmlNoSuchChangeResponse = async (parsedOutput, context)
|
|
|
5737
6259
|
});
|
|
5738
6260
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
|
|
5739
6261
|
};
|
|
6262
|
+
const deserializeAws_restXmlNoSuchCidrCollectionExceptionResponse = async (parsedOutput, context) => {
|
|
6263
|
+
const contents = {};
|
|
6264
|
+
const data = parsedOutput.body.Error;
|
|
6265
|
+
if (data["Message"] !== undefined) {
|
|
6266
|
+
contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
|
|
6267
|
+
}
|
|
6268
|
+
const exception = new models_0_1.NoSuchCidrCollectionException({
|
|
6269
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
6270
|
+
...contents,
|
|
6271
|
+
});
|
|
6272
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
|
|
6273
|
+
};
|
|
6274
|
+
const deserializeAws_restXmlNoSuchCidrLocationExceptionResponse = async (parsedOutput, context) => {
|
|
6275
|
+
const contents = {};
|
|
6276
|
+
const data = parsedOutput.body.Error;
|
|
6277
|
+
if (data["Message"] !== undefined) {
|
|
6278
|
+
contents.Message = (0, smithy_client_1.expectString)(data["Message"]);
|
|
6279
|
+
}
|
|
6280
|
+
const exception = new models_0_1.NoSuchCidrLocationException({
|
|
6281
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
6282
|
+
...contents,
|
|
6283
|
+
});
|
|
6284
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body.Error);
|
|
6285
|
+
};
|
|
5740
6286
|
const deserializeAws_restXmlNoSuchCloudWatchLogsLogGroupResponse = async (parsedOutput, context) => {
|
|
5741
6287
|
const contents = {};
|
|
5742
6288
|
const data = parsedOutput.body.Error;
|
|
@@ -6129,6 +6675,66 @@ const serializeAws_restXmlChildHealthCheckList = (input, context) => {
|
|
|
6129
6675
|
return node.withName("ChildHealthCheck");
|
|
6130
6676
|
});
|
|
6131
6677
|
};
|
|
6678
|
+
const serializeAws_restXmlCidrCollectionChange = (input, context) => {
|
|
6679
|
+
const bodyNode = new xml_builder_1.XmlNode("CidrCollectionChange");
|
|
6680
|
+
if (input.LocationName !== undefined && input.LocationName !== null) {
|
|
6681
|
+
const node = new xml_builder_1.XmlNode("CidrLocationNameDefaultNotAllowed")
|
|
6682
|
+
.addChildNode(new xml_builder_1.XmlText(input.LocationName))
|
|
6683
|
+
.withName("LocationName");
|
|
6684
|
+
bodyNode.addChildNode(node);
|
|
6685
|
+
}
|
|
6686
|
+
if (input.Action !== undefined && input.Action !== null) {
|
|
6687
|
+
const node = new xml_builder_1.XmlNode("CidrCollectionChangeAction")
|
|
6688
|
+
.addChildNode(new xml_builder_1.XmlText(input.Action))
|
|
6689
|
+
.withName("Action");
|
|
6690
|
+
bodyNode.addChildNode(node);
|
|
6691
|
+
}
|
|
6692
|
+
if (input.CidrList !== undefined && input.CidrList !== null) {
|
|
6693
|
+
const nodes = serializeAws_restXmlCidrList(input.CidrList, context);
|
|
6694
|
+
const containerNode = new xml_builder_1.XmlNode("CidrList");
|
|
6695
|
+
nodes.map((node) => {
|
|
6696
|
+
containerNode.addChildNode(node);
|
|
6697
|
+
});
|
|
6698
|
+
bodyNode.addChildNode(containerNode);
|
|
6699
|
+
}
|
|
6700
|
+
return bodyNode;
|
|
6701
|
+
};
|
|
6702
|
+
const serializeAws_restXmlCidrCollectionChanges = (input, context) => {
|
|
6703
|
+
return input
|
|
6704
|
+
.filter((e) => e != null)
|
|
6705
|
+
.map((entry) => {
|
|
6706
|
+
if (entry === null) {
|
|
6707
|
+
return null;
|
|
6708
|
+
}
|
|
6709
|
+
const node = serializeAws_restXmlCidrCollectionChange(entry, context);
|
|
6710
|
+
return node.withName("member");
|
|
6711
|
+
});
|
|
6712
|
+
};
|
|
6713
|
+
const serializeAws_restXmlCidrList = (input, context) => {
|
|
6714
|
+
return input
|
|
6715
|
+
.filter((e) => e != null)
|
|
6716
|
+
.map((entry) => {
|
|
6717
|
+
if (entry === null) {
|
|
6718
|
+
return null;
|
|
6719
|
+
}
|
|
6720
|
+
const node = new xml_builder_1.XmlNode("Cidr").addChildNode(new xml_builder_1.XmlText(entry));
|
|
6721
|
+
return node.withName("Cidr");
|
|
6722
|
+
});
|
|
6723
|
+
};
|
|
6724
|
+
const serializeAws_restXmlCidrRoutingConfig = (input, context) => {
|
|
6725
|
+
const bodyNode = new xml_builder_1.XmlNode("CidrRoutingConfig");
|
|
6726
|
+
if (input.CollectionId !== undefined && input.CollectionId !== null) {
|
|
6727
|
+
const node = new xml_builder_1.XmlNode("UUID").addChildNode(new xml_builder_1.XmlText(input.CollectionId)).withName("CollectionId");
|
|
6728
|
+
bodyNode.addChildNode(node);
|
|
6729
|
+
}
|
|
6730
|
+
if (input.LocationName !== undefined && input.LocationName !== null) {
|
|
6731
|
+
const node = new xml_builder_1.XmlNode("CidrLocationNameDefaultAllowed")
|
|
6732
|
+
.addChildNode(new xml_builder_1.XmlText(input.LocationName))
|
|
6733
|
+
.withName("LocationName");
|
|
6734
|
+
bodyNode.addChildNode(node);
|
|
6735
|
+
}
|
|
6736
|
+
return bodyNode;
|
|
6737
|
+
};
|
|
6132
6738
|
const serializeAws_restXmlGeoLocation = (input, context) => {
|
|
6133
6739
|
const bodyNode = new xml_builder_1.XmlNode("GeoLocation");
|
|
6134
6740
|
if (input.ContinentCode !== undefined && input.ContinentCode !== null) {
|
|
@@ -6374,6 +6980,10 @@ const serializeAws_restXmlResourceRecordSet = (input, context) => {
|
|
|
6374
6980
|
.withName("TrafficPolicyInstanceId");
|
|
6375
6981
|
bodyNode.addChildNode(node);
|
|
6376
6982
|
}
|
|
6983
|
+
if (input.CidrRoutingConfig !== undefined && input.CidrRoutingConfig !== null) {
|
|
6984
|
+
const node = serializeAws_restXmlCidrRoutingConfig(input.CidrRoutingConfig, context).withName("CidrRoutingConfig");
|
|
6985
|
+
bodyNode.addChildNode(node);
|
|
6986
|
+
}
|
|
6377
6987
|
return bodyNode;
|
|
6378
6988
|
};
|
|
6379
6989
|
const serializeAws_restXmlTag = (input, context) => {
|
|
@@ -6517,6 +7127,63 @@ const deserializeAws_restXmlChildHealthCheckList = (output, context) => {
|
|
|
6517
7127
|
return (0, smithy_client_1.expectString)(entry);
|
|
6518
7128
|
});
|
|
6519
7129
|
};
|
|
7130
|
+
const deserializeAws_restXmlCidrBlockSummaries = (output, context) => {
|
|
7131
|
+
return (output || [])
|
|
7132
|
+
.filter((e) => e != null)
|
|
7133
|
+
.map((entry) => {
|
|
7134
|
+
if (entry === null) {
|
|
7135
|
+
return null;
|
|
7136
|
+
}
|
|
7137
|
+
return deserializeAws_restXmlCidrBlockSummary(entry, context);
|
|
7138
|
+
});
|
|
7139
|
+
};
|
|
7140
|
+
const deserializeAws_restXmlCidrBlockSummary = (output, context) => {
|
|
7141
|
+
const contents = {
|
|
7142
|
+
CidrBlock: undefined,
|
|
7143
|
+
LocationName: undefined,
|
|
7144
|
+
};
|
|
7145
|
+
if (output["CidrBlock"] !== undefined) {
|
|
7146
|
+
contents.CidrBlock = (0, smithy_client_1.expectString)(output["CidrBlock"]);
|
|
7147
|
+
}
|
|
7148
|
+
if (output["LocationName"] !== undefined) {
|
|
7149
|
+
contents.LocationName = (0, smithy_client_1.expectString)(output["LocationName"]);
|
|
7150
|
+
}
|
|
7151
|
+
return contents;
|
|
7152
|
+
};
|
|
7153
|
+
const deserializeAws_restXmlCidrCollection = (output, context) => {
|
|
7154
|
+
const contents = {
|
|
7155
|
+
Arn: undefined,
|
|
7156
|
+
Id: undefined,
|
|
7157
|
+
Name: undefined,
|
|
7158
|
+
Version: undefined,
|
|
7159
|
+
};
|
|
7160
|
+
if (output["Arn"] !== undefined) {
|
|
7161
|
+
contents.Arn = (0, smithy_client_1.expectString)(output["Arn"]);
|
|
7162
|
+
}
|
|
7163
|
+
if (output["Id"] !== undefined) {
|
|
7164
|
+
contents.Id = (0, smithy_client_1.expectString)(output["Id"]);
|
|
7165
|
+
}
|
|
7166
|
+
if (output["Name"] !== undefined) {
|
|
7167
|
+
contents.Name = (0, smithy_client_1.expectString)(output["Name"]);
|
|
7168
|
+
}
|
|
7169
|
+
if (output["Version"] !== undefined) {
|
|
7170
|
+
contents.Version = (0, smithy_client_1.strictParseLong)(output["Version"]);
|
|
7171
|
+
}
|
|
7172
|
+
return contents;
|
|
7173
|
+
};
|
|
7174
|
+
const deserializeAws_restXmlCidrRoutingConfig = (output, context) => {
|
|
7175
|
+
const contents = {
|
|
7176
|
+
CollectionId: undefined,
|
|
7177
|
+
LocationName: undefined,
|
|
7178
|
+
};
|
|
7179
|
+
if (output["CollectionId"] !== undefined) {
|
|
7180
|
+
contents.CollectionId = (0, smithy_client_1.expectString)(output["CollectionId"]);
|
|
7181
|
+
}
|
|
7182
|
+
if (output["LocationName"] !== undefined) {
|
|
7183
|
+
contents.LocationName = (0, smithy_client_1.expectString)(output["LocationName"]);
|
|
7184
|
+
}
|
|
7185
|
+
return contents;
|
|
7186
|
+
};
|
|
6520
7187
|
const deserializeAws_restXmlCloudWatchAlarmConfiguration = (output, context) => {
|
|
6521
7188
|
const contents = {
|
|
6522
7189
|
EvaluationPeriods: undefined,
|
|
@@ -6557,6 +7224,37 @@ const deserializeAws_restXmlCloudWatchAlarmConfiguration = (output, context) =>
|
|
|
6557
7224
|
}
|
|
6558
7225
|
return contents;
|
|
6559
7226
|
};
|
|
7227
|
+
const deserializeAws_restXmlCollectionSummaries = (output, context) => {
|
|
7228
|
+
return (output || [])
|
|
7229
|
+
.filter((e) => e != null)
|
|
7230
|
+
.map((entry) => {
|
|
7231
|
+
if (entry === null) {
|
|
7232
|
+
return null;
|
|
7233
|
+
}
|
|
7234
|
+
return deserializeAws_restXmlCollectionSummary(entry, context);
|
|
7235
|
+
});
|
|
7236
|
+
};
|
|
7237
|
+
const deserializeAws_restXmlCollectionSummary = (output, context) => {
|
|
7238
|
+
const contents = {
|
|
7239
|
+
Arn: undefined,
|
|
7240
|
+
Id: undefined,
|
|
7241
|
+
Name: undefined,
|
|
7242
|
+
Version: undefined,
|
|
7243
|
+
};
|
|
7244
|
+
if (output["Arn"] !== undefined) {
|
|
7245
|
+
contents.Arn = (0, smithy_client_1.expectString)(output["Arn"]);
|
|
7246
|
+
}
|
|
7247
|
+
if (output["Id"] !== undefined) {
|
|
7248
|
+
contents.Id = (0, smithy_client_1.expectString)(output["Id"]);
|
|
7249
|
+
}
|
|
7250
|
+
if (output["Name"] !== undefined) {
|
|
7251
|
+
contents.Name = (0, smithy_client_1.expectString)(output["Name"]);
|
|
7252
|
+
}
|
|
7253
|
+
if (output["Version"] !== undefined) {
|
|
7254
|
+
contents.Version = (0, smithy_client_1.strictParseLong)(output["Version"]);
|
|
7255
|
+
}
|
|
7256
|
+
return contents;
|
|
7257
|
+
};
|
|
6560
7258
|
const deserializeAws_restXmlDelegationSet = (output, context) => {
|
|
6561
7259
|
const contents = {
|
|
6562
7260
|
Id: undefined,
|
|
@@ -7055,6 +7753,25 @@ const deserializeAws_restXmlLinkedService = (output, context) => {
|
|
|
7055
7753
|
}
|
|
7056
7754
|
return contents;
|
|
7057
7755
|
};
|
|
7756
|
+
const deserializeAws_restXmlLocationSummaries = (output, context) => {
|
|
7757
|
+
return (output || [])
|
|
7758
|
+
.filter((e) => e != null)
|
|
7759
|
+
.map((entry) => {
|
|
7760
|
+
if (entry === null) {
|
|
7761
|
+
return null;
|
|
7762
|
+
}
|
|
7763
|
+
return deserializeAws_restXmlLocationSummary(entry, context);
|
|
7764
|
+
});
|
|
7765
|
+
};
|
|
7766
|
+
const deserializeAws_restXmlLocationSummary = (output, context) => {
|
|
7767
|
+
const contents = {
|
|
7768
|
+
LocationName: undefined,
|
|
7769
|
+
};
|
|
7770
|
+
if (output["LocationName"] !== undefined) {
|
|
7771
|
+
contents.LocationName = (0, smithy_client_1.expectString)(output["LocationName"]);
|
|
7772
|
+
}
|
|
7773
|
+
return contents;
|
|
7774
|
+
};
|
|
7058
7775
|
const deserializeAws_restXmlQueryLoggingConfig = (output, context) => {
|
|
7059
7776
|
const contents = {
|
|
7060
7777
|
Id: undefined,
|
|
@@ -7126,6 +7843,7 @@ const deserializeAws_restXmlResourceRecordSet = (output, context) => {
|
|
|
7126
7843
|
AliasTarget: undefined,
|
|
7127
7844
|
HealthCheckId: undefined,
|
|
7128
7845
|
TrafficPolicyInstanceId: undefined,
|
|
7846
|
+
CidrRoutingConfig: undefined,
|
|
7129
7847
|
};
|
|
7130
7848
|
if (output["Name"] !== undefined) {
|
|
7131
7849
|
contents.Name = (0, smithy_client_1.expectString)(output["Name"]);
|
|
@@ -7169,6 +7887,9 @@ const deserializeAws_restXmlResourceRecordSet = (output, context) => {
|
|
|
7169
7887
|
if (output["TrafficPolicyInstanceId"] !== undefined) {
|
|
7170
7888
|
contents.TrafficPolicyInstanceId = (0, smithy_client_1.expectString)(output["TrafficPolicyInstanceId"]);
|
|
7171
7889
|
}
|
|
7890
|
+
if (output["CidrRoutingConfig"] !== undefined) {
|
|
7891
|
+
contents.CidrRoutingConfig = deserializeAws_restXmlCidrRoutingConfig(output["CidrRoutingConfig"], context);
|
|
7892
|
+
}
|
|
7172
7893
|
return contents;
|
|
7173
7894
|
};
|
|
7174
7895
|
const deserializeAws_restXmlResourceRecordSets = (output, context) => {
|