@aws-sdk/client-route-53 3.52.0 → 3.53.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/index.js +3 -0
- package/dist-cjs/models/Route53ServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +826 -4
- package/dist-cjs/protocols/Aws_restXml.js +864 -2450
- package/dist-es/index.js +1 -0
- package/dist-es/models/Route53ServiceException.js +12 -0
- package/dist-es/models/models_0.js +759 -1
- package/dist-es/protocols/Aws_restXml.js +1467 -2749
- package/dist-types/Route53.d.ts +111 -2
- package/dist-types/commands/AssociateVPCWithHostedZoneCommand.d.ts +22 -0
- package/dist-types/commands/ChangeResourceRecordSetsCommand.d.ts +2 -2
- package/dist-types/commands/CreateHostedZoneCommand.d.ts +21 -0
- package/dist-types/commands/CreateQueryLoggingConfigCommand.d.ts +22 -0
- package/dist-types/commands/DisassociateVPCFromHostedZoneCommand.d.ts +21 -0
- package/dist-types/commands/ListHostedZonesByVPCCommand.d.ts +23 -0
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/Route53ServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +367 -291
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/Route53ServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +279 -253
- package/package.json +27 -27
|
@@ -8,6 +8,8 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
8
8
|
const xml_builder_1 = require("@aws-sdk/xml-builder");
|
|
9
9
|
const entities_1 = require("entities");
|
|
10
10
|
const fast_xml_parser_1 = require("fast-xml-parser");
|
|
11
|
+
const models_0_1 = require("../models/models_0");
|
|
12
|
+
const Route53ServiceException_1 = require("../models/Route53ServiceException");
|
|
11
13
|
const serializeAws_restXmlActivateKeySigningKeyCommand = async (input, context) => {
|
|
12
14
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
13
15
|
const headers = {};
|
|
@@ -2101,67 +2103,31 @@ const deserializeAws_restXmlActivateKeySigningKeyCommandError = async (output, c
|
|
|
2101
2103
|
switch (errorCode) {
|
|
2102
2104
|
case "ConcurrentModification":
|
|
2103
2105
|
case "com.amazonaws.route53#ConcurrentModification":
|
|
2104
|
-
|
|
2105
|
-
...(await deserializeAws_restXmlConcurrentModificationResponse(parsedOutput, context)),
|
|
2106
|
-
name: errorCode,
|
|
2107
|
-
$metadata: deserializeMetadata(output),
|
|
2108
|
-
};
|
|
2109
|
-
break;
|
|
2106
|
+
throw await deserializeAws_restXmlConcurrentModificationResponse(parsedOutput, context);
|
|
2110
2107
|
case "InvalidInput":
|
|
2111
2108
|
case "com.amazonaws.route53#InvalidInput":
|
|
2112
|
-
|
|
2113
|
-
...(await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context)),
|
|
2114
|
-
name: errorCode,
|
|
2115
|
-
$metadata: deserializeMetadata(output),
|
|
2116
|
-
};
|
|
2117
|
-
break;
|
|
2109
|
+
throw await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context);
|
|
2118
2110
|
case "InvalidKeySigningKeyStatus":
|
|
2119
2111
|
case "com.amazonaws.route53#InvalidKeySigningKeyStatus":
|
|
2120
|
-
|
|
2121
|
-
...(await deserializeAws_restXmlInvalidKeySigningKeyStatusResponse(parsedOutput, context)),
|
|
2122
|
-
name: errorCode,
|
|
2123
|
-
$metadata: deserializeMetadata(output),
|
|
2124
|
-
};
|
|
2125
|
-
break;
|
|
2112
|
+
throw await deserializeAws_restXmlInvalidKeySigningKeyStatusResponse(parsedOutput, context);
|
|
2126
2113
|
case "InvalidKMSArn":
|
|
2127
2114
|
case "com.amazonaws.route53#InvalidKMSArn":
|
|
2128
|
-
|
|
2129
|
-
...(await deserializeAws_restXmlInvalidKMSArnResponse(parsedOutput, context)),
|
|
2130
|
-
name: errorCode,
|
|
2131
|
-
$metadata: deserializeMetadata(output),
|
|
2132
|
-
};
|
|
2133
|
-
break;
|
|
2115
|
+
throw await deserializeAws_restXmlInvalidKMSArnResponse(parsedOutput, context);
|
|
2134
2116
|
case "InvalidSigningStatus":
|
|
2135
2117
|
case "com.amazonaws.route53#InvalidSigningStatus":
|
|
2136
|
-
|
|
2137
|
-
...(await deserializeAws_restXmlInvalidSigningStatusResponse(parsedOutput, context)),
|
|
2138
|
-
name: errorCode,
|
|
2139
|
-
$metadata: deserializeMetadata(output),
|
|
2140
|
-
};
|
|
2141
|
-
break;
|
|
2118
|
+
throw await deserializeAws_restXmlInvalidSigningStatusResponse(parsedOutput, context);
|
|
2142
2119
|
case "NoSuchKeySigningKey":
|
|
2143
2120
|
case "com.amazonaws.route53#NoSuchKeySigningKey":
|
|
2144
|
-
|
|
2145
|
-
...(await deserializeAws_restXmlNoSuchKeySigningKeyResponse(parsedOutput, context)),
|
|
2146
|
-
name: errorCode,
|
|
2147
|
-
$metadata: deserializeMetadata(output),
|
|
2148
|
-
};
|
|
2149
|
-
break;
|
|
2121
|
+
throw await deserializeAws_restXmlNoSuchKeySigningKeyResponse(parsedOutput, context);
|
|
2150
2122
|
default:
|
|
2151
2123
|
const parsedBody = parsedOutput.body;
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
...parsedBody.Error,
|
|
2155
|
-
name: `${errorCode}`,
|
|
2156
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
2124
|
+
response = new Route53ServiceException_1.Route53ServiceException({
|
|
2125
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2157
2126
|
$fault: "client",
|
|
2158
2127
|
$metadata: deserializeMetadata(output),
|
|
2159
|
-
};
|
|
2128
|
+
});
|
|
2129
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
2160
2130
|
}
|
|
2161
|
-
const message = response.message || response.Message || errorCode;
|
|
2162
|
-
response.message = message;
|
|
2163
|
-
delete response.Message;
|
|
2164
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2165
2131
|
};
|
|
2166
2132
|
const deserializeAws_restXmlAssociateVPCWithHostedZoneCommand = async (output, context) => {
|
|
2167
2133
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2189,83 +2155,37 @@ const deserializeAws_restXmlAssociateVPCWithHostedZoneCommandError = async (outp
|
|
|
2189
2155
|
switch (errorCode) {
|
|
2190
2156
|
case "ConflictingDomainExists":
|
|
2191
2157
|
case "com.amazonaws.route53#ConflictingDomainExists":
|
|
2192
|
-
|
|
2193
|
-
...(await deserializeAws_restXmlConflictingDomainExistsResponse(parsedOutput, context)),
|
|
2194
|
-
name: errorCode,
|
|
2195
|
-
$metadata: deserializeMetadata(output),
|
|
2196
|
-
};
|
|
2197
|
-
break;
|
|
2158
|
+
throw await deserializeAws_restXmlConflictingDomainExistsResponse(parsedOutput, context);
|
|
2198
2159
|
case "InvalidInput":
|
|
2199
2160
|
case "com.amazonaws.route53#InvalidInput":
|
|
2200
|
-
|
|
2201
|
-
...(await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context)),
|
|
2202
|
-
name: errorCode,
|
|
2203
|
-
$metadata: deserializeMetadata(output),
|
|
2204
|
-
};
|
|
2205
|
-
break;
|
|
2161
|
+
throw await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context);
|
|
2206
2162
|
case "InvalidVPCId":
|
|
2207
2163
|
case "com.amazonaws.route53#InvalidVPCId":
|
|
2208
|
-
|
|
2209
|
-
...(await deserializeAws_restXmlInvalidVPCIdResponse(parsedOutput, context)),
|
|
2210
|
-
name: errorCode,
|
|
2211
|
-
$metadata: deserializeMetadata(output),
|
|
2212
|
-
};
|
|
2213
|
-
break;
|
|
2164
|
+
throw await deserializeAws_restXmlInvalidVPCIdResponse(parsedOutput, context);
|
|
2214
2165
|
case "LimitsExceeded":
|
|
2215
2166
|
case "com.amazonaws.route53#LimitsExceeded":
|
|
2216
|
-
|
|
2217
|
-
...(await deserializeAws_restXmlLimitsExceededResponse(parsedOutput, context)),
|
|
2218
|
-
name: errorCode,
|
|
2219
|
-
$metadata: deserializeMetadata(output),
|
|
2220
|
-
};
|
|
2221
|
-
break;
|
|
2167
|
+
throw await deserializeAws_restXmlLimitsExceededResponse(parsedOutput, context);
|
|
2222
2168
|
case "NoSuchHostedZone":
|
|
2223
2169
|
case "com.amazonaws.route53#NoSuchHostedZone":
|
|
2224
|
-
|
|
2225
|
-
...(await deserializeAws_restXmlNoSuchHostedZoneResponse(parsedOutput, context)),
|
|
2226
|
-
name: errorCode,
|
|
2227
|
-
$metadata: deserializeMetadata(output),
|
|
2228
|
-
};
|
|
2229
|
-
break;
|
|
2170
|
+
throw await deserializeAws_restXmlNoSuchHostedZoneResponse(parsedOutput, context);
|
|
2230
2171
|
case "NotAuthorizedException":
|
|
2231
2172
|
case "com.amazonaws.route53#NotAuthorizedException":
|
|
2232
|
-
|
|
2233
|
-
...(await deserializeAws_restXmlNotAuthorizedExceptionResponse(parsedOutput, context)),
|
|
2234
|
-
name: errorCode,
|
|
2235
|
-
$metadata: deserializeMetadata(output),
|
|
2236
|
-
};
|
|
2237
|
-
break;
|
|
2173
|
+
throw await deserializeAws_restXmlNotAuthorizedExceptionResponse(parsedOutput, context);
|
|
2238
2174
|
case "PriorRequestNotComplete":
|
|
2239
2175
|
case "com.amazonaws.route53#PriorRequestNotComplete":
|
|
2240
|
-
|
|
2241
|
-
...(await deserializeAws_restXmlPriorRequestNotCompleteResponse(parsedOutput, context)),
|
|
2242
|
-
name: errorCode,
|
|
2243
|
-
$metadata: deserializeMetadata(output),
|
|
2244
|
-
};
|
|
2245
|
-
break;
|
|
2176
|
+
throw await deserializeAws_restXmlPriorRequestNotCompleteResponse(parsedOutput, context);
|
|
2246
2177
|
case "PublicZoneVPCAssociation":
|
|
2247
2178
|
case "com.amazonaws.route53#PublicZoneVPCAssociation":
|
|
2248
|
-
|
|
2249
|
-
...(await deserializeAws_restXmlPublicZoneVPCAssociationResponse(parsedOutput, context)),
|
|
2250
|
-
name: errorCode,
|
|
2251
|
-
$metadata: deserializeMetadata(output),
|
|
2252
|
-
};
|
|
2253
|
-
break;
|
|
2179
|
+
throw await deserializeAws_restXmlPublicZoneVPCAssociationResponse(parsedOutput, context);
|
|
2254
2180
|
default:
|
|
2255
2181
|
const parsedBody = parsedOutput.body;
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
...parsedBody.Error,
|
|
2259
|
-
name: `${errorCode}`,
|
|
2260
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
2182
|
+
response = new Route53ServiceException_1.Route53ServiceException({
|
|
2183
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2261
2184
|
$fault: "client",
|
|
2262
2185
|
$metadata: deserializeMetadata(output),
|
|
2263
|
-
};
|
|
2186
|
+
});
|
|
2187
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
2264
2188
|
}
|
|
2265
|
-
const message = response.message || response.Message || errorCode;
|
|
2266
|
-
response.message = message;
|
|
2267
|
-
delete response.Message;
|
|
2268
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2269
2189
|
};
|
|
2270
2190
|
const deserializeAws_restXmlChangeResourceRecordSetsCommand = async (output, context) => {
|
|
2271
2191
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2293,59 +2213,28 @@ const deserializeAws_restXmlChangeResourceRecordSetsCommandError = async (output
|
|
|
2293
2213
|
switch (errorCode) {
|
|
2294
2214
|
case "InvalidChangeBatch":
|
|
2295
2215
|
case "com.amazonaws.route53#InvalidChangeBatch":
|
|
2296
|
-
|
|
2297
|
-
...(await deserializeAws_restXmlInvalidChangeBatchResponse(parsedOutput, context)),
|
|
2298
|
-
name: errorCode,
|
|
2299
|
-
$metadata: deserializeMetadata(output),
|
|
2300
|
-
};
|
|
2301
|
-
break;
|
|
2216
|
+
throw await deserializeAws_restXmlInvalidChangeBatchResponse(parsedOutput, context);
|
|
2302
2217
|
case "InvalidInput":
|
|
2303
2218
|
case "com.amazonaws.route53#InvalidInput":
|
|
2304
|
-
|
|
2305
|
-
...(await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context)),
|
|
2306
|
-
name: errorCode,
|
|
2307
|
-
$metadata: deserializeMetadata(output),
|
|
2308
|
-
};
|
|
2309
|
-
break;
|
|
2219
|
+
throw await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context);
|
|
2310
2220
|
case "NoSuchHealthCheck":
|
|
2311
2221
|
case "com.amazonaws.route53#NoSuchHealthCheck":
|
|
2312
|
-
|
|
2313
|
-
...(await deserializeAws_restXmlNoSuchHealthCheckResponse(parsedOutput, context)),
|
|
2314
|
-
name: errorCode,
|
|
2315
|
-
$metadata: deserializeMetadata(output),
|
|
2316
|
-
};
|
|
2317
|
-
break;
|
|
2222
|
+
throw await deserializeAws_restXmlNoSuchHealthCheckResponse(parsedOutput, context);
|
|
2318
2223
|
case "NoSuchHostedZone":
|
|
2319
2224
|
case "com.amazonaws.route53#NoSuchHostedZone":
|
|
2320
|
-
|
|
2321
|
-
...(await deserializeAws_restXmlNoSuchHostedZoneResponse(parsedOutput, context)),
|
|
2322
|
-
name: errorCode,
|
|
2323
|
-
$metadata: deserializeMetadata(output),
|
|
2324
|
-
};
|
|
2325
|
-
break;
|
|
2225
|
+
throw await deserializeAws_restXmlNoSuchHostedZoneResponse(parsedOutput, context);
|
|
2326
2226
|
case "PriorRequestNotComplete":
|
|
2327
2227
|
case "com.amazonaws.route53#PriorRequestNotComplete":
|
|
2328
|
-
|
|
2329
|
-
...(await deserializeAws_restXmlPriorRequestNotCompleteResponse(parsedOutput, context)),
|
|
2330
|
-
name: errorCode,
|
|
2331
|
-
$metadata: deserializeMetadata(output),
|
|
2332
|
-
};
|
|
2333
|
-
break;
|
|
2228
|
+
throw await deserializeAws_restXmlPriorRequestNotCompleteResponse(parsedOutput, context);
|
|
2334
2229
|
default:
|
|
2335
2230
|
const parsedBody = parsedOutput.body;
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
...parsedBody.Error,
|
|
2339
|
-
name: `${errorCode}`,
|
|
2340
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
2231
|
+
response = new Route53ServiceException_1.Route53ServiceException({
|
|
2232
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2341
2233
|
$fault: "client",
|
|
2342
2234
|
$metadata: deserializeMetadata(output),
|
|
2343
|
-
};
|
|
2235
|
+
});
|
|
2236
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
2344
2237
|
}
|
|
2345
|
-
const message = response.message || response.Message || errorCode;
|
|
2346
|
-
response.message = message;
|
|
2347
|
-
delete response.Message;
|
|
2348
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2349
2238
|
};
|
|
2350
2239
|
const deserializeAws_restXmlChangeTagsForResourceCommand = async (output, context) => {
|
|
2351
2240
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2369,59 +2258,28 @@ const deserializeAws_restXmlChangeTagsForResourceCommandError = async (output, c
|
|
|
2369
2258
|
switch (errorCode) {
|
|
2370
2259
|
case "InvalidInput":
|
|
2371
2260
|
case "com.amazonaws.route53#InvalidInput":
|
|
2372
|
-
|
|
2373
|
-
...(await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context)),
|
|
2374
|
-
name: errorCode,
|
|
2375
|
-
$metadata: deserializeMetadata(output),
|
|
2376
|
-
};
|
|
2377
|
-
break;
|
|
2261
|
+
throw await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context);
|
|
2378
2262
|
case "NoSuchHealthCheck":
|
|
2379
2263
|
case "com.amazonaws.route53#NoSuchHealthCheck":
|
|
2380
|
-
|
|
2381
|
-
...(await deserializeAws_restXmlNoSuchHealthCheckResponse(parsedOutput, context)),
|
|
2382
|
-
name: errorCode,
|
|
2383
|
-
$metadata: deserializeMetadata(output),
|
|
2384
|
-
};
|
|
2385
|
-
break;
|
|
2264
|
+
throw await deserializeAws_restXmlNoSuchHealthCheckResponse(parsedOutput, context);
|
|
2386
2265
|
case "NoSuchHostedZone":
|
|
2387
2266
|
case "com.amazonaws.route53#NoSuchHostedZone":
|
|
2388
|
-
|
|
2389
|
-
...(await deserializeAws_restXmlNoSuchHostedZoneResponse(parsedOutput, context)),
|
|
2390
|
-
name: errorCode,
|
|
2391
|
-
$metadata: deserializeMetadata(output),
|
|
2392
|
-
};
|
|
2393
|
-
break;
|
|
2267
|
+
throw await deserializeAws_restXmlNoSuchHostedZoneResponse(parsedOutput, context);
|
|
2394
2268
|
case "PriorRequestNotComplete":
|
|
2395
2269
|
case "com.amazonaws.route53#PriorRequestNotComplete":
|
|
2396
|
-
|
|
2397
|
-
...(await deserializeAws_restXmlPriorRequestNotCompleteResponse(parsedOutput, context)),
|
|
2398
|
-
name: errorCode,
|
|
2399
|
-
$metadata: deserializeMetadata(output),
|
|
2400
|
-
};
|
|
2401
|
-
break;
|
|
2270
|
+
throw await deserializeAws_restXmlPriorRequestNotCompleteResponse(parsedOutput, context);
|
|
2402
2271
|
case "ThrottlingException":
|
|
2403
2272
|
case "com.amazonaws.route53#ThrottlingException":
|
|
2404
|
-
|
|
2405
|
-
...(await deserializeAws_restXmlThrottlingExceptionResponse(parsedOutput, context)),
|
|
2406
|
-
name: errorCode,
|
|
2407
|
-
$metadata: deserializeMetadata(output),
|
|
2408
|
-
};
|
|
2409
|
-
break;
|
|
2273
|
+
throw await deserializeAws_restXmlThrottlingExceptionResponse(parsedOutput, context);
|
|
2410
2274
|
default:
|
|
2411
2275
|
const parsedBody = parsedOutput.body;
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
...parsedBody.Error,
|
|
2415
|
-
name: `${errorCode}`,
|
|
2416
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
2276
|
+
response = new Route53ServiceException_1.Route53ServiceException({
|
|
2277
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2417
2278
|
$fault: "client",
|
|
2418
2279
|
$metadata: deserializeMetadata(output),
|
|
2419
|
-
};
|
|
2280
|
+
});
|
|
2281
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
2420
2282
|
}
|
|
2421
|
-
const message = response.message || response.Message || errorCode;
|
|
2422
|
-
response.message = message;
|
|
2423
|
-
delete response.Message;
|
|
2424
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2425
2283
|
};
|
|
2426
2284
|
const deserializeAws_restXmlCreateHealthCheckCommand = async (output, context) => {
|
|
2427
2285
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
@@ -2453,43 +2311,22 @@ const deserializeAws_restXmlCreateHealthCheckCommandError = async (output, conte
|
|
|
2453
2311
|
switch (errorCode) {
|
|
2454
2312
|
case "HealthCheckAlreadyExists":
|
|
2455
2313
|
case "com.amazonaws.route53#HealthCheckAlreadyExists":
|
|
2456
|
-
|
|
2457
|
-
...(await deserializeAws_restXmlHealthCheckAlreadyExistsResponse(parsedOutput, context)),
|
|
2458
|
-
name: errorCode,
|
|
2459
|
-
$metadata: deserializeMetadata(output),
|
|
2460
|
-
};
|
|
2461
|
-
break;
|
|
2314
|
+
throw await deserializeAws_restXmlHealthCheckAlreadyExistsResponse(parsedOutput, context);
|
|
2462
2315
|
case "InvalidInput":
|
|
2463
2316
|
case "com.amazonaws.route53#InvalidInput":
|
|
2464
|
-
|
|
2465
|
-
...(await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context)),
|
|
2466
|
-
name: errorCode,
|
|
2467
|
-
$metadata: deserializeMetadata(output),
|
|
2468
|
-
};
|
|
2469
|
-
break;
|
|
2317
|
+
throw await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context);
|
|
2470
2318
|
case "TooManyHealthChecks":
|
|
2471
2319
|
case "com.amazonaws.route53#TooManyHealthChecks":
|
|
2472
|
-
|
|
2473
|
-
...(await deserializeAws_restXmlTooManyHealthChecksResponse(parsedOutput, context)),
|
|
2474
|
-
name: errorCode,
|
|
2475
|
-
$metadata: deserializeMetadata(output),
|
|
2476
|
-
};
|
|
2477
|
-
break;
|
|
2320
|
+
throw await deserializeAws_restXmlTooManyHealthChecksResponse(parsedOutput, context);
|
|
2478
2321
|
default:
|
|
2479
2322
|
const parsedBody = parsedOutput.body;
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
...parsedBody.Error,
|
|
2483
|
-
name: `${errorCode}`,
|
|
2484
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
2323
|
+
response = new Route53ServiceException_1.Route53ServiceException({
|
|
2324
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2485
2325
|
$fault: "client",
|
|
2486
2326
|
$metadata: deserializeMetadata(output),
|
|
2487
|
-
};
|
|
2327
|
+
});
|
|
2328
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
2488
2329
|
}
|
|
2489
|
-
const message = response.message || response.Message || errorCode;
|
|
2490
|
-
response.message = message;
|
|
2491
|
-
delete response.Message;
|
|
2492
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2493
2330
|
};
|
|
2494
2331
|
const deserializeAws_restXmlCreateHostedZoneCommand = async (output, context) => {
|
|
2495
2332
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
@@ -2533,91 +2370,40 @@ const deserializeAws_restXmlCreateHostedZoneCommandError = async (output, contex
|
|
|
2533
2370
|
switch (errorCode) {
|
|
2534
2371
|
case "ConflictingDomainExists":
|
|
2535
2372
|
case "com.amazonaws.route53#ConflictingDomainExists":
|
|
2536
|
-
|
|
2537
|
-
...(await deserializeAws_restXmlConflictingDomainExistsResponse(parsedOutput, context)),
|
|
2538
|
-
name: errorCode,
|
|
2539
|
-
$metadata: deserializeMetadata(output),
|
|
2540
|
-
};
|
|
2541
|
-
break;
|
|
2373
|
+
throw await deserializeAws_restXmlConflictingDomainExistsResponse(parsedOutput, context);
|
|
2542
2374
|
case "DelegationSetNotAvailable":
|
|
2543
2375
|
case "com.amazonaws.route53#DelegationSetNotAvailable":
|
|
2544
|
-
|
|
2545
|
-
...(await deserializeAws_restXmlDelegationSetNotAvailableResponse(parsedOutput, context)),
|
|
2546
|
-
name: errorCode,
|
|
2547
|
-
$metadata: deserializeMetadata(output),
|
|
2548
|
-
};
|
|
2549
|
-
break;
|
|
2376
|
+
throw await deserializeAws_restXmlDelegationSetNotAvailableResponse(parsedOutput, context);
|
|
2550
2377
|
case "DelegationSetNotReusable":
|
|
2551
2378
|
case "com.amazonaws.route53#DelegationSetNotReusable":
|
|
2552
|
-
|
|
2553
|
-
...(await deserializeAws_restXmlDelegationSetNotReusableResponse(parsedOutput, context)),
|
|
2554
|
-
name: errorCode,
|
|
2555
|
-
$metadata: deserializeMetadata(output),
|
|
2556
|
-
};
|
|
2557
|
-
break;
|
|
2379
|
+
throw await deserializeAws_restXmlDelegationSetNotReusableResponse(parsedOutput, context);
|
|
2558
2380
|
case "HostedZoneAlreadyExists":
|
|
2559
2381
|
case "com.amazonaws.route53#HostedZoneAlreadyExists":
|
|
2560
|
-
|
|
2561
|
-
...(await deserializeAws_restXmlHostedZoneAlreadyExistsResponse(parsedOutput, context)),
|
|
2562
|
-
name: errorCode,
|
|
2563
|
-
$metadata: deserializeMetadata(output),
|
|
2564
|
-
};
|
|
2565
|
-
break;
|
|
2382
|
+
throw await deserializeAws_restXmlHostedZoneAlreadyExistsResponse(parsedOutput, context);
|
|
2566
2383
|
case "InvalidDomainName":
|
|
2567
2384
|
case "com.amazonaws.route53#InvalidDomainName":
|
|
2568
|
-
|
|
2569
|
-
...(await deserializeAws_restXmlInvalidDomainNameResponse(parsedOutput, context)),
|
|
2570
|
-
name: errorCode,
|
|
2571
|
-
$metadata: deserializeMetadata(output),
|
|
2572
|
-
};
|
|
2573
|
-
break;
|
|
2385
|
+
throw await deserializeAws_restXmlInvalidDomainNameResponse(parsedOutput, context);
|
|
2574
2386
|
case "InvalidInput":
|
|
2575
2387
|
case "com.amazonaws.route53#InvalidInput":
|
|
2576
|
-
|
|
2577
|
-
...(await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context)),
|
|
2578
|
-
name: errorCode,
|
|
2579
|
-
$metadata: deserializeMetadata(output),
|
|
2580
|
-
};
|
|
2581
|
-
break;
|
|
2388
|
+
throw await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context);
|
|
2582
2389
|
case "InvalidVPCId":
|
|
2583
2390
|
case "com.amazonaws.route53#InvalidVPCId":
|
|
2584
|
-
|
|
2585
|
-
...(await deserializeAws_restXmlInvalidVPCIdResponse(parsedOutput, context)),
|
|
2586
|
-
name: errorCode,
|
|
2587
|
-
$metadata: deserializeMetadata(output),
|
|
2588
|
-
};
|
|
2589
|
-
break;
|
|
2391
|
+
throw await deserializeAws_restXmlInvalidVPCIdResponse(parsedOutput, context);
|
|
2590
2392
|
case "NoSuchDelegationSet":
|
|
2591
2393
|
case "com.amazonaws.route53#NoSuchDelegationSet":
|
|
2592
|
-
|
|
2593
|
-
...(await deserializeAws_restXmlNoSuchDelegationSetResponse(parsedOutput, context)),
|
|
2594
|
-
name: errorCode,
|
|
2595
|
-
$metadata: deserializeMetadata(output),
|
|
2596
|
-
};
|
|
2597
|
-
break;
|
|
2394
|
+
throw await deserializeAws_restXmlNoSuchDelegationSetResponse(parsedOutput, context);
|
|
2598
2395
|
case "TooManyHostedZones":
|
|
2599
2396
|
case "com.amazonaws.route53#TooManyHostedZones":
|
|
2600
|
-
|
|
2601
|
-
...(await deserializeAws_restXmlTooManyHostedZonesResponse(parsedOutput, context)),
|
|
2602
|
-
name: errorCode,
|
|
2603
|
-
$metadata: deserializeMetadata(output),
|
|
2604
|
-
};
|
|
2605
|
-
break;
|
|
2397
|
+
throw await deserializeAws_restXmlTooManyHostedZonesResponse(parsedOutput, context);
|
|
2606
2398
|
default:
|
|
2607
2399
|
const parsedBody = parsedOutput.body;
|
|
2608
|
-
|
|
2609
|
-
|
|
2610
|
-
...parsedBody.Error,
|
|
2611
|
-
name: `${errorCode}`,
|
|
2612
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
2400
|
+
response = new Route53ServiceException_1.Route53ServiceException({
|
|
2401
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2613
2402
|
$fault: "client",
|
|
2614
2403
|
$metadata: deserializeMetadata(output),
|
|
2615
|
-
};
|
|
2404
|
+
});
|
|
2405
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
2616
2406
|
}
|
|
2617
|
-
const message = response.message || response.Message || errorCode;
|
|
2618
|
-
response.message = message;
|
|
2619
|
-
delete response.Message;
|
|
2620
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2621
2407
|
};
|
|
2622
2408
|
const deserializeAws_restXmlCreateKeySigningKeyCommand = async (output, context) => {
|
|
2623
2409
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
@@ -2653,99 +2439,43 @@ const deserializeAws_restXmlCreateKeySigningKeyCommandError = async (output, con
|
|
|
2653
2439
|
switch (errorCode) {
|
|
2654
2440
|
case "ConcurrentModification":
|
|
2655
2441
|
case "com.amazonaws.route53#ConcurrentModification":
|
|
2656
|
-
|
|
2657
|
-
...(await deserializeAws_restXmlConcurrentModificationResponse(parsedOutput, context)),
|
|
2658
|
-
name: errorCode,
|
|
2659
|
-
$metadata: deserializeMetadata(output),
|
|
2660
|
-
};
|
|
2661
|
-
break;
|
|
2442
|
+
throw await deserializeAws_restXmlConcurrentModificationResponse(parsedOutput, context);
|
|
2662
2443
|
case "InvalidArgument":
|
|
2663
2444
|
case "com.amazonaws.route53#InvalidArgument":
|
|
2664
|
-
|
|
2665
|
-
...(await deserializeAws_restXmlInvalidArgumentResponse(parsedOutput, context)),
|
|
2666
|
-
name: errorCode,
|
|
2667
|
-
$metadata: deserializeMetadata(output),
|
|
2668
|
-
};
|
|
2669
|
-
break;
|
|
2445
|
+
throw await deserializeAws_restXmlInvalidArgumentResponse(parsedOutput, context);
|
|
2670
2446
|
case "InvalidInput":
|
|
2671
2447
|
case "com.amazonaws.route53#InvalidInput":
|
|
2672
|
-
|
|
2673
|
-
...(await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context)),
|
|
2674
|
-
name: errorCode,
|
|
2675
|
-
$metadata: deserializeMetadata(output),
|
|
2676
|
-
};
|
|
2677
|
-
break;
|
|
2448
|
+
throw await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context);
|
|
2678
2449
|
case "InvalidKeySigningKeyName":
|
|
2679
2450
|
case "com.amazonaws.route53#InvalidKeySigningKeyName":
|
|
2680
|
-
|
|
2681
|
-
...(await deserializeAws_restXmlInvalidKeySigningKeyNameResponse(parsedOutput, context)),
|
|
2682
|
-
name: errorCode,
|
|
2683
|
-
$metadata: deserializeMetadata(output),
|
|
2684
|
-
};
|
|
2685
|
-
break;
|
|
2451
|
+
throw await deserializeAws_restXmlInvalidKeySigningKeyNameResponse(parsedOutput, context);
|
|
2686
2452
|
case "InvalidKeySigningKeyStatus":
|
|
2687
2453
|
case "com.amazonaws.route53#InvalidKeySigningKeyStatus":
|
|
2688
|
-
|
|
2689
|
-
...(await deserializeAws_restXmlInvalidKeySigningKeyStatusResponse(parsedOutput, context)),
|
|
2690
|
-
name: errorCode,
|
|
2691
|
-
$metadata: deserializeMetadata(output),
|
|
2692
|
-
};
|
|
2693
|
-
break;
|
|
2454
|
+
throw await deserializeAws_restXmlInvalidKeySigningKeyStatusResponse(parsedOutput, context);
|
|
2694
2455
|
case "InvalidKMSArn":
|
|
2695
2456
|
case "com.amazonaws.route53#InvalidKMSArn":
|
|
2696
|
-
|
|
2697
|
-
...(await deserializeAws_restXmlInvalidKMSArnResponse(parsedOutput, context)),
|
|
2698
|
-
name: errorCode,
|
|
2699
|
-
$metadata: deserializeMetadata(output),
|
|
2700
|
-
};
|
|
2701
|
-
break;
|
|
2457
|
+
throw await deserializeAws_restXmlInvalidKMSArnResponse(parsedOutput, context);
|
|
2702
2458
|
case "InvalidSigningStatus":
|
|
2703
2459
|
case "com.amazonaws.route53#InvalidSigningStatus":
|
|
2704
|
-
|
|
2705
|
-
...(await deserializeAws_restXmlInvalidSigningStatusResponse(parsedOutput, context)),
|
|
2706
|
-
name: errorCode,
|
|
2707
|
-
$metadata: deserializeMetadata(output),
|
|
2708
|
-
};
|
|
2709
|
-
break;
|
|
2460
|
+
throw await deserializeAws_restXmlInvalidSigningStatusResponse(parsedOutput, context);
|
|
2710
2461
|
case "KeySigningKeyAlreadyExists":
|
|
2711
2462
|
case "com.amazonaws.route53#KeySigningKeyAlreadyExists":
|
|
2712
|
-
|
|
2713
|
-
...(await deserializeAws_restXmlKeySigningKeyAlreadyExistsResponse(parsedOutput, context)),
|
|
2714
|
-
name: errorCode,
|
|
2715
|
-
$metadata: deserializeMetadata(output),
|
|
2716
|
-
};
|
|
2717
|
-
break;
|
|
2463
|
+
throw await deserializeAws_restXmlKeySigningKeyAlreadyExistsResponse(parsedOutput, context);
|
|
2718
2464
|
case "NoSuchHostedZone":
|
|
2719
2465
|
case "com.amazonaws.route53#NoSuchHostedZone":
|
|
2720
|
-
|
|
2721
|
-
...(await deserializeAws_restXmlNoSuchHostedZoneResponse(parsedOutput, context)),
|
|
2722
|
-
name: errorCode,
|
|
2723
|
-
$metadata: deserializeMetadata(output),
|
|
2724
|
-
};
|
|
2725
|
-
break;
|
|
2466
|
+
throw await deserializeAws_restXmlNoSuchHostedZoneResponse(parsedOutput, context);
|
|
2726
2467
|
case "TooManyKeySigningKeys":
|
|
2727
2468
|
case "com.amazonaws.route53#TooManyKeySigningKeys":
|
|
2728
|
-
|
|
2729
|
-
...(await deserializeAws_restXmlTooManyKeySigningKeysResponse(parsedOutput, context)),
|
|
2730
|
-
name: errorCode,
|
|
2731
|
-
$metadata: deserializeMetadata(output),
|
|
2732
|
-
};
|
|
2733
|
-
break;
|
|
2469
|
+
throw await deserializeAws_restXmlTooManyKeySigningKeysResponse(parsedOutput, context);
|
|
2734
2470
|
default:
|
|
2735
2471
|
const parsedBody = parsedOutput.body;
|
|
2736
|
-
|
|
2737
|
-
|
|
2738
|
-
...parsedBody.Error,
|
|
2739
|
-
name: `${errorCode}`,
|
|
2740
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
2472
|
+
response = new Route53ServiceException_1.Route53ServiceException({
|
|
2473
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2741
2474
|
$fault: "client",
|
|
2742
2475
|
$metadata: deserializeMetadata(output),
|
|
2743
|
-
};
|
|
2476
|
+
});
|
|
2477
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
2744
2478
|
}
|
|
2745
|
-
const message = response.message || response.Message || errorCode;
|
|
2746
|
-
response.message = message;
|
|
2747
|
-
delete response.Message;
|
|
2748
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2749
2479
|
};
|
|
2750
2480
|
const deserializeAws_restXmlCreateQueryLoggingConfigCommand = async (output, context) => {
|
|
2751
2481
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
@@ -2777,67 +2507,31 @@ const deserializeAws_restXmlCreateQueryLoggingConfigCommandError = async (output
|
|
|
2777
2507
|
switch (errorCode) {
|
|
2778
2508
|
case "ConcurrentModification":
|
|
2779
2509
|
case "com.amazonaws.route53#ConcurrentModification":
|
|
2780
|
-
|
|
2781
|
-
...(await deserializeAws_restXmlConcurrentModificationResponse(parsedOutput, context)),
|
|
2782
|
-
name: errorCode,
|
|
2783
|
-
$metadata: deserializeMetadata(output),
|
|
2784
|
-
};
|
|
2785
|
-
break;
|
|
2510
|
+
throw await deserializeAws_restXmlConcurrentModificationResponse(parsedOutput, context);
|
|
2786
2511
|
case "InsufficientCloudWatchLogsResourcePolicy":
|
|
2787
2512
|
case "com.amazonaws.route53#InsufficientCloudWatchLogsResourcePolicy":
|
|
2788
|
-
|
|
2789
|
-
...(await deserializeAws_restXmlInsufficientCloudWatchLogsResourcePolicyResponse(parsedOutput, context)),
|
|
2790
|
-
name: errorCode,
|
|
2791
|
-
$metadata: deserializeMetadata(output),
|
|
2792
|
-
};
|
|
2793
|
-
break;
|
|
2513
|
+
throw await deserializeAws_restXmlInsufficientCloudWatchLogsResourcePolicyResponse(parsedOutput, context);
|
|
2794
2514
|
case "InvalidInput":
|
|
2795
2515
|
case "com.amazonaws.route53#InvalidInput":
|
|
2796
|
-
|
|
2797
|
-
...(await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context)),
|
|
2798
|
-
name: errorCode,
|
|
2799
|
-
$metadata: deserializeMetadata(output),
|
|
2800
|
-
};
|
|
2801
|
-
break;
|
|
2516
|
+
throw await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context);
|
|
2802
2517
|
case "NoSuchCloudWatchLogsLogGroup":
|
|
2803
2518
|
case "com.amazonaws.route53#NoSuchCloudWatchLogsLogGroup":
|
|
2804
|
-
|
|
2805
|
-
...(await deserializeAws_restXmlNoSuchCloudWatchLogsLogGroupResponse(parsedOutput, context)),
|
|
2806
|
-
name: errorCode,
|
|
2807
|
-
$metadata: deserializeMetadata(output),
|
|
2808
|
-
};
|
|
2809
|
-
break;
|
|
2519
|
+
throw await deserializeAws_restXmlNoSuchCloudWatchLogsLogGroupResponse(parsedOutput, context);
|
|
2810
2520
|
case "NoSuchHostedZone":
|
|
2811
2521
|
case "com.amazonaws.route53#NoSuchHostedZone":
|
|
2812
|
-
|
|
2813
|
-
...(await deserializeAws_restXmlNoSuchHostedZoneResponse(parsedOutput, context)),
|
|
2814
|
-
name: errorCode,
|
|
2815
|
-
$metadata: deserializeMetadata(output),
|
|
2816
|
-
};
|
|
2817
|
-
break;
|
|
2522
|
+
throw await deserializeAws_restXmlNoSuchHostedZoneResponse(parsedOutput, context);
|
|
2818
2523
|
case "QueryLoggingConfigAlreadyExists":
|
|
2819
2524
|
case "com.amazonaws.route53#QueryLoggingConfigAlreadyExists":
|
|
2820
|
-
|
|
2821
|
-
...(await deserializeAws_restXmlQueryLoggingConfigAlreadyExistsResponse(parsedOutput, context)),
|
|
2822
|
-
name: errorCode,
|
|
2823
|
-
$metadata: deserializeMetadata(output),
|
|
2824
|
-
};
|
|
2825
|
-
break;
|
|
2525
|
+
throw await deserializeAws_restXmlQueryLoggingConfigAlreadyExistsResponse(parsedOutput, context);
|
|
2826
2526
|
default:
|
|
2827
2527
|
const parsedBody = parsedOutput.body;
|
|
2828
|
-
|
|
2829
|
-
|
|
2830
|
-
...parsedBody.Error,
|
|
2831
|
-
name: `${errorCode}`,
|
|
2832
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
2528
|
+
response = new Route53ServiceException_1.Route53ServiceException({
|
|
2529
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2833
2530
|
$fault: "client",
|
|
2834
2531
|
$metadata: deserializeMetadata(output),
|
|
2835
|
-
};
|
|
2532
|
+
});
|
|
2533
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
2836
2534
|
}
|
|
2837
|
-
const message = response.message || response.Message || errorCode;
|
|
2838
|
-
response.message = message;
|
|
2839
|
-
delete response.Message;
|
|
2840
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2841
2535
|
};
|
|
2842
2536
|
const deserializeAws_restXmlCreateReusableDelegationSetCommand = async (output, context) => {
|
|
2843
2537
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
@@ -2869,75 +2563,34 @@ const deserializeAws_restXmlCreateReusableDelegationSetCommandError = async (out
|
|
|
2869
2563
|
switch (errorCode) {
|
|
2870
2564
|
case "DelegationSetAlreadyCreated":
|
|
2871
2565
|
case "com.amazonaws.route53#DelegationSetAlreadyCreated":
|
|
2872
|
-
|
|
2873
|
-
...(await deserializeAws_restXmlDelegationSetAlreadyCreatedResponse(parsedOutput, context)),
|
|
2874
|
-
name: errorCode,
|
|
2875
|
-
$metadata: deserializeMetadata(output),
|
|
2876
|
-
};
|
|
2877
|
-
break;
|
|
2566
|
+
throw await deserializeAws_restXmlDelegationSetAlreadyCreatedResponse(parsedOutput, context);
|
|
2878
2567
|
case "DelegationSetAlreadyReusable":
|
|
2879
2568
|
case "com.amazonaws.route53#DelegationSetAlreadyReusable":
|
|
2880
|
-
|
|
2881
|
-
...(await deserializeAws_restXmlDelegationSetAlreadyReusableResponse(parsedOutput, context)),
|
|
2882
|
-
name: errorCode,
|
|
2883
|
-
$metadata: deserializeMetadata(output),
|
|
2884
|
-
};
|
|
2885
|
-
break;
|
|
2569
|
+
throw await deserializeAws_restXmlDelegationSetAlreadyReusableResponse(parsedOutput, context);
|
|
2886
2570
|
case "DelegationSetNotAvailable":
|
|
2887
2571
|
case "com.amazonaws.route53#DelegationSetNotAvailable":
|
|
2888
|
-
|
|
2889
|
-
...(await deserializeAws_restXmlDelegationSetNotAvailableResponse(parsedOutput, context)),
|
|
2890
|
-
name: errorCode,
|
|
2891
|
-
$metadata: deserializeMetadata(output),
|
|
2892
|
-
};
|
|
2893
|
-
break;
|
|
2572
|
+
throw await deserializeAws_restXmlDelegationSetNotAvailableResponse(parsedOutput, context);
|
|
2894
2573
|
case "HostedZoneNotFound":
|
|
2895
2574
|
case "com.amazonaws.route53#HostedZoneNotFound":
|
|
2896
|
-
|
|
2897
|
-
...(await deserializeAws_restXmlHostedZoneNotFoundResponse(parsedOutput, context)),
|
|
2898
|
-
name: errorCode,
|
|
2899
|
-
$metadata: deserializeMetadata(output),
|
|
2900
|
-
};
|
|
2901
|
-
break;
|
|
2575
|
+
throw await deserializeAws_restXmlHostedZoneNotFoundResponse(parsedOutput, context);
|
|
2902
2576
|
case "InvalidArgument":
|
|
2903
2577
|
case "com.amazonaws.route53#InvalidArgument":
|
|
2904
|
-
|
|
2905
|
-
...(await deserializeAws_restXmlInvalidArgumentResponse(parsedOutput, context)),
|
|
2906
|
-
name: errorCode,
|
|
2907
|
-
$metadata: deserializeMetadata(output),
|
|
2908
|
-
};
|
|
2909
|
-
break;
|
|
2578
|
+
throw await deserializeAws_restXmlInvalidArgumentResponse(parsedOutput, context);
|
|
2910
2579
|
case "InvalidInput":
|
|
2911
2580
|
case "com.amazonaws.route53#InvalidInput":
|
|
2912
|
-
|
|
2913
|
-
...(await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context)),
|
|
2914
|
-
name: errorCode,
|
|
2915
|
-
$metadata: deserializeMetadata(output),
|
|
2916
|
-
};
|
|
2917
|
-
break;
|
|
2581
|
+
throw await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context);
|
|
2918
2582
|
case "LimitsExceeded":
|
|
2919
2583
|
case "com.amazonaws.route53#LimitsExceeded":
|
|
2920
|
-
|
|
2921
|
-
...(await deserializeAws_restXmlLimitsExceededResponse(parsedOutput, context)),
|
|
2922
|
-
name: errorCode,
|
|
2923
|
-
$metadata: deserializeMetadata(output),
|
|
2924
|
-
};
|
|
2925
|
-
break;
|
|
2584
|
+
throw await deserializeAws_restXmlLimitsExceededResponse(parsedOutput, context);
|
|
2926
2585
|
default:
|
|
2927
2586
|
const parsedBody = parsedOutput.body;
|
|
2928
|
-
|
|
2929
|
-
|
|
2930
|
-
...parsedBody.Error,
|
|
2931
|
-
name: `${errorCode}`,
|
|
2932
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
2587
|
+
response = new Route53ServiceException_1.Route53ServiceException({
|
|
2588
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2933
2589
|
$fault: "client",
|
|
2934
2590
|
$metadata: deserializeMetadata(output),
|
|
2935
|
-
};
|
|
2591
|
+
});
|
|
2592
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
2936
2593
|
}
|
|
2937
|
-
const message = response.message || response.Message || errorCode;
|
|
2938
|
-
response.message = message;
|
|
2939
|
-
delete response.Message;
|
|
2940
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2941
2594
|
};
|
|
2942
2595
|
const deserializeAws_restXmlCreateTrafficPolicyCommand = async (output, context) => {
|
|
2943
2596
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
@@ -2969,51 +2622,25 @@ const deserializeAws_restXmlCreateTrafficPolicyCommandError = async (output, con
|
|
|
2969
2622
|
switch (errorCode) {
|
|
2970
2623
|
case "InvalidInput":
|
|
2971
2624
|
case "com.amazonaws.route53#InvalidInput":
|
|
2972
|
-
|
|
2973
|
-
...(await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context)),
|
|
2974
|
-
name: errorCode,
|
|
2975
|
-
$metadata: deserializeMetadata(output),
|
|
2976
|
-
};
|
|
2977
|
-
break;
|
|
2625
|
+
throw await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context);
|
|
2978
2626
|
case "InvalidTrafficPolicyDocument":
|
|
2979
2627
|
case "com.amazonaws.route53#InvalidTrafficPolicyDocument":
|
|
2980
|
-
|
|
2981
|
-
...(await deserializeAws_restXmlInvalidTrafficPolicyDocumentResponse(parsedOutput, context)),
|
|
2982
|
-
name: errorCode,
|
|
2983
|
-
$metadata: deserializeMetadata(output),
|
|
2984
|
-
};
|
|
2985
|
-
break;
|
|
2628
|
+
throw await deserializeAws_restXmlInvalidTrafficPolicyDocumentResponse(parsedOutput, context);
|
|
2986
2629
|
case "TooManyTrafficPolicies":
|
|
2987
2630
|
case "com.amazonaws.route53#TooManyTrafficPolicies":
|
|
2988
|
-
|
|
2989
|
-
...(await deserializeAws_restXmlTooManyTrafficPoliciesResponse(parsedOutput, context)),
|
|
2990
|
-
name: errorCode,
|
|
2991
|
-
$metadata: deserializeMetadata(output),
|
|
2992
|
-
};
|
|
2993
|
-
break;
|
|
2631
|
+
throw await deserializeAws_restXmlTooManyTrafficPoliciesResponse(parsedOutput, context);
|
|
2994
2632
|
case "TrafficPolicyAlreadyExists":
|
|
2995
2633
|
case "com.amazonaws.route53#TrafficPolicyAlreadyExists":
|
|
2996
|
-
|
|
2997
|
-
...(await deserializeAws_restXmlTrafficPolicyAlreadyExistsResponse(parsedOutput, context)),
|
|
2998
|
-
name: errorCode,
|
|
2999
|
-
$metadata: deserializeMetadata(output),
|
|
3000
|
-
};
|
|
3001
|
-
break;
|
|
2634
|
+
throw await deserializeAws_restXmlTrafficPolicyAlreadyExistsResponse(parsedOutput, context);
|
|
3002
2635
|
default:
|
|
3003
2636
|
const parsedBody = parsedOutput.body;
|
|
3004
|
-
|
|
3005
|
-
|
|
3006
|
-
...parsedBody.Error,
|
|
3007
|
-
name: `${errorCode}`,
|
|
3008
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
2637
|
+
response = new Route53ServiceException_1.Route53ServiceException({
|
|
2638
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3009
2639
|
$fault: "client",
|
|
3010
2640
|
$metadata: deserializeMetadata(output),
|
|
3011
|
-
};
|
|
2641
|
+
});
|
|
2642
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
3012
2643
|
}
|
|
3013
|
-
const message = response.message || response.Message || errorCode;
|
|
3014
|
-
response.message = message;
|
|
3015
|
-
delete response.Message;
|
|
3016
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3017
2644
|
};
|
|
3018
2645
|
const deserializeAws_restXmlCreateTrafficPolicyInstanceCommand = async (output, context) => {
|
|
3019
2646
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
@@ -3045,59 +2672,28 @@ const deserializeAws_restXmlCreateTrafficPolicyInstanceCommandError = async (out
|
|
|
3045
2672
|
switch (errorCode) {
|
|
3046
2673
|
case "InvalidInput":
|
|
3047
2674
|
case "com.amazonaws.route53#InvalidInput":
|
|
3048
|
-
|
|
3049
|
-
...(await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context)),
|
|
3050
|
-
name: errorCode,
|
|
3051
|
-
$metadata: deserializeMetadata(output),
|
|
3052
|
-
};
|
|
3053
|
-
break;
|
|
2675
|
+
throw await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context);
|
|
3054
2676
|
case "NoSuchHostedZone":
|
|
3055
2677
|
case "com.amazonaws.route53#NoSuchHostedZone":
|
|
3056
|
-
|
|
3057
|
-
...(await deserializeAws_restXmlNoSuchHostedZoneResponse(parsedOutput, context)),
|
|
3058
|
-
name: errorCode,
|
|
3059
|
-
$metadata: deserializeMetadata(output),
|
|
3060
|
-
};
|
|
3061
|
-
break;
|
|
2678
|
+
throw await deserializeAws_restXmlNoSuchHostedZoneResponse(parsedOutput, context);
|
|
3062
2679
|
case "NoSuchTrafficPolicy":
|
|
3063
2680
|
case "com.amazonaws.route53#NoSuchTrafficPolicy":
|
|
3064
|
-
|
|
3065
|
-
...(await deserializeAws_restXmlNoSuchTrafficPolicyResponse(parsedOutput, context)),
|
|
3066
|
-
name: errorCode,
|
|
3067
|
-
$metadata: deserializeMetadata(output),
|
|
3068
|
-
};
|
|
3069
|
-
break;
|
|
2681
|
+
throw await deserializeAws_restXmlNoSuchTrafficPolicyResponse(parsedOutput, context);
|
|
3070
2682
|
case "TooManyTrafficPolicyInstances":
|
|
3071
2683
|
case "com.amazonaws.route53#TooManyTrafficPolicyInstances":
|
|
3072
|
-
|
|
3073
|
-
...(await deserializeAws_restXmlTooManyTrafficPolicyInstancesResponse(parsedOutput, context)),
|
|
3074
|
-
name: errorCode,
|
|
3075
|
-
$metadata: deserializeMetadata(output),
|
|
3076
|
-
};
|
|
3077
|
-
break;
|
|
2684
|
+
throw await deserializeAws_restXmlTooManyTrafficPolicyInstancesResponse(parsedOutput, context);
|
|
3078
2685
|
case "TrafficPolicyInstanceAlreadyExists":
|
|
3079
2686
|
case "com.amazonaws.route53#TrafficPolicyInstanceAlreadyExists":
|
|
3080
|
-
|
|
3081
|
-
...(await deserializeAws_restXmlTrafficPolicyInstanceAlreadyExistsResponse(parsedOutput, context)),
|
|
3082
|
-
name: errorCode,
|
|
3083
|
-
$metadata: deserializeMetadata(output),
|
|
3084
|
-
};
|
|
3085
|
-
break;
|
|
2687
|
+
throw await deserializeAws_restXmlTrafficPolicyInstanceAlreadyExistsResponse(parsedOutput, context);
|
|
3086
2688
|
default:
|
|
3087
2689
|
const parsedBody = parsedOutput.body;
|
|
3088
|
-
|
|
3089
|
-
|
|
3090
|
-
...parsedBody.Error,
|
|
3091
|
-
name: `${errorCode}`,
|
|
3092
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
2690
|
+
response = new Route53ServiceException_1.Route53ServiceException({
|
|
2691
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3093
2692
|
$fault: "client",
|
|
3094
2693
|
$metadata: deserializeMetadata(output),
|
|
3095
|
-
};
|
|
2694
|
+
});
|
|
2695
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
3096
2696
|
}
|
|
3097
|
-
const message = response.message || response.Message || errorCode;
|
|
3098
|
-
response.message = message;
|
|
3099
|
-
delete response.Message;
|
|
3100
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3101
2697
|
};
|
|
3102
2698
|
const deserializeAws_restXmlCreateTrafficPolicyVersionCommand = async (output, context) => {
|
|
3103
2699
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
@@ -3129,59 +2725,28 @@ const deserializeAws_restXmlCreateTrafficPolicyVersionCommandError = async (outp
|
|
|
3129
2725
|
switch (errorCode) {
|
|
3130
2726
|
case "ConcurrentModification":
|
|
3131
2727
|
case "com.amazonaws.route53#ConcurrentModification":
|
|
3132
|
-
|
|
3133
|
-
...(await deserializeAws_restXmlConcurrentModificationResponse(parsedOutput, context)),
|
|
3134
|
-
name: errorCode,
|
|
3135
|
-
$metadata: deserializeMetadata(output),
|
|
3136
|
-
};
|
|
3137
|
-
break;
|
|
2728
|
+
throw await deserializeAws_restXmlConcurrentModificationResponse(parsedOutput, context);
|
|
3138
2729
|
case "InvalidInput":
|
|
3139
2730
|
case "com.amazonaws.route53#InvalidInput":
|
|
3140
|
-
|
|
3141
|
-
...(await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context)),
|
|
3142
|
-
name: errorCode,
|
|
3143
|
-
$metadata: deserializeMetadata(output),
|
|
3144
|
-
};
|
|
3145
|
-
break;
|
|
2731
|
+
throw await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context);
|
|
3146
2732
|
case "InvalidTrafficPolicyDocument":
|
|
3147
2733
|
case "com.amazonaws.route53#InvalidTrafficPolicyDocument":
|
|
3148
|
-
|
|
3149
|
-
...(await deserializeAws_restXmlInvalidTrafficPolicyDocumentResponse(parsedOutput, context)),
|
|
3150
|
-
name: errorCode,
|
|
3151
|
-
$metadata: deserializeMetadata(output),
|
|
3152
|
-
};
|
|
3153
|
-
break;
|
|
2734
|
+
throw await deserializeAws_restXmlInvalidTrafficPolicyDocumentResponse(parsedOutput, context);
|
|
3154
2735
|
case "NoSuchTrafficPolicy":
|
|
3155
2736
|
case "com.amazonaws.route53#NoSuchTrafficPolicy":
|
|
3156
|
-
|
|
3157
|
-
...(await deserializeAws_restXmlNoSuchTrafficPolicyResponse(parsedOutput, context)),
|
|
3158
|
-
name: errorCode,
|
|
3159
|
-
$metadata: deserializeMetadata(output),
|
|
3160
|
-
};
|
|
3161
|
-
break;
|
|
2737
|
+
throw await deserializeAws_restXmlNoSuchTrafficPolicyResponse(parsedOutput, context);
|
|
3162
2738
|
case "TooManyTrafficPolicyVersionsForCurrentPolicy":
|
|
3163
2739
|
case "com.amazonaws.route53#TooManyTrafficPolicyVersionsForCurrentPolicy":
|
|
3164
|
-
|
|
3165
|
-
...(await deserializeAws_restXmlTooManyTrafficPolicyVersionsForCurrentPolicyResponse(parsedOutput, context)),
|
|
3166
|
-
name: errorCode,
|
|
3167
|
-
$metadata: deserializeMetadata(output),
|
|
3168
|
-
};
|
|
3169
|
-
break;
|
|
2740
|
+
throw await deserializeAws_restXmlTooManyTrafficPolicyVersionsForCurrentPolicyResponse(parsedOutput, context);
|
|
3170
2741
|
default:
|
|
3171
2742
|
const parsedBody = parsedOutput.body;
|
|
3172
|
-
|
|
3173
|
-
|
|
3174
|
-
...parsedBody.Error,
|
|
3175
|
-
name: `${errorCode}`,
|
|
3176
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
2743
|
+
response = new Route53ServiceException_1.Route53ServiceException({
|
|
2744
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3177
2745
|
$fault: "client",
|
|
3178
2746
|
$metadata: deserializeMetadata(output),
|
|
3179
|
-
};
|
|
2747
|
+
});
|
|
2748
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
3180
2749
|
}
|
|
3181
|
-
const message = response.message || response.Message || errorCode;
|
|
3182
|
-
response.message = message;
|
|
3183
|
-
delete response.Message;
|
|
3184
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3185
2750
|
};
|
|
3186
2751
|
const deserializeAws_restXmlCreateVPCAssociationAuthorizationCommand = async (output, context) => {
|
|
3187
2752
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -3213,59 +2778,28 @@ const deserializeAws_restXmlCreateVPCAssociationAuthorizationCommandError = asyn
|
|
|
3213
2778
|
switch (errorCode) {
|
|
3214
2779
|
case "ConcurrentModification":
|
|
3215
2780
|
case "com.amazonaws.route53#ConcurrentModification":
|
|
3216
|
-
|
|
3217
|
-
...(await deserializeAws_restXmlConcurrentModificationResponse(parsedOutput, context)),
|
|
3218
|
-
name: errorCode,
|
|
3219
|
-
$metadata: deserializeMetadata(output),
|
|
3220
|
-
};
|
|
3221
|
-
break;
|
|
2781
|
+
throw await deserializeAws_restXmlConcurrentModificationResponse(parsedOutput, context);
|
|
3222
2782
|
case "InvalidInput":
|
|
3223
2783
|
case "com.amazonaws.route53#InvalidInput":
|
|
3224
|
-
|
|
3225
|
-
...(await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context)),
|
|
3226
|
-
name: errorCode,
|
|
3227
|
-
$metadata: deserializeMetadata(output),
|
|
3228
|
-
};
|
|
3229
|
-
break;
|
|
2784
|
+
throw await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context);
|
|
3230
2785
|
case "InvalidVPCId":
|
|
3231
2786
|
case "com.amazonaws.route53#InvalidVPCId":
|
|
3232
|
-
|
|
3233
|
-
...(await deserializeAws_restXmlInvalidVPCIdResponse(parsedOutput, context)),
|
|
3234
|
-
name: errorCode,
|
|
3235
|
-
$metadata: deserializeMetadata(output),
|
|
3236
|
-
};
|
|
3237
|
-
break;
|
|
2787
|
+
throw await deserializeAws_restXmlInvalidVPCIdResponse(parsedOutput, context);
|
|
3238
2788
|
case "NoSuchHostedZone":
|
|
3239
2789
|
case "com.amazonaws.route53#NoSuchHostedZone":
|
|
3240
|
-
|
|
3241
|
-
...(await deserializeAws_restXmlNoSuchHostedZoneResponse(parsedOutput, context)),
|
|
3242
|
-
name: errorCode,
|
|
3243
|
-
$metadata: deserializeMetadata(output),
|
|
3244
|
-
};
|
|
3245
|
-
break;
|
|
2790
|
+
throw await deserializeAws_restXmlNoSuchHostedZoneResponse(parsedOutput, context);
|
|
3246
2791
|
case "TooManyVPCAssociationAuthorizations":
|
|
3247
2792
|
case "com.amazonaws.route53#TooManyVPCAssociationAuthorizations":
|
|
3248
|
-
|
|
3249
|
-
...(await deserializeAws_restXmlTooManyVPCAssociationAuthorizationsResponse(parsedOutput, context)),
|
|
3250
|
-
name: errorCode,
|
|
3251
|
-
$metadata: deserializeMetadata(output),
|
|
3252
|
-
};
|
|
3253
|
-
break;
|
|
2793
|
+
throw await deserializeAws_restXmlTooManyVPCAssociationAuthorizationsResponse(parsedOutput, context);
|
|
3254
2794
|
default:
|
|
3255
2795
|
const parsedBody = parsedOutput.body;
|
|
3256
|
-
|
|
3257
|
-
|
|
3258
|
-
...parsedBody.Error,
|
|
3259
|
-
name: `${errorCode}`,
|
|
3260
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
2796
|
+
response = new Route53ServiceException_1.Route53ServiceException({
|
|
2797
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3261
2798
|
$fault: "client",
|
|
3262
2799
|
$metadata: deserializeMetadata(output),
|
|
3263
|
-
};
|
|
2800
|
+
});
|
|
2801
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
3264
2802
|
}
|
|
3265
|
-
const message = response.message || response.Message || errorCode;
|
|
3266
|
-
response.message = message;
|
|
3267
|
-
delete response.Message;
|
|
3268
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3269
2803
|
};
|
|
3270
2804
|
const deserializeAws_restXmlDeactivateKeySigningKeyCommand = async (output, context) => {
|
|
3271
2805
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -3293,75 +2827,34 @@ const deserializeAws_restXmlDeactivateKeySigningKeyCommandError = async (output,
|
|
|
3293
2827
|
switch (errorCode) {
|
|
3294
2828
|
case "ConcurrentModification":
|
|
3295
2829
|
case "com.amazonaws.route53#ConcurrentModification":
|
|
3296
|
-
|
|
3297
|
-
...(await deserializeAws_restXmlConcurrentModificationResponse(parsedOutput, context)),
|
|
3298
|
-
name: errorCode,
|
|
3299
|
-
$metadata: deserializeMetadata(output),
|
|
3300
|
-
};
|
|
3301
|
-
break;
|
|
2830
|
+
throw await deserializeAws_restXmlConcurrentModificationResponse(parsedOutput, context);
|
|
3302
2831
|
case "InvalidInput":
|
|
3303
2832
|
case "com.amazonaws.route53#InvalidInput":
|
|
3304
|
-
|
|
3305
|
-
...(await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context)),
|
|
3306
|
-
name: errorCode,
|
|
3307
|
-
$metadata: deserializeMetadata(output),
|
|
3308
|
-
};
|
|
3309
|
-
break;
|
|
2833
|
+
throw await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context);
|
|
3310
2834
|
case "InvalidKeySigningKeyStatus":
|
|
3311
2835
|
case "com.amazonaws.route53#InvalidKeySigningKeyStatus":
|
|
3312
|
-
|
|
3313
|
-
...(await deserializeAws_restXmlInvalidKeySigningKeyStatusResponse(parsedOutput, context)),
|
|
3314
|
-
name: errorCode,
|
|
3315
|
-
$metadata: deserializeMetadata(output),
|
|
3316
|
-
};
|
|
3317
|
-
break;
|
|
2836
|
+
throw await deserializeAws_restXmlInvalidKeySigningKeyStatusResponse(parsedOutput, context);
|
|
3318
2837
|
case "InvalidSigningStatus":
|
|
3319
2838
|
case "com.amazonaws.route53#InvalidSigningStatus":
|
|
3320
|
-
|
|
3321
|
-
...(await deserializeAws_restXmlInvalidSigningStatusResponse(parsedOutput, context)),
|
|
3322
|
-
name: errorCode,
|
|
3323
|
-
$metadata: deserializeMetadata(output),
|
|
3324
|
-
};
|
|
3325
|
-
break;
|
|
2839
|
+
throw await deserializeAws_restXmlInvalidSigningStatusResponse(parsedOutput, context);
|
|
3326
2840
|
case "KeySigningKeyInParentDSRecord":
|
|
3327
2841
|
case "com.amazonaws.route53#KeySigningKeyInParentDSRecord":
|
|
3328
|
-
|
|
3329
|
-
...(await deserializeAws_restXmlKeySigningKeyInParentDSRecordResponse(parsedOutput, context)),
|
|
3330
|
-
name: errorCode,
|
|
3331
|
-
$metadata: deserializeMetadata(output),
|
|
3332
|
-
};
|
|
3333
|
-
break;
|
|
2842
|
+
throw await deserializeAws_restXmlKeySigningKeyInParentDSRecordResponse(parsedOutput, context);
|
|
3334
2843
|
case "KeySigningKeyInUse":
|
|
3335
2844
|
case "com.amazonaws.route53#KeySigningKeyInUse":
|
|
3336
|
-
|
|
3337
|
-
...(await deserializeAws_restXmlKeySigningKeyInUseResponse(parsedOutput, context)),
|
|
3338
|
-
name: errorCode,
|
|
3339
|
-
$metadata: deserializeMetadata(output),
|
|
3340
|
-
};
|
|
3341
|
-
break;
|
|
2845
|
+
throw await deserializeAws_restXmlKeySigningKeyInUseResponse(parsedOutput, context);
|
|
3342
2846
|
case "NoSuchKeySigningKey":
|
|
3343
2847
|
case "com.amazonaws.route53#NoSuchKeySigningKey":
|
|
3344
|
-
|
|
3345
|
-
...(await deserializeAws_restXmlNoSuchKeySigningKeyResponse(parsedOutput, context)),
|
|
3346
|
-
name: errorCode,
|
|
3347
|
-
$metadata: deserializeMetadata(output),
|
|
3348
|
-
};
|
|
3349
|
-
break;
|
|
2848
|
+
throw await deserializeAws_restXmlNoSuchKeySigningKeyResponse(parsedOutput, context);
|
|
3350
2849
|
default:
|
|
3351
2850
|
const parsedBody = parsedOutput.body;
|
|
3352
|
-
|
|
3353
|
-
|
|
3354
|
-
...parsedBody.Error,
|
|
3355
|
-
name: `${errorCode}`,
|
|
3356
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
2851
|
+
response = new Route53ServiceException_1.Route53ServiceException({
|
|
2852
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3357
2853
|
$fault: "client",
|
|
3358
2854
|
$metadata: deserializeMetadata(output),
|
|
3359
|
-
};
|
|
2855
|
+
});
|
|
2856
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
3360
2857
|
}
|
|
3361
|
-
const message = response.message || response.Message || errorCode;
|
|
3362
|
-
response.message = message;
|
|
3363
|
-
delete response.Message;
|
|
3364
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3365
2858
|
};
|
|
3366
2859
|
const deserializeAws_restXmlDeleteHealthCheckCommand = async (output, context) => {
|
|
3367
2860
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -3385,43 +2878,22 @@ const deserializeAws_restXmlDeleteHealthCheckCommandError = async (output, conte
|
|
|
3385
2878
|
switch (errorCode) {
|
|
3386
2879
|
case "HealthCheckInUse":
|
|
3387
2880
|
case "com.amazonaws.route53#HealthCheckInUse":
|
|
3388
|
-
|
|
3389
|
-
...(await deserializeAws_restXmlHealthCheckInUseResponse(parsedOutput, context)),
|
|
3390
|
-
name: errorCode,
|
|
3391
|
-
$metadata: deserializeMetadata(output),
|
|
3392
|
-
};
|
|
3393
|
-
break;
|
|
2881
|
+
throw await deserializeAws_restXmlHealthCheckInUseResponse(parsedOutput, context);
|
|
3394
2882
|
case "InvalidInput":
|
|
3395
2883
|
case "com.amazonaws.route53#InvalidInput":
|
|
3396
|
-
|
|
3397
|
-
...(await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context)),
|
|
3398
|
-
name: errorCode,
|
|
3399
|
-
$metadata: deserializeMetadata(output),
|
|
3400
|
-
};
|
|
3401
|
-
break;
|
|
2884
|
+
throw await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context);
|
|
3402
2885
|
case "NoSuchHealthCheck":
|
|
3403
2886
|
case "com.amazonaws.route53#NoSuchHealthCheck":
|
|
3404
|
-
|
|
3405
|
-
...(await deserializeAws_restXmlNoSuchHealthCheckResponse(parsedOutput, context)),
|
|
3406
|
-
name: errorCode,
|
|
3407
|
-
$metadata: deserializeMetadata(output),
|
|
3408
|
-
};
|
|
3409
|
-
break;
|
|
2887
|
+
throw await deserializeAws_restXmlNoSuchHealthCheckResponse(parsedOutput, context);
|
|
3410
2888
|
default:
|
|
3411
2889
|
const parsedBody = parsedOutput.body;
|
|
3412
|
-
|
|
3413
|
-
|
|
3414
|
-
...parsedBody.Error,
|
|
3415
|
-
name: `${errorCode}`,
|
|
3416
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
2890
|
+
response = new Route53ServiceException_1.Route53ServiceException({
|
|
2891
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3417
2892
|
$fault: "client",
|
|
3418
2893
|
$metadata: deserializeMetadata(output),
|
|
3419
|
-
};
|
|
2894
|
+
});
|
|
2895
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
3420
2896
|
}
|
|
3421
|
-
const message = response.message || response.Message || errorCode;
|
|
3422
|
-
response.message = message;
|
|
3423
|
-
delete response.Message;
|
|
3424
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3425
2897
|
};
|
|
3426
2898
|
const deserializeAws_restXmlDeleteHostedZoneCommand = async (output, context) => {
|
|
3427
2899
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -3449,59 +2921,28 @@ const deserializeAws_restXmlDeleteHostedZoneCommandError = async (output, contex
|
|
|
3449
2921
|
switch (errorCode) {
|
|
3450
2922
|
case "HostedZoneNotEmpty":
|
|
3451
2923
|
case "com.amazonaws.route53#HostedZoneNotEmpty":
|
|
3452
|
-
|
|
3453
|
-
...(await deserializeAws_restXmlHostedZoneNotEmptyResponse(parsedOutput, context)),
|
|
3454
|
-
name: errorCode,
|
|
3455
|
-
$metadata: deserializeMetadata(output),
|
|
3456
|
-
};
|
|
3457
|
-
break;
|
|
2924
|
+
throw await deserializeAws_restXmlHostedZoneNotEmptyResponse(parsedOutput, context);
|
|
3458
2925
|
case "InvalidDomainName":
|
|
3459
2926
|
case "com.amazonaws.route53#InvalidDomainName":
|
|
3460
|
-
|
|
3461
|
-
...(await deserializeAws_restXmlInvalidDomainNameResponse(parsedOutput, context)),
|
|
3462
|
-
name: errorCode,
|
|
3463
|
-
$metadata: deserializeMetadata(output),
|
|
3464
|
-
};
|
|
3465
|
-
break;
|
|
2927
|
+
throw await deserializeAws_restXmlInvalidDomainNameResponse(parsedOutput, context);
|
|
3466
2928
|
case "InvalidInput":
|
|
3467
2929
|
case "com.amazonaws.route53#InvalidInput":
|
|
3468
|
-
|
|
3469
|
-
...(await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context)),
|
|
3470
|
-
name: errorCode,
|
|
3471
|
-
$metadata: deserializeMetadata(output),
|
|
3472
|
-
};
|
|
3473
|
-
break;
|
|
2930
|
+
throw await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context);
|
|
3474
2931
|
case "NoSuchHostedZone":
|
|
3475
2932
|
case "com.amazonaws.route53#NoSuchHostedZone":
|
|
3476
|
-
|
|
3477
|
-
...(await deserializeAws_restXmlNoSuchHostedZoneResponse(parsedOutput, context)),
|
|
3478
|
-
name: errorCode,
|
|
3479
|
-
$metadata: deserializeMetadata(output),
|
|
3480
|
-
};
|
|
3481
|
-
break;
|
|
2933
|
+
throw await deserializeAws_restXmlNoSuchHostedZoneResponse(parsedOutput, context);
|
|
3482
2934
|
case "PriorRequestNotComplete":
|
|
3483
2935
|
case "com.amazonaws.route53#PriorRequestNotComplete":
|
|
3484
|
-
|
|
3485
|
-
...(await deserializeAws_restXmlPriorRequestNotCompleteResponse(parsedOutput, context)),
|
|
3486
|
-
name: errorCode,
|
|
3487
|
-
$metadata: deserializeMetadata(output),
|
|
3488
|
-
};
|
|
3489
|
-
break;
|
|
2936
|
+
throw await deserializeAws_restXmlPriorRequestNotCompleteResponse(parsedOutput, context);
|
|
3490
2937
|
default:
|
|
3491
2938
|
const parsedBody = parsedOutput.body;
|
|
3492
|
-
|
|
3493
|
-
|
|
3494
|
-
...parsedBody.Error,
|
|
3495
|
-
name: `${errorCode}`,
|
|
3496
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
2939
|
+
response = new Route53ServiceException_1.Route53ServiceException({
|
|
2940
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3497
2941
|
$fault: "client",
|
|
3498
2942
|
$metadata: deserializeMetadata(output),
|
|
3499
|
-
};
|
|
2943
|
+
});
|
|
2944
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
3500
2945
|
}
|
|
3501
|
-
const message = response.message || response.Message || errorCode;
|
|
3502
|
-
response.message = message;
|
|
3503
|
-
delete response.Message;
|
|
3504
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3505
2946
|
};
|
|
3506
2947
|
const deserializeAws_restXmlDeleteKeySigningKeyCommand = async (output, context) => {
|
|
3507
2948
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -3529,67 +2970,31 @@ const deserializeAws_restXmlDeleteKeySigningKeyCommandError = async (output, con
|
|
|
3529
2970
|
switch (errorCode) {
|
|
3530
2971
|
case "ConcurrentModification":
|
|
3531
2972
|
case "com.amazonaws.route53#ConcurrentModification":
|
|
3532
|
-
|
|
3533
|
-
...(await deserializeAws_restXmlConcurrentModificationResponse(parsedOutput, context)),
|
|
3534
|
-
name: errorCode,
|
|
3535
|
-
$metadata: deserializeMetadata(output),
|
|
3536
|
-
};
|
|
3537
|
-
break;
|
|
2973
|
+
throw await deserializeAws_restXmlConcurrentModificationResponse(parsedOutput, context);
|
|
3538
2974
|
case "InvalidInput":
|
|
3539
2975
|
case "com.amazonaws.route53#InvalidInput":
|
|
3540
|
-
|
|
3541
|
-
...(await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context)),
|
|
3542
|
-
name: errorCode,
|
|
3543
|
-
$metadata: deserializeMetadata(output),
|
|
3544
|
-
};
|
|
3545
|
-
break;
|
|
2976
|
+
throw await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context);
|
|
3546
2977
|
case "InvalidKeySigningKeyStatus":
|
|
3547
2978
|
case "com.amazonaws.route53#InvalidKeySigningKeyStatus":
|
|
3548
|
-
|
|
3549
|
-
...(await deserializeAws_restXmlInvalidKeySigningKeyStatusResponse(parsedOutput, context)),
|
|
3550
|
-
name: errorCode,
|
|
3551
|
-
$metadata: deserializeMetadata(output),
|
|
3552
|
-
};
|
|
3553
|
-
break;
|
|
2979
|
+
throw await deserializeAws_restXmlInvalidKeySigningKeyStatusResponse(parsedOutput, context);
|
|
3554
2980
|
case "InvalidKMSArn":
|
|
3555
2981
|
case "com.amazonaws.route53#InvalidKMSArn":
|
|
3556
|
-
|
|
3557
|
-
...(await deserializeAws_restXmlInvalidKMSArnResponse(parsedOutput, context)),
|
|
3558
|
-
name: errorCode,
|
|
3559
|
-
$metadata: deserializeMetadata(output),
|
|
3560
|
-
};
|
|
3561
|
-
break;
|
|
2982
|
+
throw await deserializeAws_restXmlInvalidKMSArnResponse(parsedOutput, context);
|
|
3562
2983
|
case "InvalidSigningStatus":
|
|
3563
2984
|
case "com.amazonaws.route53#InvalidSigningStatus":
|
|
3564
|
-
|
|
3565
|
-
...(await deserializeAws_restXmlInvalidSigningStatusResponse(parsedOutput, context)),
|
|
3566
|
-
name: errorCode,
|
|
3567
|
-
$metadata: deserializeMetadata(output),
|
|
3568
|
-
};
|
|
3569
|
-
break;
|
|
2985
|
+
throw await deserializeAws_restXmlInvalidSigningStatusResponse(parsedOutput, context);
|
|
3570
2986
|
case "NoSuchKeySigningKey":
|
|
3571
2987
|
case "com.amazonaws.route53#NoSuchKeySigningKey":
|
|
3572
|
-
|
|
3573
|
-
...(await deserializeAws_restXmlNoSuchKeySigningKeyResponse(parsedOutput, context)),
|
|
3574
|
-
name: errorCode,
|
|
3575
|
-
$metadata: deserializeMetadata(output),
|
|
3576
|
-
};
|
|
3577
|
-
break;
|
|
2988
|
+
throw await deserializeAws_restXmlNoSuchKeySigningKeyResponse(parsedOutput, context);
|
|
3578
2989
|
default:
|
|
3579
2990
|
const parsedBody = parsedOutput.body;
|
|
3580
|
-
|
|
3581
|
-
|
|
3582
|
-
...parsedBody.Error,
|
|
3583
|
-
name: `${errorCode}`,
|
|
3584
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
2991
|
+
response = new Route53ServiceException_1.Route53ServiceException({
|
|
2992
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3585
2993
|
$fault: "client",
|
|
3586
2994
|
$metadata: deserializeMetadata(output),
|
|
3587
|
-
};
|
|
2995
|
+
});
|
|
2996
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
3588
2997
|
}
|
|
3589
|
-
const message = response.message || response.Message || errorCode;
|
|
3590
|
-
response.message = message;
|
|
3591
|
-
delete response.Message;
|
|
3592
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3593
2998
|
};
|
|
3594
2999
|
const deserializeAws_restXmlDeleteQueryLoggingConfigCommand = async (output, context) => {
|
|
3595
3000
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -3613,43 +3018,22 @@ const deserializeAws_restXmlDeleteQueryLoggingConfigCommandError = async (output
|
|
|
3613
3018
|
switch (errorCode) {
|
|
3614
3019
|
case "ConcurrentModification":
|
|
3615
3020
|
case "com.amazonaws.route53#ConcurrentModification":
|
|
3616
|
-
|
|
3617
|
-
...(await deserializeAws_restXmlConcurrentModificationResponse(parsedOutput, context)),
|
|
3618
|
-
name: errorCode,
|
|
3619
|
-
$metadata: deserializeMetadata(output),
|
|
3620
|
-
};
|
|
3621
|
-
break;
|
|
3021
|
+
throw await deserializeAws_restXmlConcurrentModificationResponse(parsedOutput, context);
|
|
3622
3022
|
case "InvalidInput":
|
|
3623
3023
|
case "com.amazonaws.route53#InvalidInput":
|
|
3624
|
-
|
|
3625
|
-
...(await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context)),
|
|
3626
|
-
name: errorCode,
|
|
3627
|
-
$metadata: deserializeMetadata(output),
|
|
3628
|
-
};
|
|
3629
|
-
break;
|
|
3024
|
+
throw await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context);
|
|
3630
3025
|
case "NoSuchQueryLoggingConfig":
|
|
3631
3026
|
case "com.amazonaws.route53#NoSuchQueryLoggingConfig":
|
|
3632
|
-
|
|
3633
|
-
...(await deserializeAws_restXmlNoSuchQueryLoggingConfigResponse(parsedOutput, context)),
|
|
3634
|
-
name: errorCode,
|
|
3635
|
-
$metadata: deserializeMetadata(output),
|
|
3636
|
-
};
|
|
3637
|
-
break;
|
|
3027
|
+
throw await deserializeAws_restXmlNoSuchQueryLoggingConfigResponse(parsedOutput, context);
|
|
3638
3028
|
default:
|
|
3639
3029
|
const parsedBody = parsedOutput.body;
|
|
3640
|
-
|
|
3641
|
-
|
|
3642
|
-
...parsedBody.Error,
|
|
3643
|
-
name: `${errorCode}`,
|
|
3644
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
3030
|
+
response = new Route53ServiceException_1.Route53ServiceException({
|
|
3031
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3645
3032
|
$fault: "client",
|
|
3646
3033
|
$metadata: deserializeMetadata(output),
|
|
3647
|
-
};
|
|
3034
|
+
});
|
|
3035
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
3648
3036
|
}
|
|
3649
|
-
const message = response.message || response.Message || errorCode;
|
|
3650
|
-
response.message = message;
|
|
3651
|
-
delete response.Message;
|
|
3652
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3653
3037
|
};
|
|
3654
3038
|
const deserializeAws_restXmlDeleteReusableDelegationSetCommand = async (output, context) => {
|
|
3655
3039
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -3673,51 +3057,25 @@ const deserializeAws_restXmlDeleteReusableDelegationSetCommandError = async (out
|
|
|
3673
3057
|
switch (errorCode) {
|
|
3674
3058
|
case "DelegationSetInUse":
|
|
3675
3059
|
case "com.amazonaws.route53#DelegationSetInUse":
|
|
3676
|
-
|
|
3677
|
-
...(await deserializeAws_restXmlDelegationSetInUseResponse(parsedOutput, context)),
|
|
3678
|
-
name: errorCode,
|
|
3679
|
-
$metadata: deserializeMetadata(output),
|
|
3680
|
-
};
|
|
3681
|
-
break;
|
|
3060
|
+
throw await deserializeAws_restXmlDelegationSetInUseResponse(parsedOutput, context);
|
|
3682
3061
|
case "DelegationSetNotReusable":
|
|
3683
3062
|
case "com.amazonaws.route53#DelegationSetNotReusable":
|
|
3684
|
-
|
|
3685
|
-
...(await deserializeAws_restXmlDelegationSetNotReusableResponse(parsedOutput, context)),
|
|
3686
|
-
name: errorCode,
|
|
3687
|
-
$metadata: deserializeMetadata(output),
|
|
3688
|
-
};
|
|
3689
|
-
break;
|
|
3063
|
+
throw await deserializeAws_restXmlDelegationSetNotReusableResponse(parsedOutput, context);
|
|
3690
3064
|
case "InvalidInput":
|
|
3691
3065
|
case "com.amazonaws.route53#InvalidInput":
|
|
3692
|
-
|
|
3693
|
-
...(await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context)),
|
|
3694
|
-
name: errorCode,
|
|
3695
|
-
$metadata: deserializeMetadata(output),
|
|
3696
|
-
};
|
|
3697
|
-
break;
|
|
3066
|
+
throw await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context);
|
|
3698
3067
|
case "NoSuchDelegationSet":
|
|
3699
3068
|
case "com.amazonaws.route53#NoSuchDelegationSet":
|
|
3700
|
-
|
|
3701
|
-
...(await deserializeAws_restXmlNoSuchDelegationSetResponse(parsedOutput, context)),
|
|
3702
|
-
name: errorCode,
|
|
3703
|
-
$metadata: deserializeMetadata(output),
|
|
3704
|
-
};
|
|
3705
|
-
break;
|
|
3069
|
+
throw await deserializeAws_restXmlNoSuchDelegationSetResponse(parsedOutput, context);
|
|
3706
3070
|
default:
|
|
3707
3071
|
const parsedBody = parsedOutput.body;
|
|
3708
|
-
|
|
3709
|
-
|
|
3710
|
-
...parsedBody.Error,
|
|
3711
|
-
name: `${errorCode}`,
|
|
3712
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
3072
|
+
response = new Route53ServiceException_1.Route53ServiceException({
|
|
3073
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3713
3074
|
$fault: "client",
|
|
3714
3075
|
$metadata: deserializeMetadata(output),
|
|
3715
|
-
};
|
|
3076
|
+
});
|
|
3077
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
3716
3078
|
}
|
|
3717
|
-
const message = response.message || response.Message || errorCode;
|
|
3718
|
-
response.message = message;
|
|
3719
|
-
delete response.Message;
|
|
3720
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3721
3079
|
};
|
|
3722
3080
|
const deserializeAws_restXmlDeleteTrafficPolicyCommand = async (output, context) => {
|
|
3723
3081
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -3741,51 +3099,25 @@ const deserializeAws_restXmlDeleteTrafficPolicyCommandError = async (output, con
|
|
|
3741
3099
|
switch (errorCode) {
|
|
3742
3100
|
case "ConcurrentModification":
|
|
3743
3101
|
case "com.amazonaws.route53#ConcurrentModification":
|
|
3744
|
-
|
|
3745
|
-
...(await deserializeAws_restXmlConcurrentModificationResponse(parsedOutput, context)),
|
|
3746
|
-
name: errorCode,
|
|
3747
|
-
$metadata: deserializeMetadata(output),
|
|
3748
|
-
};
|
|
3749
|
-
break;
|
|
3102
|
+
throw await deserializeAws_restXmlConcurrentModificationResponse(parsedOutput, context);
|
|
3750
3103
|
case "InvalidInput":
|
|
3751
3104
|
case "com.amazonaws.route53#InvalidInput":
|
|
3752
|
-
|
|
3753
|
-
...(await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context)),
|
|
3754
|
-
name: errorCode,
|
|
3755
|
-
$metadata: deserializeMetadata(output),
|
|
3756
|
-
};
|
|
3757
|
-
break;
|
|
3105
|
+
throw await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context);
|
|
3758
3106
|
case "NoSuchTrafficPolicy":
|
|
3759
3107
|
case "com.amazonaws.route53#NoSuchTrafficPolicy":
|
|
3760
|
-
|
|
3761
|
-
...(await deserializeAws_restXmlNoSuchTrafficPolicyResponse(parsedOutput, context)),
|
|
3762
|
-
name: errorCode,
|
|
3763
|
-
$metadata: deserializeMetadata(output),
|
|
3764
|
-
};
|
|
3765
|
-
break;
|
|
3108
|
+
throw await deserializeAws_restXmlNoSuchTrafficPolicyResponse(parsedOutput, context);
|
|
3766
3109
|
case "TrafficPolicyInUse":
|
|
3767
3110
|
case "com.amazonaws.route53#TrafficPolicyInUse":
|
|
3768
|
-
|
|
3769
|
-
...(await deserializeAws_restXmlTrafficPolicyInUseResponse(parsedOutput, context)),
|
|
3770
|
-
name: errorCode,
|
|
3771
|
-
$metadata: deserializeMetadata(output),
|
|
3772
|
-
};
|
|
3773
|
-
break;
|
|
3111
|
+
throw await deserializeAws_restXmlTrafficPolicyInUseResponse(parsedOutput, context);
|
|
3774
3112
|
default:
|
|
3775
3113
|
const parsedBody = parsedOutput.body;
|
|
3776
|
-
|
|
3777
|
-
|
|
3778
|
-
...parsedBody.Error,
|
|
3779
|
-
name: `${errorCode}`,
|
|
3780
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
3114
|
+
response = new Route53ServiceException_1.Route53ServiceException({
|
|
3115
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3781
3116
|
$fault: "client",
|
|
3782
3117
|
$metadata: deserializeMetadata(output),
|
|
3783
|
-
};
|
|
3118
|
+
});
|
|
3119
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
3784
3120
|
}
|
|
3785
|
-
const message = response.message || response.Message || errorCode;
|
|
3786
|
-
response.message = message;
|
|
3787
|
-
delete response.Message;
|
|
3788
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3789
3121
|
};
|
|
3790
3122
|
const deserializeAws_restXmlDeleteTrafficPolicyInstanceCommand = async (output, context) => {
|
|
3791
3123
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -3809,43 +3141,22 @@ const deserializeAws_restXmlDeleteTrafficPolicyInstanceCommandError = async (out
|
|
|
3809
3141
|
switch (errorCode) {
|
|
3810
3142
|
case "InvalidInput":
|
|
3811
3143
|
case "com.amazonaws.route53#InvalidInput":
|
|
3812
|
-
|
|
3813
|
-
...(await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context)),
|
|
3814
|
-
name: errorCode,
|
|
3815
|
-
$metadata: deserializeMetadata(output),
|
|
3816
|
-
};
|
|
3817
|
-
break;
|
|
3144
|
+
throw await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context);
|
|
3818
3145
|
case "NoSuchTrafficPolicyInstance":
|
|
3819
3146
|
case "com.amazonaws.route53#NoSuchTrafficPolicyInstance":
|
|
3820
|
-
|
|
3821
|
-
...(await deserializeAws_restXmlNoSuchTrafficPolicyInstanceResponse(parsedOutput, context)),
|
|
3822
|
-
name: errorCode,
|
|
3823
|
-
$metadata: deserializeMetadata(output),
|
|
3824
|
-
};
|
|
3825
|
-
break;
|
|
3147
|
+
throw await deserializeAws_restXmlNoSuchTrafficPolicyInstanceResponse(parsedOutput, context);
|
|
3826
3148
|
case "PriorRequestNotComplete":
|
|
3827
3149
|
case "com.amazonaws.route53#PriorRequestNotComplete":
|
|
3828
|
-
|
|
3829
|
-
...(await deserializeAws_restXmlPriorRequestNotCompleteResponse(parsedOutput, context)),
|
|
3830
|
-
name: errorCode,
|
|
3831
|
-
$metadata: deserializeMetadata(output),
|
|
3832
|
-
};
|
|
3833
|
-
break;
|
|
3150
|
+
throw await deserializeAws_restXmlPriorRequestNotCompleteResponse(parsedOutput, context);
|
|
3834
3151
|
default:
|
|
3835
3152
|
const parsedBody = parsedOutput.body;
|
|
3836
|
-
|
|
3837
|
-
|
|
3838
|
-
...parsedBody.Error,
|
|
3839
|
-
name: `${errorCode}`,
|
|
3840
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
3153
|
+
response = new Route53ServiceException_1.Route53ServiceException({
|
|
3154
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3841
3155
|
$fault: "client",
|
|
3842
3156
|
$metadata: deserializeMetadata(output),
|
|
3843
|
-
};
|
|
3157
|
+
});
|
|
3158
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
3844
3159
|
}
|
|
3845
|
-
const message = response.message || response.Message || errorCode;
|
|
3846
|
-
response.message = message;
|
|
3847
|
-
delete response.Message;
|
|
3848
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3849
3160
|
};
|
|
3850
3161
|
const deserializeAws_restXmlDeleteVPCAssociationAuthorizationCommand = async (output, context) => {
|
|
3851
3162
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -3869,59 +3180,28 @@ const deserializeAws_restXmlDeleteVPCAssociationAuthorizationCommandError = asyn
|
|
|
3869
3180
|
switch (errorCode) {
|
|
3870
3181
|
case "ConcurrentModification":
|
|
3871
3182
|
case "com.amazonaws.route53#ConcurrentModification":
|
|
3872
|
-
|
|
3873
|
-
...(await deserializeAws_restXmlConcurrentModificationResponse(parsedOutput, context)),
|
|
3874
|
-
name: errorCode,
|
|
3875
|
-
$metadata: deserializeMetadata(output),
|
|
3876
|
-
};
|
|
3877
|
-
break;
|
|
3183
|
+
throw await deserializeAws_restXmlConcurrentModificationResponse(parsedOutput, context);
|
|
3878
3184
|
case "InvalidInput":
|
|
3879
3185
|
case "com.amazonaws.route53#InvalidInput":
|
|
3880
|
-
|
|
3881
|
-
...(await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context)),
|
|
3882
|
-
name: errorCode,
|
|
3883
|
-
$metadata: deserializeMetadata(output),
|
|
3884
|
-
};
|
|
3885
|
-
break;
|
|
3186
|
+
throw await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context);
|
|
3886
3187
|
case "InvalidVPCId":
|
|
3887
3188
|
case "com.amazonaws.route53#InvalidVPCId":
|
|
3888
|
-
|
|
3889
|
-
...(await deserializeAws_restXmlInvalidVPCIdResponse(parsedOutput, context)),
|
|
3890
|
-
name: errorCode,
|
|
3891
|
-
$metadata: deserializeMetadata(output),
|
|
3892
|
-
};
|
|
3893
|
-
break;
|
|
3189
|
+
throw await deserializeAws_restXmlInvalidVPCIdResponse(parsedOutput, context);
|
|
3894
3190
|
case "NoSuchHostedZone":
|
|
3895
3191
|
case "com.amazonaws.route53#NoSuchHostedZone":
|
|
3896
|
-
|
|
3897
|
-
...(await deserializeAws_restXmlNoSuchHostedZoneResponse(parsedOutput, context)),
|
|
3898
|
-
name: errorCode,
|
|
3899
|
-
$metadata: deserializeMetadata(output),
|
|
3900
|
-
};
|
|
3901
|
-
break;
|
|
3192
|
+
throw await deserializeAws_restXmlNoSuchHostedZoneResponse(parsedOutput, context);
|
|
3902
3193
|
case "VPCAssociationAuthorizationNotFound":
|
|
3903
3194
|
case "com.amazonaws.route53#VPCAssociationAuthorizationNotFound":
|
|
3904
|
-
|
|
3905
|
-
...(await deserializeAws_restXmlVPCAssociationAuthorizationNotFoundResponse(parsedOutput, context)),
|
|
3906
|
-
name: errorCode,
|
|
3907
|
-
$metadata: deserializeMetadata(output),
|
|
3908
|
-
};
|
|
3909
|
-
break;
|
|
3195
|
+
throw await deserializeAws_restXmlVPCAssociationAuthorizationNotFoundResponse(parsedOutput, context);
|
|
3910
3196
|
default:
|
|
3911
3197
|
const parsedBody = parsedOutput.body;
|
|
3912
|
-
|
|
3913
|
-
|
|
3914
|
-
...parsedBody.Error,
|
|
3915
|
-
name: `${errorCode}`,
|
|
3916
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
3198
|
+
response = new Route53ServiceException_1.Route53ServiceException({
|
|
3199
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3917
3200
|
$fault: "client",
|
|
3918
3201
|
$metadata: deserializeMetadata(output),
|
|
3919
|
-
};
|
|
3202
|
+
});
|
|
3203
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
3920
3204
|
}
|
|
3921
|
-
const message = response.message || response.Message || errorCode;
|
|
3922
|
-
response.message = message;
|
|
3923
|
-
delete response.Message;
|
|
3924
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3925
3205
|
};
|
|
3926
3206
|
const deserializeAws_restXmlDisableHostedZoneDNSSECCommand = async (output, context) => {
|
|
3927
3207
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -3949,83 +3229,37 @@ const deserializeAws_restXmlDisableHostedZoneDNSSECCommandError = async (output,
|
|
|
3949
3229
|
switch (errorCode) {
|
|
3950
3230
|
case "ConcurrentModification":
|
|
3951
3231
|
case "com.amazonaws.route53#ConcurrentModification":
|
|
3952
|
-
|
|
3953
|
-
...(await deserializeAws_restXmlConcurrentModificationResponse(parsedOutput, context)),
|
|
3954
|
-
name: errorCode,
|
|
3955
|
-
$metadata: deserializeMetadata(output),
|
|
3956
|
-
};
|
|
3957
|
-
break;
|
|
3232
|
+
throw await deserializeAws_restXmlConcurrentModificationResponse(parsedOutput, context);
|
|
3958
3233
|
case "DNSSECNotFound":
|
|
3959
3234
|
case "com.amazonaws.route53#DNSSECNotFound":
|
|
3960
|
-
|
|
3961
|
-
...(await deserializeAws_restXmlDNSSECNotFoundResponse(parsedOutput, context)),
|
|
3962
|
-
name: errorCode,
|
|
3963
|
-
$metadata: deserializeMetadata(output),
|
|
3964
|
-
};
|
|
3965
|
-
break;
|
|
3235
|
+
throw await deserializeAws_restXmlDNSSECNotFoundResponse(parsedOutput, context);
|
|
3966
3236
|
case "InvalidArgument":
|
|
3967
3237
|
case "com.amazonaws.route53#InvalidArgument":
|
|
3968
|
-
|
|
3969
|
-
...(await deserializeAws_restXmlInvalidArgumentResponse(parsedOutput, context)),
|
|
3970
|
-
name: errorCode,
|
|
3971
|
-
$metadata: deserializeMetadata(output),
|
|
3972
|
-
};
|
|
3973
|
-
break;
|
|
3238
|
+
throw await deserializeAws_restXmlInvalidArgumentResponse(parsedOutput, context);
|
|
3974
3239
|
case "InvalidInput":
|
|
3975
3240
|
case "com.amazonaws.route53#InvalidInput":
|
|
3976
|
-
|
|
3977
|
-
...(await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context)),
|
|
3978
|
-
name: errorCode,
|
|
3979
|
-
$metadata: deserializeMetadata(output),
|
|
3980
|
-
};
|
|
3981
|
-
break;
|
|
3241
|
+
throw await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context);
|
|
3982
3242
|
case "InvalidKeySigningKeyStatus":
|
|
3983
3243
|
case "com.amazonaws.route53#InvalidKeySigningKeyStatus":
|
|
3984
|
-
|
|
3985
|
-
...(await deserializeAws_restXmlInvalidKeySigningKeyStatusResponse(parsedOutput, context)),
|
|
3986
|
-
name: errorCode,
|
|
3987
|
-
$metadata: deserializeMetadata(output),
|
|
3988
|
-
};
|
|
3989
|
-
break;
|
|
3244
|
+
throw await deserializeAws_restXmlInvalidKeySigningKeyStatusResponse(parsedOutput, context);
|
|
3990
3245
|
case "InvalidKMSArn":
|
|
3991
3246
|
case "com.amazonaws.route53#InvalidKMSArn":
|
|
3992
|
-
|
|
3993
|
-
...(await deserializeAws_restXmlInvalidKMSArnResponse(parsedOutput, context)),
|
|
3994
|
-
name: errorCode,
|
|
3995
|
-
$metadata: deserializeMetadata(output),
|
|
3996
|
-
};
|
|
3997
|
-
break;
|
|
3247
|
+
throw await deserializeAws_restXmlInvalidKMSArnResponse(parsedOutput, context);
|
|
3998
3248
|
case "KeySigningKeyInParentDSRecord":
|
|
3999
3249
|
case "com.amazonaws.route53#KeySigningKeyInParentDSRecord":
|
|
4000
|
-
|
|
4001
|
-
...(await deserializeAws_restXmlKeySigningKeyInParentDSRecordResponse(parsedOutput, context)),
|
|
4002
|
-
name: errorCode,
|
|
4003
|
-
$metadata: deserializeMetadata(output),
|
|
4004
|
-
};
|
|
4005
|
-
break;
|
|
3250
|
+
throw await deserializeAws_restXmlKeySigningKeyInParentDSRecordResponse(parsedOutput, context);
|
|
4006
3251
|
case "NoSuchHostedZone":
|
|
4007
3252
|
case "com.amazonaws.route53#NoSuchHostedZone":
|
|
4008
|
-
|
|
4009
|
-
...(await deserializeAws_restXmlNoSuchHostedZoneResponse(parsedOutput, context)),
|
|
4010
|
-
name: errorCode,
|
|
4011
|
-
$metadata: deserializeMetadata(output),
|
|
4012
|
-
};
|
|
4013
|
-
break;
|
|
3253
|
+
throw await deserializeAws_restXmlNoSuchHostedZoneResponse(parsedOutput, context);
|
|
4014
3254
|
default:
|
|
4015
3255
|
const parsedBody = parsedOutput.body;
|
|
4016
|
-
|
|
4017
|
-
|
|
4018
|
-
...parsedBody.Error,
|
|
4019
|
-
name: `${errorCode}`,
|
|
4020
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
3256
|
+
response = new Route53ServiceException_1.Route53ServiceException({
|
|
3257
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
4021
3258
|
$fault: "client",
|
|
4022
3259
|
$metadata: deserializeMetadata(output),
|
|
4023
|
-
};
|
|
3260
|
+
});
|
|
3261
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
4024
3262
|
}
|
|
4025
|
-
const message = response.message || response.Message || errorCode;
|
|
4026
|
-
response.message = message;
|
|
4027
|
-
delete response.Message;
|
|
4028
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
4029
3263
|
};
|
|
4030
3264
|
const deserializeAws_restXmlDisassociateVPCFromHostedZoneCommand = async (output, context) => {
|
|
4031
3265
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -4053,59 +3287,28 @@ const deserializeAws_restXmlDisassociateVPCFromHostedZoneCommandError = async (o
|
|
|
4053
3287
|
switch (errorCode) {
|
|
4054
3288
|
case "InvalidInput":
|
|
4055
3289
|
case "com.amazonaws.route53#InvalidInput":
|
|
4056
|
-
|
|
4057
|
-
...(await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context)),
|
|
4058
|
-
name: errorCode,
|
|
4059
|
-
$metadata: deserializeMetadata(output),
|
|
4060
|
-
};
|
|
4061
|
-
break;
|
|
3290
|
+
throw await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context);
|
|
4062
3291
|
case "InvalidVPCId":
|
|
4063
3292
|
case "com.amazonaws.route53#InvalidVPCId":
|
|
4064
|
-
|
|
4065
|
-
...(await deserializeAws_restXmlInvalidVPCIdResponse(parsedOutput, context)),
|
|
4066
|
-
name: errorCode,
|
|
4067
|
-
$metadata: deserializeMetadata(output),
|
|
4068
|
-
};
|
|
4069
|
-
break;
|
|
3293
|
+
throw await deserializeAws_restXmlInvalidVPCIdResponse(parsedOutput, context);
|
|
4070
3294
|
case "LastVPCAssociation":
|
|
4071
3295
|
case "com.amazonaws.route53#LastVPCAssociation":
|
|
4072
|
-
|
|
4073
|
-
...(await deserializeAws_restXmlLastVPCAssociationResponse(parsedOutput, context)),
|
|
4074
|
-
name: errorCode,
|
|
4075
|
-
$metadata: deserializeMetadata(output),
|
|
4076
|
-
};
|
|
4077
|
-
break;
|
|
3296
|
+
throw await deserializeAws_restXmlLastVPCAssociationResponse(parsedOutput, context);
|
|
4078
3297
|
case "NoSuchHostedZone":
|
|
4079
3298
|
case "com.amazonaws.route53#NoSuchHostedZone":
|
|
4080
|
-
|
|
4081
|
-
...(await deserializeAws_restXmlNoSuchHostedZoneResponse(parsedOutput, context)),
|
|
4082
|
-
name: errorCode,
|
|
4083
|
-
$metadata: deserializeMetadata(output),
|
|
4084
|
-
};
|
|
4085
|
-
break;
|
|
3299
|
+
throw await deserializeAws_restXmlNoSuchHostedZoneResponse(parsedOutput, context);
|
|
4086
3300
|
case "VPCAssociationNotFound":
|
|
4087
3301
|
case "com.amazonaws.route53#VPCAssociationNotFound":
|
|
4088
|
-
|
|
4089
|
-
...(await deserializeAws_restXmlVPCAssociationNotFoundResponse(parsedOutput, context)),
|
|
4090
|
-
name: errorCode,
|
|
4091
|
-
$metadata: deserializeMetadata(output),
|
|
4092
|
-
};
|
|
4093
|
-
break;
|
|
3302
|
+
throw await deserializeAws_restXmlVPCAssociationNotFoundResponse(parsedOutput, context);
|
|
4094
3303
|
default:
|
|
4095
3304
|
const parsedBody = parsedOutput.body;
|
|
4096
|
-
|
|
4097
|
-
|
|
4098
|
-
...parsedBody.Error,
|
|
4099
|
-
name: `${errorCode}`,
|
|
4100
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
3305
|
+
response = new Route53ServiceException_1.Route53ServiceException({
|
|
3306
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
4101
3307
|
$fault: "client",
|
|
4102
3308
|
$metadata: deserializeMetadata(output),
|
|
4103
|
-
};
|
|
3309
|
+
});
|
|
3310
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
4104
3311
|
}
|
|
4105
|
-
const message = response.message || response.Message || errorCode;
|
|
4106
|
-
response.message = message;
|
|
4107
|
-
delete response.Message;
|
|
4108
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
4109
3312
|
};
|
|
4110
3313
|
const deserializeAws_restXmlEnableHostedZoneDNSSECCommand = async (output, context) => {
|
|
4111
3314
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -4133,91 +3336,40 @@ const deserializeAws_restXmlEnableHostedZoneDNSSECCommandError = async (output,
|
|
|
4133
3336
|
switch (errorCode) {
|
|
4134
3337
|
case "ConcurrentModification":
|
|
4135
3338
|
case "com.amazonaws.route53#ConcurrentModification":
|
|
4136
|
-
|
|
4137
|
-
...(await deserializeAws_restXmlConcurrentModificationResponse(parsedOutput, context)),
|
|
4138
|
-
name: errorCode,
|
|
4139
|
-
$metadata: deserializeMetadata(output),
|
|
4140
|
-
};
|
|
4141
|
-
break;
|
|
3339
|
+
throw await deserializeAws_restXmlConcurrentModificationResponse(parsedOutput, context);
|
|
4142
3340
|
case "DNSSECNotFound":
|
|
4143
3341
|
case "com.amazonaws.route53#DNSSECNotFound":
|
|
4144
|
-
|
|
4145
|
-
...(await deserializeAws_restXmlDNSSECNotFoundResponse(parsedOutput, context)),
|
|
4146
|
-
name: errorCode,
|
|
4147
|
-
$metadata: deserializeMetadata(output),
|
|
4148
|
-
};
|
|
4149
|
-
break;
|
|
3342
|
+
throw await deserializeAws_restXmlDNSSECNotFoundResponse(parsedOutput, context);
|
|
4150
3343
|
case "HostedZonePartiallyDelegated":
|
|
4151
3344
|
case "com.amazonaws.route53#HostedZonePartiallyDelegated":
|
|
4152
|
-
|
|
4153
|
-
...(await deserializeAws_restXmlHostedZonePartiallyDelegatedResponse(parsedOutput, context)),
|
|
4154
|
-
name: errorCode,
|
|
4155
|
-
$metadata: deserializeMetadata(output),
|
|
4156
|
-
};
|
|
4157
|
-
break;
|
|
3345
|
+
throw await deserializeAws_restXmlHostedZonePartiallyDelegatedResponse(parsedOutput, context);
|
|
4158
3346
|
case "InvalidArgument":
|
|
4159
3347
|
case "com.amazonaws.route53#InvalidArgument":
|
|
4160
|
-
|
|
4161
|
-
...(await deserializeAws_restXmlInvalidArgumentResponse(parsedOutput, context)),
|
|
4162
|
-
name: errorCode,
|
|
4163
|
-
$metadata: deserializeMetadata(output),
|
|
4164
|
-
};
|
|
4165
|
-
break;
|
|
3348
|
+
throw await deserializeAws_restXmlInvalidArgumentResponse(parsedOutput, context);
|
|
4166
3349
|
case "InvalidInput":
|
|
4167
3350
|
case "com.amazonaws.route53#InvalidInput":
|
|
4168
|
-
|
|
4169
|
-
...(await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context)),
|
|
4170
|
-
name: errorCode,
|
|
4171
|
-
$metadata: deserializeMetadata(output),
|
|
4172
|
-
};
|
|
4173
|
-
break;
|
|
3351
|
+
throw await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context);
|
|
4174
3352
|
case "InvalidKeySigningKeyStatus":
|
|
4175
3353
|
case "com.amazonaws.route53#InvalidKeySigningKeyStatus":
|
|
4176
|
-
|
|
4177
|
-
...(await deserializeAws_restXmlInvalidKeySigningKeyStatusResponse(parsedOutput, context)),
|
|
4178
|
-
name: errorCode,
|
|
4179
|
-
$metadata: deserializeMetadata(output),
|
|
4180
|
-
};
|
|
4181
|
-
break;
|
|
3354
|
+
throw await deserializeAws_restXmlInvalidKeySigningKeyStatusResponse(parsedOutput, context);
|
|
4182
3355
|
case "InvalidKMSArn":
|
|
4183
3356
|
case "com.amazonaws.route53#InvalidKMSArn":
|
|
4184
|
-
|
|
4185
|
-
...(await deserializeAws_restXmlInvalidKMSArnResponse(parsedOutput, context)),
|
|
4186
|
-
name: errorCode,
|
|
4187
|
-
$metadata: deserializeMetadata(output),
|
|
4188
|
-
};
|
|
4189
|
-
break;
|
|
3357
|
+
throw await deserializeAws_restXmlInvalidKMSArnResponse(parsedOutput, context);
|
|
4190
3358
|
case "KeySigningKeyWithActiveStatusNotFound":
|
|
4191
3359
|
case "com.amazonaws.route53#KeySigningKeyWithActiveStatusNotFound":
|
|
4192
|
-
|
|
4193
|
-
...(await deserializeAws_restXmlKeySigningKeyWithActiveStatusNotFoundResponse(parsedOutput, context)),
|
|
4194
|
-
name: errorCode,
|
|
4195
|
-
$metadata: deserializeMetadata(output),
|
|
4196
|
-
};
|
|
4197
|
-
break;
|
|
3360
|
+
throw await deserializeAws_restXmlKeySigningKeyWithActiveStatusNotFoundResponse(parsedOutput, context);
|
|
4198
3361
|
case "NoSuchHostedZone":
|
|
4199
3362
|
case "com.amazonaws.route53#NoSuchHostedZone":
|
|
4200
|
-
|
|
4201
|
-
...(await deserializeAws_restXmlNoSuchHostedZoneResponse(parsedOutput, context)),
|
|
4202
|
-
name: errorCode,
|
|
4203
|
-
$metadata: deserializeMetadata(output),
|
|
4204
|
-
};
|
|
4205
|
-
break;
|
|
3363
|
+
throw await deserializeAws_restXmlNoSuchHostedZoneResponse(parsedOutput, context);
|
|
4206
3364
|
default:
|
|
4207
3365
|
const parsedBody = parsedOutput.body;
|
|
4208
|
-
|
|
4209
|
-
|
|
4210
|
-
...parsedBody.Error,
|
|
4211
|
-
name: `${errorCode}`,
|
|
4212
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
3366
|
+
response = new Route53ServiceException_1.Route53ServiceException({
|
|
3367
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
4213
3368
|
$fault: "client",
|
|
4214
3369
|
$metadata: deserializeMetadata(output),
|
|
4215
|
-
};
|
|
3370
|
+
});
|
|
3371
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
4216
3372
|
}
|
|
4217
|
-
const message = response.message || response.Message || errorCode;
|
|
4218
|
-
response.message = message;
|
|
4219
|
-
delete response.Message;
|
|
4220
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
4221
3373
|
};
|
|
4222
3374
|
const deserializeAws_restXmlGetAccountLimitCommand = async (output, context) => {
|
|
4223
3375
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -4249,27 +3401,16 @@ const deserializeAws_restXmlGetAccountLimitCommandError = async (output, context
|
|
|
4249
3401
|
switch (errorCode) {
|
|
4250
3402
|
case "InvalidInput":
|
|
4251
3403
|
case "com.amazonaws.route53#InvalidInput":
|
|
4252
|
-
|
|
4253
|
-
...(await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context)),
|
|
4254
|
-
name: errorCode,
|
|
4255
|
-
$metadata: deserializeMetadata(output),
|
|
4256
|
-
};
|
|
4257
|
-
break;
|
|
3404
|
+
throw await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context);
|
|
4258
3405
|
default:
|
|
4259
3406
|
const parsedBody = parsedOutput.body;
|
|
4260
|
-
|
|
4261
|
-
|
|
4262
|
-
...parsedBody.Error,
|
|
4263
|
-
name: `${errorCode}`,
|
|
4264
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
3407
|
+
response = new Route53ServiceException_1.Route53ServiceException({
|
|
3408
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
4265
3409
|
$fault: "client",
|
|
4266
3410
|
$metadata: deserializeMetadata(output),
|
|
4267
|
-
};
|
|
3411
|
+
});
|
|
3412
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
4268
3413
|
}
|
|
4269
|
-
const message = response.message || response.Message || errorCode;
|
|
4270
|
-
response.message = message;
|
|
4271
|
-
delete response.Message;
|
|
4272
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
4273
3414
|
};
|
|
4274
3415
|
const deserializeAws_restXmlGetChangeCommand = async (output, context) => {
|
|
4275
3416
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -4297,35 +3438,19 @@ const deserializeAws_restXmlGetChangeCommandError = async (output, context) => {
|
|
|
4297
3438
|
switch (errorCode) {
|
|
4298
3439
|
case "InvalidInput":
|
|
4299
3440
|
case "com.amazonaws.route53#InvalidInput":
|
|
4300
|
-
|
|
4301
|
-
...(await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context)),
|
|
4302
|
-
name: errorCode,
|
|
4303
|
-
$metadata: deserializeMetadata(output),
|
|
4304
|
-
};
|
|
4305
|
-
break;
|
|
3441
|
+
throw await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context);
|
|
4306
3442
|
case "NoSuchChange":
|
|
4307
3443
|
case "com.amazonaws.route53#NoSuchChange":
|
|
4308
|
-
|
|
4309
|
-
...(await deserializeAws_restXmlNoSuchChangeResponse(parsedOutput, context)),
|
|
4310
|
-
name: errorCode,
|
|
4311
|
-
$metadata: deserializeMetadata(output),
|
|
4312
|
-
};
|
|
4313
|
-
break;
|
|
3444
|
+
throw await deserializeAws_restXmlNoSuchChangeResponse(parsedOutput, context);
|
|
4314
3445
|
default:
|
|
4315
3446
|
const parsedBody = parsedOutput.body;
|
|
4316
|
-
|
|
4317
|
-
|
|
4318
|
-
...parsedBody.Error,
|
|
4319
|
-
name: `${errorCode}`,
|
|
4320
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
3447
|
+
response = new Route53ServiceException_1.Route53ServiceException({
|
|
3448
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
4321
3449
|
$fault: "client",
|
|
4322
3450
|
$metadata: deserializeMetadata(output),
|
|
4323
|
-
};
|
|
3451
|
+
});
|
|
3452
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
4324
3453
|
}
|
|
4325
|
-
const message = response.message || response.Message || errorCode;
|
|
4326
|
-
response.message = message;
|
|
4327
|
-
delete response.Message;
|
|
4328
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
4329
3454
|
};
|
|
4330
3455
|
const deserializeAws_restXmlGetCheckerIpRangesCommand = async (output, context) => {
|
|
4331
3456
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -4356,19 +3481,13 @@ const deserializeAws_restXmlGetCheckerIpRangesCommandError = async (output, cont
|
|
|
4356
3481
|
switch (errorCode) {
|
|
4357
3482
|
default:
|
|
4358
3483
|
const parsedBody = parsedOutput.body;
|
|
4359
|
-
|
|
4360
|
-
|
|
4361
|
-
...parsedBody.Error,
|
|
4362
|
-
name: `${errorCode}`,
|
|
4363
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
3484
|
+
response = new Route53ServiceException_1.Route53ServiceException({
|
|
3485
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
4364
3486
|
$fault: "client",
|
|
4365
3487
|
$metadata: deserializeMetadata(output),
|
|
4366
|
-
};
|
|
3488
|
+
});
|
|
3489
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
4367
3490
|
}
|
|
4368
|
-
const message = response.message || response.Message || errorCode;
|
|
4369
|
-
response.message = message;
|
|
4370
|
-
delete response.Message;
|
|
4371
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
4372
3491
|
};
|
|
4373
3492
|
const deserializeAws_restXmlGetDNSSECCommand = async (output, context) => {
|
|
4374
3493
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -4403,43 +3522,22 @@ const deserializeAws_restXmlGetDNSSECCommandError = async (output, context) => {
|
|
|
4403
3522
|
switch (errorCode) {
|
|
4404
3523
|
case "InvalidArgument":
|
|
4405
3524
|
case "com.amazonaws.route53#InvalidArgument":
|
|
4406
|
-
|
|
4407
|
-
...(await deserializeAws_restXmlInvalidArgumentResponse(parsedOutput, context)),
|
|
4408
|
-
name: errorCode,
|
|
4409
|
-
$metadata: deserializeMetadata(output),
|
|
4410
|
-
};
|
|
4411
|
-
break;
|
|
3525
|
+
throw await deserializeAws_restXmlInvalidArgumentResponse(parsedOutput, context);
|
|
4412
3526
|
case "InvalidInput":
|
|
4413
3527
|
case "com.amazonaws.route53#InvalidInput":
|
|
4414
|
-
|
|
4415
|
-
...(await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context)),
|
|
4416
|
-
name: errorCode,
|
|
4417
|
-
$metadata: deserializeMetadata(output),
|
|
4418
|
-
};
|
|
4419
|
-
break;
|
|
3528
|
+
throw await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context);
|
|
4420
3529
|
case "NoSuchHostedZone":
|
|
4421
3530
|
case "com.amazonaws.route53#NoSuchHostedZone":
|
|
4422
|
-
|
|
4423
|
-
...(await deserializeAws_restXmlNoSuchHostedZoneResponse(parsedOutput, context)),
|
|
4424
|
-
name: errorCode,
|
|
4425
|
-
$metadata: deserializeMetadata(output),
|
|
4426
|
-
};
|
|
4427
|
-
break;
|
|
3531
|
+
throw await deserializeAws_restXmlNoSuchHostedZoneResponse(parsedOutput, context);
|
|
4428
3532
|
default:
|
|
4429
3533
|
const parsedBody = parsedOutput.body;
|
|
4430
|
-
|
|
4431
|
-
|
|
4432
|
-
...parsedBody.Error,
|
|
4433
|
-
name: `${errorCode}`,
|
|
4434
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
3534
|
+
response = new Route53ServiceException_1.Route53ServiceException({
|
|
3535
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
4435
3536
|
$fault: "client",
|
|
4436
3537
|
$metadata: deserializeMetadata(output),
|
|
4437
|
-
};
|
|
3538
|
+
});
|
|
3539
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
4438
3540
|
}
|
|
4439
|
-
const message = response.message || response.Message || errorCode;
|
|
4440
|
-
response.message = message;
|
|
4441
|
-
delete response.Message;
|
|
4442
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
4443
3541
|
};
|
|
4444
3542
|
const deserializeAws_restXmlGetGeoLocationCommand = async (output, context) => {
|
|
4445
3543
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -4467,35 +3565,19 @@ const deserializeAws_restXmlGetGeoLocationCommandError = async (output, context)
|
|
|
4467
3565
|
switch (errorCode) {
|
|
4468
3566
|
case "InvalidInput":
|
|
4469
3567
|
case "com.amazonaws.route53#InvalidInput":
|
|
4470
|
-
|
|
4471
|
-
...(await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context)),
|
|
4472
|
-
name: errorCode,
|
|
4473
|
-
$metadata: deserializeMetadata(output),
|
|
4474
|
-
};
|
|
4475
|
-
break;
|
|
3568
|
+
throw await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context);
|
|
4476
3569
|
case "NoSuchGeoLocation":
|
|
4477
3570
|
case "com.amazonaws.route53#NoSuchGeoLocation":
|
|
4478
|
-
|
|
4479
|
-
...(await deserializeAws_restXmlNoSuchGeoLocationResponse(parsedOutput, context)),
|
|
4480
|
-
name: errorCode,
|
|
4481
|
-
$metadata: deserializeMetadata(output),
|
|
4482
|
-
};
|
|
4483
|
-
break;
|
|
3571
|
+
throw await deserializeAws_restXmlNoSuchGeoLocationResponse(parsedOutput, context);
|
|
4484
3572
|
default:
|
|
4485
3573
|
const parsedBody = parsedOutput.body;
|
|
4486
|
-
|
|
4487
|
-
|
|
4488
|
-
...parsedBody.Error,
|
|
4489
|
-
name: `${errorCode}`,
|
|
4490
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
3574
|
+
response = new Route53ServiceException_1.Route53ServiceException({
|
|
3575
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
4491
3576
|
$fault: "client",
|
|
4492
3577
|
$metadata: deserializeMetadata(output),
|
|
4493
|
-
};
|
|
3578
|
+
});
|
|
3579
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
4494
3580
|
}
|
|
4495
|
-
const message = response.message || response.Message || errorCode;
|
|
4496
|
-
response.message = message;
|
|
4497
|
-
delete response.Message;
|
|
4498
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
4499
3581
|
};
|
|
4500
3582
|
const deserializeAws_restXmlGetHealthCheckCommand = async (output, context) => {
|
|
4501
3583
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -4523,43 +3605,22 @@ const deserializeAws_restXmlGetHealthCheckCommandError = async (output, context)
|
|
|
4523
3605
|
switch (errorCode) {
|
|
4524
3606
|
case "IncompatibleVersion":
|
|
4525
3607
|
case "com.amazonaws.route53#IncompatibleVersion":
|
|
4526
|
-
|
|
4527
|
-
...(await deserializeAws_restXmlIncompatibleVersionResponse(parsedOutput, context)),
|
|
4528
|
-
name: errorCode,
|
|
4529
|
-
$metadata: deserializeMetadata(output),
|
|
4530
|
-
};
|
|
4531
|
-
break;
|
|
3608
|
+
throw await deserializeAws_restXmlIncompatibleVersionResponse(parsedOutput, context);
|
|
4532
3609
|
case "InvalidInput":
|
|
4533
3610
|
case "com.amazonaws.route53#InvalidInput":
|
|
4534
|
-
|
|
4535
|
-
...(await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context)),
|
|
4536
|
-
name: errorCode,
|
|
4537
|
-
$metadata: deserializeMetadata(output),
|
|
4538
|
-
};
|
|
4539
|
-
break;
|
|
3611
|
+
throw await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context);
|
|
4540
3612
|
case "NoSuchHealthCheck":
|
|
4541
3613
|
case "com.amazonaws.route53#NoSuchHealthCheck":
|
|
4542
|
-
|
|
4543
|
-
...(await deserializeAws_restXmlNoSuchHealthCheckResponse(parsedOutput, context)),
|
|
4544
|
-
name: errorCode,
|
|
4545
|
-
$metadata: deserializeMetadata(output),
|
|
4546
|
-
};
|
|
4547
|
-
break;
|
|
3614
|
+
throw await deserializeAws_restXmlNoSuchHealthCheckResponse(parsedOutput, context);
|
|
4548
3615
|
default:
|
|
4549
3616
|
const parsedBody = parsedOutput.body;
|
|
4550
|
-
|
|
4551
|
-
|
|
4552
|
-
...parsedBody.Error,
|
|
4553
|
-
name: `${errorCode}`,
|
|
4554
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
3617
|
+
response = new Route53ServiceException_1.Route53ServiceException({
|
|
3618
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
4555
3619
|
$fault: "client",
|
|
4556
3620
|
$metadata: deserializeMetadata(output),
|
|
4557
|
-
};
|
|
3621
|
+
});
|
|
3622
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
4558
3623
|
}
|
|
4559
|
-
const message = response.message || response.Message || errorCode;
|
|
4560
|
-
response.message = message;
|
|
4561
|
-
delete response.Message;
|
|
4562
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
4563
3624
|
};
|
|
4564
3625
|
const deserializeAws_restXmlGetHealthCheckCountCommand = async (output, context) => {
|
|
4565
3626
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -4587,19 +3648,13 @@ const deserializeAws_restXmlGetHealthCheckCountCommandError = async (output, con
|
|
|
4587
3648
|
switch (errorCode) {
|
|
4588
3649
|
default:
|
|
4589
3650
|
const parsedBody = parsedOutput.body;
|
|
4590
|
-
|
|
4591
|
-
|
|
4592
|
-
...parsedBody.Error,
|
|
4593
|
-
name: `${errorCode}`,
|
|
4594
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
3651
|
+
response = new Route53ServiceException_1.Route53ServiceException({
|
|
3652
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
4595
3653
|
$fault: "client",
|
|
4596
3654
|
$metadata: deserializeMetadata(output),
|
|
4597
|
-
};
|
|
3655
|
+
});
|
|
3656
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
4598
3657
|
}
|
|
4599
|
-
const message = response.message || response.Message || errorCode;
|
|
4600
|
-
response.message = message;
|
|
4601
|
-
delete response.Message;
|
|
4602
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
4603
3658
|
};
|
|
4604
3659
|
const deserializeAws_restXmlGetHealthCheckLastFailureReasonCommand = async (output, context) => {
|
|
4605
3660
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -4631,35 +3686,19 @@ const deserializeAws_restXmlGetHealthCheckLastFailureReasonCommandError = async
|
|
|
4631
3686
|
switch (errorCode) {
|
|
4632
3687
|
case "InvalidInput":
|
|
4633
3688
|
case "com.amazonaws.route53#InvalidInput":
|
|
4634
|
-
|
|
4635
|
-
...(await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context)),
|
|
4636
|
-
name: errorCode,
|
|
4637
|
-
$metadata: deserializeMetadata(output),
|
|
4638
|
-
};
|
|
4639
|
-
break;
|
|
3689
|
+
throw await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context);
|
|
4640
3690
|
case "NoSuchHealthCheck":
|
|
4641
3691
|
case "com.amazonaws.route53#NoSuchHealthCheck":
|
|
4642
|
-
|
|
4643
|
-
...(await deserializeAws_restXmlNoSuchHealthCheckResponse(parsedOutput, context)),
|
|
4644
|
-
name: errorCode,
|
|
4645
|
-
$metadata: deserializeMetadata(output),
|
|
4646
|
-
};
|
|
4647
|
-
break;
|
|
3692
|
+
throw await deserializeAws_restXmlNoSuchHealthCheckResponse(parsedOutput, context);
|
|
4648
3693
|
default:
|
|
4649
3694
|
const parsedBody = parsedOutput.body;
|
|
4650
|
-
|
|
4651
|
-
|
|
4652
|
-
...parsedBody.Error,
|
|
4653
|
-
name: `${errorCode}`,
|
|
4654
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
3695
|
+
response = new Route53ServiceException_1.Route53ServiceException({
|
|
3696
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
4655
3697
|
$fault: "client",
|
|
4656
3698
|
$metadata: deserializeMetadata(output),
|
|
4657
|
-
};
|
|
3699
|
+
});
|
|
3700
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
4658
3701
|
}
|
|
4659
|
-
const message = response.message || response.Message || errorCode;
|
|
4660
|
-
response.message = message;
|
|
4661
|
-
delete response.Message;
|
|
4662
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
4663
3702
|
};
|
|
4664
3703
|
const deserializeAws_restXmlGetHealthCheckStatusCommand = async (output, context) => {
|
|
4665
3704
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -4691,35 +3730,19 @@ const deserializeAws_restXmlGetHealthCheckStatusCommandError = async (output, co
|
|
|
4691
3730
|
switch (errorCode) {
|
|
4692
3731
|
case "InvalidInput":
|
|
4693
3732
|
case "com.amazonaws.route53#InvalidInput":
|
|
4694
|
-
|
|
4695
|
-
...(await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context)),
|
|
4696
|
-
name: errorCode,
|
|
4697
|
-
$metadata: deserializeMetadata(output),
|
|
4698
|
-
};
|
|
4699
|
-
break;
|
|
3733
|
+
throw await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context);
|
|
4700
3734
|
case "NoSuchHealthCheck":
|
|
4701
3735
|
case "com.amazonaws.route53#NoSuchHealthCheck":
|
|
4702
|
-
|
|
4703
|
-
...(await deserializeAws_restXmlNoSuchHealthCheckResponse(parsedOutput, context)),
|
|
4704
|
-
name: errorCode,
|
|
4705
|
-
$metadata: deserializeMetadata(output),
|
|
4706
|
-
};
|
|
4707
|
-
break;
|
|
3736
|
+
throw await deserializeAws_restXmlNoSuchHealthCheckResponse(parsedOutput, context);
|
|
4708
3737
|
default:
|
|
4709
3738
|
const parsedBody = parsedOutput.body;
|
|
4710
|
-
|
|
4711
|
-
|
|
4712
|
-
...parsedBody.Error,
|
|
4713
|
-
name: `${errorCode}`,
|
|
4714
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
3739
|
+
response = new Route53ServiceException_1.Route53ServiceException({
|
|
3740
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
4715
3741
|
$fault: "client",
|
|
4716
3742
|
$metadata: deserializeMetadata(output),
|
|
4717
|
-
};
|
|
3743
|
+
});
|
|
3744
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
4718
3745
|
}
|
|
4719
|
-
const message = response.message || response.Message || errorCode;
|
|
4720
|
-
response.message = message;
|
|
4721
|
-
delete response.Message;
|
|
4722
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
4723
3746
|
};
|
|
4724
3747
|
const deserializeAws_restXmlGetHostedZoneCommand = async (output, context) => {
|
|
4725
3748
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -4758,35 +3781,19 @@ const deserializeAws_restXmlGetHostedZoneCommandError = async (output, context)
|
|
|
4758
3781
|
switch (errorCode) {
|
|
4759
3782
|
case "InvalidInput":
|
|
4760
3783
|
case "com.amazonaws.route53#InvalidInput":
|
|
4761
|
-
|
|
4762
|
-
...(await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context)),
|
|
4763
|
-
name: errorCode,
|
|
4764
|
-
$metadata: deserializeMetadata(output),
|
|
4765
|
-
};
|
|
4766
|
-
break;
|
|
3784
|
+
throw await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context);
|
|
4767
3785
|
case "NoSuchHostedZone":
|
|
4768
3786
|
case "com.amazonaws.route53#NoSuchHostedZone":
|
|
4769
|
-
|
|
4770
|
-
...(await deserializeAws_restXmlNoSuchHostedZoneResponse(parsedOutput, context)),
|
|
4771
|
-
name: errorCode,
|
|
4772
|
-
$metadata: deserializeMetadata(output),
|
|
4773
|
-
};
|
|
4774
|
-
break;
|
|
3787
|
+
throw await deserializeAws_restXmlNoSuchHostedZoneResponse(parsedOutput, context);
|
|
4775
3788
|
default:
|
|
4776
3789
|
const parsedBody = parsedOutput.body;
|
|
4777
|
-
|
|
4778
|
-
|
|
4779
|
-
...parsedBody.Error,
|
|
4780
|
-
name: `${errorCode}`,
|
|
4781
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
3790
|
+
response = new Route53ServiceException_1.Route53ServiceException({
|
|
3791
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
4782
3792
|
$fault: "client",
|
|
4783
3793
|
$metadata: deserializeMetadata(output),
|
|
4784
|
-
};
|
|
3794
|
+
});
|
|
3795
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
4785
3796
|
}
|
|
4786
|
-
const message = response.message || response.Message || errorCode;
|
|
4787
|
-
response.message = message;
|
|
4788
|
-
delete response.Message;
|
|
4789
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
4790
3797
|
};
|
|
4791
3798
|
const deserializeAws_restXmlGetHostedZoneCountCommand = async (output, context) => {
|
|
4792
3799
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -4814,27 +3821,16 @@ const deserializeAws_restXmlGetHostedZoneCountCommandError = async (output, cont
|
|
|
4814
3821
|
switch (errorCode) {
|
|
4815
3822
|
case "InvalidInput":
|
|
4816
3823
|
case "com.amazonaws.route53#InvalidInput":
|
|
4817
|
-
|
|
4818
|
-
...(await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context)),
|
|
4819
|
-
name: errorCode,
|
|
4820
|
-
$metadata: deserializeMetadata(output),
|
|
4821
|
-
};
|
|
4822
|
-
break;
|
|
3824
|
+
throw await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context);
|
|
4823
3825
|
default:
|
|
4824
3826
|
const parsedBody = parsedOutput.body;
|
|
4825
|
-
|
|
4826
|
-
|
|
4827
|
-
...parsedBody.Error,
|
|
4828
|
-
name: `${errorCode}`,
|
|
4829
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
3827
|
+
response = new Route53ServiceException_1.Route53ServiceException({
|
|
3828
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
4830
3829
|
$fault: "client",
|
|
4831
3830
|
$metadata: deserializeMetadata(output),
|
|
4832
|
-
};
|
|
3831
|
+
});
|
|
3832
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
4833
3833
|
}
|
|
4834
|
-
const message = response.message || response.Message || errorCode;
|
|
4835
|
-
response.message = message;
|
|
4836
|
-
delete response.Message;
|
|
4837
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
4838
3834
|
};
|
|
4839
3835
|
const deserializeAws_restXmlGetHostedZoneLimitCommand = async (output, context) => {
|
|
4840
3836
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -4866,43 +3862,22 @@ const deserializeAws_restXmlGetHostedZoneLimitCommandError = async (output, cont
|
|
|
4866
3862
|
switch (errorCode) {
|
|
4867
3863
|
case "HostedZoneNotPrivate":
|
|
4868
3864
|
case "com.amazonaws.route53#HostedZoneNotPrivate":
|
|
4869
|
-
|
|
4870
|
-
...(await deserializeAws_restXmlHostedZoneNotPrivateResponse(parsedOutput, context)),
|
|
4871
|
-
name: errorCode,
|
|
4872
|
-
$metadata: deserializeMetadata(output),
|
|
4873
|
-
};
|
|
4874
|
-
break;
|
|
3865
|
+
throw await deserializeAws_restXmlHostedZoneNotPrivateResponse(parsedOutput, context);
|
|
4875
3866
|
case "InvalidInput":
|
|
4876
3867
|
case "com.amazonaws.route53#InvalidInput":
|
|
4877
|
-
|
|
4878
|
-
...(await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context)),
|
|
4879
|
-
name: errorCode,
|
|
4880
|
-
$metadata: deserializeMetadata(output),
|
|
4881
|
-
};
|
|
4882
|
-
break;
|
|
3868
|
+
throw await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context);
|
|
4883
3869
|
case "NoSuchHostedZone":
|
|
4884
3870
|
case "com.amazonaws.route53#NoSuchHostedZone":
|
|
4885
|
-
|
|
4886
|
-
...(await deserializeAws_restXmlNoSuchHostedZoneResponse(parsedOutput, context)),
|
|
4887
|
-
name: errorCode,
|
|
4888
|
-
$metadata: deserializeMetadata(output),
|
|
4889
|
-
};
|
|
4890
|
-
break;
|
|
3871
|
+
throw await deserializeAws_restXmlNoSuchHostedZoneResponse(parsedOutput, context);
|
|
4891
3872
|
default:
|
|
4892
3873
|
const parsedBody = parsedOutput.body;
|
|
4893
|
-
|
|
4894
|
-
|
|
4895
|
-
...parsedBody.Error,
|
|
4896
|
-
name: `${errorCode}`,
|
|
4897
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
3874
|
+
response = new Route53ServiceException_1.Route53ServiceException({
|
|
3875
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
4898
3876
|
$fault: "client",
|
|
4899
3877
|
$metadata: deserializeMetadata(output),
|
|
4900
|
-
};
|
|
3878
|
+
});
|
|
3879
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
4901
3880
|
}
|
|
4902
|
-
const message = response.message || response.Message || errorCode;
|
|
4903
|
-
response.message = message;
|
|
4904
|
-
delete response.Message;
|
|
4905
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
4906
3881
|
};
|
|
4907
3882
|
const deserializeAws_restXmlGetQueryLoggingConfigCommand = async (output, context) => {
|
|
4908
3883
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -4930,35 +3905,19 @@ const deserializeAws_restXmlGetQueryLoggingConfigCommandError = async (output, c
|
|
|
4930
3905
|
switch (errorCode) {
|
|
4931
3906
|
case "InvalidInput":
|
|
4932
3907
|
case "com.amazonaws.route53#InvalidInput":
|
|
4933
|
-
|
|
4934
|
-
...(await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context)),
|
|
4935
|
-
name: errorCode,
|
|
4936
|
-
$metadata: deserializeMetadata(output),
|
|
4937
|
-
};
|
|
4938
|
-
break;
|
|
3908
|
+
throw await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context);
|
|
4939
3909
|
case "NoSuchQueryLoggingConfig":
|
|
4940
3910
|
case "com.amazonaws.route53#NoSuchQueryLoggingConfig":
|
|
4941
|
-
|
|
4942
|
-
...(await deserializeAws_restXmlNoSuchQueryLoggingConfigResponse(parsedOutput, context)),
|
|
4943
|
-
name: errorCode,
|
|
4944
|
-
$metadata: deserializeMetadata(output),
|
|
4945
|
-
};
|
|
4946
|
-
break;
|
|
3911
|
+
throw await deserializeAws_restXmlNoSuchQueryLoggingConfigResponse(parsedOutput, context);
|
|
4947
3912
|
default:
|
|
4948
3913
|
const parsedBody = parsedOutput.body;
|
|
4949
|
-
|
|
4950
|
-
|
|
4951
|
-
...parsedBody.Error,
|
|
4952
|
-
name: `${errorCode}`,
|
|
4953
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
3914
|
+
response = new Route53ServiceException_1.Route53ServiceException({
|
|
3915
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
4954
3916
|
$fault: "client",
|
|
4955
3917
|
$metadata: deserializeMetadata(output),
|
|
4956
|
-
};
|
|
3918
|
+
});
|
|
3919
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
4957
3920
|
}
|
|
4958
|
-
const message = response.message || response.Message || errorCode;
|
|
4959
|
-
response.message = message;
|
|
4960
|
-
delete response.Message;
|
|
4961
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
4962
3921
|
};
|
|
4963
3922
|
const deserializeAws_restXmlGetReusableDelegationSetCommand = async (output, context) => {
|
|
4964
3923
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -4986,43 +3945,22 @@ const deserializeAws_restXmlGetReusableDelegationSetCommandError = async (output
|
|
|
4986
3945
|
switch (errorCode) {
|
|
4987
3946
|
case "DelegationSetNotReusable":
|
|
4988
3947
|
case "com.amazonaws.route53#DelegationSetNotReusable":
|
|
4989
|
-
|
|
4990
|
-
...(await deserializeAws_restXmlDelegationSetNotReusableResponse(parsedOutput, context)),
|
|
4991
|
-
name: errorCode,
|
|
4992
|
-
$metadata: deserializeMetadata(output),
|
|
4993
|
-
};
|
|
4994
|
-
break;
|
|
3948
|
+
throw await deserializeAws_restXmlDelegationSetNotReusableResponse(parsedOutput, context);
|
|
4995
3949
|
case "InvalidInput":
|
|
4996
3950
|
case "com.amazonaws.route53#InvalidInput":
|
|
4997
|
-
|
|
4998
|
-
...(await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context)),
|
|
4999
|
-
name: errorCode,
|
|
5000
|
-
$metadata: deserializeMetadata(output),
|
|
5001
|
-
};
|
|
5002
|
-
break;
|
|
3951
|
+
throw await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context);
|
|
5003
3952
|
case "NoSuchDelegationSet":
|
|
5004
3953
|
case "com.amazonaws.route53#NoSuchDelegationSet":
|
|
5005
|
-
|
|
5006
|
-
...(await deserializeAws_restXmlNoSuchDelegationSetResponse(parsedOutput, context)),
|
|
5007
|
-
name: errorCode,
|
|
5008
|
-
$metadata: deserializeMetadata(output),
|
|
5009
|
-
};
|
|
5010
|
-
break;
|
|
3954
|
+
throw await deserializeAws_restXmlNoSuchDelegationSetResponse(parsedOutput, context);
|
|
5011
3955
|
default:
|
|
5012
3956
|
const parsedBody = parsedOutput.body;
|
|
5013
|
-
|
|
5014
|
-
|
|
5015
|
-
...parsedBody.Error,
|
|
5016
|
-
name: `${errorCode}`,
|
|
5017
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
3957
|
+
response = new Route53ServiceException_1.Route53ServiceException({
|
|
3958
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
5018
3959
|
$fault: "client",
|
|
5019
3960
|
$metadata: deserializeMetadata(output),
|
|
5020
|
-
};
|
|
3961
|
+
});
|
|
3962
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
5021
3963
|
}
|
|
5022
|
-
const message = response.message || response.Message || errorCode;
|
|
5023
|
-
response.message = message;
|
|
5024
|
-
delete response.Message;
|
|
5025
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
5026
3964
|
};
|
|
5027
3965
|
const deserializeAws_restXmlGetReusableDelegationSetLimitCommand = async (output, context) => {
|
|
5028
3966
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -5054,35 +3992,19 @@ const deserializeAws_restXmlGetReusableDelegationSetLimitCommandError = async (o
|
|
|
5054
3992
|
switch (errorCode) {
|
|
5055
3993
|
case "InvalidInput":
|
|
5056
3994
|
case "com.amazonaws.route53#InvalidInput":
|
|
5057
|
-
|
|
5058
|
-
...(await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context)),
|
|
5059
|
-
name: errorCode,
|
|
5060
|
-
$metadata: deserializeMetadata(output),
|
|
5061
|
-
};
|
|
5062
|
-
break;
|
|
3995
|
+
throw await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context);
|
|
5063
3996
|
case "NoSuchDelegationSet":
|
|
5064
3997
|
case "com.amazonaws.route53#NoSuchDelegationSet":
|
|
5065
|
-
|
|
5066
|
-
...(await deserializeAws_restXmlNoSuchDelegationSetResponse(parsedOutput, context)),
|
|
5067
|
-
name: errorCode,
|
|
5068
|
-
$metadata: deserializeMetadata(output),
|
|
5069
|
-
};
|
|
5070
|
-
break;
|
|
3998
|
+
throw await deserializeAws_restXmlNoSuchDelegationSetResponse(parsedOutput, context);
|
|
5071
3999
|
default:
|
|
5072
4000
|
const parsedBody = parsedOutput.body;
|
|
5073
|
-
|
|
5074
|
-
|
|
5075
|
-
...parsedBody.Error,
|
|
5076
|
-
name: `${errorCode}`,
|
|
5077
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
4001
|
+
response = new Route53ServiceException_1.Route53ServiceException({
|
|
4002
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
5078
4003
|
$fault: "client",
|
|
5079
4004
|
$metadata: deserializeMetadata(output),
|
|
5080
|
-
};
|
|
4005
|
+
});
|
|
4006
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
5081
4007
|
}
|
|
5082
|
-
const message = response.message || response.Message || errorCode;
|
|
5083
|
-
response.message = message;
|
|
5084
|
-
delete response.Message;
|
|
5085
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
5086
4008
|
};
|
|
5087
4009
|
const deserializeAws_restXmlGetTrafficPolicyCommand = async (output, context) => {
|
|
5088
4010
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -5110,35 +4032,19 @@ const deserializeAws_restXmlGetTrafficPolicyCommandError = async (output, contex
|
|
|
5110
4032
|
switch (errorCode) {
|
|
5111
4033
|
case "InvalidInput":
|
|
5112
4034
|
case "com.amazonaws.route53#InvalidInput":
|
|
5113
|
-
|
|
5114
|
-
...(await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context)),
|
|
5115
|
-
name: errorCode,
|
|
5116
|
-
$metadata: deserializeMetadata(output),
|
|
5117
|
-
};
|
|
5118
|
-
break;
|
|
4035
|
+
throw await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context);
|
|
5119
4036
|
case "NoSuchTrafficPolicy":
|
|
5120
4037
|
case "com.amazonaws.route53#NoSuchTrafficPolicy":
|
|
5121
|
-
|
|
5122
|
-
...(await deserializeAws_restXmlNoSuchTrafficPolicyResponse(parsedOutput, context)),
|
|
5123
|
-
name: errorCode,
|
|
5124
|
-
$metadata: deserializeMetadata(output),
|
|
5125
|
-
};
|
|
5126
|
-
break;
|
|
4038
|
+
throw await deserializeAws_restXmlNoSuchTrafficPolicyResponse(parsedOutput, context);
|
|
5127
4039
|
default:
|
|
5128
4040
|
const parsedBody = parsedOutput.body;
|
|
5129
|
-
|
|
5130
|
-
|
|
5131
|
-
...parsedBody.Error,
|
|
5132
|
-
name: `${errorCode}`,
|
|
5133
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
4041
|
+
response = new Route53ServiceException_1.Route53ServiceException({
|
|
4042
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
5134
4043
|
$fault: "client",
|
|
5135
4044
|
$metadata: deserializeMetadata(output),
|
|
5136
|
-
};
|
|
4045
|
+
});
|
|
4046
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
5137
4047
|
}
|
|
5138
|
-
const message = response.message || response.Message || errorCode;
|
|
5139
|
-
response.message = message;
|
|
5140
|
-
delete response.Message;
|
|
5141
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
5142
4048
|
};
|
|
5143
4049
|
const deserializeAws_restXmlGetTrafficPolicyInstanceCommand = async (output, context) => {
|
|
5144
4050
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -5166,35 +4072,19 @@ const deserializeAws_restXmlGetTrafficPolicyInstanceCommandError = async (output
|
|
|
5166
4072
|
switch (errorCode) {
|
|
5167
4073
|
case "InvalidInput":
|
|
5168
4074
|
case "com.amazonaws.route53#InvalidInput":
|
|
5169
|
-
|
|
5170
|
-
...(await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context)),
|
|
5171
|
-
name: errorCode,
|
|
5172
|
-
$metadata: deserializeMetadata(output),
|
|
5173
|
-
};
|
|
5174
|
-
break;
|
|
4075
|
+
throw await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context);
|
|
5175
4076
|
case "NoSuchTrafficPolicyInstance":
|
|
5176
4077
|
case "com.amazonaws.route53#NoSuchTrafficPolicyInstance":
|
|
5177
|
-
|
|
5178
|
-
...(await deserializeAws_restXmlNoSuchTrafficPolicyInstanceResponse(parsedOutput, context)),
|
|
5179
|
-
name: errorCode,
|
|
5180
|
-
$metadata: deserializeMetadata(output),
|
|
5181
|
-
};
|
|
5182
|
-
break;
|
|
4078
|
+
throw await deserializeAws_restXmlNoSuchTrafficPolicyInstanceResponse(parsedOutput, context);
|
|
5183
4079
|
default:
|
|
5184
4080
|
const parsedBody = parsedOutput.body;
|
|
5185
|
-
|
|
5186
|
-
|
|
5187
|
-
...parsedBody.Error,
|
|
5188
|
-
name: `${errorCode}`,
|
|
5189
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
4081
|
+
response = new Route53ServiceException_1.Route53ServiceException({
|
|
4082
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
5190
4083
|
$fault: "client",
|
|
5191
4084
|
$metadata: deserializeMetadata(output),
|
|
5192
|
-
};
|
|
4085
|
+
});
|
|
4086
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
5193
4087
|
}
|
|
5194
|
-
const message = response.message || response.Message || errorCode;
|
|
5195
|
-
response.message = message;
|
|
5196
|
-
delete response.Message;
|
|
5197
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
5198
4088
|
};
|
|
5199
4089
|
const deserializeAws_restXmlGetTrafficPolicyInstanceCountCommand = async (output, context) => {
|
|
5200
4090
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -5222,19 +4112,13 @@ const deserializeAws_restXmlGetTrafficPolicyInstanceCountCommandError = async (o
|
|
|
5222
4112
|
switch (errorCode) {
|
|
5223
4113
|
default:
|
|
5224
4114
|
const parsedBody = parsedOutput.body;
|
|
5225
|
-
|
|
5226
|
-
|
|
5227
|
-
...parsedBody.Error,
|
|
5228
|
-
name: `${errorCode}`,
|
|
5229
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
4115
|
+
response = new Route53ServiceException_1.Route53ServiceException({
|
|
4116
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
5230
4117
|
$fault: "client",
|
|
5231
4118
|
$metadata: deserializeMetadata(output),
|
|
5232
|
-
};
|
|
4119
|
+
});
|
|
4120
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
5233
4121
|
}
|
|
5234
|
-
const message = response.message || response.Message || errorCode;
|
|
5235
|
-
response.message = message;
|
|
5236
|
-
delete response.Message;
|
|
5237
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
5238
4122
|
};
|
|
5239
4123
|
const deserializeAws_restXmlListGeoLocationsCommand = async (output, context) => {
|
|
5240
4124
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -5286,27 +4170,16 @@ const deserializeAws_restXmlListGeoLocationsCommandError = async (output, contex
|
|
|
5286
4170
|
switch (errorCode) {
|
|
5287
4171
|
case "InvalidInput":
|
|
5288
4172
|
case "com.amazonaws.route53#InvalidInput":
|
|
5289
|
-
|
|
5290
|
-
...(await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context)),
|
|
5291
|
-
name: errorCode,
|
|
5292
|
-
$metadata: deserializeMetadata(output),
|
|
5293
|
-
};
|
|
5294
|
-
break;
|
|
4173
|
+
throw await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context);
|
|
5295
4174
|
default:
|
|
5296
4175
|
const parsedBody = parsedOutput.body;
|
|
5297
|
-
|
|
5298
|
-
|
|
5299
|
-
...parsedBody.Error,
|
|
5300
|
-
name: `${errorCode}`,
|
|
5301
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
4176
|
+
response = new Route53ServiceException_1.Route53ServiceException({
|
|
4177
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
5302
4178
|
$fault: "client",
|
|
5303
4179
|
$metadata: deserializeMetadata(output),
|
|
5304
|
-
};
|
|
4180
|
+
});
|
|
4181
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
5305
4182
|
}
|
|
5306
|
-
const message = response.message || response.Message || errorCode;
|
|
5307
|
-
response.message = message;
|
|
5308
|
-
delete response.Message;
|
|
5309
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
5310
4183
|
};
|
|
5311
4184
|
const deserializeAws_restXmlListHealthChecksCommand = async (output, context) => {
|
|
5312
4185
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -5353,35 +4226,19 @@ const deserializeAws_restXmlListHealthChecksCommandError = async (output, contex
|
|
|
5353
4226
|
switch (errorCode) {
|
|
5354
4227
|
case "IncompatibleVersion":
|
|
5355
4228
|
case "com.amazonaws.route53#IncompatibleVersion":
|
|
5356
|
-
|
|
5357
|
-
...(await deserializeAws_restXmlIncompatibleVersionResponse(parsedOutput, context)),
|
|
5358
|
-
name: errorCode,
|
|
5359
|
-
$metadata: deserializeMetadata(output),
|
|
5360
|
-
};
|
|
5361
|
-
break;
|
|
4229
|
+
throw await deserializeAws_restXmlIncompatibleVersionResponse(parsedOutput, context);
|
|
5362
4230
|
case "InvalidInput":
|
|
5363
4231
|
case "com.amazonaws.route53#InvalidInput":
|
|
5364
|
-
|
|
5365
|
-
...(await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context)),
|
|
5366
|
-
name: errorCode,
|
|
5367
|
-
$metadata: deserializeMetadata(output),
|
|
5368
|
-
};
|
|
5369
|
-
break;
|
|
4232
|
+
throw await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context);
|
|
5370
4233
|
default:
|
|
5371
4234
|
const parsedBody = parsedOutput.body;
|
|
5372
|
-
|
|
5373
|
-
|
|
5374
|
-
...parsedBody.Error,
|
|
5375
|
-
name: `${errorCode}`,
|
|
5376
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
4235
|
+
response = new Route53ServiceException_1.Route53ServiceException({
|
|
4236
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
5377
4237
|
$fault: "client",
|
|
5378
4238
|
$metadata: deserializeMetadata(output),
|
|
5379
|
-
};
|
|
4239
|
+
});
|
|
4240
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
5380
4241
|
}
|
|
5381
|
-
const message = response.message || response.Message || errorCode;
|
|
5382
|
-
response.message = message;
|
|
5383
|
-
delete response.Message;
|
|
5384
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
5385
4242
|
};
|
|
5386
4243
|
const deserializeAws_restXmlListHostedZonesCommand = async (output, context) => {
|
|
5387
4244
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -5428,43 +4285,22 @@ const deserializeAws_restXmlListHostedZonesCommandError = async (output, context
|
|
|
5428
4285
|
switch (errorCode) {
|
|
5429
4286
|
case "DelegationSetNotReusable":
|
|
5430
4287
|
case "com.amazonaws.route53#DelegationSetNotReusable":
|
|
5431
|
-
|
|
5432
|
-
...(await deserializeAws_restXmlDelegationSetNotReusableResponse(parsedOutput, context)),
|
|
5433
|
-
name: errorCode,
|
|
5434
|
-
$metadata: deserializeMetadata(output),
|
|
5435
|
-
};
|
|
5436
|
-
break;
|
|
4288
|
+
throw await deserializeAws_restXmlDelegationSetNotReusableResponse(parsedOutput, context);
|
|
5437
4289
|
case "InvalidInput":
|
|
5438
4290
|
case "com.amazonaws.route53#InvalidInput":
|
|
5439
|
-
|
|
5440
|
-
...(await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context)),
|
|
5441
|
-
name: errorCode,
|
|
5442
|
-
$metadata: deserializeMetadata(output),
|
|
5443
|
-
};
|
|
5444
|
-
break;
|
|
4291
|
+
throw await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context);
|
|
5445
4292
|
case "NoSuchDelegationSet":
|
|
5446
4293
|
case "com.amazonaws.route53#NoSuchDelegationSet":
|
|
5447
|
-
|
|
5448
|
-
...(await deserializeAws_restXmlNoSuchDelegationSetResponse(parsedOutput, context)),
|
|
5449
|
-
name: errorCode,
|
|
5450
|
-
$metadata: deserializeMetadata(output),
|
|
5451
|
-
};
|
|
5452
|
-
break;
|
|
4294
|
+
throw await deserializeAws_restXmlNoSuchDelegationSetResponse(parsedOutput, context);
|
|
5453
4295
|
default:
|
|
5454
4296
|
const parsedBody = parsedOutput.body;
|
|
5455
|
-
|
|
5456
|
-
|
|
5457
|
-
...parsedBody.Error,
|
|
5458
|
-
name: `${errorCode}`,
|
|
5459
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
4297
|
+
response = new Route53ServiceException_1.Route53ServiceException({
|
|
4298
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
5460
4299
|
$fault: "client",
|
|
5461
4300
|
$metadata: deserializeMetadata(output),
|
|
5462
|
-
};
|
|
4301
|
+
});
|
|
4302
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
5463
4303
|
}
|
|
5464
|
-
const message = response.message || response.Message || errorCode;
|
|
5465
|
-
response.message = message;
|
|
5466
|
-
delete response.Message;
|
|
5467
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
5468
4304
|
};
|
|
5469
4305
|
const deserializeAws_restXmlListHostedZonesByNameCommand = async (output, context) => {
|
|
5470
4306
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -5519,35 +4355,19 @@ const deserializeAws_restXmlListHostedZonesByNameCommandError = async (output, c
|
|
|
5519
4355
|
switch (errorCode) {
|
|
5520
4356
|
case "InvalidDomainName":
|
|
5521
4357
|
case "com.amazonaws.route53#InvalidDomainName":
|
|
5522
|
-
|
|
5523
|
-
...(await deserializeAws_restXmlInvalidDomainNameResponse(parsedOutput, context)),
|
|
5524
|
-
name: errorCode,
|
|
5525
|
-
$metadata: deserializeMetadata(output),
|
|
5526
|
-
};
|
|
5527
|
-
break;
|
|
4358
|
+
throw await deserializeAws_restXmlInvalidDomainNameResponse(parsedOutput, context);
|
|
5528
4359
|
case "InvalidInput":
|
|
5529
4360
|
case "com.amazonaws.route53#InvalidInput":
|
|
5530
|
-
|
|
5531
|
-
...(await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context)),
|
|
5532
|
-
name: errorCode,
|
|
5533
|
-
$metadata: deserializeMetadata(output),
|
|
5534
|
-
};
|
|
5535
|
-
break;
|
|
4361
|
+
throw await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context);
|
|
5536
4362
|
default:
|
|
5537
4363
|
const parsedBody = parsedOutput.body;
|
|
5538
|
-
|
|
5539
|
-
|
|
5540
|
-
...parsedBody.Error,
|
|
5541
|
-
name: `${errorCode}`,
|
|
5542
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
4364
|
+
response = new Route53ServiceException_1.Route53ServiceException({
|
|
4365
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
5543
4366
|
$fault: "client",
|
|
5544
4367
|
$metadata: deserializeMetadata(output),
|
|
5545
|
-
};
|
|
4368
|
+
});
|
|
4369
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
5546
4370
|
}
|
|
5547
|
-
const message = response.message || response.Message || errorCode;
|
|
5548
|
-
response.message = message;
|
|
5549
|
-
delete response.Message;
|
|
5550
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
5551
4371
|
};
|
|
5552
4372
|
const deserializeAws_restXmlListHostedZonesByVPCCommand = async (output, context) => {
|
|
5553
4373
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -5586,35 +4406,19 @@ const deserializeAws_restXmlListHostedZonesByVPCCommandError = async (output, co
|
|
|
5586
4406
|
switch (errorCode) {
|
|
5587
4407
|
case "InvalidInput":
|
|
5588
4408
|
case "com.amazonaws.route53#InvalidInput":
|
|
5589
|
-
|
|
5590
|
-
...(await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context)),
|
|
5591
|
-
name: errorCode,
|
|
5592
|
-
$metadata: deserializeMetadata(output),
|
|
5593
|
-
};
|
|
5594
|
-
break;
|
|
4409
|
+
throw await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context);
|
|
5595
4410
|
case "InvalidPaginationToken":
|
|
5596
4411
|
case "com.amazonaws.route53#InvalidPaginationToken":
|
|
5597
|
-
|
|
5598
|
-
...(await deserializeAws_restXmlInvalidPaginationTokenResponse(parsedOutput, context)),
|
|
5599
|
-
name: errorCode,
|
|
5600
|
-
$metadata: deserializeMetadata(output),
|
|
5601
|
-
};
|
|
5602
|
-
break;
|
|
4412
|
+
throw await deserializeAws_restXmlInvalidPaginationTokenResponse(parsedOutput, context);
|
|
5603
4413
|
default:
|
|
5604
4414
|
const parsedBody = parsedOutput.body;
|
|
5605
|
-
|
|
5606
|
-
|
|
5607
|
-
...parsedBody.Error,
|
|
5608
|
-
name: `${errorCode}`,
|
|
5609
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
4415
|
+
response = new Route53ServiceException_1.Route53ServiceException({
|
|
4416
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
5610
4417
|
$fault: "client",
|
|
5611
4418
|
$metadata: deserializeMetadata(output),
|
|
5612
|
-
};
|
|
4419
|
+
});
|
|
4420
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
5613
4421
|
}
|
|
5614
|
-
const message = response.message || response.Message || errorCode;
|
|
5615
|
-
response.message = message;
|
|
5616
|
-
delete response.Message;
|
|
5617
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
5618
4422
|
};
|
|
5619
4423
|
const deserializeAws_restXmlListQueryLoggingConfigsCommand = async (output, context) => {
|
|
5620
4424
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -5649,43 +4453,22 @@ const deserializeAws_restXmlListQueryLoggingConfigsCommandError = async (output,
|
|
|
5649
4453
|
switch (errorCode) {
|
|
5650
4454
|
case "InvalidInput":
|
|
5651
4455
|
case "com.amazonaws.route53#InvalidInput":
|
|
5652
|
-
|
|
5653
|
-
...(await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context)),
|
|
5654
|
-
name: errorCode,
|
|
5655
|
-
$metadata: deserializeMetadata(output),
|
|
5656
|
-
};
|
|
5657
|
-
break;
|
|
4456
|
+
throw await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context);
|
|
5658
4457
|
case "InvalidPaginationToken":
|
|
5659
4458
|
case "com.amazonaws.route53#InvalidPaginationToken":
|
|
5660
|
-
|
|
5661
|
-
...(await deserializeAws_restXmlInvalidPaginationTokenResponse(parsedOutput, context)),
|
|
5662
|
-
name: errorCode,
|
|
5663
|
-
$metadata: deserializeMetadata(output),
|
|
5664
|
-
};
|
|
5665
|
-
break;
|
|
4459
|
+
throw await deserializeAws_restXmlInvalidPaginationTokenResponse(parsedOutput, context);
|
|
5666
4460
|
case "NoSuchHostedZone":
|
|
5667
4461
|
case "com.amazonaws.route53#NoSuchHostedZone":
|
|
5668
|
-
|
|
5669
|
-
...(await deserializeAws_restXmlNoSuchHostedZoneResponse(parsedOutput, context)),
|
|
5670
|
-
name: errorCode,
|
|
5671
|
-
$metadata: deserializeMetadata(output),
|
|
5672
|
-
};
|
|
5673
|
-
break;
|
|
4462
|
+
throw await deserializeAws_restXmlNoSuchHostedZoneResponse(parsedOutput, context);
|
|
5674
4463
|
default:
|
|
5675
4464
|
const parsedBody = parsedOutput.body;
|
|
5676
|
-
|
|
5677
|
-
|
|
5678
|
-
...parsedBody.Error,
|
|
5679
|
-
name: `${errorCode}`,
|
|
5680
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
4465
|
+
response = new Route53ServiceException_1.Route53ServiceException({
|
|
4466
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
5681
4467
|
$fault: "client",
|
|
5682
4468
|
$metadata: deserializeMetadata(output),
|
|
5683
|
-
};
|
|
4469
|
+
});
|
|
4470
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
5684
4471
|
}
|
|
5685
|
-
const message = response.message || response.Message || errorCode;
|
|
5686
|
-
response.message = message;
|
|
5687
|
-
delete response.Message;
|
|
5688
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
5689
4472
|
};
|
|
5690
4473
|
const deserializeAws_restXmlListResourceRecordSetsCommand = async (output, context) => {
|
|
5691
4474
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -5736,35 +4519,19 @@ const deserializeAws_restXmlListResourceRecordSetsCommandError = async (output,
|
|
|
5736
4519
|
switch (errorCode) {
|
|
5737
4520
|
case "InvalidInput":
|
|
5738
4521
|
case "com.amazonaws.route53#InvalidInput":
|
|
5739
|
-
|
|
5740
|
-
...(await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context)),
|
|
5741
|
-
name: errorCode,
|
|
5742
|
-
$metadata: deserializeMetadata(output),
|
|
5743
|
-
};
|
|
5744
|
-
break;
|
|
4522
|
+
throw await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context);
|
|
5745
4523
|
case "NoSuchHostedZone":
|
|
5746
4524
|
case "com.amazonaws.route53#NoSuchHostedZone":
|
|
5747
|
-
|
|
5748
|
-
...(await deserializeAws_restXmlNoSuchHostedZoneResponse(parsedOutput, context)),
|
|
5749
|
-
name: errorCode,
|
|
5750
|
-
$metadata: deserializeMetadata(output),
|
|
5751
|
-
};
|
|
5752
|
-
break;
|
|
4525
|
+
throw await deserializeAws_restXmlNoSuchHostedZoneResponse(parsedOutput, context);
|
|
5753
4526
|
default:
|
|
5754
4527
|
const parsedBody = parsedOutput.body;
|
|
5755
|
-
|
|
5756
|
-
|
|
5757
|
-
...parsedBody.Error,
|
|
5758
|
-
name: `${errorCode}`,
|
|
5759
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
4528
|
+
response = new Route53ServiceException_1.Route53ServiceException({
|
|
4529
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
5760
4530
|
$fault: "client",
|
|
5761
4531
|
$metadata: deserializeMetadata(output),
|
|
5762
|
-
};
|
|
4532
|
+
});
|
|
4533
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
5763
4534
|
}
|
|
5764
|
-
const message = response.message || response.Message || errorCode;
|
|
5765
|
-
response.message = message;
|
|
5766
|
-
delete response.Message;
|
|
5767
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
5768
4535
|
};
|
|
5769
4536
|
const deserializeAws_restXmlListReusableDelegationSetsCommand = async (output, context) => {
|
|
5770
4537
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -5811,27 +4578,16 @@ const deserializeAws_restXmlListReusableDelegationSetsCommandError = async (outp
|
|
|
5811
4578
|
switch (errorCode) {
|
|
5812
4579
|
case "InvalidInput":
|
|
5813
4580
|
case "com.amazonaws.route53#InvalidInput":
|
|
5814
|
-
|
|
5815
|
-
...(await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context)),
|
|
5816
|
-
name: errorCode,
|
|
5817
|
-
$metadata: deserializeMetadata(output),
|
|
5818
|
-
};
|
|
5819
|
-
break;
|
|
4581
|
+
throw await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context);
|
|
5820
4582
|
default:
|
|
5821
4583
|
const parsedBody = parsedOutput.body;
|
|
5822
|
-
|
|
5823
|
-
|
|
5824
|
-
...parsedBody.Error,
|
|
5825
|
-
name: `${errorCode}`,
|
|
5826
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
4584
|
+
response = new Route53ServiceException_1.Route53ServiceException({
|
|
4585
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
5827
4586
|
$fault: "client",
|
|
5828
4587
|
$metadata: deserializeMetadata(output),
|
|
5829
|
-
};
|
|
4588
|
+
});
|
|
4589
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
5830
4590
|
}
|
|
5831
|
-
const message = response.message || response.Message || errorCode;
|
|
5832
|
-
response.message = message;
|
|
5833
|
-
delete response.Message;
|
|
5834
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
5835
4591
|
};
|
|
5836
4592
|
const deserializeAws_restXmlListTagsForResourceCommand = async (output, context) => {
|
|
5837
4593
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -5859,59 +4615,28 @@ const deserializeAws_restXmlListTagsForResourceCommandError = async (output, con
|
|
|
5859
4615
|
switch (errorCode) {
|
|
5860
4616
|
case "InvalidInput":
|
|
5861
4617
|
case "com.amazonaws.route53#InvalidInput":
|
|
5862
|
-
|
|
5863
|
-
...(await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context)),
|
|
5864
|
-
name: errorCode,
|
|
5865
|
-
$metadata: deserializeMetadata(output),
|
|
5866
|
-
};
|
|
5867
|
-
break;
|
|
4618
|
+
throw await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context);
|
|
5868
4619
|
case "NoSuchHealthCheck":
|
|
5869
4620
|
case "com.amazonaws.route53#NoSuchHealthCheck":
|
|
5870
|
-
|
|
5871
|
-
...(await deserializeAws_restXmlNoSuchHealthCheckResponse(parsedOutput, context)),
|
|
5872
|
-
name: errorCode,
|
|
5873
|
-
$metadata: deserializeMetadata(output),
|
|
5874
|
-
};
|
|
5875
|
-
break;
|
|
4621
|
+
throw await deserializeAws_restXmlNoSuchHealthCheckResponse(parsedOutput, context);
|
|
5876
4622
|
case "NoSuchHostedZone":
|
|
5877
4623
|
case "com.amazonaws.route53#NoSuchHostedZone":
|
|
5878
|
-
|
|
5879
|
-
...(await deserializeAws_restXmlNoSuchHostedZoneResponse(parsedOutput, context)),
|
|
5880
|
-
name: errorCode,
|
|
5881
|
-
$metadata: deserializeMetadata(output),
|
|
5882
|
-
};
|
|
5883
|
-
break;
|
|
4624
|
+
throw await deserializeAws_restXmlNoSuchHostedZoneResponse(parsedOutput, context);
|
|
5884
4625
|
case "PriorRequestNotComplete":
|
|
5885
4626
|
case "com.amazonaws.route53#PriorRequestNotComplete":
|
|
5886
|
-
|
|
5887
|
-
...(await deserializeAws_restXmlPriorRequestNotCompleteResponse(parsedOutput, context)),
|
|
5888
|
-
name: errorCode,
|
|
5889
|
-
$metadata: deserializeMetadata(output),
|
|
5890
|
-
};
|
|
5891
|
-
break;
|
|
4627
|
+
throw await deserializeAws_restXmlPriorRequestNotCompleteResponse(parsedOutput, context);
|
|
5892
4628
|
case "ThrottlingException":
|
|
5893
4629
|
case "com.amazonaws.route53#ThrottlingException":
|
|
5894
|
-
|
|
5895
|
-
...(await deserializeAws_restXmlThrottlingExceptionResponse(parsedOutput, context)),
|
|
5896
|
-
name: errorCode,
|
|
5897
|
-
$metadata: deserializeMetadata(output),
|
|
5898
|
-
};
|
|
5899
|
-
break;
|
|
4630
|
+
throw await deserializeAws_restXmlThrottlingExceptionResponse(parsedOutput, context);
|
|
5900
4631
|
default:
|
|
5901
4632
|
const parsedBody = parsedOutput.body;
|
|
5902
|
-
|
|
5903
|
-
|
|
5904
|
-
...parsedBody.Error,
|
|
5905
|
-
name: `${errorCode}`,
|
|
5906
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
4633
|
+
response = new Route53ServiceException_1.Route53ServiceException({
|
|
4634
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
5907
4635
|
$fault: "client",
|
|
5908
4636
|
$metadata: deserializeMetadata(output),
|
|
5909
|
-
};
|
|
4637
|
+
});
|
|
4638
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
5910
4639
|
}
|
|
5911
|
-
const message = response.message || response.Message || errorCode;
|
|
5912
|
-
response.message = message;
|
|
5913
|
-
delete response.Message;
|
|
5914
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
5915
4640
|
};
|
|
5916
4641
|
const deserializeAws_restXmlListTagsForResourcesCommand = async (output, context) => {
|
|
5917
4642
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -5942,59 +4667,28 @@ const deserializeAws_restXmlListTagsForResourcesCommandError = async (output, co
|
|
|
5942
4667
|
switch (errorCode) {
|
|
5943
4668
|
case "InvalidInput":
|
|
5944
4669
|
case "com.amazonaws.route53#InvalidInput":
|
|
5945
|
-
|
|
5946
|
-
...(await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context)),
|
|
5947
|
-
name: errorCode,
|
|
5948
|
-
$metadata: deserializeMetadata(output),
|
|
5949
|
-
};
|
|
5950
|
-
break;
|
|
4670
|
+
throw await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context);
|
|
5951
4671
|
case "NoSuchHealthCheck":
|
|
5952
4672
|
case "com.amazonaws.route53#NoSuchHealthCheck":
|
|
5953
|
-
|
|
5954
|
-
...(await deserializeAws_restXmlNoSuchHealthCheckResponse(parsedOutput, context)),
|
|
5955
|
-
name: errorCode,
|
|
5956
|
-
$metadata: deserializeMetadata(output),
|
|
5957
|
-
};
|
|
5958
|
-
break;
|
|
4673
|
+
throw await deserializeAws_restXmlNoSuchHealthCheckResponse(parsedOutput, context);
|
|
5959
4674
|
case "NoSuchHostedZone":
|
|
5960
4675
|
case "com.amazonaws.route53#NoSuchHostedZone":
|
|
5961
|
-
|
|
5962
|
-
...(await deserializeAws_restXmlNoSuchHostedZoneResponse(parsedOutput, context)),
|
|
5963
|
-
name: errorCode,
|
|
5964
|
-
$metadata: deserializeMetadata(output),
|
|
5965
|
-
};
|
|
5966
|
-
break;
|
|
4676
|
+
throw await deserializeAws_restXmlNoSuchHostedZoneResponse(parsedOutput, context);
|
|
5967
4677
|
case "PriorRequestNotComplete":
|
|
5968
4678
|
case "com.amazonaws.route53#PriorRequestNotComplete":
|
|
5969
|
-
|
|
5970
|
-
...(await deserializeAws_restXmlPriorRequestNotCompleteResponse(parsedOutput, context)),
|
|
5971
|
-
name: errorCode,
|
|
5972
|
-
$metadata: deserializeMetadata(output),
|
|
5973
|
-
};
|
|
5974
|
-
break;
|
|
4679
|
+
throw await deserializeAws_restXmlPriorRequestNotCompleteResponse(parsedOutput, context);
|
|
5975
4680
|
case "ThrottlingException":
|
|
5976
4681
|
case "com.amazonaws.route53#ThrottlingException":
|
|
5977
|
-
|
|
5978
|
-
...(await deserializeAws_restXmlThrottlingExceptionResponse(parsedOutput, context)),
|
|
5979
|
-
name: errorCode,
|
|
5980
|
-
$metadata: deserializeMetadata(output),
|
|
5981
|
-
};
|
|
5982
|
-
break;
|
|
4682
|
+
throw await deserializeAws_restXmlThrottlingExceptionResponse(parsedOutput, context);
|
|
5983
4683
|
default:
|
|
5984
4684
|
const parsedBody = parsedOutput.body;
|
|
5985
|
-
|
|
5986
|
-
|
|
5987
|
-
...parsedBody.Error,
|
|
5988
|
-
name: `${errorCode}`,
|
|
5989
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
4685
|
+
response = new Route53ServiceException_1.Route53ServiceException({
|
|
4686
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
5990
4687
|
$fault: "client",
|
|
5991
4688
|
$metadata: deserializeMetadata(output),
|
|
5992
|
-
};
|
|
4689
|
+
});
|
|
4690
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
5993
4691
|
}
|
|
5994
|
-
const message = response.message || response.Message || errorCode;
|
|
5995
|
-
response.message = message;
|
|
5996
|
-
delete response.Message;
|
|
5997
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
5998
4692
|
};
|
|
5999
4693
|
const deserializeAws_restXmlListTrafficPoliciesCommand = async (output, context) => {
|
|
6000
4694
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -6038,27 +4732,16 @@ const deserializeAws_restXmlListTrafficPoliciesCommandError = async (output, con
|
|
|
6038
4732
|
switch (errorCode) {
|
|
6039
4733
|
case "InvalidInput":
|
|
6040
4734
|
case "com.amazonaws.route53#InvalidInput":
|
|
6041
|
-
|
|
6042
|
-
...(await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context)),
|
|
6043
|
-
name: errorCode,
|
|
6044
|
-
$metadata: deserializeMetadata(output),
|
|
6045
|
-
};
|
|
6046
|
-
break;
|
|
4735
|
+
throw await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context);
|
|
6047
4736
|
default:
|
|
6048
4737
|
const parsedBody = parsedOutput.body;
|
|
6049
|
-
|
|
6050
|
-
|
|
6051
|
-
...parsedBody.Error,
|
|
6052
|
-
name: `${errorCode}`,
|
|
6053
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
4738
|
+
response = new Route53ServiceException_1.Route53ServiceException({
|
|
4739
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
6054
4740
|
$fault: "client",
|
|
6055
4741
|
$metadata: deserializeMetadata(output),
|
|
6056
|
-
};
|
|
4742
|
+
});
|
|
4743
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
6057
4744
|
}
|
|
6058
|
-
const message = response.message || response.Message || errorCode;
|
|
6059
|
-
response.message = message;
|
|
6060
|
-
delete response.Message;
|
|
6061
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
6062
4745
|
};
|
|
6063
4746
|
const deserializeAws_restXmlListTrafficPolicyInstancesCommand = async (output, context) => {
|
|
6064
4747
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -6110,35 +4793,19 @@ const deserializeAws_restXmlListTrafficPolicyInstancesCommandError = async (outp
|
|
|
6110
4793
|
switch (errorCode) {
|
|
6111
4794
|
case "InvalidInput":
|
|
6112
4795
|
case "com.amazonaws.route53#InvalidInput":
|
|
6113
|
-
|
|
6114
|
-
...(await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context)),
|
|
6115
|
-
name: errorCode,
|
|
6116
|
-
$metadata: deserializeMetadata(output),
|
|
6117
|
-
};
|
|
6118
|
-
break;
|
|
4796
|
+
throw await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context);
|
|
6119
4797
|
case "NoSuchTrafficPolicyInstance":
|
|
6120
4798
|
case "com.amazonaws.route53#NoSuchTrafficPolicyInstance":
|
|
6121
|
-
|
|
6122
|
-
...(await deserializeAws_restXmlNoSuchTrafficPolicyInstanceResponse(parsedOutput, context)),
|
|
6123
|
-
name: errorCode,
|
|
6124
|
-
$metadata: deserializeMetadata(output),
|
|
6125
|
-
};
|
|
6126
|
-
break;
|
|
4799
|
+
throw await deserializeAws_restXmlNoSuchTrafficPolicyInstanceResponse(parsedOutput, context);
|
|
6127
4800
|
default:
|
|
6128
4801
|
const parsedBody = parsedOutput.body;
|
|
6129
|
-
|
|
6130
|
-
|
|
6131
|
-
...parsedBody.Error,
|
|
6132
|
-
name: `${errorCode}`,
|
|
6133
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
4802
|
+
response = new Route53ServiceException_1.Route53ServiceException({
|
|
4803
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
6134
4804
|
$fault: "client",
|
|
6135
4805
|
$metadata: deserializeMetadata(output),
|
|
6136
|
-
};
|
|
4806
|
+
});
|
|
4807
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
6137
4808
|
}
|
|
6138
|
-
const message = response.message || response.Message || errorCode;
|
|
6139
|
-
response.message = message;
|
|
6140
|
-
delete response.Message;
|
|
6141
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
6142
4809
|
};
|
|
6143
4810
|
const deserializeAws_restXmlListTrafficPolicyInstancesByHostedZoneCommand = async (output, context) => {
|
|
6144
4811
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -6186,43 +4853,22 @@ const deserializeAws_restXmlListTrafficPolicyInstancesByHostedZoneCommandError =
|
|
|
6186
4853
|
switch (errorCode) {
|
|
6187
4854
|
case "InvalidInput":
|
|
6188
4855
|
case "com.amazonaws.route53#InvalidInput":
|
|
6189
|
-
|
|
6190
|
-
...(await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context)),
|
|
6191
|
-
name: errorCode,
|
|
6192
|
-
$metadata: deserializeMetadata(output),
|
|
6193
|
-
};
|
|
6194
|
-
break;
|
|
4856
|
+
throw await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context);
|
|
6195
4857
|
case "NoSuchHostedZone":
|
|
6196
4858
|
case "com.amazonaws.route53#NoSuchHostedZone":
|
|
6197
|
-
|
|
6198
|
-
...(await deserializeAws_restXmlNoSuchHostedZoneResponse(parsedOutput, context)),
|
|
6199
|
-
name: errorCode,
|
|
6200
|
-
$metadata: deserializeMetadata(output),
|
|
6201
|
-
};
|
|
6202
|
-
break;
|
|
4859
|
+
throw await deserializeAws_restXmlNoSuchHostedZoneResponse(parsedOutput, context);
|
|
6203
4860
|
case "NoSuchTrafficPolicyInstance":
|
|
6204
4861
|
case "com.amazonaws.route53#NoSuchTrafficPolicyInstance":
|
|
6205
|
-
|
|
6206
|
-
...(await deserializeAws_restXmlNoSuchTrafficPolicyInstanceResponse(parsedOutput, context)),
|
|
6207
|
-
name: errorCode,
|
|
6208
|
-
$metadata: deserializeMetadata(output),
|
|
6209
|
-
};
|
|
6210
|
-
break;
|
|
4862
|
+
throw await deserializeAws_restXmlNoSuchTrafficPolicyInstanceResponse(parsedOutput, context);
|
|
6211
4863
|
default:
|
|
6212
4864
|
const parsedBody = parsedOutput.body;
|
|
6213
|
-
|
|
6214
|
-
|
|
6215
|
-
...parsedBody.Error,
|
|
6216
|
-
name: `${errorCode}`,
|
|
6217
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
4865
|
+
response = new Route53ServiceException_1.Route53ServiceException({
|
|
4866
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
6218
4867
|
$fault: "client",
|
|
6219
4868
|
$metadata: deserializeMetadata(output),
|
|
6220
|
-
};
|
|
4869
|
+
});
|
|
4870
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
6221
4871
|
}
|
|
6222
|
-
const message = response.message || response.Message || errorCode;
|
|
6223
|
-
response.message = message;
|
|
6224
|
-
delete response.Message;
|
|
6225
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
6226
4872
|
};
|
|
6227
4873
|
const deserializeAws_restXmlListTrafficPolicyInstancesByPolicyCommand = async (output, context) => {
|
|
6228
4874
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -6274,43 +4920,22 @@ const deserializeAws_restXmlListTrafficPolicyInstancesByPolicyCommandError = asy
|
|
|
6274
4920
|
switch (errorCode) {
|
|
6275
4921
|
case "InvalidInput":
|
|
6276
4922
|
case "com.amazonaws.route53#InvalidInput":
|
|
6277
|
-
|
|
6278
|
-
...(await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context)),
|
|
6279
|
-
name: errorCode,
|
|
6280
|
-
$metadata: deserializeMetadata(output),
|
|
6281
|
-
};
|
|
6282
|
-
break;
|
|
4923
|
+
throw await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context);
|
|
6283
4924
|
case "NoSuchTrafficPolicy":
|
|
6284
4925
|
case "com.amazonaws.route53#NoSuchTrafficPolicy":
|
|
6285
|
-
|
|
6286
|
-
...(await deserializeAws_restXmlNoSuchTrafficPolicyResponse(parsedOutput, context)),
|
|
6287
|
-
name: errorCode,
|
|
6288
|
-
$metadata: deserializeMetadata(output),
|
|
6289
|
-
};
|
|
6290
|
-
break;
|
|
4926
|
+
throw await deserializeAws_restXmlNoSuchTrafficPolicyResponse(parsedOutput, context);
|
|
6291
4927
|
case "NoSuchTrafficPolicyInstance":
|
|
6292
4928
|
case "com.amazonaws.route53#NoSuchTrafficPolicyInstance":
|
|
6293
|
-
|
|
6294
|
-
...(await deserializeAws_restXmlNoSuchTrafficPolicyInstanceResponse(parsedOutput, context)),
|
|
6295
|
-
name: errorCode,
|
|
6296
|
-
$metadata: deserializeMetadata(output),
|
|
6297
|
-
};
|
|
6298
|
-
break;
|
|
4929
|
+
throw await deserializeAws_restXmlNoSuchTrafficPolicyInstanceResponse(parsedOutput, context);
|
|
6299
4930
|
default:
|
|
6300
4931
|
const parsedBody = parsedOutput.body;
|
|
6301
|
-
|
|
6302
|
-
|
|
6303
|
-
...parsedBody.Error,
|
|
6304
|
-
name: `${errorCode}`,
|
|
6305
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
4932
|
+
response = new Route53ServiceException_1.Route53ServiceException({
|
|
4933
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
6306
4934
|
$fault: "client",
|
|
6307
4935
|
$metadata: deserializeMetadata(output),
|
|
6308
|
-
};
|
|
4936
|
+
});
|
|
4937
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
6309
4938
|
}
|
|
6310
|
-
const message = response.message || response.Message || errorCode;
|
|
6311
|
-
response.message = message;
|
|
6312
|
-
delete response.Message;
|
|
6313
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
6314
4939
|
};
|
|
6315
4940
|
const deserializeAws_restXmlListTrafficPolicyVersionsCommand = async (output, context) => {
|
|
6316
4941
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -6353,35 +4978,19 @@ const deserializeAws_restXmlListTrafficPolicyVersionsCommandError = async (outpu
|
|
|
6353
4978
|
switch (errorCode) {
|
|
6354
4979
|
case "InvalidInput":
|
|
6355
4980
|
case "com.amazonaws.route53#InvalidInput":
|
|
6356
|
-
|
|
6357
|
-
...(await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context)),
|
|
6358
|
-
name: errorCode,
|
|
6359
|
-
$metadata: deserializeMetadata(output),
|
|
6360
|
-
};
|
|
6361
|
-
break;
|
|
4981
|
+
throw await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context);
|
|
6362
4982
|
case "NoSuchTrafficPolicy":
|
|
6363
4983
|
case "com.amazonaws.route53#NoSuchTrafficPolicy":
|
|
6364
|
-
|
|
6365
|
-
...(await deserializeAws_restXmlNoSuchTrafficPolicyResponse(parsedOutput, context)),
|
|
6366
|
-
name: errorCode,
|
|
6367
|
-
$metadata: deserializeMetadata(output),
|
|
6368
|
-
};
|
|
6369
|
-
break;
|
|
4984
|
+
throw await deserializeAws_restXmlNoSuchTrafficPolicyResponse(parsedOutput, context);
|
|
6370
4985
|
default:
|
|
6371
4986
|
const parsedBody = parsedOutput.body;
|
|
6372
|
-
|
|
6373
|
-
|
|
6374
|
-
...parsedBody.Error,
|
|
6375
|
-
name: `${errorCode}`,
|
|
6376
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
4987
|
+
response = new Route53ServiceException_1.Route53ServiceException({
|
|
4988
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
6377
4989
|
$fault: "client",
|
|
6378
4990
|
$metadata: deserializeMetadata(output),
|
|
6379
|
-
};
|
|
4991
|
+
});
|
|
4992
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
6380
4993
|
}
|
|
6381
|
-
const message = response.message || response.Message || errorCode;
|
|
6382
|
-
response.message = message;
|
|
6383
|
-
delete response.Message;
|
|
6384
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
6385
4994
|
};
|
|
6386
4995
|
const deserializeAws_restXmlListVPCAssociationAuthorizationsCommand = async (output, context) => {
|
|
6387
4996
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -6420,43 +5029,22 @@ const deserializeAws_restXmlListVPCAssociationAuthorizationsCommandError = async
|
|
|
6420
5029
|
switch (errorCode) {
|
|
6421
5030
|
case "InvalidInput":
|
|
6422
5031
|
case "com.amazonaws.route53#InvalidInput":
|
|
6423
|
-
|
|
6424
|
-
...(await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context)),
|
|
6425
|
-
name: errorCode,
|
|
6426
|
-
$metadata: deserializeMetadata(output),
|
|
6427
|
-
};
|
|
6428
|
-
break;
|
|
5032
|
+
throw await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context);
|
|
6429
5033
|
case "InvalidPaginationToken":
|
|
6430
5034
|
case "com.amazonaws.route53#InvalidPaginationToken":
|
|
6431
|
-
|
|
6432
|
-
...(await deserializeAws_restXmlInvalidPaginationTokenResponse(parsedOutput, context)),
|
|
6433
|
-
name: errorCode,
|
|
6434
|
-
$metadata: deserializeMetadata(output),
|
|
6435
|
-
};
|
|
6436
|
-
break;
|
|
5035
|
+
throw await deserializeAws_restXmlInvalidPaginationTokenResponse(parsedOutput, context);
|
|
6437
5036
|
case "NoSuchHostedZone":
|
|
6438
5037
|
case "com.amazonaws.route53#NoSuchHostedZone":
|
|
6439
|
-
|
|
6440
|
-
...(await deserializeAws_restXmlNoSuchHostedZoneResponse(parsedOutput, context)),
|
|
6441
|
-
name: errorCode,
|
|
6442
|
-
$metadata: deserializeMetadata(output),
|
|
6443
|
-
};
|
|
6444
|
-
break;
|
|
5038
|
+
throw await deserializeAws_restXmlNoSuchHostedZoneResponse(parsedOutput, context);
|
|
6445
5039
|
default:
|
|
6446
5040
|
const parsedBody = parsedOutput.body;
|
|
6447
|
-
|
|
6448
|
-
|
|
6449
|
-
...parsedBody.Error,
|
|
6450
|
-
name: `${errorCode}`,
|
|
6451
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
5041
|
+
response = new Route53ServiceException_1.Route53ServiceException({
|
|
5042
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
6452
5043
|
$fault: "client",
|
|
6453
5044
|
$metadata: deserializeMetadata(output),
|
|
6454
|
-
};
|
|
5045
|
+
});
|
|
5046
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
6455
5047
|
}
|
|
6456
|
-
const message = response.message || response.Message || errorCode;
|
|
6457
|
-
response.message = message;
|
|
6458
|
-
delete response.Message;
|
|
6459
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
6460
5048
|
};
|
|
6461
5049
|
const deserializeAws_restXmlTestDNSAnswerCommand = async (output, context) => {
|
|
6462
5050
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -6507,35 +5095,19 @@ const deserializeAws_restXmlTestDNSAnswerCommandError = async (output, context)
|
|
|
6507
5095
|
switch (errorCode) {
|
|
6508
5096
|
case "InvalidInput":
|
|
6509
5097
|
case "com.amazonaws.route53#InvalidInput":
|
|
6510
|
-
|
|
6511
|
-
...(await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context)),
|
|
6512
|
-
name: errorCode,
|
|
6513
|
-
$metadata: deserializeMetadata(output),
|
|
6514
|
-
};
|
|
6515
|
-
break;
|
|
5098
|
+
throw await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context);
|
|
6516
5099
|
case "NoSuchHostedZone":
|
|
6517
5100
|
case "com.amazonaws.route53#NoSuchHostedZone":
|
|
6518
|
-
|
|
6519
|
-
...(await deserializeAws_restXmlNoSuchHostedZoneResponse(parsedOutput, context)),
|
|
6520
|
-
name: errorCode,
|
|
6521
|
-
$metadata: deserializeMetadata(output),
|
|
6522
|
-
};
|
|
6523
|
-
break;
|
|
5101
|
+
throw await deserializeAws_restXmlNoSuchHostedZoneResponse(parsedOutput, context);
|
|
6524
5102
|
default:
|
|
6525
5103
|
const parsedBody = parsedOutput.body;
|
|
6526
|
-
|
|
6527
|
-
|
|
6528
|
-
...parsedBody.Error,
|
|
6529
|
-
name: `${errorCode}`,
|
|
6530
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
5104
|
+
response = new Route53ServiceException_1.Route53ServiceException({
|
|
5105
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
6531
5106
|
$fault: "client",
|
|
6532
5107
|
$metadata: deserializeMetadata(output),
|
|
6533
|
-
};
|
|
5108
|
+
});
|
|
5109
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
6534
5110
|
}
|
|
6535
|
-
const message = response.message || response.Message || errorCode;
|
|
6536
|
-
response.message = message;
|
|
6537
|
-
delete response.Message;
|
|
6538
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
6539
5111
|
};
|
|
6540
5112
|
const deserializeAws_restXmlUpdateHealthCheckCommand = async (output, context) => {
|
|
6541
5113
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -6563,43 +5135,22 @@ const deserializeAws_restXmlUpdateHealthCheckCommandError = async (output, conte
|
|
|
6563
5135
|
switch (errorCode) {
|
|
6564
5136
|
case "HealthCheckVersionMismatch":
|
|
6565
5137
|
case "com.amazonaws.route53#HealthCheckVersionMismatch":
|
|
6566
|
-
|
|
6567
|
-
...(await deserializeAws_restXmlHealthCheckVersionMismatchResponse(parsedOutput, context)),
|
|
6568
|
-
name: errorCode,
|
|
6569
|
-
$metadata: deserializeMetadata(output),
|
|
6570
|
-
};
|
|
6571
|
-
break;
|
|
5138
|
+
throw await deserializeAws_restXmlHealthCheckVersionMismatchResponse(parsedOutput, context);
|
|
6572
5139
|
case "InvalidInput":
|
|
6573
5140
|
case "com.amazonaws.route53#InvalidInput":
|
|
6574
|
-
|
|
6575
|
-
...(await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context)),
|
|
6576
|
-
name: errorCode,
|
|
6577
|
-
$metadata: deserializeMetadata(output),
|
|
6578
|
-
};
|
|
6579
|
-
break;
|
|
5141
|
+
throw await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context);
|
|
6580
5142
|
case "NoSuchHealthCheck":
|
|
6581
5143
|
case "com.amazonaws.route53#NoSuchHealthCheck":
|
|
6582
|
-
|
|
6583
|
-
...(await deserializeAws_restXmlNoSuchHealthCheckResponse(parsedOutput, context)),
|
|
6584
|
-
name: errorCode,
|
|
6585
|
-
$metadata: deserializeMetadata(output),
|
|
6586
|
-
};
|
|
6587
|
-
break;
|
|
5144
|
+
throw await deserializeAws_restXmlNoSuchHealthCheckResponse(parsedOutput, context);
|
|
6588
5145
|
default:
|
|
6589
5146
|
const parsedBody = parsedOutput.body;
|
|
6590
|
-
|
|
6591
|
-
|
|
6592
|
-
...parsedBody.Error,
|
|
6593
|
-
name: `${errorCode}`,
|
|
6594
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
5147
|
+
response = new Route53ServiceException_1.Route53ServiceException({
|
|
5148
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
6595
5149
|
$fault: "client",
|
|
6596
5150
|
$metadata: deserializeMetadata(output),
|
|
6597
|
-
};
|
|
5151
|
+
});
|
|
5152
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
6598
5153
|
}
|
|
6599
|
-
const message = response.message || response.Message || errorCode;
|
|
6600
|
-
response.message = message;
|
|
6601
|
-
delete response.Message;
|
|
6602
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
6603
5154
|
};
|
|
6604
5155
|
const deserializeAws_restXmlUpdateHostedZoneCommentCommand = async (output, context) => {
|
|
6605
5156
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -6627,43 +5178,22 @@ const deserializeAws_restXmlUpdateHostedZoneCommentCommandError = async (output,
|
|
|
6627
5178
|
switch (errorCode) {
|
|
6628
5179
|
case "InvalidInput":
|
|
6629
5180
|
case "com.amazonaws.route53#InvalidInput":
|
|
6630
|
-
|
|
6631
|
-
...(await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context)),
|
|
6632
|
-
name: errorCode,
|
|
6633
|
-
$metadata: deserializeMetadata(output),
|
|
6634
|
-
};
|
|
6635
|
-
break;
|
|
5181
|
+
throw await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context);
|
|
6636
5182
|
case "NoSuchHostedZone":
|
|
6637
5183
|
case "com.amazonaws.route53#NoSuchHostedZone":
|
|
6638
|
-
|
|
6639
|
-
...(await deserializeAws_restXmlNoSuchHostedZoneResponse(parsedOutput, context)),
|
|
6640
|
-
name: errorCode,
|
|
6641
|
-
$metadata: deserializeMetadata(output),
|
|
6642
|
-
};
|
|
6643
|
-
break;
|
|
5184
|
+
throw await deserializeAws_restXmlNoSuchHostedZoneResponse(parsedOutput, context);
|
|
6644
5185
|
case "PriorRequestNotComplete":
|
|
6645
5186
|
case "com.amazonaws.route53#PriorRequestNotComplete":
|
|
6646
|
-
|
|
6647
|
-
...(await deserializeAws_restXmlPriorRequestNotCompleteResponse(parsedOutput, context)),
|
|
6648
|
-
name: errorCode,
|
|
6649
|
-
$metadata: deserializeMetadata(output),
|
|
6650
|
-
};
|
|
6651
|
-
break;
|
|
5187
|
+
throw await deserializeAws_restXmlPriorRequestNotCompleteResponse(parsedOutput, context);
|
|
6652
5188
|
default:
|
|
6653
5189
|
const parsedBody = parsedOutput.body;
|
|
6654
|
-
|
|
6655
|
-
|
|
6656
|
-
...parsedBody.Error,
|
|
6657
|
-
name: `${errorCode}`,
|
|
6658
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
5190
|
+
response = new Route53ServiceException_1.Route53ServiceException({
|
|
5191
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
6659
5192
|
$fault: "client",
|
|
6660
5193
|
$metadata: deserializeMetadata(output),
|
|
6661
|
-
};
|
|
5194
|
+
});
|
|
5195
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
6662
5196
|
}
|
|
6663
|
-
const message = response.message || response.Message || errorCode;
|
|
6664
|
-
response.message = message;
|
|
6665
|
-
delete response.Message;
|
|
6666
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
6667
5197
|
};
|
|
6668
5198
|
const deserializeAws_restXmlUpdateTrafficPolicyCommentCommand = async (output, context) => {
|
|
6669
5199
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -6691,43 +5221,22 @@ const deserializeAws_restXmlUpdateTrafficPolicyCommentCommandError = async (outp
|
|
|
6691
5221
|
switch (errorCode) {
|
|
6692
5222
|
case "ConcurrentModification":
|
|
6693
5223
|
case "com.amazonaws.route53#ConcurrentModification":
|
|
6694
|
-
|
|
6695
|
-
...(await deserializeAws_restXmlConcurrentModificationResponse(parsedOutput, context)),
|
|
6696
|
-
name: errorCode,
|
|
6697
|
-
$metadata: deserializeMetadata(output),
|
|
6698
|
-
};
|
|
6699
|
-
break;
|
|
5224
|
+
throw await deserializeAws_restXmlConcurrentModificationResponse(parsedOutput, context);
|
|
6700
5225
|
case "InvalidInput":
|
|
6701
5226
|
case "com.amazonaws.route53#InvalidInput":
|
|
6702
|
-
|
|
6703
|
-
...(await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context)),
|
|
6704
|
-
name: errorCode,
|
|
6705
|
-
$metadata: deserializeMetadata(output),
|
|
6706
|
-
};
|
|
6707
|
-
break;
|
|
5227
|
+
throw await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context);
|
|
6708
5228
|
case "NoSuchTrafficPolicy":
|
|
6709
5229
|
case "com.amazonaws.route53#NoSuchTrafficPolicy":
|
|
6710
|
-
|
|
6711
|
-
...(await deserializeAws_restXmlNoSuchTrafficPolicyResponse(parsedOutput, context)),
|
|
6712
|
-
name: errorCode,
|
|
6713
|
-
$metadata: deserializeMetadata(output),
|
|
6714
|
-
};
|
|
6715
|
-
break;
|
|
5230
|
+
throw await deserializeAws_restXmlNoSuchTrafficPolicyResponse(parsedOutput, context);
|
|
6716
5231
|
default:
|
|
6717
5232
|
const parsedBody = parsedOutput.body;
|
|
6718
|
-
|
|
6719
|
-
|
|
6720
|
-
...parsedBody.Error,
|
|
6721
|
-
name: `${errorCode}`,
|
|
6722
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
5233
|
+
response = new Route53ServiceException_1.Route53ServiceException({
|
|
5234
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
6723
5235
|
$fault: "client",
|
|
6724
5236
|
$metadata: deserializeMetadata(output),
|
|
6725
|
-
};
|
|
5237
|
+
});
|
|
5238
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
6726
5239
|
}
|
|
6727
|
-
const message = response.message || response.Message || errorCode;
|
|
6728
|
-
response.message = message;
|
|
6729
|
-
delete response.Message;
|
|
6730
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
6731
5240
|
};
|
|
6732
5241
|
const deserializeAws_restXmlUpdateTrafficPolicyInstanceCommand = async (output, context) => {
|
|
6733
5242
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -6755,328 +5264,271 @@ const deserializeAws_restXmlUpdateTrafficPolicyInstanceCommandError = async (out
|
|
|
6755
5264
|
switch (errorCode) {
|
|
6756
5265
|
case "ConflictingTypes":
|
|
6757
5266
|
case "com.amazonaws.route53#ConflictingTypes":
|
|
6758
|
-
|
|
6759
|
-
...(await deserializeAws_restXmlConflictingTypesResponse(parsedOutput, context)),
|
|
6760
|
-
name: errorCode,
|
|
6761
|
-
$metadata: deserializeMetadata(output),
|
|
6762
|
-
};
|
|
6763
|
-
break;
|
|
5267
|
+
throw await deserializeAws_restXmlConflictingTypesResponse(parsedOutput, context);
|
|
6764
5268
|
case "InvalidInput":
|
|
6765
5269
|
case "com.amazonaws.route53#InvalidInput":
|
|
6766
|
-
|
|
6767
|
-
...(await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context)),
|
|
6768
|
-
name: errorCode,
|
|
6769
|
-
$metadata: deserializeMetadata(output),
|
|
6770
|
-
};
|
|
6771
|
-
break;
|
|
5270
|
+
throw await deserializeAws_restXmlInvalidInputResponse(parsedOutput, context);
|
|
6772
5271
|
case "NoSuchTrafficPolicy":
|
|
6773
5272
|
case "com.amazonaws.route53#NoSuchTrafficPolicy":
|
|
6774
|
-
|
|
6775
|
-
...(await deserializeAws_restXmlNoSuchTrafficPolicyResponse(parsedOutput, context)),
|
|
6776
|
-
name: errorCode,
|
|
6777
|
-
$metadata: deserializeMetadata(output),
|
|
6778
|
-
};
|
|
6779
|
-
break;
|
|
5273
|
+
throw await deserializeAws_restXmlNoSuchTrafficPolicyResponse(parsedOutput, context);
|
|
6780
5274
|
case "NoSuchTrafficPolicyInstance":
|
|
6781
5275
|
case "com.amazonaws.route53#NoSuchTrafficPolicyInstance":
|
|
6782
|
-
|
|
6783
|
-
...(await deserializeAws_restXmlNoSuchTrafficPolicyInstanceResponse(parsedOutput, context)),
|
|
6784
|
-
name: errorCode,
|
|
6785
|
-
$metadata: deserializeMetadata(output),
|
|
6786
|
-
};
|
|
6787
|
-
break;
|
|
5276
|
+
throw await deserializeAws_restXmlNoSuchTrafficPolicyInstanceResponse(parsedOutput, context);
|
|
6788
5277
|
case "PriorRequestNotComplete":
|
|
6789
5278
|
case "com.amazonaws.route53#PriorRequestNotComplete":
|
|
6790
|
-
|
|
6791
|
-
...(await deserializeAws_restXmlPriorRequestNotCompleteResponse(parsedOutput, context)),
|
|
6792
|
-
name: errorCode,
|
|
6793
|
-
$metadata: deserializeMetadata(output),
|
|
6794
|
-
};
|
|
6795
|
-
break;
|
|
5279
|
+
throw await deserializeAws_restXmlPriorRequestNotCompleteResponse(parsedOutput, context);
|
|
6796
5280
|
default:
|
|
6797
5281
|
const parsedBody = parsedOutput.body;
|
|
6798
|
-
|
|
6799
|
-
|
|
6800
|
-
...parsedBody.Error,
|
|
6801
|
-
name: `${errorCode}`,
|
|
6802
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
5282
|
+
response = new Route53ServiceException_1.Route53ServiceException({
|
|
5283
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
6803
5284
|
$fault: "client",
|
|
6804
5285
|
$metadata: deserializeMetadata(output),
|
|
6805
|
-
};
|
|
5286
|
+
});
|
|
5287
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
6806
5288
|
}
|
|
6807
|
-
const message = response.message || response.Message || errorCode;
|
|
6808
|
-
response.message = message;
|
|
6809
|
-
delete response.Message;
|
|
6810
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
6811
5289
|
};
|
|
6812
5290
|
const deserializeAws_restXmlConcurrentModificationResponse = async (parsedOutput, context) => {
|
|
6813
|
-
const contents = {
|
|
6814
|
-
name: "ConcurrentModification",
|
|
6815
|
-
$fault: "client",
|
|
6816
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
6817
|
-
message: undefined,
|
|
6818
|
-
};
|
|
5291
|
+
const contents = {};
|
|
6819
5292
|
const data = parsedOutput.body.Error;
|
|
6820
5293
|
if (data["message"] !== undefined) {
|
|
6821
5294
|
contents.message = smithy_client_1.expectString(data["message"]);
|
|
6822
5295
|
}
|
|
6823
|
-
|
|
5296
|
+
const exception = new models_0_1.ConcurrentModification({
|
|
5297
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
5298
|
+
...contents,
|
|
5299
|
+
});
|
|
5300
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body.Error);
|
|
6824
5301
|
};
|
|
6825
5302
|
const deserializeAws_restXmlConflictingDomainExistsResponse = async (parsedOutput, context) => {
|
|
6826
|
-
const contents = {
|
|
6827
|
-
name: "ConflictingDomainExists",
|
|
6828
|
-
$fault: "client",
|
|
6829
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
6830
|
-
message: undefined,
|
|
6831
|
-
};
|
|
5303
|
+
const contents = {};
|
|
6832
5304
|
const data = parsedOutput.body.Error;
|
|
6833
5305
|
if (data["message"] !== undefined) {
|
|
6834
5306
|
contents.message = smithy_client_1.expectString(data["message"]);
|
|
6835
5307
|
}
|
|
6836
|
-
|
|
5308
|
+
const exception = new models_0_1.ConflictingDomainExists({
|
|
5309
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
5310
|
+
...contents,
|
|
5311
|
+
});
|
|
5312
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body.Error);
|
|
6837
5313
|
};
|
|
6838
5314
|
const deserializeAws_restXmlConflictingTypesResponse = async (parsedOutput, context) => {
|
|
6839
|
-
const contents = {
|
|
6840
|
-
name: "ConflictingTypes",
|
|
6841
|
-
$fault: "client",
|
|
6842
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
6843
|
-
message: undefined,
|
|
6844
|
-
};
|
|
5315
|
+
const contents = {};
|
|
6845
5316
|
const data = parsedOutput.body.Error;
|
|
6846
5317
|
if (data["message"] !== undefined) {
|
|
6847
5318
|
contents.message = smithy_client_1.expectString(data["message"]);
|
|
6848
5319
|
}
|
|
6849
|
-
|
|
5320
|
+
const exception = new models_0_1.ConflictingTypes({
|
|
5321
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
5322
|
+
...contents,
|
|
5323
|
+
});
|
|
5324
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body.Error);
|
|
6850
5325
|
};
|
|
6851
5326
|
const deserializeAws_restXmlDelegationSetAlreadyCreatedResponse = async (parsedOutput, context) => {
|
|
6852
|
-
const contents = {
|
|
6853
|
-
name: "DelegationSetAlreadyCreated",
|
|
6854
|
-
$fault: "client",
|
|
6855
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
6856
|
-
message: undefined,
|
|
6857
|
-
};
|
|
5327
|
+
const contents = {};
|
|
6858
5328
|
const data = parsedOutput.body.Error;
|
|
6859
5329
|
if (data["message"] !== undefined) {
|
|
6860
5330
|
contents.message = smithy_client_1.expectString(data["message"]);
|
|
6861
5331
|
}
|
|
6862
|
-
|
|
5332
|
+
const exception = new models_0_1.DelegationSetAlreadyCreated({
|
|
5333
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
5334
|
+
...contents,
|
|
5335
|
+
});
|
|
5336
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body.Error);
|
|
6863
5337
|
};
|
|
6864
5338
|
const deserializeAws_restXmlDelegationSetAlreadyReusableResponse = async (parsedOutput, context) => {
|
|
6865
|
-
const contents = {
|
|
6866
|
-
name: "DelegationSetAlreadyReusable",
|
|
6867
|
-
$fault: "client",
|
|
6868
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
6869
|
-
message: undefined,
|
|
6870
|
-
};
|
|
5339
|
+
const contents = {};
|
|
6871
5340
|
const data = parsedOutput.body.Error;
|
|
6872
5341
|
if (data["message"] !== undefined) {
|
|
6873
5342
|
contents.message = smithy_client_1.expectString(data["message"]);
|
|
6874
5343
|
}
|
|
6875
|
-
|
|
5344
|
+
const exception = new models_0_1.DelegationSetAlreadyReusable({
|
|
5345
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
5346
|
+
...contents,
|
|
5347
|
+
});
|
|
5348
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body.Error);
|
|
6876
5349
|
};
|
|
6877
5350
|
const deserializeAws_restXmlDelegationSetInUseResponse = async (parsedOutput, context) => {
|
|
6878
|
-
const contents = {
|
|
6879
|
-
name: "DelegationSetInUse",
|
|
6880
|
-
$fault: "client",
|
|
6881
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
6882
|
-
message: undefined,
|
|
6883
|
-
};
|
|
5351
|
+
const contents = {};
|
|
6884
5352
|
const data = parsedOutput.body.Error;
|
|
6885
5353
|
if (data["message"] !== undefined) {
|
|
6886
5354
|
contents.message = smithy_client_1.expectString(data["message"]);
|
|
6887
5355
|
}
|
|
6888
|
-
|
|
5356
|
+
const exception = new models_0_1.DelegationSetInUse({
|
|
5357
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
5358
|
+
...contents,
|
|
5359
|
+
});
|
|
5360
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body.Error);
|
|
6889
5361
|
};
|
|
6890
5362
|
const deserializeAws_restXmlDelegationSetNotAvailableResponse = async (parsedOutput, context) => {
|
|
6891
|
-
const contents = {
|
|
6892
|
-
name: "DelegationSetNotAvailable",
|
|
6893
|
-
$fault: "client",
|
|
6894
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
6895
|
-
message: undefined,
|
|
6896
|
-
};
|
|
5363
|
+
const contents = {};
|
|
6897
5364
|
const data = parsedOutput.body.Error;
|
|
6898
5365
|
if (data["message"] !== undefined) {
|
|
6899
5366
|
contents.message = smithy_client_1.expectString(data["message"]);
|
|
6900
5367
|
}
|
|
6901
|
-
|
|
5368
|
+
const exception = new models_0_1.DelegationSetNotAvailable({
|
|
5369
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
5370
|
+
...contents,
|
|
5371
|
+
});
|
|
5372
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body.Error);
|
|
6902
5373
|
};
|
|
6903
5374
|
const deserializeAws_restXmlDelegationSetNotReusableResponse = async (parsedOutput, context) => {
|
|
6904
|
-
const contents = {
|
|
6905
|
-
name: "DelegationSetNotReusable",
|
|
6906
|
-
$fault: "client",
|
|
6907
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
6908
|
-
message: undefined,
|
|
6909
|
-
};
|
|
5375
|
+
const contents = {};
|
|
6910
5376
|
const data = parsedOutput.body.Error;
|
|
6911
5377
|
if (data["message"] !== undefined) {
|
|
6912
5378
|
contents.message = smithy_client_1.expectString(data["message"]);
|
|
6913
5379
|
}
|
|
6914
|
-
|
|
5380
|
+
const exception = new models_0_1.DelegationSetNotReusable({
|
|
5381
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
5382
|
+
...contents,
|
|
5383
|
+
});
|
|
5384
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body.Error);
|
|
6915
5385
|
};
|
|
6916
5386
|
const deserializeAws_restXmlDNSSECNotFoundResponse = async (parsedOutput, context) => {
|
|
6917
|
-
const contents = {
|
|
6918
|
-
name: "DNSSECNotFound",
|
|
6919
|
-
$fault: "client",
|
|
6920
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
6921
|
-
message: undefined,
|
|
6922
|
-
};
|
|
5387
|
+
const contents = {};
|
|
6923
5388
|
const data = parsedOutput.body.Error;
|
|
6924
5389
|
if (data["message"] !== undefined) {
|
|
6925
5390
|
contents.message = smithy_client_1.expectString(data["message"]);
|
|
6926
5391
|
}
|
|
6927
|
-
|
|
5392
|
+
const exception = new models_0_1.DNSSECNotFound({
|
|
5393
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
5394
|
+
...contents,
|
|
5395
|
+
});
|
|
5396
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body.Error);
|
|
6928
5397
|
};
|
|
6929
5398
|
const deserializeAws_restXmlHealthCheckAlreadyExistsResponse = async (parsedOutput, context) => {
|
|
6930
|
-
const contents = {
|
|
6931
|
-
name: "HealthCheckAlreadyExists",
|
|
6932
|
-
$fault: "client",
|
|
6933
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
6934
|
-
message: undefined,
|
|
6935
|
-
};
|
|
5399
|
+
const contents = {};
|
|
6936
5400
|
const data = parsedOutput.body.Error;
|
|
6937
5401
|
if (data["message"] !== undefined) {
|
|
6938
5402
|
contents.message = smithy_client_1.expectString(data["message"]);
|
|
6939
5403
|
}
|
|
6940
|
-
|
|
5404
|
+
const exception = new models_0_1.HealthCheckAlreadyExists({
|
|
5405
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
5406
|
+
...contents,
|
|
5407
|
+
});
|
|
5408
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body.Error);
|
|
6941
5409
|
};
|
|
6942
5410
|
const deserializeAws_restXmlHealthCheckInUseResponse = async (parsedOutput, context) => {
|
|
6943
|
-
const contents = {
|
|
6944
|
-
name: "HealthCheckInUse",
|
|
6945
|
-
$fault: "client",
|
|
6946
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
6947
|
-
message: undefined,
|
|
6948
|
-
};
|
|
5411
|
+
const contents = {};
|
|
6949
5412
|
const data = parsedOutput.body.Error;
|
|
6950
5413
|
if (data["message"] !== undefined) {
|
|
6951
5414
|
contents.message = smithy_client_1.expectString(data["message"]);
|
|
6952
5415
|
}
|
|
6953
|
-
|
|
5416
|
+
const exception = new models_0_1.HealthCheckInUse({
|
|
5417
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
5418
|
+
...contents,
|
|
5419
|
+
});
|
|
5420
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body.Error);
|
|
6954
5421
|
};
|
|
6955
5422
|
const deserializeAws_restXmlHealthCheckVersionMismatchResponse = async (parsedOutput, context) => {
|
|
6956
|
-
const contents = {
|
|
6957
|
-
name: "HealthCheckVersionMismatch",
|
|
6958
|
-
$fault: "client",
|
|
6959
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
6960
|
-
message: undefined,
|
|
6961
|
-
};
|
|
5423
|
+
const contents = {};
|
|
6962
5424
|
const data = parsedOutput.body.Error;
|
|
6963
5425
|
if (data["message"] !== undefined) {
|
|
6964
5426
|
contents.message = smithy_client_1.expectString(data["message"]);
|
|
6965
5427
|
}
|
|
6966
|
-
|
|
5428
|
+
const exception = new models_0_1.HealthCheckVersionMismatch({
|
|
5429
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
5430
|
+
...contents,
|
|
5431
|
+
});
|
|
5432
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body.Error);
|
|
6967
5433
|
};
|
|
6968
5434
|
const deserializeAws_restXmlHostedZoneAlreadyExistsResponse = async (parsedOutput, context) => {
|
|
6969
|
-
const contents = {
|
|
6970
|
-
name: "HostedZoneAlreadyExists",
|
|
6971
|
-
$fault: "client",
|
|
6972
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
6973
|
-
message: undefined,
|
|
6974
|
-
};
|
|
5435
|
+
const contents = {};
|
|
6975
5436
|
const data = parsedOutput.body.Error;
|
|
6976
5437
|
if (data["message"] !== undefined) {
|
|
6977
5438
|
contents.message = smithy_client_1.expectString(data["message"]);
|
|
6978
5439
|
}
|
|
6979
|
-
|
|
5440
|
+
const exception = new models_0_1.HostedZoneAlreadyExists({
|
|
5441
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
5442
|
+
...contents,
|
|
5443
|
+
});
|
|
5444
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body.Error);
|
|
6980
5445
|
};
|
|
6981
5446
|
const deserializeAws_restXmlHostedZoneNotEmptyResponse = async (parsedOutput, context) => {
|
|
6982
|
-
const contents = {
|
|
6983
|
-
name: "HostedZoneNotEmpty",
|
|
6984
|
-
$fault: "client",
|
|
6985
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
6986
|
-
message: undefined,
|
|
6987
|
-
};
|
|
5447
|
+
const contents = {};
|
|
6988
5448
|
const data = parsedOutput.body.Error;
|
|
6989
5449
|
if (data["message"] !== undefined) {
|
|
6990
5450
|
contents.message = smithy_client_1.expectString(data["message"]);
|
|
6991
5451
|
}
|
|
6992
|
-
|
|
5452
|
+
const exception = new models_0_1.HostedZoneNotEmpty({
|
|
5453
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
5454
|
+
...contents,
|
|
5455
|
+
});
|
|
5456
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body.Error);
|
|
6993
5457
|
};
|
|
6994
5458
|
const deserializeAws_restXmlHostedZoneNotFoundResponse = async (parsedOutput, context) => {
|
|
6995
|
-
const contents = {
|
|
6996
|
-
name: "HostedZoneNotFound",
|
|
6997
|
-
$fault: "client",
|
|
6998
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
6999
|
-
message: undefined,
|
|
7000
|
-
};
|
|
5459
|
+
const contents = {};
|
|
7001
5460
|
const data = parsedOutput.body.Error;
|
|
7002
5461
|
if (data["message"] !== undefined) {
|
|
7003
5462
|
contents.message = smithy_client_1.expectString(data["message"]);
|
|
7004
5463
|
}
|
|
7005
|
-
|
|
5464
|
+
const exception = new models_0_1.HostedZoneNotFound({
|
|
5465
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
5466
|
+
...contents,
|
|
5467
|
+
});
|
|
5468
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body.Error);
|
|
7006
5469
|
};
|
|
7007
5470
|
const deserializeAws_restXmlHostedZoneNotPrivateResponse = async (parsedOutput, context) => {
|
|
7008
|
-
const contents = {
|
|
7009
|
-
name: "HostedZoneNotPrivate",
|
|
7010
|
-
$fault: "client",
|
|
7011
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
7012
|
-
message: undefined,
|
|
7013
|
-
};
|
|
5471
|
+
const contents = {};
|
|
7014
5472
|
const data = parsedOutput.body.Error;
|
|
7015
5473
|
if (data["message"] !== undefined) {
|
|
7016
5474
|
contents.message = smithy_client_1.expectString(data["message"]);
|
|
7017
5475
|
}
|
|
7018
|
-
|
|
5476
|
+
const exception = new models_0_1.HostedZoneNotPrivate({
|
|
5477
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
5478
|
+
...contents,
|
|
5479
|
+
});
|
|
5480
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body.Error);
|
|
7019
5481
|
};
|
|
7020
5482
|
const deserializeAws_restXmlHostedZonePartiallyDelegatedResponse = async (parsedOutput, context) => {
|
|
7021
|
-
const contents = {
|
|
7022
|
-
name: "HostedZonePartiallyDelegated",
|
|
7023
|
-
$fault: "client",
|
|
7024
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
7025
|
-
message: undefined,
|
|
7026
|
-
};
|
|
5483
|
+
const contents = {};
|
|
7027
5484
|
const data = parsedOutput.body.Error;
|
|
7028
5485
|
if (data["message"] !== undefined) {
|
|
7029
5486
|
contents.message = smithy_client_1.expectString(data["message"]);
|
|
7030
5487
|
}
|
|
7031
|
-
|
|
5488
|
+
const exception = new models_0_1.HostedZonePartiallyDelegated({
|
|
5489
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
5490
|
+
...contents,
|
|
5491
|
+
});
|
|
5492
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body.Error);
|
|
7032
5493
|
};
|
|
7033
5494
|
const deserializeAws_restXmlIncompatibleVersionResponse = async (parsedOutput, context) => {
|
|
7034
|
-
const contents = {
|
|
7035
|
-
name: "IncompatibleVersion",
|
|
7036
|
-
$fault: "client",
|
|
7037
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
7038
|
-
message: undefined,
|
|
7039
|
-
};
|
|
5495
|
+
const contents = {};
|
|
7040
5496
|
const data = parsedOutput.body.Error;
|
|
7041
5497
|
if (data["message"] !== undefined) {
|
|
7042
5498
|
contents.message = smithy_client_1.expectString(data["message"]);
|
|
7043
5499
|
}
|
|
7044
|
-
|
|
5500
|
+
const exception = new models_0_1.IncompatibleVersion({
|
|
5501
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
5502
|
+
...contents,
|
|
5503
|
+
});
|
|
5504
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body.Error);
|
|
7045
5505
|
};
|
|
7046
5506
|
const deserializeAws_restXmlInsufficientCloudWatchLogsResourcePolicyResponse = async (parsedOutput, context) => {
|
|
7047
|
-
const contents = {
|
|
7048
|
-
name: "InsufficientCloudWatchLogsResourcePolicy",
|
|
7049
|
-
$fault: "client",
|
|
7050
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
7051
|
-
message: undefined,
|
|
7052
|
-
};
|
|
5507
|
+
const contents = {};
|
|
7053
5508
|
const data = parsedOutput.body.Error;
|
|
7054
5509
|
if (data["message"] !== undefined) {
|
|
7055
5510
|
contents.message = smithy_client_1.expectString(data["message"]);
|
|
7056
5511
|
}
|
|
7057
|
-
|
|
5512
|
+
const exception = new models_0_1.InsufficientCloudWatchLogsResourcePolicy({
|
|
5513
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
5514
|
+
...contents,
|
|
5515
|
+
});
|
|
5516
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body.Error);
|
|
7058
5517
|
};
|
|
7059
5518
|
const deserializeAws_restXmlInvalidArgumentResponse = async (parsedOutput, context) => {
|
|
7060
|
-
const contents = {
|
|
7061
|
-
name: "InvalidArgument",
|
|
7062
|
-
$fault: "client",
|
|
7063
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
7064
|
-
message: undefined,
|
|
7065
|
-
};
|
|
5519
|
+
const contents = {};
|
|
7066
5520
|
const data = parsedOutput.body.Error;
|
|
7067
5521
|
if (data["message"] !== undefined) {
|
|
7068
5522
|
contents.message = smithy_client_1.expectString(data["message"]);
|
|
7069
5523
|
}
|
|
7070
|
-
|
|
5524
|
+
const exception = new models_0_1.InvalidArgument({
|
|
5525
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
5526
|
+
...contents,
|
|
5527
|
+
});
|
|
5528
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body.Error);
|
|
7071
5529
|
};
|
|
7072
5530
|
const deserializeAws_restXmlInvalidChangeBatchResponse = async (parsedOutput, context) => {
|
|
7073
|
-
const contents = {
|
|
7074
|
-
name: "InvalidChangeBatch",
|
|
7075
|
-
$fault: "client",
|
|
7076
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
7077
|
-
message: undefined,
|
|
7078
|
-
messages: undefined,
|
|
7079
|
-
};
|
|
5531
|
+
const contents = {};
|
|
7080
5532
|
const data = parsedOutput.body.Error;
|
|
7081
5533
|
if (data["message"] !== undefined) {
|
|
7082
5534
|
contents.message = smithy_client_1.expectString(data["message"]);
|
|
@@ -7087,553 +5539,515 @@ const deserializeAws_restXmlInvalidChangeBatchResponse = async (parsedOutput, co
|
|
|
7087
5539
|
if (data["messages"] !== undefined && data["messages"]["Message"] !== undefined) {
|
|
7088
5540
|
contents.messages = deserializeAws_restXmlErrorMessages(smithy_client_1.getArrayIfSingleItem(data["messages"]["Message"]), context);
|
|
7089
5541
|
}
|
|
7090
|
-
|
|
5542
|
+
const exception = new models_0_1.InvalidChangeBatch({
|
|
5543
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
5544
|
+
...contents,
|
|
5545
|
+
});
|
|
5546
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body.Error);
|
|
7091
5547
|
};
|
|
7092
5548
|
const deserializeAws_restXmlInvalidDomainNameResponse = async (parsedOutput, context) => {
|
|
7093
|
-
const contents = {
|
|
7094
|
-
name: "InvalidDomainName",
|
|
7095
|
-
$fault: "client",
|
|
7096
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
7097
|
-
message: undefined,
|
|
7098
|
-
};
|
|
5549
|
+
const contents = {};
|
|
7099
5550
|
const data = parsedOutput.body.Error;
|
|
7100
5551
|
if (data["message"] !== undefined) {
|
|
7101
5552
|
contents.message = smithy_client_1.expectString(data["message"]);
|
|
7102
5553
|
}
|
|
7103
|
-
|
|
5554
|
+
const exception = new models_0_1.InvalidDomainName({
|
|
5555
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
5556
|
+
...contents,
|
|
5557
|
+
});
|
|
5558
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body.Error);
|
|
7104
5559
|
};
|
|
7105
5560
|
const deserializeAws_restXmlInvalidInputResponse = async (parsedOutput, context) => {
|
|
7106
|
-
const contents = {
|
|
7107
|
-
name: "InvalidInput",
|
|
7108
|
-
$fault: "client",
|
|
7109
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
7110
|
-
message: undefined,
|
|
7111
|
-
};
|
|
5561
|
+
const contents = {};
|
|
7112
5562
|
const data = parsedOutput.body.Error;
|
|
7113
5563
|
if (data["message"] !== undefined) {
|
|
7114
5564
|
contents.message = smithy_client_1.expectString(data["message"]);
|
|
7115
5565
|
}
|
|
7116
|
-
|
|
5566
|
+
const exception = new models_0_1.InvalidInput({
|
|
5567
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
5568
|
+
...contents,
|
|
5569
|
+
});
|
|
5570
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body.Error);
|
|
7117
5571
|
};
|
|
7118
5572
|
const deserializeAws_restXmlInvalidKeySigningKeyNameResponse = async (parsedOutput, context) => {
|
|
7119
|
-
const contents = {
|
|
7120
|
-
name: "InvalidKeySigningKeyName",
|
|
7121
|
-
$fault: "client",
|
|
7122
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
7123
|
-
message: undefined,
|
|
7124
|
-
};
|
|
5573
|
+
const contents = {};
|
|
7125
5574
|
const data = parsedOutput.body.Error;
|
|
7126
5575
|
if (data["message"] !== undefined) {
|
|
7127
5576
|
contents.message = smithy_client_1.expectString(data["message"]);
|
|
7128
5577
|
}
|
|
7129
|
-
|
|
5578
|
+
const exception = new models_0_1.InvalidKeySigningKeyName({
|
|
5579
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
5580
|
+
...contents,
|
|
5581
|
+
});
|
|
5582
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body.Error);
|
|
7130
5583
|
};
|
|
7131
5584
|
const deserializeAws_restXmlInvalidKeySigningKeyStatusResponse = async (parsedOutput, context) => {
|
|
7132
|
-
const contents = {
|
|
7133
|
-
name: "InvalidKeySigningKeyStatus",
|
|
7134
|
-
$fault: "client",
|
|
7135
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
7136
|
-
message: undefined,
|
|
7137
|
-
};
|
|
5585
|
+
const contents = {};
|
|
7138
5586
|
const data = parsedOutput.body.Error;
|
|
7139
5587
|
if (data["message"] !== undefined) {
|
|
7140
5588
|
contents.message = smithy_client_1.expectString(data["message"]);
|
|
7141
5589
|
}
|
|
7142
|
-
|
|
5590
|
+
const exception = new models_0_1.InvalidKeySigningKeyStatus({
|
|
5591
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
5592
|
+
...contents,
|
|
5593
|
+
});
|
|
5594
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body.Error);
|
|
7143
5595
|
};
|
|
7144
5596
|
const deserializeAws_restXmlInvalidKMSArnResponse = async (parsedOutput, context) => {
|
|
7145
|
-
const contents = {
|
|
7146
|
-
name: "InvalidKMSArn",
|
|
7147
|
-
$fault: "client",
|
|
7148
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
7149
|
-
message: undefined,
|
|
7150
|
-
};
|
|
5597
|
+
const contents = {};
|
|
7151
5598
|
const data = parsedOutput.body.Error;
|
|
7152
5599
|
if (data["message"] !== undefined) {
|
|
7153
5600
|
contents.message = smithy_client_1.expectString(data["message"]);
|
|
7154
5601
|
}
|
|
7155
|
-
|
|
5602
|
+
const exception = new models_0_1.InvalidKMSArn({
|
|
5603
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
5604
|
+
...contents,
|
|
5605
|
+
});
|
|
5606
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body.Error);
|
|
7156
5607
|
};
|
|
7157
5608
|
const deserializeAws_restXmlInvalidPaginationTokenResponse = async (parsedOutput, context) => {
|
|
7158
|
-
const contents = {
|
|
7159
|
-
name: "InvalidPaginationToken",
|
|
7160
|
-
$fault: "client",
|
|
7161
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
7162
|
-
message: undefined,
|
|
7163
|
-
};
|
|
5609
|
+
const contents = {};
|
|
7164
5610
|
const data = parsedOutput.body.Error;
|
|
7165
5611
|
if (data["message"] !== undefined) {
|
|
7166
5612
|
contents.message = smithy_client_1.expectString(data["message"]);
|
|
7167
5613
|
}
|
|
7168
|
-
|
|
5614
|
+
const exception = new models_0_1.InvalidPaginationToken({
|
|
5615
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
5616
|
+
...contents,
|
|
5617
|
+
});
|
|
5618
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body.Error);
|
|
7169
5619
|
};
|
|
7170
5620
|
const deserializeAws_restXmlInvalidSigningStatusResponse = async (parsedOutput, context) => {
|
|
7171
|
-
const contents = {
|
|
7172
|
-
name: "InvalidSigningStatus",
|
|
7173
|
-
$fault: "client",
|
|
7174
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
7175
|
-
message: undefined,
|
|
7176
|
-
};
|
|
5621
|
+
const contents = {};
|
|
7177
5622
|
const data = parsedOutput.body.Error;
|
|
7178
5623
|
if (data["message"] !== undefined) {
|
|
7179
5624
|
contents.message = smithy_client_1.expectString(data["message"]);
|
|
7180
5625
|
}
|
|
7181
|
-
|
|
5626
|
+
const exception = new models_0_1.InvalidSigningStatus({
|
|
5627
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
5628
|
+
...contents,
|
|
5629
|
+
});
|
|
5630
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body.Error);
|
|
7182
5631
|
};
|
|
7183
5632
|
const deserializeAws_restXmlInvalidTrafficPolicyDocumentResponse = async (parsedOutput, context) => {
|
|
7184
|
-
const contents = {
|
|
7185
|
-
name: "InvalidTrafficPolicyDocument",
|
|
7186
|
-
$fault: "client",
|
|
7187
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
7188
|
-
message: undefined,
|
|
7189
|
-
};
|
|
5633
|
+
const contents = {};
|
|
7190
5634
|
const data = parsedOutput.body.Error;
|
|
7191
5635
|
if (data["message"] !== undefined) {
|
|
7192
5636
|
contents.message = smithy_client_1.expectString(data["message"]);
|
|
7193
5637
|
}
|
|
7194
|
-
|
|
5638
|
+
const exception = new models_0_1.InvalidTrafficPolicyDocument({
|
|
5639
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
5640
|
+
...contents,
|
|
5641
|
+
});
|
|
5642
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body.Error);
|
|
7195
5643
|
};
|
|
7196
5644
|
const deserializeAws_restXmlInvalidVPCIdResponse = async (parsedOutput, context) => {
|
|
7197
|
-
const contents = {
|
|
7198
|
-
name: "InvalidVPCId",
|
|
7199
|
-
$fault: "client",
|
|
7200
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
7201
|
-
message: undefined,
|
|
7202
|
-
};
|
|
5645
|
+
const contents = {};
|
|
7203
5646
|
const data = parsedOutput.body.Error;
|
|
7204
5647
|
if (data["message"] !== undefined) {
|
|
7205
5648
|
contents.message = smithy_client_1.expectString(data["message"]);
|
|
7206
5649
|
}
|
|
7207
|
-
|
|
5650
|
+
const exception = new models_0_1.InvalidVPCId({
|
|
5651
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
5652
|
+
...contents,
|
|
5653
|
+
});
|
|
5654
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body.Error);
|
|
7208
5655
|
};
|
|
7209
5656
|
const deserializeAws_restXmlKeySigningKeyAlreadyExistsResponse = async (parsedOutput, context) => {
|
|
7210
|
-
const contents = {
|
|
7211
|
-
name: "KeySigningKeyAlreadyExists",
|
|
7212
|
-
$fault: "client",
|
|
7213
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
7214
|
-
message: undefined,
|
|
7215
|
-
};
|
|
5657
|
+
const contents = {};
|
|
7216
5658
|
const data = parsedOutput.body.Error;
|
|
7217
5659
|
if (data["message"] !== undefined) {
|
|
7218
5660
|
contents.message = smithy_client_1.expectString(data["message"]);
|
|
7219
5661
|
}
|
|
7220
|
-
|
|
5662
|
+
const exception = new models_0_1.KeySigningKeyAlreadyExists({
|
|
5663
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
5664
|
+
...contents,
|
|
5665
|
+
});
|
|
5666
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body.Error);
|
|
7221
5667
|
};
|
|
7222
5668
|
const deserializeAws_restXmlKeySigningKeyInParentDSRecordResponse = async (parsedOutput, context) => {
|
|
7223
|
-
const contents = {
|
|
7224
|
-
name: "KeySigningKeyInParentDSRecord",
|
|
7225
|
-
$fault: "client",
|
|
7226
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
7227
|
-
message: undefined,
|
|
7228
|
-
};
|
|
5669
|
+
const contents = {};
|
|
7229
5670
|
const data = parsedOutput.body.Error;
|
|
7230
5671
|
if (data["message"] !== undefined) {
|
|
7231
5672
|
contents.message = smithy_client_1.expectString(data["message"]);
|
|
7232
5673
|
}
|
|
7233
|
-
|
|
5674
|
+
const exception = new models_0_1.KeySigningKeyInParentDSRecord({
|
|
5675
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
5676
|
+
...contents,
|
|
5677
|
+
});
|
|
5678
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body.Error);
|
|
7234
5679
|
};
|
|
7235
5680
|
const deserializeAws_restXmlKeySigningKeyInUseResponse = async (parsedOutput, context) => {
|
|
7236
|
-
const contents = {
|
|
7237
|
-
name: "KeySigningKeyInUse",
|
|
7238
|
-
$fault: "client",
|
|
7239
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
7240
|
-
message: undefined,
|
|
7241
|
-
};
|
|
5681
|
+
const contents = {};
|
|
7242
5682
|
const data = parsedOutput.body.Error;
|
|
7243
5683
|
if (data["message"] !== undefined) {
|
|
7244
5684
|
contents.message = smithy_client_1.expectString(data["message"]);
|
|
7245
5685
|
}
|
|
7246
|
-
|
|
5686
|
+
const exception = new models_0_1.KeySigningKeyInUse({
|
|
5687
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
5688
|
+
...contents,
|
|
5689
|
+
});
|
|
5690
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body.Error);
|
|
7247
5691
|
};
|
|
7248
5692
|
const deserializeAws_restXmlKeySigningKeyWithActiveStatusNotFoundResponse = async (parsedOutput, context) => {
|
|
7249
|
-
const contents = {
|
|
7250
|
-
name: "KeySigningKeyWithActiveStatusNotFound",
|
|
7251
|
-
$fault: "client",
|
|
7252
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
7253
|
-
message: undefined,
|
|
7254
|
-
};
|
|
5693
|
+
const contents = {};
|
|
7255
5694
|
const data = parsedOutput.body.Error;
|
|
7256
5695
|
if (data["message"] !== undefined) {
|
|
7257
5696
|
contents.message = smithy_client_1.expectString(data["message"]);
|
|
7258
5697
|
}
|
|
7259
|
-
|
|
5698
|
+
const exception = new models_0_1.KeySigningKeyWithActiveStatusNotFound({
|
|
5699
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
5700
|
+
...contents,
|
|
5701
|
+
});
|
|
5702
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body.Error);
|
|
7260
5703
|
};
|
|
7261
5704
|
const deserializeAws_restXmlLastVPCAssociationResponse = async (parsedOutput, context) => {
|
|
7262
|
-
const contents = {
|
|
7263
|
-
name: "LastVPCAssociation",
|
|
7264
|
-
$fault: "client",
|
|
7265
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
7266
|
-
message: undefined,
|
|
7267
|
-
};
|
|
5705
|
+
const contents = {};
|
|
7268
5706
|
const data = parsedOutput.body.Error;
|
|
7269
5707
|
if (data["message"] !== undefined) {
|
|
7270
5708
|
contents.message = smithy_client_1.expectString(data["message"]);
|
|
7271
5709
|
}
|
|
7272
|
-
|
|
5710
|
+
const exception = new models_0_1.LastVPCAssociation({
|
|
5711
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
5712
|
+
...contents,
|
|
5713
|
+
});
|
|
5714
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body.Error);
|
|
7273
5715
|
};
|
|
7274
5716
|
const deserializeAws_restXmlLimitsExceededResponse = async (parsedOutput, context) => {
|
|
7275
|
-
const contents = {
|
|
7276
|
-
name: "LimitsExceeded",
|
|
7277
|
-
$fault: "client",
|
|
7278
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
7279
|
-
message: undefined,
|
|
7280
|
-
};
|
|
5717
|
+
const contents = {};
|
|
7281
5718
|
const data = parsedOutput.body.Error;
|
|
7282
5719
|
if (data["message"] !== undefined) {
|
|
7283
5720
|
contents.message = smithy_client_1.expectString(data["message"]);
|
|
7284
5721
|
}
|
|
7285
|
-
|
|
5722
|
+
const exception = new models_0_1.LimitsExceeded({
|
|
5723
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
5724
|
+
...contents,
|
|
5725
|
+
});
|
|
5726
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body.Error);
|
|
7286
5727
|
};
|
|
7287
5728
|
const deserializeAws_restXmlNoSuchChangeResponse = async (parsedOutput, context) => {
|
|
7288
|
-
const contents = {
|
|
7289
|
-
name: "NoSuchChange",
|
|
7290
|
-
$fault: "client",
|
|
7291
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
7292
|
-
message: undefined,
|
|
7293
|
-
};
|
|
5729
|
+
const contents = {};
|
|
7294
5730
|
const data = parsedOutput.body.Error;
|
|
7295
5731
|
if (data["message"] !== undefined) {
|
|
7296
5732
|
contents.message = smithy_client_1.expectString(data["message"]);
|
|
7297
5733
|
}
|
|
7298
|
-
|
|
5734
|
+
const exception = new models_0_1.NoSuchChange({
|
|
5735
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
5736
|
+
...contents,
|
|
5737
|
+
});
|
|
5738
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body.Error);
|
|
7299
5739
|
};
|
|
7300
5740
|
const deserializeAws_restXmlNoSuchCloudWatchLogsLogGroupResponse = async (parsedOutput, context) => {
|
|
7301
|
-
const contents = {
|
|
7302
|
-
name: "NoSuchCloudWatchLogsLogGroup",
|
|
7303
|
-
$fault: "client",
|
|
7304
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
7305
|
-
message: undefined,
|
|
7306
|
-
};
|
|
5741
|
+
const contents = {};
|
|
7307
5742
|
const data = parsedOutput.body.Error;
|
|
7308
5743
|
if (data["message"] !== undefined) {
|
|
7309
5744
|
contents.message = smithy_client_1.expectString(data["message"]);
|
|
7310
5745
|
}
|
|
7311
|
-
|
|
5746
|
+
const exception = new models_0_1.NoSuchCloudWatchLogsLogGroup({
|
|
5747
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
5748
|
+
...contents,
|
|
5749
|
+
});
|
|
5750
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body.Error);
|
|
7312
5751
|
};
|
|
7313
5752
|
const deserializeAws_restXmlNoSuchDelegationSetResponse = async (parsedOutput, context) => {
|
|
7314
|
-
const contents = {
|
|
7315
|
-
name: "NoSuchDelegationSet",
|
|
7316
|
-
$fault: "client",
|
|
7317
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
7318
|
-
message: undefined,
|
|
7319
|
-
};
|
|
5753
|
+
const contents = {};
|
|
7320
5754
|
const data = parsedOutput.body.Error;
|
|
7321
5755
|
if (data["message"] !== undefined) {
|
|
7322
5756
|
contents.message = smithy_client_1.expectString(data["message"]);
|
|
7323
5757
|
}
|
|
7324
|
-
|
|
5758
|
+
const exception = new models_0_1.NoSuchDelegationSet({
|
|
5759
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
5760
|
+
...contents,
|
|
5761
|
+
});
|
|
5762
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body.Error);
|
|
7325
5763
|
};
|
|
7326
5764
|
const deserializeAws_restXmlNoSuchGeoLocationResponse = async (parsedOutput, context) => {
|
|
7327
|
-
const contents = {
|
|
7328
|
-
name: "NoSuchGeoLocation",
|
|
7329
|
-
$fault: "client",
|
|
7330
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
7331
|
-
message: undefined,
|
|
7332
|
-
};
|
|
5765
|
+
const contents = {};
|
|
7333
5766
|
const data = parsedOutput.body.Error;
|
|
7334
5767
|
if (data["message"] !== undefined) {
|
|
7335
5768
|
contents.message = smithy_client_1.expectString(data["message"]);
|
|
7336
5769
|
}
|
|
7337
|
-
|
|
5770
|
+
const exception = new models_0_1.NoSuchGeoLocation({
|
|
5771
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
5772
|
+
...contents,
|
|
5773
|
+
});
|
|
5774
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body.Error);
|
|
7338
5775
|
};
|
|
7339
5776
|
const deserializeAws_restXmlNoSuchHealthCheckResponse = async (parsedOutput, context) => {
|
|
7340
|
-
const contents = {
|
|
7341
|
-
name: "NoSuchHealthCheck",
|
|
7342
|
-
$fault: "client",
|
|
7343
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
7344
|
-
message: undefined,
|
|
7345
|
-
};
|
|
5777
|
+
const contents = {};
|
|
7346
5778
|
const data = parsedOutput.body.Error;
|
|
7347
5779
|
if (data["message"] !== undefined) {
|
|
7348
5780
|
contents.message = smithy_client_1.expectString(data["message"]);
|
|
7349
5781
|
}
|
|
7350
|
-
|
|
5782
|
+
const exception = new models_0_1.NoSuchHealthCheck({
|
|
5783
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
5784
|
+
...contents,
|
|
5785
|
+
});
|
|
5786
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body.Error);
|
|
7351
5787
|
};
|
|
7352
5788
|
const deserializeAws_restXmlNoSuchHostedZoneResponse = async (parsedOutput, context) => {
|
|
7353
|
-
const contents = {
|
|
7354
|
-
name: "NoSuchHostedZone",
|
|
7355
|
-
$fault: "client",
|
|
7356
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
7357
|
-
message: undefined,
|
|
7358
|
-
};
|
|
5789
|
+
const contents = {};
|
|
7359
5790
|
const data = parsedOutput.body.Error;
|
|
7360
5791
|
if (data["message"] !== undefined) {
|
|
7361
5792
|
contents.message = smithy_client_1.expectString(data["message"]);
|
|
7362
5793
|
}
|
|
7363
|
-
|
|
5794
|
+
const exception = new models_0_1.NoSuchHostedZone({
|
|
5795
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
5796
|
+
...contents,
|
|
5797
|
+
});
|
|
5798
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body.Error);
|
|
7364
5799
|
};
|
|
7365
5800
|
const deserializeAws_restXmlNoSuchKeySigningKeyResponse = async (parsedOutput, context) => {
|
|
7366
|
-
const contents = {
|
|
7367
|
-
name: "NoSuchKeySigningKey",
|
|
7368
|
-
$fault: "client",
|
|
7369
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
7370
|
-
message: undefined,
|
|
7371
|
-
};
|
|
5801
|
+
const contents = {};
|
|
7372
5802
|
const data = parsedOutput.body.Error;
|
|
7373
5803
|
if (data["message"] !== undefined) {
|
|
7374
5804
|
contents.message = smithy_client_1.expectString(data["message"]);
|
|
7375
5805
|
}
|
|
7376
|
-
|
|
5806
|
+
const exception = new models_0_1.NoSuchKeySigningKey({
|
|
5807
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
5808
|
+
...contents,
|
|
5809
|
+
});
|
|
5810
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body.Error);
|
|
7377
5811
|
};
|
|
7378
5812
|
const deserializeAws_restXmlNoSuchQueryLoggingConfigResponse = async (parsedOutput, context) => {
|
|
7379
|
-
const contents = {
|
|
7380
|
-
name: "NoSuchQueryLoggingConfig",
|
|
7381
|
-
$fault: "client",
|
|
7382
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
7383
|
-
message: undefined,
|
|
7384
|
-
};
|
|
5813
|
+
const contents = {};
|
|
7385
5814
|
const data = parsedOutput.body.Error;
|
|
7386
5815
|
if (data["message"] !== undefined) {
|
|
7387
5816
|
contents.message = smithy_client_1.expectString(data["message"]);
|
|
7388
5817
|
}
|
|
7389
|
-
|
|
5818
|
+
const exception = new models_0_1.NoSuchQueryLoggingConfig({
|
|
5819
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
5820
|
+
...contents,
|
|
5821
|
+
});
|
|
5822
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body.Error);
|
|
7390
5823
|
};
|
|
7391
5824
|
const deserializeAws_restXmlNoSuchTrafficPolicyResponse = async (parsedOutput, context) => {
|
|
7392
|
-
const contents = {
|
|
7393
|
-
name: "NoSuchTrafficPolicy",
|
|
7394
|
-
$fault: "client",
|
|
7395
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
7396
|
-
message: undefined,
|
|
7397
|
-
};
|
|
5825
|
+
const contents = {};
|
|
7398
5826
|
const data = parsedOutput.body.Error;
|
|
7399
5827
|
if (data["message"] !== undefined) {
|
|
7400
5828
|
contents.message = smithy_client_1.expectString(data["message"]);
|
|
7401
5829
|
}
|
|
7402
|
-
|
|
5830
|
+
const exception = new models_0_1.NoSuchTrafficPolicy({
|
|
5831
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
5832
|
+
...contents,
|
|
5833
|
+
});
|
|
5834
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body.Error);
|
|
7403
5835
|
};
|
|
7404
5836
|
const deserializeAws_restXmlNoSuchTrafficPolicyInstanceResponse = async (parsedOutput, context) => {
|
|
7405
|
-
const contents = {
|
|
7406
|
-
name: "NoSuchTrafficPolicyInstance",
|
|
7407
|
-
$fault: "client",
|
|
7408
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
7409
|
-
message: undefined,
|
|
7410
|
-
};
|
|
5837
|
+
const contents = {};
|
|
7411
5838
|
const data = parsedOutput.body.Error;
|
|
7412
5839
|
if (data["message"] !== undefined) {
|
|
7413
5840
|
contents.message = smithy_client_1.expectString(data["message"]);
|
|
7414
5841
|
}
|
|
7415
|
-
|
|
5842
|
+
const exception = new models_0_1.NoSuchTrafficPolicyInstance({
|
|
5843
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
5844
|
+
...contents,
|
|
5845
|
+
});
|
|
5846
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body.Error);
|
|
7416
5847
|
};
|
|
7417
5848
|
const deserializeAws_restXmlNotAuthorizedExceptionResponse = async (parsedOutput, context) => {
|
|
7418
|
-
const contents = {
|
|
7419
|
-
name: "NotAuthorizedException",
|
|
7420
|
-
$fault: "client",
|
|
7421
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
7422
|
-
message: undefined,
|
|
7423
|
-
};
|
|
5849
|
+
const contents = {};
|
|
7424
5850
|
const data = parsedOutput.body.Error;
|
|
7425
5851
|
if (data["message"] !== undefined) {
|
|
7426
5852
|
contents.message = smithy_client_1.expectString(data["message"]);
|
|
7427
5853
|
}
|
|
7428
|
-
|
|
5854
|
+
const exception = new models_0_1.NotAuthorizedException({
|
|
5855
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
5856
|
+
...contents,
|
|
5857
|
+
});
|
|
5858
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body.Error);
|
|
7429
5859
|
};
|
|
7430
5860
|
const deserializeAws_restXmlPriorRequestNotCompleteResponse = async (parsedOutput, context) => {
|
|
7431
|
-
const contents = {
|
|
7432
|
-
name: "PriorRequestNotComplete",
|
|
7433
|
-
$fault: "client",
|
|
7434
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
7435
|
-
message: undefined,
|
|
7436
|
-
};
|
|
5861
|
+
const contents = {};
|
|
7437
5862
|
const data = parsedOutput.body.Error;
|
|
7438
5863
|
if (data["message"] !== undefined) {
|
|
7439
5864
|
contents.message = smithy_client_1.expectString(data["message"]);
|
|
7440
5865
|
}
|
|
7441
|
-
|
|
5866
|
+
const exception = new models_0_1.PriorRequestNotComplete({
|
|
5867
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
5868
|
+
...contents,
|
|
5869
|
+
});
|
|
5870
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body.Error);
|
|
7442
5871
|
};
|
|
7443
5872
|
const deserializeAws_restXmlPublicZoneVPCAssociationResponse = async (parsedOutput, context) => {
|
|
7444
|
-
const contents = {
|
|
7445
|
-
name: "PublicZoneVPCAssociation",
|
|
7446
|
-
$fault: "client",
|
|
7447
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
7448
|
-
message: undefined,
|
|
7449
|
-
};
|
|
5873
|
+
const contents = {};
|
|
7450
5874
|
const data = parsedOutput.body.Error;
|
|
7451
5875
|
if (data["message"] !== undefined) {
|
|
7452
5876
|
contents.message = smithy_client_1.expectString(data["message"]);
|
|
7453
5877
|
}
|
|
7454
|
-
|
|
5878
|
+
const exception = new models_0_1.PublicZoneVPCAssociation({
|
|
5879
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
5880
|
+
...contents,
|
|
5881
|
+
});
|
|
5882
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body.Error);
|
|
7455
5883
|
};
|
|
7456
5884
|
const deserializeAws_restXmlQueryLoggingConfigAlreadyExistsResponse = async (parsedOutput, context) => {
|
|
7457
|
-
const contents = {
|
|
7458
|
-
name: "QueryLoggingConfigAlreadyExists",
|
|
7459
|
-
$fault: "client",
|
|
7460
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
7461
|
-
message: undefined,
|
|
7462
|
-
};
|
|
5885
|
+
const contents = {};
|
|
7463
5886
|
const data = parsedOutput.body.Error;
|
|
7464
5887
|
if (data["message"] !== undefined) {
|
|
7465
5888
|
contents.message = smithy_client_1.expectString(data["message"]);
|
|
7466
5889
|
}
|
|
7467
|
-
|
|
5890
|
+
const exception = new models_0_1.QueryLoggingConfigAlreadyExists({
|
|
5891
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
5892
|
+
...contents,
|
|
5893
|
+
});
|
|
5894
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body.Error);
|
|
7468
5895
|
};
|
|
7469
5896
|
const deserializeAws_restXmlThrottlingExceptionResponse = async (parsedOutput, context) => {
|
|
7470
|
-
const contents = {
|
|
7471
|
-
name: "ThrottlingException",
|
|
7472
|
-
$fault: "client",
|
|
7473
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
7474
|
-
message: undefined,
|
|
7475
|
-
};
|
|
5897
|
+
const contents = {};
|
|
7476
5898
|
const data = parsedOutput.body.Error;
|
|
7477
5899
|
if (data["message"] !== undefined) {
|
|
7478
5900
|
contents.message = smithy_client_1.expectString(data["message"]);
|
|
7479
5901
|
}
|
|
7480
|
-
|
|
5902
|
+
const exception = new models_0_1.ThrottlingException({
|
|
5903
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
5904
|
+
...contents,
|
|
5905
|
+
});
|
|
5906
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body.Error);
|
|
7481
5907
|
};
|
|
7482
5908
|
const deserializeAws_restXmlTooManyHealthChecksResponse = async (parsedOutput, context) => {
|
|
7483
|
-
const contents = {
|
|
7484
|
-
name: "TooManyHealthChecks",
|
|
7485
|
-
$fault: "client",
|
|
7486
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
7487
|
-
message: undefined,
|
|
7488
|
-
};
|
|
5909
|
+
const contents = {};
|
|
7489
5910
|
const data = parsedOutput.body.Error;
|
|
7490
5911
|
if (data["message"] !== undefined) {
|
|
7491
5912
|
contents.message = smithy_client_1.expectString(data["message"]);
|
|
7492
5913
|
}
|
|
7493
|
-
|
|
5914
|
+
const exception = new models_0_1.TooManyHealthChecks({
|
|
5915
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
5916
|
+
...contents,
|
|
5917
|
+
});
|
|
5918
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body.Error);
|
|
7494
5919
|
};
|
|
7495
5920
|
const deserializeAws_restXmlTooManyHostedZonesResponse = async (parsedOutput, context) => {
|
|
7496
|
-
const contents = {
|
|
7497
|
-
name: "TooManyHostedZones",
|
|
7498
|
-
$fault: "client",
|
|
7499
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
7500
|
-
message: undefined,
|
|
7501
|
-
};
|
|
5921
|
+
const contents = {};
|
|
7502
5922
|
const data = parsedOutput.body.Error;
|
|
7503
5923
|
if (data["message"] !== undefined) {
|
|
7504
5924
|
contents.message = smithy_client_1.expectString(data["message"]);
|
|
7505
5925
|
}
|
|
7506
|
-
|
|
5926
|
+
const exception = new models_0_1.TooManyHostedZones({
|
|
5927
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
5928
|
+
...contents,
|
|
5929
|
+
});
|
|
5930
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body.Error);
|
|
7507
5931
|
};
|
|
7508
5932
|
const deserializeAws_restXmlTooManyKeySigningKeysResponse = async (parsedOutput, context) => {
|
|
7509
|
-
const contents = {
|
|
7510
|
-
name: "TooManyKeySigningKeys",
|
|
7511
|
-
$fault: "client",
|
|
7512
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
7513
|
-
message: undefined,
|
|
7514
|
-
};
|
|
5933
|
+
const contents = {};
|
|
7515
5934
|
const data = parsedOutput.body.Error;
|
|
7516
5935
|
if (data["message"] !== undefined) {
|
|
7517
5936
|
contents.message = smithy_client_1.expectString(data["message"]);
|
|
7518
5937
|
}
|
|
7519
|
-
|
|
5938
|
+
const exception = new models_0_1.TooManyKeySigningKeys({
|
|
5939
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
5940
|
+
...contents,
|
|
5941
|
+
});
|
|
5942
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body.Error);
|
|
7520
5943
|
};
|
|
7521
5944
|
const deserializeAws_restXmlTooManyTrafficPoliciesResponse = async (parsedOutput, context) => {
|
|
7522
|
-
const contents = {
|
|
7523
|
-
name: "TooManyTrafficPolicies",
|
|
7524
|
-
$fault: "client",
|
|
7525
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
7526
|
-
message: undefined,
|
|
7527
|
-
};
|
|
5945
|
+
const contents = {};
|
|
7528
5946
|
const data = parsedOutput.body.Error;
|
|
7529
5947
|
if (data["message"] !== undefined) {
|
|
7530
5948
|
contents.message = smithy_client_1.expectString(data["message"]);
|
|
7531
5949
|
}
|
|
7532
|
-
|
|
5950
|
+
const exception = new models_0_1.TooManyTrafficPolicies({
|
|
5951
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
5952
|
+
...contents,
|
|
5953
|
+
});
|
|
5954
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body.Error);
|
|
7533
5955
|
};
|
|
7534
5956
|
const deserializeAws_restXmlTooManyTrafficPolicyInstancesResponse = async (parsedOutput, context) => {
|
|
7535
|
-
const contents = {
|
|
7536
|
-
name: "TooManyTrafficPolicyInstances",
|
|
7537
|
-
$fault: "client",
|
|
7538
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
7539
|
-
message: undefined,
|
|
7540
|
-
};
|
|
5957
|
+
const contents = {};
|
|
7541
5958
|
const data = parsedOutput.body.Error;
|
|
7542
5959
|
if (data["message"] !== undefined) {
|
|
7543
5960
|
contents.message = smithy_client_1.expectString(data["message"]);
|
|
7544
5961
|
}
|
|
7545
|
-
|
|
5962
|
+
const exception = new models_0_1.TooManyTrafficPolicyInstances({
|
|
5963
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
5964
|
+
...contents,
|
|
5965
|
+
});
|
|
5966
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body.Error);
|
|
7546
5967
|
};
|
|
7547
5968
|
const deserializeAws_restXmlTooManyTrafficPolicyVersionsForCurrentPolicyResponse = async (parsedOutput, context) => {
|
|
7548
|
-
const contents = {
|
|
7549
|
-
name: "TooManyTrafficPolicyVersionsForCurrentPolicy",
|
|
7550
|
-
$fault: "client",
|
|
7551
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
7552
|
-
message: undefined,
|
|
7553
|
-
};
|
|
5969
|
+
const contents = {};
|
|
7554
5970
|
const data = parsedOutput.body.Error;
|
|
7555
5971
|
if (data["message"] !== undefined) {
|
|
7556
5972
|
contents.message = smithy_client_1.expectString(data["message"]);
|
|
7557
5973
|
}
|
|
7558
|
-
|
|
5974
|
+
const exception = new models_0_1.TooManyTrafficPolicyVersionsForCurrentPolicy({
|
|
5975
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
5976
|
+
...contents,
|
|
5977
|
+
});
|
|
5978
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body.Error);
|
|
7559
5979
|
};
|
|
7560
5980
|
const deserializeAws_restXmlTooManyVPCAssociationAuthorizationsResponse = async (parsedOutput, context) => {
|
|
7561
|
-
const contents = {
|
|
7562
|
-
name: "TooManyVPCAssociationAuthorizations",
|
|
7563
|
-
$fault: "client",
|
|
7564
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
7565
|
-
message: undefined,
|
|
7566
|
-
};
|
|
5981
|
+
const contents = {};
|
|
7567
5982
|
const data = parsedOutput.body.Error;
|
|
7568
5983
|
if (data["message"] !== undefined) {
|
|
7569
5984
|
contents.message = smithy_client_1.expectString(data["message"]);
|
|
7570
5985
|
}
|
|
7571
|
-
|
|
5986
|
+
const exception = new models_0_1.TooManyVPCAssociationAuthorizations({
|
|
5987
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
5988
|
+
...contents,
|
|
5989
|
+
});
|
|
5990
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body.Error);
|
|
7572
5991
|
};
|
|
7573
5992
|
const deserializeAws_restXmlTrafficPolicyAlreadyExistsResponse = async (parsedOutput, context) => {
|
|
7574
|
-
const contents = {
|
|
7575
|
-
name: "TrafficPolicyAlreadyExists",
|
|
7576
|
-
$fault: "client",
|
|
7577
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
7578
|
-
message: undefined,
|
|
7579
|
-
};
|
|
5993
|
+
const contents = {};
|
|
7580
5994
|
const data = parsedOutput.body.Error;
|
|
7581
5995
|
if (data["message"] !== undefined) {
|
|
7582
5996
|
contents.message = smithy_client_1.expectString(data["message"]);
|
|
7583
5997
|
}
|
|
7584
|
-
|
|
5998
|
+
const exception = new models_0_1.TrafficPolicyAlreadyExists({
|
|
5999
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
6000
|
+
...contents,
|
|
6001
|
+
});
|
|
6002
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body.Error);
|
|
7585
6003
|
};
|
|
7586
6004
|
const deserializeAws_restXmlTrafficPolicyInstanceAlreadyExistsResponse = async (parsedOutput, context) => {
|
|
7587
|
-
const contents = {
|
|
7588
|
-
name: "TrafficPolicyInstanceAlreadyExists",
|
|
7589
|
-
$fault: "client",
|
|
7590
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
7591
|
-
message: undefined,
|
|
7592
|
-
};
|
|
6005
|
+
const contents = {};
|
|
7593
6006
|
const data = parsedOutput.body.Error;
|
|
7594
6007
|
if (data["message"] !== undefined) {
|
|
7595
6008
|
contents.message = smithy_client_1.expectString(data["message"]);
|
|
7596
6009
|
}
|
|
7597
|
-
|
|
6010
|
+
const exception = new models_0_1.TrafficPolicyInstanceAlreadyExists({
|
|
6011
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
6012
|
+
...contents,
|
|
6013
|
+
});
|
|
6014
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body.Error);
|
|
7598
6015
|
};
|
|
7599
6016
|
const deserializeAws_restXmlTrafficPolicyInUseResponse = async (parsedOutput, context) => {
|
|
7600
|
-
const contents = {
|
|
7601
|
-
name: "TrafficPolicyInUse",
|
|
7602
|
-
$fault: "client",
|
|
7603
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
7604
|
-
message: undefined,
|
|
7605
|
-
};
|
|
6017
|
+
const contents = {};
|
|
7606
6018
|
const data = parsedOutput.body.Error;
|
|
7607
6019
|
if (data["message"] !== undefined) {
|
|
7608
6020
|
contents.message = smithy_client_1.expectString(data["message"]);
|
|
7609
6021
|
}
|
|
7610
|
-
|
|
6022
|
+
const exception = new models_0_1.TrafficPolicyInUse({
|
|
6023
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
6024
|
+
...contents,
|
|
6025
|
+
});
|
|
6026
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body.Error);
|
|
7611
6027
|
};
|
|
7612
6028
|
const deserializeAws_restXmlVPCAssociationAuthorizationNotFoundResponse = async (parsedOutput, context) => {
|
|
7613
|
-
const contents = {
|
|
7614
|
-
name: "VPCAssociationAuthorizationNotFound",
|
|
7615
|
-
$fault: "client",
|
|
7616
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
7617
|
-
message: undefined,
|
|
7618
|
-
};
|
|
6029
|
+
const contents = {};
|
|
7619
6030
|
const data = parsedOutput.body.Error;
|
|
7620
6031
|
if (data["message"] !== undefined) {
|
|
7621
6032
|
contents.message = smithy_client_1.expectString(data["message"]);
|
|
7622
6033
|
}
|
|
7623
|
-
|
|
6034
|
+
const exception = new models_0_1.VPCAssociationAuthorizationNotFound({
|
|
6035
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
6036
|
+
...contents,
|
|
6037
|
+
});
|
|
6038
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body.Error);
|
|
7624
6039
|
};
|
|
7625
6040
|
const deserializeAws_restXmlVPCAssociationNotFoundResponse = async (parsedOutput, context) => {
|
|
7626
|
-
const contents = {
|
|
7627
|
-
name: "VPCAssociationNotFound",
|
|
7628
|
-
$fault: "client",
|
|
7629
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
7630
|
-
message: undefined,
|
|
7631
|
-
};
|
|
6041
|
+
const contents = {};
|
|
7632
6042
|
const data = parsedOutput.body.Error;
|
|
7633
6043
|
if (data["message"] !== undefined) {
|
|
7634
6044
|
contents.message = smithy_client_1.expectString(data["message"]);
|
|
7635
6045
|
}
|
|
7636
|
-
|
|
6046
|
+
const exception = new models_0_1.VPCAssociationNotFound({
|
|
6047
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
6048
|
+
...contents,
|
|
6049
|
+
});
|
|
6050
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body.Error);
|
|
7637
6051
|
};
|
|
7638
6052
|
const serializeAws_restXmlAlarmIdentifier = (input, context) => {
|
|
7639
6053
|
const bodyNode = new xml_builder_1.XmlNode("AlarmIdentifier");
|