@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.
@@ -14,10 +14,7 @@ export var serializeAws_restJson1CreateApiKeyCommand = function (input, context)
14
14
  "content-type": "application/json",
15
15
  };
16
16
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/apikeys";
17
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.customerId !== undefined && input.customerId !== null && { customerId: input.customerId })), (input.description !== undefined && input.description !== null && { description: input.description })), (input.enabled !== undefined && input.enabled !== null && { enabled: input.enabled })), (input.generateDistinctId !== undefined &&
18
- input.generateDistinctId !== null && { generateDistinctId: input.generateDistinctId })), (input.name !== undefined && input.name !== null && { name: input.name })), (input.stageKeys !== undefined &&
19
- input.stageKeys !== null && { stageKeys: serializeAws_restJson1ListOfStageKeys(input.stageKeys, context) })), (input.tags !== undefined &&
20
- input.tags !== null && { tags: serializeAws_restJson1MapOfStringToString(input.tags, context) })), (input.value !== undefined && input.value !== null && { value: input.value })));
17
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.customerId != null && { customerId: input.customerId })), (input.description != null && { description: input.description })), (input.enabled != null && { enabled: input.enabled })), (input.generateDistinctId != null && { generateDistinctId: input.generateDistinctId })), (input.name != null && { name: input.name })), (input.stageKeys != null && { stageKeys: serializeAws_restJson1ListOfStageKeys(input.stageKeys, context) })), (input.tags != null && { tags: serializeAws_restJson1MapOfStringToString(input.tags, context) })), (input.value != null && { value: input.value })));
21
18
  return [2, new __HttpRequest({
22
19
  protocol: protocol,
23
20
  hostname: hostname,
@@ -51,16 +48,11 @@ export var serializeAws_restJson1CreateAuthorizerCommand = function (input, cont
51
48
  else {
52
49
  throw new Error("No value provided for input HTTP label: restApiId.");
53
50
  }
54
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.authType !== undefined && input.authType !== null && { authType: input.authType })), (input.authorizerCredentials !== undefined &&
55
- input.authorizerCredentials !== null && { authorizerCredentials: input.authorizerCredentials })), (input.authorizerResultTtlInSeconds !== undefined &&
56
- input.authorizerResultTtlInSeconds !== null && {
51
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.authType != null && { authType: input.authType })), (input.authorizerCredentials != null && { authorizerCredentials: input.authorizerCredentials })), (input.authorizerResultTtlInSeconds != null && {
57
52
  authorizerResultTtlInSeconds: input.authorizerResultTtlInSeconds,
58
- })), (input.authorizerUri !== undefined && input.authorizerUri !== null && { authorizerUri: input.authorizerUri })), (input.identitySource !== undefined &&
59
- input.identitySource !== null && { identitySource: input.identitySource })), (input.identityValidationExpression !== undefined &&
60
- input.identityValidationExpression !== null && {
53
+ })), (input.authorizerUri != null && { authorizerUri: input.authorizerUri })), (input.identitySource != null && { identitySource: input.identitySource })), (input.identityValidationExpression != null && {
61
54
  identityValidationExpression: input.identityValidationExpression,
62
- })), (input.name !== undefined && input.name !== null && { name: input.name })), (input.providerARNs !== undefined &&
63
- input.providerARNs !== null && { providerARNs: serializeAws_restJson1ListOfARNs(input.providerARNs, context) })), (input.type !== undefined && input.type !== null && { type: input.type })));
55
+ })), (input.name != null && { name: input.name })), (input.providerARNs != null && { providerARNs: serializeAws_restJson1ListOfARNs(input.providerARNs, context) })), (input.type != null && { type: input.type })));
64
56
  return [2, new __HttpRequest({
65
57
  protocol: protocol,
66
58
  hostname: hostname,
@@ -95,7 +87,7 @@ export var serializeAws_restJson1CreateBasePathMappingCommand = function (input,
95
87
  else {
96
88
  throw new Error("No value provided for input HTTP label: domainName.");
97
89
  }
98
- body = JSON.stringify(__assign(__assign(__assign({}, (input.basePath !== undefined && input.basePath !== null && { basePath: input.basePath })), (input.restApiId !== undefined && input.restApiId !== null && { restApiId: input.restApiId })), (input.stage !== undefined && input.stage !== null && { stage: input.stage })));
90
+ body = JSON.stringify(__assign(__assign(__assign({}, (input.basePath != null && { basePath: input.basePath })), (input.restApiId != null && { restApiId: input.restApiId })), (input.stage != null && { stage: input.stage })));
99
91
  return [2, new __HttpRequest({
100
92
  protocol: protocol,
101
93
  hostname: hostname,
@@ -129,15 +121,9 @@ export var serializeAws_restJson1CreateDeploymentCommand = function (input, cont
129
121
  else {
130
122
  throw new Error("No value provided for input HTTP label: restApiId.");
131
123
  }
132
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.cacheClusterEnabled !== undefined &&
133
- input.cacheClusterEnabled !== null && { cacheClusterEnabled: input.cacheClusterEnabled })), (input.cacheClusterSize !== undefined &&
134
- input.cacheClusterSize !== null && { cacheClusterSize: input.cacheClusterSize })), (input.canarySettings !== undefined &&
135
- input.canarySettings !== null && {
124
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.cacheClusterEnabled != null && { cacheClusterEnabled: input.cacheClusterEnabled })), (input.cacheClusterSize != null && { cacheClusterSize: input.cacheClusterSize })), (input.canarySettings != null && {
136
125
  canarySettings: serializeAws_restJson1DeploymentCanarySettings(input.canarySettings, context),
137
- })), (input.description !== undefined && input.description !== null && { description: input.description })), (input.stageDescription !== undefined &&
138
- input.stageDescription !== null && { stageDescription: input.stageDescription })), (input.stageName !== undefined && input.stageName !== null && { stageName: input.stageName })), (input.tracingEnabled !== undefined &&
139
- input.tracingEnabled !== null && { tracingEnabled: input.tracingEnabled })), (input.variables !== undefined &&
140
- input.variables !== null && { variables: serializeAws_restJson1MapOfStringToString(input.variables, context) })));
126
+ })), (input.description != null && { description: input.description })), (input.stageDescription != null && { stageDescription: input.stageDescription })), (input.stageName != null && { stageName: input.stageName })), (input.tracingEnabled != null && { tracingEnabled: input.tracingEnabled })), (input.variables != null && { variables: serializeAws_restJson1MapOfStringToString(input.variables, context) })));
141
127
  return [2, new __HttpRequest({
142
128
  protocol: protocol,
143
129
  hostname: hostname,
@@ -171,10 +157,9 @@ export var serializeAws_restJson1CreateDocumentationPartCommand = function (inpu
171
157
  else {
172
158
  throw new Error("No value provided for input HTTP label: restApiId.");
173
159
  }
174
- body = JSON.stringify(__assign(__assign({}, (input.location !== undefined &&
175
- input.location !== null && {
160
+ body = JSON.stringify(__assign(__assign({}, (input.location != null && {
176
161
  location: serializeAws_restJson1DocumentationPartLocation(input.location, context),
177
- })), (input.properties !== undefined && input.properties !== null && { properties: input.properties })));
162
+ })), (input.properties != null && { properties: input.properties })));
178
163
  return [2, new __HttpRequest({
179
164
  protocol: protocol,
180
165
  hostname: hostname,
@@ -209,8 +194,7 @@ export var serializeAws_restJson1CreateDocumentationVersionCommand = function (i
209
194
  else {
210
195
  throw new Error("No value provided for input HTTP label: restApiId.");
211
196
  }
212
- body = JSON.stringify(__assign(__assign(__assign({}, (input.description !== undefined && input.description !== null && { description: input.description })), (input.documentationVersion !== undefined &&
213
- input.documentationVersion !== null && { documentationVersion: input.documentationVersion })), (input.stageName !== undefined && input.stageName !== null && { stageName: input.stageName })));
197
+ body = JSON.stringify(__assign(__assign(__assign({}, (input.description != null && { description: input.description })), (input.documentationVersion != null && { documentationVersion: input.documentationVersion })), (input.stageName != null && { stageName: input.stageName })));
214
198
  return [2, new __HttpRequest({
215
199
  protocol: protocol,
216
200
  hostname: hostname,
@@ -234,25 +218,13 @@ export var serializeAws_restJson1CreateDomainNameCommand = function (input, cont
234
218
  "content-type": "application/json",
235
219
  };
236
220
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/domainnames";
237
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.certificateArn !== undefined &&
238
- input.certificateArn !== null && { certificateArn: input.certificateArn })), (input.certificateBody !== undefined &&
239
- input.certificateBody !== null && { certificateBody: input.certificateBody })), (input.certificateChain !== undefined &&
240
- input.certificateChain !== null && { certificateChain: input.certificateChain })), (input.certificateName !== undefined &&
241
- input.certificateName !== null && { certificateName: input.certificateName })), (input.certificatePrivateKey !== undefined &&
242
- input.certificatePrivateKey !== null && { certificatePrivateKey: input.certificatePrivateKey })), (input.domainName !== undefined && input.domainName !== null && { domainName: input.domainName })), (input.endpointConfiguration !== undefined &&
243
- input.endpointConfiguration !== null && {
221
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.certificateArn != null && { certificateArn: input.certificateArn })), (input.certificateBody != null && { certificateBody: input.certificateBody })), (input.certificateChain != null && { certificateChain: input.certificateChain })), (input.certificateName != null && { certificateName: input.certificateName })), (input.certificatePrivateKey != null && { certificatePrivateKey: input.certificatePrivateKey })), (input.domainName != null && { domainName: input.domainName })), (input.endpointConfiguration != null && {
244
222
  endpointConfiguration: serializeAws_restJson1EndpointConfiguration(input.endpointConfiguration, context),
245
- })), (input.mutualTlsAuthentication !== undefined &&
246
- input.mutualTlsAuthentication !== null && {
223
+ })), (input.mutualTlsAuthentication != null && {
247
224
  mutualTlsAuthentication: serializeAws_restJson1MutualTlsAuthenticationInput(input.mutualTlsAuthentication, context),
248
- })), (input.ownershipVerificationCertificateArn !== undefined &&
249
- input.ownershipVerificationCertificateArn !== null && {
225
+ })), (input.ownershipVerificationCertificateArn != null && {
250
226
  ownershipVerificationCertificateArn: input.ownershipVerificationCertificateArn,
251
- })), (input.regionalCertificateArn !== undefined &&
252
- input.regionalCertificateArn !== null && { regionalCertificateArn: input.regionalCertificateArn })), (input.regionalCertificateName !== undefined &&
253
- input.regionalCertificateName !== null && { regionalCertificateName: input.regionalCertificateName })), (input.securityPolicy !== undefined &&
254
- input.securityPolicy !== null && { securityPolicy: input.securityPolicy })), (input.tags !== undefined &&
255
- input.tags !== null && { tags: serializeAws_restJson1MapOfStringToString(input.tags, context) })));
227
+ })), (input.regionalCertificateArn != null && { regionalCertificateArn: input.regionalCertificateArn })), (input.regionalCertificateName != null && { regionalCertificateName: input.regionalCertificateName })), (input.securityPolicy != null && { securityPolicy: input.securityPolicy })), (input.tags != null && { tags: serializeAws_restJson1MapOfStringToString(input.tags, context) })));
256
228
  return [2, new __HttpRequest({
257
229
  protocol: protocol,
258
230
  hostname: hostname,
@@ -286,7 +258,7 @@ export var serializeAws_restJson1CreateModelCommand = function (input, context)
286
258
  else {
287
259
  throw new Error("No value provided for input HTTP label: restApiId.");
288
260
  }
289
- body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.contentType !== undefined && input.contentType !== null && { contentType: input.contentType })), (input.description !== undefined && input.description !== null && { description: input.description })), (input.name !== undefined && input.name !== null && { name: input.name })), (input.schema !== undefined && input.schema !== null && { schema: input.schema })));
261
+ body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.contentType != null && { contentType: input.contentType })), (input.description != null && { description: input.description })), (input.name != null && { name: input.name })), (input.schema != null && { schema: input.schema })));
290
262
  return [2, new __HttpRequest({
291
263
  protocol: protocol,
292
264
  hostname: hostname,
@@ -320,9 +292,7 @@ export var serializeAws_restJson1CreateRequestValidatorCommand = function (input
320
292
  else {
321
293
  throw new Error("No value provided for input HTTP label: restApiId.");
322
294
  }
323
- body = JSON.stringify(__assign(__assign(__assign({}, (input.name !== undefined && input.name !== null && { name: input.name })), (input.validateRequestBody !== undefined &&
324
- input.validateRequestBody !== null && { validateRequestBody: input.validateRequestBody })), (input.validateRequestParameters !== undefined &&
325
- input.validateRequestParameters !== null && { validateRequestParameters: input.validateRequestParameters })));
295
+ body = JSON.stringify(__assign(__assign(__assign({}, (input.name != null && { name: input.name })), (input.validateRequestBody != null && { validateRequestBody: input.validateRequestBody })), (input.validateRequestParameters != null && { validateRequestParameters: input.validateRequestParameters })));
326
296
  return [2, new __HttpRequest({
327
297
  protocol: protocol,
328
298
  hostname: hostname,
@@ -367,7 +337,7 @@ export var serializeAws_restJson1CreateResourceCommand = function (input, contex
367
337
  else {
368
338
  throw new Error("No value provided for input HTTP label: parentId.");
369
339
  }
370
- body = JSON.stringify(__assign({}, (input.pathPart !== undefined && input.pathPart !== null && { pathPart: input.pathPart })));
340
+ body = JSON.stringify(__assign({}, (input.pathPart != null && { pathPart: input.pathPart })));
371
341
  return [2, new __HttpRequest({
372
342
  protocol: protocol,
373
343
  hostname: hostname,
@@ -391,16 +361,11 @@ export var serializeAws_restJson1CreateRestApiCommand = function (input, context
391
361
  "content-type": "application/json",
392
362
  };
393
363
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/restapis";
394
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.apiKeySource !== undefined && input.apiKeySource !== null && { apiKeySource: input.apiKeySource })), (input.binaryMediaTypes !== undefined &&
395
- input.binaryMediaTypes !== null && {
364
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.apiKeySource != null && { apiKeySource: input.apiKeySource })), (input.binaryMediaTypes != null && {
396
365
  binaryMediaTypes: serializeAws_restJson1ListOfString(input.binaryMediaTypes, context),
397
- })), (input.cloneFrom !== undefined && input.cloneFrom !== null && { cloneFrom: input.cloneFrom })), (input.description !== undefined && input.description !== null && { description: input.description })), (input.disableExecuteApiEndpoint !== undefined &&
398
- input.disableExecuteApiEndpoint !== null && { disableExecuteApiEndpoint: input.disableExecuteApiEndpoint })), (input.endpointConfiguration !== undefined &&
399
- input.endpointConfiguration !== null && {
366
+ })), (input.cloneFrom != null && { cloneFrom: input.cloneFrom })), (input.description != null && { description: input.description })), (input.disableExecuteApiEndpoint != null && { disableExecuteApiEndpoint: input.disableExecuteApiEndpoint })), (input.endpointConfiguration != null && {
400
367
  endpointConfiguration: serializeAws_restJson1EndpointConfiguration(input.endpointConfiguration, context),
401
- })), (input.minimumCompressionSize !== undefined &&
402
- input.minimumCompressionSize !== null && { minimumCompressionSize: input.minimumCompressionSize })), (input.name !== undefined && input.name !== null && { name: input.name })), (input.policy !== undefined && input.policy !== null && { policy: input.policy })), (input.tags !== undefined &&
403
- input.tags !== null && { tags: serializeAws_restJson1MapOfStringToString(input.tags, context) })), (input.version !== undefined && input.version !== null && { version: input.version })));
368
+ })), (input.minimumCompressionSize != null && { minimumCompressionSize: input.minimumCompressionSize })), (input.name != null && { name: input.name })), (input.policy != null && { policy: input.policy })), (input.tags != null && { tags: serializeAws_restJson1MapOfStringToString(input.tags, context) })), (input.version != null && { version: input.version })));
404
369
  return [2, new __HttpRequest({
405
370
  protocol: protocol,
406
371
  hostname: hostname,
@@ -434,16 +399,9 @@ export var serializeAws_restJson1CreateStageCommand = function (input, context)
434
399
  else {
435
400
  throw new Error("No value provided for input HTTP label: restApiId.");
436
401
  }
437
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.cacheClusterEnabled !== undefined &&
438
- input.cacheClusterEnabled !== null && { cacheClusterEnabled: input.cacheClusterEnabled })), (input.cacheClusterSize !== undefined &&
439
- input.cacheClusterSize !== null && { cacheClusterSize: input.cacheClusterSize })), (input.canarySettings !== undefined &&
440
- input.canarySettings !== null && {
402
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.cacheClusterEnabled != null && { cacheClusterEnabled: input.cacheClusterEnabled })), (input.cacheClusterSize != null && { cacheClusterSize: input.cacheClusterSize })), (input.canarySettings != null && {
441
403
  canarySettings: serializeAws_restJson1CanarySettings(input.canarySettings, context),
442
- })), (input.deploymentId !== undefined && input.deploymentId !== null && { deploymentId: input.deploymentId })), (input.description !== undefined && input.description !== null && { description: input.description })), (input.documentationVersion !== undefined &&
443
- input.documentationVersion !== null && { documentationVersion: input.documentationVersion })), (input.stageName !== undefined && input.stageName !== null && { stageName: input.stageName })), (input.tags !== undefined &&
444
- input.tags !== null && { tags: serializeAws_restJson1MapOfStringToString(input.tags, context) })), (input.tracingEnabled !== undefined &&
445
- input.tracingEnabled !== null && { tracingEnabled: input.tracingEnabled })), (input.variables !== undefined &&
446
- input.variables !== null && { variables: serializeAws_restJson1MapOfStringToString(input.variables, context) })));
404
+ })), (input.deploymentId != null && { deploymentId: input.deploymentId })), (input.description != null && { description: input.description })), (input.documentationVersion != null && { documentationVersion: input.documentationVersion })), (input.stageName != null && { stageName: input.stageName })), (input.tags != null && { tags: serializeAws_restJson1MapOfStringToString(input.tags, context) })), (input.tracingEnabled != null && { tracingEnabled: input.tracingEnabled })), (input.variables != null && { variables: serializeAws_restJson1MapOfStringToString(input.variables, context) })));
447
405
  return [2, new __HttpRequest({
448
406
  protocol: protocol,
449
407
  hostname: hostname,
@@ -467,11 +425,7 @@ export var serializeAws_restJson1CreateUsagePlanCommand = function (input, conte
467
425
  "content-type": "application/json",
468
426
  };
469
427
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/usageplans";
470
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.apiStages !== undefined &&
471
- input.apiStages !== null && { apiStages: serializeAws_restJson1ListOfApiStage(input.apiStages, context) })), (input.description !== undefined && input.description !== null && { description: input.description })), (input.name !== undefined && input.name !== null && { name: input.name })), (input.quota !== undefined &&
472
- input.quota !== null && { quota: serializeAws_restJson1QuotaSettings(input.quota, context) })), (input.tags !== undefined &&
473
- input.tags !== null && { tags: serializeAws_restJson1MapOfStringToString(input.tags, context) })), (input.throttle !== undefined &&
474
- input.throttle !== null && { throttle: serializeAws_restJson1ThrottleSettings(input.throttle, context) })));
428
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.apiStages != null && { apiStages: serializeAws_restJson1ListOfApiStage(input.apiStages, context) })), (input.description != null && { description: input.description })), (input.name != null && { name: input.name })), (input.quota != null && { quota: serializeAws_restJson1QuotaSettings(input.quota, context) })), (input.tags != null && { tags: serializeAws_restJson1MapOfStringToString(input.tags, context) })), (input.throttle != null && { throttle: serializeAws_restJson1ThrottleSettings(input.throttle, context) })));
475
429
  return [2, new __HttpRequest({
476
430
  protocol: protocol,
477
431
  hostname: hostname,
@@ -505,7 +459,7 @@ export var serializeAws_restJson1CreateUsagePlanKeyCommand = function (input, co
505
459
  else {
506
460
  throw new Error("No value provided for input HTTP label: usagePlanId.");
507
461
  }
508
- body = JSON.stringify(__assign(__assign({}, (input.keyId !== undefined && input.keyId !== null && { keyId: input.keyId })), (input.keyType !== undefined && input.keyType !== null && { keyType: input.keyType })));
462
+ body = JSON.stringify(__assign(__assign({}, (input.keyId != null && { keyId: input.keyId })), (input.keyType != null && { keyType: input.keyType })));
509
463
  return [2, new __HttpRequest({
510
464
  protocol: protocol,
511
465
  hostname: hostname,
@@ -529,9 +483,7 @@ export var serializeAws_restJson1CreateVpcLinkCommand = function (input, context
529
483
  "content-type": "application/json",
530
484
  };
531
485
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/vpclinks";
532
- body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.description !== undefined && input.description !== null && { description: input.description })), (input.name !== undefined && input.name !== null && { name: input.name })), (input.tags !== undefined &&
533
- input.tags !== null && { tags: serializeAws_restJson1MapOfStringToString(input.tags, context) })), (input.targetArns !== undefined &&
534
- input.targetArns !== null && { targetArns: serializeAws_restJson1ListOfString(input.targetArns, context) })));
486
+ body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.description != null && { description: input.description })), (input.name != null && { name: input.name })), (input.tags != null && { tags: serializeAws_restJson1MapOfStringToString(input.tags, context) })), (input.targetArns != null && { targetArns: serializeAws_restJson1ListOfString(input.targetArns, context) })));
535
487
  return [2, new __HttpRequest({
536
488
  protocol: protocol,
537
489
  hostname: hostname,
@@ -1512,8 +1464,7 @@ export var serializeAws_restJson1GenerateClientCertificateCommand = function (in
1512
1464
  "content-type": "application/json",
1513
1465
  };
1514
1466
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/clientcertificates";
1515
- body = JSON.stringify(__assign(__assign({}, (input.description !== undefined && input.description !== null && { description: input.description })), (input.tags !== undefined &&
1516
- input.tags !== null && { tags: serializeAws_restJson1MapOfStringToString(input.tags, context) })));
1467
+ body = JSON.stringify(__assign(__assign({}, (input.description != null && { description: input.description })), (input.tags != null && { tags: serializeAws_restJson1MapOfStringToString(input.tags, context) })));
1517
1468
  return [2, new __HttpRequest({
1518
1469
  protocol: protocol,
1519
1470
  hostname: hostname,
@@ -3330,13 +3281,11 @@ export var serializeAws_restJson1PutGatewayResponseCommand = function (input, co
3330
3281
  else {
3331
3282
  throw new Error("No value provided for input HTTP label: responseType.");
3332
3283
  }
3333
- body = JSON.stringify(__assign(__assign(__assign({}, (input.responseParameters !== undefined &&
3334
- input.responseParameters !== null && {
3284
+ body = JSON.stringify(__assign(__assign(__assign({}, (input.responseParameters != null && {
3335
3285
  responseParameters: serializeAws_restJson1MapOfStringToString(input.responseParameters, context),
3336
- })), (input.responseTemplates !== undefined &&
3337
- input.responseTemplates !== null && {
3286
+ })), (input.responseTemplates != null && {
3338
3287
  responseTemplates: serializeAws_restJson1MapOfStringToString(input.responseTemplates, context),
3339
- })), (input.statusCode !== undefined && input.statusCode !== null && { statusCode: input.statusCode })));
3288
+ })), (input.statusCode != null && { statusCode: input.statusCode })));
3340
3289
  return [2, new __HttpRequest({
3341
3290
  protocol: protocol,
3342
3291
  hostname: hostname,
@@ -3391,23 +3340,13 @@ export var serializeAws_restJson1PutIntegrationCommand = function (input, contex
3391
3340
  else {
3392
3341
  throw new Error("No value provided for input HTTP label: httpMethod.");
3393
3342
  }
3394
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.cacheKeyParameters !== undefined &&
3395
- input.cacheKeyParameters !== null && {
3343
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.cacheKeyParameters != null && {
3396
3344
  cacheKeyParameters: serializeAws_restJson1ListOfString(input.cacheKeyParameters, context),
3397
- })), (input.cacheNamespace !== undefined &&
3398
- input.cacheNamespace !== null && { cacheNamespace: input.cacheNamespace })), (input.connectionId !== undefined && input.connectionId !== null && { connectionId: input.connectionId })), (input.connectionType !== undefined &&
3399
- input.connectionType !== null && { connectionType: input.connectionType })), (input.contentHandling !== undefined &&
3400
- input.contentHandling !== null && { contentHandling: input.contentHandling })), (input.credentials !== undefined && input.credentials !== null && { credentials: input.credentials })), (input.integrationHttpMethod !== undefined &&
3401
- input.integrationHttpMethod !== null && { httpMethod: input.integrationHttpMethod })), (input.passthroughBehavior !== undefined &&
3402
- input.passthroughBehavior !== null && { passthroughBehavior: input.passthroughBehavior })), (input.requestParameters !== undefined &&
3403
- input.requestParameters !== null && {
3345
+ })), (input.cacheNamespace != null && { cacheNamespace: input.cacheNamespace })), (input.connectionId != null && { connectionId: input.connectionId })), (input.connectionType != null && { connectionType: input.connectionType })), (input.contentHandling != null && { contentHandling: input.contentHandling })), (input.credentials != null && { credentials: input.credentials })), (input.integrationHttpMethod != null && { httpMethod: input.integrationHttpMethod })), (input.passthroughBehavior != null && { passthroughBehavior: input.passthroughBehavior })), (input.requestParameters != null && {
3404
3346
  requestParameters: serializeAws_restJson1MapOfStringToString(input.requestParameters, context),
3405
- })), (input.requestTemplates !== undefined &&
3406
- input.requestTemplates !== null && {
3347
+ })), (input.requestTemplates != null && {
3407
3348
  requestTemplates: serializeAws_restJson1MapOfStringToString(input.requestTemplates, context),
3408
- })), (input.timeoutInMillis !== undefined &&
3409
- input.timeoutInMillis !== null && { timeoutInMillis: input.timeoutInMillis })), (input.tlsConfig !== undefined &&
3410
- input.tlsConfig !== null && { tlsConfig: serializeAws_restJson1TlsConfig(input.tlsConfig, context) })), (input.type !== undefined && input.type !== null && { type: input.type })), (input.uri !== undefined && input.uri !== null && { uri: input.uri })));
3349
+ })), (input.timeoutInMillis != null && { timeoutInMillis: input.timeoutInMillis })), (input.tlsConfig != null && { tlsConfig: serializeAws_restJson1TlsConfig(input.tlsConfig, context) })), (input.type != null && { type: input.type })), (input.uri != null && { uri: input.uri })));
3411
3350
  return [2, new __HttpRequest({
3412
3351
  protocol: protocol,
3413
3352
  hostname: hostname,
@@ -3472,15 +3411,11 @@ export var serializeAws_restJson1PutIntegrationResponseCommand = function (input
3472
3411
  else {
3473
3412
  throw new Error("No value provided for input HTTP label: statusCode.");
3474
3413
  }
3475
- body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.contentHandling !== undefined &&
3476
- input.contentHandling !== null && { contentHandling: input.contentHandling })), (input.responseParameters !== undefined &&
3477
- input.responseParameters !== null && {
3414
+ body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.contentHandling != null && { contentHandling: input.contentHandling })), (input.responseParameters != null && {
3478
3415
  responseParameters: serializeAws_restJson1MapOfStringToString(input.responseParameters, context),
3479
- })), (input.responseTemplates !== undefined &&
3480
- input.responseTemplates !== null && {
3416
+ })), (input.responseTemplates != null && {
3481
3417
  responseTemplates: serializeAws_restJson1MapOfStringToString(input.responseTemplates, context),
3482
- })), (input.selectionPattern !== undefined &&
3483
- input.selectionPattern !== null && { selectionPattern: input.selectionPattern })));
3418
+ })), (input.selectionPattern != null && { selectionPattern: input.selectionPattern })));
3484
3419
  return [2, new __HttpRequest({
3485
3420
  protocol: protocol,
3486
3421
  hostname: hostname,
@@ -3535,19 +3470,13 @@ export var serializeAws_restJson1PutMethodCommand = function (input, context) {
3535
3470
  else {
3536
3471
  throw new Error("No value provided for input HTTP label: httpMethod.");
3537
3472
  }
3538
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.apiKeyRequired !== undefined &&
3539
- input.apiKeyRequired !== null && { apiKeyRequired: input.apiKeyRequired })), (input.authorizationScopes !== undefined &&
3540
- input.authorizationScopes !== null && {
3473
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.apiKeyRequired != null && { apiKeyRequired: input.apiKeyRequired })), (input.authorizationScopes != null && {
3541
3474
  authorizationScopes: serializeAws_restJson1ListOfString(input.authorizationScopes, context),
3542
- })), (input.authorizationType !== undefined &&
3543
- input.authorizationType !== null && { authorizationType: input.authorizationType })), (input.authorizerId !== undefined && input.authorizerId !== null && { authorizerId: input.authorizerId })), (input.operationName !== undefined && input.operationName !== null && { operationName: input.operationName })), (input.requestModels !== undefined &&
3544
- input.requestModels !== null && {
3475
+ })), (input.authorizationType != null && { authorizationType: input.authorizationType })), (input.authorizerId != null && { authorizerId: input.authorizerId })), (input.operationName != null && { operationName: input.operationName })), (input.requestModels != null && {
3545
3476
  requestModels: serializeAws_restJson1MapOfStringToString(input.requestModels, context),
3546
- })), (input.requestParameters !== undefined &&
3547
- input.requestParameters !== null && {
3477
+ })), (input.requestParameters != null && {
3548
3478
  requestParameters: serializeAws_restJson1MapOfStringToBoolean(input.requestParameters, context),
3549
- })), (input.requestValidatorId !== undefined &&
3550
- input.requestValidatorId !== null && { requestValidatorId: input.requestValidatorId })));
3479
+ })), (input.requestValidatorId != null && { requestValidatorId: input.requestValidatorId })));
3551
3480
  return [2, new __HttpRequest({
3552
3481
  protocol: protocol,
3553
3482
  hostname: hostname,
@@ -3612,11 +3541,9 @@ export var serializeAws_restJson1PutMethodResponseCommand = function (input, con
3612
3541
  else {
3613
3542
  throw new Error("No value provided for input HTTP label: statusCode.");
3614
3543
  }
3615
- body = JSON.stringify(__assign(__assign({}, (input.responseModels !== undefined &&
3616
- input.responseModels !== null && {
3544
+ body = JSON.stringify(__assign(__assign({}, (input.responseModels != null && {
3617
3545
  responseModels: serializeAws_restJson1MapOfStringToString(input.responseModels, context),
3618
- })), (input.responseParameters !== undefined &&
3619
- input.responseParameters !== null && {
3546
+ })), (input.responseParameters != null && {
3620
3547
  responseParameters: serializeAws_restJson1MapOfStringToBoolean(input.responseParameters, context),
3621
3548
  })));
3622
3549
  return [2, new __HttpRequest({
@@ -3690,8 +3617,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
3690
3617
  else {
3691
3618
  throw new Error("No value provided for input HTTP label: resourceArn.");
3692
3619
  }
3693
- body = JSON.stringify(__assign({}, (input.tags !== undefined &&
3694
- input.tags !== null && { tags: serializeAws_restJson1MapOfStringToString(input.tags, context) })));
3620
+ body = JSON.stringify(__assign({}, (input.tags != null && { tags: serializeAws_restJson1MapOfStringToString(input.tags, context) })));
3695
3621
  return [2, new __HttpRequest({
3696
3622
  protocol: protocol,
3697
3623
  hostname: hostname,
@@ -3736,16 +3662,11 @@ export var serializeAws_restJson1TestInvokeAuthorizerCommand = function (input,
3736
3662
  else {
3737
3663
  throw new Error("No value provided for input HTTP label: authorizerId.");
3738
3664
  }
3739
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.additionalContext !== undefined &&
3740
- input.additionalContext !== null && {
3665
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.additionalContext != null && {
3741
3666
  additionalContext: serializeAws_restJson1MapOfStringToString(input.additionalContext, context),
3742
- })), (input.body !== undefined && input.body !== null && { body: input.body })), (input.headers !== undefined &&
3743
- input.headers !== null && { headers: serializeAws_restJson1MapOfStringToString(input.headers, context) })), (input.multiValueHeaders !== undefined &&
3744
- input.multiValueHeaders !== null && {
3667
+ })), (input.body != null && { body: input.body })), (input.headers != null && { headers: serializeAws_restJson1MapOfStringToString(input.headers, context) })), (input.multiValueHeaders != null && {
3745
3668
  multiValueHeaders: serializeAws_restJson1MapOfStringToList(input.multiValueHeaders, context),
3746
- })), (input.pathWithQueryString !== undefined &&
3747
- input.pathWithQueryString !== null && { pathWithQueryString: input.pathWithQueryString })), (input.stageVariables !== undefined &&
3748
- input.stageVariables !== null && {
3669
+ })), (input.pathWithQueryString != null && { pathWithQueryString: input.pathWithQueryString })), (input.stageVariables != null && {
3749
3670
  stageVariables: serializeAws_restJson1MapOfStringToString(input.stageVariables, context),
3750
3671
  })));
3751
3672
  return [2, new __HttpRequest({
@@ -3802,14 +3723,9 @@ export var serializeAws_restJson1TestInvokeMethodCommand = function (input, cont
3802
3723
  else {
3803
3724
  throw new Error("No value provided for input HTTP label: httpMethod.");
3804
3725
  }
3805
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.body !== undefined && input.body !== null && { body: input.body })), (input.clientCertificateId !== undefined &&
3806
- input.clientCertificateId !== null && { clientCertificateId: input.clientCertificateId })), (input.headers !== undefined &&
3807
- input.headers !== null && { headers: serializeAws_restJson1MapOfStringToString(input.headers, context) })), (input.multiValueHeaders !== undefined &&
3808
- input.multiValueHeaders !== null && {
3726
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.body != null && { body: input.body })), (input.clientCertificateId != null && { clientCertificateId: input.clientCertificateId })), (input.headers != null && { headers: serializeAws_restJson1MapOfStringToString(input.headers, context) })), (input.multiValueHeaders != null && {
3809
3727
  multiValueHeaders: serializeAws_restJson1MapOfStringToList(input.multiValueHeaders, context),
3810
- })), (input.pathWithQueryString !== undefined &&
3811
- input.pathWithQueryString !== null && { pathWithQueryString: input.pathWithQueryString })), (input.stageVariables !== undefined &&
3812
- input.stageVariables !== null && {
3728
+ })), (input.pathWithQueryString != null && { pathWithQueryString: input.pathWithQueryString })), (input.stageVariables != null && {
3813
3729
  stageVariables: serializeAws_restJson1MapOfStringToString(input.stageVariables, context),
3814
3730
  })));
