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