@aws-sdk/client-direct-connect 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.
@@ -3258,97 +3258,86 @@ const deserializeAws_json1_1TooManyTagsExceptionResponse = async (parsedOutput,
3258
3258
  };
3259
3259
  const serializeAws_json1_1AcceptDirectConnectGatewayAssociationProposalRequest = (input, context) => {
3260
3260
  return {
3261
- ...(input.associatedGatewayOwnerAccount !== undefined &&
3262
- input.associatedGatewayOwnerAccount !== null && {
3261
+ ...(input.associatedGatewayOwnerAccount != null && {
3263
3262
  associatedGatewayOwnerAccount: input.associatedGatewayOwnerAccount,
3264
3263
  }),
3265
- ...(input.directConnectGatewayId !== undefined &&
3266
- input.directConnectGatewayId !== null && { directConnectGatewayId: input.directConnectGatewayId }),
3267
- ...(input.overrideAllowedPrefixesToDirectConnectGateway !== undefined &&
3268
- input.overrideAllowedPrefixesToDirectConnectGateway !== null && {
3264
+ ...(input.directConnectGatewayId != null && { directConnectGatewayId: input.directConnectGatewayId }),
3265
+ ...(input.overrideAllowedPrefixesToDirectConnectGateway != null && {
3269
3266
  overrideAllowedPrefixesToDirectConnectGateway: serializeAws_json1_1RouteFilterPrefixList(input.overrideAllowedPrefixesToDirectConnectGateway, context),
3270
3267
  }),
3271
- ...(input.proposalId !== undefined && input.proposalId !== null && { proposalId: input.proposalId }),
3268
+ ...(input.proposalId != null && { proposalId: input.proposalId }),
3272
3269
  };
3273
3270
  };
3274
3271
  const serializeAws_json1_1AllocateConnectionOnInterconnectRequest = (input, context) => {
3275
3272
  return {
3276
- ...(input.bandwidth !== undefined && input.bandwidth !== null && { bandwidth: input.bandwidth }),
3277
- ...(input.connectionName !== undefined &&
3278
- input.connectionName !== null && { connectionName: input.connectionName }),
3279
- ...(input.interconnectId !== undefined &&
3280
- input.interconnectId !== null && { interconnectId: input.interconnectId }),
3281
- ...(input.ownerAccount !== undefined && input.ownerAccount !== null && { ownerAccount: input.ownerAccount }),
3282
- ...(input.vlan !== undefined && input.vlan !== null && { vlan: input.vlan }),
3273
+ ...(input.bandwidth != null && { bandwidth: input.bandwidth }),
3274
+ ...(input.connectionName != null && { connectionName: input.connectionName }),
3275
+ ...(input.interconnectId != null && { interconnectId: input.interconnectId }),
3276
+ ...(input.ownerAccount != null && { ownerAccount: input.ownerAccount }),
3277
+ ...(input.vlan != null && { vlan: input.vlan }),
3283
3278
  };
3284
3279
  };
3285
3280
  const serializeAws_json1_1AllocateHostedConnectionRequest = (input, context) => {
3286
3281
  return {
3287
- ...(input.bandwidth !== undefined && input.bandwidth !== null && { bandwidth: input.bandwidth }),
3288
- ...(input.connectionId !== undefined && input.connectionId !== null && { connectionId: input.connectionId }),
3289
- ...(input.connectionName !== undefined &&
3290
- input.connectionName !== null && { connectionName: input.connectionName }),
3291
- ...(input.ownerAccount !== undefined && input.ownerAccount !== null && { ownerAccount: input.ownerAccount }),
3292
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1TagList(input.tags, context) }),
3293
- ...(input.vlan !== undefined && input.vlan !== null && { vlan: input.vlan }),
3282
+ ...(input.bandwidth != null && { bandwidth: input.bandwidth }),
3283
+ ...(input.connectionId != null && { connectionId: input.connectionId }),
3284
+ ...(input.connectionName != null && { connectionName: input.connectionName }),
3285
+ ...(input.ownerAccount != null && { ownerAccount: input.ownerAccount }),
3286
+ ...(input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) }),
3287
+ ...(input.vlan != null && { vlan: input.vlan }),
3294
3288
  };
3295
3289
  };
