@aws-sdk/client-accessanalyzer 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.
@@ -16,9 +16,9 @@ const serializeAws_restJson1ApplyArchiveRuleCommand = async (input, context) =>
16
16
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/archive-rule";
17
17
  let body;
18
18
  body = JSON.stringify({
19
- ...(input.analyzerArn !== undefined && input.analyzerArn !== null && { analyzerArn: input.analyzerArn }),
19
+ ...(input.analyzerArn != null && { analyzerArn: input.analyzerArn }),
20
20
  clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
21
- ...(input.ruleName !== undefined && input.ruleName !== null && { ruleName: input.ruleName }),
21
+ ...(input.ruleName != null && { ruleName: input.ruleName }),
22
22
  });
23
23
  return new protocol_http_1.HttpRequest({
24
24
  protocol,
@@ -66,10 +66,9 @@ const serializeAws_restJson1CreateAccessPreviewCommand = async (input, context)
66
66
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/access-preview";
67
67
  let body;
68
68
  body = JSON.stringify({
69
- ...(input.analyzerArn !== undefined && input.analyzerArn !== null && { analyzerArn: input.analyzerArn }),
69
+ ...(input.analyzerArn != null && { analyzerArn: input.analyzerArn }),
70
70
  clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
71
- ...(input.configurations !== undefined &&
72
- input.configurations !== null && {
71
+ ...(input.configurations != null && {
73
72
  configurations: serializeAws_restJson1ConfigurationsMap(input.configurations, context),
74
73
  }),
75
74
  });
@@ -93,15 +92,13 @@ const serializeAws_restJson1CreateAnalyzerCommand = async (input, context) => {
93
92
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/analyzer";
94
93
  let body;
95
94
  body = JSON.stringify({
96
- ...(input.analyzerName !== undefined && input.analyzerName !== null && { analyzerName: input.analyzerName }),
97
- ...(input.archiveRules !== undefined &&
98
- input.archiveRules !== null && {
95
+ ...(input.analyzerName != null && { analyzerName: input.analyzerName }),
96
+ ...(input.archiveRules != null && {
99
97
  archiveRules: serializeAws_restJson1InlineArchiveRulesList(input.archiveRules, context),
100
98
  }),
101
99
  clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
102
- ...(input.tags !== undefined &&
103
- input.tags !== null && { tags: serializeAws_restJson1TagsMap(input.tags, context) }),
104
- ...(input.type !== undefined && input.type !== null && { type: input.type }),
100
+ ...(input.tags != null && { tags: serializeAws_restJson1TagsMap(input.tags, context) }),
101
+ ...(input.type != null && { type: input.type }),
105
102
  });
106
103
  return new protocol_http_1.HttpRequest({
107
104
  protocol,
@@ -134,9 +131,8 @@ const serializeAws_restJson1CreateArchiveRuleCommand = async (input, context) =>
134
131
  let body;
135
132
  body = JSON.stringify({
136
133
  clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
137
- ...(input.filter !== undefined &&
138
- input.filter !== null && { filter: serializeAws_restJson1FilterCriteriaMap(input.filter, context) }),
139
- ...(input.ruleName !== undefined && input.ruleName !== null && { ruleName: input.ruleName }),
134
+ ...(input.filter != null && { filter: serializeAws_restJson1FilterCriteriaMap(input.filter, context) }),
135
+ ...(input.ruleName != null && { ruleName: input.ruleName }),
140
136
  });
141
137
  return new protocol_http_1.HttpRequest({
142
138
  protocol,
@@ -417,11 +413,10 @@ const serializeAws_restJson1ListAccessPreviewFindingsCommand = async (input, con
417
413
  }
418
414
  let body;
419
415
  body = JSON.stringify({
420
- ...(input.analyzerArn !== undefined && input.analyzerArn !== null && { analyzerArn: input.analyzerArn }),
421
- ...(input.filter !== undefined &&
422
- input.filter !== null && { filter: serializeAws_restJson1FilterCriteriaMap(input.filter, context) }),
423
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
424
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
416
+ ...(input.analyzerArn != null && { analyzerArn: input.analyzerArn }),
417
+ ...(input.filter != null && { filter: serializeAws_restJson1FilterCriteriaMap(input.filter, context) }),
418
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
419
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
425
420
  });
426
421
  return new protocol_http_1.HttpRequest({
427
422
  protocol,
@@ -464,10 +459,10 @@ const serializeAws_restJson1ListAnalyzedResourcesCommand = async (input, context
464
459
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/analyzed-resource";
465
460
  let body;
466
461
  body = JSON.stringify({
467
- ...(input.analyzerArn !== undefined && input.analyzerArn !== null && { analyzerArn: input.analyzerArn }),
468
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
469
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
470
- ...(input.resourceType !== undefined && input.resourceType !== null && { resourceType: input.resourceType }),
462
+ ...(input.analyzerArn != null && { analyzerArn: input.analyzerArn }),
463
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
464
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
465
+ ...(input.resourceType != null && { resourceType: input.resourceType }),
471
466
  });
472
467
  return new protocol_http_1.HttpRequest({
473
468
  protocol,
@@ -541,13 +536,11 @@ const serializeAws_restJson1ListFindingsCommand = async (input, context) => {
541
536
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/finding";
542
537
  let body;
543
538
  body = JSON.stringify({
544
- ...(input.analyzerArn !== undefined && input.analyzerArn !== null && { analyzerArn: input.analyzerArn }),
545
- ...(input.filter !== undefined &&
546
- input.filter !== null && { filter: serializeAws_restJson1FilterCriteriaMap(input.filter, context) }),
547
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
548
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
549
- ...(input.sort !== undefined &&
550
- input.sort !== null && { sort: serializeAws_restJson1SortCriteria(input.sort, context) }),
539
+ ...(input.analyzerArn != null && { analyzerArn: input.analyzerArn }),
540
+ ...(input.filter != null && { filter: serializeAws_restJson1FilterCriteriaMap(input.filter, context) }),
541
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
542
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
543
+ ...(input.sort != null && { sort: serializeAws_restJson1SortCriteria(input.sort, context) }),
551
544
  });
552
545
  return new protocol_http_1.HttpRequest({
553
546
  protocol,
@@ -618,12 +611,10 @@ const serializeAws_restJson1StartPolicyGenerationCommand = async (input, context
618
611
  let body;
619
612
  body = JSON.stringify({
620
613
  clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
621
- ...(input.cloudTrailDetails !== undefined &&
622
- input.cloudTrailDetails !== null && {
614
+ ...(input.cloudTrailDetails != null && {
623
615
  cloudTrailDetails: serializeAws_restJson1CloudTrailDetails(input.cloudTrailDetails, context),
624
616
  }),
625
- ...(input.policyGenerationDetails !== undefined &&
626
- input.policyGenerationDetails !== null && {
617
+ ...(input.policyGenerationDetails != null && {
627
618
  policyGenerationDetails: serializeAws_restJson1PolicyGenerationDetails(input.policyGenerationDetails, context),
628
619
  }),
629
620
  });
@@ -646,8 +637,8 @@ const serializeAws_restJson1StartResourceScanCommand = async (input, context) =>
646
637
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/resource/scan";
647
638
  let body;
648
639
  body = JSON.stringify({
649
- ...(input.analyzerArn !== undefined && input.analyzerArn !== null && { analyzerArn: input.analyzerArn }),
650
- ...(input.resourceArn !== undefined && input.resourceArn !== null && { resourceArn: input.resourceArn }),
640
+ ...(input.analyzerArn != null && { analyzerArn: input.analyzerArn }),
641
+ ...(input.resourceArn != null && { resourceArn: input.resourceArn }),
651
642
  });
652
643
  return new protocol_http_1.HttpRequest({
653
644
  protocol,
@@ -678,8 +669,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
678
669
  }
679
670
  let body;
680
671
  body = JSON.stringify({
681
- ...(input.tags !== undefined &&
682
- input.tags !== null && { tags: serializeAws_restJson1TagsMap(input.tags, context) }),
672
+ ...(input.tags != null && { tags: serializeAws_restJson1TagsMap(input.tags, context) }),
683
673
  });
684
674
  return new protocol_http_1.HttpRequest({
685
675
  protocol,
@@ -753,8 +743,7 @@ const serializeAws_restJson1UpdateArchiveRuleCommand = async (input, context) =>
753
743
  let body;
754
744
  body = JSON.stringify({
755
745
  clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
756
- ...(input.filter !== undefined &&
757
- input.filter !== null && { filter: serializeAws_restJson1FilterCriteriaMap(input.filter, context) }),
746
+ ...(input.filter != null && { filter: serializeAws_restJson1FilterCriteriaMap(input.filter, context) }),
758
747
  });
759
748
  return new protocol_http_1.HttpRequest({
760
749
  protocol,
@@ -776,12 +765,11 @@ const serializeAws_restJson1UpdateFindingsCommand = async (input, context) => {
776
765
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/finding";
777
766
  let body;
778
767
  body = JSON.stringify({
779
- ...(input.analyzerArn !== undefined && input.analyzerArn !== null && { analyzerArn: input.analyzerArn }),
768
+ ...(input.analyzerArn != null && { analyzerArn: input.analyzerArn }),
780
769
  clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
781
- ...(input.ids !== undefined &&
782
- input.ids !== null && { ids: serializeAws_restJson1FindingIdList(input.ids, context) }),
783
- ...(input.resourceArn !== undefined && input.resourceArn !== null && { resourceArn: input.resourceArn }),
784
- ...(input.status !== undefined && input.status !== null && { status: input.status }),
770
+ ...(input.ids != null && { ids: serializeAws_restJson1FindingIdList(input.ids, context) }),
771
+ ...(input.resourceArn != null && { resourceArn: input.resourceArn }),
772
+ ...(input.status != null && { status: input.status }),
785
773
  });
786
774
  return new protocol_http_1.HttpRequest({
787
775
  protocol,
@@ -806,12 +794,10 @@ const serializeAws_restJson1ValidatePolicyCommand = async (input, context) => {
806
794
  };
807
795
  let body;
808
796
  body = JSON.stringify({
809
- ...(input.locale !== undefined && input.locale !== null && { locale: input.locale }),
810
- ...(input.policyDocument !== undefined &&
811
- input.policyDocument !== null && { policyDocument: input.policyDocument }),
812
- ...(input.policyType !== undefined && input.policyType !== null && { policyType: input.policyType }),
813
- ...(input.validatePolicyResourceType !== undefined &&
814
- input.validatePolicyResourceType !== null && { validatePolicyResourceType: input.validatePolicyResourceType }),
797
+ ...(input.locale != null && { locale: input.locale }),
798
+ ...(input.policyDocument != null && { policyDocument: input.policyDocument }),
799
+ ...(input.policyType != null && { policyType: input.policyType }),
800
+ ...(input.validatePolicyResourceType != null && { validatePolicyResourceType: input.validatePolicyResourceType }),
815
801
  });
816
802
  return new protocol_http_1.HttpRequest({
817
803
  protocol,
@@ -2347,13 +2333,10 @@ const serializeAws_restJson1AclGrantee = (input, context) => {
2347
2333
  };
2348
2334
  const serializeAws_restJson1CloudTrailDetails = (input, context) => {
2349
2335
  return {
2350
- ...(input.accessRole !== undefined && input.accessRole !== null && { accessRole: input.accessRole }),
2351
- ...(input.endTime !== undefined &&
2352
- input.endTime !== null && { endTime: input.endTime.toISOString().split(".")[0] + "Z" }),
2353
- ...(input.startTime !== undefined &&
2354
- input.startTime !== null && { startTime: input.startTime.toISOString().split(".")[0] + "Z" }),
2355
- ...(input.trails !== undefined &&
2356
- input.trails !== null && { trails: serializeAws_restJson1TrailList(input.trails, context) }),
2336
+ ...(input.accessRole != null && { accessRole: input.accessRole }),
2337
+ ...(input.endTime != null && { endTime: input.endTime.toISOString().split(".")[0] + "Z" }),
2338
+ ...(input.startTime != null && { startTime: input.startTime.toISOString().split(".")[0] + "Z" }),
2339
+ ...(input.trails != null && { trails: serializeAws_restJson1TrailList(input.trails, context) }),
2357
2340
  };
2358
2341
  };
2359
2342
  const serializeAws_restJson1Configuration = (input, context) => {
@@ -2381,11 +2364,10 @@ const serializeAws_restJson1ConfigurationsMap = (input, context) => {
2381
2364
  };
2382
2365
  const serializeAws_restJson1Criterion = (input, context) => {
2383
2366
  return {
2384
- ...(input.contains !== undefined &&
2385
- input.contains !== null && { contains: serializeAws_restJson1ValueList(input.contains, context) }),
2386
- ...(input.eq !== undefined && input.eq !== null && { eq: serializeAws_restJson1ValueList(input.eq, context) }),
2387
- ...(input.exists !== undefined && input.exists !== null && { exists: input.exists }),
2388
- ...(input.neq !== undefined && input.neq !== null && { neq: serializeAws_restJson1ValueList(input.neq, context) }),
2367
+ ...(input.contains != null && { contains: serializeAws_restJson1ValueList(input.contains, context) }),
2368
+ ...(input.eq != null && { eq: serializeAws_restJson1ValueList(input.eq, context) }),
2369
+ ...(input.exists != null && { exists: input.exists }),
2370
+ ...(input.neq != null && { neq: serializeAws_restJson1ValueList(input.neq, context) }),
2389
2371
  };
2390
2372
  };
2391
2373
  const serializeAws_restJson1FilterCriteriaMap = (input, context) => {
@@ -2411,14 +2393,13 @@ const serializeAws_restJson1FindingIdList = (input, context) => {
2411
2393
  };
2412
2394
  const serializeAws_restJson1IamRoleConfiguration = (input, context) => {
2413
2395
  return {
2414
- ...(input.trustPolicy !== undefined && input.trustPolicy !== null && { trustPolicy: input.trustPolicy }),
2396
+ ...(input.trustPolicy != null && { trustPolicy: input.trustPolicy }),
2415
2397
  };
2416
2398
  };
2417
2399
  const serializeAws_restJson1InlineArchiveRule = (input, context) => {
2418
2400
  return {
2419
- ...(input.filter !== undefined &&
2420
- input.filter !== null && { filter: serializeAws_restJson1FilterCriteriaMap(input.filter, context) }),
2421
- ...(input.ruleName !== undefined && input.ruleName !== null && { ruleName: input.ruleName }),
2401
+ ...(input.filter != null && { filter: serializeAws_restJson1FilterCriteriaMap(input.filter, context) }),
2402
+ ...(input.ruleName != null && { ruleName: input.ruleName }),
2422
2403
  };
2423
2404
  };
2424
2405
  const serializeAws_restJson1InlineArchiveRulesList = (input, context) => {
@@ -2447,20 +2428,15 @@ const serializeAws_restJson1KmsConstraintsMap = (input, context) => {
2447
2428
  };
2448
2429
  const serializeAws_restJson1KmsGrantConfiguration = (input, context) => {
2449
2430
  return {
2450
- ...(input.constraints !== undefined &&
2451
- input.constraints !== null && {
2431
+ ...(input.constraints != null && {
2452
2432
  constraints: serializeAws_restJson1KmsGrantConstraints(input.constraints, context),
2453
2433
  }),
2454
- ...(input.granteePrincipal !== undefined &&
2455
- input.granteePrincipal !== null && { granteePrincipal: input.granteePrincipal }),
2456
- ...(input.issuingAccount !== undefined &&
2457
- input.issuingAccount !== null && { issuingAccount: input.issuingAccount }),
2458
- ...(input.operations !== undefined &&
2459
- input.operations !== null && {
2434
+ ...(input.granteePrincipal != null && { granteePrincipal: input.granteePrincipal }),
2435
+ ...(input.issuingAccount != null && { issuingAccount: input.issuingAccount }),
2436
+ ...(input.operations != null && {
2460
2437
  operations: serializeAws_restJson1KmsGrantOperationsList(input.operations, context),
2461
2438
  }),
2462
- ...(input.retiringPrincipal !== undefined &&
2463
- input.retiringPrincipal !== null && { retiringPrincipal: input.retiringPrincipal }),
2439
+ ...(input.retiringPrincipal != null && { retiringPrincipal: input.retiringPrincipal }),
2464
2440
  };
2465
2441
  };
2466
2442
  const serializeAws_restJson1KmsGrantConfigurationsList = (input, context) => {
@@ -2475,12 +2451,10 @@ const serializeAws_restJson1KmsGrantConfigurationsList = (input, context) => {
2475
2451
  };
2476
2452
  const serializeAws_restJson1KmsGrantConstraints = (input, context) => {
2477
2453
  return {
2478
- ...(input.encryptionContextEquals !== undefined &&
2479
- input.encryptionContextEquals !== null && {
2454
+ ...(input.encryptionContextEquals != null && {
2480
2455
  encryptionContextEquals: serializeAws_restJson1KmsConstraintsMap(input.encryptionContextEquals, context),
2481
2456
  }),
2482
- ...(input.encryptionContextSubset !== undefined &&
2483
- input.encryptionContextSubset !== null && {
2457
+ ...(input.encryptionContextSubset != null && {
2484
2458
  encryptionContextSubset: serializeAws_restJson1KmsConstraintsMap(input.encryptionContextSubset, context),
2485
2459
  }),
2486
2460
  };
@@ -2497,10 +2471,8 @@ const serializeAws_restJson1KmsGrantOperationsList = (input, context) => {
2497
2471
  };
2498
2472
  const serializeAws_restJson1KmsKeyConfiguration = (input, context) => {
2499
2473
  return {
2500
- ...(input.grants !== undefined &&
2501
- input.grants !== null && { grants: serializeAws_restJson1KmsGrantConfigurationsList(input.grants, context) }),
2502
- ...(input.keyPolicies !== undefined &&
2503
- input.keyPolicies !== null && {
2474
+ ...(input.grants != null && { grants: serializeAws_restJson1KmsGrantConfigurationsList(input.grants, context) }),
2475
+ ...(input.keyPolicies != null && {
2504
2476
  keyPolicies: serializeAws_restJson1KmsKeyPoliciesMap(input.keyPolicies, context),
2505
2477
  }),
2506
2478
  };
@@ -2527,7 +2499,7 @@ const serializeAws_restJson1NetworkOriginConfiguration = (input, context) => {
2527
2499
  };
2528
2500
  const serializeAws_restJson1PolicyGenerationDetails = (input, context) => {
2529
2501
  return {
2530
- ...(input.principalArn !== undefined && input.principalArn !== null && { principalArn: input.principalArn }),
2502
+ ...(input.principalArn != null && { principalArn: input.principalArn }),
2531
2503
  };
2532
2504
  };
2533
2505
  const serializeAws_restJson1RegionList = (input, context) => {
@@ -2542,14 +2514,11 @@ const serializeAws_restJson1RegionList = (input, context) => {
2542
2514
  };
2543
2515
  const serializeAws_restJson1S3AccessPointConfiguration = (input, context) => {
2544
2516
  return {
2545
- ...(input.accessPointPolicy !== undefined &&
2546
- input.accessPointPolicy !== null && { accessPointPolicy: input.accessPointPolicy }),
2547
- ...(input.networkOrigin !== undefined &&
2548
- input.networkOrigin !== null && {
2517
+ ...(input.accessPointPolicy != null && { accessPointPolicy: input.accessPointPolicy }),
2518
+ ...(input.networkOrigin != null && {
2549
2519
  networkOrigin: serializeAws_restJson1NetworkOriginConfiguration(input.networkOrigin, context),
2550
2520
  }),
2551
- ...(input.publicAccessBlock !== undefined &&
2552
- input.publicAccessBlock !== null && {
2521
+ ...(input.publicAccessBlock != null && {
2553
2522
  publicAccessBlock: serializeAws_restJson1S3PublicAccessBlockConfiguration(input.publicAccessBlock, context),
2554
2523
  }),
2555
2524
  };
@@ -2567,9 +2536,8 @@ const serializeAws_restJson1S3AccessPointConfigurationsMap = (input, context) =>
2567
2536
  };
2568
2537
  const serializeAws_restJson1S3BucketAclGrantConfiguration = (input, context) => {
2569
2538
  return {
2570
- ...(input.grantee !== undefined &&
2571
- input.grantee !== null && { grantee: serializeAws_restJson1AclGrantee(input.grantee, context) }),
2572
- ...(input.permission !== undefined && input.permission !== null && { permission: input.permission }),
2539
+ ...(input.grantee != null && { grantee: serializeAws_restJson1AclGrantee(input.grantee, context) }),
2540
+ ...(input.permission != null && { permission: input.permission }),
2573
2541
  };
2574
2542
  };
2575
2543
  const serializeAws_restJson1S3BucketAclGrantConfigurationsList = (input, context) => {
@@ -2584,44 +2552,39 @@ const serializeAws_restJson1S3BucketAclGrantConfigurationsList = (input, context
2584
2552
  };
2585
2553
  const serializeAws_restJson1S3BucketConfiguration = (input, context) => {
2586
2554
  return {
2587
- ...(input.accessPoints !== undefined &&
2588
- input.accessPoints !== null && {
2555
+ ...(input.accessPoints != null && {
2589
2556
  accessPoints: serializeAws_restJson1S3AccessPointConfigurationsMap(input.accessPoints, context),
2590
2557
  }),
2591
- ...(input.bucketAclGrants !== undefined &&
2592
- input.bucketAclGrants !== null && {
2558
+ ...(input.bucketAclGrants != null && {
2593
2559
  bucketAclGrants: serializeAws_restJson1S3BucketAclGrantConfigurationsList(input.bucketAclGrants, context),
2594
2560
  }),
2595
- ...(input.bucketPolicy !== undefined && input.bucketPolicy !== null && { bucketPolicy: input.bucketPolicy }),
2596
- ...(input.bucketPublicAccessBlock !== undefined &&
2597
- input.bucketPublicAccessBlock !== null && {
2561
+ ...(input.bucketPolicy != null && { bucketPolicy: input.bucketPolicy }),
2562
+ ...(input.bucketPublicAccessBlock != null && {
2598
2563
  bucketPublicAccessBlock: serializeAws_restJson1S3PublicAccessBlockConfiguration(input.bucketPublicAccessBlock, context),
2599
2564
  }),
2600
2565
  };
2601
2566
  };
2602
2567
  const serializeAws_restJson1S3PublicAccessBlockConfiguration = (input, context) => {
2603
2568
  return {
2604
- ...(input.ignorePublicAcls !== undefined &&
2605
- input.ignorePublicAcls !== null && { ignorePublicAcls: input.ignorePublicAcls }),
2606
- ...(input.restrictPublicBuckets !== undefined &&
2607
- input.restrictPublicBuckets !== null && { restrictPublicBuckets: input.restrictPublicBuckets }),
2569
+ ...(input.ignorePublicAcls != null && { ignorePublicAcls: input.ignorePublicAcls }),
2570
+ ...(input.restrictPublicBuckets != null && { restrictPublicBuckets: input.restrictPublicBuckets }),
2608
2571
  };
2609
2572
  };
2610
2573
  const serializeAws_restJson1SecretsManagerSecretConfiguration = (input, context) => {
2611
2574
  return {
2612
- ...(input.kmsKeyId !== undefined && input.kmsKeyId !== null && { kmsKeyId: input.kmsKeyId }),
2613
- ...(input.secretPolicy !== undefined && input.secretPolicy !== null && { secretPolicy: input.secretPolicy }),
2575
+ ...(input.kmsKeyId != null && { kmsKeyId: input.kmsKeyId }),
2576
+ ...(input.secretPolicy != null && { secretPolicy: input.secretPolicy }),
2614
2577
  };
2615
2578
  };
2616
2579
  const serializeAws_restJson1SortCriteria = (input, context) => {
2617
2580
  return {
2618
- ...(input.attributeName !== undefined && input.attributeName !== null && { attributeName: input.attributeName }),
2619
- ...(input.orderBy !== undefined && input.orderBy !== null && { orderBy: input.orderBy }),
2581
+ ...(input.attributeName != null && { attributeName: input.attributeName }),
2582
+ ...(input.orderBy != null && { orderBy: input.orderBy }),
2620
2583
  };
2621
2584
  };
2622
2585
  const serializeAws_restJson1SqsQueueConfiguration = (input, context) => {
2623
2586
  return {
2624
- ...(input.queuePolicy !== undefined && input.queuePolicy !== null && { queuePolicy: input.queuePolicy }),
2587
+ ...(input.queuePolicy != null && { queuePolicy: input.queuePolicy }),
2625
2588
  };
2626
2589
  };
2627
2590
  const serializeAws_restJson1TagsMap = (input, context) => {
@@ -2637,10 +2600,9 @@ const serializeAws_restJson1TagsMap = (input, context) => {
2637
2600
  };
2638
2601
  const serializeAws_restJson1Trail = (input, context) => {
2639
2602
  return {
2640
- ...(input.allRegions !== undefined && input.allRegions !== null && { allRegions: input.allRegions }),
2641
- ...(input.cloudTrailArn !== undefined && input.cloudTrailArn !== null && { cloudTrailArn: input.cloudTrailArn }),
2642
- ...(input.regions !== undefined &&
2643
- input.regions !== null && { regions: serializeAws_restJson1RegionList(input.regions, context) }),
2603
+ ...(input.allRegions != null && { allRegions: input.allRegions }),
2604
+ ...(input.cloudTrailArn != null && { cloudTrailArn: input.cloudTrailArn }),
2605
+ ...(input.regions != null && { regions: serializeAws_restJson1RegionList(input.regions, context) }),
2644
2606
  };
2645
2607
  };
2646
2608
  const serializeAws_restJson1TrailList = (input, context) => {
@@ -2665,51 +2627,39 @@ const serializeAws_restJson1ValueList = (input, context) => {
2665
2627
  };
2666
2628
  const serializeAws_restJson1VpcConfiguration = (input, context) => {
2667
2629
  return {
2668
- ...(input.vpcId !== undefined && input.vpcId !== null && { vpcId: input.vpcId }),
2630
+ ...(input.vpcId != null && { vpcId: input.vpcId }),
2669
2631
  };
2670
2632
  };
2671
2633
  const deserializeAws_restJson1AccessPreview = (output, context) => {
2672
2634
  return {
2673
2635
  analyzerArn: (0, smithy_client_1.expectString)(output.analyzerArn),
2674
- configurations: output.configurations !== undefined && output.configurations !== null
2636
+ configurations: output.configurations != null
2675
2637
  ? deserializeAws_restJson1ConfigurationsMap(output.configurations, context)
2676
2638
  : undefined,
2677
- createdAt: output.createdAt !== undefined && output.createdAt !== null
2678
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.createdAt))
2679
- : undefined,
2639
+ createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.createdAt)) : undefined,
2680
2640
  id: (0, smithy_client_1.expectString)(output.id),
2681
2641
  status: (0, smithy_client_1.expectString)(output.status),
2682
- statusReason: output.statusReason !== undefined && output.statusReason !== null
2642
+ statusReason: output.statusReason != null
2683
2643
  ? deserializeAws_restJson1AccessPreviewStatusReason(output.statusReason, context)
2684
2644
  : undefined,
2685
2645
  };
2686
2646
  };
2687
2647
  const deserializeAws_restJson1AccessPreviewFinding = (output, context) => {
2688
2648
  return {
2689
- action: output.action !== undefined && output.action !== null
2690
- ? deserializeAws_restJson1ActionList(output.action, context)
2691
- : undefined,
2649
+ action: output.action != null ? deserializeAws_restJson1ActionList(output.action, context) : undefined,
2692
2650
  changeType: (0, smithy_client_1.expectString)(output.changeType),
2693
- condition: output.condition !== undefined && output.condition !== null
2694
- ? deserializeAws_restJson1ConditionKeyMap(output.condition, context)
2695
- : undefined,
2696
- createdAt: output.createdAt !== undefined && output.createdAt !== null
2697
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.createdAt))
2698
- : undefined,
2651
+ condition: output.condition != null ? deserializeAws_restJson1ConditionKeyMap(output.condition, context) : undefined,
2652
+ createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.createdAt)) : undefined,
2699
2653
  error: (0, smithy_client_1.expectString)(output.error),
2700
2654
  existingFindingId: (0, smithy_client_1.expectString)(output.existingFindingId),
2701
2655
  existingFindingStatus: (0, smithy_client_1.expectString)(output.existingFindingStatus),
2702
2656
  id: (0, smithy_client_1.expectString)(output.id),
2703
2657
  isPublic: (0, smithy_client_1.expectBoolean)(output.isPublic),
2704
- principal: output.principal !== undefined && output.principal !== null
2705
- ? deserializeAws_restJson1PrincipalMap(output.principal, context)
2706
- : undefined,
2658
+ principal: output.principal != null ? deserializeAws_restJson1PrincipalMap(output.principal, context) : undefined,
2707
2659
  resource: (0, smithy_client_1.expectString)(output.resource),
2708
2660
  resourceOwnerAccount: (0, smithy_client_1.expectString)(output.resourceOwnerAccount),
2709
2661
  resourceType: (0, smithy_client_1.expectString)(output.resourceType),
2710
- sources: output.sources !== undefined && output.sources !== null
2711
- ? deserializeAws_restJson1FindingSourceList(output.sources, context)
2712
- : undefined,
2662
+ sources: output.sources != null ? deserializeAws_restJson1FindingSourceList(output.sources, context) : undefined,
2713
2663
  status: (0, smithy_client_1.expectString)(output.status),
2714
2664
  };
2715
2665
  };
@@ -2743,12 +2693,10 @@ const deserializeAws_restJson1AccessPreviewStatusReason = (output, context) => {
2743
2693
  const deserializeAws_restJson1AccessPreviewSummary = (output, context) => {
2744
2694
  return {
2745
2695
  analyzerArn: (0, smithy_client_1.expectString)(output.analyzerArn),
2746
- createdAt: output.createdAt !== undefined && output.createdAt !== null
2747
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.createdAt))
2748
- : undefined,
2696
+ createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.createdAt)) : undefined,
2749
2697
  id: (0, smithy_client_1.expectString)(output.id),
2750
2698
  status: (0, smithy_client_1.expectString)(output.status),
2751
- statusReason: output.statusReason !== undefined && output.statusReason !== null
2699
+ statusReason: output.statusReason != null
2752
2700
  ? deserializeAws_restJson1AccessPreviewStatusReason(output.statusReason, context)
2753
2701
  : undefined,
2754
2702
  };
@@ -2775,27 +2723,17 @@ const deserializeAws_restJson1ActionList = (output, context) => {
2775
2723
  };
2776
2724
  const deserializeAws_restJson1AnalyzedResource = (output, context) => {
2777
2725
  return {
2778
- actions: output.actions !== undefined && output.actions !== null
2779
- ? deserializeAws_restJson1ActionList(output.actions, context)
2780
- : undefined,
2781
- analyzedAt: output.analyzedAt !== undefined && output.analyzedAt !== null
2782
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.analyzedAt))
2783
- : undefined,
2784
- createdAt: output.createdAt !== undefined && output.createdAt !== null
2785
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.createdAt))
2786
- : undefined,
2726
+ actions: output.actions != null ? deserializeAws_restJson1ActionList(output.actions, context) : undefined,
2727
+ analyzedAt: output.analyzedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.analyzedAt)) : undefined,
2728
+ createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.createdAt)) : undefined,
2787
2729
  error: (0, smithy_client_1.expectString)(output.error),
2788
2730
  isPublic: (0, smithy_client_1.expectBoolean)(output.isPublic),
2789
2731
  resourceArn: (0, smithy_client_1.expectString)(output.resourceArn),
2790
2732
  resourceOwnerAccount: (0, smithy_client_1.expectString)(output.resourceOwnerAccount),
2791
2733
  resourceType: (0, smithy_client_1.expectString)(output.resourceType),
2792
- sharedVia: output.sharedVia !== undefined && output.sharedVia !== null
2793
- ? deserializeAws_restJson1SharedViaList(output.sharedVia, context)
2794
- : undefined,
2734
+ sharedVia: output.sharedVia != null ? deserializeAws_restJson1SharedViaList(output.sharedVia, context) : undefined,
2795
2735
  status: (0, smithy_client_1.expectString)(output.status),
2796
- updatedAt: output.updatedAt !== undefined && output.updatedAt !== null
2797
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.updatedAt))
2798
- : undefined,
2736
+ updatedAt: output.updatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.updatedAt)) : undefined,
2799
2737
  };
2800
2738
  };
2801
2739
  const deserializeAws_restJson1AnalyzedResourcesList = (output, context) => {
@@ -2830,21 +2768,15 @@ const deserializeAws_restJson1AnalyzersList = (output, context) => {
2830
2768
  const deserializeAws_restJson1AnalyzerSummary = (output, context) => {
2831
2769
  return {
2832
2770
  arn: (0, smithy_client_1.expectString)(output.arn),
2833
- createdAt: output.createdAt !== undefined && output.createdAt !== null
2834
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.createdAt))
2835
- : undefined,
2771
+ createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.createdAt)) : undefined,
2836
2772
  lastResourceAnalyzed: (0, smithy_client_1.expectString)(output.lastResourceAnalyzed),
2837
- lastResourceAnalyzedAt: output.lastResourceAnalyzedAt !== undefined && output.lastResourceAnalyzedAt !== null
2773
+ lastResourceAnalyzedAt: output.lastResourceAnalyzedAt != null
2838
2774
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.lastResourceAnalyzedAt))
2839
2775
  : undefined,
2840
2776
  name: (0, smithy_client_1.expectString)(output.name),
2841
2777
  status: (0, smithy_client_1.expectString)(output.status),
2842
- statusReason: output.statusReason !== undefined && output.statusReason !== null
2843
- ? deserializeAws_restJson1StatusReason(output.statusReason, context)
2844
- : undefined,
2845
- tags: output.tags !== undefined && output.tags !== null
2846
- ? deserializeAws_restJson1TagsMap(output.tags, context)
2847
- : undefined,
2778
+ statusReason: output.statusReason != null ? deserializeAws_restJson1StatusReason(output.statusReason, context) : undefined,
2779
+ tags: output.tags != null ? deserializeAws_restJson1TagsMap(output.tags, context) : undefined,
2848
2780
  type: (0, smithy_client_1.expectString)(output.type),
2849
2781
  };
2850
2782
  };
@@ -2861,27 +2793,17 @@ const deserializeAws_restJson1ArchiveRulesList = (output, context) => {
2861
2793
  };
2862
2794
  const deserializeAws_restJson1ArchiveRuleSummary = (output, context) => {
2863
2795
  return {
2864
- createdAt: output.createdAt !== undefined && output.createdAt !== null
2865
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.createdAt))
2866
- : undefined,
2867
- filter: output.filter !== undefined && output.filter !== null
2868
- ? deserializeAws_restJson1FilterCriteriaMap(output.filter, context)
2869
- : undefined,
2796
+ createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.createdAt)) : undefined,
2797
+ filter: output.filter != null ? deserializeAws_restJson1FilterCriteriaMap(output.filter, context) : undefined,
2870
2798
  ruleName: (0, smithy_client_1.expectString)(output.ruleName),
2871
- updatedAt: output.updatedAt !== undefined && output.updatedAt !== null
2872
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.updatedAt))
2873
- : undefined,
2799
+ updatedAt: output.updatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.updatedAt)) : undefined,
2874
2800
  };
2875
2801
  };
2876
2802
  const deserializeAws_restJson1CloudTrailProperties = (output, context) => {
2877
2803
  return {
2878
- endTime: output.endTime !== undefined && output.endTime !== null
2879
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.endTime))
2880
- : undefined,
2881
- startTime: output.startTime !== undefined && output.startTime !== null
2882
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.startTime))
2883
- : undefined,
2884
- trailProperties: output.trailProperties !== undefined && output.trailProperties !== null
2804
+ endTime: output.endTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.endTime)) : undefined,
2805
+ startTime: output.startTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.startTime)) : undefined,
2806
+ trailProperties: output.trailProperties != null
2885
2807
  ? deserializeAws_restJson1TrailPropertiesList(output.trailProperties, context)
2886
2808
  : undefined,
2887
2809
  };
@@ -2938,14 +2860,10 @@ const deserializeAws_restJson1ConfigurationsMap = (output, context) => {
2938
2860
  };
2939
2861
  const deserializeAws_restJson1Criterion = (output, context) => {
2940
2862
  return {
2941
- contains: output.contains !== undefined && output.contains !== null
2942
- ? deserializeAws_restJson1ValueList(output.contains, context)
2943
- : undefined,
2944
- eq: output.eq !== undefined && output.eq !== null ? deserializeAws_restJson1ValueList(output.eq, context) : undefined,
2863
+ contains: output.contains != null ? deserializeAws_restJson1ValueList(output.contains, context) : undefined,
2864
+ eq: output.eq != null ? deserializeAws_restJson1ValueList(output.eq, context) : undefined,
2945
2865
  exists: (0, smithy_client_1.expectBoolean)(output.exists),
2946
- neq: output.neq !== undefined && output.neq !== null
2947
- ? deserializeAws_restJson1ValueList(output.neq, context)
2948
- : undefined,
2866
+ neq: output.neq != null ? deserializeAws_restJson1ValueList(output.neq, context) : undefined,
2949
2867
  };
2950
2868
  };
2951
2869
  const deserializeAws_restJson1FilterCriteriaMap = (output, context) => {
@@ -2961,34 +2879,20 @@ const deserializeAws_restJson1FilterCriteriaMap = (output, context) => {
2961
2879
  };
2962
2880
  const deserializeAws_restJson1Finding = (output, context) => {
2963
2881
  return {
2964
- action: output.action !== undefined && output.action !== null
2965
- ? deserializeAws_restJson1ActionList(output.action, context)
2966
- : undefined,
2967
- analyzedAt: output.analyzedAt !== undefined && output.analyzedAt !== null
2968
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.analyzedAt))
2969
- : undefined,
2970
- condition: output.condition !== undefined && output.condition !== null
2971
- ? deserializeAws_restJson1ConditionKeyMap(output.condition, context)
2972
- : undefined,
2973
- createdAt: output.createdAt !== undefined && output.createdAt !== null
2974
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.createdAt))
2975
- : undefined,
2882
+ action: output.action != null ? deserializeAws_restJson1ActionList(output.action, context) : undefined,
2883
+ analyzedAt: output.analyzedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.analyzedAt)) : undefined,
2884
+ condition: output.condition != null ? deserializeAws_restJson1ConditionKeyMap(output.condition, context) : undefined,
2885
+ createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.createdAt)) : undefined,
2976
2886
  error: (0, smithy_client_1.expectString)(output.error),
2977
2887
  id: (0, smithy_client_1.expectString)(output.id),
2978
2888
  isPublic: (0, smithy_client_1.expectBoolean)(output.isPublic),
2979
- principal: output.principal !== undefined && output.principal !== null
2980
- ? deserializeAws_restJson1PrincipalMap(output.principal, context)
2981
- : undefined,
2889
+ principal: output.principal != null ? deserializeAws_restJson1PrincipalMap(output.principal, context) : undefined,
2982
2890
  resource: (0, smithy_client_1.expectString)(output.resource),
2983
2891
  resourceOwnerAccount: (0, smithy_client_1.expectString)(output.resourceOwnerAccount),
2984
2892
  resourceType: (0, smithy_client_1.expectString)(output.resourceType),
2985
- sources: output.sources !== undefined && output.sources !== null
2986
- ? deserializeAws_restJson1FindingSourceList(output.sources, context)
2987
- : undefined,
2893
+ sources: output.sources != null ? deserializeAws_restJson1FindingSourceList(output.sources, context) : undefined,
2988
2894
  status: (0, smithy_client_1.expectString)(output.status),
2989
- updatedAt: output.updatedAt !== undefined && output.updatedAt !== null
2990
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.updatedAt))
2991
- : undefined,
2895
+ updatedAt: output.updatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.updatedAt)) : undefined,
2992
2896
  };
2993
2897
  };
2994
2898
  const deserializeAws_restJson1FindingsList = (output, context) => {
@@ -3004,9 +2908,7 @@ const deserializeAws_restJson1FindingsList = (output, context) => {
3004
2908
  };
3005
2909
  const deserializeAws_restJson1FindingSource = (output, context) => {
3006
2910
  return {
3007
- detail: output.detail !== undefined && output.detail !== null
3008
- ? deserializeAws_restJson1FindingSourceDetail(output.detail, context)
3009
- : undefined,
2911
+ detail: output.detail != null ? deserializeAws_restJson1FindingSourceDetail(output.detail, context) : undefined,
3010
2912
  type: (0, smithy_client_1.expectString)(output.type),
3011
2913
  };
3012
2914
  };
@@ -3028,34 +2930,20 @@ const deserializeAws_restJson1FindingSourceList = (output, context) => {
3028
2930
  };
3029
2931
  const deserializeAws_restJson1FindingSummary = (output, context) => {
3030
2932
  return {
3031
- action: output.action !== undefined && output.action !== null
3032
- ? deserializeAws_restJson1ActionList(output.action, context)
3033
- : undefined,
3034
- analyzedAt: output.analyzedAt !== undefined && output.analyzedAt !== null
3035
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.analyzedAt))
3036
- : undefined,
3037
- condition: output.condition !== undefined && output.condition !== null
3038
- ? deserializeAws_restJson1ConditionKeyMap(output.condition, context)
3039
- : undefined,
3040
- createdAt: output.createdAt !== undefined && output.createdAt !== null
3041
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.createdAt))
3042
- : undefined,
2933
+ action: output.action != null ? deserializeAws_restJson1ActionList(output.action, context) : undefined,
2934
+ analyzedAt: output.analyzedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.analyzedAt)) : undefined,
2935
+ condition: output.condition != null ? deserializeAws_restJson1ConditionKeyMap(output.condition, context) : undefined,
2936
+ createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.createdAt)) : undefined,
3043
2937
  error: (0, smithy_client_1.expectString)(output.error),
3044
2938
  id: (0, smithy_client_1.expectString)(output.id),
3045
2939
  isPublic: (0, smithy_client_1.expectBoolean)(output.isPublic),
3046
- principal: output.principal !== undefined && output.principal !== null
3047
- ? deserializeAws_restJson1PrincipalMap(output.principal, context)
3048
- : undefined,
2940
+ principal: output.principal != null ? deserializeAws_restJson1PrincipalMap(output.principal, context) : undefined,
3049
2941
  resource: (0, smithy_client_1.expectString)(output.resource),
3050
2942
  resourceOwnerAccount: (0, smithy_client_1.expectString)(output.resourceOwnerAccount),
3051
2943
  resourceType: (0, smithy_client_1.expectString)(output.resourceType),
3052
- sources: output.sources !== undefined && output.sources !== null
3053
- ? deserializeAws_restJson1FindingSourceList(output.sources, context)
3054
- : undefined,
2944
+ sources: output.sources != null ? deserializeAws_restJson1FindingSourceList(output.sources, context) : undefined,
3055
2945
  status: (0, smithy_client_1.expectString)(output.status),
3056
- updatedAt: output.updatedAt !== undefined && output.updatedAt !== null
3057
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.updatedAt))
3058
- : undefined,
2946
+ updatedAt: output.updatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.updatedAt)) : undefined,
3059
2947
  };
3060
2948
  };
3061
2949
  const deserializeAws_restJson1GeneratedPolicy = (output, context) => {
@@ -3076,7 +2964,7 @@ const deserializeAws_restJson1GeneratedPolicyList = (output, context) => {
3076
2964
  };
3077
2965
  const deserializeAws_restJson1GeneratedPolicyProperties = (output, context) => {
3078
2966
  return {
3079
- cloudTrailProperties: output.cloudTrailProperties !== undefined && output.cloudTrailProperties !== null
2967
+ cloudTrailProperties: output.cloudTrailProperties != null
3080
2968
  ? deserializeAws_restJson1CloudTrailProperties(output.cloudTrailProperties, context)
3081
2969
  : undefined,
3082
2970
  isComplete: (0, smithy_client_1.expectBoolean)(output.isComplete),
@@ -3085,10 +2973,10 @@ const deserializeAws_restJson1GeneratedPolicyProperties = (output, context) => {
3085
2973
  };
3086
2974
  const deserializeAws_restJson1GeneratedPolicyResult = (output, context) => {
3087
2975
  return {
3088
- generatedPolicies: output.generatedPolicies !== undefined && output.generatedPolicies !== null
2976
+ generatedPolicies: output.generatedPolicies != null
3089
2977
  ? deserializeAws_restJson1GeneratedPolicyList(output.generatedPolicies, context)
3090
2978
  : undefined,
3091
- properties: output.properties !== undefined && output.properties !== null
2979
+ properties: output.properties != null
3092
2980
  ? deserializeAws_restJson1GeneratedPolicyProperties(output.properties, context)
3093
2981
  : undefined,
3094
2982
  };
@@ -3103,16 +2991,10 @@ const deserializeAws_restJson1InternetConfiguration = (output, context) => {
3103
2991
  };
3104
2992
  const deserializeAws_restJson1JobDetails = (output, context) => {
3105
2993
  return {
3106
- completedOn: output.completedOn !== undefined && output.completedOn !== null
3107
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.completedOn))
3108
- : undefined,
3109
- jobError: output.jobError !== undefined && output.jobError !== null
3110
- ? deserializeAws_restJson1JobError(output.jobError, context)
3111
- : undefined,
2994
+ completedOn: output.completedOn != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.completedOn)) : undefined,
2995
+ jobError: output.jobError != null ? deserializeAws_restJson1JobError(output.jobError, context) : undefined,
3112
2996
  jobId: (0, smithy_client_1.expectString)(output.jobId),
3113
- startedOn: output.startedOn !== undefined && output.startedOn !== null
3114
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.startedOn))
3115
- : undefined,
2997
+ startedOn: output.startedOn != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.startedOn)) : undefined,
3116
2998
  status: (0, smithy_client_1.expectString)(output.status),
