@aws-sdk/client-inspector 3.312.0 → 3.315.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_json1_1.js +316 -1406
- package/dist-es/protocols/Aws_json1_1.js +317 -1407
- package/package.json +6 -6
|
@@ -9,77 +9,77 @@ const models_0_1 = require("../models/models_0");
|
|
|
9
9
|
const se_AddAttributesToFindingsCommand = async (input, context) => {
|
|
10
10
|
const headers = sharedHeaders("AddAttributesToFindings");
|
|
11
11
|
let body;
|
|
12
|
-
body = JSON.stringify(
|
|
12
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
13
13
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
14
14
|
};
|
|
15
15
|
exports.se_AddAttributesToFindingsCommand = se_AddAttributesToFindingsCommand;
|
|
16
16
|
const se_CreateAssessmentTargetCommand = async (input, context) => {
|
|
17
17
|
const headers = sharedHeaders("CreateAssessmentTarget");
|
|
18
18
|
let body;
|
|
19
|
-
body = JSON.stringify(
|
|
19
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
20
20
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
21
21
|
};
|
|
22
22
|
exports.se_CreateAssessmentTargetCommand = se_CreateAssessmentTargetCommand;
|
|
23
23
|
const se_CreateAssessmentTemplateCommand = async (input, context) => {
|
|
24
24
|
const headers = sharedHeaders("CreateAssessmentTemplate");
|
|
25
25
|
let body;
|
|
26
|
-
body = JSON.stringify(
|
|
26
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
27
27
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
28
28
|
};
|
|
29
29
|
exports.se_CreateAssessmentTemplateCommand = se_CreateAssessmentTemplateCommand;
|
|
30
30
|
const se_CreateExclusionsPreviewCommand = async (input, context) => {
|
|
31
31
|
const headers = sharedHeaders("CreateExclusionsPreview");
|
|
32
32
|
let body;
|
|
33
|
-
body = JSON.stringify(
|
|
33
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
34
34
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
35
35
|
};
|
|
36
36
|
exports.se_CreateExclusionsPreviewCommand = se_CreateExclusionsPreviewCommand;
|
|
37
37
|
const se_CreateResourceGroupCommand = async (input, context) => {
|
|
38
38
|
const headers = sharedHeaders("CreateResourceGroup");
|
|
39
39
|
let body;
|
|
40
|
-
body = JSON.stringify(
|
|
40
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
41
41
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
42
42
|
};
|
|
43
43
|
exports.se_CreateResourceGroupCommand = se_CreateResourceGroupCommand;
|
|
44
44
|
const se_DeleteAssessmentRunCommand = async (input, context) => {
|
|
45
45
|
const headers = sharedHeaders("DeleteAssessmentRun");
|
|
46
46
|
let body;
|
|
47
|
-
body = JSON.stringify(
|
|
47
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
48
48
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
49
49
|
};
|
|
50
50
|
exports.se_DeleteAssessmentRunCommand = se_DeleteAssessmentRunCommand;
|
|
51
51
|
const se_DeleteAssessmentTargetCommand = async (input, context) => {
|
|
52
52
|
const headers = sharedHeaders("DeleteAssessmentTarget");
|
|
53
53
|
let body;
|
|
54
|
-
body = JSON.stringify(
|
|
54
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
55
55
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
56
56
|
};
|
|
57
57
|
exports.se_DeleteAssessmentTargetCommand = se_DeleteAssessmentTargetCommand;
|
|
58
58
|
const se_DeleteAssessmentTemplateCommand = async (input, context) => {
|
|
59
59
|
const headers = sharedHeaders("DeleteAssessmentTemplate");
|
|
60
60
|
let body;
|
|
61
|
-
body = JSON.stringify(
|
|
61
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
62
62
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
63
63
|
};
|
|
64
64
|
exports.se_DeleteAssessmentTemplateCommand = se_DeleteAssessmentTemplateCommand;
|
|
65
65
|
const se_DescribeAssessmentRunsCommand = async (input, context) => {
|
|
66
66
|
const headers = sharedHeaders("DescribeAssessmentRuns");
|
|
67
67
|
let body;
|
|
68
|
-
body = JSON.stringify(
|
|
68
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
69
69
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
70
70
|
};
|
|
71
71
|
exports.se_DescribeAssessmentRunsCommand = se_DescribeAssessmentRunsCommand;
|
|
72
72
|
const se_DescribeAssessmentTargetsCommand = async (input, context) => {
|
|
73
73
|
const headers = sharedHeaders("DescribeAssessmentTargets");
|
|
74
74
|
let body;
|
|
75
|
-
body = JSON.stringify(
|
|
75
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
76
76
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
77
77
|
};
|
|
78
78
|
exports.se_DescribeAssessmentTargetsCommand = se_DescribeAssessmentTargetsCommand;
|
|
79
79
|
const se_DescribeAssessmentTemplatesCommand = async (input, context) => {
|
|
80
80
|
const headers = sharedHeaders("DescribeAssessmentTemplates");
|
|
81
81
|
let body;
|
|
82
|
-
body = JSON.stringify(
|
|
82
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
83
83
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
84
84
|
};
|
|
85
85
|
exports.se_DescribeAssessmentTemplatesCommand = se_DescribeAssessmentTemplatesCommand;
|
|
@@ -92,56 +92,56 @@ exports.se_DescribeCrossAccountAccessRoleCommand = se_DescribeCrossAccountAccess
|
|
|
92
92
|
const se_DescribeExclusionsCommand = async (input, context) => {
|
|
93
93
|
const headers = sharedHeaders("DescribeExclusions");
|
|
94
94
|
let body;
|
|
95
|
-
body = JSON.stringify(
|
|
95
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
96
96
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
97
97
|
};
|
|
98
98
|
exports.se_DescribeExclusionsCommand = se_DescribeExclusionsCommand;
|
|
99
99
|
const se_DescribeFindingsCommand = async (input, context) => {
|
|
100
100
|
const headers = sharedHeaders("DescribeFindings");
|
|
101
101
|
let body;
|
|
102
|
-
body = JSON.stringify(
|
|
102
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
103
103
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
104
104
|
};
|
|
105
105
|
exports.se_DescribeFindingsCommand = se_DescribeFindingsCommand;
|
|
106
106
|
const se_DescribeResourceGroupsCommand = async (input, context) => {
|
|
107
107
|
const headers = sharedHeaders("DescribeResourceGroups");
|
|
108
108
|
let body;
|
|
109
|
-
body = JSON.stringify(
|
|
109
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
110
110
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
111
111
|
};
|
|
112
112
|
exports.se_DescribeResourceGroupsCommand = se_DescribeResourceGroupsCommand;
|
|
113
113
|
const se_DescribeRulesPackagesCommand = async (input, context) => {
|
|
114
114
|
const headers = sharedHeaders("DescribeRulesPackages");
|
|
115
115
|
let body;
|
|
116
|
-
body = JSON.stringify(
|
|
116
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
117
117
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
118
118
|
};
|
|
119
119
|
exports.se_DescribeRulesPackagesCommand = se_DescribeRulesPackagesCommand;
|
|
120
120
|
const se_GetAssessmentReportCommand = async (input, context) => {
|
|
121
121
|
const headers = sharedHeaders("GetAssessmentReport");
|
|
122
122
|
let body;
|
|
123
|
-
body = JSON.stringify(
|
|
123
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
124
124
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
125
125
|
};
|
|
126
126
|
exports.se_GetAssessmentReportCommand = se_GetAssessmentReportCommand;
|
|
127
127
|
const se_GetExclusionsPreviewCommand = async (input, context) => {
|
|
128
128
|
const headers = sharedHeaders("GetExclusionsPreview");
|
|
129
129
|
let body;
|
|
130
|
-
body = JSON.stringify(
|
|
130
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
131
131
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
132
132
|
};
|
|
133
133
|
exports.se_GetExclusionsPreviewCommand = se_GetExclusionsPreviewCommand;
|
|
134
134
|
const se_GetTelemetryMetadataCommand = async (input, context) => {
|
|
135
135
|
const headers = sharedHeaders("GetTelemetryMetadata");
|
|
136
136
|
let body;
|
|
137
|
-
body = JSON.stringify(
|
|
137
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
138
138
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
139
139
|
};
|
|
140
140
|
exports.se_GetTelemetryMetadataCommand = se_GetTelemetryMetadataCommand;
|
|
141
141
|
const se_ListAssessmentRunAgentsCommand = async (input, context) => {
|
|
142
142
|
const headers = sharedHeaders("ListAssessmentRunAgents");
|
|
143
143
|
let body;
|
|
144
|
-
body = JSON.stringify(
|
|
144
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
145
145
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
146
146
|
};
|
|
147
147
|
exports.se_ListAssessmentRunAgentsCommand = se_ListAssessmentRunAgentsCommand;
|
|
@@ -155,28 +155,28 @@ exports.se_ListAssessmentRunsCommand = se_ListAssessmentRunsCommand;
|
|
|
155
155
|
const se_ListAssessmentTargetsCommand = async (input, context) => {
|
|
156
156
|
const headers = sharedHeaders("ListAssessmentTargets");
|
|
157
157
|
let body;
|
|
158
|
-
body = JSON.stringify(
|
|
158
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
159
159
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
160
160
|
};
|
|
161
161
|
exports.se_ListAssessmentTargetsCommand = se_ListAssessmentTargetsCommand;
|
|
162
162
|
const se_ListAssessmentTemplatesCommand = async (input, context) => {
|
|
163
163
|
const headers = sharedHeaders("ListAssessmentTemplates");
|
|
164
164
|
let body;
|
|
165
|
-
body = JSON.stringify(
|
|
165
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
166
166
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
167
167
|
};
|
|
168
168
|
exports.se_ListAssessmentTemplatesCommand = se_ListAssessmentTemplatesCommand;
|
|
169
169
|
const se_ListEventSubscriptionsCommand = async (input, context) => {
|
|
170
170
|
const headers = sharedHeaders("ListEventSubscriptions");
|
|
171
171
|
let body;
|
|
172
|
-
body = JSON.stringify(
|
|
172
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
173
173
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
174
174
|
};
|
|
175
175
|
exports.se_ListEventSubscriptionsCommand = se_ListEventSubscriptionsCommand;
|
|
176
176
|
const se_ListExclusionsCommand = async (input, context) => {
|
|
177
177
|
const headers = sharedHeaders("ListExclusions");
|
|
178
178
|
let body;
|
|
179
|
-
body = JSON.stringify(
|
|
179
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
180
180
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
181
181
|
};
|
|
182
182
|
exports.se_ListExclusionsCommand = se_ListExclusionsCommand;
|
|
@@ -190,77 +190,77 @@ exports.se_ListFindingsCommand = se_ListFindingsCommand;
|
|
|
190
190
|
const se_ListRulesPackagesCommand = async (input, context) => {
|
|
191
191
|
const headers = sharedHeaders("ListRulesPackages");
|
|
192
192
|
let body;
|
|
193
|
-
body = JSON.stringify(
|
|
193
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
194
194
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
195
195
|
};
|
|
196
196
|
exports.se_ListRulesPackagesCommand = se_ListRulesPackagesCommand;
|
|
197
197
|
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
198
198
|
const headers = sharedHeaders("ListTagsForResource");
|
|
199
199
|
let body;
|
|
200
|
-
body = JSON.stringify(
|
|
200
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
201
201
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
202
202
|
};
|
|
203
203
|
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
204
204
|
const se_PreviewAgentsCommand = async (input, context) => {
|
|
205
205
|
const headers = sharedHeaders("PreviewAgents");
|
|
206
206
|
let body;
|
|
207
|
-
body = JSON.stringify(
|
|
207
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
208
208
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
209
209
|
};
|
|
210
210
|
exports.se_PreviewAgentsCommand = se_PreviewAgentsCommand;
|
|
211
211
|
const se_RegisterCrossAccountAccessRoleCommand = async (input, context) => {
|
|
212
212
|
const headers = sharedHeaders("RegisterCrossAccountAccessRole");
|
|
213
213
|
let body;
|
|
214
|
-
body = JSON.stringify(
|
|
214
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
215
215
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
216
216
|
};
|
|
217
217
|
exports.se_RegisterCrossAccountAccessRoleCommand = se_RegisterCrossAccountAccessRoleCommand;
|
|
218
218
|
const se_RemoveAttributesFromFindingsCommand = async (input, context) => {
|
|
219
219
|
const headers = sharedHeaders("RemoveAttributesFromFindings");
|
|
220
220
|
let body;
|
|
221
|
-
body = JSON.stringify(
|
|
221
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
222
222
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
223
223
|
};
|
|
224
224
|
exports.se_RemoveAttributesFromFindingsCommand = se_RemoveAttributesFromFindingsCommand;
|
|
225
225
|
const se_SetTagsForResourceCommand = async (input, context) => {
|
|
226
226
|
const headers = sharedHeaders("SetTagsForResource");
|
|
227
227
|
let body;
|
|
228
|
-
body = JSON.stringify(
|
|
228
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
229
229
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
230
230
|
};
|
|
231
231
|
exports.se_SetTagsForResourceCommand = se_SetTagsForResourceCommand;
|
|
232
232
|
const se_StartAssessmentRunCommand = async (input, context) => {
|
|
233
233
|
const headers = sharedHeaders("StartAssessmentRun");
|
|
234
234
|
let body;
|
|
235
|
-
body = JSON.stringify(
|
|
235
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
236
236
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
237
237
|
};
|
|
238
238
|
exports.se_StartAssessmentRunCommand = se_StartAssessmentRunCommand;
|
|
239
239
|
const se_StopAssessmentRunCommand = async (input, context) => {
|
|
240
240
|
const headers = sharedHeaders("StopAssessmentRun");
|
|
241
241
|
let body;
|
|
242
|
-
body = JSON.stringify(
|
|
242
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
243
243
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
244
244
|
};
|
|
245
245
|
exports.se_StopAssessmentRunCommand = se_StopAssessmentRunCommand;
|
|
246
246
|
const se_SubscribeToEventCommand = async (input, context) => {
|
|
247
247
|
const headers = sharedHeaders("SubscribeToEvent");
|
|
248
248
|
let body;
|
|
249
|
-
body = JSON.stringify(
|
|
249
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
250
250
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
251
251
|
};
|
|
252
252
|
exports.se_SubscribeToEventCommand = se_SubscribeToEventCommand;
|
|
253
253
|
const se_UnsubscribeFromEventCommand = async (input, context) => {
|
|
254
254
|
const headers = sharedHeaders("UnsubscribeFromEvent");
|
|
255
255
|
let body;
|
|
256
|
-
body = JSON.stringify(
|
|
256
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
257
257
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
258
258
|
};
|
|
259
259
|
exports.se_UnsubscribeFromEventCommand = se_UnsubscribeFromEventCommand;
|
|
260
260
|
const se_UpdateAssessmentTargetCommand = async (input, context) => {
|
|
261
261
|
const headers = sharedHeaders("UpdateAssessmentTarget");
|
|
262
262
|
let body;
|
|
263
|
-
body = JSON.stringify(
|
|
263
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
264
264
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
265
265
|
};
|
|
266
266
|
exports.se_UpdateAssessmentTargetCommand = se_UpdateAssessmentTargetCommand;
|
|
@@ -270,12 +270,12 @@ const de_AddAttributesToFindingsCommand = async (output, context) => {
|
|
|
270
270
|
}
|
|
271
271
|
const data = await parseBody(output.body, context);
|
|
272
272
|
let contents = {};
|
|
273
|
-
contents =
|
|
273
|
+
contents = (0, smithy_client_1._json)(data);
|
|
274
274
|
const response = {
|
|
275
275
|
$metadata: deserializeMetadata(output),
|
|
276
276
|
...contents,
|
|
277
277
|
};
|
|
278
|
-
return
|
|
278
|
+
return response;
|
|
279
279
|
};
|
|
280
280
|
exports.de_AddAttributesToFindingsCommand = de_AddAttributesToFindingsCommand;
|
|
281
281
|
const de_AddAttributesToFindingsCommandError = async (output, context) => {
|
|
@@ -302,10 +302,9 @@ const de_AddAttributesToFindingsCommandError = async (output, context) => {
|
|
|
302
302
|
throw await de_ServiceTemporarilyUnavailableExceptionRes(parsedOutput, context);
|
|
303
303
|
default:
|
|
304
304
|
const parsedBody = parsedOutput.body;
|
|
305
|
-
|
|
305
|
+
return throwDefaultError({
|
|
306
306
|
output,
|
|
307
307
|
parsedBody,
|
|
308
|
-
exceptionCtor: InspectorServiceException_1.InspectorServiceException,
|
|
309
308
|
errorCode,
|
|
310
309
|
});
|
|
311
310
|
}
|
|
@@ -316,12 +315,12 @@ const de_CreateAssessmentTargetCommand = async (output, context) => {
|
|
|
316
315
|
}
|
|
317
316
|
const data = await parseBody(output.body, context);
|
|
318
317
|
let contents = {};
|
|
319
|
-
contents =
|
|
318
|
+
contents = (0, smithy_client_1._json)(data);
|
|
320
319
|
const response = {
|
|
321
320
|
$metadata: deserializeMetadata(output),
|
|
322
321
|
...contents,
|
|
323
322
|
};
|
|
324
|
-
return
|
|
323
|
+
return response;
|
|
325
324
|
};
|
|
326
325
|
exports.de_CreateAssessmentTargetCommand = de_CreateAssessmentTargetCommand;
|
|
327
326
|
const de_CreateAssessmentTargetCommandError = async (output, context) => {
|
|
@@ -354,10 +353,9 @@ const de_CreateAssessmentTargetCommandError = async (output, context) => {
|
|
|
354
353
|
throw await de_ServiceTemporarilyUnavailableExceptionRes(parsedOutput, context);
|
|
355
354
|
default:
|
|
356
355
|
const parsedBody = parsedOutput.body;
|
|
357
|
-
|
|
356
|
+
return throwDefaultError({
|
|
358
357
|
output,
|
|
359
358
|
parsedBody,
|
|
360
|
-
exceptionCtor: InspectorServiceException_1.InspectorServiceException,
|
|
361
359
|
errorCode,
|
|
362
360
|
});
|
|
363
361
|
}
|
|
@@ -368,12 +366,12 @@ const de_CreateAssessmentTemplateCommand = async (output, context) => {
|
|
|
368
366
|
}
|
|
369
367
|
const data = await parseBody(output.body, context);
|
|
370
368
|
let contents = {};
|
|
371
|
-
contents =
|
|
369
|
+
contents = (0, smithy_client_1._json)(data);
|
|
372
370
|
const response = {
|
|
373
371
|
$metadata: deserializeMetadata(output),
|
|
374
372
|
...contents,
|
|
375
373
|
};
|
|
376
|
-
return
|
|
374
|
+
return response;
|
|
377
375
|
};
|
|
378
376
|
exports.de_CreateAssessmentTemplateCommand = de_CreateAssessmentTemplateCommand;
|
|
379
377
|
const de_CreateAssessmentTemplateCommandError = async (output, context) => {
|
|
@@ -403,10 +401,9 @@ const de_CreateAssessmentTemplateCommandError = async (output, context) => {
|
|
|
403
401
|
throw await de_ServiceTemporarilyUnavailableExceptionRes(parsedOutput, context);
|
|
404
402
|
default:
|
|
405
403
|
const parsedBody = parsedOutput.body;
|
|
406
|
-
|
|
404
|
+
return throwDefaultError({
|
|
407
405
|
output,
|
|
408
406
|
parsedBody,
|
|
409
|
-
exceptionCtor: InspectorServiceException_1.InspectorServiceException,
|
|
410
407
|
errorCode,
|
|
411
408
|
});
|
|
412
409
|
}
|
|
@@ -417,12 +414,12 @@ const de_CreateExclusionsPreviewCommand = async (output, context) => {
|
|
|
417
414
|
}
|
|
418
415
|
const data = await parseBody(output.body, context);
|
|
419
416
|
let contents = {};
|
|
420
|
-
contents =
|
|
417
|
+
contents = (0, smithy_client_1._json)(data);
|
|
421
418
|
const response = {
|
|
422
419
|
$metadata: deserializeMetadata(output),
|
|
423
420
|
...contents,
|
|
424
421
|
};
|
|
425
|
-
return
|
|
422
|
+
return response;
|
|
426
423
|
};
|
|
427
424
|
exports.de_CreateExclusionsPreviewCommand = de_CreateExclusionsPreviewCommand;
|
|
428
425
|
const de_CreateExclusionsPreviewCommandError = async (output, context) => {
|
|
@@ -452,10 +449,9 @@ const de_CreateExclusionsPreviewCommandError = async (output, context) => {
|
|
|
452
449
|
throw await de_ServiceTemporarilyUnavailableExceptionRes(parsedOutput, context);
|
|
453
450
|
default:
|
|
454
451
|
const parsedBody = parsedOutput.body;
|
|
455
|
-
|
|
452
|
+
return throwDefaultError({
|
|
456
453
|
output,
|
|
457
454
|
parsedBody,
|
|
458
|
-
exceptionCtor: InspectorServiceException_1.InspectorServiceException,
|
|
459
455
|
errorCode,
|
|
460
456
|
});
|
|
461
457
|
}
|
|
@@ -466,12 +462,12 @@ const de_CreateResourceGroupCommand = async (output, context) => {
|
|
|
466
462
|
}
|
|
467
463
|
const data = await parseBody(output.body, context);
|
|
468
464
|
let contents = {};
|
|
469
|
-
contents =
|
|
465
|
+
contents = (0, smithy_client_1._json)(data);
|
|
470
466
|
const response = {
|
|
471
467
|
$metadata: deserializeMetadata(output),
|
|
472
468
|
...contents,
|
|
473
469
|
};
|
|
474
|
-
return
|
|
470
|
+
return response;
|
|
475
471
|
};
|
|
476
472
|
exports.de_CreateResourceGroupCommand = de_CreateResourceGroupCommand;
|
|
477
473
|
const de_CreateResourceGroupCommandError = async (output, context) => {
|
|
@@ -498,10 +494,9 @@ const de_CreateResourceGroupCommandError = async (output, context) => {
|
|
|
498
494
|
throw await de_ServiceTemporarilyUnavailableExceptionRes(parsedOutput, context);
|
|
499
495
|
default:
|
|
500
496
|
const parsedBody = parsedOutput.body;
|
|
501
|
-
|
|
497
|
+
return throwDefaultError({
|
|
502
498
|
output,
|
|
503
499
|
parsedBody,
|
|
504
|
-
exceptionCtor: InspectorServiceException_1.InspectorServiceException,
|
|
505
500
|
errorCode,
|
|
506
501
|
});
|
|
507
502
|
}
|
|
@@ -514,7 +509,7 @@ const de_DeleteAssessmentRunCommand = async (output, context) => {
|
|
|
514
509
|
const response = {
|
|
515
510
|
$metadata: deserializeMetadata(output),
|
|
516
511
|
};
|
|
517
|
-
return
|
|
512
|
+
return response;
|
|
518
513
|
};
|
|
519
514
|
exports.de_DeleteAssessmentRunCommand = de_DeleteAssessmentRunCommand;
|
|
520
515
|
const de_DeleteAssessmentRunCommandError = async (output, context) => {
|
|
@@ -544,10 +539,9 @@ const de_DeleteAssessmentRunCommandError = async (output, context) => {
|
|
|
544
539
|
throw await de_ServiceTemporarilyUnavailableExceptionRes(parsedOutput, context);
|
|
545
540
|
default:
|
|
546
541
|
const parsedBody = parsedOutput.body;
|
|
547
|
-
|
|
542
|
+
return throwDefaultError({
|
|
548
543
|
output,
|
|
549
544
|
parsedBody,
|
|
550
|
-
exceptionCtor: InspectorServiceException_1.InspectorServiceException,
|
|
551
545
|
errorCode,
|
|
552
546
|
});
|
|
553
547
|
}
|
|
@@ -560,7 +554,7 @@ const de_DeleteAssessmentTargetCommand = async (output, context) => {
|
|
|
560
554
|
const response = {
|
|
561
555
|
$metadata: deserializeMetadata(output),
|
|
562
556
|
};
|
|
563
|
-
return
|
|
557
|
+
return response;
|
|
564
558
|
};
|
|
565
559
|
exports.de_DeleteAssessmentTargetCommand = de_DeleteAssessmentTargetCommand;
|
|
566
560
|
const de_DeleteAssessmentTargetCommandError = async (output, context) => {
|
|
@@ -590,10 +584,9 @@ const de_DeleteAssessmentTargetCommandError = async (output, context) => {
|
|
|
590
584
|
throw await de_ServiceTemporarilyUnavailableExceptionRes(parsedOutput, context);
|
|
591
585
|
default:
|
|
592
586
|
const parsedBody = parsedOutput.body;
|
|
593
|
-
|
|
587
|
+
return throwDefaultError({
|
|
594
588
|
output,
|
|
595
589
|
parsedBody,
|
|
596
|
-
exceptionCtor: InspectorServiceException_1.InspectorServiceException,
|
|
597
590
|
errorCode,
|
|
598
591
|
});
|
|
599
592
|
}
|
|
@@ -606,7 +599,7 @@ const de_DeleteAssessmentTemplateCommand = async (output, context) => {
|
|
|
606
599
|
const response = {
|
|
607
600
|
$metadata: deserializeMetadata(output),
|
|
608
601
|
};
|
|
609
|
-
return
|
|
602
|
+
return response;
|
|
610
603
|
};
|
|
611
604
|
exports.de_DeleteAssessmentTemplateCommand = de_DeleteAssessmentTemplateCommand;
|
|
612
605
|
const de_DeleteAssessmentTemplateCommandError = async (output, context) => {
|
|
@@ -636,10 +629,9 @@ const de_DeleteAssessmentTemplateCommandError = async (output, context) => {
|
|
|
636
629
|
throw await de_ServiceTemporarilyUnavailableExceptionRes(parsedOutput, context);
|
|
637
630
|
default:
|
|
638
631
|
const parsedBody = parsedOutput.body;
|
|
639
|
-
|
|
632
|
+
return throwDefaultError({
|
|
640
633
|
output,
|
|
641
634
|
parsedBody,
|
|
642
|
-
exceptionCtor: InspectorServiceException_1.InspectorServiceException,
|
|
643
635
|
errorCode,
|
|
644
636
|
});
|
|
645
637
|
}
|
|
@@ -655,7 +647,7 @@ const de_DescribeAssessmentRunsCommand = async (output, context) => {
|
|
|
655
647
|
$metadata: deserializeMetadata(output),
|
|
656
648
|
...contents,
|
|
657
649
|
};
|
|
658
|
-
return
|
|
650
|
+
return response;
|
|
659
651
|
};
|
|
660
652
|
exports.de_DescribeAssessmentRunsCommand = de_DescribeAssessmentRunsCommand;
|
|
661
653
|
const de_DescribeAssessmentRunsCommandError = async (output, context) => {
|
|
@@ -673,10 +665,9 @@ const de_DescribeAssessmentRunsCommandError = async (output, context) => {
|
|
|
673
665
|
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
674
666
|
default:
|
|
675
667
|
const parsedBody = parsedOutput.body;
|
|
676
|
-
|
|
668
|
+
return throwDefaultError({
|
|
677
669
|
output,
|
|
678
670
|
parsedBody,
|
|
679
|
-
exceptionCtor: InspectorServiceException_1.InspectorServiceException,
|
|
680
671
|
errorCode,
|
|
681
672
|
});
|
|
682
673
|
}
|
|
@@ -692,7 +683,7 @@ const de_DescribeAssessmentTargetsCommand = async (output, context) => {
|
|
|
692
683
|
$metadata: deserializeMetadata(output),
|
|
693
684
|
...contents,
|
|
694
685
|
};
|
|
695
|
-
return
|
|
686
|
+
return response;
|
|
696
687
|
};
|
|
697
688
|
exports.de_DescribeAssessmentTargetsCommand = de_DescribeAssessmentTargetsCommand;
|
|
698
689
|
const de_DescribeAssessmentTargetsCommandError = async (output, context) => {
|
|
@@ -710,10 +701,9 @@ const de_DescribeAssessmentTargetsCommandError = async (output, context) => {
|
|
|
710
701
|
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
711
702
|
default:
|
|
712
703
|
const parsedBody = parsedOutput.body;
|
|
713
|
-
|
|
704
|
+
return throwDefaultError({
|
|
714
705
|
output,
|
|
715
706
|
parsedBody,
|
|
716
|
-
exceptionCtor: InspectorServiceException_1.InspectorServiceException,
|
|
717
707
|
errorCode,
|
|
718
708
|
});
|
|
719
709
|
}
|
|
@@ -729,7 +719,7 @@ const de_DescribeAssessmentTemplatesCommand = async (output, context) => {
|
|
|
729
719
|
$metadata: deserializeMetadata(output),
|
|
730
720
|
...contents,
|
|
731
721
|
};
|
|
732
|
-
return
|
|
722
|
+
return response;
|
|
733
723
|
};
|
|
734
724
|
exports.de_DescribeAssessmentTemplatesCommand = de_DescribeAssessmentTemplatesCommand;
|
|
735
725
|
const de_DescribeAssessmentTemplatesCommandError = async (output, context) => {
|
|
@@ -747,10 +737,9 @@ const de_DescribeAssessmentTemplatesCommandError = async (output, context) => {
|
|
|
747
737
|
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
748
738
|
default:
|
|
749
739
|
const parsedBody = parsedOutput.body;
|
|
750
|
-
|
|
740
|
+
return throwDefaultError({
|
|
751
741
|
output,
|
|
752
742
|
parsedBody,
|
|
753
|
-
exceptionCtor: InspectorServiceException_1.InspectorServiceException,
|
|
754
743
|
errorCode,
|
|
755
744
|
});
|
|
756
745
|
}
|
|
@@ -766,7 +755,7 @@ const de_DescribeCrossAccountAccessRoleCommand = async (output, context) => {
|
|
|
766
755
|
$metadata: deserializeMetadata(output),
|
|
767
756
|
...contents,
|
|
768
757
|
};
|
|
769
|
-
return
|
|
758
|
+
return response;
|
|
770
759
|
};
|
|
771
760
|
exports.de_DescribeCrossAccountAccessRoleCommand = de_DescribeCrossAccountAccessRoleCommand;
|
|
772
761
|
const de_DescribeCrossAccountAccessRoleCommandError = async (output, context) => {
|
|
@@ -781,10 +770,9 @@ const de_DescribeCrossAccountAccessRoleCommandError = async (output, context) =>
|
|
|
781
770
|
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
782
771
|
default:
|
|
783
772
|
const parsedBody = parsedOutput.body;
|
|
784
|
-
|
|
773
|
+
return throwDefaultError({
|
|
785
774
|
output,
|
|
786
775
|
parsedBody,
|
|
787
|
-
exceptionCtor: InspectorServiceException_1.InspectorServiceException,
|
|
788
776
|
errorCode,
|
|
789
777
|
});
|
|
790
778
|
}
|
|
@@ -795,12 +783,12 @@ const de_DescribeExclusionsCommand = async (output, context) => {
|
|
|
795
783
|
}
|
|
796
784
|
const data = await parseBody(output.body, context);
|
|
797
785
|
let contents = {};
|
|
798
|
-
contents =
|
|
786
|
+
contents = (0, smithy_client_1._json)(data);
|
|
799
787
|
const response = {
|
|
800
788
|
$metadata: deserializeMetadata(output),
|
|
801
789
|
...contents,
|
|
802
790
|
};
|
|
803
|
-
return
|
|
791
|
+
return response;
|
|
804
792
|
};
|
|
805
793
|
exports.de_DescribeExclusionsCommand = de_DescribeExclusionsCommand;
|
|
806
794
|
const de_DescribeExclusionsCommandError = async (output, context) => {
|
|
@@ -818,10 +806,9 @@ const de_DescribeExclusionsCommandError = async (output, context) => {
|
|
|
818
806
|
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
819
807
|
default:
|
|
820
808
|
const parsedBody = parsedOutput.body;
|
|
821
|
-
|
|
809
|
+
return throwDefaultError({
|
|
822
810
|
output,
|
|
823
811
|
parsedBody,
|
|
824
|
-
exceptionCtor: InspectorServiceException_1.InspectorServiceException,
|
|
825
812
|
errorCode,
|
|
826
813
|
});
|
|
827
814
|
}
|
|
@@ -837,7 +824,7 @@ const de_DescribeFindingsCommand = async (output, context) => {
|
|
|
837
824
|
$metadata: deserializeMetadata(output),
|
|
838
825
|
...contents,
|
|
839
826
|
};
|
|
840
|
-
return
|
|
827
|
+
return response;
|
|
841
828
|
};
|
|
842
829
|
exports.de_DescribeFindingsCommand = de_DescribeFindingsCommand;
|
|
843
830
|
const de_DescribeFindingsCommandError = async (output, context) => {
|
|
@@ -855,10 +842,9 @@ const de_DescribeFindingsCommandError = async (output, context) => {
|
|
|
855
842
|
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
856
843
|
default:
|
|
857
844
|
const parsedBody = parsedOutput.body;
|
|
858
|
-
|
|
845
|
+
return throwDefaultError({
|
|
859
846
|
output,
|
|
860
847
|
parsedBody,
|
|
861
|
-
exceptionCtor: InspectorServiceException_1.InspectorServiceException,
|
|
862
848
|
errorCode,
|
|
863
849
|
});
|
|
864
850
|
}
|
|
@@ -874,7 +860,7 @@ const de_DescribeResourceGroupsCommand = async (output, context) => {
|
|
|
874
860
|
$metadata: deserializeMetadata(output),
|
|
875
861
|
...contents,
|
|
876
862
|
};
|
|
877
|
-
return
|
|
863
|
+
return response;
|
|
878
864
|
};
|
|
879
865
|
exports.de_DescribeResourceGroupsCommand = de_DescribeResourceGroupsCommand;
|
|
880
866
|
const de_DescribeResourceGroupsCommandError = async (output, context) => {
|
|
@@ -892,10 +878,9 @@ const de_DescribeResourceGroupsCommandError = async (output, context) => {
|
|
|
892
878
|
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
893
879
|
default:
|
|
894
880
|
const parsedBody = parsedOutput.body;
|
|
895
|
-
|
|
881
|
+
return throwDefaultError({
|
|
896
882
|
output,
|
|
897
883
|
parsedBody,
|
|
898
|
-
exceptionCtor: InspectorServiceException_1.InspectorServiceException,
|
|
899
884
|
errorCode,
|
|
900
885
|
});
|
|
901
886
|
}
|
|
@@ -906,12 +891,12 @@ const de_DescribeRulesPackagesCommand = async (output, context) => {
|
|
|
906
891
|
}
|
|
907
892
|
const data = await parseBody(output.body, context);
|
|
908
893
|
let contents = {};
|
|
909
|
-
contents =
|
|
894
|
+
contents = (0, smithy_client_1._json)(data);
|
|
910
895
|
const response = {
|
|
911
896
|
$metadata: deserializeMetadata(output),
|
|
912
897
|
...contents,
|
|
913
898
|
};
|
|
914
|
-
return
|
|
899
|
+
return response;
|
|
915
900
|
};
|
|
916
901
|
exports.de_DescribeRulesPackagesCommand = de_DescribeRulesPackagesCommand;
|
|
917
902
|
const de_DescribeRulesPackagesCommandError = async (output, context) => {
|
|
@@ -929,10 +914,9 @@ const de_DescribeRulesPackagesCommandError = async (output, context) => {
|
|
|
929
914
|
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
930
915
|
default:
|
|
931
916
|
const parsedBody = parsedOutput.body;
|
|
932
|
-
|
|
917
|
+
return throwDefaultError({
|
|
933
918
|
output,
|
|
934
919
|
parsedBody,
|
|
935
|
-
exceptionCtor: InspectorServiceException_1.InspectorServiceException,
|
|
936
920
|
errorCode,
|
|
937
921
|
});
|
|
938
922
|
}
|
|
@@ -943,12 +927,12 @@ const de_GetAssessmentReportCommand = async (output, context) => {
|
|
|
943
927
|
}
|
|
944
928
|
const data = await parseBody(output.body, context);
|
|
945
929
|
let contents = {};
|
|
946
|
-
contents =
|
|
930
|
+
contents = (0, smithy_client_1._json)(data);
|
|
947
931
|
const response = {
|
|
948
932
|
$metadata: deserializeMetadata(output),
|
|
949
933
|
...contents,
|
|
950
934
|
};
|
|
951
|
-
return
|
|
935
|
+
return response;
|
|
952
936
|
};
|
|
953
937
|
exports.de_GetAssessmentReportCommand = de_GetAssessmentReportCommand;
|
|
954
938
|
const de_GetAssessmentReportCommandError = async (output, context) => {
|
|
@@ -981,10 +965,9 @@ const de_GetAssessmentReportCommandError = async (output, context) => {
|
|
|
981
965
|
throw await de_UnsupportedFeatureExceptionRes(parsedOutput, context);
|
|
982
966
|
default:
|
|
983
967
|
const parsedBody = parsedOutput.body;
|
|
984
|
-
|
|
968
|
+
return throwDefaultError({
|
|
985
969
|
output,
|
|
986
970
|
parsedBody,
|
|
987
|
-
exceptionCtor: InspectorServiceException_1.InspectorServiceException,
|
|
988
971
|
errorCode,
|
|
989
972
|
});
|
|
990
973
|
}
|
|
@@ -995,12 +978,12 @@ const de_GetExclusionsPreviewCommand = async (output, context) => {
|
|
|
995
978
|
}
|
|
996
979
|
const data = await parseBody(output.body, context);
|
|
997
980
|
let contents = {};
|
|
998
|
-
contents =
|
|
981
|
+
contents = (0, smithy_client_1._json)(data);
|
|
999
982
|
const response = {
|
|
1000
983
|
$metadata: deserializeMetadata(output),
|
|
1001
984
|
...contents,
|
|
1002
985
|
};
|
|
1003
|
-
return
|
|
986
|
+
return response;
|
|
1004
987
|
};
|
|
1005
988
|
exports.de_GetExclusionsPreviewCommand = de_GetExclusionsPreviewCommand;
|
|
1006
989
|
const de_GetExclusionsPreviewCommandError = async (output, context) => {
|
|
@@ -1024,10 +1007,9 @@ const de_GetExclusionsPreviewCommandError = async (output, context) => {
|
|
|
1024
1007
|
throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
|
|
1025
1008
|
default:
|
|
1026
1009
|
const parsedBody = parsedOutput.body;
|
|
1027
|
-
|
|
1010
|
+
return throwDefaultError({
|
|
1028
1011
|
output,
|
|
1029
1012
|
parsedBody,
|
|
1030
|
-
exceptionCtor: InspectorServiceException_1.InspectorServiceException,
|
|
1031
1013
|
errorCode,
|
|
1032
1014
|
});
|
|
1033
1015
|
}
|
|
@@ -1038,12 +1020,12 @@ const de_GetTelemetryMetadataCommand = async (output, context) => {
|
|
|
1038
1020
|
}
|
|
1039
1021
|
const data = await parseBody(output.body, context);
|
|
1040
1022
|
let contents = {};
|
|
1041
|
-
contents =
|
|
1023
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1042
1024
|
const response = {
|
|
1043
1025
|
$metadata: deserializeMetadata(output),
|
|
1044
1026
|
...contents,
|
|
1045
1027
|
};
|
|
1046
|
-
return
|
|
1028
|
+
return response;
|
|
1047
1029
|
};
|
|
1048
1030
|
exports.de_GetTelemetryMetadataCommand = de_GetTelemetryMetadataCommand;
|
|
1049
1031
|
const de_GetTelemetryMetadataCommandError = async (output, context) => {
|
|
@@ -1067,10 +1049,9 @@ const de_GetTelemetryMetadataCommandError = async (output, context) => {
|
|
|
1067
1049
|
throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
|
|
1068
1050
|
default:
|
|
1069
1051
|
const parsedBody = parsedOutput.body;
|
|
1070
|
-
|
|
1052
|
+
return throwDefaultError({
|
|
1071
1053
|
output,
|
|
1072
1054
|
parsedBody,
|
|
1073
|
-
exceptionCtor: InspectorServiceException_1.InspectorServiceException,
|
|
1074
1055
|
errorCode,
|
|
1075
1056
|
});
|
|
1076
1057
|
}
|
|
@@ -1081,12 +1062,12 @@ const de_ListAssessmentRunAgentsCommand = async (output, context) => {
|
|
|
1081
1062
|
}
|
|
1082
1063
|
const data = await parseBody(output.body, context);
|
|
1083
1064
|
let contents = {};
|
|
1084
|
-
contents =
|
|
1065
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1085
1066
|
const response = {
|
|
1086
1067
|
$metadata: deserializeMetadata(output),
|
|
1087
1068
|
...contents,
|
|
1088
1069
|
};
|
|
1089
|
-
return
|
|
1070
|
+
return response;
|
|
1090
1071
|
};
|
|
1091
1072
|
exports.de_ListAssessmentRunAgentsCommand = de_ListAssessmentRunAgentsCommand;
|
|
1092
1073
|
const de_ListAssessmentRunAgentsCommandError = async (output, context) => {
|
|
@@ -1110,10 +1091,9 @@ const de_ListAssessmentRunAgentsCommandError = async (output, context) => {
|
|
|
1110
1091
|
throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
|
|
1111
1092
|
default:
|
|
1112
1093
|
const parsedBody = parsedOutput.body;
|
|
1113
|
-
|
|
1094
|
+
return throwDefaultError({
|
|
1114
1095
|
output,
|
|
1115
1096
|
parsedBody,
|
|
1116
|
-
exceptionCtor: InspectorServiceException_1.InspectorServiceException,
|
|
1117
1097
|
errorCode,
|
|
1118
1098
|
});
|
|
1119
1099
|
}
|
|
@@ -1124,12 +1104,12 @@ const de_ListAssessmentRunsCommand = async (output, context) => {
|
|
|
1124
1104
|
}
|
|
1125
1105
|
const data = await parseBody(output.body, context);
|
|
1126
1106
|
let contents = {};
|
|
1127
|
-
contents =
|
|
1107
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1128
1108
|
const response = {
|
|
1129
1109
|
$metadata: deserializeMetadata(output),
|
|
1130
1110
|
...contents,
|
|
1131
1111
|
};
|
|
1132
|
-
return
|
|
1112
|
+
return response;
|
|
1133
1113
|
};
|
|
1134
1114
|
exports.de_ListAssessmentRunsCommand = de_ListAssessmentRunsCommand;
|
|
1135
1115
|
const de_ListAssessmentRunsCommandError = async (output, context) => {
|
|
@@ -1153,10 +1133,9 @@ const de_ListAssessmentRunsCommandError = async (output, context) => {
|
|
|
1153
1133
|
throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
|
|
1154
1134
|
default:
|
|
1155
1135
|
const parsedBody = parsedOutput.body;
|
|
1156
|
-
|
|
1136
|
+
return throwDefaultError({
|
|
1157
1137
|
output,
|
|
1158
1138
|
parsedBody,
|
|
1159
|
-
exceptionCtor: InspectorServiceException_1.InspectorServiceException,
|
|
1160
1139
|
errorCode,
|
|
1161
1140
|
});
|
|
1162
1141
|
}
|
|
@@ -1167,12 +1146,12 @@ const de_ListAssessmentTargetsCommand = async (output, context) => {
|
|
|
1167
1146
|
}
|
|
1168
1147
|
const data = await parseBody(output.body, context);
|
|
1169
1148
|
let contents = {};
|
|
1170
|
-
contents =
|
|
1149
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1171
1150
|
const response = {
|
|
1172
1151
|
$metadata: deserializeMetadata(output),
|
|
1173
1152
|
...contents,
|
|
1174
1153
|
};
|
|
1175
|
-
return
|
|
1154
|
+
return response;
|
|
1176
1155
|
};
|
|
1177
1156
|
exports.de_ListAssessmentTargetsCommand = de_ListAssessmentTargetsCommand;
|
|
1178
1157
|
const de_ListAssessmentTargetsCommandError = async (output, context) => {
|
|
@@ -1193,10 +1172,9 @@ const de_ListAssessmentTargetsCommandError = async (output, context) => {
|
|
|
1193
1172
|
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1194
1173
|
default:
|
|
1195
1174
|
const parsedBody = parsedOutput.body;
|
|
1196
|
-
|
|
1175
|
+
return throwDefaultError({
|
|
1197
1176
|
output,
|
|
1198
1177
|
parsedBody,
|
|
1199
|
-
exceptionCtor: InspectorServiceException_1.InspectorServiceException,
|
|
1200
1178
|
errorCode,
|
|
1201
1179
|
});
|
|
1202
1180
|
}
|
|
@@ -1207,12 +1185,12 @@ const de_ListAssessmentTemplatesCommand = async (output, context) => {
|
|
|
1207
1185
|
}
|
|
1208
1186
|
const data = await parseBody(output.body, context);
|
|
1209
1187
|
let contents = {};
|
|
1210
|
-
contents =
|
|
1188
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1211
1189
|
const response = {
|
|
1212
1190
|
$metadata: deserializeMetadata(output),
|
|
1213
1191
|
...contents,
|
|
1214
1192
|
};
|
|
1215
|
-
return
|
|
1193
|
+
return response;
|
|
1216
1194
|
};
|
|
1217
1195
|
exports.de_ListAssessmentTemplatesCommand = de_ListAssessmentTemplatesCommand;
|
|
1218
1196
|
const de_ListAssessmentTemplatesCommandError = async (output, context) => {
|
|
@@ -1236,10 +1214,9 @@ const de_ListAssessmentTemplatesCommandError = async (output, context) => {
|
|
|
1236
1214
|
throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
|
|
1237
1215
|
default:
|
|
1238
1216
|
const parsedBody = parsedOutput.body;
|
|
1239
|
-
|
|
1217
|
+
return throwDefaultError({
|
|
1240
1218
|
output,
|
|
1241
1219
|
parsedBody,
|
|
1242
|
-
exceptionCtor: InspectorServiceException_1.InspectorServiceException,
|
|
1243
1220
|
errorCode,
|
|
1244
1221
|
});
|
|
1245
1222
|
}
|
|
@@ -1255,7 +1232,7 @@ const de_ListEventSubscriptionsCommand = async (output, context) => {
|
|
|
1255
1232
|
$metadata: deserializeMetadata(output),
|
|
1256
1233
|
...contents,
|
|
1257
1234
|
};
|
|
1258
|
-
return
|
|
1235
|
+
return response;
|
|
1259
1236
|
};
|
|
1260
1237
|
exports.de_ListEventSubscriptionsCommand = de_ListEventSubscriptionsCommand;
|
|
1261
1238
|
const de_ListEventSubscriptionsCommandError = async (output, context) => {
|
|
@@ -1279,10 +1256,9 @@ const de_ListEventSubscriptionsCommandError = async (output, context) => {
|
|
|
1279
1256
|
throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
|
|
1280
1257
|
default:
|
|
1281
1258
|
const parsedBody = parsedOutput.body;
|
|
1282
|
-
|
|
1259
|
+
return throwDefaultError({
|
|
1283
1260
|
output,
|
|
1284
1261
|
parsedBody,
|
|
1285
|
-
exceptionCtor: InspectorServiceException_1.InspectorServiceException,
|
|
1286
1262
|
errorCode,
|
|
1287
1263
|
});
|
|
1288
1264
|
}
|
|
@@ -1293,12 +1269,12 @@ const de_ListExclusionsCommand = async (output, context) => {
|
|
|
1293
1269
|
}
|
|
1294
1270
|
const data = await parseBody(output.body, context);
|
|
1295
1271
|
let contents = {};
|
|
1296
|
-
contents =
|
|
1272
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1297
1273
|
const response = {
|
|
1298
1274
|
$metadata: deserializeMetadata(output),
|
|
1299
1275
|
...contents,
|
|
1300
1276
|
};
|
|
1301
|
-
return
|
|
1277
|
+
return response;
|
|
1302
1278
|
};
|
|
1303
1279
|
exports.de_ListExclusionsCommand = de_ListExclusionsCommand;
|
|
1304
1280
|
const de_ListExclusionsCommandError = async (output, context) => {
|
|
@@ -1322,10 +1298,9 @@ const de_ListExclusionsCommandError = async (output, context) => {
|
|
|
1322
1298
|
throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
|
|
1323
1299
|
default:
|
|
1324
1300
|
const parsedBody = parsedOutput.body;
|
|
1325
|
-
|
|
1301
|
+
return throwDefaultError({
|
|
1326
1302
|
output,
|
|
1327
1303
|
parsedBody,
|
|
1328
|
-
exceptionCtor: InspectorServiceException_1.InspectorServiceException,
|
|
1329
1304
|
errorCode,
|
|
1330
1305
|
});
|
|
1331
1306
|
}
|
|
@@ -1336,12 +1311,12 @@ const de_ListFindingsCommand = async (output, context) => {
|
|
|
1336
1311
|
}
|
|
1337
1312
|
const data = await parseBody(output.body, context);
|
|
1338
1313
|
let contents = {};
|
|
1339
|
-
contents =
|
|
1314
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1340
1315
|
const response = {
|
|
1341
1316
|
$metadata: deserializeMetadata(output),
|
|
1342
1317
|
...contents,
|
|
1343
1318
|
};
|
|
1344
|
-
return
|
|
1319
|
+
return response;
|
|
1345
1320
|
};
|
|
1346
1321
|
exports.de_ListFindingsCommand = de_ListFindingsCommand;
|
|
1347
1322
|
const de_ListFindingsCommandError = async (output, context) => {
|
|
@@ -1365,10 +1340,9 @@ const de_ListFindingsCommandError = async (output, context) => {
|
|
|
1365
1340
|
throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
|
|
1366
1341
|
default:
|
|
1367
1342
|
const parsedBody = parsedOutput.body;
|
|
1368
|
-
|
|
1343
|
+
return throwDefaultError({
|
|
1369
1344
|
output,
|
|
1370
1345
|
parsedBody,
|
|
1371
|
-
exceptionCtor: InspectorServiceException_1.InspectorServiceException,
|
|
1372
1346
|
errorCode,
|
|
1373
1347
|
});
|
|
1374
1348
|
}
|
|
@@ -1379,12 +1353,12 @@ const de_ListRulesPackagesCommand = async (output, context) => {
|
|
|
1379
1353
|
}
|
|
1380
1354
|
const data = await parseBody(output.body, context);
|
|
1381
1355
|
let contents = {};
|
|
1382
|
-
contents =
|
|
1356
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1383
1357
|
const response = {
|
|
1384
1358
|
$metadata: deserializeMetadata(output),
|
|
1385
1359
|
...contents,
|
|
1386
1360
|
};
|
|
1387
|
-
return
|
|
1361
|
+
return response;
|
|
1388
1362
|
};
|
|
1389
1363
|
exports.de_ListRulesPackagesCommand = de_ListRulesPackagesCommand;
|
|
1390
1364
|
const de_ListRulesPackagesCommandError = async (output, context) => {
|
|
@@ -1405,10 +1379,9 @@ const de_ListRulesPackagesCommandError = async (output, context) => {
|
|
|
1405
1379
|
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1406
1380
|
default:
|
|
1407
1381
|
const parsedBody = parsedOutput.body;
|
|
1408
|
-
|
|
1382
|
+
return throwDefaultError({
|
|
1409
1383
|
output,
|
|
1410
1384
|
parsedBody,
|
|
1411
|
-
exceptionCtor: InspectorServiceException_1.InspectorServiceException,
|
|
1412
1385
|
errorCode,
|
|
1413
1386
|
});
|
|
1414
1387
|
}
|
|
@@ -1419,12 +1392,12 @@ const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
1419
1392
|
}
|
|
1420
1393
|
const data = await parseBody(output.body, context);
|
|
1421
1394
|
let contents = {};
|
|
1422
|
-
contents =
|
|
1395
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1423
1396
|
const response = {
|
|
1424
1397
|
$metadata: deserializeMetadata(output),
|
|
1425
1398
|
...contents,
|
|
1426
1399
|
};
|
|
1427
|
-
return
|
|
1400
|
+
return response;
|
|
1428
1401
|
};
|
|
1429
1402
|
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
1430
1403
|
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
@@ -1448,10 +1421,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
1448
1421
|
throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
|
|
1449
1422
|
default:
|
|
1450
1423
|
const parsedBody = parsedOutput.body;
|
|
1451
|
-
|
|
1424
|
+
return throwDefaultError({
|
|
1452
1425
|
output,
|
|
1453
1426
|
parsedBody,
|
|
1454
|
-
exceptionCtor: InspectorServiceException_1.InspectorServiceException,
|
|
1455
1427
|
errorCode,
|
|
1456
1428
|
});
|
|
1457
1429
|
}
|
|
@@ -1462,12 +1434,12 @@ const de_PreviewAgentsCommand = async (output, context) => {
|
|
|
1462
1434
|
}
|
|
1463
1435
|
const data = await parseBody(output.body, context);
|
|
1464
1436
|
let contents = {};
|
|
1465
|
-
contents =
|
|
1437
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1466
1438
|
const response = {
|
|
1467
1439
|
$metadata: deserializeMetadata(output),
|
|
1468
1440
|
...contents,
|
|
1469
1441
|
};
|
|
1470
|
-
return
|
|
1442
|
+
return response;
|
|
1471
1443
|
};
|
|
1472
1444
|
exports.de_PreviewAgentsCommand = de_PreviewAgentsCommand;
|
|
1473
1445
|
const de_PreviewAgentsCommandError = async (output, context) => {
|
|
@@ -1494,10 +1466,9 @@ const de_PreviewAgentsCommandError = async (output, context) => {
|
|
|
1494
1466
|
throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
|
|
1495
1467
|
default:
|
|
1496
1468
|
const parsedBody = parsedOutput.body;
|
|
1497
|
-
|
|
1469
|
+
return throwDefaultError({
|
|
1498
1470
|
output,
|
|
1499
1471
|
parsedBody,
|
|
1500
|
-
exceptionCtor: InspectorServiceException_1.InspectorServiceException,
|
|
1501
1472
|
errorCode,
|
|
1502
1473
|
});
|
|
1503
1474
|
}
|
|
@@ -1510,7 +1481,7 @@ const de_RegisterCrossAccountAccessRoleCommand = async (output, context) => {
|
|
|
1510
1481
|
const response = {
|
|
1511
1482
|
$metadata: deserializeMetadata(output),
|
|
1512
1483
|
};
|
|
1513
|
-
return
|
|
1484
|
+
return response;
|
|
1514
1485
|
};
|
|
1515
1486
|
exports.de_RegisterCrossAccountAccessRoleCommand = de_RegisterCrossAccountAccessRoleCommand;
|
|
1516
1487
|
const de_RegisterCrossAccountAccessRoleCommandError = async (output, context) => {
|
|
@@ -1537,10 +1508,9 @@ const de_RegisterCrossAccountAccessRoleCommandError = async (output, context) =>
|
|
|
1537
1508
|
throw await de_ServiceTemporarilyUnavailableExceptionRes(parsedOutput, context);
|
|
1538
1509
|
default:
|
|
1539
1510
|
const parsedBody = parsedOutput.body;
|
|
1540
|
-
|
|
1511
|
+
return throwDefaultError({
|
|
1541
1512
|
output,
|
|
1542
1513
|
parsedBody,
|
|
1543
|
-
exceptionCtor: InspectorServiceException_1.InspectorServiceException,
|
|
1544
1514
|
errorCode,
|
|
1545
1515
|
});
|
|
1546
1516
|
}
|
|
@@ -1551,12 +1521,12 @@ const de_RemoveAttributesFromFindingsCommand = async (output, context) => {
|
|
|
1551
1521
|
}
|
|
1552
1522
|
const data = await parseBody(output.body, context);
|
|
1553
1523
|
let contents = {};
|
|
1554
|
-
contents =
|
|
1524
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1555
1525
|
const response = {
|
|
1556
1526
|
$metadata: deserializeMetadata(output),
|
|
1557
1527
|
...contents,
|
|
1558
1528
|
};
|
|
1559
|
-
return
|
|
1529
|
+
return response;
|
|
1560
1530
|
};
|
|
1561
1531
|
exports.de_RemoveAttributesFromFindingsCommand = de_RemoveAttributesFromFindingsCommand;
|
|
1562
1532
|
const de_RemoveAttributesFromFindingsCommandError = async (output, context) => {
|
|
@@ -1583,10 +1553,9 @@ const de_RemoveAttributesFromFindingsCommandError = async (output, context) => {
|
|
|
1583
1553
|
throw await de_ServiceTemporarilyUnavailableExceptionRes(parsedOutput, context);
|
|
1584
1554
|
default:
|
|
1585
1555
|
const parsedBody = parsedOutput.body;
|
|
1586
|
-
|
|
1556
|
+
return throwDefaultError({
|
|
1587
1557
|
output,
|
|
1588
1558
|
parsedBody,
|
|
1589
|
-
exceptionCtor: InspectorServiceException_1.InspectorServiceException,
|
|
1590
1559
|
errorCode,
|
|
1591
1560
|
});
|
|
1592
1561
|
}
|
|
@@ -1599,7 +1568,7 @@ const de_SetTagsForResourceCommand = async (output, context) => {
|
|
|
1599
1568
|
const response = {
|
|
1600
1569
|
$metadata: deserializeMetadata(output),
|
|
1601
1570
|
};
|
|
1602
|
-
return
|
|
1571
|
+
return response;
|
|
1603
1572
|
};
|
|
1604
1573
|
exports.de_SetTagsForResourceCommand = de_SetTagsForResourceCommand;
|
|
1605
1574
|
const de_SetTagsForResourceCommandError = async (output, context) => {
|
|
@@ -1626,10 +1595,9 @@ const de_SetTagsForResourceCommandError = async (output, context) => {
|
|
|
1626
1595
|
throw await de_ServiceTemporarilyUnavailableExceptionRes(parsedOutput, context);
|
|
1627
1596
|
default:
|
|
1628
1597
|
const parsedBody = parsedOutput.body;
|
|
1629
|
-
|
|
1598
|
+
return throwDefaultError({
|
|
1630
1599
|
output,
|
|
1631
1600
|
parsedBody,
|
|
1632
|
-
exceptionCtor: InspectorServiceException_1.InspectorServiceException,
|
|
1633
1601
|
errorCode,
|
|
1634
1602
|
});
|
|
1635
1603
|
}
|
|
@@ -1640,12 +1608,12 @@ const de_StartAssessmentRunCommand = async (output, context) => {
|
|
|
1640
1608
|
}
|
|
1641
1609
|
const data = await parseBody(output.body, context);
|
|
1642
1610
|
let contents = {};
|
|
1643
|
-
contents =
|
|
1611
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1644
1612
|
const response = {
|
|
1645
1613
|
$metadata: deserializeMetadata(output),
|
|
1646
1614
|
...contents,
|
|
1647
1615
|
};
|
|
1648
|
-
return
|
|
1616
|
+
return response;
|
|
1649
1617
|
};
|
|
1650
1618
|
exports.de_StartAssessmentRunCommand = de_StartAssessmentRunCommand;
|
|
1651
1619
|
const de_StartAssessmentRunCommandError = async (output, context) => {
|
|
@@ -1681,10 +1649,9 @@ const de_StartAssessmentRunCommandError = async (output, context) => {
|
|
|
1681
1649
|
throw await de_ServiceTemporarilyUnavailableExceptionRes(parsedOutput, context);
|
|
1682
1650
|
default:
|
|
1683
1651
|
const parsedBody = parsedOutput.body;
|
|
1684
|
-
|
|
1652
|
+
return throwDefaultError({
|
|
1685
1653
|
output,
|
|
1686
1654
|
parsedBody,
|
|
1687
|
-
exceptionCtor: InspectorServiceException_1.InspectorServiceException,
|
|
1688
1655
|
errorCode,
|
|
1689
1656
|
});
|
|
1690
1657
|
}
|
|
@@ -1697,7 +1664,7 @@ const de_StopAssessmentRunCommand = async (output, context) => {
|
|
|
1697
1664
|
const response = {
|
|
1698
1665
|
$metadata: deserializeMetadata(output),
|
|
1699
1666
|
};
|
|
1700
|
-
return
|
|
1667
|
+
return response;
|
|
1701
1668
|
};
|
|
1702
1669
|
exports.de_StopAssessmentRunCommand = de_StopAssessmentRunCommand;
|
|
1703
1670
|
const de_StopAssessmentRunCommandError = async (output, context) => {
|
|
@@ -1724,10 +1691,9 @@ const de_StopAssessmentRunCommandError = async (output, context) => {
|
|
|
1724
1691
|
throw await de_ServiceTemporarilyUnavailableExceptionRes(parsedOutput, context);
|
|
1725
1692
|
default:
|
|
1726
1693
|
const parsedBody = parsedOutput.body;
|
|
1727
|
-
|
|
1694
|
+
return throwDefaultError({
|
|
1728
1695
|
output,
|
|
1729
1696
|
parsedBody,
|
|
1730
|
-
exceptionCtor: InspectorServiceException_1.InspectorServiceException,
|
|
1731
1697
|
errorCode,
|
|
1732
1698
|
});
|
|
1733
1699
|
}
|
|
@@ -1740,7 +1706,7 @@ const de_SubscribeToEventCommand = async (output, context) => {
|
|
|
1740
1706
|
const response = {
|
|
1741
1707
|
$metadata: deserializeMetadata(output),
|
|
1742
1708
|
};
|
|
1743
|
-
return
|
|
1709
|
+
return response;
|
|
1744
1710
|
};
|
|
1745
1711
|
exports.de_SubscribeToEventCommand = de_SubscribeToEventCommand;
|
|
1746
1712
|
const de_SubscribeToEventCommandError = async (output, context) => {
|
|
@@ -1770,10 +1736,9 @@ const de_SubscribeToEventCommandError = async (output, context) => {
|
|
|
1770
1736
|
throw await de_ServiceTemporarilyUnavailableExceptionRes(parsedOutput, context);
|
|
1771
1737
|
default:
|
|
1772
1738
|
const parsedBody = parsedOutput.body;
|
|
1773
|
-
|
|
1739
|
+
return throwDefaultError({
|
|
1774
1740
|
output,
|
|
1775
1741
|
parsedBody,
|
|
1776
|
-
exceptionCtor: InspectorServiceException_1.InspectorServiceException,
|
|
1777
1742
|
errorCode,
|
|
1778
1743
|
});
|
|
1779
1744
|
}
|
|
@@ -1786,7 +1751,7 @@ const de_UnsubscribeFromEventCommand = async (output, context) => {
|
|
|
1786
1751
|
const response = {
|
|
1787
1752
|
$metadata: deserializeMetadata(output),
|
|
1788
1753
|
};
|
|
1789
|
-
return
|
|
1754
|
+
return response;
|
|
1790
1755
|
};
|
|
1791
1756
|
exports.de_UnsubscribeFromEventCommand = de_UnsubscribeFromEventCommand;
|
|
1792
1757
|
const de_UnsubscribeFromEventCommandError = async (output, context) => {
|
|
@@ -1813,10 +1778,9 @@ const de_UnsubscribeFromEventCommandError = async (output, context) => {
|
|
|
1813
1778
|
throw await de_ServiceTemporarilyUnavailableExceptionRes(parsedOutput, context);
|
|
1814
1779
|
default:
|
|
1815
1780
|
const parsedBody = parsedOutput.body;
|
|
1816
|
-
|
|
1781
|
+
return throwDefaultError({
|
|
1817
1782
|
output,
|
|
1818
1783
|
parsedBody,
|
|
1819
|
-
exceptionCtor: InspectorServiceException_1.InspectorServiceException,
|
|
1820
1784
|
errorCode,
|
|
1821
1785
|
});
|
|
1822
1786
|
}
|
|
@@ -1829,7 +1793,7 @@ const de_UpdateAssessmentTargetCommand = async (output, context) => {
|
|
|
1829
1793
|
const response = {
|
|
1830
1794
|
$metadata: deserializeMetadata(output),
|
|
1831
1795
|
};
|
|
1832
|
-
return
|
|
1796
|
+
return response;
|
|
1833
1797
|
};
|
|
1834
1798
|
exports.de_UpdateAssessmentTargetCommand = de_UpdateAssessmentTargetCommand;
|
|
1835
1799
|
const de_UpdateAssessmentTargetCommandError = async (output, context) => {
|
|
@@ -1856,17 +1820,16 @@ const de_UpdateAssessmentTargetCommandError = async (output, context) => {
|
|
|
1856
1820
|
throw await de_ServiceTemporarilyUnavailableExceptionRes(parsedOutput, context);
|
|
1857
1821
|
default:
|
|
1858
1822
|
const parsedBody = parsedOutput.body;
|
|
1859
|
-
|
|
1823
|
+
return throwDefaultError({
|
|
1860
1824
|
output,
|
|
1861
1825
|
parsedBody,
|
|
1862
|
-
exceptionCtor: InspectorServiceException_1.InspectorServiceException,
|
|
1863
1826
|
errorCode,
|
|
1864
1827
|
});
|
|
1865
1828
|
}
|
|
1866
1829
|
};
|
|
1867
1830
|
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
1868
1831
|
const body = parsedOutput.body;
|
|
1869
|
-
const deserialized =
|
|
1832
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1870
1833
|
const exception = new models_0_1.AccessDeniedException({
|
|
1871
1834
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1872
1835
|
...deserialized,
|
|
@@ -1875,7 +1838,7 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
|
1875
1838
|
};
|
|
1876
1839
|
const de_AgentsAlreadyRunningAssessmentExceptionRes = async (parsedOutput, context) => {
|
|
1877
1840
|
const body = parsedOutput.body;
|
|
1878
|
-
const deserialized =
|
|
1841
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1879
1842
|
const exception = new models_0_1.AgentsAlreadyRunningAssessmentException({
|
|
1880
1843
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1881
1844
|
...deserialized,
|
|
@@ -1884,7 +1847,7 @@ const de_AgentsAlreadyRunningAssessmentExceptionRes = async (parsedOutput, conte
|
|
|
1884
1847
|
};
|
|
1885
1848
|
const de_AssessmentRunInProgressExceptionRes = async (parsedOutput, context) => {
|
|
1886
1849
|
const body = parsedOutput.body;
|
|
1887
|
-
const deserialized =
|
|
1850
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1888
1851
|
const exception = new models_0_1.AssessmentRunInProgressException({
|
|
1889
1852
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1890
1853
|
...deserialized,
|
|
@@ -1893,7 +1856,7 @@ const de_AssessmentRunInProgressExceptionRes = async (parsedOutput, context) =>
|
|
|
1893
1856
|
};
|
|
1894
1857
|
const de_InternalExceptionRes = async (parsedOutput, context) => {
|
|
1895
1858
|
const body = parsedOutput.body;
|
|
1896
|
-
const deserialized =
|
|
1859
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1897
1860
|
const exception = new models_0_1.InternalException({
|
|
1898
1861
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1899
1862
|
...deserialized,
|
|
@@ -1902,7 +1865,7 @@ const de_InternalExceptionRes = async (parsedOutput, context) => {
|
|
|
1902
1865
|
};
|
|
1903
1866
|
const de_InvalidCrossAccountRoleExceptionRes = async (parsedOutput, context) => {
|
|
1904
1867
|
const body = parsedOutput.body;
|
|
1905
|
-
const deserialized =
|
|
1868
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1906
1869
|
const exception = new models_0_1.InvalidCrossAccountRoleException({
|
|
1907
1870
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1908
1871
|
...deserialized,
|
|
@@ -1911,7 +1874,7 @@ const de_InvalidCrossAccountRoleExceptionRes = async (parsedOutput, context) =>
|
|
|
1911
1874
|
};
|
|
1912
1875
|
const de_InvalidInputExceptionRes = async (parsedOutput, context) => {
|
|
1913
1876
|
const body = parsedOutput.body;
|
|
1914
|
-
const deserialized =
|
|
1877
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1915
1878
|
const exception = new models_0_1.InvalidInputException({
|
|
1916
1879
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1917
1880
|
...deserialized,
|
|
@@ -1920,7 +1883,7 @@ const de_InvalidInputExceptionRes = async (parsedOutput, context) => {
|
|
|
1920
1883
|
};
|
|
1921
1884
|
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
1922
1885
|
const body = parsedOutput.body;
|
|
1923
|
-
const deserialized =
|
|
1886
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1924
1887
|
const exception = new models_0_1.LimitExceededException({
|
|
1925
1888
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1926
1889
|
...deserialized,
|
|
@@ -1929,7 +1892,7 @@ const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
1929
1892
|
};
|
|
1930
1893
|
const de_NoSuchEntityExceptionRes = async (parsedOutput, context) => {
|
|
1931
1894
|
const body = parsedOutput.body;
|
|
1932
|
-
const deserialized =
|
|
1895
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1933
1896
|
const exception = new models_0_1.NoSuchEntityException({
|
|
1934
1897
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1935
1898
|
...deserialized,
|
|
@@ -1938,7 +1901,7 @@ const de_NoSuchEntityExceptionRes = async (parsedOutput, context) => {
|
|
|
1938
1901
|
};
|
|
1939
1902
|
const de_PreviewGenerationInProgressExceptionRes = async (parsedOutput, context) => {
|
|
1940
1903
|
const body = parsedOutput.body;
|
|
1941
|
-
const deserialized =
|
|
1904
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1942
1905
|
const exception = new models_0_1.PreviewGenerationInProgressException({
|
|
1943
1906
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1944
1907
|
...deserialized,
|
|
@@ -1947,7 +1910,7 @@ const de_PreviewGenerationInProgressExceptionRes = async (parsedOutput, context)
|
|
|
1947
1910
|
};
|
|
1948
1911
|
const de_ServiceTemporarilyUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
1949
1912
|
const body = parsedOutput.body;
|
|
1950
|
-
const deserialized =
|
|
1913
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1951
1914
|
const exception = new models_0_1.ServiceTemporarilyUnavailableException({
|
|
1952
1915
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1953
1916
|
...deserialized,
|
|
@@ -1956,1323 +1919,269 @@ const de_ServiceTemporarilyUnavailableExceptionRes = async (parsedOutput, contex
|
|
|
1956
1919
|
};
|
|
1957
1920
|
const de_UnsupportedFeatureExceptionRes = async (parsedOutput, context) => {
|
|
1958
1921
|
const body = parsedOutput.body;
|
|
1959
|
-
const deserialized =
|
|
1922
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1960
1923
|
const exception = new models_0_1.UnsupportedFeatureException({
|
|
1961
1924
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1962
1925
|
...deserialized,
|
|
1963
1926
|
});
|
|
1964
1927
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1965
1928
|
};
|
|
1966
|
-
const
|
|
1967
|
-
return {
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
.
|
|
1975
|
-
.map((entry) => {
|
|
1976
|
-
return entry;
|
|
1977
|
-
});
|
|
1978
|
-
};
|
|
1979
|
-
const se_AgentFilter = (input, context) => {
|
|
1980
|
-
return {
|
|
1981
|
-
...(input.agentHealthCodes != null && {
|
|
1982
|
-
agentHealthCodes: se_AgentHealthCodeList(input.agentHealthCodes, context),
|
|
1983
|
-
}),
|
|
1984
|
-
...(input.agentHealths != null && { agentHealths: se_AgentHealthList(input.agentHealths, context) }),
|
|
1985
|
-
};
|
|
1986
|
-
};
|
|
1987
|
-
const se_AgentHealthCodeList = (input, context) => {
|
|
1988
|
-
return input
|
|
1989
|
-
.filter((e) => e != null)
|
|
1990
|
-
.map((entry) => {
|
|
1991
|
-
return entry;
|
|
1992
|
-
});
|
|
1993
|
-
};
|
|
1994
|
-
const se_AgentHealthList = (input, context) => {
|
|
1995
|
-
return input
|
|
1996
|
-
.filter((e) => e != null)
|
|
1997
|
-
.map((entry) => {
|
|
1998
|
-
return entry;
|
|
1999
|
-
});
|
|
2000
|
-
};
|
|
2001
|
-
const se_AgentIdList = (input, context) => {
|
|
2002
|
-
return input
|
|
2003
|
-
.filter((e) => e != null)
|
|
2004
|
-
.map((entry) => {
|
|
2005
|
-
return entry;
|
|
2006
|
-
});
|
|
2007
|
-
};
|
|
2008
|
-
const se_AssessmentRunFilter = (input, context) => {
|
|
2009
|
-
return {
|
|
2010
|
-
...(input.completionTimeRange != null && {
|
|
2011
|
-
completionTimeRange: se_TimestampRange(input.completionTimeRange, context),
|
|
2012
|
-
}),
|
|
2013
|
-
...(input.durationRange != null && { durationRange: se_DurationRange(input.durationRange, context) }),
|
|
2014
|
-
...(input.namePattern != null && { namePattern: input.namePattern }),
|
|
2015
|
-
...(input.rulesPackageArns != null && {
|
|
2016
|
-
rulesPackageArns: se_FilterRulesPackageArnList(input.rulesPackageArns, context),
|
|
2017
|
-
}),
|
|
2018
|
-
...(input.startTimeRange != null && { startTimeRange: se_TimestampRange(input.startTimeRange, context) }),
|
|
2019
|
-
...(input.stateChangeTimeRange != null && {
|
|
2020
|
-
stateChangeTimeRange: se_TimestampRange(input.stateChangeTimeRange, context),
|
|
2021
|
-
}),
|
|
2022
|
-
...(input.states != null && { states: se_AssessmentRunStateList(input.states, context) }),
|
|
2023
|
-
};
|
|
2024
|
-
};
|
|
2025
|
-
const se_AssessmentRunStateList = (input, context) => {
|
|
2026
|
-
return input
|
|
2027
|
-
.filter((e) => e != null)
|
|
2028
|
-
.map((entry) => {
|
|
2029
|
-
return entry;
|
|
2030
|
-
});
|
|
2031
|
-
};
|
|
2032
|
-
const se_AssessmentTargetFilter = (input, context) => {
|
|
2033
|
-
return {
|
|
2034
|
-
...(input.assessmentTargetNamePattern != null && {
|
|
2035
|
-
assessmentTargetNamePattern: input.assessmentTargetNamePattern,
|
|
2036
|
-
}),
|
|
2037
|
-
};
|
|
2038
|
-
};
|
|
2039
|
-
const se_AssessmentTemplateFilter = (input, context) => {
|
|
2040
|
-
return {
|
|
2041
|
-
...(input.durationRange != null && { durationRange: se_DurationRange(input.durationRange, context) }),
|
|
2042
|
-
...(input.namePattern != null && { namePattern: input.namePattern }),
|
|
2043
|
-
...(input.rulesPackageArns != null && {
|
|
2044
|
-
rulesPackageArns: se_FilterRulesPackageArnList(input.rulesPackageArns, context),
|
|
2045
|
-
}),
|
|
2046
|
-
};
|
|
2047
|
-
};
|
|
2048
|
-
const se_AssessmentTemplateRulesPackageArnList = (input, context) => {
|
|
2049
|
-
return input
|
|
2050
|
-
.filter((e) => e != null)
|
|
2051
|
-
.map((entry) => {
|
|
2052
|
-
return entry;
|
|
2053
|
-
});
|
|
2054
|
-
};
|
|
2055
|
-
const se_Attribute = (input, context) => {
|
|
2056
|
-
return {
|
|
2057
|
-
...(input.key != null && { key: input.key }),
|
|
2058
|
-
...(input.value != null && { value: input.value }),
|
|
2059
|
-
};
|
|
2060
|
-
};
|
|
2061
|
-
const se_AttributeList = (input, context) => {
|
|
2062
|
-
return input
|
|
2063
|
-
.filter((e) => e != null)
|
|
2064
|
-
.map((entry) => {
|
|
2065
|
-
return se_Attribute(entry, context);
|
|
2066
|
-
});
|
|
2067
|
-
};
|
|
2068
|
-
const se_AutoScalingGroupList = (input, context) => {
|
|
2069
|
-
return input
|
|
2070
|
-
.filter((e) => e != null)
|
|
2071
|
-
.map((entry) => {
|
|
2072
|
-
return entry;
|
|
2073
|
-
});
|
|
2074
|
-
};
|
|
2075
|
-
const se_BatchDescribeArnList = (input, context) => {
|
|
2076
|
-
return input
|
|
2077
|
-
.filter((e) => e != null)
|
|
2078
|
-
.map((entry) => {
|
|
2079
|
-
return entry;
|
|
2080
|
-
});
|
|
2081
|
-
};
|
|
2082
|
-
const se_BatchDescribeExclusionsArnList = (input, context) => {
|
|
2083
|
-
return input
|
|
2084
|
-
.filter((e) => e != null)
|
|
2085
|
-
.map((entry) => {
|
|
2086
|
-
return entry;
|
|
2087
|
-
});
|
|
2088
|
-
};
|
|
2089
|
-
const se_CreateAssessmentTargetRequest = (input, context) => {
|
|
2090
|
-
return {
|
|
2091
|
-
...(input.assessmentTargetName != null && { assessmentTargetName: input.assessmentTargetName }),
|
|
2092
|
-
...(input.resourceGroupArn != null && { resourceGroupArn: input.resourceGroupArn }),
|
|
2093
|
-
};
|
|
2094
|
-
};
|
|
2095
|
-
const se_CreateAssessmentTemplateRequest = (input, context) => {
|
|
2096
|
-
return {
|
|
2097
|
-
...(input.assessmentTargetArn != null && { assessmentTargetArn: input.assessmentTargetArn }),
|
|
2098
|
-
...(input.assessmentTemplateName != null && { assessmentTemplateName: input.assessmentTemplateName }),
|
|
2099
|
-
...(input.durationInSeconds != null && { durationInSeconds: input.durationInSeconds }),
|
|
2100
|
-
...(input.rulesPackageArns != null && {
|
|
2101
|
-
rulesPackageArns: se_AssessmentTemplateRulesPackageArnList(input.rulesPackageArns, context),
|
|
2102
|
-
}),
|
|
2103
|
-
...(input.userAttributesForFindings != null && {
|
|
2104
|
-
userAttributesForFindings: se_UserAttributeList(input.userAttributesForFindings, context),
|
|
2105
|
-
}),
|
|
2106
|
-
};
|
|
2107
|
-
};
|
|
2108
|
-
const se_CreateExclusionsPreviewRequest = (input, context) => {
|
|
2109
|
-
return {
|
|
2110
|
-
...(input.assessmentTemplateArn != null && { assessmentTemplateArn: input.assessmentTemplateArn }),
|
|
2111
|
-
};
|
|
2112
|
-
};
|
|
2113
|
-
const se_CreateResourceGroupRequest = (input, context) => {
|
|
2114
|
-
return {
|
|
2115
|
-
...(input.resourceGroupTags != null && {
|
|
2116
|
-
resourceGroupTags: se_ResourceGroupTags(input.resourceGroupTags, context),
|
|
2117
|
-
}),
|
|
2118
|
-
};
|
|
2119
|
-
};
|
|
2120
|
-
const se_DeleteAssessmentRunRequest = (input, context) => {
|
|
2121
|
-
return {
|
|
2122
|
-
...(input.assessmentRunArn != null && { assessmentRunArn: input.assessmentRunArn }),
|
|
2123
|
-
};
|
|
2124
|
-
};
|
|
2125
|
-
const se_DeleteAssessmentTargetRequest = (input, context) => {
|
|
2126
|
-
return {
|
|
2127
|
-
...(input.assessmentTargetArn != null && { assessmentTargetArn: input.assessmentTargetArn }),
|
|
2128
|
-
};
|
|
2129
|
-
};
|
|
2130
|
-
const se_DeleteAssessmentTemplateRequest = (input, context) => {
|
|
2131
|
-
return {
|
|
2132
|
-
...(input.assessmentTemplateArn != null && { assessmentTemplateArn: input.assessmentTemplateArn }),
|
|
2133
|
-
};
|
|
2134
|
-
};
|
|
2135
|
-
const se_DescribeAssessmentRunsRequest = (input, context) => {
|
|
2136
|
-
return {
|
|
2137
|
-
...(input.assessmentRunArns != null && {
|
|
2138
|
-
assessmentRunArns: se_BatchDescribeArnList(input.assessmentRunArns, context),
|
|
2139
|
-
}),
|
|
2140
|
-
};
|
|
2141
|
-
};
|
|
2142
|
-
const se_DescribeAssessmentTargetsRequest = (input, context) => {
|
|
2143
|
-
return {
|
|
2144
|
-
...(input.assessmentTargetArns != null && {
|
|
2145
|
-
assessmentTargetArns: se_BatchDescribeArnList(input.assessmentTargetArns, context),
|
|
2146
|
-
}),
|
|
2147
|
-
};
|
|
2148
|
-
};
|
|
2149
|
-
const se_DescribeAssessmentTemplatesRequest = (input, context) => {
|
|
2150
|
-
return {
|
|
2151
|
-
...(input.assessmentTemplateArns != null && {
|
|
2152
|
-
assessmentTemplateArns: se_BatchDescribeArnList(input.assessmentTemplateArns, context),
|
|
2153
|
-
}),
|
|
2154
|
-
};
|
|
2155
|
-
};
|
|
2156
|
-
const se_DescribeExclusionsRequest = (input, context) => {
|
|
2157
|
-
return {
|
|
2158
|
-
...(input.exclusionArns != null && {
|
|
2159
|
-
exclusionArns: se_BatchDescribeExclusionsArnList(input.exclusionArns, context),
|
|
2160
|
-
}),
|
|
2161
|
-
...(input.locale != null && { locale: input.locale }),
|
|
2162
|
-
};
|
|
2163
|
-
};
|
|
2164
|
-
const se_DescribeFindingsRequest = (input, context) => {
|
|
2165
|
-
return {
|
|
2166
|
-
...(input.findingArns != null && { findingArns: se_BatchDescribeArnList(input.findingArns, context) }),
|
|
2167
|
-
...(input.locale != null && { locale: input.locale }),
|
|
2168
|
-
};
|
|
2169
|
-
};
|
|
2170
|
-
const se_DescribeResourceGroupsRequest = (input, context) => {
|
|
2171
|
-
return {
|
|
2172
|
-
...(input.resourceGroupArns != null && {
|
|
2173
|
-
resourceGroupArns: se_BatchDescribeArnList(input.resourceGroupArns, context),
|
|
2174
|
-
}),
|
|
2175
|
-
};
|
|
2176
|
-
};
|
|
2177
|
-
const se_DescribeRulesPackagesRequest = (input, context) => {
|
|
2178
|
-
return {
|
|
2179
|
-
...(input.locale != null && { locale: input.locale }),
|
|
2180
|
-
...(input.rulesPackageArns != null && {
|
|
2181
|
-
rulesPackageArns: se_BatchDescribeArnList(input.rulesPackageArns, context),
|
|
2182
|
-
}),
|
|
2183
|
-
};
|
|
2184
|
-
};
|
|
2185
|
-
const se_DurationRange = (input, context) => {
|
|
2186
|
-
return {
|
|
2187
|
-
...(input.maxSeconds != null && { maxSeconds: input.maxSeconds }),
|
|
2188
|
-
...(input.minSeconds != null && { minSeconds: input.minSeconds }),
|
|
2189
|
-
};
|
|
2190
|
-
};
|
|
2191
|
-
const se_FilterRulesPackageArnList = (input, context) => {
|
|
2192
|
-
return input
|
|
2193
|
-
.filter((e) => e != null)
|
|
2194
|
-
.map((entry) => {
|
|
2195
|
-
return entry;
|
|
2196
|
-
});
|
|
2197
|
-
};
|
|
2198
|
-
const se_FindingFilter = (input, context) => {
|
|
2199
|
-
return {
|
|
2200
|
-
...(input.agentIds != null && { agentIds: se_AgentIdList(input.agentIds, context) }),
|
|
2201
|
-
...(input.attributes != null && { attributes: se_AttributeList(input.attributes, context) }),
|
|
2202
|
-
...(input.autoScalingGroups != null && {
|
|
2203
|
-
autoScalingGroups: se_AutoScalingGroupList(input.autoScalingGroups, context),
|
|
2204
|
-
}),
|
|
2205
|
-
...(input.creationTimeRange != null && { creationTimeRange: se_TimestampRange(input.creationTimeRange, context) }),
|
|
2206
|
-
...(input.ruleNames != null && { ruleNames: se_RuleNameList(input.ruleNames, context) }),
|
|
2207
|
-
...(input.rulesPackageArns != null && {
|
|
2208
|
-
rulesPackageArns: se_FilterRulesPackageArnList(input.rulesPackageArns, context),
|
|
2209
|
-
}),
|
|
2210
|
-
...(input.severities != null && { severities: se_SeverityList(input.severities, context) }),
|
|
2211
|
-
...(input.userAttributes != null && { userAttributes: se_AttributeList(input.userAttributes, context) }),
|
|
2212
|
-
};
|
|
2213
|
-
};
|
|
2214
|
-
const se_GetAssessmentReportRequest = (input, context) => {
|
|
2215
|
-
return {
|
|
2216
|
-
...(input.assessmentRunArn != null && { assessmentRunArn: input.assessmentRunArn }),
|
|
2217
|
-
...(input.reportFileFormat != null && { reportFileFormat: input.reportFileFormat }),
|
|
2218
|
-
...(input.reportType != null && { reportType: input.reportType }),
|
|
2219
|
-
};
|
|
2220
|
-
};
|
|
2221
|
-
const se_GetExclusionsPreviewRequest = (input, context) => {
|
|
2222
|
-
return {
|
|
2223
|
-
...(input.assessmentTemplateArn != null && { assessmentTemplateArn: input.assessmentTemplateArn }),
|
|
2224
|
-
...(input.locale != null && { locale: input.locale }),
|
|
2225
|
-
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
2226
|
-
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2227
|
-
...(input.previewToken != null && { previewToken: input.previewToken }),
|
|
2228
|
-
};
|
|
2229
|
-
};
|
|
2230
|
-
const se_GetTelemetryMetadataRequest = (input, context) => {
|
|
2231
|
-
return {
|
|
2232
|
-
...(input.assessmentRunArn != null && { assessmentRunArn: input.assessmentRunArn }),
|
|
2233
|
-
};
|
|
2234
|
-
};
|
|
2235
|
-
const se_ListAssessmentRunAgentsRequest = (input, context) => {
|
|
2236
|
-
return {
|
|
2237
|
-
...(input.assessmentRunArn != null && { assessmentRunArn: input.assessmentRunArn }),
|
|
2238
|
-
...(input.filter != null && { filter: se_AgentFilter(input.filter, context) }),
|
|
2239
|
-
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
2240
|
-
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2241
|
-
};
|
|
2242
|
-
};
|
|
2243
|
-
const se_ListAssessmentRunsRequest = (input, context) => {
|
|
2244
|
-
return {
|
|
2245
|
-
...(input.assessmentTemplateArns != null && {
|
|
2246
|
-
assessmentTemplateArns: se_ListParentArnList(input.assessmentTemplateArns, context),
|
|
2247
|
-
}),
|
|
2248
|
-
...(input.filter != null && { filter: se_AssessmentRunFilter(input.filter, context) }),
|
|
2249
|
-
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
2250
|
-
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2251
|
-
};
|
|
2252
|
-
};
|
|
2253
|
-
const se_ListAssessmentTargetsRequest = (input, context) => {
|
|
2254
|
-
return {
|
|
2255
|
-
...(input.filter != null && { filter: se_AssessmentTargetFilter(input.filter, context) }),
|
|
2256
|
-
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
2257
|
-
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2258
|
-
};
|
|
2259
|
-
};
|
|
2260
|
-
const se_ListAssessmentTemplatesRequest = (input, context) => {
|
|
2261
|
-
return {
|
|
2262
|
-
...(input.assessmentTargetArns != null && {
|
|
2263
|
-
assessmentTargetArns: se_ListParentArnList(input.assessmentTargetArns, context),
|
|
2264
|
-
}),
|
|
2265
|
-
...(input.filter != null && { filter: se_AssessmentTemplateFilter(input.filter, context) }),
|
|
2266
|
-
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
2267
|
-
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2268
|
-
};
|
|
2269
|
-
};
|
|
2270
|
-
const se_ListEventSubscriptionsRequest = (input, context) => {
|
|
2271
|
-
return {
|
|
2272
|
-
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
2273
|
-
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2274
|
-
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
2275
|
-
};
|
|
2276
|
-
};
|
|
2277
|
-
const se_ListExclusionsRequest = (input, context) => {
|
|
2278
|
-
return {
|
|
2279
|
-
...(input.assessmentRunArn != null && { assessmentRunArn: input.assessmentRunArn }),
|
|
2280
|
-
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
2281
|
-
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2282
|
-
};
|
|
2283
|
-
};
|
|
2284
|
-
const se_ListFindingsRequest = (input, context) => {
|
|
2285
|
-
return {
|
|
2286
|
-
...(input.assessmentRunArns != null && {
|
|
2287
|
-
assessmentRunArns: se_ListParentArnList(input.assessmentRunArns, context),
|
|
2288
|
-
}),
|
|
2289
|
-
...(input.filter != null && { filter: se_FindingFilter(input.filter, context) }),
|
|
2290
|
-
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
2291
|
-
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2292
|
-
};
|
|
2293
|
-
};
|
|
2294
|
-
const se_ListParentArnList = (input, context) => {
|
|
2295
|
-
return input
|
|
2296
|
-
.filter((e) => e != null)
|
|
2297
|
-
.map((entry) => {
|
|
2298
|
-
return entry;
|
|
2299
|
-
});
|
|
2300
|
-
};
|
|
2301
|
-
const se_ListRulesPackagesRequest = (input, context) => {
|
|
2302
|
-
return {
|
|
2303
|
-
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
2304
|
-
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2305
|
-
};
|
|
2306
|
-
};
|
|
2307
|
-
const se_ListTagsForResourceRequest = (input, context) => {
|
|
2308
|
-
return {
|
|
2309
|
-
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
2310
|
-
};
|
|
2311
|
-
};
|
|
2312
|
-
const se_PreviewAgentsRequest = (input, context) => {
|
|
2313
|
-
return {
|
|
2314
|
-
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
2315
|
-
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2316
|
-
...(input.previewAgentsArn != null && { previewAgentsArn: input.previewAgentsArn }),
|
|
2317
|
-
};
|
|
2318
|
-
};
|
|
2319
|
-
const se_RegisterCrossAccountAccessRoleRequest = (input, context) => {
|
|
2320
|
-
return {
|
|
2321
|
-
...(input.roleArn != null && { roleArn: input.roleArn }),
|
|
2322
|
-
};
|
|
2323
|
-
};
|
|
2324
|
-
const se_RemoveAttributesFromFindingsRequest = (input, context) => {
|
|
2325
|
-
return {
|
|
2326
|
-
...(input.attributeKeys != null && { attributeKeys: se_UserAttributeKeyList(input.attributeKeys, context) }),
|
|
2327
|
-
...(input.findingArns != null && { findingArns: se_AddRemoveAttributesFindingArnList(input.findingArns, context) }),
|
|
2328
|
-
};
|
|
2329
|
-
};
|
|
2330
|
-
const se_ResourceGroupTag = (input, context) => {
|
|
2331
|
-
return {
|
|
2332
|
-
...(input.key != null && { key: input.key }),
|
|
2333
|
-
...(input.value != null && { value: input.value }),
|
|
2334
|
-
};
|
|
2335
|
-
};
|
|
2336
|
-
const se_ResourceGroupTags = (input, context) => {
|
|
2337
|
-
return input
|
|
2338
|
-
.filter((e) => e != null)
|
|
2339
|
-
.map((entry) => {
|
|
2340
|
-
return se_ResourceGroupTag(entry, context);
|
|
2341
|
-
});
|
|
2342
|
-
};
|
|
2343
|
-
const se_RuleNameList = (input, context) => {
|
|
2344
|
-
return input
|
|
2345
|
-
.filter((e) => e != null)
|
|
2346
|
-
.map((entry) => {
|
|
2347
|
-
return entry;
|
|
2348
|
-
});
|
|
2349
|
-
};
|
|
2350
|
-
const se_SetTagsForResourceRequest = (input, context) => {
|
|
2351
|
-
return {
|
|
2352
|
-
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
2353
|
-
...(input.tags != null && { tags: se_TagList(input.tags, context) }),
|
|
2354
|
-
};
|
|
2355
|
-
};
|
|
2356
|
-
const se_SeverityList = (input, context) => {
|
|
2357
|
-
return input
|
|
2358
|
-
.filter((e) => e != null)
|
|
2359
|
-
.map((entry) => {
|
|
2360
|
-
return entry;
|
|
2361
|
-
});
|
|
2362
|
-
};
|
|
2363
|
-
const se_StartAssessmentRunRequest = (input, context) => {
|
|
2364
|
-
return {
|
|
2365
|
-
...(input.assessmentRunName != null && { assessmentRunName: input.assessmentRunName }),
|
|
2366
|
-
...(input.assessmentTemplateArn != null && { assessmentTemplateArn: input.assessmentTemplateArn }),
|
|
2367
|
-
};
|
|
2368
|
-
};
|
|
2369
|
-
const se_StopAssessmentRunRequest = (input, context) => {
|
|
2370
|
-
return {
|
|
2371
|
-
...(input.assessmentRunArn != null && { assessmentRunArn: input.assessmentRunArn }),
|
|
2372
|
-
...(input.stopAction != null && { stopAction: input.stopAction }),
|
|
2373
|
-
};
|
|
2374
|
-
};
|
|
2375
|
-
const se_SubscribeToEventRequest = (input, context) => {
|
|
2376
|
-
return {
|
|
2377
|
-
...(input.event != null && { event: input.event }),
|
|
2378
|
-
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
2379
|
-
...(input.topicArn != null && { topicArn: input.topicArn }),
|
|
2380
|
-
};
|
|
2381
|
-
};
|
|
2382
|
-
const se_Tag = (input, context) => {
|
|
2383
|
-
return {
|
|
2384
|
-
...(input.key != null && { key: input.key }),
|
|
2385
|
-
...(input.value != null && { value: input.value }),
|
|
2386
|
-
};
|
|
2387
|
-
};
|
|
2388
|
-
const se_TagList = (input, context) => {
|
|
2389
|
-
return input
|
|
2390
|
-
.filter((e) => e != null)
|
|
2391
|
-
.map((entry) => {
|
|
2392
|
-
return se_Tag(entry, context);
|
|
2393
|
-
});
|
|
2394
|
-
};
|
|
2395
|
-
const se_TimestampRange = (input, context) => {
|
|
2396
|
-
return {
|
|
2397
|
-
...(input.beginDate != null && { beginDate: Math.round(input.beginDate.getTime() / 1000) }),
|
|
2398
|
-
...(input.endDate != null && { endDate: Math.round(input.endDate.getTime() / 1000) }),
|
|
2399
|
-
};
|
|
2400
|
-
};
|
|
2401
|
-
const se_UnsubscribeFromEventRequest = (input, context) => {
|
|
2402
|
-
return {
|
|
2403
|
-
...(input.event != null && { event: input.event }),
|
|
2404
|
-
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
2405
|
-
...(input.topicArn != null && { topicArn: input.topicArn }),
|
|
2406
|
-
};
|
|
2407
|
-
};
|
|
2408
|
-
const se_UpdateAssessmentTargetRequest = (input, context) => {
|
|
2409
|
-
return {
|
|
2410
|
-
...(input.assessmentTargetArn != null && { assessmentTargetArn: input.assessmentTargetArn }),
|
|
2411
|
-
...(input.assessmentTargetName != null && { assessmentTargetName: input.assessmentTargetName }),
|
|
2412
|
-
...(input.resourceGroupArn != null && { resourceGroupArn: input.resourceGroupArn }),
|
|
2413
|
-
};
|
|
2414
|
-
};
|
|
2415
|
-
const se_UserAttributeKeyList = (input, context) => {
|
|
2416
|
-
return input
|
|
2417
|
-
.filter((e) => e != null)
|
|
2418
|
-
.map((entry) => {
|
|
2419
|
-
return entry;
|
|
2420
|
-
});
|
|
2421
|
-
};
|
|
2422
|
-
const se_UserAttributeList = (input, context) => {
|
|
2423
|
-
return input
|
|
2424
|
-
.filter((e) => e != null)
|
|
2425
|
-
.map((entry) => {
|
|
2426
|
-
return se_Attribute(entry, context);
|
|
2427
|
-
});
|
|
2428
|
-
};
|
|
2429
|
-
const de_AccessDeniedException = (output, context) => {
|
|
2430
|
-
return {
|
|
2431
|
-
canRetry: (0, smithy_client_1.expectBoolean)(output.canRetry),
|
|
2432
|
-
errorCode: (0, smithy_client_1.expectString)(output.errorCode),
|
|
2433
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
2434
|
-
};
|
|
2435
|
-
};
|
|
2436
|
-
const de_AddAttributesToFindingsResponse = (output, context) => {
|
|
2437
|
-
return {
|
|
2438
|
-
failedItems: output.failedItems != null ? de_FailedItems(output.failedItems, context) : undefined,
|
|
2439
|
-
};
|
|
2440
|
-
};
|
|
2441
|
-
const de_AgentAlreadyRunningAssessment = (output, context) => {
|
|
2442
|
-
return {
|
|
2443
|
-
agentId: (0, smithy_client_1.expectString)(output.agentId),
|
|
2444
|
-
assessmentRunArn: (0, smithy_client_1.expectString)(output.assessmentRunArn),
|
|
2445
|
-
};
|
|
2446
|
-
};
|
|
2447
|
-
const de_AgentAlreadyRunningAssessmentList = (output, context) => {
|
|
2448
|
-
const retVal = (output || [])
|
|
2449
|
-
.filter((e) => e != null)
|
|
2450
|
-
.map((entry) => {
|
|
2451
|
-
if (entry === null) {
|
|
2452
|
-
return null;
|
|
2453
|
-
}
|
|
2454
|
-
return de_AgentAlreadyRunningAssessment(entry, context);
|
|
2455
|
-
});
|
|
2456
|
-
return retVal;
|
|
2457
|
-
};
|
|
2458
|
-
const de_AgentPreview = (output, context) => {
|
|
2459
|
-
return {
|
|
2460
|
-
agentHealth: (0, smithy_client_1.expectString)(output.agentHealth),
|
|
2461
|
-
agentId: (0, smithy_client_1.expectString)(output.agentId),
|
|
2462
|
-
agentVersion: (0, smithy_client_1.expectString)(output.agentVersion),
|
|
2463
|
-
autoScalingGroup: (0, smithy_client_1.expectString)(output.autoScalingGroup),
|
|
2464
|
-
hostname: (0, smithy_client_1.expectString)(output.hostname),
|
|
2465
|
-
ipv4Address: (0, smithy_client_1.expectString)(output.ipv4Address),
|
|
2466
|
-
kernelVersion: (0, smithy_client_1.expectString)(output.kernelVersion),
|
|
2467
|
-
operatingSystem: (0, smithy_client_1.expectString)(output.operatingSystem),
|
|
2468
|
-
};
|
|
2469
|
-
};
|
|
2470
|
-
const de_AgentPreviewList = (output, context) => {
|
|
2471
|
-
const retVal = (output || [])
|
|
2472
|
-
.filter((e) => e != null)
|
|
2473
|
-
.map((entry) => {
|
|
2474
|
-
if (entry === null) {
|
|
2475
|
-
return null;
|
|
2476
|
-
}
|
|
2477
|
-
return de_AgentPreview(entry, context);
|
|
2478
|
-
});
|
|
2479
|
-
return retVal;
|
|
2480
|
-
};
|
|
2481
|
-
const de_AgentsAlreadyRunningAssessmentException = (output, context) => {
|
|
2482
|
-
return {
|
|
2483
|
-
agents: output.agents != null ? de_AgentAlreadyRunningAssessmentList(output.agents, context) : undefined,
|
|
2484
|
-
agentsTruncated: (0, smithy_client_1.expectBoolean)(output.agentsTruncated),
|
|
2485
|
-
canRetry: (0, smithy_client_1.expectBoolean)(output.canRetry),
|
|
2486
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
2487
|
-
};
|
|
2488
|
-
};
|
|
2489
|
-
const de_AssessmentRulesPackageArnList = (output, context) => {
|
|
2490
|
-
const retVal = (output || [])
|
|
2491
|
-
.filter((e) => e != null)
|
|
2492
|
-
.map((entry) => {
|
|
2493
|
-
if (entry === null) {
|
|
2494
|
-
return null;
|
|
2495
|
-
}
|
|
2496
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
2497
|
-
});
|
|
2498
|
-
return retVal;
|
|
2499
|
-
};
|
|
2500
|
-
const de_AssessmentRun = (output, context) => {
|
|
2501
|
-
return {
|
|
2502
|
-
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
2503
|
-
assessmentTemplateArn: (0, smithy_client_1.expectString)(output.assessmentTemplateArn),
|
|
2504
|
-
completedAt: output.completedAt != null
|
|
2505
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.completedAt)))
|
|
2506
|
-
: undefined,
|
|
2507
|
-
createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
|
|
2508
|
-
dataCollected: (0, smithy_client_1.expectBoolean)(output.dataCollected),
|
|
2509
|
-
durationInSeconds: (0, smithy_client_1.expectInt32)(output.durationInSeconds),
|
|
2510
|
-
findingCounts: output.findingCounts != null ? de_AssessmentRunFindingCounts(output.findingCounts, context) : undefined,
|
|
2511
|
-
name: (0, smithy_client_1.expectString)(output.name),
|
|
2512
|
-
notifications: output.notifications != null ? de_AssessmentRunNotificationList(output.notifications, context) : undefined,
|
|
2513
|
-
rulesPackageArns: output.rulesPackageArns != null ? de_AssessmentRulesPackageArnList(output.rulesPackageArns, context) : undefined,
|
|
2514
|
-
startedAt: output.startedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startedAt))) : undefined,
|
|
2515
|
-
state: (0, smithy_client_1.expectString)(output.state),
|
|
2516
|
-
stateChangedAt: output.stateChangedAt != null
|
|
2517
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.stateChangedAt)))
|
|
2518
|
-
: undefined,
|
|
2519
|
-
stateChanges: output.stateChanges != null ? de_AssessmentRunStateChangeList(output.stateChanges, context) : undefined,
|
|
2520
|
-
userAttributesForFindings: output.userAttributesForFindings != null
|
|
2521
|
-
? de_UserAttributeList(output.userAttributesForFindings, context)
|
|
2522
|
-
: undefined,
|
|
2523
|
-
};
|
|
2524
|
-
};
|
|
2525
|
-
const de_AssessmentRunAgent = (output, context) => {
|
|
2526
|
-
return {
|
|
2527
|
-
agentHealth: (0, smithy_client_1.expectString)(output.agentHealth),
|
|
2528
|
-
agentHealthCode: (0, smithy_client_1.expectString)(output.agentHealthCode),
|
|
2529
|
-
agentHealthDetails: (0, smithy_client_1.expectString)(output.agentHealthDetails),
|
|
2530
|
-
agentId: (0, smithy_client_1.expectString)(output.agentId),
|
|
2531
|
-
assessmentRunArn: (0, smithy_client_1.expectString)(output.assessmentRunArn),
|
|
2532
|
-
autoScalingGroup: (0, smithy_client_1.expectString)(output.autoScalingGroup),
|
|
2533
|
-
telemetryMetadata: output.telemetryMetadata != null ? de_TelemetryMetadataList(output.telemetryMetadata, context) : undefined,
|
|
2534
|
-
};
|
|
2535
|
-
};
|
|
2536
|
-
const de_AssessmentRunAgentList = (output, context) => {
|
|
2537
|
-
const retVal = (output || [])
|
|
2538
|
-
.filter((e) => e != null)
|
|
2539
|
-
.map((entry) => {
|
|
2540
|
-
if (entry === null) {
|
|
2541
|
-
return null;
|
|
2542
|
-
}
|
|
2543
|
-
return de_AssessmentRunAgent(entry, context);
|
|
2544
|
-
});
|
|
2545
|
-
return retVal;
|
|
2546
|
-
};
|
|
2547
|
-
const de_AssessmentRunFindingCounts = (output, context) => {
|
|
2548
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2549
|
-
if (value === null) {
|
|
2550
|
-
return acc;
|
|
2551
|
-
}
|
|
2552
|
-
acc[key] = (0, smithy_client_1.expectInt32)(value);
|
|
2553
|
-
return acc;
|
|
2554
|
-
}, {});
|
|
2555
|
-
};
|
|
2556
|
-
const de_AssessmentRunInProgressArnList = (output, context) => {
|
|
2557
|
-
const retVal = (output || [])
|
|
2558
|
-
.filter((e) => e != null)
|
|
2559
|
-
.map((entry) => {
|
|
2560
|
-
if (entry === null) {
|
|
2561
|
-
return null;
|
|
2562
|
-
}
|
|
2563
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
2564
|
-
});
|
|
2565
|
-
return retVal;
|
|
2566
|
-
};
|
|
2567
|
-
const de_AssessmentRunInProgressException = (output, context) => {
|
|
2568
|
-
return {
|
|
2569
|
-
assessmentRunArns: output.assessmentRunArns != null
|
|
2570
|
-
? de_AssessmentRunInProgressArnList(output.assessmentRunArns, context)
|
|
2571
|
-
: undefined,
|
|
2572
|
-
assessmentRunArnsTruncated: (0, smithy_client_1.expectBoolean)(output.assessmentRunArnsTruncated),
|
|
2573
|
-
canRetry: (0, smithy_client_1.expectBoolean)(output.canRetry),
|
|
2574
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
2575
|
-
};
|
|
2576
|
-
};
|
|
2577
|
-
const de_AssessmentRunList = (output, context) => {
|
|
2578
|
-
const retVal = (output || [])
|
|
2579
|
-
.filter((e) => e != null)
|
|
2580
|
-
.map((entry) => {
|
|
2581
|
-
if (entry === null) {
|
|
2582
|
-
return null;
|
|
2583
|
-
}
|
|
2584
|
-
return de_AssessmentRun(entry, context);
|
|
2585
|
-
});
|
|
2586
|
-
return retVal;
|
|
2587
|
-
};
|
|
2588
|
-
const de_AssessmentRunNotification = (output, context) => {
|
|
2589
|
-
return {
|
|
2590
|
-
date: output.date != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.date))) : undefined,
|
|
2591
|
-
error: (0, smithy_client_1.expectBoolean)(output.error),
|
|
2592
|
-
event: (0, smithy_client_1.expectString)(output.event),
|
|
2593
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
2594
|
-
snsPublishStatusCode: (0, smithy_client_1.expectString)(output.snsPublishStatusCode),
|
|
2595
|
-
snsTopicArn: (0, smithy_client_1.expectString)(output.snsTopicArn),
|
|
2596
|
-
};
|
|
2597
|
-
};
|
|
2598
|
-
const de_AssessmentRunNotificationList = (output, context) => {
|
|
2599
|
-
const retVal = (output || [])
|
|
2600
|
-
.filter((e) => e != null)
|
|
2601
|
-
.map((entry) => {
|
|
2602
|
-
if (entry === null) {
|
|
2603
|
-
return null;
|
|
2604
|
-
}
|
|
2605
|
-
return de_AssessmentRunNotification(entry, context);
|
|
2606
|
-
});
|
|
2607
|
-
return retVal;
|
|
2608
|
-
};
|
|
2609
|
-
const de_AssessmentRunStateChange = (output, context) => {
|
|
2610
|
-
return {
|
|
2611
|
-
state: (0, smithy_client_1.expectString)(output.state),
|
|
2612
|
-
stateChangedAt: output.stateChangedAt != null
|
|
2613
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.stateChangedAt)))
|
|
2614
|
-
: undefined,
|
|
2615
|
-
};
|
|
2616
|
-
};
|
|
2617
|
-
const de_AssessmentRunStateChangeList = (output, context) => {
|
|
2618
|
-
const retVal = (output || [])
|
|
2619
|
-
.filter((e) => e != null)
|
|
2620
|
-
.map((entry) => {
|
|
2621
|
-
if (entry === null) {
|
|
2622
|
-
return null;
|
|
2623
|
-
}
|
|
2624
|
-
return de_AssessmentRunStateChange(entry, context);
|
|
2625
|
-
});
|
|
2626
|
-
return retVal;
|
|
2627
|
-
};
|
|
2628
|
-
const de_AssessmentTarget = (output, context) => {
|
|
2629
|
-
return {
|
|
2630
|
-
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
2631
|
-
createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
|
|
2632
|
-
name: (0, smithy_client_1.expectString)(output.name),
|
|
2633
|
-
resourceGroupArn: (0, smithy_client_1.expectString)(output.resourceGroupArn),
|
|
2634
|
-
updatedAt: output.updatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updatedAt))) : undefined,
|
|
2635
|
-
};
|
|
2636
|
-
};
|
|
2637
|
-
const de_AssessmentTargetList = (output, context) => {
|
|
2638
|
-
const retVal = (output || [])
|
|
2639
|
-
.filter((e) => e != null)
|
|
2640
|
-
.map((entry) => {
|
|
2641
|
-
if (entry === null) {
|
|
2642
|
-
return null;
|
|
2643
|
-
}
|
|
2644
|
-
return de_AssessmentTarget(entry, context);
|
|
2645
|
-
});
|
|
2646
|
-
return retVal;
|
|
2647
|
-
};
|
|
2648
|
-
const de_AssessmentTemplate = (output, context) => {
|
|
2649
|
-
return {
|
|
2650
|
-
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
2651
|
-
assessmentRunCount: (0, smithy_client_1.expectInt32)(output.assessmentRunCount),
|
|
2652
|
-
assessmentTargetArn: (0, smithy_client_1.expectString)(output.assessmentTargetArn),
|
|
2653
|
-
createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
|
|
2654
|
-
durationInSeconds: (0, smithy_client_1.expectInt32)(output.durationInSeconds),
|
|
2655
|
-
lastAssessmentRunArn: (0, smithy_client_1.expectString)(output.lastAssessmentRunArn),
|
|
2656
|
-
name: (0, smithy_client_1.expectString)(output.name),
|
|
2657
|
-
rulesPackageArns: output.rulesPackageArns != null
|
|
2658
|
-
? de_AssessmentTemplateRulesPackageArnList(output.rulesPackageArns, context)
|
|
2659
|
-
: undefined,
|
|
2660
|
-
userAttributesForFindings: output.userAttributesForFindings != null
|
|
2661
|
-
? de_UserAttributeList(output.userAttributesForFindings, context)
|
|
2662
|
-
: undefined,
|
|
2663
|
-
};
|
|
2664
|
-
};
|
|
2665
|
-
const de_AssessmentTemplateList = (output, context) => {
|
|
2666
|
-
const retVal = (output || [])
|
|
2667
|
-
.filter((e) => e != null)
|
|
2668
|
-
.map((entry) => {
|
|
2669
|
-
if (entry === null) {
|
|
2670
|
-
return null;
|
|
2671
|
-
}
|
|
2672
|
-
return de_AssessmentTemplate(entry, context);
|
|
2673
|
-
});
|
|
2674
|
-
return retVal;
|
|
2675
|
-
};
|
|
2676
|
-
const de_AssessmentTemplateRulesPackageArnList = (output, context) => {
|
|
2677
|
-
const retVal = (output || [])
|
|
2678
|
-
.filter((e) => e != null)
|
|
2679
|
-
.map((entry) => {
|
|
2680
|
-
if (entry === null) {
|
|
2681
|
-
return null;
|
|
2682
|
-
}
|
|
2683
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
2684
|
-
});
|
|
2685
|
-
return retVal;
|
|
2686
|
-
};
|
|
2687
|
-
const de_AssetAttributes = (output, context) => {
|
|
2688
|
-
return {
|
|
2689
|
-
agentId: (0, smithy_client_1.expectString)(output.agentId),
|
|
2690
|
-
amiId: (0, smithy_client_1.expectString)(output.amiId),
|
|
2691
|
-
autoScalingGroup: (0, smithy_client_1.expectString)(output.autoScalingGroup),
|
|
2692
|
-
hostname: (0, smithy_client_1.expectString)(output.hostname),
|
|
2693
|
-
ipv4Addresses: output.ipv4Addresses != null ? de_Ipv4AddressList(output.ipv4Addresses, context) : undefined,
|
|
2694
|
-
networkInterfaces: output.networkInterfaces != null ? de_NetworkInterfaces(output.networkInterfaces, context) : undefined,
|
|
2695
|
-
schemaVersion: (0, smithy_client_1.expectInt32)(output.schemaVersion),
|
|
2696
|
-
tags: output.tags != null ? de_Tags(output.tags, context) : undefined,
|
|
2697
|
-
};
|
|
2698
|
-
};
|
|
2699
|
-
const de_Attribute = (output, context) => {
|
|
2700
|
-
return {
|
|
2701
|
-
key: (0, smithy_client_1.expectString)(output.key),
|
|
2702
|
-
value: (0, smithy_client_1.expectString)(output.value),
|
|
2703
|
-
};
|
|
2704
|
-
};
|
|
2705
|
-
const de_AttributeList = (output, context) => {
|
|
2706
|
-
const retVal = (output || [])
|
|
2707
|
-
.filter((e) => e != null)
|
|
2708
|
-
.map((entry) => {
|
|
2709
|
-
if (entry === null) {
|
|
2710
|
-
return null;
|
|
2711
|
-
}
|
|
2712
|
-
return de_Attribute(entry, context);
|
|
2713
|
-
});
|
|
2714
|
-
return retVal;
|
|
2715
|
-
};
|
|
2716
|
-
const de_CreateAssessmentTargetResponse = (output, context) => {
|
|
2717
|
-
return {
|
|
2718
|
-
assessmentTargetArn: (0, smithy_client_1.expectString)(output.assessmentTargetArn),
|
|
2719
|
-
};
|
|
2720
|
-
};
|
|
2721
|
-
const de_CreateAssessmentTemplateResponse = (output, context) => {
|
|
2722
|
-
return {
|
|
2723
|
-
assessmentTemplateArn: (0, smithy_client_1.expectString)(output.assessmentTemplateArn),
|
|
2724
|
-
};
|
|
2725
|
-
};
|
|
2726
|
-
const de_CreateExclusionsPreviewResponse = (output, context) => {
|
|
2727
|
-
return {
|
|
2728
|
-
previewToken: (0, smithy_client_1.expectString)(output.previewToken),
|
|
2729
|
-
};
|
|
2730
|
-
};
|
|
2731
|
-
const de_CreateResourceGroupResponse = (output, context) => {
|
|
2732
|
-
return {
|
|
2733
|
-
resourceGroupArn: (0, smithy_client_1.expectString)(output.resourceGroupArn),
|
|
2734
|
-
};
|
|
2735
|
-
};
|
|
2736
|
-
const de_DescribeAssessmentRunsResponse = (output, context) => {
|
|
2737
|
-
return {
|
|
2738
|
-
assessmentRuns: output.assessmentRuns != null ? de_AssessmentRunList(output.assessmentRuns, context) : undefined,
|
|
2739
|
-
failedItems: output.failedItems != null ? de_FailedItems(output.failedItems, context) : undefined,
|
|
2740
|
-
};
|
|
2741
|
-
};
|
|
2742
|
-
const de_DescribeAssessmentTargetsResponse = (output, context) => {
|
|
2743
|
-
return {
|
|
2744
|
-
assessmentTargets: output.assessmentTargets != null ? de_AssessmentTargetList(output.assessmentTargets, context) : undefined,
|
|
2745
|
-
failedItems: output.failedItems != null ? de_FailedItems(output.failedItems, context) : undefined,
|
|
2746
|
-
};
|
|
2747
|
-
};
|
|
2748
|
-
const de_DescribeAssessmentTemplatesResponse = (output, context) => {
|
|
2749
|
-
return {
|
|
2750
|
-
assessmentTemplates: output.assessmentTemplates != null ? de_AssessmentTemplateList(output.assessmentTemplates, context) : undefined,
|
|
2751
|
-
failedItems: output.failedItems != null ? de_FailedItems(output.failedItems, context) : undefined,
|
|
2752
|
-
};
|
|
2753
|
-
};
|
|
2754
|
-
const de_DescribeCrossAccountAccessRoleResponse = (output, context) => {
|
|
2755
|
-
return {
|
|
2756
|
-
registeredAt: output.registeredAt != null
|
|
2757
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.registeredAt)))
|
|
2758
|
-
: undefined,
|
|
2759
|
-
roleArn: (0, smithy_client_1.expectString)(output.roleArn),
|
|
2760
|
-
valid: (0, smithy_client_1.expectBoolean)(output.valid),
|
|
2761
|
-
};
|
|
2762
|
-
};
|
|
2763
|
-
const de_DescribeExclusionsResponse = (output, context) => {
|
|
2764
|
-
return {
|
|
2765
|
-
exclusions: output.exclusions != null ? de_ExclusionMap(output.exclusions, context) : undefined,
|
|
2766
|
-
failedItems: output.failedItems != null ? de_FailedItems(output.failedItems, context) : undefined,
|
|
2767
|
-
};
|
|
2768
|
-
};
|
|
2769
|
-
const de_DescribeFindingsResponse = (output, context) => {
|
|
2770
|
-
return {
|
|
2771
|
-
failedItems: output.failedItems != null ? de_FailedItems(output.failedItems, context) : undefined,
|
|
2772
|
-
findings: output.findings != null ? de_FindingList(output.findings, context) : undefined,
|
|
2773
|
-
};
|
|
2774
|
-
};
|
|
2775
|
-
const de_DescribeResourceGroupsResponse = (output, context) => {
|
|
2776
|
-
return {
|
|
2777
|
-
failedItems: output.failedItems != null ? de_FailedItems(output.failedItems, context) : undefined,
|
|
2778
|
-
resourceGroups: output.resourceGroups != null ? de_ResourceGroupList(output.resourceGroups, context) : undefined,
|
|
2779
|
-
};
|
|
2780
|
-
};
|
|
2781
|
-
const de_DescribeRulesPackagesResponse = (output, context) => {
|
|
2782
|
-
return {
|
|
2783
|
-
failedItems: output.failedItems != null ? de_FailedItems(output.failedItems, context) : undefined,
|
|
2784
|
-
rulesPackages: output.rulesPackages != null ? de_RulesPackageList(output.rulesPackages, context) : undefined,
|
|
2785
|
-
};
|
|
2786
|
-
};
|
|
2787
|
-
const de_EventSubscription = (output, context) => {
|
|
2788
|
-
return {
|
|
2789
|
-
event: (0, smithy_client_1.expectString)(output.event),
|
|
2790
|
-
subscribedAt: output.subscribedAt != null
|
|
2791
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.subscribedAt)))
|
|
2792
|
-
: undefined,
|
|
2793
|
-
};
|
|
2794
|
-
};
|
|
2795
|
-
const de_EventSubscriptionList = (output, context) => {
|
|
2796
|
-
const retVal = (output || [])
|
|
2797
|
-
.filter((e) => e != null)
|
|
2798
|
-
.map((entry) => {
|
|
2799
|
-
if (entry === null) {
|
|
2800
|
-
return null;
|
|
2801
|
-
}
|
|
2802
|
-
return de_EventSubscription(entry, context);
|
|
1929
|
+
const se_AssessmentRunFilter = (input, context) => {
|
|
1930
|
+
return (0, smithy_client_1.take)(input, {
|
|
1931
|
+
completionTimeRange: (_) => se_TimestampRange(_, context),
|
|
1932
|
+
durationRange: smithy_client_1._json,
|
|
1933
|
+
namePattern: [],
|
|
1934
|
+
rulesPackageArns: smithy_client_1._json,
|
|
1935
|
+
startTimeRange: (_) => se_TimestampRange(_, context),
|
|
1936
|
+
stateChangeTimeRange: (_) => se_TimestampRange(_, context),
|
|
1937
|
+
states: smithy_client_1._json,
|
|
2803
1938
|
});
|
|
2804
|
-
return retVal;
|
|
2805
|
-
};
|
|
2806
|
-
const de_Exclusion = (output, context) => {
|
|
2807
|
-
return {
|
|
2808
|
-
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
2809
|
-
attributes: output.attributes != null ? de_AttributeList(output.attributes, context) : undefined,
|
|
2810
|
-
description: (0, smithy_client_1.expectString)(output.description),
|
|
2811
|
-
recommendation: (0, smithy_client_1.expectString)(output.recommendation),
|
|
2812
|
-
scopes: output.scopes != null ? de_ScopeList(output.scopes, context) : undefined,
|
|
2813
|
-
title: (0, smithy_client_1.expectString)(output.title),
|
|
2814
|
-
};
|
|
2815
|
-
};
|
|
2816
|
-
const de_ExclusionMap = (output, context) => {
|
|
2817
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2818
|
-
if (value === null) {
|
|
2819
|
-
return acc;
|
|
2820
|
-
}
|
|
2821
|
-
acc[key] = de_Exclusion(value, context);
|
|
2822
|
-
return acc;
|
|
2823
|
-
}, {});
|
|
2824
1939
|
};
|
|
2825
|
-
const
|
|
2826
|
-
return {
|
|
2827
|
-
|
|
2828
|
-
|
|
2829
|
-
|
|
2830
|
-
|
|
2831
|
-
|
|
2832
|
-
|
|
2833
|
-
|
|
2834
|
-
|
|
2835
|
-
const retVal = (output || [])
|
|
2836
|
-
.filter((e) => e != null)
|
|
2837
|
-
.map((entry) => {
|
|
2838
|
-
if (entry === null) {
|
|
2839
|
-
return null;
|
|
2840
|
-
}
|
|
2841
|
-
return de_ExclusionPreview(entry, context);
|
|
1940
|
+
const se_FindingFilter = (input, context) => {
|
|
1941
|
+
return (0, smithy_client_1.take)(input, {
|
|
1942
|
+
agentIds: smithy_client_1._json,
|
|
1943
|
+
attributes: smithy_client_1._json,
|
|
1944
|
+
autoScalingGroups: smithy_client_1._json,
|
|
1945
|
+
creationTimeRange: (_) => se_TimestampRange(_, context),
|
|
1946
|
+
ruleNames: smithy_client_1._json,
|
|
1947
|
+
rulesPackageArns: smithy_client_1._json,
|
|
1948
|
+
severities: smithy_client_1._json,
|
|
1949
|
+
userAttributes: smithy_client_1._json,
|
|
2842
1950
|
});
|
|
2843
|
-
return retVal;
|
|
2844
|
-
};
|
|
2845
|
-
const de_FailedItemDetails = (output, context) => {
|
|
2846
|
-
return {
|
|
2847
|
-
failureCode: (0, smithy_client_1.expectString)(output.failureCode),
|
|
2848
|
-
retryable: (0, smithy_client_1.expectBoolean)(output.retryable),
|
|
2849
|
-
};
|
|
2850
|
-
};
|
|
2851
|
-
const de_FailedItems = (output, context) => {
|
|
2852
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2853
|
-
if (value === null) {
|
|
2854
|
-
return acc;
|
|
2855
|
-
}
|
|
2856
|
-
acc[key] = de_FailedItemDetails(value, context);
|
|
2857
|
-
return acc;
|
|
2858
|
-
}, {});
|
|
2859
|
-
};
|
|
2860
|
-
const de_Finding = (output, context) => {
|
|
2861
|
-
return {
|
|
2862
|
-
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
2863
|
-
assetAttributes: output.assetAttributes != null ? de_AssetAttributes(output.assetAttributes, context) : undefined,
|
|
2864
|
-
assetType: (0, smithy_client_1.expectString)(output.assetType),
|
|
2865
|
-
attributes: output.attributes != null ? de_AttributeList(output.attributes, context) : undefined,
|
|
2866
|
-
confidence: (0, smithy_client_1.expectInt32)(output.confidence),
|
|
2867
|
-
createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
|
|
2868
|
-
description: (0, smithy_client_1.expectString)(output.description),
|
|
2869
|
-
id: (0, smithy_client_1.expectString)(output.id),
|
|
2870
|
-
indicatorOfCompromise: (0, smithy_client_1.expectBoolean)(output.indicatorOfCompromise),
|
|
2871
|
-
numericSeverity: (0, smithy_client_1.limitedParseDouble)(output.numericSeverity),
|
|
2872
|
-
recommendation: (0, smithy_client_1.expectString)(output.recommendation),
|
|
2873
|
-
schemaVersion: (0, smithy_client_1.expectInt32)(output.schemaVersion),
|
|
2874
|
-
service: (0, smithy_client_1.expectString)(output.service),
|
|
2875
|
-
serviceAttributes: output.serviceAttributes != null ? de_InspectorServiceAttributes(output.serviceAttributes, context) : undefined,
|
|
2876
|
-
severity: (0, smithy_client_1.expectString)(output.severity),
|
|
2877
|
-
title: (0, smithy_client_1.expectString)(output.title),
|
|
2878
|
-
updatedAt: output.updatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updatedAt))) : undefined,
|
|
2879
|
-
userAttributes: output.userAttributes != null ? de_UserAttributeList(output.userAttributes, context) : undefined,
|
|
2880
|
-
};
|
|
2881
1951
|
};
|
|
2882
|
-
const
|
|
2883
|
-
|
|
2884
|
-
.
|
|
2885
|
-
|
|
2886
|
-
|
|
2887
|
-
|
|
2888
|
-
}
|
|
2889
|
-
return de_Finding(entry, context);
|
|
1952
|
+
const se_ListAssessmentRunsRequest = (input, context) => {
|
|
1953
|
+
return (0, smithy_client_1.take)(input, {
|
|
1954
|
+
assessmentTemplateArns: smithy_client_1._json,
|
|
1955
|
+
filter: (_) => se_AssessmentRunFilter(_, context),
|
|
1956
|
+
maxResults: [],
|
|
1957
|
+
nextToken: [],
|
|
2890
1958
|
});
|
|
2891
|
-
return retVal;
|
|
2892
|
-
};
|
|
2893
|
-
const de_GetAssessmentReportResponse = (output, context) => {
|
|
2894
|
-
return {
|
|
2895
|
-
status: (0, smithy_client_1.expectString)(output.status),
|
|
2896
|
-
url: (0, smithy_client_1.expectString)(output.url),
|
|
2897
|
-
};
|
|
2898
|
-
};
|
|
2899
|
-
const de_GetExclusionsPreviewResponse = (output, context) => {
|
|
2900
|
-
return {
|
|
2901
|
-
exclusionPreviews: output.exclusionPreviews != null ? de_ExclusionPreviewList(output.exclusionPreviews, context) : undefined,
|
|
2902
|
-
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
2903
|
-
previewStatus: (0, smithy_client_1.expectString)(output.previewStatus),
|
|
2904
|
-
};
|
|
2905
1959
|
};
|
|
2906
|
-
const
|
|
2907
|
-
return {
|
|
2908
|
-
|
|
2909
|
-
|
|
2910
|
-
|
|
2911
|
-
|
|
2912
|
-
return {
|
|
2913
|
-
assessmentRunArn: (0, smithy_client_1.expectString)(output.assessmentRunArn),
|
|
2914
|
-
rulesPackageArn: (0, smithy_client_1.expectString)(output.rulesPackageArn),
|
|
2915
|
-
schemaVersion: (0, smithy_client_1.expectInt32)(output.schemaVersion),
|
|
2916
|
-
};
|
|
2917
|
-
};
|
|
2918
|
-
const de_InternalException = (output, context) => {
|
|
2919
|
-
return {
|
|
2920
|
-
canRetry: (0, smithy_client_1.expectBoolean)(output.canRetry),
|
|
2921
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
2922
|
-
};
|
|
2923
|
-
};
|
|
2924
|
-
const de_InvalidCrossAccountRoleException = (output, context) => {
|
|
2925
|
-
return {
|
|
2926
|
-
canRetry: (0, smithy_client_1.expectBoolean)(output.canRetry),
|
|
2927
|
-
errorCode: (0, smithy_client_1.expectString)(output.errorCode),
|
|
2928
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
2929
|
-
};
|
|
2930
|
-
};
|
|
2931
|
-
const de_InvalidInputException = (output, context) => {
|
|
2932
|
-
return {
|
|
2933
|
-
canRetry: (0, smithy_client_1.expectBoolean)(output.canRetry),
|
|
2934
|
-
errorCode: (0, smithy_client_1.expectString)(output.errorCode),
|
|
2935
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
2936
|
-
};
|
|
2937
|
-
};
|
|
2938
|
-
const de_Ipv4AddressList = (output, context) => {
|
|
2939
|
-
const retVal = (output || [])
|
|
2940
|
-
.filter((e) => e != null)
|
|
2941
|
-
.map((entry) => {
|
|
2942
|
-
if (entry === null) {
|
|
2943
|
-
return null;
|
|
2944
|
-
}
|
|
2945
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
1960
|
+
const se_ListFindingsRequest = (input, context) => {
|
|
1961
|
+
return (0, smithy_client_1.take)(input, {
|
|
1962
|
+
assessmentRunArns: smithy_client_1._json,
|
|
1963
|
+
filter: (_) => se_FindingFilter(_, context),
|
|
1964
|
+
maxResults: [],
|
|
1965
|
+
nextToken: [],
|
|
2946
1966
|
});
|
|
2947
|
-
return retVal;
|
|
2948
1967
|
};
|
|
2949
|
-
const
|
|
2950
|
-
|
|
2951
|
-
|
|
2952
|
-
.
|
|
2953
|
-
if (entry === null) {
|
|
2954
|
-
return null;
|
|
2955
|
-
}
|
|
2956
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
1968
|
+
const se_TimestampRange = (input, context) => {
|
|
1969
|
+
return (0, smithy_client_1.take)(input, {
|
|
1970
|
+
beginDate: (_) => Math.round(_.getTime() / 1000),
|
|
1971
|
+
endDate: (_) => Math.round(_.getTime() / 1000),
|
|
2957
1972
|
});
|
|
2958
|
-
return retVal;
|
|
2959
|
-
};
|
|
2960
|
-
const de_LimitExceededException = (output, context) => {
|
|
2961
|
-
return {
|
|
2962
|
-
canRetry: (0, smithy_client_1.expectBoolean)(output.canRetry),
|
|
2963
|
-
errorCode: (0, smithy_client_1.expectString)(output.errorCode),
|
|
2964
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
2965
|
-
};
|
|
2966
|
-
};
|
|
2967
|
-
const de_ListAssessmentRunAgentsResponse = (output, context) => {
|
|
2968
|
-
return {
|
|
2969
|
-
assessmentRunAgents: output.assessmentRunAgents != null ? de_AssessmentRunAgentList(output.assessmentRunAgents, context) : undefined,
|
|
2970
|
-
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
2971
|
-
};
|
|
2972
|
-
};
|
|
2973
|
-
const de_ListAssessmentRunsResponse = (output, context) => {
|
|
2974
|
-
return {
|
|
2975
|
-
assessmentRunArns: output.assessmentRunArns != null ? de_ListReturnedArnList(output.assessmentRunArns, context) : undefined,
|
|
2976
|
-
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
2977
|
-
};
|
|
2978
|
-
};
|
|
2979
|
-
const de_ListAssessmentTargetsResponse = (output, context) => {
|
|
2980
|
-
return {
|
|
2981
|
-
assessmentTargetArns: output.assessmentTargetArns != null ? de_ListReturnedArnList(output.assessmentTargetArns, context) : undefined,
|
|
2982
|
-
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
2983
|
-
};
|
|
2984
|
-
};
|
|
2985
|
-
const de_ListAssessmentTemplatesResponse = (output, context) => {
|
|
2986
|
-
return {
|
|
2987
|
-
assessmentTemplateArns: output.assessmentTemplateArns != null
|
|
2988
|
-
? de_ListReturnedArnList(output.assessmentTemplateArns, context)
|
|
2989
|
-
: undefined,
|
|
2990
|
-
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
2991
|
-
};
|
|
2992
|
-
};
|
|
2993
|
-
const de_ListEventSubscriptionsResponse = (output, context) => {
|
|
2994
|
-
return {
|
|
2995
|
-
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
2996
|
-
subscriptions: output.subscriptions != null ? de_SubscriptionList(output.subscriptions, context) : undefined,
|
|
2997
|
-
};
|
|
2998
|
-
};
|
|
2999
|
-
const de_ListExclusionsResponse = (output, context) => {
|
|
3000
|
-
return {
|
|
3001
|
-
exclusionArns: output.exclusionArns != null ? de_ListReturnedArnList(output.exclusionArns, context) : undefined,
|
|
3002
|
-
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
3003
|
-
};
|
|
3004
|
-
};
|
|
3005
|
-
const de_ListFindingsResponse = (output, context) => {
|
|
3006
|
-
return {
|
|
3007
|
-
findingArns: output.findingArns != null ? de_ListReturnedArnList(output.findingArns, context) : undefined,
|
|
3008
|
-
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
3009
|
-
};
|
|
3010
1973
|
};
|
|
3011
|
-
const
|
|
3012
|
-
|
|
3013
|
-
.
|
|
3014
|
-
.
|
|
3015
|
-
|
|
3016
|
-
|
|
3017
|
-
|
|
3018
|
-
|
|
1974
|
+
const de_AssessmentRun = (output, context) => {
|
|
1975
|
+
return (0, smithy_client_1.take)(output, {
|
|
1976
|
+
arn: smithy_client_1.expectString,
|
|
1977
|
+
assessmentTemplateArn: smithy_client_1.expectString,
|
|
1978
|
+
completedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1979
|
+
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1980
|
+
dataCollected: smithy_client_1.expectBoolean,
|
|
1981
|
+
durationInSeconds: smithy_client_1.expectInt32,
|
|
1982
|
+
findingCounts: smithy_client_1._json,
|
|
1983
|
+
name: smithy_client_1.expectString,
|
|
1984
|
+
notifications: (_) => de_AssessmentRunNotificationList(_, context),
|
|
1985
|
+
rulesPackageArns: smithy_client_1._json,
|
|
1986
|
+
startedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1987
|
+
state: smithy_client_1.expectString,
|
|
1988
|
+
stateChangedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1989
|
+
stateChanges: (_) => de_AssessmentRunStateChangeList(_, context),
|
|
1990
|
+
userAttributesForFindings: smithy_client_1._json,
|
|
3019
1991
|
});
|
|
3020
|
-
return retVal;
|
|
3021
|
-
};
|
|
3022
|
-
const de_ListRulesPackagesResponse = (output, context) => {
|
|
3023
|
-
return {
|
|
3024
|
-
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
3025
|
-
rulesPackageArns: output.rulesPackageArns != null ? de_ListReturnedArnList(output.rulesPackageArns, context) : undefined,
|
|
3026
|
-
};
|
|
3027
|
-
};
|
|
3028
|
-
const de_ListTagsForResourceResponse = (output, context) => {
|
|
3029
|
-
return {
|
|
3030
|
-
tags: output.tags != null ? de_TagList(output.tags, context) : undefined,
|
|
3031
|
-
};
|
|
3032
1992
|
};
|
|
3033
|
-
const
|
|
3034
|
-
return {
|
|
3035
|
-
ipv6Addresses: output.ipv6Addresses != null ? de_Ipv6Addresses(output.ipv6Addresses, context) : undefined,
|
|
3036
|
-
networkInterfaceId: (0, smithy_client_1.expectString)(output.networkInterfaceId),
|
|
3037
|
-
privateDnsName: (0, smithy_client_1.expectString)(output.privateDnsName),
|
|
3038
|
-
privateIpAddress: (0, smithy_client_1.expectString)(output.privateIpAddress),
|
|
3039
|
-
privateIpAddresses: output.privateIpAddresses != null ? de_PrivateIpAddresses(output.privateIpAddresses, context) : undefined,
|
|
3040
|
-
publicDnsName: (0, smithy_client_1.expectString)(output.publicDnsName),
|
|
3041
|
-
publicIp: (0, smithy_client_1.expectString)(output.publicIp),
|
|
3042
|
-
securityGroups: output.securityGroups != null ? de_SecurityGroups(output.securityGroups, context) : undefined,
|
|
3043
|
-
subnetId: (0, smithy_client_1.expectString)(output.subnetId),
|
|
3044
|
-
vpcId: (0, smithy_client_1.expectString)(output.vpcId),
|
|
3045
|
-
};
|
|
3046
|
-
};
|
|
3047
|
-
const de_NetworkInterfaces = (output, context) => {
|
|
1993
|
+
const de_AssessmentRunList = (output, context) => {
|
|
3048
1994
|
const retVal = (output || [])
|
|
3049
1995
|
.filter((e) => e != null)
|
|
3050
1996
|
.map((entry) => {
|
|
3051
|
-
|
|
3052
|
-
return null;
|
|
3053
|
-
}
|
|
3054
|
-
return de_NetworkInterface(entry, context);
|
|
1997
|
+
return de_AssessmentRun(entry, context);
|
|
3055
1998
|
});
|
|
3056
1999
|
return retVal;
|
|
3057
2000
|
};
|
|
3058
|
-
const
|
|
3059
|
-
return {
|
|
3060
|
-
|
|
3061
|
-
|
|
3062
|
-
|
|
3063
|
-
|
|
3064
|
-
|
|
3065
|
-
|
|
3066
|
-
|
|
3067
|
-
agentPreviews: output.agentPreviews != null ? de_AgentPreviewList(output.agentPreviews, context) : undefined,
|
|
3068
|
-
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
3069
|
-
};
|
|
3070
|
-
};
|
|
3071
|
-
const de_PreviewGenerationInProgressException = (output, context) => {
|
|
3072
|
-
return {
|
|
3073
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
3074
|
-
};
|
|
3075
|
-
};
|
|
3076
|
-
const de_PrivateIp = (output, context) => {
|
|
3077
|
-
return {
|
|
3078
|
-
privateDnsName: (0, smithy_client_1.expectString)(output.privateDnsName),
|
|
3079
|
-
privateIpAddress: (0, smithy_client_1.expectString)(output.privateIpAddress),
|
|
3080
|
-
};
|
|
2001
|
+
const de_AssessmentRunNotification = (output, context) => {
|
|
2002
|
+
return (0, smithy_client_1.take)(output, {
|
|
2003
|
+
date: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2004
|
+
error: smithy_client_1.expectBoolean,
|
|
2005
|
+
event: smithy_client_1.expectString,
|
|
2006
|
+
message: smithy_client_1.expectString,
|
|
2007
|
+
snsPublishStatusCode: smithy_client_1.expectString,
|
|
2008
|
+
snsTopicArn: smithy_client_1.expectString,
|
|
2009
|
+
});
|
|
3081
2010
|
};
|
|
3082
|
-
const
|
|
2011
|
+
const de_AssessmentRunNotificationList = (output, context) => {
|
|
3083
2012
|
const retVal = (output || [])
|
|
3084
2013
|
.filter((e) => e != null)
|
|
3085
2014
|
.map((entry) => {
|
|
3086
|
-
|
|
3087
|
-
return null;
|
|
3088
|
-
}
|
|
3089
|
-
return de_PrivateIp(entry, context);
|
|
2015
|
+
return de_AssessmentRunNotification(entry, context);
|
|
3090
2016
|
});
|
|
3091
2017
|
return retVal;
|
|
3092
2018
|
};
|
|
3093
|
-
const
|
|
3094
|
-
return {
|
|
3095
|
-
|
|
3096
|
-
|
|
3097
|
-
};
|
|
3098
|
-
const de_ResourceGroup = (output, context) => {
|
|
3099
|
-
return {
|
|
3100
|
-
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
3101
|
-
createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
|
|
3102
|
-
tags: output.tags != null ? de_ResourceGroupTags(output.tags, context) : undefined,
|
|
3103
|
-
};
|
|
2019
|
+
const de_AssessmentRunStateChange = (output, context) => {
|
|
2020
|
+
return (0, smithy_client_1.take)(output, {
|
|
2021
|
+
state: smithy_client_1.expectString,
|
|
2022
|
+
stateChangedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2023
|
+
});
|
|
3104
2024
|
};
|
|
3105
|
-
const
|
|
2025
|
+
const de_AssessmentRunStateChangeList = (output, context) => {
|
|
3106
2026
|
const retVal = (output || [])
|
|
3107
2027
|
.filter((e) => e != null)
|
|
3108
2028
|
.map((entry) => {
|
|
3109
|
-
|
|
3110
|
-
return null;
|
|
3111
|
-
}
|
|
3112
|
-
return de_ResourceGroup(entry, context);
|
|
2029
|
+
return de_AssessmentRunStateChange(entry, context);
|
|
3113
2030
|
});
|
|
3114
2031
|
return retVal;
|
|
3115
2032
|
};
|
|
3116
|
-
const
|
|
3117
|
-
return {
|
|
3118
|
-
|
|
3119
|
-
|
|
3120
|
-
|
|
2033
|
+
const de_AssessmentTarget = (output, context) => {
|
|
2034
|
+
return (0, smithy_client_1.take)(output, {
|
|
2035
|
+
arn: smithy_client_1.expectString,
|
|
2036
|
+
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2037
|
+
name: smithy_client_1.expectString,
|
|
2038
|
+
resourceGroupArn: smithy_client_1.expectString,
|
|
2039
|
+
updatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2040
|
+
});
|
|
3121
2041
|
};
|
|
3122
|
-
const
|
|
2042
|
+
const de_AssessmentTargetList = (output, context) => {
|
|
3123
2043
|
const retVal = (output || [])
|
|
3124
2044
|
.filter((e) => e != null)
|
|
3125
2045
|
.map((entry) => {
|
|
3126
|
-
|
|
3127
|
-
return null;
|
|
3128
|
-
}
|
|
3129
|
-
return de_ResourceGroupTag(entry, context);
|
|
2046
|
+
return de_AssessmentTarget(entry, context);
|
|
3130
2047
|
});
|
|
3131
2048
|
return retVal;
|
|
3132
2049
|
};
|
|
3133
|
-
const
|
|
3134
|
-
return {
|
|
3135
|
-
arn:
|
|
3136
|
-
|
|
3137
|
-
|
|
3138
|
-
|
|
3139
|
-
|
|
3140
|
-
|
|
2050
|
+
const de_AssessmentTemplate = (output, context) => {
|
|
2051
|
+
return (0, smithy_client_1.take)(output, {
|
|
2052
|
+
arn: smithy_client_1.expectString,
|
|
2053
|
+
assessmentRunCount: smithy_client_1.expectInt32,
|
|
2054
|
+
assessmentTargetArn: smithy_client_1.expectString,
|
|
2055
|
+
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2056
|
+
durationInSeconds: smithy_client_1.expectInt32,
|
|
2057
|
+
lastAssessmentRunArn: smithy_client_1.expectString,
|
|
2058
|
+
name: smithy_client_1.expectString,
|
|
2059
|
+
rulesPackageArns: smithy_client_1._json,
|
|
2060
|
+
userAttributesForFindings: smithy_client_1._json,
|
|
2061
|
+
});
|
|
3141
2062
|
};
|
|
3142
|
-
const
|
|
2063
|
+
const de_AssessmentTemplateList = (output, context) => {
|
|
3143
2064
|
const retVal = (output || [])
|
|
3144
2065
|
.filter((e) => e != null)
|
|
3145
2066
|
.map((entry) => {
|
|
3146
|
-
|
|
3147
|
-
return null;
|
|
3148
|
-
}
|
|
3149
|
-
return de_RulesPackage(entry, context);
|
|
2067
|
+
return de_AssessmentTemplate(entry, context);
|
|
3150
2068
|
});
|
|
3151
2069
|
return retVal;
|
|
3152
2070
|
};
|
|
3153
|
-
const
|
|
3154
|
-
return {
|
|
3155
|
-
|
|
3156
|
-
|
|
3157
|
-
};
|
|
2071
|
+
const de_DescribeAssessmentRunsResponse = (output, context) => {
|
|
2072
|
+
return (0, smithy_client_1.take)(output, {
|
|
2073
|
+
assessmentRuns: (_) => de_AssessmentRunList(_, context),
|
|
2074
|
+
failedItems: smithy_client_1._json,
|
|
2075
|
+
});
|
|
3158
2076
|
};
|
|
3159
|
-
const
|
|
3160
|
-
|
|
3161
|
-
|
|
3162
|
-
.
|
|
3163
|
-
if (entry === null) {
|
|
3164
|
-
return null;
|
|
3165
|
-
}
|
|
3166
|
-
return de_Scope(entry, context);
|
|
2077
|
+
const de_DescribeAssessmentTargetsResponse = (output, context) => {
|
|
2078
|
+
return (0, smithy_client_1.take)(output, {
|
|
2079
|
+
assessmentTargets: (_) => de_AssessmentTargetList(_, context),
|
|
2080
|
+
failedItems: smithy_client_1._json,
|
|
3167
2081
|
});
|
|
3168
|
-
return retVal;
|
|
3169
2082
|
};
|
|
3170
|
-
const
|
|
3171
|
-
return {
|
|
3172
|
-
|
|
3173
|
-
|
|
3174
|
-
};
|
|
2083
|
+
const de_DescribeAssessmentTemplatesResponse = (output, context) => {
|
|
2084
|
+
return (0, smithy_client_1.take)(output, {
|
|
2085
|
+
assessmentTemplates: (_) => de_AssessmentTemplateList(_, context),
|
|
2086
|
+
failedItems: smithy_client_1._json,
|
|
2087
|
+
});
|
|
3175
2088
|
};
|
|
3176
|
-
const
|
|
3177
|
-
|
|
3178
|
-
|
|
3179
|
-
.
|
|
3180
|
-
|
|
3181
|
-
return null;
|
|
3182
|
-
}
|
|
3183
|
-
return de_SecurityGroup(entry, context);
|
|
2089
|
+
const de_DescribeCrossAccountAccessRoleResponse = (output, context) => {
|
|
2090
|
+
return (0, smithy_client_1.take)(output, {
|
|
2091
|
+
registeredAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2092
|
+
roleArn: smithy_client_1.expectString,
|
|
2093
|
+
valid: smithy_client_1.expectBoolean,
|
|
3184
2094
|
});
|
|
3185
|
-
return retVal;
|
|
3186
2095
|
};
|
|
3187
|
-
const
|
|
3188
|
-
return {
|
|
3189
|
-
|
|
3190
|
-
|
|
3191
|
-
};
|
|
2096
|
+
const de_DescribeFindingsResponse = (output, context) => {
|
|
2097
|
+
return (0, smithy_client_1.take)(output, {
|
|
2098
|
+
failedItems: smithy_client_1._json,
|
|
2099
|
+
findings: (_) => de_FindingList(_, context),
|
|
2100
|
+
});
|
|
3192
2101
|
};
|
|
3193
|
-
const
|
|
3194
|
-
return {
|
|
3195
|
-
|
|
3196
|
-
|
|
2102
|
+
const de_DescribeResourceGroupsResponse = (output, context) => {
|
|
2103
|
+
return (0, smithy_client_1.take)(output, {
|
|
2104
|
+
failedItems: smithy_client_1._json,
|
|
2105
|
+
resourceGroups: (_) => de_ResourceGroupList(_, context),
|
|
2106
|
+
});
|
|
3197
2107
|
};
|
|
3198
|
-
const
|
|
3199
|
-
return {
|
|
3200
|
-
|
|
3201
|
-
|
|
3202
|
-
|
|
3203
|
-
};
|
|
2108
|
+
const de_EventSubscription = (output, context) => {
|
|
2109
|
+
return (0, smithy_client_1.take)(output, {
|
|
2110
|
+
event: smithy_client_1.expectString,
|
|
2111
|
+
subscribedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2112
|
+
});
|
|
3204
2113
|
};
|
|
3205
|
-
const
|
|
2114
|
+
const de_EventSubscriptionList = (output, context) => {
|
|
3206
2115
|
const retVal = (output || [])
|
|
3207
2116
|
.filter((e) => e != null)
|
|
3208
2117
|
.map((entry) => {
|
|
3209
|
-
|
|
3210
|
-
return null;
|
|
3211
|
-
}
|
|
3212
|
-
return de_Subscription(entry, context);
|
|
2118
|
+
return de_EventSubscription(entry, context);
|
|
3213
2119
|
});
|
|
3214
2120
|
return retVal;
|
|
3215
2121
|
};
|
|
3216
|
-
const
|
|
3217
|
-
return {
|
|
3218
|
-
|
|
3219
|
-
|
|
3220
|
-
|
|
2122
|
+
const de_Finding = (output, context) => {
|
|
2123
|
+
return (0, smithy_client_1.take)(output, {
|
|
2124
|
+
arn: smithy_client_1.expectString,
|
|
2125
|
+
assetAttributes: smithy_client_1._json,
|
|
2126
|
+
assetType: smithy_client_1.expectString,
|
|
2127
|
+
attributes: smithy_client_1._json,
|
|
2128
|
+
confidence: smithy_client_1.expectInt32,
|
|
2129
|
+
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2130
|
+
description: smithy_client_1.expectString,
|
|
2131
|
+
id: smithy_client_1.expectString,
|
|
2132
|
+
indicatorOfCompromise: smithy_client_1.expectBoolean,
|
|
2133
|
+
numericSeverity: smithy_client_1.limitedParseDouble,
|
|
2134
|
+
recommendation: smithy_client_1.expectString,
|
|
2135
|
+
schemaVersion: smithy_client_1.expectInt32,
|
|
2136
|
+
service: smithy_client_1.expectString,
|
|
2137
|
+
serviceAttributes: smithy_client_1._json,
|
|
2138
|
+
severity: smithy_client_1.expectString,
|
|
2139
|
+
title: smithy_client_1.expectString,
|
|
2140
|
+
updatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2141
|
+
userAttributes: smithy_client_1._json,
|
|
2142
|
+
});
|
|
3221
2143
|
};
|
|
3222
|
-
const
|
|
2144
|
+
const de_FindingList = (output, context) => {
|
|
3223
2145
|
const retVal = (output || [])
|
|
3224
2146
|
.filter((e) => e != null)
|
|
3225
2147
|
.map((entry) => {
|
|
3226
|
-
|
|
3227
|
-
return null;
|
|
3228
|
-
}
|
|
3229
|
-
return de_Tag(entry, context);
|
|
2148
|
+
return de_Finding(entry, context);
|
|
3230
2149
|
});
|
|
3231
2150
|
return retVal;
|
|
3232
2151
|
};
|
|
3233
|
-
const
|
|
3234
|
-
|
|
3235
|
-
.
|
|
3236
|
-
|
|
3237
|
-
if (entry === null) {
|
|
3238
|
-
return null;
|
|
3239
|
-
}
|
|
3240
|
-
return de_Tag(entry, context);
|
|
2152
|
+
const de_ListEventSubscriptionsResponse = (output, context) => {
|
|
2153
|
+
return (0, smithy_client_1.take)(output, {
|
|
2154
|
+
nextToken: smithy_client_1.expectString,
|
|
2155
|
+
subscriptions: (_) => de_SubscriptionList(_, context),
|
|
3241
2156
|
});
|
|
3242
|
-
return retVal;
|
|
3243
2157
|
};
|
|
3244
|
-
const
|
|
3245
|
-
return {
|
|
3246
|
-
|
|
3247
|
-
|
|
3248
|
-
|
|
3249
|
-
};
|
|
2158
|
+
const de_ResourceGroup = (output, context) => {
|
|
2159
|
+
return (0, smithy_client_1.take)(output, {
|
|
2160
|
+
arn: smithy_client_1.expectString,
|
|
2161
|
+
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2162
|
+
tags: smithy_client_1._json,
|
|
2163
|
+
});
|
|
3250
2164
|
};
|
|
3251
|
-
const
|
|
2165
|
+
const de_ResourceGroupList = (output, context) => {
|
|
3252
2166
|
const retVal = (output || [])
|
|
3253
2167
|
.filter((e) => e != null)
|
|
3254
2168
|
.map((entry) => {
|
|
3255
|
-
|
|
3256
|
-
return null;
|
|
3257
|
-
}
|
|
3258
|
-
return de_TelemetryMetadata(entry, context);
|
|
2169
|
+
return de_ResourceGroup(entry, context);
|
|
3259
2170
|
});
|
|
3260
2171
|
return retVal;
|
|
3261
2172
|
};
|
|
3262
|
-
const
|
|
3263
|
-
return {
|
|
3264
|
-
|
|
3265
|
-
|
|
3266
|
-
|
|
2173
|
+
const de_Subscription = (output, context) => {
|
|
2174
|
+
return (0, smithy_client_1.take)(output, {
|
|
2175
|
+
eventSubscriptions: (_) => de_EventSubscriptionList(_, context),
|
|
2176
|
+
resourceArn: smithy_client_1.expectString,
|
|
2177
|
+
topicArn: smithy_client_1.expectString,
|
|
2178
|
+
});
|
|
3267
2179
|
};
|
|
3268
|
-
const
|
|
2180
|
+
const de_SubscriptionList = (output, context) => {
|
|
3269
2181
|
const retVal = (output || [])
|
|
3270
2182
|
.filter((e) => e != null)
|
|
3271
2183
|
.map((entry) => {
|
|
3272
|
-
|
|
3273
|
-
return null;
|
|
3274
|
-
}
|
|
3275
|
-
return de_Attribute(entry, context);
|
|
2184
|
+
return de_Subscription(entry, context);
|
|
3276
2185
|
});
|
|
3277
2186
|
return retVal;
|
|
3278
2187
|
};
|
|
@@ -3289,6 +2198,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
|
3289
2198
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
3290
2199
|
};
|
|
3291
2200
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
2201
|
+
const throwDefaultError = (0, smithy_client_1.withBaseException)(InspectorServiceException_1.InspectorServiceException);
|
|
3292
2202
|
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
3293
2203
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3294
2204
|
const contents = {
|