3296
3290
  const serializeAws_json1_1AllocatePrivateVirtualInterfaceRequest = (input, context) => {
3297
3291
  return {
3298
- ...(input.connectionId !== undefined && input.connectionId !== null && { connectionId: input.connectionId }),
3299
- ...(input.newPrivateVirtualInterfaceAllocation !== undefined &&
3300
- input.newPrivateVirtualInterfaceAllocation !== null && {
3292
+ ...(input.connectionId != null && { connectionId: input.connectionId }),
3293
+ ...(input.newPrivateVirtualInterfaceAllocation != null && {
3301
3294
  newPrivateVirtualInterfaceAllocation: serializeAws_json1_1NewPrivateVirtualInterfaceAllocation(input.newPrivateVirtualInterfaceAllocation, context),
3302
3295
  }),
3303
- ...(input.ownerAccount !== undefined && input.ownerAccount !== null && { ownerAccount: input.ownerAccount }),
3296
+ ...(input.ownerAccount != null && { ownerAccount: input.ownerAccount }),
3304
3297
  };
3305
3298
  };
3306
3299
  const serializeAws_json1_1AllocatePublicVirtualInterfaceRequest = (input, context) => {
3307
3300
  return {
3308
- ...(input.connectionId !== undefined && input.connectionId !== null && { connectionId: input.connectionId }),
3309
- ...(input.newPublicVirtualInterfaceAllocation !== undefined &&
3310
- input.newPublicVirtualInterfaceAllocation !== null && {
3301
+ ...(input.connectionId != null && { connectionId: input.connectionId }),
3302
+ ...(input.newPublicVirtualInterfaceAllocation != null && {
3311
3303
  newPublicVirtualInterfaceAllocation: serializeAws_json1_1NewPublicVirtualInterfaceAllocation(input.newPublicVirtualInterfaceAllocation, context),
3312
3304
  }),
3313
- ...(input.ownerAccount !== undefined && input.ownerAccount !== null && { ownerAccount: input.ownerAccount }),
3305
+ ...(input.ownerAccount != null && { ownerAccount: input.ownerAccount }),
3314
3306
  };
3315
3307
  };
3316
3308
  const serializeAws_json1_1AllocateTransitVirtualInterfaceRequest = (input, context) => {
3317
3309
  return {
3318
- ...(input.connectionId !== undefined && input.connectionId !== null && { connectionId: input.connectionId }),
3319
- ...(input.newTransitVirtualInterfaceAllocation !== undefined &&
3320
- input.newTransitVirtualInterfaceAllocation !== null && {
3310
+ ...(input.connectionId != null && { connectionId: input.connectionId }),
3311
+ ...(input.newTransitVirtualInterfaceAllocation != null && {
3321
3312
  newTransitVirtualInterfaceAllocation: serializeAws_json1_1NewTransitVirtualInterfaceAllocation(input.newTransitVirtualInterfaceAllocation, context),
3322
3313
  }),
3323
- ...(input.ownerAccount !== undefined && input.ownerAccount !== null && { ownerAccount: input.ownerAccount }),
3314
+ ...(input.ownerAccount != null && { ownerAccount: input.ownerAccount }),
3324
3315
  };
3325
3316
  };
3326
3317
  const serializeAws_json1_1AssociateConnectionWithLagRequest = (input, context) => {
3327
3318
  return {
3328
- ...(input.connectionId !== undefined && input.connectionId !== null && { connectionId: input.connectionId }),
3329
- ...(input.lagId !== undefined && input.lagId !== null && { lagId: input.lagId }),
3319
+ ...(input.connectionId != null && { connectionId: input.connectionId }),
3320
+ ...(input.lagId != null && { lagId: input.lagId }),
3330
3321
  };
3331
3322
  };
3332
3323
  const serializeAws_json1_1AssociateHostedConnectionRequest = (input, context) => {
3333
3324
  return {
3334
- ...(input.connectionId !== undefined && input.connectionId !== null && { connectionId: input.connectionId }),
3335
- ...(input.parentConnectionId !== undefined &&
3336
- input.parentConnectionId !== null && { parentConnectionId: input.parentConnectionId }),
3325
+ ...(input.connectionId != null && { connectionId: input.connectionId }),
3326
+ ...(input.parentConnectionId != null && { parentConnectionId: input.parentConnectionId }),
3337
3327
  };
3338
3328
  };
3339
3329
  const serializeAws_json1_1AssociateMacSecKeyRequest = (input, context) => {
3340
3330
  return {
3341
- ...(input.cak !== undefined && input.cak !== null && { cak: input.cak }),
3342
- ...(input.ckn !== undefined && input.ckn !== null && { ckn: input.ckn }),
3343
- ...(input.connectionId !== undefined && input.connectionId !== null && { connectionId: input.connectionId }),
3344
- ...(input.secretARN !== undefined && input.secretARN !== null && { secretARN: input.secretARN }),
3331
+ ...(input.cak != null && { cak: input.cak }),
3332
+ ...(input.ckn != null && { ckn: input.ckn }),
3333
+ ...(input.connectionId != null && { connectionId: input.connectionId }),
3334
+ ...(input.secretARN != null && { secretARN: input.secretARN }),
3345
3335
  };
3346
3336
  };
3347
3337
  const serializeAws_json1_1AssociateVirtualInterfaceRequest = (input, context) => {
3348
3338
  return {
3349
- ...(input.connectionId !== undefined && input.connectionId !== null && { connectionId: input.connectionId }),
3350
- ...(input.virtualInterfaceId !== undefined &&
3351
- input.virtualInterfaceId !== null && { virtualInterfaceId: input.virtualInterfaceId }),
3339
+ ...(input.connectionId != null && { connectionId: input.connectionId }),
3340
+ ...(input.virtualInterfaceId != null && { virtualInterfaceId: input.virtualInterfaceId }),
3352
3341
  };
3353
3342
  };
3354
3343
  const serializeAws_json1_1BGPPeerIdList = (input, context) => {
@@ -3363,460 +3352,389 @@ const serializeAws_json1_1BGPPeerIdList = (input, context) => {
3363
3352
  };
3364
3353
  const serializeAws_json1_1ConfirmConnectionRequest = (input, context) => {
3365
3354
  return {
3366
- ...(input.connectionId !== undefined && input.connectionId !== null && { connectionId: input.connectionId }),
3355
+ ...(input.connectionId != null && { connectionId: input.connectionId }),
3367
3356
  };
3368
3357
  };
3369
3358
  const serializeAws_json1_1ConfirmCustomerAgreementRequest = (input, context) => {
3370
3359
  return {
3371
- ...(input.agreementName !== undefined && input.agreementName !== null && { agreementName: input.agreementName }),
3360
+ ...(input.agreementName != null && { agreementName: input.agreementName }),
3372
3361
  };
3373
3362
  };
3374
3363
  const serializeAws_json1_1ConfirmPrivateVirtualInterfaceRequest = (input, context) => {
3375
3364
  return {
3376
- ...(input.directConnectGatewayId !== undefined &&
3377
- input.directConnectGatewayId !== null && { directConnectGatewayId: input.directConnectGatewayId }),
3378
- ...(input.virtualGatewayId !== undefined &&
3379
- input.virtualGatewayId !== null && { virtualGatewayId: input.virtualGatewayId }),
3380
- ...(input.virtualInterfaceId !== undefined &&
3381
- input.virtualInterfaceId !== null && { virtualInterfaceId: input.virtualInterfaceId }),
3365
+ ...(input.directConnectGatewayId != null && { directConnectGatewayId: input.directConnectGatewayId }),
3366
+ ...(input.virtualGatewayId != null && { virtualGatewayId: input.virtualGatewayId }),
3367
+ ...(input.virtualInterfaceId != null && { virtualInterfaceId: input.virtualInterfaceId }),
3382
3368
  };
3383
3369
  };
3384
3370
  const serializeAws_json1_1ConfirmPublicVirtualInterfaceRequest = (input, context) => {
3385
3371
  return {
3386
- ...(input.virtualInterfaceId !== undefined &&
3387
- input.virtualInterfaceId !== null && { virtualInterfaceId: input.virtualInterfaceId }),
3372
+ ...(input.virtualInterfaceId != null && { virtualInterfaceId: input.virtualInterfaceId }),
3388
3373
  };
3389
3374
  };
3390
3375
  const serializeAws_json1_1ConfirmTransitVirtualInterfaceRequest = (input, context) => {
3391
3376
  return {
3392
- ...(input.directConnectGatewayId !== undefined &&
3393
- input.directConnectGatewayId !== null && { directConnectGatewayId: input.directConnectGatewayId }),
3394
- ...(input.virtualInterfaceId !== undefined &&
3395
- input.virtualInterfaceId !== null && { virtualInterfaceId: input.virtualInterfaceId }),
3377
+ ...(input.directConnectGatewayId != null && { directConnectGatewayId: input.directConnectGatewayId }),
3378
+ ...(input.virtualInterfaceId != null && { virtualInterfaceId: input.virtualInterfaceId }),
3396
3379
  };
3397
3380
  };
3398
3381
  const serializeAws_json1_1CreateBGPPeerRequest = (input, context) => {
3399
3382
  return {
3400
- ...(input.newBGPPeer !== undefined &&
3401
- input.newBGPPeer !== null && { newBGPPeer: serializeAws_json1_1NewBGPPeer(input.newBGPPeer, context) }),
3402
- ...(input.virtualInterfaceId !== undefined &&
3403
- input.virtualInterfaceId !== null && { virtualInterfaceId: input.virtualInterfaceId }),
3383
+ ...(input.newBGPPeer != null && { newBGPPeer: serializeAws_json1_1NewBGPPeer(input.newBGPPeer, context) }),
3384
+ ...(input.virtualInterfaceId != null && { virtualInterfaceId: input.virtualInterfaceId }),
3404
3385
  };
3405
3386
  };
3406
3387
  const serializeAws_json1_1CreateConnectionRequest = (input, context) => {
3407
3388
  return {
3408
- ...(input.bandwidth !== undefined && input.bandwidth !== null && { bandwidth: input.bandwidth }),
3409
- ...(input.connectionName !== undefined &&
3410
- input.connectionName !== null && { connectionName: input.connectionName }),
3411
- ...(input.lagId !== undefined && input.lagId !== null && { lagId: input.lagId }),
3412
- ...(input.location !== undefined && input.location !== null && { location: input.location }),
3413
- ...(input.providerName !== undefined && input.providerName !== null && { providerName: input.providerName }),
3414
- ...(input.requestMACSec !== undefined && input.requestMACSec !== null && { requestMACSec: input.requestMACSec }),
3415
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1TagList(input.tags, context) }),
3389
+ ...(input.bandwidth != null && { bandwidth: input.bandwidth }),
3390
+ ...(input.connectionName != null && { connectionName: input.connectionName }),
3391
+ ...(input.lagId != null && { lagId: input.lagId }),
3392
+ ...(input.location != null && { location: input.location }),
3393
+ ...(input.providerName != null && { providerName: input.providerName }),
3394
+ ...(input.requestMACSec != null && { requestMACSec: input.requestMACSec }),
3395
+ ...(input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) }),
3416
3396
  };
3417
3397
  };
3418
3398
  const serializeAws_json1_1CreateDirectConnectGatewayAssociationProposalRequest = (input, context) => {
3419
3399
  return {
3420
- ...(input.addAllowedPrefixesToDirectConnectGateway !== undefined &&
3421
- input.addAllowedPrefixesToDirectConnectGateway !== null && {
3400
+ ...(input.addAllowedPrefixesToDirectConnectGateway != null && {
3422
3401
  addAllowedPrefixesToDirectConnectGateway: serializeAws_json1_1RouteFilterPrefixList(input.addAllowedPrefixesToDirectConnectGateway, context),
3423
3402
  }),
3424
- ...(input.directConnectGatewayId !== undefined &&
3425
- input.directConnectGatewayId !== null && { directConnectGatewayId: input.directConnectGatewayId }),
3426
- ...(input.directConnectGatewayOwnerAccount !== undefined &&
3427
- input.directConnectGatewayOwnerAccount !== null && {
3403
+ ...(input.directConnectGatewayId != null && { directConnectGatewayId: input.directConnectGatewayId }),
3404
+ ...(input.directConnectGatewayOwnerAccount != null && {
3428
3405
  directConnectGatewayOwnerAccount: input.directConnectGatewayOwnerAccount,
3429
3406
  }),
3430
- ...(input.gatewayId !== undefined && input.gatewayId !== null && { gatewayId: input.gatewayId }),
3431
- ...(input.removeAllowedPrefixesToDirectConnectGateway !== undefined &&
3432
- input.removeAllowedPrefixesToDirectConnectGateway !== null && {
3407
+ ...(input.gatewayId != null && { gatewayId: input.gatewayId }),
3408
+ ...(input.removeAllowedPrefixesToDirectConnectGateway != null && {
3433
3409
  removeAllowedPrefixesToDirectConnectGateway: serializeAws_json1_1RouteFilterPrefixList(input.removeAllowedPrefixesToDirectConnectGateway, context),
3434
3410
  }),
3435
3411
  };
3436
3412
  };
3437
3413
  const serializeAws_json1_1CreateDirectConnectGatewayAssociationRequest = (input, context) => {
3438
3414
  return {
3439
- ...(input.addAllowedPrefixesToDirectConnectGateway !== undefined &&
3440
- input.addAllowedPrefixesToDirectConnectGateway !== null && {
3415
+ ...(input.addAllowedPrefixesToDirectConnectGateway != null && {
3441
3416
  addAllowedPrefixesToDirectConnectGateway: serializeAws_json1_1RouteFilterPrefixList(input.addAllowedPrefixesToDirectConnectGateway, context),
3442
3417
  }),
3443
- ...(input.directConnectGatewayId !== undefined &&
3444
- input.directConnectGatewayId !== null && { directConnectGatewayId: input.directConnectGatewayId }),
3445
- ...(input.gatewayId !== undefined && input.gatewayId !== null && { gatewayId: input.gatewayId }),
3446
- ...(input.virtualGatewayId !== undefined &&
3447
- input.virtualGatewayId !== null && { virtualGatewayId: input.virtualGatewayId }),
3418
+ ...(input.directConnectGatewayId != null && { directConnectGatewayId: input.directConnectGatewayId }),
3419
+ ...(input.gatewayId != null && { gatewayId: input.gatewayId }),
3420
+ ...(input.virtualGatewayId != null && { virtualGatewayId: input.virtualGatewayId }),
3448
3421
  };
3449
3422
  };
3450
3423
  const serializeAws_json1_1CreateDirectConnectGatewayRequest = (input, context) => {
3451
3424
  return {
3452
- ...(input.amazonSideAsn !== undefined && input.amazonSideAsn !== null && { amazonSideAsn: input.amazonSideAsn }),
3453
- ...(input.directConnectGatewayName !== undefined &&
3454
- input.directConnectGatewayName !== null && { directConnectGatewayName: input.directConnectGatewayName }),
3425
+ ...(input.amazonSideAsn != null && { amazonSideAsn: input.amazonSideAsn }),
3426
+ ...(input.directConnectGatewayName != null && { directConnectGatewayName: input.directConnectGatewayName }),
3455
3427
  };
3456
3428
  };
3457
3429
  const serializeAws_json1_1CreateInterconnectRequest = (input, context) => {
3458
3430
  return {
3459
- ...(input.bandwidth !== undefined && input.bandwidth !== null && { bandwidth: input.bandwidth }),
3460
- ...(input.interconnectName !== undefined &&
3461
- input.interconnectName !== null && { interconnectName: input.interconnectName }),
3462
- ...(input.lagId !== undefined && input.lagId !== null && { lagId: input.lagId }),
3463
- ...(input.location !== undefined && input.location !== null && { location: input.location }),
3464
- ...(input.providerName !== undefined && input.providerName !== null && { providerName: input.providerName }),
3465
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1TagList(input.tags, context) }),
3431
+ ...(input.bandwidth != null && { bandwidth: input.bandwidth }),
3432
+ ...(input.interconnectName != null && { interconnectName: input.interconnectName }),
3433
+ ...(input.lagId != null && { lagId: input.lagId }),
3434
+ ...(input.location != null && { location: input.location }),
3435
+ ...(input.providerName != null && { providerName: input.providerName }),
3436
+ ...(input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) }),
3466
3437
  };
3467
3438
  };
3468
3439
  const serializeAws_json1_1CreateLagRequest = (input, context) => {
3469
3440
  return {
3470
- ...(input.childConnectionTags !== undefined &&
3471
- input.childConnectionTags !== null && {
3441
+ ...(input.childConnectionTags != null && {
3472
3442
  childConnectionTags: serializeAws_json1_1TagList(input.childConnectionTags, context),
3473
3443
  }),
3474
- ...(input.connectionId !== undefined && input.connectionId !== null && { connectionId: input.connectionId }),
3475
- ...(input.connectionsBandwidth !== undefined &&
3476
- input.connectionsBandwidth !== null && { connectionsBandwidth: input.connectionsBandwidth }),
3477
- ...(input.lagName !== undefined && input.lagName !== null && { lagName: input.lagName }),
3478
- ...(input.location !== undefined && input.location !== null && { location: input.location }),
3479
- ...(input.numberOfConnections !== undefined &&
3480
- input.numberOfConnections !== null && { numberOfConnections: input.numberOfConnections }),
3481
- ...(input.providerName !== undefined && input.providerName !== null && { providerName: input.providerName }),
3482
- ...(input.requestMACSec !== undefined && input.requestMACSec !== null && { requestMACSec: input.requestMACSec }),
3483
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1TagList(input.tags, context) }),
3444
+ ...(input.connectionId != null && { connectionId: input.connectionId }),
3445
+ ...(input.connectionsBandwidth != null && { connectionsBandwidth: input.connectionsBandwidth }),
3446
+ ...(input.lagName != null && { lagName: input.lagName }),
3447
+ ...(input.location != null && { location: input.location }),
3448
+ ...(input.numberOfConnections != null && { numberOfConnections: input.numberOfConnections }),
3449
+ ...(input.providerName != null && { providerName: input.providerName }),
3450
+ ...(input.requestMACSec != null && { requestMACSec: input.requestMACSec }),
3451
+ ...(input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) }),
3484
3452
  };
3485
3453
  };
3486
3454
  const serializeAws_json1_1CreatePrivateVirtualInterfaceRequest = (input, context) => {
3487
3455
  return {
3488
- ...(input.connectionId !== undefined && input.connectionId !== null && { connectionId: input.connectionId }),
3489
- ...(input.newPrivateVirtualInterface !== undefined &&
3490
- input.newPrivateVirtualInterface !== null && {
3456
+ ...(input.connectionId != null && { connectionId: input.connectionId }),
3457
+ ...(input.newPrivateVirtualInterface != null && {
3491
3458
  newPrivateVirtualInterface: serializeAws_json1_1NewPrivateVirtualInterface(input.newPrivateVirtualInterface, context),
3492
3459
  }),
3493
3460
  };
3494
3461
  };
3495
3462
  const serializeAws_json1_1CreatePublicVirtualInterfaceRequest = (input, context) => {
3496
3463
  return {
3497
- ...(input.connectionId !== undefined && input.connectionId !== null && { connectionId: input.connectionId }),
3498
- ...(input.newPublicVirtualInterface !== undefined &&
3499
- input.newPublicVirtualInterface !== null && {
3464
+ ...(input.connectionId != null && { connectionId: input.connectionId }),
3465
+ ...(input.newPublicVirtualInterface != null && {
3500
3466
  newPublicVirtualInterface: serializeAws_json1_1NewPublicVirtualInterface(input.newPublicVirtualInterface, context),
3501
3467
  }),
3502
3468
  };
3503
3469
  };
3504
3470
  const serializeAws_json1_1CreateTransitVirtualInterfaceRequest = (input, context) => {
3505
3471
  return {
3506
- ...(input.connectionId !== undefined && input.connectionId !== null && { connectionId: input.connectionId }),
3507
- ...(input.newTransitVirtualInterface !== undefined &&
3508
- input.newTransitVirtualInterface !== null && {
3472
+ ...(input.connectionId != null && { connectionId: input.connectionId }),
3473
+ ...(input.newTransitVirtualInterface != null && {
3509
3474
  newTransitVirtualInterface: serializeAws_json1_1NewTransitVirtualInterface(input.newTransitVirtualInterface, context),
3510
3475
  }),
3511
3476
  };
3512
3477
  };
3513
3478
  const serializeAws_json1_1DeleteBGPPeerRequest = (input, context) => {
3514
3479
  return {
3515
- ...(input.asn !== undefined && input.asn !== null && { asn: input.asn }),
3516
- ...(input.bgpPeerId !== undefined && input.bgpPeerId !== null && { bgpPeerId: input.bgpPeerId }),
3517
- ...(input.customerAddress !== undefined &&
3518
- input.customerAddress !== null && { customerAddress: input.customerAddress }),
3519
- ...(input.virtualInterfaceId !== undefined &&
3520
- input.virtualInterfaceId !== null && { virtualInterfaceId: input.virtualInterfaceId }),
3480
+ ...(input.asn != null && { asn: input.asn }),
3481
+ ...(input.bgpPeerId != null && { bgpPeerId: input.bgpPeerId }),
3482
+ ...(input.customerAddress != null && { customerAddress: input.customerAddress }),
3483
+ ...(input.virtualInterfaceId != null && { virtualInterfaceId: input.virtualInterfaceId }),
3521
3484
  };
3522
3485
  };
3523
3486
  const serializeAws_json1_1DeleteConnectionRequest = (input, context) => {
3524
3487
  return {
3525
- ...(input.connectionId !== undefined && input.connectionId !== null && { connectionId: input.connectionId }),
3488
+ ...(input.connectionId != null && { connectionId: input.connectionId }),
3526
3489
  };
3527
3490
  };
3528
3491
  const serializeAws_json1_1DeleteDirectConnectGatewayAssociationProposalRequest = (input, context) => {
3529
3492
  return {
3530
- ...(input.proposalId !== undefined && input.proposalId !== null && { proposalId: input.proposalId }),
3493
+ ...(input.proposalId != null && { proposalId: input.proposalId }),
3531
3494
  };
3532
3495
  };
3533
3496
  const serializeAws_json1_1DeleteDirectConnectGatewayAssociationRequest = (input, context) => {
3534
3497
  return {
3535
- ...(input.associationId !== undefined && input.associationId !== null && { associationId: input.associationId }),
3536
- ...(input.directConnectGatewayId !== undefined &&
3537
- input.directConnectGatewayId !== null && { directConnectGatewayId: input.directConnectGatewayId }),
3538
- ...(input.virtualGatewayId !== undefined &&
3539
- input.virtualGatewayId !== null && { virtualGatewayId: input.virtualGatewayId }),
3498
+ ...(input.associationId != null && { associationId: input.associationId }),
3499
+ ...(input.directConnectGatewayId != null && { directConnectGatewayId: input.directConnectGatewayId }),
3500
+ ...(input.virtualGatewayId != null && { virtualGatewayId: input.virtualGatewayId }),
3540
3501
  };
3541
3502
  };
3542
3503
  const serializeAws_json1_1DeleteDirectConnectGatewayRequest = (input, context) => {
3543
3504
  return {
3544
- ...(input.directConnectGatewayId !== undefined &&
3545
- input.directConnectGatewayId !== null && { directConnectGatewayId: input.directConnectGatewayId }),
3505
+ ...(input.directConnectGatewayId != null && { directConnectGatewayId: input.directConnectGatewayId }),
3546
3506
  };
3547
3507
  };
3548
3508
  const serializeAws_json1_1DeleteInterconnectRequest = (input, context) => {
3549
3509
  return {
3550
- ...(input.interconnectId !== undefined &&
3551
- input.interconnectId !== null && { interconnectId: input.interconnectId }),
3510
+ ...(input.interconnectId != null && { interconnectId: input.interconnectId }),
3552
3511
  };
3553
3512
  };
3554
3513
  const serializeAws_json1_1DeleteLagRequest = (input, context) => {
3555
3514
  return {
3556
- ...(input.lagId !== undefined && input.lagId !== null && { lagId: input.lagId }),
3515
+ ...(input.lagId != null && { lagId: input.lagId }),
3557
3516
  };
3558
3517
  };
3559
3518
  const serializeAws_json1_1DeleteVirtualInterfaceRequest = (input, context) => {
3560
3519
  return {
3561
- ...(input.virtualInterfaceId !== undefined &&
3562
- input.virtualInterfaceId !== null && { virtualInterfaceId: input.virtualInterfaceId }),
3520
+ ...(input.virtualInterfaceId != null && { virtualInterfaceId: input.virtualInterfaceId }),
3563
3521
  };
3564
3522
  };
3565
3523
  const serializeAws_json1_1DescribeConnectionLoaRequest = (input, context) => {
3566
3524
  return {
3567
- ...(input.connectionId !== undefined && input.connectionId !== null && { connectionId: input.connectionId }),
3568
- ...(input.loaContentType !== undefined &&
3569
- input.loaContentType !== null && { loaContentType: input.loaContentType }),
3570
- ...(input.providerName !== undefined && input.providerName !== null && { providerName: input.providerName }),
3525
+ ...(input.connectionId != null && { connectionId: input.connectionId }),
3526
+ ...(input.loaContentType != null && { loaContentType: input.loaContentType }),
3527
+ ...(input.providerName != null && { providerName: input.providerName }),
3571
3528
  };
3572
3529
  };
3573
3530
  const serializeAws_json1_1DescribeConnectionsOnInterconnectRequest = (input, context) => {
3574
3531
  return {
3575
- ...(input.interconnectId !== undefined &&
3576
- input.interconnectId !== null && { interconnectId: input.interconnectId }),
3532
+ ...(input.interconnectId != null && { interconnectId: input.interconnectId }),
3577
3533
  };
3578
3534
  };
3579
3535
  const serializeAws_json1_1DescribeConnectionsRequest = (input, context) => {
3580
3536
  return {
3581
- ...(input.connectionId !== undefined && input.connectionId !== null && { connectionId: input.connectionId }),
3537
+ ...(input.connectionId != null && { connectionId: input.connectionId }),
3582
3538
  };
3583
3539
  };
3584
3540
  const serializeAws_json1_1DescribeDirectConnectGatewayAssociationProposalsRequest = (input, context) => {
3585
3541
  return {
3586
- ...(input.associatedGatewayId !== undefined &&
3587
- input.associatedGatewayId !== null && { associatedGatewayId: input.associatedGatewayId }),
3588
- ...(input.directConnectGatewayId !== undefined &&
3589
- input.directConnectGatewayId !== null && { directConnectGatewayId: input.directConnectGatewayId }),
3590
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
3591
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
3592
- ...(input.proposalId !== undefined && input.proposalId !== null && { proposalId: input.proposalId }),
3542
+ ...(input.associatedGatewayId != null && { associatedGatewayId: input.associatedGatewayId }),
3543
+ ...(input.directConnectGatewayId != null && { directConnectGatewayId: input.directConnectGatewayId }),
3544
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
3545
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
3546
+ ...(input.proposalId != null && { proposalId: input.proposalId }),
3593
3547
  };
3594
3548
  };
3595
3549
  const serializeAws_json1_1DescribeDirectConnectGatewayAssociationsRequest = (input, context) => {
3596
3550
  return {
3597
- ...(input.associatedGatewayId !== undefined &&
3598
- input.associatedGatewayId !== null && { associatedGatewayId: input.associatedGatewayId }),
3599
- ...(input.associationId !== undefined && input.associationId !== null && { associationId: input.associationId }),
3600
- ...(input.directConnectGatewayId !== undefined &&
3601
- input.directConnectGatewayId !== null && { directConnectGatewayId: input.directConnectGatewayId }),
3602
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
3603
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
3604
- ...(input.virtualGatewayId !== undefined &&
3605
- input.virtualGatewayId !== null && { virtualGatewayId: input.virtualGatewayId }),
3551
+ ...(input.associatedGatewayId != null && { associatedGatewayId: input.associatedGatewayId }),
3552
+ ...(input.associationId != null && { associationId: input.associationId }),
3553
+ ...(input.directConnectGatewayId != null && { directConnectGatewayId: input.directConnectGatewayId }),
3554
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
3555
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
3556
+ ...(input.virtualGatewayId != null && { virtualGatewayId: input.virtualGatewayId }),
3606
3557
  };
3607
3558
  };
3608
3559
  const serializeAws_json1_1DescribeDirectConnectGatewayAttachmentsRequest = (input, context) => {
3609
3560
  return {
3610
- ...(input.directConnectGatewayId !== undefined &&
3611
- input.directConnectGatewayId !== null && { directConnectGatewayId: input.directConnectGatewayId }),
3612
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
3613
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
3614
- ...(input.virtualInterfaceId !== undefined &&
3615
- input.virtualInterfaceId !== null && { virtualInterfaceId: input.virtualInterfaceId }),
3561
+ ...(input.directConnectGatewayId != null && { directConnectGatewayId: input.directConnectGatewayId }),
3562
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
3563
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
3564
+ ...(input.virtualInterfaceId != null && { virtualInterfaceId: input.virtualInterfaceId }),
3616
3565
  };
3617
3566
  };
3618
3567
  const serializeAws_json1_1DescribeDirectConnectGatewaysRequest = (input, context) => {
3619
3568
  return {
3620
- ...(input.directConnectGatewayId !== undefined &&
3621
- input.directConnectGatewayId !== null && { directConnectGatewayId: input.directConnectGatewayId }),
3622
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
3623
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
3569
+ ...(input.directConnectGatewayId != null && { directConnectGatewayId: input.directConnectGatewayId }),
3570
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
3571
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
3624
3572
  };
3625
3573
  };
3626
3574
  const serializeAws_json1_1DescribeHostedConnectionsRequest = (input, context) => {
3627
3575
  return {
3628
- ...(input.connectionId !== undefined && input.connectionId !== null && { connectionId: input.connectionId }),
3576
+ ...(input.connectionId != null && { connectionId: input.connectionId }),
3629
3577
  };
3630
3578
  };
3631
3579
  const serializeAws_json1_1DescribeInterconnectLoaRequest = (input, context) => {
3632
3580
  return {
3633
- ...(input.interconnectId !== undefined &&
3634
- input.interconnectId !== null && { interconnectId: input.interconnectId }),
3635
- ...(input.loaContentType !== undefined &&
3636
- input.loaContentType !== null && { loaContentType: input.loaContentType }),
3637
- ...(input.providerName !== undefined && input.providerName !== null && { providerName: input.providerName }),
3581
+ ...(input.interconnectId != null && { interconnectId: input.interconnectId }),
3582
+ ...(input.loaContentType != null && { loaContentType: input.loaContentType }),
3583
+ ...(input.providerName != null && { providerName: input.providerName }),
3638
3584
  };
3639
3585
  };
3640
3586
  const serializeAws_json1_1DescribeInterconnectsRequest = (input, context) => {
3641
3587
  return {
3642
- ...(input.interconnectId !== undefined &&
3643
- input.interconnectId !== null && { interconnectId: input.interconnectId }),
3588
+ ...(input.interconnectId != null && { interconnectId: input.interconnectId }),
3644
3589
  };
3645
3590
  };
3646
3591
  const serializeAws_json1_1DescribeLagsRequest = (input, context) => {
3647
3592
  return {
3648
- ...(input.lagId !== undefined && input.lagId !== null && { lagId: input.lagId }),
3593
+ ...(input.lagId != null && { lagId: input.lagId }),
3649
3594
  };
3650
3595
  };
3651
3596
  const serializeAws_json1_1DescribeLoaRequest = (input, context) => {
3652
3597
  return {
3653
- ...(input.connectionId !== undefined && input.connectionId !== null && { connectionId: input.connectionId }),
3654
- ...(input.loaContentType !== undefined &&
3655
- input.loaContentType !== null && { loaContentType: input.loaContentType }),
3656
- ...(input.providerName !== undefined && input.providerName !== null && { providerName: input.providerName }),
3598
+ ...(input.connectionId != null && { connectionId: input.connectionId }),
3599
+ ...(input.loaContentType != null && { loaContentType: input.loaContentType }),
3600
+ ...(input.providerName != null && { providerName: input.providerName }),
3657
3601
  };
3658
3602
  };
3659
3603
  const serializeAws_json1_1DescribeRouterConfigurationRequest = (input, context) => {
3660
3604
  return {
3661
- ...(input.routerTypeIdentifier !== undefined &&
3662
- input.routerTypeIdentifier !== null && { routerTypeIdentifier: input.routerTypeIdentifier }),
3663
- ...(input.virtualInterfaceId !== undefined &&
3664
- input.virtualInterfaceId !== null && { virtualInterfaceId: input.virtualInterfaceId }),
3605
+ ...(input.routerTypeIdentifier != null && { routerTypeIdentifier: input.routerTypeIdentifier }),
3606
+ ...(input.virtualInterfaceId != null && { virtualInterfaceId: input.virtualInterfaceId }),
3665
3607
  };
3666
3608
  };
3667
3609
  const serializeAws_json1_1DescribeTagsRequest = (input, context) => {
3668
3610
  return {
3669
- ...(input.resourceArns !== undefined &&
3670
- input.resourceArns !== null && {
3611
+ ...(input.resourceArns != null && {
3671
3612
  resourceArns: serializeAws_json1_1ResourceArnList(input.resourceArns, context),
3672
3613
  }),
3673
3614
  };
3674
3615
  };
3675
3616
  const serializeAws_json1_1DescribeVirtualInterfacesRequest = (input, context) => {
3676
3617
  return {
3677
- ...(input.connectionId !== undefined && input.connectionId !== null && { connectionId: input.connectionId }),
3678
- ...(input.virtualInterfaceId !== undefined &&
3679
- input.virtualInterfaceId !== null && { virtualInterfaceId: input.virtualInterfaceId }),
3618
+ ...(input.connectionId != null && { connectionId: input.connectionId }),
3619
+ ...(input.virtualInterfaceId != null && { virtualInterfaceId: input.virtualInterfaceId }),
3680
3620
  };
3681
3621
  };
3682
3622
  const serializeAws_json1_1DisassociateConnectionFromLagRequest = (input, context) => {
3683
3623
  return {
3684
- ...(input.connectionId !== undefined && input.connectionId !== null && { connectionId: input.connectionId }),
3685
- ...(input.lagId !== undefined && input.lagId !== null && { lagId: input.lagId }),
3624
+ ...(input.connectionId != null && { connectionId: input.connectionId }),
3625
+ ...(input.lagId != null && { lagId: input.lagId }),
3686
3626
  };
3687
3627
  };
3688
3628
  const serializeAws_json1_1DisassociateMacSecKeyRequest = (input, context) => {
3689
3629
  return {
3690
- ...(input.connectionId !== undefined && input.connectionId !== null && { connectionId: input.connectionId }),
3691
- ...(input.secretARN !== undefined && input.secretARN !== null && { secretARN: input.secretARN }),
3630
+ ...(input.connectionId != null && { connectionId: input.connectionId }),
3631
+ ...(input.secretARN != null && { secretARN: input.secretARN }),
3692
3632
  };
3693
3633
  };
3694
3634
  const serializeAws_json1_1ListVirtualInterfaceTestHistoryRequest = (input, context) => {
3695
3635
  return {
3696
- ...(input.bgpPeers !== undefined &&
3697
- input.bgpPeers !== null && { bgpPeers: serializeAws_json1_1BGPPeerIdList(input.bgpPeers, context) }),
3698
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
3699
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
3700
- ...(input.status !== undefined && input.status !== null && { status: input.status }),
3701
- ...(input.testId !== undefined && input.testId !== null && { testId: input.testId }),
3702
- ...(input.virtualInterfaceId !== undefined &&
3703
- input.virtualInterfaceId !== null && { virtualInterfaceId: input.virtualInterfaceId }),
3636
+ ...(input.bgpPeers != null && { bgpPeers: serializeAws_json1_1BGPPeerIdList(input.bgpPeers, context) }),
3637
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
3638
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
3639
+ ...(input.status != null && { status: input.status }),
3640
+ ...(input.testId != null && { testId: input.testId }),
3641
+ ...(input.virtualInterfaceId != null && { virtualInterfaceId: input.virtualInterfaceId }),
3704
3642
  };
3705
3643
  };
3706
3644
  const serializeAws_json1_1NewBGPPeer = (input, context) => {
3707
3645
  return {
3708
- ...(input.addressFamily !== undefined && input.addressFamily !== null && { addressFamily: input.addressFamily }),
3709
- ...(input.amazonAddress !== undefined && input.amazonAddress !== null && { amazonAddress: input.amazonAddress }),
3710
- ...(input.asn !== undefined && input.asn !== null && { asn: input.asn }),
3711
- ...(input.authKey !== undefined && input.authKey !== null && { authKey: input.authKey }),
3712
- ...(input.customerAddress !== undefined &&
3713
- input.customerAddress !== null && { customerAddress: input.customerAddress }),
3646
+ ...(input.addressFamily != null && { addressFamily: input.addressFamily }),
3647
+ ...(input.amazonAddress != null && { amazonAddress: input.amazonAddress }),
3648
+ ...(input.asn != null && { asn: input.asn }),
3649
+ ...(input.authKey != null && { authKey: input.authKey }),
3650
+ ...(input.customerAddress != null && { customerAddress: input.customerAddress }),
3714
3651
  };
3715
3652
  };
3716
3653
  const serializeAws_json1_1NewPrivateVirtualInterface = (input, context) => {
3717
3654
  return {
3718
- ...(input.addressFamily !== undefined && input.addressFamily !== null && { addressFamily: input.addressFamily }),
3719
- ...(input.amazonAddress !== undefined && input.amazonAddress !== null && { amazonAddress: input.amazonAddress }),
3720
- ...(input.asn !== undefined && input.asn !== null && { asn: input.asn }),
3721
- ...(input.authKey !== undefined && input.authKey !== null && { authKey: input.authKey }),
3722
- ...(input.customerAddress !== undefined &&
3723
- input.customerAddress !== null && { customerAddress: input.customerAddress }),
3724
- ...(input.directConnectGatewayId !== undefined &&
3725
- input.directConnectGatewayId !== null && { directConnectGatewayId: input.directConnectGatewayId }),
3726
- ...(input.enableSiteLink !== undefined &&
3727
- input.enableSiteLink !== null && { enableSiteLink: input.enableSiteLink }),
3728
- ...(input.mtu !== undefined && input.mtu !== null && { mtu: input.mtu }),
3729
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1TagList(input.tags, context) }),
3730
- ...(input.virtualGatewayId !== undefined &&
3731
- input.virtualGatewayId !== null && { virtualGatewayId: input.virtualGatewayId }),
3732
- ...(input.virtualInterfaceName !== undefined &&
3733
- input.virtualInterfaceName !== null && { virtualInterfaceName: input.virtualInterfaceName }),
3734
- ...(input.vlan !== undefined && input.vlan !== null && { vlan: input.vlan }),
3655
+ ...(input.addressFamily != null && { addressFamily: input.addressFamily }),
3656
+ ...(input.amazonAddress != null && { amazonAddress: input.amazonAddress }),
3657
+ ...(input.asn != null && { asn: input.asn }),
3658
+ ...(input.authKey != null && { authKey: input.authKey }),
3659
+ ...(input.customerAddress != null && { customerAddress: input.customerAddress }),
3660
+ ...(input.directConnectGatewayId != null && { directConnectGatewayId: input.directConnectGatewayId }),
3661
+ ...(input.enableSiteLink != null && { enableSiteLink: input.enableSiteLink }),
3662
+ ...(input.mtu != null && { mtu: input.mtu }),
3663
+ ...(input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) }),
3664
+ ...(input.virtualGatewayId != null && { virtualGatewayId: input.virtualGatewayId }),
3665
+ ...(input.virtualInterfaceName != null && { virtualInterfaceName: input.virtualInterfaceName }),
3666
+ ...(input.vlan != null && { vlan: input.vlan }),
3735
3667
  };
3736
3668
  };
3737
3669
  const serializeAws_json1_1NewPrivateVirtualInterfaceAllocation = (input, context) => {
3738
3670
  return {
3739
- ...(input.addressFamily !== undefined && input.addressFamily !== null && { addressFamily: input.addressFamily }),
3740
- ...(input.amazonAddress !== undefined && input.amazonAddress !== null && { amazonAddress: input.amazonAddress }),
3741
- ...(input.asn !== undefined && input.asn !== null && { asn: input.asn }),
3742
- ...(input.authKey !== undefined && input.authKey !== null && { authKey: input.authKey }),
3743
- ...(input.customerAddress !== undefined &&
3744
- input.customerAddress !== null && { customerAddress: input.customerAddress }),
3745
- ...(input.mtu !== undefined && input.mtu !== null && { mtu: input.mtu }),
3746
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1TagList(input.tags, context) }),
3747
- ...(input.virtualInterfaceName !== undefined &&
3748
- input.virtualInterfaceName !== null && { virtualInterfaceName: input.virtualInterfaceName }),
3749
- ...(input.vlan !== undefined && input.vlan !== null && { vlan: input.vlan }),
3671
+ ...(input.addressFamily != null && { addressFamily: input.addressFamily }),
3672
+ ...(input.amazonAddress != null && { amazonAddress: input.amazonAddress }),
3673
+ ...(input.asn != null && { asn: input.asn }),
3674
+ ...(input.authKey != null && { authKey: input.authKey }),
3675
+ ...(input.customerAddress != null && { customerAddress: input.customerAddress }),
3676
+ ...(input.mtu != null && { mtu: input.mtu }),
3677
+ ...(input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) }),
3678
+ ...(input.virtualInterfaceName != null && { virtualInterfaceName: input.virtualInterfaceName }),
3679
+ ...(input.vlan != null && { vlan: input.vlan }),
3750
3680
  };
3751
3681
  };
3752
3682
  const serializeAws_json1_1NewPublicVirtualInterface = (input, context) => {
3753
3683
  return {
3754
- ...(input.addressFamily !== undefined && input.addressFamily !== null && { addressFamily: input.addressFamily }),
3755
- ...(input.amazonAddress !== undefined && input.amazonAddress !== null && { amazonAddress: input.amazonAddress }),
3756
- ...(input.asn !== undefined && input.asn !== null && { asn: input.asn }),
3757
- ...(input.authKey !== undefined && input.authKey !== null && { authKey: input.authKey }),
3758
- ...(input.customerAddress !== undefined &&
3759
- input.customerAddress !== null && { customerAddress: input.customerAddress }),
3760
- ...(input.routeFilterPrefixes !== undefined &&
3761
- input.routeFilterPrefixes !== null && {
3684
+ ...(input.addressFamily != null && { addressFamily: input.addressFamily }),
3685
+ ...(input.amazonAddress != null && { amazonAddress: input.amazonAddress }),
3686
+ ...(input.asn != null && { asn: input.asn }),
3687
+ ...(input.authKey != null && { authKey: input.authKey }),
3688
+ ...(input.customerAddress != null && { customerAddress: input.customerAddress }),
3689
+ ...(input.routeFilterPrefixes != null && {
3762
3690
  routeFilterPrefixes: serializeAws_json1_1RouteFilterPrefixList(input.routeFilterPrefixes, context),
3763
3691
  }),
3764
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1TagList(input.tags, context) }),
3765
- ...(input.virtualInterfaceName !== undefined &&
3766
- input.virtualInterfaceName !== null && { virtualInterfaceName: input.virtualInterfaceName }),
3767
- ...(input.vlan !== undefined && input.vlan !== null && { vlan: input.vlan }),
3692
+ ...(input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) }),
3693
+ ...(input.virtualInterfaceName != null && { virtualInterfaceName: input.virtualInterfaceName }),
3694
+ ...(input.vlan != null && { vlan: input.vlan }),
3768
3695
  };
3769
3696
  };
3770
3697
  const serializeAws_json1_1NewPublicVirtualInterfaceAllocation = (input, context) => {
3771
3698
  return {
3772
- ...(input.addressFamily !== undefined && input.addressFamily !== null && { addressFamily: input.addressFamily }),
3773
- ...(input.amazonAddress !== undefined && input.amazonAddress !== null && { amazonAddress: input.amazonAddress }),
3774
- ...(input.asn !== undefined && input.asn !== null && { asn: input.asn }),
3775
- ...(input.authKey !== undefined && input.authKey !== null && { authKey: input.authKey }),
3776
- ...(input.customerAddress !== undefined &&
3777
- input.customerAddress !== null && { customerAddress: input.customerAddress }),
3778
- ...(input.routeFilterPrefixes !== undefined &&
3779
- input.routeFilterPrefixes !== null && {
3699
+ ...(input.addressFamily != null && { addressFamily: input.addressFamily }),
3700
+ ...(input.amazonAddress != null && { amazonAddress: input.amazonAddress }),
3701
+ ...(input.asn != null && { asn: input.asn }),
3702
+ ...(input.authKey != null && { authKey: input.authKey }),
3703
+ ...(input.customerAddress != null && { customerAddress: input.customerAddress }),
3704
+ ...(input.routeFilterPrefixes != null && {
3780
3705
  routeFilterPrefixes: serializeAws_json1_1RouteFilterPrefixList(input.routeFilterPrefixes, context),
3781
3706
  }),
3782
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1TagList(input.tags, context) }),
3783
- ...(input.virtualInterfaceName !== undefined &&
3784
- input.virtualInterfaceName !== null && { virtualInterfaceName: input.virtualInterfaceName }),
3785
- ...(input.vlan !== undefined && input.vlan !== null && { vlan: input.vlan }),
3707
+ ...(input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) }),
3708
+ ...(input.virtualInterfaceName != null && { virtualInterfaceName: input.virtualInterfaceName }),
3709
+ ...(input.vlan != null && { vlan: input.vlan }),
3786
3710
  };
3787
3711
  };
3788
3712
  const serializeAws_json1_1NewTransitVirtualInterface = (input, context) => {
3789
3713
  return {
3790
- ...(input.addressFamily !== undefined && input.addressFamily !== null && { addressFamily: input.addressFamily }),
3791
- ...(input.amazonAddress !== undefined && input.amazonAddress !== null && { amazonAddress: input.amazonAddress }),
3792
- ...(input.asn !== undefined && input.asn !== null && { asn: input.asn }),
3793
- ...(input.authKey !== undefined && input.authKey !== null && { authKey: input.authKey }),
3794
- ...(input.customerAddress !== undefined &&
3795
- input.customerAddress !== null && { customerAddress: input.customerAddress }),
3796
- ...(input.directConnectGatewayId !== undefined &&
3797
- input.directConnectGatewayId !== null && { directConnectGatewayId: input.directConnectGatewayId }),
3798
- ...(input.enableSiteLink !== undefined &&
3799
- input.enableSiteLink !== null && { enableSiteLink: input.enableSiteLink }),
3800
- ...(input.mtu !== undefined && input.mtu !== null && { mtu: input.mtu }),
3801
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1TagList(input.tags, context) }),
3802
- ...(input.virtualInterfaceName !== undefined &&
3803
- input.virtualInterfaceName !== null && { virtualInterfaceName: input.virtualInterfaceName }),
3804
- ...(input.vlan !== undefined && input.vlan !== null && { vlan: input.vlan }),
3714
+ ...(input.addressFamily != null && { addressFamily: input.addressFamily }),
3715
+ ...(input.amazonAddress != null && { amazonAddress: input.amazonAddress }),
3716
+ ...(input.asn != null && { asn: input.asn }),
3717
+ ...(input.authKey != null && { authKey: input.authKey }),
3718
+ ...(input.customerAddress != null && { customerAddress: input.customerAddress }),
3719
+ ...(input.directConnectGatewayId != null && { directConnectGatewayId: input.directConnectGatewayId }),
3720
+ ...(input.enableSiteLink != null && { enableSiteLink: input.enableSiteLink }),
3721
+ ...(input.mtu != null && { mtu: input.mtu }),
3722
+ ...(input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) }),
3723
+ ...(input.virtualInterfaceName != null && { virtualInterfaceName: input.virtualInterfaceName }),
3724
+ ...(input.vlan != null && { vlan: input.vlan }),
3805
3725
  };
