@aws-sdk/client-accessanalyzer 3.306.0 → 3.309.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/commands/ApplyArchiveRuleCommand.js +2 -2
- package/dist-cjs/commands/CancelPolicyGenerationCommand.js +2 -2
- package/dist-cjs/commands/CreateAccessPreviewCommand.js +2 -2
- package/dist-cjs/commands/CreateAnalyzerCommand.js +2 -2
- package/dist-cjs/commands/CreateArchiveRuleCommand.js +2 -2
- package/dist-cjs/commands/DeleteAnalyzerCommand.js +2 -2
- package/dist-cjs/commands/DeleteArchiveRuleCommand.js +2 -2
- package/dist-cjs/commands/GetAccessPreviewCommand.js +2 -2
- package/dist-cjs/commands/GetAnalyzedResourceCommand.js +2 -2
- package/dist-cjs/commands/GetAnalyzerCommand.js +2 -2
- package/dist-cjs/commands/GetArchiveRuleCommand.js +2 -2
- package/dist-cjs/commands/GetFindingCommand.js +2 -2
- package/dist-cjs/commands/GetGeneratedPolicyCommand.js +2 -2
- package/dist-cjs/commands/ListAccessPreviewFindingsCommand.js +2 -2
- package/dist-cjs/commands/ListAccessPreviewsCommand.js +2 -2
- package/dist-cjs/commands/ListAnalyzedResourcesCommand.js +2 -2
- package/dist-cjs/commands/ListAnalyzersCommand.js +2 -2
- package/dist-cjs/commands/ListArchiveRulesCommand.js +2 -2
- package/dist-cjs/commands/ListFindingsCommand.js +2 -2
- package/dist-cjs/commands/ListPolicyGenerationsCommand.js +2 -2
- package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
- package/dist-cjs/commands/StartPolicyGenerationCommand.js +2 -2
- package/dist-cjs/commands/StartResourceScanCommand.js +2 -2
- package/dist-cjs/commands/TagResourceCommand.js +2 -2
- package/dist-cjs/commands/UntagResourceCommand.js +2 -2
- package/dist-cjs/commands/UpdateArchiveRuleCommand.js +2 -2
- package/dist-cjs/commands/UpdateFindingsCommand.js +2 -2
- package/dist-cjs/commands/ValidatePolicyCommand.js +2 -2
- package/dist-cjs/protocols/Aws_restJson1.js +617 -663
- package/dist-es/commands/ApplyArchiveRuleCommand.js +3 -3
- package/dist-es/commands/CancelPolicyGenerationCommand.js +3 -3
- package/dist-es/commands/CreateAccessPreviewCommand.js +3 -3
- package/dist-es/commands/CreateAnalyzerCommand.js +3 -3
- package/dist-es/commands/CreateArchiveRuleCommand.js +3 -3
- package/dist-es/commands/DeleteAnalyzerCommand.js +3 -3
- package/dist-es/commands/DeleteArchiveRuleCommand.js +3 -3
- package/dist-es/commands/GetAccessPreviewCommand.js +3 -3
- package/dist-es/commands/GetAnalyzedResourceCommand.js +3 -3
- package/dist-es/commands/GetAnalyzerCommand.js +3 -3
- package/dist-es/commands/GetArchiveRuleCommand.js +3 -3
- package/dist-es/commands/GetFindingCommand.js +3 -3
- package/dist-es/commands/GetGeneratedPolicyCommand.js +3 -3
- package/dist-es/commands/ListAccessPreviewFindingsCommand.js +3 -3
- package/dist-es/commands/ListAccessPreviewsCommand.js +3 -3
- package/dist-es/commands/ListAnalyzedResourcesCommand.js +3 -3
- package/dist-es/commands/ListAnalyzersCommand.js +3 -3
- package/dist-es/commands/ListArchiveRulesCommand.js +3 -3
- package/dist-es/commands/ListFindingsCommand.js +3 -3
- package/dist-es/commands/ListPolicyGenerationsCommand.js +3 -3
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-es/commands/StartPolicyGenerationCommand.js +3 -3
- package/dist-es/commands/StartResourceScanCommand.js +3 -3
- package/dist-es/commands/TagResourceCommand.js +3 -3
- package/dist-es/commands/UntagResourceCommand.js +3 -3
- package/dist-es/commands/UpdateArchiveRuleCommand.js +3 -3
- package/dist-es/commands/UpdateFindingsCommand.js +3 -3
- package/dist-es/commands/ValidatePolicyCommand.js +3 -3
- package/dist-es/protocols/Aws_restJson1.js +559 -605
- package/dist-types/protocols/Aws_restJson1.d.ts +224 -56
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +56 -56
- package/package.json +6 -6
|
@@ -3,7 +3,7 @@ import { decorateServiceException as __decorateServiceException, expectBoolean a
|
|
|
3
3
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
4
4
|
import { AccessAnalyzerServiceException as __BaseException } from "../models/AccessAnalyzerServiceException";
|
|
5
5
|
import { AccessDeniedException, AclGrantee, Configuration, ConflictException, InternalServerException, NetworkOriginConfiguration, RdsDbClusterSnapshotAttributeValue, RdsDbSnapshotAttributeValue, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
6
|
-
export const
|
|
6
|
+
export const se_ApplyArchiveRuleCommand = async (input, context) => {
|
|
7
7
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
8
8
|
const headers = {
|
|
9
9
|
"content-type": "application/json",
|
|
@@ -25,7 +25,7 @@ export const serializeAws_restJson1ApplyArchiveRuleCommand = async (input, conte
|
|
|
25
25
|
body,
|
|
26
26
|
});
|
|
27
27
|
};
|
|
28
|
-
export const
|
|
28
|
+
export const se_CancelPolicyGenerationCommand = async (input, context) => {
|
|
29
29
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
30
30
|
const headers = {};
|
|
31
31
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/policy/generation/{jobId}";
|
|
@@ -41,7 +41,7 @@ export const serializeAws_restJson1CancelPolicyGenerationCommand = async (input,
|
|
|
41
41
|
body,
|
|
42
42
|
});
|
|
43
43
|
};
|
|
44
|
-
export const
|
|
44
|
+
export const se_CreateAccessPreviewCommand = async (input, context) => {
|
|
45
45
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
46
46
|
const headers = {
|
|
47
47
|
"content-type": "application/json",
|
|
@@ -51,9 +51,7 @@ export const serializeAws_restJson1CreateAccessPreviewCommand = async (input, co
|
|
|
51
51
|
body = JSON.stringify({
|
|
52
52
|
...(input.analyzerArn != null && { analyzerArn: input.analyzerArn }),
|
|
53
53
|
clientToken: input.clientToken ?? generateIdempotencyToken(),
|
|
54
|
-
...(input.configurations != null && {
|
|
55
|
-
configurations: serializeAws_restJson1ConfigurationsMap(input.configurations, context),
|
|
56
|
-
}),
|
|
54
|
+
...(input.configurations != null && { configurations: se_ConfigurationsMap(input.configurations, context) }),
|
|
57
55
|
});
|
|
58
56
|
return new __HttpRequest({
|
|
59
57
|
protocol,
|
|
@@ -65,7 +63,7 @@ export const serializeAws_restJson1CreateAccessPreviewCommand = async (input, co
|
|
|
65
63
|
body,
|
|
66
64
|
});
|
|
67
65
|
};
|
|
68
|
-
export const
|
|
66
|
+
export const se_CreateAnalyzerCommand = async (input, context) => {
|
|
69
67
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
70
68
|
const headers = {
|
|
71
69
|
"content-type": "application/json",
|
|
@@ -74,11 +72,9 @@ export const serializeAws_restJson1CreateAnalyzerCommand = async (input, context
|
|
|
74
72
|
let body;
|
|
75
73
|
body = JSON.stringify({
|
|
76
74
|
...(input.analyzerName != null && { analyzerName: input.analyzerName }),
|
|
77
|
-
...(input.archiveRules != null && {
|
|
78
|
-
archiveRules: serializeAws_restJson1InlineArchiveRulesList(input.archiveRules, context),
|
|
79
|
-
}),
|
|
75
|
+
...(input.archiveRules != null && { archiveRules: se_InlineArchiveRulesList(input.archiveRules, context) }),
|
|
80
76
|
clientToken: input.clientToken ?? generateIdempotencyToken(),
|
|
81
|
-
...(input.tags != null && { tags:
|
|
77
|
+
...(input.tags != null && { tags: se_TagsMap(input.tags, context) }),
|
|
82
78
|
...(input.type != null && { type: input.type }),
|
|
83
79
|
});
|
|
84
80
|
return new __HttpRequest({
|
|
@@ -91,7 +87,7 @@ export const serializeAws_restJson1CreateAnalyzerCommand = async (input, context
|
|
|
91
87
|
body,
|
|
92
88
|
});
|
|
93
89
|
};
|
|
94
|
-
export const
|
|
90
|
+
export const se_CreateArchiveRuleCommand = async (input, context) => {
|
|
95
91
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
96
92
|
const headers = {
|
|
97
93
|
"content-type": "application/json",
|
|
@@ -101,7 +97,7 @@ export const serializeAws_restJson1CreateArchiveRuleCommand = async (input, cont
|
|
|
101
97
|
let body;
|
|
102
98
|
body = JSON.stringify({
|
|
103
99
|
clientToken: input.clientToken ?? generateIdempotencyToken(),
|
|
104
|
-
...(input.filter != null && { filter:
|
|
100
|
+
...(input.filter != null && { filter: se_FilterCriteriaMap(input.filter, context) }),
|
|
105
101
|
...(input.ruleName != null && { ruleName: input.ruleName }),
|
|
106
102
|
});
|
|
107
103
|
return new __HttpRequest({
|
|
@@ -114,7 +110,7 @@ export const serializeAws_restJson1CreateArchiveRuleCommand = async (input, cont
|
|
|
114
110
|
body,
|
|
115
111
|
});
|
|
116
112
|
};
|
|
117
|
-
export const
|
|
113
|
+
export const se_DeleteAnalyzerCommand = async (input, context) => {
|
|
118
114
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
119
115
|
const headers = {};
|
|
120
116
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/analyzer/{analyzerName}";
|
|
@@ -134,7 +130,7 @@ export const serializeAws_restJson1DeleteAnalyzerCommand = async (input, context
|
|
|
134
130
|
body,
|
|
135
131
|
});
|
|
136
132
|
};
|
|
137
|
-
export const
|
|
133
|
+
export const se_DeleteArchiveRuleCommand = async (input, context) => {
|
|
138
134
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
139
135
|
const headers = {};
|
|
140
136
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -156,7 +152,7 @@ export const serializeAws_restJson1DeleteArchiveRuleCommand = async (input, cont
|
|
|
156
152
|
body,
|
|
157
153
|
});
|
|
158
154
|
};
|
|
159
|
-
export const
|
|
155
|
+
export const se_GetAccessPreviewCommand = async (input, context) => {
|
|
160
156
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
161
157
|
const headers = {};
|
|
162
158
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/access-preview/{accessPreviewId}";
|
|
@@ -176,7 +172,7 @@ export const serializeAws_restJson1GetAccessPreviewCommand = async (input, conte
|
|
|
176
172
|
body,
|
|
177
173
|
});
|
|
178
174
|
};
|
|
179
|
-
export const
|
|
175
|
+
export const se_GetAnalyzedResourceCommand = async (input, context) => {
|
|
180
176
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
181
177
|
const headers = {};
|
|
182
178
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/analyzed-resource";
|
|
@@ -196,7 +192,7 @@ export const serializeAws_restJson1GetAnalyzedResourceCommand = async (input, co
|
|
|
196
192
|
body,
|
|
197
193
|
});
|
|
198
194
|
};
|
|
199
|
-
export const
|
|
195
|
+
export const se_GetAnalyzerCommand = async (input, context) => {
|
|
200
196
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
201
197
|
const headers = {};
|
|
202
198
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/analyzer/{analyzerName}";
|
|
@@ -212,7 +208,7 @@ export const serializeAws_restJson1GetAnalyzerCommand = async (input, context) =
|
|
|
212
208
|
body,
|
|
213
209
|
});
|
|
214
210
|
};
|
|
215
|
-
export const
|
|
211
|
+
export const se_GetArchiveRuleCommand = async (input, context) => {
|
|
216
212
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
217
213
|
const headers = {};
|
|
218
214
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -230,7 +226,7 @@ export const serializeAws_restJson1GetArchiveRuleCommand = async (input, context
|
|
|
230
226
|
body,
|
|
231
227
|
});
|
|
232
228
|
};
|
|
233
|
-
export const
|
|
229
|
+
export const se_GetFindingCommand = async (input, context) => {
|
|
234
230
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
235
231
|
const headers = {};
|
|
236
232
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/finding/{id}";
|
|
@@ -250,7 +246,7 @@ export const serializeAws_restJson1GetFindingCommand = async (input, context) =>
|
|
|
250
246
|
body,
|
|
251
247
|
});
|
|
252
248
|
};
|
|
253
|
-
export const
|
|
249
|
+
export const se_GetGeneratedPolicyCommand = async (input, context) => {
|
|
254
250
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
255
251
|
const headers = {};
|
|
256
252
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/policy/generation/{jobId}";
|
|
@@ -277,7 +273,7 @@ export const serializeAws_restJson1GetGeneratedPolicyCommand = async (input, con
|
|
|
277
273
|
body,
|
|
278
274
|
});
|
|
279
275
|
};
|
|
280
|
-
export const
|
|
276
|
+
export const se_ListAccessPreviewFindingsCommand = async (input, context) => {
|
|
281
277
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
282
278
|
const headers = {
|
|
283
279
|
"content-type": "application/json",
|
|
@@ -287,7 +283,7 @@ export const serializeAws_restJson1ListAccessPreviewFindingsCommand = async (inp
|
|
|
287
283
|
let body;
|
|
288
284
|
body = JSON.stringify({
|
|
289
285
|
...(input.analyzerArn != null && { analyzerArn: input.analyzerArn }),
|
|
290
|
-
...(input.filter != null && { filter:
|
|
286
|
+
...(input.filter != null && { filter: se_FilterCriteriaMap(input.filter, context) }),
|
|
291
287
|
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
292
288
|
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
293
289
|
});
|
|
@@ -301,7 +297,7 @@ export const serializeAws_restJson1ListAccessPreviewFindingsCommand = async (inp
|
|
|
301
297
|
body,
|
|
302
298
|
});
|
|
303
299
|
};
|
|
304
|
-
export const
|
|
300
|
+
export const se_ListAccessPreviewsCommand = async (input, context) => {
|
|
305
301
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
306
302
|
const headers = {};
|
|
307
303
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/access-preview";
|
|
@@ -322,7 +318,7 @@ export const serializeAws_restJson1ListAccessPreviewsCommand = async (input, con
|
|
|
322
318
|
body,
|
|
323
319
|
});
|
|
324
320
|
};
|
|
325
|
-
export const
|
|
321
|
+
export const se_ListAnalyzedResourcesCommand = async (input, context) => {
|
|
326
322
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
327
323
|
const headers = {
|
|
328
324
|
"content-type": "application/json",
|
|
@@ -345,7 +341,7 @@ export const serializeAws_restJson1ListAnalyzedResourcesCommand = async (input,
|
|
|
345
341
|
body,
|
|
346
342
|
});
|
|
347
343
|
};
|
|
348
|
-
export const
|
|
344
|
+
export const se_ListAnalyzersCommand = async (input, context) => {
|
|
349
345
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
350
346
|
const headers = {};
|
|
351
347
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/analyzer";
|
|
@@ -366,7 +362,7 @@ export const serializeAws_restJson1ListAnalyzersCommand = async (input, context)
|
|
|
366
362
|
body,
|
|
367
363
|
});
|
|
368
364
|
};
|
|
369
|
-
export const
|
|
365
|
+
export const se_ListArchiveRulesCommand = async (input, context) => {
|
|
370
366
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
371
367
|
const headers = {};
|
|
372
368
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/analyzer/{analyzerName}/archive-rule";
|
|
@@ -387,7 +383,7 @@ export const serializeAws_restJson1ListArchiveRulesCommand = async (input, conte
|
|
|
387
383
|
body,
|
|
388
384
|
});
|
|
389
385
|
};
|
|
390
|
-
export const
|
|
386
|
+
export const se_ListFindingsCommand = async (input, context) => {
|
|
391
387
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
392
388
|
const headers = {
|
|
393
389
|
"content-type": "application/json",
|
|
@@ -396,10 +392,10 @@ export const serializeAws_restJson1ListFindingsCommand = async (input, context)
|
|
|
396
392
|
let body;
|
|
397
393
|
body = JSON.stringify({
|
|
398
394
|
...(input.analyzerArn != null && { analyzerArn: input.analyzerArn }),
|
|
399
|
-
...(input.filter != null && { filter:
|
|
395
|
+
...(input.filter != null && { filter: se_FilterCriteriaMap(input.filter, context) }),
|
|
400
396
|
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
401
397
|
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
402
|
-
...(input.sort != null && { sort:
|
|
398
|
+
...(input.sort != null && { sort: se_SortCriteria(input.sort, context) }),
|
|
403
399
|
});
|
|
404
400
|
return new __HttpRequest({
|
|
405
401
|
protocol,
|
|
@@ -411,7 +407,7 @@ export const serializeAws_restJson1ListFindingsCommand = async (input, context)
|
|
|
411
407
|
body,
|
|
412
408
|
});
|
|
413
409
|
};
|
|
414
|
-
export const
|
|
410
|
+
export const se_ListPolicyGenerationsCommand = async (input, context) => {
|
|
415
411
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
416
412
|
const headers = {};
|
|
417
413
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/policy/generation";
|
|
@@ -432,7 +428,7 @@ export const serializeAws_restJson1ListPolicyGenerationsCommand = async (input,
|
|
|
432
428
|
body,
|
|
433
429
|
});
|
|
434
430
|
};
|
|
435
|
-
export const
|
|
431
|
+
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
436
432
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
437
433
|
const headers = {};
|
|
438
434
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
@@ -448,7 +444,7 @@ export const serializeAws_restJson1ListTagsForResourceCommand = async (input, co
|
|
|
448
444
|
body,
|
|
449
445
|
});
|
|
450
446
|
};
|
|
451
|
-
export const
|
|
447
|
+
export const se_StartPolicyGenerationCommand = async (input, context) => {
|
|
452
448
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
453
449
|
const headers = {
|
|
454
450
|
"content-type": "application/json",
|
|
@@ -458,10 +454,10 @@ export const serializeAws_restJson1StartPolicyGenerationCommand = async (input,
|
|
|
458
454
|
body = JSON.stringify({
|
|
459
455
|
clientToken: input.clientToken ?? generateIdempotencyToken(),
|
|
460
456
|
...(input.cloudTrailDetails != null && {
|
|
461
|
-
cloudTrailDetails:
|
|
457
|
+
cloudTrailDetails: se_CloudTrailDetails(input.cloudTrailDetails, context),
|
|
462
458
|
}),
|
|
463
459
|
...(input.policyGenerationDetails != null && {
|
|
464
|
-
policyGenerationDetails:
|
|
460
|
+
policyGenerationDetails: se_PolicyGenerationDetails(input.policyGenerationDetails, context),
|
|
465
461
|
}),
|
|
466
462
|
});
|
|
467
463
|
return new __HttpRequest({
|
|
@@ -474,7 +470,7 @@ export const serializeAws_restJson1StartPolicyGenerationCommand = async (input,
|
|
|
474
470
|
body,
|
|
475
471
|
});
|
|
476
472
|
};
|
|
477
|
-
export const
|
|
473
|
+
export const se_StartResourceScanCommand = async (input, context) => {
|
|
478
474
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
479
475
|
const headers = {
|
|
480
476
|
"content-type": "application/json",
|
|
@@ -496,7 +492,7 @@ export const serializeAws_restJson1StartResourceScanCommand = async (input, cont
|
|
|
496
492
|
body,
|
|
497
493
|
});
|
|
498
494
|
};
|
|
499
|
-
export const
|
|
495
|
+
export const se_TagResourceCommand = async (input, context) => {
|
|
500
496
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
501
497
|
const headers = {
|
|
502
498
|
"content-type": "application/json",
|
|
@@ -505,7 +501,7 @@ export const serializeAws_restJson1TagResourceCommand = async (input, context) =
|
|
|
505
501
|
resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
506
502
|
let body;
|
|
507
503
|
body = JSON.stringify({
|
|
508
|
-
...(input.tags != null && { tags:
|
|
504
|
+
...(input.tags != null && { tags: se_TagsMap(input.tags, context) }),
|
|
509
505
|
});
|
|
510
506
|
return new __HttpRequest({
|
|
511
507
|
protocol,
|
|
@@ -517,7 +513,7 @@ export const serializeAws_restJson1TagResourceCommand = async (input, context) =
|
|
|
517
513
|
body,
|
|
518
514
|
});
|
|
519
515
|
};
|
|
520
|
-
export const
|
|
516
|
+
export const se_UntagResourceCommand = async (input, context) => {
|
|
521
517
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
522
518
|
const headers = {};
|
|
523
519
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
@@ -540,7 +536,7 @@ export const serializeAws_restJson1UntagResourceCommand = async (input, context)
|
|
|
540
536
|
body,
|
|
541
537
|
});
|
|
542
538
|
};
|
|
543
|
-
export const
|
|
539
|
+
export const se_UpdateArchiveRuleCommand = async (input, context) => {
|
|
544
540
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
545
541
|
const headers = {
|
|
546
542
|
"content-type": "application/json",
|
|
@@ -552,7 +548,7 @@ export const serializeAws_restJson1UpdateArchiveRuleCommand = async (input, cont
|
|
|
552
548
|
let body;
|
|
553
549
|
body = JSON.stringify({
|
|
554
550
|
clientToken: input.clientToken ?? generateIdempotencyToken(),
|
|
555
|
-
...(input.filter != null && { filter:
|
|
551
|
+
...(input.filter != null && { filter: se_FilterCriteriaMap(input.filter, context) }),
|
|
556
552
|
});
|
|
557
553
|
return new __HttpRequest({
|
|
558
554
|
protocol,
|
|
@@ -564,7 +560,7 @@ export const serializeAws_restJson1UpdateArchiveRuleCommand = async (input, cont
|
|
|
564
560
|
body,
|
|
565
561
|
});
|
|
566
562
|
};
|
|
567
|
-
export const
|
|
563
|
+
export const se_UpdateFindingsCommand = async (input, context) => {
|
|
568
564
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
569
565
|
const headers = {
|
|
570
566
|
"content-type": "application/json",
|
|
@@ -574,7 +570,7 @@ export const serializeAws_restJson1UpdateFindingsCommand = async (input, context
|
|
|
574
570
|
body = JSON.stringify({
|
|
575
571
|
...(input.analyzerArn != null && { analyzerArn: input.analyzerArn }),
|
|
576
572
|
clientToken: input.clientToken ?? generateIdempotencyToken(),
|
|
577
|
-
...(input.ids != null && { ids:
|
|
573
|
+
...(input.ids != null && { ids: se_FindingIdList(input.ids, context) }),
|
|
578
574
|
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
579
575
|
...(input.status != null && { status: input.status }),
|
|
580
576
|
});
|
|
@@ -588,7 +584,7 @@ export const serializeAws_restJson1UpdateFindingsCommand = async (input, context
|
|
|
588
584
|
body,
|
|
589
585
|
});
|
|
590
586
|
};
|
|
591
|
-
export const
|
|
587
|
+
export const se_ValidatePolicyCommand = async (input, context) => {
|
|
592
588
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
593
589
|
const headers = {
|
|
594
590
|
"content-type": "application/json",
|
|
@@ -616,9 +612,9 @@ export const serializeAws_restJson1ValidatePolicyCommand = async (input, context
|
|
|
616
612
|
body,
|
|
617
613
|
});
|
|
618
614
|
};
|
|
619
|
-
export const
|
|
615
|
+
export const de_ApplyArchiveRuleCommand = async (output, context) => {
|
|
620
616
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
621
|
-
return
|
|
617
|
+
return de_ApplyArchiveRuleCommandError(output, context);
|
|
622
618
|
}
|
|
623
619
|
const contents = map({
|
|
624
620
|
$metadata: deserializeMetadata(output),
|
|
@@ -626,7 +622,7 @@ export const deserializeAws_restJson1ApplyArchiveRuleCommand = async (output, co
|
|
|
626
622
|
await collectBody(output.body, context);
|
|
627
623
|
return contents;
|
|
628
624
|
};
|
|
629
|
-
const
|
|
625
|
+
const de_ApplyArchiveRuleCommandError = async (output, context) => {
|
|
630
626
|
const parsedOutput = {
|
|
631
627
|
...output,
|
|
632
628
|
body: await parseErrorBody(output.body, context),
|
|
@@ -635,19 +631,19 @@ const deserializeAws_restJson1ApplyArchiveRuleCommandError = async (output, cont
|
|
|
635
631
|
switch (errorCode) {
|
|
636
632
|
case "AccessDeniedException":
|
|
637
633
|
case "com.amazonaws.accessanalyzer#AccessDeniedException":
|
|
638
|
-
throw await
|
|
634
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
639
635
|
case "InternalServerException":
|
|
640
636
|
case "com.amazonaws.accessanalyzer#InternalServerException":
|
|
641
|
-
throw await
|
|
637
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
642
638
|
case "ResourceNotFoundException":
|
|
643
639
|
case "com.amazonaws.accessanalyzer#ResourceNotFoundException":
|
|
644
|
-
throw await
|
|
640
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
645
641
|
case "ThrottlingException":
|
|
646
642
|
case "com.amazonaws.accessanalyzer#ThrottlingException":
|
|
647
|
-
throw await
|
|
643
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
648
644
|
case "ValidationException":
|
|
649
645
|
case "com.amazonaws.accessanalyzer#ValidationException":
|
|
650
|
-
throw await
|
|
646
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
651
647
|
default:
|
|
652
648
|
const parsedBody = parsedOutput.body;
|
|
653
649
|
throwDefaultError({
|
|
@@ -658,9 +654,9 @@ const deserializeAws_restJson1ApplyArchiveRuleCommandError = async (output, cont
|
|
|
658
654
|
});
|
|
659
655
|
}
|
|
660
656
|
};
|
|
661
|
-
export const
|
|
657
|
+
export const de_CancelPolicyGenerationCommand = async (output, context) => {
|
|
662
658
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
663
|
-
return
|
|
659
|
+
return de_CancelPolicyGenerationCommandError(output, context);
|
|
664
660
|
}
|
|
665
661
|
const contents = map({
|
|
666
662
|
$metadata: deserializeMetadata(output),
|
|
@@ -668,7 +664,7 @@ export const deserializeAws_restJson1CancelPolicyGenerationCommand = async (outp
|
|
|
668
664
|
await collectBody(output.body, context);
|
|
669
665
|
return contents;
|
|
670
666
|
};
|
|
671
|
-
const
|
|
667
|
+
const de_CancelPolicyGenerationCommandError = async (output, context) => {
|
|
672
668
|
const parsedOutput = {
|
|
673
669
|
...output,
|
|
674
670
|
body: await parseErrorBody(output.body, context),
|
|
@@ -677,16 +673,16 @@ const deserializeAws_restJson1CancelPolicyGenerationCommandError = async (output
|
|
|
677
673
|
switch (errorCode) {
|
|
678
674
|
case "AccessDeniedException":
|
|
679
675
|
case "com.amazonaws.accessanalyzer#AccessDeniedException":
|
|
680
|
-
throw await
|
|
676
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
681
677
|
case "InternalServerException":
|
|
682
678
|
case "com.amazonaws.accessanalyzer#InternalServerException":
|
|
683
|
-
throw await
|
|
679
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
684
680
|
case "ThrottlingException":
|
|
685
681
|
case "com.amazonaws.accessanalyzer#ThrottlingException":
|
|
686
|
-
throw await
|
|
682
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
687
683
|
case "ValidationException":
|
|
688
684
|
case "com.amazonaws.accessanalyzer#ValidationException":
|
|
689
|
-
throw await
|
|
685
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
690
686
|
default:
|
|
691
687
|
const parsedBody = parsedOutput.body;
|
|
692
688
|
throwDefaultError({
|
|
@@ -697,9 +693,9 @@ const deserializeAws_restJson1CancelPolicyGenerationCommandError = async (output
|
|
|
697
693
|
});
|
|
698
694
|
}
|
|
699
695
|
};
|
|
700
|
-
export const
|
|
696
|
+
export const de_CreateAccessPreviewCommand = async (output, context) => {
|
|
701
697
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
702
|
-
return
|
|
698
|
+
return de_CreateAccessPreviewCommandError(output, context);
|
|
703
699
|
}
|
|
704
700
|
const contents = map({
|
|
705
701
|
$metadata: deserializeMetadata(output),
|
|
@@ -710,7 +706,7 @@ export const deserializeAws_restJson1CreateAccessPreviewCommand = async (output,
|
|
|
710
706
|
}
|
|
711
707
|
return contents;
|
|
712
708
|
};
|
|
713
|
-
const
|
|
709
|
+
const de_CreateAccessPreviewCommandError = async (output, context) => {
|
|
714
710
|
const parsedOutput = {
|
|
715
711
|
...output,
|
|
716
712
|
body: await parseErrorBody(output.body, context),
|
|
@@ -719,25 +715,25 @@ const deserializeAws_restJson1CreateAccessPreviewCommandError = async (output, c
|
|
|
719
715
|
switch (errorCode) {
|
|
720
716
|
case "AccessDeniedException":
|
|
721
717
|
case "com.amazonaws.accessanalyzer#AccessDeniedException":
|
|
722
|
-
throw await
|
|
718
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
723
719
|
case "ConflictException":
|
|
724
720
|
case "com.amazonaws.accessanalyzer#ConflictException":
|
|
725
|
-
throw await
|
|
721
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
726
722
|
case "InternalServerException":
|
|
727
723
|
case "com.amazonaws.accessanalyzer#InternalServerException":
|
|
728
|
-
throw await
|
|
724
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
729
725
|
case "ResourceNotFoundException":
|
|
730
726
|
case "com.amazonaws.accessanalyzer#ResourceNotFoundException":
|
|
731
|
-
throw await
|
|
727
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
732
728
|
case "ServiceQuotaExceededException":
|
|
733
729
|
case "com.amazonaws.accessanalyzer#ServiceQuotaExceededException":
|
|
734
|
-
throw await
|
|
730
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
735
731
|
case "ThrottlingException":
|
|
736
732
|
case "com.amazonaws.accessanalyzer#ThrottlingException":
|
|
737
|
-
throw await
|
|
733
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
738
734
|
case "ValidationException":
|
|
739
735
|
case "com.amazonaws.accessanalyzer#ValidationException":
|
|
740
|
-
throw await
|
|
736
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
741
737
|
default:
|
|
742
738
|
const parsedBody = parsedOutput.body;
|
|
743
739
|
throwDefaultError({
|
|
@@ -748,9 +744,9 @@ const deserializeAws_restJson1CreateAccessPreviewCommandError = async (output, c
|
|
|
748
744
|
});
|
|
749
745
|
}
|
|
750
746
|
};
|
|
751
|
-
export const
|
|
747
|
+
export const de_CreateAnalyzerCommand = async (output, context) => {
|
|
752
748
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
753
|
-
return
|
|
749
|
+
return de_CreateAnalyzerCommandError(output, context);
|
|
754
750
|
}
|
|
755
751
|
const contents = map({
|
|
756
752
|
$metadata: deserializeMetadata(output),
|
|
@@ -761,7 +757,7 @@ export const deserializeAws_restJson1CreateAnalyzerCommand = async (output, cont
|
|
|
761
757
|
}
|
|
762
758
|
return contents;
|
|
763
759
|
};
|
|
764
|
-
const
|
|
760
|
+
const de_CreateAnalyzerCommandError = async (output, context) => {
|
|
765
761
|
const parsedOutput = {
|
|
766
762
|
...output,
|
|
767
763
|
body: await parseErrorBody(output.body, context),
|
|
@@ -770,22 +766,22 @@ const deserializeAws_restJson1CreateAnalyzerCommandError = async (output, contex
|
|
|
770
766
|
switch (errorCode) {
|
|
771
767
|
case "AccessDeniedException":
|
|
772
768
|
case "com.amazonaws.accessanalyzer#AccessDeniedException":
|
|
773
|
-
throw await
|
|
769
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
774
770
|
case "ConflictException":
|
|
775
771
|
case "com.amazonaws.accessanalyzer#ConflictException":
|
|
776
|
-
throw await
|
|
772
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
777
773
|
case "InternalServerException":
|
|
778
774
|
case "com.amazonaws.accessanalyzer#InternalServerException":
|
|
779
|
-
throw await
|
|
775
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
780
776
|
case "ServiceQuotaExceededException":
|
|
781
777
|
case "com.amazonaws.accessanalyzer#ServiceQuotaExceededException":
|
|
782
|
-
throw await
|
|
778
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
783
779
|
case "ThrottlingException":
|
|
784
780
|
case "com.amazonaws.accessanalyzer#ThrottlingException":
|
|
785
|
-
throw await
|
|
781
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
786
782
|
case "ValidationException":
|
|
787
783
|
case "com.amazonaws.accessanalyzer#ValidationException":
|
|
788
|
-
throw await
|
|
784
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
789
785
|
default:
|
|
790
786
|
const parsedBody = parsedOutput.body;
|
|
791
787
|
throwDefaultError({
|
|
@@ -796,9 +792,9 @@ const deserializeAws_restJson1CreateAnalyzerCommandError = async (output, contex
|
|
|
796
792
|
});
|
|
797
793
|
}
|
|
798
794
|
};
|
|
799
|
-
export const
|
|
795
|
+
export const de_CreateArchiveRuleCommand = async (output, context) => {
|
|
800
796
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
801
|
-
return
|
|
797
|
+
return de_CreateArchiveRuleCommandError(output, context);
|
|
802
798
|
}
|
|
803
799
|
const contents = map({
|
|
804
800
|
$metadata: deserializeMetadata(output),
|
|
@@ -806,7 +802,7 @@ export const deserializeAws_restJson1CreateArchiveRuleCommand = async (output, c
|
|
|
806
802
|
await collectBody(output.body, context);
|
|
807
803
|
return contents;
|
|
808
804
|
};
|
|
809
|
-
const
|
|
805
|
+
const de_CreateArchiveRuleCommandError = async (output, context) => {
|
|
810
806
|
const parsedOutput = {
|
|
811
807
|
...output,
|
|
812
808
|
body: await parseErrorBody(output.body, context),
|
|
@@ -815,25 +811,25 @@ const deserializeAws_restJson1CreateArchiveRuleCommandError = async (output, con
|
|
|
815
811
|
switch (errorCode) {
|
|
816
812
|
case "AccessDeniedException":
|
|
817
813
|
case "com.amazonaws.accessanalyzer#AccessDeniedException":
|
|
818
|
-
throw await
|
|
814
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
819
815
|
case "ConflictException":
|
|
820
816
|
case "com.amazonaws.accessanalyzer#ConflictException":
|
|
821
|
-
throw await
|
|
817
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
822
818
|
case "InternalServerException":
|
|
823
819
|
case "com.amazonaws.accessanalyzer#InternalServerException":
|
|
824
|
-
throw await
|
|
820
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
825
821
|
case "ResourceNotFoundException":
|
|
826
822
|
case "com.amazonaws.accessanalyzer#ResourceNotFoundException":
|
|
827
|
-
throw await
|
|
823
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
828
824
|
case "ServiceQuotaExceededException":
|
|
829
825
|
case "com.amazonaws.accessanalyzer#ServiceQuotaExceededException":
|
|
830
|
-
throw await
|
|
826
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
831
827
|
case "ThrottlingException":
|
|
832
828
|
case "com.amazonaws.accessanalyzer#ThrottlingException":
|
|
833
|
-
throw await
|
|
829
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
834
830
|
case "ValidationException":
|
|
835
831
|
case "com.amazonaws.accessanalyzer#ValidationException":
|
|
836
|
-
throw await
|
|
832
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
837
833
|
default:
|
|
838
834
|
const parsedBody = parsedOutput.body;
|
|
839
835
|
throwDefaultError({
|
|
@@ -844,9 +840,9 @@ const deserializeAws_restJson1CreateArchiveRuleCommandError = async (output, con
|
|
|
844
840
|
});
|
|
845
841
|
}
|
|
846
842
|
};
|
|
847
|
-
export const
|
|
843
|
+
export const de_DeleteAnalyzerCommand = async (output, context) => {
|
|
848
844
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
849
|
-
return
|
|
845
|
+
return de_DeleteAnalyzerCommandError(output, context);
|
|
850
846
|
}
|
|
851
847
|
const contents = map({
|
|
852
848
|
$metadata: deserializeMetadata(output),
|
|
@@ -854,7 +850,7 @@ export const deserializeAws_restJson1DeleteAnalyzerCommand = async (output, cont
|
|
|
854
850
|
await collectBody(output.body, context);
|
|
855
851
|
return contents;
|
|
856
852
|
};
|
|
857
|
-
const
|
|
853
|
+
const de_DeleteAnalyzerCommandError = async (output, context) => {
|
|
858
854
|
const parsedOutput = {
|
|
859
855
|
...output,
|
|
860
856
|
body: await parseErrorBody(output.body, context),
|
|
@@ -863,19 +859,19 @@ const deserializeAws_restJson1DeleteAnalyzerCommandError = async (output, contex
|
|
|
863
859
|
switch (errorCode) {
|
|
864
860
|
case "AccessDeniedException":
|
|
865
861
|
case "com.amazonaws.accessanalyzer#AccessDeniedException":
|
|
866
|
-
throw await
|
|
862
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
867
863
|
case "InternalServerException":
|
|
868
864
|
case "com.amazonaws.accessanalyzer#InternalServerException":
|
|
869
|
-
throw await
|
|
865
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
870
866
|
case "ResourceNotFoundException":
|
|
871
867
|
case "com.amazonaws.accessanalyzer#ResourceNotFoundException":
|
|
872
|
-
throw await
|
|
868
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
873
869
|
case "ThrottlingException":
|
|
874
870
|
case "com.amazonaws.accessanalyzer#ThrottlingException":
|
|
875
|
-
throw await
|
|
871
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
876
872
|
case "ValidationException":
|
|
877
873
|
case "com.amazonaws.accessanalyzer#ValidationException":
|
|
878
|
-
throw await
|
|
874
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
879
875
|
default:
|
|
880
876
|
const parsedBody = parsedOutput.body;
|
|
881
877
|
throwDefaultError({
|
|
@@ -886,9 +882,9 @@ const deserializeAws_restJson1DeleteAnalyzerCommandError = async (output, contex
|
|
|
886
882
|
});
|
|
887
883
|
}
|
|
888
884
|
};
|
|
889
|
-
export const
|
|
885
|
+
export const de_DeleteArchiveRuleCommand = async (output, context) => {
|
|
890
886
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
891
|
-
return
|
|
887
|
+
return de_DeleteArchiveRuleCommandError(output, context);
|
|
892
888
|
}
|
|
893
889
|
const contents = map({
|
|
894
890
|
$metadata: deserializeMetadata(output),
|
|
@@ -896,7 +892,7 @@ export const deserializeAws_restJson1DeleteArchiveRuleCommand = async (output, c
|
|
|
896
892
|
await collectBody(output.body, context);
|
|
897
893
|
return contents;
|
|
898
894
|
};
|
|
899
|
-
const
|
|
895
|
+
const de_DeleteArchiveRuleCommandError = async (output, context) => {
|
|
900
896
|
const parsedOutput = {
|
|
901
897
|
...output,
|
|
902
898
|
body: await parseErrorBody(output.body, context),
|
|
@@ -905,19 +901,19 @@ const deserializeAws_restJson1DeleteArchiveRuleCommandError = async (output, con
|
|
|
905
901
|
switch (errorCode) {
|
|
906
902
|
case "AccessDeniedException":
|
|
907
903
|
case "com.amazonaws.accessanalyzer#AccessDeniedException":
|
|
908
|
-
throw await
|
|
904
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
909
905
|
case "InternalServerException":
|
|
910
906
|
case "com.amazonaws.accessanalyzer#InternalServerException":
|
|
911
|
-
throw await
|
|
907
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
912
908
|
case "ResourceNotFoundException":
|
|
913
909
|
case "com.amazonaws.accessanalyzer#ResourceNotFoundException":
|
|
914
|
-
throw await
|
|
910
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
915
911
|
case "ThrottlingException":
|
|
916
912
|
case "com.amazonaws.accessanalyzer#ThrottlingException":
|
|
917
|
-
throw await
|
|
913
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
918
914
|
case "ValidationException":
|
|
919
915
|
case "com.amazonaws.accessanalyzer#ValidationException":
|
|
920
|
-
throw await
|
|
916
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
921
917
|
default:
|
|
922
918
|
const parsedBody = parsedOutput.body;
|
|
923
919
|
throwDefaultError({
|
|
@@ -928,20 +924,20 @@ const deserializeAws_restJson1DeleteArchiveRuleCommandError = async (output, con
|
|
|
928
924
|
});
|
|
929
925
|
}
|
|
930
926
|
};
|
|
931
|
-
export const
|
|
927
|
+
export const de_GetAccessPreviewCommand = async (output, context) => {
|
|
932
928
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
933
|
-
return
|
|
929
|
+
return de_GetAccessPreviewCommandError(output, context);
|
|
934
930
|
}
|
|
935
931
|
const contents = map({
|
|
936
932
|
$metadata: deserializeMetadata(output),
|
|
937
933
|
});
|
|
938
934
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
939
935
|
if (data.accessPreview != null) {
|
|
940
|
-
contents.accessPreview =
|
|
936
|
+
contents.accessPreview = de_AccessPreview(data.accessPreview, context);
|
|
941
937
|
}
|
|
942
938
|
return contents;
|
|
943
939
|
};
|
|
944
|
-
const
|
|
940
|
+
const de_GetAccessPreviewCommandError = async (output, context) => {
|
|
945
941
|
const parsedOutput = {
|
|
946
942
|
...output,
|
|
947
943
|
body: await parseErrorBody(output.body, context),
|
|
@@ -950,19 +946,19 @@ const deserializeAws_restJson1GetAccessPreviewCommandError = async (output, cont
|
|
|
950
946
|
switch (errorCode) {
|
|
951
947
|
case "AccessDeniedException":
|
|
952
948
|
case "com.amazonaws.accessanalyzer#AccessDeniedException":
|
|
953
|
-
throw await
|
|
949
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
954
950
|
case "InternalServerException":
|
|
955
951
|
case "com.amazonaws.accessanalyzer#InternalServerException":
|
|
956
|
-
throw await
|
|
952
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
957
953
|
case "ResourceNotFoundException":
|
|
958
954
|
case "com.amazonaws.accessanalyzer#ResourceNotFoundException":
|
|
959
|
-
throw await
|
|
955
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
960
956
|
case "ThrottlingException":
|
|
961
957
|
case "com.amazonaws.accessanalyzer#ThrottlingException":
|
|
962
|
-
throw await
|
|
958
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
963
959
|
case "ValidationException":
|
|
964
960
|
case "com.amazonaws.accessanalyzer#ValidationException":
|
|
965
|
-
throw await
|
|
961
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
966
962
|
default:
|
|
967
963
|
const parsedBody = parsedOutput.body;
|
|
968
964
|
throwDefaultError({
|
|
@@ -973,20 +969,20 @@ const deserializeAws_restJson1GetAccessPreviewCommandError = async (output, cont
|
|
|
973
969
|
});
|
|
974
970
|
}
|
|
975
971
|
};
|
|
976
|
-
export const
|
|
972
|
+
export const de_GetAnalyzedResourceCommand = async (output, context) => {
|
|
977
973
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
978
|
-
return
|
|
974
|
+
return de_GetAnalyzedResourceCommandError(output, context);
|
|
979
975
|
}
|
|
980
976
|
const contents = map({
|
|
981
977
|
$metadata: deserializeMetadata(output),
|
|
982
978
|
});
|
|
983
979
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
984
980
|
if (data.resource != null) {
|
|
985
|
-
contents.resource =
|
|
981
|
+
contents.resource = de_AnalyzedResource(data.resource, context);
|
|
986
982
|
}
|
|
987
983
|
return contents;
|
|
988
984
|
};
|
|
989
|
-
const
|
|
985
|
+
const de_GetAnalyzedResourceCommandError = async (output, context) => {
|
|
990
986
|
const parsedOutput = {
|
|
991
987
|
...output,
|
|
992
988
|
body: await parseErrorBody(output.body, context),
|
|
@@ -995,19 +991,19 @@ const deserializeAws_restJson1GetAnalyzedResourceCommandError = async (output, c
|
|
|
995
991
|
switch (errorCode) {
|
|
996
992
|
case "AccessDeniedException":
|
|
997
993
|
case "com.amazonaws.accessanalyzer#AccessDeniedException":
|
|
998
|
-
throw await
|
|
994
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
999
995
|
case "InternalServerException":
|
|
1000
996
|
case "com.amazonaws.accessanalyzer#InternalServerException":
|
|
1001
|
-
throw await
|
|
997
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1002
998
|
case "ResourceNotFoundException":
|
|
1003
999
|
case "com.amazonaws.accessanalyzer#ResourceNotFoundException":
|
|
1004
|
-
throw await
|
|
1000
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1005
1001
|
case "ThrottlingException":
|
|
1006
1002
|
case "com.amazonaws.accessanalyzer#ThrottlingException":
|
|
1007
|
-
throw await
|
|
1003
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1008
1004
|
case "ValidationException":
|
|
1009
1005
|
case "com.amazonaws.accessanalyzer#ValidationException":
|
|
1010
|
-
throw await
|
|
1006
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1011
1007
|
default:
|
|
1012
1008
|
const parsedBody = parsedOutput.body;
|
|
1013
1009
|
throwDefaultError({
|
|
@@ -1018,20 +1014,20 @@ const deserializeAws_restJson1GetAnalyzedResourceCommandError = async (output, c
|
|
|
1018
1014
|
});
|
|
1019
1015
|
}
|
|
1020
1016
|
};
|
|
1021
|
-
export const
|
|
1017
|
+
export const de_GetAnalyzerCommand = async (output, context) => {
|
|
1022
1018
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1023
|
-
return
|
|
1019
|
+
return de_GetAnalyzerCommandError(output, context);
|
|
1024
1020
|
}
|
|
1025
1021
|
const contents = map({
|
|
1026
1022
|
$metadata: deserializeMetadata(output),
|
|
1027
1023
|
});
|
|
1028
1024
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1029
1025
|
if (data.analyzer != null) {
|
|
1030
|
-
contents.analyzer =
|
|
1026
|
+
contents.analyzer = de_AnalyzerSummary(data.analyzer, context);
|
|
1031
1027
|
}
|
|
1032
1028
|
return contents;
|
|
1033
1029
|
};
|
|
1034
|
-
const
|
|
1030
|
+
const de_GetAnalyzerCommandError = async (output, context) => {
|
|
1035
1031
|
const parsedOutput = {
|
|
1036
1032
|
...output,
|
|
1037
1033
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1040,19 +1036,19 @@ const deserializeAws_restJson1GetAnalyzerCommandError = async (output, context)
|
|
|
1040
1036
|
switch (errorCode) {
|
|
1041
1037
|
case "AccessDeniedException":
|
|
1042
1038
|
case "com.amazonaws.accessanalyzer#AccessDeniedException":
|
|
1043
|
-
throw await
|
|
1039
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1044
1040
|
case "InternalServerException":
|
|
1045
1041
|
case "com.amazonaws.accessanalyzer#InternalServerException":
|
|
1046
|
-
throw await
|
|
1042
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1047
1043
|
case "ResourceNotFoundException":
|
|
1048
1044
|
case "com.amazonaws.accessanalyzer#ResourceNotFoundException":
|
|
1049
|
-
throw await
|
|
1045
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1050
1046
|
case "ThrottlingException":
|
|
1051
1047
|
case "com.amazonaws.accessanalyzer#ThrottlingException":
|
|
1052
|
-
throw await
|
|
1048
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1053
1049
|
case "ValidationException":
|
|
1054
1050
|
case "com.amazonaws.accessanalyzer#ValidationException":
|
|
1055
|
-
throw await
|
|
1051
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1056
1052
|
default:
|
|
1057
1053
|
const parsedBody = parsedOutput.body;
|
|
1058
1054
|
throwDefaultError({
|
|
@@ -1063,20 +1059,20 @@ const deserializeAws_restJson1GetAnalyzerCommandError = async (output, context)
|
|
|
1063
1059
|
});
|
|
1064
1060
|
}
|
|
1065
1061
|
};
|
|
1066
|
-
export const
|
|
1062
|
+
export const de_GetArchiveRuleCommand = async (output, context) => {
|
|
1067
1063
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1068
|
-
return
|
|
1064
|
+
return de_GetArchiveRuleCommandError(output, context);
|
|
1069
1065
|
}
|
|
1070
1066
|
const contents = map({
|
|
1071
1067
|
$metadata: deserializeMetadata(output),
|
|
1072
1068
|
});
|
|
1073
1069
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1074
1070
|
if (data.archiveRule != null) {
|
|
1075
|
-
contents.archiveRule =
|
|
1071
|
+
contents.archiveRule = de_ArchiveRuleSummary(data.archiveRule, context);
|
|
1076
1072
|
}
|
|
1077
1073
|
return contents;
|
|
1078
1074
|
};
|
|
1079
|
-
const
|
|
1075
|
+
const de_GetArchiveRuleCommandError = async (output, context) => {
|
|
1080
1076
|
const parsedOutput = {
|
|
1081
1077
|
...output,
|
|
1082
1078
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1085,19 +1081,19 @@ const deserializeAws_restJson1GetArchiveRuleCommandError = async (output, contex
|
|
|
1085
1081
|
switch (errorCode) {
|
|
1086
1082
|
case "AccessDeniedException":
|
|
1087
1083
|
case "com.amazonaws.accessanalyzer#AccessDeniedException":
|
|
1088
|
-
throw await
|
|
1084
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1089
1085
|
case "InternalServerException":
|
|
1090
1086
|
case "com.amazonaws.accessanalyzer#InternalServerException":
|
|
1091
|
-
throw await
|
|
1087
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1092
1088
|
case "ResourceNotFoundException":
|
|
1093
1089
|
case "com.amazonaws.accessanalyzer#ResourceNotFoundException":
|
|
1094
|
-
throw await
|
|
1090
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1095
1091
|
case "ThrottlingException":
|
|
1096
1092
|
case "com.amazonaws.accessanalyzer#ThrottlingException":
|
|
1097
|
-
throw await
|
|
1093
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1098
1094
|
case "ValidationException":
|
|
1099
1095
|
case "com.amazonaws.accessanalyzer#ValidationException":
|
|
1100
|
-
throw await
|
|
1096
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1101
1097
|
default:
|
|
1102
1098
|
const parsedBody = parsedOutput.body;
|
|
1103
1099
|
throwDefaultError({
|
|
@@ -1108,20 +1104,20 @@ const deserializeAws_restJson1GetArchiveRuleCommandError = async (output, contex
|
|
|
1108
1104
|
});
|
|
1109
1105
|
}
|
|
1110
1106
|
};
|
|
1111
|
-
export const
|
|
1107
|
+
export const de_GetFindingCommand = async (output, context) => {
|
|
1112
1108
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1113
|
-
return
|
|
1109
|
+
return de_GetFindingCommandError(output, context);
|
|
1114
1110
|
}
|
|
1115
1111
|
const contents = map({
|
|
1116
1112
|
$metadata: deserializeMetadata(output),
|
|
1117
1113
|
});
|
|
1118
1114
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1119
1115
|
if (data.finding != null) {
|
|
1120
|
-
contents.finding =
|
|
1116
|
+
contents.finding = de_Finding(data.finding, context);
|
|
1121
1117
|
}
|
|
1122
1118
|
return contents;
|
|
1123
1119
|
};
|
|
1124
|
-
const
|
|
1120
|
+
const de_GetFindingCommandError = async (output, context) => {
|
|
1125
1121
|
const parsedOutput = {
|
|
1126
1122
|
...output,
|
|
1127
1123
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1130,19 +1126,19 @@ const deserializeAws_restJson1GetFindingCommandError = async (output, context) =
|
|
|
1130
1126
|
switch (errorCode) {
|
|
1131
1127
|
case "AccessDeniedException":
|
|
1132
1128
|
case "com.amazonaws.accessanalyzer#AccessDeniedException":
|
|
1133
|
-
throw await
|
|
1129
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1134
1130
|
case "InternalServerException":
|
|
1135
1131
|
case "com.amazonaws.accessanalyzer#InternalServerException":
|
|
1136
|
-
throw await
|
|
1132
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1137
1133
|
case "ResourceNotFoundException":
|
|
1138
1134
|
case "com.amazonaws.accessanalyzer#ResourceNotFoundException":
|
|
1139
|
-
throw await
|
|
1135
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1140
1136
|
case "ThrottlingException":
|
|
1141
1137
|
case "com.amazonaws.accessanalyzer#ThrottlingException":
|
|
1142
|
-
throw await
|
|
1138
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1143
1139
|
case "ValidationException":
|
|
1144
1140
|
case "com.amazonaws.accessanalyzer#ValidationException":
|
|
1145
|
-
throw await
|
|
1141
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1146
1142
|
default:
|
|
1147
1143
|
const parsedBody = parsedOutput.body;
|
|
1148
1144
|
throwDefaultError({
|
|
@@ -1153,23 +1149,23 @@ const deserializeAws_restJson1GetFindingCommandError = async (output, context) =
|
|
|
1153
1149
|
});
|
|
1154
1150
|
}
|
|
1155
1151
|
};
|
|
1156
|
-
export const
|
|
1152
|
+
export const de_GetGeneratedPolicyCommand = async (output, context) => {
|
|
1157
1153
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1158
|
-
return
|
|
1154
|
+
return de_GetGeneratedPolicyCommandError(output, context);
|
|
1159
1155
|
}
|
|
1160
1156
|
const contents = map({
|
|
1161
1157
|
$metadata: deserializeMetadata(output),
|
|
1162
1158
|
});
|
|
1163
1159
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1164
1160
|
if (data.generatedPolicyResult != null) {
|
|
1165
|
-
contents.generatedPolicyResult =
|
|
1161
|
+
contents.generatedPolicyResult = de_GeneratedPolicyResult(data.generatedPolicyResult, context);
|
|
1166
1162
|
}
|
|
1167
1163
|
if (data.jobDetails != null) {
|
|
1168
|
-
contents.jobDetails =
|
|
1164
|
+
contents.jobDetails = de_JobDetails(data.jobDetails, context);
|
|
1169
1165
|
}
|
|
1170
1166
|
return contents;
|
|
1171
1167
|
};
|
|
1172
|
-
const
|
|
1168
|
+
const de_GetGeneratedPolicyCommandError = async (output, context) => {
|
|
1173
1169
|
const parsedOutput = {
|
|
1174
1170
|
...output,
|
|
1175
1171
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1178,16 +1174,16 @@ const deserializeAws_restJson1GetGeneratedPolicyCommandError = async (output, co
|
|
|
1178
1174
|
switch (errorCode) {
|
|
1179
1175
|
case "AccessDeniedException":
|
|
1180
1176
|
case "com.amazonaws.accessanalyzer#AccessDeniedException":
|
|
1181
|
-
throw await
|
|
1177
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1182
1178
|
case "InternalServerException":
|
|
1183
1179
|
case "com.amazonaws.accessanalyzer#InternalServerException":
|
|
1184
|
-
throw await
|
|
1180
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1185
1181
|
case "ThrottlingException":
|
|
1186
1182
|
case "com.amazonaws.accessanalyzer#ThrottlingException":
|
|
1187
|
-
throw await
|
|
1183
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1188
1184
|
case "ValidationException":
|
|
1189
1185
|
case "com.amazonaws.accessanalyzer#ValidationException":
|
|
1190
|
-
throw await
|
|
1186
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1191
1187
|
default:
|
|
1192
1188
|
const parsedBody = parsedOutput.body;
|
|
1193
1189
|
throwDefaultError({
|
|
@@ -1198,23 +1194,23 @@ const deserializeAws_restJson1GetGeneratedPolicyCommandError = async (output, co
|
|
|
1198
1194
|
});
|
|
1199
1195
|
}
|
|
1200
1196
|
};
|
|
1201
|
-
export const
|
|
1197
|
+
export const de_ListAccessPreviewFindingsCommand = async (output, context) => {
|
|
1202
1198
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1203
|
-
return
|
|
1199
|
+
return de_ListAccessPreviewFindingsCommandError(output, context);
|
|
1204
1200
|
}
|
|
1205
1201
|
const contents = map({
|
|
1206
1202
|
$metadata: deserializeMetadata(output),
|
|
1207
1203
|
});
|
|
1208
1204
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1209
1205
|
if (data.findings != null) {
|
|
1210
|
-
contents.findings =
|
|
1206
|
+
contents.findings = de_AccessPreviewFindingsList(data.findings, context);
|
|
1211
1207
|
}
|
|
1212
1208
|
if (data.nextToken != null) {
|
|
1213
1209
|
contents.nextToken = __expectString(data.nextToken);
|
|
1214
1210
|
}
|
|
1215
1211
|
return contents;
|
|
1216
1212
|
};
|
|
1217
|
-
const
|
|
1213
|
+
const de_ListAccessPreviewFindingsCommandError = async (output, context) => {
|
|
1218
1214
|
const parsedOutput = {
|
|
1219
1215
|
...output,
|
|
1220
1216
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1223,22 +1219,22 @@ const deserializeAws_restJson1ListAccessPreviewFindingsCommandError = async (out
|
|
|
1223
1219
|
switch (errorCode) {
|
|
1224
1220
|
case "AccessDeniedException":
|
|
1225
1221
|
case "com.amazonaws.accessanalyzer#AccessDeniedException":
|
|
1226
|
-
throw await
|
|
1222
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1227
1223
|
case "ConflictException":
|
|
1228
1224
|
case "com.amazonaws.accessanalyzer#ConflictException":
|
|
1229
|
-
throw await
|
|
1225
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1230
1226
|
case "InternalServerException":
|
|
1231
1227
|
case "com.amazonaws.accessanalyzer#InternalServerException":
|
|
1232
|
-
throw await
|
|
1228
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1233
1229
|
case "ResourceNotFoundException":
|
|
1234
1230
|
case "com.amazonaws.accessanalyzer#ResourceNotFoundException":
|
|
1235
|
-
throw await
|
|
1231
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1236
1232
|
case "ThrottlingException":
|
|
1237
1233
|
case "com.amazonaws.accessanalyzer#ThrottlingException":
|
|
1238
|
-
throw await
|
|
1234
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1239
1235
|
case "ValidationException":
|
|
1240
1236
|
case "com.amazonaws.accessanalyzer#ValidationException":
|
|
1241
|
-
throw await
|
|
1237
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1242
1238
|
default:
|
|
1243
1239
|
const parsedBody = parsedOutput.body;
|
|
1244
1240
|
throwDefaultError({
|
|
@@ -1249,23 +1245,23 @@ const deserializeAws_restJson1ListAccessPreviewFindingsCommandError = async (out
|
|
|
1249
1245
|
});
|
|
1250
1246
|
}
|
|
1251
1247
|
};
|
|
1252
|
-
export const
|
|
1248
|
+
export const de_ListAccessPreviewsCommand = async (output, context) => {
|
|
1253
1249
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1254
|
-
return
|
|
1250
|
+
return de_ListAccessPreviewsCommandError(output, context);
|
|
1255
1251
|
}
|
|
1256
1252
|
const contents = map({
|
|
1257
1253
|
$metadata: deserializeMetadata(output),
|
|
1258
1254
|
});
|
|
1259
1255
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1260
1256
|
if (data.accessPreviews != null) {
|
|
1261
|
-
contents.accessPreviews =
|
|
1257
|
+
contents.accessPreviews = de_AccessPreviewsList(data.accessPreviews, context);
|
|
1262
1258
|
}
|
|
1263
1259
|
if (data.nextToken != null) {
|
|
1264
1260
|
contents.nextToken = __expectString(data.nextToken);
|
|
1265
1261
|
}
|
|
1266
1262
|
return contents;
|
|
1267
1263
|
};
|
|
1268
|
-
const
|
|
1264
|
+
const de_ListAccessPreviewsCommandError = async (output, context) => {
|
|
1269
1265
|
const parsedOutput = {
|
|
1270
1266
|
...output,
|
|
1271
1267
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1274,19 +1270,19 @@ const deserializeAws_restJson1ListAccessPreviewsCommandError = async (output, co
|
|
|
1274
1270
|
switch (errorCode) {
|
|
1275
1271
|
case "AccessDeniedException":
|
|
1276
1272
|
case "com.amazonaws.accessanalyzer#AccessDeniedException":
|
|
1277
|
-
throw await
|
|
1273
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1278
1274
|
case "InternalServerException":
|
|
1279
1275
|
case "com.amazonaws.accessanalyzer#InternalServerException":
|
|
1280
|
-
throw await
|
|
1276
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1281
1277
|
case "ResourceNotFoundException":
|
|
1282
1278
|
case "com.amazonaws.accessanalyzer#ResourceNotFoundException":
|
|
1283
|
-
throw await
|
|
1279
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1284
1280
|
case "ThrottlingException":
|
|
1285
1281
|
case "com.amazonaws.accessanalyzer#ThrottlingException":
|
|
1286
|
-
throw await
|
|
1282
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1287
1283
|
case "ValidationException":
|
|
1288
1284
|
case "com.amazonaws.accessanalyzer#ValidationException":
|
|
1289
|
-
throw await
|
|
1285
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1290
1286
|
default:
|
|
1291
1287
|
const parsedBody = parsedOutput.body;
|
|
1292
1288
|
throwDefaultError({
|
|
@@ -1297,23 +1293,23 @@ const deserializeAws_restJson1ListAccessPreviewsCommandError = async (output, co
|
|
|
1297
1293
|
});
|
|
1298
1294
|
}
|
|
1299
1295
|
};
|
|
1300
|
-
export const
|
|
1296
|
+
export const de_ListAnalyzedResourcesCommand = async (output, context) => {
|
|
1301
1297
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1302
|
-
return
|
|
1298
|
+
return de_ListAnalyzedResourcesCommandError(output, context);
|
|
1303
1299
|
}
|
|
1304
1300
|
const contents = map({
|
|
1305
1301
|
$metadata: deserializeMetadata(output),
|
|
1306
1302
|
});
|
|
1307
1303
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1308
1304
|
if (data.analyzedResources != null) {
|
|
1309
|
-
contents.analyzedResources =
|
|
1305
|
+
contents.analyzedResources = de_AnalyzedResourcesList(data.analyzedResources, context);
|
|
1310
1306
|
}
|
|
1311
1307
|
if (data.nextToken != null) {
|
|
1312
1308
|
contents.nextToken = __expectString(data.nextToken);
|
|
1313
1309
|
}
|
|
1314
1310
|
return contents;
|
|
1315
1311
|
};
|
|
1316
|
-
const
|
|
1312
|
+
const de_ListAnalyzedResourcesCommandError = async (output, context) => {
|
|
1317
1313
|
const parsedOutput = {
|
|
1318
1314
|
...output,
|
|
1319
1315
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1322,19 +1318,19 @@ const deserializeAws_restJson1ListAnalyzedResourcesCommandError = async (output,
|
|
|
1322
1318
|
switch (errorCode) {
|
|
1323
1319
|
case "AccessDeniedException":
|
|
1324
1320
|
case "com.amazonaws.accessanalyzer#AccessDeniedException":
|
|
1325
|
-
throw await
|
|
1321
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1326
1322
|
case "InternalServerException":
|
|
1327
1323
|
case "com.amazonaws.accessanalyzer#InternalServerException":
|
|
1328
|
-
throw await
|
|
1324
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1329
1325
|
case "ResourceNotFoundException":
|
|
1330
1326
|
case "com.amazonaws.accessanalyzer#ResourceNotFoundException":
|
|
1331
|
-
throw await
|
|
1327
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1332
1328
|
case "ThrottlingException":
|
|
1333
1329
|
case "com.amazonaws.accessanalyzer#ThrottlingException":
|
|
1334
|
-
throw await
|
|
1330
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1335
1331
|
case "ValidationException":
|
|
1336
1332
|
case "com.amazonaws.accessanalyzer#ValidationException":
|
|
1337
|
-
throw await
|
|
1333
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1338
1334
|
default:
|
|
1339
1335
|
const parsedBody = parsedOutput.body;
|
|
1340
1336
|
throwDefaultError({
|
|
@@ -1345,23 +1341,23 @@ const deserializeAws_restJson1ListAnalyzedResourcesCommandError = async (output,
|
|
|
1345
1341
|
});
|
|
1346
1342
|
}
|
|
1347
1343
|
};
|
|
1348
|
-
export const
|
|
1344
|
+
export const de_ListAnalyzersCommand = async (output, context) => {
|
|
1349
1345
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1350
|
-
return
|
|
1346
|
+
return de_ListAnalyzersCommandError(output, context);
|
|
1351
1347
|
}
|
|
1352
1348
|
const contents = map({
|
|
1353
1349
|
$metadata: deserializeMetadata(output),
|
|
1354
1350
|
});
|
|
1355
1351
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1356
1352
|
if (data.analyzers != null) {
|
|
1357
|
-
contents.analyzers =
|
|
1353
|
+
contents.analyzers = de_AnalyzersList(data.analyzers, context);
|
|
1358
1354
|
}
|
|
1359
1355
|
if (data.nextToken != null) {
|
|
1360
1356
|
contents.nextToken = __expectString(data.nextToken);
|
|
1361
1357
|
}
|
|
1362
1358
|
return contents;
|
|
1363
1359
|
};
|
|
1364
|
-
const
|
|
1360
|
+
const de_ListAnalyzersCommandError = async (output, context) => {
|
|
1365
1361
|
const parsedOutput = {
|
|
1366
1362
|
...output,
|
|
1367
1363
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1370,16 +1366,16 @@ const deserializeAws_restJson1ListAnalyzersCommandError = async (output, context
|
|
|
1370
1366
|
switch (errorCode) {
|
|
1371
1367
|
case "AccessDeniedException":
|
|
1372
1368
|
case "com.amazonaws.accessanalyzer#AccessDeniedException":
|
|
1373
|
-
throw await
|
|
1369
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1374
1370
|
case "InternalServerException":
|
|
1375
1371
|
case "com.amazonaws.accessanalyzer#InternalServerException":
|
|
1376
|
-
throw await
|
|
1372
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1377
1373
|
case "ThrottlingException":
|
|
1378
1374
|
case "com.amazonaws.accessanalyzer#ThrottlingException":
|
|
1379
|
-
throw await
|
|
1375
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1380
1376
|
case "ValidationException":
|
|
1381
1377
|
case "com.amazonaws.accessanalyzer#ValidationException":
|
|
1382
|
-
throw await
|
|
1378
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1383
1379
|
default:
|
|
1384
1380
|
const parsedBody = parsedOutput.body;
|
|
1385
1381
|
throwDefaultError({
|
|
@@ -1390,23 +1386,23 @@ const deserializeAws_restJson1ListAnalyzersCommandError = async (output, context
|
|
|
1390
1386
|
});
|
|
1391
1387
|
}
|
|
1392
1388
|
};
|
|
1393
|
-
export const
|
|
1389
|
+
export const de_ListArchiveRulesCommand = async (output, context) => {
|
|
1394
1390
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1395
|
-
return
|
|
1391
|
+
return de_ListArchiveRulesCommandError(output, context);
|
|
1396
1392
|
}
|
|
1397
1393
|
const contents = map({
|
|
1398
1394
|
$metadata: deserializeMetadata(output),
|
|
1399
1395
|
});
|
|
1400
1396
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1401
1397
|
if (data.archiveRules != null) {
|
|
1402
|
-
contents.archiveRules =
|
|
1398
|
+
contents.archiveRules = de_ArchiveRulesList(data.archiveRules, context);
|
|
1403
1399
|
}
|
|
1404
1400
|
if (data.nextToken != null) {
|
|
1405
1401
|
contents.nextToken = __expectString(data.nextToken);
|
|
1406
1402
|
}
|
|
1407
1403
|
return contents;
|
|
1408
1404
|
};
|
|
1409
|
-
const
|
|
1405
|
+
const de_ListArchiveRulesCommandError = async (output, context) => {
|
|
1410
1406
|
const parsedOutput = {
|
|
1411
1407
|
...output,
|
|
1412
1408
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1415,16 +1411,16 @@ const deserializeAws_restJson1ListArchiveRulesCommandError = async (output, cont
|
|
|
1415
1411
|
switch (errorCode) {
|
|
1416
1412
|
case "AccessDeniedException":
|
|
1417
1413
|
case "com.amazonaws.accessanalyzer#AccessDeniedException":
|
|
1418
|
-
throw await
|
|
1414
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1419
1415
|
case "InternalServerException":
|
|
1420
1416
|
case "com.amazonaws.accessanalyzer#InternalServerException":
|
|
1421
|
-
throw await
|
|
1417
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1422
1418
|
case "ThrottlingException":
|
|
1423
1419
|
case "com.amazonaws.accessanalyzer#ThrottlingException":
|
|
1424
|
-
throw await
|
|
1420
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1425
1421
|
case "ValidationException":
|
|
1426
1422
|
case "com.amazonaws.accessanalyzer#ValidationException":
|
|
1427
|
-
throw await
|
|
1423
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1428
1424
|
default:
|
|
1429
1425
|
const parsedBody = parsedOutput.body;
|
|
1430
1426
|
throwDefaultError({
|
|
@@ -1435,23 +1431,23 @@ const deserializeAws_restJson1ListArchiveRulesCommandError = async (output, cont
|
|
|
1435
1431
|
});
|
|
1436
1432
|
}
|
|
1437
1433
|
};
|
|
1438
|
-
export const
|
|
1434
|
+
export const de_ListFindingsCommand = async (output, context) => {
|
|
1439
1435
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1440
|
-
return
|
|
1436
|
+
return de_ListFindingsCommandError(output, context);
|
|
1441
1437
|
}
|
|
1442
1438
|
const contents = map({
|
|
1443
1439
|
$metadata: deserializeMetadata(output),
|
|
1444
1440
|
});
|
|
1445
1441
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1446
1442
|
if (data.findings != null) {
|
|
1447
|
-
contents.findings =
|
|
1443
|
+
contents.findings = de_FindingsList(data.findings, context);
|
|
1448
1444
|
}
|
|
1449
1445
|
if (data.nextToken != null) {
|
|
1450
1446
|
contents.nextToken = __expectString(data.nextToken);
|
|
1451
1447
|
}
|
|
1452
1448
|
return contents;
|
|
1453
1449
|
};
|
|
1454
|
-
const
|
|
1450
|
+
const de_ListFindingsCommandError = async (output, context) => {
|
|
1455
1451
|
const parsedOutput = {
|
|
1456
1452
|
...output,
|
|
1457
1453
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1460,19 +1456,19 @@ const deserializeAws_restJson1ListFindingsCommandError = async (output, context)
|
|
|
1460
1456
|
switch (errorCode) {
|
|
1461
1457
|
case "AccessDeniedException":
|
|
1462
1458
|
case "com.amazonaws.accessanalyzer#AccessDeniedException":
|
|
1463
|
-
throw await
|
|
1459
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1464
1460
|
case "InternalServerException":
|
|
1465
1461
|
case "com.amazonaws.accessanalyzer#InternalServerException":
|
|
1466
|
-
throw await
|
|
1462
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1467
1463
|
case "ResourceNotFoundException":
|
|
1468
1464
|
case "com.amazonaws.accessanalyzer#ResourceNotFoundException":
|
|
1469
|
-
throw await
|
|
1465
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1470
1466
|
case "ThrottlingException":
|
|
1471
1467
|
case "com.amazonaws.accessanalyzer#ThrottlingException":
|
|
1472
|
-
throw await
|
|
1468
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1473
1469
|
case "ValidationException":
|
|
1474
1470
|
case "com.amazonaws.accessanalyzer#ValidationException":
|
|
1475
|
-
throw await
|
|
1471
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1476
1472
|
default:
|
|
1477
1473
|
const parsedBody = parsedOutput.body;
|
|
1478
1474
|
throwDefaultError({
|
|
@@ -1483,9 +1479,9 @@ const deserializeAws_restJson1ListFindingsCommandError = async (output, context)
|
|
|
1483
1479
|
});
|
|
1484
1480
|
}
|
|
1485
1481
|
};
|
|
1486
|
-
export const
|
|
1482
|
+
export const de_ListPolicyGenerationsCommand = async (output, context) => {
|
|
1487
1483
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1488
|
-
return
|
|
1484
|
+
return de_ListPolicyGenerationsCommandError(output, context);
|
|
1489
1485
|
}
|
|
1490
1486
|
const contents = map({
|
|
1491
1487
|
$metadata: deserializeMetadata(output),
|
|
@@ -1495,11 +1491,11 @@ export const deserializeAws_restJson1ListPolicyGenerationsCommand = async (outpu
|
|
|
1495
1491
|
contents.nextToken = __expectString(data.nextToken);
|
|
1496
1492
|
}
|
|
1497
1493
|
if (data.policyGenerations != null) {
|
|
1498
|
-
contents.policyGenerations =
|
|
1494
|
+
contents.policyGenerations = de_PolicyGenerationList(data.policyGenerations, context);
|
|
1499
1495
|
}
|
|
1500
1496
|
return contents;
|
|
1501
1497
|
};
|
|
1502
|
-
const
|
|
1498
|
+
const de_ListPolicyGenerationsCommandError = async (output, context) => {
|
|
1503
1499
|
const parsedOutput = {
|
|
1504
1500
|
...output,
|
|
1505
1501
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1508,16 +1504,16 @@ const deserializeAws_restJson1ListPolicyGenerationsCommandError = async (output,
|
|
|
1508
1504
|
switch (errorCode) {
|
|
1509
1505
|
case "AccessDeniedException":
|
|
1510
1506
|
case "com.amazonaws.accessanalyzer#AccessDeniedException":
|
|
1511
|
-
throw await
|
|
1507
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1512
1508
|
case "InternalServerException":
|
|
1513
1509
|
case "com.amazonaws.accessanalyzer#InternalServerException":
|
|
1514
|
-
throw await
|
|
1510
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1515
1511
|
case "ThrottlingException":
|
|
1516
1512
|
case "com.amazonaws.accessanalyzer#ThrottlingException":
|
|
1517
|
-
throw await
|
|
1513
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1518
1514
|
case "ValidationException":
|
|
1519
1515
|
case "com.amazonaws.accessanalyzer#ValidationException":
|
|
1520
|
-
throw await
|
|
1516
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1521
1517
|
default:
|
|
1522
1518
|
const parsedBody = parsedOutput.body;
|
|
1523
1519
|
throwDefaultError({
|
|
@@ -1528,20 +1524,20 @@ const deserializeAws_restJson1ListPolicyGenerationsCommandError = async (output,
|
|
|
1528
1524
|
});
|
|
1529
1525
|
}
|
|
1530
1526
|
};
|
|
1531
|
-
export const
|
|
1527
|
+
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
1532
1528
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1533
|
-
return
|
|
1529
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
1534
1530
|
}
|
|
1535
1531
|
const contents = map({
|
|
1536
1532
|
$metadata: deserializeMetadata(output),
|
|
1537
1533
|
});
|
|
1538
1534
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1539
1535
|
if (data.tags != null) {
|
|
1540
|
-
contents.tags =
|
|
1536
|
+
contents.tags = de_TagsMap(data.tags, context);
|
|
1541
1537
|
}
|
|
1542
1538
|
return contents;
|
|
1543
1539
|
};
|
|
1544
|
-
const
|
|
1540
|
+
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
1545
1541
|
const parsedOutput = {
|
|
1546
1542
|
...output,
|
|
1547
1543
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1550,19 +1546,19 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
1550
1546
|
switch (errorCode) {
|
|
1551
1547
|
case "AccessDeniedException":
|
|
1552
1548
|
case "com.amazonaws.accessanalyzer#AccessDeniedException":
|
|
1553
|
-
throw await
|
|
1549
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1554
1550
|
case "InternalServerException":
|
|
1555
1551
|
case "com.amazonaws.accessanalyzer#InternalServerException":
|
|
1556
|
-
throw await
|
|
1552
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1557
1553
|
case "ResourceNotFoundException":
|
|
1558
1554
|
case "com.amazonaws.accessanalyzer#ResourceNotFoundException":
|
|
1559
|
-
throw await
|
|
1555
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1560
1556
|
case "ThrottlingException":
|
|
1561
1557
|
case "com.amazonaws.accessanalyzer#ThrottlingException":
|
|
1562
|
-
throw await
|
|
1558
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1563
1559
|
case "ValidationException":
|
|
1564
1560
|
case "com.amazonaws.accessanalyzer#ValidationException":
|
|
1565
|
-
throw await
|
|
1561
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1566
1562
|
default:
|
|
1567
1563
|
const parsedBody = parsedOutput.body;
|
|
1568
1564
|
throwDefaultError({
|
|
@@ -1573,9 +1569,9 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
1573
1569
|
});
|
|
1574
1570
|
}
|
|
1575
1571
|
};
|
|
1576
|
-
export const
|
|
1572
|
+
export const de_StartPolicyGenerationCommand = async (output, context) => {
|
|
1577
1573
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1578
|
-
return
|
|
1574
|
+
return de_StartPolicyGenerationCommandError(output, context);
|
|
1579
1575
|
}
|
|
1580
1576
|
const contents = map({
|
|
1581
1577
|
$metadata: deserializeMetadata(output),
|
|
@@ -1586,7 +1582,7 @@ export const deserializeAws_restJson1StartPolicyGenerationCommand = async (outpu
|
|
|
1586
1582
|
}
|
|
1587
1583
|
return contents;
|
|
1588
1584
|
};
|
|
1589
|
-
const
|
|
1585
|
+
const de_StartPolicyGenerationCommandError = async (output, context) => {
|
|
1590
1586
|
const parsedOutput = {
|
|
1591
1587
|
...output,
|
|
1592
1588
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1595,22 +1591,22 @@ const deserializeAws_restJson1StartPolicyGenerationCommandError = async (output,
|
|
|
1595
1591
|
switch (errorCode) {
|
|
1596
1592
|
case "AccessDeniedException":
|
|
1597
1593
|
case "com.amazonaws.accessanalyzer#AccessDeniedException":
|
|
1598
|
-
throw await
|
|
1594
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1599
1595
|
case "ConflictException":
|
|
1600
1596
|
case "com.amazonaws.accessanalyzer#ConflictException":
|
|
1601
|
-
throw await
|
|
1597
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1602
1598
|
case "InternalServerException":
|
|
1603
1599
|
case "com.amazonaws.accessanalyzer#InternalServerException":
|
|
1604
|
-
throw await
|
|
1600
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1605
1601
|
case "ServiceQuotaExceededException":
|
|
1606
1602
|
case "com.amazonaws.accessanalyzer#ServiceQuotaExceededException":
|
|
1607
|
-
throw await
|
|
1603
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1608
1604
|
case "ThrottlingException":
|
|
1609
1605
|
case "com.amazonaws.accessanalyzer#ThrottlingException":
|
|
1610
|
-
throw await
|
|
1606
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1611
1607
|
case "ValidationException":
|
|
1612
1608
|
case "com.amazonaws.accessanalyzer#ValidationException":
|
|
1613
|
-
throw await
|
|
1609
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1614
1610
|
default:
|
|
1615
1611
|
const parsedBody = parsedOutput.body;
|
|
1616
1612
|
throwDefaultError({
|
|
@@ -1621,9 +1617,9 @@ const deserializeAws_restJson1StartPolicyGenerationCommandError = async (output,
|
|
|
1621
1617
|
});
|
|
1622
1618
|
}
|
|
1623
1619
|
};
|
|
1624
|
-
export const
|
|
1620
|
+
export const de_StartResourceScanCommand = async (output, context) => {
|
|
1625
1621
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1626
|
-
return
|
|
1622
|
+
return de_StartResourceScanCommandError(output, context);
|
|
1627
1623
|
}
|
|
1628
1624
|
const contents = map({
|
|
1629
1625
|
$metadata: deserializeMetadata(output),
|
|
@@ -1631,7 +1627,7 @@ export const deserializeAws_restJson1StartResourceScanCommand = async (output, c
|
|
|
1631
1627
|
await collectBody(output.body, context);
|
|
1632
1628
|
return contents;
|
|
1633
1629
|
};
|
|
1634
|
-
const
|
|
1630
|
+
const de_StartResourceScanCommandError = async (output, context) => {
|
|
1635
1631
|
const parsedOutput = {
|
|
1636
1632
|
...output,
|
|
1637
1633
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1640,19 +1636,19 @@ const deserializeAws_restJson1StartResourceScanCommandError = async (output, con
|
|
|
1640
1636
|
switch (errorCode) {
|
|
1641
1637
|
case "AccessDeniedException":
|
|
1642
1638
|
case "com.amazonaws.accessanalyzer#AccessDeniedException":
|
|
1643
|
-
throw await
|
|
1639
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1644
1640
|
case "InternalServerException":
|
|
1645
1641
|
case "com.amazonaws.accessanalyzer#InternalServerException":
|
|
1646
|
-
throw await
|
|
1642
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1647
1643
|
case "ResourceNotFoundException":
|
|
1648
1644
|
case "com.amazonaws.accessanalyzer#ResourceNotFoundException":
|
|
1649
|
-
throw await
|
|
1645
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1650
1646
|
case "ThrottlingException":
|
|
1651
1647
|
case "com.amazonaws.accessanalyzer#ThrottlingException":
|
|
1652
|
-
throw await
|
|
1648
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1653
1649
|
case "ValidationException":
|
|
1654
1650
|
case "com.amazonaws.accessanalyzer#ValidationException":
|
|
1655
|
-
throw await
|
|
1651
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1656
1652
|
default:
|
|
1657
1653
|
const parsedBody = parsedOutput.body;
|
|
1658
1654
|
throwDefaultError({
|
|
@@ -1663,9 +1659,9 @@ const deserializeAws_restJson1StartResourceScanCommandError = async (output, con
|
|
|
1663
1659
|
});
|
|
1664
1660
|
}
|
|
1665
1661
|
};
|
|
1666
|
-
export const
|
|
1662
|
+
export const de_TagResourceCommand = async (output, context) => {
|
|
1667
1663
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1668
|
-
return
|
|
1664
|
+
return de_TagResourceCommandError(output, context);
|
|
1669
1665
|
}
|
|
1670
1666
|
const contents = map({
|
|
1671
1667
|
$metadata: deserializeMetadata(output),
|
|
@@ -1673,7 +1669,7 @@ export const deserializeAws_restJson1TagResourceCommand = async (output, context
|
|
|
1673
1669
|
await collectBody(output.body, context);
|
|
1674
1670
|
return contents;
|
|
1675
1671
|
};
|
|
1676
|
-
const
|
|
1672
|
+
const de_TagResourceCommandError = async (output, context) => {
|
|
1677
1673
|
const parsedOutput = {
|
|
1678
1674
|
...output,
|
|
1679
1675
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1682,19 +1678,19 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
1682
1678
|
switch (errorCode) {
|
|
1683
1679
|
case "AccessDeniedException":
|
|
1684
1680
|
case "com.amazonaws.accessanalyzer#AccessDeniedException":
|
|
1685
|
-
throw await
|
|
1681
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1686
1682
|
case "InternalServerException":
|
|
1687
1683
|
case "com.amazonaws.accessanalyzer#InternalServerException":
|
|
1688
|
-
throw await
|
|
1684
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1689
1685
|
case "ResourceNotFoundException":
|
|
1690
1686
|
case "com.amazonaws.accessanalyzer#ResourceNotFoundException":
|
|
1691
|
-
throw await
|
|
1687
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1692
1688
|
case "ThrottlingException":
|
|
1693
1689
|
case "com.amazonaws.accessanalyzer#ThrottlingException":
|
|
1694
|
-
throw await
|
|
1690
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1695
1691
|
case "ValidationException":
|
|
1696
1692
|
case "com.amazonaws.accessanalyzer#ValidationException":
|
|
1697
|
-
throw await
|
|
1693
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1698
1694
|
default:
|
|
1699
1695
|
const parsedBody = parsedOutput.body;
|
|
1700
1696
|
throwDefaultError({
|
|
@@ -1705,9 +1701,9 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
1705
1701
|
});
|
|
1706
1702
|
}
|
|
1707
1703
|
};
|
|
1708
|
-
export const
|
|
1704
|
+
export const de_UntagResourceCommand = async (output, context) => {
|
|
1709
1705
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1710
|
-
return
|
|
1706
|
+
return de_UntagResourceCommandError(output, context);
|
|
1711
1707
|
}
|
|
1712
1708
|
const contents = map({
|
|
1713
1709
|
$metadata: deserializeMetadata(output),
|
|
@@ -1715,7 +1711,7 @@ export const deserializeAws_restJson1UntagResourceCommand = async (output, conte
|
|
|
1715
1711
|
await collectBody(output.body, context);
|
|
1716
1712
|
return contents;
|
|
1717
1713
|
};
|
|
1718
|
-
const
|
|
1714
|
+
const de_UntagResourceCommandError = async (output, context) => {
|
|
1719
1715
|
const parsedOutput = {
|
|
1720
1716
|
...output,
|
|
1721
1717
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1724,19 +1720,19 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
1724
1720
|
switch (errorCode) {
|
|
1725
1721
|
case "AccessDeniedException":
|
|
1726
1722
|
case "com.amazonaws.accessanalyzer#AccessDeniedException":
|
|
1727
|
-
throw await
|
|
1723
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1728
1724
|
case "InternalServerException":
|
|
1729
1725
|
case "com.amazonaws.accessanalyzer#InternalServerException":
|
|
1730
|
-
throw await
|
|
1726
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1731
1727
|
case "ResourceNotFoundException":
|
|
1732
1728
|
case "com.amazonaws.accessanalyzer#ResourceNotFoundException":
|
|
1733
|
-
throw await
|
|
1729
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1734
1730
|
case "ThrottlingException":
|
|
1735
1731
|
case "com.amazonaws.accessanalyzer#ThrottlingException":
|
|
1736
|
-
throw await
|
|
1732
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1737
1733
|
case "ValidationException":
|
|
1738
1734
|
case "com.amazonaws.accessanalyzer#ValidationException":
|
|
1739
|
-
throw await
|
|
1735
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1740
1736
|
default:
|
|
1741
1737
|
const parsedBody = parsedOutput.body;
|
|
1742
1738
|
throwDefaultError({
|
|
@@ -1747,9 +1743,9 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
1747
1743
|
});
|
|
1748
1744
|
}
|
|
1749
1745
|
};
|
|
1750
|
-
export const
|
|
1746
|
+
export const de_UpdateArchiveRuleCommand = async (output, context) => {
|
|
1751
1747
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1752
|
-
return
|
|
1748
|
+
return de_UpdateArchiveRuleCommandError(output, context);
|
|
1753
1749
|
}
|
|
1754
1750
|
const contents = map({
|
|
1755
1751
|
$metadata: deserializeMetadata(output),
|
|
@@ -1757,7 +1753,7 @@ export const deserializeAws_restJson1UpdateArchiveRuleCommand = async (output, c
|
|
|
1757
1753
|
await collectBody(output.body, context);
|
|
1758
1754
|
return contents;
|
|
1759
1755
|
};
|
|
1760
|
-
const
|
|
1756
|
+
const de_UpdateArchiveRuleCommandError = async (output, context) => {
|
|
1761
1757
|
const parsedOutput = {
|
|
1762
1758
|
...output,
|
|
1763
1759
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1766,19 +1762,19 @@ const deserializeAws_restJson1UpdateArchiveRuleCommandError = async (output, con
|
|
|
1766
1762
|
switch (errorCode) {
|
|
1767
1763
|
case "AccessDeniedException":
|
|
1768
1764
|
case "com.amazonaws.accessanalyzer#AccessDeniedException":
|
|
1769
|
-
throw await
|
|
1765
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1770
1766
|
case "InternalServerException":
|
|
1771
1767
|
case "com.amazonaws.accessanalyzer#InternalServerException":
|
|
1772
|
-
throw await
|
|
1768
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1773
1769
|
case "ResourceNotFoundException":
|
|
1774
1770
|
case "com.amazonaws.accessanalyzer#ResourceNotFoundException":
|
|
1775
|
-
throw await
|
|
1771
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1776
1772
|
case "ThrottlingException":
|
|
1777
1773
|
case "com.amazonaws.accessanalyzer#ThrottlingException":
|
|
1778
|
-
throw await
|
|
1774
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1779
1775
|
case "ValidationException":
|
|
1780
1776
|
case "com.amazonaws.accessanalyzer#ValidationException":
|
|
1781
|
-
throw await
|
|
1777
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1782
1778
|
default:
|
|
1783
1779
|
const parsedBody = parsedOutput.body;
|
|
1784
1780
|
throwDefaultError({
|
|
@@ -1789,9 +1785,9 @@ const deserializeAws_restJson1UpdateArchiveRuleCommandError = async (output, con
|
|
|
1789
1785
|
});
|
|
1790
1786
|
}
|
|
1791
1787
|
};
|
|
1792
|
-
export const
|
|
1788
|
+
export const de_UpdateFindingsCommand = async (output, context) => {
|
|
1793
1789
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1794
|
-
return
|
|
1790
|
+
return de_UpdateFindingsCommandError(output, context);
|
|
1795
1791
|
}
|
|
1796
1792
|
const contents = map({
|
|
1797
1793
|
$metadata: deserializeMetadata(output),
|
|
@@ -1799,7 +1795,7 @@ export const deserializeAws_restJson1UpdateFindingsCommand = async (output, cont
|
|
|
1799
1795
|
await collectBody(output.body, context);
|
|
1800
1796
|
return contents;
|
|
1801
1797
|
};
|
|
1802
|
-
const
|
|
1798
|
+
const de_UpdateFindingsCommandError = async (output, context) => {
|
|
1803
1799
|
const parsedOutput = {
|
|
1804
1800
|
...output,
|
|
1805
1801
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1808,19 +1804,19 @@ const deserializeAws_restJson1UpdateFindingsCommandError = async (output, contex
|
|
|
1808
1804
|
switch (errorCode) {
|
|
1809
1805
|
case "AccessDeniedException":
|
|
1810
1806
|
case "com.amazonaws.accessanalyzer#AccessDeniedException":
|
|
1811
|
-
throw await
|
|
1807
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1812
1808
|
case "InternalServerException":
|
|
1813
1809
|
case "com.amazonaws.accessanalyzer#InternalServerException":
|
|
1814
|
-
throw await
|
|
1810
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1815
1811
|
case "ResourceNotFoundException":
|
|
1816
1812
|
case "com.amazonaws.accessanalyzer#ResourceNotFoundException":
|
|
1817
|
-
throw await
|
|
1813
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1818
1814
|
case "ThrottlingException":
|
|
1819
1815
|
case "com.amazonaws.accessanalyzer#ThrottlingException":
|
|
1820
|
-
throw await
|
|
1816
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1821
1817
|
case "ValidationException":
|
|
1822
1818
|
case "com.amazonaws.accessanalyzer#ValidationException":
|
|
1823
|
-
throw await
|
|
1819
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1824
1820
|
default:
|
|
1825
1821
|
const parsedBody = parsedOutput.body;
|
|
1826
1822
|
throwDefaultError({
|
|
@@ -1831,23 +1827,23 @@ const deserializeAws_restJson1UpdateFindingsCommandError = async (output, contex
|
|
|
1831
1827
|
});
|
|
1832
1828
|
}
|
|
1833
1829
|
};
|
|
1834
|
-
export const
|
|
1830
|
+
export const de_ValidatePolicyCommand = async (output, context) => {
|
|
1835
1831
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1836
|
-
return
|
|
1832
|
+
return de_ValidatePolicyCommandError(output, context);
|
|
1837
1833
|
}
|
|
1838
1834
|
const contents = map({
|
|
1839
1835
|
$metadata: deserializeMetadata(output),
|
|
1840
1836
|
});
|
|
1841
1837
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1842
1838
|
if (data.findings != null) {
|
|
1843
|
-
contents.findings =
|
|
1839
|
+
contents.findings = de_ValidatePolicyFindingList(data.findings, context);
|
|
1844
1840
|
}
|
|
1845
1841
|
if (data.nextToken != null) {
|
|
1846
1842
|
contents.nextToken = __expectString(data.nextToken);
|
|
1847
1843
|
}
|
|
1848
1844
|
return contents;
|
|
1849
1845
|
};
|
|
1850
|
-
const
|
|
1846
|
+
const de_ValidatePolicyCommandError = async (output, context) => {
|
|
1851
1847
|
const parsedOutput = {
|
|
1852
1848
|
...output,
|
|
1853
1849
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1856,16 +1852,16 @@ const deserializeAws_restJson1ValidatePolicyCommandError = async (output, contex
|
|
|
1856
1852
|
switch (errorCode) {
|
|
1857
1853
|
case "AccessDeniedException":
|
|
1858
1854
|
case "com.amazonaws.accessanalyzer#AccessDeniedException":
|
|
1859
|
-
throw await
|
|
1855
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1860
1856
|
case "InternalServerException":
|
|
1861
1857
|
case "com.amazonaws.accessanalyzer#InternalServerException":
|
|
1862
|
-
throw await
|
|
1858
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1863
1859
|
case "ThrottlingException":
|
|
1864
1860
|
case "com.amazonaws.accessanalyzer#ThrottlingException":
|
|
1865
|
-
throw await
|
|
1861
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1866
1862
|
case "ValidationException":
|
|
1867
1863
|
case "com.amazonaws.accessanalyzer#ValidationException":
|
|
1868
|
-
throw await
|
|
1864
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1869
1865
|
default:
|
|
1870
1866
|
const parsedBody = parsedOutput.body;
|
|
1871
1867
|
throwDefaultError({
|
|
@@ -1877,7 +1873,7 @@ const deserializeAws_restJson1ValidatePolicyCommandError = async (output, contex
|
|
|
1877
1873
|
}
|
|
1878
1874
|
};
|
|
1879
1875
|
const map = __map;
|
|
1880
|
-
const
|
|
1876
|
+
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
1881
1877
|
const contents = map({});
|
|
1882
1878
|
const data = parsedOutput.body;
|
|
1883
1879
|
if (data.message != null) {
|
|
@@ -1889,7 +1885,7 @@ const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutpu
|
|
|
1889
1885
|
});
|
|
1890
1886
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1891
1887
|
};
|
|
1892
|
-
const
|
|
1888
|
+
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
1893
1889
|
const contents = map({});
|
|
1894
1890
|
const data = parsedOutput.body;
|
|
1895
1891
|
if (data.message != null) {
|
|
@@ -1907,7 +1903,7 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
|
|
|
1907
1903
|
});
|
|
1908
1904
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1909
1905
|
};
|
|
1910
|
-
const
|
|
1906
|
+
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
1911
1907
|
const contents = map({
|
|
1912
1908
|
retryAfterSeconds: [
|
|
1913
1909
|
() => void 0 !== parsedOutput.headers["retry-after"],
|
|
@@ -1924,7 +1920,7 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOut
|
|
|
1924
1920
|
});
|
|
1925
1921
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1926
1922
|
};
|
|
1927
|
-
const
|
|
1923
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1928
1924
|
const contents = map({});
|
|
1929
1925
|
const data = parsedOutput.body;
|
|
1930
1926
|
if (data.message != null) {
|
|
@@ -1942,7 +1938,7 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
|
|
|
1942
1938
|
});
|
|
1943
1939
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1944
1940
|
};
|
|
1945
|
-
const
|
|
1941
|
+
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
1946
1942
|
const contents = map({});
|
|
1947
1943
|
const data = parsedOutput.body;
|
|
1948
1944
|
if (data.message != null) {
|
|
@@ -1960,7 +1956,7 @@ const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (par
|
|
|
1960
1956
|
});
|
|
1961
1957
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1962
1958
|
};
|
|
1963
|
-
const
|
|
1959
|
+
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
1964
1960
|
const contents = map({
|
|
1965
1961
|
retryAfterSeconds: [
|
|
1966
1962
|
() => void 0 !== parsedOutput.headers["retry-after"],
|
|
@@ -1977,11 +1973,11 @@ const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput,
|
|
|
1977
1973
|
});
|
|
1978
1974
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1979
1975
|
};
|
|
1980
|
-
const
|
|
1976
|
+
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
1981
1977
|
const contents = map({});
|
|
1982
1978
|
const data = parsedOutput.body;
|
|
1983
1979
|
if (data.fieldList != null) {
|
|
1984
|
-
contents.fieldList =
|
|
1980
|
+
contents.fieldList = de_ValidationExceptionFieldList(data.fieldList, context);
|
|
1985
1981
|
}
|
|
1986
1982
|
if (data.message != null) {
|
|
1987
1983
|
contents.message = __expectString(data.message);
|
|
@@ -1995,127 +1991,123 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
|
|
|
1995
1991
|
});
|
|
1996
1992
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1997
1993
|
};
|
|
1998
|
-
const
|
|
1994
|
+
const se_AclGrantee = (input, context) => {
|
|
1999
1995
|
return AclGrantee.visit(input, {
|
|
2000
1996
|
id: (value) => ({ id: value }),
|
|
2001
1997
|
uri: (value) => ({ uri: value }),
|
|
2002
1998
|
_: (name, value) => ({ name: value }),
|
|
2003
1999
|
});
|
|
2004
2000
|
};
|
|
2005
|
-
const
|
|
2001
|
+
const se_CloudTrailDetails = (input, context) => {
|
|
2006
2002
|
return {
|
|
2007
2003
|
...(input.accessRole != null && { accessRole: input.accessRole }),
|
|
2008
2004
|
...(input.endTime != null && { endTime: input.endTime.toISOString().split(".")[0] + "Z" }),
|
|
2009
2005
|
...(input.startTime != null && { startTime: input.startTime.toISOString().split(".")[0] + "Z" }),
|
|
2010
|
-
...(input.trails != null && { trails:
|
|
2006
|
+
...(input.trails != null && { trails: se_TrailList(input.trails, context) }),
|
|
2011
2007
|
};
|
|
2012
2008
|
};
|
|
2013
|
-
const
|
|
2009
|
+
const se_Configuration = (input, context) => {
|
|
2014
2010
|
return Configuration.visit(input, {
|
|
2015
|
-
ebsSnapshot: (value) => ({ ebsSnapshot:
|
|
2016
|
-
ecrRepository: (value) => ({ ecrRepository:
|
|
2017
|
-
efsFileSystem: (value) => ({ efsFileSystem:
|
|
2018
|
-
iamRole: (value) => ({ iamRole:
|
|
2019
|
-
kmsKey: (value) => ({ kmsKey:
|
|
2020
|
-
rdsDbClusterSnapshot: (value) => ({
|
|
2021
|
-
|
|
2022
|
-
}),
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
secretsManagerSecret: serializeAws_restJson1SecretsManagerSecretConfiguration(value, context),
|
|
2027
|
-
}),
|
|
2028
|
-
snsTopic: (value) => ({ snsTopic: serializeAws_restJson1SnsTopicConfiguration(value, context) }),
|
|
2029
|
-
sqsQueue: (value) => ({ sqsQueue: serializeAws_restJson1SqsQueueConfiguration(value, context) }),
|
|
2011
|
+
ebsSnapshot: (value) => ({ ebsSnapshot: se_EbsSnapshotConfiguration(value, context) }),
|
|
2012
|
+
ecrRepository: (value) => ({ ecrRepository: se_EcrRepositoryConfiguration(value, context) }),
|
|
2013
|
+
efsFileSystem: (value) => ({ efsFileSystem: se_EfsFileSystemConfiguration(value, context) }),
|
|
2014
|
+
iamRole: (value) => ({ iamRole: se_IamRoleConfiguration(value, context) }),
|
|
2015
|
+
kmsKey: (value) => ({ kmsKey: se_KmsKeyConfiguration(value, context) }),
|
|
2016
|
+
rdsDbClusterSnapshot: (value) => ({ rdsDbClusterSnapshot: se_RdsDbClusterSnapshotConfiguration(value, context) }),
|
|
2017
|
+
rdsDbSnapshot: (value) => ({ rdsDbSnapshot: se_RdsDbSnapshotConfiguration(value, context) }),
|
|
2018
|
+
s3Bucket: (value) => ({ s3Bucket: se_S3BucketConfiguration(value, context) }),
|
|
2019
|
+
secretsManagerSecret: (value) => ({ secretsManagerSecret: se_SecretsManagerSecretConfiguration(value, context) }),
|
|
2020
|
+
snsTopic: (value) => ({ snsTopic: se_SnsTopicConfiguration(value, context) }),
|
|
2021
|
+
sqsQueue: (value) => ({ sqsQueue: se_SqsQueueConfiguration(value, context) }),
|
|
2030
2022
|
_: (name, value) => ({ name: value }),
|
|
2031
2023
|
});
|
|
2032
2024
|
};
|
|
2033
|
-
const
|
|
2025
|
+
const se_ConfigurationsMap = (input, context) => {
|
|
2034
2026
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2035
2027
|
if (value === null) {
|
|
2036
2028
|
return acc;
|
|
2037
2029
|
}
|
|
2038
|
-
acc[key] =
|
|
2030
|
+
acc[key] = se_Configuration(value, context);
|
|
2039
2031
|
return acc;
|
|
2040
2032
|
}, {});
|
|
2041
2033
|
};
|
|
2042
|
-
const
|
|
2034
|
+
const se_Criterion = (input, context) => {
|
|
2043
2035
|
return {
|
|
2044
|
-
...(input.contains != null && { contains:
|
|
2045
|
-
...(input.eq != null && { eq:
|
|
2036
|
+
...(input.contains != null && { contains: se_ValueList(input.contains, context) }),
|
|
2037
|
+
...(input.eq != null && { eq: se_ValueList(input.eq, context) }),
|
|
2046
2038
|
...(input.exists != null && { exists: input.exists }),
|
|
2047
|
-
...(input.neq != null && { neq:
|
|
2039
|
+
...(input.neq != null && { neq: se_ValueList(input.neq, context) }),
|
|
2048
2040
|
};
|
|
2049
2041
|
};
|
|
2050
|
-
const
|
|
2042
|
+
const se_EbsGroupList = (input, context) => {
|
|
2051
2043
|
return input
|
|
2052
2044
|
.filter((e) => e != null)
|
|
2053
2045
|
.map((entry) => {
|
|
2054
2046
|
return entry;
|
|
2055
2047
|
});
|
|
2056
2048
|
};
|
|
2057
|
-
const
|
|
2049
|
+
const se_EbsSnapshotConfiguration = (input, context) => {
|
|
2058
2050
|
return {
|
|
2059
|
-
...(input.groups != null && { groups:
|
|
2051
|
+
...(input.groups != null && { groups: se_EbsGroupList(input.groups, context) }),
|
|
2060
2052
|
...(input.kmsKeyId != null && { kmsKeyId: input.kmsKeyId }),
|
|
2061
|
-
...(input.userIds != null && { userIds:
|
|
2053
|
+
...(input.userIds != null && { userIds: se_EbsUserIdList(input.userIds, context) }),
|
|
2062
2054
|
};
|
|
2063
2055
|
};
|
|
2064
|
-
const
|
|
2056
|
+
const se_EbsUserIdList = (input, context) => {
|
|
2065
2057
|
return input
|
|
2066
2058
|
.filter((e) => e != null)
|
|
2067
2059
|
.map((entry) => {
|
|
2068
2060
|
return entry;
|
|
2069
2061
|
});
|
|
2070
2062
|
};
|
|
2071
|
-
const
|
|
2063
|
+
const se_EcrRepositoryConfiguration = (input, context) => {
|
|
2072
2064
|
return {
|
|
2073
2065
|
...(input.repositoryPolicy != null && { repositoryPolicy: input.repositoryPolicy }),
|
|
2074
2066
|
};
|
|
2075
2067
|
};
|
|
2076
|
-
const
|
|
2068
|
+
const se_EfsFileSystemConfiguration = (input, context) => {
|
|
2077
2069
|
return {
|
|
2078
2070
|
...(input.fileSystemPolicy != null && { fileSystemPolicy: input.fileSystemPolicy }),
|
|
2079
2071
|
};
|
|
2080
2072
|
};
|
|
2081
|
-
const
|
|
2073
|
+
const se_FilterCriteriaMap = (input, context) => {
|
|
2082
2074
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2083
2075
|
if (value === null) {
|
|
2084
2076
|
return acc;
|
|
2085
2077
|
}
|
|
2086
|
-
acc[key] =
|
|
2078
|
+
acc[key] = se_Criterion(value, context);
|
|
2087
2079
|
return acc;
|
|
2088
2080
|
}, {});
|
|
2089
2081
|
};
|
|
2090
|
-
const
|
|
2082
|
+
const se_FindingIdList = (input, context) => {
|
|
2091
2083
|
return input
|
|
2092
2084
|
.filter((e) => e != null)
|
|
2093
2085
|
.map((entry) => {
|
|
2094
2086
|
return entry;
|
|
2095
2087
|
});
|
|
2096
2088
|
};
|
|
2097
|
-
const
|
|
2089
|
+
const se_IamRoleConfiguration = (input, context) => {
|
|
2098
2090
|
return {
|
|
2099
2091
|
...(input.trustPolicy != null && { trustPolicy: input.trustPolicy }),
|
|
2100
2092
|
};
|
|
2101
2093
|
};
|
|
2102
|
-
const
|
|
2094
|
+
const se_InlineArchiveRule = (input, context) => {
|
|
2103
2095
|
return {
|
|
2104
|
-
...(input.filter != null && { filter:
|
|
2096
|
+
...(input.filter != null && { filter: se_FilterCriteriaMap(input.filter, context) }),
|
|
2105
2097
|
...(input.ruleName != null && { ruleName: input.ruleName }),
|
|
2106
2098
|
};
|
|
2107
2099
|
};
|
|
2108
|
-
const
|
|
2100
|
+
const se_InlineArchiveRulesList = (input, context) => {
|
|
2109
2101
|
return input
|
|
2110
2102
|
.filter((e) => e != null)
|
|
2111
2103
|
.map((entry) => {
|
|
2112
|
-
return
|
|
2104
|
+
return se_InlineArchiveRule(entry, context);
|
|
2113
2105
|
});
|
|
2114
2106
|
};
|
|
2115
|
-
const
|
|
2107
|
+
const se_InternetConfiguration = (input, context) => {
|
|
2116
2108
|
return {};
|
|
2117
2109
|
};
|
|
2118
|
-
const
|
|
2110
|
+
const se_KmsConstraintsMap = (input, context) => {
|
|
2119
2111
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2120
2112
|
if (value === null) {
|
|
2121
2113
|
return acc;
|
|
@@ -2124,52 +2116,46 @@ const serializeAws_restJson1KmsConstraintsMap = (input, context) => {
|
|
|
2124
2116
|
return acc;
|
|
2125
2117
|
}, {});
|
|
2126
2118
|
};
|
|
2127
|
-
const
|
|
2119
|
+
const se_KmsGrantConfiguration = (input, context) => {
|
|
2128
2120
|
return {
|
|
2129
|
-
...(input.constraints != null && {
|
|
2130
|
-
constraints: serializeAws_restJson1KmsGrantConstraints(input.constraints, context),
|
|
2131
|
-
}),
|
|
2121
|
+
...(input.constraints != null && { constraints: se_KmsGrantConstraints(input.constraints, context) }),
|
|
2132
2122
|
...(input.granteePrincipal != null && { granteePrincipal: input.granteePrincipal }),
|
|
2133
2123
|
...(input.issuingAccount != null && { issuingAccount: input.issuingAccount }),
|
|
2134
|
-
...(input.operations != null && {
|
|
2135
|
-
operations: serializeAws_restJson1KmsGrantOperationsList(input.operations, context),
|
|
2136
|
-
}),
|
|
2124
|
+
...(input.operations != null && { operations: se_KmsGrantOperationsList(input.operations, context) }),
|
|
2137
2125
|
...(input.retiringPrincipal != null && { retiringPrincipal: input.retiringPrincipal }),
|
|
2138
2126
|
};
|
|
2139
2127
|
};
|
|
2140
|
-
const
|
|
2128
|
+
const se_KmsGrantConfigurationsList = (input, context) => {
|
|
2141
2129
|
return input
|
|
2142
2130
|
.filter((e) => e != null)
|
|
2143
2131
|
.map((entry) => {
|
|
2144
|
-
return
|
|
2132
|
+
return se_KmsGrantConfiguration(entry, context);
|
|
2145
2133
|
});
|
|
2146
2134
|
};
|
|
2147
|
-
const
|
|
2135
|
+
const se_KmsGrantConstraints = (input, context) => {
|
|
2148
2136
|
return {
|
|
2149
2137
|
...(input.encryptionContextEquals != null && {
|
|
2150
|
-
encryptionContextEquals:
|
|
2138
|
+
encryptionContextEquals: se_KmsConstraintsMap(input.encryptionContextEquals, context),
|
|
2151
2139
|
}),
|
|
2152
2140
|
...(input.encryptionContextSubset != null && {
|
|
2153
|
-
encryptionContextSubset:
|
|
2141
|
+
encryptionContextSubset: se_KmsConstraintsMap(input.encryptionContextSubset, context),
|
|
2154
2142
|
}),
|
|
2155
2143
|
};
|
|
2156
2144
|
};
|
|
2157
|
-
const
|
|
2145
|
+
const se_KmsGrantOperationsList = (input, context) => {
|
|
2158
2146
|
return input
|
|
2159
2147
|
.filter((e) => e != null)
|
|
2160
2148
|
.map((entry) => {
|
|
2161
2149
|
return entry;
|
|
2162
2150
|
});
|
|
2163
2151
|
};
|
|
2164
|
-
const
|
|
2152
|
+
const se_KmsKeyConfiguration = (input, context) => {
|
|
2165
2153
|
return {
|
|
2166
|
-
...(input.grants != null && { grants:
|
|
2167
|
-
...(input.keyPolicies != null && {
|
|
2168
|
-
keyPolicies: serializeAws_restJson1KmsKeyPoliciesMap(input.keyPolicies, context),
|
|
2169
|
-
}),
|
|
2154
|
+
...(input.grants != null && { grants: se_KmsGrantConfigurationsList(input.grants, context) }),
|
|
2155
|
+
...(input.keyPolicies != null && { keyPolicies: se_KmsKeyPoliciesMap(input.keyPolicies, context) }),
|
|
2170
2156
|
};
|
|
2171
2157
|
};
|
|
2172
|
-
const
|
|
2158
|
+
const se_KmsKeyPoliciesMap = (input, context) => {
|
|
2173
2159
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2174
2160
|
if (value === null) {
|
|
2175
2161
|
return acc;
|
|
@@ -2178,163 +2164,153 @@ const serializeAws_restJson1KmsKeyPoliciesMap = (input, context) => {
|
|
|
2178
2164
|
return acc;
|
|
2179
2165
|
}, {});
|
|
2180
2166
|
};
|
|
2181
|
-
const
|
|
2167
|
+
const se_NetworkOriginConfiguration = (input, context) => {
|
|
2182
2168
|
return NetworkOriginConfiguration.visit(input, {
|
|
2183
|
-
internetConfiguration: (value) => ({
|
|
2184
|
-
|
|
2185
|
-
}),
|
|
2186
|
-
vpcConfiguration: (value) => ({ vpcConfiguration: serializeAws_restJson1VpcConfiguration(value, context) }),
|
|
2169
|
+
internetConfiguration: (value) => ({ internetConfiguration: se_InternetConfiguration(value, context) }),
|
|
2170
|
+
vpcConfiguration: (value) => ({ vpcConfiguration: se_VpcConfiguration(value, context) }),
|
|
2187
2171
|
_: (name, value) => ({ name: value }),
|
|
2188
2172
|
});
|
|
2189
2173
|
};
|
|
2190
|
-
const
|
|
2174
|
+
const se_PolicyGenerationDetails = (input, context) => {
|
|
2191
2175
|
return {
|
|
2192
2176
|
...(input.principalArn != null && { principalArn: input.principalArn }),
|
|
2193
2177
|
};
|
|
2194
2178
|
};
|
|
2195
|
-
const
|
|
2179
|
+
const se_RdsDbClusterSnapshotAccountIdsList = (input, context) => {
|
|
2196
2180
|
return input
|
|
2197
2181
|
.filter((e) => e != null)
|
|
2198
2182
|
.map((entry) => {
|
|
2199
2183
|
return entry;
|
|
2200
2184
|
});
|
|
2201
2185
|
};
|
|
2202
|
-
const
|
|
2186
|
+
const se_RdsDbClusterSnapshotAttributesMap = (input, context) => {
|
|
2203
2187
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2204
2188
|
if (value === null) {
|
|
2205
2189
|
return acc;
|
|
2206
2190
|
}
|
|
2207
|
-
acc[key] =
|
|
2191
|
+
acc[key] = se_RdsDbClusterSnapshotAttributeValue(value, context);
|
|
2208
2192
|
return acc;
|
|
2209
2193
|
}, {});
|
|
2210
2194
|
};
|
|
2211
|
-
const
|
|
2195
|
+
const se_RdsDbClusterSnapshotAttributeValue = (input, context) => {
|
|
2212
2196
|
return RdsDbClusterSnapshotAttributeValue.visit(input, {
|
|
2213
|
-
accountIds: (value) => ({ accountIds:
|
|
2197
|
+
accountIds: (value) => ({ accountIds: se_RdsDbClusterSnapshotAccountIdsList(value, context) }),
|
|
2214
2198
|
_: (name, value) => ({ name: value }),
|
|
2215
2199
|
});
|
|
2216
2200
|
};
|
|
2217
|
-
const
|
|
2201
|
+
const se_RdsDbClusterSnapshotConfiguration = (input, context) => {
|
|
2218
2202
|
return {
|
|
2219
|
-
...(input.attributes != null && {
|
|
2220
|
-
attributes: serializeAws_restJson1RdsDbClusterSnapshotAttributesMap(input.attributes, context),
|
|
2221
|
-
}),
|
|
2203
|
+
...(input.attributes != null && { attributes: se_RdsDbClusterSnapshotAttributesMap(input.attributes, context) }),
|
|
2222
2204
|
...(input.kmsKeyId != null && { kmsKeyId: input.kmsKeyId }),
|
|
2223
2205
|
};
|
|
2224
2206
|
};
|
|
2225
|
-
const
|
|
2207
|
+
const se_RdsDbSnapshotAccountIdsList = (input, context) => {
|
|
2226
2208
|
return input
|
|
2227
2209
|
.filter((e) => e != null)
|
|
2228
2210
|
.map((entry) => {
|
|
2229
2211
|
return entry;
|
|
2230
2212
|
});
|
|
2231
2213
|
};
|
|
2232
|
-
const
|
|
2214
|
+
const se_RdsDbSnapshotAttributesMap = (input, context) => {
|
|
2233
2215
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2234
2216
|
if (value === null) {
|
|
2235
2217
|
return acc;
|
|
2236
2218
|
}
|
|
2237
|
-
acc[key] =
|
|
2219
|
+
acc[key] = se_RdsDbSnapshotAttributeValue(value, context);
|
|
2238
2220
|
return acc;
|
|
2239
2221
|
}, {});
|
|
2240
2222
|
};
|
|
2241
|
-
const
|
|
2223
|
+
const se_RdsDbSnapshotAttributeValue = (input, context) => {
|
|
2242
2224
|
return RdsDbSnapshotAttributeValue.visit(input, {
|
|
2243
|
-
accountIds: (value) => ({ accountIds:
|
|
2225
|
+
accountIds: (value) => ({ accountIds: se_RdsDbSnapshotAccountIdsList(value, context) }),
|
|
2244
2226
|
_: (name, value) => ({ name: value }),
|
|
2245
2227
|
});
|
|
2246
2228
|
};
|
|
2247
|
-
const
|
|
2229
|
+
const se_RdsDbSnapshotConfiguration = (input, context) => {
|
|
2248
2230
|
return {
|
|
2249
|
-
...(input.attributes != null && {
|
|
2250
|
-
attributes: serializeAws_restJson1RdsDbSnapshotAttributesMap(input.attributes, context),
|
|
2251
|
-
}),
|
|
2231
|
+
...(input.attributes != null && { attributes: se_RdsDbSnapshotAttributesMap(input.attributes, context) }),
|
|
2252
2232
|
...(input.kmsKeyId != null && { kmsKeyId: input.kmsKeyId }),
|
|
2253
2233
|
};
|
|
2254
2234
|
};
|
|
2255
|
-
const
|
|
2235
|
+
const se_RegionList = (input, context) => {
|
|
2256
2236
|
return input
|
|
2257
2237
|
.filter((e) => e != null)
|
|
2258
2238
|
.map((entry) => {
|
|
2259
2239
|
return entry;
|
|
2260
2240
|
});
|
|
2261
2241
|
};
|
|
2262
|
-
const
|
|
2242
|
+
const se_S3AccessPointConfiguration = (input, context) => {
|
|
2263
2243
|
return {
|
|
2264
2244
|
...(input.accessPointPolicy != null && { accessPointPolicy: input.accessPointPolicy }),
|
|
2265
|
-
...(input.networkOrigin != null && {
|
|
2266
|
-
networkOrigin: serializeAws_restJson1NetworkOriginConfiguration(input.networkOrigin, context),
|
|
2267
|
-
}),
|
|
2245
|
+
...(input.networkOrigin != null && { networkOrigin: se_NetworkOriginConfiguration(input.networkOrigin, context) }),
|
|
2268
2246
|
...(input.publicAccessBlock != null && {
|
|
2269
|
-
publicAccessBlock:
|
|
2247
|
+
publicAccessBlock: se_S3PublicAccessBlockConfiguration(input.publicAccessBlock, context),
|
|
2270
2248
|
}),
|
|
2271
2249
|
};
|
|
2272
2250
|
};
|
|
2273
|
-
const
|
|
2251
|
+
const se_S3AccessPointConfigurationsMap = (input, context) => {
|
|
2274
2252
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2275
2253
|
if (value === null) {
|
|
2276
2254
|
return acc;
|
|
2277
2255
|
}
|
|
2278
|
-
acc[key] =
|
|
2256
|
+
acc[key] = se_S3AccessPointConfiguration(value, context);
|
|
2279
2257
|
return acc;
|
|
2280
2258
|
}, {});
|
|
2281
2259
|
};
|
|
2282
|
-
const
|
|
2260
|
+
const se_S3BucketAclGrantConfiguration = (input, context) => {
|
|
2283
2261
|
return {
|
|
2284
|
-
...(input.grantee != null && { grantee:
|
|
2262
|
+
...(input.grantee != null && { grantee: se_AclGrantee(input.grantee, context) }),
|
|
2285
2263
|
...(input.permission != null && { permission: input.permission }),
|
|
2286
2264
|
};
|
|
2287
2265
|
};
|
|
2288
|
-
const
|
|
2266
|
+
const se_S3BucketAclGrantConfigurationsList = (input, context) => {
|
|
2289
2267
|
return input
|
|
2290
2268
|
.filter((e) => e != null)
|
|
2291
2269
|
.map((entry) => {
|
|
2292
|
-
return
|
|
2270
|
+
return se_S3BucketAclGrantConfiguration(entry, context);
|
|
2293
2271
|
});
|
|
2294
2272
|
};
|
|
2295
|
-
const
|
|
2273
|
+
const se_S3BucketConfiguration = (input, context) => {
|
|
2296
2274
|
return {
|
|
2297
|
-
...(input.accessPoints != null && {
|
|
2298
|
-
accessPoints: serializeAws_restJson1S3AccessPointConfigurationsMap(input.accessPoints, context),
|
|
2299
|
-
}),
|
|
2275
|
+
...(input.accessPoints != null && { accessPoints: se_S3AccessPointConfigurationsMap(input.accessPoints, context) }),
|
|
2300
2276
|
...(input.bucketAclGrants != null && {
|
|
2301
|
-
bucketAclGrants:
|
|
2277
|
+
bucketAclGrants: se_S3BucketAclGrantConfigurationsList(input.bucketAclGrants, context),
|
|
2302
2278
|
}),
|
|
2303
2279
|
...(input.bucketPolicy != null && { bucketPolicy: input.bucketPolicy }),
|
|
2304
2280
|
...(input.bucketPublicAccessBlock != null && {
|
|
2305
|
-
bucketPublicAccessBlock:
|
|
2281
|
+
bucketPublicAccessBlock: se_S3PublicAccessBlockConfiguration(input.bucketPublicAccessBlock, context),
|
|
2306
2282
|
}),
|
|
2307
2283
|
};
|
|
2308
2284
|
};
|
|
2309
|
-
const
|
|
2285
|
+
const se_S3PublicAccessBlockConfiguration = (input, context) => {
|
|
2310
2286
|
return {
|
|
2311
2287
|
...(input.ignorePublicAcls != null && { ignorePublicAcls: input.ignorePublicAcls }),
|
|
2312
2288
|
...(input.restrictPublicBuckets != null && { restrictPublicBuckets: input.restrictPublicBuckets }),
|
|
2313
2289
|
};
|
|
2314
2290
|
};
|
|
2315
|
-
const
|
|
2291
|
+
const se_SecretsManagerSecretConfiguration = (input, context) => {
|
|
2316
2292
|
return {
|
|
2317
2293
|
...(input.kmsKeyId != null && { kmsKeyId: input.kmsKeyId }),
|
|
2318
2294
|
...(input.secretPolicy != null && { secretPolicy: input.secretPolicy }),
|
|
2319
2295
|
};
|
|
2320
2296
|
};
|
|
2321
|
-
const
|
|
2297
|
+
const se_SnsTopicConfiguration = (input, context) => {
|
|
2322
2298
|
return {
|
|
2323
2299
|
...(input.topicPolicy != null && { topicPolicy: input.topicPolicy }),
|
|
2324
2300
|
};
|
|
2325
2301
|
};
|
|
2326
|
-
const
|
|
2302
|
+
const se_SortCriteria = (input, context) => {
|
|
2327
2303
|
return {
|
|
2328
2304
|
...(input.attributeName != null && { attributeName: input.attributeName }),
|
|
2329
2305
|
...(input.orderBy != null && { orderBy: input.orderBy }),
|
|
2330
2306
|
};
|
|
2331
2307
|
};
|
|
2332
|
-
const
|
|
2308
|
+
const se_SqsQueueConfiguration = (input, context) => {
|
|
2333
2309
|
return {
|
|
2334
2310
|
...(input.queuePolicy != null && { queuePolicy: input.queuePolicy }),
|
|
2335
2311
|
};
|
|
2336
2312
|
};
|
|
2337
|
-
const
|
|
2313
|
+
const se_TagsMap = (input, context) => {
|
|
2338
2314
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2339
2315
|
if (value === null) {
|
|
2340
2316
|
return acc;
|
|
@@ -2343,104 +2319,98 @@ const serializeAws_restJson1TagsMap = (input, context) => {
|
|
|
2343
2319
|
return acc;
|
|
2344
2320
|
}, {});
|
|
2345
2321
|
};
|
|
2346
|
-
const
|
|
2322
|
+
const se_Trail = (input, context) => {
|
|
2347
2323
|
return {
|
|
2348
2324
|
...(input.allRegions != null && { allRegions: input.allRegions }),
|
|
2349
2325
|
...(input.cloudTrailArn != null && { cloudTrailArn: input.cloudTrailArn }),
|
|
2350
|
-
...(input.regions != null && { regions:
|
|
2326
|
+
...(input.regions != null && { regions: se_RegionList(input.regions, context) }),
|
|
2351
2327
|
};
|
|
2352
2328
|
};
|
|
2353
|
-
const
|
|
2329
|
+
const se_TrailList = (input, context) => {
|
|
2354
2330
|
return input
|
|
2355
2331
|
.filter((e) => e != null)
|
|
2356
2332
|
.map((entry) => {
|
|
2357
|
-
return
|
|
2333
|
+
return se_Trail(entry, context);
|
|
2358
2334
|
});
|
|
2359
2335
|
};
|
|
2360
|
-
const
|
|
2336
|
+
const se_ValueList = (input, context) => {
|
|
2361
2337
|
return input
|
|
2362
2338
|
.filter((e) => e != null)
|
|
2363
2339
|
.map((entry) => {
|
|
2364
2340
|
return entry;
|
|
2365
2341
|
});
|
|
2366
2342
|
};
|
|
2367
|
-
const
|
|
2343
|
+
const se_VpcConfiguration = (input, context) => {
|
|
2368
2344
|
return {
|
|
2369
2345
|
...(input.vpcId != null && { vpcId: input.vpcId }),
|
|
2370
2346
|
};
|
|
2371
2347
|
};
|
|
2372
|
-
const
|
|
2348
|
+
const de_AccessPreview = (output, context) => {
|
|
2373
2349
|
return {
|
|
2374
2350
|
analyzerArn: __expectString(output.analyzerArn),
|
|
2375
|
-
configurations: output.configurations != null
|
|
2376
|
-
? deserializeAws_restJson1ConfigurationsMap(output.configurations, context)
|
|
2377
|
-
: undefined,
|
|
2351
|
+
configurations: output.configurations != null ? de_ConfigurationsMap(output.configurations, context) : undefined,
|
|
2378
2352
|
createdAt: output.createdAt != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.createdAt)) : undefined,
|
|
2379
2353
|
id: __expectString(output.id),
|
|
2380
2354
|
status: __expectString(output.status),
|
|
2381
|
-
statusReason: output.statusReason != null
|
|
2382
|
-
? deserializeAws_restJson1AccessPreviewStatusReason(output.statusReason, context)
|
|
2383
|
-
: undefined,
|
|
2355
|
+
statusReason: output.statusReason != null ? de_AccessPreviewStatusReason(output.statusReason, context) : undefined,
|
|
2384
2356
|
};
|
|
2385
2357
|
};
|
|
2386
|
-
const
|
|
2358
|
+
const de_AccessPreviewFinding = (output, context) => {
|
|
2387
2359
|
return {
|
|
2388
|
-
action: output.action != null ?
|
|
2360
|
+
action: output.action != null ? de_ActionList(output.action, context) : undefined,
|
|
2389
2361
|
changeType: __expectString(output.changeType),
|
|
2390
|
-
condition: output.condition != null ?
|
|
2362
|
+
condition: output.condition != null ? de_ConditionKeyMap(output.condition, context) : undefined,
|
|
2391
2363
|
createdAt: output.createdAt != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.createdAt)) : undefined,
|
|
2392
2364
|
error: __expectString(output.error),
|
|
2393
2365
|
existingFindingId: __expectString(output.existingFindingId),
|
|
2394
2366
|
existingFindingStatus: __expectString(output.existingFindingStatus),
|
|
2395
2367
|
id: __expectString(output.id),
|
|
2396
2368
|
isPublic: __expectBoolean(output.isPublic),
|
|
2397
|
-
principal: output.principal != null ?
|
|
2369
|
+
principal: output.principal != null ? de_PrincipalMap(output.principal, context) : undefined,
|
|
2398
2370
|
resource: __expectString(output.resource),
|
|
2399
2371
|
resourceOwnerAccount: __expectString(output.resourceOwnerAccount),
|
|
2400
2372
|
resourceType: __expectString(output.resourceType),
|
|
2401
|
-
sources: output.sources != null ?
|
|
2373
|
+
sources: output.sources != null ? de_FindingSourceList(output.sources, context) : undefined,
|
|
2402
2374
|
status: __expectString(output.status),
|
|
2403
2375
|
};
|
|
2404
2376
|
};
|
|
2405
|
-
const
|
|
2377
|
+
const de_AccessPreviewFindingsList = (output, context) => {
|
|
2406
2378
|
const retVal = (output || [])
|
|
2407
2379
|
.filter((e) => e != null)
|
|
2408
2380
|
.map((entry) => {
|
|
2409
2381
|
if (entry === null) {
|
|
2410
2382
|
return null;
|
|
2411
2383
|
}
|
|
2412
|
-
return
|
|
2384
|
+
return de_AccessPreviewFinding(entry, context);
|
|
2413
2385
|
});
|
|
2414
2386
|
return retVal;
|
|
2415
2387
|
};
|
|
2416
|
-
const
|
|
2388
|
+
const de_AccessPreviewsList = (output, context) => {
|
|
2417
2389
|
const retVal = (output || [])
|
|
2418
2390
|
.filter((e) => e != null)
|
|
2419
2391
|
.map((entry) => {
|
|
2420
2392
|
if (entry === null) {
|
|
2421
2393
|
return null;
|
|
2422
2394
|
}
|
|
2423
|
-
return
|
|
2395
|
+
return de_AccessPreviewSummary(entry, context);
|
|
2424
2396
|
});
|
|
2425
2397
|
return retVal;
|
|
2426
2398
|
};
|
|
2427
|
-
const
|
|
2399
|
+
const de_AccessPreviewStatusReason = (output, context) => {
|
|
2428
2400
|
return {
|
|
2429
2401
|
code: __expectString(output.code),
|
|
2430
2402
|
};
|
|
2431
2403
|
};
|
|
2432
|
-
const
|
|
2404
|
+
const de_AccessPreviewSummary = (output, context) => {
|
|
2433
2405
|
return {
|
|
2434
2406
|
analyzerArn: __expectString(output.analyzerArn),
|
|
2435
2407
|
createdAt: output.createdAt != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.createdAt)) : undefined,
|
|
2436
2408
|
id: __expectString(output.id),
|
|
2437
2409
|
status: __expectString(output.status),
|
|
2438
|
-
statusReason: output.statusReason != null
|
|
2439
|
-
? deserializeAws_restJson1AccessPreviewStatusReason(output.statusReason, context)
|
|
2440
|
-
: undefined,
|
|
2410
|
+
statusReason: output.statusReason != null ? de_AccessPreviewStatusReason(output.statusReason, context) : undefined,
|
|
2441
2411
|
};
|
|
2442
2412
|
};
|
|
2443
|
-
const
|
|
2413
|
+
const de_AclGrantee = (output, context) => {
|
|
2444
2414
|
if (__expectString(output.id) !== undefined) {
|
|
2445
2415
|
return { id: __expectString(output.id) };
|
|
2446
2416
|
}
|
|
@@ -2449,7 +2419,7 @@ const deserializeAws_restJson1AclGrantee = (output, context) => {
|
|
|
2449
2419
|
}
|
|
2450
2420
|
return { $unknown: Object.entries(output)[0] };
|
|
2451
2421
|
};
|
|
2452
|
-
const
|
|
2422
|
+
const de_ActionList = (output, context) => {
|
|
2453
2423
|
const retVal = (output || [])
|
|
2454
2424
|
.filter((e) => e != null)
|
|
2455
2425
|
.map((entry) => {
|
|
@@ -2460,9 +2430,9 @@ const deserializeAws_restJson1ActionList = (output, context) => {
|
|
|
2460
2430
|
});
|
|
2461
2431
|
return retVal;
|
|
2462
2432
|
};
|
|
2463
|
-
const
|
|
2433
|
+
const de_AnalyzedResource = (output, context) => {
|
|
2464
2434
|
return {
|
|
2465
|
-
actions: output.actions != null ?
|
|
2435
|
+
actions: output.actions != null ? de_ActionList(output.actions, context) : undefined,
|
|
2466
2436
|
analyzedAt: output.analyzedAt != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.analyzedAt)) : undefined,
|
|
2467
2437
|
createdAt: output.createdAt != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.createdAt)) : undefined,
|
|
2468
2438
|
error: __expectString(output.error),
|
|
@@ -2470,41 +2440,41 @@ const deserializeAws_restJson1AnalyzedResource = (output, context) => {
|
|
|
2470
2440
|
resourceArn: __expectString(output.resourceArn),
|
|
2471
2441
|
resourceOwnerAccount: __expectString(output.resourceOwnerAccount),
|
|
2472
2442
|
resourceType: __expectString(output.resourceType),
|
|
2473
|
-
sharedVia: output.sharedVia != null ?
|
|
2443
|
+
sharedVia: output.sharedVia != null ? de_SharedViaList(output.sharedVia, context) : undefined,
|
|
2474
2444
|
status: __expectString(output.status),
|
|
2475
2445
|
updatedAt: output.updatedAt != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.updatedAt)) : undefined,
|
|
2476
2446
|
};
|
|
2477
2447
|
};
|
|
2478
|
-
const
|
|
2448
|
+
const de_AnalyzedResourcesList = (output, context) => {
|
|
2479
2449
|
const retVal = (output || [])
|
|
2480
2450
|
.filter((e) => e != null)
|
|
2481
2451
|
.map((entry) => {
|
|
2482
2452
|
if (entry === null) {
|
|
2483
2453
|
return null;
|
|
2484
2454
|
}
|
|
2485
|
-
return
|
|
2455
|
+
return de_AnalyzedResourceSummary(entry, context);
|
|
2486
2456
|
});
|
|
2487
2457
|
return retVal;
|
|
2488
2458
|
};
|
|
2489
|
-
const
|
|
2459
|
+
const de_AnalyzedResourceSummary = (output, context) => {
|
|
2490
2460
|
return {
|
|
2491
2461
|
resourceArn: __expectString(output.resourceArn),
|
|
2492
2462
|
resourceOwnerAccount: __expectString(output.resourceOwnerAccount),
|
|
2493
2463
|
resourceType: __expectString(output.resourceType),
|
|
2494
2464
|
};
|
|
2495
2465
|
};
|
|
2496
|
-
const
|
|
2466
|
+
const de_AnalyzersList = (output, context) => {
|
|
2497
2467
|
const retVal = (output || [])
|
|
2498
2468
|
.filter((e) => e != null)
|
|
2499
2469
|
.map((entry) => {
|
|
2500
2470
|
if (entry === null) {
|
|
2501
2471
|
return null;
|
|
2502
2472
|
}
|
|
2503
|
-
return
|
|
2473
|
+
return de_AnalyzerSummary(entry, context);
|
|
2504
2474
|
});
|
|
2505
2475
|
return retVal;
|
|
2506
2476
|
};
|
|
2507
|
-
const
|
|
2477
|
+
const de_AnalyzerSummary = (output, context) => {
|
|
2508
2478
|
return {
|
|
2509
2479
|
arn: __expectString(output.arn),
|
|
2510
2480
|
createdAt: output.createdAt != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.createdAt)) : undefined,
|
|
@@ -2514,40 +2484,38 @@ const deserializeAws_restJson1AnalyzerSummary = (output, context) => {
|
|
|
2514
2484
|
: undefined,
|
|
2515
2485
|
name: __expectString(output.name),
|
|
2516
2486
|
status: __expectString(output.status),
|
|
2517
|
-
statusReason: output.statusReason != null ?
|
|
2518
|
-
tags: output.tags != null ?
|
|
2487
|
+
statusReason: output.statusReason != null ? de_StatusReason(output.statusReason, context) : undefined,
|
|
2488
|
+
tags: output.tags != null ? de_TagsMap(output.tags, context) : undefined,
|
|
2519
2489
|
type: __expectString(output.type),
|
|
2520
2490
|
};
|
|
2521
2491
|
};
|
|
2522
|
-
const
|
|
2492
|
+
const de_ArchiveRulesList = (output, context) => {
|
|
2523
2493
|
const retVal = (output || [])
|
|
2524
2494
|
.filter((e) => e != null)
|
|
2525
2495
|
.map((entry) => {
|
|
2526
2496
|
if (entry === null) {
|
|
2527
2497
|
return null;
|
|
2528
2498
|
}
|
|
2529
|
-
return
|
|
2499
|
+
return de_ArchiveRuleSummary(entry, context);
|
|
2530
2500
|
});
|
|
2531
2501
|
return retVal;
|
|
2532
2502
|
};
|
|
2533
|
-
const
|
|
2503
|
+
const de_ArchiveRuleSummary = (output, context) => {
|
|
2534
2504
|
return {
|
|
2535
2505
|
createdAt: output.createdAt != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.createdAt)) : undefined,
|
|
2536
|
-
filter: output.filter != null ?
|
|
2506
|
+
filter: output.filter != null ? de_FilterCriteriaMap(output.filter, context) : undefined,
|
|
2537
2507
|
ruleName: __expectString(output.ruleName),
|
|
2538
2508
|
updatedAt: output.updatedAt != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.updatedAt)) : undefined,
|
|
2539
2509
|
};
|
|
2540
2510
|
};
|
|
2541
|
-
const
|
|
2511
|
+
const de_CloudTrailProperties = (output, context) => {
|
|
2542
2512
|
return {
|
|
2543
2513
|
endTime: output.endTime != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.endTime)) : undefined,
|
|
2544
2514
|
startTime: output.startTime != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.startTime)) : undefined,
|
|
2545
|
-
trailProperties: output.trailProperties != null
|
|
2546
|
-
? deserializeAws_restJson1TrailPropertiesList(output.trailProperties, context)
|
|
2547
|
-
: undefined,
|
|
2515
|
+
trailProperties: output.trailProperties != null ? de_TrailPropertiesList(output.trailProperties, context) : undefined,
|
|
2548
2516
|
};
|
|
2549
2517
|
};
|
|
2550
|
-
const
|
|
2518
|
+
const de_ConditionKeyMap = (output, context) => {
|
|
2551
2519
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2552
2520
|
if (value === null) {
|
|
2553
2521
|
return acc;
|
|
@@ -2556,82 +2524,82 @@ const deserializeAws_restJson1ConditionKeyMap = (output, context) => {
|
|
|
2556
2524
|
return acc;
|
|
2557
2525
|
}, {});
|
|
2558
2526
|
};
|
|
2559
|
-
const
|
|
2527
|
+
const de_Configuration = (output, context) => {
|
|
2560
2528
|
if (output.ebsSnapshot != null) {
|
|
2561
2529
|
return {
|
|
2562
|
-
ebsSnapshot:
|
|
2530
|
+
ebsSnapshot: de_EbsSnapshotConfiguration(output.ebsSnapshot, context),
|
|
2563
2531
|
};
|
|
2564
2532
|
}
|
|
2565
2533
|
if (output.ecrRepository != null) {
|
|
2566
2534
|
return {
|
|
2567
|
-
ecrRepository:
|
|
2535
|
+
ecrRepository: de_EcrRepositoryConfiguration(output.ecrRepository, context),
|
|
2568
2536
|
};
|
|
2569
2537
|
}
|
|
2570
2538
|
if (output.efsFileSystem != null) {
|
|
2571
2539
|
return {
|
|
2572
|
-
efsFileSystem:
|
|
2540
|
+
efsFileSystem: de_EfsFileSystemConfiguration(output.efsFileSystem, context),
|
|
2573
2541
|
};
|
|
2574
2542
|
}
|
|
2575
2543
|
if (output.iamRole != null) {
|
|
2576
2544
|
return {
|
|
2577
|
-
iamRole:
|
|
2545
|
+
iamRole: de_IamRoleConfiguration(output.iamRole, context),
|
|
2578
2546
|
};
|
|
2579
2547
|
}
|
|
2580
2548
|
if (output.kmsKey != null) {
|
|
2581
2549
|
return {
|
|
2582
|
-
kmsKey:
|
|
2550
|
+
kmsKey: de_KmsKeyConfiguration(output.kmsKey, context),
|
|
2583
2551
|
};
|
|
2584
2552
|
}
|
|
2585
2553
|
if (output.rdsDbClusterSnapshot != null) {
|
|
2586
2554
|
return {
|
|
2587
|
-
rdsDbClusterSnapshot:
|
|
2555
|
+
rdsDbClusterSnapshot: de_RdsDbClusterSnapshotConfiguration(output.rdsDbClusterSnapshot, context),
|
|
2588
2556
|
};
|
|
2589
2557
|
}
|
|
2590
2558
|
if (output.rdsDbSnapshot != null) {
|
|
2591
2559
|
return {
|
|
2592
|
-
rdsDbSnapshot:
|
|
2560
|
+
rdsDbSnapshot: de_RdsDbSnapshotConfiguration(output.rdsDbSnapshot, context),
|
|
2593
2561
|
};
|
|
2594
2562
|
}
|
|
2595
2563
|
if (output.s3Bucket != null) {
|
|
2596
2564
|
return {
|
|
2597
|
-
s3Bucket:
|
|
2565
|
+
s3Bucket: de_S3BucketConfiguration(output.s3Bucket, context),
|
|
2598
2566
|
};
|
|
2599
2567
|
}
|
|
2600
2568
|
if (output.secretsManagerSecret != null) {
|
|
2601
2569
|
return {
|
|
2602
|
-
secretsManagerSecret:
|
|
2570
|
+
secretsManagerSecret: de_SecretsManagerSecretConfiguration(output.secretsManagerSecret, context),
|
|
2603
2571
|
};
|
|
2604
2572
|
}
|
|
2605
2573
|
if (output.snsTopic != null) {
|
|
2606
2574
|
return {
|
|
2607
|
-
snsTopic:
|
|
2575
|
+
snsTopic: de_SnsTopicConfiguration(output.snsTopic, context),
|
|
2608
2576
|
};
|
|
2609
2577
|
}
|
|
2610
2578
|
if (output.sqsQueue != null) {
|
|
2611
2579
|
return {
|
|
2612
|
-
sqsQueue:
|
|
2580
|
+
sqsQueue: de_SqsQueueConfiguration(output.sqsQueue, context),
|
|
2613
2581
|
};
|
|
2614
2582
|
}
|
|
2615
2583
|
return { $unknown: Object.entries(output)[0] };
|
|
2616
2584
|
};
|
|
2617
|
-
const
|
|
2585
|
+
const de_ConfigurationsMap = (output, context) => {
|
|
2618
2586
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2619
2587
|
if (value === null) {
|
|
2620
2588
|
return acc;
|
|
2621
2589
|
}
|
|
2622
|
-
acc[key] =
|
|
2590
|
+
acc[key] = de_Configuration(__expectUnion(value), context);
|
|
2623
2591
|
return acc;
|
|
2624
2592
|
}, {});
|
|
2625
2593
|
};
|
|
2626
|
-
const
|
|
2594
|
+
const de_Criterion = (output, context) => {
|
|
2627
2595
|
return {
|
|
2628
|
-
contains: output.contains != null ?
|
|
2629
|
-
eq: output.eq != null ?
|
|
2596
|
+
contains: output.contains != null ? de_ValueList(output.contains, context) : undefined,
|
|
2597
|
+
eq: output.eq != null ? de_ValueList(output.eq, context) : undefined,
|
|
2630
2598
|
exists: __expectBoolean(output.exists),
|
|
2631
|
-
neq: output.neq != null ?
|
|
2599
|
+
neq: output.neq != null ? de_ValueList(output.neq, context) : undefined,
|
|
2632
2600
|
};
|
|
2633
2601
|
};
|
|
2634
|
-
const
|
|
2602
|
+
const de_EbsGroupList = (output, context) => {
|
|
2635
2603
|
const retVal = (output || [])
|
|
2636
2604
|
.filter((e) => e != null)
|
|
2637
2605
|
.map((entry) => {
|
|
@@ -2642,14 +2610,14 @@ const deserializeAws_restJson1EbsGroupList = (output, context) => {
|
|
|
2642
2610
|
});
|
|
2643
2611
|
return retVal;
|
|
2644
2612
|
};
|
|
2645
|
-
const
|
|
2613
|
+
const de_EbsSnapshotConfiguration = (output, context) => {
|
|
2646
2614
|
return {
|
|
2647
|
-
groups: output.groups != null ?
|
|
2615
|
+
groups: output.groups != null ? de_EbsGroupList(output.groups, context) : undefined,
|
|
2648
2616
|
kmsKeyId: __expectString(output.kmsKeyId),
|
|
2649
|
-
userIds: output.userIds != null ?
|
|
2617
|
+
userIds: output.userIds != null ? de_EbsUserIdList(output.userIds, context) : undefined,
|
|
2650
2618
|
};
|
|
2651
2619
|
};
|
|
2652
|
-
const
|
|
2620
|
+
const de_EbsUserIdList = (output, context) => {
|
|
2653
2621
|
const retVal = (output || [])
|
|
2654
2622
|
.filter((e) => e != null)
|
|
2655
2623
|
.map((entry) => {
|
|
@@ -2660,154 +2628,148 @@ const deserializeAws_restJson1EbsUserIdList = (output, context) => {
|
|
|
2660
2628
|
});
|
|
2661
2629
|
return retVal;
|
|
2662
2630
|
};
|
|
2663
|
-
const
|
|
2631
|
+
const de_EcrRepositoryConfiguration = (output, context) => {
|
|
2664
2632
|
return {
|
|
2665
2633
|
repositoryPolicy: __expectString(output.repositoryPolicy),
|
|
2666
2634
|
};
|
|
2667
2635
|
};
|
|
2668
|
-
const
|
|
2636
|
+
const de_EfsFileSystemConfiguration = (output, context) => {
|
|
2669
2637
|
return {
|
|
2670
2638
|
fileSystemPolicy: __expectString(output.fileSystemPolicy),
|
|
2671
2639
|
};
|
|
2672
2640
|
};
|
|
2673
|
-
const
|
|
2641
|
+
const de_FilterCriteriaMap = (output, context) => {
|
|
2674
2642
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2675
2643
|
if (value === null) {
|
|
2676
2644
|
return acc;
|
|
2677
2645
|
}
|
|
2678
|
-
acc[key] =
|
|
2646
|
+
acc[key] = de_Criterion(value, context);
|
|
2679
2647
|
return acc;
|
|
2680
2648
|
}, {});
|
|
2681
2649
|
};
|
|
2682
|
-
const
|
|
2650
|
+
const de_Finding = (output, context) => {
|
|
2683
2651
|
return {
|
|
2684
|
-
action: output.action != null ?
|
|
2652
|
+
action: output.action != null ? de_ActionList(output.action, context) : undefined,
|
|
2685
2653
|
analyzedAt: output.analyzedAt != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.analyzedAt)) : undefined,
|
|
2686
|
-
condition: output.condition != null ?
|
|
2654
|
+
condition: output.condition != null ? de_ConditionKeyMap(output.condition, context) : undefined,
|
|
2687
2655
|
createdAt: output.createdAt != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.createdAt)) : undefined,
|
|
2688
2656
|
error: __expectString(output.error),
|
|
2689
2657
|
id: __expectString(output.id),
|
|
2690
2658
|
isPublic: __expectBoolean(output.isPublic),
|
|
2691
|
-
principal: output.principal != null ?
|
|
2659
|
+
principal: output.principal != null ? de_PrincipalMap(output.principal, context) : undefined,
|
|
2692
2660
|
resource: __expectString(output.resource),
|
|
2693
2661
|
resourceOwnerAccount: __expectString(output.resourceOwnerAccount),
|
|
2694
2662
|
resourceType: __expectString(output.resourceType),
|
|
2695
|
-
sources: output.sources != null ?
|
|
2663
|
+
sources: output.sources != null ? de_FindingSourceList(output.sources, context) : undefined,
|
|
2696
2664
|
status: __expectString(output.status),
|
|
2697
2665
|
updatedAt: output.updatedAt != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.updatedAt)) : undefined,
|
|
2698
2666
|
};
|
|
2699
2667
|
};
|
|
2700
|
-
const
|
|
2668
|
+
const de_FindingsList = (output, context) => {
|
|
2701
2669
|
const retVal = (output || [])
|
|
2702
2670
|
.filter((e) => e != null)
|
|
2703
2671
|
.map((entry) => {
|
|
2704
2672
|
if (entry === null) {
|
|
2705
2673
|
return null;
|
|
2706
2674
|
}
|
|
2707
|
-
return
|
|
2675
|
+
return de_FindingSummary(entry, context);
|
|
2708
2676
|
});
|
|
2709
2677
|
return retVal;
|
|
2710
2678
|
};
|
|
2711
|
-
const
|
|
2679
|
+
const de_FindingSource = (output, context) => {
|
|
2712
2680
|
return {
|
|
2713
|
-
detail: output.detail != null ?
|
|
2681
|
+
detail: output.detail != null ? de_FindingSourceDetail(output.detail, context) : undefined,
|
|
2714
2682
|
type: __expectString(output.type),
|
|
2715
2683
|
};
|
|
2716
2684
|
};
|
|
2717
|
-
const
|
|
2685
|
+
const de_FindingSourceDetail = (output, context) => {
|
|
2718
2686
|
return {
|
|
2719
2687
|
accessPointAccount: __expectString(output.accessPointAccount),
|
|
2720
2688
|
accessPointArn: __expectString(output.accessPointArn),
|
|
2721
2689
|
};
|
|
2722
2690
|
};
|
|
2723
|
-
const
|
|
2691
|
+
const de_FindingSourceList = (output, context) => {
|
|
2724
2692
|
const retVal = (output || [])
|
|
2725
2693
|
.filter((e) => e != null)
|
|
2726
2694
|
.map((entry) => {
|
|
2727
2695
|
if (entry === null) {
|
|
2728
2696
|
return null;
|
|
2729
2697
|
}
|
|
2730
|
-
return
|
|
2698
|
+
return de_FindingSource(entry, context);
|
|
2731
2699
|
});
|
|
2732
2700
|
return retVal;
|
|
2733
2701
|
};
|
|
2734
|
-
const
|
|
2702
|
+
const de_FindingSummary = (output, context) => {
|
|
2735
2703
|
return {
|
|
2736
|
-
action: output.action != null ?
|
|
2704
|
+
action: output.action != null ? de_ActionList(output.action, context) : undefined,
|
|
2737
2705
|
analyzedAt: output.analyzedAt != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.analyzedAt)) : undefined,
|
|
2738
|
-
condition: output.condition != null ?
|
|
2706
|
+
condition: output.condition != null ? de_ConditionKeyMap(output.condition, context) : undefined,
|
|
2739
2707
|
createdAt: output.createdAt != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.createdAt)) : undefined,
|
|
2740
2708
|
error: __expectString(output.error),
|
|
2741
2709
|
id: __expectString(output.id),
|
|
2742
2710
|
isPublic: __expectBoolean(output.isPublic),
|
|
2743
|
-
principal: output.principal != null ?
|
|
2711
|
+
principal: output.principal != null ? de_PrincipalMap(output.principal, context) : undefined,
|
|
2744
2712
|
resource: __expectString(output.resource),
|
|
2745
2713
|
resourceOwnerAccount: __expectString(output.resourceOwnerAccount),
|
|
2746
2714
|
resourceType: __expectString(output.resourceType),
|
|
2747
|
-
sources: output.sources != null ?
|
|
2715
|
+
sources: output.sources != null ? de_FindingSourceList(output.sources, context) : undefined,
|
|
2748
2716
|
status: __expectString(output.status),
|
|
2749
2717
|
updatedAt: output.updatedAt != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.updatedAt)) : undefined,
|
|
2750
2718
|
};
|
|
2751
2719
|
};
|
|
2752
|
-
const
|
|
2720
|
+
const de_GeneratedPolicy = (output, context) => {
|
|
2753
2721
|
return {
|
|
2754
2722
|
policy: __expectString(output.policy),
|
|
2755
2723
|
};
|
|
2756
2724
|
};
|
|
2757
|
-
const
|
|
2725
|
+
const de_GeneratedPolicyList = (output, context) => {
|
|
2758
2726
|
const retVal = (output || [])
|
|
2759
2727
|
.filter((e) => e != null)
|
|
2760
2728
|
.map((entry) => {
|
|
2761
2729
|
if (entry === null) {
|
|
2762
2730
|
return null;
|
|
2763
2731
|
}
|
|
2764
|
-
return
|
|
2732
|
+
return de_GeneratedPolicy(entry, context);
|
|
2765
2733
|
});
|
|
2766
2734
|
return retVal;
|
|
2767
2735
|
};
|
|
2768
|
-
const
|
|
2736
|
+
const de_GeneratedPolicyProperties = (output, context) => {
|
|
2769
2737
|
return {
|
|
2770
|
-
cloudTrailProperties: output.cloudTrailProperties != null
|
|
2771
|
-
? deserializeAws_restJson1CloudTrailProperties(output.cloudTrailProperties, context)
|
|
2772
|
-
: undefined,
|
|
2738
|
+
cloudTrailProperties: output.cloudTrailProperties != null ? de_CloudTrailProperties(output.cloudTrailProperties, context) : undefined,
|
|
2773
2739
|
isComplete: __expectBoolean(output.isComplete),
|
|
2774
2740
|
principalArn: __expectString(output.principalArn),
|
|
2775
2741
|
};
|
|
2776
2742
|
};
|
|
2777
|
-
const
|
|
2743
|
+
const de_GeneratedPolicyResult = (output, context) => {
|
|
2778
2744
|
return {
|
|
2779
|
-
generatedPolicies: output.generatedPolicies != null
|
|
2780
|
-
|
|
2781
|
-
: undefined,
|
|
2782
|
-
properties: output.properties != null
|
|
2783
|
-
? deserializeAws_restJson1GeneratedPolicyProperties(output.properties, context)
|
|
2784
|
-
: undefined,
|
|
2745
|
+
generatedPolicies: output.generatedPolicies != null ? de_GeneratedPolicyList(output.generatedPolicies, context) : undefined,
|
|
2746
|
+
properties: output.properties != null ? de_GeneratedPolicyProperties(output.properties, context) : undefined,
|
|
2785
2747
|
};
|
|
2786
2748
|
};
|
|
2787
|
-
const
|
|
2749
|
+
const de_IamRoleConfiguration = (output, context) => {
|
|
2788
2750
|
return {
|
|
2789
2751
|
trustPolicy: __expectString(output.trustPolicy),
|
|
2790
2752
|
};
|
|
2791
2753
|
};
|
|
2792
|
-
const
|
|
2754
|
+
const de_InternetConfiguration = (output, context) => {
|
|
2793
2755
|
return {};
|
|
2794
2756
|
};
|
|
2795
|
-
const
|
|
2757
|
+
const de_JobDetails = (output, context) => {
|
|
2796
2758
|
return {
|
|
2797
2759
|
completedOn: output.completedOn != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.completedOn)) : undefined,
|
|
2798
|
-
jobError: output.jobError != null ?
|
|
2760
|
+
jobError: output.jobError != null ? de_JobError(output.jobError, context) : undefined,
|
|
2799
2761
|
jobId: __expectString(output.jobId),
|
|
2800
2762
|
startedOn: output.startedOn != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.startedOn)) : undefined,
|
|
2801
2763
|
status: __expectString(output.status),
|
|
2802
2764
|
};
|
|
2803
2765
|
};
|
|
2804
|
-
const
|
|
2766
|
+
const de_JobError = (output, context) => {
|
|
2805
2767
|
return {
|
|
2806
2768
|
code: __expectString(output.code),
|
|
2807
2769
|
message: __expectString(output.message),
|
|
2808
2770
|
};
|
|
2809
2771
|
};
|
|
2810
|
-
const
|
|
2772
|
+
const de_KmsConstraintsMap = (output, context) => {
|
|
2811
2773
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2812
2774
|
if (value === null) {
|
|
2813
2775
|
return acc;
|
|
@@ -2816,39 +2778,37 @@ const deserializeAws_restJson1KmsConstraintsMap = (output, context) => {
|
|
|
2816
2778
|
return acc;
|
|
2817
2779
|
}, {});
|
|
2818
2780
|
};
|
|
2819
|
-
const
|
|
2781
|
+
const de_KmsGrantConfiguration = (output, context) => {
|
|
2820
2782
|
return {
|
|
2821
|
-
constraints: output.constraints != null ?
|
|
2783
|
+
constraints: output.constraints != null ? de_KmsGrantConstraints(output.constraints, context) : undefined,
|
|
2822
2784
|
granteePrincipal: __expectString(output.granteePrincipal),
|
|
2823
2785
|
issuingAccount: __expectString(output.issuingAccount),
|
|
2824
|
-
operations: output.operations != null
|
|
2825
|
-
? deserializeAws_restJson1KmsGrantOperationsList(output.operations, context)
|
|
2826
|
-
: undefined,
|
|
2786
|
+
operations: output.operations != null ? de_KmsGrantOperationsList(output.operations, context) : undefined,
|
|
2827
2787
|
retiringPrincipal: __expectString(output.retiringPrincipal),
|
|
2828
2788
|
};
|
|
2829
2789
|
};
|
|
2830
|
-
const
|
|
2790
|
+
const de_KmsGrantConfigurationsList = (output, context) => {
|
|
2831
2791
|
const retVal = (output || [])
|
|
2832
2792
|
.filter((e) => e != null)
|
|
2833
2793
|
.map((entry) => {
|
|
2834
2794
|
if (entry === null) {
|
|
2835
2795
|
return null;
|
|
2836
2796
|
}
|
|
2837
|
-
return
|
|
2797
|
+
return de_KmsGrantConfiguration(entry, context);
|
|
2838
2798
|
});
|
|
2839
2799
|
return retVal;
|
|
2840
2800
|
};
|
|
2841
|
-
const
|
|
2801
|
+
const de_KmsGrantConstraints = (output, context) => {
|
|
2842
2802
|
return {
|
|
2843
2803
|
encryptionContextEquals: output.encryptionContextEquals != null
|
|
2844
|
-
?
|
|
2804
|
+
? de_KmsConstraintsMap(output.encryptionContextEquals, context)
|
|
2845
2805
|
: undefined,
|
|
2846
2806
|
encryptionContextSubset: output.encryptionContextSubset != null
|
|
2847
|
-
?
|
|
2807
|
+
? de_KmsConstraintsMap(output.encryptionContextSubset, context)
|
|
2848
2808
|
: undefined,
|
|
2849
2809
|
};
|
|
2850
2810
|
};
|
|
2851
|
-
const
|
|
2811
|
+
const de_KmsGrantOperationsList = (output, context) => {
|
|
2852
2812
|
const retVal = (output || [])
|
|
2853
2813
|
.filter((e) => e != null)
|
|
2854
2814
|
.map((entry) => {
|
|
@@ -2859,13 +2819,13 @@ const deserializeAws_restJson1KmsGrantOperationsList = (output, context) => {
|
|
|
2859
2819
|
});
|
|
2860
2820
|
return retVal;
|
|
2861
2821
|
};
|
|
2862
|
-
const
|
|
2822
|
+
const de_KmsKeyConfiguration = (output, context) => {
|
|
2863
2823
|
return {
|
|
2864
|
-
grants: output.grants != null ?
|
|
2865
|
-
keyPolicies: output.keyPolicies != null ?
|
|
2824
|
+
grants: output.grants != null ? de_KmsGrantConfigurationsList(output.grants, context) : undefined,
|
|
2825
|
+
keyPolicies: output.keyPolicies != null ? de_KmsKeyPoliciesMap(output.keyPolicies, context) : undefined,
|
|
2866
2826
|
};
|
|
2867
2827
|
};
|
|
2868
|
-
const
|
|
2828
|
+
const de_KmsKeyPoliciesMap = (output, context) => {
|
|
2869
2829
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2870
2830
|
if (value === null) {
|
|
2871
2831
|
return acc;
|
|
@@ -2874,37 +2834,37 @@ const deserializeAws_restJson1KmsKeyPoliciesMap = (output, context) => {
|
|
|
2874
2834
|
return acc;
|
|
2875
2835
|
}, {});
|
|
2876
2836
|
};
|
|
2877
|
-
const
|
|
2837
|
+
const de_Location = (output, context) => {
|
|
2878
2838
|
return {
|
|
2879
|
-
path: output.path != null ?
|
|
2880
|
-
span: output.span != null ?
|
|
2839
|
+
path: output.path != null ? de_PathElementList(output.path, context) : undefined,
|
|
2840
|
+
span: output.span != null ? de_Span(output.span, context) : undefined,
|
|
2881
2841
|
};
|
|
2882
2842
|
};
|
|
2883
|
-
const
|
|
2843
|
+
const de_LocationList = (output, context) => {
|
|
2884
2844
|
const retVal = (output || [])
|
|
2885
2845
|
.filter((e) => e != null)
|
|
2886
2846
|
.map((entry) => {
|
|
2887
2847
|
if (entry === null) {
|
|
2888
2848
|
return null;
|
|
2889
2849
|
}
|
|
2890
|
-
return
|
|
2850
|
+
return de_Location(entry, context);
|
|
2891
2851
|
});
|
|
2892
2852
|
return retVal;
|
|
2893
2853
|
};
|
|
2894
|
-
const
|
|
2854
|
+
const de_NetworkOriginConfiguration = (output, context) => {
|
|
2895
2855
|
if (output.internetConfiguration != null) {
|
|
2896
2856
|
return {
|
|
2897
|
-
internetConfiguration:
|
|
2857
|
+
internetConfiguration: de_InternetConfiguration(output.internetConfiguration, context),
|
|
2898
2858
|
};
|
|
2899
2859
|
}
|
|
2900
2860
|
if (output.vpcConfiguration != null) {
|
|
2901
2861
|
return {
|
|
2902
|
-
vpcConfiguration:
|
|
2862
|
+
vpcConfiguration: de_VpcConfiguration(output.vpcConfiguration, context),
|
|
2903
2863
|
};
|
|
2904
2864
|
}
|
|
2905
2865
|
return { $unknown: Object.entries(output)[0] };
|
|
2906
2866
|
};
|
|
2907
|
-
const
|
|
2867
|
+
const de_PathElement = (output, context) => {
|
|
2908
2868
|
if (__expectInt32(output.index) !== undefined) {
|
|
2909
2869
|
return { index: __expectInt32(output.index) };
|
|
2910
2870
|
}
|
|
@@ -2913,7 +2873,7 @@ const deserializeAws_restJson1PathElement = (output, context) => {
|
|
|
2913
2873
|
}
|
|
2914
2874
|
if (output.substring != null) {
|
|
2915
2875
|
return {
|
|
2916
|
-
substring:
|
|
2876
|
+
substring: de_Substring(output.substring, context),
|
|
2917
2877
|
};
|
|
2918
2878
|
}
|
|
2919
2879
|
if (__expectString(output.value) !== undefined) {
|
|
@@ -2921,18 +2881,18 @@ const deserializeAws_restJson1PathElement = (output, context) => {
|
|
|
2921
2881
|
}
|
|
2922
2882
|
return { $unknown: Object.entries(output)[0] };
|
|
2923
2883
|
};
|
|
2924
|
-
const
|
|
2884
|
+
const de_PathElementList = (output, context) => {
|
|
2925
2885
|
const retVal = (output || [])
|
|
2926
2886
|
.filter((e) => e != null)
|
|
2927
2887
|
.map((entry) => {
|
|
2928
2888
|
if (entry === null) {
|
|
2929
2889
|
return null;
|
|
2930
2890
|
}
|
|
2931
|
-
return
|
|
2891
|
+
return de_PathElement(__expectUnion(entry), context);
|
|
2932
2892
|
});
|
|
2933
2893
|
return retVal;
|
|
2934
2894
|
};
|
|
2935
|
-
const
|
|
2895
|
+
const de_PolicyGeneration = (output, context) => {
|
|
2936
2896
|
return {
|
|
2937
2897
|
completedOn: output.completedOn != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.completedOn)) : undefined,
|
|
2938
2898
|
jobId: __expectString(output.jobId),
|
|
@@ -2941,25 +2901,25 @@ const deserializeAws_restJson1PolicyGeneration = (output, context) => {
|
|
|
2941
2901
|
status: __expectString(output.status),
|
|
2942
2902
|
};
|
|
2943
2903
|
};
|
|
2944
|
-
const
|
|
2904
|
+
const de_PolicyGenerationList = (output, context) => {
|
|
2945
2905
|
const retVal = (output || [])
|
|
2946
2906
|
.filter((e) => e != null)
|
|
2947
2907
|
.map((entry) => {
|
|
2948
2908
|
if (entry === null) {
|
|
2949
2909
|
return null;
|
|
2950
2910
|
}
|
|
2951
|
-
return
|
|
2911
|
+
return de_PolicyGeneration(entry, context);
|
|
2952
2912
|
});
|
|
2953
2913
|
return retVal;
|
|
2954
2914
|
};
|
|
2955
|
-
const
|
|
2915
|
+
const de_Position = (output, context) => {
|
|
2956
2916
|
return {
|
|
2957
2917
|
column: __expectInt32(output.column),
|
|
2958
2918
|
line: __expectInt32(output.line),
|
|
2959
2919
|
offset: __expectInt32(output.offset),
|
|
2960
2920
|
};
|
|
2961
2921
|
};
|
|
2962
|
-
const
|
|
2922
|
+
const de_PrincipalMap = (output, context) => {
|
|
2963
2923
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2964
2924
|
if (value === null) {
|
|
2965
2925
|
return acc;
|
|
@@ -2968,7 +2928,7 @@ const deserializeAws_restJson1PrincipalMap = (output, context) => {
|
|
|
2968
2928
|
return acc;
|
|
2969
2929
|
}, {});
|
|
2970
2930
|
};
|
|
2971
|
-
const
|
|
2931
|
+
const de_RdsDbClusterSnapshotAccountIdsList = (output, context) => {
|
|
2972
2932
|
const retVal = (output || [])
|
|
2973
2933
|
.filter((e) => e != null)
|
|
2974
2934
|
.map((entry) => {
|
|
@@ -2979,32 +2939,30 @@ const deserializeAws_restJson1RdsDbClusterSnapshotAccountIdsList = (output, cont
|
|
|
2979
2939
|
});
|
|
2980
2940
|
return retVal;
|
|
2981
2941
|
};
|
|
2982
|
-
const
|
|
2942
|
+
const de_RdsDbClusterSnapshotAttributesMap = (output, context) => {
|
|
2983
2943
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2984
2944
|
if (value === null) {
|
|
2985
2945
|
return acc;
|
|
2986
2946
|
}
|
|
2987
|
-
acc[key] =
|
|
2947
|
+
acc[key] = de_RdsDbClusterSnapshotAttributeValue(__expectUnion(value), context);
|
|
2988
2948
|
return acc;
|
|
2989
2949
|
}, {});
|
|
2990
2950
|
};
|
|
2991
|
-
const
|
|
2951
|
+
const de_RdsDbClusterSnapshotAttributeValue = (output, context) => {
|
|
2992
2952
|
if (output.accountIds != null) {
|
|
2993
2953
|
return {
|
|
2994
|
-
accountIds:
|
|
2954
|
+
accountIds: de_RdsDbClusterSnapshotAccountIdsList(output.accountIds, context),
|
|
2995
2955
|
};
|
|
2996
2956
|
}
|
|
2997
2957
|
return { $unknown: Object.entries(output)[0] };
|
|
2998
2958
|
};
|
|
2999
|
-
const
|
|
2959
|
+
const de_RdsDbClusterSnapshotConfiguration = (output, context) => {
|
|
3000
2960
|
return {
|
|
3001
|
-
attributes: output.attributes != null
|
|
3002
|
-
? deserializeAws_restJson1RdsDbClusterSnapshotAttributesMap(output.attributes, context)
|
|
3003
|
-
: undefined,
|
|
2961
|
+
attributes: output.attributes != null ? de_RdsDbClusterSnapshotAttributesMap(output.attributes, context) : undefined,
|
|
3004
2962
|
kmsKeyId: __expectString(output.kmsKeyId),
|
|
3005
2963
|
};
|
|
3006
2964
|
};
|
|
3007
|
-
const
|
|
2965
|
+
const de_RdsDbSnapshotAccountIdsList = (output, context) => {
|
|
3008
2966
|
const retVal = (output || [])
|
|
3009
2967
|
.filter((e) => e != null)
|
|
3010
2968
|
.map((entry) => {
|
|
@@ -3015,32 +2973,30 @@ const deserializeAws_restJson1RdsDbSnapshotAccountIdsList = (output, context) =>
|
|
|
3015
2973
|
});
|
|
3016
2974
|
return retVal;
|
|
3017
2975
|
};
|
|
3018
|
-
const
|
|
2976
|
+
const de_RdsDbSnapshotAttributesMap = (output, context) => {
|
|
3019
2977
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3020
2978
|
if (value === null) {
|
|
3021
2979
|
return acc;
|
|
3022
2980
|
}
|
|
3023
|
-
acc[key] =
|
|
2981
|
+
acc[key] = de_RdsDbSnapshotAttributeValue(__expectUnion(value), context);
|
|
3024
2982
|
return acc;
|
|
3025
2983
|
}, {});
|
|
3026
2984
|
};
|
|
3027
|
-
const
|
|
2985
|
+
const de_RdsDbSnapshotAttributeValue = (output, context) => {
|
|
3028
2986
|
if (output.accountIds != null) {
|
|
3029
2987
|
return {
|
|
3030
|
-
accountIds:
|
|
2988
|
+
accountIds: de_RdsDbSnapshotAccountIdsList(output.accountIds, context),
|
|
3031
2989
|
};
|
|
3032
2990
|
}
|
|
3033
2991
|
return { $unknown: Object.entries(output)[0] };
|
|
3034
2992
|
};
|
|
3035
|
-
const
|
|
2993
|
+
const de_RdsDbSnapshotConfiguration = (output, context) => {
|
|
3036
2994
|
return {
|
|
3037
|
-
attributes: output.attributes != null
|
|
3038
|
-
? deserializeAws_restJson1RdsDbSnapshotAttributesMap(output.attributes, context)
|
|
3039
|
-
: undefined,
|
|
2995
|
+
attributes: output.attributes != null ? de_RdsDbSnapshotAttributesMap(output.attributes, context) : undefined,
|
|
3040
2996
|
kmsKeyId: __expectString(output.kmsKeyId),
|
|
3041
2997
|
};
|
|
3042
2998
|
};
|
|
3043
|
-
const
|
|
2999
|
+
const de_RegionList = (output, context) => {
|
|
3044
3000
|
const retVal = (output || [])
|
|
3045
3001
|
.filter((e) => e != null)
|
|
3046
3002
|
.map((entry) => {
|
|
@@ -3051,70 +3007,68 @@ const deserializeAws_restJson1RegionList = (output, context) => {
|
|
|
3051
3007
|
});
|
|
3052
3008
|
return retVal;
|
|
3053
3009
|
};
|
|
3054
|
-
const
|
|
3010
|
+
const de_S3AccessPointConfiguration = (output, context) => {
|
|
3055
3011
|
return {
|
|
3056
3012
|
accessPointPolicy: __expectString(output.accessPointPolicy),
|
|
3057
3013
|
networkOrigin: output.networkOrigin != null
|
|
3058
|
-
?
|
|
3014
|
+
? de_NetworkOriginConfiguration(__expectUnion(output.networkOrigin), context)
|
|
3059
3015
|
: undefined,
|
|
3060
3016
|
publicAccessBlock: output.publicAccessBlock != null
|
|
3061
|
-
?
|
|
3017
|
+
? de_S3PublicAccessBlockConfiguration(output.publicAccessBlock, context)
|
|
3062
3018
|
: undefined,
|
|
3063
3019
|
};
|
|
3064
3020
|
};
|
|
3065
|
-
const
|
|
3021
|
+
const de_S3AccessPointConfigurationsMap = (output, context) => {
|
|
3066
3022
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3067
3023
|
if (value === null) {
|
|
3068
3024
|
return acc;
|
|
3069
3025
|
}
|
|
3070
|
-
acc[key] =
|
|
3026
|
+
acc[key] = de_S3AccessPointConfiguration(value, context);
|
|
3071
3027
|
return acc;
|
|
3072
3028
|
}, {});
|
|
3073
3029
|
};
|
|
3074
|
-
const
|
|
3030
|
+
const de_S3BucketAclGrantConfiguration = (output, context) => {
|
|
3075
3031
|
return {
|
|
3076
|
-
grantee: output.grantee != null ?
|
|
3032
|
+
grantee: output.grantee != null ? de_AclGrantee(__expectUnion(output.grantee), context) : undefined,
|
|
3077
3033
|
permission: __expectString(output.permission),
|
|
3078
3034
|
};
|
|
3079
3035
|
};
|
|
3080
|
-
const
|
|
3036
|
+
const de_S3BucketAclGrantConfigurationsList = (output, context) => {
|
|
3081
3037
|
const retVal = (output || [])
|
|
3082
3038
|
.filter((e) => e != null)
|
|
3083
3039
|
.map((entry) => {
|
|
3084
3040
|
if (entry === null) {
|
|
3085
3041
|
return null;
|
|
3086
3042
|
}
|
|
3087
|
-
return
|
|
3043
|
+
return de_S3BucketAclGrantConfiguration(entry, context);
|
|
3088
3044
|
});
|
|
3089
3045
|
return retVal;
|
|
3090
3046
|
};
|
|
3091
|
-
const
|
|
3047
|
+
const de_S3BucketConfiguration = (output, context) => {
|
|
3092
3048
|
return {
|
|
3093
|
-
accessPoints: output.accessPoints != null
|
|
3094
|
-
? deserializeAws_restJson1S3AccessPointConfigurationsMap(output.accessPoints, context)
|
|
3095
|
-
: undefined,
|
|
3049
|
+
accessPoints: output.accessPoints != null ? de_S3AccessPointConfigurationsMap(output.accessPoints, context) : undefined,
|
|
3096
3050
|
bucketAclGrants: output.bucketAclGrants != null
|
|
3097
|
-
?
|
|
3051
|
+
? de_S3BucketAclGrantConfigurationsList(output.bucketAclGrants, context)
|
|
3098
3052
|
: undefined,
|
|
3099
3053
|
bucketPolicy: __expectString(output.bucketPolicy),
|
|
3100
3054
|
bucketPublicAccessBlock: output.bucketPublicAccessBlock != null
|
|
3101
|
-
?
|
|
3055
|
+
? de_S3PublicAccessBlockConfiguration(output.bucketPublicAccessBlock, context)
|
|
3102
3056
|
: undefined,
|
|
3103
3057
|
};
|
|
3104
3058
|
};
|
|
3105
|
-
const
|
|
3059
|
+
const de_S3PublicAccessBlockConfiguration = (output, context) => {
|
|
3106
3060
|
return {
|
|
3107
3061
|
ignorePublicAcls: __expectBoolean(output.ignorePublicAcls),
|
|
3108
3062
|
restrictPublicBuckets: __expectBoolean(output.restrictPublicBuckets),
|
|
3109
3063
|
};
|
|
3110
3064
|
};
|
|
3111
|
-
const
|
|
3065
|
+
const de_SecretsManagerSecretConfiguration = (output, context) => {
|
|
3112
3066
|
return {
|
|
3113
3067
|
kmsKeyId: __expectString(output.kmsKeyId),
|
|
3114
3068
|
secretPolicy: __expectString(output.secretPolicy),
|
|
3115
3069
|
};
|
|
3116
3070
|
};
|
|
3117
|
-
const
|
|
3071
|
+
const de_SharedViaList = (output, context) => {
|
|
3118
3072
|
const retVal = (output || [])
|
|
3119
3073
|
.filter((e) => e != null)
|
|
3120
3074
|
.map((entry) => {
|
|
@@ -3125,34 +3079,34 @@ const deserializeAws_restJson1SharedViaList = (output, context) => {
|
|
|
3125
3079
|
});
|
|
3126
3080
|
return retVal;
|
|
3127
3081
|
};
|
|
3128
|
-
const
|
|
3082
|
+
const de_SnsTopicConfiguration = (output, context) => {
|
|
3129
3083
|
return {
|
|
3130
3084
|
topicPolicy: __expectString(output.topicPolicy),
|
|
3131
3085
|
};
|
|
3132
3086
|
};
|
|
3133
|
-
const
|
|
3087
|
+
const de_Span = (output, context) => {
|
|
3134
3088
|
return {
|
|
3135
|
-
end: output.end != null ?
|
|
3136
|
-
start: output.start != null ?
|
|
3089
|
+
end: output.end != null ? de_Position(output.end, context) : undefined,
|
|
3090
|
+
start: output.start != null ? de_Position(output.start, context) : undefined,
|
|
3137
3091
|
};
|
|
3138
3092
|
};
|
|
3139
|
-
const
|
|
3093
|
+
const de_SqsQueueConfiguration = (output, context) => {
|
|
3140
3094
|
return {
|
|
3141
3095
|
queuePolicy: __expectString(output.queuePolicy),
|
|
3142
3096
|
};
|
|
3143
3097
|
};
|
|
3144
|
-
const
|
|
3098
|
+
const de_StatusReason = (output, context) => {
|
|
3145
3099
|
return {
|
|
3146
3100
|
code: __expectString(output.code),
|
|
3147
3101
|
};
|
|
3148
3102
|
};
|
|
3149
|
-
const
|
|
3103
|
+
const de_Substring = (output, context) => {
|
|
3150
3104
|
return {
|
|
3151
3105
|
length: __expectInt32(output.length),
|
|
3152
3106
|
start: __expectInt32(output.start),
|
|
3153
3107
|
};
|
|
3154
3108
|
};
|
|
3155
|
-
const
|
|
3109
|
+
const de_TagsMap = (output, context) => {
|
|
3156
3110
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3157
3111
|
if (value === null) {
|
|
3158
3112
|
return acc;
|
|
@@ -3161,62 +3115,62 @@ const deserializeAws_restJson1TagsMap = (output, context) => {
|
|
|
3161
3115
|
return acc;
|
|
3162
3116
|
}, {});
|
|
3163
3117
|
};
|
|
3164
|
-
const
|
|
3118
|
+
const de_TrailProperties = (output, context) => {
|
|
3165
3119
|
return {
|
|
3166
3120
|
allRegions: __expectBoolean(output.allRegions),
|
|
3167
3121
|
cloudTrailArn: __expectString(output.cloudTrailArn),
|
|
3168
|
-
regions: output.regions != null ?
|
|
3122
|
+
regions: output.regions != null ? de_RegionList(output.regions, context) : undefined,
|
|
3169
3123
|
};
|
|
3170
3124
|
};
|
|
3171
|
-
const
|
|
3125
|
+
const de_TrailPropertiesList = (output, context) => {
|
|
3172
3126
|
const retVal = (output || [])
|
|
3173
3127
|
.filter((e) => e != null)
|
|
3174
3128
|
.map((entry) => {
|
|
3175
3129
|
if (entry === null) {
|
|
3176
3130
|
return null;
|
|
3177
3131
|
}
|
|
3178
|
-
return
|
|
3132
|
+
return de_TrailProperties(entry, context);
|
|
3179
3133
|
});
|
|
3180
3134
|
return retVal;
|
|
3181
3135
|
};
|
|
3182
|
-
const
|
|
3136
|
+
const de_ValidatePolicyFinding = (output, context) => {
|
|
3183
3137
|
return {
|
|
3184
3138
|
findingDetails: __expectString(output.findingDetails),
|
|
3185
3139
|
findingType: __expectString(output.findingType),
|
|
3186
3140
|
issueCode: __expectString(output.issueCode),
|
|
3187
3141
|
learnMoreLink: __expectString(output.learnMoreLink),
|
|
3188
|
-
locations: output.locations != null ?
|
|
3142
|
+
locations: output.locations != null ? de_LocationList(output.locations, context) : undefined,
|
|
3189
3143
|
};
|
|
3190
3144
|
};
|
|
3191
|
-
const
|
|
3145
|
+
const de_ValidatePolicyFindingList = (output, context) => {
|
|
3192
3146
|
const retVal = (output || [])
|
|
3193
3147
|
.filter((e) => e != null)
|
|
3194
3148
|
.map((entry) => {
|
|
3195
3149
|
if (entry === null) {
|
|
3196
3150
|
return null;
|
|
3197
3151
|
}
|
|
3198
|
-
return
|
|
3152
|
+
return de_ValidatePolicyFinding(entry, context);
|
|
3199
3153
|
});
|
|
3200
3154
|
return retVal;
|
|
3201
3155
|
};
|
|
3202
|
-
const
|
|
3156
|
+
const de_ValidationExceptionField = (output, context) => {
|
|
3203
3157
|
return {
|
|
3204
3158
|
message: __expectString(output.message),
|
|
3205
3159
|
name: __expectString(output.name),
|
|
3206
3160
|
};
|
|
3207
3161
|
};
|
|
3208
|
-
const
|
|
3162
|
+
const de_ValidationExceptionFieldList = (output, context) => {
|
|
3209
3163
|
const retVal = (output || [])
|
|
3210
3164
|
.filter((e) => e != null)
|
|
3211
3165
|
.map((entry) => {
|
|
3212
3166
|
if (entry === null) {
|
|
3213
3167
|
return null;
|
|
3214
3168
|
}
|
|
3215
|
-
return
|
|
3169
|
+
return de_ValidationExceptionField(entry, context);
|
|
3216
3170
|
});
|
|
3217
3171
|
return retVal;
|
|
3218
3172
|
};
|
|
3219
|
-
const
|
|
3173
|
+
const de_ValueList = (output, context) => {
|
|
3220
3174
|
const retVal = (output || [])
|
|
3221
3175
|
.filter((e) => e != null)
|
|
3222
3176
|
.map((entry) => {
|
|
@@ -3227,7 +3181,7 @@ const deserializeAws_restJson1ValueList = (output, context) => {
|
|
|
3227
3181
|
});
|
|
3228
3182
|
return retVal;
|
|
3229
3183
|
};
|
|
3230
|
-
const
|
|
3184
|
+
const de_VpcConfiguration = (output, context) => {
|
|
3231
3185
|
return {
|
|
3232
3186
|
vpcId: __expectString(output.vpcId),
|
|
3233
3187
|
};
|