@aws-sdk/client-directory-service 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.
@@ -4267,41 +4267,37 @@ const deserializeAws_json1_1UserDoesNotExistExceptionResponse = async (parsedOut
4267
4267
  };
4268
4268
  const serializeAws_json1_1AcceptSharedDirectoryRequest = (input, context) => {
4269
4269
  return {
4270
- ...(input.SharedDirectoryId !== undefined &&
4271
- input.SharedDirectoryId !== null && { SharedDirectoryId: input.SharedDirectoryId }),
4270
+ ...(input.SharedDirectoryId != null && { SharedDirectoryId: input.SharedDirectoryId }),
4272
4271
  };
4273
4272
  };
4274
4273
  const serializeAws_json1_1AddIpRoutesRequest = (input, context) => {
4275
4274
  return {
4276
- ...(input.DirectoryId !== undefined && input.DirectoryId !== null && { DirectoryId: input.DirectoryId }),
4277
- ...(input.IpRoutes !== undefined &&
4278
- input.IpRoutes !== null && { IpRoutes: serializeAws_json1_1IpRoutes(input.IpRoutes, context) }),
4279
- ...(input.UpdateSecurityGroupForDirectoryControllers !== undefined &&
4280
- input.UpdateSecurityGroupForDirectoryControllers !== null && {
4275
+ ...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
4276
+ ...(input.IpRoutes != null && { IpRoutes: serializeAws_json1_1IpRoutes(input.IpRoutes, context) }),
4277
+ ...(input.UpdateSecurityGroupForDirectoryControllers != null && {
4281
4278
  UpdateSecurityGroupForDirectoryControllers: input.UpdateSecurityGroupForDirectoryControllers,
4282
4279
  }),
4283
4280
  };
4284
4281
  };
4285
4282
  const serializeAws_json1_1AddRegionRequest = (input, context) => {
4286
4283
  return {
4287
- ...(input.DirectoryId !== undefined && input.DirectoryId !== null && { DirectoryId: input.DirectoryId }),
4288
- ...(input.RegionName !== undefined && input.RegionName !== null && { RegionName: input.RegionName }),
4289
- ...(input.VPCSettings !== undefined &&
4290
- input.VPCSettings !== null && {
4284
+ ...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
4285
+ ...(input.RegionName != null && { RegionName: input.RegionName }),
4286
+ ...(input.VPCSettings != null && {
4291
4287
  VPCSettings: serializeAws_json1_1DirectoryVpcSettings(input.VPCSettings, context),
4292
4288
  }),
4293
4289
  };
4294
4290
  };
4295
4291
  const serializeAws_json1_1AddTagsToResourceRequest = (input, context) => {
4296
4292
  return {
4297
- ...(input.ResourceId !== undefined && input.ResourceId !== null && { ResourceId: input.ResourceId }),
4298
- ...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1Tags(input.Tags, context) }),
4293
+ ...(input.ResourceId != null && { ResourceId: input.ResourceId }),
4294
+ ...(input.Tags != null && { Tags: serializeAws_json1_1Tags(input.Tags, context) }),
4299
4295
  };
4300
4296
  };
4301
4297
  const serializeAws_json1_1Attribute = (input, context) => {
4302
4298
  return {
4303
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
4304
- ...(input.Value !== undefined && input.Value !== null && { Value: input.Value }),
4299
+ ...(input.Name != null && { Name: input.Name }),
4300
+ ...(input.Value != null && { Value: input.Value }),
4305
4301
  };
4306
4302
  };
4307
4303
  const serializeAws_json1_1Attributes = (input, context) => {
@@ -4316,9 +4312,8 @@ const serializeAws_json1_1Attributes = (input, context) => {
4316
4312
  };
4317
4313
  const serializeAws_json1_1CancelSchemaExtensionRequest = (input, context) => {
4318
4314
  return {
4319
- ...(input.DirectoryId !== undefined && input.DirectoryId !== null && { DirectoryId: input.DirectoryId }),
4320
- ...(input.SchemaExtensionId !== undefined &&
4321
- input.SchemaExtensionId !== null && { SchemaExtensionId: input.SchemaExtensionId }),
4315
+ ...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
4316
+ ...(input.SchemaExtensionId != null && { SchemaExtensionId: input.SchemaExtensionId }),
4322
4317
  };
4323
4318
  };
4324
4319
  const serializeAws_json1_1CidrIps = (input, context) => {
@@ -4333,264 +4328,241 @@ const serializeAws_json1_1CidrIps = (input, context) => {
4333
4328
  };
4334
4329
  const serializeAws_json1_1ClientCertAuthSettings = (input, context) => {
4335
4330
  return {
4336
- ...(input.OCSPUrl !== undefined && input.OCSPUrl !== null && { OCSPUrl: input.OCSPUrl }),
4331
+ ...(input.OCSPUrl != null && { OCSPUrl: input.OCSPUrl }),
4337
4332
  };
4338
4333
  };
4339
4334
  const serializeAws_json1_1ConnectDirectoryRequest = (input, context) => {
4340
4335
  return {
4341
- ...(input.ConnectSettings !== undefined &&
4342
- input.ConnectSettings !== null && {
4336
+ ...(input.ConnectSettings != null && {
4343
4337
  ConnectSettings: serializeAws_json1_1DirectoryConnectSettings(input.ConnectSettings, context),
4344
4338
  }),
4345
- ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
4346
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
4347
- ...(input.Password !== undefined && input.Password !== null && { Password: input.Password }),
4348
- ...(input.ShortName !== undefined && input.ShortName !== null && { ShortName: input.ShortName }),
4349
- ...(input.Size !== undefined && input.Size !== null && { Size: input.Size }),
4350
- ...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1Tags(input.Tags, context) }),
4339
+ ...(input.Description != null && { Description: input.Description }),
4340
+ ...(input.Name != null && { Name: input.Name }),
4341
+ ...(input.Password != null && { Password: input.Password }),
4342
+ ...(input.ShortName != null && { ShortName: input.ShortName }),
4343
+ ...(input.Size != null && { Size: input.Size }),
4344
+ ...(input.Tags != null && { Tags: serializeAws_json1_1Tags(input.Tags, context) }),
4351
4345
  };
4352
4346
  };
4353
4347
  const serializeAws_json1_1CreateAliasRequest = (input, context) => {
4354
4348
  return {
4355
- ...(input.Alias !== undefined && input.Alias !== null && { Alias: input.Alias }),
4356
- ...(input.DirectoryId !== undefined && input.DirectoryId !== null && { DirectoryId: input.DirectoryId }),
4349
+ ...(input.Alias != null && { Alias: input.Alias }),
4350
+ ...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
4357
4351
  };
4358
4352
  };
4359
4353
  const serializeAws_json1_1CreateComputerRequest = (input, context) => {
4360
4354
  return {
4361
- ...(input.ComputerAttributes !== undefined &&
4362
- input.ComputerAttributes !== null && {
4355
+ ...(input.ComputerAttributes != null && {
4363
4356
  ComputerAttributes: serializeAws_json1_1Attributes(input.ComputerAttributes, context),
4364
4357
  }),
4365
- ...(input.ComputerName !== undefined && input.ComputerName !== null && { ComputerName: input.ComputerName }),
4366
- ...(input.DirectoryId !== undefined && input.DirectoryId !== null && { DirectoryId: input.DirectoryId }),
4367
- ...(input.OrganizationalUnitDistinguishedName !== undefined &&
4368
- input.OrganizationalUnitDistinguishedName !== null && {
4358
+ ...(input.ComputerName != null && { ComputerName: input.ComputerName }),
4359
+ ...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
4360
+ ...(input.OrganizationalUnitDistinguishedName != null && {
4369
4361
  OrganizationalUnitDistinguishedName: input.OrganizationalUnitDistinguishedName,
4370
4362
  }),
4371
- ...(input.Password !== undefined && input.Password !== null && { Password: input.Password }),
4363
+ ...(input.Password != null && { Password: input.Password }),
4372
4364
  };
4373
4365
  };
4374
4366
  const serializeAws_json1_1CreateConditionalForwarderRequest = (input, context) => {
4375
4367
  return {
4376
- ...(input.DirectoryId !== undefined && input.DirectoryId !== null && { DirectoryId: input.DirectoryId }),
4377
- ...(input.DnsIpAddrs !== undefined &&
4378
- input.DnsIpAddrs !== null && { DnsIpAddrs: serializeAws_json1_1DnsIpAddrs(input.DnsIpAddrs, context) }),
4379
- ...(input.RemoteDomainName !== undefined &&
4380
- input.RemoteDomainName !== null && { RemoteDomainName: input.RemoteDomainName }),
4368
+ ...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
4369
+ ...(input.DnsIpAddrs != null && { DnsIpAddrs: serializeAws_json1_1DnsIpAddrs(input.DnsIpAddrs, context) }),
4370
+ ...(input.RemoteDomainName != null && { RemoteDomainName: input.RemoteDomainName }),
4381
4371
  };
4382
4372
  };
4383
4373
  const serializeAws_json1_1CreateDirectoryRequest = (input, context) => {
4384
4374
  return {
4385
- ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
4386
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
4387
- ...(input.Password !== undefined && input.Password !== null && { Password: input.Password }),
4388
- ...(input.ShortName !== undefined && input.ShortName !== null && { ShortName: input.ShortName }),
4389
- ...(input.Size !== undefined && input.Size !== null && { Size: input.Size }),
4390
- ...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1Tags(input.Tags, context) }),
4391
- ...(input.VpcSettings !== undefined &&
4392
- input.VpcSettings !== null && {
4375
+ ...(input.Description != null && { Description: input.Description }),
4376
+ ...(input.Name != null && { Name: input.Name }),
4377
+ ...(input.Password != null && { Password: input.Password }),
4378
+ ...(input.ShortName != null && { ShortName: input.ShortName }),
4379
+ ...(input.Size != null && { Size: input.Size }),
4380
+ ...(input.Tags != null && { Tags: serializeAws_json1_1Tags(input.Tags, context) }),
4381
+ ...(input.VpcSettings != null && {
4393
4382
  VpcSettings: serializeAws_json1_1DirectoryVpcSettings(input.VpcSettings, context),
4394
4383
  }),
4395
4384
  };
4396
4385
  };
4397
4386
  const serializeAws_json1_1CreateLogSubscriptionRequest = (input, context) => {
4398
4387
  return {
4399
- ...(input.DirectoryId !== undefined && input.DirectoryId !== null && { DirectoryId: input.DirectoryId }),
4400
- ...(input.LogGroupName !== undefined && input.LogGroupName !== null && { LogGroupName: input.LogGroupName }),
4388
+ ...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
4389
+ ...(input.LogGroupName != null && { LogGroupName: input.LogGroupName }),
4401
4390
  };
4402
4391
  };
4403
4392
  const serializeAws_json1_1CreateMicrosoftADRequest = (input, context) => {
4404
4393
  return {
4405
- ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
4406
- ...(input.Edition !== undefined && input.Edition !== null && { Edition: input.Edition }),
4407
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
4408
- ...(input.Password !== undefined && input.Password !== null && { Password: input.Password }),
4409
- ...(input.ShortName !== undefined && input.ShortName !== null && { ShortName: input.ShortName }),
4410
- ...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1Tags(input.Tags, context) }),
4411
- ...(input.VpcSettings !== undefined &&
4412
- input.VpcSettings !== null && {
4394
+ ...(input.Description != null && { Description: input.Description }),
4395
+ ...(input.Edition != null && { Edition: input.Edition }),
4396
+ ...(input.Name != null && { Name: input.Name }),
4397
+ ...(input.Password != null && { Password: input.Password }),
4398
+ ...(input.ShortName != null && { ShortName: input.ShortName }),
4399
+ ...(input.Tags != null && { Tags: serializeAws_json1_1Tags(input.Tags, context) }),
4400
+ ...(input.VpcSettings != null && {
4413
4401
  VpcSettings: serializeAws_json1_1DirectoryVpcSettings(input.VpcSettings, context),
4414
4402
  }),
4415
4403
  };
4416
4404
  };
4417
4405
  const serializeAws_json1_1CreateSnapshotRequest = (input, context) => {
4418
4406
  return {
4419
- ...(input.DirectoryId !== undefined && input.DirectoryId !== null && { DirectoryId: input.DirectoryId }),
4420
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
4407
+ ...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
4408
+ ...(input.Name != null && { Name: input.Name }),
4421
4409
  };
4422
4410
  };
4423
4411
  const serializeAws_json1_1CreateTrustRequest = (input, context) => {
4424
4412
  return {
4425
- ...(input.ConditionalForwarderIpAddrs !== undefined &&
4426
- input.ConditionalForwarderIpAddrs !== null && {
4413
+ ...(input.ConditionalForwarderIpAddrs != null && {
4427
4414
  ConditionalForwarderIpAddrs: serializeAws_json1_1DnsIpAddrs(input.ConditionalForwarderIpAddrs, context),
4428
4415
  }),
4429
- ...(input.DirectoryId !== undefined && input.DirectoryId !== null && { DirectoryId: input.DirectoryId }),
4430
- ...(input.RemoteDomainName !== undefined &&
4431
- input.RemoteDomainName !== null && { RemoteDomainName: input.RemoteDomainName }),
4432
- ...(input.SelectiveAuth !== undefined && input.SelectiveAuth !== null && { SelectiveAuth: input.SelectiveAuth }),
4433
- ...(input.TrustDirection !== undefined &&
4434
- input.TrustDirection !== null && { TrustDirection: input.TrustDirection }),
4435
- ...(input.TrustPassword !== undefined && input.TrustPassword !== null && { TrustPassword: input.TrustPassword }),
4436
- ...(input.TrustType !== undefined && input.TrustType !== null && { TrustType: input.TrustType }),
4416
+ ...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
4417
+ ...(input.RemoteDomainName != null && { RemoteDomainName: input.RemoteDomainName }),
4418
+ ...(input.SelectiveAuth != null && { SelectiveAuth: input.SelectiveAuth }),
4419
+ ...(input.TrustDirection != null && { TrustDirection: input.TrustDirection }),
4420
+ ...(input.TrustPassword != null && { TrustPassword: input.TrustPassword }),
4421
+ ...(input.TrustType != null && { TrustType: input.TrustType }),
4437
4422
  };
4438
4423
  };
4439
4424
  const serializeAws_json1_1DeleteConditionalForwarderRequest = (input, context) => {
4440
4425
  return {
4441
- ...(input.DirectoryId !== undefined && input.DirectoryId !== null && { DirectoryId: input.DirectoryId }),
4442
- ...(input.RemoteDomainName !== undefined &&
4443
- input.RemoteDomainName !== null && { RemoteDomainName: input.RemoteDomainName }),
4426
+ ...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
4427
+ ...(input.RemoteDomainName != null && { RemoteDomainName: input.RemoteDomainName }),
4444
4428
  };
4445
4429
  };
4446
4430
  const serializeAws_json1_1DeleteDirectoryRequest = (input, context) => {
4447
4431
  return {
4448
- ...(input.DirectoryId !== undefined && input.DirectoryId !== null && { DirectoryId: input.DirectoryId }),
4432
+ ...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
4449
4433
  };
4450
4434
  };
4451
4435
  const serializeAws_json1_1DeleteLogSubscriptionRequest = (input, context) => {
4452
4436
  return {
4453
- ...(input.DirectoryId !== undefined && input.DirectoryId !== null && { DirectoryId: input.DirectoryId }),
4437
+ ...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
4454
4438
  };
4455
4439
  };
4456
4440
  const serializeAws_json1_1DeleteSnapshotRequest = (input, context) => {
4457
4441
  return {
4458
- ...(input.SnapshotId !== undefined && input.SnapshotId !== null && { SnapshotId: input.SnapshotId }),
4442
+ ...(input.SnapshotId != null && { SnapshotId: input.SnapshotId }),
4459
4443
  };
4460
4444
  };
4461
4445
  const serializeAws_json1_1DeleteTrustRequest = (input, context) => {
4462
4446
  return {
4463
- ...(input.DeleteAssociatedConditionalForwarder !== undefined &&
4464
- input.DeleteAssociatedConditionalForwarder !== null && {
4447
+ ...(input.DeleteAssociatedConditionalForwarder != null && {
4465
4448
  DeleteAssociatedConditionalForwarder: input.DeleteAssociatedConditionalForwarder,
4466
4449
  }),
4467
- ...(input.TrustId !== undefined && input.TrustId !== null && { TrustId: input.TrustId }),
4450
+ ...(input.TrustId != null && { TrustId: input.TrustId }),
4468
4451
  };
4469
4452
  };
4470
4453
  const serializeAws_json1_1DeregisterCertificateRequest = (input, context) => {
4471
4454
  return {
4472
- ...(input.CertificateId !== undefined && input.CertificateId !== null && { CertificateId: input.CertificateId }),
4473
- ...(input.DirectoryId !== undefined && input.DirectoryId !== null && { DirectoryId: input.DirectoryId }),
4455
+ ...(input.CertificateId != null && { CertificateId: input.CertificateId }),
4456
+ ...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
4474
4457
  };
4475
4458
  };
4476
4459
  const serializeAws_json1_1DeregisterEventTopicRequest = (input, context) => {
4477
4460
  return {
4478
- ...(input.DirectoryId !== undefined && input.DirectoryId !== null && { DirectoryId: input.DirectoryId }),
4479
- ...(input.TopicName !== undefined && input.TopicName !== null && { TopicName: input.TopicName }),
4461
+ ...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
4462
+ ...(input.TopicName != null && { TopicName: input.TopicName }),
4480
4463
  };
4481
4464
  };
4482
4465
  const serializeAws_json1_1DescribeCertificateRequest = (input, context) => {
4483
4466
  return {
4484
- ...(input.CertificateId !== undefined && input.CertificateId !== null && { CertificateId: input.CertificateId }),
4485
- ...(input.DirectoryId !== undefined && input.DirectoryId !== null && { DirectoryId: input.DirectoryId }),
4467
+ ...(input.CertificateId != null && { CertificateId: input.CertificateId }),
4468
+ ...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
4486
4469
  };
4487
4470
  };
4488
4471
  const serializeAws_json1_1DescribeClientAuthenticationSettingsRequest = (input, context) => {
4489
4472
  return {
4490
- ...(input.DirectoryId !== undefined && input.DirectoryId !== null && { DirectoryId: input.DirectoryId }),
4491
- ...(input.Limit !== undefined && input.Limit !== null && { Limit: input.Limit }),
4492
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
4493
- ...(input.Type !== undefined && input.Type !== null && { Type: input.Type }),
4473
+ ...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
4474
+ ...(input.Limit != null && { Limit: input.Limit }),
4475
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
4476
+ ...(input.Type != null && { Type: input.Type }),
4494
4477
  };
4495
4478
  };
4496
4479
  const serializeAws_json1_1DescribeConditionalForwardersRequest = (input, context) => {
4497
4480
  return {
4498
- ...(input.DirectoryId !== undefined && input.DirectoryId !== null && { DirectoryId: input.DirectoryId }),
4499
- ...(input.RemoteDomainNames !== undefined &&
4500
- input.RemoteDomainNames !== null && {
4481
+ ...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
4482
+ ...(input.RemoteDomainNames != null && {
4501
4483
  RemoteDomainNames: serializeAws_json1_1RemoteDomainNames(input.RemoteDomainNames, context),
4502
4484
  }),
4503
4485
  };
4504
4486
  };
4505
4487
  const serializeAws_json1_1DescribeDirectoriesRequest = (input, context) => {
4506
4488
  return {
4507
- ...(input.DirectoryIds !== undefined &&
4508
- input.DirectoryIds !== null && { DirectoryIds: serializeAws_json1_1DirectoryIds(input.DirectoryIds, context) }),
4509
- ...(input.Limit !== undefined && input.Limit !== null && { Limit: input.Limit }),
4510
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
4489
+ ...(input.DirectoryIds != null && { DirectoryIds: serializeAws_json1_1DirectoryIds(input.DirectoryIds, context) }),
4490
+ ...(input.Limit != null && { Limit: input.Limit }),
4491
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
4511
4492
  };
4512
4493
  };
4513
4494
  const serializeAws_json1_1DescribeDomainControllersRequest = (input, context) => {
4514
4495
  return {
4515
- ...(input.DirectoryId !== undefined && input.DirectoryId !== null && { DirectoryId: input.DirectoryId }),
4516
- ...(input.DomainControllerIds !== undefined &&
4517
- input.DomainControllerIds !== null && {
4496
+ ...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
4497
+ ...(input.DomainControllerIds != null && {
4518
4498
  DomainControllerIds: serializeAws_json1_1DomainControllerIds(input.DomainControllerIds, context),
4519
4499
  }),
4520
- ...(input.Limit !== undefined && input.Limit !== null && { Limit: input.Limit }),
4521
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
4500
+ ...(input.Limit != null && { Limit: input.Limit }),
4501
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
4522
4502
  };
4523
4503
  };
4524
4504
  const serializeAws_json1_1DescribeEventTopicsRequest = (input, context) => {
4525
4505
  return {
4526
- ...(input.DirectoryId !== undefined && input.DirectoryId !== null && { DirectoryId: input.DirectoryId }),
4527
- ...(input.TopicNames !== undefined &&
4528
- input.TopicNames !== null && { TopicNames: serializeAws_json1_1TopicNames(input.TopicNames, context) }),
4506
+ ...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
4507
+ ...(input.TopicNames != null && { TopicNames: serializeAws_json1_1TopicNames(input.TopicNames, context) }),
4529
4508
  };
4530
4509
  };
4531
4510
  const serializeAws_json1_1DescribeLDAPSSettingsRequest = (input, context) => {
4532
4511
  return {
4533
- ...(input.DirectoryId !== undefined && input.DirectoryId !== null && { DirectoryId: input.DirectoryId }),
4534
- ...(input.Limit !== undefined && input.Limit !== null && { Limit: input.Limit }),
4535
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
4536
- ...(input.Type !== undefined && input.Type !== null && { Type: input.Type }),
4512
+ ...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
4513
+ ...(input.Limit != null && { Limit: input.Limit }),
4514
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
4515
+ ...(input.Type != null && { Type: input.Type }),
4537
4516
  };
4538
4517
  };
4539
4518
  const serializeAws_json1_1DescribeRegionsRequest = (input, context) => {
4540
4519
  return {
4541
- ...(input.DirectoryId !== undefined && input.DirectoryId !== null && { DirectoryId: input.DirectoryId }),
4542
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
4543
- ...(input.RegionName !== undefined && input.RegionName !== null && { RegionName: input.RegionName }),
4520
+ ...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
4521
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
4522
+ ...(input.RegionName != null && { RegionName: input.RegionName }),
4544
4523
  };
4545
4524
  };
4546
4525
  const serializeAws_json1_1DescribeSettingsRequest = (input, context) => {
4547
4526
  return {
4548
- ...(input.DirectoryId !== undefined && input.DirectoryId !== null && { DirectoryId: input.DirectoryId }),
4549
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
4550
- ...(input.Status !== undefined && input.Status !== null && { Status: input.Status }),
4527
+ ...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
4528
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
4529
+ ...(input.Status != null && { Status: input.Status }),
4551
4530
  };
4552
4531
  };
4553
4532
  const serializeAws_json1_1DescribeSharedDirectoriesRequest = (input, context) => {
4554
4533
  return {
4555
- ...(input.Limit !== undefined && input.Limit !== null && { Limit: input.Limit }),
4556
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
4557
- ...(input.OwnerDirectoryId !== undefined &&
4558
- input.OwnerDirectoryId !== null && { OwnerDirectoryId: input.OwnerDirectoryId }),
4559
- ...(input.SharedDirectoryIds !== undefined &&
4560
- input.SharedDirectoryIds !== null && {
4534
+ ...(input.Limit != null && { Limit: input.Limit }),
4535
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
4536
+ ...(input.OwnerDirectoryId != null && { OwnerDirectoryId: input.OwnerDirectoryId }),
4537
+ ...(input.SharedDirectoryIds != null && {
4561
4538
  SharedDirectoryIds: serializeAws_json1_1DirectoryIds(input.SharedDirectoryIds, context),
4562
4539
  }),
4563
4540
  };
4564
4541
  };
4565
4542
  const serializeAws_json1_1DescribeSnapshotsRequest = (input, context) => {
4566
4543
  return {
4567
- ...(input.DirectoryId !== undefined && input.DirectoryId !== null && { DirectoryId: input.DirectoryId }),
4568
- ...(input.Limit !== undefined && input.Limit !== null && { Limit: input.Limit }),
4569
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
4570
- ...(input.SnapshotIds !== undefined &&
4571
- input.SnapshotIds !== null && { SnapshotIds: serializeAws_json1_1SnapshotIds(input.SnapshotIds, context) }),
4544
+ ...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
4545
+ ...(input.Limit != null && { Limit: input.Limit }),
4546
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
4547
+ ...(input.SnapshotIds != null && { SnapshotIds: serializeAws_json1_1SnapshotIds(input.SnapshotIds, context) }),
4572
4548
  };
4573
4549
  };
4574
4550
  const serializeAws_json1_1DescribeTrustsRequest = (input, context) => {
4575
4551
  return {
4576
- ...(input.DirectoryId !== undefined && input.DirectoryId !== null && { DirectoryId: input.DirectoryId }),
4577
- ...(input.Limit !== undefined && input.Limit !== null && { Limit: input.Limit }),
4578
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
4579
- ...(input.TrustIds !== undefined &&
4580
- input.TrustIds !== null && { TrustIds: serializeAws_json1_1TrustIds(input.TrustIds, context) }),
4552
+ ...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
4553
+ ...(input.Limit != null && { Limit: input.Limit }),
4554
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
4555
+ ...(input.TrustIds != null && { TrustIds: serializeAws_json1_1TrustIds(input.TrustIds, context) }),
4581
4556
  };
4582
4557
  };
4583
4558
  const serializeAws_json1_1DirectoryConnectSettings = (input, context) => {
4584
4559
  return {
4585
- ...(input.CustomerDnsIps !== undefined &&
4586
- input.CustomerDnsIps !== null && {
4560
+ ...(input.CustomerDnsIps != null && {
4587
4561
  CustomerDnsIps: serializeAws_json1_1DnsIpAddrs(input.CustomerDnsIps, context),
4588
4562
  }),
4589
- ...(input.CustomerUserName !== undefined &&
4590
- input.CustomerUserName !== null && { CustomerUserName: input.CustomerUserName }),
4591
- ...(input.SubnetIds !== undefined &&
4592
- input.SubnetIds !== null && { SubnetIds: serializeAws_json1_1SubnetIds(input.SubnetIds, context) }),
4593
- ...(input.VpcId !== undefined && input.VpcId !== null && { VpcId: input.VpcId }),
4563
+ ...(input.CustomerUserName != null && { CustomerUserName: input.CustomerUserName }),
4564
+ ...(input.SubnetIds != null && { SubnetIds: serializeAws_json1_1SubnetIds(input.SubnetIds, context) }),
4565
+ ...(input.VpcId != null && { VpcId: input.VpcId }),
4594
4566
  };
4595
4567
  };
4596
4568
  const serializeAws_json1_1DirectoryIds = (input, context) => {
@@ -4605,33 +4577,32 @@ const serializeAws_json1_1DirectoryIds = (input, context) => {
4605
4577
  };
4606
4578
  const serializeAws_json1_1DirectoryVpcSettings = (input, context) => {
4607
4579
  return {
4608
- ...(input.SubnetIds !== undefined &&
4609
- input.SubnetIds !== null && { SubnetIds: serializeAws_json1_1SubnetIds(input.SubnetIds, context) }),
4610
- ...(input.VpcId !== undefined && input.VpcId !== null && { VpcId: input.VpcId }),
4580
+ ...(input.SubnetIds != null && { SubnetIds: serializeAws_json1_1SubnetIds(input.SubnetIds, context) }),
4581
+ ...(input.VpcId != null && { VpcId: input.VpcId }),
4611
4582
  };
4612
4583
  };
4613
4584
  const serializeAws_json1_1DisableClientAuthenticationRequest = (input, context) => {
4614
4585
  return {
4615
- ...(input.DirectoryId !== undefined && input.DirectoryId !== null && { DirectoryId: input.DirectoryId }),
4616
- ...(input.Type !== undefined && input.Type !== null && { Type: input.Type }),
4586
+ ...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
4587
+ ...(input.Type != null && { Type: input.Type }),
4617
4588
  };
4618
4589
  };
4619
4590
  const serializeAws_json1_1DisableLDAPSRequest = (input, context) => {
4620
4591
  return {
4621
- ...(input.DirectoryId !== undefined && input.DirectoryId !== null && { DirectoryId: input.DirectoryId }),
4622
- ...(input.Type !== undefined && input.Type !== null && { Type: input.Type }),
4592
+ ...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
4593
+ ...(input.Type != null && { Type: input.Type }),
4623
4594
  };
4624
4595
  };
4625
4596
  const serializeAws_json1_1DisableRadiusRequest = (input, context) => {
4626
4597
  return {
4627
- ...(input.DirectoryId !== undefined && input.DirectoryId !== null && { DirectoryId: input.DirectoryId }),
4598
+ ...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
4628
4599
  };
4629
4600
  };
4630
4601
  const serializeAws_json1_1DisableSsoRequest = (input, context) => {
4631
4602
  return {
4632
- ...(input.DirectoryId !== undefined && input.DirectoryId !== null && { DirectoryId: input.DirectoryId }),
4633
- ...(input.Password !== undefined && input.Password !== null && { Password: input.Password }),
4634
- ...(input.UserName !== undefined && input.UserName !== null && { UserName: input.UserName }),
4603
+ ...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
4604
+ ...(input.Password != null && { Password: input.Password }),
4605
+ ...(input.UserName != null && { UserName: input.UserName }),
4635
4606
  };
4636
4607
  };
4637
4608
  const serializeAws_json1_1DnsIpAddrs = (input, context) => {
@@ -4656,30 +4627,29 @@ const serializeAws_json1_1DomainControllerIds = (input, context) => {
4656
4627
  };
4657
4628
  const serializeAws_json1_1EnableClientAuthenticationRequest = (input, context) => {
4658
4629
  return {
4659
- ...(input.DirectoryId !== undefined && input.DirectoryId !== null && { DirectoryId: input.DirectoryId }),
4660
- ...(input.Type !== undefined && input.Type !== null && { Type: input.Type }),
4630
+ ...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
4631
+ ...(input.Type != null && { Type: input.Type }),
4661
4632
  };
4662
4633
  };
4663
4634
  const serializeAws_json1_1EnableLDAPSRequest = (input, context) => {
4664
4635
  return {
4665
- ...(input.DirectoryId !== undefined && input.DirectoryId !== null && { DirectoryId: input.DirectoryId }),
4666
- ...(input.Type !== undefined && input.Type !== null && { Type: input.Type }),
4636
+ ...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
4637
+ ...(input.Type != null && { Type: input.Type }),
4667
4638
  };
4668
4639
  };
4669
4640
  const serializeAws_json1_1EnableRadiusRequest = (input, context) => {
4670
4641
  return {
4671
- ...(input.DirectoryId !== undefined && input.DirectoryId !== null && { DirectoryId: input.DirectoryId }),
4672
- ...(input.RadiusSettings !== undefined &&
4673
- input.RadiusSettings !== null && {
4642
+ ...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
4643
+ ...(input.RadiusSettings != null && {
4674
4644
  RadiusSettings: serializeAws_json1_1RadiusSettings(input.RadiusSettings, context),
4675
4645
  }),
4676
4646
  };
4677
4647
  };
4678
4648
  const serializeAws_json1_1EnableSsoRequest = (input, context) => {
4679
4649
  return {
4680
- ...(input.DirectoryId !== undefined && input.DirectoryId !== null && { DirectoryId: input.DirectoryId }),
4681
- ...(input.Password !== undefined && input.Password !== null && { Password: input.Password }),
4682
- ...(input.UserName !== undefined && input.UserName !== null && { UserName: input.UserName }),
4650
+ ...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
4651
+ ...(input.Password != null && { Password: input.Password }),
4652
+ ...(input.UserName != null && { UserName: input.UserName }),
4683
4653
  };
4684
4654
  };
4685
4655
  const serializeAws_json1_1GetDirectoryLimitsRequest = (input, context) => {
@@ -4687,13 +4657,13 @@ const serializeAws_json1_1GetDirectoryLimitsRequest = (input, context) => {
4687
4657
  };
4688
4658
  const serializeAws_json1_1GetSnapshotLimitsRequest = (input, context) => {
4689
4659
  return {
4690
- ...(input.DirectoryId !== undefined && input.DirectoryId !== null && { DirectoryId: input.DirectoryId }),
4660
+ ...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
4691
4661
  };
4692
4662
  };
4693
4663
  const serializeAws_json1_1IpRoute = (input, context) => {
4694
4664
  return {
4695
- ...(input.CidrIp !== undefined && input.CidrIp !== null && { CidrIp: input.CidrIp }),
4696
- ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
4665
+ ...(input.CidrIp != null && { CidrIp: input.CidrIp }),
4666
+ ...(input.Description != null && { Description: input.Description }),
4697
4667
  };
4698
4668
  };
4699
4669
  const serializeAws_json1_1IpRoutes = (input, context) => {
@@ -4708,76 +4678,70 @@ const serializeAws_json1_1IpRoutes = (input, context) => {
4708
4678
  };
4709
4679
  const serializeAws_json1_1ListCertificatesRequest = (input, context) => {
4710
4680
  return {
4711
- ...(input.DirectoryId !== undefined && input.DirectoryId !== null && { DirectoryId: input.DirectoryId }),
4712
- ...(input.Limit !== undefined && input.Limit !== null && { Limit: input.Limit }),
4713
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
4681
+ ...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
4682
+ ...(input.Limit != null && { Limit: input.Limit }),
4683
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
4714
4684
  };
4715
4685
  };
4716
4686
  const serializeAws_json1_1ListIpRoutesRequest = (input, context) => {
4717
4687
  return {
4718
- ...(input.DirectoryId !== undefined && input.DirectoryId !== null && { DirectoryId: input.DirectoryId }),
4719
- ...(input.Limit !== undefined && input.Limit !== null && { Limit: input.Limit }),
4720
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
4688
+ ...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
4689
+ ...(input.Limit != null && { Limit: input.Limit }),
4690
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
4721
4691
  };
4722
4692
  };
4723
4693
  const serializeAws_json1_1ListLogSubscriptionsRequest = (input, context) => {
4724
4694
  return {
4725
- ...(input.DirectoryId !== undefined && input.DirectoryId !== null && { DirectoryId: input.DirectoryId }),
4726
- ...(input.Limit !== undefined && input.Limit !== null && { Limit: input.Limit }),
4727
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
4695
+ ...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
4696
+ ...(input.Limit != null && { Limit: input.Limit }),
4697
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
4728
4698
  };
4729
4699
  };
4730
4700
  const serializeAws_json1_1ListSchemaExtensionsRequest = (input, context) => {
4731
4701
  return {
4732
- ...(input.DirectoryId !== undefined && input.DirectoryId !== null && { DirectoryId: input.DirectoryId }),
4733
- ...(input.Limit !== undefined && input.Limit !== null && { Limit: input.Limit }),
4734
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
4702
+ ...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
4703
+ ...(input.Limit != null && { Limit: input.Limit }),
4704
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
4735
4705
  };
4736
4706
  };
4737
4707
  const serializeAws_json1_1ListTagsForResourceRequest = (input, context) => {
4738
4708
  return {
4739
- ...(input.Limit !== undefined && input.Limit !== null && { Limit: input.Limit }),
4740
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
4741
- ...(input.ResourceId !== undefined && input.ResourceId !== null && { ResourceId: input.ResourceId }),
4709
+ ...(input.Limit != null && { Limit: input.Limit }),
4710
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
4711
+ ...(input.ResourceId != null && { ResourceId: input.ResourceId }),
4742
4712
  };
4743
4713
  };
4744
4714
  const serializeAws_json1_1RadiusSettings = (input, context) => {
4745
4715
  return {
4746
- ...(input.AuthenticationProtocol !== undefined &&
4747
- input.AuthenticationProtocol !== null && { AuthenticationProtocol: input.AuthenticationProtocol }),
4748
- ...(input.DisplayLabel !== undefined && input.DisplayLabel !== null && { DisplayLabel: input.DisplayLabel }),
4749
- ...(input.RadiusPort !== undefined && input.RadiusPort !== null && { RadiusPort: input.RadiusPort }),
4750
- ...(input.RadiusRetries !== undefined && input.RadiusRetries !== null && { RadiusRetries: input.RadiusRetries }),
4751
- ...(input.RadiusServers !== undefined &&
4752
- input.RadiusServers !== null && { RadiusServers: serializeAws_json1_1Servers(input.RadiusServers, context) }),
4753
- ...(input.RadiusTimeout !== undefined && input.RadiusTimeout !== null && { RadiusTimeout: input.RadiusTimeout }),
4754
- ...(input.SharedSecret !== undefined && input.SharedSecret !== null && { SharedSecret: input.SharedSecret }),
4755
- ...(input.UseSameUsername !== undefined &&
4756
- input.UseSameUsername !== null && { UseSameUsername: input.UseSameUsername }),
4716
+ ...(input.AuthenticationProtocol != null && { AuthenticationProtocol: input.AuthenticationProtocol }),
4717
+ ...(input.DisplayLabel != null && { DisplayLabel: input.DisplayLabel }),
4718
+ ...(input.RadiusPort != null && { RadiusPort: input.RadiusPort }),
4719
+ ...(input.RadiusRetries != null && { RadiusRetries: input.RadiusRetries }),
4720
+ ...(input.RadiusServers != null && { RadiusServers: serializeAws_json1_1Servers(input.RadiusServers, context) }),
4721
+ ...(input.RadiusTimeout != null && { RadiusTimeout: input.RadiusTimeout }),
4722
+ ...(input.SharedSecret != null && { SharedSecret: input.SharedSecret }),
4723
+ ...(input.UseSameUsername != null && { UseSameUsername: input.UseSameUsername }),
4757
4724
  };
4758
4725
  };
4759
4726
  const serializeAws_json1_1RegisterCertificateRequest = (input, context) => {
4760
4727
  return {
4761
- ...(input.CertificateData !== undefined &&
4762
- input.CertificateData !== null && { CertificateData: input.CertificateData }),
4763
- ...(input.ClientCertAuthSettings !== undefined &&
4764
- input.ClientCertAuthSettings !== null && {
4728
+ ...(input.CertificateData != null && { CertificateData: input.CertificateData }),
4729
+ ...(input.ClientCertAuthSettings != null && {
4765
4730
  ClientCertAuthSettings: serializeAws_json1_1ClientCertAuthSettings(input.ClientCertAuthSettings, context),
4766
4731
  }),
4767
- ...(input.DirectoryId !== undefined && input.DirectoryId !== null && { DirectoryId: input.DirectoryId }),
4768
- ...(input.Type !== undefined && input.Type !== null && { Type: input.Type }),
4732
+ ...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
4733
+ ...(input.Type != null && { Type: input.Type }),
4769
4734
  };
4770
4735
  };
4771
4736
  const serializeAws_json1_1RegisterEventTopicRequest = (input, context) => {
4772
4737
  return {
4773
- ...(input.DirectoryId !== undefined && input.DirectoryId !== null && { DirectoryId: input.DirectoryId }),
4774
- ...(input.TopicName !== undefined && input.TopicName !== null && { TopicName: input.TopicName }),
4738
+ ...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
4739
+ ...(input.TopicName != null && { TopicName: input.TopicName }),
4775
4740
  };
4776
4741
  };
4777
4742
  const serializeAws_json1_1RejectSharedDirectoryRequest = (input, context) => {
4778
4743
  return {
4779
- ...(input.SharedDirectoryId !== undefined &&
4780
- input.SharedDirectoryId !== null && { SharedDirectoryId: input.SharedDirectoryId }),
4744
+ ...(input.SharedDirectoryId != null && { SharedDirectoryId: input.SharedDirectoryId }),
4781
4745
  };
4782
4746
  };
4783
4747
  const serializeAws_json1_1RemoteDomainNames = (input, context) => {
@@ -4792,33 +4756,31 @@ const serializeAws_json1_1RemoteDomainNames = (input, context) => {
4792
4756
  };
4793
4757
  const serializeAws_json1_1RemoveIpRoutesRequest = (input, context) => {
4794
4758
  return {
4795
- ...(input.CidrIps !== undefined &&
4796
- input.CidrIps !== null && { CidrIps: serializeAws_json1_1CidrIps(input.CidrIps, context) }),
4797
- ...(input.DirectoryId !== undefined && input.DirectoryId !== null && { DirectoryId: input.DirectoryId }),
4759
+ ...(input.CidrIps != null && { CidrIps: serializeAws_json1_1CidrIps(input.CidrIps, context) }),
4760
+ ...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
4798
4761
  };
4799
4762
  };
4800
4763
  const serializeAws_json1_1RemoveRegionRequest = (input, context) => {
4801
4764
  return {
4802
- ...(input.DirectoryId !== undefined && input.DirectoryId !== null && { DirectoryId: input.DirectoryId }),
4765
+ ...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
4803
4766
  };
4804
4767
  };
4805
4768
  const serializeAws_json1_1RemoveTagsFromResourceRequest = (input, context) => {
4806
4769
  return {
4807
- ...(input.ResourceId !== undefined && input.ResourceId !== null && { ResourceId: input.ResourceId }),
4808
- ...(input.TagKeys !== undefined &&
4809
- input.TagKeys !== null && { TagKeys: serializeAws_json1_1TagKeys(input.TagKeys, context) }),
4770
+ ...(input.ResourceId != null && { ResourceId: input.ResourceId }),
4771
+ ...(input.TagKeys != null && { TagKeys: serializeAws_json1_1TagKeys(input.TagKeys, context) }),
4810
4772
  };
4811
4773
  };
4812
4774
  const serializeAws_json1_1ResetUserPasswordRequest = (input, context) => {
4813
4775
  return {
4814
- ...(input.DirectoryId !== undefined && input.DirectoryId !== null && { DirectoryId: input.DirectoryId }),
4815
- ...(input.NewPassword !== undefined && input.NewPassword !== null && { NewPassword: input.NewPassword }),
4816
- ...(input.UserName !== undefined && input.UserName !== null && { UserName: input.UserName }),
4776
+ ...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
4777
+ ...(input.NewPassword != null && { NewPassword: input.NewPassword }),
4778
+ ...(input.UserName != null && { UserName: input.UserName }),
4817
4779
  };
4818
4780
  };
4819
4781
  const serializeAws_json1_1RestoreFromSnapshotRequest = (input, context) => {
4820
4782
  return {
4821
- ...(input.SnapshotId !== undefined && input.SnapshotId !== null && { SnapshotId: input.SnapshotId }),
4783
+ ...(input.SnapshotId != null && { SnapshotId: input.SnapshotId }),
4822
4784
  };
4823
4785
  };
4824
4786
  const serializeAws_json1_1Servers = (input, context) => {
@@ -4833,8 +4795,8 @@ const serializeAws_json1_1Servers = (input, context) => {
4833
4795
  };
4834
4796
  const serializeAws_json1_1Setting = (input, context) => {
4835
4797
  return {
4836
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
4837
- ...(input.Value !== undefined && input.Value !== null && { Value: input.Value }),
4798
+ ...(input.Name != null && { Name: input.Name }),
4799
+ ...(input.Value != null && { Value: input.Value }),
4838
4800
  };
4839
4801
  };
4840
4802
  const serializeAws_json1_1Settings = (input, context) => {
@@ -4849,17 +4811,16 @@ const serializeAws_json1_1Settings = (input, context) => {
4849
4811
  };
4850
4812
  const serializeAws_json1_1ShareDirectoryRequest = (input, context) => {
4851
4813
  return {
4852
- ...(input.DirectoryId !== undefined && input.DirectoryId !== null && { DirectoryId: input.DirectoryId }),
4853
- ...(input.ShareMethod !== undefined && input.ShareMethod !== null && { ShareMethod: input.ShareMethod }),
4854
- ...(input.ShareNotes !== undefined && input.ShareNotes !== null && { ShareNotes: input.ShareNotes }),
4855
- ...(input.ShareTarget !== undefined &&
4856
- input.ShareTarget !== null && { ShareTarget: serializeAws_json1_1ShareTarget(input.ShareTarget, context) }),
4814
+ ...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
4815
+ ...(input.ShareMethod != null && { ShareMethod: input.ShareMethod }),
4816
+ ...(input.ShareNotes != null && { ShareNotes: input.ShareNotes }),
4817
+ ...(input.ShareTarget != null && { ShareTarget: serializeAws_json1_1ShareTarget(input.ShareTarget, context) }),
4857
4818
  };
4858
4819
  };
4859
4820
  const serializeAws_json1_1ShareTarget = (input, context) => {
4860
4821
  return {
4861
- ...(input.Id !== undefined && input.Id !== null && { Id: input.Id }),
4862
- ...(input.Type !== undefined && input.Type !== null && { Type: input.Type }),
4822
+ ...(input.Id != null && { Id: input.Id }),
4823
+ ...(input.Type != null && { Type: input.Type }),
4863
4824
  };
4864
4825
  };
4865
4826
  const serializeAws_json1_1SnapshotIds = (input, context) => {
@@ -4874,13 +4835,12 @@ const serializeAws_json1_1SnapshotIds = (input, context) => {
4874
4835
  };
4875
4836
  const serializeAws_json1_1StartSchemaExtensionRequest = (input, context) => {
4876
4837
  return {
4877
- ...(input.CreateSnapshotBeforeSchemaExtension !== undefined &&
4878
- input.CreateSnapshotBeforeSchemaExtension !== null && {
4838
+ ...(input.CreateSnapshotBeforeSchemaExtension != null && {
4879
4839
  CreateSnapshotBeforeSchemaExtension: input.CreateSnapshotBeforeSchemaExtension,
4880
4840
  }),
4881
- ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
4882
- ...(input.DirectoryId !== undefined && input.DirectoryId !== null && { DirectoryId: input.DirectoryId }),
4883
- ...(input.LdifContent !== undefined && input.LdifContent !== null && { LdifContent: input.LdifContent }),
4841
+ ...(input.Description != null && { Description: input.Description }),
4842
+ ...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
4843
+ ...(input.LdifContent != null && { LdifContent: input.LdifContent }),
4884
4844
  };
4885
4845
  };
4886
4846
  const serializeAws_json1_1SubnetIds = (input, context) => {
@@ -4895,8 +4855,8 @@ const serializeAws_json1_1SubnetIds = (input, context) => {
4895
4855
  };
4896
4856
  const serializeAws_json1_1Tag = (input, context) => {
4897
4857
  return {
4898
- ...(input.Key !== undefined && input.Key !== null && { Key: input.Key }),
4899
- ...(input.Value !== undefined && input.Value !== null && { Value: input.Value }),
4858
+ ...(input.Key != null && { Key: input.Key }),
4859
+ ...(input.Value != null && { Value: input.Value }),
4900
4860
  };
4901
4861
  };
4902
4862
  const serializeAws_json1_1TagKeys = (input, context) => {
@@ -4941,64 +4901,59 @@ const serializeAws_json1_1TrustIds = (input, context) => {
4941
4901
  };
4942
4902
  const serializeAws_json1_1UnshareDirectoryRequest = (input, context) => {
4943
4903
  return {
4944
- ...(input.DirectoryId !== undefined && input.DirectoryId !== null && { DirectoryId: input.DirectoryId }),
4945
- ...(input.UnshareTarget !== undefined &&
4946
- input.UnshareTarget !== null && {
4904
+ ...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
4905
+ ...(input.UnshareTarget != null && {
4947
4906
  UnshareTarget: serializeAws_json1_1UnshareTarget(input.UnshareTarget, context),
4948
4907
  }),
4949
4908
  };
4950
4909
  };
4951
4910
  const serializeAws_json1_1UnshareTarget = (input, context) => {
4952
4911
  return {
4953
- ...(input.Id !== undefined && input.Id !== null && { Id: input.Id }),
4954
- ...(input.Type !== undefined && input.Type !== null && { Type: input.Type }),
4912
+ ...(input.Id != null && { Id: input.Id }),
4913
+ ...(input.Type != null && { Type: input.Type }),
4955
4914
  };
4956
4915
  };
4957
4916
  const serializeAws_json1_1UpdateConditionalForwarderRequest = (input, context) => {
4958
4917
  return {
4959
- ...(input.DirectoryId !== undefined && input.DirectoryId !== null && { DirectoryId: input.DirectoryId }),
4960
- ...(input.DnsIpAddrs !== undefined &&
4961
- input.DnsIpAddrs !== null && { DnsIpAddrs: serializeAws_json1_1DnsIpAddrs(input.DnsIpAddrs, context) }),
4962
- ...(input.RemoteDomainName !== undefined &&
4963
- input.RemoteDomainName !== null && { RemoteDomainName: input.RemoteDomainName }),
4918
+ ...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
4919
+ ...(input.DnsIpAddrs != null && { DnsIpAddrs: serializeAws_json1_1DnsIpAddrs(input.DnsIpAddrs, context) }),
4920
+ ...(input.RemoteDomainName != null && { RemoteDomainName: input.RemoteDomainName }),
4964
4921
  };
4965
4922
  };
4966
4923
  const serializeAws_json1_1UpdateNumberOfDomainControllersRequest = (input, context) => {
4967
4924
  return {
4968
- ...(input.DesiredNumber !== undefined && input.DesiredNumber !== null && { DesiredNumber: input.DesiredNumber }),
4969
- ...(input.DirectoryId !== undefined && input.DirectoryId !== null && { DirectoryId: input.DirectoryId }),
4925
+ ...(input.DesiredNumber != null && { DesiredNumber: input.DesiredNumber }),
4926
+ ...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
4970
4927
  };
4971
4928
  };
4972
4929
  const serializeAws_json1_1UpdateRadiusRequest = (input, context) => {
4973
4930
  return {
4974
- ...(input.DirectoryId !== undefined && input.DirectoryId !== null && { DirectoryId: input.DirectoryId }),
4975
- ...(input.RadiusSettings !== undefined &&
4976
- input.RadiusSettings !== null && {
4931
+ ...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
4932
+ ...(input.RadiusSettings != null && {
4977
4933
  RadiusSettings: serializeAws_json1_1RadiusSettings(input.RadiusSettings, context),
4978
4934
  }),
4979
4935
  };
4980
4936
  };
4981
4937
  const serializeAws_json1_1UpdateSettingsRequest = (input, context) => {
4982
4938
  return {
4983
- ...(input.DirectoryId !== undefined && input.DirectoryId !== null && { DirectoryId: input.DirectoryId }),
4984
- ...(input.Settings !== undefined &&
4985
- input.Settings !== null && { Settings: serializeAws_json1_1Settings(input.Settings, context) }),
4939
+ ...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
4940
+ ...(input.Settings != null && { Settings: serializeAws_json1_1Settings(input.Settings, context) }),
4986
4941
  };
4987
4942
  };
4988
4943
  const serializeAws_json1_1UpdateTrustRequest = (input, context) => {
4989
4944
  return {
4990
- ...(input.SelectiveAuth !== undefined && input.SelectiveAuth !== null && { SelectiveAuth: input.SelectiveAuth }),
4991
- ...(input.TrustId !== undefined && input.TrustId !== null && { TrustId: input.TrustId }),
4945
+ ...(input.SelectiveAuth != null && { SelectiveAuth: input.SelectiveAuth }),
4946
+ ...(input.TrustId != null && { TrustId: input.TrustId }),
4992
4947
  };
4993
4948
  };
4994
4949
  const serializeAws_json1_1VerifyTrustRequest = (input, context) => {
4995
4950
  return {
4996
- ...(input.TrustId !== undefined && input.TrustId !== null && { TrustId: input.TrustId }),
4951
+ ...(input.TrustId != null && { TrustId: input.TrustId }),
4997
4952
  };
4998
4953
  };
4999
4954
  const deserializeAws_json1_1AcceptSharedDirectoryResult = (output, context) => {
5000
4955
  return {
5001
- SharedDirectory: output.SharedDirectory !== undefined && output.SharedDirectory !== null
4956
+ SharedDirectory: output.SharedDirectory != null
5002
4957
  ? deserializeAws_json1_1SharedDirectory(output.SharedDirectory, context)
5003
4958
  : undefined,
5004
4959
  };
@@ -5069,14 +5024,14 @@ const deserializeAws_json1_1CancelSchemaExtensionResult = (output, context) => {
5069
5024
  const deserializeAws_json1_1Certificate = (output, context) => {
5070
5025
  return {
5071
5026
  CertificateId: (0, smithy_client_1.expectString)(output.CertificateId),
5072
- ClientCertAuthSettings: output.ClientCertAuthSettings !== undefined && output.ClientCertAuthSettings !== null
5027
+ ClientCertAuthSettings: output.ClientCertAuthSettings != null
5073
5028
  ? deserializeAws_json1_1ClientCertAuthSettings(output.ClientCertAuthSettings, context)
5074
5029
  : undefined,
5075
5030
  CommonName: (0, smithy_client_1.expectString)(output.CommonName),
5076
- ExpiryDateTime: output.ExpiryDateTime !== undefined && output.ExpiryDateTime !== null
5031
+ ExpiryDateTime: output.ExpiryDateTime != null
5077
5032
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ExpiryDateTime)))
5078
5033
  : undefined,
5079
- RegisteredDateTime: output.RegisteredDateTime !== undefined && output.RegisteredDateTime !== null
5034
+ RegisteredDateTime: output.RegisteredDateTime != null
5080
5035
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.RegisteredDateTime)))
5081
5036
  : undefined,
5082
5037
  State: (0, smithy_client_1.expectString)(output.State),
@@ -5100,7 +5055,7 @@ const deserializeAws_json1_1CertificateInfo = (output, context) => {
5100
5055
  return {
5101
5056
  CertificateId: (0, smithy_client_1.expectString)(output.CertificateId),
5102
5057
  CommonName: (0, smithy_client_1.expectString)(output.CommonName),
5103
- ExpiryDateTime: output.ExpiryDateTime !== undefined && output.ExpiryDateTime !== null
5058
+ ExpiryDateTime: output.ExpiryDateTime != null
5104
5059
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ExpiryDateTime)))
5105
5060
  : undefined,
5106
5061
  State: (0, smithy_client_1.expectString)(output.State),
@@ -5132,7 +5087,7 @@ const deserializeAws_json1_1CertificatesInfo = (output, context) => {
5132
5087
  };
5133
5088
  const deserializeAws_json1_1ClientAuthenticationSettingInfo = (output, context) => {
5134
5089
  return {
5135
- LastUpdatedDateTime: output.LastUpdatedDateTime !== undefined && output.LastUpdatedDateTime !== null
5090
+ LastUpdatedDateTime: output.LastUpdatedDateTime != null
5136
5091
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedDateTime)))
5137
5092
  : undefined,
5138
5093
  Status: (0, smithy_client_1.expectString)(output.Status),
@@ -5163,7 +5118,7 @@ const deserializeAws_json1_1ClientException = (output, context) => {
5163
5118
  };
5164
5119
  const deserializeAws_json1_1Computer = (output, context) => {
5165
5120
  return {
5166
- ComputerAttributes: output.ComputerAttributes !== undefined && output.ComputerAttributes !== null
5121
+ ComputerAttributes: output.ComputerAttributes != null
5167
5122
  ? deserializeAws_json1_1Attributes(output.ComputerAttributes, context)
5168
5123
  : undefined,
5169
5124
  ComputerId: (0, smithy_client_1.expectString)(output.ComputerId),
@@ -5172,9 +5127,7 @@ const deserializeAws_json1_1Computer = (output, context) => {
5172
5127
  };
5173
5128
  const deserializeAws_json1_1ConditionalForwarder = (output, context) => {
5174
5129
  return {
5175
- DnsIpAddrs: output.DnsIpAddrs !== undefined && output.DnsIpAddrs !== null
5176
- ? deserializeAws_json1_1DnsIpAddrs(output.DnsIpAddrs, context)
5177
- : undefined,
5130
+ DnsIpAddrs: output.DnsIpAddrs != null ? deserializeAws_json1_1DnsIpAddrs(output.DnsIpAddrs, context) : undefined,
5178
5131
  RemoteDomainName: (0, smithy_client_1.expectString)(output.RemoteDomainName),
5179
5132
  ReplicationScope: (0, smithy_client_1.expectString)(output.ReplicationScope),
5180
5133
  };
@@ -5203,9 +5156,7 @@ const deserializeAws_json1_1CreateAliasResult = (output, context) => {
5203
5156
  };
5204
5157
  const deserializeAws_json1_1CreateComputerResult = (output, context) => {
5205
5158
  return {
5206
- Computer: output.Computer !== undefined && output.Computer !== null
5207
- ? deserializeAws_json1_1Computer(output.Computer, context)
5208
- : undefined,
5159
+ Computer: output.Computer != null ? deserializeAws_json1_1Computer(output.Computer, context) : undefined,
5209
5160
  };
5210
5161
  };
5211
5162
  const deserializeAws_json1_1CreateConditionalForwarderResult = (output, context) => {
@@ -5263,14 +5214,12 @@ const deserializeAws_json1_1DeregisterEventTopicResult = (output, context) => {
5263
5214
  };
5264
5215
  const deserializeAws_json1_1DescribeCertificateResult = (output, context) => {
5265
5216
  return {
5266
- Certificate: output.Certificate !== undefined && output.Certificate !== null
5267
- ? deserializeAws_json1_1Certificate(output.Certificate, context)
5268
- : undefined,
5217
+ Certificate: output.Certificate != null ? deserializeAws_json1_1Certificate(output.Certificate, context) : undefined,
5269
5218
  };
5270
5219
  };
5271
5220
  const deserializeAws_json1_1DescribeClientAuthenticationSettingsResult = (output, context) => {
5272
5221
  return {
5273
- ClientAuthenticationSettingsInfo: output.ClientAuthenticationSettingsInfo !== undefined && output.ClientAuthenticationSettingsInfo !== null
5222
+ ClientAuthenticationSettingsInfo: output.ClientAuthenticationSettingsInfo != null
5274
5223
  ? deserializeAws_json1_1ClientAuthenticationSettingsInfo(output.ClientAuthenticationSettingsInfo, context)
5275
5224
  : undefined,
5276
5225
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
@@ -5278,14 +5227,14 @@ const deserializeAws_json1_1DescribeClientAuthenticationSettingsResult = (output
5278
5227
  };
5279
5228
  const deserializeAws_json1_1DescribeConditionalForwardersResult = (output, context) => {
5280
5229
  return {
5281
- ConditionalForwarders: output.ConditionalForwarders !== undefined && output.ConditionalForwarders !== null
5230
+ ConditionalForwarders: output.ConditionalForwarders != null
5282
5231
  ? deserializeAws_json1_1ConditionalForwarders(output.ConditionalForwarders, context)
5283
5232
  : undefined,
5284
5233
  };
5285
5234
  };
5286
5235
  const deserializeAws_json1_1DescribeDirectoriesResult = (output, context) => {
5287
5236
  return {
5288
- DirectoryDescriptions: output.DirectoryDescriptions !== undefined && output.DirectoryDescriptions !== null
5237
+ DirectoryDescriptions: output.DirectoryDescriptions != null
5289
5238
  ? deserializeAws_json1_1DirectoryDescriptions(output.DirectoryDescriptions, context)
5290
5239
  : undefined,
5291
5240
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
@@ -5293,7 +5242,7 @@ const deserializeAws_json1_1DescribeDirectoriesResult = (output, context) => {
5293
5242
  };
5294
5243
  const deserializeAws_json1_1DescribeDomainControllersResult = (output, context) => {
5295
5244
  return {
5296
- DomainControllers: output.DomainControllers !== undefined && output.DomainControllers !== null
5245
+ DomainControllers: output.DomainControllers != null
5297
5246
  ? deserializeAws_json1_1DomainControllers(output.DomainControllers, context)
5298
5247
  : undefined,
5299
5248
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
@@ -5301,14 +5250,12 @@ const deserializeAws_json1_1DescribeDomainControllersResult = (output, context)
5301
5250
  };
5302
5251
  const deserializeAws_json1_1DescribeEventTopicsResult = (output, context) => {
5303
5252
  return {
5304
- EventTopics: output.EventTopics !== undefined && output.EventTopics !== null
5305
- ? deserializeAws_json1_1EventTopics(output.EventTopics, context)
5306
- : undefined,
5253
+ EventTopics: output.EventTopics != null ? deserializeAws_json1_1EventTopics(output.EventTopics, context) : undefined,
5307
5254
  };
5308
5255
  };
5309
5256
  const deserializeAws_json1_1DescribeLDAPSSettingsResult = (output, context) => {
5310
5257
  return {
5311
- LDAPSSettingsInfo: output.LDAPSSettingsInfo !== undefined && output.LDAPSSettingsInfo !== null
5258
+ LDAPSSettingsInfo: output.LDAPSSettingsInfo != null
5312
5259
  ? deserializeAws_json1_1LDAPSSettingsInfo(output.LDAPSSettingsInfo, context)
5313
5260
  : undefined,
5314
5261
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
@@ -5317,7 +5264,7 @@ const deserializeAws_json1_1DescribeLDAPSSettingsResult = (output, context) => {
5317
5264
  const deserializeAws_json1_1DescribeRegionsResult = (output, context) => {
5318
5265
  return {
5319
5266
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
5320
- RegionsDescription: output.RegionsDescription !== undefined && output.RegionsDescription !== null
5267
+ RegionsDescription: output.RegionsDescription != null
5321
5268
  ? deserializeAws_json1_1RegionsDescription(output.RegionsDescription, context)
5322
5269
  : undefined,
5323
5270
  };
@@ -5326,15 +5273,13 @@ const deserializeAws_json1_1DescribeSettingsResult = (output, context) => {
5326
5273
  return {
5327
5274
  DirectoryId: (0, smithy_client_1.expectString)(output.DirectoryId),
5328
5275
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
5329
- SettingEntries: output.SettingEntries !== undefined && output.SettingEntries !== null
5330
- ? deserializeAws_json1_1SettingEntries(output.SettingEntries, context)
5331
- : undefined,
5276
+ SettingEntries: output.SettingEntries != null ? deserializeAws_json1_1SettingEntries(output.SettingEntries, context) : undefined,
5332
5277
  };
5333
5278
  };
5334
5279
  const deserializeAws_json1_1DescribeSharedDirectoriesResult = (output, context) => {
5335
5280
  return {
5336
5281
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
5337
- SharedDirectories: output.SharedDirectories !== undefined && output.SharedDirectories !== null
5282
+ SharedDirectories: output.SharedDirectories != null
5338
5283
  ? deserializeAws_json1_1SharedDirectories(output.SharedDirectories, context)
5339
5284
  : undefined,
5340
5285
  };
@@ -5342,17 +5287,13 @@ const deserializeAws_json1_1DescribeSharedDirectoriesResult = (output, context)
5342
5287
  const deserializeAws_json1_1DescribeSnapshotsResult = (output, context) => {
5343
5288
  return {
5344
5289
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
5345
- Snapshots: output.Snapshots !== undefined && output.Snapshots !== null
5346
- ? deserializeAws_json1_1Snapshots(output.Snapshots, context)
5347
- : undefined,
5290
+ Snapshots: output.Snapshots != null ? deserializeAws_json1_1Snapshots(output.Snapshots, context) : undefined,
5348
5291
  };
5349
5292
  };
5350
5293
  const deserializeAws_json1_1DescribeTrustsResult = (output, context) => {
5351
5294
  return {
5352
5295
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
5353
- Trusts: output.Trusts !== undefined && output.Trusts !== null
5354
- ? deserializeAws_json1_1Trusts(output.Trusts, context)
5355
- : undefined,
5296
+ Trusts: output.Trusts != null ? deserializeAws_json1_1Trusts(output.Trusts, context) : undefined,
5356
5297
  };
5357
5298
  };
5358
5299
  const deserializeAws_json1_1DirectoryAlreadyInRegionException = (output, context) => {
@@ -5380,17 +5321,13 @@ const deserializeAws_json1_1DirectoryConfigurationSettingRequestDetailedStatus =
5380
5321
  };
5381
5322
  const deserializeAws_json1_1DirectoryConnectSettingsDescription = (output, context) => {
5382
5323
  return {
5383
- AvailabilityZones: output.AvailabilityZones !== undefined && output.AvailabilityZones !== null
5324
+ AvailabilityZones: output.AvailabilityZones != null
5384
5325
  ? deserializeAws_json1_1AvailabilityZones(output.AvailabilityZones, context)
5385
5326
  : undefined,
5386
- ConnectIps: output.ConnectIps !== undefined && output.ConnectIps !== null
5387
- ? deserializeAws_json1_1IpAddrs(output.ConnectIps, context)
5388
- : undefined,
5327
+ ConnectIps: output.ConnectIps != null ? deserializeAws_json1_1IpAddrs(output.ConnectIps, context) : undefined,
5389
5328
  CustomerUserName: (0, smithy_client_1.expectString)(output.CustomerUserName),
5390
5329
  SecurityGroupId: (0, smithy_client_1.expectString)(output.SecurityGroupId),
5391
- SubnetIds: output.SubnetIds !== undefined && output.SubnetIds !== null
5392
- ? deserializeAws_json1_1SubnetIds(output.SubnetIds, context)
5393
- : undefined,
5330
+ SubnetIds: output.SubnetIds != null ? deserializeAws_json1_1SubnetIds(output.SubnetIds, context) : undefined,
5394
5331
  VpcId: (0, smithy_client_1.expectString)(output.VpcId),
5395
5332
  };
5396
5333
  };
@@ -5398,30 +5335,22 @@ const deserializeAws_json1_1DirectoryDescription = (output, context) => {
5398
5335
  return {
5399
5336
  AccessUrl: (0, smithy_client_1.expectString)(output.AccessUrl),
5400
5337
  Alias: (0, smithy_client_1.expectString)(output.Alias),
5401
- ConnectSettings: output.ConnectSettings !== undefined && output.ConnectSettings !== null
5338
+ ConnectSettings: output.ConnectSettings != null
5402
5339
  ? deserializeAws_json1_1DirectoryConnectSettingsDescription(output.ConnectSettings, context)
5403
5340
  : undefined,
5404
5341
  Description: (0, smithy_client_1.expectString)(output.Description),
5405
5342
  DesiredNumberOfDomainControllers: (0, smithy_client_1.expectInt32)(output.DesiredNumberOfDomainControllers),
5406
5343
  DirectoryId: (0, smithy_client_1.expectString)(output.DirectoryId),
5407
- DnsIpAddrs: output.DnsIpAddrs !== undefined && output.DnsIpAddrs !== null
5408
- ? deserializeAws_json1_1DnsIpAddrs(output.DnsIpAddrs, context)
5409
- : undefined,
5344
+ DnsIpAddrs: output.DnsIpAddrs != null ? deserializeAws_json1_1DnsIpAddrs(output.DnsIpAddrs, context) : undefined,
5410
5345
  Edition: (0, smithy_client_1.expectString)(output.Edition),
5411
- LaunchTime: output.LaunchTime !== undefined && output.LaunchTime !== null
5412
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LaunchTime)))
5413
- : undefined,
5346
+ LaunchTime: output.LaunchTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LaunchTime))) : undefined,
5414
5347
  Name: (0, smithy_client_1.expectString)(output.Name),
5415
- OwnerDirectoryDescription: output.OwnerDirectoryDescription !== undefined && output.OwnerDirectoryDescription !== null
5348
+ OwnerDirectoryDescription: output.OwnerDirectoryDescription != null
5416
5349
  ? deserializeAws_json1_1OwnerDirectoryDescription(output.OwnerDirectoryDescription, context)
5417
5350
  : undefined,
5418
- RadiusSettings: output.RadiusSettings !== undefined && output.RadiusSettings !== null
5419
- ? deserializeAws_json1_1RadiusSettings(output.RadiusSettings, context)
5420
- : undefined,
5351
+ RadiusSettings: output.RadiusSettings != null ? deserializeAws_json1_1RadiusSettings(output.RadiusSettings, context) : undefined,
5421
5352
  RadiusStatus: (0, smithy_client_1.expectString)(output.RadiusStatus),
5422
- RegionsInfo: output.RegionsInfo !== undefined && output.RegionsInfo !== null
5423
- ? deserializeAws_json1_1RegionsInfo(output.RegionsInfo, context)
5424
- : undefined,
5353
+ RegionsInfo: output.RegionsInfo != null ? deserializeAws_json1_1RegionsInfo(output.RegionsInfo, context) : undefined,
5425
5354
  ShareMethod: (0, smithy_client_1.expectString)(output.ShareMethod),
5426
5355
  ShareNotes: (0, smithy_client_1.expectString)(output.ShareNotes),
5427
5356
  ShareStatus: (0, smithy_client_1.expectString)(output.ShareStatus),
@@ -5429,12 +5358,12 @@ const deserializeAws_json1_1DirectoryDescription = (output, context) => {
5429
5358
  Size: (0, smithy_client_1.expectString)(output.Size),
5430
5359
  SsoEnabled: (0, smithy_client_1.expectBoolean)(output.SsoEnabled),
5431
5360
  Stage: (0, smithy_client_1.expectString)(output.Stage),
5432
- StageLastUpdatedDateTime: output.StageLastUpdatedDateTime !== undefined && output.StageLastUpdatedDateTime !== null
5361
+ StageLastUpdatedDateTime: output.StageLastUpdatedDateTime != null
5433
5362
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StageLastUpdatedDateTime)))
5434
5363
  : undefined,
5435
5364
  StageReason: (0, smithy_client_1.expectString)(output.StageReason),
5436
5365
  Type: (0, smithy_client_1.expectString)(output.Type),
5437
- VpcSettings: output.VpcSettings !== undefined && output.VpcSettings !== null
5366
+ VpcSettings: output.VpcSettings != null
5438
5367
  ? deserializeAws_json1_1DirectoryVpcSettingsDescription(output.VpcSettings, context)
5439
5368
  : undefined,
5440
5369
  };
@@ -5489,21 +5418,17 @@ const deserializeAws_json1_1DirectoryUnavailableException = (output, context) =>
5489
5418
  };
5490
5419
  const deserializeAws_json1_1DirectoryVpcSettings = (output, context) => {
5491
5420
  return {
5492
- SubnetIds: output.SubnetIds !== undefined && output.SubnetIds !== null
5493
- ? deserializeAws_json1_1SubnetIds(output.SubnetIds, context)
5494
- : undefined,
5421
+ SubnetIds: output.SubnetIds != null ? deserializeAws_json1_1SubnetIds(output.SubnetIds, context) : undefined,
5495
5422
  VpcId: (0, smithy_client_1.expectString)(output.VpcId),
5496
5423
  };
5497
5424
  };
5498
5425
  const deserializeAws_json1_1DirectoryVpcSettingsDescription = (output, context) => {
5499
5426
  return {
5500
- AvailabilityZones: output.AvailabilityZones !== undefined && output.AvailabilityZones !== null
5427
+ AvailabilityZones: output.AvailabilityZones != null
5501
5428
  ? deserializeAws_json1_1AvailabilityZones(output.AvailabilityZones, context)
5502
5429
  : undefined,
5503
5430
  SecurityGroupId: (0, smithy_client_1.expectString)(output.SecurityGroupId),
5504
- SubnetIds: output.SubnetIds !== undefined && output.SubnetIds !== null
5505
- ? deserializeAws_json1_1SubnetIds(output.SubnetIds, context)
5506
- : undefined,
5431
+ SubnetIds: output.SubnetIds != null ? deserializeAws_json1_1SubnetIds(output.SubnetIds, context) : undefined,
5507
5432
  VpcId: (0, smithy_client_1.expectString)(output.VpcId),
5508
5433
  };
5509
5434
  };
@@ -5536,11 +5461,9 @@ const deserializeAws_json1_1DomainController = (output, context) => {
5536
5461
  DirectoryId: (0, smithy_client_1.expectString)(output.DirectoryId),
5537
5462
  DnsIpAddr: (0, smithy_client_1.expectString)(output.DnsIpAddr),
5538
5463
  DomainControllerId: (0, smithy_client_1.expectString)(output.DomainControllerId),
5539
- LaunchTime: output.LaunchTime !== undefined && output.LaunchTime !== null
5540
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LaunchTime)))
5541
- : undefined,
5464
+ LaunchTime: output.LaunchTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LaunchTime))) : undefined,
5542
5465
  Status: (0, smithy_client_1.expectString)(output.Status),
5543
- StatusLastUpdatedDateTime: output.StatusLastUpdatedDateTime !== undefined && output.StatusLastUpdatedDateTime !== null
5466
+ StatusLastUpdatedDateTime: output.StatusLastUpdatedDateTime != null
5544
5467
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StatusLastUpdatedDateTime)))
5545
5468
  : undefined,
5546
5469
  StatusReason: (0, smithy_client_1.expectString)(output.StatusReason),
@@ -5591,7 +5514,7 @@ const deserializeAws_json1_1EntityDoesNotExistException = (output, context) => {
5591
5514
  };
5592
5515
  const deserializeAws_json1_1EventTopic = (output, context) => {
5593
5516
  return {
5594
- CreatedDateTime: output.CreatedDateTime !== undefined && output.CreatedDateTime !== null
5517
+ CreatedDateTime: output.CreatedDateTime != null
5595
5518
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedDateTime)))
5596
5519
  : undefined,
5597
5520
  DirectoryId: (0, smithy_client_1.expectString)(output.DirectoryId),
@@ -5613,16 +5536,14 @@ const deserializeAws_json1_1EventTopics = (output, context) => {
5613
5536
  };
5614
5537
  const deserializeAws_json1_1GetDirectoryLimitsResult = (output, context) => {
5615
5538
  return {
5616
- DirectoryLimits: output.DirectoryLimits !== undefined && output.DirectoryLimits !== null
5539
+ DirectoryLimits: output.DirectoryLimits != null
5617
5540
  ? deserializeAws_json1_1DirectoryLimits(output.DirectoryLimits, context)
5618
5541
  : undefined,
5619
5542
  };
5620
5543
  };
5621
5544
  const deserializeAws_json1_1GetSnapshotLimitsResult = (output, context) => {
5622
5545
  return {
5623
- SnapshotLimits: output.SnapshotLimits !== undefined && output.SnapshotLimits !== null
5624
- ? deserializeAws_json1_1SnapshotLimits(output.SnapshotLimits, context)
5625
- : undefined,
5546
+ SnapshotLimits: output.SnapshotLimits != null ? deserializeAws_json1_1SnapshotLimits(output.SnapshotLimits, context) : undefined,
5626
5547
  };
5627
5548
  };
5628
5549
  const deserializeAws_json1_1IncompatibleSettingsException = (output, context) => {
@@ -5692,7 +5613,7 @@ const deserializeAws_json1_1IpAddrs = (output, context) => {
5692
5613
  };
5693
5614
  const deserializeAws_json1_1IpRouteInfo = (output, context) => {
5694
5615
  return {
5695
- AddedDateTime: output.AddedDateTime !== undefined && output.AddedDateTime !== null
5616
+ AddedDateTime: output.AddedDateTime != null
5696
5617
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.AddedDateTime)))
5697
5618
  : undefined,
5698
5619
  CidrIp: (0, smithy_client_1.expectString)(output.CidrIp),
@@ -5723,7 +5644,7 @@ const deserializeAws_json1_1LDAPSSettingInfo = (output, context) => {
5723
5644
  return {
5724
5645
  LDAPSStatus: (0, smithy_client_1.expectString)(output.LDAPSStatus),
5725
5646
  LDAPSStatusReason: (0, smithy_client_1.expectString)(output.LDAPSStatusReason),
5726
- LastUpdatedDateTime: output.LastUpdatedDateTime !== undefined && output.LastUpdatedDateTime !== null
5647
+ LastUpdatedDateTime: output.LastUpdatedDateTime != null
5727
5648
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedDateTime)))
5728
5649
  : undefined,
5729
5650
  };
@@ -5741,7 +5662,7 @@ const deserializeAws_json1_1LDAPSSettingsInfo = (output, context) => {
5741
5662
  };
5742
5663
  const deserializeAws_json1_1ListCertificatesResult = (output, context) => {
5743
5664
  return {
5744
- CertificatesInfo: output.CertificatesInfo !== undefined && output.CertificatesInfo !== null
5665
+ CertificatesInfo: output.CertificatesInfo != null
5745
5666
  ? deserializeAws_json1_1CertificatesInfo(output.CertificatesInfo, context)
5746
5667
  : undefined,
5747
5668
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
@@ -5749,15 +5670,13 @@ const deserializeAws_json1_1ListCertificatesResult = (output, context) => {
5749
5670
  };
5750
5671
  const deserializeAws_json1_1ListIpRoutesResult = (output, context) => {
5751
5672
  return {
5752
- IpRoutesInfo: output.IpRoutesInfo !== undefined && output.IpRoutesInfo !== null
5753
- ? deserializeAws_json1_1IpRoutesInfo(output.IpRoutesInfo, context)
5754
- : undefined,
5673
+ IpRoutesInfo: output.IpRoutesInfo != null ? deserializeAws_json1_1IpRoutesInfo(output.IpRoutesInfo, context) : undefined,
5755
5674
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
5756
5675
  };
5757
5676
  };
5758
5677
  const deserializeAws_json1_1ListLogSubscriptionsResult = (output, context) => {
5759
5678
  return {
5760
- LogSubscriptions: output.LogSubscriptions !== undefined && output.LogSubscriptions !== null
5679
+ LogSubscriptions: output.LogSubscriptions != null
5761
5680
  ? deserializeAws_json1_1LogSubscriptions(output.LogSubscriptions, context)
5762
5681
  : undefined,
5763
5682
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
@@ -5766,7 +5685,7 @@ const deserializeAws_json1_1ListLogSubscriptionsResult = (output, context) => {
5766
5685
  const deserializeAws_json1_1ListSchemaExtensionsResult = (output, context) => {
5767
5686
  return {
5768
5687
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
5769
- SchemaExtensionsInfo: output.SchemaExtensionsInfo !== undefined && output.SchemaExtensionsInfo !== null
5688
+ SchemaExtensionsInfo: output.SchemaExtensionsInfo != null
5770
5689
  ? deserializeAws_json1_1SchemaExtensionsInfo(output.SchemaExtensionsInfo, context)
5771
5690
  : undefined,
5772
5691
  };
@@ -5774,14 +5693,14 @@ const deserializeAws_json1_1ListSchemaExtensionsResult = (output, context) => {
5774
5693
  const deserializeAws_json1_1ListTagsForResourceResult = (output, context) => {
5775
5694
  return {
5776
5695
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
5777
- Tags: output.Tags !== undefined && output.Tags !== null ? deserializeAws_json1_1Tags(output.Tags, context) : undefined,
5696
+ Tags: output.Tags != null ? deserializeAws_json1_1Tags(output.Tags, context) : undefined,
5778
5697
  };
5779
5698
  };
5780
5699
  const deserializeAws_json1_1LogSubscription = (output, context) => {
5781
5700
  return {
5782
5701
  DirectoryId: (0, smithy_client_1.expectString)(output.DirectoryId),
5783
5702
  LogGroupName: (0, smithy_client_1.expectString)(output.LogGroupName),
5784
- SubscriptionCreatedDateTime: output.SubscriptionCreatedDateTime !== undefined && output.SubscriptionCreatedDateTime !== null
5703
+ SubscriptionCreatedDateTime: output.SubscriptionCreatedDateTime != null
5785
5704
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.SubscriptionCreatedDateTime)))
5786
5705
  : undefined,
5787
5706
  };
@@ -5813,14 +5732,10 @@ const deserializeAws_json1_1OwnerDirectoryDescription = (output, context) => {
5813
5732
  return {
5814
5733
  AccountId: (0, smithy_client_1.expectString)(output.AccountId),
5815
5734
  DirectoryId: (0, smithy_client_1.expectString)(output.DirectoryId),
5816
- DnsIpAddrs: output.DnsIpAddrs !== undefined && output.DnsIpAddrs !== null
5817
- ? deserializeAws_json1_1DnsIpAddrs(output.DnsIpAddrs, context)
5818
- : undefined,
5819
- RadiusSettings: output.RadiusSettings !== undefined && output.RadiusSettings !== null
5820
- ? deserializeAws_json1_1RadiusSettings(output.RadiusSettings, context)
5821
- : undefined,
5735
+ DnsIpAddrs: output.DnsIpAddrs != null ? deserializeAws_json1_1DnsIpAddrs(output.DnsIpAddrs, context) : undefined,
5736
+ RadiusSettings: output.RadiusSettings != null ? deserializeAws_json1_1RadiusSettings(output.RadiusSettings, context) : undefined,
5822
5737
  RadiusStatus: (0, smithy_client_1.expectString)(output.RadiusStatus),
5823
- VpcSettings: output.VpcSettings !== undefined && output.VpcSettings !== null
5738
+ VpcSettings: output.VpcSettings != null
5824
5739
  ? deserializeAws_json1_1DirectoryVpcSettingsDescription(output.VpcSettings, context)
5825
5740
  : undefined,
5826
5741
  };
@@ -5831,9 +5746,7 @@ const deserializeAws_json1_1RadiusSettings = (output, context) => {
5831
5746
  DisplayLabel: (0, smithy_client_1.expectString)(output.DisplayLabel),
5832
5747
  RadiusPort: (0, smithy_client_1.expectInt32)(output.RadiusPort),
5833
5748
  RadiusRetries: (0, smithy_client_1.expectInt32)(output.RadiusRetries),
5834
- RadiusServers: output.RadiusServers !== undefined && output.RadiusServers !== null
5835
- ? deserializeAws_json1_1Servers(output.RadiusServers, context)
5836
- : undefined,
5749
+ RadiusServers: output.RadiusServers != null ? deserializeAws_json1_1Servers(output.RadiusServers, context) : undefined,
5837
5750
  RadiusTimeout: (0, smithy_client_1.expectInt32)(output.RadiusTimeout),
5838
5751
  SharedSecret: (0, smithy_client_1.expectString)(output.SharedSecret),
5839
5752
  UseSameUsername: (0, smithy_client_1.expectBoolean)(output.UseSameUsername),
@@ -5843,21 +5756,17 @@ const deserializeAws_json1_1RegionDescription = (output, context) => {
5843
5756
  return {
5844
5757
  DesiredNumberOfDomainControllers: (0, smithy_client_1.expectInt32)(output.DesiredNumberOfDomainControllers),
5845
5758
  DirectoryId: (0, smithy_client_1.expectString)(output.DirectoryId),
5846
- LastUpdatedDateTime: output.LastUpdatedDateTime !== undefined && output.LastUpdatedDateTime !== null
5759
+ LastUpdatedDateTime: output.LastUpdatedDateTime != null
5847
5760
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedDateTime)))
5848
5761
  : undefined,
5849
- LaunchTime: output.LaunchTime !== undefined && output.LaunchTime !== null
5850
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LaunchTime)))
5851
- : undefined,
5762
+ LaunchTime: output.LaunchTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LaunchTime))) : undefined,
5852
5763
  RegionName: (0, smithy_client_1.expectString)(output.RegionName),
5853
5764
  RegionType: (0, smithy_client_1.expectString)(output.RegionType),
5854
5765
  Status: (0, smithy_client_1.expectString)(output.Status),
5855
- StatusLastUpdatedDateTime: output.StatusLastUpdatedDateTime !== undefined && output.StatusLastUpdatedDateTime !== null
5766
+ StatusLastUpdatedDateTime: output.StatusLastUpdatedDateTime != null
5856
5767
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StatusLastUpdatedDateTime)))
5857
5768
  : undefined,
5858
- VpcSettings: output.VpcSettings !== undefined && output.VpcSettings !== null
5859
- ? deserializeAws_json1_1DirectoryVpcSettings(output.VpcSettings, context)
5860
- : undefined,
5769
+ VpcSettings: output.VpcSettings != null ? deserializeAws_json1_1DirectoryVpcSettings(output.VpcSettings, context) : undefined,
5861
5770
  };
5862
5771
  };
5863
5772
  const deserializeAws_json1_1RegionLimitExceededException = (output, context) => {
@@ -5879,7 +5788,7 @@ const deserializeAws_json1_1RegionsDescription = (output, context) => {
5879
5788
  };
5880
5789
  const deserializeAws_json1_1RegionsInfo = (output, context) => {
5881
5790
  return {
5882
- AdditionalRegions: output.AdditionalRegions !== undefined && output.AdditionalRegions !== null
5791
+ AdditionalRegions: output.AdditionalRegions != null
5883
5792
  ? deserializeAws_json1_1AdditionalRegions(output.AdditionalRegions, context)
5884
5793
  : undefined,
5885
5794
  PrimaryRegion: (0, smithy_client_1.expectString)(output.PrimaryRegion),
@@ -5917,13 +5826,13 @@ const deserializeAws_json1_1SchemaExtensionInfo = (output, context) => {
5917
5826
  return {
5918
5827
  Description: (0, smithy_client_1.expectString)(output.Description),
5919
5828
  DirectoryId: (0, smithy_client_1.expectString)(output.DirectoryId),
5920
- EndDateTime: output.EndDateTime !== undefined && output.EndDateTime !== null
5829
+ EndDateTime: output.EndDateTime != null
5921
5830
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndDateTime)))
5922
5831
  : undefined,
5923
5832
  SchemaExtensionId: (0, smithy_client_1.expectString)(output.SchemaExtensionId),
5924
5833
  SchemaExtensionStatus: (0, smithy_client_1.expectString)(output.SchemaExtensionStatus),
5925
5834
  SchemaExtensionStatusReason: (0, smithy_client_1.expectString)(output.SchemaExtensionStatusReason),
5926
- StartDateTime: output.StartDateTime !== undefined && output.StartDateTime !== null
5835
+ StartDateTime: output.StartDateTime != null
5927
5836
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartDateTime)))
5928
5837
  : undefined,
5929
5838
  };
@@ -5971,14 +5880,14 @@ const deserializeAws_json1_1SettingEntry = (output, context) => {
5971
5880
  return {
5972
5881
  AllowedValues: (0, smithy_client_1.expectString)(output.AllowedValues),
5973
5882
  AppliedValue: (0, smithy_client_1.expectString)(output.AppliedValue),
5974
- LastRequestedDateTime: output.LastRequestedDateTime !== undefined && output.LastRequestedDateTime !== null
5883
+ LastRequestedDateTime: output.LastRequestedDateTime != null
5975
5884
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastRequestedDateTime)))
5976
5885
  : undefined,
5977
- LastUpdatedDateTime: output.LastUpdatedDateTime !== undefined && output.LastUpdatedDateTime !== null
5886
+ LastUpdatedDateTime: output.LastUpdatedDateTime != null
5978
5887
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedDateTime)))
5979
5888
  : undefined,
5980
5889
  Name: (0, smithy_client_1.expectString)(output.Name),
5981
- RequestDetailedStatus: output.RequestDetailedStatus !== undefined && output.RequestDetailedStatus !== null
5890
+ RequestDetailedStatus: output.RequestDetailedStatus != null
5982
5891
  ? deserializeAws_json1_1DirectoryConfigurationSettingRequestDetailedStatus(output.RequestDetailedStatus, context)
5983
5892
  : undefined,
5984
5893
  RequestStatus: (0, smithy_client_1.expectString)(output.RequestStatus),
@@ -6000,10 +5909,10 @@ const deserializeAws_json1_1SharedDirectories = (output, context) => {
6000
5909
  };
6001
5910
  const deserializeAws_json1_1SharedDirectory = (output, context) => {
6002
5911
  return {
6003
- CreatedDateTime: output.CreatedDateTime !== undefined && output.CreatedDateTime !== null
5912
+ CreatedDateTime: output.CreatedDateTime != null
6004
5913
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedDateTime)))
6005
5914
  : undefined,
6006
- LastUpdatedDateTime: output.LastUpdatedDateTime !== undefined && output.LastUpdatedDateTime !== null
5915
+ LastUpdatedDateTime: output.LastUpdatedDateTime != null
6007
5916
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedDateTime)))
6008
5917
  : undefined,
6009
5918
  OwnerAccountId: (0, smithy_client_1.expectString)(output.OwnerAccountId),
@@ -6031,9 +5940,7 @@ const deserializeAws_json1_1Snapshot = (output, context) => {
6031
5940
  DirectoryId: (0, smithy_client_1.expectString)(output.DirectoryId),
6032
5941
  Name: (0, smithy_client_1.expectString)(output.Name),
6033
5942
  SnapshotId: (0, smithy_client_1.expectString)(output.SnapshotId),
6034
- StartTime: output.StartTime !== undefined && output.StartTime !== null
6035
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime)))
6036
- : undefined,
5943
+ StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : undefined,
6037
5944
  Status: (0, smithy_client_1.expectString)(output.Status),
6038
5945
  Type: (0, smithy_client_1.expectString)(output.Type),
6039
5946
  };
@@ -6103,16 +6010,16 @@ const deserializeAws_json1_1Tags = (output, context) => {
6103
6010
  };
6104
6011
  const deserializeAws_json1_1Trust = (output, context) => {
6105
6012
  return {
6106
- CreatedDateTime: output.CreatedDateTime !== undefined && output.CreatedDateTime !== null
6013
+ CreatedDateTime: output.CreatedDateTime != null
6107
6014
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedDateTime)))
6108
6015
  : undefined,
6109
6016
  DirectoryId: (0, smithy_client_1.expectString)(output.DirectoryId),
6110
- LastUpdatedDateTime: output.LastUpdatedDateTime !== undefined && output.LastUpdatedDateTime !== null
6017
+ LastUpdatedDateTime: output.LastUpdatedDateTime != null
6111
6018
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedDateTime)))
6112
6019
  : undefined,
6113
6020
  RemoteDomainName: (0, smithy_client_1.expectString)(output.RemoteDomainName),
6114
6021
  SelectiveAuth: (0, smithy_client_1.expectString)(output.SelectiveAuth),
6115
- StateLastUpdatedDateTime: output.StateLastUpdatedDateTime !== undefined && output.StateLastUpdatedDateTime !== null
6022
+ StateLastUpdatedDateTime: output.StateLastUpdatedDateTime != null
6116
6023
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StateLastUpdatedDateTime)))
6117
6024
  : undefined,
6118
6025
  TrustDirection: (0, smithy_client_1.expectString)(output.TrustDirection),