3806
3726
  };
3807
3727
  const serializeAws_json1_1NewTransitVirtualInterfaceAllocation = (input, context) => {
3808
3728
  return {
3809
- ...(input.addressFamily !== undefined && input.addressFamily !== null && { addressFamily: input.addressFamily }),
3810
- ...(input.amazonAddress !== undefined && input.amazonAddress !== null && { amazonAddress: input.amazonAddress }),
3811
- ...(input.asn !== undefined && input.asn !== null && { asn: input.asn }),
3812
- ...(input.authKey !== undefined && input.authKey !== null && { authKey: input.authKey }),
3813
- ...(input.customerAddress !== undefined &&
3814
- input.customerAddress !== null && { customerAddress: input.customerAddress }),
3815
- ...(input.mtu !== undefined && input.mtu !== null && { mtu: input.mtu }),
3816
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1TagList(input.tags, context) }),
3817
- ...(input.virtualInterfaceName !== undefined &&
3818
- input.virtualInterfaceName !== null && { virtualInterfaceName: input.virtualInterfaceName }),
3819
- ...(input.vlan !== undefined && input.vlan !== null && { vlan: input.vlan }),
3729
+ ...(input.addressFamily != null && { addressFamily: input.addressFamily }),
3730
+ ...(input.amazonAddress != null && { amazonAddress: input.amazonAddress }),
3731
+ ...(input.asn != null && { asn: input.asn }),
3732
+ ...(input.authKey != null && { authKey: input.authKey }),
3733
+ ...(input.customerAddress != null && { customerAddress: input.customerAddress }),
3734
+ ...(input.mtu != null && { mtu: input.mtu }),
3735
+ ...(input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) }),
3736
+ ...(input.virtualInterfaceName != null && { virtualInterfaceName: input.virtualInterfaceName }),
3737
+ ...(input.vlan != null && { vlan: input.vlan }),
3820
3738
  };
