@aws-sdk/client-apigatewayv2 3.121.0 → 3.127.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.
@@ -15,27 +15,21 @@ const serializeAws_restJson1CreateApiCommand = async (input, context) => {
15
15
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2/apis";
16
16
  let body;
17
17
  body = JSON.stringify({
18
- ...(input.ApiKeySelectionExpression !== undefined &&
19
- input.ApiKeySelectionExpression !== null && { apiKeySelectionExpression: input.ApiKeySelectionExpression }),
20
- ...(input.CorsConfiguration !== undefined &&
21
- input.CorsConfiguration !== null && {
18
+ ...(input.ApiKeySelectionExpression != null && { apiKeySelectionExpression: input.ApiKeySelectionExpression }),
19
+ ...(input.CorsConfiguration != null && {
22
20
  corsConfiguration: serializeAws_restJson1Cors(input.CorsConfiguration, context),
23
21
  }),
24
- ...(input.CredentialsArn !== undefined &&
25
- input.CredentialsArn !== null && { credentialsArn: input.CredentialsArn }),
26
- ...(input.Description !== undefined && input.Description !== null && { description: input.Description }),
27
- ...(input.DisableExecuteApiEndpoint !== undefined &&
28
- input.DisableExecuteApiEndpoint !== null && { disableExecuteApiEndpoint: input.DisableExecuteApiEndpoint }),
29
- ...(input.DisableSchemaValidation !== undefined &&
30
- input.DisableSchemaValidation !== null && { disableSchemaValidation: input.DisableSchemaValidation }),
31
- ...(input.Name !== undefined && input.Name !== null && { name: input.Name }),
32
- ...(input.ProtocolType !== undefined && input.ProtocolType !== null && { protocolType: input.ProtocolType }),
33
- ...(input.RouteKey !== undefined && input.RouteKey !== null && { routeKey: input.RouteKey }),
34
- ...(input.RouteSelectionExpression !== undefined &&
35
- input.RouteSelectionExpression !== null && { routeSelectionExpression: input.RouteSelectionExpression }),
36
- ...(input.Tags !== undefined && input.Tags !== null && { tags: serializeAws_restJson1Tags(input.Tags, context) }),
37
- ...(input.Target !== undefined && input.Target !== null && { target: input.Target }),
38
- ...(input.Version !== undefined && input.Version !== null && { version: input.Version }),
22
+ ...(input.CredentialsArn != null && { credentialsArn: input.CredentialsArn }),
23
+ ...(input.Description != null && { description: input.Description }),
24
+ ...(input.DisableExecuteApiEndpoint != null && { disableExecuteApiEndpoint: input.DisableExecuteApiEndpoint }),
25
+ ...(input.DisableSchemaValidation != null && { disableSchemaValidation: input.DisableSchemaValidation }),
26
+ ...(input.Name != null && { name: input.Name }),
27
+ ...(input.ProtocolType != null && { protocolType: input.ProtocolType }),
28
+ ...(input.RouteKey != null && { routeKey: input.RouteKey }),
29
+ ...(input.RouteSelectionExpression != null && { routeSelectionExpression: input.RouteSelectionExpression }),
30
+ ...(input.Tags != null && { tags: serializeAws_restJson1Tags(input.Tags, context) }),
31
+ ...(input.Target != null && { target: input.Target }),
32
+ ...(input.Version != null && { version: input.Version }),
39
33
  });
40
34
  return new protocol_http_1.HttpRequest({
41
35
  protocol,
@@ -66,9 +60,9 @@ const serializeAws_restJson1CreateApiMappingCommand = async (input, context) =>
66
60
  }
67
61
  let body;
68
62
  body = JSON.stringify({
69
- ...(input.ApiId !== undefined && input.ApiId !== null && { apiId: input.ApiId }),
70
- ...(input.ApiMappingKey !== undefined && input.ApiMappingKey !== null && { apiMappingKey: input.ApiMappingKey }),
71
- ...(input.Stage !== undefined && input.Stage !== null && { stage: input.Stage }),
63
+ ...(input.ApiId != null && { apiId: input.ApiId }),
64
+ ...(input.ApiMappingKey != null && { apiMappingKey: input.ApiMappingKey }),
65
+ ...(input.Stage != null && { stage: input.Stage }),
72
66
  });
73
67
  return new protocol_http_1.HttpRequest({
74
68
  protocol,
@@ -99,34 +93,26 @@ const serializeAws_restJson1CreateAuthorizerCommand = async (input, context) =>
99
93
  }
100
94
  let body;
101
95
  body = JSON.stringify({
102
- ...(input.AuthorizerCredentialsArn !== undefined &&
103
- input.AuthorizerCredentialsArn !== null && { authorizerCredentialsArn: input.AuthorizerCredentialsArn }),
104
- ...(input.AuthorizerPayloadFormatVersion !== undefined &&
105
- input.AuthorizerPayloadFormatVersion !== null && {
96
+ ...(input.AuthorizerCredentialsArn != null && { authorizerCredentialsArn: input.AuthorizerCredentialsArn }),
97
+ ...(input.AuthorizerPayloadFormatVersion != null && {
106
98
  authorizerPayloadFormatVersion: input.AuthorizerPayloadFormatVersion,
107
99
  }),
108
- ...(input.AuthorizerResultTtlInSeconds !== undefined &&
109
- input.AuthorizerResultTtlInSeconds !== null && {
100
+ ...(input.AuthorizerResultTtlInSeconds != null && {
110
101
  authorizerResultTtlInSeconds: input.AuthorizerResultTtlInSeconds,
111
102
  }),
112
- ...(input.AuthorizerType !== undefined &&
113
- input.AuthorizerType !== null && { authorizerType: input.AuthorizerType }),
114
- ...(input.AuthorizerUri !== undefined && input.AuthorizerUri !== null && { authorizerUri: input.AuthorizerUri }),
115
- ...(input.EnableSimpleResponses !== undefined &&
116
- input.EnableSimpleResponses !== null && { enableSimpleResponses: input.EnableSimpleResponses }),
117
- ...(input.IdentitySource !== undefined &&
118
- input.IdentitySource !== null && {
103
+ ...(input.AuthorizerType != null && { authorizerType: input.AuthorizerType }),
104
+ ...(input.AuthorizerUri != null && { authorizerUri: input.AuthorizerUri }),
105
+ ...(input.EnableSimpleResponses != null && { enableSimpleResponses: input.EnableSimpleResponses }),
106
+ ...(input.IdentitySource != null && {
119
107
  identitySource: serializeAws_restJson1IdentitySourceList(input.IdentitySource, context),
120
108
  }),
121
- ...(input.IdentityValidationExpression !== undefined &&
122
- input.IdentityValidationExpression !== null && {
109
+ ...(input.IdentityValidationExpression != null && {
123
110
  identityValidationExpression: input.IdentityValidationExpression,
124
111
  }),
125
- ...(input.JwtConfiguration !== undefined &&
126
- input.JwtConfiguration !== null && {
112
+ ...(input.JwtConfiguration != null && {
127
113
  jwtConfiguration: serializeAws_restJson1JWTConfiguration(input.JwtConfiguration, context),
128
114
  }),
129
- ...(input.Name !== undefined && input.Name !== null && { name: input.Name }),
115
+ ...(input.Name != null && { name: input.Name }),
130
116
  });
131
117
  return new protocol_http_1.HttpRequest({
132
118
  protocol,
@@ -157,8 +143,8 @@ const serializeAws_restJson1CreateDeploymentCommand = async (input, context) =>
157
143
  }
158
144
  let body;
159
145
  body = JSON.stringify({
160
- ...(input.Description !== undefined && input.Description !== null && { description: input.Description }),
161
- ...(input.StageName !== undefined && input.StageName !== null && { stageName: input.StageName }),
146
+ ...(input.Description != null && { description: input.Description }),
147
+ ...(input.StageName != null && { stageName: input.StageName }),
162
148
  });
163
149
  return new protocol_http_1.HttpRequest({
164
150
  protocol,
@@ -179,16 +165,14 @@ const serializeAws_restJson1CreateDomainNameCommand = async (input, context) =>
179
165
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2/domainnames";
180
166
  let body;
181
167
  body = JSON.stringify({
182
- ...(input.DomainName !== undefined && input.DomainName !== null && { domainName: input.DomainName }),
183
- ...(input.DomainNameConfigurations !== undefined &&
184
- input.DomainNameConfigurations !== null && {
168
+ ...(input.DomainName != null && { domainName: input.DomainName }),
169
+ ...(input.DomainNameConfigurations != null && {
185
170
  domainNameConfigurations: serializeAws_restJson1DomainNameConfigurations(input.DomainNameConfigurations, context),
186
171
  }),
187
- ...(input.MutualTlsAuthentication !== undefined &&
188
- input.MutualTlsAuthentication !== null && {
172
+ ...(input.MutualTlsAuthentication != null && {
189
173
  mutualTlsAuthentication: serializeAws_restJson1MutualTlsAuthenticationInput(input.MutualTlsAuthentication, context),
190
174
  }),
191
- ...(input.Tags !== undefined && input.Tags !== null && { tags: serializeAws_restJson1Tags(input.Tags, context) }),
175
+ ...(input.Tags != null && { tags: serializeAws_restJson1Tags(input.Tags, context) }),
192
176
  });
193
177
  return new protocol_http_1.HttpRequest({
194
178
  protocol,
@@ -219,44 +203,31 @@ const serializeAws_restJson1CreateIntegrationCommand = async (input, context) =>
219
203
  }
220
204
  let body;
221
205
  body = JSON.stringify({
222
- ...(input.ConnectionId !== undefined && input.ConnectionId !== null && { connectionId: input.ConnectionId }),
223
- ...(input.ConnectionType !== undefined &&
224
- input.ConnectionType !== null && { connectionType: input.ConnectionType }),
225
- ...(input.ContentHandlingStrategy !== undefined &&
226
- input.ContentHandlingStrategy !== null && { contentHandlingStrategy: input.ContentHandlingStrategy }),
227
- ...(input.CredentialsArn !== undefined &&
228
- input.CredentialsArn !== null && { credentialsArn: input.CredentialsArn }),
229
- ...(input.Description !== undefined && input.Description !== null && { description: input.Description }),
230
- ...(input.IntegrationMethod !== undefined &&
231
- input.IntegrationMethod !== null && { integrationMethod: input.IntegrationMethod }),
232
- ...(input.IntegrationSubtype !== undefined &&
233
- input.IntegrationSubtype !== null && { integrationSubtype: input.IntegrationSubtype }),
234
- ...(input.IntegrationType !== undefined &&
235
- input.IntegrationType !== null && { integrationType: input.IntegrationType }),
236
- ...(input.IntegrationUri !== undefined &&
237
- input.IntegrationUri !== null && { integrationUri: input.IntegrationUri }),
238
- ...(input.PassthroughBehavior !== undefined &&
239
- input.PassthroughBehavior !== null && { passthroughBehavior: input.PassthroughBehavior }),
240
- ...(input.PayloadFormatVersion !== undefined &&
241
- input.PayloadFormatVersion !== null && { payloadFormatVersion: input.PayloadFormatVersion }),
242
- ...(input.RequestParameters !== undefined &&
243
- input.RequestParameters !== null && {
206
+ ...(input.ConnectionId != null && { connectionId: input.ConnectionId }),
207
+ ...(input.ConnectionType != null && { connectionType: input.ConnectionType }),
208
+ ...(input.ContentHandlingStrategy != null && { contentHandlingStrategy: input.ContentHandlingStrategy }),
209
+ ...(input.CredentialsArn != null && { credentialsArn: input.CredentialsArn }),
210
+ ...(input.Description != null && { description: input.Description }),
211
+ ...(input.IntegrationMethod != null && { integrationMethod: input.IntegrationMethod }),
212
+ ...(input.IntegrationSubtype != null && { integrationSubtype: input.IntegrationSubtype }),
213
+ ...(input.IntegrationType != null && { integrationType: input.IntegrationType }),
214
+ ...(input.IntegrationUri != null && { integrationUri: input.IntegrationUri }),
215
+ ...(input.PassthroughBehavior != null && { passthroughBehavior: input.PassthroughBehavior }),
216
+ ...(input.PayloadFormatVersion != null && { payloadFormatVersion: input.PayloadFormatVersion }),
217
+ ...(input.RequestParameters != null && {
244
218
  requestParameters: serializeAws_restJson1IntegrationParameters(input.RequestParameters, context),
245
219
  }),
246
- ...(input.RequestTemplates !== undefined &&
247
- input.RequestTemplates !== null && {
220
+ ...(input.RequestTemplates != null && {
248
221
  requestTemplates: serializeAws_restJson1TemplateMap(input.RequestTemplates, context),
249
222
  }),
250
- ...(input.ResponseParameters !== undefined &&
251
- input.ResponseParameters !== null && {
223
+ ...(input.ResponseParameters != null && {
252
224
  responseParameters: serializeAws_restJson1ResponseParameters(input.ResponseParameters, context),
253
225
  }),
254
- ...(input.TemplateSelectionExpression !== undefined &&
255
- input.TemplateSelectionExpression !== null && { templateSelectionExpression: input.TemplateSelectionExpression }),
256
- ...(input.TimeoutInMillis !== undefined &&
257
- input.TimeoutInMillis !== null && { timeoutInMillis: input.TimeoutInMillis }),
258
- ...(input.TlsConfig !== undefined &&
259
- input.TlsConfig !== null && { tlsConfig: serializeAws_restJson1TlsConfigInput(input.TlsConfig, context) }),
226
+ ...(input.TemplateSelectionExpression != null && {
227
+ templateSelectionExpression: input.TemplateSelectionExpression,
228
+ }),
229
+ ...(input.TimeoutInMillis != null && { timeoutInMillis: input.TimeoutInMillis }),
230
+ ...(input.TlsConfig != null && { tlsConfig: serializeAws_restJson1TlsConfigInput(input.TlsConfig, context) }),
260
231
  });
261
232
  return new protocol_http_1.HttpRequest({
262
233
  protocol,
@@ -298,20 +269,17 @@ const serializeAws_restJson1CreateIntegrationResponseCommand = async (input, con
298
269
  }
299
270
  let body;
300
271
  body = JSON.stringify({
301
- ...(input.ContentHandlingStrategy !== undefined &&
302
- input.ContentHandlingStrategy !== null && { contentHandlingStrategy: input.ContentHandlingStrategy }),
303
- ...(input.IntegrationResponseKey !== undefined &&
304
- input.IntegrationResponseKey !== null && { integrationResponseKey: input.IntegrationResponseKey }),
305
- ...(input.ResponseParameters !== undefined &&
306
- input.ResponseParameters !== null && {
272
+ ...(input.ContentHandlingStrategy != null && { contentHandlingStrategy: input.ContentHandlingStrategy }),
273
+ ...(input.IntegrationResponseKey != null && { integrationResponseKey: input.IntegrationResponseKey }),
274
+ ...(input.ResponseParameters != null && {
307
275
  responseParameters: serializeAws_restJson1IntegrationParameters(input.ResponseParameters, context),
308
276
  }),
309
- ...(input.ResponseTemplates !== undefined &&
310
- input.ResponseTemplates !== null && {
277
+ ...(input.ResponseTemplates != null && {
311
278
  responseTemplates: serializeAws_restJson1TemplateMap(input.ResponseTemplates, context),
312
279
  }),
313
- ...(input.TemplateSelectionExpression !== undefined &&
314
- input.TemplateSelectionExpression !== null && { templateSelectionExpression: input.TemplateSelectionExpression }),
280
+ ...(input.TemplateSelectionExpression != null && {
281
+ templateSelectionExpression: input.TemplateSelectionExpression,
282
+ }),
315
283
  });
316
284
  return new protocol_http_1.HttpRequest({
317
285
  protocol,
@@ -342,10 +310,10 @@ const serializeAws_restJson1CreateModelCommand = async (input, context) => {
342
310
  }
343
311
  let body;
344
312
  body = JSON.stringify({
345
- ...(input.ContentType !== undefined && input.ContentType !== null && { contentType: input.ContentType }),
346
- ...(input.Description !== undefined && input.Description !== null && { description: input.Description }),
347
- ...(input.Name !== undefined && input.Name !== null && { name: input.Name }),
348
- ...(input.Schema !== undefined && input.Schema !== null && { schema: input.Schema }),
313
+ ...(input.ContentType != null && { contentType: input.ContentType }),
314
+ ...(input.Description != null && { description: input.Description }),
315
+ ...(input.Name != null && { name: input.Name }),
316
+ ...(input.Schema != null && { schema: input.Schema }),
349
317
  });
350
318
  return new protocol_http_1.HttpRequest({
351
319
  protocol,
@@ -376,32 +344,25 @@ const serializeAws_restJson1CreateRouteCommand = async (input, context) => {
376
344
  }
377
345
  let body;
378
346
  body = JSON.stringify({
379
- ...(input.ApiKeyRequired !== undefined &&
380
- input.ApiKeyRequired !== null && { apiKeyRequired: input.ApiKeyRequired }),
381
- ...(input.AuthorizationScopes !== undefined &&
382
- input.AuthorizationScopes !== null && {
347
+ ...(input.ApiKeyRequired != null && { apiKeyRequired: input.ApiKeyRequired }),
348
+ ...(input.AuthorizationScopes != null && {
383
349
  authorizationScopes: serializeAws_restJson1AuthorizationScopes(input.AuthorizationScopes, context),
384
350
  }),
385
- ...(input.AuthorizationType !== undefined &&
386
- input.AuthorizationType !== null && { authorizationType: input.AuthorizationType }),
387
- ...(input.AuthorizerId !== undefined && input.AuthorizerId !== null && { authorizerId: input.AuthorizerId }),
388
- ...(input.ModelSelectionExpression !== undefined &&
389
- input.ModelSelectionExpression !== null && { modelSelectionExpression: input.ModelSelectionExpression }),
390
- ...(input.OperationName !== undefined && input.OperationName !== null && { operationName: input.OperationName }),
391
- ...(input.RequestModels !== undefined &&
392
- input.RequestModels !== null && {
351
+ ...(input.AuthorizationType != null && { authorizationType: input.AuthorizationType }),
352
+ ...(input.AuthorizerId != null && { authorizerId: input.AuthorizerId }),
353
+ ...(input.ModelSelectionExpression != null && { modelSelectionExpression: input.ModelSelectionExpression }),
354
+ ...(input.OperationName != null && { operationName: input.OperationName }),
355
+ ...(input.RequestModels != null && {
393
356
  requestModels: serializeAws_restJson1RouteModels(input.RequestModels, context),
394
357
  }),
395
- ...(input.RequestParameters !== undefined &&
396
- input.RequestParameters !== null && {
358
+ ...(input.RequestParameters != null && {
397
359
  requestParameters: serializeAws_restJson1RouteParameters(input.RequestParameters, context),
398
360
  }),
399
- ...(input.RouteKey !== undefined && input.RouteKey !== null && { routeKey: input.RouteKey }),
400
- ...(input.RouteResponseSelectionExpression !== undefined &&
401
- input.RouteResponseSelectionExpression !== null && {
361
+ ...(input.RouteKey != null && { routeKey: input.RouteKey }),
362
+ ...(input.RouteResponseSelectionExpression != null && {
402
363
  routeResponseSelectionExpression: input.RouteResponseSelectionExpression,
403
364
  }),
404
- ...(input.Target !== undefined && input.Target !== null && { target: input.Target }),
365
+ ...(input.Target != null && { target: input.Target }),
405
366
  });
406
367
  return new protocol_http_1.HttpRequest({
407
368
  protocol,
@@ -443,18 +404,14 @@ const serializeAws_restJson1CreateRouteResponseCommand = async (input, context)
443
404
  }
444
405
  let body;
445
406
  body = JSON.stringify({
446
- ...(input.ModelSelectionExpression !== undefined &&
447
- input.ModelSelectionExpression !== null && { modelSelectionExpression: input.ModelSelectionExpression }),
448
- ...(input.ResponseModels !== undefined &&
449
- input.ResponseModels !== null && {
407
+ ...(input.ModelSelectionExpression != null && { modelSelectionExpression: input.ModelSelectionExpression }),
408
+ ...(input.ResponseModels != null && {
450
409
  responseModels: serializeAws_restJson1RouteModels(input.ResponseModels, context),
451
410
  }),
452
- ...(input.ResponseParameters !== undefined &&
453
- input.ResponseParameters !== null && {
411
+ ...(input.ResponseParameters != null && {
454
412
  responseParameters: serializeAws_restJson1RouteParameters(input.ResponseParameters, context),
455
413
  }),
456
- ...(input.RouteResponseKey !== undefined &&
457
- input.RouteResponseKey !== null && { routeResponseKey: input.RouteResponseKey }),
414
+ ...(input.RouteResponseKey != null && { routeResponseKey: input.RouteResponseKey }),
458
415
  });
459
416
  return new protocol_http_1.HttpRequest({
460
417
  protocol,
@@ -485,29 +442,24 @@ const serializeAws_restJson1CreateStageCommand = async (input, context) => {
485
442
  }
486
443
  let body;
487
444
  body = JSON.stringify({
488
- ...(input.AccessLogSettings !== undefined &&
489
- input.AccessLogSettings !== null && {
445
+ ...(input.AccessLogSettings != null && {
490
446
  accessLogSettings: serializeAws_restJson1AccessLogSettings(input.AccessLogSettings, context),
491
447
  }),
492
- ...(input.AutoDeploy !== undefined && input.AutoDeploy !== null && { autoDeploy: input.AutoDeploy }),
493
- ...(input.ClientCertificateId !== undefined &&
494
- input.ClientCertificateId !== null && { clientCertificateId: input.ClientCertificateId }),
495
- ...(input.DefaultRouteSettings !== undefined &&
496
- input.DefaultRouteSettings !== null && {
448
+ ...(input.AutoDeploy != null && { autoDeploy: input.AutoDeploy }),
449
+ ...(input.ClientCertificateId != null && { clientCertificateId: input.ClientCertificateId }),
450
+ ...(input.DefaultRouteSettings != null && {
497
451
  defaultRouteSettings: serializeAws_restJson1RouteSettings(input.DefaultRouteSettings, context),
498
452
  }),
499
- ...(input.DeploymentId !== undefined && input.DeploymentId !== null && { deploymentId: input.DeploymentId }),
500
- ...(input.Description !== undefined && input.Description !== null && { description: input.Description }),
501
- ...(input.RouteSettings !== undefined &&
502
- input.RouteSettings !== null && {
453
+ ...(input.DeploymentId != null && { deploymentId: input.DeploymentId }),
454
+ ...(input.Description != null && { description: input.Description }),
455
+ ...(input.RouteSettings != null && {
503
456
  routeSettings: serializeAws_restJson1RouteSettingsMap(input.RouteSettings, context),
504
457
  }),
505
- ...(input.StageName !== undefined && input.StageName !== null && { stageName: input.StageName }),
506
- ...(input.StageVariables !== undefined &&
507
- input.StageVariables !== null && {
458
+ ...(input.StageName != null && { stageName: input.StageName }),
459
+ ...(input.StageVariables != null && {
508
460
  stageVariables: serializeAws_restJson1StageVariablesMap(input.StageVariables, context),
509
461
  }),
510
- ...(input.Tags !== undefined && input.Tags !== null && { tags: serializeAws_restJson1Tags(input.Tags, context) }),
462
+ ...(input.Tags != null && { tags: serializeAws_restJson1Tags(input.Tags, context) }),
511
463
  });
512
464
  return new protocol_http_1.HttpRequest({
513
465
  protocol,
@@ -528,14 +480,12 @@ const serializeAws_restJson1CreateVpcLinkCommand = async (input, context) => {
528
480
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2/vpclinks";
529
481
  let body;
530
482
  body = JSON.stringify({
531
- ...(input.Name !== undefined && input.Name !== null && { name: input.Name }),
532
- ...(input.SecurityGroupIds !== undefined &&
533
- input.SecurityGroupIds !== null && {
483
+ ...(input.Name != null && { name: input.Name }),
484
+ ...(input.SecurityGroupIds != null && {
534
485
  securityGroupIds: serializeAws_restJson1SecurityGroupIdList(input.SecurityGroupIds, context),
535
486
  }),
536
- ...(input.SubnetIds !== undefined &&
537
- input.SubnetIds !== null && { subnetIds: serializeAws_restJson1SubnetIdList(input.SubnetIds, context) }),
538
- ...(input.Tags !== undefined && input.Tags !== null && { tags: serializeAws_restJson1Tags(input.Tags, context) }),
487
+ ...(input.SubnetIds != null && { subnetIds: serializeAws_restJson1SubnetIdList(input.SubnetIds, context) }),
488
+ ...(input.Tags != null && { tags: serializeAws_restJson1Tags(input.Tags, context) }),
539
489
  });
540
490
  return new protocol_http_1.HttpRequest({
541
491
  protocol,
@@ -2043,7 +1993,7 @@ const serializeAws_restJson1ImportApiCommand = async (input, context) => {
2043
1993
  };
2044
1994
  let body;
2045
1995
  body = JSON.stringify({
2046
- ...(input.Body !== undefined && input.Body !== null && { body: input.Body }),
1996
+ ...(input.Body != null && { body: input.Body }),
2047
1997
  });
2048
1998
  return new protocol_http_1.HttpRequest({
2049
1999
  protocol,
@@ -2079,7 +2029,7 @@ const serializeAws_restJson1ReimportApiCommand = async (input, context) => {
2079
2029
  };
2080
2030
  let body;
2081
2031
  body = JSON.stringify({
2082
- ...(input.Body !== undefined && input.Body !== null && { body: input.Body }),
2032
+ ...(input.Body != null && { body: input.Body }),
2083
2033
  });
2084
2034
  return new protocol_http_1.HttpRequest({
2085
2035
  protocol,
@@ -2148,7 +2098,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
2148
2098
  }
2149
2099
  let body;
2150
2100
  body = JSON.stringify({
2151
- ...(input.Tags !== undefined && input.Tags !== null && { tags: serializeAws_restJson1Tags(input.Tags, context) }),
2101
+ ...(input.Tags != null && { tags: serializeAws_restJson1Tags(input.Tags, context) }),
2152
2102
  });
2153
2103
  return new protocol_http_1.HttpRequest({
2154
2104
  protocol,
@@ -2209,25 +2159,19 @@ const serializeAws_restJson1UpdateApiCommand = async (input, context) => {
2209
2159
  }
2210
2160
  let body;
2211
2161
  body = JSON.stringify({
2212
- ...(input.ApiKeySelectionExpression !== undefined &&
2213
- input.ApiKeySelectionExpression !== null && { apiKeySelectionExpression: input.ApiKeySelectionExpression }),
2214
- ...(input.CorsConfiguration !== undefined &&
2215
- input.CorsConfiguration !== null && {
2162
+ ...(input.ApiKeySelectionExpression != null && { apiKeySelectionExpression: input.ApiKeySelectionExpression }),
2163
+ ...(input.CorsConfiguration != null && {
2216
2164
  corsConfiguration: serializeAws_restJson1Cors(input.CorsConfiguration, context),
2217
2165
  }),
2218
- ...(input.CredentialsArn !== undefined &&
2219
- input.CredentialsArn !== null && { credentialsArn: input.CredentialsArn }),
2220
- ...(input.Description !== undefined && input.Description !== null && { description: input.Description }),
2221
- ...(input.DisableExecuteApiEndpoint !== undefined &&
2222
- input.DisableExecuteApiEndpoint !== null && { disableExecuteApiEndpoint: input.DisableExecuteApiEndpoint }),
2223
- ...(input.DisableSchemaValidation !== undefined &&
2224
- input.DisableSchemaValidation !== null && { disableSchemaValidation: input.DisableSchemaValidation }),
2225
- ...(input.Name !== undefined && input.Name !== null && { name: input.Name }),
2226
- ...(input.RouteKey !== undefined && input.RouteKey !== null && { routeKey: input.RouteKey }),
2227
- ...(input.RouteSelectionExpression !== undefined &&
2228
- input.RouteSelectionExpression !== null && { routeSelectionExpression: input.RouteSelectionExpression }),
2229
- ...(input.Target !== undefined && input.Target !== null && { target: input.Target }),
2230
- ...(input.Version !== undefined && input.Version !== null && { version: input.Version }),
2166
+ ...(input.CredentialsArn != null && { credentialsArn: input.CredentialsArn }),
2167
+ ...(input.Description != null && { description: input.Description }),
2168
+ ...(input.DisableExecuteApiEndpoint != null && { disableExecuteApiEndpoint: input.DisableExecuteApiEndpoint }),
2169
+ ...(input.DisableSchemaValidation != null && { disableSchemaValidation: input.DisableSchemaValidation }),
2170
+ ...(input.Name != null && { name: input.Name }),
2171
+ ...(input.RouteKey != null && { routeKey: input.RouteKey }),
2172
+ ...(input.RouteSelectionExpression != null && { routeSelectionExpression: input.RouteSelectionExpression }),
2173
+ ...(input.Target != null && { target: input.Target }),
2174
+ ...(input.Version != null && { version: input.Version }),
2231
2175
  });
2232
2176
  return new protocol_http_1.HttpRequest({
2233
2177
  protocol,
@@ -2269,9 +2213,9 @@ const serializeAws_restJson1UpdateApiMappingCommand = async (input, context) =>
2269
2213
  }
2270
2214
  let body;
2271
2215
  body = JSON.stringify({
2272
- ...(input.ApiId !== undefined && input.ApiId !== null && { apiId: input.ApiId }),
2273
- ...(input.ApiMappingKey !== undefined && input.ApiMappingKey !== null && { apiMappingKey: input.ApiMappingKey }),
2274
- ...(input.Stage !== undefined && input.Stage !== null && { stage: input.Stage }),
2216
+ ...(input.ApiId != null && { apiId: input.ApiId }),
2217
+ ...(input.ApiMappingKey != null && { apiMappingKey: input.ApiMappingKey }),
2218
+ ...(input.Stage != null && { stage: input.Stage }),
2275
2219
  });
2276
2220
  return new protocol_http_1.HttpRequest({
2277
2221
  protocol,
@@ -2313,34 +2257,26 @@ const serializeAws_restJson1UpdateAuthorizerCommand = async (input, context) =>
2313
2257
  }
2314
2258
  let body;
2315
2259
  body = JSON.stringify({
2316
- ...(input.AuthorizerCredentialsArn !== undefined &&
2317
- input.AuthorizerCredentialsArn !== null && { authorizerCredentialsArn: input.AuthorizerCredentialsArn }),
2318
- ...(input.AuthorizerPayloadFormatVersion !== undefined &&
2319
- input.AuthorizerPayloadFormatVersion !== null && {
2260
+ ...(input.AuthorizerCredentialsArn != null && { authorizerCredentialsArn: input.AuthorizerCredentialsArn }),
2261
+ ...(input.AuthorizerPayloadFormatVersion != null && {
2320
2262
  authorizerPayloadFormatVersion: input.AuthorizerPayloadFormatVersion,
2321
2263
  }),
2322
- ...(input.AuthorizerResultTtlInSeconds !== undefined &&
2323
- input.AuthorizerResultTtlInSeconds !== null && {
2264
+ ...(input.AuthorizerResultTtlInSeconds != null && {
2324
2265
  authorizerResultTtlInSeconds: input.AuthorizerResultTtlInSeconds,
2325
2266
  }),
2326
- ...(input.AuthorizerType !== undefined &&
2327
- input.AuthorizerType !== null && { authorizerType: input.AuthorizerType }),
2328
- ...(input.AuthorizerUri !== undefined && input.AuthorizerUri !== null && { authorizerUri: input.AuthorizerUri }),
2329
- ...(input.EnableSimpleResponses !== undefined &&
2330
- input.EnableSimpleResponses !== null && { enableSimpleResponses: input.EnableSimpleResponses }),
2331
- ...(input.IdentitySource !== undefined &&
2332
- input.IdentitySource !== null && {
2267
+ ...(input.AuthorizerType != null && { authorizerType: input.AuthorizerType }),
2268
+ ...(input.AuthorizerUri != null && { authorizerUri: input.AuthorizerUri }),
2269
+ ...(input.EnableSimpleResponses != null && { enableSimpleResponses: input.EnableSimpleResponses }),
2270
+ ...(input.IdentitySource != null && {
2333
2271
  identitySource: serializeAws_restJson1IdentitySourceList(input.IdentitySource, context),
2334
2272
  }),
2335
- ...(input.IdentityValidationExpression !== undefined &&
2336
- input.IdentityValidationExpression !== null && {
2273
+ ...(input.IdentityValidationExpression != null && {
2337
2274
  identityValidationExpression: input.IdentityValidationExpression,
2338
2275
  }),
2339
- ...(input.JwtConfiguration !== undefined &&
2340
- input.JwtConfiguration !== null && {
2276
+ ...(input.JwtConfiguration != null && {
2341
2277
  jwtConfiguration: serializeAws_restJson1JWTConfiguration(input.JwtConfiguration, context),
2342
2278
  }),
2343
- ...(input.Name !== undefined && input.Name !== null && { name: input.Name }),
2279
+ ...(input.Name != null && { name: input.Name }),
2344
2280
  });
2345
2281
  return new protocol_http_1.HttpRequest({
2346
2282
  protocol,
@@ -2382,7 +2318,7 @@ const serializeAws_restJson1UpdateDeploymentCommand = async (input, context) =>
2382
2318
  }
2383
2319
  let body;
2384
2320
  body = JSON.stringify({
2385
- ...(input.Description !== undefined && input.Description !== null && { description: input.Description }),
2321
+ ...(input.Description != null && { description: input.Description }),
2386
2322
  });
2387
2323
  return new protocol_http_1.HttpRequest({
2388
2324
  protocol,
@@ -2413,12 +2349,10 @@ const serializeAws_restJson1UpdateDomainNameCommand = async (input, context) =>
2413
2349
  }
2414
2350
  let body;
2415
2351
  body = JSON.stringify({
2416
- ...(input.DomainNameConfigurations !== undefined &&
2417
- input.DomainNameConfigurations !== null && {
2352
+ ...(input.DomainNameConfigurations != null && {
2418
2353
  domainNameConfigurations: serializeAws_restJson1DomainNameConfigurations(input.DomainNameConfigurations, context),
2419
2354
  }),
2420
- ...(input.MutualTlsAuthentication !== undefined &&
2421
- input.MutualTlsAuthentication !== null && {
2355
+ ...(input.MutualTlsAuthentication != null && {
2422
2356
  mutualTlsAuthentication: serializeAws_restJson1MutualTlsAuthenticationInput(input.MutualTlsAuthentication, context),
2423
2357
  }),
2424
2358
  });
@@ -2462,44 +2396,31 @@ const serializeAws_restJson1UpdateIntegrationCommand = async (input, context) =>
2462
2396
  }
2463
2397
  let body;
2464
2398
  body = JSON.stringify({
2465
- ...(input.ConnectionId !== undefined && input.ConnectionId !== null && { connectionId: input.ConnectionId }),
2466
- ...(input.ConnectionType !== undefined &&
2467
- input.ConnectionType !== null && { connectionType: input.ConnectionType }),
2468
- ...(input.ContentHandlingStrategy !== undefined &&
2469
- input.ContentHandlingStrategy !== null && { contentHandlingStrategy: input.ContentHandlingStrategy }),
2470
- ...(input.CredentialsArn !== undefined &&
2471
- input.CredentialsArn !== null && { credentialsArn: input.CredentialsArn }),
2472
- ...(input.Description !== undefined && input.Description !== null && { description: input.Description }),
2473
- ...(input.IntegrationMethod !== undefined &&
2474
- input.IntegrationMethod !== null && { integrationMethod: input.IntegrationMethod }),
2475
- ...(input.IntegrationSubtype !== undefined &&
2476
- input.IntegrationSubtype !== null && { integrationSubtype: input.IntegrationSubtype }),
2477
- ...(input.IntegrationType !== undefined &&
2478
- input.IntegrationType !== null && { integrationType: input.IntegrationType }),
2479
- ...(input.IntegrationUri !== undefined &&
2480
- input.IntegrationUri !== null && { integrationUri: input.IntegrationUri }),
2481
- ...(input.PassthroughBehavior !== undefined &&
2482
- input.PassthroughBehavior !== null && { passthroughBehavior: input.PassthroughBehavior }),
2483
- ...(input.PayloadFormatVersion !== undefined &&
2484
- input.PayloadFormatVersion !== null && { payloadFormatVersion: input.PayloadFormatVersion }),
2485
- ...(input.RequestParameters !== undefined &&
2486
- input.RequestParameters !== null && {
2399
+ ...(input.ConnectionId != null && { connectionId: input.ConnectionId }),
2400
+ ...(input.ConnectionType != null && { connectionType: input.ConnectionType }),
2401
+ ...(input.ContentHandlingStrategy != null && { contentHandlingStrategy: input.ContentHandlingStrategy }),
2402
+ ...(input.CredentialsArn != null && { credentialsArn: input.CredentialsArn }),
2403
+ ...(input.Description != null && { description: input.Description }),
2404
+ ...(input.IntegrationMethod != null && { integrationMethod: input.IntegrationMethod }),
2405
+ ...(input.IntegrationSubtype != null && { integrationSubtype: input.IntegrationSubtype }),
2406
+ ...(input.IntegrationType != null && { integrationType: input.IntegrationType }),
2407
+ ...(input.IntegrationUri != null && { integrationUri: input.IntegrationUri }),
2408
+ ...(input.PassthroughBehavior != null && { passthroughBehavior: input.PassthroughBehavior }),
2409
+ ...(input.PayloadFormatVersion != null && { payloadFormatVersion: input.PayloadFormatVersion }),
2410
+ ...(input.RequestParameters != null && {
2487
2411
  requestParameters: serializeAws_restJson1IntegrationParameters(input.RequestParameters, context),
2488
2412
  }),
2489
- ...(input.RequestTemplates !== undefined &&
2490
- input.RequestTemplates !== null && {
2413
+ ...(input.RequestTemplates != null && {
2491
2414
  requestTemplates: serializeAws_restJson1TemplateMap(input.RequestTemplates, context),
2492
2415
  }),
2493
- ...(input.ResponseParameters !== undefined &&
2494
- input.ResponseParameters !== null && {
2416
+ ...(input.ResponseParameters != null && {
2495
2417
  responseParameters: serializeAws_restJson1ResponseParameters(input.ResponseParameters, context),
2496
2418
  }),
2497
- ...(input.TemplateSelectionExpression !== undefined &&
2498
- input.TemplateSelectionExpression !== null && { templateSelectionExpression: input.TemplateSelectionExpression }),
2499
- ...(input.TimeoutInMillis !== undefined &&
2500
- input.TimeoutInMillis !== null && { timeoutInMillis: input.TimeoutInMillis }),
2501
- ...(input.TlsConfig !== undefined &&
2502
- input.TlsConfig !== null && { tlsConfig: serializeAws_restJson1TlsConfigInput(input.TlsConfig, context) }),
2419
+ ...(input.TemplateSelectionExpression != null && {
2420
+ templateSelectionExpression: input.TemplateSelectionExpression,
2421
+ }),
2422
+ ...(input.TimeoutInMillis != null && { timeoutInMillis: input.TimeoutInMillis }),
2423
+ ...(input.TlsConfig != null && { tlsConfig: serializeAws_restJson1TlsConfigInput(input.TlsConfig, context) }),
2503
2424
  });
2504
2425
  return new protocol_http_1.HttpRequest({
2505
2426
  protocol,
@@ -2551,20 +2472,17 @@ const serializeAws_restJson1UpdateIntegrationResponseCommand = async (input, con
2551
2472
  }
2552
2473
  let body;
2553
2474
  body = JSON.stringify({
2554
- ...(input.ContentHandlingStrategy !== undefined &&
2555
- input.ContentHandlingStrategy !== null && { contentHandlingStrategy: input.ContentHandlingStrategy }),
2556
- ...(input.IntegrationResponseKey !== undefined &&
2557
- input.IntegrationResponseKey !== null && { integrationResponseKey: input.IntegrationResponseKey }),
2558
- ...(input.ResponseParameters !== undefined &&
2559
- input.ResponseParameters !== null && {
2475
+ ...(input.ContentHandlingStrategy != null && { contentHandlingStrategy: input.ContentHandlingStrategy }),
2476
+ ...(input.IntegrationResponseKey != null && { integrationResponseKey: input.IntegrationResponseKey }),
2477
+ ...(input.ResponseParameters != null && {
2560
2478
  responseParameters: serializeAws_restJson1IntegrationParameters(input.ResponseParameters, context),
2561
2479
  }),
2562
- ...(input.ResponseTemplates !== undefined &&
2563
- input.ResponseTemplates !== null && {
2480
+ ...(input.ResponseTemplates != null && {
2564
2481
  responseTemplates: serializeAws_restJson1TemplateMap(input.ResponseTemplates, context),
2565
2482
  }),
2566
- ...(input.TemplateSelectionExpression !== undefined &&
2567
- input.TemplateSelectionExpression !== null && { templateSelectionExpression: input.TemplateSelectionExpression }),
2483
+ ...(input.TemplateSelectionExpression != null && {
2484
+ templateSelectionExpression: input.TemplateSelectionExpression,
2485
+ }),
2568
2486
  });
2569
2487
  return new protocol_http_1.HttpRequest({
2570
2488
  protocol,
@@ -2605,10 +2523,10 @@ const serializeAws_restJson1UpdateModelCommand = async (input, context) => {
2605
2523
  }
2606
2524
  let body;
2607
2525
  body = JSON.stringify({
2608
- ...(input.ContentType !== undefined && input.ContentType !== null && { contentType: input.ContentType }),
2609
- ...(input.Description !== undefined && input.Description !== null && { description: input.Description }),
2610
- ...(input.Name !== undefined && input.Name !== null && { name: input.Name }),
2611
- ...(input.Schema !== undefined && input.Schema !== null && { schema: input.Schema }),
2526
+ ...(input.ContentType != null && { contentType: input.ContentType }),
2527
+ ...(input.Description != null && { description: input.Description }),
2528
+ ...(input.Name != null && { name: input.Name }),
2529
+ ...(input.Schema != null && { schema: input.Schema }),
2612
2530
  });
2613
2531
  return new protocol_http_1.HttpRequest({
2614
2532
  protocol,
@@ -2649,32 +2567,25 @@ const serializeAws_restJson1UpdateRouteCommand = async (input, context) => {
2649
2567
  }
2650
2568
  let body;
2651
2569
  body = JSON.stringify({
2652
- ...(input.ApiKeyRequired !== undefined &&
2653
- input.ApiKeyRequired !== null && { apiKeyRequired: input.ApiKeyRequired }),
2654
- ...(input.AuthorizationScopes !== undefined &&
2655
- input.AuthorizationScopes !== null && {
2570
+ ...(input.ApiKeyRequired != null && { apiKeyRequired: input.ApiKeyRequired }),
2571
+ ...(input.AuthorizationScopes != null && {
2656
2572
  authorizationScopes: serializeAws_restJson1AuthorizationScopes(input.AuthorizationScopes, context),
2657
2573
  }),
2658
- ...(input.AuthorizationType !== undefined &&
2659
- input.AuthorizationType !== null && { authorizationType: input.AuthorizationType }),
2660
- ...(input.AuthorizerId !== undefined && input.AuthorizerId !== null && { authorizerId: input.AuthorizerId }),
2661
- ...(input.ModelSelectionExpression !== undefined &&
2662
- input.ModelSelectionExpression !== null && { modelSelectionExpression: input.ModelSelectionExpression }),
2663
- ...(input.OperationName !== undefined && input.OperationName !== null && { operationName: input.OperationName }),
2664
- ...(input.RequestModels !== undefined &&
2665
- input.RequestModels !== null && {
2574
+ ...(input.AuthorizationType != null && { authorizationType: input.AuthorizationType }),
2575
+ ...(input.AuthorizerId != null && { authorizerId: input.AuthorizerId }),
2576
+ ...(input.ModelSelectionExpression != null && { modelSelectionExpression: input.ModelSelectionExpression }),
2577
+ ...(input.OperationName != null && { operationName: input.OperationName }),
2578
+ ...(input.RequestModels != null && {
2666
2579
  requestModels: serializeAws_restJson1RouteModels(input.RequestModels, context),
2667
2580
  }),
2668
- ...(input.RequestParameters !== undefined &&
2669
- input.RequestParameters !== null && {
2581
+ ...(input.RequestParameters != null && {
2670
2582
  requestParameters: serializeAws_restJson1RouteParameters(input.RequestParameters, context),
2671
2583
  }),
2672
- ...(input.RouteKey !== undefined && input.RouteKey !== null && { routeKey: input.RouteKey }),
2673
- ...(input.RouteResponseSelectionExpression !== undefined &&
2674
- input.RouteResponseSelectionExpression !== null && {
2584
+ ...(input.RouteKey != null && { routeKey: input.RouteKey }),
2585
+ ...(input.RouteResponseSelectionExpression != null && {
2675
2586
  routeResponseSelectionExpression: input.RouteResponseSelectionExpression,
2676
2587
  }),
2677
- ...(input.Target !== undefined && input.Target !== null && { target: input.Target }),
2588
+ ...(input.Target != null && { target: input.Target }),
2678
2589
  });
2679
2590
  return new protocol_http_1.HttpRequest({
2680
2591
  protocol,
@@ -2726,18 +2637,14 @@ const serializeAws_restJson1UpdateRouteResponseCommand = async (input, context)
2726
2637
  }
2727
2638
  let body;
2728
2639
  body = JSON.stringify({
2729
- ...(input.ModelSelectionExpression !== undefined &&
2730
- input.ModelSelectionExpression !== null && { modelSelectionExpression: input.ModelSelectionExpression }),
2731
- ...(input.ResponseModels !== undefined &&
2732
- input.ResponseModels !== null && {
2640
+ ...(input.ModelSelectionExpression != null && { modelSelectionExpression: input.ModelSelectionExpression }),
2641
+ ...(input.ResponseModels != null && {
2733
2642
  responseModels: serializeAws_restJson1RouteModels(input.ResponseModels, context),
2734
2643
  }),
2735
- ...(input.ResponseParameters !== undefined &&
2736
- input.ResponseParameters !== null && {
2644
+ ...(input.ResponseParameters != null && {
2737
2645
  responseParameters: serializeAws_restJson1RouteParameters(input.ResponseParameters, context),
2738
2646
  }),
2739
- ...(input.RouteResponseKey !== undefined &&
2740
- input.RouteResponseKey !== null && { routeResponseKey: input.RouteResponseKey }),
2647
+ ...(input.RouteResponseKey != null && { routeResponseKey: input.RouteResponseKey }),
2741
2648
  });
2742
2649
  return new protocol_http_1.HttpRequest({
2743
2650
  protocol,
@@ -2778,25 +2685,20 @@ const serializeAws_restJson1UpdateStageCommand = async (input, context) => {
2778
2685
  }
2779
2686
  let body;
2780
2687
  body = JSON.stringify({
2781
- ...(input.AccessLogSettings !== undefined &&
2782
- input.AccessLogSettings !== null && {
2688
+ ...(input.AccessLogSettings != null && {
2783
2689
  accessLogSettings: serializeAws_restJson1AccessLogSettings(input.AccessLogSettings, context),
2784
2690
  }),
2785
- ...(input.AutoDeploy !== undefined && input.AutoDeploy !== null && { autoDeploy: input.AutoDeploy }),
2786
- ...(input.ClientCertificateId !== undefined &&
2787
- input.ClientCertificateId !== null && { clientCertificateId: input.ClientCertificateId }),
2788
- ...(input.DefaultRouteSettings !== undefined &&
2789
- input.DefaultRouteSettings !== null && {
2691
+ ...(input.AutoDeploy != null && { autoDeploy: input.AutoDeploy }),
2692
+ ...(input.ClientCertificateId != null && { clientCertificateId: input.ClientCertificateId }),
2693
+ ...(input.DefaultRouteSettings != null && {
2790
2694
  defaultRouteSettings: serializeAws_restJson1RouteSettings(input.DefaultRouteSettings, context),
2791
2695
  }),
2792
- ...(input.DeploymentId !== undefined && input.DeploymentId !== null && { deploymentId: input.DeploymentId }),
2793
- ...(input.Description !== undefined && input.Description !== null && { description: input.Description }),
2794
- ...(input.RouteSettings !== undefined &&
2795
- input.RouteSettings !== null && {
2696
+ ...(input.DeploymentId != null && { deploymentId: input.DeploymentId }),
2697
+ ...(input.Description != null && { description: input.Description }),
2698
+ ...(input.RouteSettings != null && {
2796
2699
  routeSettings: serializeAws_restJson1RouteSettingsMap(input.RouteSettings, context),
2797
2700
  }),
2798
- ...(input.StageVariables !== undefined &&
2799
- input.StageVariables !== null && {
2701
+ ...(input.StageVariables != null && {
2800
2702
  stageVariables: serializeAws_restJson1StageVariablesMap(input.StageVariables, context),
2801
2703
  }),
2802
2704
  });
@@ -2829,7 +2731,7 @@ const serializeAws_restJson1UpdateVpcLinkCommand = async (input, context) => {
2829
2731
  }
2830
2732
  let body;
2831
2733
  body = JSON.stringify({
2832
- ...(input.Name !== undefined && input.Name !== null && { name: input.Name }),
2734
+ ...(input.Name != null && { name: input.Name }),
2833
2735
  });
2834
2736
  return new protocol_http_1.HttpRequest({
2835
2737
  protocol,
@@ -7399,9 +7301,8 @@ const serializeAws_restJson1__listOf__string = (input, context) => {
7399
7301
  };
7400
7302
  const serializeAws_restJson1AccessLogSettings = (input, context) => {
7401
7303
  return {
7402
- ...(input.DestinationArn !== undefined &&
7403
- input.DestinationArn !== null && { destinationArn: input.DestinationArn }),
7404
- ...(input.Format !== undefined && input.Format !== null && { format: input.Format }),
7304
+ ...(input.DestinationArn != null && { destinationArn: input.DestinationArn }),
7305
+ ...(input.Format != null && { format: input.Format }),
7405
7306
  };
7406
7307
  };
7407
7308
  const serializeAws_restJson1AuthorizationScopes = (input, context) => {
@@ -7416,25 +7317,20 @@ const serializeAws_restJson1AuthorizationScopes = (input, context) => {
7416
7317
  };
7417
7318
  const serializeAws_restJson1Cors = (input, context) => {
7418
7319
  return {
7419
- ...(input.AllowCredentials !== undefined &&
7420
- input.AllowCredentials !== null && { allowCredentials: input.AllowCredentials }),
7421
- ...(input.AllowHeaders !== undefined &&
7422
- input.AllowHeaders !== null && {
7320
+ ...(input.AllowCredentials != null && { allowCredentials: input.AllowCredentials }),
7321
+ ...(input.AllowHeaders != null && {
7423
7322
  allowHeaders: serializeAws_restJson1CorsHeaderList(input.AllowHeaders, context),
7424
7323
  }),
7425
- ...(input.AllowMethods !== undefined &&
7426
- input.AllowMethods !== null && {
7324
+ ...(input.AllowMethods != null && {
7427
7325
  allowMethods: serializeAws_restJson1CorsMethodList(input.AllowMethods, context),
7428
7326
  }),
7429
- ...(input.AllowOrigins !== undefined &&
7430
- input.AllowOrigins !== null && {
7327
+ ...(input.AllowOrigins != null && {
7431
7328
  allowOrigins: serializeAws_restJson1CorsOriginList(input.AllowOrigins, context),
7432
7329
  }),
7433
- ...(input.ExposeHeaders !== undefined &&
7434
- input.ExposeHeaders !== null && {
7330
+ ...(input.ExposeHeaders != null && {
7435
7331
  exposeHeaders: serializeAws_restJson1CorsHeaderList(input.ExposeHeaders, context),
7436
7332
  }),
7437
- ...(input.MaxAge !== undefined && input.MaxAge !== null && { maxAge: input.MaxAge }),
7333
+ ...(input.MaxAge != null && { maxAge: input.MaxAge }),
7438
7334
  };
7439
7335
  };
7440
7336
  const serializeAws_restJson1CorsHeaderList = (input, context) => {
@@ -7469,28 +7365,20 @@ const serializeAws_restJson1CorsOriginList = (input, context) => {
7469
7365
  };
7470
7366
  const serializeAws_restJson1DomainNameConfiguration = (input, context) => {
7471
7367
  return {
7472
- ...(input.ApiGatewayDomainName !== undefined &&
7473
- input.ApiGatewayDomainName !== null && { apiGatewayDomainName: input.ApiGatewayDomainName }),
7474
- ...(input.CertificateArn !== undefined &&
7475
- input.CertificateArn !== null && { certificateArn: input.CertificateArn }),
7476
- ...(input.CertificateName !== undefined &&
7477
- input.CertificateName !== null && { certificateName: input.CertificateName }),
7478
- ...(input.CertificateUploadDate !== undefined &&
7479
- input.CertificateUploadDate !== null && {
7368
+ ...(input.ApiGatewayDomainName != null && { apiGatewayDomainName: input.ApiGatewayDomainName }),
7369
+ ...(input.CertificateArn != null && { certificateArn: input.CertificateArn }),
7370
+ ...(input.CertificateName != null && { certificateName: input.CertificateName }),
7371
+ ...(input.CertificateUploadDate != null && {
7480
7372
  certificateUploadDate: input.CertificateUploadDate.toISOString().split(".")[0] + "Z",
7481
7373
  }),
7482
- ...(input.DomainNameStatus !== undefined &&
7483
- input.DomainNameStatus !== null && { domainNameStatus: input.DomainNameStatus }),
7484
- ...(input.DomainNameStatusMessage !== undefined &&
7485
- input.DomainNameStatusMessage !== null && { domainNameStatusMessage: input.DomainNameStatusMessage }),
7486
- ...(input.EndpointType !== undefined && input.EndpointType !== null && { endpointType: input.EndpointType }),
7487
- ...(input.HostedZoneId !== undefined && input.HostedZoneId !== null && { hostedZoneId: input.HostedZoneId }),
7488
- ...(input.OwnershipVerificationCertificateArn !== undefined &&
7489
- input.OwnershipVerificationCertificateArn !== null && {
7374
+ ...(input.DomainNameStatus != null && { domainNameStatus: input.DomainNameStatus }),
7375
+ ...(input.DomainNameStatusMessage != null && { domainNameStatusMessage: input.DomainNameStatusMessage }),
7376
+ ...(input.EndpointType != null && { endpointType: input.EndpointType }),
7377
+ ...(input.HostedZoneId != null && { hostedZoneId: input.HostedZoneId }),
7378
+ ...(input.OwnershipVerificationCertificateArn != null && {
7490
7379
  ownershipVerificationCertificateArn: input.OwnershipVerificationCertificateArn,
7491
7380
  }),
7492
- ...(input.SecurityPolicy !== undefined &&
7493
- input.SecurityPolicy !== null && { securityPolicy: input.SecurityPolicy }),
7381
+ ...(input.SecurityPolicy != null && { securityPolicy: input.SecurityPolicy }),
7494
7382
  };
7495
7383
  };
7496
7384
  const serializeAws_restJson1DomainNameConfigurations = (input, context) => {
@@ -7526,21 +7414,19 @@ const serializeAws_restJson1IntegrationParameters = (input, context) => {
7526
7414
  };
7527
7415
  const serializeAws_restJson1JWTConfiguration = (input, context) => {
7528
7416
  return {
7529
- ...(input.Audience !== undefined &&
7530
- input.Audience !== null && { audience: serializeAws_restJson1__listOf__string(input.Audience, context) }),
7531
- ...(input.Issuer !== undefined && input.Issuer !== null && { issuer: input.Issuer }),
7417
+ ...(input.Audience != null && { audience: serializeAws_restJson1__listOf__string(input.Audience, context) }),
7418
+ ...(input.Issuer != null && { issuer: input.Issuer }),
7532
7419
  };
7533
7420
  };
7534
7421
  const serializeAws_restJson1MutualTlsAuthenticationInput = (input, context) => {
7535
7422
  return {
7536
- ...(input.TruststoreUri !== undefined && input.TruststoreUri !== null && { truststoreUri: input.TruststoreUri }),
7537
- ...(input.TruststoreVersion !== undefined &&
7538
- input.TruststoreVersion !== null && { truststoreVersion: input.TruststoreVersion }),
7423
+ ...(input.TruststoreUri != null && { truststoreUri: input.TruststoreUri }),
7424
+ ...(input.TruststoreVersion != null && { truststoreVersion: input.TruststoreVersion }),
7539
7425
  };
7540
7426
  };
7541
7427
  const serializeAws_restJson1ParameterConstraints = (input, context) => {
7542
7428
  return {
7543
- ...(input.Required !== undefined && input.Required !== null && { required: input.Required }),
7429
+ ...(input.Required != null && { required: input.Required }),
7544
7430
  };
7545
7431
  };
7546
7432
  const serializeAws_restJson1ResponseParameters = (input, context) => {
@@ -7578,15 +7464,11 @@ const serializeAws_restJson1RouteParameters = (input, context) => {
7578
7464
  };
7579
7465
  const serializeAws_restJson1RouteSettings = (input, context) => {
7580
7466
  return {
7581
- ...(input.DataTraceEnabled !== undefined &&
7582
- input.DataTraceEnabled !== null && { dataTraceEnabled: input.DataTraceEnabled }),
7583
- ...(input.DetailedMetricsEnabled !== undefined &&
7584
- input.DetailedMetricsEnabled !== null && { detailedMetricsEnabled: input.DetailedMetricsEnabled }),
7585
- ...(input.LoggingLevel !== undefined && input.LoggingLevel !== null && { loggingLevel: input.LoggingLevel }),
7586
- ...(input.ThrottlingBurstLimit !== undefined &&
7587
- input.ThrottlingBurstLimit !== null && { throttlingBurstLimit: input.ThrottlingBurstLimit }),
7588
- ...(input.ThrottlingRateLimit !== undefined &&
7589
- input.ThrottlingRateLimit !== null && { throttlingRateLimit: (0, smithy_client_1.serializeFloat)(input.ThrottlingRateLimit) }),
7467
+ ...(input.DataTraceEnabled != null && { dataTraceEnabled: input.DataTraceEnabled }),
7468
+ ...(input.DetailedMetricsEnabled != null && { detailedMetricsEnabled: input.DetailedMetricsEnabled }),
7469
+ ...(input.LoggingLevel != null && { loggingLevel: input.LoggingLevel }),
7470
+ ...(input.ThrottlingBurstLimit != null && { throttlingBurstLimit: input.ThrottlingBurstLimit }),
7471
+ ...(input.ThrottlingRateLimit != null && { throttlingRateLimit: (0, smithy_client_1.serializeFloat)(input.ThrottlingRateLimit) }),
7590
7472
  };
7591
7473
  };
7592
7474
  const serializeAws_restJson1RouteSettingsMap = (input, context) => {
@@ -7655,8 +7537,7 @@ const serializeAws_restJson1TemplateMap = (input, context) => {
7655
7537
  };
7656
7538
  const serializeAws_restJson1TlsConfigInput = (input, context) => {
7657
7539
  return {
7658
- ...(input.ServerNameToVerify !== undefined &&
7659
- input.ServerNameToVerify !== null && { serverNameToVerify: input.ServerNameToVerify }),
7540
+ ...(input.ServerNameToVerify != null && { serverNameToVerify: input.ServerNameToVerify }),
7660
7541
  };
7661
7542
  };
7662
7543
  const deserializeAws_restJson1__listOf__string = (output, context) => {
@@ -7814,28 +7695,18 @@ const deserializeAws_restJson1Api = (output, context) => {
7814
7695
  ApiGatewayManaged: (0, smithy_client_1.expectBoolean)(output.apiGatewayManaged),
7815
7696
  ApiId: (0, smithy_client_1.expectString)(output.apiId),
7816
7697
  ApiKeySelectionExpression: (0, smithy_client_1.expectString)(output.apiKeySelectionExpression),
7817
- CorsConfiguration: output.corsConfiguration !== undefined && output.corsConfiguration !== null
7818
- ? deserializeAws_restJson1Cors(output.corsConfiguration, context)
7819
- : undefined,
7820
- CreatedDate: output.createdDate !== undefined && output.createdDate !== null
7821
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.createdDate))
7822
- : undefined,
7698
+ CorsConfiguration: output.corsConfiguration != null ? deserializeAws_restJson1Cors(output.corsConfiguration, context) : undefined,
7699
+ CreatedDate: output.createdDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.createdDate)) : undefined,
7823
7700
  Description: (0, smithy_client_1.expectString)(output.description),
7824
7701
  DisableExecuteApiEndpoint: (0, smithy_client_1.expectBoolean)(output.disableExecuteApiEndpoint),
7825
7702
  DisableSchemaValidation: (0, smithy_client_1.expectBoolean)(output.disableSchemaValidation),
7826
- ImportInfo: output.importInfo !== undefined && output.importInfo !== null
7827
- ? deserializeAws_restJson1__listOf__string(output.importInfo, context)
7828
- : undefined,
7703
+ ImportInfo: output.importInfo != null ? deserializeAws_restJson1__listOf__string(output.importInfo, context) : undefined,
7829
7704
  Name: (0, smithy_client_1.expectString)(output.name),
7830
7705
  ProtocolType: (0, smithy_client_1.expectString)(output.protocolType),
7831
7706
  RouteSelectionExpression: (0, smithy_client_1.expectString)(output.routeSelectionExpression),
7832
- Tags: output.tags !== undefined && output.tags !== null
7833
- ? deserializeAws_restJson1Tags(output.tags, context)
7834
- : undefined,
7707
+ Tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
7835
7708
  Version: (0, smithy_client_1.expectString)(output.version),
7836
- Warnings: output.warnings !== undefined && output.warnings !== null
7837
- ? deserializeAws_restJson1__listOf__string(output.warnings, context)
7838
- : undefined,
7709
+ Warnings: output.warnings != null ? deserializeAws_restJson1__listOf__string(output.warnings, context) : undefined,
7839
7710
  };
7840
7711
  };
7841
7712
  const deserializeAws_restJson1ApiMapping = (output, context) => {
@@ -7866,11 +7737,11 @@ const deserializeAws_restJson1Authorizer = (output, context) => {
7866
7737
  AuthorizerType: (0, smithy_client_1.expectString)(output.authorizerType),
7867
7738
  AuthorizerUri: (0, smithy_client_1.expectString)(output.authorizerUri),
7868
7739
  EnableSimpleResponses: (0, smithy_client_1.expectBoolean)(output.enableSimpleResponses),
7869
- IdentitySource: output.identitySource !== undefined && output.identitySource !== null
7740
+ IdentitySource: output.identitySource != null
7870
7741
  ? deserializeAws_restJson1IdentitySourceList(output.identitySource, context)
7871
7742
  : undefined,
7872
7743
  IdentityValidationExpression: (0, smithy_client_1.expectString)(output.identityValidationExpression),
7873
- JwtConfiguration: output.jwtConfiguration !== undefined && output.jwtConfiguration !== null
7744
+ JwtConfiguration: output.jwtConfiguration != null
7874
7745
  ? deserializeAws_restJson1JWTConfiguration(output.jwtConfiguration, context)
7875
7746
  : undefined,
7876
7747
  Name: (0, smithy_client_1.expectString)(output.name),
@@ -7879,18 +7750,10 @@ const deserializeAws_restJson1Authorizer = (output, context) => {
7879
7750
  const deserializeAws_restJson1Cors = (output, context) => {
7880
7751
  return {
7881
7752
  AllowCredentials: (0, smithy_client_1.expectBoolean)(output.allowCredentials),
7882
- AllowHeaders: output.allowHeaders !== undefined && output.allowHeaders !== null
7883
- ? deserializeAws_restJson1CorsHeaderList(output.allowHeaders, context)
7884
- : undefined,
7885
- AllowMethods: output.allowMethods !== undefined && output.allowMethods !== null
7886
- ? deserializeAws_restJson1CorsMethodList(output.allowMethods, context)
7887
- : undefined,
7888
- AllowOrigins: output.allowOrigins !== undefined && output.allowOrigins !== null
7889
- ? deserializeAws_restJson1CorsOriginList(output.allowOrigins, context)
7890
- : undefined,
7891
- ExposeHeaders: output.exposeHeaders !== undefined && output.exposeHeaders !== null
7892
- ? deserializeAws_restJson1CorsHeaderList(output.exposeHeaders, context)
7893
- : undefined,
7753
+ AllowHeaders: output.allowHeaders != null ? deserializeAws_restJson1CorsHeaderList(output.allowHeaders, context) : undefined,
7754
+ AllowMethods: output.allowMethods != null ? deserializeAws_restJson1CorsMethodList(output.allowMethods, context) : undefined,
7755
+ AllowOrigins: output.allowOrigins != null ? deserializeAws_restJson1CorsOriginList(output.allowOrigins, context) : undefined,
7756
+ ExposeHeaders: output.exposeHeaders != null ? deserializeAws_restJson1CorsHeaderList(output.exposeHeaders, context) : undefined,
7894
7757
  MaxAge: (0, smithy_client_1.expectInt32)(output.maxAge),
7895
7758
  };
7896
7759
  };
@@ -7930,9 +7793,7 @@ const deserializeAws_restJson1CorsOriginList = (output, context) => {
7930
7793
  const deserializeAws_restJson1Deployment = (output, context) => {
7931
7794
  return {
7932
7795
  AutoDeployed: (0, smithy_client_1.expectBoolean)(output.autoDeployed),
7933
- CreatedDate: output.createdDate !== undefined && output.createdDate !== null
7934
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.createdDate))
7935
- : undefined,
7796
+ CreatedDate: output.createdDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.createdDate)) : undefined,
7936
7797
  DeploymentId: (0, smithy_client_1.expectString)(output.deploymentId),
7937
7798
  DeploymentStatus: (0, smithy_client_1.expectString)(output.deploymentStatus),
7938
7799
  DeploymentStatusMessage: (0, smithy_client_1.expectString)(output.deploymentStatusMessage),
@@ -7943,15 +7804,13 @@ const deserializeAws_restJson1DomainName = (output, context) => {
7943
7804
  return {
7944
7805
  ApiMappingSelectionExpression: (0, smithy_client_1.expectString)(output.apiMappingSelectionExpression),
7945
7806
  DomainName: (0, smithy_client_1.expectString)(output.domainName),
7946
- DomainNameConfigurations: output.domainNameConfigurations !== undefined && output.domainNameConfigurations !== null
7807
+ DomainNameConfigurations: output.domainNameConfigurations != null
7947
7808
  ? deserializeAws_restJson1DomainNameConfigurations(output.domainNameConfigurations, context)
7948
7809
  : undefined,
7949
- MutualTlsAuthentication: output.mutualTlsAuthentication !== undefined && output.mutualTlsAuthentication !== null
7810
+ MutualTlsAuthentication: output.mutualTlsAuthentication != null
7950
7811
  ? deserializeAws_restJson1MutualTlsAuthentication(output.mutualTlsAuthentication, context)
7951
7812
  : undefined,
7952
- Tags: output.tags !== undefined && output.tags !== null
7953
- ? deserializeAws_restJson1Tags(output.tags, context)
7954
- : undefined,
7813
+ Tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
7955
7814
  };
7956
7815
  };
7957
7816
  const deserializeAws_restJson1DomainNameConfiguration = (output, context) => {
@@ -7959,7 +7818,7 @@ const deserializeAws_restJson1DomainNameConfiguration = (output, context) => {
7959
7818
  ApiGatewayDomainName: (0, smithy_client_1.expectString)(output.apiGatewayDomainName),
7960
7819
  CertificateArn: (0, smithy_client_1.expectString)(output.certificateArn),
7961
7820
  CertificateName: (0, smithy_client_1.expectString)(output.certificateName),
7962
- CertificateUploadDate: output.certificateUploadDate !== undefined && output.certificateUploadDate !== null
7821
+ CertificateUploadDate: output.certificateUploadDate != null
7963
7822
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.certificateUploadDate))
7964
7823
  : undefined,
7965
7824
  DomainNameStatus: (0, smithy_client_1.expectString)(output.domainNameStatus),
@@ -8008,20 +7867,18 @@ const deserializeAws_restJson1Integration = (output, context) => {
8008
7867
  IntegrationUri: (0, smithy_client_1.expectString)(output.integrationUri),
8009
7868
  PassthroughBehavior: (0, smithy_client_1.expectString)(output.passthroughBehavior),
8010
7869
  PayloadFormatVersion: (0, smithy_client_1.expectString)(output.payloadFormatVersion),
8011
- RequestParameters: output.requestParameters !== undefined && output.requestParameters !== null
7870
+ RequestParameters: output.requestParameters != null
8012
7871
  ? deserializeAws_restJson1IntegrationParameters(output.requestParameters, context)
8013
7872
  : undefined,
8014
- RequestTemplates: output.requestTemplates !== undefined && output.requestTemplates !== null
7873
+ RequestTemplates: output.requestTemplates != null
8015
7874
  ? deserializeAws_restJson1TemplateMap(output.requestTemplates, context)
8016
7875
  : undefined,
8017
- ResponseParameters: output.responseParameters !== undefined && output.responseParameters !== null
7876
+ ResponseParameters: output.responseParameters != null
8018
7877
  ? deserializeAws_restJson1ResponseParameters(output.responseParameters, context)
8019
7878
  : undefined,
8020
7879
  TemplateSelectionExpression: (0, smithy_client_1.expectString)(output.templateSelectionExpression),
8021
7880
  TimeoutInMillis: (0, smithy_client_1.expectInt32)(output.timeoutInMillis),
8022
- TlsConfig: output.tlsConfig !== undefined && output.tlsConfig !== null
8023
- ? deserializeAws_restJson1TlsConfig(output.tlsConfig, context)
8024
- : undefined,
7881
+ TlsConfig: output.tlsConfig != null ? deserializeAws_restJson1TlsConfig(output.tlsConfig, context) : undefined,
8025
7882
  };
8026
7883
  };
8027
7884
  const deserializeAws_restJson1IntegrationParameters = (output, context) => {
@@ -8040,10 +7897,10 @@ const deserializeAws_restJson1IntegrationResponse = (output, context) => {
8040
7897
  ContentHandlingStrategy: (0, smithy_client_1.expectString)(output.contentHandlingStrategy),
8041
7898
  IntegrationResponseId: (0, smithy_client_1.expectString)(output.integrationResponseId),
8042
7899
  IntegrationResponseKey: (0, smithy_client_1.expectString)(output.integrationResponseKey),
8043
- ResponseParameters: output.responseParameters !== undefined && output.responseParameters !== null
7900
+ ResponseParameters: output.responseParameters != null
8044
7901
  ? deserializeAws_restJson1IntegrationParameters(output.responseParameters, context)
8045
7902
  : undefined,
8046
- ResponseTemplates: output.responseTemplates !== undefined && output.responseTemplates !== null
7903
+ ResponseTemplates: output.responseTemplates != null
8047
7904
  ? deserializeAws_restJson1TemplateMap(output.responseTemplates, context)
8048
7905
  : undefined,
8049
7906
  TemplateSelectionExpression: (0, smithy_client_1.expectString)(output.templateSelectionExpression),
@@ -8051,9 +7908,7 @@ const deserializeAws_restJson1IntegrationResponse = (output, context) => {
8051
7908
  };
8052
7909
  const deserializeAws_restJson1JWTConfiguration = (output, context) => {
8053
7910
  return {
8054
- Audience: output.audience !== undefined && output.audience !== null
8055
- ? deserializeAws_restJson1__listOf__string(output.audience, context)
8056
- : undefined,
7911
+ Audience: output.audience != null ? deserializeAws_restJson1__listOf__string(output.audience, context) : undefined,
8057
7912
  Issuer: (0, smithy_client_1.expectString)(output.issuer),
8058
7913
  };
8059
7914
  };
@@ -8070,7 +7925,7 @@ const deserializeAws_restJson1MutualTlsAuthentication = (output, context) => {
8070
7925
  return {
8071
7926
  TruststoreUri: (0, smithy_client_1.expectString)(output.truststoreUri),
8072
7927
  TruststoreVersion: (0, smithy_client_1.expectString)(output.truststoreVersion),
8073
- TruststoreWarnings: output.truststoreWarnings !== undefined && output.truststoreWarnings !== null
7928
+ TruststoreWarnings: output.truststoreWarnings != null
8074
7929
  ? deserializeAws_restJson1__listOf__string(output.truststoreWarnings, context)
8075
7930
  : undefined,
8076
7931
  };
@@ -8095,17 +7950,15 @@ const deserializeAws_restJson1Route = (output, context) => {
8095
7950
  return {
8096
7951
  ApiGatewayManaged: (0, smithy_client_1.expectBoolean)(output.apiGatewayManaged),
8097
7952
  ApiKeyRequired: (0, smithy_client_1.expectBoolean)(output.apiKeyRequired),
8098
- AuthorizationScopes: output.authorizationScopes !== undefined && output.authorizationScopes !== null
7953
+ AuthorizationScopes: output.authorizationScopes != null
8099
7954
  ? deserializeAws_restJson1AuthorizationScopes(output.authorizationScopes, context)
8100
7955
  : undefined,
8101
7956
  AuthorizationType: (0, smithy_client_1.expectString)(output.authorizationType),
8102
7957
  AuthorizerId: (0, smithy_client_1.expectString)(output.authorizerId),
8103
7958
  ModelSelectionExpression: (0, smithy_client_1.expectString)(output.modelSelectionExpression),
8104
7959
  OperationName: (0, smithy_client_1.expectString)(output.operationName),
8105
- RequestModels: output.requestModels !== undefined && output.requestModels !== null
8106
- ? deserializeAws_restJson1RouteModels(output.requestModels, context)
8107
- : undefined,
8108
- RequestParameters: output.requestParameters !== undefined && output.requestParameters !== null
7960
+ RequestModels: output.requestModels != null ? deserializeAws_restJson1RouteModels(output.requestModels, context) : undefined,
7961
+ RequestParameters: output.requestParameters != null
8109
7962
  ? deserializeAws_restJson1RouteParameters(output.requestParameters, context)
8110
7963
  : undefined,
8111
7964
  RouteId: (0, smithy_client_1.expectString)(output.routeId),
@@ -8139,10 +7992,8 @@ const deserializeAws_restJson1RouteParameters = (output, context) => {
8139
7992
  const deserializeAws_restJson1RouteResponse = (output, context) => {
8140
7993
  return {
8141
7994
  ModelSelectionExpression: (0, smithy_client_1.expectString)(output.modelSelectionExpression),
8142
- ResponseModels: output.responseModels !== undefined && output.responseModels !== null
8143
- ? deserializeAws_restJson1RouteModels(output.responseModels, context)
8144
- : undefined,
8145
- ResponseParameters: output.responseParameters !== undefined && output.responseParameters !== null
7995
+ ResponseModels: output.responseModels != null ? deserializeAws_restJson1RouteModels(output.responseModels, context) : undefined,
7996
+ ResponseParameters: output.responseParameters != null
8146
7997
  ? deserializeAws_restJson1RouteParameters(output.responseParameters, context)
8147
7998
  : undefined,
8148
7999
  RouteResponseId: (0, smithy_client_1.expectString)(output.routeResponseId),
@@ -8182,34 +8033,28 @@ const deserializeAws_restJson1SecurityGroupIdList = (output, context) => {
8182
8033
  };
8183
8034
  const deserializeAws_restJson1Stage = (output, context) => {
8184
8035
  return {
8185
- AccessLogSettings: output.accessLogSettings !== undefined && output.accessLogSettings !== null
8036
+ AccessLogSettings: output.accessLogSettings != null
8186
8037
  ? deserializeAws_restJson1AccessLogSettings(output.accessLogSettings, context)
8187
8038
  : undefined,
8188
8039
  ApiGatewayManaged: (0, smithy_client_1.expectBoolean)(output.apiGatewayManaged),
8189
8040
  AutoDeploy: (0, smithy_client_1.expectBoolean)(output.autoDeploy),
8190
8041
  ClientCertificateId: (0, smithy_client_1.expectString)(output.clientCertificateId),
8191
- CreatedDate: output.createdDate !== undefined && output.createdDate !== null
8192
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.createdDate))
8193
- : undefined,
8194
- DefaultRouteSettings: output.defaultRouteSettings !== undefined && output.defaultRouteSettings !== null
8042
+ CreatedDate: output.createdDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.createdDate)) : undefined,
8043
+ DefaultRouteSettings: output.defaultRouteSettings != null
8195
8044
  ? deserializeAws_restJson1RouteSettings(output.defaultRouteSettings, context)
8196
8045
  : undefined,
8197
8046
  DeploymentId: (0, smithy_client_1.expectString)(output.deploymentId),
8198
8047
  Description: (0, smithy_client_1.expectString)(output.description),
8199
8048
  LastDeploymentStatusMessage: (0, smithy_client_1.expectString)(output.lastDeploymentStatusMessage),
8200
- LastUpdatedDate: output.lastUpdatedDate !== undefined && output.lastUpdatedDate !== null
8201
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.lastUpdatedDate))
8202
- : undefined,
8203
- RouteSettings: output.routeSettings !== undefined && output.routeSettings !== null
8049
+ LastUpdatedDate: output.lastUpdatedDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.lastUpdatedDate)) : undefined,
8050
+ RouteSettings: output.routeSettings != null
8204
8051
  ? deserializeAws_restJson1RouteSettingsMap(output.routeSettings, context)
8205
8052
  : undefined,
8206
8053
  StageName: (0, smithy_client_1.expectString)(output.stageName),
8207
- StageVariables: output.stageVariables !== undefined && output.stageVariables !== null
8054
+ StageVariables: output.stageVariables != null
8208
8055
  ? deserializeAws_restJson1StageVariablesMap(output.stageVariables, context)
8209
8056
  : undefined,
8210
- Tags: output.tags !== undefined && output.tags !== null
8211
- ? deserializeAws_restJson1Tags(output.tags, context)
8212
- : undefined,
8057
+ Tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
8213
8058
  };
8214
8059
  };
8215
8060
  const deserializeAws_restJson1StageVariablesMap = (output, context) => {
@@ -8263,19 +8108,13 @@ const deserializeAws_restJson1TlsConfig = (output, context) => {
8263
8108
  };
8264
8109
  const deserializeAws_restJson1VpcLink = (output, context) => {
8265
8110
  return {
8266
- CreatedDate: output.createdDate !== undefined && output.createdDate !== null
8267
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.createdDate))
8268
- : undefined,
8111
+ CreatedDate: output.createdDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.createdDate)) : undefined,
8269
8112
  Name: (0, smithy_client_1.expectString)(output.name),
8270
- SecurityGroupIds: output.securityGroupIds !== undefined && output.securityGroupIds !== null
8113
+ SecurityGroupIds: output.securityGroupIds != null
8271
8114
  ? deserializeAws_restJson1SecurityGroupIdList(output.securityGroupIds, context)
8272
8115
  : undefined,
8273
- SubnetIds: output.subnetIds !== undefined && output.subnetIds !== null
8274
- ? deserializeAws_restJson1SubnetIdList(output.subnetIds, context)
8275
- : undefined,
8276
- Tags: output.tags !== undefined && output.tags !== null
8277
- ? deserializeAws_restJson1Tags(output.tags, context)
8278
- : undefined,
8116
+ SubnetIds: output.subnetIds != null ? deserializeAws_restJson1SubnetIdList(output.subnetIds, context) : undefined,
8117
+ Tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
8279
8118
  VpcLinkId: (0, smithy_client_1.expectString)(output.vpcLinkId),
8280
8119
  VpcLinkStatus: (0, smithy_client_1.expectString)(output.vpcLinkStatus),
8281
8120
  VpcLinkStatusMessage: (0, smithy_client_1.expectString)(output.vpcLinkStatusMessage),