@aws-sdk/client-accessanalyzer 3.312.0 → 3.315.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.
- package/dist-cjs/protocols/Aws_restJson1.js +386 -1418
- package/dist-es/protocols/Aws_restJson1.js +341 -1373
- package/package.json +6 -6
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
2
|
-
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean,
|
|
2
|
+
import { _json, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, resolvedPath as __resolvedPath, strictParseInt32 as __strictParseInt32, take, withBaseException, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
4
4
|
import { AccessAnalyzerServiceException as __BaseException } from "../models/AccessAnalyzerServiceException";
|
|
5
|
-
import { AccessDeniedException,
|
|
5
|
+
import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
6
6
|
export const se_ApplyArchiveRuleCommand = async (input, context) => {
|
|
7
7
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
8
8
|
const headers = {
|
|
@@ -10,11 +10,11 @@ export const se_ApplyArchiveRuleCommand = async (input, context) => {
|
|
|
10
10
|
};
|
|
11
11
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/archive-rule";
|
|
12
12
|
let body;
|
|
13
|
-
body = JSON.stringify({
|
|
14
|
-
|
|
15
|
-
clientToken:
|
|
16
|
-
|
|
17
|
-
});
|
|
13
|
+
body = JSON.stringify(take(input, {
|
|
14
|
+
analyzerArn: [],
|
|
15
|
+
clientToken: (_) => _ ?? generateIdempotencyToken(),
|
|
16
|
+
ruleName: [],
|
|
17
|
+
}));
|
|
18
18
|
return new __HttpRequest({
|
|
19
19
|
protocol,
|
|
20
20
|
hostname,
|
|
@@ -48,11 +48,11 @@ export const se_CreateAccessPreviewCommand = async (input, context) => {
|
|
|
48
48
|
};
|
|
49
49
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/access-preview";
|
|
50
50
|
let body;
|
|
51
|
-
body = JSON.stringify({
|
|
52
|
-
|
|
53
|
-
clientToken:
|
|
54
|
-
|
|
55
|
-
});
|
|
51
|
+
body = JSON.stringify(take(input, {
|
|
52
|
+
analyzerArn: [],
|
|
53
|
+
clientToken: (_) => _ ?? generateIdempotencyToken(),
|
|
54
|
+
configurations: (_) => _json(_),
|
|
55
|
+
}));
|
|
56
56
|
return new __HttpRequest({
|
|
57
57
|
protocol,
|
|
58
58
|
hostname,
|
|
@@ -70,13 +70,13 @@ export const se_CreateAnalyzerCommand = async (input, context) => {
|
|
|
70
70
|
};
|
|
71
71
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/analyzer";
|
|
72
72
|
let body;
|
|
73
|
-
body = JSON.stringify({
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
clientToken:
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
});
|
|
73
|
+
body = JSON.stringify(take(input, {
|
|
74
|
+
analyzerName: [],
|
|
75
|
+
archiveRules: (_) => _json(_),
|
|
76
|
+
clientToken: (_) => _ ?? generateIdempotencyToken(),
|
|
77
|
+
tags: (_) => _json(_),
|
|
78
|
+
type: [],
|
|
79
|
+
}));
|
|
80
80
|
return new __HttpRequest({
|
|
81
81
|
protocol,
|
|
82
82
|
hostname,
|
|
@@ -95,11 +95,11 @@ export const se_CreateArchiveRuleCommand = async (input, context) => {
|
|
|
95
95
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/analyzer/{analyzerName}/archive-rule";
|
|
96
96
|
resolvedPath = __resolvedPath(resolvedPath, input, "analyzerName", () => input.analyzerName, "{analyzerName}", false);
|
|
97
97
|
let body;
|
|
98
|
-
body = JSON.stringify({
|
|
99
|
-
clientToken:
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
});
|
|
98
|
+
body = JSON.stringify(take(input, {
|
|
99
|
+
clientToken: (_) => _ ?? generateIdempotencyToken(),
|
|
100
|
+
filter: (_) => _json(_),
|
|
101
|
+
ruleName: [],
|
|
102
|
+
}));
|
|
103
103
|
return new __HttpRequest({
|
|
104
104
|
protocol,
|
|
105
105
|
hostname,
|
|
@@ -281,12 +281,12 @@ export const se_ListAccessPreviewFindingsCommand = async (input, context) => {
|
|
|
281
281
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/access-preview/{accessPreviewId}";
|
|
282
282
|
resolvedPath = __resolvedPath(resolvedPath, input, "accessPreviewId", () => input.accessPreviewId, "{accessPreviewId}", false);
|
|
283
283
|
let body;
|
|
284
|
-
body = JSON.stringify({
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
});
|
|
284
|
+
body = JSON.stringify(take(input, {
|
|
285
|
+
analyzerArn: [],
|
|
286
|
+
filter: (_) => _json(_),
|
|
287
|
+
maxResults: [],
|
|
288
|
+
nextToken: [],
|
|
289
|
+
}));
|
|
290
290
|
return new __HttpRequest({
|
|
291
291
|
protocol,
|
|
292
292
|
hostname,
|
|
@@ -325,12 +325,12 @@ export const se_ListAnalyzedResourcesCommand = async (input, context) => {
|
|
|
325
325
|
};
|
|
326
326
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/analyzed-resource";
|
|
327
327
|
let body;
|
|
328
|
-
body = JSON.stringify({
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
});
|
|
328
|
+
body = JSON.stringify(take(input, {
|
|
329
|
+
analyzerArn: [],
|
|
330
|
+
maxResults: [],
|
|
331
|
+
nextToken: [],
|
|
332
|
+
resourceType: [],
|
|
333
|
+
}));
|
|
334
334
|
return new __HttpRequest({
|
|
335
335
|
protocol,
|
|
336
336
|
hostname,
|
|
@@ -390,13 +390,13 @@ export const se_ListFindingsCommand = async (input, context) => {
|
|
|
390
390
|
};
|
|
391
391
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/finding";
|
|
392
392
|
let body;
|
|
393
|
-
body = JSON.stringify({
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
});
|
|
393
|
+
body = JSON.stringify(take(input, {
|
|
394
|
+
analyzerArn: [],
|
|
395
|
+
filter: (_) => _json(_),
|
|
396
|
+
maxResults: [],
|
|
397
|
+
nextToken: [],
|
|
398
|
+
sort: (_) => _json(_),
|
|
399
|
+
}));
|
|
400
400
|
return new __HttpRequest({
|
|
401
401
|
protocol,
|
|
402
402
|
hostname,
|
|
@@ -451,15 +451,11 @@ export const se_StartPolicyGenerationCommand = async (input, context) => {
|
|
|
451
451
|
};
|
|
452
452
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/policy/generation";
|
|
453
453
|
let body;
|
|
454
|
-
body = JSON.stringify({
|
|
455
|
-
clientToken:
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
...(input.policyGenerationDetails != null && {
|
|
460
|
-
policyGenerationDetails: se_PolicyGenerationDetails(input.policyGenerationDetails, context),
|
|
461
|
-
}),
|
|
462
|
-
});
|
|
454
|
+
body = JSON.stringify(take(input, {
|
|
455
|
+
clientToken: (_) => _ ?? generateIdempotencyToken(),
|
|
456
|
+
cloudTrailDetails: (_) => se_CloudTrailDetails(_, context),
|
|
457
|
+
policyGenerationDetails: (_) => _json(_),
|
|
458
|
+
}));
|
|
463
459
|
return new __HttpRequest({
|
|
464
460
|
protocol,
|
|
465
461
|
hostname,
|
|
@@ -477,11 +473,11 @@ export const se_StartResourceScanCommand = async (input, context) => {
|
|
|
477
473
|
};
|
|
478
474
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/resource/scan";
|
|
479
475
|
let body;
|
|
480
|
-
body = JSON.stringify({
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
});
|
|
476
|
+
body = JSON.stringify(take(input, {
|
|
477
|
+
analyzerArn: [],
|
|
478
|
+
resourceArn: [],
|
|
479
|
+
resourceOwnerAccount: [],
|
|
480
|
+
}));
|
|
485
481
|
return new __HttpRequest({
|
|
486
482
|
protocol,
|
|
487
483
|
hostname,
|
|
@@ -500,9 +496,9 @@ export const se_TagResourceCommand = async (input, context) => {
|
|
|
500
496
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
501
497
|
resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
502
498
|
let body;
|
|
503
|
-
body = JSON.stringify({
|
|
504
|
-
|
|
505
|
-
});
|
|
499
|
+
body = JSON.stringify(take(input, {
|
|
500
|
+
tags: (_) => _json(_),
|
|
501
|
+
}));
|
|
506
502
|
return new __HttpRequest({
|
|
507
503
|
protocol,
|
|
508
504
|
hostname,
|
|
@@ -546,10 +542,10 @@ export const se_UpdateArchiveRuleCommand = async (input, context) => {
|
|
|
546
542
|
resolvedPath = __resolvedPath(resolvedPath, input, "analyzerName", () => input.analyzerName, "{analyzerName}", false);
|
|
547
543
|
resolvedPath = __resolvedPath(resolvedPath, input, "ruleName", () => input.ruleName, "{ruleName}", false);
|
|
548
544
|
let body;
|
|
549
|
-
body = JSON.stringify({
|
|
550
|
-
clientToken:
|
|
551
|
-
|
|
552
|
-
});
|
|
545
|
+
body = JSON.stringify(take(input, {
|
|
546
|
+
clientToken: (_) => _ ?? generateIdempotencyToken(),
|
|
547
|
+
filter: (_) => _json(_),
|
|
548
|
+
}));
|
|
553
549
|
return new __HttpRequest({
|
|
554
550
|
protocol,
|
|
555
551
|
hostname,
|
|
@@ -567,13 +563,13 @@ export const se_UpdateFindingsCommand = async (input, context) => {
|
|
|
567
563
|
};
|
|
568
564
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/finding";
|
|
569
565
|
let body;
|
|
570
|
-
body = JSON.stringify({
|
|
571
|
-
|
|
572
|
-
clientToken:
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
});
|
|
566
|
+
body = JSON.stringify(take(input, {
|
|
567
|
+
analyzerArn: [],
|
|
568
|
+
clientToken: (_) => _ ?? generateIdempotencyToken(),
|
|
569
|
+
ids: (_) => _json(_),
|
|
570
|
+
resourceArn: [],
|
|
571
|
+
status: [],
|
|
572
|
+
}));
|
|
577
573
|
return new __HttpRequest({
|
|
578
574
|
protocol,
|
|
579
575
|
hostname,
|
|
@@ -595,12 +591,12 @@ export const se_ValidatePolicyCommand = async (input, context) => {
|
|
|
595
591
|
nextToken: [, input.nextToken],
|
|
596
592
|
});
|
|
597
593
|
let body;
|
|
598
|
-
body = JSON.stringify({
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
});
|
|
594
|
+
body = JSON.stringify(take(input, {
|
|
595
|
+
locale: [],
|
|
596
|
+
policyDocument: [],
|
|
597
|
+
policyType: [],
|
|
598
|
+
validatePolicyResourceType: [],
|
|
599
|
+
}));
|
|
604
600
|
return new __HttpRequest({
|
|
605
601
|
protocol,
|
|
606
602
|
hostname,
|
|
@@ -646,10 +642,9 @@ const de_ApplyArchiveRuleCommandError = async (output, context) => {
|
|
|
646
642
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
647
643
|
default:
|
|
648
644
|
const parsedBody = parsedOutput.body;
|
|
649
|
-
throwDefaultError({
|
|
645
|
+
return throwDefaultError({
|
|
650
646
|
output,
|
|
651
647
|
parsedBody,
|
|
652
|
-
exceptionCtor: __BaseException,
|
|
653
648
|
errorCode,
|
|
654
649
|
});
|
|
655
650
|
}
|
|
@@ -685,10 +680,9 @@ const de_CancelPolicyGenerationCommandError = async (output, context) => {
|
|
|
685
680
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
686
681
|
default:
|
|
687
682
|
const parsedBody = parsedOutput.body;
|
|
688
|
-
throwDefaultError({
|
|
683
|
+
return throwDefaultError({
|
|
689
684
|
output,
|
|
690
685
|
parsedBody,
|
|
691
|
-
exceptionCtor: __BaseException,
|
|
692
686
|
errorCode,
|
|
693
687
|
});
|
|
694
688
|
}
|
|
@@ -701,9 +695,10 @@ export const de_CreateAccessPreviewCommand = async (output, context) => {
|
|
|
701
695
|
$metadata: deserializeMetadata(output),
|
|
702
696
|
});
|
|
703
697
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
}
|
|
698
|
+
const doc = take(data, {
|
|
699
|
+
id: __expectString,
|
|
700
|
+
});
|
|
701
|
+
Object.assign(contents, doc);
|
|
707
702
|
return contents;
|
|
708
703
|
};
|
|
709
704
|
const de_CreateAccessPreviewCommandError = async (output, context) => {
|
|
@@ -736,10 +731,9 @@ const de_CreateAccessPreviewCommandError = async (output, context) => {
|
|
|
736
731
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
737
732
|
default:
|
|
738
733
|
const parsedBody = parsedOutput.body;
|
|
739
|
-
throwDefaultError({
|
|
734
|
+
return throwDefaultError({
|
|
740
735
|
output,
|
|
741
736
|
parsedBody,
|
|
742
|
-
exceptionCtor: __BaseException,
|
|
743
737
|
errorCode,
|
|
744
738
|
});
|
|
745
739
|
}
|
|
@@ -752,9 +746,10 @@ export const de_CreateAnalyzerCommand = async (output, context) => {
|
|
|
752
746
|
$metadata: deserializeMetadata(output),
|
|
753
747
|
});
|
|
754
748
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
}
|
|
749
|
+
const doc = take(data, {
|
|
750
|
+
arn: __expectString,
|
|
751
|
+
});
|
|
752
|
+
Object.assign(contents, doc);
|
|
758
753
|
return contents;
|
|
759
754
|
};
|
|
760
755
|
const de_CreateAnalyzerCommandError = async (output, context) => {
|
|
@@ -784,10 +779,9 @@ const de_CreateAnalyzerCommandError = async (output, context) => {
|
|
|
784
779
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
785
780
|
default:
|
|
786
781
|
const parsedBody = parsedOutput.body;
|
|
787
|
-
throwDefaultError({
|
|
782
|
+
return throwDefaultError({
|
|
788
783
|
output,
|
|
789
784
|
parsedBody,
|
|
790
|
-
exceptionCtor: __BaseException,
|
|
791
785
|
errorCode,
|
|
792
786
|
});
|
|
793
787
|
}
|
|
@@ -832,10 +826,9 @@ const de_CreateArchiveRuleCommandError = async (output, context) => {
|
|
|
832
826
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
833
827
|
default:
|
|
834
828
|
const parsedBody = parsedOutput.body;
|
|
835
|
-
throwDefaultError({
|
|
829
|
+
return throwDefaultError({
|
|
836
830
|
output,
|
|
837
831
|
parsedBody,
|
|
838
|
-
exceptionCtor: __BaseException,
|
|
839
832
|
errorCode,
|
|
840
833
|
});
|
|
841
834
|
}
|
|
@@ -874,10 +867,9 @@ const de_DeleteAnalyzerCommandError = async (output, context) => {
|
|
|
874
867
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
875
868
|
default:
|
|
876
869
|
const parsedBody = parsedOutput.body;
|
|
877
|
-
throwDefaultError({
|
|
870
|
+
return throwDefaultError({
|
|
878
871
|
output,
|
|
879
872
|
parsedBody,
|
|
880
|
-
exceptionCtor: __BaseException,
|
|
881
873
|
errorCode,
|
|
882
874
|
});
|
|
883
875
|
}
|
|
@@ -916,10 +908,9 @@ const de_DeleteArchiveRuleCommandError = async (output, context) => {
|
|
|
916
908
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
917
909
|
default:
|
|
918
910
|
const parsedBody = parsedOutput.body;
|
|
919
|
-
throwDefaultError({
|
|
911
|
+
return throwDefaultError({
|
|
920
912
|
output,
|
|
921
913
|
parsedBody,
|
|
922
|
-
exceptionCtor: __BaseException,
|
|
923
914
|
errorCode,
|
|
924
915
|
});
|
|
925
916
|
}
|
|
@@ -932,9 +923,10 @@ export const de_GetAccessPreviewCommand = async (output, context) => {
|
|
|
932
923
|
$metadata: deserializeMetadata(output),
|
|
933
924
|
});
|
|
934
925
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
}
|
|
926
|
+
const doc = take(data, {
|
|
927
|
+
accessPreview: (_) => de_AccessPreview(_, context),
|
|
928
|
+
});
|
|
929
|
+
Object.assign(contents, doc);
|
|
938
930
|
return contents;
|
|
939
931
|
};
|
|
940
932
|
const de_GetAccessPreviewCommandError = async (output, context) => {
|
|
@@ -961,10 +953,9 @@ const de_GetAccessPreviewCommandError = async (output, context) => {
|
|
|
961
953
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
962
954
|
default:
|
|
963
955
|
const parsedBody = parsedOutput.body;
|
|
964
|
-
throwDefaultError({
|
|
956
|
+
return throwDefaultError({
|
|
965
957
|
output,
|
|
966
958
|
parsedBody,
|
|
967
|
-
exceptionCtor: __BaseException,
|
|
968
959
|
errorCode,
|
|
969
960
|
});
|
|
970
961
|
}
|
|
@@ -977,9 +968,10 @@ export const de_GetAnalyzedResourceCommand = async (output, context) => {
|
|
|
977
968
|
$metadata: deserializeMetadata(output),
|
|
978
969
|
});
|
|
979
970
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
}
|
|
971
|
+
const doc = take(data, {
|
|
972
|
+
resource: (_) => de_AnalyzedResource(_, context),
|
|
973
|
+
});
|
|
974
|
+
Object.assign(contents, doc);
|
|
983
975
|
return contents;
|
|
984
976
|
};
|
|
985
977
|
const de_GetAnalyzedResourceCommandError = async (output, context) => {
|
|
@@ -1006,10 +998,9 @@ const de_GetAnalyzedResourceCommandError = async (output, context) => {
|
|
|
1006
998
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1007
999
|
default:
|
|
1008
1000
|
const parsedBody = parsedOutput.body;
|
|
1009
|
-
throwDefaultError({
|
|
1001
|
+
return throwDefaultError({
|
|
1010
1002
|
output,
|
|
1011
1003
|
parsedBody,
|
|
1012
|
-
exceptionCtor: __BaseException,
|
|
1013
1004
|
errorCode,
|
|
1014
1005
|
});
|
|
1015
1006
|
}
|
|
@@ -1022,9 +1013,10 @@ export const de_GetAnalyzerCommand = async (output, context) => {
|
|
|
1022
1013
|
$metadata: deserializeMetadata(output),
|
|
1023
1014
|
});
|
|
1024
1015
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
}
|
|
1016
|
+
const doc = take(data, {
|
|
1017
|
+
analyzer: (_) => de_AnalyzerSummary(_, context),
|
|
1018
|
+
});
|
|
1019
|
+
Object.assign(contents, doc);
|
|
1028
1020
|
return contents;
|
|
1029
1021
|
};
|
|
1030
1022
|
const de_GetAnalyzerCommandError = async (output, context) => {
|
|
@@ -1051,10 +1043,9 @@ const de_GetAnalyzerCommandError = async (output, context) => {
|
|
|
1051
1043
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1052
1044
|
default:
|
|
1053
1045
|
const parsedBody = parsedOutput.body;
|
|
1054
|
-
throwDefaultError({
|
|
1046
|
+
return throwDefaultError({
|
|
1055
1047
|
output,
|
|
1056
1048
|
parsedBody,
|
|
1057
|
-
exceptionCtor: __BaseException,
|
|
1058
1049
|
errorCode,
|
|
1059
1050
|
});
|
|
1060
1051
|
}
|
|
@@ -1067,9 +1058,10 @@ export const de_GetArchiveRuleCommand = async (output, context) => {
|
|
|
1067
1058
|
$metadata: deserializeMetadata(output),
|
|
1068
1059
|
});
|
|
1069
1060
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
}
|
|
1061
|
+
const doc = take(data, {
|
|
1062
|
+
archiveRule: (_) => de_ArchiveRuleSummary(_, context),
|
|
1063
|
+
});
|
|
1064
|
+
Object.assign(contents, doc);
|
|
1073
1065
|
return contents;
|
|
1074
1066
|
};
|
|
1075
1067
|
const de_GetArchiveRuleCommandError = async (output, context) => {
|
|
@@ -1096,10 +1088,9 @@ const de_GetArchiveRuleCommandError = async (output, context) => {
|
|
|
1096
1088
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1097
1089
|
default:
|
|
1098
1090
|
const parsedBody = parsedOutput.body;
|
|
1099
|
-
throwDefaultError({
|
|
1091
|
+
return throwDefaultError({
|
|
1100
1092
|
output,
|
|
1101
1093
|
parsedBody,
|
|
1102
|
-
exceptionCtor: __BaseException,
|
|
1103
1094
|
errorCode,
|
|
1104
1095
|
});
|
|
1105
1096
|
}
|
|
@@ -1112,9 +1103,10 @@ export const de_GetFindingCommand = async (output, context) => {
|
|
|
1112
1103
|
$metadata: deserializeMetadata(output),
|
|
1113
1104
|
});
|
|
1114
1105
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
}
|
|
1106
|
+
const doc = take(data, {
|
|
1107
|
+
finding: (_) => de_Finding(_, context),
|
|
1108
|
+
});
|
|
1109
|
+
Object.assign(contents, doc);
|
|
1118
1110
|
return contents;
|
|
1119
1111
|
};
|
|
1120
1112
|
const de_GetFindingCommandError = async (output, context) => {
|
|
@@ -1141,10 +1133,9 @@ const de_GetFindingCommandError = async (output, context) => {
|
|
|
1141
1133
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1142
1134
|
default:
|
|
1143
1135
|
const parsedBody = parsedOutput.body;
|
|
1144
|
-
throwDefaultError({
|
|
1136
|
+
return throwDefaultError({
|
|
1145
1137
|
output,
|
|
1146
1138
|
parsedBody,
|
|
1147
|
-
exceptionCtor: __BaseException,
|
|
1148
1139
|
errorCode,
|
|
1149
1140
|
});
|
|
1150
1141
|
}
|
|
@@ -1157,12 +1148,11 @@ export const de_GetGeneratedPolicyCommand = async (output, context) => {
|
|
|
1157
1148
|
$metadata: deserializeMetadata(output),
|
|
1158
1149
|
});
|
|
1159
1150
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
}
|
|
1151
|
+
const doc = take(data, {
|
|
1152
|
+
generatedPolicyResult: (_) => de_GeneratedPolicyResult(_, context),
|
|
1153
|
+
jobDetails: (_) => de_JobDetails(_, context),
|
|
1154
|
+
});
|
|
1155
|
+
Object.assign(contents, doc);
|
|
1166
1156
|
return contents;
|
|
1167
1157
|
};
|
|
1168
1158
|
const de_GetGeneratedPolicyCommandError = async (output, context) => {
|
|
@@ -1186,10 +1176,9 @@ const de_GetGeneratedPolicyCommandError = async (output, context) => {
|
|
|
1186
1176
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1187
1177
|
default:
|
|
1188
1178
|
const parsedBody = parsedOutput.body;
|
|
1189
|
-
throwDefaultError({
|
|
1179
|
+
return throwDefaultError({
|
|
1190
1180
|
output,
|
|
1191
1181
|
parsedBody,
|
|
1192
|
-
exceptionCtor: __BaseException,
|
|
1193
1182
|
errorCode,
|
|
1194
1183
|
});
|
|
1195
1184
|
}
|
|
@@ -1202,12 +1191,11 @@ export const de_ListAccessPreviewFindingsCommand = async (output, context) => {
|
|
|
1202
1191
|
$metadata: deserializeMetadata(output),
|
|
1203
1192
|
});
|
|
1204
1193
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
}
|
|
1194
|
+
const doc = take(data, {
|
|
1195
|
+
findings: (_) => de_AccessPreviewFindingsList(_, context),
|
|
1196
|
+
nextToken: __expectString,
|
|
1197
|
+
});
|
|
1198
|
+
Object.assign(contents, doc);
|
|
1211
1199
|
return contents;
|
|
1212
1200
|
};
|
|
1213
1201
|
const de_ListAccessPreviewFindingsCommandError = async (output, context) => {
|
|
@@ -1237,10 +1225,9 @@ const de_ListAccessPreviewFindingsCommandError = async (output, context) => {
|
|
|
1237
1225
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1238
1226
|
default:
|
|
1239
1227
|
const parsedBody = parsedOutput.body;
|
|
1240
|
-
throwDefaultError({
|
|
1228
|
+
return throwDefaultError({
|
|
1241
1229
|
output,
|
|
1242
1230
|
parsedBody,
|
|
1243
|
-
exceptionCtor: __BaseException,
|
|
1244
1231
|
errorCode,
|
|
1245
1232
|
});
|
|
1246
1233
|
}
|
|
@@ -1253,12 +1240,11 @@ export const de_ListAccessPreviewsCommand = async (output, context) => {
|
|
|
1253
1240
|
$metadata: deserializeMetadata(output),
|
|
1254
1241
|
});
|
|
1255
1242
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
}
|
|
1243
|
+
const doc = take(data, {
|
|
1244
|
+
accessPreviews: (_) => de_AccessPreviewsList(_, context),
|
|
1245
|
+
nextToken: __expectString,
|
|
1246
|
+
});
|
|
1247
|
+
Object.assign(contents, doc);
|
|
1262
1248
|
return contents;
|
|
1263
1249
|
};
|
|
1264
1250
|
const de_ListAccessPreviewsCommandError = async (output, context) => {
|
|
@@ -1285,10 +1271,9 @@ const de_ListAccessPreviewsCommandError = async (output, context) => {
|
|
|
1285
1271
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1286
1272
|
default:
|
|
1287
1273
|
const parsedBody = parsedOutput.body;
|
|
1288
|
-
throwDefaultError({
|
|
1274
|
+
return throwDefaultError({
|
|
1289
1275
|
output,
|
|
1290
1276
|
parsedBody,
|
|
1291
|
-
exceptionCtor: __BaseException,
|
|
1292
1277
|
errorCode,
|
|
1293
1278
|
});
|
|
1294
1279
|
}
|
|
@@ -1301,12 +1286,11 @@ export const de_ListAnalyzedResourcesCommand = async (output, context) => {
|
|
|
1301
1286
|
$metadata: deserializeMetadata(output),
|
|
1302
1287
|
});
|
|
1303
1288
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
}
|
|
1289
|
+
const doc = take(data, {
|
|
1290
|
+
analyzedResources: _json,
|
|
1291
|
+
nextToken: __expectString,
|
|
1292
|
+
});
|
|
1293
|
+
Object.assign(contents, doc);
|
|
1310
1294
|
return contents;
|
|
1311
1295
|
};
|
|
1312
1296
|
const de_ListAnalyzedResourcesCommandError = async (output, context) => {
|
|
@@ -1333,10 +1317,9 @@ const de_ListAnalyzedResourcesCommandError = async (output, context) => {
|
|
|
1333
1317
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1334
1318
|
default:
|
|
1335
1319
|
const parsedBody = parsedOutput.body;
|
|
1336
|
-
throwDefaultError({
|
|
1320
|
+
return throwDefaultError({
|
|
1337
1321
|
output,
|
|
1338
1322
|
parsedBody,
|
|
1339
|
-
exceptionCtor: __BaseException,
|
|
1340
1323
|
errorCode,
|
|
1341
1324
|
});
|
|
1342
1325
|
}
|
|
@@ -1349,12 +1332,11 @@ export const de_ListAnalyzersCommand = async (output, context) => {
|
|
|
1349
1332
|
$metadata: deserializeMetadata(output),
|
|
1350
1333
|
});
|
|
1351
1334
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
}
|
|
1335
|
+
const doc = take(data, {
|
|
1336
|
+
analyzers: (_) => de_AnalyzersList(_, context),
|
|
1337
|
+
nextToken: __expectString,
|
|
1338
|
+
});
|
|
1339
|
+
Object.assign(contents, doc);
|
|
1358
1340
|
return contents;
|
|
1359
1341
|
};
|
|
1360
1342
|
const de_ListAnalyzersCommandError = async (output, context) => {
|
|
@@ -1378,10 +1360,9 @@ const de_ListAnalyzersCommandError = async (output, context) => {
|
|
|
1378
1360
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1379
1361
|
default:
|
|
1380
1362
|
const parsedBody = parsedOutput.body;
|
|
1381
|
-
throwDefaultError({
|
|
1363
|
+
return throwDefaultError({
|
|
1382
1364
|
output,
|
|
1383
1365
|
parsedBody,
|
|
1384
|
-
exceptionCtor: __BaseException,
|
|
1385
1366
|
errorCode,
|
|
1386
1367
|
});
|
|
1387
1368
|
}
|
|
@@ -1394,12 +1375,11 @@ export const de_ListArchiveRulesCommand = async (output, context) => {
|
|
|
1394
1375
|
$metadata: deserializeMetadata(output),
|
|
1395
1376
|
});
|
|
1396
1377
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
}
|
|
1378
|
+
const doc = take(data, {
|
|
1379
|
+
archiveRules: (_) => de_ArchiveRulesList(_, context),
|
|
1380
|
+
nextToken: __expectString,
|
|
1381
|
+
});
|
|
1382
|
+
Object.assign(contents, doc);
|
|
1403
1383
|
return contents;
|
|
1404
1384
|
};
|
|
1405
1385
|
const de_ListArchiveRulesCommandError = async (output, context) => {
|
|
@@ -1423,10 +1403,9 @@ const de_ListArchiveRulesCommandError = async (output, context) => {
|
|
|
1423
1403
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1424
1404
|
default:
|
|
1425
1405
|
const parsedBody = parsedOutput.body;
|
|
1426
|
-
throwDefaultError({
|
|
1406
|
+
return throwDefaultError({
|
|
1427
1407
|
output,
|
|
1428
1408
|
parsedBody,
|
|
1429
|
-
exceptionCtor: __BaseException,
|
|
1430
1409
|
errorCode,
|
|
1431
1410
|
});
|
|
1432
1411
|
}
|
|
@@ -1439,12 +1418,11 @@ export const de_ListFindingsCommand = async (output, context) => {
|
|
|
1439
1418
|
$metadata: deserializeMetadata(output),
|
|
1440
1419
|
});
|
|
1441
1420
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
}
|
|
1421
|
+
const doc = take(data, {
|
|
1422
|
+
findings: (_) => de_FindingsList(_, context),
|
|
1423
|
+
nextToken: __expectString,
|
|
1424
|
+
});
|
|
1425
|
+
Object.assign(contents, doc);
|
|
1448
1426
|
return contents;
|
|
1449
1427
|
};
|
|
1450
1428
|
const de_ListFindingsCommandError = async (output, context) => {
|
|
@@ -1471,10 +1449,9 @@ const de_ListFindingsCommandError = async (output, context) => {
|
|
|
1471
1449
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1472
1450
|
default:
|
|
1473
1451
|
const parsedBody = parsedOutput.body;
|
|
1474
|
-
throwDefaultError({
|
|
1452
|
+
return throwDefaultError({
|
|
1475
1453
|
output,
|
|
1476
1454
|
parsedBody,
|
|
1477
|
-
exceptionCtor: __BaseException,
|
|
1478
1455
|
errorCode,
|
|
1479
1456
|
});
|
|
1480
1457
|
}
|
|
@@ -1487,12 +1464,11 @@ export const de_ListPolicyGenerationsCommand = async (output, context) => {
|
|
|
1487
1464
|
$metadata: deserializeMetadata(output),
|
|
1488
1465
|
});
|
|
1489
1466
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
}
|
|
1467
|
+
const doc = take(data, {
|
|
1468
|
+
nextToken: __expectString,
|
|
1469
|
+
policyGenerations: (_) => de_PolicyGenerationList(_, context),
|
|
1470
|
+
});
|
|
1471
|
+
Object.assign(contents, doc);
|
|
1496
1472
|
return contents;
|
|
1497
1473
|
};
|
|
1498
1474
|
const de_ListPolicyGenerationsCommandError = async (output, context) => {
|
|
@@ -1516,10 +1492,9 @@ const de_ListPolicyGenerationsCommandError = async (output, context) => {
|
|
|
1516
1492
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1517
1493
|
default:
|
|
1518
1494
|
const parsedBody = parsedOutput.body;
|
|
1519
|
-
throwDefaultError({
|
|
1495
|
+
return throwDefaultError({
|
|
1520
1496
|
output,
|
|
1521
1497
|
parsedBody,
|
|
1522
|
-
exceptionCtor: __BaseException,
|
|
1523
1498
|
errorCode,
|
|
1524
1499
|
});
|
|
1525
1500
|
}
|
|
@@ -1532,9 +1507,10 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
1532
1507
|
$metadata: deserializeMetadata(output),
|
|
1533
1508
|
});
|
|
1534
1509
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
}
|
|
1510
|
+
const doc = take(data, {
|
|
1511
|
+
tags: _json,
|
|
1512
|
+
});
|
|
1513
|
+
Object.assign(contents, doc);
|
|
1538
1514
|
return contents;
|
|
1539
1515
|
};
|
|
1540
1516
|
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
@@ -1561,10 +1537,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
1561
1537
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1562
1538
|
default:
|
|
1563
1539
|
const parsedBody = parsedOutput.body;
|
|
1564
|
-
throwDefaultError({
|
|
1540
|
+
return throwDefaultError({
|
|
1565
1541
|
output,
|
|
1566
1542
|
parsedBody,
|
|
1567
|
-
exceptionCtor: __BaseException,
|
|
1568
1543
|
errorCode,
|
|
1569
1544
|
});
|
|
1570
1545
|
}
|
|
@@ -1577,9 +1552,10 @@ export const de_StartPolicyGenerationCommand = async (output, context) => {
|
|
|
1577
1552
|
$metadata: deserializeMetadata(output),
|
|
1578
1553
|
});
|
|
1579
1554
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
}
|
|
1555
|
+
const doc = take(data, {
|
|
1556
|
+
jobId: __expectString,
|
|
1557
|
+
});
|
|
1558
|
+
Object.assign(contents, doc);
|
|
1583
1559
|
return contents;
|
|
1584
1560
|
};
|
|
1585
1561
|
const de_StartPolicyGenerationCommandError = async (output, context) => {
|
|
@@ -1609,10 +1585,9 @@ const de_StartPolicyGenerationCommandError = async (output, context) => {
|
|
|
1609
1585
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1610
1586
|
default:
|
|
1611
1587
|
const parsedBody = parsedOutput.body;
|
|
1612
|
-
throwDefaultError({
|
|
1588
|
+
return throwDefaultError({
|
|
1613
1589
|
output,
|
|
1614
1590
|
parsedBody,
|
|
1615
|
-
exceptionCtor: __BaseException,
|
|
1616
1591
|
errorCode,
|
|
1617
1592
|
});
|
|
1618
1593
|
}
|
|
@@ -1651,10 +1626,9 @@ const de_StartResourceScanCommandError = async (output, context) => {
|
|
|
1651
1626
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1652
1627
|
default:
|
|
1653
1628
|
const parsedBody = parsedOutput.body;
|
|
1654
|
-
throwDefaultError({
|
|
1629
|
+
return throwDefaultError({
|
|
1655
1630
|
output,
|
|
1656
1631
|
parsedBody,
|
|
1657
|
-
exceptionCtor: __BaseException,
|
|
1658
1632
|
errorCode,
|
|
1659
1633
|
});
|
|
1660
1634
|
}
|
|
@@ -1693,10 +1667,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
1693
1667
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1694
1668
|
default:
|
|
1695
1669
|
const parsedBody = parsedOutput.body;
|
|
1696
|
-
throwDefaultError({
|
|
1670
|
+
return throwDefaultError({
|
|
1697
1671
|
output,
|
|
1698
1672
|
parsedBody,
|
|
1699
|
-
exceptionCtor: __BaseException,
|
|
1700
1673
|
errorCode,
|
|
1701
1674
|
});
|
|
1702
1675
|
}
|
|
@@ -1735,10 +1708,9 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
1735
1708
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1736
1709
|
default:
|
|
1737
1710
|
const parsedBody = parsedOutput.body;
|
|
1738
|
-
throwDefaultError({
|
|
1711
|
+
return throwDefaultError({
|
|
1739
1712
|
output,
|
|
1740
1713
|
parsedBody,
|
|
1741
|
-
exceptionCtor: __BaseException,
|
|
1742
1714
|
errorCode,
|
|
1743
1715
|
});
|
|
1744
1716
|
}
|
|
@@ -1777,10 +1749,9 @@ const de_UpdateArchiveRuleCommandError = async (output, context) => {
|
|
|
1777
1749
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1778
1750
|
default:
|
|
1779
1751
|
const parsedBody = parsedOutput.body;
|
|
1780
|
-
throwDefaultError({
|
|
1752
|
+
return throwDefaultError({
|
|
1781
1753
|
output,
|
|
1782
1754
|
parsedBody,
|
|
1783
|
-
exceptionCtor: __BaseException,
|
|
1784
1755
|
errorCode,
|
|
1785
1756
|
});
|
|
1786
1757
|
}
|
|
@@ -1819,10 +1790,9 @@ const de_UpdateFindingsCommandError = async (output, context) => {
|
|
|
1819
1790
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1820
1791
|
default:
|
|
1821
1792
|
const parsedBody = parsedOutput.body;
|
|
1822
|
-
throwDefaultError({
|
|
1793
|
+
return throwDefaultError({
|
|
1823
1794
|
output,
|
|
1824
1795
|
parsedBody,
|
|
1825
|
-
exceptionCtor: __BaseException,
|
|
1826
1796
|
errorCode,
|
|
1827
1797
|
});
|
|
1828
1798
|
}
|
|
@@ -1835,12 +1805,11 @@ export const de_ValidatePolicyCommand = async (output, context) => {
|
|
|
1835
1805
|
$metadata: deserializeMetadata(output),
|
|
1836
1806
|
});
|
|
1837
1807
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
}
|
|
1808
|
+
const doc = take(data, {
|
|
1809
|
+
findings: _json,
|
|
1810
|
+
nextToken: __expectString,
|
|
1811
|
+
});
|
|
1812
|
+
Object.assign(contents, doc);
|
|
1844
1813
|
return contents;
|
|
1845
1814
|
};
|
|
1846
1815
|
const de_ValidatePolicyCommandError = async (output, context) => {
|
|
@@ -1864,21 +1833,21 @@ const de_ValidatePolicyCommandError = async (output, context) => {
|
|
|
1864
1833
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1865
1834
|
default:
|
|
1866
1835
|
const parsedBody = parsedOutput.body;
|
|
1867
|
-
throwDefaultError({
|
|
1836
|
+
return throwDefaultError({
|
|
1868
1837
|
output,
|
|
1869
1838
|
parsedBody,
|
|
1870
|
-
exceptionCtor: __BaseException,
|
|
1871
1839
|
errorCode,
|
|
1872
1840
|
});
|
|
1873
1841
|
}
|
|
1874
1842
|
};
|
|
1875
|
-
const
|
|
1843
|
+
const throwDefaultError = withBaseException(__BaseException);
|
|
1876
1844
|
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
1877
1845
|
const contents = map({});
|
|
1878
1846
|
const data = parsedOutput.body;
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
}
|
|
1847
|
+
const doc = take(data, {
|
|
1848
|
+
message: __expectString,
|
|
1849
|
+
});
|
|
1850
|
+
Object.assign(contents, doc);
|
|
1882
1851
|
const exception = new AccessDeniedException({
|
|
1883
1852
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1884
1853
|
...contents,
|
|
@@ -1888,15 +1857,12 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
|
1888
1857
|
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
1889
1858
|
const contents = map({});
|
|
1890
1859
|
const data = parsedOutput.body;
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
if (data.resourceType != null) {
|
|
1898
|
-
contents.resourceType = __expectString(data.resourceType);
|
|
1899
|
-
}
|
|
1860
|
+
const doc = take(data, {
|
|
1861
|
+
message: __expectString,
|
|
1862
|
+
resourceId: __expectString,
|
|
1863
|
+
resourceType: __expectString,
|
|
1864
|
+
});
|
|
1865
|
+
Object.assign(contents, doc);
|
|
1900
1866
|
const exception = new ConflictException({
|
|
1901
1867
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1902
1868
|
...contents,
|
|
@@ -1911,9 +1877,10 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
|
1911
1877
|
],
|
|
1912
1878
|
});
|
|
1913
1879
|
const data = parsedOutput.body;
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
}
|
|
1880
|
+
const doc = take(data, {
|
|
1881
|
+
message: __expectString,
|
|
1882
|
+
});
|
|
1883
|
+
Object.assign(contents, doc);
|
|
1917
1884
|
const exception = new InternalServerException({
|
|
1918
1885
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1919
1886
|
...contents,
|
|
@@ -1923,15 +1890,12 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
|
1923
1890
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1924
1891
|
const contents = map({});
|
|
1925
1892
|
const data = parsedOutput.body;
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
if (data.resourceType != null) {
|
|
1933
|
-
contents.resourceType = __expectString(data.resourceType);
|
|
1934
|
-
}
|
|
1893
|
+
const doc = take(data, {
|
|
1894
|
+
message: __expectString,
|
|
1895
|
+
resourceId: __expectString,
|
|
1896
|
+
resourceType: __expectString,
|
|
1897
|
+
});
|
|
1898
|
+
Object.assign(contents, doc);
|
|
1935
1899
|
const exception = new ResourceNotFoundException({
|
|
1936
1900
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1937
1901
|
...contents,
|
|
@@ -1941,15 +1905,12 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
1941
1905
|
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
1942
1906
|
const contents = map({});
|
|
1943
1907
|
const data = parsedOutput.body;
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
if (data.resourceType != null) {
|
|
1951
|
-
contents.resourceType = __expectString(data.resourceType);
|
|
1952
|
-
}
|
|
1908
|
+
const doc = take(data, {
|
|
1909
|
+
message: __expectString,
|
|
1910
|
+
resourceId: __expectString,
|
|
1911
|
+
resourceType: __expectString,
|
|
1912
|
+
});
|
|
1913
|
+
Object.assign(contents, doc);
|
|
1953
1914
|
const exception = new ServiceQuotaExceededException({
|
|
1954
1915
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1955
1916
|
...contents,
|
|
@@ -1964,9 +1925,10 @@ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
|
1964
1925
|
],
|
|
1965
1926
|
});
|
|
1966
1927
|
const data = parsedOutput.body;
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
}
|
|
1928
|
+
const doc = take(data, {
|
|
1929
|
+
message: __expectString,
|
|
1930
|
+
});
|
|
1931
|
+
Object.assign(contents, doc);
|
|
1970
1932
|
const exception = new ThrottlingException({
|
|
1971
1933
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1972
1934
|
...contents,
|
|
@@ -1976,411 +1938,59 @@ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
|
1976
1938
|
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
1977
1939
|
const contents = map({});
|
|
1978
1940
|
const data = parsedOutput.body;
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
if (data.reason != null) {
|
|
1986
|
-
contents.reason = __expectString(data.reason);
|
|
1987
|
-
}
|
|
1941
|
+
const doc = take(data, {
|
|
1942
|
+
fieldList: _json,
|
|
1943
|
+
message: __expectString,
|
|
1944
|
+
reason: __expectString,
|
|
1945
|
+
});
|
|
1946
|
+
Object.assign(contents, doc);
|
|
1988
1947
|
const exception = new ValidationException({
|
|
1989
1948
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1990
1949
|
...contents,
|
|
1991
1950
|
});
|
|
1992
1951
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1993
1952
|
};
|
|
1994
|
-
const se_AclGrantee = (input, context) => {
|
|
1995
|
-
return AclGrantee.visit(input, {
|
|
1996
|
-
id: (value) => ({ id: value }),
|
|
1997
|
-
uri: (value) => ({ uri: value }),
|
|
1998
|
-
_: (name, value) => ({ name: value }),
|
|
1999
|
-
});
|
|
2000
|
-
};
|
|
2001
1953
|
const se_CloudTrailDetails = (input, context) => {
|
|
2002
|
-
return {
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
};
|
|
2008
|
-
};
|
|
2009
|
-
const se_Configuration = (input, context) => {
|
|
2010
|
-
return Configuration.visit(input, {
|
|
2011
|
-
ebsSnapshot: (value) => ({ ebsSnapshot: se_EbsSnapshotConfiguration(value, context) }),
|
|
2012
|
-
ecrRepository: (value) => ({ ecrRepository: se_EcrRepositoryConfiguration(value, context) }),
|
|
2013
|
-
efsFileSystem: (value) => ({ efsFileSystem: se_EfsFileSystemConfiguration(value, context) }),
|
|
2014
|
-
iamRole: (value) => ({ iamRole: se_IamRoleConfiguration(value, context) }),
|
|
2015
|
-
kmsKey: (value) => ({ kmsKey: se_KmsKeyConfiguration(value, context) }),
|
|
2016
|
-
rdsDbClusterSnapshot: (value) => ({ rdsDbClusterSnapshot: se_RdsDbClusterSnapshotConfiguration(value, context) }),
|
|
2017
|
-
rdsDbSnapshot: (value) => ({ rdsDbSnapshot: se_RdsDbSnapshotConfiguration(value, context) }),
|
|
2018
|
-
s3Bucket: (value) => ({ s3Bucket: se_S3BucketConfiguration(value, context) }),
|
|
2019
|
-
secretsManagerSecret: (value) => ({ secretsManagerSecret: se_SecretsManagerSecretConfiguration(value, context) }),
|
|
2020
|
-
snsTopic: (value) => ({ snsTopic: se_SnsTopicConfiguration(value, context) }),
|
|
2021
|
-
sqsQueue: (value) => ({ sqsQueue: se_SqsQueueConfiguration(value, context) }),
|
|
2022
|
-
_: (name, value) => ({ name: value }),
|
|
2023
|
-
});
|
|
2024
|
-
};
|
|
2025
|
-
const se_ConfigurationsMap = (input, context) => {
|
|
2026
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2027
|
-
if (value === null) {
|
|
2028
|
-
return acc;
|
|
2029
|
-
}
|
|
2030
|
-
acc[key] = se_Configuration(value, context);
|
|
2031
|
-
return acc;
|
|
2032
|
-
}, {});
|
|
2033
|
-
};
|
|
2034
|
-
const se_Criterion = (input, context) => {
|
|
2035
|
-
return {
|
|
2036
|
-
...(input.contains != null && { contains: se_ValueList(input.contains, context) }),
|
|
2037
|
-
...(input.eq != null && { eq: se_ValueList(input.eq, context) }),
|
|
2038
|
-
...(input.exists != null && { exists: input.exists }),
|
|
2039
|
-
...(input.neq != null && { neq: se_ValueList(input.neq, context) }),
|
|
2040
|
-
};
|
|
2041
|
-
};
|
|
2042
|
-
const se_EbsGroupList = (input, context) => {
|
|
2043
|
-
return input
|
|
2044
|
-
.filter((e) => e != null)
|
|
2045
|
-
.map((entry) => {
|
|
2046
|
-
return entry;
|
|
2047
|
-
});
|
|
2048
|
-
};
|
|
2049
|
-
const se_EbsSnapshotConfiguration = (input, context) => {
|
|
2050
|
-
return {
|
|
2051
|
-
...(input.groups != null && { groups: se_EbsGroupList(input.groups, context) }),
|
|
2052
|
-
...(input.kmsKeyId != null && { kmsKeyId: input.kmsKeyId }),
|
|
2053
|
-
...(input.userIds != null && { userIds: se_EbsUserIdList(input.userIds, context) }),
|
|
2054
|
-
};
|
|
2055
|
-
};
|
|
2056
|
-
const se_EbsUserIdList = (input, context) => {
|
|
2057
|
-
return input
|
|
2058
|
-
.filter((e) => e != null)
|
|
2059
|
-
.map((entry) => {
|
|
2060
|
-
return entry;
|
|
2061
|
-
});
|
|
2062
|
-
};
|
|
2063
|
-
const se_EcrRepositoryConfiguration = (input, context) => {
|
|
2064
|
-
return {
|
|
2065
|
-
...(input.repositoryPolicy != null && { repositoryPolicy: input.repositoryPolicy }),
|
|
2066
|
-
};
|
|
2067
|
-
};
|
|
2068
|
-
const se_EfsFileSystemConfiguration = (input, context) => {
|
|
2069
|
-
return {
|
|
2070
|
-
...(input.fileSystemPolicy != null && { fileSystemPolicy: input.fileSystemPolicy }),
|
|
2071
|
-
};
|
|
2072
|
-
};
|
|
2073
|
-
const se_FilterCriteriaMap = (input, context) => {
|
|
2074
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2075
|
-
if (value === null) {
|
|
2076
|
-
return acc;
|
|
2077
|
-
}
|
|
2078
|
-
acc[key] = se_Criterion(value, context);
|
|
2079
|
-
return acc;
|
|
2080
|
-
}, {});
|
|
2081
|
-
};
|
|
2082
|
-
const se_FindingIdList = (input, context) => {
|
|
2083
|
-
return input
|
|
2084
|
-
.filter((e) => e != null)
|
|
2085
|
-
.map((entry) => {
|
|
2086
|
-
return entry;
|
|
2087
|
-
});
|
|
2088
|
-
};
|
|
2089
|
-
const se_IamRoleConfiguration = (input, context) => {
|
|
2090
|
-
return {
|
|
2091
|
-
...(input.trustPolicy != null && { trustPolicy: input.trustPolicy }),
|
|
2092
|
-
};
|
|
2093
|
-
};
|
|
2094
|
-
const se_InlineArchiveRule = (input, context) => {
|
|
2095
|
-
return {
|
|
2096
|
-
...(input.filter != null && { filter: se_FilterCriteriaMap(input.filter, context) }),
|
|
2097
|
-
...(input.ruleName != null && { ruleName: input.ruleName }),
|
|
2098
|
-
};
|
|
2099
|
-
};
|
|
2100
|
-
const se_InlineArchiveRulesList = (input, context) => {
|
|
2101
|
-
return input
|
|
2102
|
-
.filter((e) => e != null)
|
|
2103
|
-
.map((entry) => {
|
|
2104
|
-
return se_InlineArchiveRule(entry, context);
|
|
1954
|
+
return take(input, {
|
|
1955
|
+
accessRole: [],
|
|
1956
|
+
endTime: (_) => _.toISOString().split(".")[0] + "Z",
|
|
1957
|
+
startTime: (_) => _.toISOString().split(".")[0] + "Z",
|
|
1958
|
+
trails: _json,
|
|
2105
1959
|
});
|
|
2106
1960
|
};
|
|
2107
|
-
const se_InternetConfiguration = (input, context) => {
|
|
2108
|
-
return {};
|
|
2109
|
-
};
|
|
2110
|
-
const se_KmsConstraintsMap = (input, context) => {
|
|
2111
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2112
|
-
if (value === null) {
|
|
2113
|
-
return acc;
|
|
2114
|
-
}
|
|
2115
|
-
acc[key] = value;
|
|
2116
|
-
return acc;
|
|
2117
|
-
}, {});
|
|
2118
|
-
};
|
|
2119
|
-
const se_KmsGrantConfiguration = (input, context) => {
|
|
2120
|
-
return {
|
|
2121
|
-
...(input.constraints != null && { constraints: se_KmsGrantConstraints(input.constraints, context) }),
|
|
2122
|
-
...(input.granteePrincipal != null && { granteePrincipal: input.granteePrincipal }),
|
|
2123
|
-
...(input.issuingAccount != null && { issuingAccount: input.issuingAccount }),
|
|
2124
|
-
...(input.operations != null && { operations: se_KmsGrantOperationsList(input.operations, context) }),
|
|
2125
|
-
...(input.retiringPrincipal != null && { retiringPrincipal: input.retiringPrincipal }),
|
|
2126
|
-
};
|
|
2127
|
-
};
|
|
2128
|
-
const se_KmsGrantConfigurationsList = (input, context) => {
|
|
2129
|
-
return input
|
|
2130
|
-
.filter((e) => e != null)
|
|
2131
|
-
.map((entry) => {
|
|
2132
|
-
return se_KmsGrantConfiguration(entry, context);
|
|
2133
|
-
});
|
|
2134
|
-
};
|
|
2135
|
-
const se_KmsGrantConstraints = (input, context) => {
|
|
2136
|
-
return {
|
|
2137
|
-
...(input.encryptionContextEquals != null && {
|
|
2138
|
-
encryptionContextEquals: se_KmsConstraintsMap(input.encryptionContextEquals, context),
|
|
2139
|
-
}),
|
|
2140
|
-
...(input.encryptionContextSubset != null && {
|
|
2141
|
-
encryptionContextSubset: se_KmsConstraintsMap(input.encryptionContextSubset, context),
|
|
2142
|
-
}),
|
|
2143
|
-
};
|
|
2144
|
-
};
|
|
2145
|
-
const se_KmsGrantOperationsList = (input, context) => {
|
|
2146
|
-
return input
|
|
2147
|
-
.filter((e) => e != null)
|
|
2148
|
-
.map((entry) => {
|
|
2149
|
-
return entry;
|
|
2150
|
-
});
|
|
2151
|
-
};
|
|
2152
|
-
const se_KmsKeyConfiguration = (input, context) => {
|
|
2153
|
-
return {
|
|
2154
|
-
...(input.grants != null && { grants: se_KmsGrantConfigurationsList(input.grants, context) }),
|
|
2155
|
-
...(input.keyPolicies != null && { keyPolicies: se_KmsKeyPoliciesMap(input.keyPolicies, context) }),
|
|
2156
|
-
};
|
|
2157
|
-
};
|
|
2158
|
-
const se_KmsKeyPoliciesMap = (input, context) => {
|
|
2159
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2160
|
-
if (value === null) {
|
|
2161
|
-
return acc;
|
|
2162
|
-
}
|
|
2163
|
-
acc[key] = value;
|
|
2164
|
-
return acc;
|
|
2165
|
-
}, {});
|
|
2166
|
-
};
|
|
2167
|
-
const se_NetworkOriginConfiguration = (input, context) => {
|
|
2168
|
-
return NetworkOriginConfiguration.visit(input, {
|
|
2169
|
-
internetConfiguration: (value) => ({ internetConfiguration: se_InternetConfiguration(value, context) }),
|
|
2170
|
-
vpcConfiguration: (value) => ({ vpcConfiguration: se_VpcConfiguration(value, context) }),
|
|
2171
|
-
_: (name, value) => ({ name: value }),
|
|
2172
|
-
});
|
|
2173
|
-
};
|
|
2174
|
-
const se_PolicyGenerationDetails = (input, context) => {
|
|
2175
|
-
return {
|
|
2176
|
-
...(input.principalArn != null && { principalArn: input.principalArn }),
|
|
2177
|
-
};
|
|
2178
|
-
};
|
|
2179
|
-
const se_RdsDbClusterSnapshotAccountIdsList = (input, context) => {
|
|
2180
|
-
return input
|
|
2181
|
-
.filter((e) => e != null)
|
|
2182
|
-
.map((entry) => {
|
|
2183
|
-
return entry;
|
|
2184
|
-
});
|
|
2185
|
-
};
|
|
2186
|
-
const se_RdsDbClusterSnapshotAttributesMap = (input, context) => {
|
|
2187
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2188
|
-
if (value === null) {
|
|
2189
|
-
return acc;
|
|
2190
|
-
}
|
|
2191
|
-
acc[key] = se_RdsDbClusterSnapshotAttributeValue(value, context);
|
|
2192
|
-
return acc;
|
|
2193
|
-
}, {});
|
|
2194
|
-
};
|
|
2195
|
-
const se_RdsDbClusterSnapshotAttributeValue = (input, context) => {
|
|
2196
|
-
return RdsDbClusterSnapshotAttributeValue.visit(input, {
|
|
2197
|
-
accountIds: (value) => ({ accountIds: se_RdsDbClusterSnapshotAccountIdsList(value, context) }),
|
|
2198
|
-
_: (name, value) => ({ name: value }),
|
|
2199
|
-
});
|
|
2200
|
-
};
|
|
2201
|
-
const se_RdsDbClusterSnapshotConfiguration = (input, context) => {
|
|
2202
|
-
return {
|
|
2203
|
-
...(input.attributes != null && { attributes: se_RdsDbClusterSnapshotAttributesMap(input.attributes, context) }),
|
|
2204
|
-
...(input.kmsKeyId != null && { kmsKeyId: input.kmsKeyId }),
|
|
2205
|
-
};
|
|
2206
|
-
};
|
|
2207
|
-
const se_RdsDbSnapshotAccountIdsList = (input, context) => {
|
|
2208
|
-
return input
|
|
2209
|
-
.filter((e) => e != null)
|
|
2210
|
-
.map((entry) => {
|
|
2211
|
-
return entry;
|
|
2212
|
-
});
|
|
2213
|
-
};
|
|
2214
|
-
const se_RdsDbSnapshotAttributesMap = (input, context) => {
|
|
2215
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2216
|
-
if (value === null) {
|
|
2217
|
-
return acc;
|
|
2218
|
-
}
|
|
2219
|
-
acc[key] = se_RdsDbSnapshotAttributeValue(value, context);
|
|
2220
|
-
return acc;
|
|
2221
|
-
}, {});
|
|
2222
|
-
};
|
|
2223
|
-
const se_RdsDbSnapshotAttributeValue = (input, context) => {
|
|
2224
|
-
return RdsDbSnapshotAttributeValue.visit(input, {
|
|
2225
|
-
accountIds: (value) => ({ accountIds: se_RdsDbSnapshotAccountIdsList(value, context) }),
|
|
2226
|
-
_: (name, value) => ({ name: value }),
|
|
2227
|
-
});
|
|
2228
|
-
};
|
|
2229
|
-
const se_RdsDbSnapshotConfiguration = (input, context) => {
|
|
2230
|
-
return {
|
|
2231
|
-
...(input.attributes != null && { attributes: se_RdsDbSnapshotAttributesMap(input.attributes, context) }),
|
|
2232
|
-
...(input.kmsKeyId != null && { kmsKeyId: input.kmsKeyId }),
|
|
2233
|
-
};
|
|
2234
|
-
};
|
|
2235
|
-
const se_RegionList = (input, context) => {
|
|
2236
|
-
return input
|
|
2237
|
-
.filter((e) => e != null)
|
|
2238
|
-
.map((entry) => {
|
|
2239
|
-
return entry;
|
|
2240
|
-
});
|
|
2241
|
-
};
|
|
2242
|
-
const se_S3AccessPointConfiguration = (input, context) => {
|
|
2243
|
-
return {
|
|
2244
|
-
...(input.accessPointPolicy != null && { accessPointPolicy: input.accessPointPolicy }),
|
|
2245
|
-
...(input.networkOrigin != null && { networkOrigin: se_NetworkOriginConfiguration(input.networkOrigin, context) }),
|
|
2246
|
-
...(input.publicAccessBlock != null && {
|
|
2247
|
-
publicAccessBlock: se_S3PublicAccessBlockConfiguration(input.publicAccessBlock, context),
|
|
2248
|
-
}),
|
|
2249
|
-
};
|
|
2250
|
-
};
|
|
2251
|
-
const se_S3AccessPointConfigurationsMap = (input, context) => {
|
|
2252
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2253
|
-
if (value === null) {
|
|
2254
|
-
return acc;
|
|
2255
|
-
}
|
|
2256
|
-
acc[key] = se_S3AccessPointConfiguration(value, context);
|
|
2257
|
-
return acc;
|
|
2258
|
-
}, {});
|
|
2259
|
-
};
|
|
2260
|
-
const se_S3BucketAclGrantConfiguration = (input, context) => {
|
|
2261
|
-
return {
|
|
2262
|
-
...(input.grantee != null && { grantee: se_AclGrantee(input.grantee, context) }),
|
|
2263
|
-
...(input.permission != null && { permission: input.permission }),
|
|
2264
|
-
};
|
|
2265
|
-
};
|
|
2266
|
-
const se_S3BucketAclGrantConfigurationsList = (input, context) => {
|
|
2267
|
-
return input
|
|
2268
|
-
.filter((e) => e != null)
|
|
2269
|
-
.map((entry) => {
|
|
2270
|
-
return se_S3BucketAclGrantConfiguration(entry, context);
|
|
2271
|
-
});
|
|
2272
|
-
};
|
|
2273
|
-
const se_S3BucketConfiguration = (input, context) => {
|
|
2274
|
-
return {
|
|
2275
|
-
...(input.accessPoints != null && { accessPoints: se_S3AccessPointConfigurationsMap(input.accessPoints, context) }),
|
|
2276
|
-
...(input.bucketAclGrants != null && {
|
|
2277
|
-
bucketAclGrants: se_S3BucketAclGrantConfigurationsList(input.bucketAclGrants, context),
|
|
2278
|
-
}),
|
|
2279
|
-
...(input.bucketPolicy != null && { bucketPolicy: input.bucketPolicy }),
|
|
2280
|
-
...(input.bucketPublicAccessBlock != null && {
|
|
2281
|
-
bucketPublicAccessBlock: se_S3PublicAccessBlockConfiguration(input.bucketPublicAccessBlock, context),
|
|
2282
|
-
}),
|
|
2283
|
-
};
|
|
2284
|
-
};
|
|
2285
|
-
const se_S3PublicAccessBlockConfiguration = (input, context) => {
|
|
2286
|
-
return {
|
|
2287
|
-
...(input.ignorePublicAcls != null && { ignorePublicAcls: input.ignorePublicAcls }),
|
|
2288
|
-
...(input.restrictPublicBuckets != null && { restrictPublicBuckets: input.restrictPublicBuckets }),
|
|
2289
|
-
};
|
|
2290
|
-
};
|
|
2291
|
-
const se_SecretsManagerSecretConfiguration = (input, context) => {
|
|
2292
|
-
return {
|
|
2293
|
-
...(input.kmsKeyId != null && { kmsKeyId: input.kmsKeyId }),
|
|
2294
|
-
...(input.secretPolicy != null && { secretPolicy: input.secretPolicy }),
|
|
2295
|
-
};
|
|
2296
|
-
};
|
|
2297
|
-
const se_SnsTopicConfiguration = (input, context) => {
|
|
2298
|
-
return {
|
|
2299
|
-
...(input.topicPolicy != null && { topicPolicy: input.topicPolicy }),
|
|
2300
|
-
};
|
|
2301
|
-
};
|
|
2302
|
-
const se_SortCriteria = (input, context) => {
|
|
2303
|
-
return {
|
|
2304
|
-
...(input.attributeName != null && { attributeName: input.attributeName }),
|
|
2305
|
-
...(input.orderBy != null && { orderBy: input.orderBy }),
|
|
2306
|
-
};
|
|
2307
|
-
};
|
|
2308
|
-
const se_SqsQueueConfiguration = (input, context) => {
|
|
2309
|
-
return {
|
|
2310
|
-
...(input.queuePolicy != null && { queuePolicy: input.queuePolicy }),
|
|
2311
|
-
};
|
|
2312
|
-
};
|
|
2313
|
-
const se_TagsMap = (input, context) => {
|
|
2314
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2315
|
-
if (value === null) {
|
|
2316
|
-
return acc;
|
|
2317
|
-
}
|
|
2318
|
-
acc[key] = value;
|
|
2319
|
-
return acc;
|
|
2320
|
-
}, {});
|
|
2321
|
-
};
|
|
2322
|
-
const se_Trail = (input, context) => {
|
|
2323
|
-
return {
|
|
2324
|
-
...(input.allRegions != null && { allRegions: input.allRegions }),
|
|
2325
|
-
...(input.cloudTrailArn != null && { cloudTrailArn: input.cloudTrailArn }),
|
|
2326
|
-
...(input.regions != null && { regions: se_RegionList(input.regions, context) }),
|
|
2327
|
-
};
|
|
2328
|
-
};
|
|
2329
|
-
const se_TrailList = (input, context) => {
|
|
2330
|
-
return input
|
|
2331
|
-
.filter((e) => e != null)
|
|
2332
|
-
.map((entry) => {
|
|
2333
|
-
return se_Trail(entry, context);
|
|
2334
|
-
});
|
|
2335
|
-
};
|
|
2336
|
-
const se_ValueList = (input, context) => {
|
|
2337
|
-
return input
|
|
2338
|
-
.filter((e) => e != null)
|
|
2339
|
-
.map((entry) => {
|
|
2340
|
-
return entry;
|
|
2341
|
-
});
|
|
2342
|
-
};
|
|
2343
|
-
const se_VpcConfiguration = (input, context) => {
|
|
2344
|
-
return {
|
|
2345
|
-
...(input.vpcId != null && { vpcId: input.vpcId }),
|
|
2346
|
-
};
|
|
2347
|
-
};
|
|
2348
1961
|
const de_AccessPreview = (output, context) => {
|
|
2349
|
-
return {
|
|
2350
|
-
analyzerArn: __expectString
|
|
2351
|
-
configurations:
|
|
2352
|
-
createdAt:
|
|
2353
|
-
id: __expectString
|
|
2354
|
-
status: __expectString
|
|
2355
|
-
statusReason:
|
|
2356
|
-
};
|
|
1962
|
+
return take(output, {
|
|
1963
|
+
analyzerArn: __expectString,
|
|
1964
|
+
configurations: _json,
|
|
1965
|
+
createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1966
|
+
id: __expectString,
|
|
1967
|
+
status: __expectString,
|
|
1968
|
+
statusReason: _json,
|
|
1969
|
+
});
|
|
2357
1970
|
};
|
|
2358
1971
|
const de_AccessPreviewFinding = (output, context) => {
|
|
2359
|
-
return {
|
|
2360
|
-
action:
|
|
2361
|
-
changeType: __expectString
|
|
2362
|
-
condition:
|
|
2363
|
-
createdAt:
|
|
2364
|
-
error: __expectString
|
|
2365
|
-
existingFindingId: __expectString
|
|
2366
|
-
existingFindingStatus: __expectString
|
|
2367
|
-
id: __expectString
|
|
2368
|
-
isPublic: __expectBoolean
|
|
2369
|
-
principal:
|
|
2370
|
-
resource: __expectString
|
|
2371
|
-
resourceOwnerAccount: __expectString
|
|
2372
|
-
resourceType: __expectString
|
|
2373
|
-
sources:
|
|
2374
|
-
status: __expectString
|
|
2375
|
-
};
|
|
1972
|
+
return take(output, {
|
|
1973
|
+
action: _json,
|
|
1974
|
+
changeType: __expectString,
|
|
1975
|
+
condition: _json,
|
|
1976
|
+
createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1977
|
+
error: __expectString,
|
|
1978
|
+
existingFindingId: __expectString,
|
|
1979
|
+
existingFindingStatus: __expectString,
|
|
1980
|
+
id: __expectString,
|
|
1981
|
+
isPublic: __expectBoolean,
|
|
1982
|
+
principal: _json,
|
|
1983
|
+
resource: __expectString,
|
|
1984
|
+
resourceOwnerAccount: __expectString,
|
|
1985
|
+
resourceType: __expectString,
|
|
1986
|
+
sources: _json,
|
|
1987
|
+
status: __expectString,
|
|
1988
|
+
});
|
|
2376
1989
|
};
|
|
2377
1990
|
const de_AccessPreviewFindingsList = (output, context) => {
|
|
2378
1991
|
const retVal = (output || [])
|
|
2379
1992
|
.filter((e) => e != null)
|
|
2380
1993
|
.map((entry) => {
|
|
2381
|
-
if (entry === null) {
|
|
2382
|
-
return null;
|
|
2383
|
-
}
|
|
2384
1994
|
return de_AccessPreviewFinding(entry, context);
|
|
2385
1995
|
});
|
|
2386
1996
|
return retVal;
|
|
@@ -2389,803 +1999,161 @@ const de_AccessPreviewsList = (output, context) => {
|
|
|
2389
1999
|
const retVal = (output || [])
|
|
2390
2000
|
.filter((e) => e != null)
|
|
2391
2001
|
.map((entry) => {
|
|
2392
|
-
if (entry === null) {
|
|
2393
|
-
return null;
|
|
2394
|
-
}
|
|
2395
2002
|
return de_AccessPreviewSummary(entry, context);
|
|
2396
2003
|
});
|
|
2397
2004
|
return retVal;
|
|
2398
2005
|
};
|
|
2399
|
-
const de_AccessPreviewStatusReason = (output, context) => {
|
|
2400
|
-
return {
|
|
2401
|
-
code: __expectString(output.code),
|
|
2402
|
-
};
|
|
2403
|
-
};
|
|
2404
2006
|
const de_AccessPreviewSummary = (output, context) => {
|
|
2405
|
-
return {
|
|
2406
|
-
analyzerArn: __expectString
|
|
2407
|
-
createdAt:
|
|
2408
|
-
id: __expectString
|
|
2409
|
-
status: __expectString
|
|
2410
|
-
statusReason:
|
|
2411
|
-
};
|
|
2412
|
-
};
|
|
2413
|
-
const de_AclGrantee = (output, context) => {
|
|
2414
|
-
if (__expectString(output.id) !== undefined) {
|
|
2415
|
-
return { id: __expectString(output.id) };
|
|
2416
|
-
}
|
|
2417
|
-
if (__expectString(output.uri) !== undefined) {
|
|
2418
|
-
return { uri: __expectString(output.uri) };
|
|
2419
|
-
}
|
|
2420
|
-
return { $unknown: Object.entries(output)[0] };
|
|
2421
|
-
};
|
|
2422
|
-
const de_ActionList = (output, context) => {
|
|
2423
|
-
const retVal = (output || [])
|
|
2424
|
-
.filter((e) => e != null)
|
|
2425
|
-
.map((entry) => {
|
|
2426
|
-
if (entry === null) {
|
|
2427
|
-
return null;
|
|
2428
|
-
}
|
|
2429
|
-
return __expectString(entry);
|
|
2007
|
+
return take(output, {
|
|
2008
|
+
analyzerArn: __expectString,
|
|
2009
|
+
createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2010
|
+
id: __expectString,
|
|
2011
|
+
status: __expectString,
|
|
2012
|
+
statusReason: _json,
|
|
2430
2013
|
});
|
|
2431
|
-
return retVal;
|
|
2432
2014
|
};
|
|
2433
2015
|
const de_AnalyzedResource = (output, context) => {
|
|
2434
|
-
return {
|
|
2435
|
-
actions:
|
|
2436
|
-
analyzedAt:
|
|
2437
|
-
createdAt:
|
|
2438
|
-
error: __expectString
|
|
2439
|
-
isPublic: __expectBoolean
|
|
2440
|
-
resourceArn: __expectString
|
|
2441
|
-
resourceOwnerAccount: __expectString
|
|
2442
|
-
resourceType: __expectString
|
|
2443
|
-
sharedVia:
|
|
2444
|
-
status: __expectString
|
|
2445
|
-
updatedAt:
|
|
2446
|
-
};
|
|
2447
|
-
};
|
|
2448
|
-
const de_AnalyzedResourcesList = (output, context) => {
|
|
2449
|
-
const retVal = (output || [])
|
|
2450
|
-
.filter((e) => e != null)
|
|
2451
|
-
.map((entry) => {
|
|
2452
|
-
if (entry === null) {
|
|
2453
|
-
return null;
|
|
2454
|
-
}
|
|
2455
|
-
return de_AnalyzedResourceSummary(entry, context);
|
|
2016
|
+
return take(output, {
|
|
2017
|
+
actions: _json,
|
|
2018
|
+
analyzedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2019
|
+
createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2020
|
+
error: __expectString,
|
|
2021
|
+
isPublic: __expectBoolean,
|
|
2022
|
+
resourceArn: __expectString,
|
|
2023
|
+
resourceOwnerAccount: __expectString,
|
|
2024
|
+
resourceType: __expectString,
|
|
2025
|
+
sharedVia: _json,
|
|
2026
|
+
status: __expectString,
|
|
2027
|
+
updatedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2456
2028
|
});
|
|
2457
|
-
return retVal;
|
|
2458
|
-
};
|
|
2459
|
-
const de_AnalyzedResourceSummary = (output, context) => {
|
|
2460
|
-
return {
|
|
2461
|
-
resourceArn: __expectString(output.resourceArn),
|
|
2462
|
-
resourceOwnerAccount: __expectString(output.resourceOwnerAccount),
|
|
2463
|
-
resourceType: __expectString(output.resourceType),
|
|
2464
|
-
};
|
|
2465
2029
|
};
|
|
2466
2030
|
const de_AnalyzersList = (output, context) => {
|
|
2467
2031
|
const retVal = (output || [])
|
|
2468
2032
|
.filter((e) => e != null)
|
|
2469
2033
|
.map((entry) => {
|
|
2470
|
-
if (entry === null) {
|
|
2471
|
-
return null;
|
|
2472
|
-
}
|
|
2473
2034
|
return de_AnalyzerSummary(entry, context);
|
|
2474
2035
|
});
|
|
2475
2036
|
return retVal;
|
|
2476
2037
|
};
|
|
2477
2038
|
const de_AnalyzerSummary = (output, context) => {
|
|
2478
|
-
return {
|
|
2479
|
-
arn: __expectString
|
|
2480
|
-
createdAt:
|
|
2481
|
-
lastResourceAnalyzed: __expectString
|
|
2482
|
-
lastResourceAnalyzedAt:
|
|
2483
|
-
|
|
2484
|
-
|
|
2485
|
-
|
|
2486
|
-
|
|
2487
|
-
|
|
2488
|
-
|
|
2489
|
-
type: __expectString(output.type),
|
|
2490
|
-
};
|
|
2039
|
+
return take(output, {
|
|
2040
|
+
arn: __expectString,
|
|
2041
|
+
createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2042
|
+
lastResourceAnalyzed: __expectString,
|
|
2043
|
+
lastResourceAnalyzedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2044
|
+
name: __expectString,
|
|
2045
|
+
status: __expectString,
|
|
2046
|
+
statusReason: _json,
|
|
2047
|
+
tags: _json,
|
|
2048
|
+
type: __expectString,
|
|
2049
|
+
});
|
|
2491
2050
|
};
|
|
2492
2051
|
const de_ArchiveRulesList = (output, context) => {
|
|
2493
2052
|
const retVal = (output || [])
|
|
2494
2053
|
.filter((e) => e != null)
|
|
2495
2054
|
.map((entry) => {
|
|
2496
|
-
if (entry === null) {
|
|
2497
|
-
return null;
|
|
2498
|
-
}
|
|
2499
2055
|
return de_ArchiveRuleSummary(entry, context);
|
|
2500
2056
|
});
|
|
2501
2057
|
return retVal;
|
|
2502
2058
|
};
|
|
2503
2059
|
const de_ArchiveRuleSummary = (output, context) => {
|
|
2504
|
-
return {
|
|
2505
|
-
createdAt:
|
|
2506
|
-
filter:
|
|
2507
|
-
ruleName: __expectString
|
|
2508
|
-
updatedAt:
|
|
2509
|
-
};
|
|
2510
|
-
};
|
|
2511
|
-
const de_CloudTrailProperties = (output, context) => {
|
|
2512
|
-
return {
|
|
2513
|
-
endTime: output.endTime != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.endTime)) : undefined,
|
|
2514
|
-
startTime: output.startTime != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.startTime)) : undefined,
|
|
2515
|
-
trailProperties: output.trailProperties != null ? de_TrailPropertiesList(output.trailProperties, context) : undefined,
|
|
2516
|
-
};
|
|
2517
|
-
};
|
|
2518
|
-
const de_ConditionKeyMap = (output, context) => {
|
|
2519
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2520
|
-
if (value === null) {
|
|
2521
|
-
return acc;
|
|
2522
|
-
}
|
|
2523
|
-
acc[key] = __expectString(value);
|
|
2524
|
-
return acc;
|
|
2525
|
-
}, {});
|
|
2526
|
-
};
|
|
2527
|
-
const de_Configuration = (output, context) => {
|
|
2528
|
-
if (output.ebsSnapshot != null) {
|
|
2529
|
-
return {
|
|
2530
|
-
ebsSnapshot: de_EbsSnapshotConfiguration(output.ebsSnapshot, context),
|
|
2531
|
-
};
|
|
2532
|
-
}
|
|
2533
|
-
if (output.ecrRepository != null) {
|
|
2534
|
-
return {
|
|
2535
|
-
ecrRepository: de_EcrRepositoryConfiguration(output.ecrRepository, context),
|
|
2536
|
-
};
|
|
2537
|
-
}
|
|
2538
|
-
if (output.efsFileSystem != null) {
|
|
2539
|
-
return {
|
|
2540
|
-
efsFileSystem: de_EfsFileSystemConfiguration(output.efsFileSystem, context),
|
|
2541
|
-
};
|
|
2542
|
-
}
|
|
2543
|
-
if (output.iamRole != null) {
|
|
2544
|
-
return {
|
|
2545
|
-
iamRole: de_IamRoleConfiguration(output.iamRole, context),
|
|
2546
|
-
};
|
|
2547
|
-
}
|
|
2548
|
-
if (output.kmsKey != null) {
|
|
2549
|
-
return {
|
|
2550
|
-
kmsKey: de_KmsKeyConfiguration(output.kmsKey, context),
|
|
2551
|
-
};
|
|
2552
|
-
}
|
|
2553
|
-
if (output.rdsDbClusterSnapshot != null) {
|
|
2554
|
-
return {
|
|
2555
|
-
rdsDbClusterSnapshot: de_RdsDbClusterSnapshotConfiguration(output.rdsDbClusterSnapshot, context),
|
|
2556
|
-
};
|
|
2557
|
-
}
|
|
2558
|
-
if (output.rdsDbSnapshot != null) {
|
|
2559
|
-
return {
|
|
2560
|
-
rdsDbSnapshot: de_RdsDbSnapshotConfiguration(output.rdsDbSnapshot, context),
|
|
2561
|
-
};
|
|
2562
|
-
}
|
|
2563
|
-
if (output.s3Bucket != null) {
|
|
2564
|
-
return {
|
|
2565
|
-
s3Bucket: de_S3BucketConfiguration(output.s3Bucket, context),
|
|
2566
|
-
};
|
|
2567
|
-
}
|
|
2568
|
-
if (output.secretsManagerSecret != null) {
|
|
2569
|
-
return {
|
|
2570
|
-
secretsManagerSecret: de_SecretsManagerSecretConfiguration(output.secretsManagerSecret, context),
|
|
2571
|
-
};
|
|
2572
|
-
}
|
|
2573
|
-
if (output.snsTopic != null) {
|
|
2574
|
-
return {
|
|
2575
|
-
snsTopic: de_SnsTopicConfiguration(output.snsTopic, context),
|
|
2576
|
-
};
|
|
2577
|
-
}
|
|
2578
|
-
if (output.sqsQueue != null) {
|
|
2579
|
-
return {
|
|
2580
|
-
sqsQueue: de_SqsQueueConfiguration(output.sqsQueue, context),
|
|
2581
|
-
};
|
|
2582
|
-
}
|
|
2583
|
-
return { $unknown: Object.entries(output)[0] };
|
|
2584
|
-
};
|
|
2585
|
-
const de_ConfigurationsMap = (output, context) => {
|
|
2586
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2587
|
-
if (value === null) {
|
|
2588
|
-
return acc;
|
|
2589
|
-
}
|
|
2590
|
-
acc[key] = de_Configuration(__expectUnion(value), context);
|
|
2591
|
-
return acc;
|
|
2592
|
-
}, {});
|
|
2593
|
-
};
|
|
2594
|
-
const de_Criterion = (output, context) => {
|
|
2595
|
-
return {
|
|
2596
|
-
contains: output.contains != null ? de_ValueList(output.contains, context) : undefined,
|
|
2597
|
-
eq: output.eq != null ? de_ValueList(output.eq, context) : undefined,
|
|
2598
|
-
exists: __expectBoolean(output.exists),
|
|
2599
|
-
neq: output.neq != null ? de_ValueList(output.neq, context) : undefined,
|
|
2600
|
-
};
|
|
2601
|
-
};
|
|
2602
|
-
const de_EbsGroupList = (output, context) => {
|
|
2603
|
-
const retVal = (output || [])
|
|
2604
|
-
.filter((e) => e != null)
|
|
2605
|
-
.map((entry) => {
|
|
2606
|
-
if (entry === null) {
|
|
2607
|
-
return null;
|
|
2608
|
-
}
|
|
2609
|
-
return __expectString(entry);
|
|
2060
|
+
return take(output, {
|
|
2061
|
+
createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2062
|
+
filter: _json,
|
|
2063
|
+
ruleName: __expectString,
|
|
2064
|
+
updatedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2610
2065
|
});
|
|
2611
|
-
return retVal;
|
|
2612
|
-
};
|
|
2613
|
-
const de_EbsSnapshotConfiguration = (output, context) => {
|
|
2614
|
-
return {
|
|
2615
|
-
groups: output.groups != null ? de_EbsGroupList(output.groups, context) : undefined,
|
|
2616
|
-
kmsKeyId: __expectString(output.kmsKeyId),
|
|
2617
|
-
userIds: output.userIds != null ? de_EbsUserIdList(output.userIds, context) : undefined,
|
|
2618
|
-
};
|
|
2619
2066
|
};
|
|
2620
|
-
const
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
return null;
|
|
2626
|
-
}
|
|
2627
|
-
return __expectString(entry);
|
|
2067
|
+
const de_CloudTrailProperties = (output, context) => {
|
|
2068
|
+
return take(output, {
|
|
2069
|
+
endTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2070
|
+
startTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2071
|
+
trailProperties: _json,
|
|
2628
2072
|
});
|
|
2629
|
-
return retVal;
|
|
2630
|
-
};
|
|
2631
|
-
const de_EcrRepositoryConfiguration = (output, context) => {
|
|
2632
|
-
return {
|
|
2633
|
-
repositoryPolicy: __expectString(output.repositoryPolicy),
|
|
2634
|
-
};
|
|
2635
|
-
};
|
|
2636
|
-
const de_EfsFileSystemConfiguration = (output, context) => {
|
|
2637
|
-
return {
|
|
2638
|
-
fileSystemPolicy: __expectString(output.fileSystemPolicy),
|
|
2639
|
-
};
|
|
2640
|
-
};
|
|
2641
|
-
const de_FilterCriteriaMap = (output, context) => {
|
|
2642
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2643
|
-
if (value === null) {
|
|
2644
|
-
return acc;
|
|
2645
|
-
}
|
|
2646
|
-
acc[key] = de_Criterion(value, context);
|
|
2647
|
-
return acc;
|
|
2648
|
-
}, {});
|
|
2649
2073
|
};
|
|
2650
2074
|
const de_Finding = (output, context) => {
|
|
2651
|
-
return {
|
|
2652
|
-
action:
|
|
2653
|
-
analyzedAt:
|
|
2654
|
-
condition:
|
|
2655
|
-
createdAt:
|
|
2656
|
-
error: __expectString
|
|
2657
|
-
id: __expectString
|
|
2658
|
-
isPublic: __expectBoolean
|
|
2659
|
-
principal:
|
|
2660
|
-
resource: __expectString
|
|
2661
|
-
resourceOwnerAccount: __expectString
|
|
2662
|
-
resourceType: __expectString
|
|
2663
|
-
sources:
|
|
2664
|
-
status: __expectString
|
|
2665
|
-
updatedAt:
|
|
2666
|
-
};
|
|
2075
|
+
return take(output, {
|
|
2076
|
+
action: _json,
|
|
2077
|
+
analyzedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2078
|
+
condition: _json,
|
|
2079
|
+
createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2080
|
+
error: __expectString,
|
|
2081
|
+
id: __expectString,
|
|
2082
|
+
isPublic: __expectBoolean,
|
|
2083
|
+
principal: _json,
|
|
2084
|
+
resource: __expectString,
|
|
2085
|
+
resourceOwnerAccount: __expectString,
|
|
2086
|
+
resourceType: __expectString,
|
|
2087
|
+
sources: _json,
|
|
2088
|
+
status: __expectString,
|
|
2089
|
+
updatedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2090
|
+
});
|
|
2667
2091
|
};
|
|
2668
2092
|
const de_FindingsList = (output, context) => {
|
|
2669
2093
|
const retVal = (output || [])
|
|
2670
2094
|
.filter((e) => e != null)
|
|
2671
2095
|
.map((entry) => {
|
|
2672
|
-
if (entry === null) {
|
|
2673
|
-
return null;
|
|
2674
|
-
}
|
|
2675
2096
|
return de_FindingSummary(entry, context);
|
|
2676
2097
|
});
|
|
2677
2098
|
return retVal;
|
|
2678
2099
|
};
|
|
2679
|
-
const de_FindingSource = (output, context) => {
|
|
2680
|
-
return {
|
|
2681
|
-
detail: output.detail != null ? de_FindingSourceDetail(output.detail, context) : undefined,
|
|
2682
|
-
type: __expectString(output.type),
|
|
2683
|
-
};
|
|
2684
|
-
};
|
|
2685
|
-
const de_FindingSourceDetail = (output, context) => {
|
|
2686
|
-
return {
|
|
2687
|
-
accessPointAccount: __expectString(output.accessPointAccount),
|
|
2688
|
-
accessPointArn: __expectString(output.accessPointArn),
|
|
2689
|
-
};
|
|
2690
|
-
};
|
|
2691
|
-
const de_FindingSourceList = (output, context) => {
|
|
2692
|
-
const retVal = (output || [])
|
|
2693
|
-
.filter((e) => e != null)
|
|
2694
|
-
.map((entry) => {
|
|
2695
|
-
if (entry === null) {
|
|
2696
|
-
return null;
|
|
2697
|
-
}
|
|
2698
|
-
return de_FindingSource(entry, context);
|
|
2699
|
-
});
|
|
2700
|
-
return retVal;
|
|
2701
|
-
};
|
|
2702
2100
|
const de_FindingSummary = (output, context) => {
|
|
2703
|
-
return {
|
|
2704
|
-
action:
|
|
2705
|
-
analyzedAt:
|
|
2706
|
-
condition:
|
|
2707
|
-
createdAt:
|
|
2708
|
-
error: __expectString
|
|
2709
|
-
id: __expectString
|
|
2710
|
-
isPublic: __expectBoolean
|
|
2711
|
-
principal:
|
|
2712
|
-
resource: __expectString
|
|
2713
|
-
resourceOwnerAccount: __expectString
|
|
2714
|
-
resourceType: __expectString
|
|
2715
|
-
sources:
|
|
2716
|
-
status: __expectString
|
|
2717
|
-
updatedAt:
|
|
2718
|
-
};
|
|
2719
|
-
};
|
|
2720
|
-
const de_GeneratedPolicy = (output, context) => {
|
|
2721
|
-
return {
|
|
2722
|
-
policy: __expectString(output.policy),
|
|
2723
|
-
};
|
|
2724
|
-
};
|
|
2725
|
-
const de_GeneratedPolicyList = (output, context) => {
|
|
2726
|
-
const retVal = (output || [])
|
|
2727
|
-
.filter((e) => e != null)
|
|
2728
|
-
.map((entry) => {
|
|
2729
|
-
if (entry === null) {
|
|
2730
|
-
return null;
|
|
2731
|
-
}
|
|
2732
|
-
return de_GeneratedPolicy(entry, context);
|
|
2101
|
+
return take(output, {
|
|
2102
|
+
action: _json,
|
|
2103
|
+
analyzedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2104
|
+
condition: _json,
|
|
2105
|
+
createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2106
|
+
error: __expectString,
|
|
2107
|
+
id: __expectString,
|
|
2108
|
+
isPublic: __expectBoolean,
|
|
2109
|
+
principal: _json,
|
|
2110
|
+
resource: __expectString,
|
|
2111
|
+
resourceOwnerAccount: __expectString,
|
|
2112
|
+
resourceType: __expectString,
|
|
2113
|
+
sources: _json,
|
|
2114
|
+
status: __expectString,
|
|
2115
|
+
updatedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2733
2116
|
});
|
|
2734
|
-
return retVal;
|
|
2735
2117
|
};
|
|
2736
2118
|
const de_GeneratedPolicyProperties = (output, context) => {
|
|
2737
|
-
return {
|
|
2738
|
-
cloudTrailProperties:
|
|
2739
|
-
isComplete: __expectBoolean
|
|
2740
|
-
principalArn: __expectString
|
|
2741
|
-
};
|
|
2742
|
-
};
|
|
2743
|
-
const de_GeneratedPolicyResult = (output, context) => {
|
|
2744
|
-
return {
|
|
2745
|
-
generatedPolicies: output.generatedPolicies != null ? de_GeneratedPolicyList(output.generatedPolicies, context) : undefined,
|
|
2746
|
-
properties: output.properties != null ? de_GeneratedPolicyProperties(output.properties, context) : undefined,
|
|
2747
|
-
};
|
|
2748
|
-
};
|
|
2749
|
-
const de_IamRoleConfiguration = (output, context) => {
|
|
2750
|
-
return {
|
|
2751
|
-
trustPolicy: __expectString(output.trustPolicy),
|
|
2752
|
-
};
|
|
2753
|
-
};
|
|
2754
|
-
const de_InternetConfiguration = (output, context) => {
|
|
2755
|
-
return {};
|
|
2756
|
-
};
|
|
2757
|
-
const de_JobDetails = (output, context) => {
|
|
2758
|
-
return {
|
|
2759
|
-
completedOn: output.completedOn != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.completedOn)) : undefined,
|
|
2760
|
-
jobError: output.jobError != null ? de_JobError(output.jobError, context) : undefined,
|
|
2761
|
-
jobId: __expectString(output.jobId),
|
|
2762
|
-
startedOn: output.startedOn != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.startedOn)) : undefined,
|
|
2763
|
-
status: __expectString(output.status),
|
|
2764
|
-
};
|
|
2765
|
-
};
|
|
2766
|
-
const de_JobError = (output, context) => {
|
|
2767
|
-
return {
|
|
2768
|
-
code: __expectString(output.code),
|
|
2769
|
-
message: __expectString(output.message),
|
|
2770
|
-
};
|
|
2771
|
-
};
|
|
2772
|
-
const de_KmsConstraintsMap = (output, context) => {
|
|
2773
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2774
|
-
if (value === null) {
|
|
2775
|
-
return acc;
|
|
2776
|
-
}
|
|
2777
|
-
acc[key] = __expectString(value);
|
|
2778
|
-
return acc;
|
|
2779
|
-
}, {});
|
|
2780
|
-
};
|
|
2781
|
-
const de_KmsGrantConfiguration = (output, context) => {
|
|
2782
|
-
return {
|
|
2783
|
-
constraints: output.constraints != null ? de_KmsGrantConstraints(output.constraints, context) : undefined,
|
|
2784
|
-
granteePrincipal: __expectString(output.granteePrincipal),
|
|
2785
|
-
issuingAccount: __expectString(output.issuingAccount),
|
|
2786
|
-
operations: output.operations != null ? de_KmsGrantOperationsList(output.operations, context) : undefined,
|
|
2787
|
-
retiringPrincipal: __expectString(output.retiringPrincipal),
|
|
2788
|
-
};
|
|
2789
|
-
};
|
|
2790
|
-
const de_KmsGrantConfigurationsList = (output, context) => {
|
|
2791
|
-
const retVal = (output || [])
|
|
2792
|
-
.filter((e) => e != null)
|
|
2793
|
-
.map((entry) => {
|
|
2794
|
-
if (entry === null) {
|
|
2795
|
-
return null;
|
|
2796
|
-
}
|
|
2797
|
-
return de_KmsGrantConfiguration(entry, context);
|
|
2798
|
-
});
|
|
2799
|
-
return retVal;
|
|
2800
|
-
};
|
|
2801
|
-
const de_KmsGrantConstraints = (output, context) => {
|
|
2802
|
-
return {
|
|
2803
|
-
encryptionContextEquals: output.encryptionContextEquals != null
|
|
2804
|
-
? de_KmsConstraintsMap(output.encryptionContextEquals, context)
|
|
2805
|
-
: undefined,
|
|
2806
|
-
encryptionContextSubset: output.encryptionContextSubset != null
|
|
2807
|
-
? de_KmsConstraintsMap(output.encryptionContextSubset, context)
|
|
2808
|
-
: undefined,
|
|
2809
|
-
};
|
|
2810
|
-
};
|
|
2811
|
-
const de_KmsGrantOperationsList = (output, context) => {
|
|
2812
|
-
const retVal = (output || [])
|
|
2813
|
-
.filter((e) => e != null)
|
|
2814
|
-
.map((entry) => {
|
|
2815
|
-
if (entry === null) {
|
|
2816
|
-
return null;
|
|
2817
|
-
}
|
|
2818
|
-
return __expectString(entry);
|
|
2119
|
+
return take(output, {
|
|
2120
|
+
cloudTrailProperties: (_) => de_CloudTrailProperties(_, context),
|
|
2121
|
+
isComplete: __expectBoolean,
|
|
2122
|
+
principalArn: __expectString,
|
|
2819
2123
|
});
|
|
2820
|
-
return retVal;
|
|
2821
|
-
};
|
|
2822
|
-
const de_KmsKeyConfiguration = (output, context) => {
|
|
2823
|
-
return {
|
|
2824
|
-
grants: output.grants != null ? de_KmsGrantConfigurationsList(output.grants, context) : undefined,
|
|
2825
|
-
keyPolicies: output.keyPolicies != null ? de_KmsKeyPoliciesMap(output.keyPolicies, context) : undefined,
|
|
2826
|
-
};
|
|
2827
|
-
};
|
|
2828
|
-
const de_KmsKeyPoliciesMap = (output, context) => {
|
|
2829
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2830
|
-
if (value === null) {
|
|
2831
|
-
return acc;
|
|
2832
|
-
}
|
|
2833
|
-
acc[key] = __expectString(value);
|
|
2834
|
-
return acc;
|
|
2835
|
-
}, {});
|
|
2836
|
-
};
|
|
2837
|
-
const de_Location = (output, context) => {
|
|
2838
|
-
return {
|
|
2839
|
-
path: output.path != null ? de_PathElementList(output.path, context) : undefined,
|
|
2840
|
-
span: output.span != null ? de_Span(output.span, context) : undefined,
|
|
2841
|
-
};
|
|
2842
2124
|
};
|
|
2843
|
-
const
|
|
2844
|
-
|
|
2845
|
-
|
|
2846
|
-
|
|
2847
|
-
if (entry === null) {
|
|
2848
|
-
return null;
|
|
2849
|
-
}
|
|
2850
|
-
return de_Location(entry, context);
|
|
2125
|
+
const de_GeneratedPolicyResult = (output, context) => {
|
|
2126
|
+
return take(output, {
|
|
2127
|
+
generatedPolicies: _json,
|
|
2128
|
+
properties: (_) => de_GeneratedPolicyProperties(_, context),
|
|
2851
2129
|
});
|
|
2852
|
-
return retVal;
|
|
2853
|
-
};
|
|
2854
|
-
const de_NetworkOriginConfiguration = (output, context) => {
|
|
2855
|
-
if (output.internetConfiguration != null) {
|
|
2856
|
-
return {
|
|
2857
|
-
internetConfiguration: de_InternetConfiguration(output.internetConfiguration, context),
|
|
2858
|
-
};
|
|
2859
|
-
}
|
|
2860
|
-
if (output.vpcConfiguration != null) {
|
|
2861
|
-
return {
|
|
2862
|
-
vpcConfiguration: de_VpcConfiguration(output.vpcConfiguration, context),
|
|
2863
|
-
};
|
|
2864
|
-
}
|
|
2865
|
-
return { $unknown: Object.entries(output)[0] };
|
|
2866
|
-
};
|
|
2867
|
-
const de_PathElement = (output, context) => {
|
|
2868
|
-
if (__expectInt32(output.index) !== undefined) {
|
|
2869
|
-
return { index: __expectInt32(output.index) };
|
|
2870
|
-
}
|
|
2871
|
-
if (__expectString(output.key) !== undefined) {
|
|
2872
|
-
return { key: __expectString(output.key) };
|
|
2873
|
-
}
|
|
2874
|
-
if (output.substring != null) {
|
|
2875
|
-
return {
|
|
2876
|
-
substring: de_Substring(output.substring, context),
|
|
2877
|
-
};
|
|
2878
|
-
}
|
|
2879
|
-
if (__expectString(output.value) !== undefined) {
|
|
2880
|
-
return { value: __expectString(output.value) };
|
|
2881
|
-
}
|
|
2882
|
-
return { $unknown: Object.entries(output)[0] };
|
|
2883
2130
|
};
|
|
2884
|
-
const
|
|
2885
|
-
|
|
2886
|
-
|
|
2887
|
-
|
|
2888
|
-
|
|
2889
|
-
|
|
2890
|
-
|
|
2891
|
-
return de_PathElement(__expectUnion(entry), context);
|
|
2131
|
+
const de_JobDetails = (output, context) => {
|
|
2132
|
+
return take(output, {
|
|
2133
|
+
completedOn: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2134
|
+
jobError: _json,
|
|
2135
|
+
jobId: __expectString,
|
|
2136
|
+
startedOn: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2137
|
+
status: __expectString,
|
|
2892
2138
|
});
|
|
2893
|
-
return retVal;
|
|
2894
2139
|
};
|
|
2895
2140
|
const de_PolicyGeneration = (output, context) => {
|
|
2896
|
-
return {
|
|
2897
|
-
completedOn:
|
|
2898
|
-
jobId: __expectString
|
|
2899
|
-
principalArn: __expectString
|
|
2900
|
-
startedOn:
|
|
2901
|
-
status: __expectString
|
|
2902
|
-
};
|
|
2141
|
+
return take(output, {
|
|
2142
|
+
completedOn: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2143
|
+
jobId: __expectString,
|
|
2144
|
+
principalArn: __expectString,
|
|
2145
|
+
startedOn: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2146
|
+
status: __expectString,
|
|
2147
|
+
});
|
|
2903
2148
|
};
|
|
2904
2149
|
const de_PolicyGenerationList = (output, context) => {
|
|
2905
2150
|
const retVal = (output || [])
|
|
2906
2151
|
.filter((e) => e != null)
|
|
2907
2152
|
.map((entry) => {
|
|
2908
|
-
if (entry === null) {
|
|
2909
|
-
return null;
|
|
2910
|
-
}
|
|
2911
2153
|
return de_PolicyGeneration(entry, context);
|
|
2912
2154
|
});
|
|
2913
2155
|
return retVal;
|
|
2914
2156
|
};
|
|
2915
|
-
const de_Position = (output, context) => {
|
|
2916
|
-
return {
|
|
2917
|
-
column: __expectInt32(output.column),
|
|
2918
|
-
line: __expectInt32(output.line),
|
|
2919
|
-
offset: __expectInt32(output.offset),
|
|
2920
|
-
};
|
|
2921
|
-
};
|
|
2922
|
-
const de_PrincipalMap = (output, context) => {
|
|
2923
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2924
|
-
if (value === null) {
|
|
2925
|
-
return acc;
|
|
2926
|
-
}
|
|
2927
|
-
acc[key] = __expectString(value);
|
|
2928
|
-
return acc;
|
|
2929
|
-
}, {});
|
|
2930
|
-
};
|
|
2931
|
-
const de_RdsDbClusterSnapshotAccountIdsList = (output, context) => {
|
|
2932
|
-
const retVal = (output || [])
|
|
2933
|
-
.filter((e) => e != null)
|
|
2934
|
-
.map((entry) => {
|
|
2935
|
-
if (entry === null) {
|
|
2936
|
-
return null;
|
|
2937
|
-
}
|
|
2938
|
-
return __expectString(entry);
|
|
2939
|
-
});
|
|
2940
|
-
return retVal;
|
|
2941
|
-
};
|
|
2942
|
-
const de_RdsDbClusterSnapshotAttributesMap = (output, context) => {
|
|
2943
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2944
|
-
if (value === null) {
|
|
2945
|
-
return acc;
|
|
2946
|
-
}
|
|
2947
|
-
acc[key] = de_RdsDbClusterSnapshotAttributeValue(__expectUnion(value), context);
|
|
2948
|
-
return acc;
|
|
2949
|
-
}, {});
|
|
2950
|
-
};
|
|
2951
|
-
const de_RdsDbClusterSnapshotAttributeValue = (output, context) => {
|
|
2952
|
-
if (output.accountIds != null) {
|
|
2953
|
-
return {
|
|
2954
|
-
accountIds: de_RdsDbClusterSnapshotAccountIdsList(output.accountIds, context),
|
|
2955
|
-
};
|
|
2956
|
-
}
|
|
2957
|
-
return { $unknown: Object.entries(output)[0] };
|
|
2958
|
-
};
|
|
2959
|
-
const de_RdsDbClusterSnapshotConfiguration = (output, context) => {
|
|
2960
|
-
return {
|
|
2961
|
-
attributes: output.attributes != null ? de_RdsDbClusterSnapshotAttributesMap(output.attributes, context) : undefined,
|
|
2962
|
-
kmsKeyId: __expectString(output.kmsKeyId),
|
|
2963
|
-
};
|
|
2964
|
-
};
|
|
2965
|
-
const de_RdsDbSnapshotAccountIdsList = (output, context) => {
|
|
2966
|
-
const retVal = (output || [])
|
|
2967
|
-
.filter((e) => e != null)
|
|
2968
|
-
.map((entry) => {
|
|
2969
|
-
if (entry === null) {
|
|
2970
|
-
return null;
|
|
2971
|
-
}
|
|
2972
|
-
return __expectString(entry);
|
|
2973
|
-
});
|
|
2974
|
-
return retVal;
|
|
2975
|
-
};
|
|
2976
|
-
const de_RdsDbSnapshotAttributesMap = (output, context) => {
|
|
2977
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2978
|
-
if (value === null) {
|
|
2979
|
-
return acc;
|
|
2980
|
-
}
|
|
2981
|
-
acc[key] = de_RdsDbSnapshotAttributeValue(__expectUnion(value), context);
|
|
2982
|
-
return acc;
|
|
2983
|
-
}, {});
|
|
2984
|
-
};
|
|
2985
|
-
const de_RdsDbSnapshotAttributeValue = (output, context) => {
|
|
2986
|
-
if (output.accountIds != null) {
|
|
2987
|
-
return {
|
|
2988
|
-
accountIds: de_RdsDbSnapshotAccountIdsList(output.accountIds, context),
|
|
2989
|
-
};
|
|
2990
|
-
}
|
|
2991
|
-
return { $unknown: Object.entries(output)[0] };
|
|
2992
|
-
};
|
|
2993
|
-
const de_RdsDbSnapshotConfiguration = (output, context) => {
|
|
2994
|
-
return {
|
|
2995
|
-
attributes: output.attributes != null ? de_RdsDbSnapshotAttributesMap(output.attributes, context) : undefined,
|
|
2996
|
-
kmsKeyId: __expectString(output.kmsKeyId),
|
|
2997
|
-
};
|
|
2998
|
-
};
|
|
2999
|
-
const de_RegionList = (output, context) => {
|
|
3000
|
-
const retVal = (output || [])
|
|
3001
|
-
.filter((e) => e != null)
|
|
3002
|
-
.map((entry) => {
|
|
3003
|
-
if (entry === null) {
|
|
3004
|
-
return null;
|
|
3005
|
-
}
|
|
3006
|
-
return __expectString(entry);
|
|
3007
|
-
});
|
|
3008
|
-
return retVal;
|
|
3009
|
-
};
|
|
3010
|
-
const de_S3AccessPointConfiguration = (output, context) => {
|
|
3011
|
-
return {
|
|
3012
|
-
accessPointPolicy: __expectString(output.accessPointPolicy),
|
|
3013
|
-
networkOrigin: output.networkOrigin != null
|
|
3014
|
-
? de_NetworkOriginConfiguration(__expectUnion(output.networkOrigin), context)
|
|
3015
|
-
: undefined,
|
|
3016
|
-
publicAccessBlock: output.publicAccessBlock != null
|
|
3017
|
-
? de_S3PublicAccessBlockConfiguration(output.publicAccessBlock, context)
|
|
3018
|
-
: undefined,
|
|
3019
|
-
};
|
|
3020
|
-
};
|
|
3021
|
-
const de_S3AccessPointConfigurationsMap = (output, context) => {
|
|
3022
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3023
|
-
if (value === null) {
|
|
3024
|
-
return acc;
|
|
3025
|
-
}
|
|
3026
|
-
acc[key] = de_S3AccessPointConfiguration(value, context);
|
|
3027
|
-
return acc;
|
|
3028
|
-
}, {});
|
|
3029
|
-
};
|
|
3030
|
-
const de_S3BucketAclGrantConfiguration = (output, context) => {
|
|
3031
|
-
return {
|
|
3032
|
-
grantee: output.grantee != null ? de_AclGrantee(__expectUnion(output.grantee), context) : undefined,
|
|
3033
|
-
permission: __expectString(output.permission),
|
|
3034
|
-
};
|
|
3035
|
-
};
|
|
3036
|
-
const de_S3BucketAclGrantConfigurationsList = (output, context) => {
|
|
3037
|
-
const retVal = (output || [])
|
|
3038
|
-
.filter((e) => e != null)
|
|
3039
|
-
.map((entry) => {
|
|
3040
|
-
if (entry === null) {
|
|
3041
|
-
return null;
|
|
3042
|
-
}
|
|
3043
|
-
return de_S3BucketAclGrantConfiguration(entry, context);
|
|
3044
|
-
});
|
|
3045
|
-
return retVal;
|
|
3046
|
-
};
|
|
3047
|
-
const de_S3BucketConfiguration = (output, context) => {
|
|
3048
|
-
return {
|
|
3049
|
-
accessPoints: output.accessPoints != null ? de_S3AccessPointConfigurationsMap(output.accessPoints, context) : undefined,
|
|
3050
|
-
bucketAclGrants: output.bucketAclGrants != null
|
|
3051
|
-
? de_S3BucketAclGrantConfigurationsList(output.bucketAclGrants, context)
|
|
3052
|
-
: undefined,
|
|
3053
|
-
bucketPolicy: __expectString(output.bucketPolicy),
|
|
3054
|
-
bucketPublicAccessBlock: output.bucketPublicAccessBlock != null
|
|
3055
|
-
? de_S3PublicAccessBlockConfiguration(output.bucketPublicAccessBlock, context)
|
|
3056
|
-
: undefined,
|
|
3057
|
-
};
|
|
3058
|
-
};
|
|
3059
|
-
const de_S3PublicAccessBlockConfiguration = (output, context) => {
|
|
3060
|
-
return {
|
|
3061
|
-
ignorePublicAcls: __expectBoolean(output.ignorePublicAcls),
|
|
3062
|
-
restrictPublicBuckets: __expectBoolean(output.restrictPublicBuckets),
|
|
3063
|
-
};
|
|
3064
|
-
};
|
|
3065
|
-
const de_SecretsManagerSecretConfiguration = (output, context) => {
|
|
3066
|
-
return {
|
|
3067
|
-
kmsKeyId: __expectString(output.kmsKeyId),
|
|
3068
|
-
secretPolicy: __expectString(output.secretPolicy),
|
|
3069
|
-
};
|
|
3070
|
-
};
|
|
3071
|
-
const de_SharedViaList = (output, context) => {
|
|
3072
|
-
const retVal = (output || [])
|
|
3073
|
-
.filter((e) => e != null)
|
|
3074
|
-
.map((entry) => {
|
|
3075
|
-
if (entry === null) {
|
|
3076
|
-
return null;
|
|
3077
|
-
}
|
|
3078
|
-
return __expectString(entry);
|
|
3079
|
-
});
|
|
3080
|
-
return retVal;
|
|
3081
|
-
};
|
|
3082
|
-
const de_SnsTopicConfiguration = (output, context) => {
|
|
3083
|
-
return {
|
|
3084
|
-
topicPolicy: __expectString(output.topicPolicy),
|
|
3085
|
-
};
|
|
3086
|
-
};
|
|
3087
|
-
const de_Span = (output, context) => {
|
|
3088
|
-
return {
|
|
3089
|
-
end: output.end != null ? de_Position(output.end, context) : undefined,
|
|
3090
|
-
start: output.start != null ? de_Position(output.start, context) : undefined,
|
|
3091
|
-
};
|
|
3092
|
-
};
|
|
3093
|
-
const de_SqsQueueConfiguration = (output, context) => {
|
|
3094
|
-
return {
|
|
3095
|
-
queuePolicy: __expectString(output.queuePolicy),
|
|
3096
|
-
};
|
|
3097
|
-
};
|
|
3098
|
-
const de_StatusReason = (output, context) => {
|
|
3099
|
-
return {
|
|
3100
|
-
code: __expectString(output.code),
|
|
3101
|
-
};
|
|
3102
|
-
};
|
|
3103
|
-
const de_Substring = (output, context) => {
|
|
3104
|
-
return {
|
|
3105
|
-
length: __expectInt32(output.length),
|
|
3106
|
-
start: __expectInt32(output.start),
|
|
3107
|
-
};
|
|
3108
|
-
};
|
|
3109
|
-
const de_TagsMap = (output, context) => {
|
|
3110
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3111
|
-
if (value === null) {
|
|
3112
|
-
return acc;
|
|
3113
|
-
}
|
|
3114
|
-
acc[key] = __expectString(value);
|
|
3115
|
-
return acc;
|
|
3116
|
-
}, {});
|
|
3117
|
-
};
|
|
3118
|
-
const de_TrailProperties = (output, context) => {
|
|
3119
|
-
return {
|
|
3120
|
-
allRegions: __expectBoolean(output.allRegions),
|
|
3121
|
-
cloudTrailArn: __expectString(output.cloudTrailArn),
|
|
3122
|
-
regions: output.regions != null ? de_RegionList(output.regions, context) : undefined,
|
|
3123
|
-
};
|
|
3124
|
-
};
|
|
3125
|
-
const de_TrailPropertiesList = (output, context) => {
|
|
3126
|
-
const retVal = (output || [])
|
|
3127
|
-
.filter((e) => e != null)
|
|
3128
|
-
.map((entry) => {
|
|
3129
|
-
if (entry === null) {
|
|
3130
|
-
return null;
|
|
3131
|
-
}
|
|
3132
|
-
return de_TrailProperties(entry, context);
|
|
3133
|
-
});
|
|
3134
|
-
return retVal;
|
|
3135
|
-
};
|
|
3136
|
-
const de_ValidatePolicyFinding = (output, context) => {
|
|
3137
|
-
return {
|
|
3138
|
-
findingDetails: __expectString(output.findingDetails),
|
|
3139
|
-
findingType: __expectString(output.findingType),
|
|
3140
|
-
issueCode: __expectString(output.issueCode),
|
|
3141
|
-
learnMoreLink: __expectString(output.learnMoreLink),
|
|
3142
|
-
locations: output.locations != null ? de_LocationList(output.locations, context) : undefined,
|
|
3143
|
-
};
|
|
3144
|
-
};
|
|
3145
|
-
const de_ValidatePolicyFindingList = (output, context) => {
|
|
3146
|
-
const retVal = (output || [])
|
|
3147
|
-
.filter((e) => e != null)
|
|
3148
|
-
.map((entry) => {
|
|
3149
|
-
if (entry === null) {
|
|
3150
|
-
return null;
|
|
3151
|
-
}
|
|
3152
|
-
return de_ValidatePolicyFinding(entry, context);
|
|
3153
|
-
});
|
|
3154
|
-
return retVal;
|
|
3155
|
-
};
|
|
3156
|
-
const de_ValidationExceptionField = (output, context) => {
|
|
3157
|
-
return {
|
|
3158
|
-
message: __expectString(output.message),
|
|
3159
|
-
name: __expectString(output.name),
|
|
3160
|
-
};
|
|
3161
|
-
};
|
|
3162
|
-
const de_ValidationExceptionFieldList = (output, context) => {
|
|
3163
|
-
const retVal = (output || [])
|
|
3164
|
-
.filter((e) => e != null)
|
|
3165
|
-
.map((entry) => {
|
|
3166
|
-
if (entry === null) {
|
|
3167
|
-
return null;
|
|
3168
|
-
}
|
|
3169
|
-
return de_ValidationExceptionField(entry, context);
|
|
3170
|
-
});
|
|
3171
|
-
return retVal;
|
|
3172
|
-
};
|
|
3173
|
-
const de_ValueList = (output, context) => {
|
|
3174
|
-
const retVal = (output || [])
|
|
3175
|
-
.filter((e) => e != null)
|
|
3176
|
-
.map((entry) => {
|
|
3177
|
-
if (entry === null) {
|
|
3178
|
-
return null;
|
|
3179
|
-
}
|
|
3180
|
-
return __expectString(entry);
|
|
3181
|
-
});
|
|
3182
|
-
return retVal;
|
|
3183
|
-
};
|
|
3184
|
-
const de_VpcConfiguration = (output, context) => {
|
|
3185
|
-
return {
|
|
3186
|
-
vpcId: __expectString(output.vpcId),
|
|
3187
|
-
};
|
|
3188
|
-
};
|
|
3189
2157
|
const deserializeMetadata = (output) => ({
|
|
3190
2158
|
httpStatusCode: output.statusCode,
|
|
3191
2159
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|