@aws-sdk/client-inspector2 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/AssociateMemberCommand.js +2 -2
- package/dist-cjs/commands/BatchGetAccountStatusCommand.js +2 -2
- package/dist-cjs/commands/BatchGetFreeTrialInfoCommand.js +2 -2
- package/dist-cjs/commands/CancelFindingsReportCommand.js +2 -2
- package/dist-cjs/commands/CreateFilterCommand.js +2 -2
- package/dist-cjs/commands/CreateFindingsReportCommand.js +2 -2
- package/dist-cjs/commands/DeleteFilterCommand.js +2 -2
- package/dist-cjs/commands/DescribeOrganizationConfigurationCommand.js +2 -2
- package/dist-cjs/commands/DisableCommand.js +2 -2
- package/dist-cjs/commands/DisableDelegatedAdminAccountCommand.js +2 -2
- package/dist-cjs/commands/DisassociateMemberCommand.js +2 -2
- package/dist-cjs/commands/EnableCommand.js +2 -2
- package/dist-cjs/commands/EnableDelegatedAdminAccountCommand.js +2 -2
- package/dist-cjs/commands/GetConfigurationCommand.js +2 -2
- package/dist-cjs/commands/GetDelegatedAdminAccountCommand.js +2 -2
- package/dist-cjs/commands/GetFindingsReportStatusCommand.js +2 -2
- package/dist-cjs/commands/GetMemberCommand.js +2 -2
- package/dist-cjs/commands/ListAccountPermissionsCommand.js +2 -2
- package/dist-cjs/commands/ListCoverageCommand.js +2 -2
- package/dist-cjs/commands/ListCoverageStatisticsCommand.js +2 -2
- package/dist-cjs/commands/ListDelegatedAdminAccountsCommand.js +2 -2
- package/dist-cjs/commands/ListFiltersCommand.js +2 -2
- package/dist-cjs/commands/ListFindingAggregationsCommand.js +2 -2
- package/dist-cjs/commands/ListFindingsCommand.js +2 -2
- package/dist-cjs/commands/ListMembersCommand.js +2 -2
- package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
- package/dist-cjs/commands/ListUsageTotalsCommand.js +2 -2
- package/dist-cjs/commands/TagResourceCommand.js +2 -2
- package/dist-cjs/commands/UntagResourceCommand.js +2 -2
- package/dist-cjs/commands/UpdateConfigurationCommand.js +2 -2
- package/dist-cjs/commands/UpdateFilterCommand.js +2 -2
- package/dist-cjs/commands/UpdateOrganizationConfigurationCommand.js +2 -2
- package/dist-cjs/protocols/Aws_restJson1.js +797 -1027
- package/dist-es/commands/AssociateMemberCommand.js +3 -3
- package/dist-es/commands/BatchGetAccountStatusCommand.js +3 -3
- package/dist-es/commands/BatchGetFreeTrialInfoCommand.js +3 -3
- package/dist-es/commands/CancelFindingsReportCommand.js +3 -3
- package/dist-es/commands/CreateFilterCommand.js +3 -3
- package/dist-es/commands/CreateFindingsReportCommand.js +3 -3
- package/dist-es/commands/DeleteFilterCommand.js +3 -3
- package/dist-es/commands/DescribeOrganizationConfigurationCommand.js +3 -3
- package/dist-es/commands/DisableCommand.js +3 -3
- package/dist-es/commands/DisableDelegatedAdminAccountCommand.js +3 -3
- package/dist-es/commands/DisassociateMemberCommand.js +3 -3
- package/dist-es/commands/EnableCommand.js +3 -3
- package/dist-es/commands/EnableDelegatedAdminAccountCommand.js +3 -3
- package/dist-es/commands/GetConfigurationCommand.js +3 -3
- package/dist-es/commands/GetDelegatedAdminAccountCommand.js +3 -3
- package/dist-es/commands/GetFindingsReportStatusCommand.js +3 -3
- package/dist-es/commands/GetMemberCommand.js +3 -3
- package/dist-es/commands/ListAccountPermissionsCommand.js +3 -3
- package/dist-es/commands/ListCoverageCommand.js +3 -3
- package/dist-es/commands/ListCoverageStatisticsCommand.js +3 -3
- package/dist-es/commands/ListDelegatedAdminAccountsCommand.js +3 -3
- package/dist-es/commands/ListFiltersCommand.js +3 -3
- package/dist-es/commands/ListFindingAggregationsCommand.js +3 -3
- package/dist-es/commands/ListFindingsCommand.js +3 -3
- package/dist-es/commands/ListMembersCommand.js +3 -3
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-es/commands/ListUsageTotalsCommand.js +3 -3
- package/dist-es/commands/TagResourceCommand.js +3 -3
- package/dist-es/commands/UntagResourceCommand.js +3 -3
- package/dist-es/commands/UpdateConfigurationCommand.js +3 -3
- package/dist-es/commands/UpdateFilterCommand.js +3 -3
- package/dist-es/commands/UpdateOrganizationConfigurationCommand.js +3 -3
- package/dist-es/protocols/Aws_restJson1.js +731 -961
- package/dist-types/protocols/Aws_restJson1.d.ts +256 -64
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +64 -64
- package/package.json +35 -35
|
@@ -3,7 +3,7 @@ import { decorateServiceException as __decorateServiceException, expectBoolean a
|
|
|
3
3
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
4
4
|
import { Inspector2ServiceException as __BaseException } from "../models/Inspector2ServiceException";
|
|
5
5
|
import { AccessDeniedException, AggregationRequest, BadRequestException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
6
|
-
export const
|
|
6
|
+
export const se_AssociateMemberCommand = async (input, context) => {
|
|
7
7
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
8
8
|
const headers = {
|
|
9
9
|
"content-type": "application/json",
|
|
@@ -23,7 +23,7 @@ export const serializeAws_restJson1AssociateMemberCommand = async (input, contex
|
|
|
23
23
|
body,
|
|
24
24
|
});
|
|
25
25
|
};
|
|
26
|
-
export const
|
|
26
|
+
export const se_BatchGetAccountStatusCommand = async (input, context) => {
|
|
27
27
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
28
28
|
const headers = {
|
|
29
29
|
"content-type": "application/json",
|
|
@@ -31,7 +31,7 @@ export const serializeAws_restJson1BatchGetAccountStatusCommand = async (input,
|
|
|
31
31
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/status/batch/get";
|
|
32
32
|
let body;
|
|
33
33
|
body = JSON.stringify({
|
|
34
|
-
...(input.accountIds != null && { accountIds:
|
|
34
|
+
...(input.accountIds != null && { accountIds: se_AccountIdSet(input.accountIds, context) }),
|
|
35
35
|
});
|
|
36
36
|
return new __HttpRequest({
|
|
37
37
|
protocol,
|
|
@@ -43,7 +43,7 @@ export const serializeAws_restJson1BatchGetAccountStatusCommand = async (input,
|
|
|
43
43
|
body,
|
|
44
44
|
});
|
|
45
45
|
};
|
|
46
|
-
export const
|
|
46
|
+
export const se_BatchGetFreeTrialInfoCommand = async (input, context) => {
|
|
47
47
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
48
48
|
const headers = {
|
|
49
49
|
"content-type": "application/json",
|
|
@@ -51,9 +51,7 @@ export const serializeAws_restJson1BatchGetFreeTrialInfoCommand = async (input,
|
|
|
51
51
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/freetrialinfo/batchget";
|
|
52
52
|
let body;
|
|
53
53
|
body = JSON.stringify({
|
|
54
|
-
...(input.accountIds != null && {
|
|
55
|
-
accountIds: serializeAws_restJson1MeteringAccountIdList(input.accountIds, context),
|
|
56
|
-
}),
|
|
54
|
+
...(input.accountIds != null && { accountIds: se_MeteringAccountIdList(input.accountIds, context) }),
|
|
57
55
|
});
|
|
58
56
|
return new __HttpRequest({
|
|
59
57
|
protocol,
|
|
@@ -65,7 +63,7 @@ export const serializeAws_restJson1BatchGetFreeTrialInfoCommand = async (input,
|
|
|
65
63
|
body,
|
|
66
64
|
});
|
|
67
65
|
};
|
|
68
|
-
export const
|
|
66
|
+
export const se_CancelFindingsReportCommand = async (input, context) => {
|
|
69
67
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
70
68
|
const headers = {
|
|
71
69
|
"content-type": "application/json",
|
|
@@ -85,7 +83,7 @@ export const serializeAws_restJson1CancelFindingsReportCommand = async (input, c
|
|
|
85
83
|
body,
|
|
86
84
|
});
|
|
87
85
|
};
|
|
88
|
-
export const
|
|
86
|
+
export const se_CreateFilterCommand = async (input, context) => {
|
|
89
87
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
90
88
|
const headers = {
|
|
91
89
|
"content-type": "application/json",
|
|
@@ -95,12 +93,10 @@ export const serializeAws_restJson1CreateFilterCommand = async (input, context)
|
|
|
95
93
|
body = JSON.stringify({
|
|
96
94
|
...(input.action != null && { action: input.action }),
|
|
97
95
|
...(input.description != null && { description: input.description }),
|
|
98
|
-
...(input.filterCriteria != null && {
|
|
99
|
-
filterCriteria: serializeAws_restJson1FilterCriteria(input.filterCriteria, context),
|
|
100
|
-
}),
|
|
96
|
+
...(input.filterCriteria != null && { filterCriteria: se_FilterCriteria(input.filterCriteria, context) }),
|
|
101
97
|
...(input.name != null && { name: input.name }),
|
|
102
98
|
...(input.reason != null && { reason: input.reason }),
|
|
103
|
-
...(input.tags != null && { tags:
|
|
99
|
+
...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
|
|
104
100
|
});
|
|
105
101
|
return new __HttpRequest({
|
|
106
102
|
protocol,
|
|
@@ -112,7 +108,7 @@ export const serializeAws_restJson1CreateFilterCommand = async (input, context)
|
|
|
112
108
|
body,
|
|
113
109
|
});
|
|
114
110
|
};
|
|
115
|
-
export const
|
|
111
|
+
export const se_CreateFindingsReportCommand = async (input, context) => {
|
|
116
112
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
117
113
|
const headers = {
|
|
118
114
|
"content-type": "application/json",
|
|
@@ -120,13 +116,9 @@ export const serializeAws_restJson1CreateFindingsReportCommand = async (input, c
|
|
|
120
116
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/reporting/create";
|
|
121
117
|
let body;
|
|
122
118
|
body = JSON.stringify({
|
|
123
|
-
...(input.filterCriteria != null && {
|
|
124
|
-
filterCriteria: serializeAws_restJson1FilterCriteria(input.filterCriteria, context),
|
|
125
|
-
}),
|
|
119
|
+
...(input.filterCriteria != null && { filterCriteria: se_FilterCriteria(input.filterCriteria, context) }),
|
|
126
120
|
...(input.reportFormat != null && { reportFormat: input.reportFormat }),
|
|
127
|
-
...(input.s3Destination != null && {
|
|
128
|
-
s3Destination: serializeAws_restJson1Destination(input.s3Destination, context),
|
|
129
|
-
}),
|
|
121
|
+
...(input.s3Destination != null && { s3Destination: se_Destination(input.s3Destination, context) }),
|
|
130
122
|
});
|
|
131
123
|
return new __HttpRequest({
|
|
132
124
|
protocol,
|
|
@@ -138,7 +130,7 @@ export const serializeAws_restJson1CreateFindingsReportCommand = async (input, c
|
|
|
138
130
|
body,
|
|
139
131
|
});
|
|
140
132
|
};
|
|
141
|
-
export const
|
|
133
|
+
export const se_DeleteFilterCommand = async (input, context) => {
|
|
142
134
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
143
135
|
const headers = {
|
|
144
136
|
"content-type": "application/json",
|
|
@@ -158,7 +150,7 @@ export const serializeAws_restJson1DeleteFilterCommand = async (input, context)
|
|
|
158
150
|
body,
|
|
159
151
|
});
|
|
160
152
|
};
|
|
161
|
-
export const
|
|
153
|
+
export const se_DescribeOrganizationConfigurationCommand = async (input, context) => {
|
|
162
154
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
163
155
|
const headers = {
|
|
164
156
|
"content-type": "application/json",
|
|
@@ -176,7 +168,7 @@ export const serializeAws_restJson1DescribeOrganizationConfigurationCommand = as
|
|
|
176
168
|
body,
|
|
177
169
|
});
|
|
178
170
|
};
|
|
179
|
-
export const
|
|
171
|
+
export const se_DisableCommand = async (input, context) => {
|
|
180
172
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
181
173
|
const headers = {
|
|
182
174
|
"content-type": "application/json",
|
|
@@ -184,10 +176,8 @@ export const serializeAws_restJson1DisableCommand = async (input, context) => {
|
|
|
184
176
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/disable";
|
|
185
177
|
let body;
|
|
186
178
|
body = JSON.stringify({
|
|
187
|
-
...(input.accountIds != null && { accountIds:
|
|
188
|
-
...(input.resourceTypes != null && {
|
|
189
|
-
resourceTypes: serializeAws_restJson1DisableResourceTypeList(input.resourceTypes, context),
|
|
190
|
-
}),
|
|
179
|
+
...(input.accountIds != null && { accountIds: se_AccountIdSet(input.accountIds, context) }),
|
|
180
|
+
...(input.resourceTypes != null && { resourceTypes: se_DisableResourceTypeList(input.resourceTypes, context) }),
|
|
191
181
|
});
|
|
192
182
|
return new __HttpRequest({
|
|
193
183
|
protocol,
|
|
@@ -199,7 +189,7 @@ export const serializeAws_restJson1DisableCommand = async (input, context) => {
|
|
|
199
189
|
body,
|
|
200
190
|
});
|
|
201
191
|
};
|
|
202
|
-
export const
|
|
192
|
+
export const se_DisableDelegatedAdminAccountCommand = async (input, context) => {
|
|
203
193
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
204
194
|
const headers = {
|
|
205
195
|
"content-type": "application/json",
|
|
@@ -219,7 +209,7 @@ export const serializeAws_restJson1DisableDelegatedAdminAccountCommand = async (
|
|
|
219
209
|
body,
|
|
220
210
|
});
|
|
221
211
|
};
|
|
222
|
-
export const
|
|
212
|
+
export const se_DisassociateMemberCommand = async (input, context) => {
|
|
223
213
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
224
214
|
const headers = {
|
|
225
215
|
"content-type": "application/json",
|
|
@@ -239,7 +229,7 @@ export const serializeAws_restJson1DisassociateMemberCommand = async (input, con
|
|
|
239
229
|
body,
|
|
240
230
|
});
|
|
241
231
|
};
|
|
242
|
-
export const
|
|
232
|
+
export const se_EnableCommand = async (input, context) => {
|
|
243
233
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
244
234
|
const headers = {
|
|
245
235
|
"content-type": "application/json",
|
|
@@ -247,11 +237,9 @@ export const serializeAws_restJson1EnableCommand = async (input, context) => {
|
|
|
247
237
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/enable";
|
|
248
238
|
let body;
|
|
249
239
|
body = JSON.stringify({
|
|
250
|
-
...(input.accountIds != null && { accountIds:
|
|
240
|
+
...(input.accountIds != null && { accountIds: se_AccountIdSet(input.accountIds, context) }),
|
|
251
241
|
clientToken: input.clientToken ?? generateIdempotencyToken(),
|
|
252
|
-
...(input.resourceTypes != null && {
|
|
253
|
-
resourceTypes: serializeAws_restJson1EnableResourceTypeList(input.resourceTypes, context),
|
|
254
|
-
}),
|
|
242
|
+
...(input.resourceTypes != null && { resourceTypes: se_EnableResourceTypeList(input.resourceTypes, context) }),
|
|
255
243
|
});
|
|
256
244
|
return new __HttpRequest({
|
|
257
245
|
protocol,
|
|
@@ -263,7 +251,7 @@ export const serializeAws_restJson1EnableCommand = async (input, context) => {
|
|
|
263
251
|
body,
|
|
264
252
|
});
|
|
265
253
|
};
|
|
266
|
-
export const
|
|
254
|
+
export const se_EnableDelegatedAdminAccountCommand = async (input, context) => {
|
|
267
255
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
268
256
|
const headers = {
|
|
269
257
|
"content-type": "application/json",
|
|
@@ -284,7 +272,7 @@ export const serializeAws_restJson1EnableDelegatedAdminAccountCommand = async (i
|
|
|
284
272
|
body,
|
|
285
273
|
});
|
|
286
274
|
};
|
|
287
|
-
export const
|
|
275
|
+
export const se_GetConfigurationCommand = async (input, context) => {
|
|
288
276
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
289
277
|
const headers = {
|
|
290
278
|
"content-type": "application/json",
|
|
@@ -302,7 +290,7 @@ export const serializeAws_restJson1GetConfigurationCommand = async (input, conte
|
|
|
302
290
|
body,
|
|
303
291
|
});
|
|
304
292
|
};
|
|
305
|
-
export const
|
|
293
|
+
export const se_GetDelegatedAdminAccountCommand = async (input, context) => {
|
|
306
294
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
307
295
|
const headers = {
|
|
308
296
|
"content-type": "application/json",
|
|
@@ -320,7 +308,7 @@ export const serializeAws_restJson1GetDelegatedAdminAccountCommand = async (inpu
|
|
|
320
308
|
body,
|
|
321
309
|
});
|
|
322
310
|
};
|
|
323
|
-
export const
|
|
311
|
+
export const se_GetFindingsReportStatusCommand = async (input, context) => {
|
|
324
312
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
325
313
|
const headers = {
|
|
326
314
|
"content-type": "application/json",
|
|
@@ -340,7 +328,7 @@ export const serializeAws_restJson1GetFindingsReportStatusCommand = async (input
|
|
|
340
328
|
body,
|
|
341
329
|
});
|
|
342
330
|
};
|
|
343
|
-
export const
|
|
331
|
+
export const se_GetMemberCommand = async (input, context) => {
|
|
344
332
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
345
333
|
const headers = {
|
|
346
334
|
"content-type": "application/json",
|
|
@@ -360,7 +348,7 @@ export const serializeAws_restJson1GetMemberCommand = async (input, context) =>
|
|
|
360
348
|
body,
|
|
361
349
|
});
|
|
362
350
|
};
|
|
363
|
-
export const
|
|
351
|
+
export const se_ListAccountPermissionsCommand = async (input, context) => {
|
|
364
352
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
365
353
|
const headers = {
|
|
366
354
|
"content-type": "application/json",
|
|
@@ -382,7 +370,7 @@ export const serializeAws_restJson1ListAccountPermissionsCommand = async (input,
|
|
|
382
370
|
body,
|
|
383
371
|
});
|
|
384
372
|
};
|
|
385
|
-
export const
|
|
373
|
+
export const se_ListCoverageCommand = async (input, context) => {
|
|
386
374
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
387
375
|
const headers = {
|
|
388
376
|
"content-type": "application/json",
|
|
@@ -390,9 +378,7 @@ export const serializeAws_restJson1ListCoverageCommand = async (input, context)
|
|
|
390
378
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/coverage/list";
|
|
391
379
|
let body;
|
|
392
380
|
body = JSON.stringify({
|
|
393
|
-
...(input.filterCriteria != null && {
|
|
394
|
-
filterCriteria: serializeAws_restJson1CoverageFilterCriteria(input.filterCriteria, context),
|
|
395
|
-
}),
|
|
381
|
+
...(input.filterCriteria != null && { filterCriteria: se_CoverageFilterCriteria(input.filterCriteria, context) }),
|
|
396
382
|
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
397
383
|
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
398
384
|
});
|
|
@@ -406,7 +392,7 @@ export const serializeAws_restJson1ListCoverageCommand = async (input, context)
|
|
|
406
392
|
body,
|
|
407
393
|
});
|
|
408
394
|
};
|
|
409
|
-
export const
|
|
395
|
+
export const se_ListCoverageStatisticsCommand = async (input, context) => {
|
|
410
396
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
411
397
|
const headers = {
|
|
412
398
|
"content-type": "application/json",
|
|
@@ -414,9 +400,7 @@ export const serializeAws_restJson1ListCoverageStatisticsCommand = async (input,
|
|
|
414
400
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/coverage/statistics/list";
|
|
415
401
|
let body;
|
|
416
402
|
body = JSON.stringify({
|
|
417
|
-
...(input.filterCriteria != null && {
|
|
418
|
-
filterCriteria: serializeAws_restJson1CoverageFilterCriteria(input.filterCriteria, context),
|
|
419
|
-
}),
|
|
403
|
+
...(input.filterCriteria != null && { filterCriteria: se_CoverageFilterCriteria(input.filterCriteria, context) }),
|
|
420
404
|
...(input.groupBy != null && { groupBy: input.groupBy }),
|
|
421
405
|
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
422
406
|
});
|
|
@@ -430,7 +414,7 @@ export const serializeAws_restJson1ListCoverageStatisticsCommand = async (input,
|
|
|
430
414
|
body,
|
|
431
415
|
});
|
|
432
416
|
};
|
|
433
|
-
export const
|
|
417
|
+
export const se_ListDelegatedAdminAccountsCommand = async (input, context) => {
|
|
434
418
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
435
419
|
const headers = {
|
|
436
420
|
"content-type": "application/json",
|
|
@@ -451,7 +435,7 @@ export const serializeAws_restJson1ListDelegatedAdminAccountsCommand = async (in
|
|
|
451
435
|
body,
|
|
452
436
|
});
|
|
453
437
|
};
|
|
454
|
-
export const
|
|
438
|
+
export const se_ListFiltersCommand = async (input, context) => {
|
|
455
439
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
456
440
|
const headers = {
|
|
457
441
|
"content-type": "application/json",
|
|
@@ -460,7 +444,7 @@ export const serializeAws_restJson1ListFiltersCommand = async (input, context) =
|
|
|
460
444
|
let body;
|
|
461
445
|
body = JSON.stringify({
|
|
462
446
|
...(input.action != null && { action: input.action }),
|
|
463
|
-
...(input.arns != null && { arns:
|
|
447
|
+
...(input.arns != null && { arns: se_FilterArnList(input.arns, context) }),
|
|
464
448
|
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
465
449
|
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
466
450
|
});
|
|
@@ -474,7 +458,7 @@ export const serializeAws_restJson1ListFiltersCommand = async (input, context) =
|
|
|
474
458
|
body,
|
|
475
459
|
});
|
|
476
460
|
};
|
|
477
|
-
export const
|
|
461
|
+
export const se_ListFindingAggregationsCommand = async (input, context) => {
|
|
478
462
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
479
463
|
const headers = {
|
|
480
464
|
"content-type": "application/json",
|
|
@@ -482,9 +466,9 @@ export const serializeAws_restJson1ListFindingAggregationsCommand = async (input
|
|
|
482
466
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/findings/aggregation/list";
|
|
483
467
|
let body;
|
|
484
468
|
body = JSON.stringify({
|
|
485
|
-
...(input.accountIds != null && { accountIds:
|
|
469
|
+
...(input.accountIds != null && { accountIds: se_StringFilterList(input.accountIds, context) }),
|
|
486
470
|
...(input.aggregationRequest != null && {
|
|
487
|
-
aggregationRequest:
|
|
471
|
+
aggregationRequest: se_AggregationRequest(input.aggregationRequest, context),
|
|
488
472
|
}),
|
|
489
473
|
...(input.aggregationType != null && { aggregationType: input.aggregationType }),
|
|
490
474
|
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
@@ -500,7 +484,7 @@ export const serializeAws_restJson1ListFindingAggregationsCommand = async (input
|
|
|
500
484
|
body,
|
|
501
485
|
});
|
|
502
486
|
};
|
|
503
|
-
export const
|
|
487
|
+
export const se_ListFindingsCommand = async (input, context) => {
|
|
504
488
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
505
489
|
const headers = {
|
|
506
490
|
"content-type": "application/json",
|
|
@@ -508,14 +492,10 @@ export const serializeAws_restJson1ListFindingsCommand = async (input, context)
|
|
|
508
492
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/findings/list";
|
|
509
493
|
let body;
|
|
510
494
|
body = JSON.stringify({
|
|
511
|
-
...(input.filterCriteria != null && {
|
|
512
|
-
filterCriteria: serializeAws_restJson1FilterCriteria(input.filterCriteria, context),
|
|
513
|
-
}),
|
|
495
|
+
...(input.filterCriteria != null && { filterCriteria: se_FilterCriteria(input.filterCriteria, context) }),
|
|
514
496
|
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
515
497
|
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
516
|
-
...(input.sortCriteria != null && {
|
|
517
|
-
sortCriteria: serializeAws_restJson1SortCriteria(input.sortCriteria, context),
|
|
518
|
-
}),
|
|
498
|
+
...(input.sortCriteria != null && { sortCriteria: se_SortCriteria(input.sortCriteria, context) }),
|
|
519
499
|
});
|
|
520
500
|
return new __HttpRequest({
|
|
521
501
|
protocol,
|
|
@@ -527,7 +507,7 @@ export const serializeAws_restJson1ListFindingsCommand = async (input, context)
|
|
|
527
507
|
body,
|
|
528
508
|
});
|
|
529
509
|
};
|
|
530
|
-
export const
|
|
510
|
+
export const se_ListMembersCommand = async (input, context) => {
|
|
531
511
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
532
512
|
const headers = {
|
|
533
513
|
"content-type": "application/json",
|
|
@@ -549,7 +529,7 @@ export const serializeAws_restJson1ListMembersCommand = async (input, context) =
|
|
|
549
529
|
body,
|
|
550
530
|
});
|
|
551
531
|
};
|
|
552
|
-
export const
|
|
532
|
+
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
553
533
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
554
534
|
const headers = {};
|
|
555
535
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
@@ -565,7 +545,7 @@ export const serializeAws_restJson1ListTagsForResourceCommand = async (input, co
|
|
|
565
545
|
body,
|
|
566
546
|
});
|
|
567
547
|
};
|
|
568
|
-
export const
|
|
548
|
+
export const se_ListUsageTotalsCommand = async (input, context) => {
|
|
569
549
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
570
550
|
const headers = {
|
|
571
551
|
"content-type": "application/json",
|
|
@@ -573,9 +553,7 @@ export const serializeAws_restJson1ListUsageTotalsCommand = async (input, contex
|
|
|
573
553
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/usage/list";
|
|
574
554
|
let body;
|
|
575
555
|
body = JSON.stringify({
|
|
576
|
-
...(input.accountIds != null && {
|
|
577
|
-
accountIds: serializeAws_restJson1UsageAccountIdList(input.accountIds, context),
|
|
578
|
-
}),
|
|
556
|
+
...(input.accountIds != null && { accountIds: se_UsageAccountIdList(input.accountIds, context) }),
|
|
579
557
|
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
580
558
|
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
581
559
|
});
|
|
@@ -589,7 +567,7 @@ export const serializeAws_restJson1ListUsageTotalsCommand = async (input, contex
|
|
|
589
567
|
body,
|
|
590
568
|
});
|
|
591
569
|
};
|
|
592
|
-
export const
|
|
570
|
+
export const se_TagResourceCommand = async (input, context) => {
|
|
593
571
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
594
572
|
const headers = {
|
|
595
573
|
"content-type": "application/json",
|
|
@@ -598,7 +576,7 @@ export const serializeAws_restJson1TagResourceCommand = async (input, context) =
|
|
|
598
576
|
resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
599
577
|
let body;
|
|
600
578
|
body = JSON.stringify({
|
|
601
|
-
...(input.tags != null && { tags:
|
|
579
|
+
...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
|
|
602
580
|
});
|
|
603
581
|
return new __HttpRequest({
|
|
604
582
|
protocol,
|
|
@@ -610,7 +588,7 @@ export const serializeAws_restJson1TagResourceCommand = async (input, context) =
|
|
|
610
588
|
body,
|
|
611
589
|
});
|
|
612
590
|
};
|
|
613
|
-
export const
|
|
591
|
+
export const se_UntagResourceCommand = async (input, context) => {
|
|
614
592
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
615
593
|
const headers = {};
|
|
616
594
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
@@ -633,7 +611,7 @@ export const serializeAws_restJson1UntagResourceCommand = async (input, context)
|
|
|
633
611
|
body,
|
|
634
612
|
});
|
|
635
613
|
};
|
|
636
|
-
export const
|
|
614
|
+
export const se_UpdateConfigurationCommand = async (input, context) => {
|
|
637
615
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
638
616
|
const headers = {
|
|
639
617
|
"content-type": "application/json",
|
|
@@ -641,9 +619,7 @@ export const serializeAws_restJson1UpdateConfigurationCommand = async (input, co
|
|
|
641
619
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/configuration/update";
|
|
642
620
|
let body;
|
|
643
621
|
body = JSON.stringify({
|
|
644
|
-
...(input.ecrConfiguration != null && {
|
|
645
|
-
ecrConfiguration: serializeAws_restJson1EcrConfiguration(input.ecrConfiguration, context),
|
|
646
|
-
}),
|
|
622
|
+
...(input.ecrConfiguration != null && { ecrConfiguration: se_EcrConfiguration(input.ecrConfiguration, context) }),
|
|
647
623
|
});
|
|
648
624
|
return new __HttpRequest({
|
|
649
625
|
protocol,
|
|
@@ -655,7 +631,7 @@ export const serializeAws_restJson1UpdateConfigurationCommand = async (input, co
|
|
|
655
631
|
body,
|
|
656
632
|
});
|
|
657
633
|
};
|
|
658
|
-
export const
|
|
634
|
+
export const se_UpdateFilterCommand = async (input, context) => {
|
|
659
635
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
660
636
|
const headers = {
|
|
661
637
|
"content-type": "application/json",
|
|
@@ -666,9 +642,7 @@ export const serializeAws_restJson1UpdateFilterCommand = async (input, context)
|
|
|
666
642
|
...(input.action != null && { action: input.action }),
|
|
667
643
|
...(input.description != null && { description: input.description }),
|
|
668
644
|
...(input.filterArn != null && { filterArn: input.filterArn }),
|
|
669
|
-
...(input.filterCriteria != null && {
|
|
670
|
-
filterCriteria: serializeAws_restJson1FilterCriteria(input.filterCriteria, context),
|
|
671
|
-
}),
|
|
645
|
+
...(input.filterCriteria != null && { filterCriteria: se_FilterCriteria(input.filterCriteria, context) }),
|
|
672
646
|
...(input.name != null && { name: input.name }),
|
|
673
647
|
...(input.reason != null && { reason: input.reason }),
|
|
674
648
|
});
|
|
@@ -682,7 +656,7 @@ export const serializeAws_restJson1UpdateFilterCommand = async (input, context)
|
|
|
682
656
|
body,
|
|
683
657
|
});
|
|
684
658
|
};
|
|
685
|
-
export const
|
|
659
|
+
export const se_UpdateOrganizationConfigurationCommand = async (input, context) => {
|
|
686
660
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
687
661
|
const headers = {
|
|
688
662
|
"content-type": "application/json",
|
|
@@ -690,7 +664,7 @@ export const serializeAws_restJson1UpdateOrganizationConfigurationCommand = asyn
|
|
|
690
664
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/organizationconfiguration/update";
|
|
691
665
|
let body;
|
|
692
666
|
body = JSON.stringify({
|
|
693
|
-
...(input.autoEnable != null && { autoEnable:
|
|
667
|
+
...(input.autoEnable != null && { autoEnable: se_AutoEnable(input.autoEnable, context) }),
|
|
694
668
|
});
|
|
695
669
|
return new __HttpRequest({
|
|
696
670
|
protocol,
|
|
@@ -702,9 +676,9 @@ export const serializeAws_restJson1UpdateOrganizationConfigurationCommand = asyn
|
|
|
702
676
|
body,
|
|
703
677
|
});
|
|
704
678
|
};
|
|
705
|
-
export const
|
|
679
|
+
export const de_AssociateMemberCommand = async (output, context) => {
|
|
706
680
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
707
|
-
return
|
|
681
|
+
return de_AssociateMemberCommandError(output, context);
|
|
708
682
|
}
|
|
709
683
|
const contents = map({
|
|
710
684
|
$metadata: deserializeMetadata(output),
|
|
@@ -715,7 +689,7 @@ export const deserializeAws_restJson1AssociateMemberCommand = async (output, con
|
|
|
715
689
|
}
|
|
716
690
|
return contents;
|
|
717
691
|
};
|
|
718
|
-
const
|
|
692
|
+
const de_AssociateMemberCommandError = async (output, context) => {
|
|
719
693
|
const parsedOutput = {
|
|
720
694
|
...output,
|
|
721
695
|
body: await parseErrorBody(output.body, context),
|
|
@@ -724,16 +698,16 @@ const deserializeAws_restJson1AssociateMemberCommandError = async (output, conte
|
|
|
724
698
|
switch (errorCode) {
|
|
725
699
|
case "AccessDeniedException":
|
|
726
700
|
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
727
|
-
throw await
|
|
701
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
728
702
|
case "InternalServerException":
|
|
729
703
|
case "com.amazonaws.inspector2#InternalServerException":
|
|
730
|
-
throw await
|
|
704
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
731
705
|
case "ThrottlingException":
|
|
732
706
|
case "com.amazonaws.inspector2#ThrottlingException":
|
|
733
|
-
throw await
|
|
707
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
734
708
|
case "ValidationException":
|
|
735
709
|
case "com.amazonaws.inspector2#ValidationException":
|
|
736
|
-
throw await
|
|
710
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
737
711
|
default:
|
|
738
712
|
const parsedBody = parsedOutput.body;
|
|
739
713
|
throwDefaultError({
|
|
@@ -744,23 +718,23 @@ const deserializeAws_restJson1AssociateMemberCommandError = async (output, conte
|
|
|
744
718
|
});
|
|
745
719
|
}
|
|
746
720
|
};
|
|
747
|
-
export const
|
|
721
|
+
export const de_BatchGetAccountStatusCommand = async (output, context) => {
|
|
748
722
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
749
|
-
return
|
|
723
|
+
return de_BatchGetAccountStatusCommandError(output, context);
|
|
750
724
|
}
|
|
751
725
|
const contents = map({
|
|
752
726
|
$metadata: deserializeMetadata(output),
|
|
753
727
|
});
|
|
754
728
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
755
729
|
if (data.accounts != null) {
|
|
756
|
-
contents.accounts =
|
|
730
|
+
contents.accounts = de_AccountStateList(data.accounts, context);
|
|
757
731
|
}
|
|
758
732
|
if (data.failedAccounts != null) {
|
|
759
|
-
contents.failedAccounts =
|
|
733
|
+
contents.failedAccounts = de_FailedAccountList(data.failedAccounts, context);
|
|
760
734
|
}
|
|
761
735
|
return contents;
|
|
762
736
|
};
|
|
763
|
-
const
|
|
737
|
+
const de_BatchGetAccountStatusCommandError = async (output, context) => {
|
|
764
738
|
const parsedOutput = {
|
|
765
739
|
...output,
|
|
766
740
|
body: await parseErrorBody(output.body, context),
|
|
@@ -769,19 +743,19 @@ const deserializeAws_restJson1BatchGetAccountStatusCommandError = async (output,
|
|
|
769
743
|
switch (errorCode) {
|
|
770
744
|
case "AccessDeniedException":
|
|
771
745
|
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
772
|
-
throw await
|
|
746
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
773
747
|
case "InternalServerException":
|
|
774
748
|
case "com.amazonaws.inspector2#InternalServerException":
|
|
775
|
-
throw await
|
|
749
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
776
750
|
case "ResourceNotFoundException":
|
|
777
751
|
case "com.amazonaws.inspector2#ResourceNotFoundException":
|
|
778
|
-
throw await
|
|
752
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
779
753
|
case "ThrottlingException":
|
|
780
754
|
case "com.amazonaws.inspector2#ThrottlingException":
|
|
781
|
-
throw await
|
|
755
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
782
756
|
case "ValidationException":
|
|
783
757
|
case "com.amazonaws.inspector2#ValidationException":
|
|
784
|
-
throw await
|
|
758
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
785
759
|
default:
|
|
786
760
|
const parsedBody = parsedOutput.body;
|
|
787
761
|
throwDefaultError({
|
|
@@ -792,23 +766,23 @@ const deserializeAws_restJson1BatchGetAccountStatusCommandError = async (output,
|
|
|
792
766
|
});
|
|
793
767
|
}
|
|
794
768
|
};
|
|
795
|
-
export const
|
|
769
|
+
export const de_BatchGetFreeTrialInfoCommand = async (output, context) => {
|
|
796
770
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
797
|
-
return
|
|
771
|
+
return de_BatchGetFreeTrialInfoCommandError(output, context);
|
|
798
772
|
}
|
|
799
773
|
const contents = map({
|
|
800
774
|
$metadata: deserializeMetadata(output),
|
|
801
775
|
});
|
|
802
776
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
803
777
|
if (data.accounts != null) {
|
|
804
|
-
contents.accounts =
|
|
778
|
+
contents.accounts = de_FreeTrialAccountInfoList(data.accounts, context);
|
|
805
779
|
}
|
|
806
780
|
if (data.failedAccounts != null) {
|
|
807
|
-
contents.failedAccounts =
|
|
781
|
+
contents.failedAccounts = de_FreeTrialInfoErrorList(data.failedAccounts, context);
|
|
808
782
|
}
|
|
809
783
|
return contents;
|
|
810
784
|
};
|
|
811
|
-
const
|
|
785
|
+
const de_BatchGetFreeTrialInfoCommandError = async (output, context) => {
|
|
812
786
|
const parsedOutput = {
|
|
813
787
|
...output,
|
|
814
788
|
body: await parseErrorBody(output.body, context),
|
|
@@ -817,16 +791,16 @@ const deserializeAws_restJson1BatchGetFreeTrialInfoCommandError = async (output,
|
|
|
817
791
|
switch (errorCode) {
|
|
818
792
|
case "AccessDeniedException":
|
|
819
793
|
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
820
|
-
throw await
|
|
794
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
821
795
|
case "InternalServerException":
|
|
822
796
|
case "com.amazonaws.inspector2#InternalServerException":
|
|
823
|
-
throw await
|
|
797
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
824
798
|
case "ThrottlingException":
|
|
825
799
|
case "com.amazonaws.inspector2#ThrottlingException":
|
|
826
|
-
throw await
|
|
800
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
827
801
|
case "ValidationException":
|
|
828
802
|
case "com.amazonaws.inspector2#ValidationException":
|
|
829
|
-
throw await
|
|
803
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
830
804
|
default:
|
|
831
805
|
const parsedBody = parsedOutput.body;
|
|
832
806
|
throwDefaultError({
|
|
@@ -837,9 +811,9 @@ const deserializeAws_restJson1BatchGetFreeTrialInfoCommandError = async (output,
|
|
|
837
811
|
});
|
|
838
812
|
}
|
|
839
813
|
};
|
|
840
|
-
export const
|
|
814
|
+
export const de_CancelFindingsReportCommand = async (output, context) => {
|
|
841
815
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
842
|
-
return
|
|
816
|
+
return de_CancelFindingsReportCommandError(output, context);
|
|
843
817
|
}
|
|
844
818
|
const contents = map({
|
|
845
819
|
$metadata: deserializeMetadata(output),
|
|
@@ -850,7 +824,7 @@ export const deserializeAws_restJson1CancelFindingsReportCommand = async (output
|
|
|
850
824
|
}
|
|
851
825
|
return contents;
|
|
852
826
|
};
|
|
853
|
-
const
|
|
827
|
+
const de_CancelFindingsReportCommandError = async (output, context) => {
|
|
854
828
|
const parsedOutput = {
|
|
855
829
|
...output,
|
|
856
830
|
body: await parseErrorBody(output.body, context),
|
|
@@ -859,19 +833,19 @@ const deserializeAws_restJson1CancelFindingsReportCommandError = async (output,
|
|
|
859
833
|
switch (errorCode) {
|
|
860
834
|
case "AccessDeniedException":
|
|
861
835
|
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
862
|
-
throw await
|
|
836
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
863
837
|
case "InternalServerException":
|
|
864
838
|
case "com.amazonaws.inspector2#InternalServerException":
|
|
865
|
-
throw await
|
|
839
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
866
840
|
case "ResourceNotFoundException":
|
|
867
841
|
case "com.amazonaws.inspector2#ResourceNotFoundException":
|
|
868
|
-
throw await
|
|
842
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
869
843
|
case "ThrottlingException":
|
|
870
844
|
case "com.amazonaws.inspector2#ThrottlingException":
|
|
871
|
-
throw await
|
|
845
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
872
846
|
case "ValidationException":
|
|
873
847
|
case "com.amazonaws.inspector2#ValidationException":
|
|
874
|
-
throw await
|
|
848
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
875
849
|
default:
|
|
876
850
|
const parsedBody = parsedOutput.body;
|
|
877
851
|
throwDefaultError({
|
|
@@ -882,9 +856,9 @@ const deserializeAws_restJson1CancelFindingsReportCommandError = async (output,
|
|
|
882
856
|
});
|
|
883
857
|
}
|
|
884
858
|
};
|
|
885
|
-
export const
|
|
859
|
+
export const de_CreateFilterCommand = async (output, context) => {
|
|
886
860
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
887
|
-
return
|
|
861
|
+
return de_CreateFilterCommandError(output, context);
|
|
888
862
|
}
|
|
889
863
|
const contents = map({
|
|
890
864
|
$metadata: deserializeMetadata(output),
|
|
@@ -895,7 +869,7 @@ export const deserializeAws_restJson1CreateFilterCommand = async (output, contex
|
|
|
895
869
|
}
|
|
896
870
|
return contents;
|
|
897
871
|
};
|
|
898
|
-
const
|
|
872
|
+
const de_CreateFilterCommandError = async (output, context) => {
|
|
899
873
|
const parsedOutput = {
|
|
900
874
|
...output,
|
|
901
875
|
body: await parseErrorBody(output.body, context),
|
|
@@ -904,22 +878,22 @@ const deserializeAws_restJson1CreateFilterCommandError = async (output, context)
|
|
|
904
878
|
switch (errorCode) {
|
|
905
879
|
case "AccessDeniedException":
|
|
906
880
|
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
907
|
-
throw await
|
|
881
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
908
882
|
case "BadRequestException":
|
|
909
883
|
case "com.amazonaws.inspector2#BadRequestException":
|
|
910
|
-
throw await
|
|
884
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
911
885
|
case "InternalServerException":
|
|
912
886
|
case "com.amazonaws.inspector2#InternalServerException":
|
|
913
|
-
throw await
|
|
887
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
914
888
|
case "ServiceQuotaExceededException":
|
|
915
889
|
case "com.amazonaws.inspector2#ServiceQuotaExceededException":
|
|
916
|
-
throw await
|
|
890
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
917
891
|
case "ThrottlingException":
|
|
918
892
|
case "com.amazonaws.inspector2#ThrottlingException":
|
|
919
|
-
throw await
|
|
893
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
920
894
|
case "ValidationException":
|
|
921
895
|
case "com.amazonaws.inspector2#ValidationException":
|
|
922
|
-
throw await
|
|
896
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
923
897
|
default:
|
|
924
898
|
const parsedBody = parsedOutput.body;
|
|
925
899
|
throwDefaultError({
|
|
@@ -930,9 +904,9 @@ const deserializeAws_restJson1CreateFilterCommandError = async (output, context)
|
|
|
930
904
|
});
|
|
931
905
|
}
|
|
932
906
|
};
|
|
933
|
-
export const
|
|
907
|
+
export const de_CreateFindingsReportCommand = async (output, context) => {
|
|
934
908
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
935
|
-
return
|
|
909
|
+
return de_CreateFindingsReportCommandError(output, context);
|
|
936
910
|
}
|
|
937
911
|
const contents = map({
|
|
938
912
|
$metadata: deserializeMetadata(output),
|
|
@@ -943,7 +917,7 @@ export const deserializeAws_restJson1CreateFindingsReportCommand = async (output
|
|
|
943
917
|
}
|
|
944
918
|
return contents;
|
|
945
919
|
};
|
|
946
|
-
const
|
|
920
|
+
const de_CreateFindingsReportCommandError = async (output, context) => {
|
|
947
921
|
const parsedOutput = {
|
|
948
922
|
...output,
|
|
949
923
|
body: await parseErrorBody(output.body, context),
|
|
@@ -952,19 +926,19 @@ const deserializeAws_restJson1CreateFindingsReportCommandError = async (output,
|
|
|
952
926
|
switch (errorCode) {
|
|
953
927
|
case "AccessDeniedException":
|
|
954
928
|
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
955
|
-
throw await
|
|
929
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
956
930
|
case "InternalServerException":
|
|
957
931
|
case "com.amazonaws.inspector2#InternalServerException":
|
|
958
|
-
throw await
|
|
932
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
959
933
|
case "ResourceNotFoundException":
|
|
960
934
|
case "com.amazonaws.inspector2#ResourceNotFoundException":
|
|
961
|
-
throw await
|
|
935
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
962
936
|
case "ThrottlingException":
|
|
963
937
|
case "com.amazonaws.inspector2#ThrottlingException":
|
|
964
|
-
throw await
|
|
938
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
965
939
|
case "ValidationException":
|
|
966
940
|
case "com.amazonaws.inspector2#ValidationException":
|
|
967
|
-
throw await
|
|
941
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
968
942
|
default:
|
|
969
943
|
const parsedBody = parsedOutput.body;
|
|
970
944
|
throwDefaultError({
|
|
@@ -975,9 +949,9 @@ const deserializeAws_restJson1CreateFindingsReportCommandError = async (output,
|
|
|
975
949
|
});
|
|
976
950
|
}
|
|
977
951
|
};
|
|
978
|
-
export const
|
|
952
|
+
export const de_DeleteFilterCommand = async (output, context) => {
|
|
979
953
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
980
|
-
return
|
|
954
|
+
return de_DeleteFilterCommandError(output, context);
|
|
981
955
|
}
|
|
982
956
|
const contents = map({
|
|
983
957
|
$metadata: deserializeMetadata(output),
|
|
@@ -988,7 +962,7 @@ export const deserializeAws_restJson1DeleteFilterCommand = async (output, contex
|
|
|
988
962
|
}
|
|
989
963
|
return contents;
|
|
990
964
|
};
|
|
991
|
-
const
|
|
965
|
+
const de_DeleteFilterCommandError = async (output, context) => {
|
|
992
966
|
const parsedOutput = {
|
|
993
967
|
...output,
|
|
994
968
|
body: await parseErrorBody(output.body, context),
|
|
@@ -997,19 +971,19 @@ const deserializeAws_restJson1DeleteFilterCommandError = async (output, context)
|
|
|
997
971
|
switch (errorCode) {
|
|
998
972
|
case "AccessDeniedException":
|
|
999
973
|
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
1000
|
-
throw await
|
|
974
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1001
975
|
case "InternalServerException":
|
|
1002
976
|
case "com.amazonaws.inspector2#InternalServerException":
|
|
1003
|
-
throw await
|
|
977
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1004
978
|
case "ResourceNotFoundException":
|
|
1005
979
|
case "com.amazonaws.inspector2#ResourceNotFoundException":
|
|
1006
|
-
throw await
|
|
980
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1007
981
|
case "ThrottlingException":
|
|
1008
982
|
case "com.amazonaws.inspector2#ThrottlingException":
|
|
1009
|
-
throw await
|
|
983
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1010
984
|
case "ValidationException":
|
|
1011
985
|
case "com.amazonaws.inspector2#ValidationException":
|
|
1012
|
-
throw await
|
|
986
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1013
987
|
default:
|
|
1014
988
|
const parsedBody = parsedOutput.body;
|
|
1015
989
|
throwDefaultError({
|
|
@@ -1020,23 +994,23 @@ const deserializeAws_restJson1DeleteFilterCommandError = async (output, context)
|
|
|
1020
994
|
});
|
|
1021
995
|
}
|
|
1022
996
|
};
|
|
1023
|
-
export const
|
|
997
|
+
export const de_DescribeOrganizationConfigurationCommand = async (output, context) => {
|
|
1024
998
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1025
|
-
return
|
|
999
|
+
return de_DescribeOrganizationConfigurationCommandError(output, context);
|
|
1026
1000
|
}
|
|
1027
1001
|
const contents = map({
|
|
1028
1002
|
$metadata: deserializeMetadata(output),
|
|
1029
1003
|
});
|
|
1030
1004
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1031
1005
|
if (data.autoEnable != null) {
|
|
1032
|
-
contents.autoEnable =
|
|
1006
|
+
contents.autoEnable = de_AutoEnable(data.autoEnable, context);
|
|
1033
1007
|
}
|
|
1034
1008
|
if (data.maxAccountLimitReached != null) {
|
|
1035
1009
|
contents.maxAccountLimitReached = __expectBoolean(data.maxAccountLimitReached);
|
|
1036
1010
|
}
|
|
1037
1011
|
return contents;
|
|
1038
1012
|
};
|
|
1039
|
-
const
|
|
1013
|
+
const de_DescribeOrganizationConfigurationCommandError = async (output, context) => {
|
|
1040
1014
|
const parsedOutput = {
|
|
1041
1015
|
...output,
|
|
1042
1016
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1045,16 +1019,16 @@ const deserializeAws_restJson1DescribeOrganizationConfigurationCommandError = as
|
|
|
1045
1019
|
switch (errorCode) {
|
|
1046
1020
|
case "AccessDeniedException":
|
|
1047
1021
|
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
1048
|
-
throw await
|
|
1022
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1049
1023
|
case "InternalServerException":
|
|
1050
1024
|
case "com.amazonaws.inspector2#InternalServerException":
|
|
1051
|
-
throw await
|
|
1025
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1052
1026
|
case "ThrottlingException":
|
|
1053
1027
|
case "com.amazonaws.inspector2#ThrottlingException":
|
|
1054
|
-
throw await
|
|
1028
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1055
1029
|
case "ValidationException":
|
|
1056
1030
|
case "com.amazonaws.inspector2#ValidationException":
|
|
1057
|
-
throw await
|
|
1031
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1058
1032
|
default:
|
|
1059
1033
|
const parsedBody = parsedOutput.body;
|
|
1060
1034
|
throwDefaultError({
|
|
@@ -1065,23 +1039,23 @@ const deserializeAws_restJson1DescribeOrganizationConfigurationCommandError = as
|
|
|
1065
1039
|
});
|
|
1066
1040
|
}
|
|
1067
1041
|
};
|
|
1068
|
-
export const
|
|
1042
|
+
export const de_DisableCommand = async (output, context) => {
|
|
1069
1043
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1070
|
-
return
|
|
1044
|
+
return de_DisableCommandError(output, context);
|
|
1071
1045
|
}
|
|
1072
1046
|
const contents = map({
|
|
1073
1047
|
$metadata: deserializeMetadata(output),
|
|
1074
1048
|
});
|
|
1075
1049
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1076
1050
|
if (data.accounts != null) {
|
|
1077
|
-
contents.accounts =
|
|
1051
|
+
contents.accounts = de_AccountList(data.accounts, context);
|
|
1078
1052
|
}
|
|
1079
1053
|
if (data.failedAccounts != null) {
|
|
1080
|
-
contents.failedAccounts =
|
|
1054
|
+
contents.failedAccounts = de_FailedAccountList(data.failedAccounts, context);
|
|
1081
1055
|
}
|
|
1082
1056
|
return contents;
|
|
1083
1057
|
};
|
|
1084
|
-
const
|
|
1058
|
+
const de_DisableCommandError = async (output, context) => {
|
|
1085
1059
|
const parsedOutput = {
|
|
1086
1060
|
...output,
|
|
1087
1061
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1090,19 +1064,19 @@ const deserializeAws_restJson1DisableCommandError = async (output, context) => {
|
|
|
1090
1064
|
switch (errorCode) {
|
|
1091
1065
|
case "AccessDeniedException":
|
|
1092
1066
|
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
1093
|
-
throw await
|
|
1067
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1094
1068
|
case "InternalServerException":
|
|
1095
1069
|
case "com.amazonaws.inspector2#InternalServerException":
|
|
1096
|
-
throw await
|
|
1070
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1097
1071
|
case "ResourceNotFoundException":
|
|
1098
1072
|
case "com.amazonaws.inspector2#ResourceNotFoundException":
|
|
1099
|
-
throw await
|
|
1073
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1100
1074
|
case "ThrottlingException":
|
|
1101
1075
|
case "com.amazonaws.inspector2#ThrottlingException":
|
|
1102
|
-
throw await
|
|
1076
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1103
1077
|
case "ValidationException":
|
|
1104
1078
|
case "com.amazonaws.inspector2#ValidationException":
|
|
1105
|
-
throw await
|
|
1079
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1106
1080
|
default:
|
|
1107
1081
|
const parsedBody = parsedOutput.body;
|
|
1108
1082
|
throwDefaultError({
|
|
@@ -1113,9 +1087,9 @@ const deserializeAws_restJson1DisableCommandError = async (output, context) => {
|
|
|
1113
1087
|
});
|
|
1114
1088
|
}
|
|
1115
1089
|
};
|
|
1116
|
-
export const
|
|
1090
|
+
export const de_DisableDelegatedAdminAccountCommand = async (output, context) => {
|
|
1117
1091
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1118
|
-
return
|
|
1092
|
+
return de_DisableDelegatedAdminAccountCommandError(output, context);
|
|
1119
1093
|
}
|
|
1120
1094
|
const contents = map({
|
|
1121
1095
|
$metadata: deserializeMetadata(output),
|
|
@@ -1126,7 +1100,7 @@ export const deserializeAws_restJson1DisableDelegatedAdminAccountCommand = async
|
|
|
1126
1100
|
}
|
|
1127
1101
|
return contents;
|
|
1128
1102
|
};
|
|
1129
|
-
const
|
|
1103
|
+
const de_DisableDelegatedAdminAccountCommandError = async (output, context) => {
|
|
1130
1104
|
const parsedOutput = {
|
|
1131
1105
|
...output,
|
|
1132
1106
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1135,22 +1109,22 @@ const deserializeAws_restJson1DisableDelegatedAdminAccountCommandError = async (
|
|
|
1135
1109
|
switch (errorCode) {
|
|
1136
1110
|
case "AccessDeniedException":
|
|
1137
1111
|
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
1138
|
-
throw await
|
|
1112
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1139
1113
|
case "ConflictException":
|
|
1140
1114
|
case "com.amazonaws.inspector2#ConflictException":
|
|
1141
|
-
throw await
|
|
1115
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1142
1116
|
case "InternalServerException":
|
|
1143
1117
|
case "com.amazonaws.inspector2#InternalServerException":
|
|
1144
|
-
throw await
|
|
1118
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1145
1119
|
case "ResourceNotFoundException":
|
|
1146
1120
|
case "com.amazonaws.inspector2#ResourceNotFoundException":
|
|
1147
|
-
throw await
|
|
1121
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1148
1122
|
case "ThrottlingException":
|
|
1149
1123
|
case "com.amazonaws.inspector2#ThrottlingException":
|
|
1150
|
-
throw await
|
|
1124
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1151
1125
|
case "ValidationException":
|
|
1152
1126
|
case "com.amazonaws.inspector2#ValidationException":
|
|
1153
|
-
throw await
|
|
1127
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1154
1128
|
default:
|
|
1155
1129
|
const parsedBody = parsedOutput.body;
|
|
1156
1130
|
throwDefaultError({
|
|
@@ -1161,9 +1135,9 @@ const deserializeAws_restJson1DisableDelegatedAdminAccountCommandError = async (
|
|
|
1161
1135
|
});
|
|
1162
1136
|
}
|
|
1163
1137
|
};
|
|
1164
|
-
export const
|
|
1138
|
+
export const de_DisassociateMemberCommand = async (output, context) => {
|
|
1165
1139
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1166
|
-
return
|
|
1140
|
+
return de_DisassociateMemberCommandError(output, context);
|
|
1167
1141
|
}
|
|
1168
1142
|
const contents = map({
|
|
1169
1143
|
$metadata: deserializeMetadata(output),
|
|
@@ -1174,7 +1148,7 @@ export const deserializeAws_restJson1DisassociateMemberCommand = async (output,
|
|
|
1174
1148
|
}
|
|
1175
1149
|
return contents;
|
|
1176
1150
|
};
|
|
1177
|
-
const
|
|
1151
|
+
const de_DisassociateMemberCommandError = async (output, context) => {
|
|
1178
1152
|
const parsedOutput = {
|
|
1179
1153
|
...output,
|
|
1180
1154
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1183,16 +1157,16 @@ const deserializeAws_restJson1DisassociateMemberCommandError = async (output, co
|
|
|
1183
1157
|
switch (errorCode) {
|
|
1184
1158
|
case "AccessDeniedException":
|
|
1185
1159
|
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
1186
|
-
throw await
|
|
1160
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1187
1161
|
case "InternalServerException":
|
|
1188
1162
|
case "com.amazonaws.inspector2#InternalServerException":
|
|
1189
|
-
throw await
|
|
1163
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1190
1164
|
case "ThrottlingException":
|
|
1191
1165
|
case "com.amazonaws.inspector2#ThrottlingException":
|
|
1192
|
-
throw await
|
|
1166
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1193
1167
|
case "ValidationException":
|
|
1194
1168
|
case "com.amazonaws.inspector2#ValidationException":
|
|
1195
|
-
throw await
|
|
1169
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1196
1170
|
default:
|
|
1197
1171
|
const parsedBody = parsedOutput.body;
|
|
1198
1172
|
throwDefaultError({
|
|
@@ -1203,23 +1177,23 @@ const deserializeAws_restJson1DisassociateMemberCommandError = async (output, co
|
|
|
1203
1177
|
});
|
|
1204
1178
|
}
|
|
1205
1179
|
};
|
|
1206
|
-
export const
|
|
1180
|
+
export const de_EnableCommand = async (output, context) => {
|
|
1207
1181
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1208
|
-
return
|
|
1182
|
+
return de_EnableCommandError(output, context);
|
|
1209
1183
|
}
|
|
1210
1184
|
const contents = map({
|
|
1211
1185
|
$metadata: deserializeMetadata(output),
|
|
1212
1186
|
});
|
|
1213
1187
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1214
1188
|
if (data.accounts != null) {
|
|
1215
|
-
contents.accounts =
|
|
1189
|
+
contents.accounts = de_AccountList(data.accounts, context);
|
|
1216
1190
|
}
|
|
1217
1191
|
if (data.failedAccounts != null) {
|
|
1218
|
-
contents.failedAccounts =
|
|
1192
|
+
contents.failedAccounts = de_FailedAccountList(data.failedAccounts, context);
|
|
1219
1193
|
}
|
|
1220
1194
|
return contents;
|
|
1221
1195
|
};
|
|
1222
|
-
const
|
|
1196
|
+
const de_EnableCommandError = async (output, context) => {
|
|
1223
1197
|
const parsedOutput = {
|
|
1224
1198
|
...output,
|
|
1225
1199
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1228,19 +1202,19 @@ const deserializeAws_restJson1EnableCommandError = async (output, context) => {
|
|
|
1228
1202
|
switch (errorCode) {
|
|
1229
1203
|
case "AccessDeniedException":
|
|
1230
1204
|
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
1231
|
-
throw await
|
|
1205
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1232
1206
|
case "InternalServerException":
|
|
1233
1207
|
case "com.amazonaws.inspector2#InternalServerException":
|
|
1234
|
-
throw await
|
|
1208
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1235
1209
|
case "ResourceNotFoundException":
|
|
1236
1210
|
case "com.amazonaws.inspector2#ResourceNotFoundException":
|
|
1237
|
-
throw await
|
|
1211
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1238
1212
|
case "ThrottlingException":
|
|
1239
1213
|
case "com.amazonaws.inspector2#ThrottlingException":
|
|
1240
|
-
throw await
|
|
1214
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1241
1215
|
case "ValidationException":
|
|
1242
1216
|
case "com.amazonaws.inspector2#ValidationException":
|
|
1243
|
-
throw await
|
|
1217
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1244
1218
|
default:
|
|
1245
1219
|
const parsedBody = parsedOutput.body;
|
|
1246
1220
|
throwDefaultError({
|
|
@@ -1251,9 +1225,9 @@ const deserializeAws_restJson1EnableCommandError = async (output, context) => {
|
|
|
1251
1225
|
});
|
|
1252
1226
|
}
|
|
1253
1227
|
};
|
|
1254
|
-
export const
|
|
1228
|
+
export const de_EnableDelegatedAdminAccountCommand = async (output, context) => {
|
|
1255
1229
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1256
|
-
return
|
|
1230
|
+
return de_EnableDelegatedAdminAccountCommandError(output, context);
|
|
1257
1231
|
}
|
|
1258
1232
|
const contents = map({
|
|
1259
1233
|
$metadata: deserializeMetadata(output),
|
|
@@ -1264,7 +1238,7 @@ export const deserializeAws_restJson1EnableDelegatedAdminAccountCommand = async
|
|
|
1264
1238
|
}
|
|
1265
1239
|
return contents;
|
|
1266
1240
|
};
|
|
1267
|
-
const
|
|
1241
|
+
const de_EnableDelegatedAdminAccountCommandError = async (output, context) => {
|
|
1268
1242
|
const parsedOutput = {
|
|
1269
1243
|
...output,
|
|
1270
1244
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1273,22 +1247,22 @@ const deserializeAws_restJson1EnableDelegatedAdminAccountCommandError = async (o
|
|
|
1273
1247
|
switch (errorCode) {
|
|
1274
1248
|
case "AccessDeniedException":
|
|
1275
1249
|
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
1276
|
-
throw await
|
|
1250
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1277
1251
|
case "ConflictException":
|
|
1278
1252
|
case "com.amazonaws.inspector2#ConflictException":
|
|
1279
|
-
throw await
|
|
1253
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1280
1254
|
case "InternalServerException":
|
|
1281
1255
|
case "com.amazonaws.inspector2#InternalServerException":
|
|
1282
|
-
throw await
|
|
1256
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1283
1257
|
case "ResourceNotFoundException":
|
|
1284
1258
|
case "com.amazonaws.inspector2#ResourceNotFoundException":
|
|
1285
|
-
throw await
|
|
1259
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1286
1260
|
case "ThrottlingException":
|
|
1287
1261
|
case "com.amazonaws.inspector2#ThrottlingException":
|
|
1288
|
-
throw await
|
|
1262
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1289
1263
|
case "ValidationException":
|
|
1290
1264
|
case "com.amazonaws.inspector2#ValidationException":
|
|
1291
|
-
throw await
|
|
1265
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1292
1266
|
default:
|
|
1293
1267
|
const parsedBody = parsedOutput.body;
|
|
1294
1268
|
throwDefaultError({
|
|
@@ -1299,20 +1273,20 @@ const deserializeAws_restJson1EnableDelegatedAdminAccountCommandError = async (o
|
|
|
1299
1273
|
});
|
|
1300
1274
|
}
|
|
1301
1275
|
};
|
|
1302
|
-
export const
|
|
1276
|
+
export const de_GetConfigurationCommand = async (output, context) => {
|
|
1303
1277
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1304
|
-
return
|
|
1278
|
+
return de_GetConfigurationCommandError(output, context);
|
|
1305
1279
|
}
|
|
1306
1280
|
const contents = map({
|
|
1307
1281
|
$metadata: deserializeMetadata(output),
|
|
1308
1282
|
});
|
|
1309
1283
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1310
1284
|
if (data.ecrConfiguration != null) {
|
|
1311
|
-
contents.ecrConfiguration =
|
|
1285
|
+
contents.ecrConfiguration = de_EcrConfigurationState(data.ecrConfiguration, context);
|
|
1312
1286
|
}
|
|
1313
1287
|
return contents;
|
|
1314
1288
|
};
|
|
1315
|
-
const
|
|
1289
|
+
const de_GetConfigurationCommandError = async (output, context) => {
|
|
1316
1290
|
const parsedOutput = {
|
|
1317
1291
|
...output,
|
|
1318
1292
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1321,13 +1295,13 @@ const deserializeAws_restJson1GetConfigurationCommandError = async (output, cont
|
|
|
1321
1295
|
switch (errorCode) {
|
|
1322
1296
|
case "InternalServerException":
|
|
1323
1297
|
case "com.amazonaws.inspector2#InternalServerException":
|
|
1324
|
-
throw await
|
|
1298
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1325
1299
|
case "ResourceNotFoundException":
|
|
1326
1300
|
case "com.amazonaws.inspector2#ResourceNotFoundException":
|
|
1327
|
-
throw await
|
|
1301
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1328
1302
|
case "ThrottlingException":
|
|
1329
1303
|
case "com.amazonaws.inspector2#ThrottlingException":
|
|
1330
|
-
throw await
|
|
1304
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1331
1305
|
default:
|
|
1332
1306
|
const parsedBody = parsedOutput.body;
|
|
1333
1307
|
throwDefaultError({
|
|
@@ -1338,20 +1312,20 @@ const deserializeAws_restJson1GetConfigurationCommandError = async (output, cont
|
|
|
1338
1312
|
});
|
|
1339
1313
|
}
|
|
1340
1314
|
};
|
|
1341
|
-
export const
|
|
1315
|
+
export const de_GetDelegatedAdminAccountCommand = async (output, context) => {
|
|
1342
1316
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1343
|
-
return
|
|
1317
|
+
return de_GetDelegatedAdminAccountCommandError(output, context);
|
|
1344
1318
|
}
|
|
1345
1319
|
const contents = map({
|
|
1346
1320
|
$metadata: deserializeMetadata(output),
|
|
1347
1321
|
});
|
|
1348
1322
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1349
1323
|
if (data.delegatedAdmin != null) {
|
|
1350
|
-
contents.delegatedAdmin =
|
|
1324
|
+
contents.delegatedAdmin = de_DelegatedAdmin(data.delegatedAdmin, context);
|
|
1351
1325
|
}
|
|
1352
1326
|
return contents;
|
|
1353
1327
|
};
|
|
1354
|
-
const
|
|
1328
|
+
const de_GetDelegatedAdminAccountCommandError = async (output, context) => {
|
|
1355
1329
|
const parsedOutput = {
|
|
1356
1330
|
...output,
|
|
1357
1331
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1360,19 +1334,19 @@ const deserializeAws_restJson1GetDelegatedAdminAccountCommandError = async (outp
|
|
|
1360
1334
|
switch (errorCode) {
|
|
1361
1335
|
case "AccessDeniedException":
|
|
1362
1336
|
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
1363
|
-
throw await
|
|
1337
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1364
1338
|
case "InternalServerException":
|
|
1365
1339
|
case "com.amazonaws.inspector2#InternalServerException":
|
|
1366
|
-
throw await
|
|
1340
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1367
1341
|
case "ResourceNotFoundException":
|
|
1368
1342
|
case "com.amazonaws.inspector2#ResourceNotFoundException":
|
|
1369
|
-
throw await
|
|
1343
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1370
1344
|
case "ThrottlingException":
|
|
1371
1345
|
case "com.amazonaws.inspector2#ThrottlingException":
|
|
1372
|
-
throw await
|
|
1346
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1373
1347
|
case "ValidationException":
|
|
1374
1348
|
case "com.amazonaws.inspector2#ValidationException":
|
|
1375
|
-
throw await
|
|
1349
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1376
1350
|
default:
|
|
1377
1351
|
const parsedBody = parsedOutput.body;
|
|
1378
1352
|
throwDefaultError({
|
|
@@ -1383,16 +1357,16 @@ const deserializeAws_restJson1GetDelegatedAdminAccountCommandError = async (outp
|
|
|
1383
1357
|
});
|
|
1384
1358
|
}
|
|
1385
1359
|
};
|
|
1386
|
-
export const
|
|
1360
|
+
export const de_GetFindingsReportStatusCommand = async (output, context) => {
|
|
1387
1361
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1388
|
-
return
|
|
1362
|
+
return de_GetFindingsReportStatusCommandError(output, context);
|
|
1389
1363
|
}
|
|
1390
1364
|
const contents = map({
|
|
1391
1365
|
$metadata: deserializeMetadata(output),
|
|
1392
1366
|
});
|
|
1393
1367
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1394
1368
|
if (data.destination != null) {
|
|
1395
|
-
contents.destination =
|
|
1369
|
+
contents.destination = de_Destination(data.destination, context);
|
|
1396
1370
|
}
|
|
1397
1371
|
if (data.errorCode != null) {
|
|
1398
1372
|
contents.errorCode = __expectString(data.errorCode);
|
|
@@ -1401,7 +1375,7 @@ export const deserializeAws_restJson1GetFindingsReportStatusCommand = async (out
|
|
|
1401
1375
|
contents.errorMessage = __expectString(data.errorMessage);
|
|
1402
1376
|
}
|
|
1403
1377
|
if (data.filterCriteria != null) {
|
|
1404
|
-
contents.filterCriteria =
|
|
1378
|
+
contents.filterCriteria = de_FilterCriteria(data.filterCriteria, context);
|
|
1405
1379
|
}
|
|
1406
1380
|
if (data.reportId != null) {
|
|
1407
1381
|
contents.reportId = __expectString(data.reportId);
|
|
@@ -1411,7 +1385,7 @@ export const deserializeAws_restJson1GetFindingsReportStatusCommand = async (out
|
|
|
1411
1385
|
}
|
|
1412
1386
|
return contents;
|
|
1413
1387
|
};
|
|
1414
|
-
const
|
|
1388
|
+
const de_GetFindingsReportStatusCommandError = async (output, context) => {
|
|
1415
1389
|
const parsedOutput = {
|
|
1416
1390
|
...output,
|
|
1417
1391
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1420,19 +1394,19 @@ const deserializeAws_restJson1GetFindingsReportStatusCommandError = async (outpu
|
|
|
1420
1394
|
switch (errorCode) {
|
|
1421
1395
|
case "AccessDeniedException":
|
|
1422
1396
|
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
1423
|
-
throw await
|
|
1397
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1424
1398
|
case "InternalServerException":
|
|
1425
1399
|
case "com.amazonaws.inspector2#InternalServerException":
|
|
1426
|
-
throw await
|
|
1400
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1427
1401
|
case "ResourceNotFoundException":
|
|
1428
1402
|
case "com.amazonaws.inspector2#ResourceNotFoundException":
|
|
1429
|
-
throw await
|
|
1403
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1430
1404
|
case "ThrottlingException":
|
|
1431
1405
|
case "com.amazonaws.inspector2#ThrottlingException":
|
|
1432
|
-
throw await
|
|
1406
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1433
1407
|
case "ValidationException":
|
|
1434
1408
|
case "com.amazonaws.inspector2#ValidationException":
|
|
1435
|
-
throw await
|
|
1409
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1436
1410
|
default:
|
|
1437
1411
|
const parsedBody = parsedOutput.body;
|
|
1438
1412
|
throwDefaultError({
|
|
@@ -1443,20 +1417,20 @@ const deserializeAws_restJson1GetFindingsReportStatusCommandError = async (outpu
|
|
|
1443
1417
|
});
|
|
1444
1418
|
}
|
|
1445
1419
|
};
|
|
1446
|
-
export const
|
|
1420
|
+
export const de_GetMemberCommand = async (output, context) => {
|
|
1447
1421
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1448
|
-
return
|
|
1422
|
+
return de_GetMemberCommandError(output, context);
|
|
1449
1423
|
}
|
|
1450
1424
|
const contents = map({
|
|
1451
1425
|
$metadata: deserializeMetadata(output),
|
|
1452
1426
|
});
|
|
1453
1427
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1454
1428
|
if (data.member != null) {
|
|
1455
|
-
contents.member =
|
|
1429
|
+
contents.member = de_Member(data.member, context);
|
|
1456
1430
|
}
|
|
1457
1431
|
return contents;
|
|
1458
1432
|
};
|
|
1459
|
-
const
|
|
1433
|
+
const de_GetMemberCommandError = async (output, context) => {
|
|
1460
1434
|
const parsedOutput = {
|
|
1461
1435
|
...output,
|
|
1462
1436
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1465,19 +1439,19 @@ const deserializeAws_restJson1GetMemberCommandError = async (output, context) =>
|
|
|
1465
1439
|
switch (errorCode) {
|
|
1466
1440
|
case "AccessDeniedException":
|
|
1467
1441
|
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
1468
|
-
throw await
|
|
1442
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1469
1443
|
case "InternalServerException":
|
|
1470
1444
|
case "com.amazonaws.inspector2#InternalServerException":
|
|
1471
|
-
throw await
|
|
1445
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1472
1446
|
case "ResourceNotFoundException":
|
|
1473
1447
|
case "com.amazonaws.inspector2#ResourceNotFoundException":
|
|
1474
|
-
throw await
|
|
1448
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1475
1449
|
case "ThrottlingException":
|
|
1476
1450
|
case "com.amazonaws.inspector2#ThrottlingException":
|
|
1477
|
-
throw await
|
|
1451
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1478
1452
|
case "ValidationException":
|
|
1479
1453
|
case "com.amazonaws.inspector2#ValidationException":
|
|
1480
|
-
throw await
|
|
1454
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1481
1455
|
default:
|
|
1482
1456
|
const parsedBody = parsedOutput.body;
|
|
1483
1457
|
throwDefaultError({
|
|
@@ -1488,9 +1462,9 @@ const deserializeAws_restJson1GetMemberCommandError = async (output, context) =>
|
|
|
1488
1462
|
});
|
|
1489
1463
|
}
|
|
1490
1464
|
};
|
|
1491
|
-
export const
|
|
1465
|
+
export const de_ListAccountPermissionsCommand = async (output, context) => {
|
|
1492
1466
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1493
|
-
return
|
|
1467
|
+
return de_ListAccountPermissionsCommandError(output, context);
|
|
1494
1468
|
}
|
|
1495
1469
|
const contents = map({
|
|
1496
1470
|
$metadata: deserializeMetadata(output),
|
|
@@ -1500,11 +1474,11 @@ export const deserializeAws_restJson1ListAccountPermissionsCommand = async (outp
|
|
|
1500
1474
|
contents.nextToken = __expectString(data.nextToken);
|
|
1501
1475
|
}
|
|
1502
1476
|
if (data.permissions != null) {
|
|
1503
|
-
contents.permissions =
|
|
1477
|
+
contents.permissions = de_Permissions(data.permissions, context);
|
|
1504
1478
|
}
|
|
1505
1479
|
return contents;
|
|
1506
1480
|
};
|
|
1507
|
-
const
|
|
1481
|
+
const de_ListAccountPermissionsCommandError = async (output, context) => {
|
|
1508
1482
|
const parsedOutput = {
|
|
1509
1483
|
...output,
|
|
1510
1484
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1513,16 +1487,16 @@ const deserializeAws_restJson1ListAccountPermissionsCommandError = async (output
|
|
|
1513
1487
|
switch (errorCode) {
|
|
1514
1488
|
case "AccessDeniedException":
|
|
1515
1489
|
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
1516
|
-
throw await
|
|
1490
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1517
1491
|
case "InternalServerException":
|
|
1518
1492
|
case "com.amazonaws.inspector2#InternalServerException":
|
|
1519
|
-
throw await
|
|
1493
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1520
1494
|
case "ThrottlingException":
|
|
1521
1495
|
case "com.amazonaws.inspector2#ThrottlingException":
|
|
1522
|
-
throw await
|
|
1496
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1523
1497
|
case "ValidationException":
|
|
1524
1498
|
case "com.amazonaws.inspector2#ValidationException":
|
|
1525
|
-
throw await
|
|
1499
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1526
1500
|
default:
|
|
1527
1501
|
const parsedBody = parsedOutput.body;
|
|
1528
1502
|
throwDefaultError({
|
|
@@ -1533,23 +1507,23 @@ const deserializeAws_restJson1ListAccountPermissionsCommandError = async (output
|
|
|
1533
1507
|
});
|
|
1534
1508
|
}
|
|
1535
1509
|
};
|
|
1536
|
-
export const
|
|
1510
|
+
export const de_ListCoverageCommand = async (output, context) => {
|
|
1537
1511
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1538
|
-
return
|
|
1512
|
+
return de_ListCoverageCommandError(output, context);
|
|
1539
1513
|
}
|
|
1540
1514
|
const contents = map({
|
|
1541
1515
|
$metadata: deserializeMetadata(output),
|
|
1542
1516
|
});
|
|
1543
1517
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1544
1518
|
if (data.coveredResources != null) {
|
|
1545
|
-
contents.coveredResources =
|
|
1519
|
+
contents.coveredResources = de_CoveredResources(data.coveredResources, context);
|
|
1546
1520
|
}
|
|
1547
1521
|
if (data.nextToken != null) {
|
|
1548
1522
|
contents.nextToken = __expectString(data.nextToken);
|
|
1549
1523
|
}
|
|
1550
1524
|
return contents;
|
|
1551
1525
|
};
|
|
1552
|
-
const
|
|
1526
|
+
const de_ListCoverageCommandError = async (output, context) => {
|
|
1553
1527
|
const parsedOutput = {
|
|
1554
1528
|
...output,
|
|
1555
1529
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1558,13 +1532,13 @@ const deserializeAws_restJson1ListCoverageCommandError = async (output, context)
|
|
|
1558
1532
|
switch (errorCode) {
|
|
1559
1533
|
case "InternalServerException":
|
|
1560
1534
|
case "com.amazonaws.inspector2#InternalServerException":
|
|
1561
|
-
throw await
|
|
1535
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1562
1536
|
case "ThrottlingException":
|
|
1563
1537
|
case "com.amazonaws.inspector2#ThrottlingException":
|
|
1564
|
-
throw await
|
|
1538
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1565
1539
|
case "ValidationException":
|
|
1566
1540
|
case "com.amazonaws.inspector2#ValidationException":
|
|
1567
|
-
throw await
|
|
1541
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1568
1542
|
default:
|
|
1569
1543
|
const parsedBody = parsedOutput.body;
|
|
1570
1544
|
throwDefaultError({
|
|
@@ -1575,16 +1549,16 @@ const deserializeAws_restJson1ListCoverageCommandError = async (output, context)
|
|
|
1575
1549
|
});
|
|
1576
1550
|
}
|
|
1577
1551
|
};
|
|
1578
|
-
export const
|
|
1552
|
+
export const de_ListCoverageStatisticsCommand = async (output, context) => {
|
|
1579
1553
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1580
|
-
return
|
|
1554
|
+
return de_ListCoverageStatisticsCommandError(output, context);
|
|
1581
1555
|
}
|
|
1582
1556
|
const contents = map({
|
|
1583
1557
|
$metadata: deserializeMetadata(output),
|
|
1584
1558
|
});
|
|
1585
1559
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1586
1560
|
if (data.countsByGroup != null) {
|
|
1587
|
-
contents.countsByGroup =
|
|
1561
|
+
contents.countsByGroup = de_CountsList(data.countsByGroup, context);
|
|
1588
1562
|
}
|
|
1589
1563
|
if (data.nextToken != null) {
|
|
1590
1564
|
contents.nextToken = __expectString(data.nextToken);
|
|
@@ -1594,7 +1568,7 @@ export const deserializeAws_restJson1ListCoverageStatisticsCommand = async (outp
|
|
|
1594
1568
|
}
|
|
1595
1569
|
return contents;
|
|
1596
1570
|
};
|
|
1597
|
-
const
|
|
1571
|
+
const de_ListCoverageStatisticsCommandError = async (output, context) => {
|
|
1598
1572
|
const parsedOutput = {
|
|
1599
1573
|
...output,
|
|
1600
1574
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1603,13 +1577,13 @@ const deserializeAws_restJson1ListCoverageStatisticsCommandError = async (output
|
|
|
1603
1577
|
switch (errorCode) {
|
|
1604
1578
|
case "InternalServerException":
|
|
1605
1579
|
case "com.amazonaws.inspector2#InternalServerException":
|
|
1606
|
-
throw await
|
|
1580
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1607
1581
|
case "ThrottlingException":
|
|
1608
1582
|
case "com.amazonaws.inspector2#ThrottlingException":
|
|
1609
|
-
throw await
|
|
1583
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1610
1584
|
case "ValidationException":
|
|
1611
1585
|
case "com.amazonaws.inspector2#ValidationException":
|
|
1612
|
-
throw await
|
|
1586
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1613
1587
|
default:
|
|
1614
1588
|
const parsedBody = parsedOutput.body;
|
|
1615
1589
|
throwDefaultError({
|
|
@@ -1620,23 +1594,23 @@ const deserializeAws_restJson1ListCoverageStatisticsCommandError = async (output
|
|
|
1620
1594
|
});
|
|
1621
1595
|
}
|
|
1622
1596
|
};
|
|
1623
|
-
export const
|
|
1597
|
+
export const de_ListDelegatedAdminAccountsCommand = async (output, context) => {
|
|
1624
1598
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1625
|
-
return
|
|
1599
|
+
return de_ListDelegatedAdminAccountsCommandError(output, context);
|
|
1626
1600
|
}
|
|
1627
1601
|
const contents = map({
|
|
1628
1602
|
$metadata: deserializeMetadata(output),
|
|
1629
1603
|
});
|
|
1630
1604
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1631
1605
|
if (data.delegatedAdminAccounts != null) {
|
|
1632
|
-
contents.delegatedAdminAccounts =
|
|
1606
|
+
contents.delegatedAdminAccounts = de_DelegatedAdminAccountList(data.delegatedAdminAccounts, context);
|
|
1633
1607
|
}
|
|
1634
1608
|
if (data.nextToken != null) {
|
|
1635
1609
|
contents.nextToken = __expectString(data.nextToken);
|
|
1636
1610
|
}
|
|
1637
1611
|
return contents;
|
|
1638
1612
|
};
|
|
1639
|
-
const
|
|
1613
|
+
const de_ListDelegatedAdminAccountsCommandError = async (output, context) => {
|
|
1640
1614
|
const parsedOutput = {
|
|
1641
1615
|
...output,
|
|
1642
1616
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1645,16 +1619,16 @@ const deserializeAws_restJson1ListDelegatedAdminAccountsCommandError = async (ou
|
|
|
1645
1619
|
switch (errorCode) {
|
|
1646
1620
|
case "AccessDeniedException":
|
|
1647
1621
|
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
1648
|
-
throw await
|
|
1622
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1649
1623
|
case "InternalServerException":
|
|
1650
1624
|
case "com.amazonaws.inspector2#InternalServerException":
|
|
1651
|
-
throw await
|
|
1625
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1652
1626
|
case "ThrottlingException":
|
|
1653
1627
|
case "com.amazonaws.inspector2#ThrottlingException":
|
|
1654
|
-
throw await
|
|
1628
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1655
1629
|
case "ValidationException":
|
|
1656
1630
|
case "com.amazonaws.inspector2#ValidationException":
|
|
1657
|
-
throw await
|
|
1631
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1658
1632
|
default:
|
|
1659
1633
|
const parsedBody = parsedOutput.body;
|
|
1660
1634
|
throwDefaultError({
|
|
@@ -1665,23 +1639,23 @@ const deserializeAws_restJson1ListDelegatedAdminAccountsCommandError = async (ou
|
|
|
1665
1639
|
});
|
|
1666
1640
|
}
|
|
1667
1641
|
};
|
|
1668
|
-
export const
|
|
1642
|
+
export const de_ListFiltersCommand = async (output, context) => {
|
|
1669
1643
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1670
|
-
return
|
|
1644
|
+
return de_ListFiltersCommandError(output, context);
|
|
1671
1645
|
}
|
|
1672
1646
|
const contents = map({
|
|
1673
1647
|
$metadata: deserializeMetadata(output),
|
|
1674
1648
|
});
|
|
1675
1649
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1676
1650
|
if (data.filters != null) {
|
|
1677
|
-
contents.filters =
|
|
1651
|
+
contents.filters = de_FilterList(data.filters, context);
|
|
1678
1652
|
}
|
|
1679
1653
|
if (data.nextToken != null) {
|
|
1680
1654
|
contents.nextToken = __expectString(data.nextToken);
|
|
1681
1655
|
}
|
|
1682
1656
|
return contents;
|
|
1683
1657
|
};
|
|
1684
|
-
const
|
|
1658
|
+
const de_ListFiltersCommandError = async (output, context) => {
|
|
1685
1659
|
const parsedOutput = {
|
|
1686
1660
|
...output,
|
|
1687
1661
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1690,16 +1664,16 @@ const deserializeAws_restJson1ListFiltersCommandError = async (output, context)
|
|
|
1690
1664
|
switch (errorCode) {
|
|
1691
1665
|
case "AccessDeniedException":
|
|
1692
1666
|
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
1693
|
-
throw await
|
|
1667
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1694
1668
|
case "InternalServerException":
|
|
1695
1669
|
case "com.amazonaws.inspector2#InternalServerException":
|
|
1696
|
-
throw await
|
|
1670
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1697
1671
|
case "ThrottlingException":
|
|
1698
1672
|
case "com.amazonaws.inspector2#ThrottlingException":
|
|
1699
|
-
throw await
|
|
1673
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1700
1674
|
case "ValidationException":
|
|
1701
1675
|
case "com.amazonaws.inspector2#ValidationException":
|
|
1702
|
-
throw await
|
|
1676
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1703
1677
|
default:
|
|
1704
1678
|
const parsedBody = parsedOutput.body;
|
|
1705
1679
|
throwDefaultError({
|
|
@@ -1710,9 +1684,9 @@ const deserializeAws_restJson1ListFiltersCommandError = async (output, context)
|
|
|
1710
1684
|
});
|
|
1711
1685
|
}
|
|
1712
1686
|
};
|
|
1713
|
-
export const
|
|
1687
|
+
export const de_ListFindingAggregationsCommand = async (output, context) => {
|
|
1714
1688
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1715
|
-
return
|
|
1689
|
+
return de_ListFindingAggregationsCommandError(output, context);
|
|
1716
1690
|
}
|
|
1717
1691
|
const contents = map({
|
|
1718
1692
|
$metadata: deserializeMetadata(output),
|
|
@@ -1725,11 +1699,11 @@ export const deserializeAws_restJson1ListFindingAggregationsCommand = async (out
|
|
|
1725
1699
|
contents.nextToken = __expectString(data.nextToken);
|
|
1726
1700
|
}
|
|
1727
1701
|
if (data.responses != null) {
|
|
1728
|
-
contents.responses =
|
|
1702
|
+
contents.responses = de_AggregationResponseList(data.responses, context);
|
|
1729
1703
|
}
|
|
1730
1704
|
return contents;
|
|
1731
1705
|
};
|
|
1732
|
-
const
|
|
1706
|
+
const de_ListFindingAggregationsCommandError = async (output, context) => {
|
|
1733
1707
|
const parsedOutput = {
|
|
1734
1708
|
...output,
|
|
1735
1709
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1738,13 +1712,13 @@ const deserializeAws_restJson1ListFindingAggregationsCommandError = async (outpu
|
|
|
1738
1712
|
switch (errorCode) {
|
|
1739
1713
|
case "InternalServerException":
|
|
1740
1714
|
case "com.amazonaws.inspector2#InternalServerException":
|
|
1741
|
-
throw await
|
|
1715
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1742
1716
|
case "ThrottlingException":
|
|
1743
1717
|
case "com.amazonaws.inspector2#ThrottlingException":
|
|
1744
|
-
throw await
|
|
1718
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1745
1719
|
case "ValidationException":
|
|
1746
1720
|
case "com.amazonaws.inspector2#ValidationException":
|
|
1747
|
-
throw await
|
|
1721
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1748
1722
|
default:
|
|
1749
1723
|
const parsedBody = parsedOutput.body;
|
|
1750
1724
|
throwDefaultError({
|
|
@@ -1755,23 +1729,23 @@ const deserializeAws_restJson1ListFindingAggregationsCommandError = async (outpu
|
|
|
1755
1729
|
});
|
|
1756
1730
|
}
|
|
1757
1731
|
};
|
|
1758
|
-
export const
|
|
1732
|
+
export const de_ListFindingsCommand = async (output, context) => {
|
|
1759
1733
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1760
|
-
return
|
|
1734
|
+
return de_ListFindingsCommandError(output, context);
|
|
1761
1735
|
}
|
|
1762
1736
|
const contents = map({
|
|
1763
1737
|
$metadata: deserializeMetadata(output),
|
|
1764
1738
|
});
|
|
1765
1739
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1766
1740
|
if (data.findings != null) {
|
|
1767
|
-
contents.findings =
|
|
1741
|
+
contents.findings = de_FindingList(data.findings, context);
|
|
1768
1742
|
}
|
|
1769
1743
|
if (data.nextToken != null) {
|
|
1770
1744
|
contents.nextToken = __expectString(data.nextToken);
|
|
1771
1745
|
}
|
|
1772
1746
|
return contents;
|
|
1773
1747
|
};
|
|
1774
|
-
const
|
|
1748
|
+
const de_ListFindingsCommandError = async (output, context) => {
|
|
1775
1749
|
const parsedOutput = {
|
|
1776
1750
|
...output,
|
|
1777
1751
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1780,13 +1754,13 @@ const deserializeAws_restJson1ListFindingsCommandError = async (output, context)
|
|
|
1780
1754
|
switch (errorCode) {
|
|
1781
1755
|
case "InternalServerException":
|
|
1782
1756
|
case "com.amazonaws.inspector2#InternalServerException":
|
|
1783
|
-
throw await
|
|
1757
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1784
1758
|
case "ThrottlingException":
|
|
1785
1759
|
case "com.amazonaws.inspector2#ThrottlingException":
|
|
1786
|
-
throw await
|
|
1760
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1787
1761
|
case "ValidationException":
|
|
1788
1762
|
case "com.amazonaws.inspector2#ValidationException":
|
|
1789
|
-
throw await
|
|
1763
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1790
1764
|
default:
|
|
1791
1765
|
const parsedBody = parsedOutput.body;
|
|
1792
1766
|
throwDefaultError({
|
|
@@ -1797,23 +1771,23 @@ const deserializeAws_restJson1ListFindingsCommandError = async (output, context)
|
|
|
1797
1771
|
});
|
|
1798
1772
|
}
|
|
1799
1773
|
};
|
|
1800
|
-
export const
|
|
1774
|
+
export const de_ListMembersCommand = async (output, context) => {
|
|
1801
1775
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1802
|
-
return
|
|
1776
|
+
return de_ListMembersCommandError(output, context);
|
|
1803
1777
|
}
|
|
1804
1778
|
const contents = map({
|
|
1805
1779
|
$metadata: deserializeMetadata(output),
|
|
1806
1780
|
});
|
|
1807
1781
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1808
1782
|
if (data.members != null) {
|
|
1809
|
-
contents.members =
|
|
1783
|
+
contents.members = de_MemberList(data.members, context);
|
|
1810
1784
|
}
|
|
1811
1785
|
if (data.nextToken != null) {
|
|
1812
1786
|
contents.nextToken = __expectString(data.nextToken);
|
|
1813
1787
|
}
|
|
1814
1788
|
return contents;
|
|
1815
1789
|
};
|
|
1816
|
-
const
|
|
1790
|
+
const de_ListMembersCommandError = async (output, context) => {
|
|
1817
1791
|
const parsedOutput = {
|
|
1818
1792
|
...output,
|
|
1819
1793
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1822,16 +1796,16 @@ const deserializeAws_restJson1ListMembersCommandError = async (output, context)
|
|
|
1822
1796
|
switch (errorCode) {
|
|
1823
1797
|
case "AccessDeniedException":
|
|
1824
1798
|
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
1825
|
-
throw await
|
|
1799
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1826
1800
|
case "InternalServerException":
|
|
1827
1801
|
case "com.amazonaws.inspector2#InternalServerException":
|
|
1828
|
-
throw await
|
|
1802
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1829
1803
|
case "ThrottlingException":
|
|
1830
1804
|
case "com.amazonaws.inspector2#ThrottlingException":
|
|
1831
|
-
throw await
|
|
1805
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1832
1806
|
case "ValidationException":
|
|
1833
1807
|
case "com.amazonaws.inspector2#ValidationException":
|
|
1834
|
-
throw await
|
|
1808
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1835
1809
|
default:
|
|
1836
1810
|
const parsedBody = parsedOutput.body;
|
|
1837
1811
|
throwDefaultError({
|
|
@@ -1842,20 +1816,20 @@ const deserializeAws_restJson1ListMembersCommandError = async (output, context)
|
|
|
1842
1816
|
});
|
|
1843
1817
|
}
|
|
1844
1818
|
};
|
|
1845
|
-
export const
|
|
1819
|
+
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
1846
1820
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1847
|
-
return
|
|
1821
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
1848
1822
|
}
|
|
1849
1823
|
const contents = map({
|
|
1850
1824
|
$metadata: deserializeMetadata(output),
|
|
1851
1825
|
});
|
|
1852
1826
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1853
1827
|
if (data.tags != null) {
|
|
1854
|
-
contents.tags =
|
|
1828
|
+
contents.tags = de_TagMap(data.tags, context);
|
|
1855
1829
|
}
|
|
1856
1830
|
return contents;
|
|
1857
1831
|
};
|
|
1858
|
-
const
|
|
1832
|
+
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
1859
1833
|
const parsedOutput = {
|
|
1860
1834
|
...output,
|
|
1861
1835
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1864,16 +1838,16 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
1864
1838
|
switch (errorCode) {
|
|
1865
1839
|
case "InternalServerException":
|
|
1866
1840
|
case "com.amazonaws.inspector2#InternalServerException":
|
|
1867
|
-
throw await
|
|
1841
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1868
1842
|
case "ResourceNotFoundException":
|
|
1869
1843
|
case "com.amazonaws.inspector2#ResourceNotFoundException":
|
|
1870
|
-
throw await
|
|
1844
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1871
1845
|
case "ThrottlingException":
|
|
1872
1846
|
case "com.amazonaws.inspector2#ThrottlingException":
|
|
1873
|
-
throw await
|
|
1847
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1874
1848
|
case "ValidationException":
|
|
1875
1849
|
case "com.amazonaws.inspector2#ValidationException":
|
|
1876
|
-
throw await
|
|
1850
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1877
1851
|
default:
|
|
1878
1852
|
const parsedBody = parsedOutput.body;
|
|
1879
1853
|
throwDefaultError({
|
|
@@ -1884,9 +1858,9 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
1884
1858
|
});
|
|
1885
1859
|
}
|
|
1886
1860
|
};
|
|
1887
|
-
export const
|
|
1861
|
+
export const de_ListUsageTotalsCommand = async (output, context) => {
|
|
1888
1862
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1889
|
-
return
|
|
1863
|
+
return de_ListUsageTotalsCommandError(output, context);
|
|
1890
1864
|
}
|
|
1891
1865
|
const contents = map({
|
|
1892
1866
|
$metadata: deserializeMetadata(output),
|
|
@@ -1896,11 +1870,11 @@ export const deserializeAws_restJson1ListUsageTotalsCommand = async (output, con
|
|
|
1896
1870
|
contents.nextToken = __expectString(data.nextToken);
|
|
1897
1871
|
}
|
|
1898
1872
|
if (data.totals != null) {
|
|
1899
|
-
contents.totals =
|
|
1873
|
+
contents.totals = de_UsageTotalList(data.totals, context);
|
|
1900
1874
|
}
|
|
1901
1875
|
return contents;
|
|
1902
1876
|
};
|
|
1903
|
-
const
|
|
1877
|
+
const de_ListUsageTotalsCommandError = async (output, context) => {
|
|
1904
1878
|
const parsedOutput = {
|
|
1905
1879
|
...output,
|
|
1906
1880
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1909,16 +1883,16 @@ const deserializeAws_restJson1ListUsageTotalsCommandError = async (output, conte
|
|
|
1909
1883
|
switch (errorCode) {
|
|
1910
1884
|
case "AccessDeniedException":
|
|
1911
1885
|
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
1912
|
-
throw await
|
|
1886
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1913
1887
|
case "InternalServerException":
|
|
1914
1888
|
case "com.amazonaws.inspector2#InternalServerException":
|
|
1915
|
-
throw await
|
|
1889
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1916
1890
|
case "ThrottlingException":
|
|
1917
1891
|
case "com.amazonaws.inspector2#ThrottlingException":
|
|
1918
|
-
throw await
|
|
1892
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1919
1893
|
case "ValidationException":
|
|
1920
1894
|
case "com.amazonaws.inspector2#ValidationException":
|
|
1921
|
-
throw await
|
|
1895
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1922
1896
|
default:
|
|
1923
1897
|
const parsedBody = parsedOutput.body;
|
|
1924
1898
|
throwDefaultError({
|
|
@@ -1929,9 +1903,9 @@ const deserializeAws_restJson1ListUsageTotalsCommandError = async (output, conte
|
|
|
1929
1903
|
});
|
|
1930
1904
|
}
|
|
1931
1905
|
};
|
|
1932
|
-
export const
|
|
1906
|
+
export const de_TagResourceCommand = async (output, context) => {
|
|
1933
1907
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1934
|
-
return
|
|
1908
|
+
return de_TagResourceCommandError(output, context);
|
|
1935
1909
|
}
|
|
1936
1910
|
const contents = map({
|
|
1937
1911
|
$metadata: deserializeMetadata(output),
|
|
@@ -1939,7 +1913,7 @@ export const deserializeAws_restJson1TagResourceCommand = async (output, context
|
|
|
1939
1913
|
await collectBody(output.body, context);
|
|
1940
1914
|
return contents;
|
|
1941
1915
|
};
|
|
1942
|
-
const
|
|
1916
|
+
const de_TagResourceCommandError = async (output, context) => {
|
|
1943
1917
|
const parsedOutput = {
|
|
1944
1918
|
...output,
|
|
1945
1919
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1948,19 +1922,19 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
1948
1922
|
switch (errorCode) {
|
|
1949
1923
|
case "BadRequestException":
|
|
1950
1924
|
case "com.amazonaws.inspector2#BadRequestException":
|
|
1951
|
-
throw await
|
|
1925
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1952
1926
|
case "InternalServerException":
|
|
1953
1927
|
case "com.amazonaws.inspector2#InternalServerException":
|
|
1954
|
-
throw await
|
|
1928
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1955
1929
|
case "ResourceNotFoundException":
|
|
1956
1930
|
case "com.amazonaws.inspector2#ResourceNotFoundException":
|
|
1957
|
-
throw await
|
|
1931
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1958
1932
|
case "ThrottlingException":
|
|
1959
1933
|
case "com.amazonaws.inspector2#ThrottlingException":
|
|
1960
|
-
throw await
|
|
1934
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1961
1935
|
case "ValidationException":
|
|
1962
1936
|
case "com.amazonaws.inspector2#ValidationException":
|
|
1963
|
-
throw await
|
|
1937
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1964
1938
|
default:
|
|
1965
1939
|
const parsedBody = parsedOutput.body;
|
|
1966
1940
|
throwDefaultError({
|
|
@@ -1971,9 +1945,9 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
1971
1945
|
});
|
|
1972
1946
|
}
|
|
1973
1947
|
};
|
|
1974
|
-
export const
|
|
1948
|
+
export const de_UntagResourceCommand = async (output, context) => {
|
|
1975
1949
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1976
|
-
return
|
|
1950
|
+
return de_UntagResourceCommandError(output, context);
|
|
1977
1951
|
}
|
|
1978
1952
|
const contents = map({
|
|
1979
1953
|
$metadata: deserializeMetadata(output),
|
|
@@ -1981,7 +1955,7 @@ export const deserializeAws_restJson1UntagResourceCommand = async (output, conte
|
|
|
1981
1955
|
await collectBody(output.body, context);
|
|
1982
1956
|
return contents;
|
|
1983
1957
|
};
|
|
1984
|
-
const
|
|
1958
|
+
const de_UntagResourceCommandError = async (output, context) => {
|
|
1985
1959
|
const parsedOutput = {
|
|
1986
1960
|
...output,
|
|
1987
1961
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1990,16 +1964,16 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
1990
1964
|
switch (errorCode) {
|
|
1991
1965
|
case "InternalServerException":
|
|
1992
1966
|
case "com.amazonaws.inspector2#InternalServerException":
|
|
1993
|
-
throw await
|
|
1967
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1994
1968
|
case "ResourceNotFoundException":
|
|
1995
1969
|
case "com.amazonaws.inspector2#ResourceNotFoundException":
|
|
1996
|
-
throw await
|
|
1970
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1997
1971
|
case "ThrottlingException":
|
|
1998
1972
|
case "com.amazonaws.inspector2#ThrottlingException":
|
|
1999
|
-
throw await
|
|
1973
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2000
1974
|
case "ValidationException":
|
|
2001
1975
|
case "com.amazonaws.inspector2#ValidationException":
|
|
2002
|
-
throw await
|
|
1976
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2003
1977
|
default:
|
|
2004
1978
|
const parsedBody = parsedOutput.body;
|
|
2005
1979
|
throwDefaultError({
|
|
@@ -2010,9 +1984,9 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
2010
1984
|
});
|
|
2011
1985
|
}
|
|
2012
1986
|
};
|
|
2013
|
-
export const
|
|
1987
|
+
export const de_UpdateConfigurationCommand = async (output, context) => {
|
|
2014
1988
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2015
|
-
return
|
|
1989
|
+
return de_UpdateConfigurationCommandError(output, context);
|
|
2016
1990
|
}
|
|
2017
1991
|
const contents = map({
|
|
2018
1992
|
$metadata: deserializeMetadata(output),
|
|
@@ -2020,7 +1994,7 @@ export const deserializeAws_restJson1UpdateConfigurationCommand = async (output,
|
|
|
2020
1994
|
await collectBody(output.body, context);
|
|
2021
1995
|
return contents;
|
|
2022
1996
|
};
|
|
2023
|
-
const
|
|
1997
|
+
const de_UpdateConfigurationCommandError = async (output, context) => {
|
|
2024
1998
|
const parsedOutput = {
|
|
2025
1999
|
...output,
|
|
2026
2000
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2029,16 +2003,16 @@ const deserializeAws_restJson1UpdateConfigurationCommandError = async (output, c
|
|
|
2029
2003
|
switch (errorCode) {
|
|
2030
2004
|
case "AccessDeniedException":
|
|
2031
2005
|
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
2032
|
-
throw await
|
|
2006
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2033
2007
|
case "InternalServerException":
|
|
2034
2008
|
case "com.amazonaws.inspector2#InternalServerException":
|
|
2035
|
-
throw await
|
|
2009
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2036
2010
|
case "ThrottlingException":
|
|
2037
2011
|
case "com.amazonaws.inspector2#ThrottlingException":
|
|
2038
|
-
throw await
|
|
2012
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2039
2013
|
case "ValidationException":
|
|
2040
2014
|
case "com.amazonaws.inspector2#ValidationException":
|
|
2041
|
-
throw await
|
|
2015
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2042
2016
|
default:
|
|
2043
2017
|
const parsedBody = parsedOutput.body;
|
|
2044
2018
|
throwDefaultError({
|
|
@@ -2049,9 +2023,9 @@ const deserializeAws_restJson1UpdateConfigurationCommandError = async (output, c
|
|
|
2049
2023
|
});
|
|
2050
2024
|
}
|
|
2051
2025
|
};
|
|
2052
|
-
export const
|
|
2026
|
+
export const de_UpdateFilterCommand = async (output, context) => {
|
|
2053
2027
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2054
|
-
return
|
|
2028
|
+
return de_UpdateFilterCommandError(output, context);
|
|
2055
2029
|
}
|
|
2056
2030
|
const contents = map({
|
|
2057
2031
|
$metadata: deserializeMetadata(output),
|
|
@@ -2062,7 +2036,7 @@ export const deserializeAws_restJson1UpdateFilterCommand = async (output, contex
|
|
|
2062
2036
|
}
|
|
2063
2037
|
return contents;
|
|
2064
2038
|
};
|
|
2065
|
-
const
|
|
2039
|
+
const de_UpdateFilterCommandError = async (output, context) => {
|
|
2066
2040
|
const parsedOutput = {
|
|
2067
2041
|
...output,
|
|
2068
2042
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2071,19 +2045,19 @@ const deserializeAws_restJson1UpdateFilterCommandError = async (output, context)
|
|
|
2071
2045
|
switch (errorCode) {
|
|
2072
2046
|
case "AccessDeniedException":
|
|
2073
2047
|
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
2074
|
-
throw await
|
|
2048
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2075
2049
|
case "InternalServerException":
|
|
2076
2050
|
case "com.amazonaws.inspector2#InternalServerException":
|
|
2077
|
-
throw await
|
|
2051
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2078
2052
|
case "ResourceNotFoundException":
|
|
2079
2053
|
case "com.amazonaws.inspector2#ResourceNotFoundException":
|
|
2080
|
-
throw await
|
|
2054
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2081
2055
|
case "ThrottlingException":
|
|
2082
2056
|
case "com.amazonaws.inspector2#ThrottlingException":
|
|
2083
|
-
throw await
|
|
2057
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2084
2058
|
case "ValidationException":
|
|
2085
2059
|
case "com.amazonaws.inspector2#ValidationException":
|
|
2086
|
-
throw await
|
|
2060
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2087
2061
|
default:
|
|
2088
2062
|
const parsedBody = parsedOutput.body;
|
|
2089
2063
|
throwDefaultError({
|
|
@@ -2094,20 +2068,20 @@ const deserializeAws_restJson1UpdateFilterCommandError = async (output, context)
|
|
|
2094
2068
|
});
|
|
2095
2069
|
}
|
|
2096
2070
|
};
|
|
2097
|
-
export const
|
|
2071
|
+
export const de_UpdateOrganizationConfigurationCommand = async (output, context) => {
|
|
2098
2072
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2099
|
-
return
|
|
2073
|
+
return de_UpdateOrganizationConfigurationCommandError(output, context);
|
|
2100
2074
|
}
|
|
2101
2075
|
const contents = map({
|
|
2102
2076
|
$metadata: deserializeMetadata(output),
|
|
2103
2077
|
});
|
|
2104
2078
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2105
2079
|
if (data.autoEnable != null) {
|
|
2106
|
-
contents.autoEnable =
|
|
2080
|
+
contents.autoEnable = de_AutoEnable(data.autoEnable, context);
|
|
2107
2081
|
}
|
|
2108
2082
|
return contents;
|
|
2109
2083
|
};
|
|
2110
|
-
const
|
|
2084
|
+
const de_UpdateOrganizationConfigurationCommandError = async (output, context) => {
|
|
2111
2085
|
const parsedOutput = {
|
|
2112
2086
|
...output,
|
|
2113
2087
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2116,16 +2090,16 @@ const deserializeAws_restJson1UpdateOrganizationConfigurationCommandError = asyn
|
|
|
2116
2090
|
switch (errorCode) {
|
|
2117
2091
|
case "AccessDeniedException":
|
|
2118
2092
|
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
2119
|
-
throw await
|
|
2093
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2120
2094
|
case "InternalServerException":
|
|
2121
2095
|
case "com.amazonaws.inspector2#InternalServerException":
|
|
2122
|
-
throw await
|
|
2096
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2123
2097
|
case "ThrottlingException":
|
|
2124
2098
|
case "com.amazonaws.inspector2#ThrottlingException":
|
|
2125
|
-
throw await
|
|
2099
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2126
2100
|
case "ValidationException":
|
|
2127
2101
|
case "com.amazonaws.inspector2#ValidationException":
|
|
2128
|
-
throw await
|
|
2102
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2129
2103
|
default:
|
|
2130
2104
|
const parsedBody = parsedOutput.body;
|
|
2131
2105
|
throwDefaultError({
|
|
@@ -2137,7 +2111,7 @@ const deserializeAws_restJson1UpdateOrganizationConfigurationCommandError = asyn
|
|
|
2137
2111
|
}
|
|
2138
2112
|
};
|
|
2139
2113
|
const map = __map;
|
|
2140
|
-
const
|
|
2114
|
+
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
2141
2115
|
const contents = map({});
|
|
2142
2116
|
const data = parsedOutput.body;
|
|
2143
2117
|
if (data.message != null) {
|
|
@@ -2149,7 +2123,7 @@ const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutpu
|
|
|
2149
2123
|
});
|
|
2150
2124
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2151
2125
|
};
|
|
2152
|
-
const
|
|
2126
|
+
const de_BadRequestExceptionRes = async (parsedOutput, context) => {
|
|
2153
2127
|
const contents = map({});
|
|
2154
2128
|
const data = parsedOutput.body;
|
|
2155
2129
|
if (data.message != null) {
|
|
@@ -2161,7 +2135,7 @@ const deserializeAws_restJson1BadRequestExceptionResponse = async (parsedOutput,
|
|
|
2161
2135
|
});
|
|
2162
2136
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2163
2137
|
};
|
|
2164
|
-
const
|
|
2138
|
+
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
2165
2139
|
const contents = map({});
|
|
2166
2140
|
const data = parsedOutput.body;
|
|
2167
2141
|
if (data.message != null) {
|
|
@@ -2179,7 +2153,7 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
|
|
|
2179
2153
|
});
|
|
2180
2154
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2181
2155
|
};
|
|
2182
|
-
const
|
|
2156
|
+
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
2183
2157
|
const contents = map({
|
|
2184
2158
|
retryAfterSeconds: [
|
|
2185
2159
|
() => void 0 !== parsedOutput.headers["retry-after"],
|
|
@@ -2196,7 +2170,7 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOut
|
|
|
2196
2170
|
});
|
|
2197
2171
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2198
2172
|
};
|
|
2199
|
-
const
|
|
2173
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2200
2174
|
const contents = map({});
|
|
2201
2175
|
const data = parsedOutput.body;
|
|
2202
2176
|
if (data.message != null) {
|
|
@@ -2208,7 +2182,7 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
|
|
|
2208
2182
|
});
|
|
2209
2183
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2210
2184
|
};
|
|
2211
|
-
const
|
|
2185
|
+
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
2212
2186
|
const contents = map({});
|
|
2213
2187
|
const data = parsedOutput.body;
|
|
2214
2188
|
if (data.message != null) {
|
|
@@ -2223,7 +2197,7 @@ const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (par
|
|
|
2223
2197
|
});
|
|
2224
2198
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2225
2199
|
};
|
|
2226
|
-
const
|
|
2200
|
+
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
2227
2201
|
const contents = map({
|
|
2228
2202
|
retryAfterSeconds: [
|
|
2229
2203
|
() => void 0 !== parsedOutput.headers["retry-after"],
|
|
@@ -2240,11 +2214,11 @@ const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput,
|
|
|
2240
2214
|
});
|
|
2241
2215
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2242
2216
|
};
|
|
2243
|
-
const
|
|
2217
|
+
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
2244
2218
|
const contents = map({});
|
|
2245
2219
|
const data = parsedOutput.body;
|
|
2246
2220
|
if (data.fields != null) {
|
|
2247
|
-
contents.fields =
|
|
2221
|
+
contents.fields = de_ValidationExceptionFields(data.fields, context);
|
|
2248
2222
|
}
|
|
2249
2223
|
if (data.message != null) {
|
|
2250
2224
|
contents.message = __expectString(data.message);
|
|
@@ -2258,7 +2232,7 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
|
|
|
2258
2232
|
});
|
|
2259
2233
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2260
2234
|
};
|
|
2261
|
-
const
|
|
2235
|
+
const se_AccountAggregation = (input, context) => {
|
|
2262
2236
|
return {
|
|
2263
2237
|
...(input.findingType != null && { findingType: input.findingType }),
|
|
2264
2238
|
...(input.resourceType != null && { resourceType: input.resourceType }),
|
|
@@ -2266,310 +2240,232 @@ const serializeAws_restJson1AccountAggregation = (input, context) => {
|
|
|
2266
2240
|
...(input.sortOrder != null && { sortOrder: input.sortOrder }),
|
|
2267
2241
|
};
|
|
2268
2242
|
};
|
|
2269
|
-
const
|
|
2243
|
+
const se_AccountIdSet = (input, context) => {
|
|
2270
2244
|
return input
|
|
2271
2245
|
.filter((e) => e != null)
|
|
2272
2246
|
.map((entry) => {
|
|
2273
2247
|
return entry;
|
|
2274
2248
|
});
|
|
2275
2249
|
};
|
|
2276
|
-
const
|
|
2250
|
+
const se_AggregationRequest = (input, context) => {
|
|
2277
2251
|
return AggregationRequest.visit(input, {
|
|
2278
|
-
accountAggregation: (value) => ({ accountAggregation:
|
|
2279
|
-
amiAggregation: (value) => ({ amiAggregation:
|
|
2252
|
+
accountAggregation: (value) => ({ accountAggregation: se_AccountAggregation(value, context) }),
|
|
2253
|
+
amiAggregation: (value) => ({ amiAggregation: se_AmiAggregation(value, context) }),
|
|
2280
2254
|
awsEcrContainerAggregation: (value) => ({
|
|
2281
|
-
awsEcrContainerAggregation:
|
|
2282
|
-
}),
|
|
2283
|
-
ec2InstanceAggregation: (value) => ({
|
|
2284
|
-
|
|
2285
|
-
}),
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
}),
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
}),
|
|
2292
|
-
lambdaFunctionAggregation: (value) => ({
|
|
2293
|
-
lambdaFunctionAggregation: serializeAws_restJson1LambdaFunctionAggregation(value, context),
|
|
2294
|
-
}),
|
|
2295
|
-
lambdaLayerAggregation: (value) => ({
|
|
2296
|
-
lambdaLayerAggregation: serializeAws_restJson1LambdaLayerAggregation(value, context),
|
|
2297
|
-
}),
|
|
2298
|
-
packageAggregation: (value) => ({ packageAggregation: serializeAws_restJson1PackageAggregation(value, context) }),
|
|
2299
|
-
repositoryAggregation: (value) => ({
|
|
2300
|
-
repositoryAggregation: serializeAws_restJson1RepositoryAggregation(value, context),
|
|
2301
|
-
}),
|
|
2302
|
-
titleAggregation: (value) => ({ titleAggregation: serializeAws_restJson1TitleAggregation(value, context) }),
|
|
2255
|
+
awsEcrContainerAggregation: se_AwsEcrContainerAggregation(value, context),
|
|
2256
|
+
}),
|
|
2257
|
+
ec2InstanceAggregation: (value) => ({ ec2InstanceAggregation: se_Ec2InstanceAggregation(value, context) }),
|
|
2258
|
+
findingTypeAggregation: (value) => ({ findingTypeAggregation: se_FindingTypeAggregation(value, context) }),
|
|
2259
|
+
imageLayerAggregation: (value) => ({ imageLayerAggregation: se_ImageLayerAggregation(value, context) }),
|
|
2260
|
+
lambdaFunctionAggregation: (value) => ({ lambdaFunctionAggregation: se_LambdaFunctionAggregation(value, context) }),
|
|
2261
|
+
lambdaLayerAggregation: (value) => ({ lambdaLayerAggregation: se_LambdaLayerAggregation(value, context) }),
|
|
2262
|
+
packageAggregation: (value) => ({ packageAggregation: se_PackageAggregation(value, context) }),
|
|
2263
|
+
repositoryAggregation: (value) => ({ repositoryAggregation: se_RepositoryAggregation(value, context) }),
|
|
2264
|
+
titleAggregation: (value) => ({ titleAggregation: se_TitleAggregation(value, context) }),
|
|
2303
2265
|
_: (name, value) => ({ name: value }),
|
|
2304
2266
|
});
|
|
2305
2267
|
};
|
|
2306
|
-
const
|
|
2268
|
+
const se_AmiAggregation = (input, context) => {
|
|
2307
2269
|
return {
|
|
2308
|
-
...(input.amis != null && { amis:
|
|
2270
|
+
...(input.amis != null && { amis: se_StringFilterList(input.amis, context) }),
|
|
2309
2271
|
...(input.sortBy != null && { sortBy: input.sortBy }),
|
|
2310
2272
|
...(input.sortOrder != null && { sortOrder: input.sortOrder }),
|
|
2311
2273
|
};
|
|
2312
2274
|
};
|
|
2313
|
-
const
|
|
2275
|
+
const se_AutoEnable = (input, context) => {
|
|
2314
2276
|
return {
|
|
2315
2277
|
...(input.ec2 != null && { ec2: input.ec2 }),
|
|
2316
2278
|
...(input.ecr != null && { ecr: input.ecr }),
|
|
2317
2279
|
...(input.lambda != null && { lambda: input.lambda }),
|
|
2318
2280
|
};
|
|
2319
2281
|
};
|
|
2320
|
-
const
|
|
2282
|
+
const se_AwsEcrContainerAggregation = (input, context) => {
|
|
2321
2283
|
return {
|
|
2322
|
-
...(input.architectures != null && {
|
|
2323
|
-
|
|
2324
|
-
}),
|
|
2325
|
-
...(input.
|
|
2326
|
-
...(input.
|
|
2327
|
-
...(input.repositories != null && {
|
|
2328
|
-
repositories: serializeAws_restJson1StringFilterList(input.repositories, context),
|
|
2329
|
-
}),
|
|
2330
|
-
...(input.resourceIds != null && {
|
|
2331
|
-
resourceIds: serializeAws_restJson1StringFilterList(input.resourceIds, context),
|
|
2332
|
-
}),
|
|
2284
|
+
...(input.architectures != null && { architectures: se_StringFilterList(input.architectures, context) }),
|
|
2285
|
+
...(input.imageShas != null && { imageShas: se_StringFilterList(input.imageShas, context) }),
|
|
2286
|
+
...(input.imageTags != null && { imageTags: se_StringFilterList(input.imageTags, context) }),
|
|
2287
|
+
...(input.repositories != null && { repositories: se_StringFilterList(input.repositories, context) }),
|
|
2288
|
+
...(input.resourceIds != null && { resourceIds: se_StringFilterList(input.resourceIds, context) }),
|
|
2333
2289
|
...(input.sortBy != null && { sortBy: input.sortBy }),
|
|
2334
2290
|
...(input.sortOrder != null && { sortOrder: input.sortOrder }),
|
|
2335
2291
|
};
|
|
2336
2292
|
};
|
|
2337
|
-
const
|
|
2293
|
+
const se_CoverageFilterCriteria = (input, context) => {
|
|
2338
2294
|
return {
|
|
2339
|
-
...(input.accountId != null && {
|
|
2340
|
-
|
|
2341
|
-
}),
|
|
2342
|
-
...(input.ec2InstanceTags != null && {
|
|
2343
|
-
ec2InstanceTags: serializeAws_restJson1CoverageMapFilterList(input.ec2InstanceTags, context),
|
|
2344
|
-
}),
|
|
2345
|
-
...(input.ecrImageTags != null && {
|
|
2346
|
-
ecrImageTags: serializeAws_restJson1CoverageStringFilterList(input.ecrImageTags, context),
|
|
2347
|
-
}),
|
|
2295
|
+
...(input.accountId != null && { accountId: se_CoverageStringFilterList(input.accountId, context) }),
|
|
2296
|
+
...(input.ec2InstanceTags != null && { ec2InstanceTags: se_CoverageMapFilterList(input.ec2InstanceTags, context) }),
|
|
2297
|
+
...(input.ecrImageTags != null && { ecrImageTags: se_CoverageStringFilterList(input.ecrImageTags, context) }),
|
|
2348
2298
|
...(input.ecrRepositoryName != null && {
|
|
2349
|
-
ecrRepositoryName:
|
|
2299
|
+
ecrRepositoryName: se_CoverageStringFilterList(input.ecrRepositoryName, context),
|
|
2350
2300
|
}),
|
|
2351
2301
|
...(input.lambdaFunctionName != null && {
|
|
2352
|
-
lambdaFunctionName:
|
|
2302
|
+
lambdaFunctionName: se_CoverageStringFilterList(input.lambdaFunctionName, context),
|
|
2353
2303
|
}),
|
|
2354
2304
|
...(input.lambdaFunctionRuntime != null && {
|
|
2355
|
-
lambdaFunctionRuntime:
|
|
2305
|
+
lambdaFunctionRuntime: se_CoverageStringFilterList(input.lambdaFunctionRuntime, context),
|
|
2356
2306
|
}),
|
|
2357
2307
|
...(input.lambdaFunctionTags != null && {
|
|
2358
|
-
lambdaFunctionTags:
|
|
2359
|
-
}),
|
|
2360
|
-
...(input.resourceId != null && {
|
|
2361
|
-
resourceId: serializeAws_restJson1CoverageStringFilterList(input.resourceId, context),
|
|
2362
|
-
}),
|
|
2363
|
-
...(input.resourceType != null && {
|
|
2364
|
-
resourceType: serializeAws_restJson1CoverageStringFilterList(input.resourceType, context),
|
|
2365
|
-
}),
|
|
2366
|
-
...(input.scanStatusCode != null && {
|
|
2367
|
-
scanStatusCode: serializeAws_restJson1CoverageStringFilterList(input.scanStatusCode, context),
|
|
2308
|
+
lambdaFunctionTags: se_CoverageMapFilterList(input.lambdaFunctionTags, context),
|
|
2368
2309
|
}),
|
|
2310
|
+
...(input.resourceId != null && { resourceId: se_CoverageStringFilterList(input.resourceId, context) }),
|
|
2311
|
+
...(input.resourceType != null && { resourceType: se_CoverageStringFilterList(input.resourceType, context) }),
|
|
2312
|
+
...(input.scanStatusCode != null && { scanStatusCode: se_CoverageStringFilterList(input.scanStatusCode, context) }),
|
|
2369
2313
|
...(input.scanStatusReason != null && {
|
|
2370
|
-
scanStatusReason:
|
|
2371
|
-
}),
|
|
2372
|
-
...(input.scanType != null && {
|
|
2373
|
-
scanType: serializeAws_restJson1CoverageStringFilterList(input.scanType, context),
|
|
2314
|
+
scanStatusReason: se_CoverageStringFilterList(input.scanStatusReason, context),
|
|
2374
2315
|
}),
|
|
2316
|
+
...(input.scanType != null && { scanType: se_CoverageStringFilterList(input.scanType, context) }),
|
|
2375
2317
|
};
|
|
2376
2318
|
};
|
|
2377
|
-
const
|
|
2319
|
+
const se_CoverageMapFilter = (input, context) => {
|
|
2378
2320
|
return {
|
|
2379
2321
|
...(input.comparison != null && { comparison: input.comparison }),
|
|
2380
2322
|
...(input.key != null && { key: input.key }),
|
|
2381
2323
|
...(input.value != null && { value: input.value }),
|
|
2382
2324
|
};
|
|
2383
2325
|
};
|
|
2384
|
-
const
|
|
2326
|
+
const se_CoverageMapFilterList = (input, context) => {
|
|
2385
2327
|
return input
|
|
2386
2328
|
.filter((e) => e != null)
|
|
2387
2329
|
.map((entry) => {
|
|
2388
|
-
return
|
|
2330
|
+
return se_CoverageMapFilter(entry, context);
|
|
2389
2331
|
});
|
|
2390
2332
|
};
|
|
2391
|
-
const
|
|
2333
|
+
const se_CoverageStringFilter = (input, context) => {
|
|
2392
2334
|
return {
|
|
2393
2335
|
...(input.comparison != null && { comparison: input.comparison }),
|
|
2394
2336
|
...(input.value != null && { value: input.value }),
|
|
2395
2337
|
};
|
|
2396
2338
|
};
|
|
2397
|
-
const
|
|
2339
|
+
const se_CoverageStringFilterList = (input, context) => {
|
|
2398
2340
|
return input
|
|
2399
2341
|
.filter((e) => e != null)
|
|
2400
2342
|
.map((entry) => {
|
|
2401
|
-
return
|
|
2343
|
+
return se_CoverageStringFilter(entry, context);
|
|
2402
2344
|
});
|
|
2403
2345
|
};
|
|
2404
|
-
const
|
|
2346
|
+
const se_DateFilter = (input, context) => {
|
|
2405
2347
|
return {
|
|
2406
2348
|
...(input.endInclusive != null && { endInclusive: Math.round(input.endInclusive.getTime() / 1000) }),
|
|
2407
2349
|
...(input.startInclusive != null && { startInclusive: Math.round(input.startInclusive.getTime() / 1000) }),
|
|
2408
2350
|
};
|
|
2409
2351
|
};
|
|
2410
|
-
const
|
|
2352
|
+
const se_DateFilterList = (input, context) => {
|
|
2411
2353
|
return input
|
|
2412
2354
|
.filter((e) => e != null)
|
|
2413
2355
|
.map((entry) => {
|
|
2414
|
-
return
|
|
2356
|
+
return se_DateFilter(entry, context);
|
|
2415
2357
|
});
|
|
2416
2358
|
};
|
|
2417
|
-
const
|
|
2359
|
+
const se_Destination = (input, context) => {
|
|
2418
2360
|
return {
|
|
2419
2361
|
...(input.bucketName != null && { bucketName: input.bucketName }),
|
|
2420
2362
|
...(input.keyPrefix != null && { keyPrefix: input.keyPrefix }),
|
|
2421
2363
|
...(input.kmsKeyArn != null && { kmsKeyArn: input.kmsKeyArn }),
|
|
2422
2364
|
};
|
|
2423
2365
|
};
|
|
2424
|
-
const
|
|
2366
|
+
const se_DisableResourceTypeList = (input, context) => {
|
|
2425
2367
|
return input
|
|
2426
2368
|
.filter((e) => e != null)
|
|
2427
2369
|
.map((entry) => {
|
|
2428
2370
|
return entry;
|
|
2429
2371
|
});
|
|
2430
2372
|
};
|
|
2431
|
-
const
|
|
2373
|
+
const se_Ec2InstanceAggregation = (input, context) => {
|
|
2432
2374
|
return {
|
|
2433
|
-
...(input.amis != null && { amis:
|
|
2434
|
-
...(input.instanceIds != null && {
|
|
2435
|
-
|
|
2436
|
-
}),
|
|
2437
|
-
...(input.instanceTags != null && {
|
|
2438
|
-
instanceTags: serializeAws_restJson1MapFilterList(input.instanceTags, context),
|
|
2439
|
-
}),
|
|
2440
|
-
...(input.operatingSystems != null && {
|
|
2441
|
-
operatingSystems: serializeAws_restJson1StringFilterList(input.operatingSystems, context),
|
|
2442
|
-
}),
|
|
2375
|
+
...(input.amis != null && { amis: se_StringFilterList(input.amis, context) }),
|
|
2376
|
+
...(input.instanceIds != null && { instanceIds: se_StringFilterList(input.instanceIds, context) }),
|
|
2377
|
+
...(input.instanceTags != null && { instanceTags: se_MapFilterList(input.instanceTags, context) }),
|
|
2378
|
+
...(input.operatingSystems != null && { operatingSystems: se_StringFilterList(input.operatingSystems, context) }),
|
|
2443
2379
|
...(input.sortBy != null && { sortBy: input.sortBy }),
|
|
2444
2380
|
...(input.sortOrder != null && { sortOrder: input.sortOrder }),
|
|
2445
2381
|
};
|
|
2446
2382
|
};
|
|
2447
|
-
const
|
|
2383
|
+
const se_EcrConfiguration = (input, context) => {
|
|
2448
2384
|
return {
|
|
2449
2385
|
...(input.rescanDuration != null && { rescanDuration: input.rescanDuration }),
|
|
2450
2386
|
};
|
|
2451
2387
|
};
|
|
2452
|
-
const
|
|
2388
|
+
const se_EnableResourceTypeList = (input, context) => {
|
|
2453
2389
|
return input
|
|
2454
2390
|
.filter((e) => e != null)
|
|
2455
2391
|
.map((entry) => {
|
|
2456
2392
|
return entry;
|
|
2457
2393
|
});
|
|
2458
2394
|
};
|
|
2459
|
-
const
|
|
2395
|
+
const se_FilterArnList = (input, context) => {
|
|
2460
2396
|
return input
|
|
2461
2397
|
.filter((e) => e != null)
|
|
2462
2398
|
.map((entry) => {
|
|
2463
2399
|
return entry;
|
|
2464
2400
|
});
|
|
2465
2401
|
};
|
|
2466
|
-
const
|
|
2402
|
+
const se_FilterCriteria = (input, context) => {
|
|
2467
2403
|
return {
|
|
2468
|
-
...(input.awsAccountId != null && {
|
|
2469
|
-
|
|
2470
|
-
}),
|
|
2471
|
-
...(input.componentId != null && {
|
|
2472
|
-
componentId: serializeAws_restJson1StringFilterList(input.componentId, context),
|
|
2473
|
-
}),
|
|
2474
|
-
...(input.componentType != null && {
|
|
2475
|
-
componentType: serializeAws_restJson1StringFilterList(input.componentType, context),
|
|
2476
|
-
}),
|
|
2404
|
+
...(input.awsAccountId != null && { awsAccountId: se_StringFilterList(input.awsAccountId, context) }),
|
|
2405
|
+
...(input.componentId != null && { componentId: se_StringFilterList(input.componentId, context) }),
|
|
2406
|
+
...(input.componentType != null && { componentType: se_StringFilterList(input.componentType, context) }),
|
|
2477
2407
|
...(input.ec2InstanceImageId != null && {
|
|
2478
|
-
ec2InstanceImageId:
|
|
2408
|
+
ec2InstanceImageId: se_StringFilterList(input.ec2InstanceImageId, context),
|
|
2479
2409
|
}),
|
|
2480
2410
|
...(input.ec2InstanceSubnetId != null && {
|
|
2481
|
-
ec2InstanceSubnetId:
|
|
2482
|
-
}),
|
|
2483
|
-
...(input.ec2InstanceVpcId != null && {
|
|
2484
|
-
ec2InstanceVpcId: serializeAws_restJson1StringFilterList(input.ec2InstanceVpcId, context),
|
|
2411
|
+
ec2InstanceSubnetId: se_StringFilterList(input.ec2InstanceSubnetId, context),
|
|
2485
2412
|
}),
|
|
2413
|
+
...(input.ec2InstanceVpcId != null && { ec2InstanceVpcId: se_StringFilterList(input.ec2InstanceVpcId, context) }),
|
|
2486
2414
|
...(input.ecrImageArchitecture != null && {
|
|
2487
|
-
ecrImageArchitecture:
|
|
2488
|
-
}),
|
|
2489
|
-
...(input.ecrImageHash != null && {
|
|
2490
|
-
ecrImageHash: serializeAws_restJson1StringFilterList(input.ecrImageHash, context),
|
|
2491
|
-
}),
|
|
2492
|
-
...(input.ecrImagePushedAt != null && {
|
|
2493
|
-
ecrImagePushedAt: serializeAws_restJson1DateFilterList(input.ecrImagePushedAt, context),
|
|
2494
|
-
}),
|
|
2495
|
-
...(input.ecrImageRegistry != null && {
|
|
2496
|
-
ecrImageRegistry: serializeAws_restJson1StringFilterList(input.ecrImageRegistry, context),
|
|
2415
|
+
ecrImageArchitecture: se_StringFilterList(input.ecrImageArchitecture, context),
|
|
2497
2416
|
}),
|
|
2417
|
+
...(input.ecrImageHash != null && { ecrImageHash: se_StringFilterList(input.ecrImageHash, context) }),
|
|
2418
|
+
...(input.ecrImagePushedAt != null && { ecrImagePushedAt: se_DateFilterList(input.ecrImagePushedAt, context) }),
|
|
2419
|
+
...(input.ecrImageRegistry != null && { ecrImageRegistry: se_StringFilterList(input.ecrImageRegistry, context) }),
|
|
2498
2420
|
...(input.ecrImageRepositoryName != null && {
|
|
2499
|
-
ecrImageRepositoryName:
|
|
2500
|
-
}),
|
|
2501
|
-
...(input.ecrImageTags != null && {
|
|
2502
|
-
|
|
2503
|
-
}),
|
|
2504
|
-
...(input.
|
|
2505
|
-
|
|
2506
|
-
}),
|
|
2507
|
-
...(input.
|
|
2508
|
-
...(input.
|
|
2509
|
-
findingStatus: serializeAws_restJson1StringFilterList(input.findingStatus, context),
|
|
2510
|
-
}),
|
|
2511
|
-
...(input.findingType != null && {
|
|
2512
|
-
findingType: serializeAws_restJson1StringFilterList(input.findingType, context),
|
|
2513
|
-
}),
|
|
2514
|
-
...(input.firstObservedAt != null && {
|
|
2515
|
-
firstObservedAt: serializeAws_restJson1DateFilterList(input.firstObservedAt, context),
|
|
2516
|
-
}),
|
|
2517
|
-
...(input.fixAvailable != null && {
|
|
2518
|
-
fixAvailable: serializeAws_restJson1StringFilterList(input.fixAvailable, context),
|
|
2519
|
-
}),
|
|
2520
|
-
...(input.inspectorScore != null && {
|
|
2521
|
-
inspectorScore: serializeAws_restJson1NumberFilterList(input.inspectorScore, context),
|
|
2522
|
-
}),
|
|
2421
|
+
ecrImageRepositoryName: se_StringFilterList(input.ecrImageRepositoryName, context),
|
|
2422
|
+
}),
|
|
2423
|
+
...(input.ecrImageTags != null && { ecrImageTags: se_StringFilterList(input.ecrImageTags, context) }),
|
|
2424
|
+
...(input.exploitAvailable != null && { exploitAvailable: se_StringFilterList(input.exploitAvailable, context) }),
|
|
2425
|
+
...(input.findingArn != null && { findingArn: se_StringFilterList(input.findingArn, context) }),
|
|
2426
|
+
...(input.findingStatus != null && { findingStatus: se_StringFilterList(input.findingStatus, context) }),
|
|
2427
|
+
...(input.findingType != null && { findingType: se_StringFilterList(input.findingType, context) }),
|
|
2428
|
+
...(input.firstObservedAt != null && { firstObservedAt: se_DateFilterList(input.firstObservedAt, context) }),
|
|
2429
|
+
...(input.fixAvailable != null && { fixAvailable: se_StringFilterList(input.fixAvailable, context) }),
|
|
2430
|
+
...(input.inspectorScore != null && { inspectorScore: se_NumberFilterList(input.inspectorScore, context) }),
|
|
2523
2431
|
...(input.lambdaFunctionExecutionRoleArn != null && {
|
|
2524
|
-
lambdaFunctionExecutionRoleArn:
|
|
2432
|
+
lambdaFunctionExecutionRoleArn: se_StringFilterList(input.lambdaFunctionExecutionRoleArn, context),
|
|
2525
2433
|
}),
|
|
2526
2434
|
...(input.lambdaFunctionLastModifiedAt != null && {
|
|
2527
|
-
lambdaFunctionLastModifiedAt:
|
|
2435
|
+
lambdaFunctionLastModifiedAt: se_DateFilterList(input.lambdaFunctionLastModifiedAt, context),
|
|
2528
2436
|
}),
|
|
2529
2437
|
...(input.lambdaFunctionLayers != null && {
|
|
2530
|
-
lambdaFunctionLayers:
|
|
2438
|
+
lambdaFunctionLayers: se_StringFilterList(input.lambdaFunctionLayers, context),
|
|
2531
2439
|
}),
|
|
2532
2440
|
...(input.lambdaFunctionName != null && {
|
|
2533
|
-
lambdaFunctionName:
|
|
2441
|
+
lambdaFunctionName: se_StringFilterList(input.lambdaFunctionName, context),
|
|
2534
2442
|
}),
|
|
2535
2443
|
...(input.lambdaFunctionRuntime != null && {
|
|
2536
|
-
lambdaFunctionRuntime:
|
|
2444
|
+
lambdaFunctionRuntime: se_StringFilterList(input.lambdaFunctionRuntime, context),
|
|
2537
2445
|
}),
|
|
2538
|
-
...(input.lastObservedAt != null && {
|
|
2539
|
-
|
|
2540
|
-
}),
|
|
2541
|
-
...(input.networkProtocol != null && {
|
|
2542
|
-
networkProtocol: serializeAws_restJson1StringFilterList(input.networkProtocol, context),
|
|
2543
|
-
}),
|
|
2544
|
-
...(input.portRange != null && { portRange: serializeAws_restJson1PortRangeFilterList(input.portRange, context) }),
|
|
2446
|
+
...(input.lastObservedAt != null && { lastObservedAt: se_DateFilterList(input.lastObservedAt, context) }),
|
|
2447
|
+
...(input.networkProtocol != null && { networkProtocol: se_StringFilterList(input.networkProtocol, context) }),
|
|
2448
|
+
...(input.portRange != null && { portRange: se_PortRangeFilterList(input.portRange, context) }),
|
|
2545
2449
|
...(input.relatedVulnerabilities != null && {
|
|
2546
|
-
relatedVulnerabilities:
|
|
2547
|
-
}),
|
|
2548
|
-
...(input.resourceId != null && { resourceId:
|
|
2549
|
-
...(input.resourceTags != null && {
|
|
2550
|
-
|
|
2551
|
-
}),
|
|
2552
|
-
...(input.
|
|
2553
|
-
|
|
2554
|
-
}),
|
|
2555
|
-
...(input.
|
|
2556
|
-
...(input.title != null && { title: serializeAws_restJson1StringFilterList(input.title, context) }),
|
|
2557
|
-
...(input.updatedAt != null && { updatedAt: serializeAws_restJson1DateFilterList(input.updatedAt, context) }),
|
|
2558
|
-
...(input.vendorSeverity != null && {
|
|
2559
|
-
vendorSeverity: serializeAws_restJson1StringFilterList(input.vendorSeverity, context),
|
|
2560
|
-
}),
|
|
2561
|
-
...(input.vulnerabilityId != null && {
|
|
2562
|
-
vulnerabilityId: serializeAws_restJson1StringFilterList(input.vulnerabilityId, context),
|
|
2563
|
-
}),
|
|
2450
|
+
relatedVulnerabilities: se_StringFilterList(input.relatedVulnerabilities, context),
|
|
2451
|
+
}),
|
|
2452
|
+
...(input.resourceId != null && { resourceId: se_StringFilterList(input.resourceId, context) }),
|
|
2453
|
+
...(input.resourceTags != null && { resourceTags: se_MapFilterList(input.resourceTags, context) }),
|
|
2454
|
+
...(input.resourceType != null && { resourceType: se_StringFilterList(input.resourceType, context) }),
|
|
2455
|
+
...(input.severity != null && { severity: se_StringFilterList(input.severity, context) }),
|
|
2456
|
+
...(input.title != null && { title: se_StringFilterList(input.title, context) }),
|
|
2457
|
+
...(input.updatedAt != null && { updatedAt: se_DateFilterList(input.updatedAt, context) }),
|
|
2458
|
+
...(input.vendorSeverity != null && { vendorSeverity: se_StringFilterList(input.vendorSeverity, context) }),
|
|
2459
|
+
...(input.vulnerabilityId != null && { vulnerabilityId: se_StringFilterList(input.vulnerabilityId, context) }),
|
|
2564
2460
|
...(input.vulnerabilitySource != null && {
|
|
2565
|
-
vulnerabilitySource:
|
|
2461
|
+
vulnerabilitySource: se_StringFilterList(input.vulnerabilitySource, context),
|
|
2566
2462
|
}),
|
|
2567
2463
|
...(input.vulnerablePackages != null && {
|
|
2568
|
-
vulnerablePackages:
|
|
2464
|
+
vulnerablePackages: se_PackageFilterList(input.vulnerablePackages, context),
|
|
2569
2465
|
}),
|
|
2570
2466
|
};
|
|
2571
2467
|
};
|
|
2572
|
-
const
|
|
2468
|
+
const se_FindingTypeAggregation = (input, context) => {
|
|
2573
2469
|
return {
|
|
2574
2470
|
...(input.findingType != null && { findingType: input.findingType }),
|
|
2575
2471
|
...(input.resourceType != null && { resourceType: input.resourceType }),
|
|
@@ -2577,159 +2473,135 @@ const serializeAws_restJson1FindingTypeAggregation = (input, context) => {
|
|
|
2577
2473
|
...(input.sortOrder != null && { sortOrder: input.sortOrder }),
|
|
2578
2474
|
};
|
|
2579
2475
|
};
|
|
2580
|
-
const
|
|
2476
|
+
const se_ImageLayerAggregation = (input, context) => {
|
|
2581
2477
|
return {
|
|
2582
|
-
...(input.layerHashes != null && {
|
|
2583
|
-
|
|
2584
|
-
}),
|
|
2585
|
-
...(input.repositories != null && {
|
|
2586
|
-
repositories: serializeAws_restJson1StringFilterList(input.repositories, context),
|
|
2587
|
-
}),
|
|
2588
|
-
...(input.resourceIds != null && {
|
|
2589
|
-
resourceIds: serializeAws_restJson1StringFilterList(input.resourceIds, context),
|
|
2590
|
-
}),
|
|
2478
|
+
...(input.layerHashes != null && { layerHashes: se_StringFilterList(input.layerHashes, context) }),
|
|
2479
|
+
...(input.repositories != null && { repositories: se_StringFilterList(input.repositories, context) }),
|
|
2480
|
+
...(input.resourceIds != null && { resourceIds: se_StringFilterList(input.resourceIds, context) }),
|
|
2591
2481
|
...(input.sortBy != null && { sortBy: input.sortBy }),
|
|
2592
2482
|
...(input.sortOrder != null && { sortOrder: input.sortOrder }),
|
|
2593
2483
|
};
|
|
2594
2484
|
};
|
|
2595
|
-
const
|
|
2485
|
+
const se_LambdaFunctionAggregation = (input, context) => {
|
|
2596
2486
|
return {
|
|
2597
|
-
...(input.functionNames != null && {
|
|
2598
|
-
|
|
2599
|
-
}),
|
|
2600
|
-
...(input.
|
|
2601
|
-
functionTags: serializeAws_restJson1MapFilterList(input.functionTags, context),
|
|
2602
|
-
}),
|
|
2603
|
-
...(input.resourceIds != null && {
|
|
2604
|
-
resourceIds: serializeAws_restJson1StringFilterList(input.resourceIds, context),
|
|
2605
|
-
}),
|
|
2606
|
-
...(input.runtimes != null && { runtimes: serializeAws_restJson1StringFilterList(input.runtimes, context) }),
|
|
2487
|
+
...(input.functionNames != null && { functionNames: se_StringFilterList(input.functionNames, context) }),
|
|
2488
|
+
...(input.functionTags != null && { functionTags: se_MapFilterList(input.functionTags, context) }),
|
|
2489
|
+
...(input.resourceIds != null && { resourceIds: se_StringFilterList(input.resourceIds, context) }),
|
|
2490
|
+
...(input.runtimes != null && { runtimes: se_StringFilterList(input.runtimes, context) }),
|
|
2607
2491
|
...(input.sortBy != null && { sortBy: input.sortBy }),
|
|
2608
2492
|
...(input.sortOrder != null && { sortOrder: input.sortOrder }),
|
|
2609
2493
|
};
|
|
2610
2494
|
};
|
|
2611
|
-
const
|
|
2495
|
+
const se_LambdaLayerAggregation = (input, context) => {
|
|
2612
2496
|
return {
|
|
2613
|
-
...(input.functionNames != null && {
|
|
2614
|
-
|
|
2615
|
-
}),
|
|
2616
|
-
...(input.layerArns != null && { layerArns: serializeAws_restJson1StringFilterList(input.layerArns, context) }),
|
|
2617
|
-
...(input.resourceIds != null && {
|
|
2618
|
-
resourceIds: serializeAws_restJson1StringFilterList(input.resourceIds, context),
|
|
2619
|
-
}),
|
|
2497
|
+
...(input.functionNames != null && { functionNames: se_StringFilterList(input.functionNames, context) }),
|
|
2498
|
+
...(input.layerArns != null && { layerArns: se_StringFilterList(input.layerArns, context) }),
|
|
2499
|
+
...(input.resourceIds != null && { resourceIds: se_StringFilterList(input.resourceIds, context) }),
|
|
2620
2500
|
...(input.sortBy != null && { sortBy: input.sortBy }),
|
|
2621
2501
|
...(input.sortOrder != null && { sortOrder: input.sortOrder }),
|
|
2622
2502
|
};
|
|
2623
2503
|
};
|
|
2624
|
-
const
|
|
2504
|
+
const se_MapFilter = (input, context) => {
|
|
2625
2505
|
return {
|
|
2626
2506
|
...(input.comparison != null && { comparison: input.comparison }),
|
|
2627
2507
|
...(input.key != null && { key: input.key }),
|
|
2628
2508
|
...(input.value != null && { value: input.value }),
|
|
2629
2509
|
};
|
|
2630
2510
|
};
|
|
2631
|
-
const
|
|
2511
|
+
const se_MapFilterList = (input, context) => {
|
|
2632
2512
|
return input
|
|
2633
2513
|
.filter((e) => e != null)
|
|
2634
2514
|
.map((entry) => {
|
|
2635
|
-
return
|
|
2515
|
+
return se_MapFilter(entry, context);
|
|
2636
2516
|
});
|
|
2637
2517
|
};
|
|
2638
|
-
const
|
|
2518
|
+
const se_MeteringAccountIdList = (input, context) => {
|
|
2639
2519
|
return input
|
|
2640
2520
|
.filter((e) => e != null)
|
|
2641
2521
|
.map((entry) => {
|
|
2642
2522
|
return entry;
|
|
2643
2523
|
});
|
|
2644
2524
|
};
|
|
2645
|
-
const
|
|
2525
|
+
const se_NumberFilter = (input, context) => {
|
|
2646
2526
|
return {
|
|
2647
2527
|
...(input.lowerInclusive != null && { lowerInclusive: __serializeFloat(input.lowerInclusive) }),
|
|
2648
2528
|
...(input.upperInclusive != null && { upperInclusive: __serializeFloat(input.upperInclusive) }),
|
|
2649
2529
|
};
|
|
2650
2530
|
};
|
|
2651
|
-
const
|
|
2531
|
+
const se_NumberFilterList = (input, context) => {
|
|
2652
2532
|
return input
|
|
2653
2533
|
.filter((e) => e != null)
|
|
2654
2534
|
.map((entry) => {
|
|
2655
|
-
return
|
|
2535
|
+
return se_NumberFilter(entry, context);
|
|
2656
2536
|
});
|
|
2657
2537
|
};
|
|
2658
|
-
const
|
|
2538
|
+
const se_PackageAggregation = (input, context) => {
|
|
2659
2539
|
return {
|
|
2660
|
-
...(input.packageNames != null && {
|
|
2661
|
-
packageNames: serializeAws_restJson1StringFilterList(input.packageNames, context),
|
|
2662
|
-
}),
|
|
2540
|
+
...(input.packageNames != null && { packageNames: se_StringFilterList(input.packageNames, context) }),
|
|
2663
2541
|
...(input.sortBy != null && { sortBy: input.sortBy }),
|
|
2664
2542
|
...(input.sortOrder != null && { sortOrder: input.sortOrder }),
|
|
2665
2543
|
};
|
|
2666
2544
|
};
|
|
2667
|
-
const
|
|
2545
|
+
const se_PackageFilter = (input, context) => {
|
|
2668
2546
|
return {
|
|
2669
|
-
...(input.architecture != null && {
|
|
2670
|
-
|
|
2671
|
-
}),
|
|
2672
|
-
...(input.
|
|
2673
|
-
...(input.name != null && { name: serializeAws_restJson1StringFilter(input.name, context) }),
|
|
2674
|
-
...(input.release != null && { release: serializeAws_restJson1StringFilter(input.release, context) }),
|
|
2547
|
+
...(input.architecture != null && { architecture: se_StringFilter(input.architecture, context) }),
|
|
2548
|
+
...(input.epoch != null && { epoch: se_NumberFilter(input.epoch, context) }),
|
|
2549
|
+
...(input.name != null && { name: se_StringFilter(input.name, context) }),
|
|
2550
|
+
...(input.release != null && { release: se_StringFilter(input.release, context) }),
|
|
2675
2551
|
...(input.sourceLambdaLayerArn != null && {
|
|
2676
|
-
sourceLambdaLayerArn:
|
|
2552
|
+
sourceLambdaLayerArn: se_StringFilter(input.sourceLambdaLayerArn, context),
|
|
2677
2553
|
}),
|
|
2678
|
-
...(input.sourceLayerHash != null && {
|
|
2679
|
-
|
|
2680
|
-
}),
|
|
2681
|
-
...(input.version != null && { version: serializeAws_restJson1StringFilter(input.version, context) }),
|
|
2554
|
+
...(input.sourceLayerHash != null && { sourceLayerHash: se_StringFilter(input.sourceLayerHash, context) }),
|
|
2555
|
+
...(input.version != null && { version: se_StringFilter(input.version, context) }),
|
|
2682
2556
|
};
|
|
2683
2557
|
};
|
|
2684
|
-
const
|
|
2558
|
+
const se_PackageFilterList = (input, context) => {
|
|
2685
2559
|
return input
|
|
2686
2560
|
.filter((e) => e != null)
|
|
2687
2561
|
.map((entry) => {
|
|
2688
|
-
return
|
|
2562
|
+
return se_PackageFilter(entry, context);
|
|
2689
2563
|
});
|
|
2690
2564
|
};
|
|
2691
|
-
const
|
|
2565
|
+
const se_PortRangeFilter = (input, context) => {
|
|
2692
2566
|
return {
|
|
2693
2567
|
...(input.beginInclusive != null && { beginInclusive: input.beginInclusive }),
|
|
2694
2568
|
...(input.endInclusive != null && { endInclusive: input.endInclusive }),
|
|
2695
2569
|
};
|
|
2696
2570
|
};
|
|
2697
|
-
const
|
|
2571
|
+
const se_PortRangeFilterList = (input, context) => {
|
|
2698
2572
|
return input
|
|
2699
2573
|
.filter((e) => e != null)
|
|
2700
2574
|
.map((entry) => {
|
|
2701
|
-
return
|
|
2575
|
+
return se_PortRangeFilter(entry, context);
|
|
2702
2576
|
});
|
|
2703
2577
|
};
|
|
2704
|
-
const
|
|
2578
|
+
const se_RepositoryAggregation = (input, context) => {
|
|
2705
2579
|
return {
|
|
2706
|
-
...(input.repositories != null && {
|
|
2707
|
-
repositories: serializeAws_restJson1StringFilterList(input.repositories, context),
|
|
2708
|
-
}),
|
|
2580
|
+
...(input.repositories != null && { repositories: se_StringFilterList(input.repositories, context) }),
|
|
2709
2581
|
...(input.sortBy != null && { sortBy: input.sortBy }),
|
|
2710
2582
|
...(input.sortOrder != null && { sortOrder: input.sortOrder }),
|
|
2711
2583
|
};
|
|
2712
2584
|
};
|
|
2713
|
-
const
|
|
2585
|
+
const se_SortCriteria = (input, context) => {
|
|
2714
2586
|
return {
|
|
2715
2587
|
...(input.field != null && { field: input.field }),
|
|
2716
2588
|
...(input.sortOrder != null && { sortOrder: input.sortOrder }),
|
|
2717
2589
|
};
|
|
2718
2590
|
};
|
|
2719
|
-
const
|
|
2591
|
+
const se_StringFilter = (input, context) => {
|
|
2720
2592
|
return {
|
|
2721
2593
|
...(input.comparison != null && { comparison: input.comparison }),
|
|
2722
2594
|
...(input.value != null && { value: input.value }),
|
|
2723
2595
|
};
|
|
2724
2596
|
};
|
|
2725
|
-
const
|
|
2597
|
+
const se_StringFilterList = (input, context) => {
|
|
2726
2598
|
return input
|
|
2727
2599
|
.filter((e) => e != null)
|
|
2728
2600
|
.map((entry) => {
|
|
2729
|
-
return
|
|
2601
|
+
return se_StringFilter(entry, context);
|
|
2730
2602
|
});
|
|
2731
2603
|
};
|
|
2732
|
-
const
|
|
2604
|
+
const se_TagMap = (input, context) => {
|
|
2733
2605
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2734
2606
|
if (value === null) {
|
|
2735
2607
|
return acc;
|
|
@@ -2738,150 +2610,142 @@ const serializeAws_restJson1TagMap = (input, context) => {
|
|
|
2738
2610
|
return acc;
|
|
2739
2611
|
}, {});
|
|
2740
2612
|
};
|
|
2741
|
-
const
|
|
2613
|
+
const se_TitleAggregation = (input, context) => {
|
|
2742
2614
|
return {
|
|
2743
2615
|
...(input.resourceType != null && { resourceType: input.resourceType }),
|
|
2744
2616
|
...(input.sortBy != null && { sortBy: input.sortBy }),
|
|
2745
2617
|
...(input.sortOrder != null && { sortOrder: input.sortOrder }),
|
|
2746
|
-
...(input.titles != null && { titles:
|
|
2747
|
-
...(input.vulnerabilityIds != null && {
|
|
2748
|
-
vulnerabilityIds: serializeAws_restJson1StringFilterList(input.vulnerabilityIds, context),
|
|
2749
|
-
}),
|
|
2618
|
+
...(input.titles != null && { titles: se_StringFilterList(input.titles, context) }),
|
|
2619
|
+
...(input.vulnerabilityIds != null && { vulnerabilityIds: se_StringFilterList(input.vulnerabilityIds, context) }),
|
|
2750
2620
|
};
|
|
2751
2621
|
};
|
|
2752
|
-
const
|
|
2622
|
+
const se_UsageAccountIdList = (input, context) => {
|
|
2753
2623
|
return input
|
|
2754
2624
|
.filter((e) => e != null)
|
|
2755
2625
|
.map((entry) => {
|
|
2756
2626
|
return entry;
|
|
2757
2627
|
});
|
|
2758
2628
|
};
|
|
2759
|
-
const
|
|
2629
|
+
const de_Account = (output, context) => {
|
|
2760
2630
|
return {
|
|
2761
2631
|
accountId: __expectString(output.accountId),
|
|
2762
|
-
resourceStatus: output.resourceStatus != null
|
|
2763
|
-
? deserializeAws_restJson1ResourceStatus(output.resourceStatus, context)
|
|
2764
|
-
: undefined,
|
|
2632
|
+
resourceStatus: output.resourceStatus != null ? de_ResourceStatus(output.resourceStatus, context) : undefined,
|
|
2765
2633
|
status: __expectString(output.status),
|
|
2766
2634
|
};
|
|
2767
2635
|
};
|
|
2768
|
-
const
|
|
2636
|
+
const de_AccountAggregationResponse = (output, context) => {
|
|
2769
2637
|
return {
|
|
2770
2638
|
accountId: __expectString(output.accountId),
|
|
2771
|
-
severityCounts: output.severityCounts != null
|
|
2772
|
-
? deserializeAws_restJson1SeverityCounts(output.severityCounts, context)
|
|
2773
|
-
: undefined,
|
|
2639
|
+
severityCounts: output.severityCounts != null ? de_SeverityCounts(output.severityCounts, context) : undefined,
|
|
2774
2640
|
};
|
|
2775
2641
|
};
|
|
2776
|
-
const
|
|
2642
|
+
const de_AccountList = (output, context) => {
|
|
2777
2643
|
const retVal = (output || [])
|
|
2778
2644
|
.filter((e) => e != null)
|
|
2779
2645
|
.map((entry) => {
|
|
2780
2646
|
if (entry === null) {
|
|
2781
2647
|
return null;
|
|
2782
2648
|
}
|
|
2783
|
-
return
|
|
2649
|
+
return de_Account(entry, context);
|
|
2784
2650
|
});
|
|
2785
2651
|
return retVal;
|
|
2786
2652
|
};
|
|
2787
|
-
const
|
|
2653
|
+
const de_AccountState = (output, context) => {
|
|
2788
2654
|
return {
|
|
2789
2655
|
accountId: __expectString(output.accountId),
|
|
2790
|
-
resourceState: output.resourceState != null ?
|
|
2791
|
-
state: output.state != null ?
|
|
2656
|
+
resourceState: output.resourceState != null ? de_ResourceState(output.resourceState, context) : undefined,
|
|
2657
|
+
state: output.state != null ? de_State(output.state, context) : undefined,
|
|
2792
2658
|
};
|
|
2793
2659
|
};
|
|
2794
|
-
const
|
|
2660
|
+
const de_AccountStateList = (output, context) => {
|
|
2795
2661
|
const retVal = (output || [])
|
|
2796
2662
|
.filter((e) => e != null)
|
|
2797
2663
|
.map((entry) => {
|
|
2798
2664
|
if (entry === null) {
|
|
2799
2665
|
return null;
|
|
2800
2666
|
}
|
|
2801
|
-
return
|
|
2667
|
+
return de_AccountState(entry, context);
|
|
2802
2668
|
});
|
|
2803
2669
|
return retVal;
|
|
2804
2670
|
};
|
|
2805
|
-
const
|
|
2671
|
+
const de_AggregationResponse = (output, context) => {
|
|
2806
2672
|
if (output.accountAggregation != null) {
|
|
2807
2673
|
return {
|
|
2808
|
-
accountAggregation:
|
|
2674
|
+
accountAggregation: de_AccountAggregationResponse(output.accountAggregation, context),
|
|
2809
2675
|
};
|
|
2810
2676
|
}
|
|
2811
2677
|
if (output.amiAggregation != null) {
|
|
2812
2678
|
return {
|
|
2813
|
-
amiAggregation:
|
|
2679
|
+
amiAggregation: de_AmiAggregationResponse(output.amiAggregation, context),
|
|
2814
2680
|
};
|
|
2815
2681
|
}
|
|
2816
2682
|
if (output.awsEcrContainerAggregation != null) {
|
|
2817
2683
|
return {
|
|
2818
|
-
awsEcrContainerAggregation:
|
|
2684
|
+
awsEcrContainerAggregation: de_AwsEcrContainerAggregationResponse(output.awsEcrContainerAggregation, context),
|
|
2819
2685
|
};
|
|
2820
2686
|
}
|
|
2821
2687
|
if (output.ec2InstanceAggregation != null) {
|
|
2822
2688
|
return {
|
|
2823
|
-
ec2InstanceAggregation:
|
|
2689
|
+
ec2InstanceAggregation: de_Ec2InstanceAggregationResponse(output.ec2InstanceAggregation, context),
|
|
2824
2690
|
};
|
|
2825
2691
|
}
|
|
2826
2692
|
if (output.findingTypeAggregation != null) {
|
|
2827
2693
|
return {
|
|
2828
|
-
findingTypeAggregation:
|
|
2694
|
+
findingTypeAggregation: de_FindingTypeAggregationResponse(output.findingTypeAggregation, context),
|
|
2829
2695
|
};
|
|
2830
2696
|
}
|
|
2831
2697
|
if (output.imageLayerAggregation != null) {
|
|
2832
2698
|
return {
|
|
2833
|
-
imageLayerAggregation:
|
|
2699
|
+
imageLayerAggregation: de_ImageLayerAggregationResponse(output.imageLayerAggregation, context),
|
|
2834
2700
|
};
|
|
2835
2701
|
}
|
|
2836
2702
|
if (output.lambdaFunctionAggregation != null) {
|
|
2837
2703
|
return {
|
|
2838
|
-
lambdaFunctionAggregation:
|
|
2704
|
+
lambdaFunctionAggregation: de_LambdaFunctionAggregationResponse(output.lambdaFunctionAggregation, context),
|
|
2839
2705
|
};
|
|
2840
2706
|
}
|
|
2841
2707
|
if (output.lambdaLayerAggregation != null) {
|
|
2842
2708
|
return {
|
|
2843
|
-
lambdaLayerAggregation:
|
|
2709
|
+
lambdaLayerAggregation: de_LambdaLayerAggregationResponse(output.lambdaLayerAggregation, context),
|
|
2844
2710
|
};
|
|
2845
2711
|
}
|
|
2846
2712
|
if (output.packageAggregation != null) {
|
|
2847
2713
|
return {
|
|
2848
|
-
packageAggregation:
|
|
2714
|
+
packageAggregation: de_PackageAggregationResponse(output.packageAggregation, context),
|
|
2849
2715
|
};
|
|
2850
2716
|
}
|
|
2851
2717
|
if (output.repositoryAggregation != null) {
|
|
2852
2718
|
return {
|
|
2853
|
-
repositoryAggregation:
|
|
2719
|
+
repositoryAggregation: de_RepositoryAggregationResponse(output.repositoryAggregation, context),
|
|
2854
2720
|
};
|
|
2855
2721
|
}
|
|
2856
2722
|
if (output.titleAggregation != null) {
|
|
2857
2723
|
return {
|
|
2858
|
-
titleAggregation:
|
|
2724
|
+
titleAggregation: de_TitleAggregationResponse(output.titleAggregation, context),
|
|
2859
2725
|
};
|
|
2860
2726
|
}
|
|
2861
2727
|
return { $unknown: Object.entries(output)[0] };
|
|
2862
2728
|
};
|
|
2863
|
-
const
|
|
2729
|
+
const de_AggregationResponseList = (output, context) => {
|
|
2864
2730
|
const retVal = (output || [])
|
|
2865
2731
|
.filter((e) => e != null)
|
|
2866
2732
|
.map((entry) => {
|
|
2867
2733
|
if (entry === null) {
|
|
2868
2734
|
return null;
|
|
2869
2735
|
}
|
|
2870
|
-
return
|
|
2736
|
+
return de_AggregationResponse(__expectUnion(entry), context);
|
|
2871
2737
|
});
|
|
2872
2738
|
return retVal;
|
|
2873
2739
|
};
|
|
2874
|
-
const
|
|
2740
|
+
const de_AmiAggregationResponse = (output, context) => {
|
|
2875
2741
|
return {
|
|
2876
2742
|
accountId: __expectString(output.accountId),
|
|
2877
2743
|
affectedInstances: __expectLong(output.affectedInstances),
|
|
2878
2744
|
ami: __expectString(output.ami),
|
|
2879
|
-
severityCounts: output.severityCounts != null
|
|
2880
|
-
? deserializeAws_restJson1SeverityCounts(output.severityCounts, context)
|
|
2881
|
-
: undefined,
|
|
2745
|
+
severityCounts: output.severityCounts != null ? de_SeverityCounts(output.severityCounts, context) : undefined,
|
|
2882
2746
|
};
|
|
2883
2747
|
};
|
|
2884
|
-
const
|
|
2748
|
+
const de_ArchitectureList = (output, context) => {
|
|
2885
2749
|
const retVal = (output || [])
|
|
2886
2750
|
.filter((e) => e != null)
|
|
2887
2751
|
.map((entry) => {
|
|
@@ -2892,19 +2756,19 @@ const deserializeAws_restJson1ArchitectureList = (output, context) => {
|
|
|
2892
2756
|
});
|
|
2893
2757
|
return retVal;
|
|
2894
2758
|
};
|
|
2895
|
-
const
|
|
2759
|
+
const de_AutoEnable = (output, context) => {
|
|
2896
2760
|
return {
|
|
2897
2761
|
ec2: __expectBoolean(output.ec2),
|
|
2898
2762
|
ecr: __expectBoolean(output.ecr),
|
|
2899
2763
|
lambda: __expectBoolean(output.lambda),
|
|
2900
2764
|
};
|
|
2901
2765
|
};
|
|
2902
|
-
const
|
|
2766
|
+
const de_AwsEc2InstanceDetails = (output, context) => {
|
|
2903
2767
|
return {
|
|
2904
2768
|
iamInstanceProfileArn: __expectString(output.iamInstanceProfileArn),
|
|
2905
2769
|
imageId: __expectString(output.imageId),
|
|
2906
|
-
ipV4Addresses: output.ipV4Addresses != null ?
|
|
2907
|
-
ipV6Addresses: output.ipV6Addresses != null ?
|
|
2770
|
+
ipV4Addresses: output.ipV4Addresses != null ? de_IpV4AddressList(output.ipV4Addresses, context) : undefined,
|
|
2771
|
+
ipV6Addresses: output.ipV6Addresses != null ? de_IpV6AddressList(output.ipV6Addresses, context) : undefined,
|
|
2908
2772
|
keyName: __expectString(output.keyName),
|
|
2909
2773
|
launchedAt: output.launchedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.launchedAt))) : undefined,
|
|
2910
2774
|
platform: __expectString(output.platform),
|
|
@@ -2913,90 +2777,84 @@ const deserializeAws_restJson1AwsEc2InstanceDetails = (output, context) => {
|
|
|
2913
2777
|
vpcId: __expectString(output.vpcId),
|
|
2914
2778
|
};
|
|
2915
2779
|
};
|
|
2916
|
-
const
|
|
2780
|
+
const de_AwsEcrContainerAggregationResponse = (output, context) => {
|
|
2917
2781
|
return {
|
|
2918
2782
|
accountId: __expectString(output.accountId),
|
|
2919
2783
|
architecture: __expectString(output.architecture),
|
|
2920
2784
|
imageSha: __expectString(output.imageSha),
|
|
2921
|
-
imageTags: output.imageTags != null ?
|
|
2785
|
+
imageTags: output.imageTags != null ? de_StringList(output.imageTags, context) : undefined,
|
|
2922
2786
|
repository: __expectString(output.repository),
|
|
2923
2787
|
resourceId: __expectString(output.resourceId),
|
|
2924
|
-
severityCounts: output.severityCounts != null
|
|
2925
|
-
? deserializeAws_restJson1SeverityCounts(output.severityCounts, context)
|
|
2926
|
-
: undefined,
|
|
2788
|
+
severityCounts: output.severityCounts != null ? de_SeverityCounts(output.severityCounts, context) : undefined,
|
|
2927
2789
|
};
|
|
2928
2790
|
};
|
|
2929
|
-
const
|
|
2791
|
+
const de_AwsEcrContainerImageDetails = (output, context) => {
|
|
2930
2792
|
return {
|
|
2931
2793
|
architecture: __expectString(output.architecture),
|
|
2932
2794
|
author: __expectString(output.author),
|
|
2933
2795
|
imageHash: __expectString(output.imageHash),
|
|
2934
|
-
imageTags: output.imageTags != null ?
|
|
2796
|
+
imageTags: output.imageTags != null ? de_ImageTagList(output.imageTags, context) : undefined,
|
|
2935
2797
|
platform: __expectString(output.platform),
|
|
2936
2798
|
pushedAt: output.pushedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.pushedAt))) : undefined,
|
|
2937
2799
|
registry: __expectString(output.registry),
|
|
2938
2800
|
repositoryName: __expectString(output.repositoryName),
|
|
2939
2801
|
};
|
|
2940
2802
|
};
|
|
2941
|
-
const
|
|
2803
|
+
const de_AwsLambdaFunctionDetails = (output, context) => {
|
|
2942
2804
|
return {
|
|
2943
|
-
architectures: output.architectures != null
|
|
2944
|
-
? deserializeAws_restJson1ArchitectureList(output.architectures, context)
|
|
2945
|
-
: undefined,
|
|
2805
|
+
architectures: output.architectures != null ? de_ArchitectureList(output.architectures, context) : undefined,
|
|
2946
2806
|
codeSha256: __expectString(output.codeSha256),
|
|
2947
2807
|
executionRoleArn: __expectString(output.executionRoleArn),
|
|
2948
2808
|
functionName: __expectString(output.functionName),
|
|
2949
2809
|
lastModifiedAt: output.lastModifiedAt != null
|
|
2950
2810
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastModifiedAt)))
|
|
2951
2811
|
: undefined,
|
|
2952
|
-
layers: output.layers != null ?
|
|
2812
|
+
layers: output.layers != null ? de_LayerList(output.layers, context) : undefined,
|
|
2953
2813
|
packageType: __expectString(output.packageType),
|
|
2954
2814
|
runtime: __expectString(output.runtime),
|
|
2955
2815
|
version: __expectString(output.version),
|
|
2956
|
-
vpcConfig: output.vpcConfig != null ?
|
|
2816
|
+
vpcConfig: output.vpcConfig != null ? de_LambdaVpcConfig(output.vpcConfig, context) : undefined,
|
|
2957
2817
|
};
|
|
2958
2818
|
};
|
|
2959
|
-
const
|
|
2819
|
+
const de_Counts = (output, context) => {
|
|
2960
2820
|
return {
|
|
2961
2821
|
count: __expectLong(output.count),
|
|
2962
2822
|
groupKey: __expectString(output.groupKey),
|
|
2963
2823
|
};
|
|
2964
2824
|
};
|
|
2965
|
-
const
|
|
2825
|
+
const de_CountsList = (output, context) => {
|
|
2966
2826
|
const retVal = (output || [])
|
|
2967
2827
|
.filter((e) => e != null)
|
|
2968
2828
|
.map((entry) => {
|
|
2969
2829
|
if (entry === null) {
|
|
2970
2830
|
return null;
|
|
2971
2831
|
}
|
|
2972
|
-
return
|
|
2832
|
+
return de_Counts(entry, context);
|
|
2973
2833
|
});
|
|
2974
2834
|
return retVal;
|
|
2975
2835
|
};
|
|
2976
|
-
const
|
|
2836
|
+
const de_CoveredResource = (output, context) => {
|
|
2977
2837
|
return {
|
|
2978
2838
|
accountId: __expectString(output.accountId),
|
|
2979
2839
|
resourceId: __expectString(output.resourceId),
|
|
2980
|
-
resourceMetadata: output.resourceMetadata != null
|
|
2981
|
-
? deserializeAws_restJson1ResourceScanMetadata(output.resourceMetadata, context)
|
|
2982
|
-
: undefined,
|
|
2840
|
+
resourceMetadata: output.resourceMetadata != null ? de_ResourceScanMetadata(output.resourceMetadata, context) : undefined,
|
|
2983
2841
|
resourceType: __expectString(output.resourceType),
|
|
2984
|
-
scanStatus: output.scanStatus != null ?
|
|
2842
|
+
scanStatus: output.scanStatus != null ? de_ScanStatus(output.scanStatus, context) : undefined,
|
|
2985
2843
|
scanType: __expectString(output.scanType),
|
|
2986
2844
|
};
|
|
2987
2845
|
};
|
|
2988
|
-
const
|
|
2846
|
+
const de_CoveredResources = (output, context) => {
|
|
2989
2847
|
const retVal = (output || [])
|
|
2990
2848
|
.filter((e) => e != null)
|
|
2991
2849
|
.map((entry) => {
|
|
2992
2850
|
if (entry === null) {
|
|
2993
2851
|
return null;
|
|
2994
2852
|
}
|
|
2995
|
-
return
|
|
2853
|
+
return de_CoveredResource(entry, context);
|
|
2996
2854
|
});
|
|
2997
2855
|
return retVal;
|
|
2998
2856
|
};
|
|
2999
|
-
const
|
|
2857
|
+
const de_CvssScore = (output, context) => {
|
|
3000
2858
|
return {
|
|
3001
2859
|
baseScore: __limitedParseDouble(output.baseScore),
|
|
3002
2860
|
scoringVector: __expectString(output.scoringVector),
|
|
@@ -3004,28 +2862,26 @@ const deserializeAws_restJson1CvssScore = (output, context) => {
|
|
|
3004
2862
|
version: __expectString(output.version),
|
|
3005
2863
|
};
|
|
3006
2864
|
};
|
|
3007
|
-
const
|
|
2865
|
+
const de_CvssScoreAdjustment = (output, context) => {
|
|
3008
2866
|
return {
|
|
3009
2867
|
metric: __expectString(output.metric),
|
|
3010
2868
|
reason: __expectString(output.reason),
|
|
3011
2869
|
};
|
|
3012
2870
|
};
|
|
3013
|
-
const
|
|
2871
|
+
const de_CvssScoreAdjustmentList = (output, context) => {
|
|
3014
2872
|
const retVal = (output || [])
|
|
3015
2873
|
.filter((e) => e != null)
|
|
3016
2874
|
.map((entry) => {
|
|
3017
2875
|
if (entry === null) {
|
|
3018
2876
|
return null;
|
|
3019
2877
|
}
|
|
3020
|
-
return
|
|
2878
|
+
return de_CvssScoreAdjustment(entry, context);
|
|
3021
2879
|
});
|
|
3022
2880
|
return retVal;
|
|
3023
2881
|
};
|
|
3024
|
-
const
|
|
2882
|
+
const de_CvssScoreDetails = (output, context) => {
|
|
3025
2883
|
return {
|
|
3026
|
-
adjustments: output.adjustments != null
|
|
3027
|
-
? deserializeAws_restJson1CvssScoreAdjustmentList(output.adjustments, context)
|
|
3028
|
-
: undefined,
|
|
2884
|
+
adjustments: output.adjustments != null ? de_CvssScoreAdjustmentList(output.adjustments, context) : undefined,
|
|
3029
2885
|
cvssSource: __expectString(output.cvssSource),
|
|
3030
2886
|
score: __limitedParseDouble(output.score),
|
|
3031
2887
|
scoreSource: __expectString(output.scoreSource),
|
|
@@ -3033,18 +2889,18 @@ const deserializeAws_restJson1CvssScoreDetails = (output, context) => {
|
|
|
3033
2889
|
version: __expectString(output.version),
|
|
3034
2890
|
};
|
|
3035
2891
|
};
|
|
3036
|
-
const
|
|
2892
|
+
const de_CvssScoreList = (output, context) => {
|
|
3037
2893
|
const retVal = (output || [])
|
|
3038
2894
|
.filter((e) => e != null)
|
|
3039
2895
|
.map((entry) => {
|
|
3040
2896
|
if (entry === null) {
|
|
3041
2897
|
return null;
|
|
3042
2898
|
}
|
|
3043
|
-
return
|
|
2899
|
+
return de_CvssScore(entry, context);
|
|
3044
2900
|
});
|
|
3045
2901
|
return retVal;
|
|
3046
2902
|
};
|
|
3047
|
-
const
|
|
2903
|
+
const de_DateFilter = (output, context) => {
|
|
3048
2904
|
return {
|
|
3049
2905
|
endInclusive: output.endInclusive != null
|
|
3050
2906
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.endInclusive)))
|
|
@@ -3054,243 +2910,193 @@ const deserializeAws_restJson1DateFilter = (output, context) => {
|
|
|
3054
2910
|
: undefined,
|
|
3055
2911
|
};
|
|
3056
2912
|
};
|
|
3057
|
-
const
|
|
2913
|
+
const de_DateFilterList = (output, context) => {
|
|
3058
2914
|
const retVal = (output || [])
|
|
3059
2915
|
.filter((e) => e != null)
|
|
3060
2916
|
.map((entry) => {
|
|
3061
2917
|
if (entry === null) {
|
|
3062
2918
|
return null;
|
|
3063
2919
|
}
|
|
3064
|
-
return
|
|
2920
|
+
return de_DateFilter(entry, context);
|
|
3065
2921
|
});
|
|
3066
2922
|
return retVal;
|
|
3067
2923
|
};
|
|
3068
|
-
const
|
|
2924
|
+
const de_DelegatedAdmin = (output, context) => {
|
|
3069
2925
|
return {
|
|
3070
2926
|
accountId: __expectString(output.accountId),
|
|
3071
2927
|
relationshipStatus: __expectString(output.relationshipStatus),
|
|
3072
2928
|
};
|
|
3073
2929
|
};
|
|
3074
|
-
const
|
|
2930
|
+
const de_DelegatedAdminAccount = (output, context) => {
|
|
3075
2931
|
return {
|
|
3076
2932
|
accountId: __expectString(output.accountId),
|
|
3077
2933
|
status: __expectString(output.status),
|
|
3078
2934
|
};
|
|
3079
2935
|
};
|
|
3080
|
-
const
|
|
2936
|
+
const de_DelegatedAdminAccountList = (output, context) => {
|
|
3081
2937
|
const retVal = (output || [])
|
|
3082
2938
|
.filter((e) => e != null)
|
|
3083
2939
|
.map((entry) => {
|
|
3084
2940
|
if (entry === null) {
|
|
3085
2941
|
return null;
|
|
3086
2942
|
}
|
|
3087
|
-
return
|
|
2943
|
+
return de_DelegatedAdminAccount(entry, context);
|
|
3088
2944
|
});
|
|
3089
2945
|
return retVal;
|
|
3090
2946
|
};
|
|
3091
|
-
const
|
|
2947
|
+
const de_Destination = (output, context) => {
|
|
3092
2948
|
return {
|
|
3093
2949
|
bucketName: __expectString(output.bucketName),
|
|
3094
2950
|
keyPrefix: __expectString(output.keyPrefix),
|
|
3095
2951
|
kmsKeyArn: __expectString(output.kmsKeyArn),
|
|
3096
2952
|
};
|
|
3097
2953
|
};
|
|
3098
|
-
const
|
|
2954
|
+
const de_Ec2InstanceAggregationResponse = (output, context) => {
|
|
3099
2955
|
return {
|
|
3100
2956
|
accountId: __expectString(output.accountId),
|
|
3101
2957
|
ami: __expectString(output.ami),
|
|
3102
2958
|
instanceId: __expectString(output.instanceId),
|
|
3103
|
-
instanceTags: output.instanceTags != null ?
|
|
2959
|
+
instanceTags: output.instanceTags != null ? de_TagMap(output.instanceTags, context) : undefined,
|
|
3104
2960
|
networkFindings: __expectLong(output.networkFindings),
|
|
3105
2961
|
operatingSystem: __expectString(output.operatingSystem),
|
|
3106
|
-
severityCounts: output.severityCounts != null
|
|
3107
|
-
? deserializeAws_restJson1SeverityCounts(output.severityCounts, context)
|
|
3108
|
-
: undefined,
|
|
2962
|
+
severityCounts: output.severityCounts != null ? de_SeverityCounts(output.severityCounts, context) : undefined,
|
|
3109
2963
|
};
|
|
3110
2964
|
};
|
|
3111
|
-
const
|
|
2965
|
+
const de_Ec2Metadata = (output, context) => {
|
|
3112
2966
|
return {
|
|
3113
2967
|
amiId: __expectString(output.amiId),
|
|
3114
2968
|
platform: __expectString(output.platform),
|
|
3115
|
-
tags: output.tags != null ?
|
|
2969
|
+
tags: output.tags != null ? de_TagMap(output.tags, context) : undefined,
|
|
3116
2970
|
};
|
|
3117
2971
|
};
|
|
3118
|
-
const
|
|
2972
|
+
const de_EcrConfigurationState = (output, context) => {
|
|
3119
2973
|
return {
|
|
3120
|
-
rescanDurationState: output.rescanDurationState != null
|
|
3121
|
-
? deserializeAws_restJson1EcrRescanDurationState(output.rescanDurationState, context)
|
|
3122
|
-
: undefined,
|
|
2974
|
+
rescanDurationState: output.rescanDurationState != null ? de_EcrRescanDurationState(output.rescanDurationState, context) : undefined,
|
|
3123
2975
|
};
|
|
3124
2976
|
};
|
|
3125
|
-
const
|
|
2977
|
+
const de_EcrContainerImageMetadata = (output, context) => {
|
|
3126
2978
|
return {
|
|
3127
|
-
tags: output.tags != null ?
|
|
2979
|
+
tags: output.tags != null ? de_TagList(output.tags, context) : undefined,
|
|
3128
2980
|
};
|
|
3129
2981
|
};
|
|
3130
|
-
const
|
|
2982
|
+
const de_EcrRepositoryMetadata = (output, context) => {
|
|
3131
2983
|
return {
|
|
3132
2984
|
name: __expectString(output.name),
|
|
3133
2985
|
scanFrequency: __expectString(output.scanFrequency),
|
|
3134
2986
|
};
|
|
3135
2987
|
};
|
|
3136
|
-
const
|
|
2988
|
+
const de_EcrRescanDurationState = (output, context) => {
|
|
3137
2989
|
return {
|
|
3138
2990
|
rescanDuration: __expectString(output.rescanDuration),
|
|
3139
2991
|
status: __expectString(output.status),
|
|
3140
2992
|
updatedAt: output.updatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updatedAt))) : undefined,
|
|
3141
2993
|
};
|
|
3142
2994
|
};
|
|
3143
|
-
const
|
|
2995
|
+
const de_ExploitabilityDetails = (output, context) => {
|
|
3144
2996
|
return {
|
|
3145
2997
|
lastKnownExploitAt: output.lastKnownExploitAt != null
|
|
3146
2998
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastKnownExploitAt)))
|
|
3147
2999
|
: undefined,
|
|
3148
3000
|
};
|
|
3149
3001
|
};
|
|
3150
|
-
const
|
|
3002
|
+
const de_FailedAccount = (output, context) => {
|
|
3151
3003
|
return {
|
|
3152
3004
|
accountId: __expectString(output.accountId),
|
|
3153
3005
|
errorCode: __expectString(output.errorCode),
|
|
3154
3006
|
errorMessage: __expectString(output.errorMessage),
|
|
3155
|
-
resourceStatus: output.resourceStatus != null
|
|
3156
|
-
? deserializeAws_restJson1ResourceStatus(output.resourceStatus, context)
|
|
3157
|
-
: undefined,
|
|
3007
|
+
resourceStatus: output.resourceStatus != null ? de_ResourceStatus(output.resourceStatus, context) : undefined,
|
|
3158
3008
|
status: __expectString(output.status),
|
|
3159
3009
|
};
|
|
3160
3010
|
};
|
|
3161
|
-
const
|
|
3011
|
+
const de_FailedAccountList = (output, context) => {
|
|
3162
3012
|
const retVal = (output || [])
|
|
3163
3013
|
.filter((e) => e != null)
|
|
3164
3014
|
.map((entry) => {
|
|
3165
3015
|
if (entry === null) {
|
|
3166
3016
|
return null;
|
|
3167
3017
|
}
|
|
3168
|
-
return
|
|
3018
|
+
return de_FailedAccount(entry, context);
|
|
3169
3019
|
});
|
|
3170
3020
|
return retVal;
|
|
3171
3021
|
};
|
|
3172
|
-
const
|
|
3022
|
+
const de_Filter = (output, context) => {
|
|
3173
3023
|
return {
|
|
3174
3024
|
action: __expectString(output.action),
|
|
3175
3025
|
arn: __expectString(output.arn),
|
|
3176
3026
|
createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
|
|
3177
|
-
criteria: output.criteria != null ?
|
|
3027
|
+
criteria: output.criteria != null ? de_FilterCriteria(output.criteria, context) : undefined,
|
|
3178
3028
|
description: __expectString(output.description),
|
|
3179
3029
|
name: __expectString(output.name),
|
|
3180
3030
|
ownerId: __expectString(output.ownerId),
|
|
3181
3031
|
reason: __expectString(output.reason),
|
|
3182
|
-
tags: output.tags != null ?
|
|
3032
|
+
tags: output.tags != null ? de_TagMap(output.tags, context) : undefined,
|
|
3183
3033
|
updatedAt: output.updatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updatedAt))) : undefined,
|
|
3184
3034
|
};
|
|
3185
3035
|
};
|
|
3186
|
-
const
|
|
3187
|
-
return {
|
|
3188
|
-
awsAccountId: output.awsAccountId != null ?
|
|
3189
|
-
componentId: output.componentId != null ?
|
|
3190
|
-
componentType: output.componentType != null
|
|
3191
|
-
|
|
3192
|
-
|
|
3193
|
-
|
|
3194
|
-
|
|
3195
|
-
|
|
3196
|
-
|
|
3197
|
-
|
|
3198
|
-
|
|
3199
|
-
|
|
3200
|
-
|
|
3201
|
-
|
|
3202
|
-
|
|
3203
|
-
|
|
3204
|
-
|
|
3205
|
-
|
|
3206
|
-
|
|
3207
|
-
? deserializeAws_restJson1DateFilterList(output.ecrImagePushedAt, context)
|
|
3208
|
-
: undefined,
|
|
3209
|
-
ecrImageRegistry: output.ecrImageRegistry != null
|
|
3210
|
-
? deserializeAws_restJson1StringFilterList(output.ecrImageRegistry, context)
|
|
3211
|
-
: undefined,
|
|
3212
|
-
ecrImageRepositoryName: output.ecrImageRepositoryName != null
|
|
3213
|
-
? deserializeAws_restJson1StringFilterList(output.ecrImageRepositoryName, context)
|
|
3214
|
-
: undefined,
|
|
3215
|
-
ecrImageTags: output.ecrImageTags != null ? deserializeAws_restJson1StringFilterList(output.ecrImageTags, context) : undefined,
|
|
3216
|
-
exploitAvailable: output.exploitAvailable != null
|
|
3217
|
-
? deserializeAws_restJson1StringFilterList(output.exploitAvailable, context)
|
|
3218
|
-
: undefined,
|
|
3219
|
-
findingArn: output.findingArn != null ? deserializeAws_restJson1StringFilterList(output.findingArn, context) : undefined,
|
|
3220
|
-
findingStatus: output.findingStatus != null
|
|
3221
|
-
? deserializeAws_restJson1StringFilterList(output.findingStatus, context)
|
|
3222
|
-
: undefined,
|
|
3223
|
-
findingType: output.findingType != null ? deserializeAws_restJson1StringFilterList(output.findingType, context) : undefined,
|
|
3224
|
-
firstObservedAt: output.firstObservedAt != null
|
|
3225
|
-
? deserializeAws_restJson1DateFilterList(output.firstObservedAt, context)
|
|
3226
|
-
: undefined,
|
|
3227
|
-
fixAvailable: output.fixAvailable != null ? deserializeAws_restJson1StringFilterList(output.fixAvailable, context) : undefined,
|
|
3228
|
-
inspectorScore: output.inspectorScore != null
|
|
3229
|
-
? deserializeAws_restJson1NumberFilterList(output.inspectorScore, context)
|
|
3230
|
-
: undefined,
|
|
3036
|
+
const de_FilterCriteria = (output, context) => {
|
|
3037
|
+
return {
|
|
3038
|
+
awsAccountId: output.awsAccountId != null ? de_StringFilterList(output.awsAccountId, context) : undefined,
|
|
3039
|
+
componentId: output.componentId != null ? de_StringFilterList(output.componentId, context) : undefined,
|
|
3040
|
+
componentType: output.componentType != null ? de_StringFilterList(output.componentType, context) : undefined,
|
|
3041
|
+
ec2InstanceImageId: output.ec2InstanceImageId != null ? de_StringFilterList(output.ec2InstanceImageId, context) : undefined,
|
|
3042
|
+
ec2InstanceSubnetId: output.ec2InstanceSubnetId != null ? de_StringFilterList(output.ec2InstanceSubnetId, context) : undefined,
|
|
3043
|
+
ec2InstanceVpcId: output.ec2InstanceVpcId != null ? de_StringFilterList(output.ec2InstanceVpcId, context) : undefined,
|
|
3044
|
+
ecrImageArchitecture: output.ecrImageArchitecture != null ? de_StringFilterList(output.ecrImageArchitecture, context) : undefined,
|
|
3045
|
+
ecrImageHash: output.ecrImageHash != null ? de_StringFilterList(output.ecrImageHash, context) : undefined,
|
|
3046
|
+
ecrImagePushedAt: output.ecrImagePushedAt != null ? de_DateFilterList(output.ecrImagePushedAt, context) : undefined,
|
|
3047
|
+
ecrImageRegistry: output.ecrImageRegistry != null ? de_StringFilterList(output.ecrImageRegistry, context) : undefined,
|
|
3048
|
+
ecrImageRepositoryName: output.ecrImageRepositoryName != null ? de_StringFilterList(output.ecrImageRepositoryName, context) : undefined,
|
|
3049
|
+
ecrImageTags: output.ecrImageTags != null ? de_StringFilterList(output.ecrImageTags, context) : undefined,
|
|
3050
|
+
exploitAvailable: output.exploitAvailable != null ? de_StringFilterList(output.exploitAvailable, context) : undefined,
|
|
3051
|
+
findingArn: output.findingArn != null ? de_StringFilterList(output.findingArn, context) : undefined,
|
|
3052
|
+
findingStatus: output.findingStatus != null ? de_StringFilterList(output.findingStatus, context) : undefined,
|
|
3053
|
+
findingType: output.findingType != null ? de_StringFilterList(output.findingType, context) : undefined,
|
|
3054
|
+
firstObservedAt: output.firstObservedAt != null ? de_DateFilterList(output.firstObservedAt, context) : undefined,
|
|
3055
|
+
fixAvailable: output.fixAvailable != null ? de_StringFilterList(output.fixAvailable, context) : undefined,
|
|
3056
|
+
inspectorScore: output.inspectorScore != null ? de_NumberFilterList(output.inspectorScore, context) : undefined,
|
|
3231
3057
|
lambdaFunctionExecutionRoleArn: output.lambdaFunctionExecutionRoleArn != null
|
|
3232
|
-
?
|
|
3058
|
+
? de_StringFilterList(output.lambdaFunctionExecutionRoleArn, context)
|
|
3233
3059
|
: undefined,
|
|
3234
3060
|
lambdaFunctionLastModifiedAt: output.lambdaFunctionLastModifiedAt != null
|
|
3235
|
-
?
|
|
3236
|
-
: undefined,
|
|
3237
|
-
lambdaFunctionLayers: output.lambdaFunctionLayers != null
|
|
3238
|
-
|
|
3239
|
-
|
|
3240
|
-
|
|
3241
|
-
|
|
3242
|
-
|
|
3243
|
-
|
|
3244
|
-
|
|
3245
|
-
|
|
3246
|
-
|
|
3247
|
-
|
|
3248
|
-
|
|
3249
|
-
|
|
3250
|
-
|
|
3251
|
-
|
|
3252
|
-
|
|
3253
|
-
|
|
3254
|
-
|
|
3255
|
-
|
|
3256
|
-
|
|
3257
|
-
resourceTags: output.resourceTags != null ? deserializeAws_restJson1MapFilterList(output.resourceTags, context) : undefined,
|
|
3258
|
-
resourceType: output.resourceType != null ? deserializeAws_restJson1StringFilterList(output.resourceType, context) : undefined,
|
|
3259
|
-
severity: output.severity != null ? deserializeAws_restJson1StringFilterList(output.severity, context) : undefined,
|
|
3260
|
-
title: output.title != null ? deserializeAws_restJson1StringFilterList(output.title, context) : undefined,
|
|
3261
|
-
updatedAt: output.updatedAt != null ? deserializeAws_restJson1DateFilterList(output.updatedAt, context) : undefined,
|
|
3262
|
-
vendorSeverity: output.vendorSeverity != null
|
|
3263
|
-
? deserializeAws_restJson1StringFilterList(output.vendorSeverity, context)
|
|
3264
|
-
: undefined,
|
|
3265
|
-
vulnerabilityId: output.vulnerabilityId != null
|
|
3266
|
-
? deserializeAws_restJson1StringFilterList(output.vulnerabilityId, context)
|
|
3267
|
-
: undefined,
|
|
3268
|
-
vulnerabilitySource: output.vulnerabilitySource != null
|
|
3269
|
-
? deserializeAws_restJson1StringFilterList(output.vulnerabilitySource, context)
|
|
3270
|
-
: undefined,
|
|
3271
|
-
vulnerablePackages: output.vulnerablePackages != null
|
|
3272
|
-
? deserializeAws_restJson1PackageFilterList(output.vulnerablePackages, context)
|
|
3273
|
-
: undefined,
|
|
3274
|
-
};
|
|
3275
|
-
};
|
|
3276
|
-
const deserializeAws_restJson1FilterList = (output, context) => {
|
|
3061
|
+
? de_DateFilterList(output.lambdaFunctionLastModifiedAt, context)
|
|
3062
|
+
: undefined,
|
|
3063
|
+
lambdaFunctionLayers: output.lambdaFunctionLayers != null ? de_StringFilterList(output.lambdaFunctionLayers, context) : undefined,
|
|
3064
|
+
lambdaFunctionName: output.lambdaFunctionName != null ? de_StringFilterList(output.lambdaFunctionName, context) : undefined,
|
|
3065
|
+
lambdaFunctionRuntime: output.lambdaFunctionRuntime != null ? de_StringFilterList(output.lambdaFunctionRuntime, context) : undefined,
|
|
3066
|
+
lastObservedAt: output.lastObservedAt != null ? de_DateFilterList(output.lastObservedAt, context) : undefined,
|
|
3067
|
+
networkProtocol: output.networkProtocol != null ? de_StringFilterList(output.networkProtocol, context) : undefined,
|
|
3068
|
+
portRange: output.portRange != null ? de_PortRangeFilterList(output.portRange, context) : undefined,
|
|
3069
|
+
relatedVulnerabilities: output.relatedVulnerabilities != null ? de_StringFilterList(output.relatedVulnerabilities, context) : undefined,
|
|
3070
|
+
resourceId: output.resourceId != null ? de_StringFilterList(output.resourceId, context) : undefined,
|
|
3071
|
+
resourceTags: output.resourceTags != null ? de_MapFilterList(output.resourceTags, context) : undefined,
|
|
3072
|
+
resourceType: output.resourceType != null ? de_StringFilterList(output.resourceType, context) : undefined,
|
|
3073
|
+
severity: output.severity != null ? de_StringFilterList(output.severity, context) : undefined,
|
|
3074
|
+
title: output.title != null ? de_StringFilterList(output.title, context) : undefined,
|
|
3075
|
+
updatedAt: output.updatedAt != null ? de_DateFilterList(output.updatedAt, context) : undefined,
|
|
3076
|
+
vendorSeverity: output.vendorSeverity != null ? de_StringFilterList(output.vendorSeverity, context) : undefined,
|
|
3077
|
+
vulnerabilityId: output.vulnerabilityId != null ? de_StringFilterList(output.vulnerabilityId, context) : undefined,
|
|
3078
|
+
vulnerabilitySource: output.vulnerabilitySource != null ? de_StringFilterList(output.vulnerabilitySource, context) : undefined,
|
|
3079
|
+
vulnerablePackages: output.vulnerablePackages != null ? de_PackageFilterList(output.vulnerablePackages, context) : undefined,
|
|
3080
|
+
};
|
|
3081
|
+
};
|
|
3082
|
+
const de_FilterList = (output, context) => {
|
|
3277
3083
|
const retVal = (output || [])
|
|
3278
3084
|
.filter((e) => e != null)
|
|
3279
3085
|
.map((entry) => {
|
|
3280
3086
|
if (entry === null) {
|
|
3281
3087
|
return null;
|
|
3282
3088
|
}
|
|
3283
|
-
return
|
|
3089
|
+
return de_Filter(entry, context);
|
|
3284
3090
|
});
|
|
3285
3091
|
return retVal;
|
|
3286
3092
|
};
|
|
3287
|
-
const
|
|
3093
|
+
const de_Finding = (output, context) => {
|
|
3288
3094
|
return {
|
|
3289
3095
|
awsAccountId: __expectString(output.awsAccountId),
|
|
3290
3096
|
description: __expectString(output.description),
|
|
3291
3097
|
exploitAvailable: __expectString(output.exploitAvailable),
|
|
3292
3098
|
exploitabilityDetails: output.exploitabilityDetails != null
|
|
3293
|
-
?
|
|
3099
|
+
? de_ExploitabilityDetails(output.exploitabilityDetails, context)
|
|
3294
3100
|
: undefined,
|
|
3295
3101
|
findingArn: __expectString(output.findingArn),
|
|
3296
3102
|
firstObservedAt: output.firstObservedAt != null
|
|
@@ -3299,19 +3105,19 @@ const deserializeAws_restJson1Finding = (output, context) => {
|
|
|
3299
3105
|
fixAvailable: __expectString(output.fixAvailable),
|
|
3300
3106
|
inspectorScore: __limitedParseDouble(output.inspectorScore),
|
|
3301
3107
|
inspectorScoreDetails: output.inspectorScoreDetails != null
|
|
3302
|
-
?
|
|
3108
|
+
? de_InspectorScoreDetails(output.inspectorScoreDetails, context)
|
|
3303
3109
|
: undefined,
|
|
3304
3110
|
lastObservedAt: output.lastObservedAt != null
|
|
3305
3111
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastObservedAt)))
|
|
3306
3112
|
: undefined,
|
|
3307
3113
|
networkReachabilityDetails: output.networkReachabilityDetails != null
|
|
3308
|
-
?
|
|
3114
|
+
? de_NetworkReachabilityDetails(output.networkReachabilityDetails, context)
|
|
3309
3115
|
: undefined,
|
|
3310
3116
|
packageVulnerabilityDetails: output.packageVulnerabilityDetails != null
|
|
3311
|
-
?
|
|
3117
|
+
? de_PackageVulnerabilityDetails(output.packageVulnerabilityDetails, context)
|
|
3312
3118
|
: undefined,
|
|
3313
|
-
remediation: output.remediation != null ?
|
|
3314
|
-
resources: output.resources != null ?
|
|
3119
|
+
remediation: output.remediation != null ? de_Remediation(output.remediation, context) : undefined,
|
|
3120
|
+
resources: output.resources != null ? de_ResourceList(output.resources, context) : undefined,
|
|
3315
3121
|
severity: __expectString(output.severity),
|
|
3316
3122
|
status: __expectString(output.status),
|
|
3317
3123
|
title: __expectString(output.title),
|
|
@@ -3319,45 +3125,41 @@ const deserializeAws_restJson1Finding = (output, context) => {
|
|
|
3319
3125
|
updatedAt: output.updatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updatedAt))) : undefined,
|
|
3320
3126
|
};
|
|
3321
3127
|
};
|
|
3322
|
-
const
|
|
3128
|
+
const de_FindingList = (output, context) => {
|
|
3323
3129
|
const retVal = (output || [])
|
|
3324
3130
|
.filter((e) => e != null)
|
|
3325
3131
|
.map((entry) => {
|
|
3326
3132
|
if (entry === null) {
|
|
3327
3133
|
return null;
|
|
3328
3134
|
}
|
|
3329
|
-
return
|
|
3135
|
+
return de_Finding(entry, context);
|
|
3330
3136
|
});
|
|
3331
3137
|
return retVal;
|
|
3332
3138
|
};
|
|
3333
|
-
const
|
|
3139
|
+
const de_FindingTypeAggregationResponse = (output, context) => {
|
|
3334
3140
|
return {
|
|
3335
3141
|
accountId: __expectString(output.accountId),
|
|
3336
|
-
severityCounts: output.severityCounts != null
|
|
3337
|
-
? deserializeAws_restJson1SeverityCounts(output.severityCounts, context)
|
|
3338
|
-
: undefined,
|
|
3142
|
+
severityCounts: output.severityCounts != null ? de_SeverityCounts(output.severityCounts, context) : undefined,
|
|
3339
3143
|
};
|
|
3340
3144
|
};
|
|
3341
|
-
const
|
|
3145
|
+
const de_FreeTrialAccountInfo = (output, context) => {
|
|
3342
3146
|
return {
|
|
3343
3147
|
accountId: __expectString(output.accountId),
|
|
3344
|
-
freeTrialInfo: output.freeTrialInfo != null
|
|
3345
|
-
? deserializeAws_restJson1FreeTrialInfoList(output.freeTrialInfo, context)
|
|
3346
|
-
: undefined,
|
|
3148
|
+
freeTrialInfo: output.freeTrialInfo != null ? de_FreeTrialInfoList(output.freeTrialInfo, context) : undefined,
|
|
3347
3149
|
};
|
|
3348
3150
|
};
|
|
3349
|
-
const
|
|
3151
|
+
const de_FreeTrialAccountInfoList = (output, context) => {
|
|
3350
3152
|
const retVal = (output || [])
|
|
3351
3153
|
.filter((e) => e != null)
|
|
3352
3154
|
.map((entry) => {
|
|
3353
3155
|
if (entry === null) {
|
|
3354
3156
|
return null;
|
|
3355
3157
|
}
|
|
3356
|
-
return
|
|
3158
|
+
return de_FreeTrialAccountInfo(entry, context);
|
|
3357
3159
|
});
|
|
3358
3160
|
return retVal;
|
|
3359
3161
|
};
|
|
3360
|
-
const
|
|
3162
|
+
const de_FreeTrialInfo = (output, context) => {
|
|
3361
3163
|
return {
|
|
3362
3164
|
end: output.end != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.end))) : undefined,
|
|
3363
3165
|
start: output.start != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.start))) : undefined,
|
|
@@ -3365,47 +3167,45 @@ const deserializeAws_restJson1FreeTrialInfo = (output, context) => {
|
|
|
3365
3167
|
type: __expectString(output.type),
|
|
3366
3168
|
};
|
|
3367
3169
|
};
|
|
3368
|
-
const
|
|
3170
|
+
const de_FreeTrialInfoError = (output, context) => {
|
|
3369
3171
|
return {
|
|
3370
3172
|
accountId: __expectString(output.accountId),
|
|
3371
3173
|
code: __expectString(output.code),
|
|
3372
3174
|
message: __expectString(output.message),
|
|
3373
3175
|
};
|
|
3374
3176
|
};
|
|
3375
|
-
const
|
|
3177
|
+
const de_FreeTrialInfoErrorList = (output, context) => {
|
|
3376
3178
|
const retVal = (output || [])
|
|
3377
3179
|
.filter((e) => e != null)
|
|
3378
3180
|
.map((entry) => {
|
|
3379
3181
|
if (entry === null) {
|
|
3380
3182
|
return null;
|
|
3381
3183
|
}
|
|
3382
|
-
return
|
|
3184
|
+
return de_FreeTrialInfoError(entry, context);
|
|
3383
3185
|
});
|
|
3384
3186
|
return retVal;
|
|
3385
3187
|
};
|
|
3386
|
-
const
|
|
3188
|
+
const de_FreeTrialInfoList = (output, context) => {
|
|
3387
3189
|
const retVal = (output || [])
|
|
3388
3190
|
.filter((e) => e != null)
|
|
3389
3191
|
.map((entry) => {
|
|
3390
3192
|
if (entry === null) {
|
|
3391
3193
|
return null;
|
|
3392
3194
|
}
|
|
3393
|
-
return
|
|
3195
|
+
return de_FreeTrialInfo(entry, context);
|
|
3394
3196
|
});
|
|
3395
3197
|
return retVal;
|
|
3396
3198
|
};
|
|
3397
|
-
const
|
|
3199
|
+
const de_ImageLayerAggregationResponse = (output, context) => {
|
|
3398
3200
|
return {
|
|
3399
3201
|
accountId: __expectString(output.accountId),
|
|
3400
3202
|
layerHash: __expectString(output.layerHash),
|
|
3401
3203
|
repository: __expectString(output.repository),
|
|
3402
3204
|
resourceId: __expectString(output.resourceId),
|
|
3403
|
-
severityCounts: output.severityCounts != null
|
|
3404
|
-
? deserializeAws_restJson1SeverityCounts(output.severityCounts, context)
|
|
3405
|
-
: undefined,
|
|
3205
|
+
severityCounts: output.severityCounts != null ? de_SeverityCounts(output.severityCounts, context) : undefined,
|
|
3406
3206
|
};
|
|
3407
3207
|
};
|
|
3408
|
-
const
|
|
3208
|
+
const de_ImageTagList = (output, context) => {
|
|
3409
3209
|
const retVal = (output || [])
|
|
3410
3210
|
.filter((e) => e != null)
|
|
3411
3211
|
.map((entry) => {
|
|
@@ -3416,12 +3216,12 @@ const deserializeAws_restJson1ImageTagList = (output, context) => {
|
|
|
3416
3216
|
});
|
|
3417
3217
|
return retVal;
|
|
3418
3218
|
};
|
|
3419
|
-
const
|
|
3219
|
+
const de_InspectorScoreDetails = (output, context) => {
|
|
3420
3220
|
return {
|
|
3421
|
-
adjustedCvss: output.adjustedCvss != null ?
|
|
3221
|
+
adjustedCvss: output.adjustedCvss != null ? de_CvssScoreDetails(output.adjustedCvss, context) : undefined,
|
|
3422
3222
|
};
|
|
3423
3223
|
};
|
|
3424
|
-
const
|
|
3224
|
+
const de_IpV4AddressList = (output, context) => {
|
|
3425
3225
|
const retVal = (output || [])
|
|
3426
3226
|
.filter((e) => e != null)
|
|
3427
3227
|
.map((entry) => {
|
|
@@ -3432,7 +3232,7 @@ const deserializeAws_restJson1IpV4AddressList = (output, context) => {
|
|
|
3432
3232
|
});
|
|
3433
3233
|
return retVal;
|
|
3434
3234
|
};
|
|
3435
|
-
const
|
|
3235
|
+
const de_IpV6AddressList = (output, context) => {
|
|
3436
3236
|
const retVal = (output || [])
|
|
3437
3237
|
.filter((e) => e != null)
|
|
3438
3238
|
.map((entry) => {
|
|
@@ -3443,41 +3243,37 @@ const deserializeAws_restJson1IpV6AddressList = (output, context) => {
|
|
|
3443
3243
|
});
|
|
3444
3244
|
return retVal;
|
|
3445
3245
|
};
|
|
3446
|
-
const
|
|
3246
|
+
const de_LambdaFunctionAggregationResponse = (output, context) => {
|
|
3447
3247
|
return {
|
|
3448
3248
|
accountId: __expectString(output.accountId),
|
|
3449
3249
|
functionName: __expectString(output.functionName),
|
|
3450
|
-
lambdaTags: output.lambdaTags != null ?
|
|
3250
|
+
lambdaTags: output.lambdaTags != null ? de_TagMap(output.lambdaTags, context) : undefined,
|
|
3451
3251
|
lastModifiedAt: output.lastModifiedAt != null
|
|
3452
3252
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastModifiedAt)))
|
|
3453
3253
|
: undefined,
|
|
3454
3254
|
resourceId: __expectString(output.resourceId),
|
|
3455
3255
|
runtime: __expectString(output.runtime),
|
|
3456
|
-
severityCounts: output.severityCounts != null
|
|
3457
|
-
? deserializeAws_restJson1SeverityCounts(output.severityCounts, context)
|
|
3458
|
-
: undefined,
|
|
3256
|
+
severityCounts: output.severityCounts != null ? de_SeverityCounts(output.severityCounts, context) : undefined,
|
|
3459
3257
|
};
|
|
3460
3258
|
};
|
|
3461
|
-
const
|
|
3259
|
+
const de_LambdaFunctionMetadata = (output, context) => {
|
|
3462
3260
|
return {
|
|
3463
3261
|
functionName: __expectString(output.functionName),
|
|
3464
|
-
functionTags: output.functionTags != null ?
|
|
3465
|
-
layers: output.layers != null ?
|
|
3262
|
+
functionTags: output.functionTags != null ? de_TagMap(output.functionTags, context) : undefined,
|
|
3263
|
+
layers: output.layers != null ? de_LambdaLayerList(output.layers, context) : undefined,
|
|
3466
3264
|
runtime: __expectString(output.runtime),
|
|
3467
3265
|
};
|
|
3468
3266
|
};
|
|
3469
|
-
const
|
|
3267
|
+
const de_LambdaLayerAggregationResponse = (output, context) => {
|
|
3470
3268
|
return {
|
|
3471
3269
|
accountId: __expectString(output.accountId),
|
|
3472
3270
|
functionName: __expectString(output.functionName),
|
|
3473
3271
|
layerArn: __expectString(output.layerArn),
|
|
3474
3272
|
resourceId: __expectString(output.resourceId),
|
|
3475
|
-
severityCounts: output.severityCounts != null
|
|
3476
|
-
? deserializeAws_restJson1SeverityCounts(output.severityCounts, context)
|
|
3477
|
-
: undefined,
|
|
3273
|
+
severityCounts: output.severityCounts != null ? de_SeverityCounts(output.severityCounts, context) : undefined,
|
|
3478
3274
|
};
|
|
3479
3275
|
};
|
|
3480
|
-
const
|
|
3276
|
+
const de_LambdaLayerList = (output, context) => {
|
|
3481
3277
|
const retVal = (output || [])
|
|
3482
3278
|
.filter((e) => e != null)
|
|
3483
3279
|
.map((entry) => {
|
|
@@ -3488,16 +3284,14 @@ const deserializeAws_restJson1LambdaLayerList = (output, context) => {
|
|
|
3488
3284
|
});
|
|
3489
3285
|
return retVal;
|
|
3490
3286
|
};
|
|
3491
|
-
const
|
|
3287
|
+
const de_LambdaVpcConfig = (output, context) => {
|
|
3492
3288
|
return {
|
|
3493
|
-
securityGroupIds: output.securityGroupIds != null
|
|
3494
|
-
|
|
3495
|
-
: undefined,
|
|
3496
|
-
subnetIds: output.subnetIds != null ? deserializeAws_restJson1SubnetIdList(output.subnetIds, context) : undefined,
|
|
3289
|
+
securityGroupIds: output.securityGroupIds != null ? de_SecurityGroupIdList(output.securityGroupIds, context) : undefined,
|
|
3290
|
+
subnetIds: output.subnetIds != null ? de_SubnetIdList(output.subnetIds, context) : undefined,
|
|
3497
3291
|
vpcId: __expectString(output.vpcId),
|
|
3498
3292
|
};
|
|
3499
3293
|
};
|
|
3500
|
-
const
|
|
3294
|
+
const de_LayerList = (output, context) => {
|
|
3501
3295
|
const retVal = (output || [])
|
|
3502
3296
|
.filter((e) => e != null)
|
|
3503
3297
|
.map((entry) => {
|
|
@@ -3508,25 +3302,25 @@ const deserializeAws_restJson1LayerList = (output, context) => {
|
|
|
3508
3302
|
});
|
|
3509
3303
|
return retVal;
|
|
3510
3304
|
};
|
|
3511
|
-
const
|
|
3305
|
+
const de_MapFilter = (output, context) => {
|
|
3512
3306
|
return {
|
|
3513
3307
|
comparison: __expectString(output.comparison),
|
|
3514
3308
|
key: __expectString(output.key),
|
|
3515
3309
|
value: __expectString(output.value),
|
|
3516
3310
|
};
|
|
3517
3311
|
};
|
|
3518
|
-
const
|
|
3312
|
+
const de_MapFilterList = (output, context) => {
|
|
3519
3313
|
const retVal = (output || [])
|
|
3520
3314
|
.filter((e) => e != null)
|
|
3521
3315
|
.map((entry) => {
|
|
3522
3316
|
if (entry === null) {
|
|
3523
3317
|
return null;
|
|
3524
3318
|
}
|
|
3525
|
-
return
|
|
3319
|
+
return de_MapFilter(entry, context);
|
|
3526
3320
|
});
|
|
3527
3321
|
return retVal;
|
|
3528
3322
|
};
|
|
3529
|
-
const
|
|
3323
|
+
const de_Member = (output, context) => {
|
|
3530
3324
|
return {
|
|
3531
3325
|
accountId: __expectString(output.accountId),
|
|
3532
3326
|
delegatedAdminAccountId: __expectString(output.delegatedAdminAccountId),
|
|
@@ -3534,30 +3328,30 @@ const deserializeAws_restJson1Member = (output, context) => {
|
|
|
3534
3328
|
updatedAt: output.updatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updatedAt))) : undefined,
|
|
3535
3329
|
};
|
|
3536
3330
|
};
|
|
3537
|
-
const
|
|
3331
|
+
const de_MemberList = (output, context) => {
|
|
3538
3332
|
const retVal = (output || [])
|
|
3539
3333
|
.filter((e) => e != null)
|
|
3540
3334
|
.map((entry) => {
|
|
3541
3335
|
if (entry === null) {
|
|
3542
3336
|
return null;
|
|
3543
3337
|
}
|
|
3544
|
-
return
|
|
3338
|
+
return de_Member(entry, context);
|
|
3545
3339
|
});
|
|
3546
3340
|
return retVal;
|
|
3547
3341
|
};
|
|
3548
|
-
const
|
|
3342
|
+
const de_NetworkPath = (output, context) => {
|
|
3549
3343
|
return {
|
|
3550
|
-
steps: output.steps != null ?
|
|
3344
|
+
steps: output.steps != null ? de_StepList(output.steps, context) : undefined,
|
|
3551
3345
|
};
|
|
3552
3346
|
};
|
|
3553
|
-
const
|
|
3347
|
+
const de_NetworkReachabilityDetails = (output, context) => {
|
|
3554
3348
|
return {
|
|
3555
|
-
networkPath: output.networkPath != null ?
|
|
3556
|
-
openPortRange: output.openPortRange != null ?
|
|
3349
|
+
networkPath: output.networkPath != null ? de_NetworkPath(output.networkPath, context) : undefined,
|
|
3350
|
+
openPortRange: output.openPortRange != null ? de_PortRange(output.openPortRange, context) : undefined,
|
|
3557
3351
|
protocol: __expectString(output.protocol),
|
|
3558
3352
|
};
|
|
3559
3353
|
};
|
|
3560
|
-
const
|
|
3354
|
+
const de_NonEmptyStringList = (output, context) => {
|
|
3561
3355
|
const retVal = (output || [])
|
|
3562
3356
|
.filter((e) => e != null)
|
|
3563
3357
|
.map((entry) => {
|
|
@@ -3568,66 +3362,58 @@ const deserializeAws_restJson1NonEmptyStringList = (output, context) => {
|
|
|
3568
3362
|
});
|
|
3569
3363
|
return retVal;
|
|
3570
3364
|
};
|
|
3571
|
-
const
|
|
3365
|
+
const de_NumberFilter = (output, context) => {
|
|
3572
3366
|
return {
|
|
3573
3367
|
lowerInclusive: __limitedParseDouble(output.lowerInclusive),
|
|
3574
3368
|
upperInclusive: __limitedParseDouble(output.upperInclusive),
|
|
3575
3369
|
};
|
|
3576
3370
|
};
|
|
3577
|
-
const
|
|
3371
|
+
const de_NumberFilterList = (output, context) => {
|
|
3578
3372
|
const retVal = (output || [])
|
|
3579
3373
|
.filter((e) => e != null)
|
|
3580
3374
|
.map((entry) => {
|
|
3581
3375
|
if (entry === null) {
|
|
3582
3376
|
return null;
|
|
3583
3377
|
}
|
|
3584
|
-
return
|
|
3378
|
+
return de_NumberFilter(entry, context);
|
|
3585
3379
|
});
|
|
3586
3380
|
return retVal;
|
|
3587
3381
|
};
|
|
3588
|
-
const
|
|
3382
|
+
const de_PackageAggregationResponse = (output, context) => {
|
|
3589
3383
|
return {
|
|
3590
3384
|
accountId: __expectString(output.accountId),
|
|
3591
3385
|
packageName: __expectString(output.packageName),
|
|
3592
|
-
severityCounts: output.severityCounts != null
|
|
3593
|
-
? deserializeAws_restJson1SeverityCounts(output.severityCounts, context)
|
|
3594
|
-
: undefined,
|
|
3386
|
+
severityCounts: output.severityCounts != null ? de_SeverityCounts(output.severityCounts, context) : undefined,
|
|
3595
3387
|
};
|
|
3596
3388
|
};
|
|
3597
|
-
const
|
|
3389
|
+
const de_PackageFilter = (output, context) => {
|
|
3598
3390
|
return {
|
|
3599
|
-
architecture: output.architecture != null ?
|
|
3600
|
-
epoch: output.epoch != null ?
|
|
3601
|
-
name: output.name != null ?
|
|
3602
|
-
release: output.release != null ?
|
|
3603
|
-
sourceLambdaLayerArn: output.sourceLambdaLayerArn != null
|
|
3604
|
-
|
|
3605
|
-
|
|
3606
|
-
sourceLayerHash: output.sourceLayerHash != null
|
|
3607
|
-
? deserializeAws_restJson1StringFilter(output.sourceLayerHash, context)
|
|
3608
|
-
: undefined,
|
|
3609
|
-
version: output.version != null ? deserializeAws_restJson1StringFilter(output.version, context) : undefined,
|
|
3391
|
+
architecture: output.architecture != null ? de_StringFilter(output.architecture, context) : undefined,
|
|
3392
|
+
epoch: output.epoch != null ? de_NumberFilter(output.epoch, context) : undefined,
|
|
3393
|
+
name: output.name != null ? de_StringFilter(output.name, context) : undefined,
|
|
3394
|
+
release: output.release != null ? de_StringFilter(output.release, context) : undefined,
|
|
3395
|
+
sourceLambdaLayerArn: output.sourceLambdaLayerArn != null ? de_StringFilter(output.sourceLambdaLayerArn, context) : undefined,
|
|
3396
|
+
sourceLayerHash: output.sourceLayerHash != null ? de_StringFilter(output.sourceLayerHash, context) : undefined,
|
|
3397
|
+
version: output.version != null ? de_StringFilter(output.version, context) : undefined,
|
|
3610
3398
|
};
|
|
3611
3399
|
};
|
|
3612
|
-
const
|
|
3400
|
+
const de_PackageFilterList = (output, context) => {
|
|
3613
3401
|
const retVal = (output || [])
|
|
3614
3402
|
.filter((e) => e != null)
|
|
3615
3403
|
.map((entry) => {
|
|
3616
3404
|
if (entry === null) {
|
|
3617
3405
|
return null;
|
|
3618
3406
|
}
|
|
3619
|
-
return
|
|
3407
|
+
return de_PackageFilter(entry, context);
|
|
3620
3408
|
});
|
|
3621
3409
|
return retVal;
|
|
3622
3410
|
};
|
|
3623
|
-
const
|
|
3411
|
+
const de_PackageVulnerabilityDetails = (output, context) => {
|
|
3624
3412
|
return {
|
|
3625
|
-
cvss: output.cvss != null ?
|
|
3626
|
-
referenceUrls: output.referenceUrls != null
|
|
3627
|
-
? deserializeAws_restJson1NonEmptyStringList(output.referenceUrls, context)
|
|
3628
|
-
: undefined,
|
|
3413
|
+
cvss: output.cvss != null ? de_CvssScoreList(output.cvss, context) : undefined,
|
|
3414
|
+
referenceUrls: output.referenceUrls != null ? de_NonEmptyStringList(output.referenceUrls, context) : undefined,
|
|
3629
3415
|
relatedVulnerabilities: output.relatedVulnerabilities != null
|
|
3630
|
-
?
|
|
3416
|
+
? de_VulnerabilityIdList(output.relatedVulnerabilities, context)
|
|
3631
3417
|
: undefined,
|
|
3632
3418
|
source: __expectString(output.source),
|
|
3633
3419
|
sourceUrl: __expectString(output.sourceUrl),
|
|
@@ -3639,141 +3425,127 @@ const deserializeAws_restJson1PackageVulnerabilityDetails = (output, context) =>
|
|
|
3639
3425
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.vendorUpdatedAt)))
|
|
3640
3426
|
: undefined,
|
|
3641
3427
|
vulnerabilityId: __expectString(output.vulnerabilityId),
|
|
3642
|
-
vulnerablePackages: output.vulnerablePackages != null
|
|
3643
|
-
? deserializeAws_restJson1VulnerablePackageList(output.vulnerablePackages, context)
|
|
3644
|
-
: undefined,
|
|
3428
|
+
vulnerablePackages: output.vulnerablePackages != null ? de_VulnerablePackageList(output.vulnerablePackages, context) : undefined,
|
|
3645
3429
|
};
|
|
3646
3430
|
};
|
|
3647
|
-
const
|
|
3431
|
+
const de_Permission = (output, context) => {
|
|
3648
3432
|
return {
|
|
3649
3433
|
operation: __expectString(output.operation),
|
|
3650
3434
|
service: __expectString(output.service),
|
|
3651
3435
|
};
|
|
3652
3436
|
};
|
|
3653
|
-
const
|
|
3437
|
+
const de_Permissions = (output, context) => {
|
|
3654
3438
|
const retVal = (output || [])
|
|
3655
3439
|
.filter((e) => e != null)
|
|
3656
3440
|
.map((entry) => {
|
|
3657
3441
|
if (entry === null) {
|
|
3658
3442
|
return null;
|
|
3659
3443
|
}
|
|
3660
|
-
return
|
|
3444
|
+
return de_Permission(entry, context);
|
|
3661
3445
|
});
|
|
3662
3446
|
return retVal;
|
|
3663
3447
|
};
|
|
3664
|
-
const
|
|
3448
|
+
const de_PortRange = (output, context) => {
|
|
3665
3449
|
return {
|
|
3666
3450
|
begin: __expectInt32(output.begin),
|
|
3667
3451
|
end: __expectInt32(output.end),
|
|
3668
3452
|
};
|
|
3669
3453
|
};
|
|
3670
|
-
const
|
|
3454
|
+
const de_PortRangeFilter = (output, context) => {
|
|
3671
3455
|
return {
|
|
3672
3456
|
beginInclusive: __expectInt32(output.beginInclusive),
|
|
3673
3457
|
endInclusive: __expectInt32(output.endInclusive),
|
|
3674
3458
|
};
|
|
3675
3459
|
};
|
|
3676
|
-
const
|
|
3460
|
+
const de_PortRangeFilterList = (output, context) => {
|
|
3677
3461
|
const retVal = (output || [])
|
|
3678
3462
|
.filter((e) => e != null)
|
|
3679
3463
|
.map((entry) => {
|
|
3680
3464
|
if (entry === null) {
|
|
3681
3465
|
return null;
|
|
3682
3466
|
}
|
|
3683
|
-
return
|
|
3467
|
+
return de_PortRangeFilter(entry, context);
|
|
3684
3468
|
});
|
|
3685
3469
|
return retVal;
|
|
3686
3470
|
};
|
|
3687
|
-
const
|
|
3471
|
+
const de_Recommendation = (output, context) => {
|
|
3688
3472
|
return {
|
|
3689
3473
|
Url: __expectString(output.Url),
|
|
3690
3474
|
text: __expectString(output.text),
|
|
3691
3475
|
};
|
|
3692
3476
|
};
|
|
3693
|
-
const
|
|
3477
|
+
const de_Remediation = (output, context) => {
|
|
3694
3478
|
return {
|
|
3695
|
-
recommendation: output.recommendation != null
|
|
3696
|
-
? deserializeAws_restJson1Recommendation(output.recommendation, context)
|
|
3697
|
-
: undefined,
|
|
3479
|
+
recommendation: output.recommendation != null ? de_Recommendation(output.recommendation, context) : undefined,
|
|
3698
3480
|
};
|
|
3699
3481
|
};
|
|
3700
|
-
const
|
|
3482
|
+
const de_RepositoryAggregationResponse = (output, context) => {
|
|
3701
3483
|
return {
|
|
3702
3484
|
accountId: __expectString(output.accountId),
|
|
3703
3485
|
affectedImages: __expectLong(output.affectedImages),
|
|
3704
3486
|
repository: __expectString(output.repository),
|
|
3705
|
-
severityCounts: output.severityCounts != null
|
|
3706
|
-
? deserializeAws_restJson1SeverityCounts(output.severityCounts, context)
|
|
3707
|
-
: undefined,
|
|
3487
|
+
severityCounts: output.severityCounts != null ? de_SeverityCounts(output.severityCounts, context) : undefined,
|
|
3708
3488
|
};
|
|
3709
3489
|
};
|
|
3710
|
-
const
|
|
3490
|
+
const de_Resource = (output, context) => {
|
|
3711
3491
|
return {
|
|
3712
|
-
details: output.details != null ?
|
|
3492
|
+
details: output.details != null ? de_ResourceDetails(output.details, context) : undefined,
|
|
3713
3493
|
id: __expectString(output.id),
|
|
3714
3494
|
partition: __expectString(output.partition),
|
|
3715
3495
|
region: __expectString(output.region),
|
|
3716
|
-
tags: output.tags != null ?
|
|
3496
|
+
tags: output.tags != null ? de_TagMap(output.tags, context) : undefined,
|
|
3717
3497
|
type: __expectString(output.type),
|
|
3718
3498
|
};
|
|
3719
3499
|
};
|
|
3720
|
-
const
|
|
3500
|
+
const de_ResourceDetails = (output, context) => {
|
|
3721
3501
|
return {
|
|
3722
|
-
awsEc2Instance: output.awsEc2Instance != null
|
|
3723
|
-
? deserializeAws_restJson1AwsEc2InstanceDetails(output.awsEc2Instance, context)
|
|
3724
|
-
: undefined,
|
|
3502
|
+
awsEc2Instance: output.awsEc2Instance != null ? de_AwsEc2InstanceDetails(output.awsEc2Instance, context) : undefined,
|
|
3725
3503
|
awsEcrContainerImage: output.awsEcrContainerImage != null
|
|
3726
|
-
?
|
|
3727
|
-
: undefined,
|
|
3728
|
-
awsLambdaFunction: output.awsLambdaFunction != null
|
|
3729
|
-
? deserializeAws_restJson1AwsLambdaFunctionDetails(output.awsLambdaFunction, context)
|
|
3504
|
+
? de_AwsEcrContainerImageDetails(output.awsEcrContainerImage, context)
|
|
3730
3505
|
: undefined,
|
|
3506
|
+
awsLambdaFunction: output.awsLambdaFunction != null ? de_AwsLambdaFunctionDetails(output.awsLambdaFunction, context) : undefined,
|
|
3731
3507
|
};
|
|
3732
3508
|
};
|
|
3733
|
-
const
|
|
3509
|
+
const de_ResourceList = (output, context) => {
|
|
3734
3510
|
const retVal = (output || [])
|
|
3735
3511
|
.filter((e) => e != null)
|
|
3736
3512
|
.map((entry) => {
|
|
3737
3513
|
if (entry === null) {
|
|
3738
3514
|
return null;
|
|
3739
3515
|
}
|
|
3740
|
-
return
|
|
3516
|
+
return de_Resource(entry, context);
|
|
3741
3517
|
});
|
|
3742
3518
|
return retVal;
|
|
3743
3519
|
};
|
|
3744
|
-
const
|
|
3520
|
+
const de_ResourceScanMetadata = (output, context) => {
|
|
3745
3521
|
return {
|
|
3746
|
-
ec2: output.ec2 != null ?
|
|
3747
|
-
ecrImage: output.ecrImage != null ?
|
|
3748
|
-
ecrRepository: output.ecrRepository != null
|
|
3749
|
-
|
|
3750
|
-
: undefined,
|
|
3751
|
-
lambdaFunction: output.lambdaFunction != null
|
|
3752
|
-
? deserializeAws_restJson1LambdaFunctionMetadata(output.lambdaFunction, context)
|
|
3753
|
-
: undefined,
|
|
3522
|
+
ec2: output.ec2 != null ? de_Ec2Metadata(output.ec2, context) : undefined,
|
|
3523
|
+
ecrImage: output.ecrImage != null ? de_EcrContainerImageMetadata(output.ecrImage, context) : undefined,
|
|
3524
|
+
ecrRepository: output.ecrRepository != null ? de_EcrRepositoryMetadata(output.ecrRepository, context) : undefined,
|
|
3525
|
+
lambdaFunction: output.lambdaFunction != null ? de_LambdaFunctionMetadata(output.lambdaFunction, context) : undefined,
|
|
3754
3526
|
};
|
|
3755
3527
|
};
|
|
3756
|
-
const
|
|
3528
|
+
const de_ResourceState = (output, context) => {
|
|
3757
3529
|
return {
|
|
3758
|
-
ec2: output.ec2 != null ?
|
|
3759
|
-
ecr: output.ecr != null ?
|
|
3760
|
-
lambda: output.lambda != null ?
|
|
3530
|
+
ec2: output.ec2 != null ? de_State(output.ec2, context) : undefined,
|
|
3531
|
+
ecr: output.ecr != null ? de_State(output.ecr, context) : undefined,
|
|
3532
|
+
lambda: output.lambda != null ? de_State(output.lambda, context) : undefined,
|
|
3761
3533
|
};
|
|
3762
3534
|
};
|
|
3763
|
-
const
|
|
3535
|
+
const de_ResourceStatus = (output, context) => {
|
|
3764
3536
|
return {
|
|
3765
3537
|
ec2: __expectString(output.ec2),
|
|
3766
3538
|
ecr: __expectString(output.ecr),
|
|
3767
3539
|
lambda: __expectString(output.lambda),
|
|
3768
3540
|
};
|
|
3769
3541
|
};
|
|
3770
|
-
const
|
|
3542
|
+
const de_ScanStatus = (output, context) => {
|
|
3771
3543
|
return {
|
|
3772
3544
|
reason: __expectString(output.reason),
|
|
3773
3545
|
statusCode: __expectString(output.statusCode),
|
|
3774
3546
|
};
|
|
3775
3547
|
};
|
|
3776
|
-
const
|
|
3548
|
+
const de_SecurityGroupIdList = (output, context) => {
|
|
3777
3549
|
const retVal = (output || [])
|
|
3778
3550
|
.filter((e) => e != null)
|
|
3779
3551
|
.map((entry) => {
|
|
@@ -3784,7 +3556,7 @@ const deserializeAws_restJson1SecurityGroupIdList = (output, context) => {
|
|
|
3784
3556
|
});
|
|
3785
3557
|
return retVal;
|
|
3786
3558
|
};
|
|
3787
|
-
const
|
|
3559
|
+
const de_SeverityCounts = (output, context) => {
|
|
3788
3560
|
return {
|
|
3789
3561
|
all: __expectLong(output.all),
|
|
3790
3562
|
critical: __expectLong(output.critical),
|
|
@@ -3792,48 +3564,48 @@ const deserializeAws_restJson1SeverityCounts = (output, context) => {
|
|
|
3792
3564
|
medium: __expectLong(output.medium),
|
|
3793
3565
|
};
|
|
3794
3566
|
};
|
|
3795
|
-
const
|
|
3567
|
+
const de_State = (output, context) => {
|
|
3796
3568
|
return {
|
|
3797
3569
|
errorCode: __expectString(output.errorCode),
|
|
3798
3570
|
errorMessage: __expectString(output.errorMessage),
|
|
3799
3571
|
status: __expectString(output.status),
|
|
3800
3572
|
};
|
|
3801
3573
|
};
|
|
3802
|
-
const
|
|
3574
|
+
const de_Step = (output, context) => {
|
|
3803
3575
|
return {
|
|
3804
3576
|
componentId: __expectString(output.componentId),
|
|
3805
3577
|
componentType: __expectString(output.componentType),
|
|
3806
3578
|
};
|
|
3807
3579
|
};
|
|
3808
|
-
const
|
|
3580
|
+
const de_StepList = (output, context) => {
|
|
3809
3581
|
const retVal = (output || [])
|
|
3810
3582
|
.filter((e) => e != null)
|
|
3811
3583
|
.map((entry) => {
|
|
3812
3584
|
if (entry === null) {
|
|
3813
3585
|
return null;
|
|
3814
3586
|
}
|
|
3815
|
-
return
|
|
3587
|
+
return de_Step(entry, context);
|
|
3816
3588
|
});
|
|
3817
3589
|
return retVal;
|
|
3818
3590
|
};
|
|
3819
|
-
const
|
|
3591
|
+
const de_StringFilter = (output, context) => {
|
|
3820
3592
|
return {
|
|
3821
3593
|
comparison: __expectString(output.comparison),
|
|
3822
3594
|
value: __expectString(output.value),
|
|
3823
3595
|
};
|
|
3824
3596
|
};
|
|
3825
|
-
const
|
|
3597
|
+
const de_StringFilterList = (output, context) => {
|
|
3826
3598
|
const retVal = (output || [])
|
|
3827
3599
|
.filter((e) => e != null)
|
|
3828
3600
|
.map((entry) => {
|
|
3829
3601
|
if (entry === null) {
|
|
3830
3602
|
return null;
|
|
3831
3603
|
}
|
|
3832
|
-
return
|
|
3604
|
+
return de_StringFilter(entry, context);
|
|
3833
3605
|
});
|
|
3834
3606
|
return retVal;
|
|
3835
3607
|
};
|
|
3836
|
-
const
|
|
3608
|
+
const de_StringList = (output, context) => {
|
|
3837
3609
|
const retVal = (output || [])
|
|
3838
3610
|
.filter((e) => e != null)
|
|
3839
3611
|
.map((entry) => {
|
|
@@ -3844,7 +3616,7 @@ const deserializeAws_restJson1StringList = (output, context) => {
|
|
|
3844
3616
|
});
|
|
3845
3617
|
return retVal;
|
|
3846
3618
|
};
|
|
3847
|
-
const
|
|
3619
|
+
const de_SubnetIdList = (output, context) => {
|
|
3848
3620
|
const retVal = (output || [])
|
|
3849
3621
|
.filter((e) => e != null)
|
|
3850
3622
|
.map((entry) => {
|
|
@@ -3855,7 +3627,7 @@ const deserializeAws_restJson1SubnetIdList = (output, context) => {
|
|
|
3855
3627
|
});
|
|
3856
3628
|
return retVal;
|
|
3857
3629
|
};
|
|
3858
|
-
const
|
|
3630
|
+
const de_TagList = (output, context) => {
|
|
3859
3631
|
const retVal = (output || [])
|
|
3860
3632
|
.filter((e) => e != null)
|
|
3861
3633
|
.map((entry) => {
|
|
@@ -3866,7 +3638,7 @@ const deserializeAws_restJson1TagList = (output, context) => {
|
|
|
3866
3638
|
});
|
|
3867
3639
|
return retVal;
|
|
3868
3640
|
};
|
|
3869
|
-
const
|
|
3641
|
+
const de_TagMap = (output, context) => {
|
|
3870
3642
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3871
3643
|
if (value === null) {
|
|
3872
3644
|
return acc;
|
|
@@ -3875,17 +3647,15 @@ const deserializeAws_restJson1TagMap = (output, context) => {
|
|
|
3875
3647
|
return acc;
|
|
3876
3648
|
}, {});
|
|
3877
3649
|
};
|
|
3878
|
-
const
|
|
3650
|
+
const de_TitleAggregationResponse = (output, context) => {
|
|
3879
3651
|
return {
|
|
3880
3652
|
accountId: __expectString(output.accountId),
|
|
3881
|
-
severityCounts: output.severityCounts != null
|
|
3882
|
-
? deserializeAws_restJson1SeverityCounts(output.severityCounts, context)
|
|
3883
|
-
: undefined,
|
|
3653
|
+
severityCounts: output.severityCounts != null ? de_SeverityCounts(output.severityCounts, context) : undefined,
|
|
3884
3654
|
title: __expectString(output.title),
|
|
3885
3655
|
vulnerabilityId: __expectString(output.vulnerabilityId),
|
|
3886
3656
|
};
|
|
3887
3657
|
};
|
|
3888
|
-
const
|
|
3658
|
+
const de_Usage = (output, context) => {
|
|
3889
3659
|
return {
|
|
3890
3660
|
currency: __expectString(output.currency),
|
|
3891
3661
|
estimatedMonthlyCost: __limitedParseDouble(output.estimatedMonthlyCost),
|
|
@@ -3893,52 +3663,52 @@ const deserializeAws_restJson1Usage = (output, context) => {
|
|
|
3893
3663
|
type: __expectString(output.type),
|
|
3894
3664
|
};
|
|
3895
3665
|
};
|
|
3896
|
-
const
|
|
3666
|
+
const de_UsageList = (output, context) => {
|
|
3897
3667
|
const retVal = (output || [])
|
|
3898
3668
|
.filter((e) => e != null)
|
|
3899
3669
|
.map((entry) => {
|
|
3900
3670
|
if (entry === null) {
|
|
3901
3671
|
return null;
|
|
3902
3672
|
}
|
|
3903
|
-
return
|
|
3673
|
+
return de_Usage(entry, context);
|
|
3904
3674
|
});
|
|
3905
3675
|
return retVal;
|
|
3906
3676
|
};
|
|
3907
|
-
const
|
|
3677
|
+
const de_UsageTotal = (output, context) => {
|
|
3908
3678
|
return {
|
|
3909
3679
|
accountId: __expectString(output.accountId),
|
|
3910
|
-
usage: output.usage != null ?
|
|
3680
|
+
usage: output.usage != null ? de_UsageList(output.usage, context) : undefined,
|
|
3911
3681
|
};
|
|
3912
3682
|
};
|
|
3913
|
-
const
|
|
3683
|
+
const de_UsageTotalList = (output, context) => {
|
|
3914
3684
|
const retVal = (output || [])
|
|
3915
3685
|
.filter((e) => e != null)
|
|
3916
3686
|
.map((entry) => {
|
|
3917
3687
|
if (entry === null) {
|
|
3918
3688
|
return null;
|
|
3919
3689
|
}
|
|
3920
|
-
return
|
|
3690
|
+
return de_UsageTotal(entry, context);
|
|
3921
3691
|
});
|
|
3922
3692
|
return retVal;
|
|
3923
3693
|
};
|
|
3924
|
-
const
|
|
3694
|
+
const de_ValidationExceptionField = (output, context) => {
|
|
3925
3695
|
return {
|
|
3926
3696
|
message: __expectString(output.message),
|
|
3927
3697
|
name: __expectString(output.name),
|
|
3928
3698
|
};
|
|
3929
3699
|
};
|
|
3930
|
-
const
|
|
3700
|
+
const de_ValidationExceptionFields = (output, context) => {
|
|
3931
3701
|
const retVal = (output || [])
|
|
3932
3702
|
.filter((e) => e != null)
|
|
3933
3703
|
.map((entry) => {
|
|
3934
3704
|
if (entry === null) {
|
|
3935
3705
|
return null;
|
|
3936
3706
|
}
|
|
3937
|
-
return
|
|
3707
|
+
return de_ValidationExceptionField(entry, context);
|
|
3938
3708
|
});
|
|
3939
3709
|
return retVal;
|
|
3940
3710
|
};
|
|
3941
|
-
const
|
|
3711
|
+
const de_VulnerabilityIdList = (output, context) => {
|
|
3942
3712
|
const retVal = (output || [])
|
|
3943
3713
|
.filter((e) => e != null)
|
|
3944
3714
|
.map((entry) => {
|
|
@@ -3949,7 +3719,7 @@ const deserializeAws_restJson1VulnerabilityIdList = (output, context) => {
|
|
|
3949
3719
|
});
|
|
3950
3720
|
return retVal;
|
|
3951
3721
|
};
|
|
3952
|
-
const
|
|
3722
|
+
const de_VulnerablePackage = (output, context) => {
|
|
3953
3723
|
return {
|
|
3954
3724
|
arch: __expectString(output.arch),
|
|
3955
3725
|
epoch: __expectInt32(output.epoch),
|
|
@@ -3964,14 +3734,14 @@ const deserializeAws_restJson1VulnerablePackage = (output, context) => {
|
|
|
3964
3734
|
version: __expectString(output.version),
|
|
3965
3735
|
};
|
|
3966
3736
|
};
|
|
3967
|
-
const
|
|
3737
|
+
const de_VulnerablePackageList = (output, context) => {
|
|
3968
3738
|
const retVal = (output || [])
|
|
3969
3739
|
.filter((e) => e != null)
|
|
3970
3740
|
.map((entry) => {
|
|
3971
3741
|
if (entry === null) {
|
|
3972
3742
|
return null;
|
|
3973
3743
|
}
|
|
3974
|
-
return
|
|
3744
|
+
return de_VulnerablePackage(entry, context);
|
|
3975
3745
|
});
|
|
3976
3746
|
return retVal;
|
|
3977
3747
|
};
|