@aws-sdk/client-direct-connect 3.121.0 → 3.127.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4286,55 +4286,44 @@ var deserializeAws_json1_1TooManyTagsExceptionResponse = function (parsedOutput,
4286
4286
  });
4287
4287
  }); };
4288
4288
  var serializeAws_json1_1AcceptDirectConnectGatewayAssociationProposalRequest = function (input, context) {
4289
- return __assign(__assign(__assign(__assign({}, (input.associatedGatewayOwnerAccount !== undefined &&
4290
- input.associatedGatewayOwnerAccount !== null && {
4289
+ return __assign(__assign(__assign(__assign({}, (input.associatedGatewayOwnerAccount != null && {
4291
4290
  associatedGatewayOwnerAccount: input.associatedGatewayOwnerAccount,
4292
- })), (input.directConnectGatewayId !== undefined &&
4293
- input.directConnectGatewayId !== null && { directConnectGatewayId: input.directConnectGatewayId })), (input.overrideAllowedPrefixesToDirectConnectGateway !== undefined &&
4294
- input.overrideAllowedPrefixesToDirectConnectGateway !== null && {
4291
+ })), (input.directConnectGatewayId != null && { directConnectGatewayId: input.directConnectGatewayId })), (input.overrideAllowedPrefixesToDirectConnectGateway != null && {
4295
4292
  overrideAllowedPrefixesToDirectConnectGateway: serializeAws_json1_1RouteFilterPrefixList(input.overrideAllowedPrefixesToDirectConnectGateway, context),
4296
- })), (input.proposalId !== undefined && input.proposalId !== null && { proposalId: input.proposalId }));
4293
+ })), (input.proposalId != null && { proposalId: input.proposalId }));
4297
4294
  };
4298
4295
  var serializeAws_json1_1AllocateConnectionOnInterconnectRequest = function (input, context) {
4299
- return __assign(__assign(__assign(__assign(__assign({}, (input.bandwidth !== undefined && input.bandwidth !== null && { bandwidth: input.bandwidth })), (input.connectionName !== undefined &&
4300
- input.connectionName !== null && { connectionName: input.connectionName })), (input.interconnectId !== undefined &&
4301
- input.interconnectId !== null && { interconnectId: input.interconnectId })), (input.ownerAccount !== undefined && input.ownerAccount !== null && { ownerAccount: input.ownerAccount })), (input.vlan !== undefined && input.vlan !== null && { vlan: input.vlan }));
4296
+ return __assign(__assign(__assign(__assign(__assign({}, (input.bandwidth != null && { bandwidth: input.bandwidth })), (input.connectionName != null && { connectionName: input.connectionName })), (input.interconnectId != null && { interconnectId: input.interconnectId })), (input.ownerAccount != null && { ownerAccount: input.ownerAccount })), (input.vlan != null && { vlan: input.vlan }));
4302
4297
  };
4303
4298
  var serializeAws_json1_1AllocateHostedConnectionRequest = function (input, context) {
4304
- return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.bandwidth !== undefined && input.bandwidth !== null && { bandwidth: input.bandwidth })), (input.connectionId !== undefined && input.connectionId !== null && { connectionId: input.connectionId })), (input.connectionName !== undefined &&
4305
- input.connectionName !== null && { connectionName: input.connectionName })), (input.ownerAccount !== undefined && input.ownerAccount !== null && { ownerAccount: input.ownerAccount })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1TagList(input.tags, context) })), (input.vlan !== undefined && input.vlan !== null && { vlan: input.vlan }));
4299
+ return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.bandwidth != null && { bandwidth: input.bandwidth })), (input.connectionId != null && { connectionId: input.connectionId })), (input.connectionName != null && { connectionName: input.connectionName })), (input.ownerAccount != null && { ownerAccount: input.ownerAccount })), (input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) })), (input.vlan != null && { vlan: input.vlan }));
4306
4300
  };
4307
4301
  var serializeAws_json1_1AllocatePrivateVirtualInterfaceRequest = function (input, context) {
4308
- return __assign(__assign(__assign({}, (input.connectionId !== undefined && input.connectionId !== null && { connectionId: input.connectionId })), (input.newPrivateVirtualInterfaceAllocation !== undefined &&
4309
- input.newPrivateVirtualInterfaceAllocation !== null && {
4302
+ return __assign(__assign(__assign({}, (input.connectionId != null && { connectionId: input.connectionId })), (input.newPrivateVirtualInterfaceAllocation != null && {
4310
4303
  newPrivateVirtualInterfaceAllocation: serializeAws_json1_1NewPrivateVirtualInterfaceAllocation(input.newPrivateVirtualInterfaceAllocation, context),
4311
- })), (input.ownerAccount !== undefined && input.ownerAccount !== null && { ownerAccount: input.ownerAccount }));
4304
+ })), (input.ownerAccount != null && { ownerAccount: input.ownerAccount }));
4312
4305
  };
4313
4306
  var serializeAws_json1_1AllocatePublicVirtualInterfaceRequest = function (input, context) {
4314
- return __assign(__assign(__assign({}, (input.connectionId !== undefined && input.connectionId !== null && { connectionId: input.connectionId })), (input.newPublicVirtualInterfaceAllocation !== undefined &&
4315
- input.newPublicVirtualInterfaceAllocation !== null && {
4307
+ return __assign(__assign(__assign({}, (input.connectionId != null && { connectionId: input.connectionId })), (input.newPublicVirtualInterfaceAllocation != null && {
4316
4308
  newPublicVirtualInterfaceAllocation: serializeAws_json1_1NewPublicVirtualInterfaceAllocation(input.newPublicVirtualInterfaceAllocation, context),
4317
- })), (input.ownerAccount !== undefined && input.ownerAccount !== null && { ownerAccount: input.ownerAccount }));
4309
+ })), (input.ownerAccount != null && { ownerAccount: input.ownerAccount }));
4318
4310
  };
4319
4311
  var serializeAws_json1_1AllocateTransitVirtualInterfaceRequest = function (input, context) {
4320
- return __assign(__assign(__assign({}, (input.connectionId !== undefined && input.connectionId !== null && { connectionId: input.connectionId })), (input.newTransitVirtualInterfaceAllocation !== undefined &&
4321
- input.newTransitVirtualInterfaceAllocation !== null && {
4312
+ return __assign(__assign(__assign({}, (input.connectionId != null && { connectionId: input.connectionId })), (input.newTransitVirtualInterfaceAllocation != null && {
4322
4313
  newTransitVirtualInterfaceAllocation: serializeAws_json1_1NewTransitVirtualInterfaceAllocation(input.newTransitVirtualInterfaceAllocation, context),
4323
- })), (input.ownerAccount !== undefined && input.ownerAccount !== null && { ownerAccount: input.ownerAccount }));
4314
+ })), (input.ownerAccount != null && { ownerAccount: input.ownerAccount }));
4324
4315
  };
4325
4316
  var serializeAws_json1_1AssociateConnectionWithLagRequest = function (input, context) {
4326
- return __assign(__assign({}, (input.connectionId !== undefined && input.connectionId !== null && { connectionId: input.connectionId })), (input.lagId !== undefined && input.lagId !== null && { lagId: input.lagId }));
4317
+ return __assign(__assign({}, (input.connectionId != null && { connectionId: input.connectionId })), (input.lagId != null && { lagId: input.lagId }));
4327
4318
  };
4328
4319
  var serializeAws_json1_1AssociateHostedConnectionRequest = function (input, context) {
4329
- return __assign(__assign({}, (input.connectionId !== undefined && input.connectionId !== null && { connectionId: input.connectionId })), (input.parentConnectionId !== undefined &&
4330
- input.parentConnectionId !== null && { parentConnectionId: input.parentConnectionId }));
4320
+ return __assign(__assign({}, (input.connectionId != null && { connectionId: input.connectionId })), (input.parentConnectionId != null && { parentConnectionId: input.parentConnectionId }));
4331
4321
  };
4332
4322
  var serializeAws_json1_1AssociateMacSecKeyRequest = function (input, context) {
4333
- return __assign(__assign(__assign(__assign({}, (input.cak !== undefined && input.cak !== null && { cak: input.cak })), (input.ckn !== undefined && input.ckn !== null && { ckn: input.ckn })), (input.connectionId !== undefined && input.connectionId !== null && { connectionId: input.connectionId })), (input.secretARN !== undefined && input.secretARN !== null && { secretARN: input.secretARN }));
4323
+ return __assign(__assign(__assign(__assign({}, (input.cak != null && { cak: input.cak })), (input.ckn != null && { ckn: input.ckn })), (input.connectionId != null && { connectionId: input.connectionId })), (input.secretARN != null && { secretARN: input.secretARN }));
4334
4324
  };
4335
4325
  var serializeAws_json1_1AssociateVirtualInterfaceRequest = function (input, context) {
4336
- return __assign(__assign({}, (input.connectionId !== undefined && input.connectionId !== null && { connectionId: input.connectionId })), (input.virtualInterfaceId !== undefined &&
4337
- input.virtualInterfaceId !== null && { virtualInterfaceId: input.virtualInterfaceId }));
4326
+ return __assign(__assign({}, (input.connectionId != null && { connectionId: input.connectionId })), (input.virtualInterfaceId != null && { virtualInterfaceId: input.virtualInterfaceId }));
4338
4327
  };
4339
4328
  var serializeAws_json1_1BGPPeerIdList = function (input, context) {
4340
4329
  return input
@@ -4347,241 +4336,170 @@ var serializeAws_json1_1BGPPeerIdList = function (input, context) {
4347
4336
  });
4348
4337
  };
4349
4338
  var serializeAws_json1_1ConfirmConnectionRequest = function (input, context) {
4350
- return __assign({}, (input.connectionId !== undefined && input.connectionId !== null && { connectionId: input.connectionId }));
4339
+ return __assign({}, (input.connectionId != null && { connectionId: input.connectionId }));
4351
4340
  };
4352
4341
  var serializeAws_json1_1ConfirmCustomerAgreementRequest = function (input, context) {
4353
- return __assign({}, (input.agreementName !== undefined && input.agreementName !== null && { agreementName: input.agreementName }));
4342
+ return __assign({}, (input.agreementName != null && { agreementName: input.agreementName }));
4354
4343
  };
4355
4344
  var serializeAws_json1_1ConfirmPrivateVirtualInterfaceRequest = function (input, context) {
4356
- return __assign(__assign(__assign({}, (input.directConnectGatewayId !== undefined &&
4357
- input.directConnectGatewayId !== null && { directConnectGatewayId: input.directConnectGatewayId })), (input.virtualGatewayId !== undefined &&
4358
- input.virtualGatewayId !== null && { virtualGatewayId: input.virtualGatewayId })), (input.virtualInterfaceId !== undefined &&
4359
- input.virtualInterfaceId !== null && { virtualInterfaceId: input.virtualInterfaceId }));
4345
+ return __assign(__assign(__assign({}, (input.directConnectGatewayId != null && { directConnectGatewayId: input.directConnectGatewayId })), (input.virtualGatewayId != null && { virtualGatewayId: input.virtualGatewayId })), (input.virtualInterfaceId != null && { virtualInterfaceId: input.virtualInterfaceId }));
4360
4346
  };
4361
4347
  var serializeAws_json1_1ConfirmPublicVirtualInterfaceRequest = function (input, context) {
4362
- return __assign({}, (input.virtualInterfaceId !== undefined &&
4363
- input.virtualInterfaceId !== null && { virtualInterfaceId: input.virtualInterfaceId }));
4348
+ return __assign({}, (input.virtualInterfaceId != null && { virtualInterfaceId: input.virtualInterfaceId }));
4364
4349
  };
