@aws-sdk/client-inspector2 3.121.0 → 3.130.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +32 -0
- package/dist-cjs/Inspector2.js +30 -0
- package/dist-cjs/commands/GetConfigurationCommand.js +36 -0
- package/dist-cjs/commands/UpdateConfigurationCommand.js +36 -0
- package/dist-cjs/commands/index.js +2 -0
- package/dist-cjs/models/models_0.js +66 -2
- package/dist-cjs/protocols/Aws_restJson1.js +431 -461
- package/dist-es/Inspector2.js +30 -0
- package/dist-es/commands/GetConfigurationCommand.js +39 -0
- package/dist-es/commands/UpdateConfigurationCommand.js +39 -0
- package/dist-es/commands/index.js +2 -0
- package/dist-es/models/models_0.js +50 -0
- package/dist-es/protocols/Aws_restJson1.js +405 -390
- package/dist-types/Inspector2.d.ts +14 -0
- package/dist-types/Inspector2Client.d.ts +4 -2
- package/dist-types/commands/GetConfigurationCommand.d.ts +35 -0
- package/dist-types/commands/UpdateConfigurationCommand.d.ts +35 -0
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +123 -2
- package/dist-types/protocols/Aws_restJson1.d.ts +6 -0
- package/dist-types/ts3.4/Inspector2.d.ts +10 -0
- package/dist-types/ts3.4/Inspector2Client.d.ts +4 -2
- package/dist-types/ts3.4/commands/GetConfigurationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateConfigurationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +2 -0
- package/dist-types/ts3.4/models/models_0.d.ts +84 -1
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +6 -0
- package/package.json +26 -26
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.deserializeAws_restJson1UpdateOrganizationConfigurationCommand = exports.deserializeAws_restJson1UpdateFilterCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1ListUsageTotalsCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListMembersCommand = exports.deserializeAws_restJson1ListFindingsCommand = exports.deserializeAws_restJson1ListFindingAggregationsCommand = exports.deserializeAws_restJson1ListFiltersCommand = void 0;
|
|
3
|
+
exports.deserializeAws_restJson1ListAccountPermissionsCommand = exports.deserializeAws_restJson1GetMemberCommand = exports.deserializeAws_restJson1GetFindingsReportStatusCommand = exports.deserializeAws_restJson1GetDelegatedAdminAccountCommand = exports.deserializeAws_restJson1GetConfigurationCommand = exports.deserializeAws_restJson1EnableDelegatedAdminAccountCommand = exports.deserializeAws_restJson1EnableCommand = exports.deserializeAws_restJson1DisassociateMemberCommand = exports.deserializeAws_restJson1DisableDelegatedAdminAccountCommand = exports.deserializeAws_restJson1DisableCommand = exports.deserializeAws_restJson1DescribeOrganizationConfigurationCommand = exports.deserializeAws_restJson1DeleteFilterCommand = exports.deserializeAws_restJson1CreateFindingsReportCommand = exports.deserializeAws_restJson1CreateFilterCommand = exports.deserializeAws_restJson1CancelFindingsReportCommand = exports.deserializeAws_restJson1BatchGetFreeTrialInfoCommand = exports.deserializeAws_restJson1BatchGetAccountStatusCommand = exports.deserializeAws_restJson1AssociateMemberCommand = exports.serializeAws_restJson1UpdateOrganizationConfigurationCommand = exports.serializeAws_restJson1UpdateFilterCommand = exports.serializeAws_restJson1UpdateConfigurationCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1ListUsageTotalsCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListMembersCommand = exports.serializeAws_restJson1ListFindingsCommand = exports.serializeAws_restJson1ListFindingAggregationsCommand = exports.serializeAws_restJson1ListFiltersCommand = exports.serializeAws_restJson1ListDelegatedAdminAccountsCommand = exports.serializeAws_restJson1ListCoverageStatisticsCommand = exports.serializeAws_restJson1ListCoverageCommand = exports.serializeAws_restJson1ListAccountPermissionsCommand = exports.serializeAws_restJson1GetMemberCommand = exports.serializeAws_restJson1GetFindingsReportStatusCommand = exports.serializeAws_restJson1GetDelegatedAdminAccountCommand = exports.serializeAws_restJson1GetConfigurationCommand = exports.serializeAws_restJson1EnableDelegatedAdminAccountCommand = exports.serializeAws_restJson1EnableCommand = exports.serializeAws_restJson1DisassociateMemberCommand = exports.serializeAws_restJson1DisableDelegatedAdminAccountCommand = exports.serializeAws_restJson1DisableCommand = exports.serializeAws_restJson1DescribeOrganizationConfigurationCommand = exports.serializeAws_restJson1DeleteFilterCommand = exports.serializeAws_restJson1CreateFindingsReportCommand = exports.serializeAws_restJson1CreateFilterCommand = exports.serializeAws_restJson1CancelFindingsReportCommand = exports.serializeAws_restJson1BatchGetFreeTrialInfoCommand = exports.serializeAws_restJson1BatchGetAccountStatusCommand = exports.serializeAws_restJson1AssociateMemberCommand = void 0;
|
|
4
|
+
exports.deserializeAws_restJson1UpdateOrganizationConfigurationCommand = exports.deserializeAws_restJson1UpdateFilterCommand = exports.deserializeAws_restJson1UpdateConfigurationCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1ListUsageTotalsCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListMembersCommand = exports.deserializeAws_restJson1ListFindingsCommand = exports.deserializeAws_restJson1ListFindingAggregationsCommand = exports.deserializeAws_restJson1ListFiltersCommand = exports.deserializeAws_restJson1ListDelegatedAdminAccountsCommand = exports.deserializeAws_restJson1ListCoverageStatisticsCommand = exports.deserializeAws_restJson1ListCoverageCommand = void 0;
|
|
5
5
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
7
|
const uuid_1 = require("uuid");
|
|
@@ -15,7 +15,7 @@ const serializeAws_restJson1AssociateMemberCommand = async (input, context) => {
|
|
|
15
15
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/members/associate";
|
|
16
16
|
let body;
|
|
17
17
|
body = JSON.stringify({
|
|
18
|
-
...(input.accountId
|
|
18
|
+
...(input.accountId != null && { accountId: input.accountId }),
|
|
19
19
|
});
|
|
20
20
|
return new protocol_http_1.HttpRequest({
|
|
21
21
|
protocol,
|
|
@@ -36,8 +36,7 @@ const serializeAws_restJson1BatchGetAccountStatusCommand = async (input, context
|
|
|
36
36
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/status/batch/get";
|
|
37
37
|
let body;
|
|
38
38
|
body = JSON.stringify({
|
|
39
|
-
...(input.accountIds
|
|
40
|
-
input.accountIds !== null && { accountIds: serializeAws_restJson1AccountIdSet(input.accountIds, context) }),
|
|
39
|
+
...(input.accountIds != null && { accountIds: serializeAws_restJson1AccountIdSet(input.accountIds, context) }),
|
|
41
40
|
});
|
|
42
41
|
return new protocol_http_1.HttpRequest({
|
|
43
42
|
protocol,
|
|
@@ -58,8 +57,7 @@ const serializeAws_restJson1BatchGetFreeTrialInfoCommand = async (input, context
|
|
|
58
57
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/freetrialinfo/batchget";
|
|
59
58
|
let body;
|
|
60
59
|
body = JSON.stringify({
|
|
61
|
-
...(input.accountIds
|
|
62
|
-
input.accountIds !== null && {
|
|
60
|
+
...(input.accountIds != null && {
|
|
63
61
|
accountIds: serializeAws_restJson1MeteringAccountIdList(input.accountIds, context),
|
|
64
62
|
}),
|
|
65
63
|
});
|
|
@@ -82,7 +80,7 @@ const serializeAws_restJson1CancelFindingsReportCommand = async (input, context)
|
|
|
82
80
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/reporting/cancel";
|
|
83
81
|
let body;
|
|
84
82
|
body = JSON.stringify({
|
|
85
|
-
...(input.reportId
|
|
83
|
+
...(input.reportId != null && { reportId: input.reportId }),
|
|
86
84
|
});
|
|
87
85
|
return new protocol_http_1.HttpRequest({
|
|
88
86
|
protocol,
|
|
@@ -103,14 +101,14 @@ const serializeAws_restJson1CreateFilterCommand = async (input, context) => {
|
|
|
103
101
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/filters/create";
|
|
104
102
|
let body;
|
|
105
103
|
body = JSON.stringify({
|
|
106
|
-
...(input.action
|
|
107
|
-
...(input.description
|
|
108
|
-
...(input.filterCriteria
|
|
109
|
-
input.filterCriteria !== null && {
|
|
104
|
+
...(input.action != null && { action: input.action }),
|
|
105
|
+
...(input.description != null && { description: input.description }),
|
|
106
|
+
...(input.filterCriteria != null && {
|
|
110
107
|
filterCriteria: serializeAws_restJson1FilterCriteria(input.filterCriteria, context),
|
|
111
108
|
}),
|
|
112
|
-
...(input.name
|
|
113
|
-
...(input.
|
|
109
|
+
...(input.name != null && { name: input.name }),
|
|
110
|
+
...(input.reason != null && { reason: input.reason }),
|
|
111
|
+
...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
|
|
114
112
|
});
|
|
115
113
|
return new protocol_http_1.HttpRequest({
|
|
116
114
|
protocol,
|
|
@@ -131,13 +129,11 @@ const serializeAws_restJson1CreateFindingsReportCommand = async (input, context)
|
|
|
131
129
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/reporting/create";
|
|
132
130
|
let body;
|
|
133
131
|
body = JSON.stringify({
|
|
134
|
-
...(input.filterCriteria
|
|
135
|
-
input.filterCriteria !== null && {
|
|
132
|
+
...(input.filterCriteria != null && {
|
|
136
133
|
filterCriteria: serializeAws_restJson1FilterCriteria(input.filterCriteria, context),
|
|
137
134
|
}),
|
|
138
|
-
...(input.reportFormat
|
|
139
|
-
...(input.s3Destination
|
|
140
|
-
input.s3Destination !== null && {
|
|
135
|
+
...(input.reportFormat != null && { reportFormat: input.reportFormat }),
|
|
136
|
+
...(input.s3Destination != null && {
|
|
141
137
|
s3Destination: serializeAws_restJson1Destination(input.s3Destination, context),
|
|
142
138
|
}),
|
|
143
139
|
});
|
|
@@ -160,7 +156,7 @@ const serializeAws_restJson1DeleteFilterCommand = async (input, context) => {
|
|
|
160
156
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/filters/delete";
|
|
161
157
|
let body;
|
|
162
158
|
body = JSON.stringify({
|
|
163
|
-
...(input.arn
|
|
159
|
+
...(input.arn != null && { arn: input.arn }),
|
|
164
160
|
});
|
|
165
161
|
return new protocol_http_1.HttpRequest({
|
|
166
162
|
protocol,
|
|
@@ -200,10 +196,8 @@ const serializeAws_restJson1DisableCommand = async (input, context) => {
|
|
|
200
196
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/disable";
|
|
201
197
|
let body;
|
|
202
198
|
body = JSON.stringify({
|
|
203
|
-
...(input.accountIds
|
|
204
|
-
|
|
205
|
-
...(input.resourceTypes !== undefined &&
|
|
206
|
-
input.resourceTypes !== null && {
|
|
199
|
+
...(input.accountIds != null && { accountIds: serializeAws_restJson1AccountIdSet(input.accountIds, context) }),
|
|
200
|
+
...(input.resourceTypes != null && {
|
|
207
201
|
resourceTypes: serializeAws_restJson1DisableResourceTypeList(input.resourceTypes, context),
|
|
208
202
|
}),
|
|
209
203
|
});
|
|
@@ -226,8 +220,7 @@ const serializeAws_restJson1DisableDelegatedAdminAccountCommand = async (input,
|
|
|
226
220
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/delegatedadminaccounts/disable";
|
|
227
221
|
let body;
|
|
228
222
|
body = JSON.stringify({
|
|
229
|
-
...(input.delegatedAdminAccountId
|
|
230
|
-
input.delegatedAdminAccountId !== null && { delegatedAdminAccountId: input.delegatedAdminAccountId }),
|
|
223
|
+
...(input.delegatedAdminAccountId != null && { delegatedAdminAccountId: input.delegatedAdminAccountId }),
|
|
231
224
|
});
|
|
232
225
|
return new protocol_http_1.HttpRequest({
|
|
233
226
|
protocol,
|
|
@@ -248,7 +241,7 @@ const serializeAws_restJson1DisassociateMemberCommand = async (input, context) =
|
|
|
248
241
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/members/disassociate";
|
|
249
242
|
let body;
|
|
250
243
|
body = JSON.stringify({
|
|
251
|
-
...(input.accountId
|
|
244
|
+
...(input.accountId != null && { accountId: input.accountId }),
|
|
252
245
|
});
|
|
253
246
|
return new protocol_http_1.HttpRequest({
|
|
254
247
|
protocol,
|
|
@@ -270,11 +263,9 @@ const serializeAws_restJson1EnableCommand = async (input, context) => {
|
|
|
270
263
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/enable";
|
|
271
264
|
let body;
|
|
272
265
|
body = JSON.stringify({
|
|
273
|
-
...(input.accountIds
|
|
274
|
-
input.accountIds !== null && { accountIds: serializeAws_restJson1AccountIdSet(input.accountIds, context) }),
|
|
266
|
+
...(input.accountIds != null && { accountIds: serializeAws_restJson1AccountIdSet(input.accountIds, context) }),
|
|
275
267
|
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
276
|
-
...(input.resourceTypes
|
|
277
|
-
input.resourceTypes !== null && {
|
|
268
|
+
...(input.resourceTypes != null && {
|
|
278
269
|
resourceTypes: serializeAws_restJson1EnableResourceTypeList(input.resourceTypes, context),
|
|
279
270
|
}),
|
|
280
271
|
});
|
|
@@ -299,8 +290,7 @@ const serializeAws_restJson1EnableDelegatedAdminAccountCommand = async (input, c
|
|
|
299
290
|
let body;
|
|
300
291
|
body = JSON.stringify({
|
|
301
292
|
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
302
|
-
...(input.delegatedAdminAccountId
|
|
303
|
-
input.delegatedAdminAccountId !== null && { delegatedAdminAccountId: input.delegatedAdminAccountId }),
|
|
293
|
+
...(input.delegatedAdminAccountId != null && { delegatedAdminAccountId: input.delegatedAdminAccountId }),
|
|
304
294
|
});
|
|
305
295
|
return new protocol_http_1.HttpRequest({
|
|
306
296
|
protocol,
|
|
@@ -313,6 +303,25 @@ const serializeAws_restJson1EnableDelegatedAdminAccountCommand = async (input, c
|
|
|
313
303
|
});
|
|
314
304
|
};
|
|
315
305
|
exports.serializeAws_restJson1EnableDelegatedAdminAccountCommand = serializeAws_restJson1EnableDelegatedAdminAccountCommand;
|
|
306
|
+
const serializeAws_restJson1GetConfigurationCommand = async (input, context) => {
|
|
307
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
308
|
+
const headers = {
|
|
309
|
+
"content-type": "application/json",
|
|
310
|
+
};
|
|
311
|
+
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/configuration/get";
|
|
312
|
+
let body;
|
|
313
|
+
body = "";
|
|
314
|
+
return new protocol_http_1.HttpRequest({
|
|
315
|
+
protocol,
|
|
316
|
+
hostname,
|
|
317
|
+
port,
|
|
318
|
+
method: "POST",
|
|
319
|
+
headers,
|
|
320
|
+
path: resolvedPath,
|
|
321
|
+
body,
|
|
322
|
+
});
|
|
323
|
+
};
|
|
324
|
+
exports.serializeAws_restJson1GetConfigurationCommand = serializeAws_restJson1GetConfigurationCommand;
|
|
316
325
|
const serializeAws_restJson1GetDelegatedAdminAccountCommand = async (input, context) => {
|
|
317
326
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
318
327
|
const headers = {
|
|
@@ -340,7 +349,7 @@ const serializeAws_restJson1GetFindingsReportStatusCommand = async (input, conte
|
|
|
340
349
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/reporting/status/get";
|
|
341
350
|
let body;
|
|
342
351
|
body = JSON.stringify({
|
|
343
|
-
...(input.reportId
|
|
352
|
+
...(input.reportId != null && { reportId: input.reportId }),
|
|
344
353
|
});
|
|
345
354
|
return new protocol_http_1.HttpRequest({
|
|
346
355
|
protocol,
|
|
@@ -361,7 +370,7 @@ const serializeAws_restJson1GetMemberCommand = async (input, context) => {
|
|
|
361
370
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/members/get";
|
|
362
371
|
let body;
|
|
363
372
|
body = JSON.stringify({
|
|
364
|
-
...(input.accountId
|
|
373
|
+
...(input.accountId != null && { accountId: input.accountId }),
|
|
365
374
|
});
|
|
366
375
|
return new protocol_http_1.HttpRequest({
|
|
367
376
|
protocol,
|
|
@@ -382,9 +391,9 @@ const serializeAws_restJson1ListAccountPermissionsCommand = async (input, contex
|
|
|
382
391
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/accountpermissions/list";
|
|
383
392
|
let body;
|
|
384
393
|
body = JSON.stringify({
|
|
385
|
-
...(input.maxResults
|
|
386
|
-
...(input.nextToken
|
|
387
|
-
...(input.service
|
|
394
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
395
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
396
|
+
...(input.service != null && { service: input.service }),
|
|
388
397
|
});
|
|
389
398
|
return new protocol_http_1.HttpRequest({
|
|
390
399
|
protocol,
|
|
@@ -405,12 +414,11 @@ const serializeAws_restJson1ListCoverageCommand = async (input, context) => {
|
|
|
405
414
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/coverage/list";
|
|
406
415
|
let body;
|
|
407
416
|
body = JSON.stringify({
|
|
408
|
-
...(input.filterCriteria
|
|
409
|
-
input.filterCriteria !== null && {
|
|
417
|
+
...(input.filterCriteria != null && {
|
|
410
418
|
filterCriteria: serializeAws_restJson1CoverageFilterCriteria(input.filterCriteria, context),
|
|
411
419
|
}),
|
|
412
|
-
...(input.maxResults
|
|
413
|
-
...(input.nextToken
|
|
420
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
421
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
414
422
|
});
|
|
415
423
|
return new protocol_http_1.HttpRequest({
|
|
416
424
|
protocol,
|
|
@@ -431,12 +439,11 @@ const serializeAws_restJson1ListCoverageStatisticsCommand = async (input, contex
|
|
|
431
439
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/coverage/statistics/list";
|
|
432
440
|
let body;
|
|
433
441
|
body = JSON.stringify({
|
|
434
|
-
...(input.filterCriteria
|
|
435
|
-
input.filterCriteria !== null && {
|
|
442
|
+
...(input.filterCriteria != null && {
|
|
436
443
|
filterCriteria: serializeAws_restJson1CoverageFilterCriteria(input.filterCriteria, context),
|
|
437
444
|
}),
|
|
438
|
-
...(input.groupBy
|
|
439
|
-
...(input.nextToken
|
|
445
|
+
...(input.groupBy != null && { groupBy: input.groupBy }),
|
|
446
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
440
447
|
});
|
|
441
448
|
return new protocol_http_1.HttpRequest({
|
|
442
449
|
protocol,
|
|
@@ -457,8 +464,8 @@ const serializeAws_restJson1ListDelegatedAdminAccountsCommand = async (input, co
|
|
|
457
464
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/delegatedadminaccounts/list";
|
|
458
465
|
let body;
|
|
459
466
|
body = JSON.stringify({
|
|
460
|
-
...(input.maxResults
|
|
461
|
-
...(input.nextToken
|
|
467
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
468
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
462
469
|
});
|
|
463
470
|
return new protocol_http_1.HttpRequest({
|
|
464
471
|
protocol,
|
|
@@ -479,11 +486,10 @@ const serializeAws_restJson1ListFiltersCommand = async (input, context) => {
|
|
|
479
486
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/filters/list";
|
|
480
487
|
let body;
|
|
481
488
|
body = JSON.stringify({
|
|
482
|
-
...(input.action
|
|
483
|
-
...(input.arns
|
|
484
|
-
|
|
485
|
-
...(input.
|
|
486
|
-
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
489
|
+
...(input.action != null && { action: input.action }),
|
|
490
|
+
...(input.arns != null && { arns: serializeAws_restJson1FilterArnList(input.arns, context) }),
|
|
491
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
492
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
487
493
|
});
|
|
488
494
|
return new protocol_http_1.HttpRequest({
|
|
489
495
|
protocol,
|
|
@@ -504,16 +510,13 @@ const serializeAws_restJson1ListFindingAggregationsCommand = async (input, conte
|
|
|
504
510
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/findings/aggregation/list";
|
|
505
511
|
let body;
|
|
506
512
|
body = JSON.stringify({
|
|
507
|
-
...(input.accountIds
|
|
508
|
-
|
|
509
|
-
...(input.aggregationRequest !== undefined &&
|
|
510
|
-
input.aggregationRequest !== null && {
|
|
513
|
+
...(input.accountIds != null && { accountIds: serializeAws_restJson1StringFilterList(input.accountIds, context) }),
|
|
514
|
+
...(input.aggregationRequest != null && {
|
|
511
515
|
aggregationRequest: serializeAws_restJson1AggregationRequest(input.aggregationRequest, context),
|
|
512
516
|
}),
|
|
513
|
-
...(input.aggregationType
|
|
514
|
-
|
|
515
|
-
...(input.
|
|
516
|
-
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
517
|
+
...(input.aggregationType != null && { aggregationType: input.aggregationType }),
|
|
518
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
519
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
517
520
|
});
|
|
518
521
|
return new protocol_http_1.HttpRequest({
|
|
519
522
|
protocol,
|
|
@@ -534,14 +537,14 @@ const serializeAws_restJson1ListFindingsCommand = async (input, context) => {
|
|
|
534
537
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/findings/list";
|
|
535
538
|
let body;
|
|
536
539
|
body = JSON.stringify({
|
|
537
|
-
...(input.filterCriteria
|
|
538
|
-
input.filterCriteria !== null && {
|
|
540
|
+
...(input.filterCriteria != null && {
|
|
539
541
|
filterCriteria: serializeAws_restJson1FilterCriteria(input.filterCriteria, context),
|
|
540
542
|
}),
|
|
541
|
-
...(input.maxResults
|
|
542
|
-
...(input.nextToken
|
|
543
|
-
...(input.sortCriteria
|
|
544
|
-
|
|
543
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
544
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
545
|
+
...(input.sortCriteria != null && {
|
|
546
|
+
sortCriteria: serializeAws_restJson1SortCriteria(input.sortCriteria, context),
|
|
547
|
+
}),
|
|
545
548
|
});
|
|
546
549
|
return new protocol_http_1.HttpRequest({
|
|
547
550
|
protocol,
|
|
@@ -562,10 +565,9 @@ const serializeAws_restJson1ListMembersCommand = async (input, context) => {
|
|
|
562
565
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/members/list";
|
|
563
566
|
let body;
|
|
564
567
|
body = JSON.stringify({
|
|
565
|
-
...(input.maxResults
|
|
566
|
-
...(input.nextToken
|
|
567
|
-
...(input.onlyAssociated
|
|
568
|
-
input.onlyAssociated !== null && { onlyAssociated: input.onlyAssociated }),
|
|
568
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
569
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
570
|
+
...(input.onlyAssociated != null && { onlyAssociated: input.onlyAssociated }),
|
|
569
571
|
});
|
|
570
572
|
return new protocol_http_1.HttpRequest({
|
|
571
573
|
protocol,
|
|
@@ -612,10 +614,11 @@ const serializeAws_restJson1ListUsageTotalsCommand = async (input, context) => {
|
|
|
612
614
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/usage/list";
|
|
613
615
|
let body;
|
|
614
616
|
body = JSON.stringify({
|
|
615
|
-
...(input.accountIds
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
...(input.
|
|
617
|
+
...(input.accountIds != null && {
|
|
618
|
+
accountIds: serializeAws_restJson1UsageAccountIdList(input.accountIds, context),
|
|
619
|
+
}),
|
|
620
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
621
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
619
622
|
});
|
|
620
623
|
return new protocol_http_1.HttpRequest({
|
|
621
624
|
protocol,
|
|
@@ -646,7 +649,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
646
649
|
}
|
|
647
650
|
let body;
|
|
648
651
|
body = JSON.stringify({
|
|
649
|
-
...(input.tags
|
|
652
|
+
...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
|
|
650
653
|
});
|
|
651
654
|
return new protocol_http_1.HttpRequest({
|
|
652
655
|
protocol,
|
|
@@ -689,6 +692,29 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
|
689
692
|
});
|
|
690
693
|
};
|
|
691
694
|
exports.serializeAws_restJson1UntagResourceCommand = serializeAws_restJson1UntagResourceCommand;
|
|
695
|
+
const serializeAws_restJson1UpdateConfigurationCommand = async (input, context) => {
|
|
696
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
697
|
+
const headers = {
|
|
698
|
+
"content-type": "application/json",
|
|
699
|
+
};
|
|
700
|
+
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/configuration/update";
|
|
701
|
+
let body;
|
|
702
|
+
body = JSON.stringify({
|
|
703
|
+
...(input.ecrConfiguration != null && {
|
|
704
|
+
ecrConfiguration: serializeAws_restJson1EcrConfiguration(input.ecrConfiguration, context),
|
|
705
|
+
}),
|
|
706
|
+
});
|
|
707
|
+
return new protocol_http_1.HttpRequest({
|
|
708
|
+
protocol,
|
|
709
|
+
hostname,
|
|
710
|
+
port,
|
|
711
|
+
method: "POST",
|
|
712
|
+
headers,
|
|
713
|
+
path: resolvedPath,
|
|
714
|
+
body,
|
|
715
|
+
});
|
|
716
|
+
};
|
|
717
|
+
exports.serializeAws_restJson1UpdateConfigurationCommand = serializeAws_restJson1UpdateConfigurationCommand;
|
|
692
718
|
const serializeAws_restJson1UpdateFilterCommand = async (input, context) => {
|
|
693
719
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
694
720
|
const headers = {
|
|
@@ -697,14 +723,14 @@ const serializeAws_restJson1UpdateFilterCommand = async (input, context) => {
|
|
|
697
723
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/filters/update";
|
|
698
724
|
let body;
|
|
699
725
|
body = JSON.stringify({
|
|
700
|
-
...(input.action
|
|
701
|
-
...(input.description
|
|
702
|
-
...(input.filterArn
|
|
703
|
-
...(input.filterCriteria
|
|
704
|
-
input.filterCriteria !== null && {
|
|
726
|
+
...(input.action != null && { action: input.action }),
|
|
727
|
+
...(input.description != null && { description: input.description }),
|
|
728
|
+
...(input.filterArn != null && { filterArn: input.filterArn }),
|
|
729
|
+
...(input.filterCriteria != null && {
|
|
705
730
|
filterCriteria: serializeAws_restJson1FilterCriteria(input.filterCriteria, context),
|
|
706
731
|
}),
|
|
707
|
-
...(input.name
|
|
732
|
+
...(input.name != null && { name: input.name }),
|
|
733
|
+
...(input.reason != null && { reason: input.reason }),
|
|
708
734
|
});
|
|
709
735
|
return new protocol_http_1.HttpRequest({
|
|
710
736
|
protocol,
|
|
@@ -725,8 +751,7 @@ const serializeAws_restJson1UpdateOrganizationConfigurationCommand = async (inpu
|
|
|
725
751
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/organizationconfiguration/update";
|
|
726
752
|
let body;
|
|
727
753
|
body = JSON.stringify({
|
|
728
|
-
...(input.autoEnable
|
|
729
|
-
input.autoEnable !== null && { autoEnable: serializeAws_restJson1AutoEnable(input.autoEnable, context) }),
|
|
754
|
+
...(input.autoEnable != null && { autoEnable: serializeAws_restJson1AutoEnable(input.autoEnable, context) }),
|
|
730
755
|
});
|
|
731
756
|
return new protocol_http_1.HttpRequest({
|
|
732
757
|
protocol,
|
|
@@ -1406,6 +1431,50 @@ const deserializeAws_restJson1EnableDelegatedAdminAccountCommandError = async (o
|
|
|
1406
1431
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1407
1432
|
}
|
|
1408
1433
|
};
|
|
1434
|
+
const deserializeAws_restJson1GetConfigurationCommand = async (output, context) => {
|
|
1435
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1436
|
+
return deserializeAws_restJson1GetConfigurationCommandError(output, context);
|
|
1437
|
+
}
|
|
1438
|
+
const contents = {
|
|
1439
|
+
$metadata: deserializeMetadata(output),
|
|
1440
|
+
ecrConfiguration: undefined,
|
|
1441
|
+
};
|
|
1442
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1443
|
+
if (data.ecrConfiguration !== undefined && data.ecrConfiguration !== null) {
|
|
1444
|
+
contents.ecrConfiguration = deserializeAws_restJson1EcrConfigurationState(data.ecrConfiguration, context);
|
|
1445
|
+
}
|
|
1446
|
+
return Promise.resolve(contents);
|
|
1447
|
+
};
|
|
1448
|
+
exports.deserializeAws_restJson1GetConfigurationCommand = deserializeAws_restJson1GetConfigurationCommand;
|
|
1449
|
+
const deserializeAws_restJson1GetConfigurationCommandError = async (output, context) => {
|
|
1450
|
+
const parsedOutput = {
|
|
1451
|
+
...output,
|
|
1452
|
+
body: await parseBody(output.body, context),
|
|
1453
|
+
};
|
|
1454
|
+
let response;
|
|
1455
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1456
|
+
switch (errorCode) {
|
|
1457
|
+
case "InternalServerException":
|
|
1458
|
+
case "com.amazonaws.inspector2#InternalServerException":
|
|
1459
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1460
|
+
case "ResourceNotFoundException":
|
|
1461
|
+
case "com.amazonaws.inspector2#ResourceNotFoundException":
|
|
1462
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1463
|
+
case "ThrottlingException":
|
|
1464
|
+
case "com.amazonaws.inspector2#ThrottlingException":
|
|
1465
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1466
|
+
default:
|
|
1467
|
+
const parsedBody = parsedOutput.body;
|
|
1468
|
+
const $metadata = deserializeMetadata(output);
|
|
1469
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1470
|
+
response = new Inspector2ServiceException_1.Inspector2ServiceException({
|
|
1471
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1472
|
+
$fault: "client",
|
|
1473
|
+
$metadata,
|
|
1474
|
+
});
|
|
1475
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1476
|
+
}
|
|
1477
|
+
};
|
|
1409
1478
|
const deserializeAws_restJson1GetDelegatedAdminAccountCommand = async (output, context) => {
|
|
1410
1479
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1411
1480
|
return deserializeAws_restJson1GetDelegatedAdminAccountCommandError(output, context);
|
|
@@ -2167,6 +2236,49 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
2167
2236
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2168
2237
|
}
|
|
2169
2238
|
};
|
|
2239
|
+
const deserializeAws_restJson1UpdateConfigurationCommand = async (output, context) => {
|
|
2240
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2241
|
+
return deserializeAws_restJson1UpdateConfigurationCommandError(output, context);
|
|
2242
|
+
}
|
|
2243
|
+
const contents = {
|
|
2244
|
+
$metadata: deserializeMetadata(output),
|
|
2245
|
+
};
|
|
2246
|
+
await collectBody(output.body, context);
|
|
2247
|
+
return Promise.resolve(contents);
|
|
2248
|
+
};
|
|
2249
|
+
exports.deserializeAws_restJson1UpdateConfigurationCommand = deserializeAws_restJson1UpdateConfigurationCommand;
|
|
2250
|
+
const deserializeAws_restJson1UpdateConfigurationCommandError = async (output, context) => {
|
|
2251
|
+
const parsedOutput = {
|
|
2252
|
+
...output,
|
|
2253
|
+
body: await parseBody(output.body, context),
|
|
2254
|
+
};
|
|
2255
|
+
let response;
|
|
2256
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2257
|
+
switch (errorCode) {
|
|
2258
|
+
case "AccessDeniedException":
|
|
2259
|
+
case "com.amazonaws.inspector2#AccessDeniedException":
|
|
2260
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2261
|
+
case "InternalServerException":
|
|
2262
|
+
case "com.amazonaws.inspector2#InternalServerException":
|
|
2263
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2264
|
+
case "ThrottlingException":
|
|
2265
|
+
case "com.amazonaws.inspector2#ThrottlingException":
|
|
2266
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2267
|
+
case "ValidationException":
|
|
2268
|
+
case "com.amazonaws.inspector2#ValidationException":
|
|
2269
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2270
|
+
default:
|
|
2271
|
+
const parsedBody = parsedOutput.body;
|
|
2272
|
+
const $metadata = deserializeMetadata(output);
|
|
2273
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2274
|
+
response = new Inspector2ServiceException_1.Inspector2ServiceException({
|
|
2275
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2276
|
+
$fault: "client",
|
|
2277
|
+
$metadata,
|
|
2278
|
+
});
|
|
2279
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2280
|
+
}
|
|
2281
|
+
};
|
|
2170
2282
|
const deserializeAws_restJson1UpdateFilterCommand = async (output, context) => {
|
|
2171
2283
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2172
2284
|
return deserializeAws_restJson1UpdateFilterCommandError(output, context);
|
|
@@ -2380,10 +2492,10 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
|
|
|
2380
2492
|
};
|
|
2381
2493
|
const serializeAws_restJson1AccountAggregation = (input, context) => {
|
|
2382
2494
|
return {
|
|
2383
|
-
...(input.findingType
|
|
2384
|
-
...(input.resourceType
|
|
2385
|
-
...(input.sortBy
|
|
2386
|
-
...(input.sortOrder
|
|
2495
|
+
...(input.findingType != null && { findingType: input.findingType }),
|
|
2496
|
+
...(input.resourceType != null && { resourceType: input.resourceType }),
|
|
2497
|
+
...(input.sortBy != null && { sortBy: input.sortBy }),
|
|
2498
|
+
...(input.sortOrder != null && { sortOrder: input.sortOrder }),
|
|
2387
2499
|
};
|
|
2388
2500
|
};
|
|
2389
2501
|
const serializeAws_restJson1AccountIdSet = (input, context) => {
|
|
@@ -2422,83 +2534,70 @@ const serializeAws_restJson1AggregationRequest = (input, context) => {
|
|
|
2422
2534
|
};
|
|
2423
2535
|
const serializeAws_restJson1AmiAggregation = (input, context) => {
|
|
2424
2536
|
return {
|
|
2425
|
-
...(input.amis
|
|
2426
|
-
|
|
2427
|
-
...(input.
|
|
2428
|
-
...(input.sortOrder !== undefined && input.sortOrder !== null && { sortOrder: input.sortOrder }),
|
|
2537
|
+
...(input.amis != null && { amis: serializeAws_restJson1StringFilterList(input.amis, context) }),
|
|
2538
|
+
...(input.sortBy != null && { sortBy: input.sortBy }),
|
|
2539
|
+
...(input.sortOrder != null && { sortOrder: input.sortOrder }),
|
|
2429
2540
|
};
|
|
2430
2541
|
};
|
|
2431
2542
|
const serializeAws_restJson1AutoEnable = (input, context) => {
|
|
2432
2543
|
return {
|
|
2433
|
-
...(input.ec2
|
|
2434
|
-
...(input.ecr
|
|
2544
|
+
...(input.ec2 != null && { ec2: input.ec2 }),
|
|
2545
|
+
...(input.ecr != null && { ecr: input.ecr }),
|
|
2435
2546
|
};
|
|
2436
2547
|
};
|
|
2437
2548
|
const serializeAws_restJson1AwsEcrContainerAggregation = (input, context) => {
|
|
2438
2549
|
return {
|
|
2439
|
-
...(input.architectures
|
|
2440
|
-
input.architectures !== null && {
|
|
2550
|
+
...(input.architectures != null && {
|
|
2441
2551
|
architectures: serializeAws_restJson1StringFilterList(input.architectures, context),
|
|
2442
2552
|
}),
|
|
2443
|
-
...(input.imageShas
|
|
2444
|
-
|
|
2445
|
-
...(input.
|
|
2446
|
-
input.imageTags !== null && { imageTags: serializeAws_restJson1StringFilterList(input.imageTags, context) }),
|
|
2447
|
-
...(input.repositories !== undefined &&
|
|
2448
|
-
input.repositories !== null && {
|
|
2553
|
+
...(input.imageShas != null && { imageShas: serializeAws_restJson1StringFilterList(input.imageShas, context) }),
|
|
2554
|
+
...(input.imageTags != null && { imageTags: serializeAws_restJson1StringFilterList(input.imageTags, context) }),
|
|
2555
|
+
...(input.repositories != null && {
|
|
2449
2556
|
repositories: serializeAws_restJson1StringFilterList(input.repositories, context),
|
|
2450
2557
|
}),
|
|
2451
|
-
...(input.resourceIds
|
|
2452
|
-
input.resourceIds !== null && {
|
|
2558
|
+
...(input.resourceIds != null && {
|
|
2453
2559
|
resourceIds: serializeAws_restJson1StringFilterList(input.resourceIds, context),
|
|
2454
2560
|
}),
|
|
2455
|
-
...(input.sortBy
|
|
2456
|
-
...(input.sortOrder
|
|
2561
|
+
...(input.sortBy != null && { sortBy: input.sortBy }),
|
|
2562
|
+
...(input.sortOrder != null && { sortOrder: input.sortOrder }),
|
|
2457
2563
|
};
|
|
2458
2564
|
};
|
|
2459
2565
|
const serializeAws_restJson1CoverageFilterCriteria = (input, context) => {
|
|
2460
2566
|
return {
|
|
2461
|
-
...(input.accountId
|
|
2462
|
-
input.accountId !== null && {
|
|
2567
|
+
...(input.accountId != null && {
|
|
2463
2568
|
accountId: serializeAws_restJson1CoverageStringFilterList(input.accountId, context),
|
|
2464
2569
|
}),
|
|
2465
|
-
...(input.ec2InstanceTags
|
|
2466
|
-
input.ec2InstanceTags !== null && {
|
|
2570
|
+
...(input.ec2InstanceTags != null && {
|
|
2467
2571
|
ec2InstanceTags: serializeAws_restJson1CoverageMapFilterList(input.ec2InstanceTags, context),
|
|
2468
2572
|
}),
|
|
2469
|
-
...(input.ecrImageTags
|
|
2470
|
-
input.ecrImageTags !== null && {
|
|
2573
|
+
...(input.ecrImageTags != null && {
|
|
2471
2574
|
ecrImageTags: serializeAws_restJson1CoverageStringFilterList(input.ecrImageTags, context),
|
|
2472
2575
|
}),
|
|
2473
|
-
...(input.ecrRepositoryName
|
|
2474
|
-
input.ecrRepositoryName !== null && {
|
|
2576
|
+
...(input.ecrRepositoryName != null && {
|
|
2475
2577
|
ecrRepositoryName: serializeAws_restJson1CoverageStringFilterList(input.ecrRepositoryName, context),
|
|
2476
2578
|
}),
|
|
2477
|
-
...(input.resourceId
|
|
2478
|
-
input.resourceId !== null && {
|
|
2579
|
+
...(input.resourceId != null && {
|
|
2479
2580
|
resourceId: serializeAws_restJson1CoverageStringFilterList(input.resourceId, context),
|
|
2480
2581
|
}),
|
|
2481
|
-
...(input.resourceType
|
|
2482
|
-
input.resourceType !== null && {
|
|
2582
|
+
...(input.resourceType != null && {
|
|
2483
2583
|
resourceType: serializeAws_restJson1CoverageStringFilterList(input.resourceType, context),
|
|
2484
2584
|
}),
|
|
2485
|
-
...(input.scanStatusCode
|
|
2486
|
-
input.scanStatusCode !== null && {
|
|
2585
|
+
...(input.scanStatusCode != null && {
|
|
2487
2586
|
scanStatusCode: serializeAws_restJson1CoverageStringFilterList(input.scanStatusCode, context),
|
|
2488
2587
|
}),
|
|
2489
|
-
...(input.scanStatusReason
|
|
2490
|
-
input.scanStatusReason !== null && {
|
|
2588
|
+
...(input.scanStatusReason != null && {
|
|
2491
2589
|
scanStatusReason: serializeAws_restJson1CoverageStringFilterList(input.scanStatusReason, context),
|
|
2492
2590
|
}),
|
|
2493
|
-
...(input.scanType
|
|
2494
|
-
|
|
2591
|
+
...(input.scanType != null && {
|
|
2592
|
+
scanType: serializeAws_restJson1CoverageStringFilterList(input.scanType, context),
|
|
2593
|
+
}),
|
|
2495
2594
|
};
|
|
2496
2595
|
};
|
|
2497
2596
|
const serializeAws_restJson1CoverageMapFilter = (input, context) => {
|
|
2498
2597
|
return {
|
|
2499
|
-
...(input.comparison
|
|
2500
|
-
...(input.key
|
|
2501
|
-
...(input.value
|
|
2598
|
+
...(input.comparison != null && { comparison: input.comparison }),
|
|
2599
|
+
...(input.key != null && { key: input.key }),
|
|
2600
|
+
...(input.value != null && { value: input.value }),
|
|
2502
2601
|
};
|
|
2503
2602
|
};
|
|
2504
2603
|
const serializeAws_restJson1CoverageMapFilterList = (input, context) => {
|
|
@@ -2513,8 +2612,8 @@ const serializeAws_restJson1CoverageMapFilterList = (input, context) => {
|
|
|
2513
2612
|
};
|
|
2514
2613
|
const serializeAws_restJson1CoverageStringFilter = (input, context) => {
|
|
2515
2614
|
return {
|
|
2516
|
-
...(input.comparison
|
|
2517
|
-
...(input.value
|
|
2615
|
+
...(input.comparison != null && { comparison: input.comparison }),
|
|
2616
|
+
...(input.value != null && { value: input.value }),
|
|
2518
2617
|
};
|
|
2519
2618
|
};
|
|
2520
2619
|
const serializeAws_restJson1CoverageStringFilterList = (input, context) => {
|
|
@@ -2529,10 +2628,8 @@ const serializeAws_restJson1CoverageStringFilterList = (input, context) => {
|
|
|
2529
2628
|
};
|
|
2530
2629
|
const serializeAws_restJson1DateFilter = (input, context) => {
|
|
2531
2630
|
return {
|
|
2532
|
-
...(input.endInclusive
|
|
2533
|
-
|
|
2534
|
-
...(input.startInclusive !== undefined &&
|
|
2535
|
-
input.startInclusive !== null && { startInclusive: Math.round(input.startInclusive.getTime() / 1000) }),
|
|
2631
|
+
...(input.endInclusive != null && { endInclusive: Math.round(input.endInclusive.getTime() / 1000) }),
|
|
2632
|
+
...(input.startInclusive != null && { startInclusive: Math.round(input.startInclusive.getTime() / 1000) }),
|
|
2536
2633
|
};
|
|
2537
2634
|
};
|
|
2538
2635
|
const serializeAws_restJson1DateFilterList = (input, context) => {
|
|
@@ -2547,9 +2644,9 @@ const serializeAws_restJson1DateFilterList = (input, context) => {
|
|
|
2547
2644
|
};
|
|
2548
2645
|
const serializeAws_restJson1Destination = (input, context) => {
|
|
2549
2646
|
return {
|
|
2550
|
-
...(input.bucketName
|
|
2551
|
-
...(input.keyPrefix
|
|
2552
|
-
...(input.kmsKeyArn
|
|
2647
|
+
...(input.bucketName != null && { bucketName: input.bucketName }),
|
|
2648
|
+
...(input.keyPrefix != null && { keyPrefix: input.keyPrefix }),
|
|
2649
|
+
...(input.kmsKeyArn != null && { kmsKeyArn: input.kmsKeyArn }),
|
|
2553
2650
|
};
|
|
2554
2651
|
};
|
|
2555
2652
|
const serializeAws_restJson1DisableResourceTypeList = (input, context) => {
|
|
@@ -2564,22 +2661,23 @@ const serializeAws_restJson1DisableResourceTypeList = (input, context) => {
|
|
|
2564
2661
|
};
|
|
2565
2662
|
const serializeAws_restJson1Ec2InstanceAggregation = (input, context) => {
|
|
2566
2663
|
return {
|
|
2567
|
-
...(input.amis
|
|
2568
|
-
|
|
2569
|
-
...(input.instanceIds !== undefined &&
|
|
2570
|
-
input.instanceIds !== null && {
|
|
2664
|
+
...(input.amis != null && { amis: serializeAws_restJson1StringFilterList(input.amis, context) }),
|
|
2665
|
+
...(input.instanceIds != null && {
|
|
2571
2666
|
instanceIds: serializeAws_restJson1StringFilterList(input.instanceIds, context),
|
|
2572
2667
|
}),
|
|
2573
|
-
...(input.instanceTags
|
|
2574
|
-
input.instanceTags !== null && {
|
|
2668
|
+
...(input.instanceTags != null && {
|
|
2575
2669
|
instanceTags: serializeAws_restJson1MapFilterList(input.instanceTags, context),
|
|
2576
2670
|
}),
|
|
2577
|
-
...(input.operatingSystems
|
|
2578
|
-
input.operatingSystems !== null && {
|
|
2671
|
+
...(input.operatingSystems != null && {
|
|
2579
2672
|
operatingSystems: serializeAws_restJson1StringFilterList(input.operatingSystems, context),
|
|
2580
2673
|
}),
|
|
2581
|
-
...(input.sortBy
|
|
2582
|
-
...(input.sortOrder
|
|
2674
|
+
...(input.sortBy != null && { sortBy: input.sortBy }),
|
|
2675
|
+
...(input.sortOrder != null && { sortOrder: input.sortOrder }),
|
|
2676
|
+
};
|
|
2677
|
+
};
|
|
2678
|
+
const serializeAws_restJson1EcrConfiguration = (input, context) => {
|
|
2679
|
+
return {
|
|
2680
|
+
...(input.rescanDuration != null && { rescanDuration: input.rescanDuration }),
|
|
2583
2681
|
};
|
|
2584
2682
|
};
|
|
2585
2683
|
const serializeAws_restJson1EnableResourceTypeList = (input, context) => {
|
|
@@ -2604,151 +2702,117 @@ const serializeAws_restJson1FilterArnList = (input, context) => {
|
|
|
2604
2702
|
};
|
|
2605
2703
|
const serializeAws_restJson1FilterCriteria = (input, context) => {
|
|
2606
2704
|
return {
|
|
2607
|
-
...(input.awsAccountId
|
|
2608
|
-
input.awsAccountId !== null && {
|
|
2705
|
+
...(input.awsAccountId != null && {
|
|
2609
2706
|
awsAccountId: serializeAws_restJson1StringFilterList(input.awsAccountId, context),
|
|
2610
2707
|
}),
|
|
2611
|
-
...(input.componentId
|
|
2612
|
-
input.componentId !== null && {
|
|
2708
|
+
...(input.componentId != null && {
|
|
2613
2709
|
componentId: serializeAws_restJson1StringFilterList(input.componentId, context),
|
|
2614
2710
|
}),
|
|
2615
|
-
...(input.componentType
|
|
2616
|
-
input.componentType !== null && {
|
|
2711
|
+
...(input.componentType != null && {
|
|
2617
2712
|
componentType: serializeAws_restJson1StringFilterList(input.componentType, context),
|
|
2618
2713
|
}),
|
|
2619
|
-
...(input.ec2InstanceImageId
|
|
2620
|
-
input.ec2InstanceImageId !== null && {
|
|
2714
|
+
...(input.ec2InstanceImageId != null && {
|
|
2621
2715
|
ec2InstanceImageId: serializeAws_restJson1StringFilterList(input.ec2InstanceImageId, context),
|
|
2622
2716
|
}),
|
|
2623
|
-
...(input.ec2InstanceSubnetId
|
|
2624
|
-
input.ec2InstanceSubnetId !== null && {
|
|
2717
|
+
...(input.ec2InstanceSubnetId != null && {
|
|
2625
2718
|
ec2InstanceSubnetId: serializeAws_restJson1StringFilterList(input.ec2InstanceSubnetId, context),
|
|
2626
2719
|
}),
|
|
2627
|
-
...(input.ec2InstanceVpcId
|
|
2628
|
-
input.ec2InstanceVpcId !== null && {
|
|
2720
|
+
...(input.ec2InstanceVpcId != null && {
|
|
2629
2721
|
ec2InstanceVpcId: serializeAws_restJson1StringFilterList(input.ec2InstanceVpcId, context),
|
|
2630
2722
|
}),
|
|
2631
|
-
...(input.ecrImageArchitecture
|
|
2632
|
-
input.ecrImageArchitecture !== null && {
|
|
2723
|
+
...(input.ecrImageArchitecture != null && {
|
|
2633
2724
|
ecrImageArchitecture: serializeAws_restJson1StringFilterList(input.ecrImageArchitecture, context),
|
|
2634
2725
|
}),
|
|
2635
|
-
...(input.ecrImageHash
|
|
2636
|
-
input.ecrImageHash !== null && {
|
|
2726
|
+
...(input.ecrImageHash != null && {
|
|
2637
2727
|
ecrImageHash: serializeAws_restJson1StringFilterList(input.ecrImageHash, context),
|
|
2638
2728
|
}),
|
|
2639
|
-
...(input.ecrImagePushedAt
|
|
2640
|
-
input.ecrImagePushedAt !== null && {
|
|
2729
|
+
...(input.ecrImagePushedAt != null && {
|
|
2641
2730
|
ecrImagePushedAt: serializeAws_restJson1DateFilterList(input.ecrImagePushedAt, context),
|
|
2642
2731
|
}),
|
|
2643
|
-
...(input.ecrImageRegistry
|
|
2644
|
-
input.ecrImageRegistry !== null && {
|
|
2732
|
+
...(input.ecrImageRegistry != null && {
|
|
2645
2733
|
ecrImageRegistry: serializeAws_restJson1StringFilterList(input.ecrImageRegistry, context),
|
|
2646
2734
|
}),
|
|
2647
|
-
...(input.ecrImageRepositoryName
|
|
2648
|
-
input.ecrImageRepositoryName !== null && {
|
|
2735
|
+
...(input.ecrImageRepositoryName != null && {
|
|
2649
2736
|
ecrImageRepositoryName: serializeAws_restJson1StringFilterList(input.ecrImageRepositoryName, context),
|
|
2650
2737
|
}),
|
|
2651
|
-
...(input.ecrImageTags
|
|
2652
|
-
input.ecrImageTags !== null && {
|
|
2738
|
+
...(input.ecrImageTags != null && {
|
|
2653
2739
|
ecrImageTags: serializeAws_restJson1StringFilterList(input.ecrImageTags, context),
|
|
2654
2740
|
}),
|
|
2655
|
-
...(input.findingArn
|
|
2656
|
-
|
|
2657
|
-
...(input.findingStatus !== undefined &&
|
|
2658
|
-
input.findingStatus !== null && {
|
|
2741
|
+
...(input.findingArn != null && { findingArn: serializeAws_restJson1StringFilterList(input.findingArn, context) }),
|
|
2742
|
+
...(input.findingStatus != null && {
|
|
2659
2743
|
findingStatus: serializeAws_restJson1StringFilterList(input.findingStatus, context),
|
|
2660
2744
|
}),
|
|
2661
|
-
...(input.findingType
|
|
2662
|
-
input.findingType !== null && {
|
|
2745
|
+
...(input.findingType != null && {
|
|
2663
2746
|
findingType: serializeAws_restJson1StringFilterList(input.findingType, context),
|
|
2664
2747
|
}),
|
|
2665
|
-
...(input.firstObservedAt
|
|
2666
|
-
input.firstObservedAt !== null && {
|
|
2748
|
+
...(input.firstObservedAt != null && {
|
|
2667
2749
|
firstObservedAt: serializeAws_restJson1DateFilterList(input.firstObservedAt, context),
|
|
2668
2750
|
}),
|
|
2669
|
-
...(input.inspectorScore
|
|
2670
|
-
input.inspectorScore !== null && {
|
|
2751
|
+
...(input.inspectorScore != null && {
|
|
2671
2752
|
inspectorScore: serializeAws_restJson1NumberFilterList(input.inspectorScore, context),
|
|
2672
2753
|
}),
|
|
2673
|
-
...(input.lastObservedAt
|
|
2674
|
-
input.lastObservedAt !== null && {
|
|
2754
|
+
...(input.lastObservedAt != null && {
|
|
2675
2755
|
lastObservedAt: serializeAws_restJson1DateFilterList(input.lastObservedAt, context),
|
|
2676
2756
|
}),
|
|
2677
|
-
...(input.networkProtocol
|
|
2678
|
-
input.networkProtocol !== null && {
|
|
2757
|
+
...(input.networkProtocol != null && {
|
|
2679
2758
|
networkProtocol: serializeAws_restJson1StringFilterList(input.networkProtocol, context),
|
|
2680
2759
|
}),
|
|
2681
|
-
...(input.portRange
|
|
2682
|
-
|
|
2683
|
-
...(input.relatedVulnerabilities !== undefined &&
|
|
2684
|
-
input.relatedVulnerabilities !== null && {
|
|
2760
|
+
...(input.portRange != null && { portRange: serializeAws_restJson1PortRangeFilterList(input.portRange, context) }),
|
|
2761
|
+
...(input.relatedVulnerabilities != null && {
|
|
2685
2762
|
relatedVulnerabilities: serializeAws_restJson1StringFilterList(input.relatedVulnerabilities, context),
|
|
2686
2763
|
}),
|
|
2687
|
-
...(input.resourceId
|
|
2688
|
-
|
|
2689
|
-
...(input.resourceTags !== undefined &&
|
|
2690
|
-
input.resourceTags !== null && {
|
|
2764
|
+
...(input.resourceId != null && { resourceId: serializeAws_restJson1StringFilterList(input.resourceId, context) }),
|
|
2765
|
+
...(input.resourceTags != null && {
|
|
2691
2766
|
resourceTags: serializeAws_restJson1MapFilterList(input.resourceTags, context),
|
|
2692
2767
|
}),
|
|
2693
|
-
...(input.resourceType
|
|
2694
|
-
input.resourceType !== null && {
|
|
2768
|
+
...(input.resourceType != null && {
|
|
2695
2769
|
resourceType: serializeAws_restJson1StringFilterList(input.resourceType, context),
|
|
2696
2770
|
}),
|
|
2697
|
-
...(input.severity
|
|
2698
|
-
|
|
2699
|
-
...(input.
|
|
2700
|
-
|
|
2701
|
-
...(input.updatedAt !== undefined &&
|
|
2702
|
-
input.updatedAt !== null && { updatedAt: serializeAws_restJson1DateFilterList(input.updatedAt, context) }),
|
|
2703
|
-
...(input.vendorSeverity !== undefined &&
|
|
2704
|
-
input.vendorSeverity !== null && {
|
|
2771
|
+
...(input.severity != null && { severity: serializeAws_restJson1StringFilterList(input.severity, context) }),
|
|
2772
|
+
...(input.title != null && { title: serializeAws_restJson1StringFilterList(input.title, context) }),
|
|
2773
|
+
...(input.updatedAt != null && { updatedAt: serializeAws_restJson1DateFilterList(input.updatedAt, context) }),
|
|
2774
|
+
...(input.vendorSeverity != null && {
|
|
2705
2775
|
vendorSeverity: serializeAws_restJson1StringFilterList(input.vendorSeverity, context),
|
|
2706
2776
|
}),
|
|
2707
|
-
...(input.vulnerabilityId
|
|
2708
|
-
input.vulnerabilityId !== null && {
|
|
2777
|
+
...(input.vulnerabilityId != null && {
|
|
2709
2778
|
vulnerabilityId: serializeAws_restJson1StringFilterList(input.vulnerabilityId, context),
|
|
2710
2779
|
}),
|
|
2711
|
-
...(input.vulnerabilitySource
|
|
2712
|
-
input.vulnerabilitySource !== null && {
|
|
2780
|
+
...(input.vulnerabilitySource != null && {
|
|
2713
2781
|
vulnerabilitySource: serializeAws_restJson1StringFilterList(input.vulnerabilitySource, context),
|
|
2714
2782
|
}),
|
|
2715
|
-
...(input.vulnerablePackages
|
|
2716
|
-
input.vulnerablePackages !== null && {
|
|
2783
|
+
...(input.vulnerablePackages != null && {
|
|
2717
2784
|
vulnerablePackages: serializeAws_restJson1PackageFilterList(input.vulnerablePackages, context),
|
|
2718
2785
|
}),
|
|
2719
2786
|
};
|
|
2720
2787
|
};
|
|
2721
2788
|
const serializeAws_restJson1FindingTypeAggregation = (input, context) => {
|
|
2722
2789
|
return {
|
|
2723
|
-
...(input.findingType
|
|
2724
|
-
...(input.resourceType
|
|
2725
|
-
...(input.sortBy
|
|
2726
|
-
...(input.sortOrder
|
|
2790
|
+
...(input.findingType != null && { findingType: input.findingType }),
|
|
2791
|
+
...(input.resourceType != null && { resourceType: input.resourceType }),
|
|
2792
|
+
...(input.sortBy != null && { sortBy: input.sortBy }),
|
|
2793
|
+
...(input.sortOrder != null && { sortOrder: input.sortOrder }),
|
|
2727
2794
|
};
|
|
2728
2795
|
};
|
|
2729
2796
|
const serializeAws_restJson1ImageLayerAggregation = (input, context) => {
|
|
2730
2797
|
return {
|
|
2731
|
-
...(input.layerHashes
|
|
2732
|
-
input.layerHashes !== null && {
|
|
2798
|
+
...(input.layerHashes != null && {
|
|
2733
2799
|
layerHashes: serializeAws_restJson1StringFilterList(input.layerHashes, context),
|
|
2734
2800
|
}),
|
|
2735
|
-
...(input.repositories
|
|
2736
|
-
input.repositories !== null && {
|
|
2801
|
+
...(input.repositories != null && {
|
|
2737
2802
|
repositories: serializeAws_restJson1StringFilterList(input.repositories, context),
|
|
2738
2803
|
}),
|
|
2739
|
-
...(input.resourceIds
|
|
2740
|
-
input.resourceIds !== null && {
|
|
2804
|
+
...(input.resourceIds != null && {
|
|
2741
2805
|
resourceIds: serializeAws_restJson1StringFilterList(input.resourceIds, context),
|
|
2742
2806
|
}),
|
|
2743
|
-
...(input.sortBy
|
|
2744
|
-
...(input.sortOrder
|
|
2807
|
+
...(input.sortBy != null && { sortBy: input.sortBy }),
|
|
2808
|
+
...(input.sortOrder != null && { sortOrder: input.sortOrder }),
|
|
2745
2809
|
};
|
|
2746
2810
|
};
|
|
2747
2811
|
const serializeAws_restJson1MapFilter = (input, context) => {
|
|
2748
2812
|
return {
|
|
2749
|
-
...(input.comparison
|
|
2750
|
-
...(input.key
|
|
2751
|
-
...(input.value
|
|
2813
|
+
...(input.comparison != null && { comparison: input.comparison }),
|
|
2814
|
+
...(input.key != null && { key: input.key }),
|
|
2815
|
+
...(input.value != null && { value: input.value }),
|
|
2752
2816
|
};
|
|
2753
2817
|
};
|
|
2754
2818
|
const serializeAws_restJson1MapFilterList = (input, context) => {
|
|
@@ -2773,10 +2837,8 @@ const serializeAws_restJson1MeteringAccountIdList = (input, context) => {
|
|
|
2773
2837
|
};
|
|
2774
2838
|
const serializeAws_restJson1NumberFilter = (input, context) => {
|
|
2775
2839
|
return {
|
|
2776
|
-
...(input.lowerInclusive
|
|
2777
|
-
|
|
2778
|
-
...(input.upperInclusive !== undefined &&
|
|
2779
|
-
input.upperInclusive !== null && { upperInclusive: (0, smithy_client_1.serializeFloat)(input.upperInclusive) }),
|
|
2840
|
+
...(input.lowerInclusive != null && { lowerInclusive: (0, smithy_client_1.serializeFloat)(input.lowerInclusive) }),
|
|
2841
|
+
...(input.upperInclusive != null && { upperInclusive: (0, smithy_client_1.serializeFloat)(input.upperInclusive) }),
|
|
2780
2842
|
};
|
|
2781
2843
|
};
|
|
2782
2844
|
const serializeAws_restJson1NumberFilterList = (input, context) => {
|
|
@@ -2791,30 +2853,25 @@ const serializeAws_restJson1NumberFilterList = (input, context) => {
|
|
|
2791
2853
|
};
|
|
2792
2854
|
const serializeAws_restJson1PackageAggregation = (input, context) => {
|
|
2793
2855
|
return {
|
|
2794
|
-
...(input.packageNames
|
|
2795
|
-
input.packageNames !== null && {
|
|
2856
|
+
...(input.packageNames != null && {
|
|
2796
2857
|
packageNames: serializeAws_restJson1StringFilterList(input.packageNames, context),
|
|
2797
2858
|
}),
|
|
2798
|
-
...(input.sortBy
|
|
2799
|
-
...(input.sortOrder
|
|
2859
|
+
...(input.sortBy != null && { sortBy: input.sortBy }),
|
|
2860
|
+
...(input.sortOrder != null && { sortOrder: input.sortOrder }),
|
|
2800
2861
|
};
|
|
2801
2862
|
};
|
|
2802
2863
|
const serializeAws_restJson1PackageFilter = (input, context) => {
|
|
2803
2864
|
return {
|
|
2804
|
-
...(input.architecture
|
|
2805
|
-
|
|
2806
|
-
|
|
2807
|
-
|
|
2808
|
-
...(input.name
|
|
2809
|
-
|
|
2810
|
-
...(input.
|
|
2811
|
-
input.release !== null && { release: serializeAws_restJson1StringFilter(input.release, context) }),
|
|
2812
|
-
...(input.sourceLayerHash !== undefined &&
|
|
2813
|
-
input.sourceLayerHash !== null && {
|
|
2865
|
+
...(input.architecture != null && {
|
|
2866
|
+
architecture: serializeAws_restJson1StringFilter(input.architecture, context),
|
|
2867
|
+
}),
|
|
2868
|
+
...(input.epoch != null && { epoch: serializeAws_restJson1NumberFilter(input.epoch, context) }),
|
|
2869
|
+
...(input.name != null && { name: serializeAws_restJson1StringFilter(input.name, context) }),
|
|
2870
|
+
...(input.release != null && { release: serializeAws_restJson1StringFilter(input.release, context) }),
|
|
2871
|
+
...(input.sourceLayerHash != null && {
|
|
2814
2872
|
sourceLayerHash: serializeAws_restJson1StringFilter(input.sourceLayerHash, context),
|
|
2815
2873
|
}),
|
|
2816
|
-
...(input.version
|
|
2817
|
-
input.version !== null && { version: serializeAws_restJson1StringFilter(input.version, context) }),
|
|
2874
|
+
...(input.version != null && { version: serializeAws_restJson1StringFilter(input.version, context) }),
|
|
2818
2875
|
};
|
|
2819
2876
|
};
|
|
2820
2877
|
const serializeAws_restJson1PackageFilterList = (input, context) => {
|
|
@@ -2829,9 +2886,8 @@ const serializeAws_restJson1PackageFilterList = (input, context) => {
|
|
|
2829
2886
|
};
|
|
2830
2887
|
const serializeAws_restJson1PortRangeFilter = (input, context) => {
|
|
2831
2888
|
return {
|
|
2832
|
-
...(input.beginInclusive
|
|
2833
|
-
|
|
2834
|
-
...(input.endInclusive !== undefined && input.endInclusive !== null && { endInclusive: input.endInclusive }),
|
|
2889
|
+
...(input.beginInclusive != null && { beginInclusive: input.beginInclusive }),
|
|
2890
|
+
...(input.endInclusive != null && { endInclusive: input.endInclusive }),
|
|
2835
2891
|
};
|
|
2836
2892
|
};
|
|
2837
2893
|
const serializeAws_restJson1PortRangeFilterList = (input, context) => {
|
|
@@ -2846,24 +2902,23 @@ const serializeAws_restJson1PortRangeFilterList = (input, context) => {
|
|
|
2846
2902
|
};
|
|
2847
2903
|
const serializeAws_restJson1RepositoryAggregation = (input, context) => {
|
|
2848
2904
|
return {
|
|
2849
|
-
...(input.repositories
|
|
2850
|
-
input.repositories !== null && {
|
|
2905
|
+
...(input.repositories != null && {
|
|
2851
2906
|
repositories: serializeAws_restJson1StringFilterList(input.repositories, context),
|
|
2852
2907
|
}),
|
|
2853
|
-
...(input.sortBy
|
|
2854
|
-
...(input.sortOrder
|
|
2908
|
+
...(input.sortBy != null && { sortBy: input.sortBy }),
|
|
2909
|
+
...(input.sortOrder != null && { sortOrder: input.sortOrder }),
|
|
2855
2910
|
};
|
|
2856
2911
|
};
|
|
2857
2912
|
const serializeAws_restJson1SortCriteria = (input, context) => {
|
|
2858
2913
|
return {
|
|
2859
|
-
...(input.field
|
|
2860
|
-
...(input.sortOrder
|
|
2914
|
+
...(input.field != null && { field: input.field }),
|
|
2915
|
+
...(input.sortOrder != null && { sortOrder: input.sortOrder }),
|
|
2861
2916
|
};
|
|
2862
2917
|
};
|
|
2863
2918
|
const serializeAws_restJson1StringFilter = (input, context) => {
|
|
2864
2919
|
return {
|
|
2865
|
-
...(input.comparison
|
|
2866
|
-
...(input.value
|
|
2920
|
+
...(input.comparison != null && { comparison: input.comparison }),
|
|
2921
|
+
...(input.value != null && { value: input.value }),
|
|
2867
2922
|
};
|
|
2868
2923
|
};
|
|
2869
2924
|
const serializeAws_restJson1StringFilterList = (input, context) => {
|
|
@@ -2889,13 +2944,11 @@ const serializeAws_restJson1TagMap = (input, context) => {
|
|
|
2889
2944
|
};
|
|
2890
2945
|
const serializeAws_restJson1TitleAggregation = (input, context) => {
|
|
2891
2946
|
return {
|
|
2892
|
-
...(input.resourceType
|
|
2893
|
-
...(input.sortBy
|
|
2894
|
-
...(input.sortOrder
|
|
2895
|
-
...(input.titles
|
|
2896
|
-
|
|
2897
|
-
...(input.vulnerabilityIds !== undefined &&
|
|
2898
|
-
input.vulnerabilityIds !== null && {
|
|
2947
|
+
...(input.resourceType != null && { resourceType: input.resourceType }),
|
|
2948
|
+
...(input.sortBy != null && { sortBy: input.sortBy }),
|
|
2949
|
+
...(input.sortOrder != null && { sortOrder: input.sortOrder }),
|
|
2950
|
+
...(input.titles != null && { titles: serializeAws_restJson1StringFilterList(input.titles, context) }),
|
|
2951
|
+
...(input.vulnerabilityIds != null && {
|
|
2899
2952
|
vulnerabilityIds: serializeAws_restJson1StringFilterList(input.vulnerabilityIds, context),
|
|
2900
2953
|
}),
|
|
2901
2954
|
};
|
|
@@ -2913,7 +2966,7 @@ const serializeAws_restJson1UsageAccountIdList = (input, context) => {
|
|
|
2913
2966
|
const deserializeAws_restJson1Account = (output, context) => {
|
|
2914
2967
|
return {
|
|
2915
2968
|
accountId: (0, smithy_client_1.expectString)(output.accountId),
|
|
2916
|
-
resourceStatus: output.resourceStatus
|
|
2969
|
+
resourceStatus: output.resourceStatus != null
|
|
2917
2970
|
? deserializeAws_restJson1ResourceStatus(output.resourceStatus, context)
|
|
2918
2971
|
: undefined,
|
|
2919
2972
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
@@ -2922,7 +2975,7 @@ const deserializeAws_restJson1Account = (output, context) => {
|
|
|
2922
2975
|
const deserializeAws_restJson1AccountAggregationResponse = (output, context) => {
|
|
2923
2976
|
return {
|
|
2924
2977
|
accountId: (0, smithy_client_1.expectString)(output.accountId),
|
|
2925
|
-
severityCounts: output.severityCounts
|
|
2978
|
+
severityCounts: output.severityCounts != null
|
|
2926
2979
|
? deserializeAws_restJson1SeverityCounts(output.severityCounts, context)
|
|
2927
2980
|
: undefined,
|
|
2928
2981
|
};
|
|
@@ -2941,12 +2994,8 @@ const deserializeAws_restJson1AccountList = (output, context) => {
|
|
|
2941
2994
|
const deserializeAws_restJson1AccountState = (output, context) => {
|
|
2942
2995
|
return {
|
|
2943
2996
|
accountId: (0, smithy_client_1.expectString)(output.accountId),
|
|
2944
|
-
resourceState: output.resourceState
|
|
2945
|
-
|
|
2946
|
-
: undefined,
|
|
2947
|
-
state: output.state !== undefined && output.state !== null
|
|
2948
|
-
? deserializeAws_restJson1State(output.state, context)
|
|
2949
|
-
: undefined,
|
|
2997
|
+
resourceState: output.resourceState != null ? deserializeAws_restJson1ResourceState(output.resourceState, context) : undefined,
|
|
2998
|
+
state: output.state != null ? deserializeAws_restJson1State(output.state, context) : undefined,
|
|
2950
2999
|
};
|
|
2951
3000
|
};
|
|
2952
3001
|
const deserializeAws_restJson1AccountStateList = (output, context) => {
|
|
@@ -3024,7 +3073,7 @@ const deserializeAws_restJson1AmiAggregationResponse = (output, context) => {
|
|
|
3024
3073
|
accountId: (0, smithy_client_1.expectString)(output.accountId),
|
|
3025
3074
|
affectedInstances: (0, smithy_client_1.expectLong)(output.affectedInstances),
|
|
3026
3075
|
ami: (0, smithy_client_1.expectString)(output.ami),
|
|
3027
|
-
severityCounts: output.severityCounts
|
|
3076
|
+
severityCounts: output.severityCounts != null
|
|
3028
3077
|
? deserializeAws_restJson1SeverityCounts(output.severityCounts, context)
|
|
3029
3078
|
: undefined,
|
|
3030
3079
|
};
|
|
@@ -3039,16 +3088,10 @@ const deserializeAws_restJson1AwsEc2InstanceDetails = (output, context) => {
|
|
|
3039
3088
|
return {
|
|
3040
3089
|
iamInstanceProfileArn: (0, smithy_client_1.expectString)(output.iamInstanceProfileArn),
|
|
3041
3090
|
imageId: (0, smithy_client_1.expectString)(output.imageId),
|
|
3042
|
-
ipV4Addresses: output.ipV4Addresses
|
|
3043
|
-
|
|
3044
|
-
: undefined,
|
|
3045
|
-
ipV6Addresses: output.ipV6Addresses !== undefined && output.ipV6Addresses !== null
|
|
3046
|
-
? deserializeAws_restJson1IpV6AddressList(output.ipV6Addresses, context)
|
|
3047
|
-
: undefined,
|
|
3091
|
+
ipV4Addresses: output.ipV4Addresses != null ? deserializeAws_restJson1IpV4AddressList(output.ipV4Addresses, context) : undefined,
|
|
3092
|
+
ipV6Addresses: output.ipV6Addresses != null ? deserializeAws_restJson1IpV6AddressList(output.ipV6Addresses, context) : undefined,
|
|
3048
3093
|
keyName: (0, smithy_client_1.expectString)(output.keyName),
|
|
3049
|
-
launchedAt: output.launchedAt
|
|
3050
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.launchedAt)))
|
|
3051
|
-
: undefined,
|
|
3094
|
+
launchedAt: output.launchedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.launchedAt))) : undefined,
|
|
3052
3095
|
platform: (0, smithy_client_1.expectString)(output.platform),
|
|
3053
3096
|
subnetId: (0, smithy_client_1.expectString)(output.subnetId),
|
|
3054
3097
|
type: (0, smithy_client_1.expectString)(output.type),
|
|
@@ -3060,12 +3103,10 @@ const deserializeAws_restJson1AwsEcrContainerAggregationResponse = (output, cont
|
|
|
3060
3103
|
accountId: (0, smithy_client_1.expectString)(output.accountId),
|
|
3061
3104
|
architecture: (0, smithy_client_1.expectString)(output.architecture),
|
|
3062
3105
|
imageSha: (0, smithy_client_1.expectString)(output.imageSha),
|
|
3063
|
-
imageTags: output.imageTags
|
|
3064
|
-
? deserializeAws_restJson1StringList(output.imageTags, context)
|
|
3065
|
-
: undefined,
|
|
3106
|
+
imageTags: output.imageTags != null ? deserializeAws_restJson1StringList(output.imageTags, context) : undefined,
|
|
3066
3107
|
repository: (0, smithy_client_1.expectString)(output.repository),
|
|
3067
3108
|
resourceId: (0, smithy_client_1.expectString)(output.resourceId),
|
|
3068
|
-
severityCounts: output.severityCounts
|
|
3109
|
+
severityCounts: output.severityCounts != null
|
|
3069
3110
|
? deserializeAws_restJson1SeverityCounts(output.severityCounts, context)
|
|
3070
3111
|
: undefined,
|
|
3071
3112
|
};
|
|
@@ -3075,13 +3116,9 @@ const deserializeAws_restJson1AwsEcrContainerImageDetails = (output, context) =>
|
|
|
3075
3116
|
architecture: (0, smithy_client_1.expectString)(output.architecture),
|
|
3076
3117
|
author: (0, smithy_client_1.expectString)(output.author),
|
|
3077
3118
|
imageHash: (0, smithy_client_1.expectString)(output.imageHash),
|
|
3078
|
-
imageTags: output.imageTags
|
|
3079
|
-
? deserializeAws_restJson1ImageTagList(output.imageTags, context)
|
|
3080
|
-
: undefined,
|
|
3119
|
+
imageTags: output.imageTags != null ? deserializeAws_restJson1ImageTagList(output.imageTags, context) : undefined,
|
|
3081
3120
|
platform: (0, smithy_client_1.expectString)(output.platform),
|
|
3082
|
-
pushedAt: output.pushedAt
|
|
3083
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.pushedAt)))
|
|
3084
|
-
: undefined,
|
|
3121
|
+
pushedAt: output.pushedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.pushedAt))) : undefined,
|
|
3085
3122
|
registry: (0, smithy_client_1.expectString)(output.registry),
|
|
3086
3123
|
repositoryName: (0, smithy_client_1.expectString)(output.repositoryName),
|
|
3087
3124
|
};
|
|
@@ -3107,13 +3144,11 @@ const deserializeAws_restJson1CoveredResource = (output, context) => {
|
|
|
3107
3144
|
return {
|
|
3108
3145
|
accountId: (0, smithy_client_1.expectString)(output.accountId),
|
|
3109
3146
|
resourceId: (0, smithy_client_1.expectString)(output.resourceId),
|
|
3110
|
-
resourceMetadata: output.resourceMetadata
|
|
3147
|
+
resourceMetadata: output.resourceMetadata != null
|
|
3111
3148
|
? deserializeAws_restJson1ResourceScanMetadata(output.resourceMetadata, context)
|
|
3112
3149
|
: undefined,
|
|
3113
3150
|
resourceType: (0, smithy_client_1.expectString)(output.resourceType),
|
|
3114
|
-
scanStatus: output.scanStatus
|
|
3115
|
-
? deserializeAws_restJson1ScanStatus(output.scanStatus, context)
|
|
3116
|
-
: undefined,
|
|
3151
|
+
scanStatus: output.scanStatus != null ? deserializeAws_restJson1ScanStatus(output.scanStatus, context) : undefined,
|
|
3117
3152
|
scanType: (0, smithy_client_1.expectString)(output.scanType),
|
|
3118
3153
|
};
|
|
3119
3154
|
};
|
|
@@ -3155,7 +3190,7 @@ const deserializeAws_restJson1CvssScoreAdjustmentList = (output, context) => {
|
|
|
3155
3190
|
};
|
|
3156
3191
|
const deserializeAws_restJson1CvssScoreDetails = (output, context) => {
|
|
3157
3192
|
return {
|
|
3158
|
-
adjustments: output.adjustments
|
|
3193
|
+
adjustments: output.adjustments != null
|
|
3159
3194
|
? deserializeAws_restJson1CvssScoreAdjustmentList(output.adjustments, context)
|
|
3160
3195
|
: undefined,
|
|
3161
3196
|
cvssSource: (0, smithy_client_1.expectString)(output.cvssSource),
|
|
@@ -3178,10 +3213,10 @@ const deserializeAws_restJson1CvssScoreList = (output, context) => {
|
|
|
3178
3213
|
};
|
|
3179
3214
|
const deserializeAws_restJson1DateFilter = (output, context) => {
|
|
3180
3215
|
return {
|
|
3181
|
-
endInclusive: output.endInclusive
|
|
3216
|
+
endInclusive: output.endInclusive != null
|
|
3182
3217
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.endInclusive)))
|
|
3183
3218
|
: undefined,
|
|
3184
|
-
startInclusive: output.startInclusive
|
|
3219
|
+
startInclusive: output.startInclusive != null
|
|
3185
3220
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startInclusive)))
|
|
3186
3221
|
: undefined,
|
|
3187
3222
|
};
|
|
@@ -3232,12 +3267,10 @@ const deserializeAws_restJson1Ec2InstanceAggregationResponse = (output, context)
|
|
|
3232
3267
|
accountId: (0, smithy_client_1.expectString)(output.accountId),
|
|
3233
3268
|
ami: (0, smithy_client_1.expectString)(output.ami),
|
|
3234
3269
|
instanceId: (0, smithy_client_1.expectString)(output.instanceId),
|
|
3235
|
-
instanceTags: output.instanceTags
|
|
3236
|
-
? deserializeAws_restJson1TagMap(output.instanceTags, context)
|
|
3237
|
-
: undefined,
|
|
3270
|
+
instanceTags: output.instanceTags != null ? deserializeAws_restJson1TagMap(output.instanceTags, context) : undefined,
|
|
3238
3271
|
networkFindings: (0, smithy_client_1.expectLong)(output.networkFindings),
|
|
3239
3272
|
operatingSystem: (0, smithy_client_1.expectString)(output.operatingSystem),
|
|
3240
|
-
severityCounts: output.severityCounts
|
|
3273
|
+
severityCounts: output.severityCounts != null
|
|
3241
3274
|
? deserializeAws_restJson1SeverityCounts(output.severityCounts, context)
|
|
3242
3275
|
: undefined,
|
|
3243
3276
|
};
|
|
@@ -3246,16 +3279,19 @@ const deserializeAws_restJson1Ec2Metadata = (output, context) => {
|
|
|
3246
3279
|
return {
|
|
3247
3280
|
amiId: (0, smithy_client_1.expectString)(output.amiId),
|
|
3248
3281
|
platform: (0, smithy_client_1.expectString)(output.platform),
|
|
3249
|
-
tags: output.tags
|
|
3250
|
-
|
|
3282
|
+
tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
|
|
3283
|
+
};
|
|
3284
|
+
};
|
|
3285
|
+
const deserializeAws_restJson1EcrConfigurationState = (output, context) => {
|
|
3286
|
+
return {
|
|
3287
|
+
rescanDurationState: output.rescanDurationState != null
|
|
3288
|
+
? deserializeAws_restJson1EcrRescanDurationState(output.rescanDurationState, context)
|
|
3251
3289
|
: undefined,
|
|
3252
3290
|
};
|
|
3253
3291
|
};
|
|
3254
3292
|
const deserializeAws_restJson1EcrContainerImageMetadata = (output, context) => {
|
|
3255
3293
|
return {
|
|
3256
|
-
tags: output.tags
|
|
3257
|
-
? deserializeAws_restJson1TagList(output.tags, context)
|
|
3258
|
-
: undefined,
|
|
3294
|
+
tags: output.tags != null ? deserializeAws_restJson1TagList(output.tags, context) : undefined,
|
|
3259
3295
|
};
|
|
3260
3296
|
};
|
|
3261
3297
|
const deserializeAws_restJson1EcrRepositoryMetadata = (output, context) => {
|
|
@@ -3264,12 +3300,19 @@ const deserializeAws_restJson1EcrRepositoryMetadata = (output, context) => {
|
|
|
3264
3300
|
scanFrequency: (0, smithy_client_1.expectString)(output.scanFrequency),
|
|
3265
3301
|
};
|
|
3266
3302
|
};
|
|
3303
|
+
const deserializeAws_restJson1EcrRescanDurationState = (output, context) => {
|
|
3304
|
+
return {
|
|
3305
|
+
rescanDuration: (0, smithy_client_1.expectString)(output.rescanDuration),
|
|
3306
|
+
status: (0, smithy_client_1.expectString)(output.status),
|
|
3307
|
+
updatedAt: output.updatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updatedAt))) : undefined,
|
|
3308
|
+
};
|
|
3309
|
+
};
|
|
3267
3310
|
const deserializeAws_restJson1FailedAccount = (output, context) => {
|
|
3268
3311
|
return {
|
|
3269
3312
|
accountId: (0, smithy_client_1.expectString)(output.accountId),
|
|
3270
3313
|
errorCode: (0, smithy_client_1.expectString)(output.errorCode),
|
|
3271
3314
|
errorMessage: (0, smithy_client_1.expectString)(output.errorMessage),
|
|
3272
|
-
resourceStatus: output.resourceStatus
|
|
3315
|
+
resourceStatus: output.resourceStatus != null
|
|
3273
3316
|
? deserializeAws_restJson1ResourceStatus(output.resourceStatus, context)
|
|
3274
3317
|
: undefined,
|
|
3275
3318
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
@@ -3290,117 +3333,83 @@ const deserializeAws_restJson1Filter = (output, context) => {
|
|
|
3290
3333
|
return {
|
|
3291
3334
|
action: (0, smithy_client_1.expectString)(output.action),
|
|
3292
3335
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
3293
|
-
createdAt: output.createdAt
|
|
3294
|
-
|
|
3295
|
-
: undefined,
|
|
3296
|
-
criteria: output.criteria !== undefined && output.criteria !== null
|
|
3297
|
-
? deserializeAws_restJson1FilterCriteria(output.criteria, context)
|
|
3298
|
-
: undefined,
|
|
3336
|
+
createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
|
|
3337
|
+
criteria: output.criteria != null ? deserializeAws_restJson1FilterCriteria(output.criteria, context) : undefined,
|
|
3299
3338
|
description: (0, smithy_client_1.expectString)(output.description),
|
|
3300
3339
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
3301
3340
|
ownerId: (0, smithy_client_1.expectString)(output.ownerId),
|
|
3302
3341
|
reason: (0, smithy_client_1.expectString)(output.reason),
|
|
3303
|
-
tags: output.tags
|
|
3304
|
-
|
|
3305
|
-
: undefined,
|
|
3306
|
-
updatedAt: output.updatedAt !== undefined && output.updatedAt !== null
|
|
3307
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updatedAt)))
|
|
3308
|
-
: undefined,
|
|
3342
|
+
tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
|
|
3343
|
+
updatedAt: output.updatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updatedAt))) : undefined,
|
|
3309
3344
|
};
|
|
3310
3345
|
};
|
|
3311
3346
|
const deserializeAws_restJson1FilterCriteria = (output, context) => {
|
|
3312
3347
|
return {
|
|
3313
|
-
awsAccountId: output.awsAccountId
|
|
3314
|
-
|
|
3315
|
-
|
|
3316
|
-
componentId: output.componentId !== undefined && output.componentId !== null
|
|
3317
|
-
? deserializeAws_restJson1StringFilterList(output.componentId, context)
|
|
3318
|
-
: undefined,
|
|
3319
|
-
componentType: output.componentType !== undefined && output.componentType !== null
|
|
3348
|
+
awsAccountId: output.awsAccountId != null ? deserializeAws_restJson1StringFilterList(output.awsAccountId, context) : undefined,
|
|
3349
|
+
componentId: output.componentId != null ? deserializeAws_restJson1StringFilterList(output.componentId, context) : undefined,
|
|
3350
|
+
componentType: output.componentType != null
|
|
3320
3351
|
? deserializeAws_restJson1StringFilterList(output.componentType, context)
|
|
3321
3352
|
: undefined,
|
|
3322
|
-
ec2InstanceImageId: output.ec2InstanceImageId
|
|
3353
|
+
ec2InstanceImageId: output.ec2InstanceImageId != null
|
|
3323
3354
|
? deserializeAws_restJson1StringFilterList(output.ec2InstanceImageId, context)
|
|
3324
3355
|
: undefined,
|
|
3325
|
-
ec2InstanceSubnetId: output.ec2InstanceSubnetId
|
|
3356
|
+
ec2InstanceSubnetId: output.ec2InstanceSubnetId != null
|
|
3326
3357
|
? deserializeAws_restJson1StringFilterList(output.ec2InstanceSubnetId, context)
|
|
3327
3358
|
: undefined,
|
|
3328
|
-
ec2InstanceVpcId: output.ec2InstanceVpcId
|
|
3359
|
+
ec2InstanceVpcId: output.ec2InstanceVpcId != null
|
|
3329
3360
|
? deserializeAws_restJson1StringFilterList(output.ec2InstanceVpcId, context)
|
|
3330
3361
|
: undefined,
|
|
3331
|
-
ecrImageArchitecture: output.ecrImageArchitecture
|
|
3362
|
+
ecrImageArchitecture: output.ecrImageArchitecture != null
|
|
3332
3363
|
? deserializeAws_restJson1StringFilterList(output.ecrImageArchitecture, context)
|
|
3333
3364
|
: undefined,
|
|
3334
|
-
ecrImageHash: output.ecrImageHash
|
|
3335
|
-
|
|
3336
|
-
: undefined,
|
|
3337
|
-
ecrImagePushedAt: output.ecrImagePushedAt !== undefined && output.ecrImagePushedAt !== null
|
|
3365
|
+
ecrImageHash: output.ecrImageHash != null ? deserializeAws_restJson1StringFilterList(output.ecrImageHash, context) : undefined,
|
|
3366
|
+
ecrImagePushedAt: output.ecrImagePushedAt != null
|
|
3338
3367
|
? deserializeAws_restJson1DateFilterList(output.ecrImagePushedAt, context)
|
|
3339
3368
|
: undefined,
|
|
3340
|
-
ecrImageRegistry: output.ecrImageRegistry
|
|
3369
|
+
ecrImageRegistry: output.ecrImageRegistry != null
|
|
3341
3370
|
? deserializeAws_restJson1StringFilterList(output.ecrImageRegistry, context)
|
|
3342
3371
|
: undefined,
|
|
3343
|
-
ecrImageRepositoryName: output.ecrImageRepositoryName
|
|
3372
|
+
ecrImageRepositoryName: output.ecrImageRepositoryName != null
|
|
3344
3373
|
? deserializeAws_restJson1StringFilterList(output.ecrImageRepositoryName, context)
|
|
3345
3374
|
: undefined,
|
|
3346
|
-
ecrImageTags: output.ecrImageTags
|
|
3347
|
-
|
|
3348
|
-
|
|
3349
|
-
findingArn: output.findingArn !== undefined && output.findingArn !== null
|
|
3350
|
-
? deserializeAws_restJson1StringFilterList(output.findingArn, context)
|
|
3351
|
-
: undefined,
|
|
3352
|
-
findingStatus: output.findingStatus !== undefined && output.findingStatus !== null
|
|
3375
|
+
ecrImageTags: output.ecrImageTags != null ? deserializeAws_restJson1StringFilterList(output.ecrImageTags, context) : undefined,
|
|
3376
|
+
findingArn: output.findingArn != null ? deserializeAws_restJson1StringFilterList(output.findingArn, context) : undefined,
|
|
3377
|
+
findingStatus: output.findingStatus != null
|
|
3353
3378
|
? deserializeAws_restJson1StringFilterList(output.findingStatus, context)
|
|
3354
3379
|
: undefined,
|
|
3355
|
-
findingType: output.findingType
|
|
3356
|
-
|
|
3357
|
-
: undefined,
|
|
3358
|
-
firstObservedAt: output.firstObservedAt !== undefined && output.firstObservedAt !== null
|
|
3380
|
+
findingType: output.findingType != null ? deserializeAws_restJson1StringFilterList(output.findingType, context) : undefined,
|
|
3381
|
+
firstObservedAt: output.firstObservedAt != null
|
|
3359
3382
|
? deserializeAws_restJson1DateFilterList(output.firstObservedAt, context)
|
|
3360
3383
|
: undefined,
|
|
3361
|
-
inspectorScore: output.inspectorScore
|
|
3384
|
+
inspectorScore: output.inspectorScore != null
|
|
3362
3385
|
? deserializeAws_restJson1NumberFilterList(output.inspectorScore, context)
|
|
3363
3386
|
: undefined,
|
|
3364
|
-
lastObservedAt: output.lastObservedAt
|
|
3387
|
+
lastObservedAt: output.lastObservedAt != null
|
|
3365
3388
|
? deserializeAws_restJson1DateFilterList(output.lastObservedAt, context)
|
|
3366
3389
|
: undefined,
|
|
3367
|
-
networkProtocol: output.networkProtocol
|
|
3390
|
+
networkProtocol: output.networkProtocol != null
|
|
3368
3391
|
? deserializeAws_restJson1StringFilterList(output.networkProtocol, context)
|
|
3369
3392
|
: undefined,
|
|
3370
|
-
portRange: output.portRange
|
|
3371
|
-
|
|
3372
|
-
: undefined,
|
|
3373
|
-
relatedVulnerabilities: output.relatedVulnerabilities !== undefined && output.relatedVulnerabilities !== null
|
|
3393
|
+
portRange: output.portRange != null ? deserializeAws_restJson1PortRangeFilterList(output.portRange, context) : undefined,
|
|
3394
|
+
relatedVulnerabilities: output.relatedVulnerabilities != null
|
|
3374
3395
|
? deserializeAws_restJson1StringFilterList(output.relatedVulnerabilities, context)
|
|
3375
3396
|
: undefined,
|
|
3376
|
-
resourceId: output.resourceId
|
|
3377
|
-
|
|
3378
|
-
|
|
3379
|
-
|
|
3380
|
-
|
|
3381
|
-
|
|
3382
|
-
|
|
3383
|
-
? deserializeAws_restJson1StringFilterList(output.resourceType, context)
|
|
3384
|
-
: undefined,
|
|
3385
|
-
severity: output.severity !== undefined && output.severity !== null
|
|
3386
|
-
? deserializeAws_restJson1StringFilterList(output.severity, context)
|
|
3387
|
-
: undefined,
|
|
3388
|
-
title: output.title !== undefined && output.title !== null
|
|
3389
|
-
? deserializeAws_restJson1StringFilterList(output.title, context)
|
|
3390
|
-
: undefined,
|
|
3391
|
-
updatedAt: output.updatedAt !== undefined && output.updatedAt !== null
|
|
3392
|
-
? deserializeAws_restJson1DateFilterList(output.updatedAt, context)
|
|
3393
|
-
: undefined,
|
|
3394
|
-
vendorSeverity: output.vendorSeverity !== undefined && output.vendorSeverity !== null
|
|
3397
|
+
resourceId: output.resourceId != null ? deserializeAws_restJson1StringFilterList(output.resourceId, context) : undefined,
|
|
3398
|
+
resourceTags: output.resourceTags != null ? deserializeAws_restJson1MapFilterList(output.resourceTags, context) : undefined,
|
|
3399
|
+
resourceType: output.resourceType != null ? deserializeAws_restJson1StringFilterList(output.resourceType, context) : undefined,
|
|
3400
|
+
severity: output.severity != null ? deserializeAws_restJson1StringFilterList(output.severity, context) : undefined,
|
|
3401
|
+
title: output.title != null ? deserializeAws_restJson1StringFilterList(output.title, context) : undefined,
|
|
3402
|
+
updatedAt: output.updatedAt != null ? deserializeAws_restJson1DateFilterList(output.updatedAt, context) : undefined,
|
|
3403
|
+
vendorSeverity: output.vendorSeverity != null
|
|
3395
3404
|
? deserializeAws_restJson1StringFilterList(output.vendorSeverity, context)
|
|
3396
3405
|
: undefined,
|
|
3397
|
-
vulnerabilityId: output.vulnerabilityId
|
|
3406
|
+
vulnerabilityId: output.vulnerabilityId != null
|
|
3398
3407
|
? deserializeAws_restJson1StringFilterList(output.vulnerabilityId, context)
|
|
3399
3408
|
: undefined,
|
|
3400
|
-
vulnerabilitySource: output.vulnerabilitySource
|
|
3409
|
+
vulnerabilitySource: output.vulnerabilitySource != null
|
|
3401
3410
|
? deserializeAws_restJson1StringFilterList(output.vulnerabilitySource, context)
|
|
3402
3411
|
: undefined,
|
|
3403
|
-
vulnerablePackages: output.vulnerablePackages
|
|
3412
|
+
vulnerablePackages: output.vulnerablePackages != null
|
|
3404
3413
|
? deserializeAws_restJson1PackageFilterList(output.vulnerablePackages, context)
|
|
3405
3414
|
: undefined,
|
|
3406
3415
|
};
|
|
@@ -3421,35 +3430,29 @@ const deserializeAws_restJson1Finding = (output, context) => {
|
|
|
3421
3430
|
awsAccountId: (0, smithy_client_1.expectString)(output.awsAccountId),
|
|
3422
3431
|
description: (0, smithy_client_1.expectString)(output.description),
|
|
3423
3432
|
findingArn: (0, smithy_client_1.expectString)(output.findingArn),
|
|
3424
|
-
firstObservedAt: output.firstObservedAt
|
|
3433
|
+
firstObservedAt: output.firstObservedAt != null
|
|
3425
3434
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.firstObservedAt)))
|
|
3426
3435
|
: undefined,
|
|
3427
3436
|
inspectorScore: (0, smithy_client_1.limitedParseDouble)(output.inspectorScore),
|
|
3428
|
-
inspectorScoreDetails: output.inspectorScoreDetails
|
|
3437
|
+
inspectorScoreDetails: output.inspectorScoreDetails != null
|
|
3429
3438
|
? deserializeAws_restJson1InspectorScoreDetails(output.inspectorScoreDetails, context)
|
|
3430
3439
|
: undefined,
|
|
3431
|
-
lastObservedAt: output.lastObservedAt
|
|
3440
|
+
lastObservedAt: output.lastObservedAt != null
|
|
3432
3441
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastObservedAt)))
|
|
3433
3442
|
: undefined,
|
|
3434
|
-
networkReachabilityDetails: output.networkReachabilityDetails
|
|
3443
|
+
networkReachabilityDetails: output.networkReachabilityDetails != null
|
|
3435
3444
|
? deserializeAws_restJson1NetworkReachabilityDetails(output.networkReachabilityDetails, context)
|
|
3436
3445
|
: undefined,
|
|
3437
|
-
packageVulnerabilityDetails: output.packageVulnerabilityDetails
|
|
3446
|
+
packageVulnerabilityDetails: output.packageVulnerabilityDetails != null
|
|
3438
3447
|
? deserializeAws_restJson1PackageVulnerabilityDetails(output.packageVulnerabilityDetails, context)
|
|
3439
3448
|
: undefined,
|
|
3440
|
-
remediation: output.remediation
|
|
3441
|
-
|
|
3442
|
-
: undefined,
|
|
3443
|
-
resources: output.resources !== undefined && output.resources !== null
|
|
3444
|
-
? deserializeAws_restJson1ResourceList(output.resources, context)
|
|
3445
|
-
: undefined,
|
|
3449
|
+
remediation: output.remediation != null ? deserializeAws_restJson1Remediation(output.remediation, context) : undefined,
|
|
3450
|
+
resources: output.resources != null ? deserializeAws_restJson1ResourceList(output.resources, context) : undefined,
|
|
3446
3451
|
severity: (0, smithy_client_1.expectString)(output.severity),
|
|
3447
3452
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
3448
3453
|
title: (0, smithy_client_1.expectString)(output.title),
|
|
3449
3454
|
type: (0, smithy_client_1.expectString)(output.type),
|
|
3450
|
-
updatedAt: output.updatedAt
|
|
3451
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updatedAt)))
|
|
3452
|
-
: undefined,
|
|
3455
|
+
updatedAt: output.updatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updatedAt))) : undefined,
|
|
3453
3456
|
};
|
|
3454
3457
|
};
|
|
3455
3458
|
const deserializeAws_restJson1FindingList = (output, context) => {
|
|
@@ -3466,7 +3469,7 @@ const deserializeAws_restJson1FindingList = (output, context) => {
|
|
|
3466
3469
|
const deserializeAws_restJson1FindingTypeAggregationResponse = (output, context) => {
|
|
3467
3470
|
return {
|
|
3468
3471
|
accountId: (0, smithy_client_1.expectString)(output.accountId),
|
|
3469
|
-
severityCounts: output.severityCounts
|
|
3472
|
+
severityCounts: output.severityCounts != null
|
|
3470
3473
|
? deserializeAws_restJson1SeverityCounts(output.severityCounts, context)
|
|
3471
3474
|
: undefined,
|
|
3472
3475
|
};
|
|
@@ -3474,7 +3477,7 @@ const deserializeAws_restJson1FindingTypeAggregationResponse = (output, context)
|
|
|
3474
3477
|
const deserializeAws_restJson1FreeTrialAccountInfo = (output, context) => {
|
|
3475
3478
|
return {
|
|
3476
3479
|
accountId: (0, smithy_client_1.expectString)(output.accountId),
|
|
3477
|
-
freeTrialInfo: output.freeTrialInfo
|
|
3480
|
+
freeTrialInfo: output.freeTrialInfo != null
|
|
3478
3481
|
? deserializeAws_restJson1FreeTrialInfoList(output.freeTrialInfo, context)
|
|
3479
3482
|
: undefined,
|
|
3480
3483
|
};
|
|
@@ -3492,12 +3495,8 @@ const deserializeAws_restJson1FreeTrialAccountInfoList = (output, context) => {
|
|
|
3492
3495
|
};
|
|
3493
3496
|
const deserializeAws_restJson1FreeTrialInfo = (output, context) => {
|
|
3494
3497
|
return {
|
|
3495
|
-
end: output.end
|
|
3496
|
-
|
|
3497
|
-
: undefined,
|
|
3498
|
-
start: output.start !== undefined && output.start !== null
|
|
3499
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.start)))
|
|
3500
|
-
: undefined,
|
|
3498
|
+
end: output.end != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.end))) : undefined,
|
|
3499
|
+
start: output.start != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.start))) : undefined,
|
|
3501
3500
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
3502
3501
|
type: (0, smithy_client_1.expectString)(output.type),
|
|
3503
3502
|
};
|
|
@@ -3537,7 +3536,7 @@ const deserializeAws_restJson1ImageLayerAggregationResponse = (output, context)
|
|
|
3537
3536
|
layerHash: (0, smithy_client_1.expectString)(output.layerHash),
|
|
3538
3537
|
repository: (0, smithy_client_1.expectString)(output.repository),
|
|
3539
3538
|
resourceId: (0, smithy_client_1.expectString)(output.resourceId),
|
|
3540
|
-
severityCounts: output.severityCounts
|
|
3539
|
+
severityCounts: output.severityCounts != null
|
|
3541
3540
|
? deserializeAws_restJson1SeverityCounts(output.severityCounts, context)
|
|
3542
3541
|
: undefined,
|
|
3543
3542
|
};
|
|
@@ -3555,9 +3554,7 @@ const deserializeAws_restJson1ImageTagList = (output, context) => {
|
|
|
3555
3554
|
};
|
|
3556
3555
|
const deserializeAws_restJson1InspectorScoreDetails = (output, context) => {
|
|
3557
3556
|
return {
|
|
3558
|
-
adjustedCvss: output.adjustedCvss
|
|
3559
|
-
? deserializeAws_restJson1CvssScoreDetails(output.adjustedCvss, context)
|
|
3560
|
-
: undefined,
|
|
3557
|
+
adjustedCvss: output.adjustedCvss != null ? deserializeAws_restJson1CvssScoreDetails(output.adjustedCvss, context) : undefined,
|
|
3561
3558
|
};
|
|
3562
3559
|
};
|
|
3563
3560
|
const deserializeAws_restJson1IpV4AddressList = (output, context) => {
|
|
@@ -3605,9 +3602,7 @@ const deserializeAws_restJson1Member = (output, context) => {
|
|
|
3605
3602
|
accountId: (0, smithy_client_1.expectString)(output.accountId),
|
|
3606
3603
|
delegatedAdminAccountId: (0, smithy_client_1.expectString)(output.delegatedAdminAccountId),
|
|
3607
3604
|
relationshipStatus: (0, smithy_client_1.expectString)(output.relationshipStatus),
|
|
3608
|
-
updatedAt: output.updatedAt
|
|
3609
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updatedAt)))
|
|
3610
|
-
: undefined,
|
|
3605
|
+
updatedAt: output.updatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updatedAt))) : undefined,
|
|
3611
3606
|
};
|
|
3612
3607
|
};
|
|
3613
3608
|
const deserializeAws_restJson1MemberList = (output, context) => {
|
|
@@ -3623,19 +3618,13 @@ const deserializeAws_restJson1MemberList = (output, context) => {
|
|
|
3623
3618
|
};
|
|
3624
3619
|
const deserializeAws_restJson1NetworkPath = (output, context) => {
|
|
3625
3620
|
return {
|
|
3626
|
-
steps: output.steps
|
|
3627
|
-
? deserializeAws_restJson1StepList(output.steps, context)
|
|
3628
|
-
: undefined,
|
|
3621
|
+
steps: output.steps != null ? deserializeAws_restJson1StepList(output.steps, context) : undefined,
|
|
3629
3622
|
};
|
|
3630
3623
|
};
|
|
3631
3624
|
const deserializeAws_restJson1NetworkReachabilityDetails = (output, context) => {
|
|
3632
3625
|
return {
|
|
3633
|
-
networkPath: output.networkPath
|
|
3634
|
-
|
|
3635
|
-
: undefined,
|
|
3636
|
-
openPortRange: output.openPortRange !== undefined && output.openPortRange !== null
|
|
3637
|
-
? deserializeAws_restJson1PortRange(output.openPortRange, context)
|
|
3638
|
-
: undefined,
|
|
3626
|
+
networkPath: output.networkPath != null ? deserializeAws_restJson1NetworkPath(output.networkPath, context) : undefined,
|
|
3627
|
+
openPortRange: output.openPortRange != null ? deserializeAws_restJson1PortRange(output.openPortRange, context) : undefined,
|
|
3639
3628
|
protocol: (0, smithy_client_1.expectString)(output.protocol),
|
|
3640
3629
|
};
|
|
3641
3630
|
};
|
|
@@ -3671,31 +3660,21 @@ const deserializeAws_restJson1PackageAggregationResponse = (output, context) =>
|
|
|
3671
3660
|
return {
|
|
3672
3661
|
accountId: (0, smithy_client_1.expectString)(output.accountId),
|
|
3673
3662
|
packageName: (0, smithy_client_1.expectString)(output.packageName),
|
|
3674
|
-
severityCounts: output.severityCounts
|
|
3663
|
+
severityCounts: output.severityCounts != null
|
|
3675
3664
|
? deserializeAws_restJson1SeverityCounts(output.severityCounts, context)
|
|
3676
3665
|
: undefined,
|
|
3677
3666
|
};
|
|
3678
3667
|
};
|
|
3679
3668
|
const deserializeAws_restJson1PackageFilter = (output, context) => {
|
|
3680
3669
|
return {
|
|
3681
|
-
architecture: output.architecture
|
|
3682
|
-
|
|
3683
|
-
|
|
3684
|
-
|
|
3685
|
-
|
|
3686
|
-
: undefined,
|
|
3687
|
-
name: output.name !== undefined && output.name !== null
|
|
3688
|
-
? deserializeAws_restJson1StringFilter(output.name, context)
|
|
3689
|
-
: undefined,
|
|
3690
|
-
release: output.release !== undefined && output.release !== null
|
|
3691
|
-
? deserializeAws_restJson1StringFilter(output.release, context)
|
|
3692
|
-
: undefined,
|
|
3693
|
-
sourceLayerHash: output.sourceLayerHash !== undefined && output.sourceLayerHash !== null
|
|
3670
|
+
architecture: output.architecture != null ? deserializeAws_restJson1StringFilter(output.architecture, context) : undefined,
|
|
3671
|
+
epoch: output.epoch != null ? deserializeAws_restJson1NumberFilter(output.epoch, context) : undefined,
|
|
3672
|
+
name: output.name != null ? deserializeAws_restJson1StringFilter(output.name, context) : undefined,
|
|
3673
|
+
release: output.release != null ? deserializeAws_restJson1StringFilter(output.release, context) : undefined,
|
|
3674
|
+
sourceLayerHash: output.sourceLayerHash != null
|
|
3694
3675
|
? deserializeAws_restJson1StringFilter(output.sourceLayerHash, context)
|
|
3695
3676
|
: undefined,
|
|
3696
|
-
version: output.version
|
|
3697
|
-
? deserializeAws_restJson1StringFilter(output.version, context)
|
|
3698
|
-
: undefined,
|
|
3677
|
+
version: output.version != null ? deserializeAws_restJson1StringFilter(output.version, context) : undefined,
|
|
3699
3678
|
};
|
|
3700
3679
|
};
|
|
3701
3680
|
const deserializeAws_restJson1PackageFilterList = (output, context) => {
|
|
@@ -3711,26 +3690,24 @@ const deserializeAws_restJson1PackageFilterList = (output, context) => {
|
|
|
3711
3690
|
};
|
|
3712
3691
|
const deserializeAws_restJson1PackageVulnerabilityDetails = (output, context) => {
|
|
3713
3692
|
return {
|
|
3714
|
-
cvss: output.cvss
|
|
3715
|
-
|
|
3716
|
-
: undefined,
|
|
3717
|
-
referenceUrls: output.referenceUrls !== undefined && output.referenceUrls !== null
|
|
3693
|
+
cvss: output.cvss != null ? deserializeAws_restJson1CvssScoreList(output.cvss, context) : undefined,
|
|
3694
|
+
referenceUrls: output.referenceUrls != null
|
|
3718
3695
|
? deserializeAws_restJson1NonEmptyStringList(output.referenceUrls, context)
|
|
3719
3696
|
: undefined,
|
|
3720
|
-
relatedVulnerabilities: output.relatedVulnerabilities
|
|
3697
|
+
relatedVulnerabilities: output.relatedVulnerabilities != null
|
|
3721
3698
|
? deserializeAws_restJson1VulnerabilityIdList(output.relatedVulnerabilities, context)
|
|
3722
3699
|
: undefined,
|
|
3723
3700
|
source: (0, smithy_client_1.expectString)(output.source),
|
|
3724
3701
|
sourceUrl: (0, smithy_client_1.expectString)(output.sourceUrl),
|
|
3725
|
-
vendorCreatedAt: output.vendorCreatedAt
|
|
3702
|
+
vendorCreatedAt: output.vendorCreatedAt != null
|
|
3726
3703
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.vendorCreatedAt)))
|
|
3727
3704
|
: undefined,
|
|
3728
3705
|
vendorSeverity: (0, smithy_client_1.expectString)(output.vendorSeverity),
|
|
3729
|
-
vendorUpdatedAt: output.vendorUpdatedAt
|
|
3706
|
+
vendorUpdatedAt: output.vendorUpdatedAt != null
|
|
3730
3707
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.vendorUpdatedAt)))
|
|
3731
3708
|
: undefined,
|
|
3732
3709
|
vulnerabilityId: (0, smithy_client_1.expectString)(output.vulnerabilityId),
|
|
3733
|
-
vulnerablePackages: output.vulnerablePackages
|
|
3710
|
+
vulnerablePackages: output.vulnerablePackages != null
|
|
3734
3711
|
? deserializeAws_restJson1VulnerablePackageList(output.vulnerablePackages, context)
|
|
3735
3712
|
: undefined,
|
|
3736
3713
|
};
|
|
@@ -3783,7 +3760,7 @@ const deserializeAws_restJson1Recommendation = (output, context) => {
|
|
|
3783
3760
|
};
|
|
3784
3761
|
const deserializeAws_restJson1Remediation = (output, context) => {
|
|
3785
3762
|
return {
|
|
3786
|
-
recommendation: output.recommendation
|
|
3763
|
+
recommendation: output.recommendation != null
|
|
3787
3764
|
? deserializeAws_restJson1Recommendation(output.recommendation, context)
|
|
3788
3765
|
: undefined,
|
|
3789
3766
|
};
|
|
@@ -3793,31 +3770,27 @@ const deserializeAws_restJson1RepositoryAggregationResponse = (output, context)
|
|
|
3793
3770
|
accountId: (0, smithy_client_1.expectString)(output.accountId),
|
|
3794
3771
|
affectedImages: (0, smithy_client_1.expectLong)(output.affectedImages),
|
|
3795
3772
|
repository: (0, smithy_client_1.expectString)(output.repository),
|
|
3796
|
-
severityCounts: output.severityCounts
|
|
3773
|
+
severityCounts: output.severityCounts != null
|
|
3797
3774
|
? deserializeAws_restJson1SeverityCounts(output.severityCounts, context)
|
|
3798
3775
|
: undefined,
|
|
3799
3776
|
};
|
|
3800
3777
|
};
|
|
3801
3778
|
const deserializeAws_restJson1Resource = (output, context) => {
|
|
3802
3779
|
return {
|
|
3803
|
-
details: output.details
|
|
3804
|
-
? deserializeAws_restJson1ResourceDetails(output.details, context)
|
|
3805
|
-
: undefined,
|
|
3780
|
+
details: output.details != null ? deserializeAws_restJson1ResourceDetails(output.details, context) : undefined,
|
|
3806
3781
|
id: (0, smithy_client_1.expectString)(output.id),
|
|
3807
3782
|
partition: (0, smithy_client_1.expectString)(output.partition),
|
|
3808
3783
|
region: (0, smithy_client_1.expectString)(output.region),
|
|
3809
|
-
tags: output.tags
|
|
3810
|
-
? deserializeAws_restJson1TagMap(output.tags, context)
|
|
3811
|
-
: undefined,
|
|
3784
|
+
tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
|
|
3812
3785
|
type: (0, smithy_client_1.expectString)(output.type),
|
|
3813
3786
|
};
|
|
3814
3787
|
};
|
|
3815
3788
|
const deserializeAws_restJson1ResourceDetails = (output, context) => {
|
|
3816
3789
|
return {
|
|
3817
|
-
awsEc2Instance: output.awsEc2Instance
|
|
3790
|
+
awsEc2Instance: output.awsEc2Instance != null
|
|
3818
3791
|
? deserializeAws_restJson1AwsEc2InstanceDetails(output.awsEc2Instance, context)
|
|
3819
3792
|
: undefined,
|
|
3820
|
-
awsEcrContainerImage: output.awsEcrContainerImage
|
|
3793
|
+
awsEcrContainerImage: output.awsEcrContainerImage != null
|
|
3821
3794
|
? deserializeAws_restJson1AwsEcrContainerImageDetails(output.awsEcrContainerImage, context)
|
|
3822
3795
|
: undefined,
|
|
3823
3796
|
};
|
|
@@ -3835,21 +3808,17 @@ const deserializeAws_restJson1ResourceList = (output, context) => {
|
|
|
3835
3808
|
};
|
|
3836
3809
|
const deserializeAws_restJson1ResourceScanMetadata = (output, context) => {
|
|
3837
3810
|
return {
|
|
3838
|
-
ec2: output.ec2
|
|
3839
|
-
|
|
3840
|
-
|
|
3841
|
-
ecrImage: output.ecrImage !== undefined && output.ecrImage !== null
|
|
3842
|
-
? deserializeAws_restJson1EcrContainerImageMetadata(output.ecrImage, context)
|
|
3843
|
-
: undefined,
|
|
3844
|
-
ecrRepository: output.ecrRepository !== undefined && output.ecrRepository !== null
|
|
3811
|
+
ec2: output.ec2 != null ? deserializeAws_restJson1Ec2Metadata(output.ec2, context) : undefined,
|
|
3812
|
+
ecrImage: output.ecrImage != null ? deserializeAws_restJson1EcrContainerImageMetadata(output.ecrImage, context) : undefined,
|
|
3813
|
+
ecrRepository: output.ecrRepository != null
|
|
3845
3814
|
? deserializeAws_restJson1EcrRepositoryMetadata(output.ecrRepository, context)
|
|
3846
3815
|
: undefined,
|
|
3847
3816
|
};
|
|
3848
3817
|
};
|
|
3849
3818
|
const deserializeAws_restJson1ResourceState = (output, context) => {
|
|
3850
3819
|
return {
|
|
3851
|
-
ec2: output.ec2
|
|
3852
|
-
ecr: output.ecr
|
|
3820
|
+
ec2: output.ec2 != null ? deserializeAws_restJson1State(output.ec2, context) : undefined,
|
|
3821
|
+
ecr: output.ecr != null ? deserializeAws_restJson1State(output.ecr, context) : undefined,
|
|
3853
3822
|
};
|
|
3854
3823
|
};
|
|
3855
3824
|
const deserializeAws_restJson1ResourceStatus = (output, context) => {
|
|
@@ -3949,7 +3918,7 @@ const deserializeAws_restJson1TagMap = (output, context) => {
|
|
|
3949
3918
|
const deserializeAws_restJson1TitleAggregationResponse = (output, context) => {
|
|
3950
3919
|
return {
|
|
3951
3920
|
accountId: (0, smithy_client_1.expectString)(output.accountId),
|
|
3952
|
-
severityCounts: output.severityCounts
|
|
3921
|
+
severityCounts: output.severityCounts != null
|
|
3953
3922
|
? deserializeAws_restJson1SeverityCounts(output.severityCounts, context)
|
|
3954
3923
|
: undefined,
|
|
3955
3924
|
title: (0, smithy_client_1.expectString)(output.title),
|
|
@@ -3978,9 +3947,7 @@ const deserializeAws_restJson1UsageList = (output, context) => {
|
|
|
3978
3947
|
const deserializeAws_restJson1UsageTotal = (output, context) => {
|
|
3979
3948
|
return {
|
|
3980
3949
|
accountId: (0, smithy_client_1.expectString)(output.accountId),
|
|
3981
|
-
usage: output.usage
|
|
3982
|
-
? deserializeAws_restJson1UsageList(output.usage, context)
|
|
3983
|
-
: undefined,
|
|
3950
|
+
usage: output.usage != null ? deserializeAws_restJson1UsageList(output.usage, context) : undefined,
|
|
3984
3951
|
};
|
|
3985
3952
|
};
|
|
3986
3953
|
const deserializeAws_restJson1UsageTotalList = (output, context) => {
|
|
@@ -4077,6 +4044,9 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
4077
4044
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
4078
4045
|
const sanitizeErrorCode = (rawValue) => {
|
|
4079
4046
|
let cleanValue = rawValue;
|
|
4047
|
+
if (typeof cleanValue === "number") {
|
|
4048
|
+
cleanValue = cleanValue.toString();
|
|
4049
|
+
}
|
|
4080
4050
|
if (cleanValue.indexOf(":") >= 0) {
|
|
4081
4051
|
cleanValue = cleanValue.split(":")[0];
|
|
4082
4052
|
}
|