@aws-sdk/client-accessanalyzer 3.31.0 → 3.32.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/AccessAnalyzerClient.js +13 -13
- package/dist/cjs/AccessAnalyzerClient.js.map +1 -1
- package/dist/cjs/commands/ApplyArchiveRuleCommand.js +3 -3
- package/dist/cjs/commands/ApplyArchiveRuleCommand.js.map +1 -1
- package/dist/cjs/commands/CancelPolicyGenerationCommand.js +3 -3
- package/dist/cjs/commands/CancelPolicyGenerationCommand.js.map +1 -1
- package/dist/cjs/commands/CreateAccessPreviewCommand.js +3 -3
- package/dist/cjs/commands/CreateAccessPreviewCommand.js.map +1 -1
- package/dist/cjs/commands/CreateAnalyzerCommand.js +3 -3
- package/dist/cjs/commands/CreateAnalyzerCommand.js.map +1 -1
- package/dist/cjs/commands/CreateArchiveRuleCommand.js +3 -3
- package/dist/cjs/commands/CreateArchiveRuleCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteAnalyzerCommand.js +3 -3
- package/dist/cjs/commands/DeleteAnalyzerCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteArchiveRuleCommand.js +3 -3
- package/dist/cjs/commands/DeleteArchiveRuleCommand.js.map +1 -1
- package/dist/cjs/commands/GetAccessPreviewCommand.js +3 -3
- package/dist/cjs/commands/GetAccessPreviewCommand.js.map +1 -1
- package/dist/cjs/commands/GetAnalyzedResourceCommand.js +3 -3
- package/dist/cjs/commands/GetAnalyzedResourceCommand.js.map +1 -1
- package/dist/cjs/commands/GetAnalyzerCommand.js +3 -3
- package/dist/cjs/commands/GetAnalyzerCommand.js.map +1 -1
- package/dist/cjs/commands/GetArchiveRuleCommand.js +3 -3
- package/dist/cjs/commands/GetArchiveRuleCommand.js.map +1 -1
- package/dist/cjs/commands/GetFindingCommand.js +3 -3
- package/dist/cjs/commands/GetFindingCommand.js.map +1 -1
- package/dist/cjs/commands/GetGeneratedPolicyCommand.js +3 -3
- package/dist/cjs/commands/GetGeneratedPolicyCommand.js.map +1 -1
- package/dist/cjs/commands/ListAccessPreviewFindingsCommand.js +3 -3
- package/dist/cjs/commands/ListAccessPreviewFindingsCommand.js.map +1 -1
- package/dist/cjs/commands/ListAccessPreviewsCommand.js +3 -3
- package/dist/cjs/commands/ListAccessPreviewsCommand.js.map +1 -1
- package/dist/cjs/commands/ListAnalyzedResourcesCommand.js +3 -3
- package/dist/cjs/commands/ListAnalyzedResourcesCommand.js.map +1 -1
- package/dist/cjs/commands/ListAnalyzersCommand.js +3 -3
- package/dist/cjs/commands/ListAnalyzersCommand.js.map +1 -1
- package/dist/cjs/commands/ListArchiveRulesCommand.js +3 -3
- package/dist/cjs/commands/ListArchiveRulesCommand.js.map +1 -1
- package/dist/cjs/commands/ListFindingsCommand.js +3 -3
- package/dist/cjs/commands/ListFindingsCommand.js.map +1 -1
- package/dist/cjs/commands/ListPolicyGenerationsCommand.js +3 -3
- package/dist/cjs/commands/ListPolicyGenerationsCommand.js.map +1 -1
- package/dist/cjs/commands/ListTagsForResourceCommand.js +3 -3
- package/dist/cjs/commands/ListTagsForResourceCommand.js.map +1 -1
- package/dist/cjs/commands/StartPolicyGenerationCommand.js +3 -3
- package/dist/cjs/commands/StartPolicyGenerationCommand.js.map +1 -1
- package/dist/cjs/commands/StartResourceScanCommand.js +3 -3
- package/dist/cjs/commands/StartResourceScanCommand.js.map +1 -1
- package/dist/cjs/commands/TagResourceCommand.js +3 -3
- package/dist/cjs/commands/TagResourceCommand.js.map +1 -1
- package/dist/cjs/commands/UntagResourceCommand.js +3 -3
- package/dist/cjs/commands/UntagResourceCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateArchiveRuleCommand.js +3 -3
- package/dist/cjs/commands/UpdateArchiveRuleCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateFindingsCommand.js +3 -3
- package/dist/cjs/commands/UpdateFindingsCommand.js.map +1 -1
- package/dist/cjs/commands/ValidatePolicyCommand.js +3 -3
- package/dist/cjs/commands/ValidatePolicyCommand.js.map +1 -1
- package/dist/cjs/endpoints.js +1 -1
- package/dist/cjs/endpoints.js.map +1 -1
- package/dist/cjs/index.js +40 -40
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/models/index.js +1 -1
- package/dist/cjs/models/index.js.map +1 -1
- package/dist/cjs/package.json +31 -31
- package/dist/cjs/protocols/Aws_restJson1.js +202 -202
- package/dist/cjs/protocols/Aws_restJson1.js.map +1 -1
- package/dist/cjs/runtimeConfig.browser.js +4 -4
- package/dist/cjs/runtimeConfig.browser.js.map +1 -1
- package/dist/cjs/runtimeConfig.js +8 -8
- package/dist/cjs/runtimeConfig.js.map +1 -1
- package/dist/cjs/runtimeConfig.native.js +1 -1
- package/dist/cjs/runtimeConfig.native.js.map +1 -1
- package/dist/es/package.json +31 -31
- package/dist/es/pagination/ListAccessPreviewFindingsPaginator.js +4 -4
- package/dist/es/pagination/ListAccessPreviewFindingsPaginator.js.map +1 -1
- package/dist/es/pagination/ListAccessPreviewsPaginator.js +4 -4
- package/dist/es/pagination/ListAccessPreviewsPaginator.js.map +1 -1
- package/dist/es/pagination/ListAnalyzedResourcesPaginator.js +4 -4
- package/dist/es/pagination/ListAnalyzedResourcesPaginator.js.map +1 -1
- package/dist/es/pagination/ListAnalyzersPaginator.js +4 -4
- package/dist/es/pagination/ListAnalyzersPaginator.js.map +1 -1
- package/dist/es/pagination/ListArchiveRulesPaginator.js +4 -4
- package/dist/es/pagination/ListArchiveRulesPaginator.js.map +1 -1
- package/dist/es/pagination/ListFindingsPaginator.js +4 -4
- package/dist/es/pagination/ListFindingsPaginator.js.map +1 -1
- package/dist/es/pagination/ListPolicyGenerationsPaginator.js +4 -4
- package/dist/es/pagination/ListPolicyGenerationsPaginator.js.map +1 -1
- package/dist/es/pagination/ValidatePolicyPaginator.js +4 -4
- package/dist/es/pagination/ValidatePolicyPaginator.js.map +1 -1
- package/package.json +31 -31
- package/tsconfig.json +1 -2
|
@@ -16,7 +16,7 @@ const serializeAws_restJson1ApplyArchiveRuleCommand = async (input, context) =>
|
|
|
16
16
|
let body;
|
|
17
17
|
body = JSON.stringify({
|
|
18
18
|
...(input.analyzerArn !== undefined && input.analyzerArn !== null && { analyzerArn: input.analyzerArn }),
|
|
19
|
-
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a :
|
|
19
|
+
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
20
20
|
...(input.ruleName !== undefined && input.ruleName !== null && { ruleName: input.ruleName }),
|
|
21
21
|
});
|
|
22
22
|
return new protocol_http_1.HttpRequest({
|
|
@@ -39,7 +39,7 @@ const serializeAws_restJson1CancelPolicyGenerationCommand = async (input, contex
|
|
|
39
39
|
if (labelValue.length <= 0) {
|
|
40
40
|
throw new Error("Empty value provided for input HTTP label: jobId.");
|
|
41
41
|
}
|
|
42
|
-
resolvedPath = resolvedPath.replace("{jobId}",
|
|
42
|
+
resolvedPath = resolvedPath.replace("{jobId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
43
43
|
}
|
|
44
44
|
else {
|
|
45
45
|
throw new Error("No value provided for input HTTP label: jobId.");
|
|
@@ -66,7 +66,7 @@ const serializeAws_restJson1CreateAccessPreviewCommand = async (input, context)
|
|
|
66
66
|
let body;
|
|
67
67
|
body = JSON.stringify({
|
|
68
68
|
...(input.analyzerArn !== undefined && input.analyzerArn !== null && { analyzerArn: input.analyzerArn }),
|
|
69
|
-
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a :
|
|
69
|
+
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
70
70
|
...(input.configurations !== undefined &&
|
|
71
71
|
input.configurations !== null && {
|
|
72
72
|
configurations: serializeAws_restJson1ConfigurationsMap(input.configurations, context),
|
|
@@ -97,7 +97,7 @@ const serializeAws_restJson1CreateAnalyzerCommand = async (input, context) => {
|
|
|
97
97
|
input.archiveRules !== null && {
|
|
98
98
|
archiveRules: serializeAws_restJson1InlineArchiveRulesList(input.archiveRules, context),
|
|
99
99
|
}),
|
|
100
|
-
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a :
|
|
100
|
+
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
101
101
|
...(input.tags !== undefined &&
|
|
102
102
|
input.tags !== null && { tags: serializeAws_restJson1TagsMap(input.tags, context) }),
|
|
103
103
|
...(input.type !== undefined && input.type !== null && { type: input.type }),
|
|
@@ -125,14 +125,14 @@ const serializeAws_restJson1CreateArchiveRuleCommand = async (input, context) =>
|
|
|
125
125
|
if (labelValue.length <= 0) {
|
|
126
126
|
throw new Error("Empty value provided for input HTTP label: analyzerName.");
|
|
127
127
|
}
|
|
128
|
-
resolvedPath = resolvedPath.replace("{analyzerName}",
|
|
128
|
+
resolvedPath = resolvedPath.replace("{analyzerName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
129
129
|
}
|
|
130
130
|
else {
|
|
131
131
|
throw new Error("No value provided for input HTTP label: analyzerName.");
|
|
132
132
|
}
|
|
133
133
|
let body;
|
|
134
134
|
body = JSON.stringify({
|
|
135
|
-
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a :
|
|
135
|
+
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
136
136
|
...(input.filter !== undefined &&
|
|
137
137
|
input.filter !== null && { filter: serializeAws_restJson1FilterCriteriaMap(input.filter, context) }),
|
|
138
138
|
...(input.ruleName !== undefined && input.ruleName !== null && { ruleName: input.ruleName }),
|
|
@@ -157,7 +157,7 @@ const serializeAws_restJson1DeleteAnalyzerCommand = async (input, context) => {
|
|
|
157
157
|
if (labelValue.length <= 0) {
|
|
158
158
|
throw new Error("Empty value provided for input HTTP label: analyzerName.");
|
|
159
159
|
}
|
|
160
|
-
resolvedPath = resolvedPath.replace("{analyzerName}",
|
|
160
|
+
resolvedPath = resolvedPath.replace("{analyzerName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
161
161
|
}
|
|
162
162
|
else {
|
|
163
163
|
throw new Error("No value provided for input HTTP label: analyzerName.");
|
|
@@ -188,7 +188,7 @@ const serializeAws_restJson1DeleteArchiveRuleCommand = async (input, context) =>
|
|
|
188
188
|
if (labelValue.length <= 0) {
|
|
189
189
|
throw new Error("Empty value provided for input HTTP label: analyzerName.");
|
|
190
190
|
}
|
|
191
|
-
resolvedPath = resolvedPath.replace("{analyzerName}",
|
|
191
|
+
resolvedPath = resolvedPath.replace("{analyzerName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
192
192
|
}
|
|
193
193
|
else {
|
|
194
194
|
throw new Error("No value provided for input HTTP label: analyzerName.");
|
|
@@ -198,7 +198,7 @@ const serializeAws_restJson1DeleteArchiveRuleCommand = async (input, context) =>
|
|
|
198
198
|
if (labelValue.length <= 0) {
|
|
199
199
|
throw new Error("Empty value provided for input HTTP label: ruleName.");
|
|
200
200
|
}
|
|
201
|
-
resolvedPath = resolvedPath.replace("{ruleName}",
|
|
201
|
+
resolvedPath = resolvedPath.replace("{ruleName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
202
202
|
}
|
|
203
203
|
else {
|
|
204
204
|
throw new Error("No value provided for input HTTP label: ruleName.");
|
|
@@ -228,7 +228,7 @@ const serializeAws_restJson1GetAccessPreviewCommand = async (input, context) =>
|
|
|
228
228
|
if (labelValue.length <= 0) {
|
|
229
229
|
throw new Error("Empty value provided for input HTTP label: accessPreviewId.");
|
|
230
230
|
}
|
|
231
|
-
resolvedPath = resolvedPath.replace("{accessPreviewId}",
|
|
231
|
+
resolvedPath = resolvedPath.replace("{accessPreviewId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
232
232
|
}
|
|
233
233
|
else {
|
|
234
234
|
throw new Error("No value provided for input HTTP label: accessPreviewId.");
|
|
@@ -279,7 +279,7 @@ const serializeAws_restJson1GetAnalyzerCommand = async (input, context) => {
|
|
|
279
279
|
if (labelValue.length <= 0) {
|
|
280
280
|
throw new Error("Empty value provided for input HTTP label: analyzerName.");
|
|
281
281
|
}
|
|
282
|
-
resolvedPath = resolvedPath.replace("{analyzerName}",
|
|
282
|
+
resolvedPath = resolvedPath.replace("{analyzerName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
283
283
|
}
|
|
284
284
|
else {
|
|
285
285
|
throw new Error("No value provided for input HTTP label: analyzerName.");
|
|
@@ -306,7 +306,7 @@ const serializeAws_restJson1GetArchiveRuleCommand = async (input, context) => {
|
|
|
306
306
|
if (labelValue.length <= 0) {
|
|
307
307
|
throw new Error("Empty value provided for input HTTP label: analyzerName.");
|
|
308
308
|
}
|
|
309
|
-
resolvedPath = resolvedPath.replace("{analyzerName}",
|
|
309
|
+
resolvedPath = resolvedPath.replace("{analyzerName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
310
310
|
}
|
|
311
311
|
else {
|
|
312
312
|
throw new Error("No value provided for input HTTP label: analyzerName.");
|
|
@@ -316,7 +316,7 @@ const serializeAws_restJson1GetArchiveRuleCommand = async (input, context) => {
|
|
|
316
316
|
if (labelValue.length <= 0) {
|
|
317
317
|
throw new Error("Empty value provided for input HTTP label: ruleName.");
|
|
318
318
|
}
|
|
319
|
-
resolvedPath = resolvedPath.replace("{ruleName}",
|
|
319
|
+
resolvedPath = resolvedPath.replace("{ruleName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
320
320
|
}
|
|
321
321
|
else {
|
|
322
322
|
throw new Error("No value provided for input HTTP label: ruleName.");
|
|
@@ -342,7 +342,7 @@ const serializeAws_restJson1GetFindingCommand = async (input, context) => {
|
|
|
342
342
|
if (labelValue.length <= 0) {
|
|
343
343
|
throw new Error("Empty value provided for input HTTP label: id.");
|
|
344
344
|
}
|
|
345
|
-
resolvedPath = resolvedPath.replace("{id}",
|
|
345
|
+
resolvedPath = resolvedPath.replace("{id}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
346
346
|
}
|
|
347
347
|
else {
|
|
348
348
|
throw new Error("No value provided for input HTTP label: id.");
|
|
@@ -372,7 +372,7 @@ const serializeAws_restJson1GetGeneratedPolicyCommand = async (input, context) =
|
|
|
372
372
|
if (labelValue.length <= 0) {
|
|
373
373
|
throw new Error("Empty value provided for input HTTP label: jobId.");
|
|
374
374
|
}
|
|
375
|
-
resolvedPath = resolvedPath.replace("{jobId}",
|
|
375
|
+
resolvedPath = resolvedPath.replace("{jobId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
376
376
|
}
|
|
377
377
|
else {
|
|
378
378
|
throw new Error("No value provided for input HTTP label: jobId.");
|
|
@@ -409,7 +409,7 @@ const serializeAws_restJson1ListAccessPreviewFindingsCommand = async (input, con
|
|
|
409
409
|
if (labelValue.length <= 0) {
|
|
410
410
|
throw new Error("Empty value provided for input HTTP label: accessPreviewId.");
|
|
411
411
|
}
|
|
412
|
-
resolvedPath = resolvedPath.replace("{accessPreviewId}",
|
|
412
|
+
resolvedPath = resolvedPath.replace("{accessPreviewId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
413
413
|
}
|
|
414
414
|
else {
|
|
415
415
|
throw new Error("No value provided for input HTTP label: accessPreviewId.");
|
|
@@ -510,7 +510,7 @@ const serializeAws_restJson1ListArchiveRulesCommand = async (input, context) =>
|
|
|
510
510
|
if (labelValue.length <= 0) {
|
|
511
511
|
throw new Error("Empty value provided for input HTTP label: analyzerName.");
|
|
512
512
|
}
|
|
513
|
-
resolvedPath = resolvedPath.replace("{analyzerName}",
|
|
513
|
+
resolvedPath = resolvedPath.replace("{analyzerName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
514
514
|
}
|
|
515
515
|
else {
|
|
516
516
|
throw new Error("No value provided for input HTTP label: analyzerName.");
|
|
@@ -590,7 +590,7 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
|
|
|
590
590
|
if (labelValue.length <= 0) {
|
|
591
591
|
throw new Error("Empty value provided for input HTTP label: resourceArn.");
|
|
592
592
|
}
|
|
593
|
-
resolvedPath = resolvedPath.replace("{resourceArn}",
|
|
593
|
+
resolvedPath = resolvedPath.replace("{resourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
594
594
|
}
|
|
595
595
|
else {
|
|
596
596
|
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
@@ -616,7 +616,7 @@ const serializeAws_restJson1StartPolicyGenerationCommand = async (input, context
|
|
|
616
616
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/policy/generation";
|
|
617
617
|
let body;
|
|
618
618
|
body = JSON.stringify({
|
|
619
|
-
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a :
|
|
619
|
+
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
620
620
|
...(input.cloudTrailDetails !== undefined &&
|
|
621
621
|
input.cloudTrailDetails !== null && {
|
|
622
622
|
cloudTrailDetails: serializeAws_restJson1CloudTrailDetails(input.cloudTrailDetails, context),
|
|
@@ -670,7 +670,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
670
670
|
if (labelValue.length <= 0) {
|
|
671
671
|
throw new Error("Empty value provided for input HTTP label: resourceArn.");
|
|
672
672
|
}
|
|
673
|
-
resolvedPath = resolvedPath.replace("{resourceArn}",
|
|
673
|
+
resolvedPath = resolvedPath.replace("{resourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
674
674
|
}
|
|
675
675
|
else {
|
|
676
676
|
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
@@ -700,7 +700,7 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
|
700
700
|
if (labelValue.length <= 0) {
|
|
701
701
|
throw new Error("Empty value provided for input HTTP label: resourceArn.");
|
|
702
702
|
}
|
|
703
|
-
resolvedPath = resolvedPath.replace("{resourceArn}",
|
|
703
|
+
resolvedPath = resolvedPath.replace("{resourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
704
704
|
}
|
|
705
705
|
else {
|
|
706
706
|
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
@@ -734,7 +734,7 @@ const serializeAws_restJson1UpdateArchiveRuleCommand = async (input, context) =>
|
|
|
734
734
|
if (labelValue.length <= 0) {
|
|
735
735
|
throw new Error("Empty value provided for input HTTP label: analyzerName.");
|
|
736
736
|
}
|
|
737
|
-
resolvedPath = resolvedPath.replace("{analyzerName}",
|
|
737
|
+
resolvedPath = resolvedPath.replace("{analyzerName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
738
738
|
}
|
|
739
739
|
else {
|
|
740
740
|
throw new Error("No value provided for input HTTP label: analyzerName.");
|
|
@@ -744,14 +744,14 @@ const serializeAws_restJson1UpdateArchiveRuleCommand = async (input, context) =>
|
|
|
744
744
|
if (labelValue.length <= 0) {
|
|
745
745
|
throw new Error("Empty value provided for input HTTP label: ruleName.");
|
|
746
746
|
}
|
|
747
|
-
resolvedPath = resolvedPath.replace("{ruleName}",
|
|
747
|
+
resolvedPath = resolvedPath.replace("{ruleName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
748
748
|
}
|
|
749
749
|
else {
|
|
750
750
|
throw new Error("No value provided for input HTTP label: ruleName.");
|
|
751
751
|
}
|
|
752
752
|
let body;
|
|
753
753
|
body = JSON.stringify({
|
|
754
|
-
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a :
|
|
754
|
+
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
755
755
|
...(input.filter !== undefined &&
|
|
756
756
|
input.filter !== null && { filter: serializeAws_restJson1FilterCriteriaMap(input.filter, context) }),
|
|
757
757
|
});
|
|
@@ -776,7 +776,7 @@ const serializeAws_restJson1UpdateFindingsCommand = async (input, context) => {
|
|
|
776
776
|
let body;
|
|
777
777
|
body = JSON.stringify({
|
|
778
778
|
...(input.analyzerArn !== undefined && input.analyzerArn !== null && { analyzerArn: input.analyzerArn }),
|
|
779
|
-
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a :
|
|
779
|
+
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
780
780
|
...(input.ids !== undefined &&
|
|
781
781
|
input.ids !== null && { ids: serializeAws_restJson1FindingIdList(input.ids, context) }),
|
|
782
782
|
...(input.resourceArn !== undefined && input.resourceArn !== null && { resourceArn: input.resourceArn }),
|
|
@@ -974,9 +974,9 @@ const deserializeAws_restJson1CreateAccessPreviewCommand = async (output, contex
|
|
|
974
974
|
$metadata: deserializeMetadata(output),
|
|
975
975
|
id: undefined,
|
|
976
976
|
};
|
|
977
|
-
const data =
|
|
977
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
978
978
|
if (data.id !== undefined && data.id !== null) {
|
|
979
|
-
contents.id =
|
|
979
|
+
contents.id = smithy_client_1.expectString(data.id);
|
|
980
980
|
}
|
|
981
981
|
return Promise.resolve(contents);
|
|
982
982
|
};
|
|
@@ -1070,9 +1070,9 @@ const deserializeAws_restJson1CreateAnalyzerCommand = async (output, context) =>
|
|
|
1070
1070
|
$metadata: deserializeMetadata(output),
|
|
1071
1071
|
arn: undefined,
|
|
1072
1072
|
};
|
|
1073
|
-
const data =
|
|
1073
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1074
1074
|
if (data.arn !== undefined && data.arn !== null) {
|
|
1075
|
-
contents.arn =
|
|
1075
|
+
contents.arn = smithy_client_1.expectString(data.arn);
|
|
1076
1076
|
}
|
|
1077
1077
|
return Promise.resolve(contents);
|
|
1078
1078
|
};
|
|
@@ -1402,7 +1402,7 @@ const deserializeAws_restJson1GetAccessPreviewCommand = async (output, context)
|
|
|
1402
1402
|
$metadata: deserializeMetadata(output),
|
|
1403
1403
|
accessPreview: undefined,
|
|
1404
1404
|
};
|
|
1405
|
-
const data =
|
|
1405
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1406
1406
|
if (data.accessPreview !== undefined && data.accessPreview !== null) {
|
|
1407
1407
|
contents.accessPreview = deserializeAws_restJson1AccessPreview(data.accessPreview, context);
|
|
1408
1408
|
}
|
|
@@ -1482,7 +1482,7 @@ const deserializeAws_restJson1GetAnalyzedResourceCommand = async (output, contex
|
|
|
1482
1482
|
$metadata: deserializeMetadata(output),
|
|
1483
1483
|
resource: undefined,
|
|
1484
1484
|
};
|
|
1485
|
-
const data =
|
|
1485
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1486
1486
|
if (data.resource !== undefined && data.resource !== null) {
|
|
1487
1487
|
contents.resource = deserializeAws_restJson1AnalyzedResource(data.resource, context);
|
|
1488
1488
|
}
|
|
@@ -1562,7 +1562,7 @@ const deserializeAws_restJson1GetAnalyzerCommand = async (output, context) => {
|
|
|
1562
1562
|
$metadata: deserializeMetadata(output),
|
|
1563
1563
|
analyzer: undefined,
|
|
1564
1564
|
};
|
|
1565
|
-
const data =
|
|
1565
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1566
1566
|
if (data.analyzer !== undefined && data.analyzer !== null) {
|
|
1567
1567
|
contents.analyzer = deserializeAws_restJson1AnalyzerSummary(data.analyzer, context);
|
|
1568
1568
|
}
|
|
@@ -1642,7 +1642,7 @@ const deserializeAws_restJson1GetArchiveRuleCommand = async (output, context) =>
|
|
|
1642
1642
|
$metadata: deserializeMetadata(output),
|
|
1643
1643
|
archiveRule: undefined,
|
|
1644
1644
|
};
|
|
1645
|
-
const data =
|
|
1645
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1646
1646
|
if (data.archiveRule !== undefined && data.archiveRule !== null) {
|
|
1647
1647
|
contents.archiveRule = deserializeAws_restJson1ArchiveRuleSummary(data.archiveRule, context);
|
|
1648
1648
|
}
|
|
@@ -1722,7 +1722,7 @@ const deserializeAws_restJson1GetFindingCommand = async (output, context) => {
|
|
|
1722
1722
|
$metadata: deserializeMetadata(output),
|
|
1723
1723
|
finding: undefined,
|
|
1724
1724
|
};
|
|
1725
|
-
const data =
|
|
1725
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1726
1726
|
if (data.finding !== undefined && data.finding !== null) {
|
|
1727
1727
|
contents.finding = deserializeAws_restJson1Finding(data.finding, context);
|
|
1728
1728
|
}
|
|
@@ -1803,7 +1803,7 @@ const deserializeAws_restJson1GetGeneratedPolicyCommand = async (output, context
|
|
|
1803
1803
|
generatedPolicyResult: undefined,
|
|
1804
1804
|
jobDetails: undefined,
|
|
1805
1805
|
};
|
|
1806
|
-
const data =
|
|
1806
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1807
1807
|
if (data.generatedPolicyResult !== undefined && data.generatedPolicyResult !== null) {
|
|
1808
1808
|
contents.generatedPolicyResult = deserializeAws_restJson1GeneratedPolicyResult(data.generatedPolicyResult, context);
|
|
1809
1809
|
}
|
|
@@ -1879,12 +1879,12 @@ const deserializeAws_restJson1ListAccessPreviewFindingsCommand = async (output,
|
|
|
1879
1879
|
findings: undefined,
|
|
1880
1880
|
nextToken: undefined,
|
|
1881
1881
|
};
|
|
1882
|
-
const data =
|
|
1882
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1883
1883
|
if (data.findings !== undefined && data.findings !== null) {
|
|
1884
1884
|
contents.findings = deserializeAws_restJson1AccessPreviewFindingsList(data.findings, context);
|
|
1885
1885
|
}
|
|
1886
1886
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
1887
|
-
contents.nextToken =
|
|
1887
|
+
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
1888
1888
|
}
|
|
1889
1889
|
return Promise.resolve(contents);
|
|
1890
1890
|
};
|
|
@@ -1971,12 +1971,12 @@ const deserializeAws_restJson1ListAccessPreviewsCommand = async (output, context
|
|
|
1971
1971
|
accessPreviews: undefined,
|
|
1972
1972
|
nextToken: undefined,
|
|
1973
1973
|
};
|
|
1974
|
-
const data =
|
|
1974
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1975
1975
|
if (data.accessPreviews !== undefined && data.accessPreviews !== null) {
|
|
1976
1976
|
contents.accessPreviews = deserializeAws_restJson1AccessPreviewsList(data.accessPreviews, context);
|
|
1977
1977
|
}
|
|
1978
1978
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
1979
|
-
contents.nextToken =
|
|
1979
|
+
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
1980
1980
|
}
|
|
1981
1981
|
return Promise.resolve(contents);
|
|
1982
1982
|
};
|
|
@@ -2055,12 +2055,12 @@ const deserializeAws_restJson1ListAnalyzedResourcesCommand = async (output, cont
|
|
|
2055
2055
|
analyzedResources: undefined,
|
|
2056
2056
|
nextToken: undefined,
|
|
2057
2057
|
};
|
|
2058
|
-
const data =
|
|
2058
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2059
2059
|
if (data.analyzedResources !== undefined && data.analyzedResources !== null) {
|
|
2060
2060
|
contents.analyzedResources = deserializeAws_restJson1AnalyzedResourcesList(data.analyzedResources, context);
|
|
2061
2061
|
}
|
|
2062
2062
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
2063
|
-
contents.nextToken =
|
|
2063
|
+
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
2064
2064
|
}
|
|
2065
2065
|
return Promise.resolve(contents);
|
|
2066
2066
|
};
|
|
@@ -2139,12 +2139,12 @@ const deserializeAws_restJson1ListAnalyzersCommand = async (output, context) =>
|
|
|
2139
2139
|
analyzers: undefined,
|
|
2140
2140
|
nextToken: undefined,
|
|
2141
2141
|
};
|
|
2142
|
-
const data =
|
|
2142
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2143
2143
|
if (data.analyzers !== undefined && data.analyzers !== null) {
|
|
2144
2144
|
contents.analyzers = deserializeAws_restJson1AnalyzersList(data.analyzers, context);
|
|
2145
2145
|
}
|
|
2146
2146
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
2147
|
-
contents.nextToken =
|
|
2147
|
+
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
2148
2148
|
}
|
|
2149
2149
|
return Promise.resolve(contents);
|
|
2150
2150
|
};
|
|
@@ -2215,12 +2215,12 @@ const deserializeAws_restJson1ListArchiveRulesCommand = async (output, context)
|
|
|
2215
2215
|
archiveRules: undefined,
|
|
2216
2216
|
nextToken: undefined,
|
|
2217
2217
|
};
|
|
2218
|
-
const data =
|
|
2218
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2219
2219
|
if (data.archiveRules !== undefined && data.archiveRules !== null) {
|
|
2220
2220
|
contents.archiveRules = deserializeAws_restJson1ArchiveRulesList(data.archiveRules, context);
|
|
2221
2221
|
}
|
|
2222
2222
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
2223
|
-
contents.nextToken =
|
|
2223
|
+
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
2224
2224
|
}
|
|
2225
2225
|
return Promise.resolve(contents);
|
|
2226
2226
|
};
|
|
@@ -2291,12 +2291,12 @@ const deserializeAws_restJson1ListFindingsCommand = async (output, context) => {
|
|
|
2291
2291
|
findings: undefined,
|
|
2292
2292
|
nextToken: undefined,
|
|
2293
2293
|
};
|
|
2294
|
-
const data =
|
|
2294
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2295
2295
|
if (data.findings !== undefined && data.findings !== null) {
|
|
2296
2296
|
contents.findings = deserializeAws_restJson1FindingsList(data.findings, context);
|
|
2297
2297
|
}
|
|
2298
2298
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
2299
|
-
contents.nextToken =
|
|
2299
|
+
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
2300
2300
|
}
|
|
2301
2301
|
return Promise.resolve(contents);
|
|
2302
2302
|
};
|
|
@@ -2375,9 +2375,9 @@ const deserializeAws_restJson1ListPolicyGenerationsCommand = async (output, cont
|
|
|
2375
2375
|
nextToken: undefined,
|
|
2376
2376
|
policyGenerations: undefined,
|
|
2377
2377
|
};
|
|
2378
|
-
const data =
|
|
2378
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2379
2379
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
2380
|
-
contents.nextToken =
|
|
2380
|
+
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
2381
2381
|
}
|
|
2382
2382
|
if (data.policyGenerations !== undefined && data.policyGenerations !== null) {
|
|
2383
2383
|
contents.policyGenerations = deserializeAws_restJson1PolicyGenerationList(data.policyGenerations, context);
|
|
@@ -2450,7 +2450,7 @@ const deserializeAws_restJson1ListTagsForResourceCommand = async (output, contex
|
|
|
2450
2450
|
$metadata: deserializeMetadata(output),
|
|
2451
2451
|
tags: undefined,
|
|
2452
2452
|
};
|
|
2453
|
-
const data =
|
|
2453
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2454
2454
|
if (data.tags !== undefined && data.tags !== null) {
|
|
2455
2455
|
contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
|
|
2456
2456
|
}
|
|
@@ -2530,9 +2530,9 @@ const deserializeAws_restJson1StartPolicyGenerationCommand = async (output, cont
|
|
|
2530
2530
|
$metadata: deserializeMetadata(output),
|
|
2531
2531
|
jobId: undefined,
|
|
2532
2532
|
};
|
|
2533
|
-
const data =
|
|
2533
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2534
2534
|
if (data.jobId !== undefined && data.jobId !== null) {
|
|
2535
|
-
contents.jobId =
|
|
2535
|
+
contents.jobId = smithy_client_1.expectString(data.jobId);
|
|
2536
2536
|
}
|
|
2537
2537
|
return Promise.resolve(contents);
|
|
2538
2538
|
};
|
|
@@ -2999,12 +2999,12 @@ const deserializeAws_restJson1ValidatePolicyCommand = async (output, context) =>
|
|
|
2999
2999
|
findings: undefined,
|
|
3000
3000
|
nextToken: undefined,
|
|
3001
3001
|
};
|
|
3002
|
-
const data =
|
|
3002
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3003
3003
|
if (data.findings !== undefined && data.findings !== null) {
|
|
3004
3004
|
contents.findings = deserializeAws_restJson1ValidatePolicyFindingList(data.findings, context);
|
|
3005
3005
|
}
|
|
3006
3006
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
3007
|
-
contents.nextToken =
|
|
3007
|
+
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
3008
3008
|
}
|
|
3009
3009
|
return Promise.resolve(contents);
|
|
3010
3010
|
};
|
|
@@ -3075,7 +3075,7 @@ const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutpu
|
|
|
3075
3075
|
};
|
|
3076
3076
|
const data = parsedOutput.body;
|
|
3077
3077
|
if (data.message !== undefined && data.message !== null) {
|
|
3078
|
-
contents.message =
|
|
3078
|
+
contents.message = smithy_client_1.expectString(data.message);
|
|
3079
3079
|
}
|
|
3080
3080
|
return contents;
|
|
3081
3081
|
};
|
|
@@ -3090,13 +3090,13 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
|
|
|
3090
3090
|
};
|
|
3091
3091
|
const data = parsedOutput.body;
|
|
3092
3092
|
if (data.message !== undefined && data.message !== null) {
|
|
3093
|
-
contents.message =
|
|
3093
|
+
contents.message = smithy_client_1.expectString(data.message);
|
|
3094
3094
|
}
|
|
3095
3095
|
if (data.resourceId !== undefined && data.resourceId !== null) {
|
|
3096
|
-
contents.resourceId =
|
|
3096
|
+
contents.resourceId = smithy_client_1.expectString(data.resourceId);
|
|
3097
3097
|
}
|
|
3098
3098
|
if (data.resourceType !== undefined && data.resourceType !== null) {
|
|
3099
|
-
contents.resourceType =
|
|
3099
|
+
contents.resourceType = smithy_client_1.expectString(data.resourceType);
|
|
3100
3100
|
}
|
|
3101
3101
|
return contents;
|
|
3102
3102
|
};
|
|
@@ -3110,11 +3110,11 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOut
|
|
|
3110
3110
|
retryAfterSeconds: undefined,
|
|
3111
3111
|
};
|
|
3112
3112
|
if (parsedOutput.headers["retry-after"] !== undefined) {
|
|
3113
|
-
contents.retryAfterSeconds =
|
|
3113
|
+
contents.retryAfterSeconds = smithy_client_1.strictParseInt32(parsedOutput.headers["retry-after"]);
|
|
3114
3114
|
}
|
|
3115
3115
|
const data = parsedOutput.body;
|
|
3116
3116
|
if (data.message !== undefined && data.message !== null) {
|
|
3117
|
-
contents.message =
|
|
3117
|
+
contents.message = smithy_client_1.expectString(data.message);
|
|
3118
3118
|
}
|
|
3119
3119
|
return contents;
|
|
3120
3120
|
};
|
|
@@ -3129,13 +3129,13 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
|
|
|
3129
3129
|
};
|
|
3130
3130
|
const data = parsedOutput.body;
|
|
3131
3131
|
if (data.message !== undefined && data.message !== null) {
|
|
3132
|
-
contents.message =
|
|
3132
|
+
contents.message = smithy_client_1.expectString(data.message);
|
|
3133
3133
|
}
|
|
3134
3134
|
if (data.resourceId !== undefined && data.resourceId !== null) {
|
|
3135
|
-
contents.resourceId =
|
|
3135
|
+
contents.resourceId = smithy_client_1.expectString(data.resourceId);
|
|
3136
3136
|
}
|
|
3137
3137
|
if (data.resourceType !== undefined && data.resourceType !== null) {
|
|
3138
|
-
contents.resourceType =
|
|
3138
|
+
contents.resourceType = smithy_client_1.expectString(data.resourceType);
|
|
3139
3139
|
}
|
|
3140
3140
|
return contents;
|
|
3141
3141
|
};
|
|
@@ -3150,13 +3150,13 @@ const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (par
|
|
|
3150
3150
|
};
|
|
3151
3151
|
const data = parsedOutput.body;
|
|
3152
3152
|
if (data.message !== undefined && data.message !== null) {
|
|
3153
|
-
contents.message =
|
|
3153
|
+
contents.message = smithy_client_1.expectString(data.message);
|
|
3154
3154
|
}
|
|
3155
3155
|
if (data.resourceId !== undefined && data.resourceId !== null) {
|
|
3156
|
-
contents.resourceId =
|
|
3156
|
+
contents.resourceId = smithy_client_1.expectString(data.resourceId);
|
|
3157
3157
|
}
|
|
3158
3158
|
if (data.resourceType !== undefined && data.resourceType !== null) {
|
|
3159
|
-
contents.resourceType =
|
|
3159
|
+
contents.resourceType = smithy_client_1.expectString(data.resourceType);
|
|
3160
3160
|
}
|
|
3161
3161
|
return contents;
|
|
3162
3162
|
};
|
|
@@ -3172,11 +3172,11 @@ const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput,
|
|
|
3172
3172
|
retryAfterSeconds: undefined,
|
|
3173
3173
|
};
|
|
3174
3174
|
if (parsedOutput.headers["retry-after"] !== undefined) {
|
|
3175
|
-
contents.retryAfterSeconds =
|
|
3175
|
+
contents.retryAfterSeconds = smithy_client_1.strictParseInt32(parsedOutput.headers["retry-after"]);
|
|
3176
3176
|
}
|
|
3177
3177
|
const data = parsedOutput.body;
|
|
3178
3178
|
if (data.message !== undefined && data.message !== null) {
|
|
3179
|
-
contents.message =
|
|
3179
|
+
contents.message = smithy_client_1.expectString(data.message);
|
|
3180
3180
|
}
|
|
3181
3181
|
return contents;
|
|
3182
3182
|
};
|
|
@@ -3194,10 +3194,10 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
|
|
|
3194
3194
|
contents.fieldList = deserializeAws_restJson1ValidationExceptionFieldList(data.fieldList, context);
|
|
3195
3195
|
}
|
|
3196
3196
|
if (data.message !== undefined && data.message !== null) {
|
|
3197
|
-
contents.message =
|
|
3197
|
+
contents.message = smithy_client_1.expectString(data.message);
|
|
3198
3198
|
}
|
|
3199
3199
|
if (data.reason !== undefined && data.reason !== null) {
|
|
3200
|
-
contents.reason =
|
|
3200
|
+
contents.reason = smithy_client_1.expectString(data.reason);
|
|
3201
3201
|
}
|
|
3202
3202
|
return contents;
|
|
3203
3203
|
};
|
|
@@ -3533,15 +3533,15 @@ const serializeAws_restJson1VpcConfiguration = (input, context) => {
|
|
|
3533
3533
|
};
|
|
3534
3534
|
const deserializeAws_restJson1AccessPreview = (output, context) => {
|
|
3535
3535
|
return {
|
|
3536
|
-
analyzerArn:
|
|
3536
|
+
analyzerArn: smithy_client_1.expectString(output.analyzerArn),
|
|
3537
3537
|
configurations: output.configurations !== undefined && output.configurations !== null
|
|
3538
3538
|
? deserializeAws_restJson1ConfigurationsMap(output.configurations, context)
|
|
3539
3539
|
: undefined,
|
|
3540
3540
|
createdAt: output.createdAt !== undefined && output.createdAt !== null
|
|
3541
|
-
?
|
|
3541
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.createdAt))
|
|
3542
3542
|
: undefined,
|
|
3543
|
-
id:
|
|
3544
|
-
status:
|
|
3543
|
+
id: smithy_client_1.expectString(output.id),
|
|
3544
|
+
status: smithy_client_1.expectString(output.status),
|
|
3545
3545
|
statusReason: output.statusReason !== undefined && output.statusReason !== null
|
|
3546
3546
|
? deserializeAws_restJson1AccessPreviewStatusReason(output.statusReason, context)
|
|
3547
3547
|
: undefined,
|
|
@@ -3552,28 +3552,28 @@ const deserializeAws_restJson1AccessPreviewFinding = (output, context) => {
|
|
|
3552
3552
|
action: output.action !== undefined && output.action !== null
|
|
3553
3553
|
? deserializeAws_restJson1ActionList(output.action, context)
|
|
3554
3554
|
: undefined,
|
|
3555
|
-
changeType:
|
|
3555
|
+
changeType: smithy_client_1.expectString(output.changeType),
|
|
3556
3556
|
condition: output.condition !== undefined && output.condition !== null
|
|
3557
3557
|
? deserializeAws_restJson1ConditionKeyMap(output.condition, context)
|
|
3558
3558
|
: undefined,
|
|
3559
3559
|
createdAt: output.createdAt !== undefined && output.createdAt !== null
|
|
3560
|
-
?
|
|
3560
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.createdAt))
|
|
3561
3561
|
: undefined,
|
|
3562
|
-
error:
|
|
3563
|
-
existingFindingId:
|
|
3564
|
-
existingFindingStatus:
|
|
3565
|
-
id:
|
|
3566
|
-
isPublic:
|
|
3562
|
+
error: smithy_client_1.expectString(output.error),
|
|
3563
|
+
existingFindingId: smithy_client_1.expectString(output.existingFindingId),
|
|
3564
|
+
existingFindingStatus: smithy_client_1.expectString(output.existingFindingStatus),
|
|
3565
|
+
id: smithy_client_1.expectString(output.id),
|
|
3566
|
+
isPublic: smithy_client_1.expectBoolean(output.isPublic),
|
|
3567
3567
|
principal: output.principal !== undefined && output.principal !== null
|
|
3568
3568
|
? deserializeAws_restJson1PrincipalMap(output.principal, context)
|
|
3569
3569
|
: undefined,
|
|
3570
|
-
resource:
|
|
3571
|
-
resourceOwnerAccount:
|
|
3572
|
-
resourceType:
|
|
3570
|
+
resource: smithy_client_1.expectString(output.resource),
|
|
3571
|
+
resourceOwnerAccount: smithy_client_1.expectString(output.resourceOwnerAccount),
|
|
3572
|
+
resourceType: smithy_client_1.expectString(output.resourceType),
|
|
3573
3573
|
sources: output.sources !== undefined && output.sources !== null
|
|
3574
3574
|
? deserializeAws_restJson1FindingSourceList(output.sources, context)
|
|
3575
3575
|
: undefined,
|
|
3576
|
-
status:
|
|
3576
|
+
status: smithy_client_1.expectString(output.status),
|
|
3577
3577
|
};
|
|
3578
3578
|
};
|
|
3579
3579
|
const deserializeAws_restJson1AccessPreviewFindingsList = (output, context) => {
|
|
@@ -3598,28 +3598,28 @@ const deserializeAws_restJson1AccessPreviewsList = (output, context) => {
|
|
|
3598
3598
|
};
|
|
3599
3599
|
const deserializeAws_restJson1AccessPreviewStatusReason = (output, context) => {
|
|
3600
3600
|
return {
|
|
3601
|
-
code:
|
|
3601
|
+
code: smithy_client_1.expectString(output.code),
|
|
3602
3602
|
};
|
|
3603
3603
|
};
|
|
3604
3604
|
const deserializeAws_restJson1AccessPreviewSummary = (output, context) => {
|
|
3605
3605
|
return {
|
|
3606
|
-
analyzerArn:
|
|
3606
|
+
analyzerArn: smithy_client_1.expectString(output.analyzerArn),
|
|
3607
3607
|
createdAt: output.createdAt !== undefined && output.createdAt !== null
|
|
3608
|
-
?
|
|
3608
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.createdAt))
|
|
3609
3609
|
: undefined,
|
|
3610
|
-
id:
|
|
3611
|
-
status:
|
|
3610
|
+
id: smithy_client_1.expectString(output.id),
|
|
3611
|
+
status: smithy_client_1.expectString(output.status),
|
|
3612
3612
|
statusReason: output.statusReason !== undefined && output.statusReason !== null
|
|
3613
3613
|
? deserializeAws_restJson1AccessPreviewStatusReason(output.statusReason, context)
|
|
3614
3614
|
: undefined,
|
|
3615
3615
|
};
|
|
3616
3616
|
};
|
|
3617
3617
|
const deserializeAws_restJson1AclGrantee = (output, context) => {
|
|
3618
|
-
if (
|
|
3619
|
-
return { id:
|
|
3618
|
+
if (smithy_client_1.expectString(output.id) !== undefined) {
|
|
3619
|
+
return { id: smithy_client_1.expectString(output.id) };
|
|
3620
3620
|
}
|
|
3621
|
-
if (
|
|
3622
|
-
return { uri:
|
|
3621
|
+
if (smithy_client_1.expectString(output.uri) !== undefined) {
|
|
3622
|
+
return { uri: smithy_client_1.expectString(output.uri) };
|
|
3623
3623
|
}
|
|
3624
3624
|
return { $unknown: Object.entries(output)[0] };
|
|
3625
3625
|
};
|
|
@@ -3630,7 +3630,7 @@ const deserializeAws_restJson1ActionList = (output, context) => {
|
|
|
3630
3630
|
if (entry === null) {
|
|
3631
3631
|
return null;
|
|
3632
3632
|
}
|
|
3633
|
-
return
|
|
3633
|
+
return smithy_client_1.expectString(entry);
|
|
3634
3634
|
});
|
|
3635
3635
|
};
|
|
3636
3636
|
const deserializeAws_restJson1AnalyzedResource = (output, context) => {
|
|
@@ -3639,22 +3639,22 @@ const deserializeAws_restJson1AnalyzedResource = (output, context) => {
|
|
|
3639
3639
|
? deserializeAws_restJson1ActionList(output.actions, context)
|
|
3640
3640
|
: undefined,
|
|
3641
3641
|
analyzedAt: output.analyzedAt !== undefined && output.analyzedAt !== null
|
|
3642
|
-
?
|
|
3642
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.analyzedAt))
|
|
3643
3643
|
: undefined,
|
|
3644
3644
|
createdAt: output.createdAt !== undefined && output.createdAt !== null
|
|
3645
|
-
?
|
|
3645
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.createdAt))
|
|
3646
3646
|
: undefined,
|
|
3647
|
-
error:
|
|
3648
|
-
isPublic:
|
|
3649
|
-
resourceArn:
|
|
3650
|
-
resourceOwnerAccount:
|
|
3651
|
-
resourceType:
|
|
3647
|
+
error: smithy_client_1.expectString(output.error),
|
|
3648
|
+
isPublic: smithy_client_1.expectBoolean(output.isPublic),
|
|
3649
|
+
resourceArn: smithy_client_1.expectString(output.resourceArn),
|
|
3650
|
+
resourceOwnerAccount: smithy_client_1.expectString(output.resourceOwnerAccount),
|
|
3651
|
+
resourceType: smithy_client_1.expectString(output.resourceType),
|
|
3652
3652
|
sharedVia: output.sharedVia !== undefined && output.sharedVia !== null
|
|
3653
3653
|
? deserializeAws_restJson1SharedViaList(output.sharedVia, context)
|
|
3654
3654
|
: undefined,
|
|
3655
|
-
status:
|
|
3655
|
+
status: smithy_client_1.expectString(output.status),
|
|
3656
3656
|
updatedAt: output.updatedAt !== undefined && output.updatedAt !== null
|
|
3657
|
-
?
|
|
3657
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.updatedAt))
|
|
3658
3658
|
: undefined,
|
|
3659
3659
|
};
|
|
3660
3660
|
};
|
|
@@ -3670,9 +3670,9 @@ const deserializeAws_restJson1AnalyzedResourcesList = (output, context) => {
|
|
|
3670
3670
|
};
|
|
3671
3671
|
const deserializeAws_restJson1AnalyzedResourceSummary = (output, context) => {
|
|
3672
3672
|
return {
|
|
3673
|
-
resourceArn:
|
|
3674
|
-
resourceOwnerAccount:
|
|
3675
|
-
resourceType:
|
|
3673
|
+
resourceArn: smithy_client_1.expectString(output.resourceArn),
|
|
3674
|
+
resourceOwnerAccount: smithy_client_1.expectString(output.resourceOwnerAccount),
|
|
3675
|
+
resourceType: smithy_client_1.expectString(output.resourceType),
|
|
3676
3676
|
};
|
|
3677
3677
|
};
|
|
3678
3678
|
const deserializeAws_restJson1AnalyzersList = (output, context) => {
|
|
@@ -3687,23 +3687,23 @@ const deserializeAws_restJson1AnalyzersList = (output, context) => {
|
|
|
3687
3687
|
};
|
|
3688
3688
|
const deserializeAws_restJson1AnalyzerSummary = (output, context) => {
|
|
3689
3689
|
return {
|
|
3690
|
-
arn:
|
|
3690
|
+
arn: smithy_client_1.expectString(output.arn),
|
|
3691
3691
|
createdAt: output.createdAt !== undefined && output.createdAt !== null
|
|
3692
|
-
?
|
|
3692
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.createdAt))
|
|
3693
3693
|
: undefined,
|
|
3694
|
-
lastResourceAnalyzed:
|
|
3694
|
+
lastResourceAnalyzed: smithy_client_1.expectString(output.lastResourceAnalyzed),
|
|
3695
3695
|
lastResourceAnalyzedAt: output.lastResourceAnalyzedAt !== undefined && output.lastResourceAnalyzedAt !== null
|
|
3696
|
-
?
|
|
3696
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.lastResourceAnalyzedAt))
|
|
3697
3697
|
: undefined,
|
|
3698
|
-
name:
|
|
3699
|
-
status:
|
|
3698
|
+
name: smithy_client_1.expectString(output.name),
|
|
3699
|
+
status: smithy_client_1.expectString(output.status),
|
|
3700
3700
|
statusReason: output.statusReason !== undefined && output.statusReason !== null
|
|
3701
3701
|
? deserializeAws_restJson1StatusReason(output.statusReason, context)
|
|
3702
3702
|
: undefined,
|
|
3703
3703
|
tags: output.tags !== undefined && output.tags !== null
|
|
3704
3704
|
? deserializeAws_restJson1TagsMap(output.tags, context)
|
|
3705
3705
|
: undefined,
|
|
3706
|
-
type:
|
|
3706
|
+
type: smithy_client_1.expectString(output.type),
|
|
3707
3707
|
};
|
|
3708
3708
|
};
|
|
3709
3709
|
const deserializeAws_restJson1ArchiveRulesList = (output, context) => {
|
|
@@ -3719,24 +3719,24 @@ const deserializeAws_restJson1ArchiveRulesList = (output, context) => {
|
|
|
3719
3719
|
const deserializeAws_restJson1ArchiveRuleSummary = (output, context) => {
|
|
3720
3720
|
return {
|
|
3721
3721
|
createdAt: output.createdAt !== undefined && output.createdAt !== null
|
|
3722
|
-
?
|
|
3722
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.createdAt))
|
|
3723
3723
|
: undefined,
|
|
3724
3724
|
filter: output.filter !== undefined && output.filter !== null
|
|
3725
3725
|
? deserializeAws_restJson1FilterCriteriaMap(output.filter, context)
|
|
3726
3726
|
: undefined,
|
|
3727
|
-
ruleName:
|
|
3727
|
+
ruleName: smithy_client_1.expectString(output.ruleName),
|
|
3728
3728
|
updatedAt: output.updatedAt !== undefined && output.updatedAt !== null
|
|
3729
|
-
?
|
|
3729
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.updatedAt))
|
|
3730
3730
|
: undefined,
|
|
3731
3731
|
};
|
|
3732
3732
|
};
|
|
3733
3733
|
const deserializeAws_restJson1CloudTrailProperties = (output, context) => {
|
|
3734
3734
|
return {
|
|
3735
3735
|
endTime: output.endTime !== undefined && output.endTime !== null
|
|
3736
|
-
?
|
|
3736
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.endTime))
|
|
3737
3737
|
: undefined,
|
|
3738
3738
|
startTime: output.startTime !== undefined && output.startTime !== null
|
|
3739
|
-
?
|
|
3739
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.startTime))
|
|
3740
3740
|
: undefined,
|
|
3741
3741
|
trailProperties: output.trailProperties !== undefined && output.trailProperties !== null
|
|
3742
3742
|
? deserializeAws_restJson1TrailPropertiesList(output.trailProperties, context)
|
|
@@ -3750,7 +3750,7 @@ const deserializeAws_restJson1ConditionKeyMap = (output, context) => {
|
|
|
3750
3750
|
}
|
|
3751
3751
|
return {
|
|
3752
3752
|
...acc,
|
|
3753
|
-
[key]:
|
|
3753
|
+
[key]: smithy_client_1.expectString(value),
|
|
3754
3754
|
};
|
|
3755
3755
|
}, {});
|
|
3756
3756
|
};
|
|
@@ -3789,7 +3789,7 @@ const deserializeAws_restJson1ConfigurationsMap = (output, context) => {
|
|
|
3789
3789
|
}
|
|
3790
3790
|
return {
|
|
3791
3791
|
...acc,
|
|
3792
|
-
[key]: deserializeAws_restJson1Configuration(
|
|
3792
|
+
[key]: deserializeAws_restJson1Configuration(smithy_client_1.expectUnion(value), context),
|
|
3793
3793
|
};
|
|
3794
3794
|
}, {});
|
|
3795
3795
|
};
|
|
@@ -3799,7 +3799,7 @@ const deserializeAws_restJson1Criterion = (output, context) => {
|
|
|
3799
3799
|
? deserializeAws_restJson1ValueList(output.contains, context)
|
|
3800
3800
|
: undefined,
|
|
3801
3801
|
eq: output.eq !== undefined && output.eq !== null ? deserializeAws_restJson1ValueList(output.eq, context) : undefined,
|
|
3802
|
-
exists:
|
|
3802
|
+
exists: smithy_client_1.expectBoolean(output.exists),
|
|
3803
3803
|
neq: output.neq !== undefined && output.neq !== null
|
|
3804
3804
|
? deserializeAws_restJson1ValueList(output.neq, context)
|
|
3805
3805
|
: undefined,
|
|
@@ -3822,29 +3822,29 @@ const deserializeAws_restJson1Finding = (output, context) => {
|
|
|
3822
3822
|
? deserializeAws_restJson1ActionList(output.action, context)
|
|
3823
3823
|
: undefined,
|
|
3824
3824
|
analyzedAt: output.analyzedAt !== undefined && output.analyzedAt !== null
|
|
3825
|
-
?
|
|
3825
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.analyzedAt))
|
|
3826
3826
|
: undefined,
|
|
3827
3827
|
condition: output.condition !== undefined && output.condition !== null
|
|
3828
3828
|
? deserializeAws_restJson1ConditionKeyMap(output.condition, context)
|
|
3829
3829
|
: undefined,
|
|
3830
3830
|
createdAt: output.createdAt !== undefined && output.createdAt !== null
|
|
3831
|
-
?
|
|
3831
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.createdAt))
|
|
3832
3832
|
: undefined,
|
|
3833
|
-
error:
|
|
3834
|
-
id:
|
|
3835
|
-
isPublic:
|
|
3833
|
+
error: smithy_client_1.expectString(output.error),
|
|
3834
|
+
id: smithy_client_1.expectString(output.id),
|
|
3835
|
+
isPublic: smithy_client_1.expectBoolean(output.isPublic),
|
|
3836
3836
|
principal: output.principal !== undefined && output.principal !== null
|
|
3837
3837
|
? deserializeAws_restJson1PrincipalMap(output.principal, context)
|
|
3838
3838
|
: undefined,
|
|
3839
|
-
resource:
|
|
3840
|
-
resourceOwnerAccount:
|
|
3841
|
-
resourceType:
|
|
3839
|
+
resource: smithy_client_1.expectString(output.resource),
|
|
3840
|
+
resourceOwnerAccount: smithy_client_1.expectString(output.resourceOwnerAccount),
|
|
3841
|
+
resourceType: smithy_client_1.expectString(output.resourceType),
|
|
3842
3842
|
sources: output.sources !== undefined && output.sources !== null
|
|
3843
3843
|
? deserializeAws_restJson1FindingSourceList(output.sources, context)
|
|
3844
3844
|
: undefined,
|
|
3845
|
-
status:
|
|
3845
|
+
status: smithy_client_1.expectString(output.status),
|
|
3846
3846
|
updatedAt: output.updatedAt !== undefined && output.updatedAt !== null
|
|
3847
|
-
?
|
|
3847
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.updatedAt))
|
|
3848
3848
|
: undefined,
|
|
3849
3849
|
};
|
|
3850
3850
|
};
|
|
@@ -3863,12 +3863,12 @@ const deserializeAws_restJson1FindingSource = (output, context) => {
|
|
|
3863
3863
|
detail: output.detail !== undefined && output.detail !== null
|
|
3864
3864
|
? deserializeAws_restJson1FindingSourceDetail(output.detail, context)
|
|
3865
3865
|
: undefined,
|
|
3866
|
-
type:
|
|
3866
|
+
type: smithy_client_1.expectString(output.type),
|
|
3867
3867
|
};
|
|
3868
3868
|
};
|
|
3869
3869
|
const deserializeAws_restJson1FindingSourceDetail = (output, context) => {
|
|
3870
3870
|
return {
|
|
3871
|
-
accessPointArn:
|
|
3871
|
+
accessPointArn: smithy_client_1.expectString(output.accessPointArn),
|
|
3872
3872
|
};
|
|
3873
3873
|
};
|
|
3874
3874
|
const deserializeAws_restJson1FindingSourceList = (output, context) => {
|
|
@@ -3887,35 +3887,35 @@ const deserializeAws_restJson1FindingSummary = (output, context) => {
|
|
|
3887
3887
|
? deserializeAws_restJson1ActionList(output.action, context)
|
|
3888
3888
|
: undefined,
|
|
3889
3889
|
analyzedAt: output.analyzedAt !== undefined && output.analyzedAt !== null
|
|
3890
|
-
?
|
|
3890
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.analyzedAt))
|
|
3891
3891
|
: undefined,
|
|
3892
3892
|
condition: output.condition !== undefined && output.condition !== null
|
|
3893
3893
|
? deserializeAws_restJson1ConditionKeyMap(output.condition, context)
|
|
3894
3894
|
: undefined,
|
|
3895
3895
|
createdAt: output.createdAt !== undefined && output.createdAt !== null
|
|
3896
|
-
?
|
|
3896
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.createdAt))
|
|
3897
3897
|
: undefined,
|
|
3898
|
-
error:
|
|
3899
|
-
id:
|
|
3900
|
-
isPublic:
|
|
3898
|
+
error: smithy_client_1.expectString(output.error),
|
|
3899
|
+
id: smithy_client_1.expectString(output.id),
|
|
3900
|
+
isPublic: smithy_client_1.expectBoolean(output.isPublic),
|
|
3901
3901
|
principal: output.principal !== undefined && output.principal !== null
|
|
3902
3902
|
? deserializeAws_restJson1PrincipalMap(output.principal, context)
|
|
3903
3903
|
: undefined,
|
|
3904
|
-
resource:
|
|
3905
|
-
resourceOwnerAccount:
|
|
3906
|
-
resourceType:
|
|
3904
|
+
resource: smithy_client_1.expectString(output.resource),
|
|
3905
|
+
resourceOwnerAccount: smithy_client_1.expectString(output.resourceOwnerAccount),
|
|
3906
|
+
resourceType: smithy_client_1.expectString(output.resourceType),
|
|
3907
3907
|
sources: output.sources !== undefined && output.sources !== null
|
|
3908
3908
|
? deserializeAws_restJson1FindingSourceList(output.sources, context)
|
|
3909
3909
|
: undefined,
|
|
3910
|
-
status:
|
|
3910
|
+
status: smithy_client_1.expectString(output.status),
|
|
3911
3911
|
updatedAt: output.updatedAt !== undefined && output.updatedAt !== null
|
|
3912
|
-
?
|
|
3912
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.updatedAt))
|
|
3913
3913
|
: undefined,
|
|
3914
3914
|
};
|
|
3915
3915
|
};
|
|
3916
3916
|
const deserializeAws_restJson1GeneratedPolicy = (output, context) => {
|
|
3917
3917
|
return {
|
|
3918
|
-
policy:
|
|
3918
|
+
policy: smithy_client_1.expectString(output.policy),
|
|
3919
3919
|
};
|
|
3920
3920
|
};
|
|
3921
3921
|
const deserializeAws_restJson1GeneratedPolicyList = (output, context) => {
|
|
@@ -3933,8 +3933,8 @@ const deserializeAws_restJson1GeneratedPolicyProperties = (output, context) => {
|
|
|
3933
3933
|
cloudTrailProperties: output.cloudTrailProperties !== undefined && output.cloudTrailProperties !== null
|
|
3934
3934
|
? deserializeAws_restJson1CloudTrailProperties(output.cloudTrailProperties, context)
|
|
3935
3935
|
: undefined,
|
|
3936
|
-
isComplete:
|
|
3937
|
-
principalArn:
|
|
3936
|
+
isComplete: smithy_client_1.expectBoolean(output.isComplete),
|
|
3937
|
+
principalArn: smithy_client_1.expectString(output.principalArn),
|
|
3938
3938
|
};
|
|
3939
3939
|
};
|
|
3940
3940
|
const deserializeAws_restJson1GeneratedPolicyResult = (output, context) => {
|
|
@@ -3949,7 +3949,7 @@ const deserializeAws_restJson1GeneratedPolicyResult = (output, context) => {
|
|
|
3949
3949
|
};
|
|
3950
3950
|
const deserializeAws_restJson1IamRoleConfiguration = (output, context) => {
|
|
3951
3951
|
return {
|
|
3952
|
-
trustPolicy:
|
|
3952
|
+
trustPolicy: smithy_client_1.expectString(output.trustPolicy),
|
|
3953
3953
|
};
|
|
3954
3954
|
};
|
|
3955
3955
|
const deserializeAws_restJson1InternetConfiguration = (output, context) => {
|
|
@@ -3958,22 +3958,22 @@ const deserializeAws_restJson1InternetConfiguration = (output, context) => {
|
|
|
3958
3958
|
const deserializeAws_restJson1JobDetails = (output, context) => {
|
|
3959
3959
|
return {
|
|
3960
3960
|
completedOn: output.completedOn !== undefined && output.completedOn !== null
|
|
3961
|
-
?
|
|
3961
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.completedOn))
|
|
3962
3962
|
: undefined,
|
|
3963
3963
|
jobError: output.jobError !== undefined && output.jobError !== null
|
|
3964
3964
|
? deserializeAws_restJson1JobError(output.jobError, context)
|
|
3965
3965
|
: undefined,
|
|
3966
|
-
jobId:
|
|
3966
|
+
jobId: smithy_client_1.expectString(output.jobId),
|
|
3967
3967
|
startedOn: output.startedOn !== undefined && output.startedOn !== null
|
|
3968
|
-
?
|
|
3968
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.startedOn))
|
|
3969
3969
|
: undefined,
|
|
3970
|
-
status:
|
|
3970
|
+
status: smithy_client_1.expectString(output.status),
|
|
3971
3971
|
};
|
|
3972
3972
|
};
|
|
3973
3973
|
const deserializeAws_restJson1JobError = (output, context) => {
|
|
3974
3974
|
return {
|
|
3975
|
-
code:
|
|
3976
|
-
message:
|
|
3975
|
+
code: smithy_client_1.expectString(output.code),
|
|
3976
|
+
message: smithy_client_1.expectString(output.message),
|
|
3977
3977
|
};
|
|
3978
3978
|
};
|
|
3979
3979
|
const deserializeAws_restJson1KmsConstraintsMap = (output, context) => {
|
|
@@ -3983,7 +3983,7 @@ const deserializeAws_restJson1KmsConstraintsMap = (output, context) => {
|
|
|
3983
3983
|
}
|
|
3984
3984
|
return {
|
|
3985
3985
|
...acc,
|
|
3986
|
-
[key]:
|
|
3986
|
+
[key]: smithy_client_1.expectString(value),
|
|
3987
3987
|
};
|
|
3988
3988
|
}, {});
|
|
3989
3989
|
};
|
|
@@ -3992,12 +3992,12 @@ const deserializeAws_restJson1KmsGrantConfiguration = (output, context) => {
|
|
|
3992
3992
|
constraints: output.constraints !== undefined && output.constraints !== null
|
|
3993
3993
|
? deserializeAws_restJson1KmsGrantConstraints(output.constraints, context)
|
|
3994
3994
|
: undefined,
|
|
3995
|
-
granteePrincipal:
|
|
3996
|
-
issuingAccount:
|
|
3995
|
+
granteePrincipal: smithy_client_1.expectString(output.granteePrincipal),
|
|
3996
|
+
issuingAccount: smithy_client_1.expectString(output.issuingAccount),
|
|
3997
3997
|
operations: output.operations !== undefined && output.operations !== null
|
|
3998
3998
|
? deserializeAws_restJson1KmsGrantOperationsList(output.operations, context)
|
|
3999
3999
|
: undefined,
|
|
4000
|
-
retiringPrincipal:
|
|
4000
|
+
retiringPrincipal: smithy_client_1.expectString(output.retiringPrincipal),
|
|
4001
4001
|
};
|
|
4002
4002
|
};
|
|
4003
4003
|
const deserializeAws_restJson1KmsGrantConfigurationsList = (output, context) => {
|
|
@@ -4027,7 +4027,7 @@ const deserializeAws_restJson1KmsGrantOperationsList = (output, context) => {
|
|
|
4027
4027
|
if (entry === null) {
|
|
4028
4028
|
return null;
|
|
4029
4029
|
}
|
|
4030
|
-
return
|
|
4030
|
+
return smithy_client_1.expectString(entry);
|
|
4031
4031
|
});
|
|
4032
4032
|
};
|
|
4033
4033
|
const deserializeAws_restJson1KmsKeyConfiguration = (output, context) => {
|
|
@@ -4047,7 +4047,7 @@ const deserializeAws_restJson1KmsKeyPoliciesMap = (output, context) => {
|
|
|
4047
4047
|
}
|
|
4048
4048
|
return {
|
|
4049
4049
|
...acc,
|
|
4050
|
-
[key]:
|
|
4050
|
+
[key]: smithy_client_1.expectString(value),
|
|
4051
4051
|
};
|
|
4052
4052
|
}, {});
|
|
4053
4053
|
};
|
|
@@ -4085,19 +4085,19 @@ const deserializeAws_restJson1NetworkOriginConfiguration = (output, context) =>
|
|
|
4085
4085
|
return { $unknown: Object.entries(output)[0] };
|
|
4086
4086
|
};
|
|
4087
4087
|
const deserializeAws_restJson1PathElement = (output, context) => {
|
|
4088
|
-
if (
|
|
4089
|
-
return { index:
|
|
4088
|
+
if (smithy_client_1.expectInt32(output.index) !== undefined) {
|
|
4089
|
+
return { index: smithy_client_1.expectInt32(output.index) };
|
|
4090
4090
|
}
|
|
4091
|
-
if (
|
|
4092
|
-
return { key:
|
|
4091
|
+
if (smithy_client_1.expectString(output.key) !== undefined) {
|
|
4092
|
+
return { key: smithy_client_1.expectString(output.key) };
|
|
4093
4093
|
}
|
|
4094
4094
|
if (output.substring !== undefined && output.substring !== null) {
|
|
4095
4095
|
return {
|
|
4096
4096
|
substring: deserializeAws_restJson1Substring(output.substring, context),
|
|
4097
4097
|
};
|
|
4098
4098
|
}
|
|
4099
|
-
if (
|
|
4100
|
-
return { value:
|
|
4099
|
+
if (smithy_client_1.expectString(output.value) !== undefined) {
|
|
4100
|
+
return { value: smithy_client_1.expectString(output.value) };
|
|
4101
4101
|
}
|
|
4102
4102
|
return { $unknown: Object.entries(output)[0] };
|
|
4103
4103
|
};
|
|
@@ -4108,20 +4108,20 @@ const deserializeAws_restJson1PathElementList = (output, context) => {
|
|
|
4108
4108
|
if (entry === null) {
|
|
4109
4109
|
return null;
|
|
4110
4110
|
}
|
|
4111
|
-
return deserializeAws_restJson1PathElement(
|
|
4111
|
+
return deserializeAws_restJson1PathElement(smithy_client_1.expectUnion(entry), context);
|
|
4112
4112
|
});
|
|
4113
4113
|
};
|
|
4114
4114
|
const deserializeAws_restJson1PolicyGeneration = (output, context) => {
|
|
4115
4115
|
return {
|
|
4116
4116
|
completedOn: output.completedOn !== undefined && output.completedOn !== null
|
|
4117
|
-
?
|
|
4117
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.completedOn))
|
|
4118
4118
|
: undefined,
|
|
4119
|
-
jobId:
|
|
4120
|
-
principalArn:
|
|
4119
|
+
jobId: smithy_client_1.expectString(output.jobId),
|
|
4120
|
+
principalArn: smithy_client_1.expectString(output.principalArn),
|
|
4121
4121
|
startedOn: output.startedOn !== undefined && output.startedOn !== null
|
|
4122
|
-
?
|
|
4122
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.startedOn))
|
|
4123
4123
|
: undefined,
|
|
4124
|
-
status:
|
|
4124
|
+
status: smithy_client_1.expectString(output.status),
|
|
4125
4125
|
};
|
|
4126
4126
|
};
|
|
4127
4127
|
const deserializeAws_restJson1PolicyGenerationList = (output, context) => {
|
|
@@ -4136,9 +4136,9 @@ const deserializeAws_restJson1PolicyGenerationList = (output, context) => {
|
|
|
4136
4136
|
};
|
|
4137
4137
|
const deserializeAws_restJson1Position = (output, context) => {
|
|
4138
4138
|
return {
|
|
4139
|
-
column:
|
|
4140
|
-
line:
|
|
4141
|
-
offset:
|
|
4139
|
+
column: smithy_client_1.expectInt32(output.column),
|
|
4140
|
+
line: smithy_client_1.expectInt32(output.line),
|
|
4141
|
+
offset: smithy_client_1.expectInt32(output.offset),
|
|
4142
4142
|
};
|
|
4143
4143
|
};
|
|
4144
4144
|
const deserializeAws_restJson1PrincipalMap = (output, context) => {
|
|
@@ -4148,7 +4148,7 @@ const deserializeAws_restJson1PrincipalMap = (output, context) => {
|
|
|
4148
4148
|
}
|
|
4149
4149
|
return {
|
|
4150
4150
|
...acc,
|
|
4151
|
-
[key]:
|
|
4151
|
+
[key]: smithy_client_1.expectString(value),
|
|
4152
4152
|
};
|
|
4153
4153
|
}, {});
|
|
4154
4154
|
};
|
|
@@ -4159,14 +4159,14 @@ const deserializeAws_restJson1RegionList = (output, context) => {
|
|
|
4159
4159
|
if (entry === null) {
|
|
4160
4160
|
return null;
|
|
4161
4161
|
}
|
|
4162
|
-
return
|
|
4162
|
+
return smithy_client_1.expectString(entry);
|
|
4163
4163
|
});
|
|
4164
4164
|
};
|
|
4165
4165
|
const deserializeAws_restJson1S3AccessPointConfiguration = (output, context) => {
|
|
4166
4166
|
return {
|
|
4167
|
-
accessPointPolicy:
|
|
4167
|
+
accessPointPolicy: smithy_client_1.expectString(output.accessPointPolicy),
|
|
4168
4168
|
networkOrigin: output.networkOrigin !== undefined && output.networkOrigin !== null
|
|
4169
|
-
? deserializeAws_restJson1NetworkOriginConfiguration(
|
|
4169
|
+
? deserializeAws_restJson1NetworkOriginConfiguration(smithy_client_1.expectUnion(output.networkOrigin), context)
|
|
4170
4170
|
: undefined,
|
|
4171
4171
|
publicAccessBlock: output.publicAccessBlock !== undefined && output.publicAccessBlock !== null
|
|
4172
4172
|
? deserializeAws_restJson1S3PublicAccessBlockConfiguration(output.publicAccessBlock, context)
|
|
@@ -4187,9 +4187,9 @@ const deserializeAws_restJson1S3AccessPointConfigurationsMap = (output, context)
|
|
|
4187
4187
|
const deserializeAws_restJson1S3BucketAclGrantConfiguration = (output, context) => {
|
|
4188
4188
|
return {
|
|
4189
4189
|
grantee: output.grantee !== undefined && output.grantee !== null
|
|
4190
|
-
? deserializeAws_restJson1AclGrantee(
|
|
4190
|
+
? deserializeAws_restJson1AclGrantee(smithy_client_1.expectUnion(output.grantee), context)
|
|
4191
4191
|
: undefined,
|
|
4192
|
-
permission:
|
|
4192
|
+
permission: smithy_client_1.expectString(output.permission),
|
|
4193
4193
|
};
|
|
4194
4194
|
};
|
|
4195
4195
|
const deserializeAws_restJson1S3BucketAclGrantConfigurationsList = (output, context) => {
|
|
@@ -4210,7 +4210,7 @@ const deserializeAws_restJson1S3BucketConfiguration = (output, context) => {
|
|
|
4210
4210
|
bucketAclGrants: output.bucketAclGrants !== undefined && output.bucketAclGrants !== null
|
|
4211
4211
|
? deserializeAws_restJson1S3BucketAclGrantConfigurationsList(output.bucketAclGrants, context)
|
|
4212
4212
|
: undefined,
|
|
4213
|
-
bucketPolicy:
|
|
4213
|
+
bucketPolicy: smithy_client_1.expectString(output.bucketPolicy),
|
|
4214
4214
|
bucketPublicAccessBlock: output.bucketPublicAccessBlock !== undefined && output.bucketPublicAccessBlock !== null
|
|
4215
4215
|
? deserializeAws_restJson1S3PublicAccessBlockConfiguration(output.bucketPublicAccessBlock, context)
|
|
4216
4216
|
: undefined,
|
|
@@ -4218,14 +4218,14 @@ const deserializeAws_restJson1S3BucketConfiguration = (output, context) => {
|
|
|
4218
4218
|
};
|
|
4219
4219
|
const deserializeAws_restJson1S3PublicAccessBlockConfiguration = (output, context) => {
|
|
4220
4220
|
return {
|
|
4221
|
-
ignorePublicAcls:
|
|
4222
|
-
restrictPublicBuckets:
|
|
4221
|
+
ignorePublicAcls: smithy_client_1.expectBoolean(output.ignorePublicAcls),
|
|
4222
|
+
restrictPublicBuckets: smithy_client_1.expectBoolean(output.restrictPublicBuckets),
|
|
4223
4223
|
};
|
|
4224
4224
|
};
|
|
4225
4225
|
const deserializeAws_restJson1SecretsManagerSecretConfiguration = (output, context) => {
|
|
4226
4226
|
return {
|
|
4227
|
-
kmsKeyId:
|
|
4228
|
-
secretPolicy:
|
|
4227
|
+
kmsKeyId: smithy_client_1.expectString(output.kmsKeyId),
|
|
4228
|
+
secretPolicy: smithy_client_1.expectString(output.secretPolicy),
|
|
4229
4229
|
};
|
|
4230
4230
|
};
|
|
4231
4231
|
const deserializeAws_restJson1SharedViaList = (output, context) => {
|
|
@@ -4235,7 +4235,7 @@ const deserializeAws_restJson1SharedViaList = (output, context) => {
|
|
|
4235
4235
|
if (entry === null) {
|
|
4236
4236
|
return null;
|
|
4237
4237
|
}
|
|
4238
|
-
return
|
|
4238
|
+
return smithy_client_1.expectString(entry);
|
|
4239
4239
|
});
|
|
4240
4240
|
};
|
|
4241
4241
|
const deserializeAws_restJson1Span = (output, context) => {
|
|
@@ -4250,18 +4250,18 @@ const deserializeAws_restJson1Span = (output, context) => {
|
|
|
4250
4250
|
};
|
|
4251
4251
|
const deserializeAws_restJson1SqsQueueConfiguration = (output, context) => {
|
|
4252
4252
|
return {
|
|
4253
|
-
queuePolicy:
|
|
4253
|
+
queuePolicy: smithy_client_1.expectString(output.queuePolicy),
|
|
4254
4254
|
};
|
|
4255
4255
|
};
|
|
4256
4256
|
const deserializeAws_restJson1StatusReason = (output, context) => {
|
|
4257
4257
|
return {
|
|
4258
|
-
code:
|
|
4258
|
+
code: smithy_client_1.expectString(output.code),
|
|
4259
4259
|
};
|
|
4260
4260
|
};
|
|
4261
4261
|
const deserializeAws_restJson1Substring = (output, context) => {
|
|
4262
4262
|
return {
|
|
4263
|
-
length:
|
|
4264
|
-
start:
|
|
4263
|
+
length: smithy_client_1.expectInt32(output.length),
|
|
4264
|
+
start: smithy_client_1.expectInt32(output.start),
|
|
4265
4265
|
};
|
|
4266
4266
|
};
|
|
4267
4267
|
const deserializeAws_restJson1TagsMap = (output, context) => {
|
|
@@ -4271,14 +4271,14 @@ const deserializeAws_restJson1TagsMap = (output, context) => {
|
|
|
4271
4271
|
}
|
|
4272
4272
|
return {
|
|
4273
4273
|
...acc,
|
|
4274
|
-
[key]:
|
|
4274
|
+
[key]: smithy_client_1.expectString(value),
|
|
4275
4275
|
};
|
|
4276
4276
|
}, {});
|
|
4277
4277
|
};
|
|
4278
4278
|
const deserializeAws_restJson1TrailProperties = (output, context) => {
|
|
4279
4279
|
return {
|
|
4280
|
-
allRegions:
|
|
4281
|
-
cloudTrailArn:
|
|
4280
|
+
allRegions: smithy_client_1.expectBoolean(output.allRegions),
|
|
4281
|
+
cloudTrailArn: smithy_client_1.expectString(output.cloudTrailArn),
|
|
4282
4282
|
regions: output.regions !== undefined && output.regions !== null
|
|
4283
4283
|
? deserializeAws_restJson1RegionList(output.regions, context)
|
|
4284
4284
|
: undefined,
|
|
@@ -4296,10 +4296,10 @@ const deserializeAws_restJson1TrailPropertiesList = (output, context) => {
|
|
|
4296
4296
|
};
|
|
4297
4297
|
const deserializeAws_restJson1ValidatePolicyFinding = (output, context) => {
|
|
4298
4298
|
return {
|
|
4299
|
-
findingDetails:
|
|
4300
|
-
findingType:
|
|
4301
|
-
issueCode:
|
|
4302
|
-
learnMoreLink:
|
|
4299
|
+
findingDetails: smithy_client_1.expectString(output.findingDetails),
|
|
4300
|
+
findingType: smithy_client_1.expectString(output.findingType),
|
|
4301
|
+
issueCode: smithy_client_1.expectString(output.issueCode),
|
|
4302
|
+
learnMoreLink: smithy_client_1.expectString(output.learnMoreLink),
|
|
4303
4303
|
locations: output.locations !== undefined && output.locations !== null
|
|
4304
4304
|
? deserializeAws_restJson1LocationList(output.locations, context)
|
|
4305
4305
|
: undefined,
|
|
@@ -4317,8 +4317,8 @@ const deserializeAws_restJson1ValidatePolicyFindingList = (output, context) => {
|
|
|
4317
4317
|
};
|
|
4318
4318
|
const deserializeAws_restJson1ValidationExceptionField = (output, context) => {
|
|
4319
4319
|
return {
|
|
4320
|
-
message:
|
|
4321
|
-
name:
|
|
4320
|
+
message: smithy_client_1.expectString(output.message),
|
|
4321
|
+
name: smithy_client_1.expectString(output.name),
|
|
4322
4322
|
};
|
|
4323
4323
|
};
|
|
4324
4324
|
const deserializeAws_restJson1ValidationExceptionFieldList = (output, context) => {
|
|
@@ -4338,12 +4338,12 @@ const deserializeAws_restJson1ValueList = (output, context) => {
|
|
|
4338
4338
|
if (entry === null) {
|
|
4339
4339
|
return null;
|
|
4340
4340
|
}
|
|
4341
|
-
return
|
|
4341
|
+
return smithy_client_1.expectString(entry);
|
|
4342
4342
|
});
|
|
4343
4343
|
};
|
|
4344
4344
|
const deserializeAws_restJson1VpcConfiguration = (output, context) => {
|
|
4345
4345
|
return {
|
|
4346
|
-
vpcId:
|
|
4346
|
+
vpcId: smithy_client_1.expectString(output.vpcId),
|
|
4347
4347
|
};
|
|
4348
4348
|
};
|
|
4349
4349
|
const deserializeMetadata = (output) => {
|