4365
4350
  var serializeAws_json1_1ConfirmTransitVirtualInterfaceRequest = function (input, context) {
4366
- return __assign(__assign({}, (input.directConnectGatewayId !== undefined &&
4367
- input.directConnectGatewayId !== null && { directConnectGatewayId: input.directConnectGatewayId })), (input.virtualInterfaceId !== undefined &&
4368
- input.virtualInterfaceId !== null && { virtualInterfaceId: input.virtualInterfaceId }));
4351
+ return __assign(__assign({}, (input.directConnectGatewayId != null && { directConnectGatewayId: input.directConnectGatewayId })), (input.virtualInterfaceId != null && { virtualInterfaceId: input.virtualInterfaceId }));
4369
4352
  };
4370
4353
  var serializeAws_json1_1CreateBGPPeerRequest = function (input, context) {
4371
- return __assign(__assign({}, (input.newBGPPeer !== undefined &&
4372
- input.newBGPPeer !== null && { newBGPPeer: serializeAws_json1_1NewBGPPeer(input.newBGPPeer, context) })), (input.virtualInterfaceId !== undefined &&
4373
- input.virtualInterfaceId !== null && { virtualInterfaceId: input.virtualInterfaceId }));
4354
+ return __assign(__assign({}, (input.newBGPPeer != null && { newBGPPeer: serializeAws_json1_1NewBGPPeer(input.newBGPPeer, context) })), (input.virtualInterfaceId != null && { virtualInterfaceId: input.virtualInterfaceId }));
4374
4355
  };
4375
4356
  var serializeAws_json1_1CreateConnectionRequest = function (input, context) {
4376
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.bandwidth !== undefined && input.bandwidth !== null && { bandwidth: input.bandwidth })), (input.connectionName !== undefined &&
4377
- input.connectionName !== null && { connectionName: input.connectionName })), (input.lagId !== undefined && input.lagId !== null && { lagId: input.lagId })), (input.location !== undefined && input.location !== null && { location: input.location })), (input.providerName !== undefined && input.providerName !== null && { providerName: input.providerName })), (input.requestMACSec !== undefined && input.requestMACSec !== null && { requestMACSec: input.requestMACSec })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1TagList(input.tags, context) }));
4357
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.bandwidth != null && { bandwidth: input.bandwidth })), (input.connectionName != null && { connectionName: input.connectionName })), (input.lagId != null && { lagId: input.lagId })), (input.location != null && { location: input.location })), (input.providerName != null && { providerName: input.providerName })), (input.requestMACSec != null && { requestMACSec: input.requestMACSec })), (input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) }));
4378
4358
  };
4379
4359
  var serializeAws_json1_1CreateDirectConnectGatewayAssociationProposalRequest = function (input, context) {
4380
- return __assign(__assign(__assign(__assign(__assign({}, (input.addAllowedPrefixesToDirectConnectGateway !== undefined &&
4381
- input.addAllowedPrefixesToDirectConnectGateway !== null && {
4360
+ return __assign(__assign(__assign(__assign(__assign({}, (input.addAllowedPrefixesToDirectConnectGateway != null && {
4382
4361
  addAllowedPrefixesToDirectConnectGateway: serializeAws_json1_1RouteFilterPrefixList(input.addAllowedPrefixesToDirectConnectGateway, context),
4383
- })), (input.directConnectGatewayId !== undefined &&
4384
- input.directConnectGatewayId !== null && { directConnectGatewayId: input.directConnectGatewayId })), (input.directConnectGatewayOwnerAccount !== undefined &&
4385
- input.directConnectGatewayOwnerAccount !== null && {
4362
+ })), (input.directConnectGatewayId != null && { directConnectGatewayId: input.directConnectGatewayId })), (input.directConnectGatewayOwnerAccount != null && {
4386
4363
  directConnectGatewayOwnerAccount: input.directConnectGatewayOwnerAccount,
4387
- })), (input.gatewayId !== undefined && input.gatewayId !== null && { gatewayId: input.gatewayId })), (input.removeAllowedPrefixesToDirectConnectGateway !== undefined &&
4388
- input.removeAllowedPrefixesToDirectConnectGateway !== null && {
4364
+ })), (input.gatewayId != null && { gatewayId: input.gatewayId })), (input.removeAllowedPrefixesToDirectConnectGateway != null && {
4389
4365
  removeAllowedPrefixesToDirectConnectGateway: serializeAws_json1_1RouteFilterPrefixList(input.removeAllowedPrefixesToDirectConnectGateway, context),
4390
4366
  }));
4391
4367
  };
4392
4368
  var serializeAws_json1_1CreateDirectConnectGatewayAssociationRequest = function (input, context) {
4393
- return __assign(__assign(__assign(__assign({}, (input.addAllowedPrefixesToDirectConnectGateway !== undefined &&
4394
- input.addAllowedPrefixesToDirectConnectGateway !== null && {
4369
+ return __assign(__assign(__assign(__assign({}, (input.addAllowedPrefixesToDirectConnectGateway != null && {
4395
4370
  addAllowedPrefixesToDirectConnectGateway: serializeAws_json1_1RouteFilterPrefixList(input.addAllowedPrefixesToDirectConnectGateway, context),
4396
- })), (input.directConnectGatewayId !== undefined &&
4397
- input.directConnectGatewayId !== null && { directConnectGatewayId: input.directConnectGatewayId })), (input.gatewayId !== undefined && input.gatewayId !== null && { gatewayId: input.gatewayId })), (input.virtualGatewayId !== undefined &&
4398
- input.virtualGatewayId !== null && { virtualGatewayId: input.virtualGatewayId }));
4371
+ })), (input.directConnectGatewayId != null && { directConnectGatewayId: input.directConnectGatewayId })), (input.gatewayId != null && { gatewayId: input.gatewayId })), (input.virtualGatewayId != null && { virtualGatewayId: input.virtualGatewayId }));
4399
4372
  };
4400
4373
  var serializeAws_json1_1CreateDirectConnectGatewayRequest = function (input, context) {
4401
- return __assign(__assign({}, (input.amazonSideAsn !== undefined && input.amazonSideAsn !== null && { amazonSideAsn: input.amazonSideAsn })), (input.directConnectGatewayName !== undefined &&
4402
- input.directConnectGatewayName !== null && { directConnectGatewayName: input.directConnectGatewayName }));
4374
+ return __assign(__assign({}, (input.amazonSideAsn != null && { amazonSideAsn: input.amazonSideAsn })), (input.directConnectGatewayName != null && { directConnectGatewayName: input.directConnectGatewayName }));
4403
4375
  };
4404
4376
  var serializeAws_json1_1CreateInterconnectRequest = function (input, context) {
4405
- return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.bandwidth !== undefined && input.bandwidth !== null && { bandwidth: input.bandwidth })), (input.interconnectName !== undefined &&
4406
- input.interconnectName !== null && { interconnectName: input.interconnectName })), (input.lagId !== undefined && input.lagId !== null && { lagId: input.lagId })), (input.location !== undefined && input.location !== null && { location: input.location })), (input.providerName !== undefined && input.providerName !== null && { providerName: input.providerName })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1TagList(input.tags, context) }));
4377
+ return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.bandwidth != null && { bandwidth: input.bandwidth })), (input.interconnectName != null && { interconnectName: input.interconnectName })), (input.lagId != null && { lagId: input.lagId })), (input.location != null && { location: input.location })), (input.providerName != null && { providerName: input.providerName })), (input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) }));
4407
4378
  };
4408
4379
  var serializeAws_json1_1CreateLagRequest = function (input, context) {
4409
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.childConnectionTags !== undefined &&
4410
- input.childConnectionTags !== null && {
4380
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.childConnectionTags != null && {
4411
4381
  childConnectionTags: serializeAws_json1_1TagList(input.childConnectionTags, context),
4412
- })), (input.connectionId !== undefined && input.connectionId !== null && { connectionId: input.connectionId })), (input.connectionsBandwidth !== undefined &&
4413
- input.connectionsBandwidth !== null && { connectionsBandwidth: input.connectionsBandwidth })), (input.lagName !== undefined && input.lagName !== null && { lagName: input.lagName })), (input.location !== undefined && input.location !== null && { location: input.location })), (input.numberOfConnections !== undefined &&
4414
- input.numberOfConnections !== null && { numberOfConnections: input.numberOfConnections })), (input.providerName !== undefined && input.providerName !== null && { providerName: input.providerName })), (input.requestMACSec !== undefined && input.requestMACSec !== null && { requestMACSec: input.requestMACSec })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1TagList(input.tags, context) }));
4382
+ })), (input.connectionId != null && { connectionId: input.connectionId })), (input.connectionsBandwidth != null && { connectionsBandwidth: input.connectionsBandwidth })), (input.lagName != null && { lagName: input.lagName })), (input.location != null && { location: input.location })), (input.numberOfConnections != null && { numberOfConnections: input.numberOfConnections })), (input.providerName != null && { providerName: input.providerName })), (input.requestMACSec != null && { requestMACSec: input.requestMACSec })), (input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) }));
4415
4383
  };
