@aws-sdk/client-api-gateway 3.118.1 → 3.128.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/dist-cjs/protocols/Aws_restJson1.js +843 -879
- package/dist-es/protocols/Aws_restJson1.js +740 -776
- package/package.json +27 -27
|
@@ -17,17 +17,14 @@ const serializeAws_restJson1CreateApiKeyCommand = async (input, context) => {
|
|
|
17
17
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/apikeys";
|
|
18
18
|
let body;
|
|
19
19
|
body = JSON.stringify({
|
|
20
|
-
...(input.customerId
|
|
21
|
-
...(input.description
|
|
22
|
-
...(input.enabled
|
|
23
|
-
...(input.generateDistinctId
|
|
24
|
-
|
|
25
|
-
...(input.
|
|
26
|
-
...(input.
|
|
27
|
-
|
|
28
|
-
...(input.tags !== undefined &&
|
|
29
|
-
input.tags !== null && { tags: serializeAws_restJson1MapOfStringToString(input.tags, context) }),
|
|
30
|
-
...(input.value !== undefined && input.value !== null && { value: input.value }),
|
|
20
|
+
...(input.customerId != null && { customerId: input.customerId }),
|
|
21
|
+
...(input.description != null && { description: input.description }),
|
|
22
|
+
...(input.enabled != null && { enabled: input.enabled }),
|
|
23
|
+
...(input.generateDistinctId != null && { generateDistinctId: input.generateDistinctId }),
|
|
24
|
+
...(input.name != null && { name: input.name }),
|
|
25
|
+
...(input.stageKeys != null && { stageKeys: serializeAws_restJson1ListOfStageKeys(input.stageKeys, context) }),
|
|
26
|
+
...(input.tags != null && { tags: serializeAws_restJson1MapOfStringToString(input.tags, context) }),
|
|
27
|
+
...(input.value != null && { value: input.value }),
|
|
31
28
|
});
|
|
32
29
|
return new protocol_http_1.HttpRequest({
|
|
33
30
|
protocol,
|
|
@@ -58,24 +55,19 @@ const serializeAws_restJson1CreateAuthorizerCommand = async (input, context) =>
|
|
|
58
55
|
}
|
|
59
56
|
let body;
|
|
60
57
|
body = JSON.stringify({
|
|
61
|
-
...(input.authType
|
|
62
|
-
...(input.authorizerCredentials
|
|
63
|
-
|
|
64
|
-
...(input.authorizerResultTtlInSeconds !== undefined &&
|
|
65
|
-
input.authorizerResultTtlInSeconds !== null && {
|
|
58
|
+
...(input.authType != null && { authType: input.authType }),
|
|
59
|
+
...(input.authorizerCredentials != null && { authorizerCredentials: input.authorizerCredentials }),
|
|
60
|
+
...(input.authorizerResultTtlInSeconds != null && {
|
|
66
61
|
authorizerResultTtlInSeconds: input.authorizerResultTtlInSeconds,
|
|
67
62
|
}),
|
|
68
|
-
...(input.authorizerUri
|
|
69
|
-
...(input.identitySource
|
|
70
|
-
|
|
71
|
-
...(input.identityValidationExpression !== undefined &&
|
|
72
|
-
input.identityValidationExpression !== null && {
|
|
63
|
+
...(input.authorizerUri != null && { authorizerUri: input.authorizerUri }),
|
|
64
|
+
...(input.identitySource != null && { identitySource: input.identitySource }),
|
|
65
|
+
...(input.identityValidationExpression != null && {
|
|
73
66
|
identityValidationExpression: input.identityValidationExpression,
|
|
74
67
|
}),
|
|
75
|
-
...(input.name
|
|
76
|
-
...(input.providerARNs
|
|
77
|
-
|
|
78
|
-
...(input.type !== undefined && input.type !== null && { type: input.type }),
|
|
68
|
+
...(input.name != null && { name: input.name }),
|
|
69
|
+
...(input.providerARNs != null && { providerARNs: serializeAws_restJson1ListOfARNs(input.providerARNs, context) }),
|
|
70
|
+
...(input.type != null && { type: input.type }),
|
|
79
71
|
});
|
|
80
72
|
return new protocol_http_1.HttpRequest({
|
|
81
73
|
protocol,
|
|
@@ -107,9 +99,9 @@ const serializeAws_restJson1CreateBasePathMappingCommand = async (input, context
|
|
|
107
99
|
}
|
|
108
100
|
let body;
|
|
109
101
|
body = JSON.stringify({
|
|
110
|
-
...(input.basePath
|
|
111
|
-
...(input.restApiId
|
|
112
|
-
...(input.stage
|
|
102
|
+
...(input.basePath != null && { basePath: input.basePath }),
|
|
103
|
+
...(input.restApiId != null && { restApiId: input.restApiId }),
|
|
104
|
+
...(input.stage != null && { stage: input.stage }),
|
|
113
105
|
});
|
|
114
106
|
return new protocol_http_1.HttpRequest({
|
|
115
107
|
protocol,
|
|
@@ -140,22 +132,16 @@ const serializeAws_restJson1CreateDeploymentCommand = async (input, context) =>
|
|
|
140
132
|
}
|
|
141
133
|
let body;
|
|
142
134
|
body = JSON.stringify({
|
|
143
|
-
...(input.cacheClusterEnabled
|
|
144
|
-
|
|
145
|
-
...(input.
|
|
146
|
-
input.cacheClusterSize !== null && { cacheClusterSize: input.cacheClusterSize }),
|
|
147
|
-
...(input.canarySettings !== undefined &&
|
|
148
|
-
input.canarySettings !== null && {
|
|
135
|
+
...(input.cacheClusterEnabled != null && { cacheClusterEnabled: input.cacheClusterEnabled }),
|
|
136
|
+
...(input.cacheClusterSize != null && { cacheClusterSize: input.cacheClusterSize }),
|
|
137
|
+
...(input.canarySettings != null && {
|
|
149
138
|
canarySettings: serializeAws_restJson1DeploymentCanarySettings(input.canarySettings, context),
|
|
150
139
|
}),
|
|
151
|
-
...(input.description
|
|
152
|
-
...(input.stageDescription
|
|
153
|
-
|
|
154
|
-
...(input.
|
|
155
|
-
...(input.
|
|
156
|
-
input.tracingEnabled !== null && { tracingEnabled: input.tracingEnabled }),
|
|
157
|
-
...(input.variables !== undefined &&
|
|
158
|
-
input.variables !== null && { variables: serializeAws_restJson1MapOfStringToString(input.variables, context) }),
|
|
140
|
+
...(input.description != null && { description: input.description }),
|
|
141
|
+
...(input.stageDescription != null && { stageDescription: input.stageDescription }),
|
|
142
|
+
...(input.stageName != null && { stageName: input.stageName }),
|
|
143
|
+
...(input.tracingEnabled != null && { tracingEnabled: input.tracingEnabled }),
|
|
144
|
+
...(input.variables != null && { variables: serializeAws_restJson1MapOfStringToString(input.variables, context) }),
|
|
159
145
|
});
|
|
160
146
|
return new protocol_http_1.HttpRequest({
|
|
161
147
|
protocol,
|
|
@@ -186,11 +172,10 @@ const serializeAws_restJson1CreateDocumentationPartCommand = async (input, conte
|
|
|
186
172
|
}
|
|
187
173
|
let body;
|
|
188
174
|
body = JSON.stringify({
|
|
189
|
-
...(input.location
|
|
190
|
-
input.location !== null && {
|
|
175
|
+
...(input.location != null && {
|
|
191
176
|
location: serializeAws_restJson1DocumentationPartLocation(input.location, context),
|
|
192
177
|
}),
|
|
193
|
-
...(input.properties
|
|
178
|
+
...(input.properties != null && { properties: input.properties }),
|
|
194
179
|
});
|
|
195
180
|
return new protocol_http_1.HttpRequest({
|
|
196
181
|
protocol,
|
|
@@ -222,10 +207,9 @@ const serializeAws_restJson1CreateDocumentationVersionCommand = async (input, co
|
|
|
222
207
|
}
|
|
223
208
|
let body;
|
|
224
209
|
body = JSON.stringify({
|
|
225
|
-
...(input.description
|
|
226
|
-
...(input.documentationVersion
|
|
227
|
-
|
|
228
|
-
...(input.stageName !== undefined && input.stageName !== null && { stageName: input.stageName }),
|
|
210
|
+
...(input.description != null && { description: input.description }),
|
|
211
|
+
...(input.documentationVersion != null && { documentationVersion: input.documentationVersion }),
|
|
212
|
+
...(input.stageName != null && { stageName: input.stageName }),
|
|
229
213
|
});
|
|
230
214
|
return new protocol_http_1.HttpRequest({
|
|
231
215
|
protocol,
|
|
@@ -246,37 +230,25 @@ const serializeAws_restJson1CreateDomainNameCommand = async (input, context) =>
|
|
|
246
230
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/domainnames";
|
|
247
231
|
let body;
|
|
248
232
|
body = JSON.stringify({
|
|
249
|
-
...(input.certificateArn
|
|
250
|
-
|
|
251
|
-
...(input.
|
|
252
|
-
|
|
253
|
-
...(input.
|
|
254
|
-
|
|
255
|
-
...(input.
|
|
256
|
-
input.certificateName !== null && { certificateName: input.certificateName }),
|
|
257
|
-
...(input.certificatePrivateKey !== undefined &&
|
|
258
|
-
input.certificatePrivateKey !== null && { certificatePrivateKey: input.certificatePrivateKey }),
|
|
259
|
-
...(input.domainName !== undefined && input.domainName !== null && { domainName: input.domainName }),
|
|
260
|
-
...(input.endpointConfiguration !== undefined &&
|
|
261
|
-
input.endpointConfiguration !== null && {
|
|
233
|
+
...(input.certificateArn != null && { certificateArn: input.certificateArn }),
|
|
234
|
+
...(input.certificateBody != null && { certificateBody: input.certificateBody }),
|
|
235
|
+
...(input.certificateChain != null && { certificateChain: input.certificateChain }),
|
|
236
|
+
...(input.certificateName != null && { certificateName: input.certificateName }),
|
|
237
|
+
...(input.certificatePrivateKey != null && { certificatePrivateKey: input.certificatePrivateKey }),
|
|
238
|
+
...(input.domainName != null && { domainName: input.domainName }),
|
|
239
|
+
...(input.endpointConfiguration != null && {
|
|
262
240
|
endpointConfiguration: serializeAws_restJson1EndpointConfiguration(input.endpointConfiguration, context),
|
|
263
241
|
}),
|
|
264
|
-
...(input.mutualTlsAuthentication
|
|
265
|
-
input.mutualTlsAuthentication !== null && {
|
|
242
|
+
...(input.mutualTlsAuthentication != null && {
|
|
266
243
|
mutualTlsAuthentication: serializeAws_restJson1MutualTlsAuthenticationInput(input.mutualTlsAuthentication, context),
|
|
267
244
|
}),
|
|
268
|
-
...(input.ownershipVerificationCertificateArn
|
|
269
|
-
input.ownershipVerificationCertificateArn !== null && {
|
|
245
|
+
...(input.ownershipVerificationCertificateArn != null && {
|
|
270
246
|
ownershipVerificationCertificateArn: input.ownershipVerificationCertificateArn,
|
|
271
247
|
}),
|
|
272
|
-
...(input.regionalCertificateArn
|
|
273
|
-
|
|
274
|
-
...(input.
|
|
275
|
-
|
|
276
|
-
...(input.securityPolicy !== undefined &&
|
|
277
|
-
input.securityPolicy !== null && { securityPolicy: input.securityPolicy }),
|
|
278
|
-
...(input.tags !== undefined &&
|
|
279
|
-
input.tags !== null && { tags: serializeAws_restJson1MapOfStringToString(input.tags, context) }),
|
|
248
|
+
...(input.regionalCertificateArn != null && { regionalCertificateArn: input.regionalCertificateArn }),
|
|
249
|
+
...(input.regionalCertificateName != null && { regionalCertificateName: input.regionalCertificateName }),
|
|
250
|
+
...(input.securityPolicy != null && { securityPolicy: input.securityPolicy }),
|
|
251
|
+
...(input.tags != null && { tags: serializeAws_restJson1MapOfStringToString(input.tags, context) }),
|
|
280
252
|
});
|
|
281
253
|
return new protocol_http_1.HttpRequest({
|
|
282
254
|
protocol,
|
|
@@ -307,10 +279,10 @@ const serializeAws_restJson1CreateModelCommand = async (input, context) => {
|
|
|
307
279
|
}
|
|
308
280
|
let body;
|
|
309
281
|
body = JSON.stringify({
|
|
310
|
-
...(input.contentType
|
|
311
|
-
...(input.description
|
|
312
|
-
...(input.name
|
|
313
|
-
...(input.schema
|
|
282
|
+
...(input.contentType != null && { contentType: input.contentType }),
|
|
283
|
+
...(input.description != null && { description: input.description }),
|
|
284
|
+
...(input.name != null && { name: input.name }),
|
|
285
|
+
...(input.schema != null && { schema: input.schema }),
|
|
314
286
|
});
|
|
315
287
|
return new protocol_http_1.HttpRequest({
|
|
316
288
|
protocol,
|
|
@@ -341,11 +313,9 @@ const serializeAws_restJson1CreateRequestValidatorCommand = async (input, contex
|
|
|
341
313
|
}
|
|
342
314
|
let body;
|
|
343
315
|
body = JSON.stringify({
|
|
344
|
-
...(input.name
|
|
345
|
-
...(input.validateRequestBody
|
|
346
|
-
|
|
347
|
-
...(input.validateRequestParameters !== undefined &&
|
|
348
|
-
input.validateRequestParameters !== null && { validateRequestParameters: input.validateRequestParameters }),
|
|
316
|
+
...(input.name != null && { name: input.name }),
|
|
317
|
+
...(input.validateRequestBody != null && { validateRequestBody: input.validateRequestBody }),
|
|
318
|
+
...(input.validateRequestParameters != null && { validateRequestParameters: input.validateRequestParameters }),
|
|
349
319
|
});
|
|
350
320
|
return new protocol_http_1.HttpRequest({
|
|
351
321
|
protocol,
|
|
@@ -387,7 +357,7 @@ const serializeAws_restJson1CreateResourceCommand = async (input, context) => {
|
|
|
387
357
|
}
|
|
388
358
|
let body;
|
|
389
359
|
body = JSON.stringify({
|
|
390
|
-
...(input.pathPart
|
|
360
|
+
...(input.pathPart != null && { pathPart: input.pathPart }),
|
|
391
361
|
});
|
|
392
362
|
return new protocol_http_1.HttpRequest({
|
|
393
363
|
protocol,
|
|
@@ -408,26 +378,21 @@ const serializeAws_restJson1CreateRestApiCommand = async (input, context) => {
|
|
|
408
378
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/restapis";
|
|
409
379
|
let body;
|
|
410
380
|
body = JSON.stringify({
|
|
411
|
-
...(input.apiKeySource
|
|
412
|
-
...(input.binaryMediaTypes
|
|
413
|
-
input.binaryMediaTypes !== null && {
|
|
381
|
+
...(input.apiKeySource != null && { apiKeySource: input.apiKeySource }),
|
|
382
|
+
...(input.binaryMediaTypes != null && {
|
|
414
383
|
binaryMediaTypes: serializeAws_restJson1ListOfString(input.binaryMediaTypes, context),
|
|
415
384
|
}),
|
|
416
|
-
...(input.cloneFrom
|
|
417
|
-
...(input.description
|
|
418
|
-
...(input.disableExecuteApiEndpoint
|
|
419
|
-
|
|
420
|
-
...(input.endpointConfiguration !== undefined &&
|
|
421
|
-
input.endpointConfiguration !== null && {
|
|
385
|
+
...(input.cloneFrom != null && { cloneFrom: input.cloneFrom }),
|
|
386
|
+
...(input.description != null && { description: input.description }),
|
|
387
|
+
...(input.disableExecuteApiEndpoint != null && { disableExecuteApiEndpoint: input.disableExecuteApiEndpoint }),
|
|
388
|
+
...(input.endpointConfiguration != null && {
|
|
422
389
|
endpointConfiguration: serializeAws_restJson1EndpointConfiguration(input.endpointConfiguration, context),
|
|
423
390
|
}),
|
|
424
|
-
...(input.minimumCompressionSize
|
|
425
|
-
|
|
426
|
-
...(input.
|
|
427
|
-
...(input.
|
|
428
|
-
...(input.
|
|
429
|
-
input.tags !== null && { tags: serializeAws_restJson1MapOfStringToString(input.tags, context) }),
|
|
430
|
-
...(input.version !== undefined && input.version !== null && { version: input.version }),
|
|
391
|
+
...(input.minimumCompressionSize != null && { minimumCompressionSize: input.minimumCompressionSize }),
|
|
392
|
+
...(input.name != null && { name: input.name }),
|
|
393
|
+
...(input.policy != null && { policy: input.policy }),
|
|
394
|
+
...(input.tags != null && { tags: serializeAws_restJson1MapOfStringToString(input.tags, context) }),
|
|
395
|
+
...(input.version != null && { version: input.version }),
|
|
431
396
|
});
|
|
432
397
|
return new protocol_http_1.HttpRequest({
|
|
433
398
|
protocol,
|
|
@@ -458,25 +423,18 @@ const serializeAws_restJson1CreateStageCommand = async (input, context) => {
|
|
|
458
423
|
}
|
|
459
424
|
let body;
|
|
460
425
|
body = JSON.stringify({
|
|
461
|
-
...(input.cacheClusterEnabled
|
|
462
|
-
|
|
463
|
-
...(input.
|
|
464
|
-
input.cacheClusterSize !== null && { cacheClusterSize: input.cacheClusterSize }),
|
|
465
|
-
...(input.canarySettings !== undefined &&
|
|
466
|
-
input.canarySettings !== null && {
|
|
426
|
+
...(input.cacheClusterEnabled != null && { cacheClusterEnabled: input.cacheClusterEnabled }),
|
|
427
|
+
...(input.cacheClusterSize != null && { cacheClusterSize: input.cacheClusterSize }),
|
|
428
|
+
...(input.canarySettings != null && {
|
|
467
429
|
canarySettings: serializeAws_restJson1CanarySettings(input.canarySettings, context),
|
|
468
430
|
}),
|
|
469
|
-
...(input.deploymentId
|
|
470
|
-
...(input.description
|
|
471
|
-
...(input.documentationVersion
|
|
472
|
-
|
|
473
|
-
...(input.
|
|
474
|
-
...(input.
|
|
475
|
-
|
|
476
|
-
...(input.tracingEnabled !== undefined &&
|
|
477
|
-
input.tracingEnabled !== null && { tracingEnabled: input.tracingEnabled }),
|
|
478
|
-
...(input.variables !== undefined &&
|
|
479
|
-
input.variables !== null && { variables: serializeAws_restJson1MapOfStringToString(input.variables, context) }),
|
|
431
|
+
...(input.deploymentId != null && { deploymentId: input.deploymentId }),
|
|
432
|
+
...(input.description != null && { description: input.description }),
|
|
433
|
+
...(input.documentationVersion != null && { documentationVersion: input.documentationVersion }),
|
|
434
|
+
...(input.stageName != null && { stageName: input.stageName }),
|
|
435
|
+
...(input.tags != null && { tags: serializeAws_restJson1MapOfStringToString(input.tags, context) }),
|
|
436
|
+
...(input.tracingEnabled != null && { tracingEnabled: input.tracingEnabled }),
|
|
437
|
+
...(input.variables != null && { variables: serializeAws_restJson1MapOfStringToString(input.variables, context) }),
|
|
480
438
|
});
|
|
481
439
|
return new protocol_http_1.HttpRequest({
|
|
482
440
|
protocol,
|
|
@@ -497,16 +455,12 @@ const serializeAws_restJson1CreateUsagePlanCommand = async (input, context) => {
|
|
|
497
455
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/usageplans";
|
|
498
456
|
let body;
|
|
499
457
|
body = JSON.stringify({
|
|
500
|
-
...(input.apiStages
|
|
501
|
-
|
|
502
|
-
...(input.
|
|
503
|
-
...(input.
|
|
504
|
-
...(input.
|
|
505
|
-
|
|
506
|
-
...(input.tags !== undefined &&
|
|
507
|
-
input.tags !== null && { tags: serializeAws_restJson1MapOfStringToString(input.tags, context) }),
|
|
508
|
-
...(input.throttle !== undefined &&
|
|
509
|
-
input.throttle !== null && { throttle: serializeAws_restJson1ThrottleSettings(input.throttle, context) }),
|
|
458
|
+
...(input.apiStages != null && { apiStages: serializeAws_restJson1ListOfApiStage(input.apiStages, context) }),
|
|
459
|
+
...(input.description != null && { description: input.description }),
|
|
460
|
+
...(input.name != null && { name: input.name }),
|
|
461
|
+
...(input.quota != null && { quota: serializeAws_restJson1QuotaSettings(input.quota, context) }),
|
|
462
|
+
...(input.tags != null && { tags: serializeAws_restJson1MapOfStringToString(input.tags, context) }),
|
|
463
|
+
...(input.throttle != null && { throttle: serializeAws_restJson1ThrottleSettings(input.throttle, context) }),
|
|
510
464
|
});
|
|
511
465
|
return new protocol_http_1.HttpRequest({
|
|
512
466
|
protocol,
|
|
@@ -537,8 +491,8 @@ const serializeAws_restJson1CreateUsagePlanKeyCommand = async (input, context) =
|
|
|
537
491
|
}
|
|
538
492
|
let body;
|
|
539
493
|
body = JSON.stringify({
|
|
540
|
-
...(input.keyId
|
|
541
|
-
...(input.keyType
|
|
494
|
+
...(input.keyId != null && { keyId: input.keyId }),
|
|
495
|
+
...(input.keyType != null && { keyType: input.keyType }),
|
|
542
496
|
});
|
|
543
497
|
return new protocol_http_1.HttpRequest({
|
|
544
498
|
protocol,
|
|
@@ -559,12 +513,10 @@ const serializeAws_restJson1CreateVpcLinkCommand = async (input, context) => {
|
|
|
559
513
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/vpclinks";
|
|
560
514
|
let body;
|
|
561
515
|
body = JSON.stringify({
|
|
562
|
-
...(input.description
|
|
563
|
-
...(input.name
|
|
564
|
-
...(input.tags
|
|
565
|
-
|
|
566
|
-
...(input.targetArns !== undefined &&
|
|
567
|
-
input.targetArns !== null && { targetArns: serializeAws_restJson1ListOfString(input.targetArns, context) }),
|
|
516
|
+
...(input.description != null && { description: input.description }),
|
|
517
|
+
...(input.name != null && { name: input.name }),
|
|
518
|
+
...(input.tags != null && { tags: serializeAws_restJson1MapOfStringToString(input.tags, context) }),
|
|
519
|
+
...(input.targetArns != null && { targetArns: serializeAws_restJson1ListOfString(input.targetArns, context) }),
|
|
568
520
|
});
|
|
569
521
|
return new protocol_http_1.HttpRequest({
|
|
570
522
|
protocol,
|
|
@@ -1427,9 +1379,8 @@ const serializeAws_restJson1GenerateClientCertificateCommand = async (input, con
|
|
|
1427
1379
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/clientcertificates";
|
|
1428
1380
|
let body;
|
|
1429
1381
|
body = JSON.stringify({
|
|
1430
|
-
...(input.description
|
|
1431
|
-
...(input.tags
|
|
1432
|
-
input.tags !== null && { tags: serializeAws_restJson1MapOfStringToString(input.tags, context) }),
|
|
1382
|
+
...(input.description != null && { description: input.description }),
|
|
1383
|
+
...(input.tags != null && { tags: serializeAws_restJson1MapOfStringToString(input.tags, context) }),
|
|
1433
1384
|
});
|
|
1434
1385
|
return new protocol_http_1.HttpRequest({
|
|
1435
1386
|
protocol,
|
|
@@ -3095,15 +3046,13 @@ const serializeAws_restJson1PutGatewayResponseCommand = async (input, context) =
|
|
|
3095
3046
|
}
|
|
3096
3047
|
let body;
|
|
3097
3048
|
body = JSON.stringify({
|
|
3098
|
-
...(input.responseParameters
|
|
3099
|
-
input.responseParameters !== null && {
|
|
3049
|
+
...(input.responseParameters != null && {
|
|
3100
3050
|
responseParameters: serializeAws_restJson1MapOfStringToString(input.responseParameters, context),
|
|
3101
3051
|
}),
|
|
3102
|
-
...(input.responseTemplates
|
|
3103
|
-
input.responseTemplates !== null && {
|
|
3052
|
+
...(input.responseTemplates != null && {
|
|
3104
3053
|
responseTemplates: serializeAws_restJson1MapOfStringToString(input.responseTemplates, context),
|
|
3105
3054
|
}),
|
|
3106
|
-
...(input.statusCode
|
|
3055
|
+
...(input.statusCode != null && { statusCode: input.statusCode }),
|
|
3107
3056
|
});
|
|
3108
3057
|
return new protocol_http_1.HttpRequest({
|
|
3109
3058
|
protocol,
|
|
@@ -3155,36 +3104,26 @@ const serializeAws_restJson1PutIntegrationCommand = async (input, context) => {
|
|
|
3155
3104
|
}
|
|
3156
3105
|
let body;
|
|
3157
3106
|
body = JSON.stringify({
|
|
3158
|
-
...(input.cacheKeyParameters
|
|
3159
|
-
input.cacheKeyParameters !== null && {
|
|
3107
|
+
...(input.cacheKeyParameters != null && {
|
|
3160
3108
|
cacheKeyParameters: serializeAws_restJson1ListOfString(input.cacheKeyParameters, context),
|
|
3161
3109
|
}),
|
|
3162
|
-
...(input.cacheNamespace
|
|
3163
|
-
|
|
3164
|
-
...(input.
|
|
3165
|
-
...(input.
|
|
3166
|
-
|
|
3167
|
-
...(input.
|
|
3168
|
-
|
|
3169
|
-
...(input.
|
|
3170
|
-
...(input.integrationHttpMethod !== undefined &&
|
|
3171
|
-
input.integrationHttpMethod !== null && { httpMethod: input.integrationHttpMethod }),
|
|
3172
|
-
...(input.passthroughBehavior !== undefined &&
|
|
3173
|
-
input.passthroughBehavior !== null && { passthroughBehavior: input.passthroughBehavior }),
|
|
3174
|
-
...(input.requestParameters !== undefined &&
|
|
3175
|
-
input.requestParameters !== null && {
|
|
3110
|
+
...(input.cacheNamespace != null && { cacheNamespace: input.cacheNamespace }),
|
|
3111
|
+
...(input.connectionId != null && { connectionId: input.connectionId }),
|
|
3112
|
+
...(input.connectionType != null && { connectionType: input.connectionType }),
|
|
3113
|
+
...(input.contentHandling != null && { contentHandling: input.contentHandling }),
|
|
3114
|
+
...(input.credentials != null && { credentials: input.credentials }),
|
|
3115
|
+
...(input.integrationHttpMethod != null && { httpMethod: input.integrationHttpMethod }),
|
|
3116
|
+
...(input.passthroughBehavior != null && { passthroughBehavior: input.passthroughBehavior }),
|
|
3117
|
+
...(input.requestParameters != null && {
|
|
3176
3118
|
requestParameters: serializeAws_restJson1MapOfStringToString(input.requestParameters, context),
|
|
3177
3119
|
}),
|
|
3178
|
-
...(input.requestTemplates
|
|
3179
|
-
input.requestTemplates !== null && {
|
|
3120
|
+
...(input.requestTemplates != null && {
|
|
3180
3121
|
requestTemplates: serializeAws_restJson1MapOfStringToString(input.requestTemplates, context),
|
|
3181
3122
|
}),
|
|
3182
|
-
...(input.timeoutInMillis
|
|
3183
|
-
|
|
3184
|
-
...(input.
|
|
3185
|
-
|
|
3186
|
-
...(input.type !== undefined && input.type !== null && { type: input.type }),
|
|
3187
|
-
...(input.uri !== undefined && input.uri !== null && { uri: input.uri }),
|
|
3123
|
+
...(input.timeoutInMillis != null && { timeoutInMillis: input.timeoutInMillis }),
|
|
3124
|
+
...(input.tlsConfig != null && { tlsConfig: serializeAws_restJson1TlsConfig(input.tlsConfig, context) }),
|
|
3125
|
+
...(input.type != null && { type: input.type }),
|
|
3126
|
+
...(input.uri != null && { uri: input.uri }),
|
|
3188
3127
|
});
|
|
3189
3128
|
return new protocol_http_1.HttpRequest({
|
|
3190
3129
|
protocol,
|
|
@@ -3246,18 +3185,14 @@ const serializeAws_restJson1PutIntegrationResponseCommand = async (input, contex
|
|
|
3246
3185
|
}
|
|
3247
3186
|
let body;
|
|
3248
3187
|
body = JSON.stringify({
|
|
3249
|
-
...(input.contentHandling
|
|
3250
|
-
|
|
3251
|
-
...(input.responseParameters !== undefined &&
|
|
3252
|
-
input.responseParameters !== null && {
|
|
3188
|
+
...(input.contentHandling != null && { contentHandling: input.contentHandling }),
|
|
3189
|
+
...(input.responseParameters != null && {
|
|
3253
3190
|
responseParameters: serializeAws_restJson1MapOfStringToString(input.responseParameters, context),
|
|
3254
3191
|
}),
|
|
3255
|
-
...(input.responseTemplates
|
|
3256
|
-
input.responseTemplates !== null && {
|
|
3192
|
+
...(input.responseTemplates != null && {
|
|
3257
3193
|
responseTemplates: serializeAws_restJson1MapOfStringToString(input.responseTemplates, context),
|
|
3258
3194
|
}),
|
|
3259
|
-
...(input.selectionPattern
|
|
3260
|
-
input.selectionPattern !== null && { selectionPattern: input.selectionPattern }),
|
|
3195
|
+
...(input.selectionPattern != null && { selectionPattern: input.selectionPattern }),
|
|
3261
3196
|
});
|
|
3262
3197
|
return new protocol_http_1.HttpRequest({
|
|
3263
3198
|
protocol,
|
|
@@ -3309,26 +3244,20 @@ const serializeAws_restJson1PutMethodCommand = async (input, context) => {
|
|
|
3309
3244
|
}
|
|
3310
3245
|
let body;
|
|
3311
3246
|
body = JSON.stringify({
|
|
3312
|
-
...(input.apiKeyRequired
|
|
3313
|
-
|
|
3314
|
-
...(input.authorizationScopes !== undefined &&
|
|
3315
|
-
input.authorizationScopes !== null && {
|
|
3247
|
+
...(input.apiKeyRequired != null && { apiKeyRequired: input.apiKeyRequired }),
|
|
3248
|
+
...(input.authorizationScopes != null && {
|
|
3316
3249
|
authorizationScopes: serializeAws_restJson1ListOfString(input.authorizationScopes, context),
|
|
3317
3250
|
}),
|
|
3318
|
-
...(input.authorizationType
|
|
3319
|
-
|
|
3320
|
-
...(input.
|
|
3321
|
-
...(input.
|
|
3322
|
-
...(input.requestModels !== undefined &&
|
|
3323
|
-
input.requestModels !== null && {
|
|
3251
|
+
...(input.authorizationType != null && { authorizationType: input.authorizationType }),
|
|
3252
|
+
...(input.authorizerId != null && { authorizerId: input.authorizerId }),
|
|
3253
|
+
...(input.operationName != null && { operationName: input.operationName }),
|
|
3254
|
+
...(input.requestModels != null && {
|
|
3324
3255
|
requestModels: serializeAws_restJson1MapOfStringToString(input.requestModels, context),
|
|
3325
3256
|
}),
|
|
3326
|
-
...(input.requestParameters
|
|
3327
|
-
input.requestParameters !== null && {
|
|
3257
|
+
...(input.requestParameters != null && {
|
|
3328
3258
|
requestParameters: serializeAws_restJson1MapOfStringToBoolean(input.requestParameters, context),
|
|
3329
3259
|
}),
|
|
3330
|
-
...(input.requestValidatorId
|
|
3331
|
-
input.requestValidatorId !== null && { requestValidatorId: input.requestValidatorId }),
|
|
3260
|
+
...(input.requestValidatorId != null && { requestValidatorId: input.requestValidatorId }),
|
|
3332
3261
|
});
|
|
3333
3262
|
return new protocol_http_1.HttpRequest({
|
|
3334
3263
|
protocol,
|
|
@@ -3390,12 +3319,10 @@ const serializeAws_restJson1PutMethodResponseCommand = async (input, context) =>
|
|
|
3390
3319
|
}
|
|
3391
3320
|
let body;
|
|
3392
3321
|
body = JSON.stringify({
|
|
3393
|
-
...(input.responseModels
|
|
3394
|
-
input.responseModels !== null && {
|
|
3322
|
+
...(input.responseModels != null && {
|
|
3395
3323
|
responseModels: serializeAws_restJson1MapOfStringToString(input.responseModels, context),
|
|
3396
3324
|
}),
|
|
3397
|
-
...(input.responseParameters
|
|
3398
|
-
input.responseParameters !== null && {
|
|
3325
|
+
...(input.responseParameters != null && {
|
|
3399
3326
|
responseParameters: serializeAws_restJson1MapOfStringToBoolean(input.responseParameters, context),
|
|
3400
3327
|
}),
|
|
3401
3328
|
});
|
|
@@ -3465,8 +3392,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
3465
3392
|
}
|
|
3466
3393
|
let body;
|
|
3467
3394
|
body = JSON.stringify({
|
|
3468
|
-
...(input.tags
|
|
3469
|
-
input.tags !== null && { tags: serializeAws_restJson1MapOfStringToString(input.tags, context) }),
|
|
3395
|
+
...(input.tags != null && { tags: serializeAws_restJson1MapOfStringToString(input.tags, context) }),
|
|
3470
3396
|
});
|
|
3471
3397
|
return new protocol_http_1.HttpRequest({
|
|
3472
3398
|
protocol,
|
|
@@ -3508,21 +3434,16 @@ const serializeAws_restJson1TestInvokeAuthorizerCommand = async (input, context)
|
|
|
3508
3434
|
}
|
|
3509
3435
|
let body;
|
|
3510
3436
|
body = JSON.stringify({
|
|
3511
|
-
...(input.additionalContext
|
|
3512
|
-
input.additionalContext !== null && {
|
|
3437
|
+
...(input.additionalContext != null && {
|
|
3513
3438
|
additionalContext: serializeAws_restJson1MapOfStringToString(input.additionalContext, context),
|
|
3514
3439
|
}),
|
|
3515
|
-
...(input.body
|
|
3516
|
-
...(input.headers
|
|
3517
|
-
|
|
3518
|
-
...(input.multiValueHeaders !== undefined &&
|
|
3519
|
-
input.multiValueHeaders !== null && {
|
|
3440
|
+
...(input.body != null && { body: input.body }),
|
|
3441
|
+
...(input.headers != null && { headers: serializeAws_restJson1MapOfStringToString(input.headers, context) }),
|
|
3442
|
+
...(input.multiValueHeaders != null && {
|
|
3520
3443
|
multiValueHeaders: serializeAws_restJson1MapOfStringToList(input.multiValueHeaders, context),
|
|
3521
3444
|
}),
|
|
3522
|
-
...(input.pathWithQueryString
|
|
3523
|
-
|
|
3524
|
-
...(input.stageVariables !== undefined &&
|
|
3525
|
-
input.stageVariables !== null && {
|
|
3445
|
+
...(input.pathWithQueryString != null && { pathWithQueryString: input.pathWithQueryString }),
|
|
3446
|
+
...(input.stageVariables != null && {
|
|
3526
3447
|
stageVariables: serializeAws_restJson1MapOfStringToString(input.stageVariables, context),
|
|
3527
3448
|
}),
|
|
3528
3449
|
});
|
|
@@ -3576,19 +3497,14 @@ const serializeAws_restJson1TestInvokeMethodCommand = async (input, context) =>
|
|
|
3576
3497
|
}
|
|
3577
3498
|
let body;
|
|
3578
3499
|
body = JSON.stringify({
|
|
3579
|
-
...(input.body
|
|
3580
|
-
...(input.clientCertificateId
|
|
3581
|
-
|
|
3582
|
-
...(input.
|
|
3583
|
-
input.headers !== null && { headers: serializeAws_restJson1MapOfStringToString(input.headers, context) }),
|
|
3584
|
-
...(input.multiValueHeaders !== undefined &&
|
|
3585
|
-
input.multiValueHeaders !== null && {
|
|
3500
|
+
...(input.body != null && { body: input.body }),
|
|
3501
|
+
...(input.clientCertificateId != null && { clientCertificateId: input.clientCertificateId }),
|
|
3502
|
+
...(input.headers != null && { headers: serializeAws_restJson1MapOfStringToString(input.headers, context) }),
|
|
3503
|
+
...(input.multiValueHeaders != null && {
|
|
3586
3504
|
multiValueHeaders: serializeAws_restJson1MapOfStringToList(input.multiValueHeaders, context),
|
|
3587
3505
|
}),
|
|
3588
|
-
...(input.pathWithQueryString
|
|
3589
|
-
|
|
3590
|
-
...(input.stageVariables !== undefined &&
|
|
3591
|
-
input.stageVariables !== null && {
|
|
3506
|
+
...(input.pathWithQueryString != null && { pathWithQueryString: input.pathWithQueryString }),
|
|
3507
|
+
...(input.stageVariables != null && {
|
|
3592
3508
|
stageVariables: serializeAws_restJson1MapOfStringToString(input.stageVariables, context),
|
|
3593
3509
|
}),
|
|
3594
3510
|
});
|
|
@@ -3641,8 +3557,7 @@ const serializeAws_restJson1UpdateAccountCommand = async (input, context) => {
|
|
|
3641
3557
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/account";
|
|
3642
3558
|
let body;
|
|
3643
3559
|
body = JSON.stringify({
|
|
3644
|
-
...(input.patchOperations
|
|
3645
|
-
input.patchOperations !== null && {
|
|
3560
|
+
...(input.patchOperations != null && {
|
|
3646
3561
|
patchOperations: serializeAws_restJson1ListOfPatchOperation(input.patchOperations, context),
|
|
3647
3562
|
}),
|
|
3648
3563
|
});
|
|
@@ -3675,8 +3590,7 @@ const serializeAws_restJson1UpdateApiKeyCommand = async (input, context) => {
|
|
|
3675
3590
|
}
|
|
3676
3591
|
let body;
|
|
3677
3592
|
body = JSON.stringify({
|
|
3678
|
-
...(input.patchOperations
|
|
3679
|
-
input.patchOperations !== null && {
|
|
3593
|
+
...(input.patchOperations != null && {
|
|
3680
3594
|
patchOperations: serializeAws_restJson1ListOfPatchOperation(input.patchOperations, context),
|
|
3681
3595
|
}),
|
|
3682
3596
|
});
|
|
@@ -3720,8 +3634,7 @@ const serializeAws_restJson1UpdateAuthorizerCommand = async (input, context) =>
|
|
|
3720
3634
|
}
|
|
3721
3635
|
let body;
|
|
3722
3636
|
body = JSON.stringify({
|
|
3723
|
-
...(input.patchOperations
|
|
3724
|
-
input.patchOperations !== null && {
|
|
3637
|
+
...(input.patchOperations != null && {
|
|
3725
3638
|
patchOperations: serializeAws_restJson1ListOfPatchOperation(input.patchOperations, context),
|
|
3726
3639
|
}),
|
|
3727
3640
|
});
|
|
@@ -3765,8 +3678,7 @@ const serializeAws_restJson1UpdateBasePathMappingCommand = async (input, context
|
|
|
3765
3678
|
}
|
|
3766
3679
|
let body;
|
|
3767
3680
|
body = JSON.stringify({
|
|
3768
|
-
...(input.patchOperations
|
|
3769
|
-
input.patchOperations !== null && {
|
|
3681
|
+
...(input.patchOperations != null && {
|
|
3770
3682
|
patchOperations: serializeAws_restJson1ListOfPatchOperation(input.patchOperations, context),
|
|
3771
3683
|
}),
|
|
3772
3684
|
});
|
|
@@ -3799,8 +3711,7 @@ const serializeAws_restJson1UpdateClientCertificateCommand = async (input, conte
|
|
|
3799
3711
|
}
|
|
3800
3712
|
let body;
|
|
3801
3713
|
body = JSON.stringify({
|
|
3802
|
-
...(input.patchOperations
|
|
3803
|
-
input.patchOperations !== null && {
|
|
3714
|
+
...(input.patchOperations != null && {
|
|
3804
3715
|
patchOperations: serializeAws_restJson1ListOfPatchOperation(input.patchOperations, context),
|
|
3805
3716
|
}),
|
|
3806
3717
|
});
|
|
@@ -3844,8 +3755,7 @@ const serializeAws_restJson1UpdateDeploymentCommand = async (input, context) =>
|
|
|
3844
3755
|
}
|
|
3845
3756
|
let body;
|
|
3846
3757
|
body = JSON.stringify({
|
|
3847
|
-
...(input.patchOperations
|
|
3848
|
-
input.patchOperations !== null && {
|
|
3758
|
+
...(input.patchOperations != null && {
|
|
3849
3759
|
patchOperations: serializeAws_restJson1ListOfPatchOperation(input.patchOperations, context),
|
|
3850
3760
|
}),
|
|
3851
3761
|
});
|
|
@@ -3889,8 +3799,7 @@ const serializeAws_restJson1UpdateDocumentationPartCommand = async (input, conte
|
|
|
3889
3799
|
}
|
|
3890
3800
|
let body;
|
|
3891
3801
|
body = JSON.stringify({
|
|
3892
|
-
...(input.patchOperations
|
|
3893
|
-
input.patchOperations !== null && {
|
|
3802
|
+
...(input.patchOperations != null && {
|
|
3894
3803
|
patchOperations: serializeAws_restJson1ListOfPatchOperation(input.patchOperations, context),
|
|
3895
3804
|
}),
|
|
3896
3805
|
});
|
|
@@ -3934,8 +3843,7 @@ const serializeAws_restJson1UpdateDocumentationVersionCommand = async (input, co
|
|
|
3934
3843
|
}
|
|
3935
3844
|
let body;
|
|
3936
3845
|
body = JSON.stringify({
|
|
3937
|
-
...(input.patchOperations
|
|
3938
|
-
input.patchOperations !== null && {
|
|
3846
|
+
...(input.patchOperations != null && {
|
|
3939
3847
|
patchOperations: serializeAws_restJson1ListOfPatchOperation(input.patchOperations, context),
|
|
3940
3848
|
}),
|
|
3941
3849
|
});
|
|
@@ -3968,8 +3876,7 @@ const serializeAws_restJson1UpdateDomainNameCommand = async (input, context) =>
|
|
|
3968
3876
|
}
|
|
3969
3877
|
let body;
|
|
3970
3878
|
body = JSON.stringify({
|
|
3971
|
-
...(input.patchOperations
|
|
3972
|
-
input.patchOperations !== null && {
|
|
3879
|
+
...(input.patchOperations != null && {
|
|
3973
3880
|
patchOperations: serializeAws_restJson1ListOfPatchOperation(input.patchOperations, context),
|
|
3974
3881
|
}),
|
|
3975
3882
|
});
|
|
@@ -4013,8 +3920,7 @@ const serializeAws_restJson1UpdateGatewayResponseCommand = async (input, context
|
|
|
4013
3920
|
}
|
|
4014
3921
|
let body;
|
|
4015
3922
|
body = JSON.stringify({
|
|
4016
|
-
...(input.patchOperations
|
|
4017
|
-
input.patchOperations !== null && {
|
|
3923
|
+
...(input.patchOperations != null && {
|
|
4018
3924
|
patchOperations: serializeAws_restJson1ListOfPatchOperation(input.patchOperations, context),
|
|
4019
3925
|
}),
|
|
4020
3926
|
});
|
|
@@ -4068,8 +3974,7 @@ const serializeAws_restJson1UpdateIntegrationCommand = async (input, context) =>
|
|
|
4068
3974
|
}
|
|
4069
3975
|
let body;
|
|
4070
3976
|
body = JSON.stringify({
|
|
4071
|
-
...(input.patchOperations
|
|
4072
|
-
input.patchOperations !== null && {
|
|
3977
|
+
...(input.patchOperations != null && {
|
|
4073
3978
|
patchOperations: serializeAws_restJson1ListOfPatchOperation(input.patchOperations, context),
|
|
4074
3979
|
}),
|
|
4075
3980
|
});
|
|
@@ -4133,8 +4038,7 @@ const serializeAws_restJson1UpdateIntegrationResponseCommand = async (input, con
|
|
|
4133
4038
|
}
|
|
4134
4039
|
let body;
|
|
4135
4040
|
body = JSON.stringify({
|
|
4136
|
-
...(input.patchOperations
|
|
4137
|
-
input.patchOperations !== null && {
|
|
4041
|
+
...(input.patchOperations != null && {
|
|
4138
4042
|
patchOperations: serializeAws_restJson1ListOfPatchOperation(input.patchOperations, context),
|
|
4139
4043
|
}),
|
|
4140
4044
|
});
|
|
@@ -4188,8 +4092,7 @@ const serializeAws_restJson1UpdateMethodCommand = async (input, context) => {
|
|
|
4188
4092
|
}
|
|
4189
4093
|
let body;
|
|
4190
4094
|
body = JSON.stringify({
|
|
4191
|
-
...(input.patchOperations
|
|
4192
|
-
input.patchOperations !== null && {
|
|
4095
|
+
...(input.patchOperations != null && {
|
|
4193
4096
|
patchOperations: serializeAws_restJson1ListOfPatchOperation(input.patchOperations, context),
|
|
4194
4097
|
}),
|
|
4195
4098
|
});
|
|
@@ -4253,8 +4156,7 @@ const serializeAws_restJson1UpdateMethodResponseCommand = async (input, context)
|
|
|
4253
4156
|
}
|
|
4254
4157
|
let body;
|
|
4255
4158
|
body = JSON.stringify({
|
|
4256
|
-
...(input.patchOperations
|
|
4257
|
-
input.patchOperations !== null && {
|
|
4159
|
+
...(input.patchOperations != null && {
|
|
4258
4160
|
patchOperations: serializeAws_restJson1ListOfPatchOperation(input.patchOperations, context),
|
|
4259
4161
|
}),
|
|
4260
4162
|
});
|
|
@@ -4297,8 +4199,7 @@ const serializeAws_restJson1UpdateModelCommand = async (input, context) => {
|
|
|
4297
4199
|
}
|
|
4298
4200
|
let body;
|
|
4299
4201
|
body = JSON.stringify({
|
|
4300
|
-
...(input.patchOperations
|
|
4301
|
-
input.patchOperations !== null && {
|
|
4202
|
+
...(input.patchOperations != null && {
|
|
4302
4203
|
patchOperations: serializeAws_restJson1ListOfPatchOperation(input.patchOperations, context),
|
|
4303
4204
|
}),
|
|
4304
4205
|
});
|
|
@@ -4342,8 +4243,7 @@ const serializeAws_restJson1UpdateRequestValidatorCommand = async (input, contex
|
|
|
4342
4243
|
}
|
|
4343
4244
|
let body;
|
|
4344
4245
|
body = JSON.stringify({
|
|
4345
|
-
...(input.patchOperations
|
|
4346
|
-
input.patchOperations !== null && {
|
|
4246
|
+
...(input.patchOperations != null && {
|
|
4347
4247
|
patchOperations: serializeAws_restJson1ListOfPatchOperation(input.patchOperations, context),
|
|
4348
4248
|
}),
|
|
4349
4249
|
});
|
|
@@ -4387,8 +4287,7 @@ const serializeAws_restJson1UpdateResourceCommand = async (input, context) => {
|
|
|
4387
4287
|
}
|
|
4388
4288
|
let body;
|
|
4389
4289
|
body = JSON.stringify({
|
|
4390
|
-
...(input.patchOperations
|
|
4391
|
-
input.patchOperations !== null && {
|
|
4290
|
+
...(input.patchOperations != null && {
|
|
4392
4291
|
patchOperations: serializeAws_restJson1ListOfPatchOperation(input.patchOperations, context),
|
|
4393
4292
|
}),
|
|
4394
4293
|
});
|
|
@@ -4421,8 +4320,7 @@ const serializeAws_restJson1UpdateRestApiCommand = async (input, context) => {
|
|
|
4421
4320
|
}
|
|
4422
4321
|
let body;
|
|
4423
4322
|
body = JSON.stringify({
|
|
4424
|
-
...(input.patchOperations
|
|
4425
|
-
input.patchOperations !== null && {
|
|
4323
|
+
...(input.patchOperations != null && {
|
|
4426
4324
|
patchOperations: serializeAws_restJson1ListOfPatchOperation(input.patchOperations, context),
|
|
4427
4325
|
}),
|
|
4428
4326
|
});
|
|
@@ -4465,8 +4363,7 @@ const serializeAws_restJson1UpdateStageCommand = async (input, context) => {
|
|
|
4465
4363
|
}
|
|
4466
4364
|
let body;
|
|
4467
4365
|
body = JSON.stringify({
|
|
4468
|
-
...(input.patchOperations
|
|
4469
|
-
input.patchOperations !== null && {
|
|
4366
|
+
...(input.patchOperations != null && {
|
|
4470
4367
|
patchOperations: serializeAws_restJson1ListOfPatchOperation(input.patchOperations, context),
|
|
4471
4368
|
}),
|
|
4472
4369
|
});
|
|
@@ -4510,8 +4407,7 @@ const serializeAws_restJson1UpdateUsageCommand = async (input, context) => {
|
|
|
4510
4407
|
}
|
|
4511
4408
|
let body;
|
|
4512
4409
|
body = JSON.stringify({
|
|
4513
|
-
...(input.patchOperations
|
|
4514
|
-
input.patchOperations !== null && {
|
|
4410
|
+
...(input.patchOperations != null && {
|
|
4515
4411
|
patchOperations: serializeAws_restJson1ListOfPatchOperation(input.patchOperations, context),
|
|
4516
4412
|
}),
|
|
4517
4413
|
});
|
|
@@ -4544,8 +4440,7 @@ const serializeAws_restJson1UpdateUsagePlanCommand = async (input, context) => {
|
|
|
4544
4440
|
}
|
|
4545
4441
|
let body;
|
|
4546
4442
|
body = JSON.stringify({
|
|
4547
|
-
...(input.patchOperations
|
|
4548
|
-
input.patchOperations !== null && {
|
|
4443
|
+
...(input.patchOperations != null && {
|
|
4549
4444
|
patchOperations: serializeAws_restJson1ListOfPatchOperation(input.patchOperations, context),
|
|
4550
4445
|
}),
|
|
4551
4446
|
});
|
|
@@ -4578,8 +4473,7 @@ const serializeAws_restJson1UpdateVpcLinkCommand = async (input, context) => {
|
|
|
4578
4473
|
}
|
|
4579
4474
|
let body;
|
|
4580
4475
|
body = JSON.stringify({
|
|
4581
|
-
...(input.patchOperations
|
|
4582
|
-
input.patchOperations !== null && {
|
|
4476
|
+
...(input.patchOperations != null && {
|
|
4583
4477
|
patchOperations: serializeAws_restJson1ListOfPatchOperation(input.patchOperations, context),
|
|
4584
4478
|
}),
|
|
4585
4479
|
});
|
|
@@ -4651,8 +4545,7 @@ const deserializeAws_restJson1CreateApiKeyCommandError = async (output, context)
|
|
|
4651
4545
|
body: await parseBody(output.body, context),
|
|
4652
4546
|
};
|
|
4653
4547
|
let response;
|
|
4654
|
-
|
|
4655
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4548
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4656
4549
|
switch (errorCode) {
|
|
4657
4550
|
case "BadRequestException":
|
|
4658
4551
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -4674,10 +4567,12 @@ const deserializeAws_restJson1CreateApiKeyCommandError = async (output, context)
|
|
|
4674
4567
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
4675
4568
|
default:
|
|
4676
4569
|
const parsedBody = parsedOutput.body;
|
|
4570
|
+
const $metadata = deserializeMetadata(output);
|
|
4571
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4677
4572
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
4678
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4573
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4679
4574
|
$fault: "client",
|
|
4680
|
-
$metadata
|
|
4575
|
+
$metadata,
|
|
4681
4576
|
});
|
|
4682
4577
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4683
4578
|
}
|
|
@@ -4739,8 +4634,7 @@ const deserializeAws_restJson1CreateAuthorizerCommandError = async (output, cont
|
|
|
4739
4634
|
body: await parseBody(output.body, context),
|
|
4740
4635
|
};
|
|
4741
4636
|
let response;
|
|
4742
|
-
|
|
4743
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4637
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4744
4638
|
switch (errorCode) {
|
|
4745
4639
|
case "BadRequestException":
|
|
4746
4640
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -4762,10 +4656,12 @@ const deserializeAws_restJson1CreateAuthorizerCommandError = async (output, cont
|
|
|
4762
4656
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
4763
4657
|
default:
|
|
4764
4658
|
const parsedBody = parsedOutput.body;
|
|
4659
|
+
const $metadata = deserializeMetadata(output);
|
|
4660
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4765
4661
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
4766
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4662
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4767
4663
|
$fault: "client",
|
|
4768
|
-
$metadata
|
|
4664
|
+
$metadata,
|
|
4769
4665
|
});
|
|
4770
4666
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4771
4667
|
}
|
|
@@ -4799,8 +4695,7 @@ const deserializeAws_restJson1CreateBasePathMappingCommandError = async (output,
|
|
|
4799
4695
|
body: await parseBody(output.body, context),
|
|
4800
4696
|
};
|
|
4801
4697
|
let response;
|
|
4802
|
-
|
|
4803
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4698
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4804
4699
|
switch (errorCode) {
|
|
4805
4700
|
case "BadRequestException":
|
|
4806
4701
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -4822,10 +4717,12 @@ const deserializeAws_restJson1CreateBasePathMappingCommandError = async (output,
|
|
|
4822
4717
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
4823
4718
|
default:
|
|
4824
4719
|
const parsedBody = parsedOutput.body;
|
|
4720
|
+
const $metadata = deserializeMetadata(output);
|
|
4721
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4825
4722
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
4826
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4723
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4827
4724
|
$fault: "client",
|
|
4828
|
-
$metadata
|
|
4725
|
+
$metadata,
|
|
4829
4726
|
});
|
|
4830
4727
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4831
4728
|
}
|
|
@@ -4863,8 +4760,7 @@ const deserializeAws_restJson1CreateDeploymentCommandError = async (output, cont
|
|
|
4863
4760
|
body: await parseBody(output.body, context),
|
|
4864
4761
|
};
|
|
4865
4762
|
let response;
|
|
4866
|
-
|
|
4867
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4763
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4868
4764
|
switch (errorCode) {
|
|
4869
4765
|
case "BadRequestException":
|
|
4870
4766
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -4889,10 +4785,12 @@ const deserializeAws_restJson1CreateDeploymentCommandError = async (output, cont
|
|
|
4889
4785
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
4890
4786
|
default:
|
|
4891
4787
|
const parsedBody = parsedOutput.body;
|
|
4788
|
+
const $metadata = deserializeMetadata(output);
|
|
4789
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4892
4790
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
4893
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4791
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4894
4792
|
$fault: "client",
|
|
4895
|
-
$metadata
|
|
4793
|
+
$metadata,
|
|
4896
4794
|
});
|
|
4897
4795
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4898
4796
|
}
|
|
@@ -4926,8 +4824,7 @@ const deserializeAws_restJson1CreateDocumentationPartCommandError = async (outpu
|
|
|
4926
4824
|
body: await parseBody(output.body, context),
|
|
4927
4825
|
};
|
|
4928
4826
|
let response;
|
|
4929
|
-
|
|
4930
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4827
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4931
4828
|
switch (errorCode) {
|
|
4932
4829
|
case "BadRequestException":
|
|
4933
4830
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -4949,10 +4846,12 @@ const deserializeAws_restJson1CreateDocumentationPartCommandError = async (outpu
|
|
|
4949
4846
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
4950
4847
|
default:
|
|
4951
4848
|
const parsedBody = parsedOutput.body;
|
|
4849
|
+
const $metadata = deserializeMetadata(output);
|
|
4850
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4952
4851
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
4953
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4852
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4954
4853
|
$fault: "client",
|
|
4955
|
-
$metadata
|
|
4854
|
+
$metadata,
|
|
4956
4855
|
});
|
|
4957
4856
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4958
4857
|
}
|
|
@@ -4986,8 +4885,7 @@ const deserializeAws_restJson1CreateDocumentationVersionCommandError = async (ou
|
|
|
4986
4885
|
body: await parseBody(output.body, context),
|
|
4987
4886
|
};
|
|
4988
4887
|
let response;
|
|
4989
|
-
|
|
4990
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4888
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4991
4889
|
switch (errorCode) {
|
|
4992
4890
|
case "BadRequestException":
|
|
4993
4891
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -5009,10 +4907,12 @@ const deserializeAws_restJson1CreateDocumentationVersionCommandError = async (ou
|
|
|
5009
4907
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
5010
4908
|
default:
|
|
5011
4909
|
const parsedBody = parsedOutput.body;
|
|
4910
|
+
const $metadata = deserializeMetadata(output);
|
|
4911
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5012
4912
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
5013
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4913
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5014
4914
|
$fault: "client",
|
|
5015
|
-
$metadata
|
|
4915
|
+
$metadata,
|
|
5016
4916
|
});
|
|
5017
4917
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5018
4918
|
}
|
|
@@ -5102,8 +5002,7 @@ const deserializeAws_restJson1CreateDomainNameCommandError = async (output, cont
|
|
|
5102
5002
|
body: await parseBody(output.body, context),
|
|
5103
5003
|
};
|
|
5104
5004
|
let response;
|
|
5105
|
-
|
|
5106
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5005
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5107
5006
|
switch (errorCode) {
|
|
5108
5007
|
case "BadRequestException":
|
|
5109
5008
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -5122,10 +5021,12 @@ const deserializeAws_restJson1CreateDomainNameCommandError = async (output, cont
|
|
|
5122
5021
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
5123
5022
|
default:
|
|
5124
5023
|
const parsedBody = parsedOutput.body;
|
|
5024
|
+
const $metadata = deserializeMetadata(output);
|
|
5025
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5125
5026
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
5126
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5027
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5127
5028
|
$fault: "client",
|
|
5128
|
-
$metadata
|
|
5029
|
+
$metadata,
|
|
5129
5030
|
});
|
|
5130
5031
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5131
5032
|
}
|
|
@@ -5167,8 +5068,7 @@ const deserializeAws_restJson1CreateModelCommandError = async (output, context)
|
|
|
5167
5068
|
body: await parseBody(output.body, context),
|
|
5168
5069
|
};
|
|
5169
5070
|
let response;
|
|
5170
|
-
|
|
5171
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5071
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5172
5072
|
switch (errorCode) {
|
|
5173
5073
|
case "BadRequestException":
|
|
5174
5074
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -5190,10 +5090,12 @@ const deserializeAws_restJson1CreateModelCommandError = async (output, context)
|
|
|
5190
5090
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
5191
5091
|
default:
|
|
5192
5092
|
const parsedBody = parsedOutput.body;
|
|
5093
|
+
const $metadata = deserializeMetadata(output);
|
|
5094
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5193
5095
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
5194
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5096
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5195
5097
|
$fault: "client",
|
|
5196
|
-
$metadata
|
|
5098
|
+
$metadata,
|
|
5197
5099
|
});
|
|
5198
5100
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5199
5101
|
}
|
|
@@ -5231,8 +5133,7 @@ const deserializeAws_restJson1CreateRequestValidatorCommandError = async (output
|
|
|
5231
5133
|
body: await parseBody(output.body, context),
|
|
5232
5134
|
};
|
|
5233
5135
|
let response;
|
|
5234
|
-
|
|
5235
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5136
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5236
5137
|
switch (errorCode) {
|
|
5237
5138
|
case "BadRequestException":
|
|
5238
5139
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -5254,10 +5155,12 @@ const deserializeAws_restJson1CreateRequestValidatorCommandError = async (output
|
|
|
5254
5155
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
5255
5156
|
default:
|
|
5256
5157
|
const parsedBody = parsedOutput.body;
|
|
5158
|
+
const $metadata = deserializeMetadata(output);
|
|
5159
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5257
5160
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
5258
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5161
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5259
5162
|
$fault: "client",
|
|
5260
|
-
$metadata
|
|
5163
|
+
$metadata,
|
|
5261
5164
|
});
|
|
5262
5165
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5263
5166
|
}
|
|
@@ -5299,8 +5202,7 @@ const deserializeAws_restJson1CreateResourceCommandError = async (output, contex
|
|
|
5299
5202
|
body: await parseBody(output.body, context),
|
|
5300
5203
|
};
|
|
5301
5204
|
let response;
|
|
5302
|
-
|
|
5303
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5205
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5304
5206
|
switch (errorCode) {
|
|
5305
5207
|
case "BadRequestException":
|
|
5306
5208
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -5322,10 +5224,12 @@ const deserializeAws_restJson1CreateResourceCommandError = async (output, contex
|
|
|
5322
5224
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
5323
5225
|
default:
|
|
5324
5226
|
const parsedBody = parsedOutput.body;
|
|
5227
|
+
const $metadata = deserializeMetadata(output);
|
|
5228
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5325
5229
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
5326
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5230
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5327
5231
|
$fault: "client",
|
|
5328
|
-
$metadata
|
|
5232
|
+
$metadata,
|
|
5329
5233
|
});
|
|
5330
5234
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5331
5235
|
}
|
|
@@ -5399,8 +5303,7 @@ const deserializeAws_restJson1CreateRestApiCommandError = async (output, context
|
|
|
5399
5303
|
body: await parseBody(output.body, context),
|
|
5400
5304
|
};
|
|
5401
5305
|
let response;
|
|
5402
|
-
|
|
5403
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5306
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5404
5307
|
switch (errorCode) {
|
|
5405
5308
|
case "BadRequestException":
|
|
5406
5309
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -5419,10 +5322,12 @@ const deserializeAws_restJson1CreateRestApiCommandError = async (output, context
|
|
|
5419
5322
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
5420
5323
|
default:
|
|
5421
5324
|
const parsedBody = parsedOutput.body;
|
|
5325
|
+
const $metadata = deserializeMetadata(output);
|
|
5326
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5422
5327
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
5423
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5328
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5424
5329
|
$fault: "client",
|
|
5425
|
-
$metadata
|
|
5330
|
+
$metadata,
|
|
5426
5331
|
});
|
|
5427
5332
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5428
5333
|
}
|
|
@@ -5512,8 +5417,7 @@ const deserializeAws_restJson1CreateStageCommandError = async (output, context)
|
|
|
5512
5417
|
body: await parseBody(output.body, context),
|
|
5513
5418
|
};
|
|
5514
5419
|
let response;
|
|
5515
|
-
|
|
5516
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5420
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5517
5421
|
switch (errorCode) {
|
|
5518
5422
|
case "BadRequestException":
|
|
5519
5423
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -5535,10 +5439,12 @@ const deserializeAws_restJson1CreateStageCommandError = async (output, context)
|
|
|
5535
5439
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
5536
5440
|
default:
|
|
5537
5441
|
const parsedBody = parsedOutput.body;
|
|
5442
|
+
const $metadata = deserializeMetadata(output);
|
|
5443
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5538
5444
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
5539
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5445
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5540
5446
|
$fault: "client",
|
|
5541
|
-
$metadata
|
|
5447
|
+
$metadata,
|
|
5542
5448
|
});
|
|
5543
5449
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5544
5450
|
}
|
|
@@ -5592,8 +5498,7 @@ const deserializeAws_restJson1CreateUsagePlanCommandError = async (output, conte
|
|
|
5592
5498
|
body: await parseBody(output.body, context),
|
|
5593
5499
|
};
|
|
5594
5500
|
let response;
|
|
5595
|
-
|
|
5596
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5501
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5597
5502
|
switch (errorCode) {
|
|
5598
5503
|
case "BadRequestException":
|
|
5599
5504
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -5615,10 +5520,12 @@ const deserializeAws_restJson1CreateUsagePlanCommandError = async (output, conte
|
|
|
5615
5520
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
5616
5521
|
default:
|
|
5617
5522
|
const parsedBody = parsedOutput.body;
|
|
5523
|
+
const $metadata = deserializeMetadata(output);
|
|
5524
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5618
5525
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
5619
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5526
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5620
5527
|
$fault: "client",
|
|
5621
|
-
$metadata
|
|
5528
|
+
$metadata,
|
|
5622
5529
|
});
|
|
5623
5530
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5624
5531
|
}
|
|
@@ -5656,8 +5563,7 @@ const deserializeAws_restJson1CreateUsagePlanKeyCommandError = async (output, co
|
|
|
5656
5563
|
body: await parseBody(output.body, context),
|
|
5657
5564
|
};
|
|
5658
5565
|
let response;
|
|
5659
|
-
|
|
5660
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5566
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5661
5567
|
switch (errorCode) {
|
|
5662
5568
|
case "BadRequestException":
|
|
5663
5569
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -5679,10 +5585,12 @@ const deserializeAws_restJson1CreateUsagePlanKeyCommandError = async (output, co
|
|
|
5679
5585
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
5680
5586
|
default:
|
|
5681
5587
|
const parsedBody = parsedOutput.body;
|
|
5588
|
+
const $metadata = deserializeMetadata(output);
|
|
5589
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5682
5590
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
5683
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5591
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5684
5592
|
$fault: "client",
|
|
5685
|
-
$metadata
|
|
5593
|
+
$metadata,
|
|
5686
5594
|
});
|
|
5687
5595
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5688
5596
|
}
|
|
@@ -5732,8 +5640,7 @@ const deserializeAws_restJson1CreateVpcLinkCommandError = async (output, context
|
|
|
5732
5640
|
body: await parseBody(output.body, context),
|
|
5733
5641
|
};
|
|
5734
5642
|
let response;
|
|
5735
|
-
|
|
5736
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5643
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5737
5644
|
switch (errorCode) {
|
|
5738
5645
|
case "BadRequestException":
|
|
5739
5646
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -5752,10 +5659,12 @@ const deserializeAws_restJson1CreateVpcLinkCommandError = async (output, context
|
|
|
5752
5659
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
5753
5660
|
default:
|
|
5754
5661
|
const parsedBody = parsedOutput.body;
|
|
5662
|
+
const $metadata = deserializeMetadata(output);
|
|
5663
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5755
5664
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
5756
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5665
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5757
5666
|
$fault: "client",
|
|
5758
|
-
$metadata
|
|
5667
|
+
$metadata,
|
|
5759
5668
|
});
|
|
5760
5669
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5761
5670
|
}
|
|
@@ -5777,8 +5686,7 @@ const deserializeAws_restJson1DeleteApiKeyCommandError = async (output, context)
|
|
|
5777
5686
|
body: await parseBody(output.body, context),
|
|
5778
5687
|
};
|
|
5779
5688
|
let response;
|
|
5780
|
-
|
|
5781
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5689
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5782
5690
|
switch (errorCode) {
|
|
5783
5691
|
case "BadRequestException":
|
|
5784
5692
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -5797,10 +5705,12 @@ const deserializeAws_restJson1DeleteApiKeyCommandError = async (output, context)
|
|
|
5797
5705
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
5798
5706
|
default:
|
|
5799
5707
|
const parsedBody = parsedOutput.body;
|
|
5708
|
+
const $metadata = deserializeMetadata(output);
|
|
5709
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5800
5710
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
5801
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5711
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5802
5712
|
$fault: "client",
|
|
5803
|
-
$metadata
|
|
5713
|
+
$metadata,
|
|
5804
5714
|
});
|
|
5805
5715
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5806
5716
|
}
|
|
@@ -5822,8 +5732,7 @@ const deserializeAws_restJson1DeleteAuthorizerCommandError = async (output, cont
|
|
|
5822
5732
|
body: await parseBody(output.body, context),
|
|
5823
5733
|
};
|
|
5824
5734
|
let response;
|
|
5825
|
-
|
|
5826
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5735
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5827
5736
|
switch (errorCode) {
|
|
5828
5737
|
case "BadRequestException":
|
|
5829
5738
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -5842,10 +5751,12 @@ const deserializeAws_restJson1DeleteAuthorizerCommandError = async (output, cont
|
|
|
5842
5751
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
5843
5752
|
default:
|
|
5844
5753
|
const parsedBody = parsedOutput.body;
|
|
5754
|
+
const $metadata = deserializeMetadata(output);
|
|
5755
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5845
5756
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
5846
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5757
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5847
5758
|
$fault: "client",
|
|
5848
|
-
$metadata
|
|
5759
|
+
$metadata,
|
|
5849
5760
|
});
|
|
5850
5761
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5851
5762
|
}
|
|
@@ -5867,8 +5778,7 @@ const deserializeAws_restJson1DeleteBasePathMappingCommandError = async (output,
|
|
|
5867
5778
|
body: await parseBody(output.body, context),
|
|
5868
5779
|
};
|
|
5869
5780
|
let response;
|
|
5870
|
-
|
|
5871
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5781
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5872
5782
|
switch (errorCode) {
|
|
5873
5783
|
case "BadRequestException":
|
|
5874
5784
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -5887,10 +5797,12 @@ const deserializeAws_restJson1DeleteBasePathMappingCommandError = async (output,
|
|
|
5887
5797
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
5888
5798
|
default:
|
|
5889
5799
|
const parsedBody = parsedOutput.body;
|
|
5800
|
+
const $metadata = deserializeMetadata(output);
|
|
5801
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5890
5802
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
5891
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5803
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5892
5804
|
$fault: "client",
|
|
5893
|
-
$metadata
|
|
5805
|
+
$metadata,
|
|
5894
5806
|
});
|
|
5895
5807
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5896
5808
|
}
|
|
@@ -5912,8 +5824,7 @@ const deserializeAws_restJson1DeleteClientCertificateCommandError = async (outpu
|
|
|
5912
5824
|
body: await parseBody(output.body, context),
|
|
5913
5825
|
};
|
|
5914
5826
|
let response;
|
|
5915
|
-
|
|
5916
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5827
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5917
5828
|
switch (errorCode) {
|
|
5918
5829
|
case "BadRequestException":
|
|
5919
5830
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -5932,10 +5843,12 @@ const deserializeAws_restJson1DeleteClientCertificateCommandError = async (outpu
|
|
|
5932
5843
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
5933
5844
|
default:
|
|
5934
5845
|
const parsedBody = parsedOutput.body;
|
|
5846
|
+
const $metadata = deserializeMetadata(output);
|
|
5847
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5935
5848
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
5936
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5849
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5937
5850
|
$fault: "client",
|
|
5938
|
-
$metadata
|
|
5851
|
+
$metadata,
|
|
5939
5852
|
});
|
|
5940
5853
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5941
5854
|
}
|
|
@@ -5957,8 +5870,7 @@ const deserializeAws_restJson1DeleteDeploymentCommandError = async (output, cont
|
|
|
5957
5870
|
body: await parseBody(output.body, context),
|
|
5958
5871
|
};
|
|
5959
5872
|
let response;
|
|
5960
|
-
|
|
5961
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5873
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5962
5874
|
switch (errorCode) {
|
|
5963
5875
|
case "BadRequestException":
|
|
5964
5876
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -5980,10 +5892,12 @@ const deserializeAws_restJson1DeleteDeploymentCommandError = async (output, cont
|
|
|
5980
5892
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
5981
5893
|
default:
|
|
5982
5894
|
const parsedBody = parsedOutput.body;
|
|
5895
|
+
const $metadata = deserializeMetadata(output);
|
|
5896
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5983
5897
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
5984
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5898
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5985
5899
|
$fault: "client",
|
|
5986
|
-
$metadata
|
|
5900
|
+
$metadata,
|
|
5987
5901
|
});
|
|
5988
5902
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5989
5903
|
}
|
|
@@ -6005,8 +5919,7 @@ const deserializeAws_restJson1DeleteDocumentationPartCommandError = async (outpu
|
|
|
6005
5919
|
body: await parseBody(output.body, context),
|
|
6006
5920
|
};
|
|
6007
5921
|
let response;
|
|
6008
|
-
|
|
6009
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5922
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6010
5923
|
switch (errorCode) {
|
|
6011
5924
|
case "BadRequestException":
|
|
6012
5925
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -6025,10 +5938,12 @@ const deserializeAws_restJson1DeleteDocumentationPartCommandError = async (outpu
|
|
|
6025
5938
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
6026
5939
|
default:
|
|
6027
5940
|
const parsedBody = parsedOutput.body;
|
|
5941
|
+
const $metadata = deserializeMetadata(output);
|
|
5942
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6028
5943
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
6029
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5944
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6030
5945
|
$fault: "client",
|
|
6031
|
-
$metadata
|
|
5946
|
+
$metadata,
|
|
6032
5947
|
});
|
|
6033
5948
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6034
5949
|
}
|
|
@@ -6050,8 +5965,7 @@ const deserializeAws_restJson1DeleteDocumentationVersionCommandError = async (ou
|
|
|
6050
5965
|
body: await parseBody(output.body, context),
|
|
6051
5966
|
};
|
|
6052
5967
|
let response;
|
|
6053
|
-
|
|
6054
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5968
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6055
5969
|
switch (errorCode) {
|
|
6056
5970
|
case "BadRequestException":
|
|
6057
5971
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -6070,10 +5984,12 @@ const deserializeAws_restJson1DeleteDocumentationVersionCommandError = async (ou
|
|
|
6070
5984
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
6071
5985
|
default:
|
|
6072
5986
|
const parsedBody = parsedOutput.body;
|
|
5987
|
+
const $metadata = deserializeMetadata(output);
|
|
5988
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6073
5989
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
6074
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5990
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6075
5991
|
$fault: "client",
|
|
6076
|
-
$metadata
|
|
5992
|
+
$metadata,
|
|
6077
5993
|
});
|
|
6078
5994
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6079
5995
|
}
|
|
@@ -6095,8 +6011,7 @@ const deserializeAws_restJson1DeleteDomainNameCommandError = async (output, cont
|
|
|
6095
6011
|
body: await parseBody(output.body, context),
|
|
6096
6012
|
};
|
|
6097
6013
|
let response;
|
|
6098
|
-
|
|
6099
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6014
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6100
6015
|
switch (errorCode) {
|
|
6101
6016
|
case "BadRequestException":
|
|
6102
6017
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -6115,10 +6030,12 @@ const deserializeAws_restJson1DeleteDomainNameCommandError = async (output, cont
|
|
|
6115
6030
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
6116
6031
|
default:
|
|
6117
6032
|
const parsedBody = parsedOutput.body;
|
|
6033
|
+
const $metadata = deserializeMetadata(output);
|
|
6034
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6118
6035
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
6119
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6036
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6120
6037
|
$fault: "client",
|
|
6121
|
-
$metadata
|
|
6038
|
+
$metadata,
|
|
6122
6039
|
});
|
|
6123
6040
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6124
6041
|
}
|
|
@@ -6140,8 +6057,7 @@ const deserializeAws_restJson1DeleteGatewayResponseCommandError = async (output,
|
|
|
6140
6057
|
body: await parseBody(output.body, context),
|
|
6141
6058
|
};
|
|
6142
6059
|
let response;
|
|
6143
|
-
|
|
6144
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6060
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6145
6061
|
switch (errorCode) {
|
|
6146
6062
|
case "BadRequestException":
|
|
6147
6063
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -6160,10 +6076,12 @@ const deserializeAws_restJson1DeleteGatewayResponseCommandError = async (output,
|
|
|
6160
6076
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
6161
6077
|
default:
|
|
6162
6078
|
const parsedBody = parsedOutput.body;
|
|
6079
|
+
const $metadata = deserializeMetadata(output);
|
|
6080
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6163
6081
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
6164
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6082
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6165
6083
|
$fault: "client",
|
|
6166
|
-
$metadata
|
|
6084
|
+
$metadata,
|
|
6167
6085
|
});
|
|
6168
6086
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6169
6087
|
}
|
|
@@ -6185,8 +6103,7 @@ const deserializeAws_restJson1DeleteIntegrationCommandError = async (output, con
|
|
|
6185
6103
|
body: await parseBody(output.body, context),
|
|
6186
6104
|
};
|
|
6187
6105
|
let response;
|
|
6188
|
-
|
|
6189
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6106
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6190
6107
|
switch (errorCode) {
|
|
6191
6108
|
case "BadRequestException":
|
|
6192
6109
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -6205,10 +6122,12 @@ const deserializeAws_restJson1DeleteIntegrationCommandError = async (output, con
|
|
|
6205
6122
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
6206
6123
|
default:
|
|
6207
6124
|
const parsedBody = parsedOutput.body;
|
|
6125
|
+
const $metadata = deserializeMetadata(output);
|
|
6126
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6208
6127
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
6209
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6128
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6210
6129
|
$fault: "client",
|
|
6211
|
-
$metadata
|
|
6130
|
+
$metadata,
|
|
6212
6131
|
});
|
|
6213
6132
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6214
6133
|
}
|
|
@@ -6230,8 +6149,7 @@ const deserializeAws_restJson1DeleteIntegrationResponseCommandError = async (out
|
|
|
6230
6149
|
body: await parseBody(output.body, context),
|
|
6231
6150
|
};
|
|
6232
6151
|
let response;
|
|
6233
|
-
|
|
6234
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6152
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6235
6153
|
switch (errorCode) {
|
|
6236
6154
|
case "BadRequestException":
|
|
6237
6155
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -6250,10 +6168,12 @@ const deserializeAws_restJson1DeleteIntegrationResponseCommandError = async (out
|
|
|
6250
6168
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
6251
6169
|
default:
|
|
6252
6170
|
const parsedBody = parsedOutput.body;
|
|
6171
|
+
const $metadata = deserializeMetadata(output);
|
|
6172
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6253
6173
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
6254
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6174
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6255
6175
|
$fault: "client",
|
|
6256
|
-
$metadata
|
|
6176
|
+
$metadata,
|
|
6257
6177
|
});
|
|
6258
6178
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6259
6179
|
}
|
|
@@ -6275,8 +6195,7 @@ const deserializeAws_restJson1DeleteMethodCommandError = async (output, context)
|
|
|
6275
6195
|
body: await parseBody(output.body, context),
|
|
6276
6196
|
};
|
|
6277
6197
|
let response;
|
|
6278
|
-
|
|
6279
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6198
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6280
6199
|
switch (errorCode) {
|
|
6281
6200
|
case "ConflictException":
|
|
6282
6201
|
case "com.amazonaws.apigateway#ConflictException":
|
|
@@ -6292,10 +6211,12 @@ const deserializeAws_restJson1DeleteMethodCommandError = async (output, context)
|
|
|
6292
6211
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
6293
6212
|
default:
|
|
6294
6213
|
const parsedBody = parsedOutput.body;
|
|
6214
|
+
const $metadata = deserializeMetadata(output);
|
|
6215
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6295
6216
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
6296
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6217
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6297
6218
|
$fault: "client",
|
|
6298
|
-
$metadata
|
|
6219
|
+
$metadata,
|
|
6299
6220
|
});
|
|
6300
6221
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6301
6222
|
}
|
|
@@ -6317,8 +6238,7 @@ const deserializeAws_restJson1DeleteMethodResponseCommandError = async (output,
|
|
|
6317
6238
|
body: await parseBody(output.body, context),
|
|
6318
6239
|
};
|
|
6319
6240
|
let response;
|
|
6320
|
-
|
|
6321
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6241
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6322
6242
|
switch (errorCode) {
|
|
6323
6243
|
case "BadRequestException":
|
|
6324
6244
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -6337,10 +6257,12 @@ const deserializeAws_restJson1DeleteMethodResponseCommandError = async (output,
|
|
|
6337
6257
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
6338
6258
|
default:
|
|
6339
6259
|
const parsedBody = parsedOutput.body;
|
|
6260
|
+
const $metadata = deserializeMetadata(output);
|
|
6261
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6340
6262
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
6341
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6263
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6342
6264
|
$fault: "client",
|
|
6343
|
-
$metadata
|
|
6265
|
+
$metadata,
|
|
6344
6266
|
});
|
|
6345
6267
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6346
6268
|
}
|
|
@@ -6362,8 +6284,7 @@ const deserializeAws_restJson1DeleteModelCommandError = async (output, context)
|
|
|
6362
6284
|
body: await parseBody(output.body, context),
|
|
6363
6285
|
};
|
|
6364
6286
|
let response;
|
|
6365
|
-
|
|
6366
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6287
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6367
6288
|
switch (errorCode) {
|
|
6368
6289
|
case "BadRequestException":
|
|
6369
6290
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -6382,10 +6303,12 @@ const deserializeAws_restJson1DeleteModelCommandError = async (output, context)
|
|
|
6382
6303
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
6383
6304
|
default:
|
|
6384
6305
|
const parsedBody = parsedOutput.body;
|
|
6306
|
+
const $metadata = deserializeMetadata(output);
|
|
6307
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6385
6308
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
6386
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6309
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6387
6310
|
$fault: "client",
|
|
6388
|
-
$metadata
|
|
6311
|
+
$metadata,
|
|
6389
6312
|
});
|
|
6390
6313
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6391
6314
|
}
|
|
@@ -6407,8 +6330,7 @@ const deserializeAws_restJson1DeleteRequestValidatorCommandError = async (output
|
|
|
6407
6330
|
body: await parseBody(output.body, context),
|
|
6408
6331
|
};
|
|
6409
6332
|
let response;
|
|
6410
|
-
|
|
6411
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6333
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6412
6334
|
switch (errorCode) {
|
|
6413
6335
|
case "BadRequestException":
|
|
6414
6336
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -6427,10 +6349,12 @@ const deserializeAws_restJson1DeleteRequestValidatorCommandError = async (output
|
|
|
6427
6349
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
6428
6350
|
default:
|
|
6429
6351
|
const parsedBody = parsedOutput.body;
|
|
6352
|
+
const $metadata = deserializeMetadata(output);
|
|
6353
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6430
6354
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
6431
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6355
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6432
6356
|
$fault: "client",
|
|
6433
|
-
$metadata
|
|
6357
|
+
$metadata,
|
|
6434
6358
|
});
|
|
6435
6359
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6436
6360
|
}
|
|
@@ -6452,8 +6376,7 @@ const deserializeAws_restJson1DeleteResourceCommandError = async (output, contex
|
|
|
6452
6376
|
body: await parseBody(output.body, context),
|
|
6453
6377
|
};
|
|
6454
6378
|
let response;
|
|
6455
|
-
|
|
6456
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6379
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6457
6380
|
switch (errorCode) {
|
|
6458
6381
|
case "BadRequestException":
|
|
6459
6382
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -6472,10 +6395,12 @@ const deserializeAws_restJson1DeleteResourceCommandError = async (output, contex
|
|
|
6472
6395
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
6473
6396
|
default:
|
|
6474
6397
|
const parsedBody = parsedOutput.body;
|
|
6398
|
+
const $metadata = deserializeMetadata(output);
|
|
6399
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6475
6400
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
6476
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6401
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6477
6402
|
$fault: "client",
|
|
6478
|
-
$metadata
|
|
6403
|
+
$metadata,
|
|
6479
6404
|
});
|
|
6480
6405
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6481
6406
|
}
|
|
@@ -6497,8 +6422,7 @@ const deserializeAws_restJson1DeleteRestApiCommandError = async (output, context
|
|
|
6497
6422
|
body: await parseBody(output.body, context),
|
|
6498
6423
|
};
|
|
6499
6424
|
let response;
|
|
6500
|
-
|
|
6501
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6425
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6502
6426
|
switch (errorCode) {
|
|
6503
6427
|
case "BadRequestException":
|
|
6504
6428
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -6517,10 +6441,12 @@ const deserializeAws_restJson1DeleteRestApiCommandError = async (output, context
|
|
|
6517
6441
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
6518
6442
|
default:
|
|
6519
6443
|
const parsedBody = parsedOutput.body;
|
|
6444
|
+
const $metadata = deserializeMetadata(output);
|
|
6445
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6520
6446
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
6521
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6447
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6522
6448
|
$fault: "client",
|
|
6523
|
-
$metadata
|
|
6449
|
+
$metadata,
|
|
6524
6450
|
});
|
|
6525
6451
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6526
6452
|
}
|
|
@@ -6542,8 +6468,7 @@ const deserializeAws_restJson1DeleteStageCommandError = async (output, context)
|
|
|
6542
6468
|
body: await parseBody(output.body, context),
|
|
6543
6469
|
};
|
|
6544
6470
|
let response;
|
|
6545
|
-
|
|
6546
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6471
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6547
6472
|
switch (errorCode) {
|
|
6548
6473
|
case "BadRequestException":
|
|
6549
6474
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -6565,10 +6490,12 @@ const deserializeAws_restJson1DeleteStageCommandError = async (output, context)
|
|
|
6565
6490
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
6566
6491
|
default:
|
|
6567
6492
|
const parsedBody = parsedOutput.body;
|
|
6493
|
+
const $metadata = deserializeMetadata(output);
|
|
6494
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6568
6495
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
6569
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6496
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6570
6497
|
$fault: "client",
|
|
6571
|
-
$metadata
|
|
6498
|
+
$metadata,
|
|
6572
6499
|
});
|
|
6573
6500
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6574
6501
|
}
|
|
@@ -6590,8 +6517,7 @@ const deserializeAws_restJson1DeleteUsagePlanCommandError = async (output, conte
|
|
|
6590
6517
|
body: await parseBody(output.body, context),
|
|
6591
6518
|
};
|
|
6592
6519
|
let response;
|
|
6593
|
-
|
|
6594
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6520
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6595
6521
|
switch (errorCode) {
|
|
6596
6522
|
case "BadRequestException":
|
|
6597
6523
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -6610,10 +6536,12 @@ const deserializeAws_restJson1DeleteUsagePlanCommandError = async (output, conte
|
|
|
6610
6536
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
6611
6537
|
default:
|
|
6612
6538
|
const parsedBody = parsedOutput.body;
|
|
6539
|
+
const $metadata = deserializeMetadata(output);
|
|
6540
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6613
6541
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
6614
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6542
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6615
6543
|
$fault: "client",
|
|
6616
|
-
$metadata
|
|
6544
|
+
$metadata,
|
|
6617
6545
|
});
|
|
6618
6546
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6619
6547
|
}
|
|
@@ -6635,8 +6563,7 @@ const deserializeAws_restJson1DeleteUsagePlanKeyCommandError = async (output, co
|
|
|
6635
6563
|
body: await parseBody(output.body, context),
|
|
6636
6564
|
};
|
|
6637
6565
|
let response;
|
|
6638
|
-
|
|
6639
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6566
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6640
6567
|
switch (errorCode) {
|
|
6641
6568
|
case "BadRequestException":
|
|
6642
6569
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -6655,10 +6582,12 @@ const deserializeAws_restJson1DeleteUsagePlanKeyCommandError = async (output, co
|
|
|
6655
6582
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
6656
6583
|
default:
|
|
6657
6584
|
const parsedBody = parsedOutput.body;
|
|
6585
|
+
const $metadata = deserializeMetadata(output);
|
|
6586
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6658
6587
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
6659
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6588
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6660
6589
|
$fault: "client",
|
|
6661
|
-
$metadata
|
|
6590
|
+
$metadata,
|
|
6662
6591
|
});
|
|
6663
6592
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6664
6593
|
}
|
|
@@ -6680,8 +6609,7 @@ const deserializeAws_restJson1DeleteVpcLinkCommandError = async (output, context
|
|
|
6680
6609
|
body: await parseBody(output.body, context),
|
|
6681
6610
|
};
|
|
6682
6611
|
let response;
|
|
6683
|
-
|
|
6684
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6612
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6685
6613
|
switch (errorCode) {
|
|
6686
6614
|
case "BadRequestException":
|
|
6687
6615
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -6700,10 +6628,12 @@ const deserializeAws_restJson1DeleteVpcLinkCommandError = async (output, context
|
|
|
6700
6628
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
6701
6629
|
default:
|
|
6702
6630
|
const parsedBody = parsedOutput.body;
|
|
6631
|
+
const $metadata = deserializeMetadata(output);
|
|
6632
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6703
6633
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
6704
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6634
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6705
6635
|
$fault: "client",
|
|
6706
|
-
$metadata
|
|
6636
|
+
$metadata,
|
|
6707
6637
|
});
|
|
6708
6638
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6709
6639
|
}
|
|
@@ -6725,8 +6655,7 @@ const deserializeAws_restJson1FlushStageAuthorizersCacheCommandError = async (ou
|
|
|
6725
6655
|
body: await parseBody(output.body, context),
|
|
6726
6656
|
};
|
|
6727
6657
|
let response;
|
|
6728
|
-
|
|
6729
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6658
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6730
6659
|
switch (errorCode) {
|
|
6731
6660
|
case "BadRequestException":
|
|
6732
6661
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -6748,10 +6677,12 @@ const deserializeAws_restJson1FlushStageAuthorizersCacheCommandError = async (ou
|
|
|
6748
6677
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
6749
6678
|
default:
|
|
6750
6679
|
const parsedBody = parsedOutput.body;
|
|
6680
|
+
const $metadata = deserializeMetadata(output);
|
|
6681
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6751
6682
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
6752
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6683
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6753
6684
|
$fault: "client",
|
|
6754
|
-
$metadata
|
|
6685
|
+
$metadata,
|
|
6755
6686
|
});
|
|
6756
6687
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6757
6688
|
}
|
|
@@ -6773,8 +6704,7 @@ const deserializeAws_restJson1FlushStageCacheCommandError = async (output, conte
|
|
|
6773
6704
|
body: await parseBody(output.body, context),
|
|
6774
6705
|
};
|
|
6775
6706
|
let response;
|
|
6776
|
-
|
|
6777
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6707
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6778
6708
|
switch (errorCode) {
|
|
6779
6709
|
case "BadRequestException":
|
|
6780
6710
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -6796,10 +6726,12 @@ const deserializeAws_restJson1FlushStageCacheCommandError = async (output, conte
|
|
|
6796
6726
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
6797
6727
|
default:
|
|
6798
6728
|
const parsedBody = parsedOutput.body;
|
|
6729
|
+
const $metadata = deserializeMetadata(output);
|
|
6730
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6799
6731
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
6800
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6732
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6801
6733
|
$fault: "client",
|
|
6802
|
-
$metadata
|
|
6734
|
+
$metadata,
|
|
6803
6735
|
});
|
|
6804
6736
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6805
6737
|
}
|
|
@@ -6845,8 +6777,7 @@ const deserializeAws_restJson1GenerateClientCertificateCommandError = async (out
|
|
|
6845
6777
|
body: await parseBody(output.body, context),
|
|
6846
6778
|
};
|
|
6847
6779
|
let response;
|
|
6848
|
-
|
|
6849
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6780
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6850
6781
|
switch (errorCode) {
|
|
6851
6782
|
case "BadRequestException":
|
|
6852
6783
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -6865,10 +6796,12 @@ const deserializeAws_restJson1GenerateClientCertificateCommandError = async (out
|
|
|
6865
6796
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
6866
6797
|
default:
|
|
6867
6798
|
const parsedBody = parsedOutput.body;
|
|
6799
|
+
const $metadata = deserializeMetadata(output);
|
|
6800
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6868
6801
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
6869
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6802
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6870
6803
|
$fault: "client",
|
|
6871
|
-
$metadata
|
|
6804
|
+
$metadata,
|
|
6872
6805
|
});
|
|
6873
6806
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6874
6807
|
}
|
|
@@ -6906,8 +6839,7 @@ const deserializeAws_restJson1GetAccountCommandError = async (output, context) =
|
|
|
6906
6839
|
body: await parseBody(output.body, context),
|
|
6907
6840
|
};
|
|
6908
6841
|
let response;
|
|
6909
|
-
|
|
6910
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6842
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6911
6843
|
switch (errorCode) {
|
|
6912
6844
|
case "BadRequestException":
|
|
6913
6845
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -6923,10 +6855,12 @@ const deserializeAws_restJson1GetAccountCommandError = async (output, context) =
|
|
|
6923
6855
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
6924
6856
|
default:
|
|
6925
6857
|
const parsedBody = parsedOutput.body;
|
|
6858
|
+
const $metadata = deserializeMetadata(output);
|
|
6859
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6926
6860
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
6927
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6861
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6928
6862
|
$fault: "client",
|
|
6929
|
-
$metadata
|
|
6863
|
+
$metadata,
|
|
6930
6864
|
});
|
|
6931
6865
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6932
6866
|
}
|
|
@@ -6988,8 +6922,7 @@ const deserializeAws_restJson1GetApiKeyCommandError = async (output, context) =>
|
|
|
6988
6922
|
body: await parseBody(output.body, context),
|
|
6989
6923
|
};
|
|
6990
6924
|
let response;
|
|
6991
|
-
|
|
6992
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6925
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6993
6926
|
switch (errorCode) {
|
|
6994
6927
|
case "BadRequestException":
|
|
6995
6928
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -7005,10 +6938,12 @@ const deserializeAws_restJson1GetApiKeyCommandError = async (output, context) =>
|
|
|
7005
6938
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
7006
6939
|
default:
|
|
7007
6940
|
const parsedBody = parsedOutput.body;
|
|
6941
|
+
const $metadata = deserializeMetadata(output);
|
|
6942
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
7008
6943
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
7009
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6944
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
7010
6945
|
$fault: "client",
|
|
7011
|
-
$metadata
|
|
6946
|
+
$metadata,
|
|
7012
6947
|
});
|
|
7013
6948
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
7014
6949
|
}
|
|
@@ -7042,8 +6977,7 @@ const deserializeAws_restJson1GetApiKeysCommandError = async (output, context) =
|
|
|
7042
6977
|
body: await parseBody(output.body, context),
|
|
7043
6978
|
};
|
|
7044
6979
|
let response;
|
|
7045
|
-
|
|
7046
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6980
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7047
6981
|
switch (errorCode) {
|
|
7048
6982
|
case "BadRequestException":
|
|
7049
6983
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -7059,10 +6993,12 @@ const deserializeAws_restJson1GetApiKeysCommandError = async (output, context) =
|
|
|
7059
6993
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
7060
6994
|
default:
|
|
7061
6995
|
const parsedBody = parsedOutput.body;
|
|
6996
|
+
const $metadata = deserializeMetadata(output);
|
|
6997
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
7062
6998
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
7063
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6999
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
7064
7000
|
$fault: "client",
|
|
7065
|
-
$metadata
|
|
7001
|
+
$metadata,
|
|
7066
7002
|
});
|
|
7067
7003
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
7068
7004
|
}
|
|
@@ -7124,8 +7060,7 @@ const deserializeAws_restJson1GetAuthorizerCommandError = async (output, context
|
|
|
7124
7060
|
body: await parseBody(output.body, context),
|
|
7125
7061
|
};
|
|
7126
7062
|
let response;
|
|
7127
|
-
|
|
7128
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7063
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7129
7064
|
switch (errorCode) {
|
|
7130
7065
|
case "BadRequestException":
|
|
7131
7066
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -7141,10 +7076,12 @@ const deserializeAws_restJson1GetAuthorizerCommandError = async (output, context
|
|
|
7141
7076
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
7142
7077
|
default:
|
|
7143
7078
|
const parsedBody = parsedOutput.body;
|
|
7079
|
+
const $metadata = deserializeMetadata(output);
|
|
7080
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
7144
7081
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
7145
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7082
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
7146
7083
|
$fault: "client",
|
|
7147
|
-
$metadata
|
|
7084
|
+
$metadata,
|
|
7148
7085
|
});
|
|
7149
7086
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
7150
7087
|
}
|
|
@@ -7174,8 +7111,7 @@ const deserializeAws_restJson1GetAuthorizersCommandError = async (output, contex
|
|
|
7174
7111
|
body: await parseBody(output.body, context),
|
|
7175
7112
|
};
|
|
7176
7113
|
let response;
|
|
7177
|
-
|
|
7178
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7114
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7179
7115
|
switch (errorCode) {
|
|
7180
7116
|
case "BadRequestException":
|
|
7181
7117
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -7191,10 +7127,12 @@ const deserializeAws_restJson1GetAuthorizersCommandError = async (output, contex
|
|
|
7191
7127
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
7192
7128
|
default:
|
|
7193
7129
|
const parsedBody = parsedOutput.body;
|
|
7130
|
+
const $metadata = deserializeMetadata(output);
|
|
7131
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
7194
7132
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
7195
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7133
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
7196
7134
|
$fault: "client",
|
|
7197
|
-
$metadata
|
|
7135
|
+
$metadata,
|
|
7198
7136
|
});
|
|
7199
7137
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
7200
7138
|
}
|
|
@@ -7228,8 +7166,7 @@ const deserializeAws_restJson1GetBasePathMappingCommandError = async (output, co
|
|
|
7228
7166
|
body: await parseBody(output.body, context),
|
|
7229
7167
|
};
|
|
7230
7168
|
let response;
|
|
7231
|
-
|
|
7232
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7169
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7233
7170
|
switch (errorCode) {
|
|
7234
7171
|
case "BadRequestException":
|
|
7235
7172
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -7245,10 +7182,12 @@ const deserializeAws_restJson1GetBasePathMappingCommandError = async (output, co
|
|
|
7245
7182
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
7246
7183
|
default:
|
|
7247
7184
|
const parsedBody = parsedOutput.body;
|
|
7185
|
+
const $metadata = deserializeMetadata(output);
|
|
7186
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
7248
7187
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
7249
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7188
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
7250
7189
|
$fault: "client",
|
|
7251
|
-
$metadata
|
|
7190
|
+
$metadata,
|
|
7252
7191
|
});
|
|
7253
7192
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
7254
7193
|
}
|
|
@@ -7278,8 +7217,7 @@ const deserializeAws_restJson1GetBasePathMappingsCommandError = async (output, c
|
|
|
7278
7217
|
body: await parseBody(output.body, context),
|
|
7279
7218
|
};
|
|
7280
7219
|
let response;
|
|
7281
|
-
|
|
7282
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7220
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7283
7221
|
switch (errorCode) {
|
|
7284
7222
|
case "BadRequestException":
|
|
7285
7223
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -7295,10 +7233,12 @@ const deserializeAws_restJson1GetBasePathMappingsCommandError = async (output, c
|
|
|
7295
7233
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
7296
7234
|
default:
|
|
7297
7235
|
const parsedBody = parsedOutput.body;
|
|
7236
|
+
const $metadata = deserializeMetadata(output);
|
|
7237
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
7298
7238
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
7299
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7239
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
7300
7240
|
$fault: "client",
|
|
7301
|
-
$metadata
|
|
7241
|
+
$metadata,
|
|
7302
7242
|
});
|
|
7303
7243
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
7304
7244
|
}
|
|
@@ -7344,8 +7284,7 @@ const deserializeAws_restJson1GetClientCertificateCommandError = async (output,
|
|
|
7344
7284
|
body: await parseBody(output.body, context),
|
|
7345
7285
|
};
|
|
7346
7286
|
let response;
|
|
7347
|
-
|
|
7348
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7287
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7349
7288
|
switch (errorCode) {
|
|
7350
7289
|
case "BadRequestException":
|
|
7351
7290
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -7361,10 +7300,12 @@ const deserializeAws_restJson1GetClientCertificateCommandError = async (output,
|
|
|
7361
7300
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
7362
7301
|
default:
|
|
7363
7302
|
const parsedBody = parsedOutput.body;
|
|
7303
|
+
const $metadata = deserializeMetadata(output);
|
|
7304
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
7364
7305
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
7365
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7306
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
7366
7307
|
$fault: "client",
|
|
7367
|
-
$metadata
|
|
7308
|
+
$metadata,
|
|
7368
7309
|
});
|
|
7369
7310
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
7370
7311
|
}
|
|
@@ -7394,8 +7335,7 @@ const deserializeAws_restJson1GetClientCertificatesCommandError = async (output,
|
|
|
7394
7335
|
body: await parseBody(output.body, context),
|
|
7395
7336
|
};
|
|
7396
7337
|
let response;
|
|
7397
|
-
|
|
7398
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7338
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7399
7339
|
switch (errorCode) {
|
|
7400
7340
|
case "BadRequestException":
|
|
7401
7341
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -7411,10 +7351,12 @@ const deserializeAws_restJson1GetClientCertificatesCommandError = async (output,
|
|
|
7411
7351
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
7412
7352
|
default:
|
|
7413
7353
|
const parsedBody = parsedOutput.body;
|
|
7354
|
+
const $metadata = deserializeMetadata(output);
|
|
7355
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
7414
7356
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
7415
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7357
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
7416
7358
|
$fault: "client",
|
|
7417
|
-
$metadata
|
|
7359
|
+
$metadata,
|
|
7418
7360
|
});
|
|
7419
7361
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
7420
7362
|
}
|
|
@@ -7452,8 +7394,7 @@ const deserializeAws_restJson1GetDeploymentCommandError = async (output, context
|
|
|
7452
7394
|
body: await parseBody(output.body, context),
|
|
7453
7395
|
};
|
|
7454
7396
|
let response;
|
|
7455
|
-
|
|
7456
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7397
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7457
7398
|
switch (errorCode) {
|
|
7458
7399
|
case "BadRequestException":
|
|
7459
7400
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -7472,10 +7413,12 @@ const deserializeAws_restJson1GetDeploymentCommandError = async (output, context
|
|
|
7472
7413
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
7473
7414
|
default:
|
|
7474
7415
|
const parsedBody = parsedOutput.body;
|
|
7416
|
+
const $metadata = deserializeMetadata(output);
|
|
7417
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
7475
7418
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
7476
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7419
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
7477
7420
|
$fault: "client",
|
|
7478
|
-
$metadata
|
|
7421
|
+
$metadata,
|
|
7479
7422
|
});
|
|
7480
7423
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
7481
7424
|
}
|
|
@@ -7505,8 +7448,7 @@ const deserializeAws_restJson1GetDeploymentsCommandError = async (output, contex
|
|
|
7505
7448
|
body: await parseBody(output.body, context),
|
|
7506
7449
|
};
|
|
7507
7450
|
let response;
|
|
7508
|
-
|
|
7509
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7451
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7510
7452
|
switch (errorCode) {
|
|
7511
7453
|
case "BadRequestException":
|
|
7512
7454
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -7525,10 +7467,12 @@ const deserializeAws_restJson1GetDeploymentsCommandError = async (output, contex
|
|
|
7525
7467
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
7526
7468
|
default:
|
|
7527
7469
|
const parsedBody = parsedOutput.body;
|
|
7470
|
+
const $metadata = deserializeMetadata(output);
|
|
7471
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
7528
7472
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
7529
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7473
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
7530
7474
|
$fault: "client",
|
|
7531
|
-
$metadata
|
|
7475
|
+
$metadata,
|
|
7532
7476
|
});
|
|
7533
7477
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
7534
7478
|
}
|
|
@@ -7562,8 +7506,7 @@ const deserializeAws_restJson1GetDocumentationPartCommandError = async (output,
|
|
|
7562
7506
|
body: await parseBody(output.body, context),
|
|
7563
7507
|
};
|
|
7564
7508
|
let response;
|
|
7565
|
-
|
|
7566
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7509
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7567
7510
|
switch (errorCode) {
|
|
7568
7511
|
case "BadRequestException":
|
|
7569
7512
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -7579,10 +7522,12 @@ const deserializeAws_restJson1GetDocumentationPartCommandError = async (output,
|
|
|
7579
7522
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
7580
7523
|
default:
|
|
7581
7524
|
const parsedBody = parsedOutput.body;
|
|
7525
|
+
const $metadata = deserializeMetadata(output);
|
|
7526
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
7582
7527
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
7583
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7528
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
7584
7529
|
$fault: "client",
|
|
7585
|
-
$metadata
|
|
7530
|
+
$metadata,
|
|
7586
7531
|
});
|
|
7587
7532
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
7588
7533
|
}
|
|
@@ -7612,8 +7557,7 @@ const deserializeAws_restJson1GetDocumentationPartsCommandError = async (output,
|
|
|
7612
7557
|
body: await parseBody(output.body, context),
|
|
7613
7558
|
};
|
|
7614
7559
|
let response;
|
|
7615
|
-
|
|
7616
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7560
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7617
7561
|
switch (errorCode) {
|
|
7618
7562
|
case "BadRequestException":
|
|
7619
7563
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -7629,10 +7573,12 @@ const deserializeAws_restJson1GetDocumentationPartsCommandError = async (output,
|
|
|
7629
7573
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
7630
7574
|
default:
|
|
7631
7575
|
const parsedBody = parsedOutput.body;
|
|
7576
|
+
const $metadata = deserializeMetadata(output);
|
|
7577
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
7632
7578
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
7633
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7579
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
7634
7580
|
$fault: "client",
|
|
7635
|
-
$metadata
|
|
7581
|
+
$metadata,
|
|
7636
7582
|
});
|
|
7637
7583
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
7638
7584
|
}
|
|
@@ -7666,8 +7612,7 @@ const deserializeAws_restJson1GetDocumentationVersionCommandError = async (outpu
|
|
|
7666
7612
|
body: await parseBody(output.body, context),
|
|
7667
7613
|
};
|
|
7668
7614
|
let response;
|
|
7669
|
-
|
|
7670
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7615
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7671
7616
|
switch (errorCode) {
|
|
7672
7617
|
case "NotFoundException":
|
|
7673
7618
|
case "com.amazonaws.apigateway#NotFoundException":
|
|
@@ -7680,10 +7625,12 @@ const deserializeAws_restJson1GetDocumentationVersionCommandError = async (outpu
|
|
|
7680
7625
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
7681
7626
|
default:
|
|
7682
7627
|
const parsedBody = parsedOutput.body;
|
|
7628
|
+
const $metadata = deserializeMetadata(output);
|
|
7629
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
7683
7630
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
7684
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7631
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
7685
7632
|
$fault: "client",
|
|
7686
|
-
$metadata
|
|
7633
|
+
$metadata,
|
|
7687
7634
|
});
|
|
7688
7635
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
7689
7636
|
}
|
|
@@ -7713,8 +7660,7 @@ const deserializeAws_restJson1GetDocumentationVersionsCommandError = async (outp
|
|
|
7713
7660
|
body: await parseBody(output.body, context),
|
|
7714
7661
|
};
|
|
7715
7662
|
let response;
|
|
7716
|
-
|
|
7717
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7663
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7718
7664
|
switch (errorCode) {
|
|
7719
7665
|
case "BadRequestException":
|
|
7720
7666
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -7730,10 +7676,12 @@ const deserializeAws_restJson1GetDocumentationVersionsCommandError = async (outp
|
|
|
7730
7676
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
7731
7677
|
default:
|
|
7732
7678
|
const parsedBody = parsedOutput.body;
|
|
7679
|
+
const $metadata = deserializeMetadata(output);
|
|
7680
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
7733
7681
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
7734
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7682
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
7735
7683
|
$fault: "client",
|
|
7736
|
-
$metadata
|
|
7684
|
+
$metadata,
|
|
7737
7685
|
});
|
|
7738
7686
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
7739
7687
|
}
|
|
@@ -7823,8 +7771,7 @@ const deserializeAws_restJson1GetDomainNameCommandError = async (output, context
|
|
|
7823
7771
|
body: await parseBody(output.body, context),
|
|
7824
7772
|
};
|
|
7825
7773
|
let response;
|
|
7826
|
-
|
|
7827
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7774
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7828
7775
|
switch (errorCode) {
|
|
7829
7776
|
case "BadRequestException":
|
|
7830
7777
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -7840,10 +7787,12 @@ const deserializeAws_restJson1GetDomainNameCommandError = async (output, context
|
|
|
7840
7787
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
7841
7788
|
default:
|
|
7842
7789
|
const parsedBody = parsedOutput.body;
|
|
7790
|
+
const $metadata = deserializeMetadata(output);
|
|
7791
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
7843
7792
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
7844
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7793
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
7845
7794
|
$fault: "client",
|
|
7846
|
-
$metadata
|
|
7795
|
+
$metadata,
|
|
7847
7796
|
});
|
|
7848
7797
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
7849
7798
|
}
|
|
@@ -7873,8 +7822,7 @@ const deserializeAws_restJson1GetDomainNamesCommandError = async (output, contex
|
|
|
7873
7822
|
body: await parseBody(output.body, context),
|
|
7874
7823
|
};
|
|
7875
7824
|
let response;
|
|
7876
|
-
|
|
7877
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7825
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7878
7826
|
switch (errorCode) {
|
|
7879
7827
|
case "BadRequestException":
|
|
7880
7828
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -7890,10 +7838,12 @@ const deserializeAws_restJson1GetDomainNamesCommandError = async (output, contex
|
|
|
7890
7838
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
7891
7839
|
default:
|
|
7892
7840
|
const parsedBody = parsedOutput.body;
|
|
7841
|
+
const $metadata = deserializeMetadata(output);
|
|
7842
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
7893
7843
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
7894
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7844
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
7895
7845
|
$fault: "client",
|
|
7896
|
-
$metadata
|
|
7846
|
+
$metadata,
|
|
7897
7847
|
});
|
|
7898
7848
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
7899
7849
|
}
|
|
@@ -7925,8 +7875,7 @@ const deserializeAws_restJson1GetExportCommandError = async (output, context) =>
|
|
|
7925
7875
|
body: await parseBody(output.body, context),
|
|
7926
7876
|
};
|
|
7927
7877
|
let response;
|
|
7928
|
-
|
|
7929
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7878
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7930
7879
|
switch (errorCode) {
|
|
7931
7880
|
case "BadRequestException":
|
|
7932
7881
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -7948,10 +7897,12 @@ const deserializeAws_restJson1GetExportCommandError = async (output, context) =>
|
|
|
7948
7897
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
7949
7898
|
default:
|
|
7950
7899
|
const parsedBody = parsedOutput.body;
|
|
7900
|
+
const $metadata = deserializeMetadata(output);
|
|
7901
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
7951
7902
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
7952
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7903
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
7953
7904
|
$fault: "client",
|
|
7954
|
-
$metadata
|
|
7905
|
+
$metadata,
|
|
7955
7906
|
});
|
|
7956
7907
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
7957
7908
|
}
|
|
@@ -7993,8 +7944,7 @@ const deserializeAws_restJson1GetGatewayResponseCommandError = async (output, co
|
|
|
7993
7944
|
body: await parseBody(output.body, context),
|
|
7994
7945
|
};
|
|
7995
7946
|
let response;
|
|
7996
|
-
|
|
7997
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7947
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7998
7948
|
switch (errorCode) {
|
|
7999
7949
|
case "BadRequestException":
|
|
8000
7950
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -8010,10 +7960,12 @@ const deserializeAws_restJson1GetGatewayResponseCommandError = async (output, co
|
|
|
8010
7960
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
8011
7961
|
default:
|
|
8012
7962
|
const parsedBody = parsedOutput.body;
|
|
7963
|
+
const $metadata = deserializeMetadata(output);
|
|
7964
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
8013
7965
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
8014
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7966
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
8015
7967
|
$fault: "client",
|
|
8016
|
-
$metadata
|
|
7968
|
+
$metadata,
|
|
8017
7969
|
});
|
|
8018
7970
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
8019
7971
|
}
|
|
@@ -8043,8 +7995,7 @@ const deserializeAws_restJson1GetGatewayResponsesCommandError = async (output, c
|
|
|
8043
7995
|
body: await parseBody(output.body, context),
|
|
8044
7996
|
};
|
|
8045
7997
|
let response;
|
|
8046
|
-
|
|
8047
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7998
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8048
7999
|
switch (errorCode) {
|
|
8049
8000
|
case "BadRequestException":
|
|
8050
8001
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -8060,10 +8011,12 @@ const deserializeAws_restJson1GetGatewayResponsesCommandError = async (output, c
|
|
|
8060
8011
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
8061
8012
|
default:
|
|
8062
8013
|
const parsedBody = parsedOutput.body;
|
|
8014
|
+
const $metadata = deserializeMetadata(output);
|
|
8015
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
8063
8016
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
8064
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
8017
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
8065
8018
|
$fault: "client",
|
|
8066
|
-
$metadata
|
|
8019
|
+
$metadata,
|
|
8067
8020
|
});
|
|
8068
8021
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
8069
8022
|
}
|
|
@@ -8145,8 +8098,7 @@ const deserializeAws_restJson1GetIntegrationCommandError = async (output, contex
|
|
|
8145
8098
|
body: await parseBody(output.body, context),
|
|
8146
8099
|
};
|
|
8147
8100
|
let response;
|
|
8148
|
-
|
|
8149
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8101
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8150
8102
|
switch (errorCode) {
|
|
8151
8103
|
case "BadRequestException":
|
|
8152
8104
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -8162,10 +8114,12 @@ const deserializeAws_restJson1GetIntegrationCommandError = async (output, contex
|
|
|
8162
8114
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
8163
8115
|
default:
|
|
8164
8116
|
const parsedBody = parsedOutput.body;
|
|
8117
|
+
const $metadata = deserializeMetadata(output);
|
|
8118
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
8165
8119
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
8166
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
8120
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
8167
8121
|
$fault: "client",
|
|
8168
|
-
$metadata
|
|
8122
|
+
$metadata,
|
|
8169
8123
|
});
|
|
8170
8124
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
8171
8125
|
}
|
|
@@ -8207,8 +8161,7 @@ const deserializeAws_restJson1GetIntegrationResponseCommandError = async (output
|
|
|
8207
8161
|
body: await parseBody(output.body, context),
|
|
8208
8162
|
};
|
|
8209
8163
|
let response;
|
|
8210
|
-
|
|
8211
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8164
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8212
8165
|
switch (errorCode) {
|
|
8213
8166
|
case "BadRequestException":
|
|
8214
8167
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -8224,10 +8177,12 @@ const deserializeAws_restJson1GetIntegrationResponseCommandError = async (output
|
|
|
8224
8177
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
8225
8178
|
default:
|
|
8226
8179
|
const parsedBody = parsedOutput.body;
|
|
8180
|
+
const $metadata = deserializeMetadata(output);
|
|
8181
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
8227
8182
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
8228
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
8183
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
8229
8184
|
$fault: "client",
|
|
8230
|
-
$metadata
|
|
8185
|
+
$metadata,
|
|
8231
8186
|
});
|
|
8232
8187
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
8233
8188
|
}
|
|
@@ -8293,8 +8248,7 @@ const deserializeAws_restJson1GetMethodCommandError = async (output, context) =>
|
|
|
8293
8248
|
body: await parseBody(output.body, context),
|
|
8294
8249
|
};
|
|
8295
8250
|
let response;
|
|
8296
|
-
|
|
8297
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8251
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8298
8252
|
switch (errorCode) {
|
|
8299
8253
|
case "NotFoundException":
|
|
8300
8254
|
case "com.amazonaws.apigateway#NotFoundException":
|
|
@@ -8307,10 +8261,12 @@ const deserializeAws_restJson1GetMethodCommandError = async (output, context) =>
|
|
|
8307
8261
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
8308
8262
|
default:
|
|
8309
8263
|
const parsedBody = parsedOutput.body;
|
|
8264
|
+
const $metadata = deserializeMetadata(output);
|
|
8265
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
8310
8266
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
8311
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
8267
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
8312
8268
|
$fault: "client",
|
|
8313
|
-
$metadata
|
|
8269
|
+
$metadata,
|
|
8314
8270
|
});
|
|
8315
8271
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
8316
8272
|
}
|
|
@@ -8344,8 +8300,7 @@ const deserializeAws_restJson1GetMethodResponseCommandError = async (output, con
|
|
|
8344
8300
|
body: await parseBody(output.body, context),
|
|
8345
8301
|
};
|
|
8346
8302
|
let response;
|
|
8347
|
-
|
|
8348
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8303
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8349
8304
|
switch (errorCode) {
|
|
8350
8305
|
case "NotFoundException":
|
|
8351
8306
|
case "com.amazonaws.apigateway#NotFoundException":
|
|
@@ -8358,10 +8313,12 @@ const deserializeAws_restJson1GetMethodResponseCommandError = async (output, con
|
|
|
8358
8313
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
8359
8314
|
default:
|
|
8360
8315
|
const parsedBody = parsedOutput.body;
|
|
8316
|
+
const $metadata = deserializeMetadata(output);
|
|
8317
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
8361
8318
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
8362
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
8319
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
8363
8320
|
$fault: "client",
|
|
8364
|
-
$metadata
|
|
8321
|
+
$metadata,
|
|
8365
8322
|
});
|
|
8366
8323
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
8367
8324
|
}
|
|
@@ -8403,8 +8360,7 @@ const deserializeAws_restJson1GetModelCommandError = async (output, context) =>
|
|
|
8403
8360
|
body: await parseBody(output.body, context),
|
|
8404
8361
|
};
|
|
8405
8362
|
let response;
|
|
8406
|
-
|
|
8407
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8363
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8408
8364
|
switch (errorCode) {
|
|
8409
8365
|
case "BadRequestException":
|
|
8410
8366
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -8420,10 +8376,12 @@ const deserializeAws_restJson1GetModelCommandError = async (output, context) =>
|
|
|
8420
8376
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
8421
8377
|
default:
|
|
8422
8378
|
const parsedBody = parsedOutput.body;
|
|
8379
|
+
const $metadata = deserializeMetadata(output);
|
|
8380
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
8423
8381
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
8424
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
8382
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
8425
8383
|
$fault: "client",
|
|
8426
|
-
$metadata
|
|
8384
|
+
$metadata,
|
|
8427
8385
|
});
|
|
8428
8386
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
8429
8387
|
}
|
|
@@ -8453,8 +8411,7 @@ const deserializeAws_restJson1GetModelsCommandError = async (output, context) =>
|
|
|
8453
8411
|
body: await parseBody(output.body, context),
|
|
8454
8412
|
};
|
|
8455
8413
|
let response;
|
|
8456
|
-
|
|
8457
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8414
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8458
8415
|
switch (errorCode) {
|
|
8459
8416
|
case "BadRequestException":
|
|
8460
8417
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -8470,10 +8427,12 @@ const deserializeAws_restJson1GetModelsCommandError = async (output, context) =>
|
|
|
8470
8427
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
8471
8428
|
default:
|
|
8472
8429
|
const parsedBody = parsedOutput.body;
|
|
8430
|
+
const $metadata = deserializeMetadata(output);
|
|
8431
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
8473
8432
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
8474
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
8433
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
8475
8434
|
$fault: "client",
|
|
8476
|
-
$metadata
|
|
8435
|
+
$metadata,
|
|
8477
8436
|
});
|
|
8478
8437
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
8479
8438
|
}
|
|
@@ -8499,8 +8458,7 @@ const deserializeAws_restJson1GetModelTemplateCommandError = async (output, cont
|
|
|
8499
8458
|
body: await parseBody(output.body, context),
|
|
8500
8459
|
};
|
|
8501
8460
|
let response;
|
|
8502
|
-
|
|
8503
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8461
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8504
8462
|
switch (errorCode) {
|
|
8505
8463
|
case "BadRequestException":
|
|
8506
8464
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -8516,10 +8474,12 @@ const deserializeAws_restJson1GetModelTemplateCommandError = async (output, cont
|
|
|
8516
8474
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
8517
8475
|
default:
|
|
8518
8476
|
const parsedBody = parsedOutput.body;
|
|
8477
|
+
const $metadata = deserializeMetadata(output);
|
|
8478
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
8519
8479
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
8520
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
8480
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
8521
8481
|
$fault: "client",
|
|
8522
|
-
$metadata
|
|
8482
|
+
$metadata,
|
|
8523
8483
|
});
|
|
8524
8484
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
8525
8485
|
}
|
|
@@ -8557,8 +8517,7 @@ const deserializeAws_restJson1GetRequestValidatorCommandError = async (output, c
|
|
|
8557
8517
|
body: await parseBody(output.body, context),
|
|
8558
8518
|
};
|
|
8559
8519
|
let response;
|
|
8560
|
-
|
|
8561
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8520
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8562
8521
|
switch (errorCode) {
|
|
8563
8522
|
case "BadRequestException":
|
|
8564
8523
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -8574,10 +8533,12 @@ const deserializeAws_restJson1GetRequestValidatorCommandError = async (output, c
|
|
|
8574
8533
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
8575
8534
|
default:
|
|
8576
8535
|
const parsedBody = parsedOutput.body;
|
|
8536
|
+
const $metadata = deserializeMetadata(output);
|
|
8537
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
8577
8538
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
8578
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
8539
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
8579
8540
|
$fault: "client",
|
|
8580
|
-
$metadata
|
|
8541
|
+
$metadata,
|
|
8581
8542
|
});
|
|
8582
8543
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
8583
8544
|
}
|
|
@@ -8607,8 +8568,7 @@ const deserializeAws_restJson1GetRequestValidatorsCommandError = async (output,
|
|
|
8607
8568
|
body: await parseBody(output.body, context),
|
|
8608
8569
|
};
|
|
8609
8570
|
let response;
|
|
8610
|
-
|
|
8611
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8571
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8612
8572
|
switch (errorCode) {
|
|
8613
8573
|
case "BadRequestException":
|
|
8614
8574
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -8624,10 +8584,12 @@ const deserializeAws_restJson1GetRequestValidatorsCommandError = async (output,
|
|
|
8624
8584
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
8625
8585
|
default:
|
|
8626
8586
|
const parsedBody = parsedOutput.body;
|
|
8587
|
+
const $metadata = deserializeMetadata(output);
|
|
8588
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
8627
8589
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
8628
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
8590
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
8629
8591
|
$fault: "client",
|
|
8630
|
-
$metadata
|
|
8592
|
+
$metadata,
|
|
8631
8593
|
});
|
|
8632
8594
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
8633
8595
|
}
|
|
@@ -8669,8 +8631,7 @@ const deserializeAws_restJson1GetResourceCommandError = async (output, context)
|
|
|
8669
8631
|
body: await parseBody(output.body, context),
|
|
8670
8632
|
};
|
|
8671
8633
|
let response;
|
|
8672
|
-
|
|
8673
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8634
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8674
8635
|
switch (errorCode) {
|
|
8675
8636
|
case "NotFoundException":
|
|
8676
8637
|
case "com.amazonaws.apigateway#NotFoundException":
|
|
@@ -8683,10 +8644,12 @@ const deserializeAws_restJson1GetResourceCommandError = async (output, context)
|
|
|
8683
8644
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
8684
8645
|
default:
|
|
8685
8646
|
const parsedBody = parsedOutput.body;
|
|
8647
|
+
const $metadata = deserializeMetadata(output);
|
|
8648
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
8686
8649
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
8687
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
8650
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
8688
8651
|
$fault: "client",
|
|
8689
|
-
$metadata
|
|
8652
|
+
$metadata,
|
|
8690
8653
|
});
|
|
8691
8654
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
8692
8655
|
}
|
|
@@ -8716,8 +8679,7 @@ const deserializeAws_restJson1GetResourcesCommandError = async (output, context)
|
|
|
8716
8679
|
body: await parseBody(output.body, context),
|
|
8717
8680
|
};
|
|
8718
8681
|
let response;
|
|
8719
|
-
|
|
8720
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8682
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8721
8683
|
switch (errorCode) {
|
|
8722
8684
|
case "BadRequestException":
|
|
8723
8685
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -8733,10 +8695,12 @@ const deserializeAws_restJson1GetResourcesCommandError = async (output, context)
|
|
|
8733
8695
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
8734
8696
|
default:
|
|
8735
8697
|
const parsedBody = parsedOutput.body;
|
|
8698
|
+
const $metadata = deserializeMetadata(output);
|
|
8699
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
8736
8700
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
8737
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
8701
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
8738
8702
|
$fault: "client",
|
|
8739
|
-
$metadata
|
|
8703
|
+
$metadata,
|
|
8740
8704
|
});
|
|
8741
8705
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
8742
8706
|
}
|
|
@@ -8810,8 +8774,7 @@ const deserializeAws_restJson1GetRestApiCommandError = async (output, context) =
|
|
|
8810
8774
|
body: await parseBody(output.body, context),
|
|
8811
8775
|
};
|
|
8812
8776
|
let response;
|
|
8813
|
-
|
|
8814
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8777
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8815
8778
|
switch (errorCode) {
|
|
8816
8779
|
case "BadRequestException":
|
|
8817
8780
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -8827,10 +8790,12 @@ const deserializeAws_restJson1GetRestApiCommandError = async (output, context) =
|
|
|
8827
8790
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
8828
8791
|
default:
|
|
8829
8792
|
const parsedBody = parsedOutput.body;
|
|
8793
|
+
const $metadata = deserializeMetadata(output);
|
|
8794
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
8830
8795
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
8831
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
8796
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
8832
8797
|
$fault: "client",
|
|
8833
|
-
$metadata
|
|
8798
|
+
$metadata,
|
|
8834
8799
|
});
|
|
8835
8800
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
8836
8801
|
}
|
|
@@ -8860,8 +8825,7 @@ const deserializeAws_restJson1GetRestApisCommandError = async (output, context)
|
|
|
8860
8825
|
body: await parseBody(output.body, context),
|
|
8861
8826
|
};
|
|
8862
8827
|
let response;
|
|
8863
|
-
|
|
8864
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8828
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8865
8829
|
switch (errorCode) {
|
|
8866
8830
|
case "BadRequestException":
|
|
8867
8831
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -8877,10 +8841,12 @@ const deserializeAws_restJson1GetRestApisCommandError = async (output, context)
|
|
|
8877
8841
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
8878
8842
|
default:
|
|
8879
8843
|
const parsedBody = parsedOutput.body;
|
|
8844
|
+
const $metadata = deserializeMetadata(output);
|
|
8845
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
8880
8846
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
8881
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
8847
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
8882
8848
|
$fault: "client",
|
|
8883
|
-
$metadata
|
|
8849
|
+
$metadata,
|
|
8884
8850
|
});
|
|
8885
8851
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
8886
8852
|
}
|
|
@@ -8912,8 +8878,7 @@ const deserializeAws_restJson1GetSdkCommandError = async (output, context) => {
|
|
|
8912
8878
|
body: await parseBody(output.body, context),
|
|
8913
8879
|
};
|
|
8914
8880
|
let response;
|
|
8915
|
-
|
|
8916
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8881
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8917
8882
|
switch (errorCode) {
|
|
8918
8883
|
case "BadRequestException":
|
|
8919
8884
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -8935,10 +8900,12 @@ const deserializeAws_restJson1GetSdkCommandError = async (output, context) => {
|
|
|
8935
8900
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
8936
8901
|
default:
|
|
8937
8902
|
const parsedBody = parsedOutput.body;
|
|
8903
|
+
const $metadata = deserializeMetadata(output);
|
|
8904
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
8938
8905
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
8939
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
8906
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
8940
8907
|
$fault: "client",
|
|
8941
|
-
$metadata
|
|
8908
|
+
$metadata,
|
|
8942
8909
|
});
|
|
8943
8910
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
8944
8911
|
}
|
|
@@ -8976,8 +8943,7 @@ const deserializeAws_restJson1GetSdkTypeCommandError = async (output, context) =
|
|
|
8976
8943
|
body: await parseBody(output.body, context),
|
|
8977
8944
|
};
|
|
8978
8945
|
let response;
|
|
8979
|
-
|
|
8980
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8946
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8981
8947
|
switch (errorCode) {
|
|
8982
8948
|
case "BadRequestException":
|
|
8983
8949
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -8993,10 +8959,12 @@ const deserializeAws_restJson1GetSdkTypeCommandError = async (output, context) =
|
|
|
8993
8959
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
8994
8960
|
default:
|
|
8995
8961
|
const parsedBody = parsedOutput.body;
|
|
8962
|
+
const $metadata = deserializeMetadata(output);
|
|
8963
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
8996
8964
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
8997
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
8965
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
8998
8966
|
$fault: "client",
|
|
8999
|
-
$metadata
|
|
8967
|
+
$metadata,
|
|
9000
8968
|
});
|
|
9001
8969
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
9002
8970
|
}
|
|
@@ -9022,8 +8990,7 @@ const deserializeAws_restJson1GetSdkTypesCommandError = async (output, context)
|
|
|
9022
8990
|
body: await parseBody(output.body, context),
|
|
9023
8991
|
};
|
|
9024
8992
|
let response;
|
|
9025
|
-
|
|
9026
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8993
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
9027
8994
|
switch (errorCode) {
|
|
9028
8995
|
case "BadRequestException":
|
|
9029
8996
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -9039,10 +9006,12 @@ const deserializeAws_restJson1GetSdkTypesCommandError = async (output, context)
|
|
|
9039
9006
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
9040
9007
|
default:
|
|
9041
9008
|
const parsedBody = parsedOutput.body;
|
|
9009
|
+
const $metadata = deserializeMetadata(output);
|
|
9010
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
9042
9011
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
9043
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
9012
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
9044
9013
|
$fault: "client",
|
|
9045
|
-
$metadata
|
|
9014
|
+
$metadata,
|
|
9046
9015
|
});
|
|
9047
9016
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
9048
9017
|
}
|
|
@@ -9132,8 +9101,7 @@ const deserializeAws_restJson1GetStageCommandError = async (output, context) =>
|
|
|
9132
9101
|
body: await parseBody(output.body, context),
|
|
9133
9102
|
};
|
|
9134
9103
|
let response;
|
|
9135
|
-
|
|
9136
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
9104
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
9137
9105
|
switch (errorCode) {
|
|
9138
9106
|
case "BadRequestException":
|
|
9139
9107
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -9155,10 +9123,12 @@ const deserializeAws_restJson1GetStageCommandError = async (output, context) =>
|
|
|
9155
9123
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
9156
9124
|
default:
|
|
9157
9125
|
const parsedBody = parsedOutput.body;
|
|
9126
|
+
const $metadata = deserializeMetadata(output);
|
|
9127
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
9158
9128
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
9159
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
9129
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
9160
9130
|
$fault: "client",
|
|
9161
|
-
$metadata
|
|
9131
|
+
$metadata,
|
|
9162
9132
|
});
|
|
9163
9133
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
9164
9134
|
}
|
|
@@ -9184,8 +9154,7 @@ const deserializeAws_restJson1GetStagesCommandError = async (output, context) =>
|
|
|
9184
9154
|
body: await parseBody(output.body, context),
|
|
9185
9155
|
};
|
|
9186
9156
|
let response;
|
|
9187
|
-
|
|
9188
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
9157
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
9189
9158
|
switch (errorCode) {
|
|
9190
9159
|
case "BadRequestException":
|
|
9191
9160
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -9207,10 +9176,12 @@ const deserializeAws_restJson1GetStagesCommandError = async (output, context) =>
|
|
|
9207
9176
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
9208
9177
|
default:
|
|
9209
9178
|
const parsedBody = parsedOutput.body;
|
|
9179
|
+
const $metadata = deserializeMetadata(output);
|
|
9180
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
9210
9181
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
9211
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
9182
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
9212
9183
|
$fault: "client",
|
|
9213
|
-
$metadata
|
|
9184
|
+
$metadata,
|
|
9214
9185
|
});
|
|
9215
9186
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
9216
9187
|
}
|
|
@@ -9236,8 +9207,7 @@ const deserializeAws_restJson1GetTagsCommandError = async (output, context) => {
|
|
|
9236
9207
|
body: await parseBody(output.body, context),
|
|
9237
9208
|
};
|
|
9238
9209
|
let response;
|
|
9239
|
-
|
|
9240
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
9210
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
9241
9211
|
switch (errorCode) {
|
|
9242
9212
|
case "BadRequestException":
|
|
9243
9213
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -9253,10 +9223,12 @@ const deserializeAws_restJson1GetTagsCommandError = async (output, context) => {
|
|
|
9253
9223
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
9254
9224
|
default:
|
|
9255
9225
|
const parsedBody = parsedOutput.body;
|
|
9226
|
+
const $metadata = deserializeMetadata(output);
|
|
9227
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
9256
9228
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
9257
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
9229
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
9258
9230
|
$fault: "client",
|
|
9259
|
-
$metadata
|
|
9231
|
+
$metadata,
|
|
9260
9232
|
});
|
|
9261
9233
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
9262
9234
|
}
|
|
@@ -9298,8 +9270,7 @@ const deserializeAws_restJson1GetUsageCommandError = async (output, context) =>
|
|
|
9298
9270
|
body: await parseBody(output.body, context),
|
|
9299
9271
|
};
|
|
9300
9272
|
let response;
|
|
9301
|
-
|
|
9302
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
9273
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
9303
9274
|
switch (errorCode) {
|
|
9304
9275
|
case "BadRequestException":
|
|
9305
9276
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -9315,10 +9286,12 @@ const deserializeAws_restJson1GetUsageCommandError = async (output, context) =>
|
|
|
9315
9286
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
9316
9287
|
default:
|
|
9317
9288
|
const parsedBody = parsedOutput.body;
|
|
9289
|
+
const $metadata = deserializeMetadata(output);
|
|
9290
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
9318
9291
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
9319
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
9292
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
9320
9293
|
$fault: "client",
|
|
9321
|
-
$metadata
|
|
9294
|
+
$metadata,
|
|
9322
9295
|
});
|
|
9323
9296
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
9324
9297
|
}
|
|
@@ -9372,8 +9345,7 @@ const deserializeAws_restJson1GetUsagePlanCommandError = async (output, context)
|
|
|
9372
9345
|
body: await parseBody(output.body, context),
|
|
9373
9346
|
};
|
|
9374
9347
|
let response;
|
|
9375
|
-
|
|
9376
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
9348
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
9377
9349
|
switch (errorCode) {
|
|
9378
9350
|
case "BadRequestException":
|
|
9379
9351
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -9389,10 +9361,12 @@ const deserializeAws_restJson1GetUsagePlanCommandError = async (output, context)
|
|
|
9389
9361
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
9390
9362
|
default:
|
|
9391
9363
|
const parsedBody = parsedOutput.body;
|
|
9364
|
+
const $metadata = deserializeMetadata(output);
|
|
9365
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
9392
9366
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
9393
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
9367
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
9394
9368
|
$fault: "client",
|
|
9395
|
-
$metadata
|
|
9369
|
+
$metadata,
|
|
9396
9370
|
});
|
|
9397
9371
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
9398
9372
|
}
|
|
@@ -9430,8 +9404,7 @@ const deserializeAws_restJson1GetUsagePlanKeyCommandError = async (output, conte
|
|
|
9430
9404
|
body: await parseBody(output.body, context),
|
|
9431
9405
|
};
|
|
9432
9406
|
let response;
|
|
9433
|
-
|
|
9434
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
9407
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
9435
9408
|
switch (errorCode) {
|
|
9436
9409
|
case "BadRequestException":
|
|
9437
9410
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -9447,10 +9420,12 @@ const deserializeAws_restJson1GetUsagePlanKeyCommandError = async (output, conte
|
|
|
9447
9420
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
9448
9421
|
default:
|
|
9449
9422
|
const parsedBody = parsedOutput.body;
|
|
9423
|
+
const $metadata = deserializeMetadata(output);
|
|
9424
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
9450
9425
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
9451
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
9426
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
9452
9427
|
$fault: "client",
|
|
9453
|
-
$metadata
|
|
9428
|
+
$metadata,
|
|
9454
9429
|
});
|
|
9455
9430
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
9456
9431
|
}
|
|
@@ -9480,8 +9455,7 @@ const deserializeAws_restJson1GetUsagePlanKeysCommandError = async (output, cont
|
|
|
9480
9455
|
body: await parseBody(output.body, context),
|
|
9481
9456
|
};
|
|
9482
9457
|
let response;
|
|
9483
|
-
|
|
9484
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
9458
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
9485
9459
|
switch (errorCode) {
|
|
9486
9460
|
case "BadRequestException":
|
|
9487
9461
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -9497,10 +9471,12 @@ const deserializeAws_restJson1GetUsagePlanKeysCommandError = async (output, cont
|
|
|
9497
9471
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
9498
9472
|
default:
|
|
9499
9473
|
const parsedBody = parsedOutput.body;
|
|
9474
|
+
const $metadata = deserializeMetadata(output);
|
|
9475
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
9500
9476
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
9501
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
9477
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
9502
9478
|
$fault: "client",
|
|
9503
|
-
$metadata
|
|
9479
|
+
$metadata,
|
|
9504
9480
|
});
|
|
9505
9481
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
9506
9482
|
}
|
|
@@ -9530,8 +9506,7 @@ const deserializeAws_restJson1GetUsagePlansCommandError = async (output, context
|
|
|
9530
9506
|
body: await parseBody(output.body, context),
|
|
9531
9507
|
};
|
|
9532
9508
|
let response;
|
|
9533
|
-
|
|
9534
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
9509
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
9535
9510
|
switch (errorCode) {
|
|
9536
9511
|
case "BadRequestException":
|
|
9537
9512
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -9547,10 +9522,12 @@ const deserializeAws_restJson1GetUsagePlansCommandError = async (output, context
|
|
|
9547
9522
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
9548
9523
|
default:
|
|
9549
9524
|
const parsedBody = parsedOutput.body;
|
|
9525
|
+
const $metadata = deserializeMetadata(output);
|
|
9526
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
9550
9527
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
9551
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
9528
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
9552
9529
|
$fault: "client",
|
|
9553
|
-
$metadata
|
|
9530
|
+
$metadata,
|
|
9554
9531
|
});
|
|
9555
9532
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
9556
9533
|
}
|
|
@@ -9600,8 +9577,7 @@ const deserializeAws_restJson1GetVpcLinkCommandError = async (output, context) =
|
|
|
9600
9577
|
body: await parseBody(output.body, context),
|
|
9601
9578
|
};
|
|
9602
9579
|
let response;
|
|
9603
|
-
|
|
9604
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
9580
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
9605
9581
|
switch (errorCode) {
|
|
9606
9582
|
case "BadRequestException":
|
|
9607
9583
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -9617,10 +9593,12 @@ const deserializeAws_restJson1GetVpcLinkCommandError = async (output, context) =
|
|
|
9617
9593
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
9618
9594
|
default:
|
|
9619
9595
|
const parsedBody = parsedOutput.body;
|
|
9596
|
+
const $metadata = deserializeMetadata(output);
|
|
9597
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
9620
9598
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
9621
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
9599
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
9622
9600
|
$fault: "client",
|
|
9623
|
-
$metadata
|
|
9601
|
+
$metadata,
|
|
9624
9602
|
});
|
|
9625
9603
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
9626
9604
|
}
|
|
@@ -9650,8 +9628,7 @@ const deserializeAws_restJson1GetVpcLinksCommandError = async (output, context)
|
|
|
9650
9628
|
body: await parseBody(output.body, context),
|
|
9651
9629
|
};
|
|
9652
9630
|
let response;
|
|
9653
|
-
|
|
9654
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
9631
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
9655
9632
|
switch (errorCode) {
|
|
9656
9633
|
case "BadRequestException":
|
|
9657
9634
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -9667,10 +9644,12 @@ const deserializeAws_restJson1GetVpcLinksCommandError = async (output, context)
|
|
|
9667
9644
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
9668
9645
|
default:
|
|
9669
9646
|
const parsedBody = parsedOutput.body;
|
|
9647
|
+
const $metadata = deserializeMetadata(output);
|
|
9648
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
9670
9649
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
9671
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
9650
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
9672
9651
|
$fault: "client",
|
|
9673
|
-
$metadata
|
|
9652
|
+
$metadata,
|
|
9674
9653
|
});
|
|
9675
9654
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
9676
9655
|
}
|
|
@@ -9700,8 +9679,7 @@ const deserializeAws_restJson1ImportApiKeysCommandError = async (output, context
|
|
|
9700
9679
|
body: await parseBody(output.body, context),
|
|
9701
9680
|
};
|
|
9702
9681
|
let response;
|
|
9703
|
-
|
|
9704
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
9682
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
9705
9683
|
switch (errorCode) {
|
|
9706
9684
|
case "BadRequestException":
|
|
9707
9685
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -9723,10 +9701,12 @@ const deserializeAws_restJson1ImportApiKeysCommandError = async (output, context
|
|
|
9723
9701
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
9724
9702
|
default:
|
|
9725
9703
|
const parsedBody = parsedOutput.body;
|
|
9704
|
+
const $metadata = deserializeMetadata(output);
|
|
9705
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
9726
9706
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
9727
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
9707
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
9728
9708
|
$fault: "client",
|
|
9729
|
-
$metadata
|
|
9709
|
+
$metadata,
|
|
9730
9710
|
});
|
|
9731
9711
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
9732
9712
|
}
|
|
@@ -9756,8 +9736,7 @@ const deserializeAws_restJson1ImportDocumentationPartsCommandError = async (outp
|
|
|
9756
9736
|
body: await parseBody(output.body, context),
|
|
9757
9737
|
};
|
|
9758
9738
|
let response;
|
|
9759
|
-
|
|
9760
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
9739
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
9761
9740
|
switch (errorCode) {
|
|
9762
9741
|
case "BadRequestException":
|
|
9763
9742
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -9779,10 +9758,12 @@ const deserializeAws_restJson1ImportDocumentationPartsCommandError = async (outp
|
|
|
9779
9758
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
9780
9759
|
default:
|
|
9781
9760
|
const parsedBody = parsedOutput.body;
|
|
9761
|
+
const $metadata = deserializeMetadata(output);
|
|
9762
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
9782
9763
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
9783
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
9764
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
9784
9765
|
$fault: "client",
|
|
9785
|
-
$metadata
|
|
9766
|
+
$metadata,
|
|
9786
9767
|
});
|
|
9787
9768
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
9788
9769
|
}
|
|
@@ -9856,8 +9837,7 @@ const deserializeAws_restJson1ImportRestApiCommandError = async (output, context
|
|
|
9856
9837
|
body: await parseBody(output.body, context),
|
|
9857
9838
|
};
|
|
9858
9839
|
let response;
|
|
9859
|
-
|
|
9860
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
9840
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
9861
9841
|
switch (errorCode) {
|
|
9862
9842
|
case "BadRequestException":
|
|
9863
9843
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -9879,10 +9859,12 @@ const deserializeAws_restJson1ImportRestApiCommandError = async (output, context
|
|
|
9879
9859
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
9880
9860
|
default:
|
|
9881
9861
|
const parsedBody = parsedOutput.body;
|
|
9862
|
+
const $metadata = deserializeMetadata(output);
|
|
9863
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
9882
9864
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
9883
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
9865
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
9884
9866
|
$fault: "client",
|
|
9885
|
-
$metadata
|
|
9867
|
+
$metadata,
|
|
9886
9868
|
});
|
|
9887
9869
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
9888
9870
|
}
|
|
@@ -9924,8 +9906,7 @@ const deserializeAws_restJson1PutGatewayResponseCommandError = async (output, co
|
|
|
9924
9906
|
body: await parseBody(output.body, context),
|
|
9925
9907
|
};
|
|
9926
9908
|
let response;
|
|
9927
|
-
|
|
9928
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
9909
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
9929
9910
|
switch (errorCode) {
|
|
9930
9911
|
case "BadRequestException":
|
|
9931
9912
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -9947,10 +9928,12 @@ const deserializeAws_restJson1PutGatewayResponseCommandError = async (output, co
|
|
|
9947
9928
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
9948
9929
|
default:
|
|
9949
9930
|
const parsedBody = parsedOutput.body;
|
|
9931
|
+
const $metadata = deserializeMetadata(output);
|
|
9932
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
9950
9933
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
9951
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
9934
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
9952
9935
|
$fault: "client",
|
|
9953
|
-
$metadata
|
|
9936
|
+
$metadata,
|
|
9954
9937
|
});
|
|
9955
9938
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
9956
9939
|
}
|
|
@@ -10032,8 +10015,7 @@ const deserializeAws_restJson1PutIntegrationCommandError = async (output, contex
|
|
|
10032
10015
|
body: await parseBody(output.body, context),
|
|
10033
10016
|
};
|
|
10034
10017
|
let response;
|
|
10035
|
-
|
|
10036
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
10018
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
10037
10019
|
switch (errorCode) {
|
|
10038
10020
|
case "BadRequestException":
|
|
10039
10021
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -10055,10 +10037,12 @@ const deserializeAws_restJson1PutIntegrationCommandError = async (output, contex
|
|
|
10055
10037
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
10056
10038
|
default:
|
|
10057
10039
|
const parsedBody = parsedOutput.body;
|
|
10040
|
+
const $metadata = deserializeMetadata(output);
|
|
10041
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
10058
10042
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
10059
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
10043
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
10060
10044
|
$fault: "client",
|
|
10061
|
-
$metadata
|
|
10045
|
+
$metadata,
|
|
10062
10046
|
});
|
|
10063
10047
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
10064
10048
|
}
|
|
@@ -10100,8 +10084,7 @@ const deserializeAws_restJson1PutIntegrationResponseCommandError = async (output
|
|
|
10100
10084
|
body: await parseBody(output.body, context),
|
|
10101
10085
|
};
|
|
10102
10086
|
let response;
|
|
10103
|
-
|
|
10104
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
10087
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
10105
10088
|
switch (errorCode) {
|
|
10106
10089
|
case "BadRequestException":
|
|
10107
10090
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -10123,10 +10106,12 @@ const deserializeAws_restJson1PutIntegrationResponseCommandError = async (output
|
|
|
10123
10106
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
10124
10107
|
default:
|
|
10125
10108
|
const parsedBody = parsedOutput.body;
|
|
10109
|
+
const $metadata = deserializeMetadata(output);
|
|
10110
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
10126
10111
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
10127
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
10112
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
10128
10113
|
$fault: "client",
|
|
10129
|
-
$metadata
|
|
10114
|
+
$metadata,
|
|
10130
10115
|
});
|
|
10131
10116
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
10132
10117
|
}
|
|
@@ -10192,8 +10177,7 @@ const deserializeAws_restJson1PutMethodCommandError = async (output, context) =>
|
|
|
10192
10177
|
body: await parseBody(output.body, context),
|
|
10193
10178
|
};
|
|
10194
10179
|
let response;
|
|
10195
|
-
|
|
10196
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
10180
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
10197
10181
|
switch (errorCode) {
|
|
10198
10182
|
case "BadRequestException":
|
|
10199
10183
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -10215,10 +10199,12 @@ const deserializeAws_restJson1PutMethodCommandError = async (output, context) =>
|
|
|
10215
10199
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
10216
10200
|
default:
|
|
10217
10201
|
const parsedBody = parsedOutput.body;
|
|
10202
|
+
const $metadata = deserializeMetadata(output);
|
|
10203
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
10218
10204
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
10219
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
10205
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
10220
10206
|
$fault: "client",
|
|
10221
|
-
$metadata
|
|
10207
|
+
$metadata,
|
|
10222
10208
|
});
|
|
10223
10209
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
10224
10210
|
}
|
|
@@ -10252,8 +10238,7 @@ const deserializeAws_restJson1PutMethodResponseCommandError = async (output, con
|
|
|
10252
10238
|
body: await parseBody(output.body, context),
|
|
10253
10239
|
};
|
|
10254
10240
|
let response;
|
|
10255
|
-
|
|
10256
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
10241
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
10257
10242
|
switch (errorCode) {
|
|
10258
10243
|
case "BadRequestException":
|
|
10259
10244
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -10275,10 +10260,12 @@ const deserializeAws_restJson1PutMethodResponseCommandError = async (output, con
|
|
|
10275
10260
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
10276
10261
|
default:
|
|
10277
10262
|
const parsedBody = parsedOutput.body;
|
|
10263
|
+
const $metadata = deserializeMetadata(output);
|
|
10264
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
10278
10265
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
10279
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
10266
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
10280
10267
|
$fault: "client",
|
|
10281
|
-
$metadata
|
|
10268
|
+
$metadata,
|
|
10282
10269
|
});
|
|
10283
10270
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
10284
10271
|
}
|
|
@@ -10352,8 +10339,7 @@ const deserializeAws_restJson1PutRestApiCommandError = async (output, context) =
|
|
|
10352
10339
|
body: await parseBody(output.body, context),
|
|
10353
10340
|
};
|
|
10354
10341
|
let response;
|
|
10355
|
-
|
|
10356
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
10342
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
10357
10343
|
switch (errorCode) {
|
|
10358
10344
|
case "BadRequestException":
|
|
10359
10345
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -10375,10 +10361,12 @@ const deserializeAws_restJson1PutRestApiCommandError = async (output, context) =
|
|
|
10375
10361
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
10376
10362
|
default:
|
|
10377
10363
|
const parsedBody = parsedOutput.body;
|
|
10364
|
+
const $metadata = deserializeMetadata(output);
|
|
10365
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
10378
10366
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
10379
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
10367
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
10380
10368
|
$fault: "client",
|
|
10381
|
-
$metadata
|
|
10369
|
+
$metadata,
|
|
10382
10370
|
});
|
|
10383
10371
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
10384
10372
|
}
|
|
@@ -10400,8 +10388,7 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
10400
10388
|
body: await parseBody(output.body, context),
|
|
10401
10389
|
};
|
|
10402
10390
|
let response;
|
|
10403
|
-
|
|
10404
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
10391
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
10405
10392
|
switch (errorCode) {
|
|
10406
10393
|
case "BadRequestException":
|
|
10407
10394
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -10423,10 +10410,12 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
10423
10410
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
10424
10411
|
default:
|
|
10425
10412
|
const parsedBody = parsedOutput.body;
|
|
10413
|
+
const $metadata = deserializeMetadata(output);
|
|
10414
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
10426
10415
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
10427
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
10416
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
10428
10417
|
$fault: "client",
|
|
10429
|
-
$metadata
|
|
10418
|
+
$metadata,
|
|
10430
10419
|
});
|
|
10431
10420
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
10432
10421
|
}
|
|
@@ -10476,8 +10465,7 @@ const deserializeAws_restJson1TestInvokeAuthorizerCommandError = async (output,
|
|
|
10476
10465
|
body: await parseBody(output.body, context),
|
|
10477
10466
|
};
|
|
10478
10467
|
let response;
|
|
10479
|
-
|
|
10480
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
10468
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
10481
10469
|
switch (errorCode) {
|
|
10482
10470
|
case "BadRequestException":
|
|
10483
10471
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -10493,10 +10481,12 @@ const deserializeAws_restJson1TestInvokeAuthorizerCommandError = async (output,
|
|
|
10493
10481
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
10494
10482
|
default:
|
|
10495
10483
|
const parsedBody = parsedOutput.body;
|
|
10484
|
+
const $metadata = deserializeMetadata(output);
|
|
10485
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
10496
10486
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
10497
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
10487
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
10498
10488
|
$fault: "client",
|
|
10499
|
-
$metadata
|
|
10489
|
+
$metadata,
|
|
10500
10490
|
});
|
|
10501
10491
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
10502
10492
|
}
|
|
@@ -10542,8 +10532,7 @@ const deserializeAws_restJson1TestInvokeMethodCommandError = async (output, cont
|
|
|
10542
10532
|
body: await parseBody(output.body, context),
|
|
10543
10533
|
};
|
|
10544
10534
|
let response;
|
|
10545
|
-
|
|
10546
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
10535
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
10547
10536
|
switch (errorCode) {
|
|
10548
10537
|
case "BadRequestException":
|
|
10549
10538
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -10559,10 +10548,12 @@ const deserializeAws_restJson1TestInvokeMethodCommandError = async (output, cont
|
|
|
10559
10548
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
10560
10549
|
default:
|
|
10561
10550
|
const parsedBody = parsedOutput.body;
|
|
10551
|
+
const $metadata = deserializeMetadata(output);
|
|
10552
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
10562
10553
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
10563
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
10554
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
10564
10555
|
$fault: "client",
|
|
10565
|
-
$metadata
|
|
10556
|
+
$metadata,
|
|
10566
10557
|
});
|
|
10567
10558
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
10568
10559
|
}
|
|
@@ -10584,8 +10575,7 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
10584
10575
|
body: await parseBody(output.body, context),
|
|
10585
10576
|
};
|
|
10586
10577
|
let response;
|
|
10587
|
-
|
|
10588
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
10578
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
10589
10579
|
switch (errorCode) {
|
|
10590
10580
|
case "BadRequestException":
|
|
10591
10581
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -10607,10 +10597,12 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
10607
10597
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
10608
10598
|
default:
|
|
10609
10599
|
const parsedBody = parsedOutput.body;
|
|
10600
|
+
const $metadata = deserializeMetadata(output);
|
|
10601
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
10610
10602
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
10611
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
10603
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
10612
10604
|
$fault: "client",
|
|
10613
|
-
$metadata
|
|
10605
|
+
$metadata,
|
|
10614
10606
|
});
|
|
10615
10607
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
10616
10608
|
}
|
|
@@ -10648,8 +10640,7 @@ const deserializeAws_restJson1UpdateAccountCommandError = async (output, context
|
|
|
10648
10640
|
body: await parseBody(output.body, context),
|
|
10649
10641
|
};
|
|
10650
10642
|
let response;
|
|
10651
|
-
|
|
10652
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
10643
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
10653
10644
|
switch (errorCode) {
|
|
10654
10645
|
case "BadRequestException":
|
|
10655
10646
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -10671,10 +10662,12 @@ const deserializeAws_restJson1UpdateAccountCommandError = async (output, context
|
|
|
10671
10662
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
10672
10663
|
default:
|
|
10673
10664
|
const parsedBody = parsedOutput.body;
|
|
10665
|
+
const $metadata = deserializeMetadata(output);
|
|
10666
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
10674
10667
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
10675
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
10668
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
10676
10669
|
$fault: "client",
|
|
10677
|
-
$metadata
|
|
10670
|
+
$metadata,
|
|
10678
10671
|
});
|
|
10679
10672
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
10680
10673
|
}
|
|
@@ -10736,8 +10729,7 @@ const deserializeAws_restJson1UpdateApiKeyCommandError = async (output, context)
|
|
|
10736
10729
|
body: await parseBody(output.body, context),
|
|
10737
10730
|
};
|
|
10738
10731
|
let response;
|
|
10739
|
-
|
|
10740
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
10732
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
10741
10733
|
switch (errorCode) {
|
|
10742
10734
|
case "BadRequestException":
|
|
10743
10735
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -10759,10 +10751,12 @@ const deserializeAws_restJson1UpdateApiKeyCommandError = async (output, context)
|
|
|
10759
10751
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
10760
10752
|
default:
|
|
10761
10753
|
const parsedBody = parsedOutput.body;
|
|
10754
|
+
const $metadata = deserializeMetadata(output);
|
|
10755
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
10762
10756
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
10763
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
10757
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
10764
10758
|
$fault: "client",
|
|
10765
|
-
$metadata
|
|
10759
|
+
$metadata,
|
|
10766
10760
|
});
|
|
10767
10761
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
10768
10762
|
}
|
|
@@ -10824,8 +10818,7 @@ const deserializeAws_restJson1UpdateAuthorizerCommandError = async (output, cont
|
|
|
10824
10818
|
body: await parseBody(output.body, context),
|
|
10825
10819
|
};
|
|
10826
10820
|
let response;
|
|
10827
|
-
|
|
10828
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
10821
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
10829
10822
|
switch (errorCode) {
|
|
10830
10823
|
case "BadRequestException":
|
|
10831
10824
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -10847,10 +10840,12 @@ const deserializeAws_restJson1UpdateAuthorizerCommandError = async (output, cont
|
|
|
10847
10840
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
10848
10841
|
default:
|
|
10849
10842
|
const parsedBody = parsedOutput.body;
|
|
10843
|
+
const $metadata = deserializeMetadata(output);
|
|
10844
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
10850
10845
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
10851
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
10846
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
10852
10847
|
$fault: "client",
|
|
10853
|
-
$metadata
|
|
10848
|
+
$metadata,
|
|
10854
10849
|
});
|
|
10855
10850
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
10856
10851
|
}
|
|
@@ -10884,8 +10879,7 @@ const deserializeAws_restJson1UpdateBasePathMappingCommandError = async (output,
|
|
|
10884
10879
|
body: await parseBody(output.body, context),
|
|
10885
10880
|
};
|
|
10886
10881
|
let response;
|
|
10887
|
-
|
|
10888
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
10882
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
10889
10883
|
switch (errorCode) {
|
|
10890
10884
|
case "BadRequestException":
|
|
10891
10885
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -10907,10 +10901,12 @@ const deserializeAws_restJson1UpdateBasePathMappingCommandError = async (output,
|
|
|
10907
10901
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
10908
10902
|
default:
|
|
10909
10903
|
const parsedBody = parsedOutput.body;
|
|
10904
|
+
const $metadata = deserializeMetadata(output);
|
|
10905
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
10910
10906
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
10911
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
10907
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
10912
10908
|
$fault: "client",
|
|
10913
|
-
$metadata
|
|
10909
|
+
$metadata,
|
|
10914
10910
|
});
|
|
10915
10911
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
10916
10912
|
}
|
|
@@ -10956,8 +10952,7 @@ const deserializeAws_restJson1UpdateClientCertificateCommandError = async (outpu
|
|
|
10956
10952
|
body: await parseBody(output.body, context),
|
|
10957
10953
|
};
|
|
10958
10954
|
let response;
|
|
10959
|
-
|
|
10960
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
10955
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
10961
10956
|
switch (errorCode) {
|
|
10962
10957
|
case "BadRequestException":
|
|
10963
10958
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -10979,10 +10974,12 @@ const deserializeAws_restJson1UpdateClientCertificateCommandError = async (outpu
|
|
|
10979
10974
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
10980
10975
|
default:
|
|
10981
10976
|
const parsedBody = parsedOutput.body;
|
|
10977
|
+
const $metadata = deserializeMetadata(output);
|
|
10978
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
10982
10979
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
10983
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
10980
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
10984
10981
|
$fault: "client",
|
|
10985
|
-
$metadata
|
|
10982
|
+
$metadata,
|
|
10986
10983
|
});
|
|
10987
10984
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
10988
10985
|
}
|
|
@@ -11020,8 +11017,7 @@ const deserializeAws_restJson1UpdateDeploymentCommandError = async (output, cont
|
|
|
11020
11017
|
body: await parseBody(output.body, context),
|
|
11021
11018
|
};
|
|
11022
11019
|
let response;
|
|
11023
|
-
|
|
11024
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
11020
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
11025
11021
|
switch (errorCode) {
|
|
11026
11022
|
case "BadRequestException":
|
|
11027
11023
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -11046,10 +11042,12 @@ const deserializeAws_restJson1UpdateDeploymentCommandError = async (output, cont
|
|
|
11046
11042
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
11047
11043
|
default:
|
|
11048
11044
|
const parsedBody = parsedOutput.body;
|
|
11045
|
+
const $metadata = deserializeMetadata(output);
|
|
11046
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
11049
11047
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
11050
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
11048
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
11051
11049
|
$fault: "client",
|
|
11052
|
-
$metadata
|
|
11050
|
+
$metadata,
|
|
11053
11051
|
});
|
|
11054
11052
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
11055
11053
|
}
|
|
@@ -11083,8 +11081,7 @@ const deserializeAws_restJson1UpdateDocumentationPartCommandError = async (outpu
|
|
|
11083
11081
|
body: await parseBody(output.body, context),
|
|
11084
11082
|
};
|
|
11085
11083
|
let response;
|
|
11086
|
-
|
|
11087
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
11084
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
11088
11085
|
switch (errorCode) {
|
|
11089
11086
|
case "BadRequestException":
|
|
11090
11087
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -11106,10 +11103,12 @@ const deserializeAws_restJson1UpdateDocumentationPartCommandError = async (outpu
|
|
|
11106
11103
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
11107
11104
|
default:
|
|
11108
11105
|
const parsedBody = parsedOutput.body;
|
|
11106
|
+
const $metadata = deserializeMetadata(output);
|
|
11107
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
11109
11108
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
11110
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
11109
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
11111
11110
|
$fault: "client",
|
|
11112
|
-
$metadata
|
|
11111
|
+
$metadata,
|
|
11113
11112
|
});
|
|
11114
11113
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
11115
11114
|
}
|
|
@@ -11143,8 +11142,7 @@ const deserializeAws_restJson1UpdateDocumentationVersionCommandError = async (ou
|
|
|
11143
11142
|
body: await parseBody(output.body, context),
|
|
11144
11143
|
};
|
|
11145
11144
|
let response;
|
|
11146
|
-
|
|
11147
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
11145
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
11148
11146
|
switch (errorCode) {
|
|
11149
11147
|
case "BadRequestException":
|
|
11150
11148
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -11166,10 +11164,12 @@ const deserializeAws_restJson1UpdateDocumentationVersionCommandError = async (ou
|
|
|
11166
11164
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
11167
11165
|
default:
|
|
11168
11166
|
const parsedBody = parsedOutput.body;
|
|
11167
|
+
const $metadata = deserializeMetadata(output);
|
|
11168
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
11169
11169
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
11170
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
11170
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
11171
11171
|
$fault: "client",
|
|
11172
|
-
$metadata
|
|
11172
|
+
$metadata,
|
|
11173
11173
|
});
|
|
11174
11174
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
11175
11175
|
}
|
|
@@ -11259,8 +11259,7 @@ const deserializeAws_restJson1UpdateDomainNameCommandError = async (output, cont
|
|
|
11259
11259
|
body: await parseBody(output.body, context),
|
|
11260
11260
|
};
|
|
11261
11261
|
let response;
|
|
11262
|
-
|
|
11263
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
11262
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
11264
11263
|
switch (errorCode) {
|
|
11265
11264
|
case "BadRequestException":
|
|
11266
11265
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -11282,10 +11281,12 @@ const deserializeAws_restJson1UpdateDomainNameCommandError = async (output, cont
|
|
|
11282
11281
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
11283
11282
|
default:
|
|
11284
11283
|
const parsedBody = parsedOutput.body;
|
|
11284
|
+
const $metadata = deserializeMetadata(output);
|
|
11285
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
11285
11286
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
11286
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
11287
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
11287
11288
|
$fault: "client",
|
|
11288
|
-
$metadata
|
|
11289
|
+
$metadata,
|
|
11289
11290
|
});
|
|
11290
11291
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
11291
11292
|
}
|
|
@@ -11327,8 +11328,7 @@ const deserializeAws_restJson1UpdateGatewayResponseCommandError = async (output,
|
|
|
11327
11328
|
body: await parseBody(output.body, context),
|
|
11328
11329
|
};
|
|
11329
11330
|
let response;
|
|
11330
|
-
|
|
11331
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
11331
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
11332
11332
|
switch (errorCode) {
|
|
11333
11333
|
case "BadRequestException":
|
|
11334
11334
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -11350,10 +11350,12 @@ const deserializeAws_restJson1UpdateGatewayResponseCommandError = async (output,
|
|
|
11350
11350
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
11351
11351
|
default:
|
|
11352
11352
|
const parsedBody = parsedOutput.body;
|
|
11353
|
+
const $metadata = deserializeMetadata(output);
|
|
11354
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
11353
11355
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
11354
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
11356
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
11355
11357
|
$fault: "client",
|
|
11356
|
-
$metadata
|
|
11358
|
+
$metadata,
|
|
11357
11359
|
});
|
|
11358
11360
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
11359
11361
|
}
|
|
@@ -11435,8 +11437,7 @@ const deserializeAws_restJson1UpdateIntegrationCommandError = async (output, con
|
|
|
11435
11437
|
body: await parseBody(output.body, context),
|
|
11436
11438
|
};
|
|
11437
11439
|
let response;
|
|
11438
|
-
|
|
11439
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
11440
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
11440
11441
|
switch (errorCode) {
|
|
11441
11442
|
case "BadRequestException":
|
|
11442
11443
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -11458,10 +11459,12 @@ const deserializeAws_restJson1UpdateIntegrationCommandError = async (output, con
|
|
|
11458
11459
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
11459
11460
|
default:
|
|
11460
11461
|
const parsedBody = parsedOutput.body;
|
|
11462
|
+
const $metadata = deserializeMetadata(output);
|
|
11463
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
11461
11464
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
11462
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
11465
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
11463
11466
|
$fault: "client",
|
|
11464
|
-
$metadata
|
|
11467
|
+
$metadata,
|
|
11465
11468
|
});
|
|
11466
11469
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
11467
11470
|
}
|
|
@@ -11503,8 +11506,7 @@ const deserializeAws_restJson1UpdateIntegrationResponseCommandError = async (out
|
|
|
11503
11506
|
body: await parseBody(output.body, context),
|
|
11504
11507
|
};
|
|
11505
11508
|
let response;
|
|
11506
|
-
|
|
11507
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
11509
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
11508
11510
|
switch (errorCode) {
|
|
11509
11511
|
case "BadRequestException":
|
|
11510
11512
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -11526,10 +11528,12 @@ const deserializeAws_restJson1UpdateIntegrationResponseCommandError = async (out
|
|
|
11526
11528
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
11527
11529
|
default:
|
|
11528
11530
|
const parsedBody = parsedOutput.body;
|
|
11531
|
+
const $metadata = deserializeMetadata(output);
|
|
11532
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
11529
11533
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
11530
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
11534
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
11531
11535
|
$fault: "client",
|
|
11532
|
-
$metadata
|
|
11536
|
+
$metadata,
|
|
11533
11537
|
});
|
|
11534
11538
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
11535
11539
|
}
|
|
@@ -11595,8 +11599,7 @@ const deserializeAws_restJson1UpdateMethodCommandError = async (output, context)
|
|
|
11595
11599
|
body: await parseBody(output.body, context),
|
|
11596
11600
|
};
|
|
11597
11601
|
let response;
|
|
11598
|
-
|
|
11599
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
11602
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
11600
11603
|
switch (errorCode) {
|
|
11601
11604
|
case "BadRequestException":
|
|
11602
11605
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -11615,10 +11618,12 @@ const deserializeAws_restJson1UpdateMethodCommandError = async (output, context)
|
|
|
11615
11618
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
11616
11619
|
default:
|
|
11617
11620
|
const parsedBody = parsedOutput.body;
|
|
11621
|
+
const $metadata = deserializeMetadata(output);
|
|
11622
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
11618
11623
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
11619
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
11624
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
11620
11625
|
$fault: "client",
|
|
11621
|
-
$metadata
|
|
11626
|
+
$metadata,
|
|
11622
11627
|
});
|
|
11623
11628
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
11624
11629
|
}
|
|
@@ -11652,8 +11657,7 @@ const deserializeAws_restJson1UpdateMethodResponseCommandError = async (output,
|
|
|
11652
11657
|
body: await parseBody(output.body, context),
|
|
11653
11658
|
};
|
|
11654
11659
|
let response;
|
|
11655
|
-
|
|
11656
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
11660
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
11657
11661
|
switch (errorCode) {
|
|
11658
11662
|
case "BadRequestException":
|
|
11659
11663
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -11675,10 +11679,12 @@ const deserializeAws_restJson1UpdateMethodResponseCommandError = async (output,
|
|
|
11675
11679
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
11676
11680
|
default:
|
|
11677
11681
|
const parsedBody = parsedOutput.body;
|
|
11682
|
+
const $metadata = deserializeMetadata(output);
|
|
11683
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
11678
11684
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
11679
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
11685
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
11680
11686
|
$fault: "client",
|
|
11681
|
-
$metadata
|
|
11687
|
+
$metadata,
|
|
11682
11688
|
});
|
|
11683
11689
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
11684
11690
|
}
|
|
@@ -11720,8 +11726,7 @@ const deserializeAws_restJson1UpdateModelCommandError = async (output, context)
|
|
|
11720
11726
|
body: await parseBody(output.body, context),
|
|
11721
11727
|
};
|
|
11722
11728
|
let response;
|
|
11723
|
-
|
|
11724
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
11729
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
11725
11730
|
switch (errorCode) {
|
|
11726
11731
|
case "BadRequestException":
|
|
11727
11732
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -11743,10 +11748,12 @@ const deserializeAws_restJson1UpdateModelCommandError = async (output, context)
|
|
|
11743
11748
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
11744
11749
|
default:
|
|
11745
11750
|
const parsedBody = parsedOutput.body;
|
|
11751
|
+
const $metadata = deserializeMetadata(output);
|
|
11752
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
11746
11753
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
11747
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
11754
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
11748
11755
|
$fault: "client",
|
|
11749
|
-
$metadata
|
|
11756
|
+
$metadata,
|
|
11750
11757
|
});
|
|
11751
11758
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
11752
11759
|
}
|
|
@@ -11784,8 +11791,7 @@ const deserializeAws_restJson1UpdateRequestValidatorCommandError = async (output
|
|
|
11784
11791
|
body: await parseBody(output.body, context),
|
|
11785
11792
|
};
|
|
11786
11793
|
let response;
|
|
11787
|
-
|
|
11788
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
11794
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
11789
11795
|
switch (errorCode) {
|
|
11790
11796
|
case "BadRequestException":
|
|
11791
11797
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -11807,10 +11813,12 @@ const deserializeAws_restJson1UpdateRequestValidatorCommandError = async (output
|
|
|
11807
11813
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
11808
11814
|
default:
|
|
11809
11815
|
const parsedBody = parsedOutput.body;
|
|
11816
|
+
const $metadata = deserializeMetadata(output);
|
|
11817
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
11810
11818
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
11811
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
11819
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
11812
11820
|
$fault: "client",
|
|
11813
|
-
$metadata
|
|
11821
|
+
$metadata,
|
|
11814
11822
|
});
|
|
11815
11823
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
11816
11824
|
}
|
|
@@ -11852,8 +11860,7 @@ const deserializeAws_restJson1UpdateResourceCommandError = async (output, contex
|
|
|
11852
11860
|
body: await parseBody(output.body, context),
|
|
11853
11861
|
};
|
|
11854
11862
|
let response;
|
|
11855
|
-
|
|
11856
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
11863
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
11857
11864
|
switch (errorCode) {
|
|
11858
11865
|
case "BadRequestException":
|
|
11859
11866
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -11872,10 +11879,12 @@ const deserializeAws_restJson1UpdateResourceCommandError = async (output, contex
|
|
|
11872
11879
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
11873
11880
|
default:
|
|
11874
11881
|
const parsedBody = parsedOutput.body;
|
|
11882
|
+
const $metadata = deserializeMetadata(output);
|
|
11883
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
11875
11884
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
11876
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
11885
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
11877
11886
|
$fault: "client",
|
|
11878
|
-
$metadata
|
|
11887
|
+
$metadata,
|
|
11879
11888
|
});
|
|
11880
11889
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
11881
11890
|
}
|
|
@@ -11949,8 +11958,7 @@ const deserializeAws_restJson1UpdateRestApiCommandError = async (output, context
|
|
|
11949
11958
|
body: await parseBody(output.body, context),
|
|
11950
11959
|
};
|
|
11951
11960
|
let response;
|
|
11952
|
-
|
|
11953
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
11961
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
11954
11962
|
switch (errorCode) {
|
|
11955
11963
|
case "BadRequestException":
|
|
11956
11964
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -11972,10 +11980,12 @@ const deserializeAws_restJson1UpdateRestApiCommandError = async (output, context
|
|
|
11972
11980
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
11973
11981
|
default:
|
|
11974
11982
|
const parsedBody = parsedOutput.body;
|
|
11983
|
+
const $metadata = deserializeMetadata(output);
|
|
11984
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
11975
11985
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
11976
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
11986
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
11977
11987
|
$fault: "client",
|
|
11978
|
-
$metadata
|
|
11988
|
+
$metadata,
|
|
11979
11989
|
});
|
|
11980
11990
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
11981
11991
|
}
|
|
@@ -12065,8 +12075,7 @@ const deserializeAws_restJson1UpdateStageCommandError = async (output, context)
|
|
|
12065
12075
|
body: await parseBody(output.body, context),
|
|
12066
12076
|
};
|
|
12067
12077
|
let response;
|
|
12068
|
-
|
|
12069
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
12078
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
12070
12079
|
switch (errorCode) {
|
|
12071
12080
|
case "BadRequestException":
|
|
12072
12081
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -12088,10 +12097,12 @@ const deserializeAws_restJson1UpdateStageCommandError = async (output, context)
|
|
|
12088
12097
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
12089
12098
|
default:
|
|
12090
12099
|
const parsedBody = parsedOutput.body;
|
|
12100
|
+
const $metadata = deserializeMetadata(output);
|
|
12101
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
12091
12102
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
12092
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
12103
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
12093
12104
|
$fault: "client",
|
|
12094
|
-
$metadata
|
|
12105
|
+
$metadata,
|
|
12095
12106
|
});
|
|
12096
12107
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
12097
12108
|
}
|
|
@@ -12133,8 +12144,7 @@ const deserializeAws_restJson1UpdateUsageCommandError = async (output, context)
|
|
|
12133
12144
|
body: await parseBody(output.body, context),
|
|
12134
12145
|
};
|
|
12135
12146
|
let response;
|
|
12136
|
-
|
|
12137
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
12147
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
12138
12148
|
switch (errorCode) {
|
|
12139
12149
|
case "BadRequestException":
|
|
12140
12150
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -12156,10 +12166,12 @@ const deserializeAws_restJson1UpdateUsageCommandError = async (output, context)
|
|
|
12156
12166
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
12157
12167
|
default:
|
|
12158
12168
|
const parsedBody = parsedOutput.body;
|
|
12169
|
+
const $metadata = deserializeMetadata(output);
|
|
12170
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
12159
12171
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
12160
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
12172
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
12161
12173
|
$fault: "client",
|
|
12162
|
-
$metadata
|
|
12174
|
+
$metadata,
|
|
12163
12175
|
});
|
|
12164
12176
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
12165
12177
|
}
|
|
@@ -12213,8 +12225,7 @@ const deserializeAws_restJson1UpdateUsagePlanCommandError = async (output, conte
|
|
|
12213
12225
|
body: await parseBody(output.body, context),
|
|
12214
12226
|
};
|
|
12215
12227
|
let response;
|
|
12216
|
-
|
|
12217
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
12228
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
12218
12229
|
switch (errorCode) {
|
|
12219
12230
|
case "BadRequestException":
|
|
12220
12231
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -12236,10 +12247,12 @@ const deserializeAws_restJson1UpdateUsagePlanCommandError = async (output, conte
|
|
|
12236
12247
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
12237
12248
|
default:
|
|
12238
12249
|
const parsedBody = parsedOutput.body;
|
|
12250
|
+
const $metadata = deserializeMetadata(output);
|
|
12251
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
12239
12252
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
12240
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
12253
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
12241
12254
|
$fault: "client",
|
|
12242
|
-
$metadata
|
|
12255
|
+
$metadata,
|
|
12243
12256
|
});
|
|
12244
12257
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
12245
12258
|
}
|
|
@@ -12289,8 +12302,7 @@ const deserializeAws_restJson1UpdateVpcLinkCommandError = async (output, context
|
|
|
12289
12302
|
body: await parseBody(output.body, context),
|
|
12290
12303
|
};
|
|
12291
12304
|
let response;
|
|
12292
|
-
|
|
12293
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
12305
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
12294
12306
|
switch (errorCode) {
|
|
12295
12307
|
case "BadRequestException":
|
|
12296
12308
|
case "com.amazonaws.apigateway#BadRequestException":
|
|
@@ -12312,10 +12324,12 @@ const deserializeAws_restJson1UpdateVpcLinkCommandError = async (output, context
|
|
|
12312
12324
|
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
12313
12325
|
default:
|
|
12314
12326
|
const parsedBody = parsedOutput.body;
|
|
12327
|
+
const $metadata = deserializeMetadata(output);
|
|
12328
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
12315
12329
|
response = new APIGatewayServiceException_1.APIGatewayServiceException({
|
|
12316
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
12330
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
12317
12331
|
$fault: "client",
|
|
12318
|
-
$metadata
|
|
12332
|
+
$metadata,
|
|
12319
12333
|
});
|
|
12320
12334
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
12321
12335
|
}
|
|
@@ -12415,52 +12429,45 @@ const deserializeAws_restJson1UnauthorizedExceptionResponse = async (parsedOutpu
|
|
|
12415
12429
|
};
|
|
12416
12430
|
const serializeAws_restJson1ApiStage = (input, context) => {
|
|
12417
12431
|
return {
|
|
12418
|
-
...(input.apiId
|
|
12419
|
-
...(input.stage
|
|
12420
|
-
...(input.throttle
|
|
12421
|
-
input.throttle !== null && {
|
|
12432
|
+
...(input.apiId != null && { apiId: input.apiId }),
|
|
12433
|
+
...(input.stage != null && { stage: input.stage }),
|
|
12434
|
+
...(input.throttle != null && {
|
|
12422
12435
|
throttle: serializeAws_restJson1MapOfApiStageThrottleSettings(input.throttle, context),
|
|
12423
12436
|
}),
|
|
12424
12437
|
};
|
|
12425
12438
|
};
|
|
12426
12439
|
const serializeAws_restJson1CanarySettings = (input, context) => {
|
|
12427
12440
|
return {
|
|
12428
|
-
...(input.deploymentId
|
|
12429
|
-
...(input.percentTraffic
|
|
12430
|
-
|
|
12431
|
-
...(input.stageVariableOverrides !== undefined &&
|
|
12432
|
-
input.stageVariableOverrides !== null && {
|
|
12441
|
+
...(input.deploymentId != null && { deploymentId: input.deploymentId }),
|
|
12442
|
+
...(input.percentTraffic != null && { percentTraffic: (0, smithy_client_1.serializeFloat)(input.percentTraffic) }),
|
|
12443
|
+
...(input.stageVariableOverrides != null && {
|
|
12433
12444
|
stageVariableOverrides: serializeAws_restJson1MapOfStringToString(input.stageVariableOverrides, context),
|
|
12434
12445
|
}),
|
|
12435
|
-
...(input.useStageCache
|
|
12446
|
+
...(input.useStageCache != null && { useStageCache: input.useStageCache }),
|
|
12436
12447
|
};
|
|
12437
12448
|
};
|
|
12438
12449
|
const serializeAws_restJson1DeploymentCanarySettings = (input, context) => {
|
|
12439
12450
|
return {
|
|
12440
|
-
...(input.percentTraffic
|
|
12441
|
-
|
|
12442
|
-
...(input.stageVariableOverrides !== undefined &&
|
|
12443
|
-
input.stageVariableOverrides !== null && {
|
|
12451
|
+
...(input.percentTraffic != null && { percentTraffic: (0, smithy_client_1.serializeFloat)(input.percentTraffic) }),
|
|
12452
|
+
...(input.stageVariableOverrides != null && {
|
|
12444
12453
|
stageVariableOverrides: serializeAws_restJson1MapOfStringToString(input.stageVariableOverrides, context),
|
|
12445
12454
|
}),
|
|
12446
|
-
...(input.useStageCache
|
|
12455
|
+
...(input.useStageCache != null && { useStageCache: input.useStageCache }),
|
|
12447
12456
|
};
|
|
12448
12457
|
};
|
|
12449
12458
|
const serializeAws_restJson1DocumentationPartLocation = (input, context) => {
|
|
12450
12459
|
return {
|
|
12451
|
-
...(input.method
|
|
12452
|
-
...(input.name
|
|
12453
|
-
...(input.path
|
|
12454
|
-
...(input.statusCode
|
|
12455
|
-
...(input.type
|
|
12460
|
+
...(input.method != null && { method: input.method }),
|
|
12461
|
+
...(input.name != null && { name: input.name }),
|
|
12462
|
+
...(input.path != null && { path: input.path }),
|
|
12463
|
+
...(input.statusCode != null && { statusCode: input.statusCode }),
|
|
12464
|
+
...(input.type != null && { type: input.type }),
|
|
12456
12465
|
};
|
|
12457
12466
|
};
|
|
12458
12467
|
const serializeAws_restJson1EndpointConfiguration = (input, context) => {
|
|
12459
12468
|
return {
|
|
12460
|
-
...(input.types
|
|
12461
|
-
|
|
12462
|
-
...(input.vpcEndpointIds !== undefined &&
|
|
12463
|
-
input.vpcEndpointIds !== null && {
|
|
12469
|
+
...(input.types != null && { types: serializeAws_restJson1ListOfEndpointType(input.types, context) }),
|
|
12470
|
+
...(input.vpcEndpointIds != null && {
|
|
12464
12471
|
vpcEndpointIds: serializeAws_restJson1ListOfString(input.vpcEndpointIds, context),
|
|
12465
12472
|
}),
|
|
12466
12473
|
};
|
|
@@ -12571,42 +12578,40 @@ const serializeAws_restJson1MapOfStringToString = (input, context) => {
|
|
|
12571
12578
|
};
|
|
12572
12579
|
const serializeAws_restJson1MutualTlsAuthenticationInput = (input, context) => {
|
|
12573
12580
|
return {
|
|
12574
|
-
...(input.truststoreUri
|
|
12575
|
-
...(input.truststoreVersion
|
|
12576
|
-
input.truststoreVersion !== null && { truststoreVersion: input.truststoreVersion }),
|
|
12581
|
+
...(input.truststoreUri != null && { truststoreUri: input.truststoreUri }),
|
|
12582
|
+
...(input.truststoreVersion != null && { truststoreVersion: input.truststoreVersion }),
|
|
12577
12583
|
};
|
|
12578
12584
|
};
|
|
12579
12585
|
const serializeAws_restJson1PatchOperation = (input, context) => {
|
|
12580
12586
|
return {
|
|
12581
|
-
...(input.from
|
|
12582
|
-
...(input.op
|
|
12583
|
-
...(input.path
|
|
12584
|
-
...(input.value
|
|
12587
|
+
...(input.from != null && { from: input.from }),
|
|
12588
|
+
...(input.op != null && { op: input.op }),
|
|
12589
|
+
...(input.path != null && { path: input.path }),
|
|
12590
|
+
...(input.value != null && { value: input.value }),
|
|
12585
12591
|
};
|
|
12586
12592
|
};
|
|
12587
12593
|
const serializeAws_restJson1QuotaSettings = (input, context) => {
|
|
12588
12594
|
return {
|
|
12589
|
-
...(input.limit
|
|
12590
|
-
...(input.offset
|
|
12591
|
-
...(input.period
|
|
12595
|
+
...(input.limit != null && { limit: input.limit }),
|
|
12596
|
+
...(input.offset != null && { offset: input.offset }),
|
|
12597
|
+
...(input.period != null && { period: input.period }),
|
|
12592
12598
|
};
|
|
12593
12599
|
};
|
|
12594
12600
|
const serializeAws_restJson1StageKey = (input, context) => {
|
|
12595
12601
|
return {
|
|
12596
|
-
...(input.restApiId
|
|
12597
|
-
...(input.stageName
|
|
12602
|
+
...(input.restApiId != null && { restApiId: input.restApiId }),
|
|
12603
|
+
...(input.stageName != null && { stageName: input.stageName }),
|
|
12598
12604
|
};
|
|
12599
12605
|
};
|
|
12600
12606
|
const serializeAws_restJson1ThrottleSettings = (input, context) => {
|
|
12601
12607
|
return {
|
|
12602
|
-
...(input.burstLimit
|
|
12603
|
-
...(input.rateLimit
|
|
12608
|
+
...(input.burstLimit != null && { burstLimit: input.burstLimit }),
|
|
12609
|
+
...(input.rateLimit != null && { rateLimit: (0, smithy_client_1.serializeFloat)(input.rateLimit) }),
|
|
12604
12610
|
};
|
|
12605
12611
|
};
|
|
12606
12612
|
const serializeAws_restJson1TlsConfig = (input, context) => {
|
|
12607
12613
|
return {
|
|
12608
|
-
...(input.insecureSkipVerification
|
|
12609
|
-
input.insecureSkipVerification !== null && { insecureSkipVerification: input.insecureSkipVerification }),
|
|
12614
|
+
...(input.insecureSkipVerification != null && { insecureSkipVerification: input.insecureSkipVerification }),
|
|
12610
12615
|
};
|
|
12611
12616
|
};
|
|
12612
12617
|
const deserializeAws_restJson1AccessLogSettings = (output, context) => {
|
|
@@ -12617,23 +12622,19 @@ const deserializeAws_restJson1AccessLogSettings = (output, context) => {
|
|
|
12617
12622
|
};
|
|
12618
12623
|
const deserializeAws_restJson1ApiKey = (output, context) => {
|
|
12619
12624
|
return {
|
|
12620
|
-
createdDate: output.createdDate
|
|
12625
|
+
createdDate: output.createdDate != null
|
|
12621
12626
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdDate)))
|
|
12622
12627
|
: undefined,
|
|
12623
12628
|
customerId: (0, smithy_client_1.expectString)(output.customerId),
|
|
12624
12629
|
description: (0, smithy_client_1.expectString)(output.description),
|
|
12625
12630
|
enabled: (0, smithy_client_1.expectBoolean)(output.enabled),
|
|
12626
12631
|
id: (0, smithy_client_1.expectString)(output.id),
|
|
12627
|
-
lastUpdatedDate: output.lastUpdatedDate
|
|
12632
|
+
lastUpdatedDate: output.lastUpdatedDate != null
|
|
12628
12633
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedDate)))
|
|
12629
12634
|
: undefined,
|
|
12630
12635
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
12631
|
-
stageKeys: output.stageKeys
|
|
12632
|
-
|
|
12633
|
-
: undefined,
|
|
12634
|
-
tags: output.tags !== undefined && output.tags !== null
|
|
12635
|
-
? deserializeAws_restJson1MapOfStringToString(output.tags, context)
|
|
12636
|
-
: undefined,
|
|
12636
|
+
stageKeys: output.stageKeys != null ? deserializeAws_restJson1ListOfString(output.stageKeys, context) : undefined,
|
|
12637
|
+
tags: output.tags != null ? deserializeAws_restJson1MapOfStringToString(output.tags, context) : undefined,
|
|
12637
12638
|
value: (0, smithy_client_1.expectString)(output.value),
|
|
12638
12639
|
};
|
|
12639
12640
|
};
|
|
@@ -12641,7 +12642,7 @@ const deserializeAws_restJson1ApiStage = (output, context) => {
|
|
|
12641
12642
|
return {
|
|
12642
12643
|
apiId: (0, smithy_client_1.expectString)(output.apiId),
|
|
12643
12644
|
stage: (0, smithy_client_1.expectString)(output.stage),
|
|
12644
|
-
throttle: output.throttle
|
|
12645
|
+
throttle: output.throttle != null
|
|
12645
12646
|
? deserializeAws_restJson1MapOfApiStageThrottleSettings(output.throttle, context)
|
|
12646
12647
|
: undefined,
|
|
12647
12648
|
};
|
|
@@ -12656,9 +12657,7 @@ const deserializeAws_restJson1Authorizer = (output, context) => {
|
|
|
12656
12657
|
identitySource: (0, smithy_client_1.expectString)(output.identitySource),
|
|
12657
12658
|
identityValidationExpression: (0, smithy_client_1.expectString)(output.identityValidationExpression),
|
|
12658
12659
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
12659
|
-
providerARNs: output.providerARNs
|
|
12660
|
-
? deserializeAws_restJson1ListOfARNs(output.providerARNs, context)
|
|
12661
|
-
: undefined,
|
|
12660
|
+
providerARNs: output.providerARNs != null ? deserializeAws_restJson1ListOfARNs(output.providerARNs, context) : undefined,
|
|
12662
12661
|
type: (0, smithy_client_1.expectString)(output.type),
|
|
12663
12662
|
};
|
|
12664
12663
|
};
|
|
@@ -12673,7 +12672,7 @@ const deserializeAws_restJson1CanarySettings = (output, context) => {
|
|
|
12673
12672
|
return {
|
|
12674
12673
|
deploymentId: (0, smithy_client_1.expectString)(output.deploymentId),
|
|
12675
12674
|
percentTraffic: (0, smithy_client_1.limitedParseDouble)(output.percentTraffic),
|
|
12676
|
-
stageVariableOverrides: output.stageVariableOverrides
|
|
12675
|
+
stageVariableOverrides: output.stageVariableOverrides != null
|
|
12677
12676
|
? deserializeAws_restJson1MapOfStringToString(output.stageVariableOverrides, context)
|
|
12678
12677
|
: undefined,
|
|
12679
12678
|
useStageCache: (0, smithy_client_1.expectBoolean)(output.useStageCache),
|
|
@@ -12682,25 +12681,23 @@ const deserializeAws_restJson1CanarySettings = (output, context) => {
|
|
|
12682
12681
|
const deserializeAws_restJson1ClientCertificate = (output, context) => {
|
|
12683
12682
|
return {
|
|
12684
12683
|
clientCertificateId: (0, smithy_client_1.expectString)(output.clientCertificateId),
|
|
12685
|
-
createdDate: output.createdDate
|
|
12684
|
+
createdDate: output.createdDate != null
|
|
12686
12685
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdDate)))
|
|
12687
12686
|
: undefined,
|
|
12688
12687
|
description: (0, smithy_client_1.expectString)(output.description),
|
|
12689
|
-
expirationDate: output.expirationDate
|
|
12688
|
+
expirationDate: output.expirationDate != null
|
|
12690
12689
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.expirationDate)))
|
|
12691
12690
|
: undefined,
|
|
12692
12691
|
pemEncodedCertificate: (0, smithy_client_1.expectString)(output.pemEncodedCertificate),
|
|
12693
|
-
tags: output.tags
|
|
12694
|
-
? deserializeAws_restJson1MapOfStringToString(output.tags, context)
|
|
12695
|
-
: undefined,
|
|
12692
|
+
tags: output.tags != null ? deserializeAws_restJson1MapOfStringToString(output.tags, context) : undefined,
|
|
12696
12693
|
};
|
|
12697
12694
|
};
|
|
12698
12695
|
const deserializeAws_restJson1Deployment = (output, context) => {
|
|
12699
12696
|
return {
|
|
12700
|
-
apiSummary: output.apiSummary
|
|
12697
|
+
apiSummary: output.apiSummary != null
|
|
12701
12698
|
? deserializeAws_restJson1PathToMapOfMethodSnapshot(output.apiSummary, context)
|
|
12702
12699
|
: undefined,
|
|
12703
|
-
createdDate: output.createdDate
|
|
12700
|
+
createdDate: output.createdDate != null
|
|
12704
12701
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdDate)))
|
|
12705
12702
|
: undefined,
|
|
12706
12703
|
description: (0, smithy_client_1.expectString)(output.description),
|
|
@@ -12710,9 +12707,7 @@ const deserializeAws_restJson1Deployment = (output, context) => {
|
|
|
12710
12707
|
const deserializeAws_restJson1DocumentationPart = (output, context) => {
|
|
12711
12708
|
return {
|
|
12712
12709
|
id: (0, smithy_client_1.expectString)(output.id),
|
|
12713
|
-
location: output.location
|
|
12714
|
-
? deserializeAws_restJson1DocumentationPartLocation(output.location, context)
|
|
12715
|
-
: undefined,
|
|
12710
|
+
location: output.location != null ? deserializeAws_restJson1DocumentationPartLocation(output.location, context) : undefined,
|
|
12716
12711
|
properties: (0, smithy_client_1.expectString)(output.properties),
|
|
12717
12712
|
};
|
|
12718
12713
|
};
|
|
@@ -12727,7 +12722,7 @@ const deserializeAws_restJson1DocumentationPartLocation = (output, context) => {
|
|
|
12727
12722
|
};
|
|
12728
12723
|
const deserializeAws_restJson1DocumentationVersion = (output, context) => {
|
|
12729
12724
|
return {
|
|
12730
|
-
createdDate: output.createdDate
|
|
12725
|
+
createdDate: output.createdDate != null
|
|
12731
12726
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdDate)))
|
|
12732
12727
|
: undefined,
|
|
12733
12728
|
description: (0, smithy_client_1.expectString)(output.description),
|
|
@@ -12738,7 +12733,7 @@ const deserializeAws_restJson1DomainName = (output, context) => {
|
|
|
12738
12733
|
return {
|
|
12739
12734
|
certificateArn: (0, smithy_client_1.expectString)(output.certificateArn),
|
|
12740
12735
|
certificateName: (0, smithy_client_1.expectString)(output.certificateName),
|
|
12741
|
-
certificateUploadDate: output.certificateUploadDate
|
|
12736
|
+
certificateUploadDate: output.certificateUploadDate != null
|
|
12742
12737
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.certificateUploadDate)))
|
|
12743
12738
|
: undefined,
|
|
12744
12739
|
distributionDomainName: (0, smithy_client_1.expectString)(output.distributionDomainName),
|
|
@@ -12746,10 +12741,10 @@ const deserializeAws_restJson1DomainName = (output, context) => {
|
|
|
12746
12741
|
domainName: (0, smithy_client_1.expectString)(output.domainName),
|
|
12747
12742
|
domainNameStatus: (0, smithy_client_1.expectString)(output.domainNameStatus),
|
|
12748
12743
|
domainNameStatusMessage: (0, smithy_client_1.expectString)(output.domainNameStatusMessage),
|
|
12749
|
-
endpointConfiguration: output.endpointConfiguration
|
|
12744
|
+
endpointConfiguration: output.endpointConfiguration != null
|
|
12750
12745
|
? deserializeAws_restJson1EndpointConfiguration(output.endpointConfiguration, context)
|
|
12751
12746
|
: undefined,
|
|
12752
|
-
mutualTlsAuthentication: output.mutualTlsAuthentication
|
|
12747
|
+
mutualTlsAuthentication: output.mutualTlsAuthentication != null
|
|
12753
12748
|
? deserializeAws_restJson1MutualTlsAuthentication(output.mutualTlsAuthentication, context)
|
|
12754
12749
|
: undefined,
|
|
12755
12750
|
ownershipVerificationCertificateArn: (0, smithy_client_1.expectString)(output.ownershipVerificationCertificateArn),
|
|
@@ -12758,28 +12753,22 @@ const deserializeAws_restJson1DomainName = (output, context) => {
|
|
|
12758
12753
|
regionalDomainName: (0, smithy_client_1.expectString)(output.regionalDomainName),
|
|
12759
12754
|
regionalHostedZoneId: (0, smithy_client_1.expectString)(output.regionalHostedZoneId),
|
|
12760
12755
|
securityPolicy: (0, smithy_client_1.expectString)(output.securityPolicy),
|
|
12761
|
-
tags: output.tags
|
|
12762
|
-
? deserializeAws_restJson1MapOfStringToString(output.tags, context)
|
|
12763
|
-
: undefined,
|
|
12756
|
+
tags: output.tags != null ? deserializeAws_restJson1MapOfStringToString(output.tags, context) : undefined,
|
|
12764
12757
|
};
|
|
12765
12758
|
};
|
|
12766
12759
|
const deserializeAws_restJson1EndpointConfiguration = (output, context) => {
|
|
12767
12760
|
return {
|
|
12768
|
-
types: output.types
|
|
12769
|
-
|
|
12770
|
-
: undefined,
|
|
12771
|
-
vpcEndpointIds: output.vpcEndpointIds !== undefined && output.vpcEndpointIds !== null
|
|
12772
|
-
? deserializeAws_restJson1ListOfString(output.vpcEndpointIds, context)
|
|
12773
|
-
: undefined,
|
|
12761
|
+
types: output.types != null ? deserializeAws_restJson1ListOfEndpointType(output.types, context) : undefined,
|
|
12762
|
+
vpcEndpointIds: output.vpcEndpointIds != null ? deserializeAws_restJson1ListOfString(output.vpcEndpointIds, context) : undefined,
|
|
12774
12763
|
};
|
|
12775
12764
|
};
|
|
12776
12765
|
const deserializeAws_restJson1GatewayResponse = (output, context) => {
|
|
12777
12766
|
return {
|
|
12778
12767
|
defaultResponse: (0, smithy_client_1.expectBoolean)(output.defaultResponse),
|
|
12779
|
-
responseParameters: output.responseParameters
|
|
12768
|
+
responseParameters: output.responseParameters != null
|
|
12780
12769
|
? deserializeAws_restJson1MapOfStringToString(output.responseParameters, context)
|
|
12781
12770
|
: undefined,
|
|
12782
|
-
responseTemplates: output.responseTemplates
|
|
12771
|
+
responseTemplates: output.responseTemplates != null
|
|
12783
12772
|
? deserializeAws_restJson1MapOfStringToString(output.responseTemplates, context)
|
|
12784
12773
|
: undefined,
|
|
12785
12774
|
responseType: (0, smithy_client_1.expectString)(output.responseType),
|
|
@@ -12788,7 +12777,7 @@ const deserializeAws_restJson1GatewayResponse = (output, context) => {
|
|
|
12788
12777
|
};
|
|
12789
12778
|
const deserializeAws_restJson1Integration = (output, context) => {
|
|
12790
12779
|
return {
|
|
12791
|
-
cacheKeyParameters: output.cacheKeyParameters
|
|
12780
|
+
cacheKeyParameters: output.cacheKeyParameters != null
|
|
12792
12781
|
? deserializeAws_restJson1ListOfString(output.cacheKeyParameters, context)
|
|
12793
12782
|
: undefined,
|
|
12794
12783
|
cacheNamespace: (0, smithy_client_1.expectString)(output.cacheNamespace),
|
|
@@ -12797,20 +12786,18 @@ const deserializeAws_restJson1Integration = (output, context) => {
|
|
|
12797
12786
|
contentHandling: (0, smithy_client_1.expectString)(output.contentHandling),
|
|
12798
12787
|
credentials: (0, smithy_client_1.expectString)(output.credentials),
|
|
12799
12788
|
httpMethod: (0, smithy_client_1.expectString)(output.httpMethod),
|
|
12800
|
-
integrationResponses: output.integrationResponses
|
|
12789
|
+
integrationResponses: output.integrationResponses != null
|
|
12801
12790
|
? deserializeAws_restJson1MapOfIntegrationResponse(output.integrationResponses, context)
|
|
12802
12791
|
: undefined,
|
|
12803
12792
|
passthroughBehavior: (0, smithy_client_1.expectString)(output.passthroughBehavior),
|
|
12804
|
-
requestParameters: output.requestParameters
|
|
12793
|
+
requestParameters: output.requestParameters != null
|
|
12805
12794
|
? deserializeAws_restJson1MapOfStringToString(output.requestParameters, context)
|
|
12806
12795
|
: undefined,
|
|
12807
|
-
requestTemplates: output.requestTemplates
|
|
12796
|
+
requestTemplates: output.requestTemplates != null
|
|
12808
12797
|
? deserializeAws_restJson1MapOfStringToString(output.requestTemplates, context)
|
|
12809
12798
|
: undefined,
|
|
12810
12799
|
timeoutInMillis: (0, smithy_client_1.expectInt32)(output.timeoutInMillis),
|
|
12811
|
-
tlsConfig: output.tlsConfig
|
|
12812
|
-
? deserializeAws_restJson1TlsConfig(output.tlsConfig, context)
|
|
12813
|
-
: undefined,
|
|
12800
|
+
tlsConfig: output.tlsConfig != null ? deserializeAws_restJson1TlsConfig(output.tlsConfig, context) : undefined,
|
|
12814
12801
|
type: (0, smithy_client_1.expectString)(output.type),
|
|
12815
12802
|
uri: (0, smithy_client_1.expectString)(output.uri),
|
|
12816
12803
|
};
|
|
@@ -12818,10 +12805,10 @@ const deserializeAws_restJson1Integration = (output, context) => {
|
|
|
12818
12805
|
const deserializeAws_restJson1IntegrationResponse = (output, context) => {
|
|
12819
12806
|
return {
|
|
12820
12807
|
contentHandling: (0, smithy_client_1.expectString)(output.contentHandling),
|
|
12821
|
-
responseParameters: output.responseParameters
|
|
12808
|
+
responseParameters: output.responseParameters != null
|
|
12822
12809
|
? deserializeAws_restJson1MapOfStringToString(output.responseParameters, context)
|
|
12823
12810
|
: undefined,
|
|
12824
|
-
responseTemplates: output.responseTemplates
|
|
12811
|
+
responseTemplates: output.responseTemplates != null
|
|
12825
12812
|
? deserializeAws_restJson1MapOfStringToString(output.responseTemplates, context)
|
|
12826
12813
|
: undefined,
|
|
12827
12814
|
selectionPattern: (0, smithy_client_1.expectString)(output.selectionPattern),
|
|
@@ -13216,23 +13203,23 @@ const deserializeAws_restJson1MapOfStringToString = (output, context) => {
|
|
|
13216
13203
|
const deserializeAws_restJson1Method = (output, context) => {
|
|
13217
13204
|
return {
|
|
13218
13205
|
apiKeyRequired: (0, smithy_client_1.expectBoolean)(output.apiKeyRequired),
|
|
13219
|
-
authorizationScopes: output.authorizationScopes
|
|
13206
|
+
authorizationScopes: output.authorizationScopes != null
|
|
13220
13207
|
? deserializeAws_restJson1ListOfString(output.authorizationScopes, context)
|
|
13221
13208
|
: undefined,
|
|
13222
13209
|
authorizationType: (0, smithy_client_1.expectString)(output.authorizationType),
|
|
13223
13210
|
authorizerId: (0, smithy_client_1.expectString)(output.authorizerId),
|
|
13224
13211
|
httpMethod: (0, smithy_client_1.expectString)(output.httpMethod),
|
|
13225
|
-
methodIntegration: output.methodIntegration
|
|
13212
|
+
methodIntegration: output.methodIntegration != null
|
|
13226
13213
|
? deserializeAws_restJson1Integration(output.methodIntegration, context)
|
|
13227
13214
|
: undefined,
|
|
13228
|
-
methodResponses: output.methodResponses
|
|
13215
|
+
methodResponses: output.methodResponses != null
|
|
13229
13216
|
? deserializeAws_restJson1MapOfMethodResponse(output.methodResponses, context)
|
|
13230
13217
|
: undefined,
|
|
13231
13218
|
operationName: (0, smithy_client_1.expectString)(output.operationName),
|
|
13232
|
-
requestModels: output.requestModels
|
|
13219
|
+
requestModels: output.requestModels != null
|
|
13233
13220
|
? deserializeAws_restJson1MapOfStringToString(output.requestModels, context)
|
|
13234
13221
|
: undefined,
|
|
13235
|
-
requestParameters: output.requestParameters
|
|
13222
|
+
requestParameters: output.requestParameters != null
|
|
13236
13223
|
? deserializeAws_restJson1MapOfStringToBoolean(output.requestParameters, context)
|
|
13237
13224
|
: undefined,
|
|
13238
13225
|
requestValidatorId: (0, smithy_client_1.expectString)(output.requestValidatorId),
|
|
@@ -13240,10 +13227,10 @@ const deserializeAws_restJson1Method = (output, context) => {
|
|
|
13240
13227
|
};
|
|
13241
13228
|
const deserializeAws_restJson1MethodResponse = (output, context) => {
|
|
13242
13229
|
return {
|
|
13243
|
-
responseModels: output.responseModels
|
|
13230
|
+
responseModels: output.responseModels != null
|
|
13244
13231
|
? deserializeAws_restJson1MapOfStringToString(output.responseModels, context)
|
|
13245
13232
|
: undefined,
|
|
13246
|
-
responseParameters: output.responseParameters
|
|
13233
|
+
responseParameters: output.responseParameters != null
|
|
13247
13234
|
? deserializeAws_restJson1MapOfStringToBoolean(output.responseParameters, context)
|
|
13248
13235
|
: undefined,
|
|
13249
13236
|
statusCode: (0, smithy_client_1.expectString)(output.statusCode),
|
|
@@ -13282,7 +13269,7 @@ const deserializeAws_restJson1MutualTlsAuthentication = (output, context) => {
|
|
|
13282
13269
|
return {
|
|
13283
13270
|
truststoreUri: (0, smithy_client_1.expectString)(output.truststoreUri),
|
|
13284
13271
|
truststoreVersion: (0, smithy_client_1.expectString)(output.truststoreVersion),
|
|
13285
|
-
truststoreWarnings: output.truststoreWarnings
|
|
13272
|
+
truststoreWarnings: output.truststoreWarnings != null
|
|
13286
13273
|
? deserializeAws_restJson1ListOfString(output.truststoreWarnings, context)
|
|
13287
13274
|
: undefined,
|
|
13288
13275
|
};
|
|
@@ -13319,36 +13306,30 @@ const deserializeAws_restJson1Resource = (output, context) => {
|
|
|
13319
13306
|
parentId: (0, smithy_client_1.expectString)(output.parentId),
|
|
13320
13307
|
path: (0, smithy_client_1.expectString)(output.path),
|
|
13321
13308
|
pathPart: (0, smithy_client_1.expectString)(output.pathPart),
|
|
13322
|
-
resourceMethods: output.resourceMethods
|
|
13323
|
-
? deserializeAws_restJson1MapOfMethod(output.resourceMethods, context)
|
|
13324
|
-
: undefined,
|
|
13309
|
+
resourceMethods: output.resourceMethods != null ? deserializeAws_restJson1MapOfMethod(output.resourceMethods, context) : undefined,
|
|
13325
13310
|
};
|
|
13326
13311
|
};
|
|
13327
13312
|
const deserializeAws_restJson1RestApi = (output, context) => {
|
|
13328
13313
|
return {
|
|
13329
13314
|
apiKeySource: (0, smithy_client_1.expectString)(output.apiKeySource),
|
|
13330
|
-
binaryMediaTypes: output.binaryMediaTypes
|
|
13315
|
+
binaryMediaTypes: output.binaryMediaTypes != null
|
|
13331
13316
|
? deserializeAws_restJson1ListOfString(output.binaryMediaTypes, context)
|
|
13332
13317
|
: undefined,
|
|
13333
|
-
createdDate: output.createdDate
|
|
13318
|
+
createdDate: output.createdDate != null
|
|
13334
13319
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdDate)))
|
|
13335
13320
|
: undefined,
|
|
13336
13321
|
description: (0, smithy_client_1.expectString)(output.description),
|
|
13337
13322
|
disableExecuteApiEndpoint: (0, smithy_client_1.expectBoolean)(output.disableExecuteApiEndpoint),
|
|
13338
|
-
endpointConfiguration: output.endpointConfiguration
|
|
13323
|
+
endpointConfiguration: output.endpointConfiguration != null
|
|
13339
13324
|
? deserializeAws_restJson1EndpointConfiguration(output.endpointConfiguration, context)
|
|
13340
13325
|
: undefined,
|
|
13341
13326
|
id: (0, smithy_client_1.expectString)(output.id),
|
|
13342
13327
|
minimumCompressionSize: (0, smithy_client_1.expectInt32)(output.minimumCompressionSize),
|
|
13343
13328
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
13344
13329
|
policy: (0, smithy_client_1.expectString)(output.policy),
|
|
13345
|
-
tags: output.tags
|
|
13346
|
-
? deserializeAws_restJson1MapOfStringToString(output.tags, context)
|
|
13347
|
-
: undefined,
|
|
13330
|
+
tags: output.tags != null ? deserializeAws_restJson1MapOfStringToString(output.tags, context) : undefined,
|
|
13348
13331
|
version: (0, smithy_client_1.expectString)(output.version),
|
|
13349
|
-
warnings: output.warnings
|
|
13350
|
-
? deserializeAws_restJson1ListOfString(output.warnings, context)
|
|
13351
|
-
: undefined,
|
|
13332
|
+
warnings: output.warnings != null ? deserializeAws_restJson1ListOfString(output.warnings, context) : undefined,
|
|
13352
13333
|
};
|
|
13353
13334
|
};
|
|
13354
13335
|
const deserializeAws_restJson1SdkConfigurationProperty = (output, context) => {
|
|
@@ -13362,7 +13343,7 @@ const deserializeAws_restJson1SdkConfigurationProperty = (output, context) => {
|
|
|
13362
13343
|
};
|
|
13363
13344
|
const deserializeAws_restJson1SdkType = (output, context) => {
|
|
13364
13345
|
return {
|
|
13365
|
-
configurationProperties: output.configurationProperties
|
|
13346
|
+
configurationProperties: output.configurationProperties != null
|
|
13366
13347
|
? deserializeAws_restJson1ListOfSdkConfigurationProperty(output.configurationProperties, context)
|
|
13367
13348
|
: undefined,
|
|
13368
13349
|
description: (0, smithy_client_1.expectString)(output.description),
|
|
@@ -13372,36 +13353,32 @@ const deserializeAws_restJson1SdkType = (output, context) => {
|
|
|
13372
13353
|
};
|
|
13373
13354
|
const deserializeAws_restJson1Stage = (output, context) => {
|
|
13374
13355
|
return {
|
|
13375
|
-
accessLogSettings: output.accessLogSettings
|
|
13356
|
+
accessLogSettings: output.accessLogSettings != null
|
|
13376
13357
|
? deserializeAws_restJson1AccessLogSettings(output.accessLogSettings, context)
|
|
13377
13358
|
: undefined,
|
|
13378
13359
|
cacheClusterEnabled: (0, smithy_client_1.expectBoolean)(output.cacheClusterEnabled),
|
|
13379
13360
|
cacheClusterSize: (0, smithy_client_1.expectString)(output.cacheClusterSize),
|
|
13380
13361
|
cacheClusterStatus: (0, smithy_client_1.expectString)(output.cacheClusterStatus),
|
|
13381
|
-
canarySettings: output.canarySettings
|
|
13362
|
+
canarySettings: output.canarySettings != null
|
|
13382
13363
|
? deserializeAws_restJson1CanarySettings(output.canarySettings, context)
|
|
13383
13364
|
: undefined,
|
|
13384
13365
|
clientCertificateId: (0, smithy_client_1.expectString)(output.clientCertificateId),
|
|
13385
|
-
createdDate: output.createdDate
|
|
13366
|
+
createdDate: output.createdDate != null
|
|
13386
13367
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdDate)))
|
|
13387
13368
|
: undefined,
|
|
13388
13369
|
deploymentId: (0, smithy_client_1.expectString)(output.deploymentId),
|
|
13389
13370
|
description: (0, smithy_client_1.expectString)(output.description),
|
|
13390
13371
|
documentationVersion: (0, smithy_client_1.expectString)(output.documentationVersion),
|
|
13391
|
-
lastUpdatedDate: output.lastUpdatedDate
|
|
13372
|
+
lastUpdatedDate: output.lastUpdatedDate != null
|
|
13392
13373
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedDate)))
|
|
13393
13374
|
: undefined,
|
|
13394
|
-
methodSettings: output.methodSettings
|
|
13375
|
+
methodSettings: output.methodSettings != null
|
|
13395
13376
|
? deserializeAws_restJson1MapOfMethodSettings(output.methodSettings, context)
|
|
13396
13377
|
: undefined,
|
|
13397
13378
|
stageName: (0, smithy_client_1.expectString)(output.stageName),
|
|
13398
|
-
tags: output.tags
|
|
13399
|
-
? deserializeAws_restJson1MapOfStringToString(output.tags, context)
|
|
13400
|
-
: undefined,
|
|
13379
|
+
tags: output.tags != null ? deserializeAws_restJson1MapOfStringToString(output.tags, context) : undefined,
|
|
13401
13380
|
tracingEnabled: (0, smithy_client_1.expectBoolean)(output.tracingEnabled),
|
|
13402
|
-
variables: output.variables
|
|
13403
|
-
? deserializeAws_restJson1MapOfStringToString(output.variables, context)
|
|
13404
|
-
: undefined,
|
|
13381
|
+
variables: output.variables != null ? deserializeAws_restJson1MapOfStringToString(output.variables, context) : undefined,
|
|
13405
13382
|
webAclArn: (0, smithy_client_1.expectString)(output.webAclArn),
|
|
13406
13383
|
};
|
|
13407
13384
|
};
|
|
@@ -13418,22 +13395,14 @@ const deserializeAws_restJson1TlsConfig = (output, context) => {
|
|
|
13418
13395
|
};
|
|
13419
13396
|
const deserializeAws_restJson1UsagePlan = (output, context) => {
|
|
13420
13397
|
return {
|
|
13421
|
-
apiStages: output.apiStages
|
|
13422
|
-
? deserializeAws_restJson1ListOfApiStage(output.apiStages, context)
|
|
13423
|
-
: undefined,
|
|
13398
|
+
apiStages: output.apiStages != null ? deserializeAws_restJson1ListOfApiStage(output.apiStages, context) : undefined,
|
|
13424
13399
|
description: (0, smithy_client_1.expectString)(output.description),
|
|
13425
13400
|
id: (0, smithy_client_1.expectString)(output.id),
|
|
13426
13401
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
13427
13402
|
productCode: (0, smithy_client_1.expectString)(output.productCode),
|
|
13428
|
-
quota: output.quota
|
|
13429
|
-
|
|
13430
|
-
|
|
13431
|
-
tags: output.tags !== undefined && output.tags !== null
|
|
13432
|
-
? deserializeAws_restJson1MapOfStringToString(output.tags, context)
|
|
13433
|
-
: undefined,
|
|
13434
|
-
throttle: output.throttle !== undefined && output.throttle !== null
|
|
13435
|
-
? deserializeAws_restJson1ThrottleSettings(output.throttle, context)
|
|
13436
|
-
: undefined,
|
|
13403
|
+
quota: output.quota != null ? deserializeAws_restJson1QuotaSettings(output.quota, context) : undefined,
|
|
13404
|
+
tags: output.tags != null ? deserializeAws_restJson1MapOfStringToString(output.tags, context) : undefined,
|
|
13405
|
+
throttle: output.throttle != null ? deserializeAws_restJson1ThrottleSettings(output.throttle, context) : undefined,
|
|
13437
13406
|
};
|
|
13438
13407
|
};
|
|
13439
13408
|
const deserializeAws_restJson1UsagePlanKey = (output, context) => {
|
|
@@ -13451,12 +13420,8 @@ const deserializeAws_restJson1VpcLink = (output, context) => {
|
|
|
13451
13420
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
13452
13421
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
13453
13422
|
statusMessage: (0, smithy_client_1.expectString)(output.statusMessage),
|
|
13454
|
-
tags: output.tags
|
|
13455
|
-
|
|
13456
|
-
: undefined,
|
|
13457
|
-
targetArns: output.targetArns !== undefined && output.targetArns !== null
|
|
13458
|
-
? deserializeAws_restJson1ListOfString(output.targetArns, context)
|
|
13459
|
-
: undefined,
|
|
13423
|
+
tags: output.tags != null ? deserializeAws_restJson1MapOfStringToString(output.tags, context) : undefined,
|
|
13424
|
+
targetArns: output.targetArns != null ? deserializeAws_restJson1ListOfString(output.targetArns, context) : undefined,
|
|
13460
13425
|
};
|
|
13461
13426
|
};
|
|
13462
13427
|
const deserializeMetadata = (output) => {
|
|
@@ -13508,5 +13473,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
13508
13473
|
if (data["__type"] !== undefined) {
|
|
13509
13474
|
return sanitizeErrorCode(data["__type"]);
|
|
13510
13475
|
}
|
|
13511
|
-
return "";
|
|
13512
13476
|
};
|