3117
2999
  };
3118
3000
  };
@@ -3135,12 +3017,10 @@ const deserializeAws_restJson1KmsConstraintsMap = (output, context) => {
3135
3017
  };
3136
3018
  const deserializeAws_restJson1KmsGrantConfiguration = (output, context) => {
3137
3019
  return {
3138
- constraints: output.constraints !== undefined && output.constraints !== null
3139
- ? deserializeAws_restJson1KmsGrantConstraints(output.constraints, context)
3140
- : undefined,
3020
+ constraints: output.constraints != null ? deserializeAws_restJson1KmsGrantConstraints(output.constraints, context) : undefined,
3141
3021
  granteePrincipal: (0, smithy_client_1.expectString)(output.granteePrincipal),
3142
3022
  issuingAccount: (0, smithy_client_1.expectString)(output.issuingAccount),
3143
- operations: output.operations !== undefined && output.operations !== null
3023
+ operations: output.operations != null
3144
3024
  ? deserializeAws_restJson1KmsGrantOperationsList(output.operations, context)
3145
3025
  : undefined,
3146
3026
  retiringPrincipal: (0, smithy_client_1.expectString)(output.retiringPrincipal),
@@ -3159,10 +3039,10 @@ const deserializeAws_restJson1KmsGrantConfigurationsList = (output, context) =>
3159
3039
  };
3160
3040
  const deserializeAws_restJson1KmsGrantConstraints = (output, context) => {
3161
3041
  return {
3162
- encryptionContextEquals: output.encryptionContextEquals !== undefined && output.encryptionContextEquals !== null
3042
+ encryptionContextEquals: output.encryptionContextEquals != null
3163
3043
  ? deserializeAws_restJson1KmsConstraintsMap(output.encryptionContextEquals, context)
3164
3044
  : undefined,
3165
- encryptionContextSubset: output.encryptionContextSubset !== undefined && output.encryptionContextSubset !== null
3045
+ encryptionContextSubset: output.encryptionContextSubset != null
3166
3046
  ? deserializeAws_restJson1KmsConstraintsMap(output.encryptionContextSubset, context)
3167
3047
  : undefined,
3168
3048
  };
@@ -3180,12 +3060,8 @@ const deserializeAws_restJson1KmsGrantOperationsList = (output, context) => {
3180
3060
  };
3181
3061
  const deserializeAws_restJson1KmsKeyConfiguration = (output, context) => {
3182
3062
  return {
3183
- grants: output.grants !== undefined && output.grants !== null
3184
- ? deserializeAws_restJson1KmsGrantConfigurationsList(output.grants, context)
3185
- : undefined,
3186
- keyPolicies: output.keyPolicies !== undefined && output.keyPolicies !== null
3187
- ? deserializeAws_restJson1KmsKeyPoliciesMap(output.keyPolicies, context)
3188
- : undefined,
3063
+ grants: output.grants != null ? deserializeAws_restJson1KmsGrantConfigurationsList(output.grants, context) : undefined,
3064
+ keyPolicies: output.keyPolicies != null ? deserializeAws_restJson1KmsKeyPoliciesMap(output.keyPolicies, context) : undefined,
3189
3065
  };
3190
3066
  };
3191
3067
  const deserializeAws_restJson1KmsKeyPoliciesMap = (output, context) => {
@@ -3201,12 +3077,8 @@ const deserializeAws_restJson1KmsKeyPoliciesMap = (output, context) => {
3201
3077
  };
3202
3078
  const deserializeAws_restJson1Location = (output, context) => {
3203
3079
  return {
3204
- path: output.path !== undefined && output.path !== null
3205
- ? deserializeAws_restJson1PathElementList(output.path, context)
3206
- : undefined,
3207
- span: output.span !== undefined && output.span !== null
3208
- ? deserializeAws_restJson1Span(output.span, context)
3209
- : undefined,
3080
+ path: output.path != null ? deserializeAws_restJson1PathElementList(output.path, context) : undefined,
3081
+ span: output.span != null ? deserializeAws_restJson1Span(output.span, context) : undefined,
3210
3082
  };
3211
3083
  };
3212
3084
  const deserializeAws_restJson1LocationList = (output, context) => {
@@ -3263,14 +3135,10 @@ const deserializeAws_restJson1PathElementList = (output, context) => {
3263
3135
  };
3264
3136
  const deserializeAws_restJson1PolicyGeneration = (output, context) => {
3265
3137
  return {
3266
- completedOn: output.completedOn !== undefined && output.completedOn !== null
3267
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.completedOn))
3268
- : undefined,
3138
+ completedOn: output.completedOn != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.completedOn)) : undefined,
3269
3139
  jobId: (0, smithy_client_1.expectString)(output.jobId),
3270
3140
  principalArn: (0, smithy_client_1.expectString)(output.principalArn),
3271
- startedOn: output.startedOn !== undefined && output.startedOn !== null
3272
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.startedOn))
3273
- : undefined,
3141
+ startedOn: output.startedOn != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.startedOn)) : undefined,
3274
3142
  status: (0, smithy_client_1.expectString)(output.status),
