@aws-sdk/client-accessanalyzer 3.121.0 → 3.127.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/dist-cjs/protocols/Aws_restJson1.js +147 -289
- package/dist-es/protocols/Aws_restJson1.js +107 -249
- package/package.json +26 -26
|
@@ -16,7 +16,7 @@ export var serializeAws_restJson1ApplyArchiveRuleCommand = function (input, cont
|
|
|
16
16
|
"content-type": "application/json",
|
|
17
17
|
};
|
|
18
18
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/archive-rule";
|
|
19
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.analyzerArn
|
|
19
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.analyzerArn != null && { analyzerArn: input.analyzerArn })), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.ruleName != null && { ruleName: input.ruleName })));
|
|
20
20
|
return [2, new __HttpRequest({
|
|
21
21
|
protocol: protocol,
|
|
22
22
|
hostname: hostname,
|
|
@@ -72,8 +72,7 @@ export var serializeAws_restJson1CreateAccessPreviewCommand = function (input, c
|
|
|
72
72
|
"content-type": "application/json",
|
|
73
73
|
};
|
|
74
74
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/access-preview";
|
|
75
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.analyzerArn
|
|
76
|
-
input.configurations !== null && {
|
|
75
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.analyzerArn != null && { analyzerArn: input.analyzerArn })), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.configurations != null && {
|
|
77
76
|
configurations: serializeAws_restJson1ConfigurationsMap(input.configurations, context),
|
|
78
77
|
})));
|
|
79
78
|
return [2, new __HttpRequest({
|
|
@@ -100,11 +99,9 @@ export var serializeAws_restJson1CreateAnalyzerCommand = function (input, contex
|
|
|
100
99
|
"content-type": "application/json",
|
|
101
100
|
};
|
|
102
101
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/analyzer";
|
|
103
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.analyzerName
|
|
104
|
-
input.archiveRules !== null && {
|
|
102
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.analyzerName != null && { analyzerName: input.analyzerName })), (input.archiveRules != null && {
|
|
105
103
|
archiveRules: serializeAws_restJson1InlineArchiveRulesList(input.archiveRules, context),
|
|
106
|
-
})), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.tags
|
|
107
|
-
input.tags !== null && { tags: serializeAws_restJson1TagsMap(input.tags, context) })), (input.type !== undefined && input.type !== null && { type: input.type })));
|
|
104
|
+
})), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.tags != null && { tags: serializeAws_restJson1TagsMap(input.tags, context) })), (input.type != null && { type: input.type })));
|
|
108
105
|
return [2, new __HttpRequest({
|
|
109
106
|
protocol: protocol,
|
|
110
107
|
hostname: hostname,
|
|
@@ -139,8 +136,7 @@ export var serializeAws_restJson1CreateArchiveRuleCommand = function (input, con
|
|
|
139
136
|
else {
|
|
140
137
|
throw new Error("No value provided for input HTTP label: analyzerName.");
|
|
141
138
|
}
|
|
142
|
-
body = JSON.stringify(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.filter
|
|
143
|
-
input.filter !== null && { filter: serializeAws_restJson1FilterCriteriaMap(input.filter, context) })), (input.ruleName !== undefined && input.ruleName !== null && { ruleName: input.ruleName })));
|
|
139
|
+
body = JSON.stringify(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.filter != null && { filter: serializeAws_restJson1FilterCriteriaMap(input.filter, context) })), (input.ruleName != null && { ruleName: input.ruleName })));
|
|
144
140
|
return [2, new __HttpRequest({
|
|
145
141
|
protocol: protocol,
|
|
146
142
|
hostname: hostname,
|
|
@@ -450,8 +446,7 @@ export var serializeAws_restJson1ListAccessPreviewFindingsCommand = function (in
|
|
|
450
446
|
else {
|
|
451
447
|
throw new Error("No value provided for input HTTP label: accessPreviewId.");
|
|
452
448
|
}
|
|
453
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.analyzerArn
|
|
454
|
-
input.filter !== null && { filter: serializeAws_restJson1FilterCriteriaMap(input.filter, context) })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })));
|
|
449
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.analyzerArn != null && { analyzerArn: input.analyzerArn })), (input.filter != null && { filter: serializeAws_restJson1FilterCriteriaMap(input.filter, context) })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })));
|
|
455
450
|
return [2, new __HttpRequest({
|
|
456
451
|
protocol: protocol,
|
|
457
452
|
hostname: hostname,
|
|
@@ -498,7 +493,7 @@ export var serializeAws_restJson1ListAnalyzedResourcesCommand = function (input,
|
|
|
498
493
|
"content-type": "application/json",
|
|
499
494
|
};
|
|
500
495
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/analyzed-resource";
|
|
501
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.analyzerArn
|
|
496
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.analyzerArn != null && { analyzerArn: input.analyzerArn })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.resourceType != null && { resourceType: input.resourceType })));
|
|
502
497
|
return [2, new __HttpRequest({
|
|
503
498
|
protocol: protocol,
|
|
504
499
|
hostname: hostname,
|
|
@@ -578,9 +573,7 @@ export var serializeAws_restJson1ListFindingsCommand = function (input, context)
|
|
|
578
573
|
"content-type": "application/json",
|
|
579
574
|
};
|
|
580
575
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/finding";
|
|
581
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.analyzerArn
|
|
582
|
-
input.filter !== null && { filter: serializeAws_restJson1FilterCriteriaMap(input.filter, context) })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.sort !== undefined &&
|
|
583
|
-
input.sort !== null && { sort: serializeAws_restJson1SortCriteria(input.sort, context) })));
|
|
576
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.analyzerArn != null && { analyzerArn: input.analyzerArn })), (input.filter != null && { filter: serializeAws_restJson1FilterCriteriaMap(input.filter, context) })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.sort != null && { sort: serializeAws_restJson1SortCriteria(input.sort, context) })));
|
|
584
577
|
return [2, new __HttpRequest({
|
|
585
578
|
protocol: protocol,
|
|
586
579
|
hostname: hostname,
|
|
@@ -659,11 +652,9 @@ export var serializeAws_restJson1StartPolicyGenerationCommand = function (input,
|
|
|
659
652
|
"content-type": "application/json",
|
|
660
653
|
};
|
|
661
654
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/policy/generation";
|
|
662
|
-
body = JSON.stringify(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.cloudTrailDetails
|
|
663
|
-
input.cloudTrailDetails !== null && {
|
|
655
|
+
body = JSON.stringify(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.cloudTrailDetails != null && {
|
|
664
656
|
cloudTrailDetails: serializeAws_restJson1CloudTrailDetails(input.cloudTrailDetails, context),
|
|
665
|
-
})), (input.policyGenerationDetails
|
|
666
|
-
input.policyGenerationDetails !== null && {
|
|
657
|
+
})), (input.policyGenerationDetails != null && {
|
|
667
658
|
policyGenerationDetails: serializeAws_restJson1PolicyGenerationDetails(input.policyGenerationDetails, context),
|
|
668
659
|
})));
|
|
669
660
|
return [2, new __HttpRequest({
|
|
@@ -689,7 +680,7 @@ export var serializeAws_restJson1StartResourceScanCommand = function (input, con
|
|
|
689
680
|
"content-type": "application/json",
|
|
690
681
|
};
|
|
691
682
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/resource/scan";
|
|
692
|
-
body = JSON.stringify(__assign(__assign({}, (input.analyzerArn
|
|
683
|
+
body = JSON.stringify(__assign(__assign({}, (input.analyzerArn != null && { analyzerArn: input.analyzerArn })), (input.resourceArn != null && { resourceArn: input.resourceArn })));
|
|
693
684
|
return [2, new __HttpRequest({
|
|
694
685
|
protocol: protocol,
|
|
695
686
|
hostname: hostname,
|
|
@@ -723,8 +714,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
723
714
|
else {
|
|
724
715
|
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
725
716
|
}
|
|
726
|
-
body = JSON.stringify(__assign({}, (input.tags
|
|
727
|
-
input.tags !== null && { tags: serializeAws_restJson1TagsMap(input.tags, context) })));
|
|
717
|
+
body = JSON.stringify(__assign({}, (input.tags != null && { tags: serializeAws_restJson1TagsMap(input.tags, context) })));
|
|
728
718
|
return [2, new __HttpRequest({
|
|
729
719
|
protocol: protocol,
|
|
730
720
|
hostname: hostname,
|
|
@@ -803,8 +793,7 @@ export var serializeAws_restJson1UpdateArchiveRuleCommand = function (input, con
|
|
|
803
793
|
else {
|
|
804
794
|
throw new Error("No value provided for input HTTP label: ruleName.");
|
|
805
795
|
}
|
|
806
|
-
body = JSON.stringify(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.filter
|
|
807
|
-
input.filter !== null && { filter: serializeAws_restJson1FilterCriteriaMap(input.filter, context) })));
|
|
796
|
+
body = JSON.stringify(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.filter != null && { filter: serializeAws_restJson1FilterCriteriaMap(input.filter, context) })));
|
|
808
797
|
return [2, new __HttpRequest({
|
|
809
798
|
protocol: protocol,
|
|
810
799
|
hostname: hostname,
|
|
@@ -829,8 +818,7 @@ export var serializeAws_restJson1UpdateFindingsCommand = function (input, contex
|
|
|
829
818
|
"content-type": "application/json",
|
|
830
819
|
};
|
|
831
820
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/finding";
|
|
832
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.analyzerArn
|
|
833
|
-
input.ids !== null && { ids: serializeAws_restJson1FindingIdList(input.ids, context) })), (input.resourceArn !== undefined && input.resourceArn !== null && { resourceArn: input.resourceArn })), (input.status !== undefined && input.status !== null && { status: input.status })));
|
|
821
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.analyzerArn != null && { analyzerArn: input.analyzerArn })), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.ids != null && { ids: serializeAws_restJson1FindingIdList(input.ids, context) })), (input.resourceArn != null && { resourceArn: input.resourceArn })), (input.status != null && { status: input.status })));
|
|
834
822
|
return [2, new __HttpRequest({
|
|
835
823
|
protocol: protocol,
|
|
836
824
|
hostname: hostname,
|
|
@@ -855,9 +843,7 @@ export var serializeAws_restJson1ValidatePolicyCommand = function (input, contex
|
|
|
855
843
|
};
|
|
856
844
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/policy/validation";
|
|
857
845
|
query = __assign(__assign({}, (input.maxResults !== undefined && { maxResults: input.maxResults.toString() })), (input.nextToken !== undefined && { nextToken: input.nextToken }));
|
|
858
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.locale
|
|
859
|
-
input.policyDocument !== null && { policyDocument: input.policyDocument })), (input.policyType !== undefined && input.policyType !== null && { policyType: input.policyType })), (input.validatePolicyResourceType !== undefined &&
|
|
860
|
-
input.validatePolicyResourceType !== null && { validatePolicyResourceType: input.validatePolicyResourceType })));
|
|
846
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.locale != null && { locale: input.locale })), (input.policyDocument != null && { policyDocument: input.policyDocument })), (input.policyType != null && { policyType: input.policyType })), (input.validatePolicyResourceType != null && { validatePolicyResourceType: input.validatePolicyResourceType })));
|
|
861
847
|
return [2, new __HttpRequest({
|
|
862
848
|
protocol: protocol,
|
|
863
849
|
hostname: hostname,
|
|
@@ -3017,10 +3003,7 @@ var serializeAws_restJson1AclGrantee = function (input, context) {
|
|
|
3017
3003
|
});
|
|
3018
3004
|
};
|
|
3019
3005
|
var serializeAws_restJson1CloudTrailDetails = function (input, context) {
|
|
3020
|
-
return __assign(__assign(__assign(__assign({}, (input.accessRole
|
|
3021
|
-
input.endTime !== null && { endTime: input.endTime.toISOString().split(".")[0] + "Z" })), (input.startTime !== undefined &&
|
|
3022
|
-
input.startTime !== null && { startTime: input.startTime.toISOString().split(".")[0] + "Z" })), (input.trails !== undefined &&
|
|
3023
|
-
input.trails !== null && { trails: serializeAws_restJson1TrailList(input.trails, context) }));
|
|
3006
|
+
return __assign(__assign(__assign(__assign({}, (input.accessRole != null && { accessRole: input.accessRole })), (input.endTime != null && { endTime: input.endTime.toISOString().split(".")[0] + "Z" })), (input.startTime != null && { startTime: input.startTime.toISOString().split(".")[0] + "Z" })), (input.trails != null && { trails: serializeAws_restJson1TrailList(input.trails, context) }));
|
|
3024
3007
|
};
|
|
3025
3008
|
var serializeAws_restJson1Configuration = function (input, context) {
|
|
3026
3009
|
return Configuration.visit(input, {
|
|
@@ -3045,8 +3028,7 @@ var serializeAws_restJson1ConfigurationsMap = function (input, context) {
|
|
|
3045
3028
|
}, {});
|
|
3046
3029
|
};
|
|
3047
3030
|
var serializeAws_restJson1Criterion = function (input, context) {
|
|
3048
|
-
return __assign(__assign(__assign(__assign({}, (input.contains
|
|
3049
|
-
input.contains !== null && { contains: serializeAws_restJson1ValueList(input.contains, context) })), (input.eq !== undefined && input.eq !== null && { eq: serializeAws_restJson1ValueList(input.eq, context) })), (input.exists !== undefined && input.exists !== null && { exists: input.exists })), (input.neq !== undefined && input.neq !== null && { neq: serializeAws_restJson1ValueList(input.neq, context) }));
|
|
3031
|
+
return __assign(__assign(__assign(__assign({}, (input.contains != null && { contains: serializeAws_restJson1ValueList(input.contains, context) })), (input.eq != null && { eq: serializeAws_restJson1ValueList(input.eq, context) })), (input.exists != null && { exists: input.exists })), (input.neq != null && { neq: serializeAws_restJson1ValueList(input.neq, context) }));
|
|
3050
3032
|
};
|
|
3051
3033
|
var serializeAws_restJson1FilterCriteriaMap = function (input, context) {
|
|
3052
3034
|
return Object.entries(input).reduce(function (acc, _a) {
|
|
@@ -3069,11 +3051,10 @@ var serializeAws_restJson1FindingIdList = function (input, context) {
|
|
|
3069
3051
|
});
|
|
3070
3052
|
};
|
|
3071
3053
|
var serializeAws_restJson1IamRoleConfiguration = function (input, context) {
|
|
3072
|
-
return __assign({}, (input.trustPolicy
|
|
3054
|
+
return __assign({}, (input.trustPolicy != null && { trustPolicy: input.trustPolicy }));
|
|
3073
3055
|
};
|
|
3074
3056
|
var serializeAws_restJson1InlineArchiveRule = function (input, context) {
|
|
3075
|
-
return __assign(__assign({}, (input.filter
|
|
3076
|
-
input.filter !== null && { filter: serializeAws_restJson1FilterCriteriaMap(input.filter, context) })), (input.ruleName !== undefined && input.ruleName !== null && { ruleName: input.ruleName }));
|
|
3057
|
+
return __assign(__assign({}, (input.filter != null && { filter: serializeAws_restJson1FilterCriteriaMap(input.filter, context) })), (input.ruleName != null && { ruleName: input.ruleName }));
|
|
3077
3058
|
};
|
|
3078
3059
|
var serializeAws_restJson1InlineArchiveRulesList = function (input, context) {
|
|
3079
3060
|
return input
|
|
@@ -3099,16 +3080,11 @@ var serializeAws_restJson1KmsConstraintsMap = function (input, context) {
|
|
|
3099
3080
|
}, {});
|
|
3100
3081
|
};
|
|
3101
3082
|
var serializeAws_restJson1KmsGrantConfiguration = function (input, context) {
|
|
3102
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.constraints
|
|
3103
|
-
input.constraints !== null && {
|
|
3083
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.constraints != null && {
|
|
3104
3084
|
constraints: serializeAws_restJson1KmsGrantConstraints(input.constraints, context),
|
|
3105
|
-
})), (input.granteePrincipal
|
|
3106
|
-
input.granteePrincipal !== null && { granteePrincipal: input.granteePrincipal })), (input.issuingAccount !== undefined &&
|
|
3107
|
-
input.issuingAccount !== null && { issuingAccount: input.issuingAccount })), (input.operations !== undefined &&
|
|
3108
|
-
input.operations !== null && {
|
|
3085
|
+
})), (input.granteePrincipal != null && { granteePrincipal: input.granteePrincipal })), (input.issuingAccount != null && { issuingAccount: input.issuingAccount })), (input.operations != null && {
|
|
3109
3086
|
operations: serializeAws_restJson1KmsGrantOperationsList(input.operations, context),
|
|
3110
|
-
})), (input.retiringPrincipal
|
|
3111
|
-
input.retiringPrincipal !== null && { retiringPrincipal: input.retiringPrincipal }));
|
|
3087
|
+
})), (input.retiringPrincipal != null && { retiringPrincipal: input.retiringPrincipal }));
|
|
3112
3088
|
};
|
|
3113
3089
|
var serializeAws_restJson1KmsGrantConfigurationsList = function (input, context) {
|
|
3114
3090
|
return input
|
|
@@ -3121,11 +3097,9 @@ var serializeAws_restJson1KmsGrantConfigurationsList = function (input, context)
|
|
|
3121
3097
|
});
|
|
3122
3098
|
};
|
|
3123
3099
|
var serializeAws_restJson1KmsGrantConstraints = function (input, context) {
|
|
3124
|
-
return __assign(__assign({}, (input.encryptionContextEquals
|
|
3125
|
-
input.encryptionContextEquals !== null && {
|
|
3100
|
+
return __assign(__assign({}, (input.encryptionContextEquals != null && {
|
|
3126
3101
|
encryptionContextEquals: serializeAws_restJson1KmsConstraintsMap(input.encryptionContextEquals, context),
|
|
3127
|
-
})), (input.encryptionContextSubset
|
|
3128
|
-
input.encryptionContextSubset !== null && {
|
|
3102
|
+
})), (input.encryptionContextSubset != null && {
|
|
3129
3103
|
encryptionContextSubset: serializeAws_restJson1KmsConstraintsMap(input.encryptionContextSubset, context),
|
|
3130
3104
|
}));
|
|
3131
3105
|
};
|
|
@@ -3140,9 +3114,7 @@ var serializeAws_restJson1KmsGrantOperationsList = function (input, context) {
|
|
|
3140
3114
|
});
|
|
3141
3115
|
};
|
|
3142
3116
|
var serializeAws_restJson1KmsKeyConfiguration = function (input, context) {
|
|
3143
|
-
return __assign(__assign({}, (input.grants
|
|
3144
|
-
input.grants !== null && { grants: serializeAws_restJson1KmsGrantConfigurationsList(input.grants, context) })), (input.keyPolicies !== undefined &&
|
|
3145
|
-
input.keyPolicies !== null && {
|
|
3117
|
+
return __assign(__assign({}, (input.grants != null && { grants: serializeAws_restJson1KmsGrantConfigurationsList(input.grants, context) })), (input.keyPolicies != null && {
|
|
3146
3118
|
keyPolicies: serializeAws_restJson1KmsKeyPoliciesMap(input.keyPolicies, context),
|
|
3147
3119
|
}));
|
|
3148
3120
|
};
|
|
@@ -3166,7 +3138,7 @@ var serializeAws_restJson1NetworkOriginConfiguration = function (input, context)
|
|
|
3166
3138
|
});
|
|
3167
3139
|
};
|
|
3168
3140
|
var serializeAws_restJson1PolicyGenerationDetails = function (input, context) {
|
|
3169
|
-
return __assign({}, (input.principalArn
|
|
3141
|
+
return __assign({}, (input.principalArn != null && { principalArn: input.principalArn }));
|
|
3170
3142
|
};
|
|
3171
3143
|
var serializeAws_restJson1RegionList = function (input, context) {
|
|
3172
3144
|
return input
|
|
@@ -3179,12 +3151,9 @@ var serializeAws_restJson1RegionList = function (input, context) {
|
|
|
3179
3151
|
});
|
|
3180
3152
|
};
|
|
3181
3153
|
var serializeAws_restJson1S3AccessPointConfiguration = function (input, context) {
|
|
3182
|
-
return __assign(__assign(__assign({}, (input.accessPointPolicy
|
|
3183
|
-
input.accessPointPolicy !== null && { accessPointPolicy: input.accessPointPolicy })), (input.networkOrigin !== undefined &&
|
|
3184
|
-
input.networkOrigin !== null && {
|
|
3154
|
+
return __assign(__assign(__assign({}, (input.accessPointPolicy != null && { accessPointPolicy: input.accessPointPolicy })), (input.networkOrigin != null && {
|
|
3185
3155
|
networkOrigin: serializeAws_restJson1NetworkOriginConfiguration(input.networkOrigin, context),
|
|
3186
|
-
})), (input.publicAccessBlock
|
|
3187
|
-
input.publicAccessBlock !== null && {
|
|
3156
|
+
})), (input.publicAccessBlock != null && {
|
|
3188
3157
|
publicAccessBlock: serializeAws_restJson1S3PublicAccessBlockConfiguration(input.publicAccessBlock, context),
|
|
3189
3158
|
}));
|
|
3190
3159
|
};
|
|
@@ -3199,8 +3168,7 @@ var serializeAws_restJson1S3AccessPointConfigurationsMap = function (input, cont
|
|
|
3199
3168
|
}, {});
|
|
3200
3169
|
};
|
|
3201
3170
|
var serializeAws_restJson1S3BucketAclGrantConfiguration = function (input, context) {
|
|
3202
|
-
return __assign(__assign({}, (input.grantee
|
|
3203
|
-
input.grantee !== null && { grantee: serializeAws_restJson1AclGrantee(input.grantee, context) })), (input.permission !== undefined && input.permission !== null && { permission: input.permission }));
|
|
3171
|
+
return __assign(__assign({}, (input.grantee != null && { grantee: serializeAws_restJson1AclGrantee(input.grantee, context) })), (input.permission != null && { permission: input.permission }));
|
|
3204
3172
|
};
|
|
3205
3173
|
var serializeAws_restJson1S3BucketAclGrantConfigurationsList = function (input, context) {
|
|
3206
3174
|
return input
|
|
@@ -3213,30 +3181,25 @@ var serializeAws_restJson1S3BucketAclGrantConfigurationsList = function (input,
|
|
|
3213
3181
|
});
|
|
3214
3182
|
};
|
|
3215
3183
|
var serializeAws_restJson1S3BucketConfiguration = function (input, context) {
|
|
3216
|
-
return __assign(__assign(__assign(__assign({}, (input.accessPoints
|
|
3217
|
-
input.accessPoints !== null && {
|
|
3184
|
+
return __assign(__assign(__assign(__assign({}, (input.accessPoints != null && {
|
|
3218
3185
|
accessPoints: serializeAws_restJson1S3AccessPointConfigurationsMap(input.accessPoints, context),
|
|
3219
|
-
})), (input.bucketAclGrants
|
|
3220
|
-
input.bucketAclGrants !== null && {
|
|
3186
|
+
})), (input.bucketAclGrants != null && {
|
|
3221
3187
|
bucketAclGrants: serializeAws_restJson1S3BucketAclGrantConfigurationsList(input.bucketAclGrants, context),
|
|
3222
|
-
})), (input.bucketPolicy
|
|
3223
|
-
input.bucketPublicAccessBlock !== null && {
|
|
3188
|
+
})), (input.bucketPolicy != null && { bucketPolicy: input.bucketPolicy })), (input.bucketPublicAccessBlock != null && {
|
|
3224
3189
|
bucketPublicAccessBlock: serializeAws_restJson1S3PublicAccessBlockConfiguration(input.bucketPublicAccessBlock, context),
|
|
3225
3190
|
}));
|
|
3226
3191
|
};
|
|
3227
3192
|
var serializeAws_restJson1S3PublicAccessBlockConfiguration = function (input, context) {
|
|
3228
|
-
return __assign(__assign({}, (input.ignorePublicAcls
|
|
3229
|
-
input.ignorePublicAcls !== null && { ignorePublicAcls: input.ignorePublicAcls })), (input.restrictPublicBuckets !== undefined &&
|
|
3230
|
-
input.restrictPublicBuckets !== null && { restrictPublicBuckets: input.restrictPublicBuckets }));
|
|
3193
|
+
return __assign(__assign({}, (input.ignorePublicAcls != null && { ignorePublicAcls: input.ignorePublicAcls })), (input.restrictPublicBuckets != null && { restrictPublicBuckets: input.restrictPublicBuckets }));
|
|
3231
3194
|
};
|
|
3232
3195
|
var serializeAws_restJson1SecretsManagerSecretConfiguration = function (input, context) {
|
|
3233
|
-
return __assign(__assign({}, (input.kmsKeyId
|
|
3196
|
+
return __assign(__assign({}, (input.kmsKeyId != null && { kmsKeyId: input.kmsKeyId })), (input.secretPolicy != null && { secretPolicy: input.secretPolicy }));
|
|
3234
3197
|
};
|
|
3235
3198
|
var serializeAws_restJson1SortCriteria = function (input, context) {
|
|
3236
|
-
return __assign(__assign({}, (input.attributeName
|
|
3199
|
+
return __assign(__assign({}, (input.attributeName != null && { attributeName: input.attributeName })), (input.orderBy != null && { orderBy: input.orderBy }));
|
|
3237
3200
|
};
|
|
3238
3201
|
var serializeAws_restJson1SqsQueueConfiguration = function (input, context) {
|
|
3239
|
-
return __assign({}, (input.queuePolicy
|
|
3202
|
+
return __assign({}, (input.queuePolicy != null && { queuePolicy: input.queuePolicy }));
|
|
3240
3203
|
};
|
|
3241
3204
|
var serializeAws_restJson1TagsMap = function (input, context) {
|
|
3242
3205
|
return Object.entries(input).reduce(function (acc, _a) {
|
|
@@ -3249,8 +3212,7 @@ var serializeAws_restJson1TagsMap = function (input, context) {
|
|
|
3249
3212
|
}, {});
|
|
3250
3213
|
};
|
|
3251
3214
|
var serializeAws_restJson1Trail = function (input, context) {
|
|
3252
|
-
return __assign(__assign(__assign({}, (input.allRegions
|
|
3253
|
-
input.regions !== null && { regions: serializeAws_restJson1RegionList(input.regions, context) }));
|
|
3215
|
+
return __assign(__assign(__assign({}, (input.allRegions != null && { allRegions: input.allRegions })), (input.cloudTrailArn != null && { cloudTrailArn: input.cloudTrailArn })), (input.regions != null && { regions: serializeAws_restJson1RegionList(input.regions, context) }));
|
|
3254
3216
|
};
|
|
3255
3217
|
var serializeAws_restJson1TrailList = function (input, context) {
|
|
3256
3218
|
return input
|
|
@@ -3273,50 +3235,38 @@ var serializeAws_restJson1ValueList = function (input, context) {
|
|
|
3273
3235
|
});
|
|
3274
3236
|
};
|
|
3275
3237
|
var serializeAws_restJson1VpcConfiguration = function (input, context) {
|
|
3276
|
-
return __assign({}, (input.vpcId
|
|
3238
|
+
return __assign({}, (input.vpcId != null && { vpcId: input.vpcId }));
|
|
3277
3239
|
};
|
|
3278
3240
|
var deserializeAws_restJson1AccessPreview = function (output, context) {
|
|
3279
3241
|
return {
|
|
3280
3242
|
analyzerArn: __expectString(output.analyzerArn),
|
|
3281
|
-
configurations: output.configurations
|
|
3243
|
+
configurations: output.configurations != null
|
|
3282
3244
|
? deserializeAws_restJson1ConfigurationsMap(output.configurations, context)
|
|
3283
3245
|
: undefined,
|
|
3284
|
-
createdAt: output.createdAt
|
|
3285
|
-
? __expectNonNull(__parseRfc3339DateTime(output.createdAt))
|
|
3286
|
-
: undefined,
|
|
3246
|
+
createdAt: output.createdAt != null ? __expectNonNull(__parseRfc3339DateTime(output.createdAt)) : undefined,
|
|
3287
3247
|
id: __expectString(output.id),
|
|
3288
3248
|
status: __expectString(output.status),
|
|
3289
|
-
statusReason: output.statusReason
|
|
3249
|
+
statusReason: output.statusReason != null
|
|
3290
3250
|
? deserializeAws_restJson1AccessPreviewStatusReason(output.statusReason, context)
|
|
3291
3251
|
: undefined,
|
|
3292
3252
|
};
|
|
3293
3253
|
};
|
|
3294
3254
|
var deserializeAws_restJson1AccessPreviewFinding = function (output, context) {
|
|
3295
3255
|
return {
|
|
3296
|
-
action: output.action
|
|
3297
|
-
? deserializeAws_restJson1ActionList(output.action, context)
|
|
3298
|
-
: undefined,
|
|
3256
|
+
action: output.action != null ? deserializeAws_restJson1ActionList(output.action, context) : undefined,
|
|
3299
3257
|
changeType: __expectString(output.changeType),
|
|
3300
|
-
condition: output.condition
|
|
3301
|
-
|
|
3302
|
-
: undefined,
|
|
3303
|
-
createdAt: output.createdAt !== undefined && output.createdAt !== null
|
|
3304
|
-
? __expectNonNull(__parseRfc3339DateTime(output.createdAt))
|
|
3305
|
-
: undefined,
|
|
3258
|
+
condition: output.condition != null ? deserializeAws_restJson1ConditionKeyMap(output.condition, context) : undefined,
|
|
3259
|
+
createdAt: output.createdAt != null ? __expectNonNull(__parseRfc3339DateTime(output.createdAt)) : undefined,
|
|
3306
3260
|
error: __expectString(output.error),
|
|
3307
3261
|
existingFindingId: __expectString(output.existingFindingId),
|
|
3308
3262
|
existingFindingStatus: __expectString(output.existingFindingStatus),
|
|
3309
3263
|
id: __expectString(output.id),
|
|
3310
3264
|
isPublic: __expectBoolean(output.isPublic),
|
|
3311
|
-
principal: output.principal
|
|
3312
|
-
? deserializeAws_restJson1PrincipalMap(output.principal, context)
|
|
3313
|
-
: undefined,
|
|
3265
|
+
principal: output.principal != null ? deserializeAws_restJson1PrincipalMap(output.principal, context) : undefined,
|
|
3314
3266
|
resource: __expectString(output.resource),
|
|
3315
3267
|
resourceOwnerAccount: __expectString(output.resourceOwnerAccount),
|
|
3316
3268
|
resourceType: __expectString(output.resourceType),
|
|
3317
|
-
sources: output.sources
|
|
3318
|
-
? deserializeAws_restJson1FindingSourceList(output.sources, context)
|
|
3319
|
-
: undefined,
|
|
3269
|
+
sources: output.sources != null ? deserializeAws_restJson1FindingSourceList(output.sources, context) : undefined,
|
|
3320
3270
|
status: __expectString(output.status),
|
|
3321
3271
|
};
|
|
3322
3272
|
};
|
|
@@ -3350,12 +3300,10 @@ var deserializeAws_restJson1AccessPreviewStatusReason = function (output, contex
|
|
|
3350
3300
|
var deserializeAws_restJson1AccessPreviewSummary = function (output, context) {
|
|
3351
3301
|
return {
|
|
3352
3302
|
analyzerArn: __expectString(output.analyzerArn),
|
|
3353
|
-
createdAt: output.createdAt
|
|
3354
|
-
? __expectNonNull(__parseRfc3339DateTime(output.createdAt))
|
|
3355
|
-
: undefined,
|
|
3303
|
+
createdAt: output.createdAt != null ? __expectNonNull(__parseRfc3339DateTime(output.createdAt)) : undefined,
|
|
3356
3304
|
id: __expectString(output.id),
|
|
3357
3305
|
status: __expectString(output.status),
|
|
3358
|
-
statusReason: output.statusReason
|
|
3306
|
+
statusReason: output.statusReason != null
|
|
3359
3307
|
? deserializeAws_restJson1AccessPreviewStatusReason(output.statusReason, context)
|
|
3360
3308
|
: undefined,
|
|
3361
3309
|
};
|
|
@@ -3382,27 +3330,17 @@ var deserializeAws_restJson1ActionList = function (output, context) {
|
|
|
3382
3330
|
};
|
|
3383
3331
|
var deserializeAws_restJson1AnalyzedResource = function (output, context) {
|
|
3384
3332
|
return {
|
|
3385
|
-
actions: output.actions
|
|
3386
|
-
|
|
3387
|
-
|
|
3388
|
-
analyzedAt: output.analyzedAt !== undefined && output.analyzedAt !== null
|
|
3389
|
-
? __expectNonNull(__parseRfc3339DateTime(output.analyzedAt))
|
|
3390
|
-
: undefined,
|
|
3391
|
-
createdAt: output.createdAt !== undefined && output.createdAt !== null
|
|
3392
|
-
? __expectNonNull(__parseRfc3339DateTime(output.createdAt))
|
|
3393
|
-
: undefined,
|
|
3333
|
+
actions: output.actions != null ? deserializeAws_restJson1ActionList(output.actions, context) : undefined,
|
|
3334
|
+
analyzedAt: output.analyzedAt != null ? __expectNonNull(__parseRfc3339DateTime(output.analyzedAt)) : undefined,
|
|
3335
|
+
createdAt: output.createdAt != null ? __expectNonNull(__parseRfc3339DateTime(output.createdAt)) : undefined,
|
|
3394
3336
|
error: __expectString(output.error),
|
|
3395
3337
|
isPublic: __expectBoolean(output.isPublic),
|
|
3396
3338
|
resourceArn: __expectString(output.resourceArn),
|
|
3397
3339
|
resourceOwnerAccount: __expectString(output.resourceOwnerAccount),
|
|
3398
3340
|
resourceType: __expectString(output.resourceType),
|
|
3399
|
-
sharedVia: output.sharedVia
|
|
3400
|
-
? deserializeAws_restJson1SharedViaList(output.sharedVia, context)
|
|
3401
|
-
: undefined,
|
|
3341
|
+
sharedVia: output.sharedVia != null ? deserializeAws_restJson1SharedViaList(output.sharedVia, context) : undefined,
|
|
3402
3342
|
status: __expectString(output.status),
|
|
3403
|
-
updatedAt: output.updatedAt
|
|
3404
|
-
? __expectNonNull(__parseRfc3339DateTime(output.updatedAt))
|
|
3405
|
-
: undefined,
|
|
3343
|
+
updatedAt: output.updatedAt != null ? __expectNonNull(__parseRfc3339DateTime(output.updatedAt)) : undefined,
|
|
3406
3344
|
};
|
|
3407
3345
|
};
|
|
3408
3346
|
var deserializeAws_restJson1AnalyzedResourcesList = function (output, context) {
|
|
@@ -3437,21 +3375,15 @@ var deserializeAws_restJson1AnalyzersList = function (output, context) {
|
|
|
3437
3375
|
var deserializeAws_restJson1AnalyzerSummary = function (output, context) {
|
|
3438
3376
|
return {
|
|
3439
3377
|
arn: __expectString(output.arn),
|
|
3440
|
-
createdAt: output.createdAt
|
|
3441
|
-
? __expectNonNull(__parseRfc3339DateTime(output.createdAt))
|
|
3442
|
-
: undefined,
|
|
3378
|
+
createdAt: output.createdAt != null ? __expectNonNull(__parseRfc3339DateTime(output.createdAt)) : undefined,
|
|
3443
3379
|
lastResourceAnalyzed: __expectString(output.lastResourceAnalyzed),
|
|
3444
|
-
lastResourceAnalyzedAt: output.lastResourceAnalyzedAt
|
|
3380
|
+
lastResourceAnalyzedAt: output.lastResourceAnalyzedAt != null
|
|
3445
3381
|
? __expectNonNull(__parseRfc3339DateTime(output.lastResourceAnalyzedAt))
|
|
3446
3382
|
: undefined,
|
|
3447
3383
|
name: __expectString(output.name),
|
|
3448
3384
|
status: __expectString(output.status),
|
|
3449
|
-
statusReason: output.statusReason
|
|
3450
|
-
|
|
3451
|
-
: undefined,
|
|
3452
|
-
tags: output.tags !== undefined && output.tags !== null
|
|
3453
|
-
? deserializeAws_restJson1TagsMap(output.tags, context)
|
|
3454
|
-
: undefined,
|
|
3385
|
+
statusReason: output.statusReason != null ? deserializeAws_restJson1StatusReason(output.statusReason, context) : undefined,
|
|
3386
|
+
tags: output.tags != null ? deserializeAws_restJson1TagsMap(output.tags, context) : undefined,
|
|
3455
3387
|
type: __expectString(output.type),
|
|
3456
3388
|
};
|
|
3457
3389
|
};
|
|
@@ -3468,27 +3400,17 @@ var deserializeAws_restJson1ArchiveRulesList = function (output, context) {
|
|
|
3468
3400
|
};
|
|
3469
3401
|
var deserializeAws_restJson1ArchiveRuleSummary = function (output, context) {
|
|
3470
3402
|
return {
|
|
3471
|
-
createdAt: output.createdAt
|
|
3472
|
-
|
|
3473
|
-
: undefined,
|
|
3474
|
-
filter: output.filter !== undefined && output.filter !== null
|
|
3475
|
-
? deserializeAws_restJson1FilterCriteriaMap(output.filter, context)
|
|
3476
|
-
: undefined,
|
|
3403
|
+
createdAt: output.createdAt != null ? __expectNonNull(__parseRfc3339DateTime(output.createdAt)) : undefined,
|
|
3404
|
+
filter: output.filter != null ? deserializeAws_restJson1FilterCriteriaMap(output.filter, context) : undefined,
|
|
3477
3405
|
ruleName: __expectString(output.ruleName),
|
|
3478
|
-
updatedAt: output.updatedAt
|
|
3479
|
-
? __expectNonNull(__parseRfc3339DateTime(output.updatedAt))
|
|
3480
|
-
: undefined,
|
|
3406
|
+
updatedAt: output.updatedAt != null ? __expectNonNull(__parseRfc3339DateTime(output.updatedAt)) : undefined,
|
|
3481
3407
|
};
|
|
3482
3408
|
};
|
|
3483
3409
|
var deserializeAws_restJson1CloudTrailProperties = function (output, context) {
|
|
3484
3410
|
return {
|
|
3485
|
-
endTime: output.endTime
|
|
3486
|
-
|
|
3487
|
-
|
|
3488
|
-
startTime: output.startTime !== undefined && output.startTime !== null
|
|
3489
|
-
? __expectNonNull(__parseRfc3339DateTime(output.startTime))
|
|
3490
|
-
: undefined,
|
|
3491
|
-
trailProperties: output.trailProperties !== undefined && output.trailProperties !== null
|
|
3411
|
+
endTime: output.endTime != null ? __expectNonNull(__parseRfc3339DateTime(output.endTime)) : undefined,
|
|
3412
|
+
startTime: output.startTime != null ? __expectNonNull(__parseRfc3339DateTime(output.startTime)) : undefined,
|
|
3413
|
+
trailProperties: output.trailProperties != null
|
|
3492
3414
|
? deserializeAws_restJson1TrailPropertiesList(output.trailProperties, context)
|
|
3493
3415
|
: undefined,
|
|
3494
3416
|
};
|
|
@@ -3543,14 +3465,10 @@ var deserializeAws_restJson1ConfigurationsMap = function (output, context) {
|
|
|
3543
3465
|
};
|
|
3544
3466
|
var deserializeAws_restJson1Criterion = function (output, context) {
|
|
3545
3467
|
return {
|
|
3546
|
-
contains: output.contains
|
|
3547
|
-
|
|
3548
|
-
: undefined,
|
|
3549
|
-
eq: output.eq !== undefined && output.eq !== null ? deserializeAws_restJson1ValueList(output.eq, context) : undefined,
|
|
3468
|
+
contains: output.contains != null ? deserializeAws_restJson1ValueList(output.contains, context) : undefined,
|
|
3469
|
+
eq: output.eq != null ? deserializeAws_restJson1ValueList(output.eq, context) : undefined,
|
|
3550
3470
|
exists: __expectBoolean(output.exists),
|
|
3551
|
-
neq: output.neq
|
|
3552
|
-
? deserializeAws_restJson1ValueList(output.neq, context)
|
|
3553
|
-
: undefined,
|
|
3471
|
+
neq: output.neq != null ? deserializeAws_restJson1ValueList(output.neq, context) : undefined,
|
|
3554
3472
|
};
|
|
3555
3473
|
};
|
|
3556
3474
|
var deserializeAws_restJson1FilterCriteriaMap = function (output, context) {
|
|
@@ -3565,34 +3483,20 @@ var deserializeAws_restJson1FilterCriteriaMap = function (output, context) {
|
|
|
3565
3483
|
};
|
|
3566
3484
|
var deserializeAws_restJson1Finding = function (output, context) {
|
|
3567
3485
|
return {
|
|
3568
|
-
action: output.action
|
|
3569
|
-
|
|
3570
|
-
|
|
3571
|
-
|
|
3572
|
-
? __expectNonNull(__parseRfc3339DateTime(output.analyzedAt))
|
|
3573
|
-
: undefined,
|
|
3574
|
-
condition: output.condition !== undefined && output.condition !== null
|
|
3575
|
-
? deserializeAws_restJson1ConditionKeyMap(output.condition, context)
|
|
3576
|
-
: undefined,
|
|
3577
|
-
createdAt: output.createdAt !== undefined && output.createdAt !== null
|
|
3578
|
-
? __expectNonNull(__parseRfc3339DateTime(output.createdAt))
|
|
3579
|
-
: undefined,
|
|
3486
|
+
action: output.action != null ? deserializeAws_restJson1ActionList(output.action, context) : undefined,
|
|
3487
|
+
analyzedAt: output.analyzedAt != null ? __expectNonNull(__parseRfc3339DateTime(output.analyzedAt)) : undefined,
|
|
3488
|
+
condition: output.condition != null ? deserializeAws_restJson1ConditionKeyMap(output.condition, context) : undefined,
|
|
3489
|
+
createdAt: output.createdAt != null ? __expectNonNull(__parseRfc3339DateTime(output.createdAt)) : undefined,
|
|
3580
3490
|
error: __expectString(output.error),
|
|
3581
3491
|
id: __expectString(output.id),
|
|
3582
3492
|
isPublic: __expectBoolean(output.isPublic),
|
|
3583
|
-
principal: output.principal
|
|
3584
|
-
? deserializeAws_restJson1PrincipalMap(output.principal, context)
|
|
3585
|
-
: undefined,
|
|
3493
|
+
principal: output.principal != null ? deserializeAws_restJson1PrincipalMap(output.principal, context) : undefined,
|
|
3586
3494
|
resource: __expectString(output.resource),
|
|
3587
3495
|
resourceOwnerAccount: __expectString(output.resourceOwnerAccount),
|
|
3588
3496
|
resourceType: __expectString(output.resourceType),
|
|
3589
|
-
sources: output.sources
|
|
3590
|
-
? deserializeAws_restJson1FindingSourceList(output.sources, context)
|
|
3591
|
-
: undefined,
|
|
3497
|
+
sources: output.sources != null ? deserializeAws_restJson1FindingSourceList(output.sources, context) : undefined,
|
|
3592
3498
|
status: __expectString(output.status),
|
|
3593
|
-
updatedAt: output.updatedAt
|
|
3594
|
-
? __expectNonNull(__parseRfc3339DateTime(output.updatedAt))
|
|
3595
|
-
: undefined,
|
|
3499
|
+
updatedAt: output.updatedAt != null ? __expectNonNull(__parseRfc3339DateTime(output.updatedAt)) : undefined,
|
|
3596
3500
|
};
|
|
3597
3501
|
};
|
|
3598
3502
|
var deserializeAws_restJson1FindingsList = function (output, context) {
|
|
@@ -3608,9 +3512,7 @@ var deserializeAws_restJson1FindingsList = function (output, context) {
|
|
|
3608
3512
|
};
|
|
3609
3513
|
var deserializeAws_restJson1FindingSource = function (output, context) {
|
|
3610
3514
|
return {
|
|
3611
|
-
detail: output.detail
|
|
3612
|
-
? deserializeAws_restJson1FindingSourceDetail(output.detail, context)
|
|
3613
|
-
: undefined,
|
|
3515
|
+
detail: output.detail != null ? deserializeAws_restJson1FindingSourceDetail(output.detail, context) : undefined,
|
|
3614
3516
|
type: __expectString(output.type),
|
|
3615
3517
|
};
|
|
3616
3518
|
};
|
|
@@ -3632,34 +3534,20 @@ var deserializeAws_restJson1FindingSourceList = function (output, context) {
|
|
|
3632
3534
|
};
|
|
3633
3535
|
var deserializeAws_restJson1FindingSummary = function (output, context) {
|
|
3634
3536
|
return {
|
|
3635
|
-
action: output.action
|
|
3636
|
-
|
|
3637
|
-
|
|
3638
|
-
|
|
3639
|
-
? __expectNonNull(__parseRfc3339DateTime(output.analyzedAt))
|
|
3640
|
-
: undefined,
|
|
3641
|
-
condition: output.condition !== undefined && output.condition !== null
|
|
3642
|
-
? deserializeAws_restJson1ConditionKeyMap(output.condition, context)
|
|
3643
|
-
: undefined,
|
|
3644
|
-
createdAt: output.createdAt !== undefined && output.createdAt !== null
|
|
3645
|
-
? __expectNonNull(__parseRfc3339DateTime(output.createdAt))
|
|
3646
|
-
: undefined,
|
|
3537
|
+
action: output.action != null ? deserializeAws_restJson1ActionList(output.action, context) : undefined,
|
|
3538
|
+
analyzedAt: output.analyzedAt != null ? __expectNonNull(__parseRfc3339DateTime(output.analyzedAt)) : undefined,
|
|
3539
|
+
condition: output.condition != null ? deserializeAws_restJson1ConditionKeyMap(output.condition, context) : undefined,
|
|
3540
|
+
createdAt: output.createdAt != null ? __expectNonNull(__parseRfc3339DateTime(output.createdAt)) : undefined,
|
|
3647
3541
|
error: __expectString(output.error),
|
|
3648
3542
|
id: __expectString(output.id),
|
|
3649
3543
|
isPublic: __expectBoolean(output.isPublic),
|
|
3650
|
-
principal: output.principal
|
|
3651
|
-
? deserializeAws_restJson1PrincipalMap(output.principal, context)
|
|
3652
|
-
: undefined,
|
|
3544
|
+
principal: output.principal != null ? deserializeAws_restJson1PrincipalMap(output.principal, context) : undefined,
|
|
3653
3545
|
resource: __expectString(output.resource),
|
|
3654
3546
|
resourceOwnerAccount: __expectString(output.resourceOwnerAccount),
|
|
3655
3547
|
resourceType: __expectString(output.resourceType),
|
|
3656
|
-
sources: output.sources
|
|
3657
|
-
? deserializeAws_restJson1FindingSourceList(output.sources, context)
|
|
3658
|
-
: undefined,
|
|
3548
|
+
sources: output.sources != null ? deserializeAws_restJson1FindingSourceList(output.sources, context) : undefined,
|
|
3659
3549
|
status: __expectString(output.status),
|
|
3660
|
-
updatedAt: output.updatedAt
|
|
3661
|
-
? __expectNonNull(__parseRfc3339DateTime(output.updatedAt))
|
|
3662
|
-
: undefined,
|
|
3550
|
+
updatedAt: output.updatedAt != null ? __expectNonNull(__parseRfc3339DateTime(output.updatedAt)) : undefined,
|
|
3663
3551
|
};
|
|
3664
3552
|
};
|
|
3665
3553
|
var deserializeAws_restJson1GeneratedPolicy = function (output, context) {
|
|
@@ -3680,7 +3568,7 @@ var deserializeAws_restJson1GeneratedPolicyList = function (output, context) {
|
|
|
3680
3568
|
};
|
|
3681
3569
|
var deserializeAws_restJson1GeneratedPolicyProperties = function (output, context) {
|
|
3682
3570
|
return {
|
|
3683
|
-
cloudTrailProperties: output.cloudTrailProperties
|
|
3571
|
+
cloudTrailProperties: output.cloudTrailProperties != null
|
|
3684
3572
|
? deserializeAws_restJson1CloudTrailProperties(output.cloudTrailProperties, context)
|
|
3685
3573
|
: undefined,
|
|
3686
3574
|
isComplete: __expectBoolean(output.isComplete),
|
|
@@ -3689,10 +3577,10 @@ var deserializeAws_restJson1GeneratedPolicyProperties = function (output, contex
|
|
|
3689
3577
|
};
|
|
3690
3578
|
var deserializeAws_restJson1GeneratedPolicyResult = function (output, context) {
|
|
3691
3579
|
return {
|
|
3692
|
-
generatedPolicies: output.generatedPolicies
|
|
3580
|
+
generatedPolicies: output.generatedPolicies != null
|
|
3693
3581
|
? deserializeAws_restJson1GeneratedPolicyList(output.generatedPolicies, context)
|
|
3694
3582
|
: undefined,
|
|
3695
|
-
properties: output.properties
|
|
3583
|
+
properties: output.properties != null
|
|
3696
3584
|
? deserializeAws_restJson1GeneratedPolicyProperties(output.properties, context)
|
|
3697
3585
|
: undefined,
|
|
3698
3586
|
};
|
|
@@ -3707,16 +3595,10 @@ var deserializeAws_restJson1InternetConfiguration = function (output, context) {
|
|
|
3707
3595
|
};
|
|
3708
3596
|
var deserializeAws_restJson1JobDetails = function (output, context) {
|
|
3709
3597
|
return {
|
|
3710
|
-
completedOn: output.completedOn
|
|
3711
|
-
|
|
3712
|
-
: undefined,
|
|
3713
|
-
jobError: output.jobError !== undefined && output.jobError !== null
|
|
3714
|
-
? deserializeAws_restJson1JobError(output.jobError, context)
|
|
3715
|
-
: undefined,
|
|
3598
|
+
completedOn: output.completedOn != null ? __expectNonNull(__parseRfc3339DateTime(output.completedOn)) : undefined,
|
|
3599
|
+
jobError: output.jobError != null ? deserializeAws_restJson1JobError(output.jobError, context) : undefined,
|
|
3716
3600
|
jobId: __expectString(output.jobId),
|
|
3717
|
-
startedOn: output.startedOn
|
|
3718
|
-
? __expectNonNull(__parseRfc3339DateTime(output.startedOn))
|
|
3719
|
-
: undefined,
|
|
3601
|
+
startedOn: output.startedOn != null ? __expectNonNull(__parseRfc3339DateTime(output.startedOn)) : undefined,
|
|
3720
3602
|
status: __expectString(output.status),
|
|
3721
3603
|
};
|
|
3722
3604
|
};
|
|
@@ -3738,12 +3620,10 @@ var deserializeAws_restJson1KmsConstraintsMap = function (output, context) {
|
|
|
3738
3620
|
};
|
|
3739
3621
|
var deserializeAws_restJson1KmsGrantConfiguration = function (output, context) {
|
|
3740
3622
|
return {
|
|
3741
|
-
constraints: output.constraints
|
|
3742
|
-
? deserializeAws_restJson1KmsGrantConstraints(output.constraints, context)
|
|
3743
|
-
: undefined,
|
|
3623
|
+
constraints: output.constraints != null ? deserializeAws_restJson1KmsGrantConstraints(output.constraints, context) : undefined,
|
|
3744
3624
|
granteePrincipal: __expectString(output.granteePrincipal),
|
|
3745
3625
|
issuingAccount: __expectString(output.issuingAccount),
|
|
3746
|
-
operations: output.operations
|
|
3626
|
+
operations: output.operations != null
|
|
3747
3627
|
? deserializeAws_restJson1KmsGrantOperationsList(output.operations, context)
|
|
3748
3628
|
: undefined,
|
|
3749
3629
|
retiringPrincipal: __expectString(output.retiringPrincipal),
|
|
@@ -3762,10 +3642,10 @@ var deserializeAws_restJson1KmsGrantConfigurationsList = function (output, conte
|
|
|
3762
3642
|
};
|
|
3763
3643
|
var deserializeAws_restJson1KmsGrantConstraints = function (output, context) {
|
|
3764
3644
|
return {
|
|
3765
|
-
encryptionContextEquals: output.encryptionContextEquals
|
|
3645
|
+
encryptionContextEquals: output.encryptionContextEquals != null
|
|
3766
3646
|
? deserializeAws_restJson1KmsConstraintsMap(output.encryptionContextEquals, context)
|
|
3767
3647
|
: undefined,
|
|
3768
|
-
encryptionContextSubset: output.encryptionContextSubset
|
|
3648
|
+
encryptionContextSubset: output.encryptionContextSubset != null
|
|
3769
3649
|
? deserializeAws_restJson1KmsConstraintsMap(output.encryptionContextSubset, context)
|
|
3770
3650
|
: undefined,
|
|
3771
3651
|
};
|
|
@@ -3783,12 +3663,8 @@ var deserializeAws_restJson1KmsGrantOperationsList = function (output, context)
|
|
|
3783
3663
|
};
|
|
3784
3664
|
var deserializeAws_restJson1KmsKeyConfiguration = function (output, context) {
|
|
3785
3665
|
return {
|
|
3786
|
-
grants: output.grants
|
|
3787
|
-
|
|
3788
|
-
: undefined,
|
|
3789
|
-
keyPolicies: output.keyPolicies !== undefined && output.keyPolicies !== null
|
|
3790
|
-
? deserializeAws_restJson1KmsKeyPoliciesMap(output.keyPolicies, context)
|
|
3791
|
-
: undefined,
|
|
3666
|
+
grants: output.grants != null ? deserializeAws_restJson1KmsGrantConfigurationsList(output.grants, context) : undefined,
|
|
3667
|
+
keyPolicies: output.keyPolicies != null ? deserializeAws_restJson1KmsKeyPoliciesMap(output.keyPolicies, context) : undefined,
|
|
3792
3668
|
};
|
|
3793
3669
|
};
|
|
3794
3670
|
var deserializeAws_restJson1KmsKeyPoliciesMap = function (output, context) {
|
|
@@ -3803,12 +3679,8 @@ var deserializeAws_restJson1KmsKeyPoliciesMap = function (output, context) {
|
|
|
3803
3679
|
};
|
|
3804
3680
|
var deserializeAws_restJson1Location = function (output, context) {
|
|
3805
3681
|
return {
|
|
3806
|
-
path: output.path
|
|
3807
|
-
|
|
3808
|
-
: undefined,
|
|
3809
|
-
span: output.span !== undefined && output.span !== null
|
|
3810
|
-
? deserializeAws_restJson1Span(output.span, context)
|
|
3811
|
-
: undefined,
|
|
3682
|
+
path: output.path != null ? deserializeAws_restJson1PathElementList(output.path, context) : undefined,
|
|
3683
|
+
span: output.span != null ? deserializeAws_restJson1Span(output.span, context) : undefined,
|
|
3812
3684
|
};
|
|
3813
3685
|
};
|
|
3814
3686
|
var deserializeAws_restJson1LocationList = function (output, context) {
|
|
@@ -3865,14 +3737,10 @@ var deserializeAws_restJson1PathElementList = function (output, context) {
|
|
|
3865
3737
|
};
|
|
3866
3738
|
var deserializeAws_restJson1PolicyGeneration = function (output, context) {
|
|
3867
3739
|
return {
|
|
3868
|
-
completedOn: output.completedOn
|
|
3869
|
-
? __expectNonNull(__parseRfc3339DateTime(output.completedOn))
|
|
3870
|
-
: undefined,
|
|
3740
|
+
completedOn: output.completedOn != null ? __expectNonNull(__parseRfc3339DateTime(output.completedOn)) : undefined,
|
|
3871
3741
|
jobId: __expectString(output.jobId),
|
|
3872
3742
|
principalArn: __expectString(output.principalArn),
|
|
3873
|
-
startedOn: output.startedOn
|
|
3874
|
-
? __expectNonNull(__parseRfc3339DateTime(output.startedOn))
|
|
3875
|
-
: undefined,
|
|
3743
|
+
startedOn: output.startedOn != null ? __expectNonNull(__parseRfc3339DateTime(output.startedOn)) : undefined,
|
|
3876
3744
|
status: __expectString(output.status),
|
|
3877
3745
|
};
|
|
3878
3746
|
};
|
|
@@ -3918,10 +3786,10 @@ var deserializeAws_restJson1RegionList = function (output, context) {
|
|
|
3918
3786
|
var deserializeAws_restJson1S3AccessPointConfiguration = function (output, context) {
|
|
3919
3787
|
return {
|
|
3920
3788
|
accessPointPolicy: __expectString(output.accessPointPolicy),
|
|
3921
|
-
networkOrigin: output.networkOrigin
|
|
3789
|
+
networkOrigin: output.networkOrigin != null
|
|
3922
3790
|
? deserializeAws_restJson1NetworkOriginConfiguration(__expectUnion(output.networkOrigin), context)
|
|
3923
3791
|
: undefined,
|
|
3924
|
-
publicAccessBlock: output.publicAccessBlock
|
|
3792
|
+
publicAccessBlock: output.publicAccessBlock != null
|
|
3925
3793
|
? deserializeAws_restJson1S3PublicAccessBlockConfiguration(output.publicAccessBlock, context)
|
|
3926
3794
|
: undefined,
|
|
3927
3795
|
};
|
|
@@ -3938,9 +3806,7 @@ var deserializeAws_restJson1S3AccessPointConfigurationsMap = function (output, c
|
|
|
3938
3806
|
};
|
|
3939
3807
|
var deserializeAws_restJson1S3BucketAclGrantConfiguration = function (output, context) {
|
|
3940
3808
|
return {
|
|
3941
|
-
grantee: output.grantee
|
|
3942
|
-
? deserializeAws_restJson1AclGrantee(__expectUnion(output.grantee), context)
|
|
3943
|
-
: undefined,
|
|
3809
|
+
grantee: output.grantee != null ? deserializeAws_restJson1AclGrantee(__expectUnion(output.grantee), context) : undefined,
|
|
3944
3810
|
permission: __expectString(output.permission),
|
|
3945
3811
|
};
|
|
3946
3812
|
};
|
|
@@ -3957,14 +3823,14 @@ var deserializeAws_restJson1S3BucketAclGrantConfigurationsList = function (outpu
|
|
|
3957
3823
|
};
|
|
3958
3824
|
var deserializeAws_restJson1S3BucketConfiguration = function (output, context) {
|
|
3959
3825
|
return {
|
|
3960
|
-
accessPoints: output.accessPoints
|
|
3826
|
+
accessPoints: output.accessPoints != null
|
|
3961
3827
|
? deserializeAws_restJson1S3AccessPointConfigurationsMap(output.accessPoints, context)
|
|
3962
3828
|
: undefined,
|
|
3963
|
-
bucketAclGrants: output.bucketAclGrants
|
|
3829
|
+
bucketAclGrants: output.bucketAclGrants != null
|
|
3964
3830
|
? deserializeAws_restJson1S3BucketAclGrantConfigurationsList(output.bucketAclGrants, context)
|
|
3965
3831
|
: undefined,
|
|
3966
3832
|
bucketPolicy: __expectString(output.bucketPolicy),
|
|
3967
|
-
bucketPublicAccessBlock: output.bucketPublicAccessBlock
|
|
3833
|
+
bucketPublicAccessBlock: output.bucketPublicAccessBlock != null
|
|
3968
3834
|
? deserializeAws_restJson1S3PublicAccessBlockConfiguration(output.bucketPublicAccessBlock, context)
|
|
3969
3835
|
: undefined,
|
|
3970
3836
|
};
|
|
@@ -3994,12 +3860,8 @@ var deserializeAws_restJson1SharedViaList = function (output, context) {
|
|
|
3994
3860
|
};
|
|
3995
3861
|
var deserializeAws_restJson1Span = function (output, context) {
|
|
3996
3862
|
return {
|
|
3997
|
-
end: output.end
|
|
3998
|
-
|
|
3999
|
-
: undefined,
|
|
4000
|
-
start: output.start !== undefined && output.start !== null
|
|
4001
|
-
? deserializeAws_restJson1Position(output.start, context)
|
|
4002
|
-
: undefined,
|
|
3863
|
+
end: output.end != null ? deserializeAws_restJson1Position(output.end, context) : undefined,
|
|
3864
|
+
start: output.start != null ? deserializeAws_restJson1Position(output.start, context) : undefined,
|
|
4003
3865
|
};
|
|
4004
3866
|
};
|
|
4005
3867
|
var deserializeAws_restJson1SqsQueueConfiguration = function (output, context) {
|
|
@@ -4032,9 +3894,7 @@ var deserializeAws_restJson1TrailProperties = function (output, context) {
|
|
|
4032
3894
|
return {
|
|
4033
3895
|
allRegions: __expectBoolean(output.allRegions),
|
|
4034
3896
|
cloudTrailArn: __expectString(output.cloudTrailArn),
|
|
4035
|
-
regions: output.regions
|
|
4036
|
-
? deserializeAws_restJson1RegionList(output.regions, context)
|
|
4037
|
-
: undefined,
|
|
3897
|
+
regions: output.regions != null ? deserializeAws_restJson1RegionList(output.regions, context) : undefined,
|
|
4038
3898
|
};
|
|
4039
3899
|
};
|
|
4040
3900
|
var deserializeAws_restJson1TrailPropertiesList = function (output, context) {
|
|
@@ -4054,9 +3914,7 @@ var deserializeAws_restJson1ValidatePolicyFinding = function (output, context) {
|
|
|
4054
3914
|
findingType: __expectString(output.findingType),
|
|
4055
3915
|
issueCode: __expectString(output.issueCode),
|
|
4056
3916
|
learnMoreLink: __expectString(output.learnMoreLink),
|
|
4057
|
-
locations: output.locations
|
|
4058
|
-
? deserializeAws_restJson1LocationList(output.locations, context)
|
|
4059
|
-
: undefined,
|
|
3917
|
+
locations: output.locations != null ? deserializeAws_restJson1LocationList(output.locations, context) : undefined,
|
|
4060
3918
|
};
|
|
4061
3919
|
};
|
|
4062
3920
|
var deserializeAws_restJson1ValidatePolicyFindingList = function (output, context) {
|