@aws-sdk/client-inspector2 3.476.0 → 3.477.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/protocols/Aws_restJson1.js +199 -526
- package/dist-es/protocols/Aws_restJson1.js +200 -527
- package/package.json +5 -4
|
@@ -3,207 +3,143 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.de_BatchGetFindingDetailsCommand = exports.de_BatchGetCodeSnippetCommand = exports.de_BatchGetAccountStatusCommand = exports.de_AssociateMemberCommand = exports.se_UpdateOrgEc2DeepInspectionConfigurationCommand = exports.se_UpdateOrganizationConfigurationCommand = exports.se_UpdateFilterCommand = exports.se_UpdateEncryptionKeyCommand = exports.se_UpdateEc2DeepInspectionConfigurationCommand = exports.se_UpdateConfigurationCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_SearchVulnerabilitiesCommand = exports.se_ResetEncryptionKeyCommand = 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_GetSbomExportCommand = exports.se_GetMemberCommand = exports.se_GetFindingsReportStatusCommand = exports.se_GetEncryptionKeyCommand = exports.se_GetEc2DeepInspectionConfigurationCommand = 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_CreateSbomExportCommand = exports.se_CreateFindingsReportCommand = exports.se_CreateFilterCommand = exports.se_CancelSbomExportCommand = exports.se_CancelFindingsReportCommand = exports.se_BatchUpdateMemberEc2DeepInspectionStatusCommand = exports.se_BatchGetMemberEc2DeepInspectionStatusCommand = exports.se_BatchGetFreeTrialInfoCommand = exports.se_BatchGetFindingDetailsCommand = exports.se_BatchGetCodeSnippetCommand = exports.se_BatchGetAccountStatusCommand = exports.se_AssociateMemberCommand = void 0;
|
|
4
4
|
exports.de_UpdateOrgEc2DeepInspectionConfigurationCommand = exports.de_UpdateOrganizationConfigurationCommand = exports.de_UpdateFilterCommand = exports.de_UpdateEncryptionKeyCommand = exports.de_UpdateEc2DeepInspectionConfigurationCommand = exports.de_UpdateConfigurationCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_SearchVulnerabilitiesCommand = exports.de_ResetEncryptionKeyCommand = 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 = exports.de_ListAccountPermissionsCommand = exports.de_GetSbomExportCommand = exports.de_GetMemberCommand = exports.de_GetFindingsReportStatusCommand = exports.de_GetEncryptionKeyCommand = exports.de_GetEc2DeepInspectionConfigurationCommand = 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_CreateSbomExportCommand = exports.de_CreateFindingsReportCommand = exports.de_CreateFilterCommand = exports.de_CancelSbomExportCommand = exports.de_CancelFindingsReportCommand = exports.de_BatchUpdateMemberEc2DeepInspectionStatusCommand = exports.de_BatchGetMemberEc2DeepInspectionStatusCommand = exports.de_BatchGetFreeTrialInfoCommand = void 0;
|
|
5
5
|
const core_1 = require("@aws-sdk/core");
|
|
6
|
-
const
|
|
6
|
+
const core_2 = require("@smithy/core");
|
|
7
7
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
8
8
|
const uuid_1 = require("uuid");
|
|
9
9
|
const Inspector2ServiceException_1 = require("../models/Inspector2ServiceException");
|
|
10
10
|
const models_0_1 = require("../models/models_0");
|
|
11
11
|
const se_AssociateMemberCommand = async (input, context) => {
|
|
12
|
-
const
|
|
12
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
13
13
|
const headers = {
|
|
14
14
|
"content-type": "application/json",
|
|
15
15
|
};
|
|
16
|
-
|
|
16
|
+
b.bp("/members/associate");
|
|
17
17
|
let body;
|
|
18
18
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
19
19
|
accountId: [],
|
|
20
20
|
}));
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
hostname,
|
|
24
|
-
port,
|
|
25
|
-
method: "POST",
|
|
26
|
-
headers,
|
|
27
|
-
path: resolvedPath,
|
|
28
|
-
body,
|
|
29
|
-
});
|
|
21
|
+
b.m("POST").h(headers).b(body);
|
|
22
|
+
return b.build();
|
|
30
23
|
};
|
|
31
24
|
exports.se_AssociateMemberCommand = se_AssociateMemberCommand;
|
|
32
25
|
const se_BatchGetAccountStatusCommand = async (input, context) => {
|
|
33
|
-
const
|
|
26
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
34
27
|
const headers = {
|
|
35
28
|
"content-type": "application/json",
|
|
36
29
|
};
|
|
37
|
-
|
|
30
|
+
b.bp("/status/batch/get");
|
|
38
31
|
let body;
|
|
39
32
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
40
33
|
accountIds: (_) => (0, smithy_client_1._json)(_),
|
|
41
34
|
}));
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
hostname,
|
|
45
|
-
port,
|
|
46
|
-
method: "POST",
|
|
47
|
-
headers,
|
|
48
|
-
path: resolvedPath,
|
|
49
|
-
body,
|
|
50
|
-
});
|
|
35
|
+
b.m("POST").h(headers).b(body);
|
|
36
|
+
return b.build();
|
|
51
37
|
};
|
|
52
38
|
exports.se_BatchGetAccountStatusCommand = se_BatchGetAccountStatusCommand;
|
|
53
39
|
const se_BatchGetCodeSnippetCommand = async (input, context) => {
|
|
54
|
-
const
|
|
40
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
55
41
|
const headers = {
|
|
56
42
|
"content-type": "application/json",
|
|
57
43
|
};
|
|
58
|
-
|
|
44
|
+
b.bp("/codesnippet/batchget");
|
|
59
45
|
let body;
|
|
60
46
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
61
47
|
findingArns: (_) => (0, smithy_client_1._json)(_),
|
|
62
48
|
}));
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
hostname,
|
|
66
|
-
port,
|
|
67
|
-
method: "POST",
|
|
68
|
-
headers,
|
|
69
|
-
path: resolvedPath,
|
|
70
|
-
body,
|
|
71
|
-
});
|
|
49
|
+
b.m("POST").h(headers).b(body);
|
|
50
|
+
return b.build();
|
|
72
51
|
};
|
|
73
52
|
exports.se_BatchGetCodeSnippetCommand = se_BatchGetCodeSnippetCommand;
|
|
74
53
|
const se_BatchGetFindingDetailsCommand = async (input, context) => {
|
|
75
|
-
const
|
|
54
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
76
55
|
const headers = {
|
|
77
56
|
"content-type": "application/json",
|
|
78
57
|
};
|
|
79
|
-
|
|
58
|
+
b.bp("/findings/details/batch/get");
|
|
80
59
|
let body;
|
|
81
60
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
82
61
|
findingArns: (_) => (0, smithy_client_1._json)(_),
|
|
83
62
|
}));
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
hostname,
|
|
87
|
-
port,
|
|
88
|
-
method: "POST",
|
|
89
|
-
headers,
|
|
90
|
-
path: resolvedPath,
|
|
91
|
-
body,
|
|
92
|
-
});
|
|
63
|
+
b.m("POST").h(headers).b(body);
|
|
64
|
+
return b.build();
|
|
93
65
|
};
|
|
94
66
|
exports.se_BatchGetFindingDetailsCommand = se_BatchGetFindingDetailsCommand;
|
|
95
67
|
const se_BatchGetFreeTrialInfoCommand = async (input, context) => {
|
|
96
|
-
const
|
|
68
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
97
69
|
const headers = {
|
|
98
70
|
"content-type": "application/json",
|
|
99
71
|
};
|
|
100
|
-
|
|
72
|
+
b.bp("/freetrialinfo/batchget");
|
|
101
73
|
let body;
|
|
102
74
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
103
75
|
accountIds: (_) => (0, smithy_client_1._json)(_),
|
|
104
76
|
}));
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
hostname,
|
|
108
|
-
port,
|
|
109
|
-
method: "POST",
|
|
110
|
-
headers,
|
|
111
|
-
path: resolvedPath,
|
|
112
|
-
body,
|
|
113
|
-
});
|
|
77
|
+
b.m("POST").h(headers).b(body);
|
|
78
|
+
return b.build();
|
|
114
79
|
};
|
|
115
80
|
exports.se_BatchGetFreeTrialInfoCommand = se_BatchGetFreeTrialInfoCommand;
|
|
116
81
|
const se_BatchGetMemberEc2DeepInspectionStatusCommand = async (input, context) => {
|
|
117
|
-
const
|
|
82
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
118
83
|
const headers = {
|
|
119
84
|
"content-type": "application/json",
|
|
120
85
|
};
|
|
121
|
-
|
|
86
|
+
b.bp("/ec2deepinspectionstatus/member/batch/get");
|
|
122
87
|
let body;
|
|
123
88
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
124
89
|
accountIds: (_) => (0, smithy_client_1._json)(_),
|
|
125
90
|
}));
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
hostname,
|
|
129
|
-
port,
|
|
130
|
-
method: "POST",
|
|
131
|
-
headers,
|
|
132
|
-
path: resolvedPath,
|
|
133
|
-
body,
|
|
134
|
-
});
|
|
91
|
+
b.m("POST").h(headers).b(body);
|
|
92
|
+
return b.build();
|
|
135
93
|
};
|
|
136
94
|
exports.se_BatchGetMemberEc2DeepInspectionStatusCommand = se_BatchGetMemberEc2DeepInspectionStatusCommand;
|
|
137
95
|
const se_BatchUpdateMemberEc2DeepInspectionStatusCommand = async (input, context) => {
|
|
138
|
-
const
|
|
96
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
139
97
|
const headers = {
|
|
140
98
|
"content-type": "application/json",
|
|
141
99
|
};
|
|
142
|
-
|
|
143
|
-
"/ec2deepinspectionstatus/member/batch/update";
|
|
100
|
+
b.bp("/ec2deepinspectionstatus/member/batch/update");
|
|
144
101
|
let body;
|
|
145
102
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
146
103
|
accountIds: (_) => (0, smithy_client_1._json)(_),
|
|
147
104
|
}));
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
hostname,
|
|
151
|
-
port,
|
|
152
|
-
method: "POST",
|
|
153
|
-
headers,
|
|
154
|
-
path: resolvedPath,
|
|
155
|
-
body,
|
|
156
|
-
});
|
|
105
|
+
b.m("POST").h(headers).b(body);
|
|
106
|
+
return b.build();
|
|
157
107
|
};
|
|
158
108
|
exports.se_BatchUpdateMemberEc2DeepInspectionStatusCommand = se_BatchUpdateMemberEc2DeepInspectionStatusCommand;
|
|
159
109
|
const se_CancelFindingsReportCommand = async (input, context) => {
|
|
160
|
-
const
|
|
110
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
161
111
|
const headers = {
|
|
162
112
|
"content-type": "application/json",
|
|
163
113
|
};
|
|
164
|
-
|
|
114
|
+
b.bp("/reporting/cancel");
|
|
165
115
|
let body;
|
|
166
116
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
167
117
|
reportId: [],
|
|
168
118
|
}));
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
hostname,
|
|
172
|
-
port,
|
|
173
|
-
method: "POST",
|
|
174
|
-
headers,
|
|
175
|
-
path: resolvedPath,
|
|
176
|
-
body,
|
|
177
|
-
});
|
|
119
|
+
b.m("POST").h(headers).b(body);
|
|
120
|
+
return b.build();
|
|
178
121
|
};
|
|
179
122
|
exports.se_CancelFindingsReportCommand = se_CancelFindingsReportCommand;
|
|
180
123
|
const se_CancelSbomExportCommand = async (input, context) => {
|
|
181
|
-
const
|
|
124
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
182
125
|
const headers = {
|
|
183
126
|
"content-type": "application/json",
|
|
184
127
|
};
|
|
185
|
-
|
|
128
|
+
b.bp("/sbomexport/cancel");
|
|
186
129
|
let body;
|
|
187
130
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
188
131
|
reportId: [],
|
|
189
132
|
}));
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
hostname,
|
|
193
|
-
port,
|
|
194
|
-
method: "POST",
|
|
195
|
-
headers,
|
|
196
|
-
path: resolvedPath,
|
|
197
|
-
body,
|
|
198
|
-
});
|
|
133
|
+
b.m("POST").h(headers).b(body);
|
|
134
|
+
return b.build();
|
|
199
135
|
};
|
|
200
136
|
exports.se_CancelSbomExportCommand = se_CancelSbomExportCommand;
|
|
201
137
|
const se_CreateFilterCommand = async (input, context) => {
|
|
202
|
-
const
|
|
138
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
203
139
|
const headers = {
|
|
204
140
|
"content-type": "application/json",
|
|
205
141
|
};
|
|
206
|
-
|
|
142
|
+
b.bp("/filters/create");
|
|
207
143
|
let body;
|
|
208
144
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
209
145
|
action: [],
|
|
@@ -213,450 +149,302 @@ const se_CreateFilterCommand = async (input, context) => {
|
|
|
213
149
|
reason: [],
|
|
214
150
|
tags: (_) => (0, smithy_client_1._json)(_),
|
|
215
151
|
}));
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
hostname,
|
|
219
|
-
port,
|
|
220
|
-
method: "POST",
|
|
221
|
-
headers,
|
|
222
|
-
path: resolvedPath,
|
|
223
|
-
body,
|
|
224
|
-
});
|
|
152
|
+
b.m("POST").h(headers).b(body);
|
|
153
|
+
return b.build();
|
|
225
154
|
};
|
|
226
155
|
exports.se_CreateFilterCommand = se_CreateFilterCommand;
|
|
227
156
|
const se_CreateFindingsReportCommand = async (input, context) => {
|
|
228
|
-
const
|
|
157
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
229
158
|
const headers = {
|
|
230
159
|
"content-type": "application/json",
|
|
231
160
|
};
|
|
232
|
-
|
|
161
|
+
b.bp("/reporting/create");
|
|
233
162
|
let body;
|
|
234
163
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
235
164
|
filterCriteria: (_) => se_FilterCriteria(_, context),
|
|
236
165
|
reportFormat: [],
|
|
237
166
|
s3Destination: (_) => (0, smithy_client_1._json)(_),
|
|
238
167
|
}));
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
hostname,
|
|
242
|
-
port,
|
|
243
|
-
method: "POST",
|
|
244
|
-
headers,
|
|
245
|
-
path: resolvedPath,
|
|
246
|
-
body,
|
|
247
|
-
});
|
|
168
|
+
b.m("POST").h(headers).b(body);
|
|
169
|
+
return b.build();
|
|
248
170
|
};
|
|
249
171
|
exports.se_CreateFindingsReportCommand = se_CreateFindingsReportCommand;
|
|
250
172
|
const se_CreateSbomExportCommand = async (input, context) => {
|
|
251
|
-
const
|
|
173
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
252
174
|
const headers = {
|
|
253
175
|
"content-type": "application/json",
|
|
254
176
|
};
|
|
255
|
-
|
|
177
|
+
b.bp("/sbomexport/create");
|
|
256
178
|
let body;
|
|
257
179
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
258
180
|
reportFormat: [],
|
|
259
181
|
resourceFilterCriteria: (_) => (0, smithy_client_1._json)(_),
|
|
260
182
|
s3Destination: (_) => (0, smithy_client_1._json)(_),
|
|
261
183
|
}));
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
hostname,
|
|
265
|
-
port,
|
|
266
|
-
method: "POST",
|
|
267
|
-
headers,
|
|
268
|
-
path: resolvedPath,
|
|
269
|
-
body,
|
|
270
|
-
});
|
|
184
|
+
b.m("POST").h(headers).b(body);
|
|
185
|
+
return b.build();
|
|
271
186
|
};
|
|
272
187
|
exports.se_CreateSbomExportCommand = se_CreateSbomExportCommand;
|
|
273
188
|
const se_DeleteFilterCommand = async (input, context) => {
|
|
274
|
-
const
|
|
189
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
275
190
|
const headers = {
|
|
276
191
|
"content-type": "application/json",
|
|
277
192
|
};
|
|
278
|
-
|
|
193
|
+
b.bp("/filters/delete");
|
|
279
194
|
let body;
|
|
280
195
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
281
196
|
arn: [],
|
|
282
197
|
}));
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
hostname,
|
|
286
|
-
port,
|
|
287
|
-
method: "POST",
|
|
288
|
-
headers,
|
|
289
|
-
path: resolvedPath,
|
|
290
|
-
body,
|
|
291
|
-
});
|
|
198
|
+
b.m("POST").h(headers).b(body);
|
|
199
|
+
return b.build();
|
|
292
200
|
};
|
|
293
201
|
exports.se_DeleteFilterCommand = se_DeleteFilterCommand;
|
|
294
202
|
const se_DescribeOrganizationConfigurationCommand = async (input, context) => {
|
|
295
|
-
const
|
|
203
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
296
204
|
const headers = {
|
|
297
205
|
"content-type": "application/json",
|
|
298
206
|
};
|
|
299
|
-
|
|
207
|
+
b.bp("/organizationconfiguration/describe");
|
|
300
208
|
let body;
|
|
301
209
|
body = "";
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
hostname,
|
|
305
|
-
port,
|
|
306
|
-
method: "POST",
|
|
307
|
-
headers,
|
|
308
|
-
path: resolvedPath,
|
|
309
|
-
body,
|
|
310
|
-
});
|
|
210
|
+
b.m("POST").h(headers).b(body);
|
|
211
|
+
return b.build();
|
|
311
212
|
};
|
|
312
213
|
exports.se_DescribeOrganizationConfigurationCommand = se_DescribeOrganizationConfigurationCommand;
|
|
313
214
|
const se_DisableCommand = async (input, context) => {
|
|
314
|
-
const
|
|
215
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
315
216
|
const headers = {
|
|
316
217
|
"content-type": "application/json",
|
|
317
218
|
};
|
|
318
|
-
|
|
219
|
+
b.bp("/disable");
|
|
319
220
|
let body;
|
|
320
221
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
321
222
|
accountIds: (_) => (0, smithy_client_1._json)(_),
|
|
322
223
|
resourceTypes: (_) => (0, smithy_client_1._json)(_),
|
|
323
224
|
}));
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
hostname,
|
|
327
|
-
port,
|
|
328
|
-
method: "POST",
|
|
329
|
-
headers,
|
|
330
|
-
path: resolvedPath,
|
|
331
|
-
body,
|
|
332
|
-
});
|
|
225
|
+
b.m("POST").h(headers).b(body);
|
|
226
|
+
return b.build();
|
|
333
227
|
};
|
|
334
228
|
exports.se_DisableCommand = se_DisableCommand;
|
|
335
229
|
const se_DisableDelegatedAdminAccountCommand = async (input, context) => {
|
|
336
|
-
const
|
|
230
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
337
231
|
const headers = {
|
|
338
232
|
"content-type": "application/json",
|
|
339
233
|
};
|
|
340
|
-
|
|
234
|
+
b.bp("/delegatedadminaccounts/disable");
|
|
341
235
|
let body;
|
|
342
236
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
343
237
|
delegatedAdminAccountId: [],
|
|
344
238
|
}));
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
hostname,
|
|
348
|
-
port,
|
|
349
|
-
method: "POST",
|
|
350
|
-
headers,
|
|
351
|
-
path: resolvedPath,
|
|
352
|
-
body,
|
|
353
|
-
});
|
|
239
|
+
b.m("POST").h(headers).b(body);
|
|
240
|
+
return b.build();
|
|
354
241
|
};
|
|
355
242
|
exports.se_DisableDelegatedAdminAccountCommand = se_DisableDelegatedAdminAccountCommand;
|
|
356
243
|
const se_DisassociateMemberCommand = async (input, context) => {
|
|
357
|
-
const
|
|
244
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
358
245
|
const headers = {
|
|
359
246
|
"content-type": "application/json",
|
|
360
247
|
};
|
|
361
|
-
|
|
248
|
+
b.bp("/members/disassociate");
|
|
362
249
|
let body;
|
|
363
250
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
364
251
|
accountId: [],
|
|
365
252
|
}));
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
hostname,
|
|
369
|
-
port,
|
|
370
|
-
method: "POST",
|
|
371
|
-
headers,
|
|
372
|
-
path: resolvedPath,
|
|
373
|
-
body,
|
|
374
|
-
});
|
|
253
|
+
b.m("POST").h(headers).b(body);
|
|
254
|
+
return b.build();
|
|
375
255
|
};
|
|
376
256
|
exports.se_DisassociateMemberCommand = se_DisassociateMemberCommand;
|
|
377
257
|
const se_EnableCommand = async (input, context) => {
|
|
378
|
-
const
|
|
258
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
379
259
|
const headers = {
|
|
380
260
|
"content-type": "application/json",
|
|
381
261
|
};
|
|
382
|
-
|
|
262
|
+
b.bp("/enable");
|
|
383
263
|
let body;
|
|
384
264
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
385
265
|
accountIds: (_) => (0, smithy_client_1._json)(_),
|
|
386
266
|
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
387
267
|
resourceTypes: (_) => (0, smithy_client_1._json)(_),
|
|
388
268
|
}));
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
hostname,
|
|
392
|
-
port,
|
|
393
|
-
method: "POST",
|
|
394
|
-
headers,
|
|
395
|
-
path: resolvedPath,
|
|
396
|
-
body,
|
|
397
|
-
});
|
|
269
|
+
b.m("POST").h(headers).b(body);
|
|
270
|
+
return b.build();
|
|
398
271
|
};
|
|
399
272
|
exports.se_EnableCommand = se_EnableCommand;
|
|
400
273
|
const se_EnableDelegatedAdminAccountCommand = async (input, context) => {
|
|
401
|
-
const
|
|
274
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
402
275
|
const headers = {
|
|
403
276
|
"content-type": "application/json",
|
|
404
277
|
};
|
|
405
|
-
|
|
278
|
+
b.bp("/delegatedadminaccounts/enable");
|
|
406
279
|
let body;
|
|
407
280
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
408
281
|
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
409
282
|
delegatedAdminAccountId: [],
|
|
410
283
|
}));
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
hostname,
|
|
414
|
-
port,
|
|
415
|
-
method: "POST",
|
|
416
|
-
headers,
|
|
417
|
-
path: resolvedPath,
|
|
418
|
-
body,
|
|
419
|
-
});
|
|
284
|
+
b.m("POST").h(headers).b(body);
|
|
285
|
+
return b.build();
|
|
420
286
|
};
|
|
421
287
|
exports.se_EnableDelegatedAdminAccountCommand = se_EnableDelegatedAdminAccountCommand;
|
|
422
288
|
const se_GetConfigurationCommand = async (input, context) => {
|
|
423
|
-
const
|
|
289
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
424
290
|
const headers = {
|
|
425
291
|
"content-type": "application/json",
|
|
426
292
|
};
|
|
427
|
-
|
|
293
|
+
b.bp("/configuration/get");
|
|
428
294
|
let body;
|
|
429
295
|
body = "";
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
hostname,
|
|
433
|
-
port,
|
|
434
|
-
method: "POST",
|
|
435
|
-
headers,
|
|
436
|
-
path: resolvedPath,
|
|
437
|
-
body,
|
|
438
|
-
});
|
|
296
|
+
b.m("POST").h(headers).b(body);
|
|
297
|
+
return b.build();
|
|
439
298
|
};
|
|
440
299
|
exports.se_GetConfigurationCommand = se_GetConfigurationCommand;
|
|
441
300
|
const se_GetDelegatedAdminAccountCommand = async (input, context) => {
|
|
442
|
-
const
|
|
301
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
443
302
|
const headers = {
|
|
444
303
|
"content-type": "application/json",
|
|
445
304
|
};
|
|
446
|
-
|
|
305
|
+
b.bp("/delegatedadminaccounts/get");
|
|
447
306
|
let body;
|
|
448
307
|
body = "";
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
hostname,
|
|
452
|
-
port,
|
|
453
|
-
method: "POST",
|
|
454
|
-
headers,
|
|
455
|
-
path: resolvedPath,
|
|
456
|
-
body,
|
|
457
|
-
});
|
|
308
|
+
b.m("POST").h(headers).b(body);
|
|
309
|
+
return b.build();
|
|
458
310
|
};
|
|
459
311
|
exports.se_GetDelegatedAdminAccountCommand = se_GetDelegatedAdminAccountCommand;
|
|
460
312
|
const se_GetEc2DeepInspectionConfigurationCommand = async (input, context) => {
|
|
461
|
-
const
|
|
313
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
462
314
|
const headers = {
|
|
463
315
|
"content-type": "application/json",
|
|
464
316
|
};
|
|
465
|
-
|
|
317
|
+
b.bp("/ec2deepinspectionconfiguration/get");
|
|
466
318
|
let body;
|
|
467
319
|
body = "";
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
hostname,
|
|
471
|
-
port,
|
|
472
|
-
method: "POST",
|
|
473
|
-
headers,
|
|
474
|
-
path: resolvedPath,
|
|
475
|
-
body,
|
|
476
|
-
});
|
|
320
|
+
b.m("POST").h(headers).b(body);
|
|
321
|
+
return b.build();
|
|
477
322
|
};
|
|
478
323
|
exports.se_GetEc2DeepInspectionConfigurationCommand = se_GetEc2DeepInspectionConfigurationCommand;
|
|
479
324
|
const se_GetEncryptionKeyCommand = async (input, context) => {
|
|
480
|
-
const
|
|
325
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
481
326
|
const headers = {};
|
|
482
|
-
|
|
327
|
+
b.bp("/encryptionkey/get");
|
|
483
328
|
const query = (0, smithy_client_1.map)({
|
|
484
|
-
|
|
485
|
-
|
|
329
|
+
[_sT]: [, (0, smithy_client_1.expectNonNull)(input[_sT], `scanType`)],
|
|
330
|
+
[_rT]: [, (0, smithy_client_1.expectNonNull)(input[_rT], `resourceType`)],
|
|
486
331
|
});
|
|
487
332
|
let body;
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
hostname,
|
|
491
|
-
port,
|
|
492
|
-
method: "GET",
|
|
493
|
-
headers,
|
|
494
|
-
path: resolvedPath,
|
|
495
|
-
query,
|
|
496
|
-
body,
|
|
497
|
-
});
|
|
333
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
334
|
+
return b.build();
|
|
498
335
|
};
|
|
499
336
|
exports.se_GetEncryptionKeyCommand = se_GetEncryptionKeyCommand;
|
|
500
337
|
const se_GetFindingsReportStatusCommand = async (input, context) => {
|
|
501
|
-
const
|
|
338
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
502
339
|
const headers = {
|
|
503
340
|
"content-type": "application/json",
|
|
504
341
|
};
|
|
505
|
-
|
|
342
|
+
b.bp("/reporting/status/get");
|
|
506
343
|
let body;
|
|
507
344
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
508
345
|
reportId: [],
|
|
509
346
|
}));
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
hostname,
|
|
513
|
-
port,
|
|
514
|
-
method: "POST",
|
|
515
|
-
headers,
|
|
516
|
-
path: resolvedPath,
|
|
517
|
-
body,
|
|
518
|
-
});
|
|
347
|
+
b.m("POST").h(headers).b(body);
|
|
348
|
+
return b.build();
|
|
519
349
|
};
|
|
520
350
|
exports.se_GetFindingsReportStatusCommand = se_GetFindingsReportStatusCommand;
|
|
521
351
|
const se_GetMemberCommand = async (input, context) => {
|
|
522
|
-
const
|
|
352
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
523
353
|
const headers = {
|
|
524
354
|
"content-type": "application/json",
|
|
525
355
|
};
|
|
526
|
-
|
|
356
|
+
b.bp("/members/get");
|
|
527
357
|
let body;
|
|
528
358
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
529
359
|
accountId: [],
|
|
530
360
|
}));
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
hostname,
|
|
534
|
-
port,
|
|
535
|
-
method: "POST",
|
|
536
|
-
headers,
|
|
537
|
-
path: resolvedPath,
|
|
538
|
-
body,
|
|
539
|
-
});
|
|
361
|
+
b.m("POST").h(headers).b(body);
|
|
362
|
+
return b.build();
|
|
540
363
|
};
|
|
541
364
|
exports.se_GetMemberCommand = se_GetMemberCommand;
|
|
542
365
|
const se_GetSbomExportCommand = async (input, context) => {
|
|
543
|
-
const
|
|
366
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
544
367
|
const headers = {
|
|
545
368
|
"content-type": "application/json",
|
|
546
369
|
};
|
|
547
|
-
|
|
370
|
+
b.bp("/sbomexport/get");
|
|
548
371
|
let body;
|
|
549
372
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
550
373
|
reportId: [],
|
|
551
374
|
}));
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
hostname,
|
|
555
|
-
port,
|
|
556
|
-
method: "POST",
|
|
557
|
-
headers,
|
|
558
|
-
path: resolvedPath,
|
|
559
|
-
body,
|
|
560
|
-
});
|
|
375
|
+
b.m("POST").h(headers).b(body);
|
|
376
|
+
return b.build();
|
|
561
377
|
};
|
|
562
378
|
exports.se_GetSbomExportCommand = se_GetSbomExportCommand;
|
|
563
379
|
const se_ListAccountPermissionsCommand = async (input, context) => {
|
|
564
|
-
const
|
|
380
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
565
381
|
const headers = {
|
|
566
382
|
"content-type": "application/json",
|
|
567
383
|
};
|
|
568
|
-
|
|
384
|
+
b.bp("/accountpermissions/list");
|
|
569
385
|
let body;
|
|
570
386
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
571
387
|
maxResults: [],
|
|
572
388
|
nextToken: [],
|
|
573
389
|
service: [],
|
|
574
390
|
}));
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
hostname,
|
|
578
|
-
port,
|
|
579
|
-
method: "POST",
|
|
580
|
-
headers,
|
|
581
|
-
path: resolvedPath,
|
|
582
|
-
body,
|
|
583
|
-
});
|
|
391
|
+
b.m("POST").h(headers).b(body);
|
|
392
|
+
return b.build();
|
|
584
393
|
};
|
|
585
394
|
exports.se_ListAccountPermissionsCommand = se_ListAccountPermissionsCommand;
|
|
586
395
|
const se_ListCoverageCommand = async (input, context) => {
|
|
587
|
-
const
|
|
396
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
588
397
|
const headers = {
|
|
589
398
|
"content-type": "application/json",
|
|
590
399
|
};
|
|
591
|
-
|
|
400
|
+
b.bp("/coverage/list");
|
|
592
401
|
let body;
|
|
593
402
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
594
403
|
filterCriteria: (_) => se_CoverageFilterCriteria(_, context),
|
|
595
404
|
maxResults: [],
|
|
596
405
|
nextToken: [],
|
|
597
406
|
}));
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
hostname,
|
|
601
|
-
port,
|
|
602
|
-
method: "POST",
|
|
603
|
-
headers,
|
|
604
|
-
path: resolvedPath,
|
|
605
|
-
body,
|
|
606
|
-
});
|
|
407
|
+
b.m("POST").h(headers).b(body);
|
|
408
|
+
return b.build();
|
|
607
409
|
};
|
|
608
410
|
exports.se_ListCoverageCommand = se_ListCoverageCommand;
|
|
609
411
|
const se_ListCoverageStatisticsCommand = async (input, context) => {
|
|
610
|
-
const
|
|
412
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
611
413
|
const headers = {
|
|
612
414
|
"content-type": "application/json",
|
|
613
415
|
};
|
|
614
|
-
|
|
416
|
+
b.bp("/coverage/statistics/list");
|
|
615
417
|
let body;
|
|
616
418
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
617
419
|
filterCriteria: (_) => se_CoverageFilterCriteria(_, context),
|
|
618
420
|
groupBy: [],
|
|
619
421
|
nextToken: [],
|
|
620
422
|
}));
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
hostname,
|
|
624
|
-
port,
|
|
625
|
-
method: "POST",
|
|
626
|
-
headers,
|
|
627
|
-
path: resolvedPath,
|
|
628
|
-
body,
|
|
629
|
-
});
|
|
423
|
+
b.m("POST").h(headers).b(body);
|
|
424
|
+
return b.build();
|
|
630
425
|
};
|
|
631
426
|
exports.se_ListCoverageStatisticsCommand = se_ListCoverageStatisticsCommand;
|
|
632
427
|
const se_ListDelegatedAdminAccountsCommand = async (input, context) => {
|
|
633
|
-
const
|
|
428
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
634
429
|
const headers = {
|
|
635
430
|
"content-type": "application/json",
|
|
636
431
|
};
|
|
637
|
-
|
|
432
|
+
b.bp("/delegatedadminaccounts/list");
|
|
638
433
|
let body;
|
|
639
434
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
640
435
|
maxResults: [],
|
|
641
436
|
nextToken: [],
|
|
642
437
|
}));
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
hostname,
|
|
646
|
-
port,
|
|
647
|
-
method: "POST",
|
|
648
|
-
headers,
|
|
649
|
-
path: resolvedPath,
|
|
650
|
-
body,
|
|
651
|
-
});
|
|
438
|
+
b.m("POST").h(headers).b(body);
|
|
439
|
+
return b.build();
|
|
652
440
|
};
|
|
653
441
|
exports.se_ListDelegatedAdminAccountsCommand = se_ListDelegatedAdminAccountsCommand;
|
|
654
442
|
const se_ListFiltersCommand = async (input, context) => {
|
|
655
|
-
const
|
|
443
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
656
444
|
const headers = {
|
|
657
445
|
"content-type": "application/json",
|
|
658
446
|
};
|
|
659
|
-
|
|
447
|
+
b.bp("/filters/list");
|
|
660
448
|
let body;
|
|
661
449
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
662
450
|
action: [],
|
|
@@ -664,23 +452,16 @@ const se_ListFiltersCommand = async (input, context) => {
|
|
|
664
452
|
maxResults: [],
|
|
665
453
|
nextToken: [],
|
|
666
454
|
}));
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
hostname,
|
|
670
|
-
port,
|
|
671
|
-
method: "POST",
|
|
672
|
-
headers,
|
|
673
|
-
path: resolvedPath,
|
|
674
|
-
body,
|
|
675
|
-
});
|
|
455
|
+
b.m("POST").h(headers).b(body);
|
|
456
|
+
return b.build();
|
|
676
457
|
};
|
|
677
458
|
exports.se_ListFiltersCommand = se_ListFiltersCommand;
|
|
678
459
|
const se_ListFindingAggregationsCommand = async (input, context) => {
|
|
679
|
-
const
|
|
460
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
680
461
|
const headers = {
|
|
681
462
|
"content-type": "application/json",
|
|
682
463
|
};
|
|
683
|
-
|
|
464
|
+
b.bp("/findings/aggregation/list");
|
|
684
465
|
let body;
|
|
685
466
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
686
467
|
accountIds: (_) => (0, smithy_client_1._json)(_),
|
|
@@ -689,23 +470,16 @@ const se_ListFindingAggregationsCommand = async (input, context) => {
|
|
|
689
470
|
maxResults: [],
|
|
690
471
|
nextToken: [],
|
|
691
472
|
}));
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
hostname,
|
|
695
|
-
port,
|
|
696
|
-
method: "POST",
|
|
697
|
-
headers,
|
|
698
|
-
path: resolvedPath,
|
|
699
|
-
body,
|
|
700
|
-
});
|
|
473
|
+
b.m("POST").h(headers).b(body);
|
|
474
|
+
return b.build();
|
|
701
475
|
};
|
|
702
476
|
exports.se_ListFindingAggregationsCommand = se_ListFindingAggregationsCommand;
|
|
703
477
|
const se_ListFindingsCommand = async (input, context) => {
|
|
704
|
-
const
|
|
478
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
705
479
|
const headers = {
|
|
706
480
|
"content-type": "application/json",
|
|
707
481
|
};
|
|
708
|
-
|
|
482
|
+
b.bp("/findings/list");
|
|
709
483
|
let body;
|
|
710
484
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
711
485
|
filterCriteria: (_) => se_FilterCriteria(_, context),
|
|
@@ -713,242 +487,164 @@ const se_ListFindingsCommand = async (input, context) => {
|
|
|
713
487
|
nextToken: [],
|
|
714
488
|
sortCriteria: (_) => (0, smithy_client_1._json)(_),
|
|
715
489
|
}));
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
hostname,
|
|
719
|
-
port,
|
|
720
|
-
method: "POST",
|
|
721
|
-
headers,
|
|
722
|
-
path: resolvedPath,
|
|
723
|
-
body,
|
|
724
|
-
});
|
|
490
|
+
b.m("POST").h(headers).b(body);
|
|
491
|
+
return b.build();
|
|
725
492
|
};
|
|
726
493
|
exports.se_ListFindingsCommand = se_ListFindingsCommand;
|
|
727
494
|
const se_ListMembersCommand = async (input, context) => {
|
|
728
|
-
const
|
|
495
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
729
496
|
const headers = {
|
|
730
497
|
"content-type": "application/json",
|
|
731
498
|
};
|
|
732
|
-
|
|
499
|
+
b.bp("/members/list");
|
|
733
500
|
let body;
|
|
734
501
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
735
502
|
maxResults: [],
|
|
736
503
|
nextToken: [],
|
|
737
504
|
onlyAssociated: [],
|
|
738
505
|
}));
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
hostname,
|
|
742
|
-
port,
|
|
743
|
-
method: "POST",
|
|
744
|
-
headers,
|
|
745
|
-
path: resolvedPath,
|
|
746
|
-
body,
|
|
747
|
-
});
|
|
506
|
+
b.m("POST").h(headers).b(body);
|
|
507
|
+
return b.build();
|
|
748
508
|
};
|
|
749
509
|
exports.se_ListMembersCommand = se_ListMembersCommand;
|
|
750
510
|
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
751
|
-
const
|
|
511
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
752
512
|
const headers = {};
|
|
753
|
-
|
|
754
|
-
|
|
513
|
+
b.bp("/tags/{resourceArn}");
|
|
514
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
755
515
|
let body;
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
hostname,
|
|
759
|
-
port,
|
|
760
|
-
method: "GET",
|
|
761
|
-
headers,
|
|
762
|
-
path: resolvedPath,
|
|
763
|
-
body,
|
|
764
|
-
});
|
|
516
|
+
b.m("GET").h(headers).b(body);
|
|
517
|
+
return b.build();
|
|
765
518
|
};
|
|
766
519
|
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
767
520
|
const se_ListUsageTotalsCommand = async (input, context) => {
|
|
768
|
-
const
|
|
521
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
769
522
|
const headers = {
|
|
770
523
|
"content-type": "application/json",
|
|
771
524
|
};
|
|
772
|
-
|
|
525
|
+
b.bp("/usage/list");
|
|
773
526
|
let body;
|
|
774
527
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
775
528
|
accountIds: (_) => (0, smithy_client_1._json)(_),
|
|
776
529
|
maxResults: [],
|
|
777
530
|
nextToken: [],
|
|
778
531
|
}));
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
hostname,
|
|
782
|
-
port,
|
|
783
|
-
method: "POST",
|
|
784
|
-
headers,
|
|
785
|
-
path: resolvedPath,
|
|
786
|
-
body,
|
|
787
|
-
});
|
|
532
|
+
b.m("POST").h(headers).b(body);
|
|
533
|
+
return b.build();
|
|
788
534
|
};
|
|
789
535
|
exports.se_ListUsageTotalsCommand = se_ListUsageTotalsCommand;
|
|
790
536
|
const se_ResetEncryptionKeyCommand = async (input, context) => {
|
|
791
|
-
const
|
|
537
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
792
538
|
const headers = {
|
|
793
539
|
"content-type": "application/json",
|
|
794
540
|
};
|
|
795
|
-
|
|
541
|
+
b.bp("/encryptionkey/reset");
|
|
796
542
|
let body;
|
|
797
543
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
798
544
|
resourceType: [],
|
|
799
545
|
scanType: [],
|
|
800
546
|
}));
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
hostname,
|
|
804
|
-
port,
|
|
805
|
-
method: "PUT",
|
|
806
|
-
headers,
|
|
807
|
-
path: resolvedPath,
|
|
808
|
-
body,
|
|
809
|
-
});
|
|
547
|
+
b.m("PUT").h(headers).b(body);
|
|
548
|
+
return b.build();
|
|
810
549
|
};
|
|
811
550
|
exports.se_ResetEncryptionKeyCommand = se_ResetEncryptionKeyCommand;
|
|
812
551
|
const se_SearchVulnerabilitiesCommand = async (input, context) => {
|
|
813
|
-
const
|
|
552
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
814
553
|
const headers = {
|
|
815
554
|
"content-type": "application/json",
|
|
816
555
|
};
|
|
817
|
-
|
|
556
|
+
b.bp("/vulnerabilities/search");
|
|
818
557
|
let body;
|
|
819
558
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
820
559
|
filterCriteria: (_) => (0, smithy_client_1._json)(_),
|
|
821
560
|
nextToken: [],
|
|
822
561
|
}));
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
hostname,
|
|
826
|
-
port,
|
|
827
|
-
method: "POST",
|
|
828
|
-
headers,
|
|
829
|
-
path: resolvedPath,
|
|
830
|
-
body,
|
|
831
|
-
});
|
|
562
|
+
b.m("POST").h(headers).b(body);
|
|
563
|
+
return b.build();
|
|
832
564
|
};
|
|
833
565
|
exports.se_SearchVulnerabilitiesCommand = se_SearchVulnerabilitiesCommand;
|
|
834
566
|
const se_TagResourceCommand = async (input, context) => {
|
|
835
|
-
const
|
|
567
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
836
568
|
const headers = {
|
|
837
569
|
"content-type": "application/json",
|
|
838
570
|
};
|
|
839
|
-
|
|
840
|
-
|
|
571
|
+
b.bp("/tags/{resourceArn}");
|
|
572
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
841
573
|
let body;
|
|
842
574
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
843
575
|
tags: (_) => (0, smithy_client_1._json)(_),
|
|
844
576
|
}));
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
hostname,
|
|
848
|
-
port,
|
|
849
|
-
method: "POST",
|
|
850
|
-
headers,
|
|
851
|
-
path: resolvedPath,
|
|
852
|
-
body,
|
|
853
|
-
});
|
|
577
|
+
b.m("POST").h(headers).b(body);
|
|
578
|
+
return b.build();
|
|
854
579
|
};
|
|
855
580
|
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
856
581
|
const se_UntagResourceCommand = async (input, context) => {
|
|
857
|
-
const
|
|
582
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
858
583
|
const headers = {};
|
|
859
|
-
|
|
860
|
-
|
|
584
|
+
b.bp("/tags/{resourceArn}");
|
|
585
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
861
586
|
const query = (0, smithy_client_1.map)({
|
|
862
|
-
|
|
587
|
+
[_tK]: [
|
|
863
588
|
(0, smithy_client_1.expectNonNull)(input.tagKeys, `tagKeys`) != null,
|
|
864
|
-
() => (input
|
|
589
|
+
() => (input[_tK] || []).map((_entry) => _entry),
|
|
865
590
|
],
|
|
866
591
|
});
|
|
867
592
|
let body;
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
hostname,
|
|
871
|
-
port,
|
|
872
|
-
method: "DELETE",
|
|
873
|
-
headers,
|
|
874
|
-
path: resolvedPath,
|
|
875
|
-
query,
|
|
876
|
-
body,
|
|
877
|
-
});
|
|
593
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
594
|
+
return b.build();
|
|
878
595
|
};
|
|
879
596
|
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
880
597
|
const se_UpdateConfigurationCommand = async (input, context) => {
|
|
881
|
-
const
|
|
598
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
882
599
|
const headers = {
|
|
883
600
|
"content-type": "application/json",
|
|
884
601
|
};
|
|
885
|
-
|
|
602
|
+
b.bp("/configuration/update");
|
|
886
603
|
let body;
|
|
887
604
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
888
605
|
ecrConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
889
606
|
}));
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
hostname,
|
|
893
|
-
port,
|
|
894
|
-
method: "POST",
|
|
895
|
-
headers,
|
|
896
|
-
path: resolvedPath,
|
|
897
|
-
body,
|
|
898
|
-
});
|
|
607
|
+
b.m("POST").h(headers).b(body);
|
|
608
|
+
return b.build();
|
|
899
609
|
};
|
|
900
610
|
exports.se_UpdateConfigurationCommand = se_UpdateConfigurationCommand;
|
|
901
611
|
const se_UpdateEc2DeepInspectionConfigurationCommand = async (input, context) => {
|
|
902
|
-
const
|
|
612
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
903
613
|
const headers = {
|
|
904
614
|
"content-type": "application/json",
|
|
905
615
|
};
|
|
906
|
-
|
|
616
|
+
b.bp("/ec2deepinspectionconfiguration/update");
|
|
907
617
|
let body;
|
|
908
618
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
909
619
|
activateDeepInspection: [],
|
|
910
620
|
packagePaths: (_) => (0, smithy_client_1._json)(_),
|
|
911
621
|
}));
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
hostname,
|
|
915
|
-
port,
|
|
916
|
-
method: "POST",
|
|
917
|
-
headers,
|
|
918
|
-
path: resolvedPath,
|
|
919
|
-
body,
|
|
920
|
-
});
|
|
622
|
+
b.m("POST").h(headers).b(body);
|
|
623
|
+
return b.build();
|
|
921
624
|
};
|
|
922
625
|
exports.se_UpdateEc2DeepInspectionConfigurationCommand = se_UpdateEc2DeepInspectionConfigurationCommand;
|
|
923
626
|
const se_UpdateEncryptionKeyCommand = async (input, context) => {
|
|
924
|
-
const
|
|
627
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
925
628
|
const headers = {
|
|
926
629
|
"content-type": "application/json",
|
|
927
630
|
};
|
|
928
|
-
|
|
631
|
+
b.bp("/encryptionkey/update");
|
|
929
632
|
let body;
|
|
930
633
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
931
634
|
kmsKeyId: [],
|
|
932
635
|
resourceType: [],
|
|
933
636
|
scanType: [],
|
|
934
637
|
}));
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
hostname,
|
|
938
|
-
port,
|
|
939
|
-
method: "PUT",
|
|
940
|
-
headers,
|
|
941
|
-
path: resolvedPath,
|
|
942
|
-
body,
|
|
943
|
-
});
|
|
638
|
+
b.m("PUT").h(headers).b(body);
|
|
639
|
+
return b.build();
|
|
944
640
|
};
|
|
945
641
|
exports.se_UpdateEncryptionKeyCommand = se_UpdateEncryptionKeyCommand;
|
|
946
642
|
const se_UpdateFilterCommand = async (input, context) => {
|
|
947
|
-
const
|
|
643
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
948
644
|
const headers = {
|
|
949
645
|
"content-type": "application/json",
|
|
950
646
|
};
|
|
951
|
-
|
|
647
|
+
b.bp("/filters/update");
|
|
952
648
|
let body;
|
|
953
649
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
954
650
|
action: [],
|
|
@@ -958,58 +654,36 @@ const se_UpdateFilterCommand = async (input, context) => {
|
|
|
958
654
|
name: [],
|
|
959
655
|
reason: [],
|
|
960
656
|
}));
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
hostname,
|
|
964
|
-
port,
|
|
965
|
-
method: "POST",
|
|
966
|
-
headers,
|
|
967
|
-
path: resolvedPath,
|
|
968
|
-
body,
|
|
969
|
-
});
|
|
657
|
+
b.m("POST").h(headers).b(body);
|
|
658
|
+
return b.build();
|
|
970
659
|
};
|
|
971
660
|
exports.se_UpdateFilterCommand = se_UpdateFilterCommand;
|
|
972
661
|
const se_UpdateOrganizationConfigurationCommand = async (input, context) => {
|
|
973
|
-
const
|
|
662
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
974
663
|
const headers = {
|
|
975
664
|
"content-type": "application/json",
|
|
976
665
|
};
|
|
977
|
-
|
|
666
|
+
b.bp("/organizationconfiguration/update");
|
|
978
667
|
let body;
|
|
979
668
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
980
669
|
autoEnable: (_) => (0, smithy_client_1._json)(_),
|
|
981
670
|
}));
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
hostname,
|
|
985
|
-
port,
|
|
986
|
-
method: "POST",
|
|
987
|
-
headers,
|
|
988
|
-
path: resolvedPath,
|
|
989
|
-
body,
|
|
990
|
-
});
|
|
671
|
+
b.m("POST").h(headers).b(body);
|
|
672
|
+
return b.build();
|
|
991
673
|
};
|
|
992
674
|
exports.se_UpdateOrganizationConfigurationCommand = se_UpdateOrganizationConfigurationCommand;
|
|
993
675
|
const se_UpdateOrgEc2DeepInspectionConfigurationCommand = async (input, context) => {
|
|
994
|
-
const
|
|
676
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
995
677
|
const headers = {
|
|
996
678
|
"content-type": "application/json",
|
|
997
679
|
};
|
|
998
|
-
|
|
999
|
-
"/ec2deepinspectionconfiguration/org/update";
|
|
680
|
+
b.bp("/ec2deepinspectionconfiguration/org/update");
|
|
1000
681
|
let body;
|
|
1001
682
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1002
683
|
orgPackagePaths: (_) => (0, smithy_client_1._json)(_),
|
|
1003
684
|
}));
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
hostname,
|
|
1007
|
-
port,
|
|
1008
|
-
method: "POST",
|
|
1009
|
-
headers,
|
|
1010
|
-
path: resolvedPath,
|
|
1011
|
-
body,
|
|
1012
|
-
});
|
|
685
|
+
b.m("POST").h(headers).b(body);
|
|
686
|
+
return b.build();
|
|
1013
687
|
};
|
|
1014
688
|
exports.se_UpdateOrgEc2DeepInspectionConfigurationCommand = se_UpdateOrgEc2DeepInspectionConfigurationCommand;
|
|
1015
689
|
const de_AssociateMemberCommand = async (output, context) => {
|
|
@@ -3102,10 +2776,7 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
|
3102
2776
|
};
|
|
3103
2777
|
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
3104
2778
|
const contents = (0, smithy_client_1.map)({
|
|
3105
|
-
|
|
3106
|
-
() => void 0 !== parsedOutput.headers["retry-after"],
|
|
3107
|
-
() => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers["retry-after"]),
|
|
3108
|
-
],
|
|
2779
|
+
[_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers[_ra])],
|
|
3109
2780
|
});
|
|
3110
2781
|
const data = parsedOutput.body;
|
|
3111
2782
|
const doc = (0, smithy_client_1.take)(data, {
|
|
@@ -3147,10 +2818,7 @@ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
3147
2818
|
};
|
|
3148
2819
|
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
3149
2820
|
const contents = (0, smithy_client_1.map)({
|
|
3150
|
-
|
|
3151
|
-
() => void 0 !== parsedOutput.headers["retry-after"],
|
|
3152
|
-
() => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers["retry-after"]),
|
|
3153
|
-
],
|
|
2821
|
+
[_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers[_ra])],
|
|
3154
2822
|
});
|
|
3155
2823
|
const data = parsedOutput.body;
|
|
3156
2824
|
const doc = (0, smithy_client_1.take)(data, {
|
|
@@ -3851,6 +3519,11 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
3851
3519
|
value !== "" &&
|
|
3852
3520
|
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
3853
3521
|
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
3522
|
+
const _rAS = "retryAfterSeconds";
|
|
3523
|
+
const _rT = "resourceType";
|
|
3524
|
+
const _ra = "retry-after";
|
|
3525
|
+
const _sT = "scanType";
|
|
3526
|
+
const _tK = "tagKeys";
|
|
3854
3527
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
3855
3528
|
if (encoded.length) {
|
|
3856
3529
|
return JSON.parse(encoded);
|