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