4416
4384
  var serializeAws_json1_1CreatePrivateVirtualInterfaceRequest = function (input, context) {
4417
- return __assign(__assign({}, (input.connectionId !== undefined && input.connectionId !== null && { connectionId: input.connectionId })), (input.newPrivateVirtualInterface !== undefined &&
4418
- input.newPrivateVirtualInterface !== null && {
4385
+ return __assign(__assign({}, (input.connectionId != null && { connectionId: input.connectionId })), (input.newPrivateVirtualInterface != null && {
4419
4386
  newPrivateVirtualInterface: serializeAws_json1_1NewPrivateVirtualInterface(input.newPrivateVirtualInterface, context),
4420
4387
  }));
4421
4388
  };
4422
4389
  var serializeAws_json1_1CreatePublicVirtualInterfaceRequest = function (input, context) {
4423
- return __assign(__assign({}, (input.connectionId !== undefined && input.connectionId !== null && { connectionId: input.connectionId })), (input.newPublicVirtualInterface !== undefined &&
4424
- input.newPublicVirtualInterface !== null && {
4390
+ return __assign(__assign({}, (input.connectionId != null && { connectionId: input.connectionId })), (input.newPublicVirtualInterface != null && {
4425
4391
  newPublicVirtualInterface: serializeAws_json1_1NewPublicVirtualInterface(input.newPublicVirtualInterface, context),
4426
4392
  }));
4427
4393
  };
4428
4394
  var serializeAws_json1_1CreateTransitVirtualInterfaceRequest = function (input, context) {
4429
- return __assign(__assign({}, (input.connectionId !== undefined && input.connectionId !== null && { connectionId: input.connectionId })), (input.newTransitVirtualInterface !== undefined &&
4430
- input.newTransitVirtualInterface !== null && {
4395
+ return __assign(__assign({}, (input.connectionId != null && { connectionId: input.connectionId })), (input.newTransitVirtualInterface != null && {
4431
4396
  newTransitVirtualInterface: serializeAws_json1_1NewTransitVirtualInterface(input.newTransitVirtualInterface, context),
4432
4397
  }));
4433
4398
  };
4434
4399
  var serializeAws_json1_1DeleteBGPPeerRequest = function (input, context) {
4435
- return __assign(__assign(__assign(__assign({}, (input.asn !== undefined && input.asn !== null && { asn: input.asn })), (input.bgpPeerId !== undefined && input.bgpPeerId !== null && { bgpPeerId: input.bgpPeerId })), (input.customerAddress !== undefined &&
4436
- input.customerAddress !== null && { customerAddress: input.customerAddress })), (input.virtualInterfaceId !== undefined &&
4437
- input.virtualInterfaceId !== null && { virtualInterfaceId: input.virtualInterfaceId }));
4400
+ return __assign(__assign(__assign(__assign({}, (input.asn != null && { asn: input.asn })), (input.bgpPeerId != null && { bgpPeerId: input.bgpPeerId })), (input.customerAddress != null && { customerAddress: input.customerAddress })), (input.virtualInterfaceId != null && { virtualInterfaceId: input.virtualInterfaceId }));
4438
4401
  };
4439
4402
  var serializeAws_json1_1DeleteConnectionRequest = function (input, context) {
4440
- return __assign({}, (input.connectionId !== undefined && input.connectionId !== null && { connectionId: input.connectionId }));
4403
+ return __assign({}, (input.connectionId != null && { connectionId: input.connectionId }));
4441
4404
  };
4442
4405
  var serializeAws_json1_1DeleteDirectConnectGatewayAssociationProposalRequest = function (input, context) {
4443
- return __assign({}, (input.proposalId !== undefined && input.proposalId !== null && { proposalId: input.proposalId }));
4406
+ return __assign({}, (input.proposalId != null && { proposalId: input.proposalId }));
4444
4407
  };
4445
4408
  var serializeAws_json1_1DeleteDirectConnectGatewayAssociationRequest = function (input, context) {
4446
- return __assign(__assign(__assign({}, (input.associationId !== undefined && input.associationId !== null && { associationId: input.associationId })), (input.directConnectGatewayId !== undefined &&
4447
- input.directConnectGatewayId !== null && { directConnectGatewayId: input.directConnectGatewayId })), (input.virtualGatewayId !== undefined &&
4448
- input.virtualGatewayId !== null && { virtualGatewayId: input.virtualGatewayId }));
4409
+ return __assign(__assign(__assign({}, (input.associationId != null && { associationId: input.associationId })), (input.directConnectGatewayId != null && { directConnectGatewayId: input.directConnectGatewayId })), (input.virtualGatewayId != null && { virtualGatewayId: input.virtualGatewayId }));
4449
4410
  };
4450
4411
  var serializeAws_json1_1DeleteDirectConnectGatewayRequest = function (input, context) {
4451
- return __assign({}, (input.directConnectGatewayId !== undefined &&
4452
- input.directConnectGatewayId !== null && { directConnectGatewayId: input.directConnectGatewayId }));
4412
+ return __assign({}, (input.directConnectGatewayId != null && { directConnectGatewayId: input.directConnectGatewayId }));
4453
4413
  };
4454
4414
  var serializeAws_json1_1DeleteInterconnectRequest = function (input, context) {
4455
- return __assign({}, (input.interconnectId !== undefined &&
4456
- input.interconnectId !== null && { interconnectId: input.interconnectId }));
4415
+ return __assign({}, (input.interconnectId != null && { interconnectId: input.interconnectId }));
4457
4416
  };
4458
4417
  var serializeAws_json1_1DeleteLagRequest = function (input, context) {
4459
- return __assign({}, (input.lagId !== undefined && input.lagId !== null && { lagId: input.lagId }));
4418
+ return __assign({}, (input.lagId != null && { lagId: input.lagId }));
4460
4419
  };
4461
4420
  var serializeAws_json1_1DeleteVirtualInterfaceRequest = function (input, context) {
4462
- return __assign({}, (input.virtualInterfaceId !== undefined &&
4463
- input.virtualInterfaceId !== null && { virtualInterfaceId: input.virtualInterfaceId }));
4421
+ return __assign({}, (input.virtualInterfaceId != null && { virtualInterfaceId: input.virtualInterfaceId }));
4464
4422
  };
4465
4423
  var serializeAws_json1_1DescribeConnectionLoaRequest = function (input, context) {
4466
- return __assign(__assign(__assign({}, (input.connectionId !== undefined && input.connectionId !== null && { connectionId: input.connectionId })), (input.loaContentType !== undefined &&
4467
- input.loaContentType !== null && { loaContentType: input.loaContentType })), (input.providerName !== undefined && input.providerName !== null && { providerName: input.providerName }));
4424
+ return __assign(__assign(__assign({}, (input.connectionId != null && { connectionId: input.connectionId })), (input.loaContentType != null && { loaContentType: input.loaContentType })), (input.providerName != null && { providerName: input.providerName }));
4468
4425
  };
4469
4426
  var serializeAws_json1_1DescribeConnectionsOnInterconnectRequest = function (input, context) {
4470
- return __assign({}, (input.interconnectId !== undefined &&
4471
- input.interconnectId !== null && { interconnectId: input.interconnectId }));
4427
+ return __assign({}, (input.interconnectId != null && { interconnectId: input.interconnectId }));
4472
4428
  };
4473
4429
  var serializeAws_json1_1DescribeConnectionsRequest = function (input, context) {
4474
- return __assign({}, (input.connectionId !== undefined && input.connectionId !== null && { connectionId: input.connectionId }));
4430
+ return __assign({}, (input.connectionId != null && { connectionId: input.connectionId }));
4475
4431
  };
4476
4432
  var serializeAws_json1_1DescribeDirectConnectGatewayAssociationProposalsRequest = function (input, context) {
4477
- return __assign(__assign(__assign(__assign(__assign({}, (input.associatedGatewayId !== undefined &&
4478
- input.associatedGatewayId !== null && { associatedGatewayId: input.associatedGatewayId })), (input.directConnectGatewayId !== undefined &&
4479
- input.directConnectGatewayId !== null && { directConnectGatewayId: input.directConnectGatewayId })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.proposalId !== undefined && input.proposalId !== null && { proposalId: input.proposalId }));
4433
+ return __assign(__assign(__assign(__assign(__assign({}, (input.associatedGatewayId != null && { associatedGatewayId: input.associatedGatewayId })), (input.directConnectGatewayId != null && { directConnectGatewayId: input.directConnectGatewayId })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.proposalId != null && { proposalId: input.proposalId }));
4480
4434
  };
4481
4435
  var serializeAws_json1_1DescribeDirectConnectGatewayAssociationsRequest = function (input, context) {
4482
- return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.associatedGatewayId !== undefined &&
4483
- input.associatedGatewayId !== null && { associatedGatewayId: input.associatedGatewayId })), (input.associationId !== undefined && input.associationId !== null && { associationId: input.associationId })), (input.directConnectGatewayId !== undefined &&
4484
- input.directConnectGatewayId !== null && { directConnectGatewayId: input.directConnectGatewayId })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.virtualGatewayId !== undefined &&
4485
- input.virtualGatewayId !== null && { virtualGatewayId: input.virtualGatewayId }));
4436
+ return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.associatedGatewayId != null && { associatedGatewayId: input.associatedGatewayId })), (input.associationId != null && { associationId: input.associationId })), (input.directConnectGatewayId != null && { directConnectGatewayId: input.directConnectGatewayId })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.virtualGatewayId != null && { virtualGatewayId: input.virtualGatewayId }));
4486
4437
  };
4487
4438
  var serializeAws_json1_1DescribeDirectConnectGatewayAttachmentsRequest = function (input, context) {
4488
- return __assign(__assign(__assign(__assign({}, (input.directConnectGatewayId !== undefined &&
4489
- input.directConnectGatewayId !== null && { directConnectGatewayId: input.directConnectGatewayId })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.virtualInterfaceId !== undefined &&
4490
- input.virtualInterfaceId !== null && { virtualInterfaceId: input.virtualInterfaceId }));
4439
+ return __assign(__assign(__assign(__assign({}, (input.directConnectGatewayId != null && { directConnectGatewayId: input.directConnectGatewayId })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.virtualInterfaceId != null && { virtualInterfaceId: input.virtualInterfaceId }));
4491
4440
  };
4492
4441
  var serializeAws_json1_1DescribeDirectConnectGatewaysRequest = function (input, context) {
4493
- return __assign(__assign(__assign({}, (input.directConnectGatewayId !== undefined &&
4494
- input.directConnectGatewayId !== null && { directConnectGatewayId: input.directConnectGatewayId })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }));
4442
+ return __assign(__assign(__assign({}, (input.directConnectGatewayId != null && { directConnectGatewayId: input.directConnectGatewayId })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken }));
4495
4443
  };
4496
4444
  var serializeAws_json1_1DescribeHostedConnectionsRequest = function (input, context) {
4497
- return __assign({}, (input.connectionId !== undefined && input.connectionId !== null && { connectionId: input.connectionId }));
4445
+ return __assign({}, (input.connectionId != null && { connectionId: input.connectionId }));
4498
4446
  };
4499
4447
  var serializeAws_json1_1DescribeInterconnectLoaRequest = function (input, context) {
4500
- return __assign(__assign(__assign({}, (input.interconnectId !== undefined &&
4501
- input.interconnectId !== null && { interconnectId: input.interconnectId })), (input.loaContentType !== undefined &&
4502
- input.loaContentType !== null && { loaContentType: input.loaContentType })), (input.providerName !== undefined && input.providerName !== null && { providerName: input.providerName }));
4448
+ return __assign(__assign(__assign({}, (input.interconnectId != null && { interconnectId: input.interconnectId })), (input.loaContentType != null && { loaContentType: input.loaContentType })), (input.providerName != null && { providerName: input.providerName }));
4503
4449
  };
4504
4450
  var serializeAws_json1_1DescribeInterconnectsRequest = function (input, context) {
4505
- return __assign({}, (input.interconnectId !== undefined &&
4506
- input.interconnectId !== null && { interconnectId: input.interconnectId }));
4451
+ return __assign({}, (input.interconnectId != null && { interconnectId: input.interconnectId }));
4507
4452
  };
4508
4453
  var serializeAws_json1_1DescribeLagsRequest = function (input, context) {
4509
- return __assign({}, (input.lagId !== undefined && input.lagId !== null && { lagId: input.lagId }));
4454
+ return __assign({}, (input.lagId != null && { lagId: input.lagId }));
4510
4455
  };
4511
4456
  var serializeAws_json1_1DescribeLoaRequest = function (input, context) {
4512
- return __assign(__assign(__assign({}, (input.connectionId !== undefined && input.connectionId !== null && { connectionId: input.connectionId })), (input.loaContentType !== undefined &&
4513
- input.loaContentType !== null && { loaContentType: input.loaContentType })), (input.providerName !== undefined && input.providerName !== null && { providerName: input.providerName }));
4457
+ return __assign(__assign(__assign({}, (input.connectionId != null && { connectionId: input.connectionId })), (input.loaContentType != null && { loaContentType: input.loaContentType })), (input.providerName != null && { providerName: input.providerName }));
4514
4458
  };
4515
4459
  var serializeAws_json1_1DescribeRouterConfigurationRequest = function (input, context) {
4516
- return __assign(__assign({}, (input.routerTypeIdentifier !== undefined &&
4517
- input.routerTypeIdentifier !== null && { routerTypeIdentifier: input.routerTypeIdentifier })), (input.virtualInterfaceId !== undefined &&
4518
- input.virtualInterfaceId !== null && { virtualInterfaceId: input.virtualInterfaceId }));
4460
+ return __assign(__assign({}, (input.routerTypeIdentifier != null && { routerTypeIdentifier: input.routerTypeIdentifier })), (input.virtualInterfaceId != null && { virtualInterfaceId: input.virtualInterfaceId }));
4519
4461
  };
4520
4462
  var serializeAws_json1_1DescribeTagsRequest = function (input, context) {
4521
- return __assign({}, (input.resourceArns !== undefined &&
4522
- input.resourceArns !== null && {
4463
+ return __assign({}, (input.resourceArns != null && {
4523
4464
  resourceArns: serializeAws_json1_1ResourceArnList(input.resourceArns, context),
4524
4465
  }));
4525
4466
  };
4526
4467
  var serializeAws_json1_1DescribeVirtualInterfacesRequest = function (input, context) {
4527
- return __assign(__assign({}, (input.connectionId !== undefined && input.connectionId !== null && { connectionId: input.connectionId })), (input.virtualInterfaceId !== undefined &&
4528
- input.virtualInterfaceId !== null && { virtualInterfaceId: input.virtualInterfaceId }));
4468
+ return __assign(__assign({}, (input.connectionId != null && { connectionId: input.connectionId })), (input.virtualInterfaceId != null && { virtualInterfaceId: input.virtualInterfaceId }));
4529
4469
  };
4530
4470
  var serializeAws_json1_1DisassociateConnectionFromLagRequest = function (input, context) {
4531
- return __assign(__assign({}, (input.connectionId !== undefined && input.connectionId !== null && { connectionId: input.connectionId })), (input.lagId !== undefined && input.lagId !== null && { lagId: input.lagId }));
4471
+ return __assign(__assign({}, (input.connectionId != null && { connectionId: input.connectionId })), (input.lagId != null && { lagId: input.lagId }));
4532
4472
  };
4533
4473
  var serializeAws_json1_1DisassociateMacSecKeyRequest = function (input, context) {
4534
- return __assign(__assign({}, (input.connectionId !== undefined && input.connectionId !== null && { connectionId: input.connectionId })), (input.secretARN !== undefined && input.secretARN !== null && { secretARN: input.secretARN }));
4474
+ return __assign(__assign({}, (input.connectionId != null && { connectionId: input.connectionId })), (input.secretARN != null && { secretARN: input.secretARN }));
4535
4475
  };
4536
4476
  var serializeAws_json1_1ListVirtualInterfaceTestHistoryRequest = function (input, context) {
4537
- return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.bgpPeers !== undefined &&
4538
- input.bgpPeers !== null && { bgpPeers: serializeAws_json1_1BGPPeerIdList(input.bgpPeers, context) })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.status !== undefined && input.status !== null && { status: input.status })), (input.testId !== undefined && input.testId !== null && { testId: input.testId })), (input.virtualInterfaceId !== undefined &&
4539
- input.virtualInterfaceId !== null && { virtualInterfaceId: input.virtualInterfaceId }));
4477
+ return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.bgpPeers != null && { bgpPeers: serializeAws_json1_1BGPPeerIdList(input.bgpPeers, context) })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.status != null && { status: input.status })), (input.testId != null && { testId: input.testId })), (input.virtualInterfaceId != null && { virtualInterfaceId: input.virtualInterfaceId }));
4540
4478
  };