3815
3731
  return [2, new __HttpRequest({
@@ -3868,8 +3784,7 @@ export var serializeAws_restJson1UpdateAccountCommand = function (input, context
3868
3784
  "content-type": "application/json",
3869
3785
  };
3870
3786
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/account";
3871
- body = JSON.stringify(__assign({}, (input.patchOperations !== undefined &&
3872
- input.patchOperations !== null && {
3787
+ body = JSON.stringify(__assign({}, (input.patchOperations != null && {
3873
3788
  patchOperations: serializeAws_restJson1ListOfPatchOperation(input.patchOperations, context),
3874
3789
  })));
3875
3790
  return [2, new __HttpRequest({
@@ -3905,8 +3820,7 @@ export var serializeAws_restJson1UpdateApiKeyCommand = function (input, context)
3905
3820
  else {
3906
3821
  throw new Error("No value provided for input HTTP label: apiKey.");
3907
3822
  }
3908
- body = JSON.stringify(__assign({}, (input.patchOperations !== undefined &&
3909
- input.patchOperations !== null && {
3823
+ body = JSON.stringify(__assign({}, (input.patchOperations != null && {
3910
3824
  patchOperations: serializeAws_restJson1ListOfPatchOperation(input.patchOperations, context),
3911
3825
  })));
3912
3826
  return [2, new __HttpRequest({
@@ -3953,8 +3867,7 @@ export var serializeAws_restJson1UpdateAuthorizerCommand = function (input, cont
3953
3867
  else {
3954
3868
  throw new Error("No value provided for input HTTP label: authorizerId.");
3955
3869
  }
3956
- body = JSON.stringify(__assign({}, (input.patchOperations !== undefined &&
3957
- input.patchOperations !== null && {
3870
+ body = JSON.stringify(__assign({}, (input.patchOperations != null && {
3958
3871
  patchOperations: serializeAws_restJson1ListOfPatchOperation(input.patchOperations, context),
3959
3872
  })));
3960
3873
  return [2, new __HttpRequest({
@@ -4001,8 +3914,7 @@ export var serializeAws_restJson1UpdateBasePathMappingCommand = function (input,
4001
3914
  else {
4002
3915
  throw new Error("No value provided for input HTTP label: basePath.");
4003
3916
  }
4004
- body = JSON.stringify(__assign({}, (input.patchOperations !== undefined &&
4005
- input.patchOperations !== null && {
3917
+ body = JSON.stringify(__assign({}, (input.patchOperations != null && {
4006
3918
  patchOperations: serializeAws_restJson1ListOfPatchOperation(input.patchOperations, context),
4007
3919
  })));
4008
3920
  return [2, new __HttpRequest({
@@ -4038,8 +3950,7 @@ export var serializeAws_restJson1UpdateClientCertificateCommand = function (inpu
4038
3950
  else {
4039
3951
  throw new Error("No value provided for input HTTP label: clientCertificateId.");
4040
3952
  }
4041
- body = JSON.stringify(__assign({}, (input.patchOperations !== undefined &&
4042
- input.patchOperations !== null && {
3953
+ body = JSON.stringify(__assign({}, (input.patchOperations != null && {
4043
3954
  patchOperations: serializeAws_restJson1ListOfPatchOperation(input.patchOperations, context),
4044
3955
  })));
4045
3956
  return [2, new __HttpRequest({
@@ -4086,8 +3997,7 @@ export var serializeAws_restJson1UpdateDeploymentCommand = function (input, cont
4086
3997
  else {
4087
3998
  throw new Error("No value provided for input HTTP label: deploymentId.");
4088
3999
  }
4089
- body = JSON.stringify(__assign({}, (input.patchOperations !== undefined &&
4090
- input.patchOperations !== null && {
4000
+ body = JSON.stringify(__assign({}, (input.patchOperations != null && {
4091
4001
  patchOperations: serializeAws_restJson1ListOfPatchOperation(input.patchOperations, context),
4092
4002
  })));
4093
4003
  return [2, new __HttpRequest({
@@ -4134,8 +4044,7 @@ export var serializeAws_restJson1UpdateDocumentationPartCommand = function (inpu
4134
4044
  else {
4135
4045
  throw new Error("No value provided for input HTTP label: documentationPartId.");
4136
4046
  }
4137
- body = JSON.stringify(__assign({}, (input.patchOperations !== undefined &&
4138
- input.patchOperations !== null && {
4047
+ body = JSON.stringify(__assign({}, (input.patchOperations != null && {
4139
4048
  patchOperations: serializeAws_restJson1ListOfPatchOperation(input.patchOperations, context),
4140
4049
  })));
4141
4050
  return [2, new __HttpRequest({
@@ -4182,8 +4091,7 @@ export var serializeAws_restJson1UpdateDocumentationVersionCommand = function (i
4182
4091
  else {
4183
4092
  throw new Error("No value provided for input HTTP label: documentationVersion.");
4184
4093
  }
4185
- body = JSON.stringify(__assign({}, (input.patchOperations !== undefined &&
4186
- input.patchOperations !== null && {
4094
+ body = JSON.stringify(__assign({}, (input.patchOperations != null && {
4187
4095
  patchOperations: serializeAws_restJson1ListOfPatchOperation(input.patchOperations, context),
4188
4096
  })));
4189
4097
  return [2, new __HttpRequest({
@@ -4219,8 +4127,7 @@ export var serializeAws_restJson1UpdateDomainNameCommand = function (input, cont
4219
4127
  else {
4220
4128
  throw new Error("No value provided for input HTTP label: domainName.");
4221
4129
  }
4222
- body = JSON.stringify(__assign({}, (input.patchOperations !== undefined &&
4223
- input.patchOperations !== null && {
4130
+ body = JSON.stringify(__assign({}, (input.patchOperations != null && {
4224
4131
  patchOperations: serializeAws_restJson1ListOfPatchOperation(input.patchOperations, context),
4225
4132
  })));
4226
4133
  return [2, new __HttpRequest({
@@ -4267,8 +4174,7 @@ export var serializeAws_restJson1UpdateGatewayResponseCommand = function (input,
4267
4174
  else {
4268
4175
  throw new Error("No value provided for input HTTP label: responseType.");
4269
4176
  }
4270
- body = JSON.stringify(__assign({}, (input.patchOperations !== undefined &&
4271
- input.patchOperations !== null && {
4177
+ body = JSON.stringify(__assign({}, (input.patchOperations != null && {
4272
4178
  patchOperations: serializeAws_restJson1ListOfPatchOperation(input.patchOperations, context),
4273
4179
  })));
4274
4180
  return [2, new __HttpRequest({
@@ -4325,8 +4231,7 @@ export var serializeAws_restJson1UpdateIntegrationCommand = function (input, con
4325
4231
  else {
4326
4232
  throw new Error("No value provided for input HTTP label: httpMethod.");
4327
4233
  }
4328
- body = JSON.stringify(__assign({}, (input.patchOperations !== undefined &&
4329
- input.patchOperations !== null && {
4234
+ body = JSON.stringify(__assign({}, (input.patchOperations != null && {
4330
4235
  patchOperations: serializeAws_restJson1ListOfPatchOperation(input.patchOperations, context),
4331
4236
  })));
4332
4237
  return [2, new __HttpRequest({
@@ -4393,8 +4298,7 @@ export var serializeAws_restJson1UpdateIntegrationResponseCommand = function (in
4393
4298
  else {
4394
4299
  throw new Error("No value provided for input HTTP label: statusCode.");
4395
4300
  }
4396
- body = JSON.stringify(__assign({}, (input.patchOperations !== undefined &&
4397
- input.patchOperations !== null && {
4301
+ body = JSON.stringify(__assign({}, (input.patchOperations != null && {
4398
4302
  patchOperations: serializeAws_restJson1ListOfPatchOperation(input.patchOperations, context),
4399
4303
  })));
4400
4304
  return [2, new __HttpRequest({
@@ -4451,8 +4355,7 @@ export var serializeAws_restJson1UpdateMethodCommand = function (input, context)
4451
4355
  else {
4452
4356
  throw new Error("No value provided for input HTTP label: httpMethod.");
4453
4357
  }
4454
- body = JSON.stringify(__assign({}, (input.patchOperations !== undefined &&
4455
- input.patchOperations !== null && {
4358
+ body = JSON.stringify(__assign({}, (input.patchOperations != null && {
4456
4359
  patchOperations: serializeAws_restJson1ListOfPatchOperation(input.patchOperations, context),
4457
4360
  })));
4458
4361
  return [2, new __HttpRequest({
@@ -4519,8 +4422,7 @@ export var serializeAws_restJson1UpdateMethodResponseCommand = function (input,
4519
4422
  else {
4520
4423
  throw new Error("No value provided for input HTTP label: statusCode.");
4521
4424
  }
4522
- body = JSON.stringify(__assign({}, (input.patchOperations !== undefined &&
4523
- input.patchOperations !== null && {
4425
+ body = JSON.stringify(__assign({}, (input.patchOperations != null && {
4524
4426
  patchOperations: serializeAws_restJson1ListOfPatchOperation(input.patchOperations, context),
4525
4427
  })));
4526
4428
  return [2, new __HttpRequest({
@@ -4566,8 +4468,7 @@ export var serializeAws_restJson1UpdateModelCommand = function (input, context)
4566
4468
  else {
4567
4469
  throw new Error("No value provided for input HTTP label: modelName.");
4568
4470
  }
4569
- body = JSON.stringify(__assign({}, (input.patchOperations !== undefined &&
4570
- input.patchOperations !== null && {
4471
+ body = JSON.stringify(__assign({}, (input.patchOperations != null && {
4571
4472
  patchOperations: serializeAws_restJson1ListOfPatchOperation(input.patchOperations, context),
4572
4473
  })));
4573
4474
  return [2, new __HttpRequest({
@@ -4614,8 +4515,7 @@ export var serializeAws_restJson1UpdateRequestValidatorCommand = function (input
4614
4515
  else {
4615
4516
  throw new Error("No value provided for input HTTP label: requestValidatorId.");
4616
4517
  }
4617
- body = JSON.stringify(__assign({}, (input.patchOperations !== undefined &&
4618
- input.patchOperations !== null && {
4518
+ body = JSON.stringify(__assign({}, (input.patchOperations != null && {
4619
4519
  patchOperations: serializeAws_restJson1ListOfPatchOperation(input.patchOperations, context),
4620
4520
  })));
4621
4521
  return [2, new __HttpRequest({
@@ -4662,8 +4562,7 @@ export var serializeAws_restJson1UpdateResourceCommand = function (input, contex
4662
4562
  else {
4663
4563
  throw new Error("No value provided for input HTTP label: resourceId.");
4664
4564
  }
4665
- body = JSON.stringify(__assign({}, (input.patchOperations !== undefined &&
4666
- input.patchOperations !== null && {
4565
+ body = JSON.stringify(__assign({}, (input.patchOperations != null && {
4667
4566
  patchOperations: serializeAws_restJson1ListOfPatchOperation(input.patchOperations, context),
4668
4567
  })));
4669
4568
  return [2, new __HttpRequest({
@@ -4699,8 +4598,7 @@ export var serializeAws_restJson1UpdateRestApiCommand = function (input, context
4699
4598
  else {
4700
4599
  throw new Error("No value provided for input HTTP label: restApiId.");
4701
4600
  }
4702
- body = JSON.stringify(__assign({}, (input.patchOperations !== undefined &&
4703
- input.patchOperations !== null && {
4601
+ body = JSON.stringify(__assign({}, (input.patchOperations != null && {
4704
4602
  patchOperations: serializeAws_restJson1ListOfPatchOperation(input.patchOperations, context),
4705
4603
  })));
4706
4604
  return [2, new __HttpRequest({
@@ -4746,8 +4644,7 @@ export var serializeAws_restJson1UpdateStageCommand = function (input, context)
4746
4644
  else {
4747
4645
  throw new Error("No value provided for input HTTP label: stageName.");
4748
4646
  }
4749
- body = JSON.stringify(__assign({}, (input.patchOperations !== undefined &&
4750
- input.patchOperations !== null && {
4647
+ body = JSON.stringify(__assign({}, (input.patchOperations != null && {
4751
4648
  patchOperations: serializeAws_restJson1ListOfPatchOperation(input.patchOperations, context),
4752
4649
  })));
4753
4650
  return [2, new __HttpRequest({
@@ -4794,8 +4691,7 @@ export var serializeAws_restJson1UpdateUsageCommand = function (input, context)
4794
4691
  else {
4795
4692
  throw new Error("No value provided for input HTTP label: keyId.");
4796
4693
  }
4797
- body = JSON.stringify(__assign({}, (input.patchOperations !== undefined &&
4798
- input.patchOperations !== null && {
4694
+ body = JSON.stringify(__assign({}, (input.patchOperations != null && {
4799
4695
  patchOperations: serializeAws_restJson1ListOfPatchOperation(input.patchOperations, context),
4800
4696
  })));
4801
4697
  return [2, new __HttpRequest({
@@ -4831,8 +4727,7 @@ export var serializeAws_restJson1UpdateUsagePlanCommand = function (input, conte
4831
4727
  else {
4832
4728
  throw new Error("No value provided for input HTTP label: usagePlanId.");
4833
4729
  }
4834
- body = JSON.stringify(__assign({}, (input.patchOperations !== undefined &&
4835
- input.patchOperations !== null && {
4730
+ body = JSON.stringify(__assign({}, (input.patchOperations != null && {
4836
4731
  patchOperations: serializeAws_restJson1ListOfPatchOperation(input.patchOperations, context),
4837
4732
  })));
4838
4733
  return [2, new __HttpRequest({
@@ -4868,8 +4763,7 @@ export var serializeAws_restJson1UpdateVpcLinkCommand = function (input, context
4868
4763
  else {
4869
4764
  throw new Error("No value provided for input HTTP label: vpcLinkId.");
4870
4765
  }
4871
- body = JSON.stringify(__assign({}, (input.patchOperations !== undefined &&
4872
- input.patchOperations !== null && {
4766
+ body = JSON.stringify(__assign({}, (input.patchOperations != null && {
4873
4767
  patchOperations: serializeAws_restJson1ListOfPatchOperation(input.patchOperations, context),
4874
4768
  })));
4875
4769
  return [2, new __HttpRequest({
@@ -15536,32 +15430,25 @@ var deserializeAws_restJson1UnauthorizedExceptionResponse = function (parsedOutp
15536
15430
  });
15537
15431
  }); };
15538
15432
  var serializeAws_restJson1ApiStage = function (input, context) {
15539
- return __assign(__assign(__assign({}, (input.apiId !== undefined && input.apiId !== null && { apiId: input.apiId })), (input.stage !== undefined && input.stage !== null && { stage: input.stage })), (input.throttle !== undefined &&
15540
- input.throttle !== null && {
15433
+ return __assign(__assign(__assign({}, (input.apiId != null && { apiId: input.apiId })), (input.stage != null && { stage: input.stage })), (input.throttle != null && {
15541
15434
  throttle: serializeAws_restJson1MapOfApiStageThrottleSettings(input.throttle, context),
15542
15435
  }));
15543
15436
  };
15544
15437
  var serializeAws_restJson1CanarySettings = function (input, context) {
15545
- return __assign(__assign(__assign(__assign({}, (input.deploymentId !== undefined && input.deploymentId !== null && { deploymentId: input.deploymentId })), (input.percentTraffic !== undefined &&
15546
- input.percentTraffic !== null && { percentTraffic: __serializeFloat(input.percentTraffic) })), (input.stageVariableOverrides !== undefined &&
15547
- input.stageVariableOverrides !== null && {
15438
+ return __assign(__assign(__assign(__assign({}, (input.deploymentId != null && { deploymentId: input.deploymentId })), (input.percentTraffic != null && { percentTraffic: __serializeFloat(input.percentTraffic) })), (input.stageVariableOverrides != null && {
15548
15439
  stageVariableOverrides: serializeAws_restJson1MapOfStringToString(input.stageVariableOverrides, context),
15549
- })), (input.useStageCache !== undefined && input.useStageCache !== null && { useStageCache: input.useStageCache }));
15440
+ })), (input.useStageCache != null && { useStageCache: input.useStageCache }));
15550
15441
  };
15551
15442
  var serializeAws_restJson1DeploymentCanarySettings = function (input, context) {
15552
- return __assign(__assign(__assign({}, (input.percentTraffic !== undefined &&
15553
- input.percentTraffic !== null && { percentTraffic: __serializeFloat(input.percentTraffic) })), (input.stageVariableOverrides !== undefined &&
15554
- input.stageVariableOverrides !== null && {
15443
+ return __assign(__assign(__assign({}, (input.percentTraffic != null && { percentTraffic: __serializeFloat(input.percentTraffic) })), (input.stageVariableOverrides != null && {
15555
15444
  stageVariableOverrides: serializeAws_restJson1MapOfStringToString(input.stageVariableOverrides, context),
15556
- })), (input.useStageCache !== undefined && input.useStageCache !== null && { useStageCache: input.useStageCache }));
15445
+ })), (input.useStageCache != null && { useStageCache: input.useStageCache }));
15557
15446
  };
15558
15447
  var serializeAws_restJson1DocumentationPartLocation = function (input, context) {
15559
- return __assign(__assign(__assign(__assign(__assign({}, (input.method !== undefined && input.method !== null && { method: input.method })), (input.name !== undefined && input.name !== null && { name: input.name })), (input.path !== undefined && input.path !== null && { path: input.path })), (input.statusCode !== undefined && input.statusCode !== null && { statusCode: input.statusCode })), (input.type !== undefined && input.type !== null && { type: input.type }));
15448
+ return __assign(__assign(__assign(__assign(__assign({}, (input.method != null && { method: input.method })), (input.name != null && { name: input.name })), (input.path != null && { path: input.path })), (input.statusCode != null && { statusCode: input.statusCode })), (input.type != null && { type: input.type }));
15560
15449
  };
15561
15450
  var serializeAws_restJson1EndpointConfiguration = function (input, context) {
15562
- return __assign(__assign({}, (input.types !== undefined &&
15563
- input.types !== null && { types: serializeAws_restJson1ListOfEndpointType(input.types, context) })), (input.vpcEndpointIds !== undefined &&
15564
- input.vpcEndpointIds !== null && {
15451
+ return __assign(__assign({}, (input.types != null && { types: serializeAws_restJson1ListOfEndpointType(input.types, context) })), (input.vpcEndpointIds != null && {
15565
15452
  vpcEndpointIds: serializeAws_restJson1ListOfString(input.vpcEndpointIds, context),
15566
15453
  }));
15567
15454
  };
@@ -15666,24 +15553,22 @@ var serializeAws_restJson1MapOfStringToString = function (input, context) {
15666
15553
  }, {});
15667
15554
  };
15668
15555
  var serializeAws_restJson1MutualTlsAuthenticationInput = function (input, context) {
15669
- return __assign(__assign({}, (input.truststoreUri !== undefined && input.truststoreUri !== null && { truststoreUri: input.truststoreUri })), (input.truststoreVersion !== undefined &&
15670
- input.truststoreVersion !== null && { truststoreVersion: input.truststoreVersion }));
15556
+ return __assign(__assign({}, (input.truststoreUri != null && { truststoreUri: input.truststoreUri })), (input.truststoreVersion != null && { truststoreVersion: input.truststoreVersion }));
15671
15557
  };
15672
15558
  var serializeAws_restJson1PatchOperation = function (input, context) {
15673
- return __assign(__assign(__assign(__assign({}, (input.from !== undefined && input.from !== null && { from: input.from })), (input.op !== undefined && input.op !== null && { op: input.op })), (input.path !== undefined && input.path !== null && { path: input.path })), (input.value !== undefined && input.value !== null && { value: input.value }));
15559
+ return __assign(__assign(__assign(__assign({}, (input.from != null && { from: input.from })), (input.op != null && { op: input.op })), (input.path != null && { path: input.path })), (input.value != null && { value: input.value }));
15674
15560
  };
15675
15561
  var serializeAws_restJson1QuotaSettings = function (input, context) {
15676
- return __assign(__assign(__assign({}, (input.limit !== undefined && input.limit !== null && { limit: input.limit })), (input.offset !== undefined && input.offset !== null && { offset: input.offset })), (input.period !== undefined && input.period !== null && { period: input.period }));
15562
+ return __assign(__assign(__assign({}, (input.limit != null && { limit: input.limit })), (input.offset != null && { offset: input.offset })), (input.period != null && { period: input.period }));
15677
15563
  };
15678
15564
  var serializeAws_restJson1StageKey = function (input, context) {
15679
- return __assign(__assign({}, (input.restApiId !== undefined && input.restApiId !== null && { restApiId: input.restApiId })), (input.stageName !== undefined && input.stageName !== null && { stageName: input.stageName }));
15565
+ return __assign(__assign({}, (input.restApiId != null && { restApiId: input.restApiId })), (input.stageName != null && { stageName: input.stageName }));
15680
15566
  };
15681
15567
  var serializeAws_restJson1ThrottleSettings = function (input, context) {
15682
- return __assign(__assign({}, (input.burstLimit !== undefined && input.burstLimit !== null && { burstLimit: input.burstLimit })), (input.rateLimit !== undefined && input.rateLimit !== null && { rateLimit: __serializeFloat(input.rateLimit) }));
15568
+ return __assign(__assign({}, (input.burstLimit != null && { burstLimit: input.burstLimit })), (input.rateLimit != null && { rateLimit: __serializeFloat(input.rateLimit) }));
15683
15569
  };
15684
15570
  var serializeAws_restJson1TlsConfig = function (input, context) {
15685
- return __assign({}, (input.insecureSkipVerification !== undefined &&
15686
- input.insecureSkipVerification !== null && { insecureSkipVerification: input.insecureSkipVerification }));
15571
+ return __assign({}, (input.insecureSkipVerification != null && { insecureSkipVerification: input.insecureSkipVerification }));
15687
15572
  };
15688
15573
  var deserializeAws_restJson1AccessLogSettings = function (output, context) {
15689
15574
  return {
@@ -15693,23 +15578,19 @@ var deserializeAws_restJson1AccessLogSettings = function (output, context) {
15693
15578
  };
15694
15579
  var deserializeAws_restJson1ApiKey = function (output, context) {
15695
15580
  return {
15696
- createdDate: output.createdDate !== undefined && output.createdDate !== null
15581
+ createdDate: output.createdDate != null
15697
15582
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdDate)))
15698
15583
  : undefined,
15699
15584
  customerId: __expectString(output.customerId),
15700
15585
  description: __expectString(output.description),
15701
15586
  enabled: __expectBoolean(output.enabled),
15702
15587
  id: __expectString(output.id),
15703
- lastUpdatedDate: output.lastUpdatedDate !== undefined && output.lastUpdatedDate !== null
15588
+ lastUpdatedDate: output.lastUpdatedDate != null
15704
15589
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedDate)))
15705
15590
  : undefined,
15706
15591
  name: __expectString(output.name),
15707
- stageKeys: output.stageKeys !== undefined && output.stageKeys !== null
15708
- ? deserializeAws_restJson1ListOfString(output.stageKeys, context)
15709
- : undefined,
15710
- tags: output.tags !== undefined && output.tags !== null
15711
- ? deserializeAws_restJson1MapOfStringToString(output.tags, context)
15712
- : undefined,
15592
+ stageKeys: output.stageKeys != null ? deserializeAws_restJson1ListOfString(output.stageKeys, context) : undefined,
15593
+ tags: output.tags != null ? deserializeAws_restJson1MapOfStringToString(output.tags, context) : undefined,
15713
15594
  value: __expectString(output.value),
15714
15595
  };
15715
15596
  };
@@ -15717,7 +15598,7 @@ var deserializeAws_restJson1ApiStage = function (output, context) {
15717
15598
  return {
15718
15599
  apiId: __expectString(output.apiId),
15719
15600
  stage: __expectString(output.stage),
15720
- throttle: output.throttle !== undefined && output.throttle !== null
15601
+ throttle: output.throttle != null
15721
15602
  ? deserializeAws_restJson1MapOfApiStageThrottleSettings(output.throttle, context)
15722
15603
  : undefined,
15723
15604
  };
@@ -15732,9 +15613,7 @@ var deserializeAws_restJson1Authorizer = function (output, context) {
15732
15613
  identitySource: __expectString(output.identitySource),
15733
15614
  identityValidationExpression: __expectString(output.identityValidationExpression),
15734
15615
  name: __expectString(output.name),
15735
- providerARNs: output.providerARNs !== undefined && output.providerARNs !== null
15736
- ? deserializeAws_restJson1ListOfARNs(output.providerARNs, context)
15737
- : undefined,
15616
+ providerARNs: output.providerARNs != null ? deserializeAws_restJson1ListOfARNs(output.providerARNs, context) : undefined,
15738
15617
  type: __expectString(output.type),
15739
15618
  };
15740
15619
  };
@@ -15749,7 +15628,7 @@ var deserializeAws_restJson1CanarySettings = function (output, context) {
15749
15628
  return {
15750
15629
  deploymentId: __expectString(output.deploymentId),
15751
15630
  percentTraffic: __limitedParseDouble(output.percentTraffic),
15752
- stageVariableOverrides: output.stageVariableOverrides !== undefined && output.stageVariableOverrides !== null
15631
+ stageVariableOverrides: output.stageVariableOverrides != null
15753
15632
  ? deserializeAws_restJson1MapOfStringToString(output.stageVariableOverrides, context)
15754
15633
  : undefined,
15755
15634
  useStageCache: __expectBoolean(output.useStageCache),
@@ -15758,25 +15637,23 @@ var deserializeAws_restJson1CanarySettings = function (output, context) {
15758
15637
  var deserializeAws_restJson1ClientCertificate = function (output, context) {
15759
15638
  return {
15760
15639
  clientCertificateId: __expectString(output.clientCertificateId),
15761
- createdDate: output.createdDate !== undefined && output.createdDate !== null
15640
+ createdDate: output.createdDate != null
15762
15641
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdDate)))
15763
15642
  : undefined,
15764
15643
  description: __expectString(output.description),
15765
- expirationDate: output.expirationDate !== undefined && output.expirationDate !== null
15644
+ expirationDate: output.expirationDate != null
15766
15645
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.expirationDate)))
15767
15646
  : undefined,
15768
15647
  pemEncodedCertificate: __expectString(output.pemEncodedCertificate),
15769
- tags: output.tags !== undefined && output.tags !== null
15770
- ? deserializeAws_restJson1MapOfStringToString(output.tags, context)
15771
- : undefined,
15648
+ tags: output.tags != null ? deserializeAws_restJson1MapOfStringToString(output.tags, context) : undefined,
15772
15649
  };
15773
15650
  };
15774
15651
  var deserializeAws_restJson1Deployment = function (output, context) {
15775
15652
  return {
15776
- apiSummary: output.apiSummary !== undefined && output.apiSummary !== null
15653
+ apiSummary: output.apiSummary != null
15777
15654
  ? deserializeAws_restJson1PathToMapOfMethodSnapshot(output.apiSummary, context)
15778
15655
  : undefined,
15779
- createdDate: output.createdDate !== undefined && output.createdDate !== null
15656
+ createdDate: output.createdDate != null
15780
15657
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdDate)))
15781
15658
  : undefined,
15782
15659
  description: __expectString(output.description),
@@ -15786,9 +15663,7 @@ var deserializeAws_restJson1Deployment = function (output, context) {
15786
15663
  var deserializeAws_restJson1DocumentationPart = function (output, context) {
15787
15664
  return {
15788
15665
  id: __expectString(output.id),
15789
- location: output.location !== undefined && output.location !== null
15790
- ? deserializeAws_restJson1DocumentationPartLocation(output.location, context)
15791
- : undefined,
15666
+ location: output.location != null ? deserializeAws_restJson1DocumentationPartLocation(output.location, context) : undefined,
15792
15667
  properties: __expectString(output.properties),
15793
15668
  };
15794
15669
  };
@@ -15803,7 +15678,7 @@ var deserializeAws_restJson1DocumentationPartLocation = function (output, contex
15803
15678
  };
15804
15679
  var deserializeAws_restJson1DocumentationVersion = function (output, context) {
15805
15680
  return {
15806
- createdDate: output.createdDate !== undefined && output.createdDate !== null
15681
+ createdDate: output.createdDate != null
15807
15682
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdDate)))
15808
15683
  : undefined,
15809
15684
  description: __expectString(output.description),
@@ -15814,7 +15689,7 @@ var deserializeAws_restJson1DomainName = function (output, context) {
15814
15689
  return {
15815
15690
  certificateArn: __expectString(output.certificateArn),
15816
15691
  certificateName: __expectString(output.certificateName),
15817
- certificateUploadDate: output.certificateUploadDate !== undefined && output.certificateUploadDate !== null
15692
+ certificateUploadDate: output.certificateUploadDate != null
15818
15693
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.certificateUploadDate)))
15819
15694
  : undefined,
15820
15695
  distributionDomainName: __expectString(output.distributionDomainName),
@@ -15822,10 +15697,10 @@ var deserializeAws_restJson1DomainName = function (output, context) {
15822
15697
  domainName: __expectString(output.domainName),
15823
15698
  domainNameStatus: __expectString(output.domainNameStatus),
15824
15699
  domainNameStatusMessage: __expectString(output.domainNameStatusMessage),
15825
- endpointConfiguration: output.endpointConfiguration !== undefined && output.endpointConfiguration !== null
15700
+ endpointConfiguration: output.endpointConfiguration != null
15826
15701
  ? deserializeAws_restJson1EndpointConfiguration(output.endpointConfiguration, context)
15827
15702
  : undefined,
15828
- mutualTlsAuthentication: output.mutualTlsAuthentication !== undefined && output.mutualTlsAuthentication !== null
15703
+ mutualTlsAuthentication: output.mutualTlsAuthentication != null
15829
15704
  ? deserializeAws_restJson1MutualTlsAuthentication(output.mutualTlsAuthentication, context)
15830
15705
  : undefined,
15831
15706
  ownershipVerificationCertificateArn: __expectString(output.ownershipVerificationCertificateArn),
@@ -15834,28 +15709,22 @@ var deserializeAws_restJson1DomainName = function (output, context) {
15834
15709
  regionalDomainName: __expectString(output.regionalDomainName),
15835
15710
  regionalHostedZoneId: __expectString(output.regionalHostedZoneId),
15836
15711
  securityPolicy: __expectString(output.securityPolicy),
15837
- tags: output.tags !== undefined && output.tags !== null
15838
- ? deserializeAws_restJson1MapOfStringToString(output.tags, context)
15839
- : undefined,
15712
+ tags: output.tags != null ? deserializeAws_restJson1MapOfStringToString(output.tags, context) : undefined,
15840
15713
  };
15841
15714
  };
15842
15715
  var deserializeAws_restJson1EndpointConfiguration = function (output, context) {
15843
15716
  return {
15844
- types: output.types !== undefined && output.types !== null
15845
- ? deserializeAws_restJson1ListOfEndpointType(output.types, context)
15846
- : undefined,
15847
- vpcEndpointIds: output.vpcEndpointIds !== undefined && output.vpcEndpointIds !== null
15848
- ? deserializeAws_restJson1ListOfString(output.vpcEndpointIds, context)
15849
- : undefined,
15717
+ types: output.types != null ? deserializeAws_restJson1ListOfEndpointType(output.types, context) : undefined,
15718
+ vpcEndpointIds: output.vpcEndpointIds != null ? deserializeAws_restJson1ListOfString(output.vpcEndpointIds, context) : undefined,
15850
15719
  };
15851
15720
  };
15852
15721
  var deserializeAws_restJson1GatewayResponse = function (output, context) {
15853
15722
  return {
15854
15723
  defaultResponse: __expectBoolean(output.defaultResponse),
15855
- responseParameters: output.responseParameters !== undefined && output.responseParameters !== null
15724
+ responseParameters: output.responseParameters != null
15856
15725
  ? deserializeAws_restJson1MapOfStringToString(output.responseParameters, context)
15857
15726
  : undefined,
15858
- responseTemplates: output.responseTemplates !== undefined && output.responseTemplates !== null
15727
+ responseTemplates: output.responseTemplates != null
15859
15728
  ? deserializeAws_restJson1MapOfStringToString(output.responseTemplates, context)
15860
15729
  : undefined,
15861
15730
  responseType: __expectString(output.responseType),
@@ -15864,7 +15733,7 @@ var deserializeAws_restJson1GatewayResponse = function (output, context) {
15864
15733
  };
15865
15734
  var deserializeAws_restJson1Integration = function (output, context) {
15866
15735
  return {
15867
- cacheKeyParameters: output.cacheKeyParameters !== undefined && output.cacheKeyParameters !== null
15736
+ cacheKeyParameters: output.cacheKeyParameters != null
15868
15737
  ? deserializeAws_restJson1ListOfString(output.cacheKeyParameters, context)
15869
15738
  : undefined,
15870
15739
  cacheNamespace: __expectString(output.cacheNamespace),
@@ -15873,20 +15742,18 @@ var deserializeAws_restJson1Integration = function (output, context) {
15873
15742
  contentHandling: __expectString(output.contentHandling),
15874
15743
  credentials: __expectString(output.credentials),
15875
15744
  httpMethod: __expectString(output.httpMethod),
15876
- integrationResponses: output.integrationResponses !== undefined && output.integrationResponses !== null
15745
+ integrationResponses: output.integrationResponses != null
15877
15746
  ? deserializeAws_restJson1MapOfIntegrationResponse(output.integrationResponses, context)
15878
15747
  : undefined,
15879
15748
  passthroughBehavior: __expectString(output.passthroughBehavior),
15880
- requestParameters: output.requestParameters !== undefined && output.requestParameters !== null
15749
+ requestParameters: output.requestParameters != null
15881
15750
  ? deserializeAws_restJson1MapOfStringToString(output.requestParameters, context)
15882
15751
  : undefined,
15883
- requestTemplates: output.requestTemplates !== undefined && output.requestTemplates !== null
15752
+ requestTemplates: output.requestTemplates != null
15884
15753
  ? deserializeAws_restJson1MapOfStringToString(output.requestTemplates, context)
15885
15754
  : undefined,
15886
15755
  timeoutInMillis: __expectInt32(output.timeoutInMillis),
15887
- tlsConfig: output.tlsConfig !== undefined && output.tlsConfig !== null
15888
- ? deserializeAws_restJson1TlsConfig(output.tlsConfig, context)
15889
- : undefined,
15756
+ tlsConfig: output.tlsConfig != null ? deserializeAws_restJson1TlsConfig(output.tlsConfig, context) : undefined,
15890
15757
  type: __expectString(output.type),
15891
15758
  uri: __expectString(output.uri),
15892
15759
  };
@@ -15894,10 +15761,10 @@ var deserializeAws_restJson1Integration = function (output, context) {
15894
15761
  var deserializeAws_restJson1IntegrationResponse = function (output, context) {
15895
15762
  return {
15896
15763
  contentHandling: __expectString(output.contentHandling),
15897
- responseParameters: output.responseParameters !== undefined && output.responseParameters !== null
15764
+ responseParameters: output.responseParameters != null
15898
15765
  ? deserializeAws_restJson1MapOfStringToString(output.responseParameters, context)
15899
15766
  : undefined,
15900
- responseTemplates: output.responseTemplates !== undefined && output.responseTemplates !== null
15767
+ responseTemplates: output.responseTemplates != null
15901
15768
  ? deserializeAws_restJson1MapOfStringToString(output.responseTemplates, context)
15902
15769
  : undefined,
15903
15770
  selectionPattern: __expectString(output.selectionPattern),
@@ -16282,23 +16149,23 @@ var deserializeAws_restJson1MapOfStringToString = function (output, context) {
16282
16149
  var deserializeAws_restJson1Method = function (output, context) {
16283
16150
  return {
16284
16151
  apiKeyRequired: __expectBoolean(output.apiKeyRequired),
16285
- authorizationScopes: output.authorizationScopes !== undefined && output.authorizationScopes !== null
16152
+ authorizationScopes: output.authorizationScopes != null
16286
16153
  ? deserializeAws_restJson1ListOfString(output.authorizationScopes, context)
16287
16154
  : undefined,
16288
16155
  authorizationType: __expectString(output.authorizationType),
16289
16156
  authorizerId: __expectString(output.authorizerId),
16290
16157
  httpMethod: __expectString(output.httpMethod),
16291
- methodIntegration: output.methodIntegration !== undefined && output.methodIntegration !== null
16158
+ methodIntegration: output.methodIntegration != null
16292
16159
  ? deserializeAws_restJson1Integration(output.methodIntegration, context)
16293
16160
  : undefined,
16294
- methodResponses: output.methodResponses !== undefined && output.methodResponses !== null
16161
+ methodResponses: output.methodResponses != null
16295
16162
  ? deserializeAws_restJson1MapOfMethodResponse(output.methodResponses, context)
16296
16163
  : undefined,
16297
16164
  operationName: __expectString(output.operationName),
16298
- requestModels: output.requestModels !== undefined && output.requestModels !== null
16165
+ requestModels: output.requestModels != null
16299
16166
  ? deserializeAws_restJson1MapOfStringToString(output.requestModels, context)
16300
16167
  : undefined,
16301
- requestParameters: output.requestParameters !== undefined && output.requestParameters !== null
16168
+ requestParameters: output.requestParameters != null
16302
16169
  ? deserializeAws_restJson1MapOfStringToBoolean(output.requestParameters, context)
16303
16170
  : undefined,
16304
16171
  requestValidatorId: __expectString(output.requestValidatorId),
@@ -16306,10 +16173,10 @@ var deserializeAws_restJson1Method = function (output, context) {
16306
16173
  };
16307
16174
  var deserializeAws_restJson1MethodResponse = function (output, context) {
16308
16175
  return {
16309
- responseModels: output.responseModels !== undefined && output.responseModels !== null
16176
+ responseModels: output.responseModels != null
16310
16177
  ? deserializeAws_restJson1MapOfStringToString(output.responseModels, context)
16311
16178
  : undefined,
16312
- responseParameters: output.responseParameters !== undefined && output.responseParameters !== null
16179
+ responseParameters: output.responseParameters != null
16313
16180
  ? deserializeAws_restJson1MapOfStringToBoolean(output.responseParameters, context)
16314
16181
  : undefined,
16315
16182
  statusCode: __expectString(output.statusCode),
@@ -16348,7 +16215,7 @@ var deserializeAws_restJson1MutualTlsAuthentication = function (output, context)
16348
16215
  return {
16349
16216
  truststoreUri: __expectString(output.truststoreUri),
16350
16217
  truststoreVersion: __expectString(output.truststoreVersion),
16351
- truststoreWarnings: output.truststoreWarnings !== undefined && output.truststoreWarnings !== null
16218
+ truststoreWarnings: output.truststoreWarnings != null
16352
16219
  ? deserializeAws_restJson1ListOfString(output.truststoreWarnings, context)
16353
16220
  : undefined,
16354
16221
  };
@@ -16384,36 +16251,30 @@ var deserializeAws_restJson1Resource = function (output, context) {
16384
16251
  parentId: __expectString(output.parentId),
16385
16252
  path: __expectString(output.path),
16386
16253
  pathPart: __expectString(output.pathPart),
16387
- resourceMethods: output.resourceMethods !== undefined && output.resourceMethods !== null
16388
- ? deserializeAws_restJson1MapOfMethod(output.resourceMethods, context)
16389
- : undefined,
16254
+ resourceMethods: output.resourceMethods != null ? deserializeAws_restJson1MapOfMethod(output.resourceMethods, context) : undefined,
16390
16255
  };
16391
16256
  };
16392
16257
  var deserializeAws_restJson1RestApi = function (output, context) {
16393
16258
  return {
16394
16259
  apiKeySource: __expectString(output.apiKeySource),
16395
- binaryMediaTypes: output.binaryMediaTypes !== undefined && output.binaryMediaTypes !== null
16260
+ binaryMediaTypes: output.binaryMediaTypes != null
16396
16261
  ? deserializeAws_restJson1ListOfString(output.binaryMediaTypes, context)
16397
16262
  : undefined,
16398
- createdDate: output.createdDate !== undefined && output.createdDate !== null
16263
+ createdDate: output.createdDate != null
16399
16264
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdDate)))
16400
16265
  : undefined,
16401
16266
  description: __expectString(output.description),
16402
16267
  disableExecuteApiEndpoint: __expectBoolean(output.disableExecuteApiEndpoint),
16403
- endpointConfiguration: output.endpointConfiguration !== undefined && output.endpointConfiguration !== null
16268
+ endpointConfiguration: output.endpointConfiguration != null
16404
16269
  ? deserializeAws_restJson1EndpointConfiguration(output.endpointConfiguration, context)
16405
16270
  : undefined,
16406
16271
  id: __expectString(output.id),
16407
16272
  minimumCompressionSize: __expectInt32(output.minimumCompressionSize),
16408
16273
  name: __expectString(output.name),
16409
16274
  policy: __expectString(output.policy),
16410
- tags: output.tags !== undefined && output.tags !== null
16411
- ? deserializeAws_restJson1MapOfStringToString(output.tags, context)
16412
- : undefined,
16275
+ tags: output.tags != null ? deserializeAws_restJson1MapOfStringToString(output.tags, context) : undefined,
16413
16276
  version: __expectString(output.version),
16414
- warnings: output.warnings !== undefined && output.warnings !== null
16415
- ? deserializeAws_restJson1ListOfString(output.warnings, context)
16416
- : undefined,
16277
+ warnings: output.warnings != null ? deserializeAws_restJson1ListOfString(output.warnings, context) : undefined,
16417
16278
  };
16418
16279
  };
16419
16280
  var deserializeAws_restJson1SdkConfigurationProperty = function (output, context) {
@@ -16427,7 +16288,7 @@ var deserializeAws_restJson1SdkConfigurationProperty = function (output, context
16427
16288
  };
16428
16289
  var deserializeAws_restJson1SdkType = function (output, context) {
16429
16290
  return {
16430
- configurationProperties: output.configurationProperties !== undefined && output.configurationProperties !== null
16291
+ configurationProperties: output.configurationProperties != null
16431
16292
  ? deserializeAws_restJson1ListOfSdkConfigurationProperty(output.configurationProperties, context)
16432
16293
  : undefined,
16433
16294
  description: __expectString(output.description),
@@ -16437,36 +16298,32 @@ var deserializeAws_restJson1SdkType = function (output, context) {
16437
16298
  };
16438
16299
  var deserializeAws_restJson1Stage = function (output, context) {
16439
16300
  return {
16440
- accessLogSettings: output.accessLogSettings !== undefined && output.accessLogSettings !== null
16301
+ accessLogSettings: output.accessLogSettings != null
16441
16302
  ? deserializeAws_restJson1AccessLogSettings(output.accessLogSettings, context)
16442
16303
  : undefined,
16443
16304
  cacheClusterEnabled: __expectBoolean(output.cacheClusterEnabled),
16444
16305
  cacheClusterSize: __expectString(output.cacheClusterSize),
16445
16306
  cacheClusterStatus: __expectString(output.cacheClusterStatus),
16446
- canarySettings: output.canarySettings !== undefined && output.canarySettings !== null
16307
+ canarySettings: output.canarySettings != null
16447
16308
  ? deserializeAws_restJson1CanarySettings(output.canarySettings, context)
16448
16309
  : undefined,
16449
16310
  clientCertificateId: __expectString(output.clientCertificateId),
16450
- createdDate: output.createdDate !== undefined && output.createdDate !== null
16311
+ createdDate: output.createdDate != null
16451
16312
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdDate)))
16452
16313
  : undefined,
16453
16314
  deploymentId: __expectString(output.deploymentId),
16454
16315
  description: __expectString(output.description),
16455
16316
  documentationVersion: __expectString(output.documentationVersion),
16456
- lastUpdatedDate: output.lastUpdatedDate !== undefined && output.lastUpdatedDate !== null
16317
+ lastUpdatedDate: output.lastUpdatedDate != null
16457
16318
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedDate)))
16458
16319
  : undefined,
16459
- methodSettings: output.methodSettings !== undefined && output.methodSettings !== null
16320
+ methodSettings: output.methodSettings != null
16460
16321
  ? deserializeAws_restJson1MapOfMethodSettings(output.methodSettings, context)
16461
16322
  : undefined,
16462
16323
  stageName: __expectString(output.stageName),
16463
- tags: output.tags !== undefined && output.tags !== null
16464
- ? deserializeAws_restJson1MapOfStringToString(output.tags, context)
16465
- : undefined,
16324
+ tags: output.tags != null ? deserializeAws_restJson1MapOfStringToString(output.tags, context) : undefined,
16466
16325
  tracingEnabled: __expectBoolean(output.tracingEnabled),
16467
- variables: output.variables !== undefined && output.variables !== null
16468
- ? deserializeAws_restJson1MapOfStringToString(output.variables, context)
16469
- : undefined,
16326
+ variables: output.variables != null ? deserializeAws_restJson1MapOfStringToString(output.variables, context) : undefined,
16470
16327
  webAclArn: __expectString(output.webAclArn),
16471
16328
  };
16472
16329
  };
@@ -16483,22 +16340,14 @@ var deserializeAws_restJson1TlsConfig = function (output, context) {
16483
16340
  };
16484
16341
  var deserializeAws_restJson1UsagePlan = function (output, context) {
16485
16342
  return {
16486
- apiStages: output.apiStages !== undefined && output.apiStages !== null
16487
- ? deserializeAws_restJson1ListOfApiStage(output.apiStages, context)
16488
- : undefined,
16343
+ apiStages: output.apiStages != null ? deserializeAws_restJson1ListOfApiStage(output.apiStages, context) : undefined,
16489
16344
  description: __expectString(output.description),
16490
16345
  id: __expectString(output.id),
16491
16346
  name: __expectString(output.name),
16492
16347
  productCode: __expectString(output.productCode),
16493
- quota: output.quota !== undefined && output.quota !== null
16494
- ? deserializeAws_restJson1QuotaSettings(output.quota, context)
16495
- : undefined,
16496
- tags: output.tags !== undefined && output.tags !== null
16497
- ? deserializeAws_restJson1MapOfStringToString(output.tags, context)
16498
- : undefined,
16499
- throttle: output.throttle !== undefined && output.throttle !== null
16500
- ? deserializeAws_restJson1ThrottleSettings(output.throttle, context)
16501
- : undefined,
16348
+ quota: output.quota != null ? deserializeAws_restJson1QuotaSettings(output.quota, context) : undefined,
16349
+ tags: output.tags != null ? deserializeAws_restJson1MapOfStringToString(output.tags, context) : undefined,
16350
+ throttle: output.throttle != null ? deserializeAws_restJson1ThrottleSettings(output.throttle, context) : undefined,
16502
16351
  };
16503
16352
  };
16504
16353
  var deserializeAws_restJson1UsagePlanKey = function (output, context) {
@@ -16516,12 +16365,8 @@ var deserializeAws_restJson1VpcLink = function (output, context) {
16516
16365
  name: __expectString(output.name),
16517
16366
  status: __expectString(output.status),
16518
16367
  statusMessage: __expectString(output.statusMessage),
16519
- tags: output.tags !== undefined && output.tags !== null
16520
- ? deserializeAws_restJson1MapOfStringToString(output.tags, context)
16521
- : undefined,
16522
- targetArns: output.targetArns !== undefined && output.targetArns !== null
16523
- ? deserializeAws_restJson1ListOfString(output.targetArns, context)
16524
- : undefined,
16368
+ tags: output.tags != null ? deserializeAws_restJson1MapOfStringToString(output.tags, context) : undefined,
16369
+ targetArns: output.targetArns != null ? deserializeAws_restJson1ListOfString(output.targetArns, context) : undefined,
16525
16370
  };
16526
16371
  };
16527
16372
  var deserializeMetadata = function (output) {
@@ -16562,6 +16407,9 @@ var loadRestJsonErrorCode = function (output, data) {
16562
16407
  var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
16563
16408
  var sanitizeErrorCode = function (rawValue) {
16564
16409
  var cleanValue = rawValue;
16410
+ if (typeof cleanValue === "number") {
16411
+ cleanValue = cleanValue.toString();
16412
+ }
16565
16413
  if (cleanValue.indexOf(":") >= 0) {
16566
16414
  cleanValue = cleanValue.split(":")[0];
16567
16415
  }