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