@aws-sdk/client-accessanalyzer 3.54.1 → 3.55.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/commands/ApplyArchiveRuleCommand.js +3 -3
- package/dist-cjs/commands/CancelPolicyGenerationCommand.js +3 -3
- package/dist-cjs/commands/CreateAccessPreviewCommand.js +3 -3
- package/dist-cjs/commands/CreateAnalyzerCommand.js +3 -3
- package/dist-cjs/commands/CreateArchiveRuleCommand.js +3 -3
- package/dist-cjs/commands/DeleteAnalyzerCommand.js +3 -3
- package/dist-cjs/commands/DeleteArchiveRuleCommand.js +3 -3
- package/dist-cjs/commands/GetAccessPreviewCommand.js +3 -3
- package/dist-cjs/commands/GetAnalyzedResourceCommand.js +3 -3
- package/dist-cjs/commands/GetAnalyzerCommand.js +3 -3
- package/dist-cjs/commands/GetArchiveRuleCommand.js +3 -3
- package/dist-cjs/commands/GetFindingCommand.js +3 -3
- package/dist-cjs/commands/GetGeneratedPolicyCommand.js +3 -3
- package/dist-cjs/commands/ListAccessPreviewFindingsCommand.js +3 -3
- package/dist-cjs/commands/ListAccessPreviewsCommand.js +3 -3
- package/dist-cjs/commands/ListAnalyzedResourcesCommand.js +3 -3
- package/dist-cjs/commands/ListAnalyzersCommand.js +3 -3
- package/dist-cjs/commands/ListArchiveRulesCommand.js +3 -3
- package/dist-cjs/commands/ListFindingsCommand.js +3 -3
- package/dist-cjs/commands/ListPolicyGenerationsCommand.js +3 -3
- package/dist-cjs/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-cjs/commands/StartPolicyGenerationCommand.js +3 -3
- package/dist-cjs/commands/StartResourceScanCommand.js +3 -3
- package/dist-cjs/commands/TagResourceCommand.js +3 -3
- package/dist-cjs/commands/UntagResourceCommand.js +3 -3
- package/dist-cjs/commands/UpdateArchiveRuleCommand.js +3 -3
- package/dist-cjs/commands/UpdateFindingsCommand.js +3 -3
- package/dist-cjs/commands/ValidatePolicyCommand.js +3 -3
- package/dist-cjs/endpoints.js +1 -1
- package/dist-cjs/protocols/Aws_restJson1.js +237 -237
- package/dist-cjs/runtimeConfig.browser.js +4 -4
- package/dist-cjs/runtimeConfig.js +9 -9
- package/dist-cjs/runtimeConfig.native.js +1 -1
- package/dist-es/AccessAnalyzer.js +28 -28
- package/dist-es/pagination/ListAccessPreviewFindingsPaginator.js +4 -4
- package/dist-es/pagination/ListAccessPreviewsPaginator.js +4 -4
- package/dist-es/pagination/ListAnalyzedResourcesPaginator.js +4 -4
- package/dist-es/pagination/ListAnalyzersPaginator.js +4 -4
- package/dist-es/pagination/ListArchiveRulesPaginator.js +4 -4
- package/dist-es/pagination/ListFindingsPaginator.js +4 -4
- package/dist-es/pagination/ListPolicyGenerationsPaginator.js +4 -4
- package/dist-es/pagination/ValidatePolicyPaginator.js +4 -4
- package/dist-es/protocols/Aws_restJson1.js +28 -28
- package/dist-types/runtimeConfig.native.d.ts +2 -2
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -2
- package/package.json +34 -34
|
@@ -17,7 +17,7 @@ const serializeAws_restJson1ApplyArchiveRuleCommand = async (input, context) =>
|
|
|
17
17
|
let body;
|
|
18
18
|
body = JSON.stringify({
|
|
19
19
|
...(input.analyzerArn !== undefined && input.analyzerArn !== null && { analyzerArn: input.analyzerArn }),
|
|
20
|
-
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
20
|
+
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
21
21
|
...(input.ruleName !== undefined && input.ruleName !== null && { ruleName: input.ruleName }),
|
|
22
22
|
});
|
|
23
23
|
return new protocol_http_1.HttpRequest({
|
|
@@ -40,7 +40,7 @@ const serializeAws_restJson1CancelPolicyGenerationCommand = async (input, contex
|
|
|
40
40
|
if (labelValue.length <= 0) {
|
|
41
41
|
throw new Error("Empty value provided for input HTTP label: jobId.");
|
|
42
42
|
}
|
|
43
|
-
resolvedPath = resolvedPath.replace("{jobId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
43
|
+
resolvedPath = resolvedPath.replace("{jobId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
44
44
|
}
|
|
45
45
|
else {
|
|
46
46
|
throw new Error("No value provided for input HTTP label: jobId.");
|
|
@@ -67,7 +67,7 @@ const serializeAws_restJson1CreateAccessPreviewCommand = async (input, context)
|
|
|
67
67
|
let body;
|
|
68
68
|
body = JSON.stringify({
|
|
69
69
|
...(input.analyzerArn !== undefined && input.analyzerArn !== null && { analyzerArn: input.analyzerArn }),
|
|
70
|
-
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
70
|
+
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
71
71
|
...(input.configurations !== undefined &&
|
|
72
72
|
input.configurations !== null && {
|
|
73
73
|
configurations: serializeAws_restJson1ConfigurationsMap(input.configurations, context),
|
|
@@ -98,7 +98,7 @@ const serializeAws_restJson1CreateAnalyzerCommand = async (input, context) => {
|
|
|
98
98
|
input.archiveRules !== null && {
|
|
99
99
|
archiveRules: serializeAws_restJson1InlineArchiveRulesList(input.archiveRules, context),
|
|
100
100
|
}),
|
|
101
|
-
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
101
|
+
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
102
102
|
...(input.tags !== undefined &&
|
|
103
103
|
input.tags !== null && { tags: serializeAws_restJson1TagsMap(input.tags, context) }),
|
|
104
104
|
...(input.type !== undefined && input.type !== null && { type: input.type }),
|
|
@@ -126,14 +126,14 @@ const serializeAws_restJson1CreateArchiveRuleCommand = async (input, context) =>
|
|
|
126
126
|
if (labelValue.length <= 0) {
|
|
127
127
|
throw new Error("Empty value provided for input HTTP label: analyzerName.");
|
|
128
128
|
}
|
|
129
|
-
resolvedPath = resolvedPath.replace("{analyzerName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
129
|
+
resolvedPath = resolvedPath.replace("{analyzerName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
130
130
|
}
|
|
131
131
|
else {
|
|
132
132
|
throw new Error("No value provided for input HTTP label: analyzerName.");
|
|
133
133
|
}
|
|
134
134
|
let body;
|
|
135
135
|
body = JSON.stringify({
|
|
136
|
-
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
136
|
+
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
137
137
|
...(input.filter !== undefined &&
|
|
138
138
|
input.filter !== null && { filter: serializeAws_restJson1FilterCriteriaMap(input.filter, context) }),
|
|
139
139
|
...(input.ruleName !== undefined && input.ruleName !== null && { ruleName: input.ruleName }),
|
|
@@ -158,7 +158,7 @@ const serializeAws_restJson1DeleteAnalyzerCommand = async (input, context) => {
|
|
|
158
158
|
if (labelValue.length <= 0) {
|
|
159
159
|
throw new Error("Empty value provided for input HTTP label: analyzerName.");
|
|
160
160
|
}
|
|
161
|
-
resolvedPath = resolvedPath.replace("{analyzerName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
161
|
+
resolvedPath = resolvedPath.replace("{analyzerName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
162
162
|
}
|
|
163
163
|
else {
|
|
164
164
|
throw new Error("No value provided for input HTTP label: analyzerName.");
|
|
@@ -189,7 +189,7 @@ const serializeAws_restJson1DeleteArchiveRuleCommand = async (input, context) =>
|
|
|
189
189
|
if (labelValue.length <= 0) {
|
|
190
190
|
throw new Error("Empty value provided for input HTTP label: analyzerName.");
|
|
191
191
|
}
|
|
192
|
-
resolvedPath = resolvedPath.replace("{analyzerName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
192
|
+
resolvedPath = resolvedPath.replace("{analyzerName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
193
193
|
}
|
|
194
194
|
else {
|
|
195
195
|
throw new Error("No value provided for input HTTP label: analyzerName.");
|
|
@@ -199,7 +199,7 @@ const serializeAws_restJson1DeleteArchiveRuleCommand = async (input, context) =>
|
|
|
199
199
|
if (labelValue.length <= 0) {
|
|
200
200
|
throw new Error("Empty value provided for input HTTP label: ruleName.");
|
|
201
201
|
}
|
|
202
|
-
resolvedPath = resolvedPath.replace("{ruleName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
202
|
+
resolvedPath = resolvedPath.replace("{ruleName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
203
203
|
}
|
|
204
204
|
else {
|
|
205
205
|
throw new Error("No value provided for input HTTP label: ruleName.");
|
|
@@ -229,7 +229,7 @@ const serializeAws_restJson1GetAccessPreviewCommand = async (input, context) =>
|
|
|
229
229
|
if (labelValue.length <= 0) {
|
|
230
230
|
throw new Error("Empty value provided for input HTTP label: accessPreviewId.");
|
|
231
231
|
}
|
|
232
|
-
resolvedPath = resolvedPath.replace("{accessPreviewId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
232
|
+
resolvedPath = resolvedPath.replace("{accessPreviewId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
233
233
|
}
|
|
234
234
|
else {
|
|
235
235
|
throw new Error("No value provided for input HTTP label: accessPreviewId.");
|
|
@@ -280,7 +280,7 @@ const serializeAws_restJson1GetAnalyzerCommand = async (input, context) => {
|
|
|
280
280
|
if (labelValue.length <= 0) {
|
|
281
281
|
throw new Error("Empty value provided for input HTTP label: analyzerName.");
|
|
282
282
|
}
|
|
283
|
-
resolvedPath = resolvedPath.replace("{analyzerName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
283
|
+
resolvedPath = resolvedPath.replace("{analyzerName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
284
284
|
}
|
|
285
285
|
else {
|
|
286
286
|
throw new Error("No value provided for input HTTP label: analyzerName.");
|
|
@@ -307,7 +307,7 @@ const serializeAws_restJson1GetArchiveRuleCommand = async (input, context) => {
|
|
|
307
307
|
if (labelValue.length <= 0) {
|
|
308
308
|
throw new Error("Empty value provided for input HTTP label: analyzerName.");
|
|
309
309
|
}
|
|
310
|
-
resolvedPath = resolvedPath.replace("{analyzerName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
310
|
+
resolvedPath = resolvedPath.replace("{analyzerName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
311
311
|
}
|
|
312
312
|
else {
|
|
313
313
|
throw new Error("No value provided for input HTTP label: analyzerName.");
|
|
@@ -317,7 +317,7 @@ const serializeAws_restJson1GetArchiveRuleCommand = async (input, context) => {
|
|
|
317
317
|
if (labelValue.length <= 0) {
|
|
318
318
|
throw new Error("Empty value provided for input HTTP label: ruleName.");
|
|
319
319
|
}
|
|
320
|
-
resolvedPath = resolvedPath.replace("{ruleName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
320
|
+
resolvedPath = resolvedPath.replace("{ruleName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
321
321
|
}
|
|
322
322
|
else {
|
|
323
323
|
throw new Error("No value provided for input HTTP label: ruleName.");
|
|
@@ -343,7 +343,7 @@ const serializeAws_restJson1GetFindingCommand = async (input, context) => {
|
|
|
343
343
|
if (labelValue.length <= 0) {
|
|
344
344
|
throw new Error("Empty value provided for input HTTP label: id.");
|
|
345
345
|
}
|
|
346
|
-
resolvedPath = resolvedPath.replace("{id}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
346
|
+
resolvedPath = resolvedPath.replace("{id}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
347
347
|
}
|
|
348
348
|
else {
|
|
349
349
|
throw new Error("No value provided for input HTTP label: id.");
|
|
@@ -373,7 +373,7 @@ const serializeAws_restJson1GetGeneratedPolicyCommand = async (input, context) =
|
|
|
373
373
|
if (labelValue.length <= 0) {
|
|
374
374
|
throw new Error("Empty value provided for input HTTP label: jobId.");
|
|
375
375
|
}
|
|
376
|
-
resolvedPath = resolvedPath.replace("{jobId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
376
|
+
resolvedPath = resolvedPath.replace("{jobId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
377
377
|
}
|
|
378
378
|
else {
|
|
379
379
|
throw new Error("No value provided for input HTTP label: jobId.");
|
|
@@ -410,7 +410,7 @@ const serializeAws_restJson1ListAccessPreviewFindingsCommand = async (input, con
|
|
|
410
410
|
if (labelValue.length <= 0) {
|
|
411
411
|
throw new Error("Empty value provided for input HTTP label: accessPreviewId.");
|
|
412
412
|
}
|
|
413
|
-
resolvedPath = resolvedPath.replace("{accessPreviewId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
413
|
+
resolvedPath = resolvedPath.replace("{accessPreviewId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
414
414
|
}
|
|
415
415
|
else {
|
|
416
416
|
throw new Error("No value provided for input HTTP label: accessPreviewId.");
|
|
@@ -511,7 +511,7 @@ const serializeAws_restJson1ListArchiveRulesCommand = async (input, context) =>
|
|
|
511
511
|
if (labelValue.length <= 0) {
|
|
512
512
|
throw new Error("Empty value provided for input HTTP label: analyzerName.");
|
|
513
513
|
}
|
|
514
|
-
resolvedPath = resolvedPath.replace("{analyzerName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
514
|
+
resolvedPath = resolvedPath.replace("{analyzerName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
515
515
|
}
|
|
516
516
|
else {
|
|
517
517
|
throw new Error("No value provided for input HTTP label: analyzerName.");
|
|
@@ -591,7 +591,7 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
|
|
|
591
591
|
if (labelValue.length <= 0) {
|
|
592
592
|
throw new Error("Empty value provided for input HTTP label: resourceArn.");
|
|
593
593
|
}
|
|
594
|
-
resolvedPath = resolvedPath.replace("{resourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
594
|
+
resolvedPath = resolvedPath.replace("{resourceArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
595
595
|
}
|
|
596
596
|
else {
|
|
597
597
|
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
@@ -617,7 +617,7 @@ const serializeAws_restJson1StartPolicyGenerationCommand = async (input, context
|
|
|
617
617
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/policy/generation";
|
|
618
618
|
let body;
|
|
619
619
|
body = JSON.stringify({
|
|
620
|
-
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
620
|
+
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
621
621
|
...(input.cloudTrailDetails !== undefined &&
|
|
622
622
|
input.cloudTrailDetails !== null && {
|
|
623
623
|
cloudTrailDetails: serializeAws_restJson1CloudTrailDetails(input.cloudTrailDetails, context),
|
|
@@ -671,7 +671,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
671
671
|
if (labelValue.length <= 0) {
|
|
672
672
|
throw new Error("Empty value provided for input HTTP label: resourceArn.");
|
|
673
673
|
}
|
|
674
|
-
resolvedPath = resolvedPath.replace("{resourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
674
|
+
resolvedPath = resolvedPath.replace("{resourceArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
675
675
|
}
|
|
676
676
|
else {
|
|
677
677
|
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
@@ -701,7 +701,7 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
|
701
701
|
if (labelValue.length <= 0) {
|
|
702
702
|
throw new Error("Empty value provided for input HTTP label: resourceArn.");
|
|
703
703
|
}
|
|
704
|
-
resolvedPath = resolvedPath.replace("{resourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
704
|
+
resolvedPath = resolvedPath.replace("{resourceArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
705
705
|
}
|
|
706
706
|
else {
|
|
707
707
|
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
@@ -735,7 +735,7 @@ const serializeAws_restJson1UpdateArchiveRuleCommand = async (input, context) =>
|
|
|
735
735
|
if (labelValue.length <= 0) {
|
|
736
736
|
throw new Error("Empty value provided for input HTTP label: analyzerName.");
|
|
737
737
|
}
|
|
738
|
-
resolvedPath = resolvedPath.replace("{analyzerName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
738
|
+
resolvedPath = resolvedPath.replace("{analyzerName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
739
739
|
}
|
|
740
740
|
else {
|
|
741
741
|
throw new Error("No value provided for input HTTP label: analyzerName.");
|
|
@@ -745,14 +745,14 @@ const serializeAws_restJson1UpdateArchiveRuleCommand = async (input, context) =>
|
|
|
745
745
|
if (labelValue.length <= 0) {
|
|
746
746
|
throw new Error("Empty value provided for input HTTP label: ruleName.");
|
|
747
747
|
}
|
|
748
|
-
resolvedPath = resolvedPath.replace("{ruleName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
748
|
+
resolvedPath = resolvedPath.replace("{ruleName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
749
749
|
}
|
|
750
750
|
else {
|
|
751
751
|
throw new Error("No value provided for input HTTP label: ruleName.");
|
|
752
752
|
}
|
|
753
753
|
let body;
|
|
754
754
|
body = JSON.stringify({
|
|
755
|
-
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
755
|
+
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
756
756
|
...(input.filter !== undefined &&
|
|
757
757
|
input.filter !== null && { filter: serializeAws_restJson1FilterCriteriaMap(input.filter, context) }),
|
|
758
758
|
});
|
|
@@ -777,7 +777,7 @@ const serializeAws_restJson1UpdateFindingsCommand = async (input, context) => {
|
|
|
777
777
|
let body;
|
|
778
778
|
body = JSON.stringify({
|
|
779
779
|
...(input.analyzerArn !== undefined && input.analyzerArn !== null && { analyzerArn: input.analyzerArn }),
|
|
780
|
-
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
780
|
+
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
781
781
|
...(input.ids !== undefined &&
|
|
782
782
|
input.ids !== null && { ids: serializeAws_restJson1FindingIdList(input.ids, context) }),
|
|
783
783
|
...(input.resourceArn !== undefined && input.resourceArn !== null && { resourceArn: input.resourceArn }),
|
|
@@ -867,7 +867,7 @@ const deserializeAws_restJson1ApplyArchiveRuleCommandError = async (output, cont
|
|
|
867
867
|
$fault: "client",
|
|
868
868
|
$metadata: deserializeMetadata(output),
|
|
869
869
|
});
|
|
870
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
870
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
871
871
|
}
|
|
872
872
|
};
|
|
873
873
|
const deserializeAws_restJson1CancelPolicyGenerationCommand = async (output, context) => {
|
|
@@ -909,7 +909,7 @@ const deserializeAws_restJson1CancelPolicyGenerationCommandError = async (output
|
|
|
909
909
|
$fault: "client",
|
|
910
910
|
$metadata: deserializeMetadata(output),
|
|
911
911
|
});
|
|
912
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
912
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
913
913
|
}
|
|
914
914
|
};
|
|
915
915
|
const deserializeAws_restJson1CreateAccessPreviewCommand = async (output, context) => {
|
|
@@ -920,9 +920,9 @@ const deserializeAws_restJson1CreateAccessPreviewCommand = async (output, contex
|
|
|
920
920
|
$metadata: deserializeMetadata(output),
|
|
921
921
|
id: undefined,
|
|
922
922
|
};
|
|
923
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
923
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
924
924
|
if (data.id !== undefined && data.id !== null) {
|
|
925
|
-
contents.id = smithy_client_1.expectString(data.id);
|
|
925
|
+
contents.id = (0, smithy_client_1.expectString)(data.id);
|
|
926
926
|
}
|
|
927
927
|
return Promise.resolve(contents);
|
|
928
928
|
};
|
|
@@ -964,7 +964,7 @@ const deserializeAws_restJson1CreateAccessPreviewCommandError = async (output, c
|
|
|
964
964
|
$fault: "client",
|
|
965
965
|
$metadata: deserializeMetadata(output),
|
|
966
966
|
});
|
|
967
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
967
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
968
968
|
}
|
|
969
969
|
};
|
|
970
970
|
const deserializeAws_restJson1CreateAnalyzerCommand = async (output, context) => {
|
|
@@ -975,9 +975,9 @@ const deserializeAws_restJson1CreateAnalyzerCommand = async (output, context) =>
|
|
|
975
975
|
$metadata: deserializeMetadata(output),
|
|
976
976
|
arn: undefined,
|
|
977
977
|
};
|
|
978
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
978
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
979
979
|
if (data.arn !== undefined && data.arn !== null) {
|
|
980
|
-
contents.arn = smithy_client_1.expectString(data.arn);
|
|
980
|
+
contents.arn = (0, smithy_client_1.expectString)(data.arn);
|
|
981
981
|
}
|
|
982
982
|
return Promise.resolve(contents);
|
|
983
983
|
};
|
|
@@ -1016,7 +1016,7 @@ const deserializeAws_restJson1CreateAnalyzerCommandError = async (output, contex
|
|
|
1016
1016
|
$fault: "client",
|
|
1017
1017
|
$metadata: deserializeMetadata(output),
|
|
1018
1018
|
});
|
|
1019
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1019
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1020
1020
|
}
|
|
1021
1021
|
};
|
|
1022
1022
|
const deserializeAws_restJson1CreateArchiveRuleCommand = async (output, context) => {
|
|
@@ -1067,7 +1067,7 @@ const deserializeAws_restJson1CreateArchiveRuleCommandError = async (output, con
|
|
|
1067
1067
|
$fault: "client",
|
|
1068
1068
|
$metadata: deserializeMetadata(output),
|
|
1069
1069
|
});
|
|
1070
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1070
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1071
1071
|
}
|
|
1072
1072
|
};
|
|
1073
1073
|
const deserializeAws_restJson1DeleteAnalyzerCommand = async (output, context) => {
|
|
@@ -1112,7 +1112,7 @@ const deserializeAws_restJson1DeleteAnalyzerCommandError = async (output, contex
|
|
|
1112
1112
|
$fault: "client",
|
|
1113
1113
|
$metadata: deserializeMetadata(output),
|
|
1114
1114
|
});
|
|
1115
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1115
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1116
1116
|
}
|
|
1117
1117
|
};
|
|
1118
1118
|
const deserializeAws_restJson1DeleteArchiveRuleCommand = async (output, context) => {
|
|
@@ -1157,7 +1157,7 @@ const deserializeAws_restJson1DeleteArchiveRuleCommandError = async (output, con
|
|
|
1157
1157
|
$fault: "client",
|
|
1158
1158
|
$metadata: deserializeMetadata(output),
|
|
1159
1159
|
});
|
|
1160
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1160
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1161
1161
|
}
|
|
1162
1162
|
};
|
|
1163
1163
|
const deserializeAws_restJson1GetAccessPreviewCommand = async (output, context) => {
|
|
@@ -1168,7 +1168,7 @@ const deserializeAws_restJson1GetAccessPreviewCommand = async (output, context)
|
|
|
1168
1168
|
$metadata: deserializeMetadata(output),
|
|
1169
1169
|
accessPreview: undefined,
|
|
1170
1170
|
};
|
|
1171
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1171
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1172
1172
|
if (data.accessPreview !== undefined && data.accessPreview !== null) {
|
|
1173
1173
|
contents.accessPreview = deserializeAws_restJson1AccessPreview(data.accessPreview, context);
|
|
1174
1174
|
}
|
|
@@ -1206,7 +1206,7 @@ const deserializeAws_restJson1GetAccessPreviewCommandError = async (output, cont
|
|
|
1206
1206
|
$fault: "client",
|
|
1207
1207
|
$metadata: deserializeMetadata(output),
|
|
1208
1208
|
});
|
|
1209
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1209
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1210
1210
|
}
|
|
1211
1211
|
};
|
|
1212
1212
|
const deserializeAws_restJson1GetAnalyzedResourceCommand = async (output, context) => {
|
|
@@ -1217,7 +1217,7 @@ const deserializeAws_restJson1GetAnalyzedResourceCommand = async (output, contex
|
|
|
1217
1217
|
$metadata: deserializeMetadata(output),
|
|
1218
1218
|
resource: undefined,
|
|
1219
1219
|
};
|
|
1220
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1220
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1221
1221
|
if (data.resource !== undefined && data.resource !== null) {
|
|
1222
1222
|
contents.resource = deserializeAws_restJson1AnalyzedResource(data.resource, context);
|
|
1223
1223
|
}
|
|
@@ -1255,7 +1255,7 @@ const deserializeAws_restJson1GetAnalyzedResourceCommandError = async (output, c
|
|
|
1255
1255
|
$fault: "client",
|
|
1256
1256
|
$metadata: deserializeMetadata(output),
|
|
1257
1257
|
});
|
|
1258
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1258
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1259
1259
|
}
|
|
1260
1260
|
};
|
|
1261
1261
|
const deserializeAws_restJson1GetAnalyzerCommand = async (output, context) => {
|
|
@@ -1266,7 +1266,7 @@ const deserializeAws_restJson1GetAnalyzerCommand = async (output, context) => {
|
|
|
1266
1266
|
$metadata: deserializeMetadata(output),
|
|
1267
1267
|
analyzer: undefined,
|
|
1268
1268
|
};
|
|
1269
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1269
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1270
1270
|
if (data.analyzer !== undefined && data.analyzer !== null) {
|
|
1271
1271
|
contents.analyzer = deserializeAws_restJson1AnalyzerSummary(data.analyzer, context);
|
|
1272
1272
|
}
|
|
@@ -1304,7 +1304,7 @@ const deserializeAws_restJson1GetAnalyzerCommandError = async (output, context)
|
|
|
1304
1304
|
$fault: "client",
|
|
1305
1305
|
$metadata: deserializeMetadata(output),
|
|
1306
1306
|
});
|
|
1307
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1307
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1308
1308
|
}
|
|
1309
1309
|
};
|
|
1310
1310
|
const deserializeAws_restJson1GetArchiveRuleCommand = async (output, context) => {
|
|
@@ -1315,7 +1315,7 @@ const deserializeAws_restJson1GetArchiveRuleCommand = async (output, context) =>
|
|
|
1315
1315
|
$metadata: deserializeMetadata(output),
|
|
1316
1316
|
archiveRule: undefined,
|
|
1317
1317
|
};
|
|
1318
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1318
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1319
1319
|
if (data.archiveRule !== undefined && data.archiveRule !== null) {
|
|
1320
1320
|
contents.archiveRule = deserializeAws_restJson1ArchiveRuleSummary(data.archiveRule, context);
|
|
1321
1321
|
}
|
|
@@ -1353,7 +1353,7 @@ const deserializeAws_restJson1GetArchiveRuleCommandError = async (output, contex
|
|
|
1353
1353
|
$fault: "client",
|
|
1354
1354
|
$metadata: deserializeMetadata(output),
|
|
1355
1355
|
});
|
|
1356
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1356
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1357
1357
|
}
|
|
1358
1358
|
};
|
|
1359
1359
|
const deserializeAws_restJson1GetFindingCommand = async (output, context) => {
|
|
@@ -1364,7 +1364,7 @@ const deserializeAws_restJson1GetFindingCommand = async (output, context) => {
|
|
|
1364
1364
|
$metadata: deserializeMetadata(output),
|
|
1365
1365
|
finding: undefined,
|
|
1366
1366
|
};
|
|
1367
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1367
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1368
1368
|
if (data.finding !== undefined && data.finding !== null) {
|
|
1369
1369
|
contents.finding = deserializeAws_restJson1Finding(data.finding, context);
|
|
1370
1370
|
}
|
|
@@ -1402,7 +1402,7 @@ const deserializeAws_restJson1GetFindingCommandError = async (output, context) =
|
|
|
1402
1402
|
$fault: "client",
|
|
1403
1403
|
$metadata: deserializeMetadata(output),
|
|
1404
1404
|
});
|
|
1405
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1405
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1406
1406
|
}
|
|
1407
1407
|
};
|
|
1408
1408
|
const deserializeAws_restJson1GetGeneratedPolicyCommand = async (output, context) => {
|
|
@@ -1414,7 +1414,7 @@ const deserializeAws_restJson1GetGeneratedPolicyCommand = async (output, context
|
|
|
1414
1414
|
generatedPolicyResult: undefined,
|
|
1415
1415
|
jobDetails: undefined,
|
|
1416
1416
|
};
|
|
1417
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1417
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1418
1418
|
if (data.generatedPolicyResult !== undefined && data.generatedPolicyResult !== null) {
|
|
1419
1419
|
contents.generatedPolicyResult = deserializeAws_restJson1GeneratedPolicyResult(data.generatedPolicyResult, context);
|
|
1420
1420
|
}
|
|
@@ -1452,7 +1452,7 @@ const deserializeAws_restJson1GetGeneratedPolicyCommandError = async (output, co
|
|
|
1452
1452
|
$fault: "client",
|
|
1453
1453
|
$metadata: deserializeMetadata(output),
|
|
1454
1454
|
});
|
|
1455
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1455
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1456
1456
|
}
|
|
1457
1457
|
};
|
|
1458
1458
|
const deserializeAws_restJson1ListAccessPreviewFindingsCommand = async (output, context) => {
|
|
@@ -1464,12 +1464,12 @@ const deserializeAws_restJson1ListAccessPreviewFindingsCommand = async (output,
|
|
|
1464
1464
|
findings: undefined,
|
|
1465
1465
|
nextToken: undefined,
|
|
1466
1466
|
};
|
|
1467
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1467
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1468
1468
|
if (data.findings !== undefined && data.findings !== null) {
|
|
1469
1469
|
contents.findings = deserializeAws_restJson1AccessPreviewFindingsList(data.findings, context);
|
|
1470
1470
|
}
|
|
1471
1471
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
1472
|
-
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
1472
|
+
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1473
1473
|
}
|
|
1474
1474
|
return Promise.resolve(contents);
|
|
1475
1475
|
};
|
|
@@ -1508,7 +1508,7 @@ const deserializeAws_restJson1ListAccessPreviewFindingsCommandError = async (out
|
|
|
1508
1508
|
$fault: "client",
|
|
1509
1509
|
$metadata: deserializeMetadata(output),
|
|
1510
1510
|
});
|
|
1511
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1511
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1512
1512
|
}
|
|
1513
1513
|
};
|
|
1514
1514
|
const deserializeAws_restJson1ListAccessPreviewsCommand = async (output, context) => {
|
|
@@ -1520,12 +1520,12 @@ const deserializeAws_restJson1ListAccessPreviewsCommand = async (output, context
|
|
|
1520
1520
|
accessPreviews: undefined,
|
|
1521
1521
|
nextToken: undefined,
|
|
1522
1522
|
};
|
|
1523
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1523
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1524
1524
|
if (data.accessPreviews !== undefined && data.accessPreviews !== null) {
|
|
1525
1525
|
contents.accessPreviews = deserializeAws_restJson1AccessPreviewsList(data.accessPreviews, context);
|
|
1526
1526
|
}
|
|
1527
1527
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
1528
|
-
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
1528
|
+
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1529
1529
|
}
|
|
1530
1530
|
return Promise.resolve(contents);
|
|
1531
1531
|
};
|
|
@@ -1561,7 +1561,7 @@ const deserializeAws_restJson1ListAccessPreviewsCommandError = async (output, co
|
|
|
1561
1561
|
$fault: "client",
|
|
1562
1562
|
$metadata: deserializeMetadata(output),
|
|
1563
1563
|
});
|
|
1564
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1564
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1565
1565
|
}
|
|
1566
1566
|
};
|
|
1567
1567
|
const deserializeAws_restJson1ListAnalyzedResourcesCommand = async (output, context) => {
|
|
@@ -1573,12 +1573,12 @@ const deserializeAws_restJson1ListAnalyzedResourcesCommand = async (output, cont
|
|
|
1573
1573
|
analyzedResources: undefined,
|
|
1574
1574
|
nextToken: undefined,
|
|
1575
1575
|
};
|
|
1576
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1576
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1577
1577
|
if (data.analyzedResources !== undefined && data.analyzedResources !== null) {
|
|
1578
1578
|
contents.analyzedResources = deserializeAws_restJson1AnalyzedResourcesList(data.analyzedResources, context);
|
|
1579
1579
|
}
|
|
1580
1580
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
1581
|
-
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
1581
|
+
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1582
1582
|
}
|
|
1583
1583
|
return Promise.resolve(contents);
|
|
1584
1584
|
};
|
|
@@ -1614,7 +1614,7 @@ const deserializeAws_restJson1ListAnalyzedResourcesCommandError = async (output,
|
|
|
1614
1614
|
$fault: "client",
|
|
1615
1615
|
$metadata: deserializeMetadata(output),
|
|
1616
1616
|
});
|
|
1617
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1617
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1618
1618
|
}
|
|
1619
1619
|
};
|
|
1620
1620
|
const deserializeAws_restJson1ListAnalyzersCommand = async (output, context) => {
|
|
@@ -1626,12 +1626,12 @@ const deserializeAws_restJson1ListAnalyzersCommand = async (output, context) =>
|
|
|
1626
1626
|
analyzers: undefined,
|
|
1627
1627
|
nextToken: undefined,
|
|
1628
1628
|
};
|
|
1629
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1629
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1630
1630
|
if (data.analyzers !== undefined && data.analyzers !== null) {
|
|
1631
1631
|
contents.analyzers = deserializeAws_restJson1AnalyzersList(data.analyzers, context);
|
|
1632
1632
|
}
|
|
1633
1633
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
1634
|
-
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
1634
|
+
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1635
1635
|
}
|
|
1636
1636
|
return Promise.resolve(contents);
|
|
1637
1637
|
};
|
|
@@ -1664,7 +1664,7 @@ const deserializeAws_restJson1ListAnalyzersCommandError = async (output, context
|
|
|
1664
1664
|
$fault: "client",
|
|
1665
1665
|
$metadata: deserializeMetadata(output),
|
|
1666
1666
|
});
|
|
1667
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1667
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1668
1668
|
}
|
|
1669
1669
|
};
|
|
1670
1670
|
const deserializeAws_restJson1ListArchiveRulesCommand = async (output, context) => {
|
|
@@ -1676,12 +1676,12 @@ const deserializeAws_restJson1ListArchiveRulesCommand = async (output, context)
|
|
|
1676
1676
|
archiveRules: undefined,
|
|
1677
1677
|
nextToken: undefined,
|
|
1678
1678
|
};
|
|
1679
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1679
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1680
1680
|
if (data.archiveRules !== undefined && data.archiveRules !== null) {
|
|
1681
1681
|
contents.archiveRules = deserializeAws_restJson1ArchiveRulesList(data.archiveRules, context);
|
|
1682
1682
|
}
|
|
1683
1683
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
1684
|
-
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
1684
|
+
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1685
1685
|
}
|
|
1686
1686
|
return Promise.resolve(contents);
|
|
1687
1687
|
};
|
|
@@ -1714,7 +1714,7 @@ const deserializeAws_restJson1ListArchiveRulesCommandError = async (output, cont
|
|
|
1714
1714
|
$fault: "client",
|
|
1715
1715
|
$metadata: deserializeMetadata(output),
|
|
1716
1716
|
});
|
|
1717
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1717
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1718
1718
|
}
|
|
1719
1719
|
};
|
|
1720
1720
|
const deserializeAws_restJson1ListFindingsCommand = async (output, context) => {
|
|
@@ -1726,12 +1726,12 @@ const deserializeAws_restJson1ListFindingsCommand = async (output, context) => {
|
|
|
1726
1726
|
findings: undefined,
|
|
1727
1727
|
nextToken: undefined,
|
|
1728
1728
|
};
|
|
1729
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1729
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1730
1730
|
if (data.findings !== undefined && data.findings !== null) {
|
|
1731
1731
|
contents.findings = deserializeAws_restJson1FindingsList(data.findings, context);
|
|
1732
1732
|
}
|
|
1733
1733
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
1734
|
-
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
1734
|
+
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1735
1735
|
}
|
|
1736
1736
|
return Promise.resolve(contents);
|
|
1737
1737
|
};
|
|
@@ -1767,7 +1767,7 @@ const deserializeAws_restJson1ListFindingsCommandError = async (output, context)
|
|
|
1767
1767
|
$fault: "client",
|
|
1768
1768
|
$metadata: deserializeMetadata(output),
|
|
1769
1769
|
});
|
|
1770
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1770
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1771
1771
|
}
|
|
1772
1772
|
};
|
|
1773
1773
|
const deserializeAws_restJson1ListPolicyGenerationsCommand = async (output, context) => {
|
|
@@ -1779,9 +1779,9 @@ const deserializeAws_restJson1ListPolicyGenerationsCommand = async (output, cont
|
|
|
1779
1779
|
nextToken: undefined,
|
|
1780
1780
|
policyGenerations: undefined,
|
|
1781
1781
|
};
|
|
1782
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1782
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1783
1783
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
1784
|
-
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
1784
|
+
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1785
1785
|
}
|
|
1786
1786
|
if (data.policyGenerations !== undefined && data.policyGenerations !== null) {
|
|
1787
1787
|
contents.policyGenerations = deserializeAws_restJson1PolicyGenerationList(data.policyGenerations, context);
|
|
@@ -1817,7 +1817,7 @@ const deserializeAws_restJson1ListPolicyGenerationsCommandError = async (output,
|
|
|
1817
1817
|
$fault: "client",
|
|
1818
1818
|
$metadata: deserializeMetadata(output),
|
|
1819
1819
|
});
|
|
1820
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1820
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1821
1821
|
}
|
|
1822
1822
|
};
|
|
1823
1823
|
const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
|
|
@@ -1828,7 +1828,7 @@ const deserializeAws_restJson1ListTagsForResourceCommand = async (output, contex
|
|
|
1828
1828
|
$metadata: deserializeMetadata(output),
|
|
1829
1829
|
tags: undefined,
|
|
1830
1830
|
};
|
|
1831
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1831
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1832
1832
|
if (data.tags !== undefined && data.tags !== null) {
|
|
1833
1833
|
contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
|
|
1834
1834
|
}
|
|
@@ -1866,7 +1866,7 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
1866
1866
|
$fault: "client",
|
|
1867
1867
|
$metadata: deserializeMetadata(output),
|
|
1868
1868
|
});
|
|
1869
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1869
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1870
1870
|
}
|
|
1871
1871
|
};
|
|
1872
1872
|
const deserializeAws_restJson1StartPolicyGenerationCommand = async (output, context) => {
|
|
@@ -1877,9 +1877,9 @@ const deserializeAws_restJson1StartPolicyGenerationCommand = async (output, cont
|
|
|
1877
1877
|
$metadata: deserializeMetadata(output),
|
|
1878
1878
|
jobId: undefined,
|
|
1879
1879
|
};
|
|
1880
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1880
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1881
1881
|
if (data.jobId !== undefined && data.jobId !== null) {
|
|
1882
|
-
contents.jobId = smithy_client_1.expectString(data.jobId);
|
|
1882
|
+
contents.jobId = (0, smithy_client_1.expectString)(data.jobId);
|
|
1883
1883
|
}
|
|
1884
1884
|
return Promise.resolve(contents);
|
|
1885
1885
|
};
|
|
@@ -1918,7 +1918,7 @@ const deserializeAws_restJson1StartPolicyGenerationCommandError = async (output,
|
|
|
1918
1918
|
$fault: "client",
|
|
1919
1919
|
$metadata: deserializeMetadata(output),
|
|
1920
1920
|
});
|
|
1921
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1921
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1922
1922
|
}
|
|
1923
1923
|
};
|
|
1924
1924
|
const deserializeAws_restJson1StartResourceScanCommand = async (output, context) => {
|
|
@@ -1963,7 +1963,7 @@ const deserializeAws_restJson1StartResourceScanCommandError = async (output, con
|
|
|
1963
1963
|
$fault: "client",
|
|
1964
1964
|
$metadata: deserializeMetadata(output),
|
|
1965
1965
|
});
|
|
1966
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1966
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1967
1967
|
}
|
|
1968
1968
|
};
|
|
1969
1969
|
const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
|
|
@@ -2008,7 +2008,7 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
2008
2008
|
$fault: "client",
|
|
2009
2009
|
$metadata: deserializeMetadata(output),
|
|
2010
2010
|
});
|
|
2011
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2011
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2012
2012
|
}
|
|
2013
2013
|
};
|
|
2014
2014
|
const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
|
|
@@ -2053,7 +2053,7 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
2053
2053
|
$fault: "client",
|
|
2054
2054
|
$metadata: deserializeMetadata(output),
|
|
2055
2055
|
});
|
|
2056
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2056
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2057
2057
|
}
|
|
2058
2058
|
};
|
|
2059
2059
|
const deserializeAws_restJson1UpdateArchiveRuleCommand = async (output, context) => {
|
|
@@ -2098,7 +2098,7 @@ const deserializeAws_restJson1UpdateArchiveRuleCommandError = async (output, con
|
|
|
2098
2098
|
$fault: "client",
|
|
2099
2099
|
$metadata: deserializeMetadata(output),
|
|
2100
2100
|
});
|
|
2101
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2101
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2102
2102
|
}
|
|
2103
2103
|
};
|
|
2104
2104
|
const deserializeAws_restJson1UpdateFindingsCommand = async (output, context) => {
|
|
@@ -2143,7 +2143,7 @@ const deserializeAws_restJson1UpdateFindingsCommandError = async (output, contex
|
|
|
2143
2143
|
$fault: "client",
|
|
2144
2144
|
$metadata: deserializeMetadata(output),
|
|
2145
2145
|
});
|
|
2146
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2146
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2147
2147
|
}
|
|
2148
2148
|
};
|
|
2149
2149
|
const deserializeAws_restJson1ValidatePolicyCommand = async (output, context) => {
|
|
@@ -2155,12 +2155,12 @@ const deserializeAws_restJson1ValidatePolicyCommand = async (output, context) =>
|
|
|
2155
2155
|
findings: undefined,
|
|
2156
2156
|
nextToken: undefined,
|
|
2157
2157
|
};
|
|
2158
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2158
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2159
2159
|
if (data.findings !== undefined && data.findings !== null) {
|
|
2160
2160
|
contents.findings = deserializeAws_restJson1ValidatePolicyFindingList(data.findings, context);
|
|
2161
2161
|
}
|
|
2162
2162
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
2163
|
-
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
2163
|
+
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
2164
2164
|
}
|
|
2165
2165
|
return Promise.resolve(contents);
|
|
2166
2166
|
};
|
|
@@ -2193,104 +2193,104 @@ const deserializeAws_restJson1ValidatePolicyCommandError = async (output, contex
|
|
|
2193
2193
|
$fault: "client",
|
|
2194
2194
|
$metadata: deserializeMetadata(output),
|
|
2195
2195
|
});
|
|
2196
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2196
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2197
2197
|
}
|
|
2198
2198
|
};
|
|
2199
2199
|
const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
|
|
2200
2200
|
const contents = {};
|
|
2201
2201
|
const data = parsedOutput.body;
|
|
2202
2202
|
if (data.message !== undefined && data.message !== null) {
|
|
2203
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
2203
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
2204
2204
|
}
|
|
2205
2205
|
const exception = new models_0_1.AccessDeniedException({
|
|
2206
2206
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2207
2207
|
...contents,
|
|
2208
2208
|
});
|
|
2209
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
2209
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2210
2210
|
};
|
|
2211
2211
|
const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, context) => {
|
|
2212
2212
|
const contents = {};
|
|
2213
2213
|
const data = parsedOutput.body;
|
|
2214
2214
|
if (data.message !== undefined && data.message !== null) {
|
|
2215
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
2215
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
2216
2216
|
}
|
|
2217
2217
|
if (data.resourceId !== undefined && data.resourceId !== null) {
|
|
2218
|
-
contents.resourceId = smithy_client_1.expectString(data.resourceId);
|
|
2218
|
+
contents.resourceId = (0, smithy_client_1.expectString)(data.resourceId);
|
|
2219
2219
|
}
|
|
2220
2220
|
if (data.resourceType !== undefined && data.resourceType !== null) {
|
|
2221
|
-
contents.resourceType = smithy_client_1.expectString(data.resourceType);
|
|
2221
|
+
contents.resourceType = (0, smithy_client_1.expectString)(data.resourceType);
|
|
2222
2222
|
}
|
|
2223
2223
|
const exception = new models_0_1.ConflictException({
|
|
2224
2224
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2225
2225
|
...contents,
|
|
2226
2226
|
});
|
|
2227
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
2227
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2228
2228
|
};
|
|
2229
2229
|
const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOutput, context) => {
|
|
2230
2230
|
const contents = {};
|
|
2231
2231
|
if (parsedOutput.headers["retry-after"] !== undefined) {
|
|
2232
|
-
contents.retryAfterSeconds = smithy_client_1.strictParseInt32(parsedOutput.headers["retry-after"]);
|
|
2232
|
+
contents.retryAfterSeconds = (0, smithy_client_1.strictParseInt32)(parsedOutput.headers["retry-after"]);
|
|
2233
2233
|
}
|
|
2234
2234
|
const data = parsedOutput.body;
|
|
2235
2235
|
if (data.message !== undefined && data.message !== null) {
|
|
2236
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
2236
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
2237
2237
|
}
|
|
2238
2238
|
const exception = new models_0_1.InternalServerException({
|
|
2239
2239
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2240
2240
|
...contents,
|
|
2241
2241
|
});
|
|
2242
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
2242
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2243
2243
|
};
|
|
2244
2244
|
const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
2245
2245
|
const contents = {};
|
|
2246
2246
|
const data = parsedOutput.body;
|
|
2247
2247
|
if (data.message !== undefined && data.message !== null) {
|
|
2248
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
2248
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
2249
2249
|
}
|
|
2250
2250
|
if (data.resourceId !== undefined && data.resourceId !== null) {
|
|
2251
|
-
contents.resourceId = smithy_client_1.expectString(data.resourceId);
|
|
2251
|
+
contents.resourceId = (0, smithy_client_1.expectString)(data.resourceId);
|
|
2252
2252
|
}
|
|
2253
2253
|
if (data.resourceType !== undefined && data.resourceType !== null) {
|
|
2254
|
-
contents.resourceType = smithy_client_1.expectString(data.resourceType);
|
|
2254
|
+
contents.resourceType = (0, smithy_client_1.expectString)(data.resourceType);
|
|
2255
2255
|
}
|
|
2256
2256
|
const exception = new models_0_1.ResourceNotFoundException({
|
|
2257
2257
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2258
2258
|
...contents,
|
|
2259
2259
|
});
|
|
2260
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
2260
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2261
2261
|
};
|
|
2262
2262
|
const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (parsedOutput, context) => {
|
|
2263
2263
|
const contents = {};
|
|
2264
2264
|
const data = parsedOutput.body;
|
|
2265
2265
|
if (data.message !== undefined && data.message !== null) {
|
|
2266
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
2266
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
2267
2267
|
}
|
|
2268
2268
|
if (data.resourceId !== undefined && data.resourceId !== null) {
|
|
2269
|
-
contents.resourceId = smithy_client_1.expectString(data.resourceId);
|
|
2269
|
+
contents.resourceId = (0, smithy_client_1.expectString)(data.resourceId);
|
|
2270
2270
|
}
|
|
2271
2271
|
if (data.resourceType !== undefined && data.resourceType !== null) {
|
|
2272
|
-
contents.resourceType = smithy_client_1.expectString(data.resourceType);
|
|
2272
|
+
contents.resourceType = (0, smithy_client_1.expectString)(data.resourceType);
|
|
2273
2273
|
}
|
|
2274
2274
|
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
2275
2275
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2276
2276
|
...contents,
|
|
2277
2277
|
});
|
|
2278
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
2278
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2279
2279
|
};
|
|
2280
2280
|
const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput, context) => {
|
|
2281
2281
|
const contents = {};
|
|
2282
2282
|
if (parsedOutput.headers["retry-after"] !== undefined) {
|
|
2283
|
-
contents.retryAfterSeconds = smithy_client_1.strictParseInt32(parsedOutput.headers["retry-after"]);
|
|
2283
|
+
contents.retryAfterSeconds = (0, smithy_client_1.strictParseInt32)(parsedOutput.headers["retry-after"]);
|
|
2284
2284
|
}
|
|
2285
2285
|
const data = parsedOutput.body;
|
|
2286
2286
|
if (data.message !== undefined && data.message !== null) {
|
|
2287
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
2287
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
2288
2288
|
}
|
|
2289
2289
|
const exception = new models_0_1.ThrottlingException({
|
|
2290
2290
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2291
2291
|
...contents,
|
|
2292
2292
|
});
|
|
2293
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
2293
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2294
2294
|
};
|
|
2295
2295
|
const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput, context) => {
|
|
2296
2296
|
const contents = {};
|
|
@@ -2299,16 +2299,16 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
|
|
|
2299
2299
|
contents.fieldList = deserializeAws_restJson1ValidationExceptionFieldList(data.fieldList, context);
|
|
2300
2300
|
}
|
|
2301
2301
|
if (data.message !== undefined && data.message !== null) {
|
|
2302
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
2302
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
2303
2303
|
}
|
|
2304
2304
|
if (data.reason !== undefined && data.reason !== null) {
|
|
2305
|
-
contents.reason = smithy_client_1.expectString(data.reason);
|
|
2305
|
+
contents.reason = (0, smithy_client_1.expectString)(data.reason);
|
|
2306
2306
|
}
|
|
2307
2307
|
const exception = new models_0_1.ValidationException({
|
|
2308
2308
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2309
2309
|
...contents,
|
|
2310
2310
|
});
|
|
2311
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
2311
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2312
2312
|
};
|
|
2313
2313
|
const serializeAws_restJson1AclGrantee = (input, context) => {
|
|
2314
2314
|
return models_0_1.AclGrantee.visit(input, {
|
|
@@ -2642,15 +2642,15 @@ const serializeAws_restJson1VpcConfiguration = (input, context) => {
|
|
|
2642
2642
|
};
|
|
2643
2643
|
const deserializeAws_restJson1AccessPreview = (output, context) => {
|
|
2644
2644
|
return {
|
|
2645
|
-
analyzerArn: smithy_client_1.expectString(output.analyzerArn),
|
|
2645
|
+
analyzerArn: (0, smithy_client_1.expectString)(output.analyzerArn),
|
|
2646
2646
|
configurations: output.configurations !== undefined && output.configurations !== null
|
|
2647
2647
|
? deserializeAws_restJson1ConfigurationsMap(output.configurations, context)
|
|
2648
2648
|
: undefined,
|
|
2649
2649
|
createdAt: output.createdAt !== undefined && output.createdAt !== null
|
|
2650
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.createdAt))
|
|
2650
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.createdAt))
|
|
2651
2651
|
: undefined,
|
|
2652
|
-
id: smithy_client_1.expectString(output.id),
|
|
2653
|
-
status: smithy_client_1.expectString(output.status),
|
|
2652
|
+
id: (0, smithy_client_1.expectString)(output.id),
|
|
2653
|
+
status: (0, smithy_client_1.expectString)(output.status),
|
|
2654
2654
|
statusReason: output.statusReason !== undefined && output.statusReason !== null
|
|
2655
2655
|
? deserializeAws_restJson1AccessPreviewStatusReason(output.statusReason, context)
|
|
2656
2656
|
: undefined,
|
|
@@ -2661,28 +2661,28 @@ const deserializeAws_restJson1AccessPreviewFinding = (output, context) => {
|
|
|
2661
2661
|
action: output.action !== undefined && output.action !== null
|
|
2662
2662
|
? deserializeAws_restJson1ActionList(output.action, context)
|
|
2663
2663
|
: undefined,
|
|
2664
|
-
changeType: smithy_client_1.expectString(output.changeType),
|
|
2664
|
+
changeType: (0, smithy_client_1.expectString)(output.changeType),
|
|
2665
2665
|
condition: output.condition !== undefined && output.condition !== null
|
|
2666
2666
|
? deserializeAws_restJson1ConditionKeyMap(output.condition, context)
|
|
2667
2667
|
: undefined,
|
|
2668
2668
|
createdAt: output.createdAt !== undefined && output.createdAt !== null
|
|
2669
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.createdAt))
|
|
2669
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.createdAt))
|
|
2670
2670
|
: undefined,
|
|
2671
|
-
error: smithy_client_1.expectString(output.error),
|
|
2672
|
-
existingFindingId: smithy_client_1.expectString(output.existingFindingId),
|
|
2673
|
-
existingFindingStatus: smithy_client_1.expectString(output.existingFindingStatus),
|
|
2674
|
-
id: smithy_client_1.expectString(output.id),
|
|
2675
|
-
isPublic: smithy_client_1.expectBoolean(output.isPublic),
|
|
2671
|
+
error: (0, smithy_client_1.expectString)(output.error),
|
|
2672
|
+
existingFindingId: (0, smithy_client_1.expectString)(output.existingFindingId),
|
|
2673
|
+
existingFindingStatus: (0, smithy_client_1.expectString)(output.existingFindingStatus),
|
|
2674
|
+
id: (0, smithy_client_1.expectString)(output.id),
|
|
2675
|
+
isPublic: (0, smithy_client_1.expectBoolean)(output.isPublic),
|
|
2676
2676
|
principal: output.principal !== undefined && output.principal !== null
|
|
2677
2677
|
? deserializeAws_restJson1PrincipalMap(output.principal, context)
|
|
2678
2678
|
: undefined,
|
|
2679
|
-
resource: smithy_client_1.expectString(output.resource),
|
|
2680
|
-
resourceOwnerAccount: smithy_client_1.expectString(output.resourceOwnerAccount),
|
|
2681
|
-
resourceType: smithy_client_1.expectString(output.resourceType),
|
|
2679
|
+
resource: (0, smithy_client_1.expectString)(output.resource),
|
|
2680
|
+
resourceOwnerAccount: (0, smithy_client_1.expectString)(output.resourceOwnerAccount),
|
|
2681
|
+
resourceType: (0, smithy_client_1.expectString)(output.resourceType),
|
|
2682
2682
|
sources: output.sources !== undefined && output.sources !== null
|
|
2683
2683
|
? deserializeAws_restJson1FindingSourceList(output.sources, context)
|
|
2684
2684
|
: undefined,
|
|
2685
|
-
status: smithy_client_1.expectString(output.status),
|
|
2685
|
+
status: (0, smithy_client_1.expectString)(output.status),
|
|
2686
2686
|
};
|
|
2687
2687
|
};
|
|
2688
2688
|
const deserializeAws_restJson1AccessPreviewFindingsList = (output, context) => {
|
|
@@ -2709,28 +2709,28 @@ const deserializeAws_restJson1AccessPreviewsList = (output, context) => {
|
|
|
2709
2709
|
};
|
|
2710
2710
|
const deserializeAws_restJson1AccessPreviewStatusReason = (output, context) => {
|
|
2711
2711
|
return {
|
|
2712
|
-
code: smithy_client_1.expectString(output.code),
|
|
2712
|
+
code: (0, smithy_client_1.expectString)(output.code),
|
|
2713
2713
|
};
|
|
2714
2714
|
};
|
|
2715
2715
|
const deserializeAws_restJson1AccessPreviewSummary = (output, context) => {
|
|
2716
2716
|
return {
|
|
2717
|
-
analyzerArn: smithy_client_1.expectString(output.analyzerArn),
|
|
2717
|
+
analyzerArn: (0, smithy_client_1.expectString)(output.analyzerArn),
|
|
2718
2718
|
createdAt: output.createdAt !== undefined && output.createdAt !== null
|
|
2719
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.createdAt))
|
|
2719
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.createdAt))
|
|
2720
2720
|
: undefined,
|
|
2721
|
-
id: smithy_client_1.expectString(output.id),
|
|
2722
|
-
status: smithy_client_1.expectString(output.status),
|
|
2721
|
+
id: (0, smithy_client_1.expectString)(output.id),
|
|
2722
|
+
status: (0, smithy_client_1.expectString)(output.status),
|
|
2723
2723
|
statusReason: output.statusReason !== undefined && output.statusReason !== null
|
|
2724
2724
|
? deserializeAws_restJson1AccessPreviewStatusReason(output.statusReason, context)
|
|
2725
2725
|
: undefined,
|
|
2726
2726
|
};
|
|
2727
2727
|
};
|
|
2728
2728
|
const deserializeAws_restJson1AclGrantee = (output, context) => {
|
|
2729
|
-
if (smithy_client_1.expectString(output.id) !== undefined) {
|
|
2730
|
-
return { id: smithy_client_1.expectString(output.id) };
|
|
2729
|
+
if ((0, smithy_client_1.expectString)(output.id) !== undefined) {
|
|
2730
|
+
return { id: (0, smithy_client_1.expectString)(output.id) };
|
|
2731
2731
|
}
|
|
2732
|
-
if (smithy_client_1.expectString(output.uri) !== undefined) {
|
|
2733
|
-
return { uri: smithy_client_1.expectString(output.uri) };
|
|
2732
|
+
if ((0, smithy_client_1.expectString)(output.uri) !== undefined) {
|
|
2733
|
+
return { uri: (0, smithy_client_1.expectString)(output.uri) };
|
|
2734
2734
|
}
|
|
2735
2735
|
return { $unknown: Object.entries(output)[0] };
|
|
2736
2736
|
};
|
|
@@ -2741,7 +2741,7 @@ const deserializeAws_restJson1ActionList = (output, context) => {
|
|
|
2741
2741
|
if (entry === null) {
|
|
2742
2742
|
return null;
|
|
2743
2743
|
}
|
|
2744
|
-
return smithy_client_1.expectString(entry);
|
|
2744
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
2745
2745
|
});
|
|
2746
2746
|
return retVal;
|
|
2747
2747
|
};
|
|
@@ -2751,22 +2751,22 @@ const deserializeAws_restJson1AnalyzedResource = (output, context) => {
|
|
|
2751
2751
|
? deserializeAws_restJson1ActionList(output.actions, context)
|
|
2752
2752
|
: undefined,
|
|
2753
2753
|
analyzedAt: output.analyzedAt !== undefined && output.analyzedAt !== null
|
|
2754
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.analyzedAt))
|
|
2754
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.analyzedAt))
|
|
2755
2755
|
: undefined,
|
|
2756
2756
|
createdAt: output.createdAt !== undefined && output.createdAt !== null
|
|
2757
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.createdAt))
|
|
2757
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.createdAt))
|
|
2758
2758
|
: undefined,
|
|
2759
|
-
error: smithy_client_1.expectString(output.error),
|
|
2760
|
-
isPublic: smithy_client_1.expectBoolean(output.isPublic),
|
|
2761
|
-
resourceArn: smithy_client_1.expectString(output.resourceArn),
|
|
2762
|
-
resourceOwnerAccount: smithy_client_1.expectString(output.resourceOwnerAccount),
|
|
2763
|
-
resourceType: smithy_client_1.expectString(output.resourceType),
|
|
2759
|
+
error: (0, smithy_client_1.expectString)(output.error),
|
|
2760
|
+
isPublic: (0, smithy_client_1.expectBoolean)(output.isPublic),
|
|
2761
|
+
resourceArn: (0, smithy_client_1.expectString)(output.resourceArn),
|
|
2762
|
+
resourceOwnerAccount: (0, smithy_client_1.expectString)(output.resourceOwnerAccount),
|
|
2763
|
+
resourceType: (0, smithy_client_1.expectString)(output.resourceType),
|
|
2764
2764
|
sharedVia: output.sharedVia !== undefined && output.sharedVia !== null
|
|
2765
2765
|
? deserializeAws_restJson1SharedViaList(output.sharedVia, context)
|
|
2766
2766
|
: undefined,
|
|
2767
|
-
status: smithy_client_1.expectString(output.status),
|
|
2767
|
+
status: (0, smithy_client_1.expectString)(output.status),
|
|
2768
2768
|
updatedAt: output.updatedAt !== undefined && output.updatedAt !== null
|
|
2769
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.updatedAt))
|
|
2769
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.updatedAt))
|
|
2770
2770
|
: undefined,
|
|
2771
2771
|
};
|
|
2772
2772
|
};
|
|
@@ -2783,9 +2783,9 @@ const deserializeAws_restJson1AnalyzedResourcesList = (output, context) => {
|
|
|
2783
2783
|
};
|
|
2784
2784
|
const deserializeAws_restJson1AnalyzedResourceSummary = (output, context) => {
|
|
2785
2785
|
return {
|
|
2786
|
-
resourceArn: smithy_client_1.expectString(output.resourceArn),
|
|
2787
|
-
resourceOwnerAccount: smithy_client_1.expectString(output.resourceOwnerAccount),
|
|
2788
|
-
resourceType: smithy_client_1.expectString(output.resourceType),
|
|
2786
|
+
resourceArn: (0, smithy_client_1.expectString)(output.resourceArn),
|
|
2787
|
+
resourceOwnerAccount: (0, smithy_client_1.expectString)(output.resourceOwnerAccount),
|
|
2788
|
+
resourceType: (0, smithy_client_1.expectString)(output.resourceType),
|
|
2789
2789
|
};
|
|
2790
2790
|
};
|
|
2791
2791
|
const deserializeAws_restJson1AnalyzersList = (output, context) => {
|
|
@@ -2801,23 +2801,23 @@ const deserializeAws_restJson1AnalyzersList = (output, context) => {
|
|
|
2801
2801
|
};
|
|
2802
2802
|
const deserializeAws_restJson1AnalyzerSummary = (output, context) => {
|
|
2803
2803
|
return {
|
|
2804
|
-
arn: smithy_client_1.expectString(output.arn),
|
|
2804
|
+
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
2805
2805
|
createdAt: output.createdAt !== undefined && output.createdAt !== null
|
|
2806
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.createdAt))
|
|
2806
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.createdAt))
|
|
2807
2807
|
: undefined,
|
|
2808
|
-
lastResourceAnalyzed: smithy_client_1.expectString(output.lastResourceAnalyzed),
|
|
2808
|
+
lastResourceAnalyzed: (0, smithy_client_1.expectString)(output.lastResourceAnalyzed),
|
|
2809
2809
|
lastResourceAnalyzedAt: output.lastResourceAnalyzedAt !== undefined && output.lastResourceAnalyzedAt !== null
|
|
2810
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.lastResourceAnalyzedAt))
|
|
2810
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.lastResourceAnalyzedAt))
|
|
2811
2811
|
: undefined,
|
|
2812
|
-
name: smithy_client_1.expectString(output.name),
|
|
2813
|
-
status: smithy_client_1.expectString(output.status),
|
|
2812
|
+
name: (0, smithy_client_1.expectString)(output.name),
|
|
2813
|
+
status: (0, smithy_client_1.expectString)(output.status),
|
|
2814
2814
|
statusReason: output.statusReason !== undefined && output.statusReason !== null
|
|
2815
2815
|
? deserializeAws_restJson1StatusReason(output.statusReason, context)
|
|
2816
2816
|
: undefined,
|
|
2817
2817
|
tags: output.tags !== undefined && output.tags !== null
|
|
2818
2818
|
? deserializeAws_restJson1TagsMap(output.tags, context)
|
|
2819
2819
|
: undefined,
|
|
2820
|
-
type: smithy_client_1.expectString(output.type),
|
|
2820
|
+
type: (0, smithy_client_1.expectString)(output.type),
|
|
2821
2821
|
};
|
|
2822
2822
|
};
|
|
2823
2823
|
const deserializeAws_restJson1ArchiveRulesList = (output, context) => {
|
|
@@ -2834,24 +2834,24 @@ const deserializeAws_restJson1ArchiveRulesList = (output, context) => {
|
|
|
2834
2834
|
const deserializeAws_restJson1ArchiveRuleSummary = (output, context) => {
|
|
2835
2835
|
return {
|
|
2836
2836
|
createdAt: output.createdAt !== undefined && output.createdAt !== null
|
|
2837
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.createdAt))
|
|
2837
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.createdAt))
|
|
2838
2838
|
: undefined,
|
|
2839
2839
|
filter: output.filter !== undefined && output.filter !== null
|
|
2840
2840
|
? deserializeAws_restJson1FilterCriteriaMap(output.filter, context)
|
|
2841
2841
|
: undefined,
|
|
2842
|
-
ruleName: smithy_client_1.expectString(output.ruleName),
|
|
2842
|
+
ruleName: (0, smithy_client_1.expectString)(output.ruleName),
|
|
2843
2843
|
updatedAt: output.updatedAt !== undefined && output.updatedAt !== null
|
|
2844
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.updatedAt))
|
|
2844
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.updatedAt))
|
|
2845
2845
|
: undefined,
|
|
2846
2846
|
};
|
|
2847
2847
|
};
|
|
2848
2848
|
const deserializeAws_restJson1CloudTrailProperties = (output, context) => {
|
|
2849
2849
|
return {
|
|
2850
2850
|
endTime: output.endTime !== undefined && output.endTime !== null
|
|
2851
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.endTime))
|
|
2851
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.endTime))
|
|
2852
2852
|
: undefined,
|
|
2853
2853
|
startTime: output.startTime !== undefined && output.startTime !== null
|
|
2854
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.startTime))
|
|
2854
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.startTime))
|
|
2855
2855
|
: undefined,
|
|
2856
2856
|
trailProperties: output.trailProperties !== undefined && output.trailProperties !== null
|
|
2857
2857
|
? deserializeAws_restJson1TrailPropertiesList(output.trailProperties, context)
|
|
@@ -2865,7 +2865,7 @@ const deserializeAws_restJson1ConditionKeyMap = (output, context) => {
|
|
|
2865
2865
|
}
|
|
2866
2866
|
return {
|
|
2867
2867
|
...acc,
|
|
2868
|
-
[key]: smithy_client_1.expectString(value),
|
|
2868
|
+
[key]: (0, smithy_client_1.expectString)(value),
|
|
2869
2869
|
};
|
|
2870
2870
|
}, {});
|
|
2871
2871
|
};
|
|
@@ -2904,7 +2904,7 @@ const deserializeAws_restJson1ConfigurationsMap = (output, context) => {
|
|
|
2904
2904
|
}
|
|
2905
2905
|
return {
|
|
2906
2906
|
...acc,
|
|
2907
|
-
[key]: deserializeAws_restJson1Configuration(smithy_client_1.expectUnion(value), context),
|
|
2907
|
+
[key]: deserializeAws_restJson1Configuration((0, smithy_client_1.expectUnion)(value), context),
|
|
2908
2908
|
};
|
|
2909
2909
|
}, {});
|
|
2910
2910
|
};
|
|
@@ -2914,7 +2914,7 @@ const deserializeAws_restJson1Criterion = (output, context) => {
|
|
|
2914
2914
|
? deserializeAws_restJson1ValueList(output.contains, context)
|
|
2915
2915
|
: undefined,
|
|
2916
2916
|
eq: output.eq !== undefined && output.eq !== null ? deserializeAws_restJson1ValueList(output.eq, context) : undefined,
|
|
2917
|
-
exists: smithy_client_1.expectBoolean(output.exists),
|
|
2917
|
+
exists: (0, smithy_client_1.expectBoolean)(output.exists),
|
|
2918
2918
|
neq: output.neq !== undefined && output.neq !== null
|
|
2919
2919
|
? deserializeAws_restJson1ValueList(output.neq, context)
|
|
2920
2920
|
: undefined,
|
|
@@ -2937,29 +2937,29 @@ const deserializeAws_restJson1Finding = (output, context) => {
|
|
|
2937
2937
|
? deserializeAws_restJson1ActionList(output.action, context)
|
|
2938
2938
|
: undefined,
|
|
2939
2939
|
analyzedAt: output.analyzedAt !== undefined && output.analyzedAt !== null
|
|
2940
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.analyzedAt))
|
|
2940
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.analyzedAt))
|
|
2941
2941
|
: undefined,
|
|
2942
2942
|
condition: output.condition !== undefined && output.condition !== null
|
|
2943
2943
|
? deserializeAws_restJson1ConditionKeyMap(output.condition, context)
|
|
2944
2944
|
: undefined,
|
|
2945
2945
|
createdAt: output.createdAt !== undefined && output.createdAt !== null
|
|
2946
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.createdAt))
|
|
2946
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.createdAt))
|
|
2947
2947
|
: undefined,
|
|
2948
|
-
error: smithy_client_1.expectString(output.error),
|
|
2949
|
-
id: smithy_client_1.expectString(output.id),
|
|
2950
|
-
isPublic: smithy_client_1.expectBoolean(output.isPublic),
|
|
2948
|
+
error: (0, smithy_client_1.expectString)(output.error),
|
|
2949
|
+
id: (0, smithy_client_1.expectString)(output.id),
|
|
2950
|
+
isPublic: (0, smithy_client_1.expectBoolean)(output.isPublic),
|
|
2951
2951
|
principal: output.principal !== undefined && output.principal !== null
|
|
2952
2952
|
? deserializeAws_restJson1PrincipalMap(output.principal, context)
|
|
2953
2953
|
: undefined,
|
|
2954
|
-
resource: smithy_client_1.expectString(output.resource),
|
|
2955
|
-
resourceOwnerAccount: smithy_client_1.expectString(output.resourceOwnerAccount),
|
|
2956
|
-
resourceType: smithy_client_1.expectString(output.resourceType),
|
|
2954
|
+
resource: (0, smithy_client_1.expectString)(output.resource),
|
|
2955
|
+
resourceOwnerAccount: (0, smithy_client_1.expectString)(output.resourceOwnerAccount),
|
|
2956
|
+
resourceType: (0, smithy_client_1.expectString)(output.resourceType),
|
|
2957
2957
|
sources: output.sources !== undefined && output.sources !== null
|
|
2958
2958
|
? deserializeAws_restJson1FindingSourceList(output.sources, context)
|
|
2959
2959
|
: undefined,
|
|
2960
|
-
status: smithy_client_1.expectString(output.status),
|
|
2960
|
+
status: (0, smithy_client_1.expectString)(output.status),
|
|
2961
2961
|
updatedAt: output.updatedAt !== undefined && output.updatedAt !== null
|
|
2962
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.updatedAt))
|
|
2962
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.updatedAt))
|
|
2963
2963
|
: undefined,
|
|
2964
2964
|
};
|
|
2965
2965
|
};
|
|
@@ -2979,12 +2979,12 @@ const deserializeAws_restJson1FindingSource = (output, context) => {
|
|
|
2979
2979
|
detail: output.detail !== undefined && output.detail !== null
|
|
2980
2980
|
? deserializeAws_restJson1FindingSourceDetail(output.detail, context)
|
|
2981
2981
|
: undefined,
|
|
2982
|
-
type: smithy_client_1.expectString(output.type),
|
|
2982
|
+
type: (0, smithy_client_1.expectString)(output.type),
|
|
2983
2983
|
};
|
|
2984
2984
|
};
|
|
2985
2985
|
const deserializeAws_restJson1FindingSourceDetail = (output, context) => {
|
|
2986
2986
|
return {
|
|
2987
|
-
accessPointArn: smithy_client_1.expectString(output.accessPointArn),
|
|
2987
|
+
accessPointArn: (0, smithy_client_1.expectString)(output.accessPointArn),
|
|
2988
2988
|
};
|
|
2989
2989
|
};
|
|
2990
2990
|
const deserializeAws_restJson1FindingSourceList = (output, context) => {
|
|
@@ -3004,35 +3004,35 @@ const deserializeAws_restJson1FindingSummary = (output, context) => {
|
|
|
3004
3004
|
? deserializeAws_restJson1ActionList(output.action, context)
|
|
3005
3005
|
: undefined,
|
|
3006
3006
|
analyzedAt: output.analyzedAt !== undefined && output.analyzedAt !== null
|
|
3007
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.analyzedAt))
|
|
3007
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.analyzedAt))
|
|
3008
3008
|
: undefined,
|
|
3009
3009
|
condition: output.condition !== undefined && output.condition !== null
|
|
3010
3010
|
? deserializeAws_restJson1ConditionKeyMap(output.condition, context)
|
|
3011
3011
|
: undefined,
|
|
3012
3012
|
createdAt: output.createdAt !== undefined && output.createdAt !== null
|
|
3013
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.createdAt))
|
|
3013
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.createdAt))
|
|
3014
3014
|
: undefined,
|
|
3015
|
-
error: smithy_client_1.expectString(output.error),
|
|
3016
|
-
id: smithy_client_1.expectString(output.id),
|
|
3017
|
-
isPublic: smithy_client_1.expectBoolean(output.isPublic),
|
|
3015
|
+
error: (0, smithy_client_1.expectString)(output.error),
|
|
3016
|
+
id: (0, smithy_client_1.expectString)(output.id),
|
|
3017
|
+
isPublic: (0, smithy_client_1.expectBoolean)(output.isPublic),
|
|
3018
3018
|
principal: output.principal !== undefined && output.principal !== null
|
|
3019
3019
|
? deserializeAws_restJson1PrincipalMap(output.principal, context)
|
|
3020
3020
|
: undefined,
|
|
3021
|
-
resource: smithy_client_1.expectString(output.resource),
|
|
3022
|
-
resourceOwnerAccount: smithy_client_1.expectString(output.resourceOwnerAccount),
|
|
3023
|
-
resourceType: smithy_client_1.expectString(output.resourceType),
|
|
3021
|
+
resource: (0, smithy_client_1.expectString)(output.resource),
|
|
3022
|
+
resourceOwnerAccount: (0, smithy_client_1.expectString)(output.resourceOwnerAccount),
|
|
3023
|
+
resourceType: (0, smithy_client_1.expectString)(output.resourceType),
|
|
3024
3024
|
sources: output.sources !== undefined && output.sources !== null
|
|
3025
3025
|
? deserializeAws_restJson1FindingSourceList(output.sources, context)
|
|
3026
3026
|
: undefined,
|
|
3027
|
-
status: smithy_client_1.expectString(output.status),
|
|
3027
|
+
status: (0, smithy_client_1.expectString)(output.status),
|
|
3028
3028
|
updatedAt: output.updatedAt !== undefined && output.updatedAt !== null
|
|
3029
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.updatedAt))
|
|
3029
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.updatedAt))
|
|
3030
3030
|
: undefined,
|
|
3031
3031
|
};
|
|
3032
3032
|
};
|
|
3033
3033
|
const deserializeAws_restJson1GeneratedPolicy = (output, context) => {
|
|
3034
3034
|
return {
|
|
3035
|
-
policy: smithy_client_1.expectString(output.policy),
|
|
3035
|
+
policy: (0, smithy_client_1.expectString)(output.policy),
|
|
3036
3036
|
};
|
|
3037
3037
|
};
|
|
3038
3038
|
const deserializeAws_restJson1GeneratedPolicyList = (output, context) => {
|
|
@@ -3051,8 +3051,8 @@ const deserializeAws_restJson1GeneratedPolicyProperties = (output, context) => {
|
|
|
3051
3051
|
cloudTrailProperties: output.cloudTrailProperties !== undefined && output.cloudTrailProperties !== null
|
|
3052
3052
|
? deserializeAws_restJson1CloudTrailProperties(output.cloudTrailProperties, context)
|
|
3053
3053
|
: undefined,
|
|
3054
|
-
isComplete: smithy_client_1.expectBoolean(output.isComplete),
|
|
3055
|
-
principalArn: smithy_client_1.expectString(output.principalArn),
|
|
3054
|
+
isComplete: (0, smithy_client_1.expectBoolean)(output.isComplete),
|
|
3055
|
+
principalArn: (0, smithy_client_1.expectString)(output.principalArn),
|
|
3056
3056
|
};
|
|
3057
3057
|
};
|
|
3058
3058
|
const deserializeAws_restJson1GeneratedPolicyResult = (output, context) => {
|
|
@@ -3067,7 +3067,7 @@ const deserializeAws_restJson1GeneratedPolicyResult = (output, context) => {
|
|
|
3067
3067
|
};
|
|
3068
3068
|
const deserializeAws_restJson1IamRoleConfiguration = (output, context) => {
|
|
3069
3069
|
return {
|
|
3070
|
-
trustPolicy: smithy_client_1.expectString(output.trustPolicy),
|
|
3070
|
+
trustPolicy: (0, smithy_client_1.expectString)(output.trustPolicy),
|
|
3071
3071
|
};
|
|
3072
3072
|
};
|
|
3073
3073
|
const deserializeAws_restJson1InternetConfiguration = (output, context) => {
|
|
@@ -3076,22 +3076,22 @@ const deserializeAws_restJson1InternetConfiguration = (output, context) => {
|
|
|
3076
3076
|
const deserializeAws_restJson1JobDetails = (output, context) => {
|
|
3077
3077
|
return {
|
|
3078
3078
|
completedOn: output.completedOn !== undefined && output.completedOn !== null
|
|
3079
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.completedOn))
|
|
3079
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.completedOn))
|
|
3080
3080
|
: undefined,
|
|
3081
3081
|
jobError: output.jobError !== undefined && output.jobError !== null
|
|
3082
3082
|
? deserializeAws_restJson1JobError(output.jobError, context)
|
|
3083
3083
|
: undefined,
|
|
3084
|
-
jobId: smithy_client_1.expectString(output.jobId),
|
|
3084
|
+
jobId: (0, smithy_client_1.expectString)(output.jobId),
|
|
3085
3085
|
startedOn: output.startedOn !== undefined && output.startedOn !== null
|
|
3086
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.startedOn))
|
|
3086
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.startedOn))
|
|
3087
3087
|
: undefined,
|
|
3088
|
-
status: smithy_client_1.expectString(output.status),
|
|
3088
|
+
status: (0, smithy_client_1.expectString)(output.status),
|
|
3089
3089
|
};
|
|
3090
3090
|
};
|
|
3091
3091
|
const deserializeAws_restJson1JobError = (output, context) => {
|
|
3092
3092
|
return {
|
|
3093
|
-
code: smithy_client_1.expectString(output.code),
|
|
3094
|
-
message: smithy_client_1.expectString(output.message),
|
|
3093
|
+
code: (0, smithy_client_1.expectString)(output.code),
|
|
3094
|
+
message: (0, smithy_client_1.expectString)(output.message),
|
|
3095
3095
|
};
|
|
3096
3096
|
};
|
|
3097
3097
|
const deserializeAws_restJson1KmsConstraintsMap = (output, context) => {
|
|
@@ -3101,7 +3101,7 @@ const deserializeAws_restJson1KmsConstraintsMap = (output, context) => {
|
|
|
3101
3101
|
}
|
|
3102
3102
|
return {
|
|
3103
3103
|
...acc,
|
|
3104
|
-
[key]: smithy_client_1.expectString(value),
|
|
3104
|
+
[key]: (0, smithy_client_1.expectString)(value),
|
|
3105
3105
|
};
|
|
3106
3106
|
}, {});
|
|
3107
3107
|
};
|
|
@@ -3110,12 +3110,12 @@ const deserializeAws_restJson1KmsGrantConfiguration = (output, context) => {
|
|
|
3110
3110
|
constraints: output.constraints !== undefined && output.constraints !== null
|
|
3111
3111
|
? deserializeAws_restJson1KmsGrantConstraints(output.constraints, context)
|
|
3112
3112
|
: undefined,
|
|
3113
|
-
granteePrincipal: smithy_client_1.expectString(output.granteePrincipal),
|
|
3114
|
-
issuingAccount: smithy_client_1.expectString(output.issuingAccount),
|
|
3113
|
+
granteePrincipal: (0, smithy_client_1.expectString)(output.granteePrincipal),
|
|
3114
|
+
issuingAccount: (0, smithy_client_1.expectString)(output.issuingAccount),
|
|
3115
3115
|
operations: output.operations !== undefined && output.operations !== null
|
|
3116
3116
|
? deserializeAws_restJson1KmsGrantOperationsList(output.operations, context)
|
|
3117
3117
|
: undefined,
|
|
3118
|
-
retiringPrincipal: smithy_client_1.expectString(output.retiringPrincipal),
|
|
3118
|
+
retiringPrincipal: (0, smithy_client_1.expectString)(output.retiringPrincipal),
|
|
3119
3119
|
};
|
|
3120
3120
|
};
|
|
3121
3121
|
const deserializeAws_restJson1KmsGrantConfigurationsList = (output, context) => {
|
|
@@ -3146,7 +3146,7 @@ const deserializeAws_restJson1KmsGrantOperationsList = (output, context) => {
|
|
|
3146
3146
|
if (entry === null) {
|
|
3147
3147
|
return null;
|
|
3148
3148
|
}
|
|
3149
|
-
return smithy_client_1.expectString(entry);
|
|
3149
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
3150
3150
|
});
|
|
3151
3151
|
return retVal;
|
|
3152
3152
|
};
|
|
@@ -3167,7 +3167,7 @@ const deserializeAws_restJson1KmsKeyPoliciesMap = (output, context) => {
|
|
|
3167
3167
|
}
|
|
3168
3168
|
return {
|
|
3169
3169
|
...acc,
|
|
3170
|
-
[key]: smithy_client_1.expectString(value),
|
|
3170
|
+
[key]: (0, smithy_client_1.expectString)(value),
|
|
3171
3171
|
};
|
|
3172
3172
|
}, {});
|
|
3173
3173
|
};
|
|
@@ -3206,19 +3206,19 @@ const deserializeAws_restJson1NetworkOriginConfiguration = (output, context) =>
|
|
|
3206
3206
|
return { $unknown: Object.entries(output)[0] };
|
|
3207
3207
|
};
|
|
3208
3208
|
const deserializeAws_restJson1PathElement = (output, context) => {
|
|
3209
|
-
if (smithy_client_1.expectInt32(output.index) !== undefined) {
|
|
3210
|
-
return { index: smithy_client_1.expectInt32(output.index) };
|
|
3209
|
+
if ((0, smithy_client_1.expectInt32)(output.index) !== undefined) {
|
|
3210
|
+
return { index: (0, smithy_client_1.expectInt32)(output.index) };
|
|
3211
3211
|
}
|
|
3212
|
-
if (smithy_client_1.expectString(output.key) !== undefined) {
|
|
3213
|
-
return { key: smithy_client_1.expectString(output.key) };
|
|
3212
|
+
if ((0, smithy_client_1.expectString)(output.key) !== undefined) {
|
|
3213
|
+
return { key: (0, smithy_client_1.expectString)(output.key) };
|
|
3214
3214
|
}
|
|
3215
3215
|
if (output.substring !== undefined && output.substring !== null) {
|
|
3216
3216
|
return {
|
|
3217
3217
|
substring: deserializeAws_restJson1Substring(output.substring, context),
|
|
3218
3218
|
};
|
|
3219
3219
|
}
|
|
3220
|
-
if (smithy_client_1.expectString(output.value) !== undefined) {
|
|
3221
|
-
return { value: smithy_client_1.expectString(output.value) };
|
|
3220
|
+
if ((0, smithy_client_1.expectString)(output.value) !== undefined) {
|
|
3221
|
+
return { value: (0, smithy_client_1.expectString)(output.value) };
|
|
3222
3222
|
}
|
|
3223
3223
|
return { $unknown: Object.entries(output)[0] };
|
|
3224
3224
|
};
|
|
@@ -3229,21 +3229,21 @@ const deserializeAws_restJson1PathElementList = (output, context) => {
|
|
|
3229
3229
|
if (entry === null) {
|
|
3230
3230
|
return null;
|
|
3231
3231
|
}
|
|
3232
|
-
return deserializeAws_restJson1PathElement(smithy_client_1.expectUnion(entry), context);
|
|
3232
|
+
return deserializeAws_restJson1PathElement((0, smithy_client_1.expectUnion)(entry), context);
|
|
3233
3233
|
});
|
|
3234
3234
|
return retVal;
|
|
3235
3235
|
};
|
|
3236
3236
|
const deserializeAws_restJson1PolicyGeneration = (output, context) => {
|
|
3237
3237
|
return {
|
|
3238
3238
|
completedOn: output.completedOn !== undefined && output.completedOn !== null
|
|
3239
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.completedOn))
|
|
3239
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.completedOn))
|
|
3240
3240
|
: undefined,
|
|
3241
|
-
jobId: smithy_client_1.expectString(output.jobId),
|
|
3242
|
-
principalArn: smithy_client_1.expectString(output.principalArn),
|
|
3241
|
+
jobId: (0, smithy_client_1.expectString)(output.jobId),
|
|
3242
|
+
principalArn: (0, smithy_client_1.expectString)(output.principalArn),
|
|
3243
3243
|
startedOn: output.startedOn !== undefined && output.startedOn !== null
|
|
3244
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.startedOn))
|
|
3244
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.startedOn))
|
|
3245
3245
|
: undefined,
|
|
3246
|
-
status: smithy_client_1.expectString(output.status),
|
|
3246
|
+
status: (0, smithy_client_1.expectString)(output.status),
|
|
3247
3247
|
};
|
|
3248
3248
|
};
|
|
3249
3249
|
const deserializeAws_restJson1PolicyGenerationList = (output, context) => {
|
|
@@ -3259,9 +3259,9 @@ const deserializeAws_restJson1PolicyGenerationList = (output, context) => {
|
|
|
3259
3259
|
};
|
|
3260
3260
|
const deserializeAws_restJson1Position = (output, context) => {
|
|
3261
3261
|
return {
|
|
3262
|
-
column: smithy_client_1.expectInt32(output.column),
|
|
3263
|
-
line: smithy_client_1.expectInt32(output.line),
|
|
3264
|
-
offset: smithy_client_1.expectInt32(output.offset),
|
|
3262
|
+
column: (0, smithy_client_1.expectInt32)(output.column),
|
|
3263
|
+
line: (0, smithy_client_1.expectInt32)(output.line),
|
|
3264
|
+
offset: (0, smithy_client_1.expectInt32)(output.offset),
|
|
3265
3265
|
};
|
|
3266
3266
|
};
|
|
3267
3267
|
const deserializeAws_restJson1PrincipalMap = (output, context) => {
|
|
@@ -3271,7 +3271,7 @@ const deserializeAws_restJson1PrincipalMap = (output, context) => {
|
|
|
3271
3271
|
}
|
|
3272
3272
|
return {
|
|
3273
3273
|
...acc,
|
|
3274
|
-
[key]: smithy_client_1.expectString(value),
|
|
3274
|
+
[key]: (0, smithy_client_1.expectString)(value),
|
|
3275
3275
|
};
|
|
3276
3276
|
}, {});
|
|
3277
3277
|
};
|
|
@@ -3282,15 +3282,15 @@ const deserializeAws_restJson1RegionList = (output, context) => {
|
|
|
3282
3282
|
if (entry === null) {
|
|
3283
3283
|
return null;
|
|
3284
3284
|
}
|
|
3285
|
-
return smithy_client_1.expectString(entry);
|
|
3285
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
3286
3286
|
});
|
|
3287
3287
|
return retVal;
|
|
3288
3288
|
};
|
|
3289
3289
|
const deserializeAws_restJson1S3AccessPointConfiguration = (output, context) => {
|
|
3290
3290
|
return {
|
|
3291
|
-
accessPointPolicy: smithy_client_1.expectString(output.accessPointPolicy),
|
|
3291
|
+
accessPointPolicy: (0, smithy_client_1.expectString)(output.accessPointPolicy),
|
|
3292
3292
|
networkOrigin: output.networkOrigin !== undefined && output.networkOrigin !== null
|
|
3293
|
-
? deserializeAws_restJson1NetworkOriginConfiguration(smithy_client_1.expectUnion(output.networkOrigin), context)
|
|
3293
|
+
? deserializeAws_restJson1NetworkOriginConfiguration((0, smithy_client_1.expectUnion)(output.networkOrigin), context)
|
|
3294
3294
|
: undefined,
|
|
3295
3295
|
publicAccessBlock: output.publicAccessBlock !== undefined && output.publicAccessBlock !== null
|
|
3296
3296
|
? deserializeAws_restJson1S3PublicAccessBlockConfiguration(output.publicAccessBlock, context)
|
|
@@ -3311,9 +3311,9 @@ const deserializeAws_restJson1S3AccessPointConfigurationsMap = (output, context)
|
|
|
3311
3311
|
const deserializeAws_restJson1S3BucketAclGrantConfiguration = (output, context) => {
|
|
3312
3312
|
return {
|
|
3313
3313
|
grantee: output.grantee !== undefined && output.grantee !== null
|
|
3314
|
-
? deserializeAws_restJson1AclGrantee(smithy_client_1.expectUnion(output.grantee), context)
|
|
3314
|
+
? deserializeAws_restJson1AclGrantee((0, smithy_client_1.expectUnion)(output.grantee), context)
|
|
3315
3315
|
: undefined,
|
|
3316
|
-
permission: smithy_client_1.expectString(output.permission),
|
|
3316
|
+
permission: (0, smithy_client_1.expectString)(output.permission),
|
|
3317
3317
|
};
|
|
3318
3318
|
};
|
|
3319
3319
|
const deserializeAws_restJson1S3BucketAclGrantConfigurationsList = (output, context) => {
|
|
@@ -3335,7 +3335,7 @@ const deserializeAws_restJson1S3BucketConfiguration = (output, context) => {
|
|
|
3335
3335
|
bucketAclGrants: output.bucketAclGrants !== undefined && output.bucketAclGrants !== null
|
|
3336
3336
|
? deserializeAws_restJson1S3BucketAclGrantConfigurationsList(output.bucketAclGrants, context)
|
|
3337
3337
|
: undefined,
|
|
3338
|
-
bucketPolicy: smithy_client_1.expectString(output.bucketPolicy),
|
|
3338
|
+
bucketPolicy: (0, smithy_client_1.expectString)(output.bucketPolicy),
|
|
3339
3339
|
bucketPublicAccessBlock: output.bucketPublicAccessBlock !== undefined && output.bucketPublicAccessBlock !== null
|
|
3340
3340
|
? deserializeAws_restJson1S3PublicAccessBlockConfiguration(output.bucketPublicAccessBlock, context)
|
|
3341
3341
|
: undefined,
|
|
@@ -3343,14 +3343,14 @@ const deserializeAws_restJson1S3BucketConfiguration = (output, context) => {
|
|
|
3343
3343
|
};
|
|
3344
3344
|
const deserializeAws_restJson1S3PublicAccessBlockConfiguration = (output, context) => {
|
|
3345
3345
|
return {
|
|
3346
|
-
ignorePublicAcls: smithy_client_1.expectBoolean(output.ignorePublicAcls),
|
|
3347
|
-
restrictPublicBuckets: smithy_client_1.expectBoolean(output.restrictPublicBuckets),
|
|
3346
|
+
ignorePublicAcls: (0, smithy_client_1.expectBoolean)(output.ignorePublicAcls),
|
|
3347
|
+
restrictPublicBuckets: (0, smithy_client_1.expectBoolean)(output.restrictPublicBuckets),
|
|
3348
3348
|
};
|
|
3349
3349
|
};
|
|
3350
3350
|
const deserializeAws_restJson1SecretsManagerSecretConfiguration = (output, context) => {
|
|
3351
3351
|
return {
|
|
3352
|
-
kmsKeyId: smithy_client_1.expectString(output.kmsKeyId),
|
|
3353
|
-
secretPolicy: smithy_client_1.expectString(output.secretPolicy),
|
|
3352
|
+
kmsKeyId: (0, smithy_client_1.expectString)(output.kmsKeyId),
|
|
3353
|
+
secretPolicy: (0, smithy_client_1.expectString)(output.secretPolicy),
|
|
3354
3354
|
};
|
|
3355
3355
|
};
|
|
3356
3356
|
const deserializeAws_restJson1SharedViaList = (output, context) => {
|
|
@@ -3360,7 +3360,7 @@ const deserializeAws_restJson1SharedViaList = (output, context) => {
|
|
|
3360
3360
|
if (entry === null) {
|
|
3361
3361
|
return null;
|
|
3362
3362
|
}
|
|
3363
|
-
return smithy_client_1.expectString(entry);
|
|
3363
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
3364
3364
|
});
|
|
3365
3365
|
return retVal;
|
|
3366
3366
|
};
|
|
@@ -3376,18 +3376,18 @@ const deserializeAws_restJson1Span = (output, context) => {
|
|
|
3376
3376
|
};
|
|
3377
3377
|
const deserializeAws_restJson1SqsQueueConfiguration = (output, context) => {
|
|
3378
3378
|
return {
|
|
3379
|
-
queuePolicy: smithy_client_1.expectString(output.queuePolicy),
|
|
3379
|
+
queuePolicy: (0, smithy_client_1.expectString)(output.queuePolicy),
|
|
3380
3380
|
};
|
|
3381
3381
|
};
|
|
3382
3382
|
const deserializeAws_restJson1StatusReason = (output, context) => {
|
|
3383
3383
|
return {
|
|
3384
|
-
code: smithy_client_1.expectString(output.code),
|
|
3384
|
+
code: (0, smithy_client_1.expectString)(output.code),
|
|
3385
3385
|
};
|
|
3386
3386
|
};
|
|
3387
3387
|
const deserializeAws_restJson1Substring = (output, context) => {
|
|
3388
3388
|
return {
|
|
3389
|
-
length: smithy_client_1.expectInt32(output.length),
|
|
3390
|
-
start: smithy_client_1.expectInt32(output.start),
|
|
3389
|
+
length: (0, smithy_client_1.expectInt32)(output.length),
|
|
3390
|
+
start: (0, smithy_client_1.expectInt32)(output.start),
|
|
3391
3391
|
};
|
|
3392
3392
|
};
|
|
3393
3393
|
const deserializeAws_restJson1TagsMap = (output, context) => {
|
|
@@ -3397,14 +3397,14 @@ const deserializeAws_restJson1TagsMap = (output, context) => {
|
|
|
3397
3397
|
}
|
|
3398
3398
|
return {
|
|
3399
3399
|
...acc,
|
|
3400
|
-
[key]: smithy_client_1.expectString(value),
|
|
3400
|
+
[key]: (0, smithy_client_1.expectString)(value),
|
|
3401
3401
|
};
|
|
3402
3402
|
}, {});
|
|
3403
3403
|
};
|
|
3404
3404
|
const deserializeAws_restJson1TrailProperties = (output, context) => {
|
|
3405
3405
|
return {
|
|
3406
|
-
allRegions: smithy_client_1.expectBoolean(output.allRegions),
|
|
3407
|
-
cloudTrailArn: smithy_client_1.expectString(output.cloudTrailArn),
|
|
3406
|
+
allRegions: (0, smithy_client_1.expectBoolean)(output.allRegions),
|
|
3407
|
+
cloudTrailArn: (0, smithy_client_1.expectString)(output.cloudTrailArn),
|
|
3408
3408
|
regions: output.regions !== undefined && output.regions !== null
|
|
3409
3409
|
? deserializeAws_restJson1RegionList(output.regions, context)
|
|
3410
3410
|
: undefined,
|
|
@@ -3423,10 +3423,10 @@ const deserializeAws_restJson1TrailPropertiesList = (output, context) => {
|
|
|
3423
3423
|
};
|
|
3424
3424
|
const deserializeAws_restJson1ValidatePolicyFinding = (output, context) => {
|
|
3425
3425
|
return {
|
|
3426
|
-
findingDetails: smithy_client_1.expectString(output.findingDetails),
|
|
3427
|
-
findingType: smithy_client_1.expectString(output.findingType),
|
|
3428
|
-
issueCode: smithy_client_1.expectString(output.issueCode),
|
|
3429
|
-
learnMoreLink: smithy_client_1.expectString(output.learnMoreLink),
|
|
3426
|
+
findingDetails: (0, smithy_client_1.expectString)(output.findingDetails),
|
|
3427
|
+
findingType: (0, smithy_client_1.expectString)(output.findingType),
|
|
3428
|
+
issueCode: (0, smithy_client_1.expectString)(output.issueCode),
|
|
3429
|
+
learnMoreLink: (0, smithy_client_1.expectString)(output.learnMoreLink),
|
|
3430
3430
|
locations: output.locations !== undefined && output.locations !== null
|
|
3431
3431
|
? deserializeAws_restJson1LocationList(output.locations, context)
|
|
3432
3432
|
: undefined,
|
|
@@ -3445,8 +3445,8 @@ const deserializeAws_restJson1ValidatePolicyFindingList = (output, context) => {
|
|
|
3445
3445
|
};
|
|
3446
3446
|
const deserializeAws_restJson1ValidationExceptionField = (output, context) => {
|
|
3447
3447
|
return {
|
|
3448
|
-
message: smithy_client_1.expectString(output.message),
|
|
3449
|
-
name: smithy_client_1.expectString(output.name),
|
|
3448
|
+
message: (0, smithy_client_1.expectString)(output.message),
|
|
3449
|
+
name: (0, smithy_client_1.expectString)(output.name),
|
|
3450
3450
|
};
|
|
3451
3451
|
};
|
|
3452
3452
|
const deserializeAws_restJson1ValidationExceptionFieldList = (output, context) => {
|
|
@@ -3467,13 +3467,13 @@ const deserializeAws_restJson1ValueList = (output, context) => {
|
|
|
3467
3467
|
if (entry === null) {
|
|
3468
3468
|
return null;
|
|
3469
3469
|
}
|
|
3470
|
-
return smithy_client_1.expectString(entry);
|
|
3470
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
3471
3471
|
});
|
|
3472
3472
|
return retVal;
|
|
3473
3473
|
};
|
|
3474
3474
|
const deserializeAws_restJson1VpcConfiguration = (output, context) => {
|
|
3475
3475
|
return {
|
|
3476
|
-
vpcId: smithy_client_1.expectString(output.vpcId),
|
|
3476
|
+
vpcId: (0, smithy_client_1.expectString)(output.vpcId),
|
|
3477
3477
|
};
|
|
3478
3478
|
};
|
|
3479
3479
|
const deserializeMetadata = (output) => {
|