4541
4479
  var serializeAws_json1_1NewBGPPeer = function (input, context) {
4542
- return __assign(__assign(__assign(__assign(__assign({}, (input.addressFamily !== undefined && input.addressFamily !== null && { addressFamily: input.addressFamily })), (input.amazonAddress !== undefined && input.amazonAddress !== null && { amazonAddress: input.amazonAddress })), (input.asn !== undefined && input.asn !== null && { asn: input.asn })), (input.authKey !== undefined && input.authKey !== null && { authKey: input.authKey })), (input.customerAddress !== undefined &&
4543
- input.customerAddress !== null && { customerAddress: input.customerAddress }));
4480
+ return __assign(__assign(__assign(__assign(__assign({}, (input.addressFamily != null && { addressFamily: input.addressFamily })), (input.amazonAddress != null && { amazonAddress: input.amazonAddress })), (input.asn != null && { asn: input.asn })), (input.authKey != null && { authKey: input.authKey })), (input.customerAddress != null && { customerAddress: input.customerAddress }));
4544
4481
  };
4545
4482
  var serializeAws_json1_1NewPrivateVirtualInterface = function (input, context) {
4546
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.addressFamily !== undefined && input.addressFamily !== null && { addressFamily: input.addressFamily })), (input.amazonAddress !== undefined && input.amazonAddress !== null && { amazonAddress: input.amazonAddress })), (input.asn !== undefined && input.asn !== null && { asn: input.asn })), (input.authKey !== undefined && input.authKey !== null && { authKey: input.authKey })), (input.customerAddress !== undefined &&
4547
- input.customerAddress !== null && { customerAddress: input.customerAddress })), (input.directConnectGatewayId !== undefined &&
4548
- input.directConnectGatewayId !== null && { directConnectGatewayId: input.directConnectGatewayId })), (input.enableSiteLink !== undefined &&
4549
- input.enableSiteLink !== null && { enableSiteLink: input.enableSiteLink })), (input.mtu !== undefined && input.mtu !== null && { mtu: input.mtu })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1TagList(input.tags, context) })), (input.virtualGatewayId !== undefined &&
4550
- input.virtualGatewayId !== null && { virtualGatewayId: input.virtualGatewayId })), (input.virtualInterfaceName !== undefined &&
4551
- input.virtualInterfaceName !== null && { virtualInterfaceName: input.virtualInterfaceName })), (input.vlan !== undefined && input.vlan !== null && { vlan: input.vlan }));
4483
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.addressFamily != null && { addressFamily: input.addressFamily })), (input.amazonAddress != null && { amazonAddress: input.amazonAddress })), (input.asn != null && { asn: input.asn })), (input.authKey != null && { authKey: input.authKey })), (input.customerAddress != null && { customerAddress: input.customerAddress })), (input.directConnectGatewayId != null && { directConnectGatewayId: input.directConnectGatewayId })), (input.enableSiteLink != null && { enableSiteLink: input.enableSiteLink })), (input.mtu != null && { mtu: input.mtu })), (input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) })), (input.virtualGatewayId != null && { virtualGatewayId: input.virtualGatewayId })), (input.virtualInterfaceName != null && { virtualInterfaceName: input.virtualInterfaceName })), (input.vlan != null && { vlan: input.vlan }));
4552
4484
  };
4553
4485
  var serializeAws_json1_1NewPrivateVirtualInterfaceAllocation = function (input, context) {
4554
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.addressFamily !== undefined && input.addressFamily !== null && { addressFamily: input.addressFamily })), (input.amazonAddress !== undefined && input.amazonAddress !== null && { amazonAddress: input.amazonAddress })), (input.asn !== undefined && input.asn !== null && { asn: input.asn })), (input.authKey !== undefined && input.authKey !== null && { authKey: input.authKey })), (input.customerAddress !== undefined &&
4555
- input.customerAddress !== null && { customerAddress: input.customerAddress })), (input.mtu !== undefined && input.mtu !== null && { mtu: input.mtu })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1TagList(input.tags, context) })), (input.virtualInterfaceName !== undefined &&
4556
- input.virtualInterfaceName !== null && { virtualInterfaceName: input.virtualInterfaceName })), (input.vlan !== undefined && input.vlan !== null && { vlan: input.vlan }));
4486
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.addressFamily != null && { addressFamily: input.addressFamily })), (input.amazonAddress != null && { amazonAddress: input.amazonAddress })), (input.asn != null && { asn: input.asn })), (input.authKey != null && { authKey: input.authKey })), (input.customerAddress != null && { customerAddress: input.customerAddress })), (input.mtu != null && { mtu: input.mtu })), (input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) })), (input.virtualInterfaceName != null && { virtualInterfaceName: input.virtualInterfaceName })), (input.vlan != null && { vlan: input.vlan }));
4557
4487
  };
4558
4488
  var serializeAws_json1_1NewPublicVirtualInterface = function (input, context) {
4559
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.addressFamily !== undefined && input.addressFamily !== null && { addressFamily: input.addressFamily })), (input.amazonAddress !== undefined && input.amazonAddress !== null && { amazonAddress: input.amazonAddress })), (input.asn !== undefined && input.asn !== null && { asn: input.asn })), (input.authKey !== undefined && input.authKey !== null && { authKey: input.authKey })), (input.customerAddress !== undefined &&
4560
- input.customerAddress !== null && { customerAddress: input.customerAddress })), (input.routeFilterPrefixes !== undefined &&
4561
- input.routeFilterPrefixes !== null && {
4489
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.addressFamily != null && { addressFamily: input.addressFamily })), (input.amazonAddress != null && { amazonAddress: input.amazonAddress })), (input.asn != null && { asn: input.asn })), (input.authKey != null && { authKey: input.authKey })), (input.customerAddress != null && { customerAddress: input.customerAddress })), (input.routeFilterPrefixes != null && {
4562
4490
  routeFilterPrefixes: serializeAws_json1_1RouteFilterPrefixList(input.routeFilterPrefixes, context),
4563
- })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1TagList(input.tags, context) })), (input.virtualInterfaceName !== undefined &&
4564
- input.virtualInterfaceName !== null && { virtualInterfaceName: input.virtualInterfaceName })), (input.vlan !== undefined && input.vlan !== null && { vlan: input.vlan }));
4491
+ })), (input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) })), (input.virtualInterfaceName != null && { virtualInterfaceName: input.virtualInterfaceName })), (input.vlan != null && { vlan: input.vlan }));
4565
4492
  };
4566
4493
  var serializeAws_json1_1NewPublicVirtualInterfaceAllocation = function (input, context) {
4567
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.addressFamily !== undefined && input.addressFamily !== null && { addressFamily: input.addressFamily })), (input.amazonAddress !== undefined && input.amazonAddress !== null && { amazonAddress: input.amazonAddress })), (input.asn !== undefined && input.asn !== null && { asn: input.asn })), (input.authKey !== undefined && input.authKey !== null && { authKey: input.authKey })), (input.customerAddress !== undefined &&
4568
- input.customerAddress !== null && { customerAddress: input.customerAddress })), (input.routeFilterPrefixes !== undefined &&
4569
- input.routeFilterPrefixes !== null && {
4494
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.addressFamily != null && { addressFamily: input.addressFamily })), (input.amazonAddress != null && { amazonAddress: input.amazonAddress })), (input.asn != null && { asn: input.asn })), (input.authKey != null && { authKey: input.authKey })), (input.customerAddress != null && { customerAddress: input.customerAddress })), (input.routeFilterPrefixes != null && {
4570
4495
  routeFilterPrefixes: serializeAws_json1_1RouteFilterPrefixList(input.routeFilterPrefixes, context),
4571
- })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1TagList(input.tags, context) })), (input.virtualInterfaceName !== undefined &&
4572
- input.virtualInterfaceName !== null && { virtualInterfaceName: input.virtualInterfaceName })), (input.vlan !== undefined && input.vlan !== null && { vlan: input.vlan }));
4496
+ })), (input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) })), (input.virtualInterfaceName != null && { virtualInterfaceName: input.virtualInterfaceName })), (input.vlan != null && { vlan: input.vlan }));
4573
4497
  };