3275
3143
  };
3276
3144
  };
@@ -3317,10 +3185,10 @@ const deserializeAws_restJson1RegionList = (output, context) => {
3317
3185
  const deserializeAws_restJson1S3AccessPointConfiguration = (output, context) => {
3318
3186
  return {
3319
3187
  accessPointPolicy: (0, smithy_client_1.expectString)(output.accessPointPolicy),
3320
- networkOrigin: output.networkOrigin !== undefined && output.networkOrigin !== null
3188
+ networkOrigin: output.networkOrigin != null
3321
3189
  ? deserializeAws_restJson1NetworkOriginConfiguration((0, smithy_client_1.expectUnion)(output.networkOrigin), context)
3322
3190
  : undefined,
3323
- publicAccessBlock: output.publicAccessBlock !== undefined && output.publicAccessBlock !== null
3191
+ publicAccessBlock: output.publicAccessBlock != null
3324
3192
  ? deserializeAws_restJson1S3PublicAccessBlockConfiguration(output.publicAccessBlock, context)
3325
3193
  : undefined,
3326
3194
  };
@@ -3338,9 +3206,7 @@ const deserializeAws_restJson1S3AccessPointConfigurationsMap = (output, context)
3338
3206
  };
3339
3207
  const deserializeAws_restJson1S3BucketAclGrantConfiguration = (output, context) => {
3340
3208
  return {
3341
- grantee: output.grantee !== undefined && output.grantee !== null
3342
- ? deserializeAws_restJson1AclGrantee((0, smithy_client_1.expectUnion)(output.grantee), context)
3343
- : undefined,
3209
+ grantee: output.grantee != null ? deserializeAws_restJson1AclGrantee((0, smithy_client_1.expectUnion)(output.grantee), context) : undefined,
3344
3210
  permission: (0, smithy_client_1.expectString)(output.permission),
3345
3211
  };
3346
3212
  };
@@ -3357,14 +3223,14 @@ const deserializeAws_restJson1S3BucketAclGrantConfigurationsList = (output, cont
3357
3223
  };
3358
3224
  const deserializeAws_restJson1S3BucketConfiguration = (output, context) => {
3359
3225
  return {
3360
- accessPoints: output.accessPoints !== undefined && output.accessPoints !== null
3226
+ accessPoints: output.accessPoints != null
3361
3227
  ? deserializeAws_restJson1S3AccessPointConfigurationsMap(output.accessPoints, context)
3362
3228
  : undefined,
3363
- bucketAclGrants: output.bucketAclGrants !== undefined && output.bucketAclGrants !== null
3229
+ bucketAclGrants: output.bucketAclGrants != null
3364
3230
  ? deserializeAws_restJson1S3BucketAclGrantConfigurationsList(output.bucketAclGrants, context)
3365
3231
  : undefined,
3366
3232
  bucketPolicy: (0, smithy_client_1.expectString)(output.bucketPolicy),
3367
- bucketPublicAccessBlock: output.bucketPublicAccessBlock !== undefined && output.bucketPublicAccessBlock !== null
3233
+ bucketPublicAccessBlock: output.bucketPublicAccessBlock != null
3368
3234
  ? deserializeAws_restJson1S3PublicAccessBlockConfiguration(output.bucketPublicAccessBlock, context)
3369
3235
  : undefined,
3370
3236
  };
@@ -3394,12 +3260,8 @@ const deserializeAws_restJson1SharedViaList = (output, context) => {
3394
3260
  };
3395
3261
  const deserializeAws_restJson1Span = (output, context) => {
3396
3262
  return {
3397
- end: output.end !== undefined && output.end !== null
3398
- ? deserializeAws_restJson1Position(output.end, context)
3399
- : undefined,
3400
- start: output.start !== undefined && output.start !== null
3401
- ? deserializeAws_restJson1Position(output.start, context)
3402
- : undefined,
3263
+ end: output.end != null ? deserializeAws_restJson1Position(output.end, context) : undefined,
3264
+ start: output.start != null ? deserializeAws_restJson1Position(output.start, context) : undefined,
3403
3265
  };
3404
3266
  };
3405
3267
  const deserializeAws_restJson1SqsQueueConfiguration = (output, context) => {
@@ -3433,9 +3295,7 @@ const deserializeAws_restJson1TrailProperties = (output, context) => {
3433
3295
  return {
3434
3296
  allRegions: (0, smithy_client_1.expectBoolean)(output.allRegions),
3435
3297
  cloudTrailArn: (0, smithy_client_1.expectString)(output.cloudTrailArn),
3436
- regions: output.regions !== undefined && output.regions !== null
3437
- ? deserializeAws_restJson1RegionList(output.regions, context)
3438
- : undefined,
3298
+ regions: output.regions != null ? deserializeAws_restJson1RegionList(output.regions, context) : undefined,
3439
3299
  };
3440
3300
  };
3441
3301
  const deserializeAws_restJson1TrailPropertiesList = (output, context) => {
@@ -3455,9 +3315,7 @@ const deserializeAws_restJson1ValidatePolicyFinding = (output, context) => {
3455
3315
  findingType: (0, smithy_client_1.expectString)(output.findingType),
3456
3316
  issueCode: (0, smithy_client_1.expectString)(output.issueCode),
3457
3317
  learnMoreLink: (0, smithy_client_1.expectString)(output.learnMoreLink),
3458
- locations: output.locations !== undefined && output.locations !== null
3459
- ? deserializeAws_restJson1LocationList(output.locations, context)
3460
- : undefined,
3318
+ locations: output.locations != null ? deserializeAws_restJson1LocationList(output.locations, context) : undefined,
3461
3319
  };
3462
3320
  };
3463
3321
  const deserializeAws_restJson1ValidatePolicyFindingList = (output, context) => {