3821
3739
  };
3822
3740
  const serializeAws_json1_1ResourceArnList = (input, context) => {
@@ -3831,7 +3749,7 @@ const serializeAws_json1_1ResourceArnList = (input, context) => {
3831
3749
  };
3832
3750
  const serializeAws_json1_1RouteFilterPrefix = (input, context) => {
3833
3751
  return {
3834
- ...(input.cidr !== undefined && input.cidr !== null && { cidr: input.cidr }),
3752
+ ...(input.cidr != null && { cidr: input.cidr }),
3835
3753
  };
3836
3754
  };
3837
3755
  const serializeAws_json1_1RouteFilterPrefixList = (input, context) => {
@@ -3846,24 +3764,20 @@ const serializeAws_json1_1RouteFilterPrefixList = (input, context) => {
3846
3764
  };
3847
3765
  const serializeAws_json1_1StartBgpFailoverTestRequest = (input, context) => {
3848
3766
  return {
3849
- ...(input.bgpPeers !== undefined &&
3850
- input.bgpPeers !== null && { bgpPeers: serializeAws_json1_1BGPPeerIdList(input.bgpPeers, context) }),
3851
- ...(input.testDurationInMinutes !== undefined &&
3852
- input.testDurationInMinutes !== null && { testDurationInMinutes: input.testDurationInMinutes }),
3853
- ...(input.virtualInterfaceId !== undefined &&
3854
- input.virtualInterfaceId !== null && { virtualInterfaceId: input.virtualInterfaceId }),
3767
+ ...(input.bgpPeers != null && { bgpPeers: serializeAws_json1_1BGPPeerIdList(input.bgpPeers, context) }),
3768
+ ...(input.testDurationInMinutes != null && { testDurationInMinutes: input.testDurationInMinutes }),
3769
+ ...(input.virtualInterfaceId != null && { virtualInterfaceId: input.virtualInterfaceId }),
3855
3770
  };
3856
3771
  };
3857
3772
  const serializeAws_json1_1StopBgpFailoverTestRequest = (input, context) => {
3858
3773
  return {
3859
- ...(input.virtualInterfaceId !== undefined &&
3860
- input.virtualInterfaceId !== null && { virtualInterfaceId: input.virtualInterfaceId }),
3774
+ ...(input.virtualInterfaceId != null && { virtualInterfaceId: input.virtualInterfaceId }),
3861
3775
  };
3862
3776
  };
3863
3777
  const serializeAws_json1_1Tag = (input, context) => {
3864
3778
  return {
3865
- ...(input.key !== undefined && input.key !== null && { key: input.key }),
3866
- ...(input.value !== undefined && input.value !== null && { value: input.value }),
3779
+ ...(input.key != null && { key: input.key }),
3780
+ ...(input.value != null && { value: input.value }),
3867
3781
  };
3868
3782
  };
3869
3783
  const serializeAws_json1_1TagKeyList = (input, context) => {
@@ -3888,70 +3802,61 @@ const serializeAws_json1_1TagList = (input, context) => {
3888
3802
  };
3889
3803
  const serializeAws_json1_1TagResourceRequest = (input, context) => {
3890
3804
  return {
3891
- ...(input.resourceArn !== undefined && input.resourceArn !== null && { resourceArn: input.resourceArn }),
3892
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1TagList(input.tags, context) }),
3805
+ ...(input.resourceArn != null && { resourceArn: input.resourceArn }),
3806
+ ...(input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) }),
3893
3807
  };
