@aws-sdk/client-detective 3.474.0 → 3.477.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/protocols/Aws_restJson1.js +124 -326
- package/dist-es/protocols/Aws_restJson1.js +125 -327
- package/package.json +5 -4
|
@@ -1,94 +1,66 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset,
|
|
1
|
+
import { requestBuilder as rb } from "@smithy/core";
|
|
2
|
+
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
3
|
import { DetectiveServiceException as __BaseException } from "../models/DetectiveServiceException";
|
|
4
4
|
import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, TooManyRequestsException, ValidationException, } from "../models/models_0";
|
|
5
5
|
export const se_AcceptInvitationCommand = async (input, context) => {
|
|
6
|
-
const
|
|
6
|
+
const b = rb(input, context);
|
|
7
7
|
const headers = {
|
|
8
8
|
"content-type": "application/json",
|
|
9
9
|
};
|
|
10
|
-
|
|
10
|
+
b.bp("/invitation");
|
|
11
11
|
let body;
|
|
12
12
|
body = JSON.stringify(take(input, {
|
|
13
13
|
GraphArn: [],
|
|
14
14
|
}));
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
hostname,
|
|
18
|
-
port,
|
|
19
|
-
method: "PUT",
|
|
20
|
-
headers,
|
|
21
|
-
path: resolvedPath,
|
|
22
|
-
body,
|
|
23
|
-
});
|
|
15
|
+
b.m("PUT").h(headers).b(body);
|
|
16
|
+
return b.build();
|
|
24
17
|
};
|
|
25
18
|
export const se_BatchGetGraphMemberDatasourcesCommand = async (input, context) => {
|
|
26
|
-
const
|
|
19
|
+
const b = rb(input, context);
|
|
27
20
|
const headers = {
|
|
28
21
|
"content-type": "application/json",
|
|
29
22
|
};
|
|
30
|
-
|
|
23
|
+
b.bp("/graph/datasources/get");
|
|
31
24
|
let body;
|
|
32
25
|
body = JSON.stringify(take(input, {
|
|
33
26
|
AccountIds: (_) => _json(_),
|
|
34
27
|
GraphArn: [],
|
|
35
28
|
}));
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
hostname,
|
|
39
|
-
port,
|
|
40
|
-
method: "POST",
|
|
41
|
-
headers,
|
|
42
|
-
path: resolvedPath,
|
|
43
|
-
body,
|
|
44
|
-
});
|
|
29
|
+
b.m("POST").h(headers).b(body);
|
|
30
|
+
return b.build();
|
|
45
31
|
};
|
|
46
32
|
export const se_BatchGetMembershipDatasourcesCommand = async (input, context) => {
|
|
47
|
-
const
|
|
33
|
+
const b = rb(input, context);
|
|
48
34
|
const headers = {
|
|
49
35
|
"content-type": "application/json",
|
|
50
36
|
};
|
|
51
|
-
|
|
37
|
+
b.bp("/membership/datasources/get");
|
|
52
38
|
let body;
|
|
53
39
|
body = JSON.stringify(take(input, {
|
|
54
40
|
GraphArns: (_) => _json(_),
|
|
55
41
|
}));
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
hostname,
|
|
59
|
-
port,
|
|
60
|
-
method: "POST",
|
|
61
|
-
headers,
|
|
62
|
-
path: resolvedPath,
|
|
63
|
-
body,
|
|
64
|
-
});
|
|
42
|
+
b.m("POST").h(headers).b(body);
|
|
43
|
+
return b.build();
|
|
65
44
|
};
|
|
66
45
|
export const se_CreateGraphCommand = async (input, context) => {
|
|
67
|
-
const
|
|
46
|
+
const b = rb(input, context);
|
|
68
47
|
const headers = {
|
|
69
48
|
"content-type": "application/json",
|
|
70
49
|
};
|
|
71
|
-
|
|
50
|
+
b.bp("/graph");
|
|
72
51
|
let body;
|
|
73
52
|
body = JSON.stringify(take(input, {
|
|
74
53
|
Tags: (_) => _json(_),
|
|
75
54
|
}));
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
hostname,
|
|
79
|
-
port,
|
|
80
|
-
method: "POST",
|
|
81
|
-
headers,
|
|
82
|
-
path: resolvedPath,
|
|
83
|
-
body,
|
|
84
|
-
});
|
|
55
|
+
b.m("POST").h(headers).b(body);
|
|
56
|
+
return b.build();
|
|
85
57
|
};
|
|
86
58
|
export const se_CreateMembersCommand = async (input, context) => {
|
|
87
|
-
const
|
|
59
|
+
const b = rb(input, context);
|
|
88
60
|
const headers = {
|
|
89
61
|
"content-type": "application/json",
|
|
90
62
|
};
|
|
91
|
-
|
|
63
|
+
b.bp("/graph/members");
|
|
92
64
|
let body;
|
|
93
65
|
body = JSON.stringify(take(input, {
|
|
94
66
|
Accounts: (_) => _json(_),
|
|
@@ -96,226 +68,149 @@ export const se_CreateMembersCommand = async (input, context) => {
|
|
|
96
68
|
GraphArn: [],
|
|
97
69
|
Message: [],
|
|
98
70
|
}));
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
hostname,
|
|
102
|
-
port,
|
|
103
|
-
method: "POST",
|
|
104
|
-
headers,
|
|
105
|
-
path: resolvedPath,
|
|
106
|
-
body,
|
|
107
|
-
});
|
|
71
|
+
b.m("POST").h(headers).b(body);
|
|
72
|
+
return b.build();
|
|
108
73
|
};
|
|
109
74
|
export const se_DeleteGraphCommand = async (input, context) => {
|
|
110
|
-
const
|
|
75
|
+
const b = rb(input, context);
|
|
111
76
|
const headers = {
|
|
112
77
|
"content-type": "application/json",
|
|
113
78
|
};
|
|
114
|
-
|
|
79
|
+
b.bp("/graph/removal");
|
|
115
80
|
let body;
|
|
116
81
|
body = JSON.stringify(take(input, {
|
|
117
82
|
GraphArn: [],
|
|
118
83
|
}));
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
hostname,
|
|
122
|
-
port,
|
|
123
|
-
method: "POST",
|
|
124
|
-
headers,
|
|
125
|
-
path: resolvedPath,
|
|
126
|
-
body,
|
|
127
|
-
});
|
|
84
|
+
b.m("POST").h(headers).b(body);
|
|
85
|
+
return b.build();
|
|
128
86
|
};
|
|
129
87
|
export const se_DeleteMembersCommand = async (input, context) => {
|
|
130
|
-
const
|
|
88
|
+
const b = rb(input, context);
|
|
131
89
|
const headers = {
|
|
132
90
|
"content-type": "application/json",
|
|
133
91
|
};
|
|
134
|
-
|
|
92
|
+
b.bp("/graph/members/removal");
|
|
135
93
|
let body;
|
|
136
94
|
body = JSON.stringify(take(input, {
|
|
137
95
|
AccountIds: (_) => _json(_),
|
|
138
96
|
GraphArn: [],
|
|
139
97
|
}));
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
hostname,
|
|
143
|
-
port,
|
|
144
|
-
method: "POST",
|
|
145
|
-
headers,
|
|
146
|
-
path: resolvedPath,
|
|
147
|
-
body,
|
|
148
|
-
});
|
|
98
|
+
b.m("POST").h(headers).b(body);
|
|
99
|
+
return b.build();
|
|
149
100
|
};
|
|
150
101
|
export const se_DescribeOrganizationConfigurationCommand = async (input, context) => {
|
|
151
|
-
const
|
|
102
|
+
const b = rb(input, context);
|
|
152
103
|
const headers = {
|
|
153
104
|
"content-type": "application/json",
|
|
154
105
|
};
|
|
155
|
-
|
|
106
|
+
b.bp("/orgs/describeOrganizationConfiguration");
|
|
156
107
|
let body;
|
|
157
108
|
body = JSON.stringify(take(input, {
|
|
158
109
|
GraphArn: [],
|
|
159
110
|
}));
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
hostname,
|
|
163
|
-
port,
|
|
164
|
-
method: "POST",
|
|
165
|
-
headers,
|
|
166
|
-
path: resolvedPath,
|
|
167
|
-
body,
|
|
168
|
-
});
|
|
111
|
+
b.m("POST").h(headers).b(body);
|
|
112
|
+
return b.build();
|
|
169
113
|
};
|
|
170
114
|
export const se_DisableOrganizationAdminAccountCommand = async (input, context) => {
|
|
171
|
-
const
|
|
115
|
+
const b = rb(input, context);
|
|
172
116
|
const headers = {
|
|
173
117
|
"content-type": "application/json",
|
|
174
118
|
};
|
|
175
|
-
|
|
119
|
+
b.bp("/orgs/disableAdminAccount");
|
|
176
120
|
let body;
|
|
177
121
|
body = "";
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
hostname,
|
|
181
|
-
port,
|
|
182
|
-
method: "POST",
|
|
183
|
-
headers,
|
|
184
|
-
path: resolvedPath,
|
|
185
|
-
body,
|
|
186
|
-
});
|
|
122
|
+
b.m("POST").h(headers).b(body);
|
|
123
|
+
return b.build();
|
|
187
124
|
};
|
|
188
125
|
export const se_DisassociateMembershipCommand = async (input, context) => {
|
|
189
|
-
const
|
|
126
|
+
const b = rb(input, context);
|
|
190
127
|
const headers = {
|
|
191
128
|
"content-type": "application/json",
|
|
192
129
|
};
|
|
193
|
-
|
|
130
|
+
b.bp("/membership/removal");
|
|
194
131
|
let body;
|
|
195
132
|
body = JSON.stringify(take(input, {
|
|
196
133
|
GraphArn: [],
|
|
197
134
|
}));
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
hostname,
|
|
201
|
-
port,
|
|
202
|
-
method: "POST",
|
|
203
|
-
headers,
|
|
204
|
-
path: resolvedPath,
|
|
205
|
-
body,
|
|
206
|
-
});
|
|
135
|
+
b.m("POST").h(headers).b(body);
|
|
136
|
+
return b.build();
|
|
207
137
|
};
|
|
208
138
|
export const se_EnableOrganizationAdminAccountCommand = async (input, context) => {
|
|
209
|
-
const
|
|
139
|
+
const b = rb(input, context);
|
|
210
140
|
const headers = {
|
|
211
141
|
"content-type": "application/json",
|
|
212
142
|
};
|
|
213
|
-
|
|
143
|
+
b.bp("/orgs/enableAdminAccount");
|
|
214
144
|
let body;
|
|
215
145
|
body = JSON.stringify(take(input, {
|
|
216
146
|
AccountId: [],
|
|
217
147
|
}));
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
hostname,
|
|
221
|
-
port,
|
|
222
|
-
method: "POST",
|
|
223
|
-
headers,
|
|
224
|
-
path: resolvedPath,
|
|
225
|
-
body,
|
|
226
|
-
});
|
|
148
|
+
b.m("POST").h(headers).b(body);
|
|
149
|
+
return b.build();
|
|
227
150
|
};
|
|
228
151
|
export const se_GetInvestigationCommand = async (input, context) => {
|
|
229
|
-
const
|
|
152
|
+
const b = rb(input, context);
|
|
230
153
|
const headers = {
|
|
231
154
|
"content-type": "application/json",
|
|
232
155
|
};
|
|
233
|
-
|
|
156
|
+
b.bp("/investigations/getInvestigation");
|
|
234
157
|
let body;
|
|
235
158
|
body = JSON.stringify(take(input, {
|
|
236
159
|
GraphArn: [],
|
|
237
160
|
InvestigationId: [],
|
|
238
161
|
}));
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
hostname,
|
|
242
|
-
port,
|
|
243
|
-
method: "POST",
|
|
244
|
-
headers,
|
|
245
|
-
path: resolvedPath,
|
|
246
|
-
body,
|
|
247
|
-
});
|
|
162
|
+
b.m("POST").h(headers).b(body);
|
|
163
|
+
return b.build();
|
|
248
164
|
};
|
|
249
165
|
export const se_GetMembersCommand = async (input, context) => {
|
|
250
|
-
const
|
|
166
|
+
const b = rb(input, context);
|
|
251
167
|
const headers = {
|
|
252
168
|
"content-type": "application/json",
|
|
253
169
|
};
|
|
254
|
-
|
|
170
|
+
b.bp("/graph/members/get");
|
|
255
171
|
let body;
|
|
256
172
|
body = JSON.stringify(take(input, {
|
|
257
173
|
AccountIds: (_) => _json(_),
|
|
258
174
|
GraphArn: [],
|
|
259
175
|
}));
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
hostname,
|
|
263
|
-
port,
|
|
264
|
-
method: "POST",
|
|
265
|
-
headers,
|
|
266
|
-
path: resolvedPath,
|
|
267
|
-
body,
|
|
268
|
-
});
|
|
176
|
+
b.m("POST").h(headers).b(body);
|
|
177
|
+
return b.build();
|
|
269
178
|
};
|
|
270
179
|
export const se_ListDatasourcePackagesCommand = async (input, context) => {
|
|
271
|
-
const
|
|
180
|
+
const b = rb(input, context);
|
|
272
181
|
const headers = {
|
|
273
182
|
"content-type": "application/json",
|
|
274
183
|
};
|
|
275
|
-
|
|
184
|
+
b.bp("/graph/datasources/list");
|
|
276
185
|
let body;
|
|
277
186
|
body = JSON.stringify(take(input, {
|
|
278
187
|
GraphArn: [],
|
|
279
188
|
MaxResults: [],
|
|
280
189
|
NextToken: [],
|
|
281
190
|
}));
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
hostname,
|
|
285
|
-
port,
|
|
286
|
-
method: "POST",
|
|
287
|
-
headers,
|
|
288
|
-
path: resolvedPath,
|
|
289
|
-
body,
|
|
290
|
-
});
|
|
191
|
+
b.m("POST").h(headers).b(body);
|
|
192
|
+
return b.build();
|
|
291
193
|
};
|
|
292
194
|
export const se_ListGraphsCommand = async (input, context) => {
|
|
293
|
-
const
|
|
195
|
+
const b = rb(input, context);
|
|
294
196
|
const headers = {
|
|
295
197
|
"content-type": "application/json",
|
|
296
198
|
};
|
|
297
|
-
|
|
199
|
+
b.bp("/graphs/list");
|
|
298
200
|
let body;
|
|
299
201
|
body = JSON.stringify(take(input, {
|
|
300
202
|
MaxResults: [],
|
|
301
203
|
NextToken: [],
|
|
302
204
|
}));
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
hostname,
|
|
306
|
-
port,
|
|
307
|
-
method: "POST",
|
|
308
|
-
headers,
|
|
309
|
-
path: resolvedPath,
|
|
310
|
-
body,
|
|
311
|
-
});
|
|
205
|
+
b.m("POST").h(headers).b(body);
|
|
206
|
+
return b.build();
|
|
312
207
|
};
|
|
313
208
|
export const se_ListIndicatorsCommand = async (input, context) => {
|
|
314
|
-
const
|
|
209
|
+
const b = rb(input, context);
|
|
315
210
|
const headers = {
|
|
316
211
|
"content-type": "application/json",
|
|
317
212
|
};
|
|
318
|
-
|
|
213
|
+
b.bp("/investigations/listIndicators");
|
|
319
214
|
let body;
|
|
320
215
|
body = JSON.stringify(take(input, {
|
|
321
216
|
GraphArn: [],
|
|
@@ -324,22 +219,15 @@ export const se_ListIndicatorsCommand = async (input, context) => {
|
|
|
324
219
|
MaxResults: [],
|
|
325
220
|
NextToken: [],
|
|
326
221
|
}));
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
hostname,
|
|
330
|
-
port,
|
|
331
|
-
method: "POST",
|
|
332
|
-
headers,
|
|
333
|
-
path: resolvedPath,
|
|
334
|
-
body,
|
|
335
|
-
});
|
|
222
|
+
b.m("POST").h(headers).b(body);
|
|
223
|
+
return b.build();
|
|
336
224
|
};
|
|
337
225
|
export const se_ListInvestigationsCommand = async (input, context) => {
|
|
338
|
-
const
|
|
226
|
+
const b = rb(input, context);
|
|
339
227
|
const headers = {
|
|
340
228
|
"content-type": "application/json",
|
|
341
229
|
};
|
|
342
|
-
|
|
230
|
+
b.bp("/investigations/listInvestigations");
|
|
343
231
|
let body;
|
|
344
232
|
body = JSON.stringify(take(input, {
|
|
345
233
|
FilterCriteria: (_) => se_FilterCriteria(_, context),
|
|
@@ -348,122 +236,80 @@ export const se_ListInvestigationsCommand = async (input, context) => {
|
|
|
348
236
|
NextToken: [],
|
|
349
237
|
SortCriteria: (_) => _json(_),
|
|
350
238
|
}));
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
hostname,
|
|
354
|
-
port,
|
|
355
|
-
method: "POST",
|
|
356
|
-
headers,
|
|
357
|
-
path: resolvedPath,
|
|
358
|
-
body,
|
|
359
|
-
});
|
|
239
|
+
b.m("POST").h(headers).b(body);
|
|
240
|
+
return b.build();
|
|
360
241
|
};
|
|
361
242
|
export const se_ListInvitationsCommand = async (input, context) => {
|
|
362
|
-
const
|
|
243
|
+
const b = rb(input, context);
|
|
363
244
|
const headers = {
|
|
364
245
|
"content-type": "application/json",
|
|
365
246
|
};
|
|
366
|
-
|
|
247
|
+
b.bp("/invitations/list");
|
|
367
248
|
let body;
|
|
368
249
|
body = JSON.stringify(take(input, {
|
|
369
250
|
MaxResults: [],
|
|
370
251
|
NextToken: [],
|
|
371
252
|
}));
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
hostname,
|
|
375
|
-
port,
|
|
376
|
-
method: "POST",
|
|
377
|
-
headers,
|
|
378
|
-
path: resolvedPath,
|
|
379
|
-
body,
|
|
380
|
-
});
|
|
253
|
+
b.m("POST").h(headers).b(body);
|
|
254
|
+
return b.build();
|
|
381
255
|
};
|
|
382
256
|
export const se_ListMembersCommand = async (input, context) => {
|
|
383
|
-
const
|
|
257
|
+
const b = rb(input, context);
|
|
384
258
|
const headers = {
|
|
385
259
|
"content-type": "application/json",
|
|
386
260
|
};
|
|
387
|
-
|
|
261
|
+
b.bp("/graph/members/list");
|
|
388
262
|
let body;
|
|
389
263
|
body = JSON.stringify(take(input, {
|
|
390
264
|
GraphArn: [],
|
|
391
265
|
MaxResults: [],
|
|
392
266
|
NextToken: [],
|
|
393
267
|
}));
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
hostname,
|
|
397
|
-
port,
|
|
398
|
-
method: "POST",
|
|
399
|
-
headers,
|
|
400
|
-
path: resolvedPath,
|
|
401
|
-
body,
|
|
402
|
-
});
|
|
268
|
+
b.m("POST").h(headers).b(body);
|
|
269
|
+
return b.build();
|
|
403
270
|
};
|
|
404
271
|
export const se_ListOrganizationAdminAccountsCommand = async (input, context) => {
|
|
405
|
-
const
|
|
272
|
+
const b = rb(input, context);
|
|
406
273
|
const headers = {
|
|
407
274
|
"content-type": "application/json",
|
|
408
275
|
};
|
|
409
|
-
|
|
276
|
+
b.bp("/orgs/adminAccountslist");
|
|
410
277
|
let body;
|
|
411
278
|
body = JSON.stringify(take(input, {
|
|
412
279
|
MaxResults: [],
|
|
413
280
|
NextToken: [],
|
|
414
281
|
}));
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
hostname,
|
|
418
|
-
port,
|
|
419
|
-
method: "POST",
|
|
420
|
-
headers,
|
|
421
|
-
path: resolvedPath,
|
|
422
|
-
body,
|
|
423
|
-
});
|
|
282
|
+
b.m("POST").h(headers).b(body);
|
|
283
|
+
return b.build();
|
|
424
284
|
};
|
|
425
285
|
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
426
|
-
const
|
|
286
|
+
const b = rb(input, context);
|
|
427
287
|
const headers = {};
|
|
428
|
-
|
|
429
|
-
|
|
288
|
+
b.bp("/tags/{ResourceArn}");
|
|
289
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
430
290
|
let body;
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
hostname,
|
|
434
|
-
port,
|
|
435
|
-
method: "GET",
|
|
436
|
-
headers,
|
|
437
|
-
path: resolvedPath,
|
|
438
|
-
body,
|
|
439
|
-
});
|
|
291
|
+
b.m("GET").h(headers).b(body);
|
|
292
|
+
return b.build();
|
|
440
293
|
};
|
|
441
294
|
export const se_RejectInvitationCommand = async (input, context) => {
|
|
442
|
-
const
|
|
295
|
+
const b = rb(input, context);
|
|
443
296
|
const headers = {
|
|
444
297
|
"content-type": "application/json",
|
|
445
298
|
};
|
|
446
|
-
|
|
299
|
+
b.bp("/invitation/removal");
|
|
447
300
|
let body;
|
|
448
301
|
body = JSON.stringify(take(input, {
|
|
449
302
|
GraphArn: [],
|
|
450
303
|
}));
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
hostname,
|
|
454
|
-
port,
|
|
455
|
-
method: "POST",
|
|
456
|
-
headers,
|
|
457
|
-
path: resolvedPath,
|
|
458
|
-
body,
|
|
459
|
-
});
|
|
304
|
+
b.m("POST").h(headers).b(body);
|
|
305
|
+
return b.build();
|
|
460
306
|
};
|
|
461
307
|
export const se_StartInvestigationCommand = async (input, context) => {
|
|
462
|
-
const
|
|
308
|
+
const b = rb(input, context);
|
|
463
309
|
const headers = {
|
|
464
310
|
"content-type": "application/json",
|
|
465
311
|
};
|
|
466
|
-
|
|
312
|
+
b.bp("/investigations/startInvestigation");
|
|
467
313
|
let body;
|
|
468
314
|
body = JSON.stringify(take(input, {
|
|
469
315
|
EntityArn: [],
|
|
@@ -471,144 +317,94 @@ export const se_StartInvestigationCommand = async (input, context) => {
|
|
|
471
317
|
ScopeEndTime: (_) => _.toISOString().split(".")[0] + "Z",
|
|
472
318
|
ScopeStartTime: (_) => _.toISOString().split(".")[0] + "Z",
|
|
473
319
|
}));
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
hostname,
|
|
477
|
-
port,
|
|
478
|
-
method: "POST",
|
|
479
|
-
headers,
|
|
480
|
-
path: resolvedPath,
|
|
481
|
-
body,
|
|
482
|
-
});
|
|
320
|
+
b.m("POST").h(headers).b(body);
|
|
321
|
+
return b.build();
|
|
483
322
|
};
|
|
484
323
|
export const se_StartMonitoringMemberCommand = async (input, context) => {
|
|
485
|
-
const
|
|
324
|
+
const b = rb(input, context);
|
|
486
325
|
const headers = {
|
|
487
326
|
"content-type": "application/json",
|
|
488
327
|
};
|
|
489
|
-
|
|
328
|
+
b.bp("/graph/member/monitoringstate");
|
|
490
329
|
let body;
|
|
491
330
|
body = JSON.stringify(take(input, {
|
|
492
331
|
AccountId: [],
|
|
493
332
|
GraphArn: [],
|
|
494
333
|
}));
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
hostname,
|
|
498
|
-
port,
|
|
499
|
-
method: "POST",
|
|
500
|
-
headers,
|
|
501
|
-
path: resolvedPath,
|
|
502
|
-
body,
|
|
503
|
-
});
|
|
334
|
+
b.m("POST").h(headers).b(body);
|
|
335
|
+
return b.build();
|
|
504
336
|
};
|
|
505
337
|
export const se_TagResourceCommand = async (input, context) => {
|
|
506
|
-
const
|
|
338
|
+
const b = rb(input, context);
|
|
507
339
|
const headers = {
|
|
508
340
|
"content-type": "application/json",
|
|
509
341
|
};
|
|
510
|
-
|
|
511
|
-
|
|
342
|
+
b.bp("/tags/{ResourceArn}");
|
|
343
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
512
344
|
let body;
|
|
513
345
|
body = JSON.stringify(take(input, {
|
|
514
346
|
Tags: (_) => _json(_),
|
|
515
347
|
}));
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
hostname,
|
|
519
|
-
port,
|
|
520
|
-
method: "POST",
|
|
521
|
-
headers,
|
|
522
|
-
path: resolvedPath,
|
|
523
|
-
body,
|
|
524
|
-
});
|
|
348
|
+
b.m("POST").h(headers).b(body);
|
|
349
|
+
return b.build();
|
|
525
350
|
};
|
|
526
351
|
export const se_UntagResourceCommand = async (input, context) => {
|
|
527
|
-
const
|
|
352
|
+
const b = rb(input, context);
|
|
528
353
|
const headers = {};
|
|
529
|
-
|
|
530
|
-
|
|
354
|
+
b.bp("/tags/{ResourceArn}");
|
|
355
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
531
356
|
const query = map({
|
|
532
|
-
|
|
357
|
+
[_tK]: [
|
|
533
358
|
__expectNonNull(input.TagKeys, `TagKeys`) != null,
|
|
534
|
-
() => (input
|
|
359
|
+
() => (input[_TK] || []).map((_entry) => _entry),
|
|
535
360
|
],
|
|
536
361
|
});
|
|
537
362
|
let body;
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
hostname,
|
|
541
|
-
port,
|
|
542
|
-
method: "DELETE",
|
|
543
|
-
headers,
|
|
544
|
-
path: resolvedPath,
|
|
545
|
-
query,
|
|
546
|
-
body,
|
|
547
|
-
});
|
|
363
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
364
|
+
return b.build();
|
|
548
365
|
};
|
|
549
366
|
export const se_UpdateDatasourcePackagesCommand = async (input, context) => {
|
|
550
|
-
const
|
|
367
|
+
const b = rb(input, context);
|
|
551
368
|
const headers = {
|
|
552
369
|
"content-type": "application/json",
|
|
553
370
|
};
|
|
554
|
-
|
|
371
|
+
b.bp("/graph/datasources/update");
|
|
555
372
|
let body;
|
|
556
373
|
body = JSON.stringify(take(input, {
|
|
557
374
|
DatasourcePackages: (_) => _json(_),
|
|
558
375
|
GraphArn: [],
|
|
559
376
|
}));
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
hostname,
|
|
563
|
-
port,
|
|
564
|
-
method: "POST",
|
|
565
|
-
headers,
|
|
566
|
-
path: resolvedPath,
|
|
567
|
-
body,
|
|
568
|
-
});
|
|
377
|
+
b.m("POST").h(headers).b(body);
|
|
378
|
+
return b.build();
|
|
569
379
|
};
|
|
570
380
|
export const se_UpdateInvestigationStateCommand = async (input, context) => {
|
|
571
|
-
const
|
|
381
|
+
const b = rb(input, context);
|
|
572
382
|
const headers = {
|
|
573
383
|
"content-type": "application/json",
|
|
574
384
|
};
|
|
575
|
-
|
|
385
|
+
b.bp("/investigations/updateInvestigationState");
|
|
576
386
|
let body;
|
|
577
387
|
body = JSON.stringify(take(input, {
|
|
578
388
|
GraphArn: [],
|
|
579
389
|
InvestigationId: [],
|
|
580
390
|
State: [],
|
|
581
391
|
}));
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
hostname,
|
|
585
|
-
port,
|
|
586
|
-
method: "POST",
|
|
587
|
-
headers,
|
|
588
|
-
path: resolvedPath,
|
|
589
|
-
body,
|
|
590
|
-
});
|
|
392
|
+
b.m("POST").h(headers).b(body);
|
|
393
|
+
return b.build();
|
|
591
394
|
};
|
|
592
395
|
export const se_UpdateOrganizationConfigurationCommand = async (input, context) => {
|
|
593
|
-
const
|
|
396
|
+
const b = rb(input, context);
|
|
594
397
|
const headers = {
|
|
595
398
|
"content-type": "application/json",
|
|
596
399
|
};
|
|
597
|
-
|
|
400
|
+
b.bp("/orgs/updateOrganizationConfiguration");
|
|
598
401
|
let body;
|
|
599
402
|
body = JSON.stringify(take(input, {
|
|
600
403
|
AutoEnable: [],
|
|
601
404
|
GraphArn: [],
|
|
602
405
|
}));
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
hostname,
|
|
606
|
-
port,
|
|
607
|
-
method: "POST",
|
|
608
|
-
headers,
|
|
609
|
-
path: resolvedPath,
|
|
610
|
-
body,
|
|
611
|
-
});
|
|
406
|
+
b.m("POST").h(headers).b(body);
|
|
407
|
+
return b.build();
|
|
612
408
|
};
|
|
613
409
|
export const de_AcceptInvitationCommand = async (output, context) => {
|
|
614
410
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2106,6 +1902,8 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
2106
1902
|
value !== "" &&
|
|
2107
1903
|
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
2108
1904
|
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
1905
|
+
const _TK = "TagKeys";
|
|
1906
|
+
const _tK = "tagKeys";
|
|
2109
1907
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
2110
1908
|
if (encoded.length) {
|
|
2111
1909
|
return JSON.parse(encoded);
|