4574
4498
  var serializeAws_json1_1NewTransitVirtualInterface = function (input, context) {
4575
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.addressFamily !== undefined && input.addressFamily !== null && { addressFamily: input.addressFamily })), (input.amazonAddress !== undefined && input.amazonAddress !== null && { amazonAddress: input.amazonAddress })), (input.asn !== undefined && input.asn !== null && { asn: input.asn })), (input.authKey !== undefined && input.authKey !== null && { authKey: input.authKey })), (input.customerAddress !== undefined &&
4576
- input.customerAddress !== null && { customerAddress: input.customerAddress })), (input.directConnectGatewayId !== undefined &&
4577
- input.directConnectGatewayId !== null && { directConnectGatewayId: input.directConnectGatewayId })), (input.enableSiteLink !== undefined &&
4578
- input.enableSiteLink !== null && { enableSiteLink: input.enableSiteLink })), (input.mtu !== undefined && input.mtu !== null && { mtu: input.mtu })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1TagList(input.tags, context) })), (input.virtualInterfaceName !== undefined &&
4579
- input.virtualInterfaceName !== null && { virtualInterfaceName: input.virtualInterfaceName })), (input.vlan !== undefined && input.vlan !== null && { vlan: input.vlan }));
4499
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.addressFamily != null && { addressFamily: input.addressFamily })), (input.amazonAddress != null && { amazonAddress: input.amazonAddress })), (input.asn != null && { asn: input.asn })), (input.authKey != null && { authKey: input.authKey })), (input.customerAddress != null && { customerAddress: input.customerAddress })), (input.directConnectGatewayId != null && { directConnectGatewayId: input.directConnectGatewayId })), (input.enableSiteLink != null && { enableSiteLink: input.enableSiteLink })), (input.mtu != null && { mtu: input.mtu })), (input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) })), (input.virtualInterfaceName != null && { virtualInterfaceName: input.virtualInterfaceName })), (input.vlan != null && { vlan: input.vlan }));
4580
4500
  };
4581
4501
  var serializeAws_json1_1NewTransitVirtualInterfaceAllocation = function (input, context) {
4582
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.addressFamily !== undefined && input.addressFamily !== null && { addressFamily: input.addressFamily })), (input.amazonAddress !== undefined && input.amazonAddress !== null && { amazonAddress: input.amazonAddress })), (input.asn !== undefined && input.asn !== null && { asn: input.asn })), (input.authKey !== undefined && input.authKey !== null && { authKey: input.authKey })), (input.customerAddress !== undefined &&
4583
- input.customerAddress !== null && { customerAddress: input.customerAddress })), (input.mtu !== undefined && input.mtu !== null && { mtu: input.mtu })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1TagList(input.tags, context) })), (input.virtualInterfaceName !== undefined &&
4584
- input.virtualInterfaceName !== null && { virtualInterfaceName: input.virtualInterfaceName })), (input.vlan !== undefined && input.vlan !== null && { vlan: input.vlan }));
4502
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.addressFamily != null && { addressFamily: input.addressFamily })), (input.amazonAddress != null && { amazonAddress: input.amazonAddress })), (input.asn != null && { asn: input.asn })), (input.authKey != null && { authKey: input.authKey })), (input.customerAddress != null && { customerAddress: input.customerAddress })), (input.mtu != null && { mtu: input.mtu })), (input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) })), (input.virtualInterfaceName != null && { virtualInterfaceName: input.virtualInterfaceName })), (input.vlan != null && { vlan: input.vlan }));
4585
4503
  };
4586
4504
  var serializeAws_json1_1ResourceArnList = function (input, context) {
4587
4505
  return input
@@ -4594,7 +4512,7 @@ var serializeAws_json1_1ResourceArnList = function (input, context) {
4594
4512
  });
4595
4513
  };
4596
4514
  var serializeAws_json1_1RouteFilterPrefix = function (input, context) {
4597
- return __assign({}, (input.cidr !== undefined && input.cidr !== null && { cidr: input.cidr }));
4515
+ return __assign({}, (input.cidr != null && { cidr: input.cidr }));
4598
4516
  };
4599
4517
  var serializeAws_json1_1RouteFilterPrefixList = function (input, context) {
4600
4518
  return input
@@ -4607,17 +4525,13 @@ var serializeAws_json1_1RouteFilterPrefixList = function (input, context) {
4607
4525
  });
4608
4526
  };
4609
4527
  var serializeAws_json1_1StartBgpFailoverTestRequest = function (input, context) {
4610
- return __assign(__assign(__assign({}, (input.bgpPeers !== undefined &&
4611
- input.bgpPeers !== null && { bgpPeers: serializeAws_json1_1BGPPeerIdList(input.bgpPeers, context) })), (input.testDurationInMinutes !== undefined &&
4612
- input.testDurationInMinutes !== null && { testDurationInMinutes: input.testDurationInMinutes })), (input.virtualInterfaceId !== undefined &&
4613
- input.virtualInterfaceId !== null && { virtualInterfaceId: input.virtualInterfaceId }));
4528
+ return __assign(__assign(__assign({}, (input.bgpPeers != null && { bgpPeers: serializeAws_json1_1BGPPeerIdList(input.bgpPeers, context) })), (input.testDurationInMinutes != null && { testDurationInMinutes: input.testDurationInMinutes })), (input.virtualInterfaceId != null && { virtualInterfaceId: input.virtualInterfaceId }));
4614
4529
  };
4615
4530
  var serializeAws_json1_1StopBgpFailoverTestRequest = function (input, context) {
4616
- return __assign({}, (input.virtualInterfaceId !== undefined &&
4617
- input.virtualInterfaceId !== null && { virtualInterfaceId: input.virtualInterfaceId }));
4531
+ return __assign({}, (input.virtualInterfaceId != null && { virtualInterfaceId: input.virtualInterfaceId }));
4618
4532
  };
4619
4533
  var serializeAws_json1_1Tag = function (input, context) {
4620
- return __assign(__assign({}, (input.key !== undefined && input.key !== null && { key: input.key })), (input.value !== undefined && input.value !== null && { value: input.value }));
4534
+ return __assign(__assign({}, (input.key != null && { key: input.key })), (input.value != null && { value: input.value }));
4621
4535
  };
4622
4536
  var serializeAws_json1_1TagKeyList = function (input, context) {
4623
4537
  return input
@@ -4640,44 +4554,35 @@ var serializeAws_json1_1TagList = function (input, context) {
4640
4554
  });
4641
4555
  };
4642
4556
  var serializeAws_json1_1TagResourceRequest = function (input, context) {
4643
- return __assign(__assign({}, (input.resourceArn !== undefined && input.resourceArn !== null && { resourceArn: input.resourceArn })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1TagList(input.tags, context) }));
4557
+ return __assign(__assign({}, (input.resourceArn != null && { resourceArn: input.resourceArn })), (input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) }));
4644
4558
  };
4645
4559
  var serializeAws_json1_1UntagResourceRequest = function (input, context) {
4646
- return __assign(__assign({}, (input.resourceArn !== undefined && input.resourceArn !== null && { resourceArn: input.resourceArn })), (input.tagKeys !== undefined &&
4647
- input.tagKeys !== null && { tagKeys: serializeAws_json1_1TagKeyList(input.tagKeys, context) }));
4560
+ return __assign(__assign({}, (input.resourceArn != null && { resourceArn: input.resourceArn })), (input.tagKeys != null && { tagKeys: serializeAws_json1_1TagKeyList(input.tagKeys, context) }));
4648
4561
  };
4649
4562
  var serializeAws_json1_1UpdateConnectionRequest = function (input, context) {
4650
- return __assign(__assign(__assign({}, (input.connectionId !== undefined && input.connectionId !== null && { connectionId: input.connectionId })), (input.connectionName !== undefined &&
4651
- input.connectionName !== null && { connectionName: input.connectionName })), (input.encryptionMode !== undefined &&
4652
- input.encryptionMode !== null && { encryptionMode: input.encryptionMode }));
4563
+ return __assign(__assign(__assign({}, (input.connectionId != null && { connectionId: input.connectionId })), (input.connectionName != null && { connectionName: input.connectionName })), (input.encryptionMode != null && { encryptionMode: input.encryptionMode }));
4653
4564
  };