3894
3808
  };
3895
3809
  const serializeAws_json1_1UntagResourceRequest = (input, context) => {
3896
3810
  return {
3897
- ...(input.resourceArn !== undefined && input.resourceArn !== null && { resourceArn: input.resourceArn }),
3898
- ...(input.tagKeys !== undefined &&
3899
- input.tagKeys !== null && { tagKeys: serializeAws_json1_1TagKeyList(input.tagKeys, context) }),
3811
+ ...(input.resourceArn != null && { resourceArn: input.resourceArn }),
3812
+ ...(input.tagKeys != null && { tagKeys: serializeAws_json1_1TagKeyList(input.tagKeys, context) }),
3900
3813
  };
3901
3814
  };
3902
3815
  const serializeAws_json1_1UpdateConnectionRequest = (input, context) => {
3903
3816
  return {
3904
- ...(input.connectionId !== undefined && input.connectionId !== null && { connectionId: input.connectionId }),
3905
- ...(input.connectionName !== undefined &&
3906
- input.connectionName !== null && { connectionName: input.connectionName }),
3907
- ...(input.encryptionMode !== undefined &&
3908
- input.encryptionMode !== null && { encryptionMode: input.encryptionMode }),
3817
+ ...(input.connectionId != null && { connectionId: input.connectionId }),
3818
+ ...(input.connectionName != null && { connectionName: input.connectionName }),
3819
+ ...(input.encryptionMode != null && { encryptionMode: input.encryptionMode }),
3909
3820
  };
3910
3821
  };
