@aws-sdk/client-api-gateway 3.121.0 → 3.130.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.
@@ -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 !== undefined && input.customerId !== null && { customerId: input.customerId }),
21
- ...(input.description !== undefined && input.description !== null && { description: input.description }),
22
- ...(input.enabled !== undefined && input.enabled !== null && { enabled: input.enabled }),
23
- ...(input.generateDistinctId !== undefined &&
24
- input.generateDistinctId !== null && { generateDistinctId: input.generateDistinctId }),
25
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
26
- ...(input.stageKeys !== undefined &&
27
- input.stageKeys !== null && { stageKeys: serializeAws_restJson1ListOfStageKeys(input.stageKeys, context) }),
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 !== undefined && input.authType !== null && { authType: input.authType }),
62
- ...(input.authorizerCredentials !== undefined &&
63
- input.authorizerCredentials !== null && { authorizerCredentials: input.authorizerCredentials }),
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 !== undefined && input.authorizerUri !== null && { authorizerUri: input.authorizerUri }),
69
- ...(input.identitySource !== undefined &&
70
- input.identitySource !== null && { identitySource: input.identitySource }),
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 !== undefined && input.name !== null && { name: input.name }),
76
- ...(input.providerARNs !== undefined &&
77
- input.providerARNs !== null && { providerARNs: serializeAws_restJson1ListOfARNs(input.providerARNs, context) }),
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 !== undefined && input.basePath !== null && { basePath: input.basePath }),
111
- ...(input.restApiId !== undefined && input.restApiId !== null && { restApiId: input.restApiId }),
112
- ...(input.stage !== undefined && input.stage !== null && { stage: 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 !== undefined &&
144
- input.cacheClusterEnabled !== null && { cacheClusterEnabled: input.cacheClusterEnabled }),
145
- ...(input.cacheClusterSize !== undefined &&
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 !== undefined && input.description !== null && { description: input.description }),
152
- ...(input.stageDescription !== undefined &&
153
- input.stageDescription !== null && { stageDescription: input.stageDescription }),
154
- ...(input.stageName !== undefined && input.stageName !== null && { stageName: input.stageName }),
155
- ...(input.tracingEnabled !== undefined &&
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 !== undefined &&
190
- input.location !== null && {
175
+ ...(input.location != null && {
191
176
  location: serializeAws_restJson1DocumentationPartLocation(input.location, context),
192
177
  }),
193
- ...(input.properties !== undefined && input.properties !== null && { properties: 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 !== undefined && input.description !== null && { description: input.description }),
226
- ...(input.documentationVersion !== undefined &&
227
- input.documentationVersion !== null && { documentationVersion: input.documentationVersion }),
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 !== undefined &&
250
- input.certificateArn !== null && { certificateArn: input.certificateArn }),
251
- ...(input.certificateBody !== undefined &&
252
- input.certificateBody !== null && { certificateBody: input.certificateBody }),
253
- ...(input.certificateChain !== undefined &&
254
- input.certificateChain !== null && { certificateChain: input.certificateChain }),
255
- ...(input.certificateName !== undefined &&
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 !== undefined &&
265
- input.mutualTlsAuthentication !== null && {
242
+ ...(input.mutualTlsAuthentication != null && {
266
243
  mutualTlsAuthentication: serializeAws_restJson1MutualTlsAuthenticationInput(input.mutualTlsAuthentication, context),
267
244
  }),
268
- ...(input.ownershipVerificationCertificateArn !== undefined &&
269
- input.ownershipVerificationCertificateArn !== null && {
245
+ ...(input.ownershipVerificationCertificateArn != null && {
270
246
  ownershipVerificationCertificateArn: input.ownershipVerificationCertificateArn,
271
247
  }),
272
- ...(input.regionalCertificateArn !== undefined &&
273
- input.regionalCertificateArn !== null && { regionalCertificateArn: input.regionalCertificateArn }),
274
- ...(input.regionalCertificateName !== undefined &&
275
- input.regionalCertificateName !== null && { regionalCertificateName: input.regionalCertificateName }),
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 !== undefined && input.contentType !== null && { contentType: input.contentType }),
311
- ...(input.description !== undefined && input.description !== null && { description: input.description }),
312
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
313
- ...(input.schema !== undefined && input.schema !== null && { schema: 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 !== undefined && input.name !== null && { name: input.name }),
345
- ...(input.validateRequestBody !== undefined &&
346
- input.validateRequestBody !== null && { validateRequestBody: input.validateRequestBody }),
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 !== undefined && input.pathPart !== null && { pathPart: 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 !== undefined && input.apiKeySource !== null && { apiKeySource: input.apiKeySource }),
412
- ...(input.binaryMediaTypes !== undefined &&
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 !== undefined && input.cloneFrom !== null && { cloneFrom: input.cloneFrom }),
417
- ...(input.description !== undefined && input.description !== null && { description: input.description }),
418
- ...(input.disableExecuteApiEndpoint !== undefined &&
419
- input.disableExecuteApiEndpoint !== null && { disableExecuteApiEndpoint: input.disableExecuteApiEndpoint }),
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 !== undefined &&
425
- input.minimumCompressionSize !== null && { minimumCompressionSize: input.minimumCompressionSize }),
426
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
427
- ...(input.policy !== undefined && input.policy !== null && { policy: input.policy }),
428
- ...(input.tags !== undefined &&
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 !== undefined &&
462
- input.cacheClusterEnabled !== null && { cacheClusterEnabled: input.cacheClusterEnabled }),
463
- ...(input.cacheClusterSize !== undefined &&
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 !== undefined && input.deploymentId !== null && { deploymentId: input.deploymentId }),
470
- ...(input.description !== undefined && input.description !== null && { description: input.description }),
471
- ...(input.documentationVersion !== undefined &&
472
- input.documentationVersion !== null && { documentationVersion: input.documentationVersion }),
473
- ...(input.stageName !== undefined && input.stageName !== null && { stageName: input.stageName }),
474
- ...(input.tags !== undefined &&
475
- input.tags !== null && { tags: serializeAws_restJson1MapOfStringToString(input.tags, context) }),
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 !== undefined &&
501
- input.apiStages !== null && { apiStages: serializeAws_restJson1ListOfApiStage(input.apiStages, context) }),
502
- ...(input.description !== undefined && input.description !== null && { description: input.description }),
503
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
504
- ...(input.quota !== undefined &&
505
- input.quota !== null && { quota: serializeAws_restJson1QuotaSettings(input.quota, context) }),
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 !== undefined && input.keyId !== null && { keyId: input.keyId }),
541
- ...(input.keyType !== undefined && input.keyType !== null && { keyType: 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 !== undefined && input.description !== null && { description: input.description }),
563
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
564
- ...(input.tags !== undefined &&
565
- input.tags !== null && { tags: serializeAws_restJson1MapOfStringToString(input.tags, context) }),
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 !== undefined && input.description !== null && { description: input.description }),
1431
- ...(input.tags !== undefined &&
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 !== undefined &&
3099
- input.responseParameters !== null && {
3049
+ ...(input.responseParameters != null && {
3100
3050
  responseParameters: serializeAws_restJson1MapOfStringToString(input.responseParameters, context),
3101
3051
  }),
3102
- ...(input.responseTemplates !== undefined &&
3103
- input.responseTemplates !== null && {
3052
+ ...(input.responseTemplates != null && {
3104
3053
  responseTemplates: serializeAws_restJson1MapOfStringToString(input.responseTemplates, context),
3105
3054
  }),
3106
- ...(input.statusCode !== undefined && input.statusCode !== null && { statusCode: 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 !== undefined &&
3159
- input.cacheKeyParameters !== null && {
3107
+ ...(input.cacheKeyParameters != null && {
3160
3108
  cacheKeyParameters: serializeAws_restJson1ListOfString(input.cacheKeyParameters, context),
3161
3109
  }),
3162
- ...(input.cacheNamespace !== undefined &&
3163
- input.cacheNamespace !== null && { cacheNamespace: input.cacheNamespace }),
3164
- ...(input.connectionId !== undefined && input.connectionId !== null && { connectionId: input.connectionId }),
3165
- ...(input.connectionType !== undefined &&
3166
- input.connectionType !== null && { connectionType: input.connectionType }),
3167
- ...(input.contentHandling !== undefined &&
3168
- input.contentHandling !== null && { contentHandling: input.contentHandling }),
3169
- ...(input.credentials !== undefined && input.credentials !== null && { credentials: input.credentials }),
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 !== undefined &&
3179
- input.requestTemplates !== null && {
3120
+ ...(input.requestTemplates != null && {
3180
3121
  requestTemplates: serializeAws_restJson1MapOfStringToString(input.requestTemplates, context),
3181
3122
  }),
3182
- ...(input.timeoutInMillis !== undefined &&
3183
- input.timeoutInMillis !== null && { timeoutInMillis: input.timeoutInMillis }),
3184
- ...(input.tlsConfig !== undefined &&
3185
- input.tlsConfig !== null && { tlsConfig: serializeAws_restJson1TlsConfig(input.tlsConfig, context) }),
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 !== undefined &&
3250
- input.contentHandling !== null && { contentHandling: input.contentHandling }),
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 !== undefined &&
3256
- input.responseTemplates !== null && {
3192
+ ...(input.responseTemplates != null && {
3257
3193
  responseTemplates: serializeAws_restJson1MapOfStringToString(input.responseTemplates, context),
3258
3194
  }),
3259
- ...(input.selectionPattern !== undefined &&
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 !== undefined &&
3313
- input.apiKeyRequired !== null && { apiKeyRequired: input.apiKeyRequired }),
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 !== undefined &&
3319
- input.authorizationType !== null && { authorizationType: input.authorizationType }),
3320
- ...(input.authorizerId !== undefined && input.authorizerId !== null && { authorizerId: input.authorizerId }),
3321
- ...(input.operationName !== undefined && input.operationName !== null && { operationName: input.operationName }),
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 !== undefined &&
3327
- input.requestParameters !== null && {
3257
+ ...(input.requestParameters != null && {
3328
3258
  requestParameters: serializeAws_restJson1MapOfStringToBoolean(input.requestParameters, context),
3329
3259
  }),
3330
- ...(input.requestValidatorId !== undefined &&
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 !== undefined &&
3394
- input.responseModels !== null && {
3322
+ ...(input.responseModels != null && {
3395
3323
  responseModels: serializeAws_restJson1MapOfStringToString(input.responseModels, context),
3396
3324
  }),
3397
- ...(input.responseParameters !== undefined &&
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 !== undefined &&
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 !== undefined &&
3512
- input.additionalContext !== null && {
3437
+ ...(input.additionalContext != null && {
3513
3438
  additionalContext: serializeAws_restJson1MapOfStringToString(input.additionalContext, context),
3514
3439
  }),
3515
- ...(input.body !== undefined && input.body !== null && { body: input.body }),
3516
- ...(input.headers !== undefined &&
3517
- input.headers !== null && { headers: serializeAws_restJson1MapOfStringToString(input.headers, context) }),
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 !== undefined &&
3523
- input.pathWithQueryString !== null && { pathWithQueryString: input.pathWithQueryString }),
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 !== undefined && input.body !== null && { body: input.body }),
3580
- ...(input.clientCertificateId !== undefined &&
3581
- input.clientCertificateId !== null && { clientCertificateId: input.clientCertificateId }),
3582
- ...(input.headers !== undefined &&
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 !== undefined &&
3589
- input.pathWithQueryString !== null && { pathWithQueryString: input.pathWithQueryString }),
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 !== undefined &&
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 !== undefined &&
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 !== undefined &&
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 !== undefined &&
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 !== undefined &&
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 !== undefined &&
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 !== undefined &&
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 !== undefined &&
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 !== undefined &&
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 !== undefined &&
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 !== undefined &&
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 !== undefined &&
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 !== undefined &&
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 !== undefined &&
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 !== undefined &&
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 !== undefined &&
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 !== undefined &&
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 !== undefined &&
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 !== undefined &&
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 !== undefined &&
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 !== undefined &&
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 !== undefined &&
4582
- input.patchOperations !== null && {
4476
+ ...(input.patchOperations != null && {
4583
4477
  patchOperations: serializeAws_restJson1ListOfPatchOperation(input.patchOperations, context),
4584
4478
  }),
4585
4479
  });
@@ -12535,52 +12429,45 @@ const deserializeAws_restJson1UnauthorizedExceptionResponse = async (parsedOutpu
12535
12429
  };
12536
12430
  const serializeAws_restJson1ApiStage = (input, context) => {
12537
12431
  return {
12538
- ...(input.apiId !== undefined && input.apiId !== null && { apiId: input.apiId }),
12539
- ...(input.stage !== undefined && input.stage !== null && { stage: input.stage }),
12540
- ...(input.throttle !== undefined &&
12541
- input.throttle !== null && {
12432
+ ...(input.apiId != null && { apiId: input.apiId }),
12433
+ ...(input.stage != null && { stage: input.stage }),
12434
+ ...(input.throttle != null && {
12542
12435
  throttle: serializeAws_restJson1MapOfApiStageThrottleSettings(input.throttle, context),
12543
12436
  }),
12544
12437
  };
12545
12438
  };
12546
12439
  const serializeAws_restJson1CanarySettings = (input, context) => {
12547
12440
  return {
12548
- ...(input.deploymentId !== undefined && input.deploymentId !== null && { deploymentId: input.deploymentId }),
12549
- ...(input.percentTraffic !== undefined &&
12550
- input.percentTraffic !== null && { percentTraffic: (0, smithy_client_1.serializeFloat)(input.percentTraffic) }),
12551
- ...(input.stageVariableOverrides !== undefined &&
12552
- 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 && {
12553
12444
  stageVariableOverrides: serializeAws_restJson1MapOfStringToString(input.stageVariableOverrides, context),
12554
12445
  }),
12555
- ...(input.useStageCache !== undefined && input.useStageCache !== null && { useStageCache: input.useStageCache }),
12446
+ ...(input.useStageCache != null && { useStageCache: input.useStageCache }),
12556
12447
  };
12557
12448
  };
12558
12449
  const serializeAws_restJson1DeploymentCanarySettings = (input, context) => {
12559
12450
  return {
12560
- ...(input.percentTraffic !== undefined &&
12561
- input.percentTraffic !== null && { percentTraffic: (0, smithy_client_1.serializeFloat)(input.percentTraffic) }),
12562
- ...(input.stageVariableOverrides !== undefined &&
12563
- input.stageVariableOverrides !== null && {
12451
+ ...(input.percentTraffic != null && { percentTraffic: (0, smithy_client_1.serializeFloat)(input.percentTraffic) }),
12452
+ ...(input.stageVariableOverrides != null && {
12564
12453
  stageVariableOverrides: serializeAws_restJson1MapOfStringToString(input.stageVariableOverrides, context),
12565
12454
  }),
12566
- ...(input.useStageCache !== undefined && input.useStageCache !== null && { useStageCache: input.useStageCache }),
12455
+ ...(input.useStageCache != null && { useStageCache: input.useStageCache }),
12567
12456
  };
12568
12457
  };
12569
12458
  const serializeAws_restJson1DocumentationPartLocation = (input, context) => {
12570
12459
  return {
12571
- ...(input.method !== undefined && input.method !== null && { method: input.method }),
12572
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
12573
- ...(input.path !== undefined && input.path !== null && { path: input.path }),
12574
- ...(input.statusCode !== undefined && input.statusCode !== null && { statusCode: input.statusCode }),
12575
- ...(input.type !== undefined && input.type !== null && { type: 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 }),
12576
12465
  };
12577
12466
  };
12578
12467
  const serializeAws_restJson1EndpointConfiguration = (input, context) => {
12579
12468
  return {
12580
- ...(input.types !== undefined &&
12581
- input.types !== null && { types: serializeAws_restJson1ListOfEndpointType(input.types, context) }),
12582
- ...(input.vpcEndpointIds !== undefined &&
12583
- input.vpcEndpointIds !== null && {
12469
+ ...(input.types != null && { types: serializeAws_restJson1ListOfEndpointType(input.types, context) }),
12470
+ ...(input.vpcEndpointIds != null && {
12584
12471
  vpcEndpointIds: serializeAws_restJson1ListOfString(input.vpcEndpointIds, context),
12585
12472
  }),
12586
12473
  };
@@ -12691,42 +12578,40 @@ const serializeAws_restJson1MapOfStringToString = (input, context) => {
12691
12578
  };
12692
12579
  const serializeAws_restJson1MutualTlsAuthenticationInput = (input, context) => {
12693
12580
  return {
12694
- ...(input.truststoreUri !== undefined && input.truststoreUri !== null && { truststoreUri: input.truststoreUri }),
12695
- ...(input.truststoreVersion !== undefined &&
12696
- input.truststoreVersion !== null && { truststoreVersion: input.truststoreVersion }),
12581
+ ...(input.truststoreUri != null && { truststoreUri: input.truststoreUri }),
12582
+ ...(input.truststoreVersion != null && { truststoreVersion: input.truststoreVersion }),
12697
12583
  };
12698
12584
  };
12699
12585
  const serializeAws_restJson1PatchOperation = (input, context) => {
12700
12586
  return {
12701
- ...(input.from !== undefined && input.from !== null && { from: input.from }),
12702
- ...(input.op !== undefined && input.op !== null && { op: input.op }),
12703
- ...(input.path !== undefined && input.path !== null && { path: input.path }),
12704
- ...(input.value !== undefined && input.value !== null && { value: 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 }),
12705
12591
  };
12706
12592
  };
12707
12593
  const serializeAws_restJson1QuotaSettings = (input, context) => {
12708
12594
  return {
12709
- ...(input.limit !== undefined && input.limit !== null && { limit: input.limit }),
12710
- ...(input.offset !== undefined && input.offset !== null && { offset: input.offset }),
12711
- ...(input.period !== undefined && input.period !== null && { period: input.period }),
12595
+ ...(input.limit != null && { limit: input.limit }),
12596
+ ...(input.offset != null && { offset: input.offset }),
12597
+ ...(input.period != null && { period: input.period }),
12712
12598
  };
12713
12599
  };
12714
12600
  const serializeAws_restJson1StageKey = (input, context) => {
12715
12601
  return {
12716
- ...(input.restApiId !== undefined && input.restApiId !== null && { restApiId: input.restApiId }),
12717
- ...(input.stageName !== undefined && input.stageName !== null && { stageName: input.stageName }),
12602
+ ...(input.restApiId != null && { restApiId: input.restApiId }),
12603
+ ...(input.stageName != null && { stageName: input.stageName }),
12718
12604
  };
12719
12605
  };
12720
12606
  const serializeAws_restJson1ThrottleSettings = (input, context) => {
12721
12607
  return {
12722
- ...(input.burstLimit !== undefined && input.burstLimit !== null && { burstLimit: input.burstLimit }),
12723
- ...(input.rateLimit !== undefined && input.rateLimit !== null && { rateLimit: (0, smithy_client_1.serializeFloat)(input.rateLimit) }),
12608
+ ...(input.burstLimit != null && { burstLimit: input.burstLimit }),
12609
+ ...(input.rateLimit != null && { rateLimit: (0, smithy_client_1.serializeFloat)(input.rateLimit) }),
12724
12610
  };
12725
12611
  };
12726
12612
  const serializeAws_restJson1TlsConfig = (input, context) => {
12727
12613
  return {
12728
- ...(input.insecureSkipVerification !== undefined &&
12729
- input.insecureSkipVerification !== null && { insecureSkipVerification: input.insecureSkipVerification }),
12614
+ ...(input.insecureSkipVerification != null && { insecureSkipVerification: input.insecureSkipVerification }),
12730
12615
  };
12731
12616
  };
12732
12617
  const deserializeAws_restJson1AccessLogSettings = (output, context) => {
@@ -12737,23 +12622,19 @@ const deserializeAws_restJson1AccessLogSettings = (output, context) => {
12737
12622
  };
12738
12623
  const deserializeAws_restJson1ApiKey = (output, context) => {
12739
12624
  return {
12740
- createdDate: output.createdDate !== undefined && output.createdDate !== null
12625
+ createdDate: output.createdDate != null
12741
12626
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdDate)))
12742
12627
  : undefined,
12743
12628
  customerId: (0, smithy_client_1.expectString)(output.customerId),
12744
12629
  description: (0, smithy_client_1.expectString)(output.description),
12745
12630
  enabled: (0, smithy_client_1.expectBoolean)(output.enabled),
12746
12631
  id: (0, smithy_client_1.expectString)(output.id),
12747
- lastUpdatedDate: output.lastUpdatedDate !== undefined && output.lastUpdatedDate !== null
12632
+ lastUpdatedDate: output.lastUpdatedDate != null
12748
12633
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedDate)))
12749
12634
  : undefined,
12750
12635
  name: (0, smithy_client_1.expectString)(output.name),
12751
- stageKeys: output.stageKeys !== undefined && output.stageKeys !== null
12752
- ? deserializeAws_restJson1ListOfString(output.stageKeys, context)
12753
- : undefined,
12754
- tags: output.tags !== undefined && output.tags !== null
12755
- ? deserializeAws_restJson1MapOfStringToString(output.tags, context)
12756
- : undefined,
12636
+ stageKeys: output.stageKeys != null ? deserializeAws_restJson1ListOfString(output.stageKeys, context) : undefined,
12637
+ tags: output.tags != null ? deserializeAws_restJson1MapOfStringToString(output.tags, context) : undefined,
12757
12638
  value: (0, smithy_client_1.expectString)(output.value),
12758
12639
  };
12759
12640
  };
@@ -12761,7 +12642,7 @@ const deserializeAws_restJson1ApiStage = (output, context) => {
12761
12642
  return {
12762
12643
  apiId: (0, smithy_client_1.expectString)(output.apiId),
12763
12644
  stage: (0, smithy_client_1.expectString)(output.stage),
12764
- throttle: output.throttle !== undefined && output.throttle !== null
12645
+ throttle: output.throttle != null
12765
12646
  ? deserializeAws_restJson1MapOfApiStageThrottleSettings(output.throttle, context)
12766
12647
  : undefined,
12767
12648
  };
@@ -12776,9 +12657,7 @@ const deserializeAws_restJson1Authorizer = (output, context) => {
12776
12657
  identitySource: (0, smithy_client_1.expectString)(output.identitySource),
12777
12658
  identityValidationExpression: (0, smithy_client_1.expectString)(output.identityValidationExpression),
12778
12659
  name: (0, smithy_client_1.expectString)(output.name),
12779
- providerARNs: output.providerARNs !== undefined && output.providerARNs !== null
12780
- ? deserializeAws_restJson1ListOfARNs(output.providerARNs, context)
12781
- : undefined,
12660
+ providerARNs: output.providerARNs != null ? deserializeAws_restJson1ListOfARNs(output.providerARNs, context) : undefined,
12782
12661
  type: (0, smithy_client_1.expectString)(output.type),
12783
12662
  };
12784
12663
  };
@@ -12793,7 +12672,7 @@ const deserializeAws_restJson1CanarySettings = (output, context) => {
12793
12672
  return {
12794
12673
  deploymentId: (0, smithy_client_1.expectString)(output.deploymentId),
12795
12674
  percentTraffic: (0, smithy_client_1.limitedParseDouble)(output.percentTraffic),
12796
- stageVariableOverrides: output.stageVariableOverrides !== undefined && output.stageVariableOverrides !== null
12675
+ stageVariableOverrides: output.stageVariableOverrides != null
12797
12676
  ? deserializeAws_restJson1MapOfStringToString(output.stageVariableOverrides, context)
12798
12677
  : undefined,
12799
12678
  useStageCache: (0, smithy_client_1.expectBoolean)(output.useStageCache),
@@ -12802,25 +12681,23 @@ const deserializeAws_restJson1CanarySettings = (output, context) => {
12802
12681
  const deserializeAws_restJson1ClientCertificate = (output, context) => {
12803
12682
  return {
12804
12683
  clientCertificateId: (0, smithy_client_1.expectString)(output.clientCertificateId),
12805
- createdDate: output.createdDate !== undefined && output.createdDate !== null
12684
+ createdDate: output.createdDate != null
12806
12685
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdDate)))
12807
12686
  : undefined,
12808
12687
  description: (0, smithy_client_1.expectString)(output.description),
12809
- expirationDate: output.expirationDate !== undefined && output.expirationDate !== null
12688
+ expirationDate: output.expirationDate != null
12810
12689
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.expirationDate)))
12811
12690
  : undefined,
12812
12691
  pemEncodedCertificate: (0, smithy_client_1.expectString)(output.pemEncodedCertificate),
12813
- tags: output.tags !== undefined && output.tags !== null
12814
- ? deserializeAws_restJson1MapOfStringToString(output.tags, context)
12815
- : undefined,
12692
+ tags: output.tags != null ? deserializeAws_restJson1MapOfStringToString(output.tags, context) : undefined,
12816
12693
  };
12817
12694
  };
12818
12695
  const deserializeAws_restJson1Deployment = (output, context) => {
12819
12696
  return {
12820
- apiSummary: output.apiSummary !== undefined && output.apiSummary !== null
12697
+ apiSummary: output.apiSummary != null
12821
12698
  ? deserializeAws_restJson1PathToMapOfMethodSnapshot(output.apiSummary, context)
12822
12699
  : undefined,
12823
- createdDate: output.createdDate !== undefined && output.createdDate !== null
12700
+ createdDate: output.createdDate != null
12824
12701
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdDate)))
12825
12702
  : undefined,
12826
12703
  description: (0, smithy_client_1.expectString)(output.description),
@@ -12830,9 +12707,7 @@ const deserializeAws_restJson1Deployment = (output, context) => {
12830
12707
  const deserializeAws_restJson1DocumentationPart = (output, context) => {
12831
12708
  return {
12832
12709
  id: (0, smithy_client_1.expectString)(output.id),
12833
- location: output.location !== undefined && output.location !== null
12834
- ? deserializeAws_restJson1DocumentationPartLocation(output.location, context)
12835
- : undefined,
12710
+ location: output.location != null ? deserializeAws_restJson1DocumentationPartLocation(output.location, context) : undefined,
12836
12711
  properties: (0, smithy_client_1.expectString)(output.properties),
12837
12712
  };
12838
12713
  };
@@ -12847,7 +12722,7 @@ const deserializeAws_restJson1DocumentationPartLocation = (output, context) => {
12847
12722
  };
12848
12723
  const deserializeAws_restJson1DocumentationVersion = (output, context) => {
12849
12724
  return {
12850
- createdDate: output.createdDate !== undefined && output.createdDate !== null
12725
+ createdDate: output.createdDate != null
12851
12726
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdDate)))
12852
12727
  : undefined,
12853
12728
  description: (0, smithy_client_1.expectString)(output.description),
@@ -12858,7 +12733,7 @@ const deserializeAws_restJson1DomainName = (output, context) => {
12858
12733
  return {
12859
12734
  certificateArn: (0, smithy_client_1.expectString)(output.certificateArn),
12860
12735
  certificateName: (0, smithy_client_1.expectString)(output.certificateName),
12861
- certificateUploadDate: output.certificateUploadDate !== undefined && output.certificateUploadDate !== null
12736
+ certificateUploadDate: output.certificateUploadDate != null
12862
12737
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.certificateUploadDate)))
12863
12738
  : undefined,
12864
12739
  distributionDomainName: (0, smithy_client_1.expectString)(output.distributionDomainName),
@@ -12866,10 +12741,10 @@ const deserializeAws_restJson1DomainName = (output, context) => {
12866
12741
  domainName: (0, smithy_client_1.expectString)(output.domainName),
12867
12742
  domainNameStatus: (0, smithy_client_1.expectString)(output.domainNameStatus),
12868
12743
  domainNameStatusMessage: (0, smithy_client_1.expectString)(output.domainNameStatusMessage),
12869
- endpointConfiguration: output.endpointConfiguration !== undefined && output.endpointConfiguration !== null
12744
+ endpointConfiguration: output.endpointConfiguration != null
12870
12745
  ? deserializeAws_restJson1EndpointConfiguration(output.endpointConfiguration, context)
12871
12746
  : undefined,
12872
- mutualTlsAuthentication: output.mutualTlsAuthentication !== undefined && output.mutualTlsAuthentication !== null
12747
+ mutualTlsAuthentication: output.mutualTlsAuthentication != null
12873
12748
  ? deserializeAws_restJson1MutualTlsAuthentication(output.mutualTlsAuthentication, context)
12874
12749
  : undefined,
12875
12750
  ownershipVerificationCertificateArn: (0, smithy_client_1.expectString)(output.ownershipVerificationCertificateArn),
@@ -12878,28 +12753,22 @@ const deserializeAws_restJson1DomainName = (output, context) => {
12878
12753
  regionalDomainName: (0, smithy_client_1.expectString)(output.regionalDomainName),
12879
12754
  regionalHostedZoneId: (0, smithy_client_1.expectString)(output.regionalHostedZoneId),
12880
12755
  securityPolicy: (0, smithy_client_1.expectString)(output.securityPolicy),
12881
- tags: output.tags !== undefined && output.tags !== null
12882
- ? deserializeAws_restJson1MapOfStringToString(output.tags, context)
12883
- : undefined,
12756
+ tags: output.tags != null ? deserializeAws_restJson1MapOfStringToString(output.tags, context) : undefined,
12884
12757
  };
12885
12758
  };
12886
12759
  const deserializeAws_restJson1EndpointConfiguration = (output, context) => {
12887
12760
  return {
12888
- types: output.types !== undefined && output.types !== null
12889
- ? deserializeAws_restJson1ListOfEndpointType(output.types, context)
12890
- : undefined,
12891
- vpcEndpointIds: output.vpcEndpointIds !== undefined && output.vpcEndpointIds !== null
12892
- ? deserializeAws_restJson1ListOfString(output.vpcEndpointIds, context)
12893
- : undefined,
12761
+ types: output.types != null ? deserializeAws_restJson1ListOfEndpointType(output.types, context) : undefined,
12762
+ vpcEndpointIds: output.vpcEndpointIds != null ? deserializeAws_restJson1ListOfString(output.vpcEndpointIds, context) : undefined,
12894
12763
  };
12895
12764
  };
12896
12765
  const deserializeAws_restJson1GatewayResponse = (output, context) => {
12897
12766
  return {
12898
12767
  defaultResponse: (0, smithy_client_1.expectBoolean)(output.defaultResponse),
12899
- responseParameters: output.responseParameters !== undefined && output.responseParameters !== null
12768
+ responseParameters: output.responseParameters != null
12900
12769
  ? deserializeAws_restJson1MapOfStringToString(output.responseParameters, context)
12901
12770
  : undefined,
12902
- responseTemplates: output.responseTemplates !== undefined && output.responseTemplates !== null
12771
+ responseTemplates: output.responseTemplates != null
12903
12772
  ? deserializeAws_restJson1MapOfStringToString(output.responseTemplates, context)
12904
12773
  : undefined,
12905
12774
  responseType: (0, smithy_client_1.expectString)(output.responseType),
@@ -12908,7 +12777,7 @@ const deserializeAws_restJson1GatewayResponse = (output, context) => {
12908
12777
  };
12909
12778
  const deserializeAws_restJson1Integration = (output, context) => {
12910
12779
  return {
12911
- cacheKeyParameters: output.cacheKeyParameters !== undefined && output.cacheKeyParameters !== null
12780
+ cacheKeyParameters: output.cacheKeyParameters != null
12912
12781
  ? deserializeAws_restJson1ListOfString(output.cacheKeyParameters, context)
12913
12782
  : undefined,
12914
12783
  cacheNamespace: (0, smithy_client_1.expectString)(output.cacheNamespace),
@@ -12917,20 +12786,18 @@ const deserializeAws_restJson1Integration = (output, context) => {
12917
12786
  contentHandling: (0, smithy_client_1.expectString)(output.contentHandling),
12918
12787
  credentials: (0, smithy_client_1.expectString)(output.credentials),
12919
12788
  httpMethod: (0, smithy_client_1.expectString)(output.httpMethod),
12920
- integrationResponses: output.integrationResponses !== undefined && output.integrationResponses !== null
12789
+ integrationResponses: output.integrationResponses != null
12921
12790
  ? deserializeAws_restJson1MapOfIntegrationResponse(output.integrationResponses, context)
12922
12791
  : undefined,
12923
12792
  passthroughBehavior: (0, smithy_client_1.expectString)(output.passthroughBehavior),
12924
- requestParameters: output.requestParameters !== undefined && output.requestParameters !== null
12793
+ requestParameters: output.requestParameters != null
12925
12794
  ? deserializeAws_restJson1MapOfStringToString(output.requestParameters, context)
12926
12795
  : undefined,
12927
- requestTemplates: output.requestTemplates !== undefined && output.requestTemplates !== null
12796
+ requestTemplates: output.requestTemplates != null
12928
12797
  ? deserializeAws_restJson1MapOfStringToString(output.requestTemplates, context)
12929
12798
  : undefined,
12930
12799
  timeoutInMillis: (0, smithy_client_1.expectInt32)(output.timeoutInMillis),
12931
- tlsConfig: output.tlsConfig !== undefined && output.tlsConfig !== null
12932
- ? deserializeAws_restJson1TlsConfig(output.tlsConfig, context)
12933
- : undefined,
12800
+ tlsConfig: output.tlsConfig != null ? deserializeAws_restJson1TlsConfig(output.tlsConfig, context) : undefined,
12934
12801
  type: (0, smithy_client_1.expectString)(output.type),
12935
12802
  uri: (0, smithy_client_1.expectString)(output.uri),
12936
12803
  };
@@ -12938,10 +12805,10 @@ const deserializeAws_restJson1Integration = (output, context) => {
12938
12805
  const deserializeAws_restJson1IntegrationResponse = (output, context) => {
12939
12806
  return {
12940
12807
  contentHandling: (0, smithy_client_1.expectString)(output.contentHandling),
12941
- responseParameters: output.responseParameters !== undefined && output.responseParameters !== null
12808
+ responseParameters: output.responseParameters != null
12942
12809
  ? deserializeAws_restJson1MapOfStringToString(output.responseParameters, context)
12943
12810
  : undefined,
12944
- responseTemplates: output.responseTemplates !== undefined && output.responseTemplates !== null
12811
+ responseTemplates: output.responseTemplates != null
12945
12812
  ? deserializeAws_restJson1MapOfStringToString(output.responseTemplates, context)
12946
12813
  : undefined,
12947
12814
  selectionPattern: (0, smithy_client_1.expectString)(output.selectionPattern),
@@ -13336,23 +13203,23 @@ const deserializeAws_restJson1MapOfStringToString = (output, context) => {
13336
13203
  const deserializeAws_restJson1Method = (output, context) => {
13337
13204
  return {
13338
13205
  apiKeyRequired: (0, smithy_client_1.expectBoolean)(output.apiKeyRequired),
13339
- authorizationScopes: output.authorizationScopes !== undefined && output.authorizationScopes !== null
13206
+ authorizationScopes: output.authorizationScopes != null
13340
13207
  ? deserializeAws_restJson1ListOfString(output.authorizationScopes, context)
13341
13208
  : undefined,
13342
13209
  authorizationType: (0, smithy_client_1.expectString)(output.authorizationType),
13343
13210
  authorizerId: (0, smithy_client_1.expectString)(output.authorizerId),
13344
13211
  httpMethod: (0, smithy_client_1.expectString)(output.httpMethod),
13345
- methodIntegration: output.methodIntegration !== undefined && output.methodIntegration !== null
13212
+ methodIntegration: output.methodIntegration != null
13346
13213
  ? deserializeAws_restJson1Integration(output.methodIntegration, context)
13347
13214
  : undefined,
13348
- methodResponses: output.methodResponses !== undefined && output.methodResponses !== null
13215
+ methodResponses: output.methodResponses != null
13349
13216
  ? deserializeAws_restJson1MapOfMethodResponse(output.methodResponses, context)
13350
13217
  : undefined,
13351
13218
  operationName: (0, smithy_client_1.expectString)(output.operationName),
13352
- requestModels: output.requestModels !== undefined && output.requestModels !== null
13219
+ requestModels: output.requestModels != null
13353
13220
  ? deserializeAws_restJson1MapOfStringToString(output.requestModels, context)
13354
13221
  : undefined,
13355
- requestParameters: output.requestParameters !== undefined && output.requestParameters !== null
13222
+ requestParameters: output.requestParameters != null
13356
13223
  ? deserializeAws_restJson1MapOfStringToBoolean(output.requestParameters, context)
13357
13224
  : undefined,
13358
13225
  requestValidatorId: (0, smithy_client_1.expectString)(output.requestValidatorId),
@@ -13360,10 +13227,10 @@ const deserializeAws_restJson1Method = (output, context) => {
13360
13227
  };
13361
13228
  const deserializeAws_restJson1MethodResponse = (output, context) => {
13362
13229
  return {
13363
- responseModels: output.responseModels !== undefined && output.responseModels !== null
13230
+ responseModels: output.responseModels != null
13364
13231
  ? deserializeAws_restJson1MapOfStringToString(output.responseModels, context)
13365
13232
  : undefined,
13366
- responseParameters: output.responseParameters !== undefined && output.responseParameters !== null
13233
+ responseParameters: output.responseParameters != null
13367
13234
  ? deserializeAws_restJson1MapOfStringToBoolean(output.responseParameters, context)
13368
13235
  : undefined,
13369
13236
  statusCode: (0, smithy_client_1.expectString)(output.statusCode),
@@ -13402,7 +13269,7 @@ const deserializeAws_restJson1MutualTlsAuthentication = (output, context) => {
13402
13269
  return {
13403
13270
  truststoreUri: (0, smithy_client_1.expectString)(output.truststoreUri),
13404
13271
  truststoreVersion: (0, smithy_client_1.expectString)(output.truststoreVersion),
13405
- truststoreWarnings: output.truststoreWarnings !== undefined && output.truststoreWarnings !== null
13272
+ truststoreWarnings: output.truststoreWarnings != null
13406
13273
  ? deserializeAws_restJson1ListOfString(output.truststoreWarnings, context)
13407
13274
  : undefined,
13408
13275
  };
@@ -13439,36 +13306,30 @@ const deserializeAws_restJson1Resource = (output, context) => {
13439
13306
  parentId: (0, smithy_client_1.expectString)(output.parentId),
13440
13307
  path: (0, smithy_client_1.expectString)(output.path),
13441
13308
  pathPart: (0, smithy_client_1.expectString)(output.pathPart),
13442
- resourceMethods: output.resourceMethods !== undefined && output.resourceMethods !== null
13443
- ? deserializeAws_restJson1MapOfMethod(output.resourceMethods, context)
13444
- : undefined,
13309
+ resourceMethods: output.resourceMethods != null ? deserializeAws_restJson1MapOfMethod(output.resourceMethods, context) : undefined,
13445
13310
  };
13446
13311
  };
13447
13312
  const deserializeAws_restJson1RestApi = (output, context) => {
13448
13313
  return {
13449
13314
  apiKeySource: (0, smithy_client_1.expectString)(output.apiKeySource),
13450
- binaryMediaTypes: output.binaryMediaTypes !== undefined && output.binaryMediaTypes !== null
13315
+ binaryMediaTypes: output.binaryMediaTypes != null
13451
13316
  ? deserializeAws_restJson1ListOfString(output.binaryMediaTypes, context)
13452
13317
  : undefined,
13453
- createdDate: output.createdDate !== undefined && output.createdDate !== null
13318
+ createdDate: output.createdDate != null
13454
13319
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdDate)))
13455
13320
  : undefined,
13456
13321
  description: (0, smithy_client_1.expectString)(output.description),
13457
13322
  disableExecuteApiEndpoint: (0, smithy_client_1.expectBoolean)(output.disableExecuteApiEndpoint),
13458
- endpointConfiguration: output.endpointConfiguration !== undefined && output.endpointConfiguration !== null
13323
+ endpointConfiguration: output.endpointConfiguration != null
13459
13324
  ? deserializeAws_restJson1EndpointConfiguration(output.endpointConfiguration, context)
13460
13325
  : undefined,
13461
13326
  id: (0, smithy_client_1.expectString)(output.id),
13462
13327
  minimumCompressionSize: (0, smithy_client_1.expectInt32)(output.minimumCompressionSize),
13463
13328
  name: (0, smithy_client_1.expectString)(output.name),
13464
13329
  policy: (0, smithy_client_1.expectString)(output.policy),
13465
- tags: output.tags !== undefined && output.tags !== null
13466
- ? deserializeAws_restJson1MapOfStringToString(output.tags, context)
13467
- : undefined,
13330
+ tags: output.tags != null ? deserializeAws_restJson1MapOfStringToString(output.tags, context) : undefined,
13468
13331
  version: (0, smithy_client_1.expectString)(output.version),
13469
- warnings: output.warnings !== undefined && output.warnings !== null
13470
- ? deserializeAws_restJson1ListOfString(output.warnings, context)
13471
- : undefined,
13332
+ warnings: output.warnings != null ? deserializeAws_restJson1ListOfString(output.warnings, context) : undefined,
13472
13333
  };
13473
13334
  };
13474
13335
  const deserializeAws_restJson1SdkConfigurationProperty = (output, context) => {
@@ -13482,7 +13343,7 @@ const deserializeAws_restJson1SdkConfigurationProperty = (output, context) => {
13482
13343
  };
13483
13344
  const deserializeAws_restJson1SdkType = (output, context) => {
13484
13345
  return {
13485
- configurationProperties: output.configurationProperties !== undefined && output.configurationProperties !== null
13346
+ configurationProperties: output.configurationProperties != null
13486
13347
  ? deserializeAws_restJson1ListOfSdkConfigurationProperty(output.configurationProperties, context)
13487
13348
  : undefined,
13488
13349
  description: (0, smithy_client_1.expectString)(output.description),
@@ -13492,36 +13353,32 @@ const deserializeAws_restJson1SdkType = (output, context) => {
13492
13353
  };
13493
13354
  const deserializeAws_restJson1Stage = (output, context) => {
13494
13355
  return {
13495
- accessLogSettings: output.accessLogSettings !== undefined && output.accessLogSettings !== null
13356
+ accessLogSettings: output.accessLogSettings != null
13496
13357
  ? deserializeAws_restJson1AccessLogSettings(output.accessLogSettings, context)
13497
13358
  : undefined,
13498
13359
  cacheClusterEnabled: (0, smithy_client_1.expectBoolean)(output.cacheClusterEnabled),
13499
13360
  cacheClusterSize: (0, smithy_client_1.expectString)(output.cacheClusterSize),
13500
13361
  cacheClusterStatus: (0, smithy_client_1.expectString)(output.cacheClusterStatus),
13501
- canarySettings: output.canarySettings !== undefined && output.canarySettings !== null
13362
+ canarySettings: output.canarySettings != null
13502
13363
  ? deserializeAws_restJson1CanarySettings(output.canarySettings, context)
13503
13364
  : undefined,
13504
13365
  clientCertificateId: (0, smithy_client_1.expectString)(output.clientCertificateId),
13505
- createdDate: output.createdDate !== undefined && output.createdDate !== null
13366
+ createdDate: output.createdDate != null
13506
13367
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdDate)))
13507
13368
  : undefined,
13508
13369
  deploymentId: (0, smithy_client_1.expectString)(output.deploymentId),
13509
13370
  description: (0, smithy_client_1.expectString)(output.description),
13510
13371
  documentationVersion: (0, smithy_client_1.expectString)(output.documentationVersion),
13511
- lastUpdatedDate: output.lastUpdatedDate !== undefined && output.lastUpdatedDate !== null
13372
+ lastUpdatedDate: output.lastUpdatedDate != null
13512
13373
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedDate)))
13513
13374
  : undefined,
13514
- methodSettings: output.methodSettings !== undefined && output.methodSettings !== null
13375
+ methodSettings: output.methodSettings != null
13515
13376
  ? deserializeAws_restJson1MapOfMethodSettings(output.methodSettings, context)
13516
13377
  : undefined,
13517
13378
  stageName: (0, smithy_client_1.expectString)(output.stageName),
13518
- tags: output.tags !== undefined && output.tags !== null
13519
- ? deserializeAws_restJson1MapOfStringToString(output.tags, context)
13520
- : undefined,
13379
+ tags: output.tags != null ? deserializeAws_restJson1MapOfStringToString(output.tags, context) : undefined,
13521
13380
  tracingEnabled: (0, smithy_client_1.expectBoolean)(output.tracingEnabled),
13522
- variables: output.variables !== undefined && output.variables !== null
13523
- ? deserializeAws_restJson1MapOfStringToString(output.variables, context)
13524
- : undefined,
13381
+ variables: output.variables != null ? deserializeAws_restJson1MapOfStringToString(output.variables, context) : undefined,
13525
13382
  webAclArn: (0, smithy_client_1.expectString)(output.webAclArn),
13526
13383
  };
13527
13384
  };
@@ -13538,22 +13395,14 @@ const deserializeAws_restJson1TlsConfig = (output, context) => {
13538
13395
  };
13539
13396
  const deserializeAws_restJson1UsagePlan = (output, context) => {
13540
13397
  return {
13541
- apiStages: output.apiStages !== undefined && output.apiStages !== null
13542
- ? deserializeAws_restJson1ListOfApiStage(output.apiStages, context)
13543
- : undefined,
13398
+ apiStages: output.apiStages != null ? deserializeAws_restJson1ListOfApiStage(output.apiStages, context) : undefined,
13544
13399
  description: (0, smithy_client_1.expectString)(output.description),
13545
13400
  id: (0, smithy_client_1.expectString)(output.id),
13546
13401
  name: (0, smithy_client_1.expectString)(output.name),
13547
13402
  productCode: (0, smithy_client_1.expectString)(output.productCode),
13548
- quota: output.quota !== undefined && output.quota !== null
13549
- ? deserializeAws_restJson1QuotaSettings(output.quota, context)
13550
- : undefined,
13551
- tags: output.tags !== undefined && output.tags !== null
13552
- ? deserializeAws_restJson1MapOfStringToString(output.tags, context)
13553
- : undefined,
13554
- throttle: output.throttle !== undefined && output.throttle !== null
13555
- ? deserializeAws_restJson1ThrottleSettings(output.throttle, context)
13556
- : 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,
13557
13406
  };
13558
13407
  };
13559
13408
  const deserializeAws_restJson1UsagePlanKey = (output, context) => {
@@ -13571,12 +13420,8 @@ const deserializeAws_restJson1VpcLink = (output, context) => {
13571
13420
  name: (0, smithy_client_1.expectString)(output.name),
13572
13421
  status: (0, smithy_client_1.expectString)(output.status),
13573
13422
  statusMessage: (0, smithy_client_1.expectString)(output.statusMessage),
13574
- tags: output.tags !== undefined && output.tags !== null
13575
- ? deserializeAws_restJson1MapOfStringToString(output.tags, context)
13576
- : undefined,
13577
- targetArns: output.targetArns !== undefined && output.targetArns !== null
13578
- ? deserializeAws_restJson1ListOfString(output.targetArns, context)
13579
- : undefined,
13423
+ tags: output.tags != null ? deserializeAws_restJson1MapOfStringToString(output.tags, context) : undefined,
13424
+ targetArns: output.targetArns != null ? deserializeAws_restJson1ListOfString(output.targetArns, context) : undefined,
13580
13425
  };
13581
13426
  };
13582
13427
  const deserializeMetadata = (output) => {
@@ -13610,6 +13455,9 @@ const loadRestJsonErrorCode = (output, data) => {
13610
13455
  const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
13611
13456
  const sanitizeErrorCode = (rawValue) => {
13612
13457
  let cleanValue = rawValue;
13458
+ if (typeof cleanValue === "number") {
13459
+ cleanValue = cleanValue.toString();
13460
+ }
13613
13461
  if (cleanValue.indexOf(":") >= 0) {
13614
13462
  cleanValue = cleanValue.split(":")[0];
13615
13463
  }