4654
4565
  var serializeAws_json1_1UpdateDirectConnectGatewayAssociationRequest = function (input, context) {
4655
- return __assign(__assign(__assign({}, (input.addAllowedPrefixesToDirectConnectGateway !== undefined &&
4656
- input.addAllowedPrefixesToDirectConnectGateway !== null && {
4566
+ return __assign(__assign(__assign({}, (input.addAllowedPrefixesToDirectConnectGateway != null && {
4657
4567
  addAllowedPrefixesToDirectConnectGateway: serializeAws_json1_1RouteFilterPrefixList(input.addAllowedPrefixesToDirectConnectGateway, context),
4658
- })), (input.associationId !== undefined && input.associationId !== null && { associationId: input.associationId })), (input.removeAllowedPrefixesToDirectConnectGateway !== undefined &&
4659
- input.removeAllowedPrefixesToDirectConnectGateway !== null && {
4568
+ })), (input.associationId != null && { associationId: input.associationId })), (input.removeAllowedPrefixesToDirectConnectGateway != null && {
4660
4569
  removeAllowedPrefixesToDirectConnectGateway: serializeAws_json1_1RouteFilterPrefixList(input.removeAllowedPrefixesToDirectConnectGateway, context),
4661
4570
  }));
4662
4571
  };
4663
4572
  var serializeAws_json1_1UpdateDirectConnectGatewayRequest = function (input, context) {
4664
- return __assign(__assign({}, (input.directConnectGatewayId !== undefined &&
4665
- input.directConnectGatewayId !== null && { directConnectGatewayId: input.directConnectGatewayId })), (input.newDirectConnectGatewayName !== undefined &&
4666
- input.newDirectConnectGatewayName !== null && { newDirectConnectGatewayName: input.newDirectConnectGatewayName }));
4573
+ return __assign(__assign({}, (input.directConnectGatewayId != null && { directConnectGatewayId: input.directConnectGatewayId })), (input.newDirectConnectGatewayName != null && {
4574
+ newDirectConnectGatewayName: input.newDirectConnectGatewayName,
4575
+ }));
4667
4576
  };
4668
4577
  var serializeAws_json1_1UpdateLagRequest = function (input, context) {
4669
- return __assign(__assign(__assign(__assign({}, (input.encryptionMode !== undefined &&
4670
- input.encryptionMode !== null && { encryptionMode: input.encryptionMode })), (input.lagId !== undefined && input.lagId !== null && { lagId: input.lagId })), (input.lagName !== undefined && input.lagName !== null && { lagName: input.lagName })), (input.minimumLinks !== undefined && input.minimumLinks !== null && { minimumLinks: input.minimumLinks }));
4578
+ return __assign(__assign(__assign(__assign({}, (input.encryptionMode != null && { encryptionMode: input.encryptionMode })), (input.lagId != null && { lagId: input.lagId })), (input.lagName != null && { lagName: input.lagName })), (input.minimumLinks != null && { minimumLinks: input.minimumLinks }));
4671
4579
  };
4672
4580
  var serializeAws_json1_1UpdateVirtualInterfaceAttributesRequest = function (input, context) {
4673
- return __assign(__assign(__assign(__assign({}, (input.enableSiteLink !== undefined &&
4674
- input.enableSiteLink !== null && { enableSiteLink: input.enableSiteLink })), (input.mtu !== undefined && input.mtu !== null && { mtu: input.mtu })), (input.virtualInterfaceId !== undefined &&
4675
- input.virtualInterfaceId !== null && { virtualInterfaceId: input.virtualInterfaceId })), (input.virtualInterfaceName !== undefined &&
4676
- input.virtualInterfaceName !== null && { virtualInterfaceName: input.virtualInterfaceName }));
4581
+ return __assign(__assign(__assign(__assign({}, (input.enableSiteLink != null && { enableSiteLink: input.enableSiteLink })), (input.mtu != null && { mtu: input.mtu })), (input.virtualInterfaceId != null && { virtualInterfaceId: input.virtualInterfaceId })), (input.virtualInterfaceName != null && { virtualInterfaceName: input.virtualInterfaceName }));
4677
4582
  };
4678
4583
  var deserializeAws_json1_1AcceptDirectConnectGatewayAssociationProposalResult = function (output, context) {
4679
4584
  return {
4680
- directConnectGatewayAssociation: output.directConnectGatewayAssociation !== undefined && output.directConnectGatewayAssociation !== null
4585
+ directConnectGatewayAssociation: output.directConnectGatewayAssociation != null
4681
4586
  ? deserializeAws_json1_1DirectConnectGatewayAssociation(output.directConnectGatewayAssociation, context)
4682
4587
  : undefined,
4683
4588
  };
@@ -4695,7 +4600,7 @@ var deserializeAws_json1_1AgreementList = function (output, context) {
4695
4600
  };
4696
4601
  var deserializeAws_json1_1AllocateTransitVirtualInterfaceResult = function (output, context) {
4697
4602
  return {
4698
- virtualInterface: output.virtualInterface !== undefined && output.virtualInterface !== null
4603
+ virtualInterface: output.virtualInterface != null
4699
4604
  ? deserializeAws_json1_1VirtualInterface(output.virtualInterface, context)
4700
4605
  : undefined,
4701
4606
  };
@@ -4711,9 +4616,7 @@ var deserializeAws_json1_1AssociatedGateway = function (output, context) {
4711
4616
  var deserializeAws_json1_1AssociateMacSecKeyResponse = function (output, context) {
4712
4617
  return {
4713
4618
  connectionId: __expectString(output.connectionId),
4714
- macSecKeys: output.macSecKeys !== undefined && output.macSecKeys !== null
4715
- ? deserializeAws_json1_1MacSecKeyList(output.macSecKeys, context)
4716
- : undefined,
4619
+ macSecKeys: output.macSecKeys != null ? deserializeAws_json1_1MacSecKeyList(output.macSecKeys, context) : undefined,
4717
4620
  };
4718
4621
  };
4719
4622
  var deserializeAws_json1_1AvailableMacSecPortSpeeds = function (output, context) {
@@ -4812,22 +4715,18 @@ var deserializeAws_json1_1Connection = function (output, context) {
4812
4715
  hasLogicalRedundancy: __expectString(output.hasLogicalRedundancy),
4813
4716
  jumboFrameCapable: __expectBoolean(output.jumboFrameCapable),
4814
4717
  lagId: __expectString(output.lagId),
4815
- loaIssueTime: output.loaIssueTime !== undefined && output.loaIssueTime !== null
4718
+ loaIssueTime: output.loaIssueTime != null
4816
4719
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.loaIssueTime)))
4817
4720
  : undefined,
4818
4721
  location: __expectString(output.location),
4819
4722
  macSecCapable: __expectBoolean(output.macSecCapable),
4820
- macSecKeys: output.macSecKeys !== undefined && output.macSecKeys !== null
4821
- ? deserializeAws_json1_1MacSecKeyList(output.macSecKeys, context)
4822
- : undefined,
4723
+ macSecKeys: output.macSecKeys != null ? deserializeAws_json1_1MacSecKeyList(output.macSecKeys, context) : undefined,
4823
4724
  ownerAccount: __expectString(output.ownerAccount),
4824
4725
  partnerName: __expectString(output.partnerName),
4825
4726
  portEncryptionStatus: __expectString(output.portEncryptionStatus),
4826
4727
  providerName: __expectString(output.providerName),
4827
4728
  region: __expectString(output.region),
4828
- tags: output.tags !== undefined && output.tags !== null
4829
- ? deserializeAws_json1_1TagList(output.tags, context)
4830
- : undefined,
4729
+ tags: output.tags != null ? deserializeAws_json1_1TagList(output.tags, context) : undefined,
4831
4730
  vlan: __expectInt32(output.vlan),
4832
4731
  };
4833
4732
  };
@@ -4844,43 +4743,40 @@ var deserializeAws_json1_1ConnectionList = function (output, context) {
4844
4743
  };
4845
4744
  var deserializeAws_json1_1Connections = function (output, context) {
4846
4745
  return {
4847
- connections: output.connections !== undefined && output.connections !== null
4848
- ? deserializeAws_json1_1ConnectionList(output.connections, context)
4849
- : undefined,
4746
+ connections: output.connections != null ? deserializeAws_json1_1ConnectionList(output.connections, context) : undefined,
4850
4747
  };
4851
4748
  };
4852
4749
  var deserializeAws_json1_1CreateBGPPeerResponse = function (output, context) {
4853
4750
  return {
4854
- virtualInterface: output.virtualInterface !== undefined && output.virtualInterface !== null
4751
+ virtualInterface: output.virtualInterface != null
4855
4752
  ? deserializeAws_json1_1VirtualInterface(output.virtualInterface, context)
4856
4753
  : undefined,
4857
4754
  };
4858
4755
  };
4859
4756
  var deserializeAws_json1_1CreateDirectConnectGatewayAssociationProposalResult = function (output, context) {
4860
4757
  return {
4861
- directConnectGatewayAssociationProposal: output.directConnectGatewayAssociationProposal !== undefined &&
4862
- output.directConnectGatewayAssociationProposal !== null
4758
+ directConnectGatewayAssociationProposal: output.directConnectGatewayAssociationProposal != null
4863
4759
  ? deserializeAws_json1_1DirectConnectGatewayAssociationProposal(output.directConnectGatewayAssociationProposal, context)
4864
4760
  : undefined,
4865
4761
  };
4866
4762
  };
4867
4763
  var deserializeAws_json1_1CreateDirectConnectGatewayAssociationResult = function (output, context) {
4868
4764
  return {
4869
- directConnectGatewayAssociation: output.directConnectGatewayAssociation !== undefined && output.directConnectGatewayAssociation !== null
4765
+ directConnectGatewayAssociation: output.directConnectGatewayAssociation != null
4870
4766
  ? deserializeAws_json1_1DirectConnectGatewayAssociation(output.directConnectGatewayAssociation, context)
4871
4767
  : undefined,
4872
4768
  };
4873
4769
  };
4874
4770
  var deserializeAws_json1_1CreateDirectConnectGatewayResult = function (output, context) {
4875
4771
  return {
4876
- directConnectGateway: output.directConnectGateway !== undefined && output.directConnectGateway !== null
4772
+ directConnectGateway: output.directConnectGateway != null
4877
4773
  ? deserializeAws_json1_1DirectConnectGateway(output.directConnectGateway, context)
4878
4774
  : undefined,
4879
4775
  };
4880
4776
  };
4881
4777
  var deserializeAws_json1_1CreateTransitVirtualInterfaceResult = function (output, context) {
4882
4778
  return {
4883
- virtualInterface: output.virtualInterface !== undefined && output.virtualInterface !== null
4779
+ virtualInterface: output.virtualInterface != null
4884
4780
  ? deserializeAws_json1_1VirtualInterface(output.virtualInterface, context)
4885
4781
  : undefined,
4886
4782
  };
@@ -4893,29 +4789,28 @@ var deserializeAws_json1_1CustomerAgreement = function (output, context) {
4893
4789
  };
4894
4790
  var deserializeAws_json1_1DeleteBGPPeerResponse = function (output, context) {
4895
4791
  return {
4896
- virtualInterface: output.virtualInterface !== undefined && output.virtualInterface !== null
4792
+ virtualInterface: output.virtualInterface != null
4897
4793
  ? deserializeAws_json1_1VirtualInterface(output.virtualInterface, context)
4898
4794
  : undefined,
4899
4795
  };
4900
4796
  };
4901
4797
  var deserializeAws_json1_1DeleteDirectConnectGatewayAssociationProposalResult = function (output, context) {
4902
4798
  return {
4903
- directConnectGatewayAssociationProposal: output.directConnectGatewayAssociationProposal !== undefined &&
4904
- output.directConnectGatewayAssociationProposal !== null
4799
+ directConnectGatewayAssociationProposal: output.directConnectGatewayAssociationProposal != null
4905
4800
  ? deserializeAws_json1_1DirectConnectGatewayAssociationProposal(output.directConnectGatewayAssociationProposal, context)
4906
4801
  : undefined,
4907
4802
  };
4908
4803
  };
4909
4804
  var deserializeAws_json1_1DeleteDirectConnectGatewayAssociationResult = function (output, context) {
4910
4805
  return {
4911
- directConnectGatewayAssociation: output.directConnectGatewayAssociation !== undefined && output.directConnectGatewayAssociation !== null
4806
+ directConnectGatewayAssociation: output.directConnectGatewayAssociation != null
4912
4807
  ? deserializeAws_json1_1DirectConnectGatewayAssociation(output.directConnectGatewayAssociation, context)
4913
4808
  : undefined,
4914
4809
  };
4915
4810
  };
4916
4811
  var deserializeAws_json1_1DeleteDirectConnectGatewayResult = function (output, context) {
4917
4812
  return {
4918
- directConnectGateway: output.directConnectGateway !== undefined && output.directConnectGateway !== null
4813
+ directConnectGateway: output.directConnectGateway != null
4919
4814
  ? deserializeAws_json1_1DirectConnectGateway(output.directConnectGateway, context)
4920
4815
  : undefined,
4921
4816
  };
@@ -4932,21 +4827,18 @@ var deserializeAws_json1_1DeleteVirtualInterfaceResponse = function (output, con
4932
4827
  };
4933
4828
  var deserializeAws_json1_1DescribeConnectionLoaResponse = function (output, context) {
4934
4829
  return {
4935
- loa: output.loa !== undefined && output.loa !== null ? deserializeAws_json1_1Loa(output.loa, context) : undefined,
4830
+ loa: output.loa != null ? deserializeAws_json1_1Loa(output.loa, context) : undefined,
4936
4831
  };
4937
4832
  };
4938
4833
  var deserializeAws_json1_1DescribeCustomerMetadataResponse = function (output, context) {
4939
4834
  return {
4940
- agreements: output.agreements !== undefined && output.agreements !== null
4941
- ? deserializeAws_json1_1AgreementList(output.agreements, context)
4942
- : undefined,
4835
+ agreements: output.agreements != null ? deserializeAws_json1_1AgreementList(output.agreements, context) : undefined,
4943
4836
  nniPartnerType: __expectString(output.nniPartnerType),
4944
4837
  };
4945
4838
  };
4946
4839
  var deserializeAws_json1_1DescribeDirectConnectGatewayAssociationProposalsResult = function (output, context) {
4947
4840
  return {
4948
- directConnectGatewayAssociationProposals: output.directConnectGatewayAssociationProposals !== undefined &&
4949
- output.directConnectGatewayAssociationProposals !== null
4841
+ directConnectGatewayAssociationProposals: output.directConnectGatewayAssociationProposals != null
4950
4842
  ? deserializeAws_json1_1DirectConnectGatewayAssociationProposalList(output.directConnectGatewayAssociationProposals, context)
4951
4843
  : undefined,
4952
4844
  nextToken: __expectString(output.nextToken),
@@ -4954,7 +4846,7 @@ var deserializeAws_json1_1DescribeDirectConnectGatewayAssociationProposalsResult
4954
4846
  };
4955
4847
  var deserializeAws_json1_1DescribeDirectConnectGatewayAssociationsResult = function (output, context) {
4956
4848
  return {
4957
- directConnectGatewayAssociations: output.directConnectGatewayAssociations !== undefined && output.directConnectGatewayAssociations !== null
4849
+ directConnectGatewayAssociations: output.directConnectGatewayAssociations != null
4958
4850
  ? deserializeAws_json1_1DirectConnectGatewayAssociationList(output.directConnectGatewayAssociations, context)
4959
4851
  : undefined,
4960
4852
  nextToken: __expectString(output.nextToken),
@@ -4962,7 +4854,7 @@ var deserializeAws_json1_1DescribeDirectConnectGatewayAssociationsResult = funct
4962
4854
  };
4963
4855
  var deserializeAws_json1_1DescribeDirectConnectGatewayAttachmentsResult = function (output, context) {
4964
4856
  return {
4965
- directConnectGatewayAttachments: output.directConnectGatewayAttachments !== undefined && output.directConnectGatewayAttachments !== null
4857
+ directConnectGatewayAttachments: output.directConnectGatewayAttachments != null
4966
4858
  ? deserializeAws_json1_1DirectConnectGatewayAttachmentList(output.directConnectGatewayAttachments, context)
4967
4859
  : undefined,
4968
4860
  nextToken: __expectString(output.nextToken),
@@ -4970,7 +4862,7 @@ var deserializeAws_json1_1DescribeDirectConnectGatewayAttachmentsResult = functi
4970
4862
  };
4971
4863
  var deserializeAws_json1_1DescribeDirectConnectGatewaysResult = function (output, context) {
4972
4864
  return {
4973
- directConnectGateways: output.directConnectGateways !== undefined && output.directConnectGateways !== null
4865
+ directConnectGateways: output.directConnectGateways != null
4974
4866
  ? deserializeAws_json1_1DirectConnectGatewayList(output.directConnectGateways, context)
4975
4867
  : undefined,
4976
4868
  nextToken: __expectString(output.nextToken),
@@ -4978,24 +4870,20 @@ var deserializeAws_json1_1DescribeDirectConnectGatewaysResult = function (output
4978
4870
  };
4979
4871
  var deserializeAws_json1_1DescribeInterconnectLoaResponse = function (output, context) {
4980
4872
  return {
4981
- loa: output.loa !== undefined && output.loa !== null ? deserializeAws_json1_1Loa(output.loa, context) : undefined,
4873
+ loa: output.loa != null ? deserializeAws_json1_1Loa(output.loa, context) : undefined,
4982
4874
  };
4983
4875
  };
4984
4876
  var deserializeAws_json1_1DescribeRouterConfigurationResponse = function (output, context) {
4985
4877
  return {
4986
4878
  customerRouterConfig: __expectString(output.customerRouterConfig),
4987
- router: output.router !== undefined && output.router !== null
4988
- ? deserializeAws_json1_1RouterType(output.router, context)
4989
- : undefined,
4879
+ router: output.router != null ? deserializeAws_json1_1RouterType(output.router, context) : undefined,
4990
4880
  virtualInterfaceId: __expectString(output.virtualInterfaceId),
4991
4881
  virtualInterfaceName: __expectString(output.virtualInterfaceName),
4992
4882
  };
4993
4883
  };
4994
4884
  var deserializeAws_json1_1DescribeTagsResponse = function (output, context) {
4995
4885
  return {
4996
- resourceTags: output.resourceTags !== undefined && output.resourceTags !== null
4997
- ? deserializeAws_json1_1ResourceTagList(output.resourceTags, context)
4998
- : undefined,
4886
+ resourceTags: output.resourceTags != null ? deserializeAws_json1_1ResourceTagList(output.resourceTags, context) : undefined,
4999
4887
  };
5000
4888
  };
5001
4889
  var deserializeAws_json1_1DirectConnectClientException = function (output, context) {
@@ -5015,11 +4903,10 @@ var deserializeAws_json1_1DirectConnectGateway = function (output, context) {
5015
4903
  };
5016
4904
  var deserializeAws_json1_1DirectConnectGatewayAssociation = function (output, context) {
5017
4905
  return {
5018
- allowedPrefixesToDirectConnectGateway: output.allowedPrefixesToDirectConnectGateway !== undefined &&
5019
- output.allowedPrefixesToDirectConnectGateway !== null
4906
+ allowedPrefixesToDirectConnectGateway: output.allowedPrefixesToDirectConnectGateway != null
5020
4907
  ? deserializeAws_json1_1RouteFilterPrefixList(output.allowedPrefixesToDirectConnectGateway, context)
5021
4908
  : undefined,
5022
- associatedGateway: output.associatedGateway !== undefined && output.associatedGateway !== null
4909
+ associatedGateway: output.associatedGateway != null
5023
4910
  ? deserializeAws_json1_1AssociatedGateway(output.associatedGateway, context)
5024
4911
  : undefined,
5025
4912
  associationId: __expectString(output.associationId),
@@ -5045,19 +4932,17 @@ var deserializeAws_json1_1DirectConnectGatewayAssociationList = function (output
5045
4932
  };
5046
4933
  var deserializeAws_json1_1DirectConnectGatewayAssociationProposal = function (output, context) {
5047
4934
  return {
5048
- associatedGateway: output.associatedGateway !== undefined && output.associatedGateway !== null
4935
+ associatedGateway: output.associatedGateway != null
5049
4936
  ? deserializeAws_json1_1AssociatedGateway(output.associatedGateway, context)
5050
4937
  : undefined,
5051
4938
  directConnectGatewayId: __expectString(output.directConnectGatewayId),
5052
4939
  directConnectGatewayOwnerAccount: __expectString(output.directConnectGatewayOwnerAccount),
5053
- existingAllowedPrefixesToDirectConnectGateway: output.existingAllowedPrefixesToDirectConnectGateway !== undefined &&
5054
- output.existingAllowedPrefixesToDirectConnectGateway !== null
4940
+ existingAllowedPrefixesToDirectConnectGateway: output.existingAllowedPrefixesToDirectConnectGateway != null
5055
4941
  ? deserializeAws_json1_1RouteFilterPrefixList(output.existingAllowedPrefixesToDirectConnectGateway, context)
5056
4942
  : undefined,
5057
4943
  proposalId: __expectString(output.proposalId),
5058
4944
  proposalState: __expectString(output.proposalState),
5059
- requestedAllowedPrefixesToDirectConnectGateway: output.requestedAllowedPrefixesToDirectConnectGateway !== undefined &&
5060
- output.requestedAllowedPrefixesToDirectConnectGateway !== null
4945
+ requestedAllowedPrefixesToDirectConnectGateway: output.requestedAllowedPrefixesToDirectConnectGateway != null
5061
4946
  ? deserializeAws_json1_1RouteFilterPrefixList(output.requestedAllowedPrefixesToDirectConnectGateway, context)
5062
4947
  : undefined,
5063
4948
  };
@@ -5114,9 +4999,7 @@ var deserializeAws_json1_1DirectConnectServerException = function (output, conte
5114
4999
  var deserializeAws_json1_1DisassociateMacSecKeyResponse = function (output, context) {
5115
5000
  return {
5116
5001
  connectionId: __expectString(output.connectionId),
5117
- macSecKeys: output.macSecKeys !== undefined && output.macSecKeys !== null
5118
- ? deserializeAws_json1_1MacSecKeyList(output.macSecKeys, context)
5119
- : undefined,
5002
+ macSecKeys: output.macSecKeys != null ? deserializeAws_json1_1MacSecKeyList(output.macSecKeys, context) : undefined,
5120
5003
  };
5121
5004
  };
5122
5005
  var deserializeAws_json1_1DuplicateTagKeysException = function (output, context) {
@@ -5136,15 +5019,13 @@ var deserializeAws_json1_1Interconnect = function (output, context) {
5136
5019
  interconnectState: __expectString(output.interconnectState),
5137
5020
  jumboFrameCapable: __expectBoolean(output.jumboFrameCapable),
5138
5021
  lagId: __expectString(output.lagId),
5139
- loaIssueTime: output.loaIssueTime !== undefined && output.loaIssueTime !== null
5022
+ loaIssueTime: output.loaIssueTime != null
5140
5023
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.loaIssueTime)))
5141
5024
  : undefined,
5142
5025
  location: __expectString(output.location),
5143
5026
  providerName: __expectString(output.providerName),
5144
5027
  region: __expectString(output.region),
5145
- tags: output.tags !== undefined && output.tags !== null
5146
- ? deserializeAws_json1_1TagList(output.tags, context)
5147
- : undefined,
5028
+ tags: output.tags != null ? deserializeAws_json1_1TagList(output.tags, context) : undefined,
5148
5029
  };
5149
5030
  };
5150
5031
  var deserializeAws_json1_1InterconnectList = function (output, context) {
@@ -5160,9 +5041,7 @@ var deserializeAws_json1_1InterconnectList = function (output, context) {
5160
5041
  };
5161
5042
  var deserializeAws_json1_1Interconnects = function (output, context) {
5162
5043
  return {
5163
- interconnects: output.interconnects !== undefined && output.interconnects !== null
5164
- ? deserializeAws_json1_1InterconnectList(output.interconnects, context)
5165
- : undefined,
5044
+ interconnects: output.interconnects != null ? deserializeAws_json1_1InterconnectList(output.interconnects, context) : undefined,
5166
5045
  };
5167
5046
  };
5168
5047
  var deserializeAws_json1_1Lag = function (output, context) {
@@ -5171,9 +5050,7 @@ var deserializeAws_json1_1Lag = function (output, context) {
5171
5050
  awsDevice: __expectString(output.awsDevice),
5172
5051
  awsDeviceV2: __expectString(output.awsDeviceV2),
5173
5052
  awsLogicalDeviceId: __expectString(output.awsLogicalDeviceId),
5174
- connections: output.connections !== undefined && output.connections !== null
5175
- ? deserializeAws_json1_1ConnectionList(output.connections, context)
5176
- : undefined,
5053
+ connections: output.connections != null ? deserializeAws_json1_1ConnectionList(output.connections, context) : undefined,
5177
5054
  connectionsBandwidth: __expectString(output.connectionsBandwidth),
5178
5055
  encryptionMode: __expectString(output.encryptionMode),
5179
5056
  hasLogicalRedundancy: __expectString(output.hasLogicalRedundancy),
@@ -5183,17 +5060,13 @@ var deserializeAws_json1_1Lag = function (output, context) {
5183
5060
  lagState: __expectString(output.lagState),
5184
5061
  location: __expectString(output.location),
5185
5062
  macSecCapable: __expectBoolean(output.macSecCapable),
5186
- macSecKeys: output.macSecKeys !== undefined && output.macSecKeys !== null
5187
- ? deserializeAws_json1_1MacSecKeyList(output.macSecKeys, context)
5188
- : undefined,
5063
+ macSecKeys: output.macSecKeys != null ? deserializeAws_json1_1MacSecKeyList(output.macSecKeys, context) : undefined,
5189
5064
  minimumLinks: __expectInt32(output.minimumLinks),
5190
5065
  numberOfConnections: __expectInt32(output.numberOfConnections),
5191
5066
  ownerAccount: __expectString(output.ownerAccount),
5192
5067
  providerName: __expectString(output.providerName),
5193
5068
  region: __expectString(output.region),
5194
- tags: output.tags !== undefined && output.tags !== null
5195
- ? deserializeAws_json1_1TagList(output.tags, context)
5196
- : undefined,
5069
+ tags: output.tags != null ? deserializeAws_json1_1TagList(output.tags, context) : undefined,
5197
5070
  };
5198
5071
  };
5199
5072
  var deserializeAws_json1_1LagList = function (output, context) {
@@ -5209,36 +5082,32 @@ var deserializeAws_json1_1LagList = function (output, context) {
5209
5082
  };
5210
5083
  var deserializeAws_json1_1Lags = function (output, context) {
5211
5084
  return {
5212
- lags: output.lags !== undefined && output.lags !== null
5213
- ? deserializeAws_json1_1LagList(output.lags, context)
5214
- : undefined,
5085
+ lags: output.lags != null ? deserializeAws_json1_1LagList(output.lags, context) : undefined,
5215
5086
  };
5216
5087
  };
5217
5088
  var deserializeAws_json1_1ListVirtualInterfaceTestHistoryResponse = function (output, context) {
5218
5089
  return {
5219
5090
  nextToken: __expectString(output.nextToken),
5220
- virtualInterfaceTestHistory: output.virtualInterfaceTestHistory !== undefined && output.virtualInterfaceTestHistory !== null
5091
+ virtualInterfaceTestHistory: output.virtualInterfaceTestHistory != null
5221
5092
  ? deserializeAws_json1_1VirtualInterfaceTestHistoryList(output.virtualInterfaceTestHistory, context)
5222
5093
  : undefined,
5223
5094
  };
5224
5095
  };
5225
5096
  var deserializeAws_json1_1Loa = function (output, context) {
5226
5097
  return {
5227
- loaContent: output.loaContent !== undefined && output.loaContent !== null
5228
- ? context.base64Decoder(output.loaContent)
5229
- : undefined,
5098
+ loaContent: output.loaContent != null ? context.base64Decoder(output.loaContent) : undefined,
5230
5099
  loaContentType: __expectString(output.loaContentType),
5231
5100
  };
5232
5101
  };
5233
5102
  var deserializeAws_json1_1Location = function (output, context) {
5234
5103
  return {
5235
- availableMacSecPortSpeeds: output.availableMacSecPortSpeeds !== undefined && output.availableMacSecPortSpeeds !== null
5104
+ availableMacSecPortSpeeds: output.availableMacSecPortSpeeds != null
5236
5105
  ? deserializeAws_json1_1AvailableMacSecPortSpeeds(output.availableMacSecPortSpeeds, context)
5237
5106
  : undefined,
5238
- availablePortSpeeds: output.availablePortSpeeds !== undefined && output.availablePortSpeeds !== null
5107
+ availablePortSpeeds: output.availablePortSpeeds != null
5239
5108
  ? deserializeAws_json1_1AvailablePortSpeeds(output.availablePortSpeeds, context)
5240
5109
  : undefined,
5241
- availableProviders: output.availableProviders !== undefined && output.availableProviders !== null
5110
+ availableProviders: output.availableProviders != null
5242
5111
  ? deserializeAws_json1_1ProviderList(output.availableProviders, context)
5243
5112
  : undefined,
5244
5113
  locationCode: __expectString(output.locationCode),
@@ -5259,9 +5128,7 @@ var deserializeAws_json1_1LocationList = function (output, context) {
5259
5128
  };
5260
5129
  var deserializeAws_json1_1Locations = function (output, context) {
5261
5130
  return {
5262
- locations: output.locations !== undefined && output.locations !== null
5263
- ? deserializeAws_json1_1LocationList(output.locations, context)
5264
- : undefined,
5131
+ locations: output.locations != null ? deserializeAws_json1_1LocationList(output.locations, context) : undefined,
5265
5132
  };
5266
5133
  };
5267
5134
  var deserializeAws_json1_1MacSecKey = function (output, context) {
@@ -5297,9 +5164,7 @@ var deserializeAws_json1_1ProviderList = function (output, context) {
5297
5164
  var deserializeAws_json1_1ResourceTag = function (output, context) {
5298
5165
  return {
5299
5166
  resourceArn: __expectString(output.resourceArn),
5300
- tags: output.tags !== undefined && output.tags !== null
5301
- ? deserializeAws_json1_1TagList(output.tags, context)
5302
- : undefined,
5167
+ tags: output.tags != null ? deserializeAws_json1_1TagList(output.tags, context) : undefined,
5303
5168
  };
5304
5169
  };
5305
5170
  var deserializeAws_json1_1ResourceTagList = function (output, context) {
@@ -5341,14 +5206,14 @@ var deserializeAws_json1_1RouterType = function (output, context) {
5341
5206
  };
5342
5207
  var deserializeAws_json1_1StartBgpFailoverTestResponse = function (output, context) {
5343
5208
  return {
5344
- virtualInterfaceTest: output.virtualInterfaceTest !== undefined && output.virtualInterfaceTest !== null
5209
+ virtualInterfaceTest: output.virtualInterfaceTest != null
5345
5210
  ? deserializeAws_json1_1VirtualInterfaceTestHistory(output.virtualInterfaceTest, context)
5346
5211
  : undefined,
5347
5212
  };
5348
5213
  };
5349
5214
  var deserializeAws_json1_1StopBgpFailoverTestResponse = function (output, context) {
5350
5215
  return {
5351
- virtualInterfaceTest: output.virtualInterfaceTest !== undefined && output.virtualInterfaceTest !== null
5216
+ virtualInterfaceTest: output.virtualInterfaceTest != null
5352
5217
  ? deserializeAws_json1_1VirtualInterfaceTestHistory(output.virtualInterfaceTest, context)
5353
5218
  : undefined,
5354
5219
  };
@@ -5383,14 +5248,14 @@ var deserializeAws_json1_1UntagResourceResponse = function (output, context) {
5383
5248
  };
5384
5249
  var deserializeAws_json1_1UpdateDirectConnectGatewayAssociationResult = function (output, context) {
5385
5250
  return {
5386
- directConnectGatewayAssociation: output.directConnectGatewayAssociation !== undefined && output.directConnectGatewayAssociation !== null
5251
+ directConnectGatewayAssociation: output.directConnectGatewayAssociation != null
5387
5252
  ? deserializeAws_json1_1DirectConnectGatewayAssociation(output.directConnectGatewayAssociation, context)
5388
5253
  : undefined,
5389
5254
  };
5390
5255
  };
5391
5256
  var deserializeAws_json1_1UpdateDirectConnectGatewayResponse = function (output, context) {
5392
5257
  return {
5393
- directConnectGateway: output.directConnectGateway !== undefined && output.directConnectGateway !== null
5258
+ directConnectGateway: output.directConnectGateway != null
5394
5259
  ? deserializeAws_json1_1DirectConnectGateway(output.directConnectGateway, context)
5395
5260
  : undefined,
5396
5261
  };
@@ -5414,7 +5279,7 @@ var deserializeAws_json1_1VirtualGatewayList = function (output, context) {
5414
5279
  };
5415
5280
  var deserializeAws_json1_1VirtualGateways = function (output, context) {
5416
5281
  return {
5417
- virtualGateways: output.virtualGateways !== undefined && output.virtualGateways !== null
5282
+ virtualGateways: output.virtualGateways != null
5418
5283
  ? deserializeAws_json1_1VirtualGatewayList(output.virtualGateways, context)
5419
5284
  : undefined,
5420
5285
  };
@@ -5428,9 +5293,7 @@ var deserializeAws_json1_1VirtualInterface = function (output, context) {
5428
5293
  authKey: __expectString(output.authKey),
5429
5294
  awsDeviceV2: __expectString(output.awsDeviceV2),
5430
5295
  awsLogicalDeviceId: __expectString(output.awsLogicalDeviceId),
5431
- bgpPeers: output.bgpPeers !== undefined && output.bgpPeers !== null
5432
- ? deserializeAws_json1_1BGPPeerList(output.bgpPeers, context)
5433
- : undefined,
5296
+ bgpPeers: output.bgpPeers != null ? deserializeAws_json1_1BGPPeerList(output.bgpPeers, context) : undefined,
5434
5297
  connectionId: __expectString(output.connectionId),
5435
5298
  customerAddress: __expectString(output.customerAddress),
5436
5299
  customerRouterConfig: __expectString(output.customerRouterConfig),
@@ -5440,13 +5303,11 @@ var deserializeAws_json1_1VirtualInterface = function (output, context) {
5440
5303
  mtu: __expectInt32(output.mtu),
5441
5304
  ownerAccount: __expectString(output.ownerAccount),
5442
5305
  region: __expectString(output.region),
5443
- routeFilterPrefixes: output.routeFilterPrefixes !== undefined && output.routeFilterPrefixes !== null
5306
+ routeFilterPrefixes: output.routeFilterPrefixes != null
5444
5307
  ? deserializeAws_json1_1RouteFilterPrefixList(output.routeFilterPrefixes, context)
5445
5308
  : undefined,
5446
5309
  siteLinkEnabled: __expectBoolean(output.siteLinkEnabled),
5447
- tags: output.tags !== undefined && output.tags !== null
5448
- ? deserializeAws_json1_1TagList(output.tags, context)
5449
- : undefined,
5310
+ tags: output.tags != null ? deserializeAws_json1_1TagList(output.tags, context) : undefined,
5450
5311
  virtualGatewayId: __expectString(output.virtualGatewayId),
5451
5312
  virtualInterfaceId: __expectString(output.virtualInterfaceId),
5452
5313
  virtualInterfaceName: __expectString(output.virtualInterfaceName),
@@ -5468,23 +5329,17 @@ var deserializeAws_json1_1VirtualInterfaceList = function (output, context) {
5468
5329
  };
5469
5330
  var deserializeAws_json1_1VirtualInterfaces = function (output, context) {
5470
5331
  return {
5471
- virtualInterfaces: output.virtualInterfaces !== undefined && output.virtualInterfaces !== null
5332
+ virtualInterfaces: output.virtualInterfaces != null
5472
5333
  ? deserializeAws_json1_1VirtualInterfaceList(output.virtualInterfaces, context)
5473
5334
  : undefined,
5474
5335
  };
5475
5336
  };
5476
5337
  var deserializeAws_json1_1VirtualInterfaceTestHistory = function (output, context) {
5477
5338
  return {
5478
- bgpPeers: output.bgpPeers !== undefined && output.bgpPeers !== null
5479
- ? deserializeAws_json1_1BGPPeerIdList(output.bgpPeers, context)
5480
- : undefined,
5481
- endTime: output.endTime !== undefined && output.endTime !== null
5482
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.endTime)))
5483
- : undefined,
5339
+ bgpPeers: output.bgpPeers != null ? deserializeAws_json1_1BGPPeerIdList(output.bgpPeers, context) : undefined,
5340
+ endTime: output.endTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.endTime))) : undefined,
5484
5341
  ownerAccount: __expectString(output.ownerAccount),
5485
- startTime: output.startTime !== undefined && output.startTime !== null
5486
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startTime)))
5487
- : undefined,
5342
+ startTime: output.startTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startTime))) : undefined,
5488
5343
  status: __expectString(output.status),
5489
5344
  testDurationInMinutes: __expectInt32(output.testDurationInMinutes),
5490
5345
  testId: __expectString(output.testId),