3911
3822
  const serializeAws_json1_1UpdateDirectConnectGatewayAssociationRequest = (input, context) => {
3912
3823
  return {
3913
- ...(input.addAllowedPrefixesToDirectConnectGateway !== undefined &&
3914
- input.addAllowedPrefixesToDirectConnectGateway !== null && {
3824
+ ...(input.addAllowedPrefixesToDirectConnectGateway != null && {
3915
3825
  addAllowedPrefixesToDirectConnectGateway: serializeAws_json1_1RouteFilterPrefixList(input.addAllowedPrefixesToDirectConnectGateway, context),
3916
3826
  }),
3917
- ...(input.associationId !== undefined && input.associationId !== null && { associationId: input.associationId }),
3918
- ...(input.removeAllowedPrefixesToDirectConnectGateway !== undefined &&
3919
- input.removeAllowedPrefixesToDirectConnectGateway !== null && {
3827
+ ...(input.associationId != null && { associationId: input.associationId }),
3828
+ ...(input.removeAllowedPrefixesToDirectConnectGateway != null && {
3920
3829
  removeAllowedPrefixesToDirectConnectGateway: serializeAws_json1_1RouteFilterPrefixList(input.removeAllowedPrefixesToDirectConnectGateway, context),
3921
3830
  }),
3922
3831
  };
3923
3832
  };
3924
3833
  const serializeAws_json1_1UpdateDirectConnectGatewayRequest = (input, context) => {
3925
3834
  return {
3926
- ...(input.directConnectGatewayId !== undefined &&
3927
- input.directConnectGatewayId !== null && { directConnectGatewayId: input.directConnectGatewayId }),
3928
- ...(input.newDirectConnectGatewayName !== undefined &&
3929
- input.newDirectConnectGatewayName !== null && { newDirectConnectGatewayName: input.newDirectConnectGatewayName }),
3835
+ ...(input.directConnectGatewayId != null && { directConnectGatewayId: input.directConnectGatewayId }),
3836
+ ...(input.newDirectConnectGatewayName != null && {
3837
+ newDirectConnectGatewayName: input.newDirectConnectGatewayName,
3838
+ }),
3930
3839
  };
3931
3840
  };
3932
3841
  const serializeAws_json1_1UpdateLagRequest = (input, context) => {
3933
3842
  return {
3934
- ...(input.encryptionMode !== undefined &&
3935
- input.encryptionMode !== null && { encryptionMode: input.encryptionMode }),
3936
- ...(input.lagId !== undefined && input.lagId !== null && { lagId: input.lagId }),
3937
- ...(input.lagName !== undefined && input.lagName !== null && { lagName: input.lagName }),
3938
- ...(input.minimumLinks !== undefined && input.minimumLinks !== null && { minimumLinks: input.minimumLinks }),
3843
+ ...(input.encryptionMode != null && { encryptionMode: input.encryptionMode }),
3844
+ ...(input.lagId != null && { lagId: input.lagId }),
3845
+ ...(input.lagName != null && { lagName: input.lagName }),
3846
+ ...(input.minimumLinks != null && { minimumLinks: input.minimumLinks }),
3939
3847
  };
3940
3848
  };
3941
3849
  const serializeAws_json1_1UpdateVirtualInterfaceAttributesRequest = (input, context) => {
3942
3850
  return {
3943
- ...(input.enableSiteLink !== undefined &&
3944
- input.enableSiteLink !== null && { enableSiteLink: input.enableSiteLink }),
3945
- ...(input.mtu !== undefined && input.mtu !== null && { mtu: input.mtu }),
3946
- ...(input.virtualInterfaceId !== undefined &&
3947
- input.virtualInterfaceId !== null && { virtualInterfaceId: input.virtualInterfaceId }),
3948
- ...(input.virtualInterfaceName !== undefined &&
3949
- input.virtualInterfaceName !== null && { virtualInterfaceName: input.virtualInterfaceName }),
3851
+ ...(input.enableSiteLink != null && { enableSiteLink: input.enableSiteLink }),
3852
+ ...(input.mtu != null && { mtu: input.mtu }),
3853
+ ...(input.virtualInterfaceId != null && { virtualInterfaceId: input.virtualInterfaceId }),
3854
+ ...(input.virtualInterfaceName != null && { virtualInterfaceName: input.virtualInterfaceName }),
3950
3855
  };
3951
3856
  };
3952
3857
  const deserializeAws_json1_1AcceptDirectConnectGatewayAssociationProposalResult = (output, context) => {
3953
3858
  return {
3954
- directConnectGatewayAssociation: output.directConnectGatewayAssociation !== undefined && output.directConnectGatewayAssociation !== null
3859
+ directConnectGatewayAssociation: output.directConnectGatewayAssociation != null
3955
3860
  ? deserializeAws_json1_1DirectConnectGatewayAssociation(output.directConnectGatewayAssociation, context)
3956
3861
  : undefined,
3957
3862
  };
@@ -3969,7 +3874,7 @@ const deserializeAws_json1_1AgreementList = (output, context) => {
3969
3874
  };
3970
3875
  const deserializeAws_json1_1AllocateTransitVirtualInterfaceResult = (output, context) => {
3971
3876
  return {
3972
- virtualInterface: output.virtualInterface !== undefined && output.virtualInterface !== null
3877
+ virtualInterface: output.virtualInterface != null
3973
3878
  ? deserializeAws_json1_1VirtualInterface(output.virtualInterface, context)
3974
3879
  : undefined,
3975
3880
  };
@@ -3985,9 +3890,7 @@ const deserializeAws_json1_1AssociatedGateway = (output, context) => {
3985
3890
  const deserializeAws_json1_1AssociateMacSecKeyResponse = (output, context) => {
3986
3891
  return {
3987
3892
  connectionId: (0, smithy_client_1.expectString)(output.connectionId),
3988
- macSecKeys: output.macSecKeys !== undefined && output.macSecKeys !== null
3989
- ? deserializeAws_json1_1MacSecKeyList(output.macSecKeys, context)
3990
- : undefined,
3893
+ macSecKeys: output.macSecKeys != null ? deserializeAws_json1_1MacSecKeyList(output.macSecKeys, context) : undefined,
3991
3894
  };
3992
3895
  };
3993
3896
  const deserializeAws_json1_1AvailableMacSecPortSpeeds = (output, context) => {
@@ -4086,22 +3989,18 @@ const deserializeAws_json1_1Connection = (output, context) => {
4086
3989
  hasLogicalRedundancy: (0, smithy_client_1.expectString)(output.hasLogicalRedundancy),
4087
3990
  jumboFrameCapable: (0, smithy_client_1.expectBoolean)(output.jumboFrameCapable),
4088
3991
  lagId: (0, smithy_client_1.expectString)(output.lagId),
4089
- loaIssueTime: output.loaIssueTime !== undefined && output.loaIssueTime !== null
3992
+ loaIssueTime: output.loaIssueTime != null
4090
3993
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.loaIssueTime)))
4091
3994
  : undefined,
4092
3995
  location: (0, smithy_client_1.expectString)(output.location),
4093
3996
  macSecCapable: (0, smithy_client_1.expectBoolean)(output.macSecCapable),
4094
- macSecKeys: output.macSecKeys !== undefined && output.macSecKeys !== null
4095
- ? deserializeAws_json1_1MacSecKeyList(output.macSecKeys, context)
4096
- : undefined,
3997
+ macSecKeys: output.macSecKeys != null ? deserializeAws_json1_1MacSecKeyList(output.macSecKeys, context) : undefined,
4097
3998
  ownerAccount: (0, smithy_client_1.expectString)(output.ownerAccount),
4098
3999
  partnerName: (0, smithy_client_1.expectString)(output.partnerName),
4099
4000
  portEncryptionStatus: (0, smithy_client_1.expectString)(output.portEncryptionStatus),
4100
4001
  providerName: (0, smithy_client_1.expectString)(output.providerName),
4101
4002
  region: (0, smithy_client_1.expectString)(output.region),
4102
- tags: output.tags !== undefined && output.tags !== null
4103
- ? deserializeAws_json1_1TagList(output.tags, context)
4104
- : undefined,
4003
+ tags: output.tags != null ? deserializeAws_json1_1TagList(output.tags, context) : undefined,
4105
4004
  vlan: (0, smithy_client_1.expectInt32)(output.vlan),
4106
4005
  };
4107
4006
  };
@@ -4118,43 +4017,40 @@ const deserializeAws_json1_1ConnectionList = (output, context) => {
4118
4017
  };
4119
4018
  const deserializeAws_json1_1Connections = (output, context) => {
4120
4019
  return {
4121
- connections: output.connections !== undefined && output.connections !== null
4122
- ? deserializeAws_json1_1ConnectionList(output.connections, context)
4123
- : undefined,
4020
+ connections: output.connections != null ? deserializeAws_json1_1ConnectionList(output.connections, context) : undefined,
4124
4021
  };
4125
4022
  };
4126
4023
  const deserializeAws_json1_1CreateBGPPeerResponse = (output, context) => {
4127
4024
  return {
4128
- virtualInterface: output.virtualInterface !== undefined && output.virtualInterface !== null
4025
+ virtualInterface: output.virtualInterface != null
4129
4026
  ? deserializeAws_json1_1VirtualInterface(output.virtualInterface, context)
4130
4027
  : undefined,
4131
4028
  };
4132
4029
  };
4133
4030
  const deserializeAws_json1_1CreateDirectConnectGatewayAssociationProposalResult = (output, context) => {
4134
4031
  return {
4135
- directConnectGatewayAssociationProposal: output.directConnectGatewayAssociationProposal !== undefined &&
4136
- output.directConnectGatewayAssociationProposal !== null
4032
+ directConnectGatewayAssociationProposal: output.directConnectGatewayAssociationProposal != null
4137
4033
  ? deserializeAws_json1_1DirectConnectGatewayAssociationProposal(output.directConnectGatewayAssociationProposal, context)
4138
4034
  : undefined,
4139
4035
  };
4140
4036
  };
4141
4037
  const deserializeAws_json1_1CreateDirectConnectGatewayAssociationResult = (output, context) => {
4142
4038
  return {
4143
- directConnectGatewayAssociation: output.directConnectGatewayAssociation !== undefined && output.directConnectGatewayAssociation !== null
4039
+ directConnectGatewayAssociation: output.directConnectGatewayAssociation != null
4144
4040
  ? deserializeAws_json1_1DirectConnectGatewayAssociation(output.directConnectGatewayAssociation, context)
4145
4041
  : undefined,
4146
4042
  };
4147
4043
  };
4148
4044
  const deserializeAws_json1_1CreateDirectConnectGatewayResult = (output, context) => {
4149
4045
  return {
4150
- directConnectGateway: output.directConnectGateway !== undefined && output.directConnectGateway !== null
4046
+ directConnectGateway: output.directConnectGateway != null
4151
4047
  ? deserializeAws_json1_1DirectConnectGateway(output.directConnectGateway, context)
4152
4048
  : undefined,
4153
4049
  };
4154
4050
  };
4155
4051
  const deserializeAws_json1_1CreateTransitVirtualInterfaceResult = (output, context) => {
4156
4052
  return {
4157
- virtualInterface: output.virtualInterface !== undefined && output.virtualInterface !== null
4053
+ virtualInterface: output.virtualInterface != null
4158
4054
  ? deserializeAws_json1_1VirtualInterface(output.virtualInterface, context)
4159
4055
  : undefined,
4160
4056
  };
@@ -4167,29 +4063,28 @@ const deserializeAws_json1_1CustomerAgreement = (output, context) => {
4167
4063
  };
4168
4064
  const deserializeAws_json1_1DeleteBGPPeerResponse = (output, context) => {
4169
4065
  return {
4170
- virtualInterface: output.virtualInterface !== undefined && output.virtualInterface !== null
4066
+ virtualInterface: output.virtualInterface != null
4171
4067
  ? deserializeAws_json1_1VirtualInterface(output.virtualInterface, context)
4172
4068
  : undefined,
4173
4069
  };
4174
4070
  };
4175
4071
  const deserializeAws_json1_1DeleteDirectConnectGatewayAssociationProposalResult = (output, context) => {
4176
4072
  return {
4177
- directConnectGatewayAssociationProposal: output.directConnectGatewayAssociationProposal !== undefined &&
4178
- output.directConnectGatewayAssociationProposal !== null
4073
+ directConnectGatewayAssociationProposal: output.directConnectGatewayAssociationProposal != null
4179
4074
  ? deserializeAws_json1_1DirectConnectGatewayAssociationProposal(output.directConnectGatewayAssociationProposal, context)
4180
4075
  : undefined,
4181
4076
  };
4182
4077
  };
4183
4078
  const deserializeAws_json1_1DeleteDirectConnectGatewayAssociationResult = (output, context) => {
4184
4079
  return {
4185
- directConnectGatewayAssociation: output.directConnectGatewayAssociation !== undefined && output.directConnectGatewayAssociation !== null
4080
+ directConnectGatewayAssociation: output.directConnectGatewayAssociation != null
4186
4081
  ? deserializeAws_json1_1DirectConnectGatewayAssociation(output.directConnectGatewayAssociation, context)
4187
4082
  : undefined,
4188
4083
  };
4189
4084
  };
4190
4085
  const deserializeAws_json1_1DeleteDirectConnectGatewayResult = (output, context) => {
4191
4086
  return {
4192
- directConnectGateway: output.directConnectGateway !== undefined && output.directConnectGateway !== null
4087
+ directConnectGateway: output.directConnectGateway != null
4193
4088
  ? deserializeAws_json1_1DirectConnectGateway(output.directConnectGateway, context)
4194
4089
  : undefined,
4195
4090
  };
@@ -4206,21 +4101,18 @@ const deserializeAws_json1_1DeleteVirtualInterfaceResponse = (output, context) =
4206
4101
  };
4207
4102
  const deserializeAws_json1_1DescribeConnectionLoaResponse = (output, context) => {
4208
4103
  return {
4209
- loa: output.loa !== undefined && output.loa !== null ? deserializeAws_json1_1Loa(output.loa, context) : undefined,
4104
+ loa: output.loa != null ? deserializeAws_json1_1Loa(output.loa, context) : undefined,
4210
4105
  };
4211
4106
  };
4212
4107
  const deserializeAws_json1_1DescribeCustomerMetadataResponse = (output, context) => {
4213
4108
  return {
4214
- agreements: output.agreements !== undefined && output.agreements !== null
4215
- ? deserializeAws_json1_1AgreementList(output.agreements, context)
4216
- : undefined,
4109
+ agreements: output.agreements != null ? deserializeAws_json1_1AgreementList(output.agreements, context) : undefined,
4217
4110
  nniPartnerType: (0, smithy_client_1.expectString)(output.nniPartnerType),
4218
4111
  };
4219
4112
  };
4220
4113
  const deserializeAws_json1_1DescribeDirectConnectGatewayAssociationProposalsResult = (output, context) => {
4221
4114
  return {
4222
- directConnectGatewayAssociationProposals: output.directConnectGatewayAssociationProposals !== undefined &&
4223
- output.directConnectGatewayAssociationProposals !== null
4115
+ directConnectGatewayAssociationProposals: output.directConnectGatewayAssociationProposals != null
4224
4116
  ? deserializeAws_json1_1DirectConnectGatewayAssociationProposalList(output.directConnectGatewayAssociationProposals, context)
4225
4117
  : undefined,
4226
4118
  nextToken: (0, smithy_client_1.expectString)(output.nextToken),
@@ -4228,7 +4120,7 @@ const deserializeAws_json1_1DescribeDirectConnectGatewayAssociationProposalsResu
4228
4120
  };
4229
4121
  const deserializeAws_json1_1DescribeDirectConnectGatewayAssociationsResult = (output, context) => {
4230
4122
  return {
4231
- directConnectGatewayAssociations: output.directConnectGatewayAssociations !== undefined && output.directConnectGatewayAssociations !== null
4123
+ directConnectGatewayAssociations: output.directConnectGatewayAssociations != null
4232
4124
  ? deserializeAws_json1_1DirectConnectGatewayAssociationList(output.directConnectGatewayAssociations, context)
4233
4125
  : undefined,
4234
4126
  nextToken: (0, smithy_client_1.expectString)(output.nextToken),
@@ -4236,7 +4128,7 @@ const deserializeAws_json1_1DescribeDirectConnectGatewayAssociationsResult = (ou
4236
4128
  };
4237
4129
  const deserializeAws_json1_1DescribeDirectConnectGatewayAttachmentsResult = (output, context) => {
4238
4130
  return {
4239
- directConnectGatewayAttachments: output.directConnectGatewayAttachments !== undefined && output.directConnectGatewayAttachments !== null
4131
+ directConnectGatewayAttachments: output.directConnectGatewayAttachments != null
4240
4132
  ? deserializeAws_json1_1DirectConnectGatewayAttachmentList(output.directConnectGatewayAttachments, context)
4241
4133
  : undefined,
4242
4134
  nextToken: (0, smithy_client_1.expectString)(output.nextToken),
@@ -4244,7 +4136,7 @@ const deserializeAws_json1_1DescribeDirectConnectGatewayAttachmentsResult = (out
4244
4136
  };
4245
4137
  const deserializeAws_json1_1DescribeDirectConnectGatewaysResult = (output, context) => {
4246
4138
  return {
4247
- directConnectGateways: output.directConnectGateways !== undefined && output.directConnectGateways !== null
4139
+ directConnectGateways: output.directConnectGateways != null
4248
4140
  ? deserializeAws_json1_1DirectConnectGatewayList(output.directConnectGateways, context)
4249
4141
  : undefined,
4250
4142
  nextToken: (0, smithy_client_1.expectString)(output.nextToken),
@@ -4252,24 +4144,20 @@ const deserializeAws_json1_1DescribeDirectConnectGatewaysResult = (output, conte
4252
4144
  };
4253
4145
  const deserializeAws_json1_1DescribeInterconnectLoaResponse = (output, context) => {
4254
4146
  return {
4255
- loa: output.loa !== undefined && output.loa !== null ? deserializeAws_json1_1Loa(output.loa, context) : undefined,
4147
+ loa: output.loa != null ? deserializeAws_json1_1Loa(output.loa, context) : undefined,
4256
4148
  };
4257
4149
  };
4258
4150
  const deserializeAws_json1_1DescribeRouterConfigurationResponse = (output, context) => {
4259
4151
  return {
4260
4152
  customerRouterConfig: (0, smithy_client_1.expectString)(output.customerRouterConfig),
4261
- router: output.router !== undefined && output.router !== null
4262
- ? deserializeAws_json1_1RouterType(output.router, context)
4263
- : undefined,
4153
+ router: output.router != null ? deserializeAws_json1_1RouterType(output.router, context) : undefined,
4264
4154
  virtualInterfaceId: (0, smithy_client_1.expectString)(output.virtualInterfaceId),
4265
4155
  virtualInterfaceName: (0, smithy_client_1.expectString)(output.virtualInterfaceName),
4266
4156
  };
4267
4157
  };
4268
4158
  const deserializeAws_json1_1DescribeTagsResponse = (output, context) => {
4269
4159
  return {
4270
- resourceTags: output.resourceTags !== undefined && output.resourceTags !== null
4271
- ? deserializeAws_json1_1ResourceTagList(output.resourceTags, context)
4272
- : undefined,
4160
+ resourceTags: output.resourceTags != null ? deserializeAws_json1_1ResourceTagList(output.resourceTags, context) : undefined,
4273
4161
  };
4274
4162
  };
4275
4163
  const deserializeAws_json1_1DirectConnectClientException = (output, context) => {
@@ -4289,11 +4177,10 @@ const deserializeAws_json1_1DirectConnectGateway = (output, context) => {
4289
4177
  };
4290
4178
  const deserializeAws_json1_1DirectConnectGatewayAssociation = (output, context) => {
4291
4179
  return {
4292
- allowedPrefixesToDirectConnectGateway: output.allowedPrefixesToDirectConnectGateway !== undefined &&
4293
- output.allowedPrefixesToDirectConnectGateway !== null
4180
+ allowedPrefixesToDirectConnectGateway: output.allowedPrefixesToDirectConnectGateway != null
4294
4181
  ? deserializeAws_json1_1RouteFilterPrefixList(output.allowedPrefixesToDirectConnectGateway, context)
4295
4182
  : undefined,
4296
- associatedGateway: output.associatedGateway !== undefined && output.associatedGateway !== null
4183
+ associatedGateway: output.associatedGateway != null
4297
4184
  ? deserializeAws_json1_1AssociatedGateway(output.associatedGateway, context)
4298
4185
  : undefined,
4299
4186
  associationId: (0, smithy_client_1.expectString)(output.associationId),
@@ -4319,19 +4206,17 @@ const deserializeAws_json1_1DirectConnectGatewayAssociationList = (output, conte
4319
4206
  };
4320
4207
  const deserializeAws_json1_1DirectConnectGatewayAssociationProposal = (output, context) => {
4321
4208
  return {
4322
- associatedGateway: output.associatedGateway !== undefined && output.associatedGateway !== null
4209
+ associatedGateway: output.associatedGateway != null
4323
4210
  ? deserializeAws_json1_1AssociatedGateway(output.associatedGateway, context)
4324
4211
  : undefined,
4325
4212
  directConnectGatewayId: (0, smithy_client_1.expectString)(output.directConnectGatewayId),
4326
4213
  directConnectGatewayOwnerAccount: (0, smithy_client_1.expectString)(output.directConnectGatewayOwnerAccount),
4327
- existingAllowedPrefixesToDirectConnectGateway: output.existingAllowedPrefixesToDirectConnectGateway !== undefined &&
4328
- output.existingAllowedPrefixesToDirectConnectGateway !== null
4214
+ existingAllowedPrefixesToDirectConnectGateway: output.existingAllowedPrefixesToDirectConnectGateway != null
4329
4215
  ? deserializeAws_json1_1RouteFilterPrefixList(output.existingAllowedPrefixesToDirectConnectGateway, context)
4330
4216
  : undefined,
4331
4217
  proposalId: (0, smithy_client_1.expectString)(output.proposalId),
4332
4218
  proposalState: (0, smithy_client_1.expectString)(output.proposalState),
4333
- requestedAllowedPrefixesToDirectConnectGateway: output.requestedAllowedPrefixesToDirectConnectGateway !== undefined &&
4334
- output.requestedAllowedPrefixesToDirectConnectGateway !== null
4219
+ requestedAllowedPrefixesToDirectConnectGateway: output.requestedAllowedPrefixesToDirectConnectGateway != null
4335
4220
  ? deserializeAws_json1_1RouteFilterPrefixList(output.requestedAllowedPrefixesToDirectConnectGateway, context)
4336
4221
  : undefined,
4337
4222
  };
@@ -4388,9 +4273,7 @@ const deserializeAws_json1_1DirectConnectServerException = (output, context) =>
4388
4273
  const deserializeAws_json1_1DisassociateMacSecKeyResponse = (output, context) => {
4389
4274
  return {
4390
4275
  connectionId: (0, smithy_client_1.expectString)(output.connectionId),
4391
- macSecKeys: output.macSecKeys !== undefined && output.macSecKeys !== null
4392
- ? deserializeAws_json1_1MacSecKeyList(output.macSecKeys, context)
4393
- : undefined,
4276
+ macSecKeys: output.macSecKeys != null ? deserializeAws_json1_1MacSecKeyList(output.macSecKeys, context) : undefined,
4394
4277
  };
4395
4278
  };
4396
4279
  const deserializeAws_json1_1DuplicateTagKeysException = (output, context) => {
@@ -4410,15 +4293,13 @@ const deserializeAws_json1_1Interconnect = (output, context) => {
4410
4293
  interconnectState: (0, smithy_client_1.expectString)(output.interconnectState),
4411
4294
  jumboFrameCapable: (0, smithy_client_1.expectBoolean)(output.jumboFrameCapable),
4412
4295
  lagId: (0, smithy_client_1.expectString)(output.lagId),
4413
- loaIssueTime: output.loaIssueTime !== undefined && output.loaIssueTime !== null
4296
+ loaIssueTime: output.loaIssueTime != null
4414
4297
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.loaIssueTime)))
4415
4298
  : undefined,
4416
4299
  location: (0, smithy_client_1.expectString)(output.location),
4417
4300
  providerName: (0, smithy_client_1.expectString)(output.providerName),
4418
4301
  region: (0, smithy_client_1.expectString)(output.region),
4419
- tags: output.tags !== undefined && output.tags !== null
4420
- ? deserializeAws_json1_1TagList(output.tags, context)
4421
- : undefined,
4302
+ tags: output.tags != null ? deserializeAws_json1_1TagList(output.tags, context) : undefined,
4422
4303
  };
4423
4304
  };
4424
4305
  const deserializeAws_json1_1InterconnectList = (output, context) => {
@@ -4434,9 +4315,7 @@ const deserializeAws_json1_1InterconnectList = (output, context) => {
4434
4315
  };
4435
4316
  const deserializeAws_json1_1Interconnects = (output, context) => {
4436
4317
  return {
4437
- interconnects: output.interconnects !== undefined && output.interconnects !== null
4438
- ? deserializeAws_json1_1InterconnectList(output.interconnects, context)
4439
- : undefined,
4318
+ interconnects: output.interconnects != null ? deserializeAws_json1_1InterconnectList(output.interconnects, context) : undefined,
4440
4319
  };
4441
4320
  };
4442
4321
  const deserializeAws_json1_1Lag = (output, context) => {
@@ -4445,9 +4324,7 @@ const deserializeAws_json1_1Lag = (output, context) => {
4445
4324
  awsDevice: (0, smithy_client_1.expectString)(output.awsDevice),
4446
4325
  awsDeviceV2: (0, smithy_client_1.expectString)(output.awsDeviceV2),
4447
4326
  awsLogicalDeviceId: (0, smithy_client_1.expectString)(output.awsLogicalDeviceId),
4448
- connections: output.connections !== undefined && output.connections !== null
4449
- ? deserializeAws_json1_1ConnectionList(output.connections, context)
4450
- : undefined,
4327
+ connections: output.connections != null ? deserializeAws_json1_1ConnectionList(output.connections, context) : undefined,
4451
4328
  connectionsBandwidth: (0, smithy_client_1.expectString)(output.connectionsBandwidth),
4452
4329
  encryptionMode: (0, smithy_client_1.expectString)(output.encryptionMode),
4453
4330
  hasLogicalRedundancy: (0, smithy_client_1.expectString)(output.hasLogicalRedundancy),
@@ -4457,17 +4334,13 @@ const deserializeAws_json1_1Lag = (output, context) => {
4457
4334
  lagState: (0, smithy_client_1.expectString)(output.lagState),
4458
4335
  location: (0, smithy_client_1.expectString)(output.location),
4459
4336
  macSecCapable: (0, smithy_client_1.expectBoolean)(output.macSecCapable),
4460
- macSecKeys: output.macSecKeys !== undefined && output.macSecKeys !== null
4461
- ? deserializeAws_json1_1MacSecKeyList(output.macSecKeys, context)
4462
- : undefined,
4337
+ macSecKeys: output.macSecKeys != null ? deserializeAws_json1_1MacSecKeyList(output.macSecKeys, context) : undefined,
4463
4338
  minimumLinks: (0, smithy_client_1.expectInt32)(output.minimumLinks),
4464
4339
  numberOfConnections: (0, smithy_client_1.expectInt32)(output.numberOfConnections),
4465
4340
  ownerAccount: (0, smithy_client_1.expectString)(output.ownerAccount),
4466
4341
  providerName: (0, smithy_client_1.expectString)(output.providerName),
4467
4342
  region: (0, smithy_client_1.expectString)(output.region),
4468
- tags: output.tags !== undefined && output.tags !== null
4469
- ? deserializeAws_json1_1TagList(output.tags, context)
4470
- : undefined,
4343
+ tags: output.tags != null ? deserializeAws_json1_1TagList(output.tags, context) : undefined,
4471
4344
  };
4472
4345
  };
4473
4346
  const deserializeAws_json1_1LagList = (output, context) => {
@@ -4483,36 +4356,32 @@ const deserializeAws_json1_1LagList = (output, context) => {
4483
4356
  };
4484
4357
  const deserializeAws_json1_1Lags = (output, context) => {
4485
4358
  return {
4486
- lags: output.lags !== undefined && output.lags !== null
4487
- ? deserializeAws_json1_1LagList(output.lags, context)
4488
- : undefined,
4359
+ lags: output.lags != null ? deserializeAws_json1_1LagList(output.lags, context) : undefined,
4489
4360
  };
4490
4361
  };
4491
4362
  const deserializeAws_json1_1ListVirtualInterfaceTestHistoryResponse = (output, context) => {
4492
4363
  return {
4493
4364
  nextToken: (0, smithy_client_1.expectString)(output.nextToken),
4494
- virtualInterfaceTestHistory: output.virtualInterfaceTestHistory !== undefined && output.virtualInterfaceTestHistory !== null
4365
+ virtualInterfaceTestHistory: output.virtualInterfaceTestHistory != null
4495
4366
  ? deserializeAws_json1_1VirtualInterfaceTestHistoryList(output.virtualInterfaceTestHistory, context)
4496
4367
  : undefined,
4497
4368
  };
4498
4369
  };
4499
4370
  const deserializeAws_json1_1Loa = (output, context) => {
4500
4371
  return {
4501
- loaContent: output.loaContent !== undefined && output.loaContent !== null
4502
- ? context.base64Decoder(output.loaContent)
4503
- : undefined,
4372
+ loaContent: output.loaContent != null ? context.base64Decoder(output.loaContent) : undefined,
4504
4373
  loaContentType: (0, smithy_client_1.expectString)(output.loaContentType),
4505
4374
  };
4506
4375
  };
4507
4376
  const deserializeAws_json1_1Location = (output, context) => {
4508
4377
  return {
4509
- availableMacSecPortSpeeds: output.availableMacSecPortSpeeds !== undefined && output.availableMacSecPortSpeeds !== null
4378
+ availableMacSecPortSpeeds: output.availableMacSecPortSpeeds != null
4510
4379
  ? deserializeAws_json1_1AvailableMacSecPortSpeeds(output.availableMacSecPortSpeeds, context)
4511
4380
  : undefined,
4512
- availablePortSpeeds: output.availablePortSpeeds !== undefined && output.availablePortSpeeds !== null
4381
+ availablePortSpeeds: output.availablePortSpeeds != null
4513
4382
  ? deserializeAws_json1_1AvailablePortSpeeds(output.availablePortSpeeds, context)
4514
4383
  : undefined,
4515
- availableProviders: output.availableProviders !== undefined && output.availableProviders !== null
4384
+ availableProviders: output.availableProviders != null
4516
4385
  ? deserializeAws_json1_1ProviderList(output.availableProviders, context)
4517
4386
  : undefined,
4518
4387
  locationCode: (0, smithy_client_1.expectString)(output.locationCode),
@@ -4533,9 +4402,7 @@ const deserializeAws_json1_1LocationList = (output, context) => {
4533
4402
  };
4534
4403
  const deserializeAws_json1_1Locations = (output, context) => {
4535
4404
  return {
4536
- locations: output.locations !== undefined && output.locations !== null
4537
- ? deserializeAws_json1_1LocationList(output.locations, context)
4538
- : undefined,
4405
+ locations: output.locations != null ? deserializeAws_json1_1LocationList(output.locations, context) : undefined,
4539
4406
  };
4540
4407
  };
4541
4408
  const deserializeAws_json1_1MacSecKey = (output, context) => {
@@ -4571,9 +4438,7 @@ const deserializeAws_json1_1ProviderList = (output, context) => {
4571
4438
  const deserializeAws_json1_1ResourceTag = (output, context) => {
4572
4439
  return {
4573
4440
  resourceArn: (0, smithy_client_1.expectString)(output.resourceArn),
4574
- tags: output.tags !== undefined && output.tags !== null
4575
- ? deserializeAws_json1_1TagList(output.tags, context)
4576
- : undefined,
4441
+ tags: output.tags != null ? deserializeAws_json1_1TagList(output.tags, context) : undefined,
4577
4442
  };
4578
4443
  };
4579
4444
  const deserializeAws_json1_1ResourceTagList = (output, context) => {
@@ -4615,14 +4480,14 @@ const deserializeAws_json1_1RouterType = (output, context) => {
4615
4480
  };
4616
4481
  const deserializeAws_json1_1StartBgpFailoverTestResponse = (output, context) => {
4617
4482
  return {
4618
- virtualInterfaceTest: output.virtualInterfaceTest !== undefined && output.virtualInterfaceTest !== null
4483
+ virtualInterfaceTest: output.virtualInterfaceTest != null
4619
4484
  ? deserializeAws_json1_1VirtualInterfaceTestHistory(output.virtualInterfaceTest, context)
4620
4485
  : undefined,
4621
4486
  };
4622
4487
  };
4623
4488
  const deserializeAws_json1_1StopBgpFailoverTestResponse = (output, context) => {
4624
4489
  return {
4625
- virtualInterfaceTest: output.virtualInterfaceTest !== undefined && output.virtualInterfaceTest !== null
4490
+ virtualInterfaceTest: output.virtualInterfaceTest != null
4626
4491
  ? deserializeAws_json1_1VirtualInterfaceTestHistory(output.virtualInterfaceTest, context)
4627
4492
  : undefined,
4628
4493
  };
@@ -4657,14 +4522,14 @@ const deserializeAws_json1_1UntagResourceResponse = (output, context) => {
4657
4522
  };
4658
4523
  const deserializeAws_json1_1UpdateDirectConnectGatewayAssociationResult = (output, context) => {
4659
4524
  return {
4660
- directConnectGatewayAssociation: output.directConnectGatewayAssociation !== undefined && output.directConnectGatewayAssociation !== null
4525
+ directConnectGatewayAssociation: output.directConnectGatewayAssociation != null
4661
4526
  ? deserializeAws_json1_1DirectConnectGatewayAssociation(output.directConnectGatewayAssociation, context)
4662
4527
  : undefined,
4663
4528
  };
4664
4529
  };
4665
4530
  const deserializeAws_json1_1UpdateDirectConnectGatewayResponse = (output, context) => {
4666
4531
  return {
4667
- directConnectGateway: output.directConnectGateway !== undefined && output.directConnectGateway !== null
4532
+ directConnectGateway: output.directConnectGateway != null
4668
4533
  ? deserializeAws_json1_1DirectConnectGateway(output.directConnectGateway, context)
4669
4534
  : undefined,
4670
4535
  };
@@ -4688,7 +4553,7 @@ const deserializeAws_json1_1VirtualGatewayList = (output, context) => {
4688
4553
  };
4689
4554
  const deserializeAws_json1_1VirtualGateways = (output, context) => {
4690
4555
  return {
4691
- virtualGateways: output.virtualGateways !== undefined && output.virtualGateways !== null
4556
+ virtualGateways: output.virtualGateways != null
4692
4557
  ? deserializeAws_json1_1VirtualGatewayList(output.virtualGateways, context)
4693
4558
  : undefined,
4694
4559
  };
@@ -4702,9 +4567,7 @@ const deserializeAws_json1_1VirtualInterface = (output, context) => {
4702
4567
  authKey: (0, smithy_client_1.expectString)(output.authKey),
4703
4568
  awsDeviceV2: (0, smithy_client_1.expectString)(output.awsDeviceV2),
4704
4569
  awsLogicalDeviceId: (0, smithy_client_1.expectString)(output.awsLogicalDeviceId),
4705
- bgpPeers: output.bgpPeers !== undefined && output.bgpPeers !== null
4706
- ? deserializeAws_json1_1BGPPeerList(output.bgpPeers, context)
4707
- : undefined,
4570
+ bgpPeers: output.bgpPeers != null ? deserializeAws_json1_1BGPPeerList(output.bgpPeers, context) : undefined,
4708
4571
  connectionId: (0, smithy_client_1.expectString)(output.connectionId),
4709
4572
  customerAddress: (0, smithy_client_1.expectString)(output.customerAddress),
4710
4573
  customerRouterConfig: (0, smithy_client_1.expectString)(output.customerRouterConfig),
@@ -4714,13 +4577,11 @@ const deserializeAws_json1_1VirtualInterface = (output, context) => {
4714
4577
  mtu: (0, smithy_client_1.expectInt32)(output.mtu),
4715
4578
  ownerAccount: (0, smithy_client_1.expectString)(output.ownerAccount),
4716
4579
  region: (0, smithy_client_1.expectString)(output.region),
4717
- routeFilterPrefixes: output.routeFilterPrefixes !== undefined && output.routeFilterPrefixes !== null
4580
+ routeFilterPrefixes: output.routeFilterPrefixes != null
4718
4581
  ? deserializeAws_json1_1RouteFilterPrefixList(output.routeFilterPrefixes, context)
4719
4582
  : undefined,
4720
4583
  siteLinkEnabled: (0, smithy_client_1.expectBoolean)(output.siteLinkEnabled),
4721
- tags: output.tags !== undefined && output.tags !== null
4722
- ? deserializeAws_json1_1TagList(output.tags, context)
4723
- : undefined,
4584
+ tags: output.tags != null ? deserializeAws_json1_1TagList(output.tags, context) : undefined,
4724
4585
  virtualGatewayId: (0, smithy_client_1.expectString)(output.virtualGatewayId),
4725
4586
  virtualInterfaceId: (0, smithy_client_1.expectString)(output.virtualInterfaceId),
4726
4587
  virtualInterfaceName: (0, smithy_client_1.expectString)(output.virtualInterfaceName),
@@ -4742,23 +4603,17 @@ const deserializeAws_json1_1VirtualInterfaceList = (output, context) => {
4742
4603
  };
4743
4604
  const deserializeAws_json1_1VirtualInterfaces = (output, context) => {
4744
4605
  return {
4745
- virtualInterfaces: output.virtualInterfaces !== undefined && output.virtualInterfaces !== null
4606
+ virtualInterfaces: output.virtualInterfaces != null
4746
4607
  ? deserializeAws_json1_1VirtualInterfaceList(output.virtualInterfaces, context)
4747
4608
  : undefined,
4748
4609
  };
4749
4610
  };
4750
4611
  const deserializeAws_json1_1VirtualInterfaceTestHistory = (output, context) => {
4751
4612
  return {
4752
- bgpPeers: output.bgpPeers !== undefined && output.bgpPeers !== null
4753
- ? deserializeAws_json1_1BGPPeerIdList(output.bgpPeers, context)
4754
- : undefined,
4755
- endTime: output.endTime !== undefined && output.endTime !== null
4756
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.endTime)))
4757
- : undefined,
4613
+ bgpPeers: output.bgpPeers != null ? deserializeAws_json1_1BGPPeerIdList(output.bgpPeers, context) : undefined,
4614
+ endTime: output.endTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.endTime))) : undefined,
4758
4615
  ownerAccount: (0, smithy_client_1.expectString)(output.ownerAccount),
4759
- startTime: output.startTime !== undefined && output.startTime !== null
4760
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startTime)))
4761
- : undefined,
4616
+ startTime: output.startTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startTime))) : undefined,
4762
4617
  status: (0, smithy_client_1.expectString)(output.status),
4763
4618
  testDurationInMinutes: (0, smithy_client_1.expectInt32)(output.testDurationInMinutes),
4764
4619
  testId: (0, smithy_client_1.expectString)(output.testId),
@@ -4820,6 +4675,9 @@ const loadRestJsonErrorCode = (output, data) => {
4820
4675
  const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
4821
4676
  const sanitizeErrorCode = (rawValue) => {
4822
4677
  let cleanValue = rawValue;
4678
+ if (typeof cleanValue === "number") {
4679
+ cleanValue = cleanValue.toString();
4680
+ }
4823
4681
  if (cleanValue.indexOf(":") >= 0) {
4824
4682
  cleanValue = cleanValue.split(":")[0];
4825
4683
  }