@aws-sdk/client-detective 3.928.0 → 3.930.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/index.js +933 -1345
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-es/DetectiveClient.js +2 -0
- package/dist-es/commands/AcceptInvitationCommand.js +3 -9
- package/dist-es/commands/BatchGetGraphMemberDatasourcesCommand.js +3 -9
- package/dist-es/commands/BatchGetMembershipDatasourcesCommand.js +3 -9
- package/dist-es/commands/CreateGraphCommand.js +3 -9
- package/dist-es/commands/CreateMembersCommand.js +3 -10
- package/dist-es/commands/DeleteGraphCommand.js +3 -9
- package/dist-es/commands/DeleteMembersCommand.js +3 -9
- package/dist-es/commands/DescribeOrganizationConfigurationCommand.js +3 -9
- package/dist-es/commands/DisableOrganizationAdminAccountCommand.js +3 -9
- package/dist-es/commands/DisassociateMembershipCommand.js +3 -9
- package/dist-es/commands/EnableOrganizationAdminAccountCommand.js +3 -9
- package/dist-es/commands/GetInvestigationCommand.js +3 -9
- package/dist-es/commands/GetMembersCommand.js +3 -10
- package/dist-es/commands/ListDatasourcePackagesCommand.js +3 -9
- package/dist-es/commands/ListGraphsCommand.js +3 -9
- package/dist-es/commands/ListIndicatorsCommand.js +3 -9
- package/dist-es/commands/ListInvestigationsCommand.js +3 -9
- package/dist-es/commands/ListInvitationsCommand.js +3 -10
- package/dist-es/commands/ListMembersCommand.js +3 -10
- package/dist-es/commands/ListOrganizationAdminAccountsCommand.js +3 -9
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
- package/dist-es/commands/RejectInvitationCommand.js +3 -9
- package/dist-es/commands/StartInvestigationCommand.js +3 -9
- package/dist-es/commands/StartMonitoringMemberCommand.js +3 -9
- package/dist-es/commands/TagResourceCommand.js +3 -9
- package/dist-es/commands/UntagResourceCommand.js +3 -9
- package/dist-es/commands/UpdateDatasourcePackagesCommand.js +3 -9
- package/dist-es/commands/UpdateInvestigationStateCommand.js +3 -9
- package/dist-es/commands/UpdateOrganizationConfigurationCommand.js +3 -9
- package/dist-es/models/models_0.js +0 -30
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +862 -0
- package/dist-types/DetectiveClient.d.ts +10 -1
- package/dist-types/models/models_0.d.ts +0 -28
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +2 -5
- package/dist-types/schemas/schemas_0.d.ts +134 -0
- package/dist-types/ts3.4/DetectiveClient.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +0 -17
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +141 -0
- package/package.json +33 -33
- package/dist-es/protocols/Aws_restJson1.js +0 -1088
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -263
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -353
|
@@ -1,1088 +0,0 @@
|
|
|
1
|
-
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
2
|
-
import { requestBuilder as rb } from "@smithy/core";
|
|
3
|
-
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, serializeDateTime as __serializeDateTime, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
|
-
import { DetectiveServiceException as __BaseException } from "../models/DetectiveServiceException";
|
|
5
|
-
import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, TooManyRequestsException, ValidationException, } from "../models/models_0";
|
|
6
|
-
export const se_AcceptInvitationCommand = async (input, context) => {
|
|
7
|
-
const b = rb(input, context);
|
|
8
|
-
const headers = {
|
|
9
|
-
"content-type": "application/json",
|
|
10
|
-
};
|
|
11
|
-
b.bp("/invitation");
|
|
12
|
-
let body;
|
|
13
|
-
body = JSON.stringify(take(input, {
|
|
14
|
-
GraphArn: [],
|
|
15
|
-
}));
|
|
16
|
-
b.m("PUT").h(headers).b(body);
|
|
17
|
-
return b.build();
|
|
18
|
-
};
|
|
19
|
-
export const se_BatchGetGraphMemberDatasourcesCommand = async (input, context) => {
|
|
20
|
-
const b = rb(input, context);
|
|
21
|
-
const headers = {
|
|
22
|
-
"content-type": "application/json",
|
|
23
|
-
};
|
|
24
|
-
b.bp("/graph/datasources/get");
|
|
25
|
-
let body;
|
|
26
|
-
body = JSON.stringify(take(input, {
|
|
27
|
-
AccountIds: (_) => _json(_),
|
|
28
|
-
GraphArn: [],
|
|
29
|
-
}));
|
|
30
|
-
b.m("POST").h(headers).b(body);
|
|
31
|
-
return b.build();
|
|
32
|
-
};
|
|
33
|
-
export const se_BatchGetMembershipDatasourcesCommand = async (input, context) => {
|
|
34
|
-
const b = rb(input, context);
|
|
35
|
-
const headers = {
|
|
36
|
-
"content-type": "application/json",
|
|
37
|
-
};
|
|
38
|
-
b.bp("/membership/datasources/get");
|
|
39
|
-
let body;
|
|
40
|
-
body = JSON.stringify(take(input, {
|
|
41
|
-
GraphArns: (_) => _json(_),
|
|
42
|
-
}));
|
|
43
|
-
b.m("POST").h(headers).b(body);
|
|
44
|
-
return b.build();
|
|
45
|
-
};
|
|
46
|
-
export const se_CreateGraphCommand = async (input, context) => {
|
|
47
|
-
const b = rb(input, context);
|
|
48
|
-
const headers = {
|
|
49
|
-
"content-type": "application/json",
|
|
50
|
-
};
|
|
51
|
-
b.bp("/graph");
|
|
52
|
-
let body;
|
|
53
|
-
body = JSON.stringify(take(input, {
|
|
54
|
-
Tags: (_) => _json(_),
|
|
55
|
-
}));
|
|
56
|
-
b.m("POST").h(headers).b(body);
|
|
57
|
-
return b.build();
|
|
58
|
-
};
|
|
59
|
-
export const se_CreateMembersCommand = async (input, context) => {
|
|
60
|
-
const b = rb(input, context);
|
|
61
|
-
const headers = {
|
|
62
|
-
"content-type": "application/json",
|
|
63
|
-
};
|
|
64
|
-
b.bp("/graph/members");
|
|
65
|
-
let body;
|
|
66
|
-
body = JSON.stringify(take(input, {
|
|
67
|
-
Accounts: (_) => _json(_),
|
|
68
|
-
DisableEmailNotification: [],
|
|
69
|
-
GraphArn: [],
|
|
70
|
-
Message: [],
|
|
71
|
-
}));
|
|
72
|
-
b.m("POST").h(headers).b(body);
|
|
73
|
-
return b.build();
|
|
74
|
-
};
|
|
75
|
-
export const se_DeleteGraphCommand = async (input, context) => {
|
|
76
|
-
const b = rb(input, context);
|
|
77
|
-
const headers = {
|
|
78
|
-
"content-type": "application/json",
|
|
79
|
-
};
|
|
80
|
-
b.bp("/graph/removal");
|
|
81
|
-
let body;
|
|
82
|
-
body = JSON.stringify(take(input, {
|
|
83
|
-
GraphArn: [],
|
|
84
|
-
}));
|
|
85
|
-
b.m("POST").h(headers).b(body);
|
|
86
|
-
return b.build();
|
|
87
|
-
};
|
|
88
|
-
export const se_DeleteMembersCommand = async (input, context) => {
|
|
89
|
-
const b = rb(input, context);
|
|
90
|
-
const headers = {
|
|
91
|
-
"content-type": "application/json",
|
|
92
|
-
};
|
|
93
|
-
b.bp("/graph/members/removal");
|
|
94
|
-
let body;
|
|
95
|
-
body = JSON.stringify(take(input, {
|
|
96
|
-
AccountIds: (_) => _json(_),
|
|
97
|
-
GraphArn: [],
|
|
98
|
-
}));
|
|
99
|
-
b.m("POST").h(headers).b(body);
|
|
100
|
-
return b.build();
|
|
101
|
-
};
|
|
102
|
-
export const se_DescribeOrganizationConfigurationCommand = async (input, context) => {
|
|
103
|
-
const b = rb(input, context);
|
|
104
|
-
const headers = {
|
|
105
|
-
"content-type": "application/json",
|
|
106
|
-
};
|
|
107
|
-
b.bp("/orgs/describeOrganizationConfiguration");
|
|
108
|
-
let body;
|
|
109
|
-
body = JSON.stringify(take(input, {
|
|
110
|
-
GraphArn: [],
|
|
111
|
-
}));
|
|
112
|
-
b.m("POST").h(headers).b(body);
|
|
113
|
-
return b.build();
|
|
114
|
-
};
|
|
115
|
-
export const se_DisableOrganizationAdminAccountCommand = async (input, context) => {
|
|
116
|
-
const b = rb(input, context);
|
|
117
|
-
const headers = {};
|
|
118
|
-
b.bp("/orgs/disableAdminAccount");
|
|
119
|
-
let body;
|
|
120
|
-
b.m("POST").h(headers).b(body);
|
|
121
|
-
return b.build();
|
|
122
|
-
};
|
|
123
|
-
export const se_DisassociateMembershipCommand = async (input, context) => {
|
|
124
|
-
const b = rb(input, context);
|
|
125
|
-
const headers = {
|
|
126
|
-
"content-type": "application/json",
|
|
127
|
-
};
|
|
128
|
-
b.bp("/membership/removal");
|
|
129
|
-
let body;
|
|
130
|
-
body = JSON.stringify(take(input, {
|
|
131
|
-
GraphArn: [],
|
|
132
|
-
}));
|
|
133
|
-
b.m("POST").h(headers).b(body);
|
|
134
|
-
return b.build();
|
|
135
|
-
};
|
|
136
|
-
export const se_EnableOrganizationAdminAccountCommand = async (input, context) => {
|
|
137
|
-
const b = rb(input, context);
|
|
138
|
-
const headers = {
|
|
139
|
-
"content-type": "application/json",
|
|
140
|
-
};
|
|
141
|
-
b.bp("/orgs/enableAdminAccount");
|
|
142
|
-
let body;
|
|
143
|
-
body = JSON.stringify(take(input, {
|
|
144
|
-
AccountId: [],
|
|
145
|
-
}));
|
|
146
|
-
b.m("POST").h(headers).b(body);
|
|
147
|
-
return b.build();
|
|
148
|
-
};
|
|
149
|
-
export const se_GetInvestigationCommand = async (input, context) => {
|
|
150
|
-
const b = rb(input, context);
|
|
151
|
-
const headers = {
|
|
152
|
-
"content-type": "application/json",
|
|
153
|
-
};
|
|
154
|
-
b.bp("/investigations/getInvestigation");
|
|
155
|
-
let body;
|
|
156
|
-
body = JSON.stringify(take(input, {
|
|
157
|
-
GraphArn: [],
|
|
158
|
-
InvestigationId: [],
|
|
159
|
-
}));
|
|
160
|
-
b.m("POST").h(headers).b(body);
|
|
161
|
-
return b.build();
|
|
162
|
-
};
|
|
163
|
-
export const se_GetMembersCommand = async (input, context) => {
|
|
164
|
-
const b = rb(input, context);
|
|
165
|
-
const headers = {
|
|
166
|
-
"content-type": "application/json",
|
|
167
|
-
};
|
|
168
|
-
b.bp("/graph/members/get");
|
|
169
|
-
let body;
|
|
170
|
-
body = JSON.stringify(take(input, {
|
|
171
|
-
AccountIds: (_) => _json(_),
|
|
172
|
-
GraphArn: [],
|
|
173
|
-
}));
|
|
174
|
-
b.m("POST").h(headers).b(body);
|
|
175
|
-
return b.build();
|
|
176
|
-
};
|
|
177
|
-
export const se_ListDatasourcePackagesCommand = async (input, context) => {
|
|
178
|
-
const b = rb(input, context);
|
|
179
|
-
const headers = {
|
|
180
|
-
"content-type": "application/json",
|
|
181
|
-
};
|
|
182
|
-
b.bp("/graph/datasources/list");
|
|
183
|
-
let body;
|
|
184
|
-
body = JSON.stringify(take(input, {
|
|
185
|
-
GraphArn: [],
|
|
186
|
-
MaxResults: [],
|
|
187
|
-
NextToken: [],
|
|
188
|
-
}));
|
|
189
|
-
b.m("POST").h(headers).b(body);
|
|
190
|
-
return b.build();
|
|
191
|
-
};
|
|
192
|
-
export const se_ListGraphsCommand = async (input, context) => {
|
|
193
|
-
const b = rb(input, context);
|
|
194
|
-
const headers = {
|
|
195
|
-
"content-type": "application/json",
|
|
196
|
-
};
|
|
197
|
-
b.bp("/graphs/list");
|
|
198
|
-
let body;
|
|
199
|
-
body = JSON.stringify(take(input, {
|
|
200
|
-
MaxResults: [],
|
|
201
|
-
NextToken: [],
|
|
202
|
-
}));
|
|
203
|
-
b.m("POST").h(headers).b(body);
|
|
204
|
-
return b.build();
|
|
205
|
-
};
|
|
206
|
-
export const se_ListIndicatorsCommand = async (input, context) => {
|
|
207
|
-
const b = rb(input, context);
|
|
208
|
-
const headers = {
|
|
209
|
-
"content-type": "application/json",
|
|
210
|
-
};
|
|
211
|
-
b.bp("/investigations/listIndicators");
|
|
212
|
-
let body;
|
|
213
|
-
body = JSON.stringify(take(input, {
|
|
214
|
-
GraphArn: [],
|
|
215
|
-
IndicatorType: [],
|
|
216
|
-
InvestigationId: [],
|
|
217
|
-
MaxResults: [],
|
|
218
|
-
NextToken: [],
|
|
219
|
-
}));
|
|
220
|
-
b.m("POST").h(headers).b(body);
|
|
221
|
-
return b.build();
|
|
222
|
-
};
|
|
223
|
-
export const se_ListInvestigationsCommand = async (input, context) => {
|
|
224
|
-
const b = rb(input, context);
|
|
225
|
-
const headers = {
|
|
226
|
-
"content-type": "application/json",
|
|
227
|
-
};
|
|
228
|
-
b.bp("/investigations/listInvestigations");
|
|
229
|
-
let body;
|
|
230
|
-
body = JSON.stringify(take(input, {
|
|
231
|
-
FilterCriteria: (_) => se_FilterCriteria(_, context),
|
|
232
|
-
GraphArn: [],
|
|
233
|
-
MaxResults: [],
|
|
234
|
-
NextToken: [],
|
|
235
|
-
SortCriteria: (_) => _json(_),
|
|
236
|
-
}));
|
|
237
|
-
b.m("POST").h(headers).b(body);
|
|
238
|
-
return b.build();
|
|
239
|
-
};
|
|
240
|
-
export const se_ListInvitationsCommand = async (input, context) => {
|
|
241
|
-
const b = rb(input, context);
|
|
242
|
-
const headers = {
|
|
243
|
-
"content-type": "application/json",
|
|
244
|
-
};
|
|
245
|
-
b.bp("/invitations/list");
|
|
246
|
-
let body;
|
|
247
|
-
body = JSON.stringify(take(input, {
|
|
248
|
-
MaxResults: [],
|
|
249
|
-
NextToken: [],
|
|
250
|
-
}));
|
|
251
|
-
b.m("POST").h(headers).b(body);
|
|
252
|
-
return b.build();
|
|
253
|
-
};
|
|
254
|
-
export const se_ListMembersCommand = async (input, context) => {
|
|
255
|
-
const b = rb(input, context);
|
|
256
|
-
const headers = {
|
|
257
|
-
"content-type": "application/json",
|
|
258
|
-
};
|
|
259
|
-
b.bp("/graph/members/list");
|
|
260
|
-
let body;
|
|
261
|
-
body = JSON.stringify(take(input, {
|
|
262
|
-
GraphArn: [],
|
|
263
|
-
MaxResults: [],
|
|
264
|
-
NextToken: [],
|
|
265
|
-
}));
|
|
266
|
-
b.m("POST").h(headers).b(body);
|
|
267
|
-
return b.build();
|
|
268
|
-
};
|
|
269
|
-
export const se_ListOrganizationAdminAccountsCommand = async (input, context) => {
|
|
270
|
-
const b = rb(input, context);
|
|
271
|
-
const headers = {
|
|
272
|
-
"content-type": "application/json",
|
|
273
|
-
};
|
|
274
|
-
b.bp("/orgs/adminAccountslist");
|
|
275
|
-
let body;
|
|
276
|
-
body = JSON.stringify(take(input, {
|
|
277
|
-
MaxResults: [],
|
|
278
|
-
NextToken: [],
|
|
279
|
-
}));
|
|
280
|
-
b.m("POST").h(headers).b(body);
|
|
281
|
-
return b.build();
|
|
282
|
-
};
|
|
283
|
-
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
284
|
-
const b = rb(input, context);
|
|
285
|
-
const headers = {};
|
|
286
|
-
b.bp("/tags/{ResourceArn}");
|
|
287
|
-
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
288
|
-
let body;
|
|
289
|
-
b.m("GET").h(headers).b(body);
|
|
290
|
-
return b.build();
|
|
291
|
-
};
|
|
292
|
-
export const se_RejectInvitationCommand = async (input, context) => {
|
|
293
|
-
const b = rb(input, context);
|
|
294
|
-
const headers = {
|
|
295
|
-
"content-type": "application/json",
|
|
296
|
-
};
|
|
297
|
-
b.bp("/invitation/removal");
|
|
298
|
-
let body;
|
|
299
|
-
body = JSON.stringify(take(input, {
|
|
300
|
-
GraphArn: [],
|
|
301
|
-
}));
|
|
302
|
-
b.m("POST").h(headers).b(body);
|
|
303
|
-
return b.build();
|
|
304
|
-
};
|
|
305
|
-
export const se_StartInvestigationCommand = async (input, context) => {
|
|
306
|
-
const b = rb(input, context);
|
|
307
|
-
const headers = {
|
|
308
|
-
"content-type": "application/json",
|
|
309
|
-
};
|
|
310
|
-
b.bp("/investigations/startInvestigation");
|
|
311
|
-
let body;
|
|
312
|
-
body = JSON.stringify(take(input, {
|
|
313
|
-
EntityArn: [],
|
|
314
|
-
GraphArn: [],
|
|
315
|
-
ScopeEndTime: (_) => __serializeDateTime(_),
|
|
316
|
-
ScopeStartTime: (_) => __serializeDateTime(_),
|
|
317
|
-
}));
|
|
318
|
-
b.m("POST").h(headers).b(body);
|
|
319
|
-
return b.build();
|
|
320
|
-
};
|
|
321
|
-
export const se_StartMonitoringMemberCommand = async (input, context) => {
|
|
322
|
-
const b = rb(input, context);
|
|
323
|
-
const headers = {
|
|
324
|
-
"content-type": "application/json",
|
|
325
|
-
};
|
|
326
|
-
b.bp("/graph/member/monitoringstate");
|
|
327
|
-
let body;
|
|
328
|
-
body = JSON.stringify(take(input, {
|
|
329
|
-
AccountId: [],
|
|
330
|
-
GraphArn: [],
|
|
331
|
-
}));
|
|
332
|
-
b.m("POST").h(headers).b(body);
|
|
333
|
-
return b.build();
|
|
334
|
-
};
|
|
335
|
-
export const se_TagResourceCommand = async (input, context) => {
|
|
336
|
-
const b = rb(input, context);
|
|
337
|
-
const headers = {
|
|
338
|
-
"content-type": "application/json",
|
|
339
|
-
};
|
|
340
|
-
b.bp("/tags/{ResourceArn}");
|
|
341
|
-
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
342
|
-
let body;
|
|
343
|
-
body = JSON.stringify(take(input, {
|
|
344
|
-
Tags: (_) => _json(_),
|
|
345
|
-
}));
|
|
346
|
-
b.m("POST").h(headers).b(body);
|
|
347
|
-
return b.build();
|
|
348
|
-
};
|
|
349
|
-
export const se_UntagResourceCommand = async (input, context) => {
|
|
350
|
-
const b = rb(input, context);
|
|
351
|
-
const headers = {};
|
|
352
|
-
b.bp("/tags/{ResourceArn}");
|
|
353
|
-
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
354
|
-
const query = map({
|
|
355
|
-
[_tK]: [__expectNonNull(input.TagKeys, `TagKeys`) != null, () => input[_TK] || []],
|
|
356
|
-
});
|
|
357
|
-
let body;
|
|
358
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
359
|
-
return b.build();
|
|
360
|
-
};
|
|
361
|
-
export const se_UpdateDatasourcePackagesCommand = async (input, context) => {
|
|
362
|
-
const b = rb(input, context);
|
|
363
|
-
const headers = {
|
|
364
|
-
"content-type": "application/json",
|
|
365
|
-
};
|
|
366
|
-
b.bp("/graph/datasources/update");
|
|
367
|
-
let body;
|
|
368
|
-
body = JSON.stringify(take(input, {
|
|
369
|
-
DatasourcePackages: (_) => _json(_),
|
|
370
|
-
GraphArn: [],
|
|
371
|
-
}));
|
|
372
|
-
b.m("POST").h(headers).b(body);
|
|
373
|
-
return b.build();
|
|
374
|
-
};
|
|
375
|
-
export const se_UpdateInvestigationStateCommand = async (input, context) => {
|
|
376
|
-
const b = rb(input, context);
|
|
377
|
-
const headers = {
|
|
378
|
-
"content-type": "application/json",
|
|
379
|
-
};
|
|
380
|
-
b.bp("/investigations/updateInvestigationState");
|
|
381
|
-
let body;
|
|
382
|
-
body = JSON.stringify(take(input, {
|
|
383
|
-
GraphArn: [],
|
|
384
|
-
InvestigationId: [],
|
|
385
|
-
State: [],
|
|
386
|
-
}));
|
|
387
|
-
b.m("POST").h(headers).b(body);
|
|
388
|
-
return b.build();
|
|
389
|
-
};
|
|
390
|
-
export const se_UpdateOrganizationConfigurationCommand = async (input, context) => {
|
|
391
|
-
const b = rb(input, context);
|
|
392
|
-
const headers = {
|
|
393
|
-
"content-type": "application/json",
|
|
394
|
-
};
|
|
395
|
-
b.bp("/orgs/updateOrganizationConfiguration");
|
|
396
|
-
let body;
|
|
397
|
-
body = JSON.stringify(take(input, {
|
|
398
|
-
AutoEnable: [],
|
|
399
|
-
GraphArn: [],
|
|
400
|
-
}));
|
|
401
|
-
b.m("POST").h(headers).b(body);
|
|
402
|
-
return b.build();
|
|
403
|
-
};
|
|
404
|
-
export const de_AcceptInvitationCommand = async (output, context) => {
|
|
405
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
406
|
-
return de_CommandError(output, context);
|
|
407
|
-
}
|
|
408
|
-
const contents = map({
|
|
409
|
-
$metadata: deserializeMetadata(output),
|
|
410
|
-
});
|
|
411
|
-
await collectBody(output.body, context);
|
|
412
|
-
return contents;
|
|
413
|
-
};
|
|
414
|
-
export const de_BatchGetGraphMemberDatasourcesCommand = async (output, context) => {
|
|
415
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
416
|
-
return de_CommandError(output, context);
|
|
417
|
-
}
|
|
418
|
-
const contents = map({
|
|
419
|
-
$metadata: deserializeMetadata(output),
|
|
420
|
-
});
|
|
421
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
422
|
-
const doc = take(data, {
|
|
423
|
-
MemberDatasources: (_) => de_MembershipDatasourcesList(_, context),
|
|
424
|
-
UnprocessedAccounts: _json,
|
|
425
|
-
});
|
|
426
|
-
Object.assign(contents, doc);
|
|
427
|
-
return contents;
|
|
428
|
-
};
|
|
429
|
-
export const de_BatchGetMembershipDatasourcesCommand = async (output, context) => {
|
|
430
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
431
|
-
return de_CommandError(output, context);
|
|
432
|
-
}
|
|
433
|
-
const contents = map({
|
|
434
|
-
$metadata: deserializeMetadata(output),
|
|
435
|
-
});
|
|
436
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
437
|
-
const doc = take(data, {
|
|
438
|
-
MembershipDatasources: (_) => de_MembershipDatasourcesList(_, context),
|
|
439
|
-
UnprocessedGraphs: _json,
|
|
440
|
-
});
|
|
441
|
-
Object.assign(contents, doc);
|
|
442
|
-
return contents;
|
|
443
|
-
};
|
|
444
|
-
export const de_CreateGraphCommand = async (output, context) => {
|
|
445
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
446
|
-
return de_CommandError(output, context);
|
|
447
|
-
}
|
|
448
|
-
const contents = map({
|
|
449
|
-
$metadata: deserializeMetadata(output),
|
|
450
|
-
});
|
|
451
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
452
|
-
const doc = take(data, {
|
|
453
|
-
GraphArn: __expectString,
|
|
454
|
-
});
|
|
455
|
-
Object.assign(contents, doc);
|
|
456
|
-
return contents;
|
|
457
|
-
};
|
|
458
|
-
export const de_CreateMembersCommand = async (output, context) => {
|
|
459
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
460
|
-
return de_CommandError(output, context);
|
|
461
|
-
}
|
|
462
|
-
const contents = map({
|
|
463
|
-
$metadata: deserializeMetadata(output),
|
|
464
|
-
});
|
|
465
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
466
|
-
const doc = take(data, {
|
|
467
|
-
Members: (_) => de_MemberDetailList(_, context),
|
|
468
|
-
UnprocessedAccounts: _json,
|
|
469
|
-
});
|
|
470
|
-
Object.assign(contents, doc);
|
|
471
|
-
return contents;
|
|
472
|
-
};
|
|
473
|
-
export const de_DeleteGraphCommand = async (output, context) => {
|
|
474
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
475
|
-
return de_CommandError(output, context);
|
|
476
|
-
}
|
|
477
|
-
const contents = map({
|
|
478
|
-
$metadata: deserializeMetadata(output),
|
|
479
|
-
});
|
|
480
|
-
await collectBody(output.body, context);
|
|
481
|
-
return contents;
|
|
482
|
-
};
|
|
483
|
-
export const de_DeleteMembersCommand = async (output, context) => {
|
|
484
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
485
|
-
return de_CommandError(output, context);
|
|
486
|
-
}
|
|
487
|
-
const contents = map({
|
|
488
|
-
$metadata: deserializeMetadata(output),
|
|
489
|
-
});
|
|
490
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
491
|
-
const doc = take(data, {
|
|
492
|
-
AccountIds: _json,
|
|
493
|
-
UnprocessedAccounts: _json,
|
|
494
|
-
});
|
|
495
|
-
Object.assign(contents, doc);
|
|
496
|
-
return contents;
|
|
497
|
-
};
|
|
498
|
-
export const de_DescribeOrganizationConfigurationCommand = async (output, context) => {
|
|
499
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
500
|
-
return de_CommandError(output, context);
|
|
501
|
-
}
|
|
502
|
-
const contents = map({
|
|
503
|
-
$metadata: deserializeMetadata(output),
|
|
504
|
-
});
|
|
505
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
506
|
-
const doc = take(data, {
|
|
507
|
-
AutoEnable: __expectBoolean,
|
|
508
|
-
});
|
|
509
|
-
Object.assign(contents, doc);
|
|
510
|
-
return contents;
|
|
511
|
-
};
|
|
512
|
-
export const de_DisableOrganizationAdminAccountCommand = async (output, context) => {
|
|
513
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
514
|
-
return de_CommandError(output, context);
|
|
515
|
-
}
|
|
516
|
-
const contents = map({
|
|
517
|
-
$metadata: deserializeMetadata(output),
|
|
518
|
-
});
|
|
519
|
-
await collectBody(output.body, context);
|
|
520
|
-
return contents;
|
|
521
|
-
};
|
|
522
|
-
export const de_DisassociateMembershipCommand = async (output, context) => {
|
|
523
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
524
|
-
return de_CommandError(output, context);
|
|
525
|
-
}
|
|
526
|
-
const contents = map({
|
|
527
|
-
$metadata: deserializeMetadata(output),
|
|
528
|
-
});
|
|
529
|
-
await collectBody(output.body, context);
|
|
530
|
-
return contents;
|
|
531
|
-
};
|
|
532
|
-
export const de_EnableOrganizationAdminAccountCommand = async (output, context) => {
|
|
533
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
534
|
-
return de_CommandError(output, context);
|
|
535
|
-
}
|
|
536
|
-
const contents = map({
|
|
537
|
-
$metadata: deserializeMetadata(output),
|
|
538
|
-
});
|
|
539
|
-
await collectBody(output.body, context);
|
|
540
|
-
return contents;
|
|
541
|
-
};
|
|
542
|
-
export const de_GetInvestigationCommand = async (output, context) => {
|
|
543
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
544
|
-
return de_CommandError(output, context);
|
|
545
|
-
}
|
|
546
|
-
const contents = map({
|
|
547
|
-
$metadata: deserializeMetadata(output),
|
|
548
|
-
});
|
|
549
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
550
|
-
const doc = take(data, {
|
|
551
|
-
CreatedTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
552
|
-
EntityArn: __expectString,
|
|
553
|
-
EntityType: __expectString,
|
|
554
|
-
GraphArn: __expectString,
|
|
555
|
-
InvestigationId: __expectString,
|
|
556
|
-
ScopeEndTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
557
|
-
ScopeStartTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
558
|
-
Severity: __expectString,
|
|
559
|
-
State: __expectString,
|
|
560
|
-
Status: __expectString,
|
|
561
|
-
});
|
|
562
|
-
Object.assign(contents, doc);
|
|
563
|
-
return contents;
|
|
564
|
-
};
|
|
565
|
-
export const de_GetMembersCommand = async (output, context) => {
|
|
566
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
567
|
-
return de_CommandError(output, context);
|
|
568
|
-
}
|
|
569
|
-
const contents = map({
|
|
570
|
-
$metadata: deserializeMetadata(output),
|
|
571
|
-
});
|
|
572
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
573
|
-
const doc = take(data, {
|
|
574
|
-
MemberDetails: (_) => de_MemberDetailList(_, context),
|
|
575
|
-
UnprocessedAccounts: _json,
|
|
576
|
-
});
|
|
577
|
-
Object.assign(contents, doc);
|
|
578
|
-
return contents;
|
|
579
|
-
};
|
|
580
|
-
export const de_ListDatasourcePackagesCommand = async (output, context) => {
|
|
581
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
582
|
-
return de_CommandError(output, context);
|
|
583
|
-
}
|
|
584
|
-
const contents = map({
|
|
585
|
-
$metadata: deserializeMetadata(output),
|
|
586
|
-
});
|
|
587
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
588
|
-
const doc = take(data, {
|
|
589
|
-
DatasourcePackages: (_) => de_DatasourcePackageIngestDetails(_, context),
|
|
590
|
-
NextToken: __expectString,
|
|
591
|
-
});
|
|
592
|
-
Object.assign(contents, doc);
|
|
593
|
-
return contents;
|
|
594
|
-
};
|
|
595
|
-
export const de_ListGraphsCommand = async (output, context) => {
|
|
596
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
597
|
-
return de_CommandError(output, context);
|
|
598
|
-
}
|
|
599
|
-
const contents = map({
|
|
600
|
-
$metadata: deserializeMetadata(output),
|
|
601
|
-
});
|
|
602
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
603
|
-
const doc = take(data, {
|
|
604
|
-
GraphList: (_) => de_GraphList(_, context),
|
|
605
|
-
NextToken: __expectString,
|
|
606
|
-
});
|
|
607
|
-
Object.assign(contents, doc);
|
|
608
|
-
return contents;
|
|
609
|
-
};
|
|
610
|
-
export const de_ListIndicatorsCommand = async (output, context) => {
|
|
611
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
612
|
-
return de_CommandError(output, context);
|
|
613
|
-
}
|
|
614
|
-
const contents = map({
|
|
615
|
-
$metadata: deserializeMetadata(output),
|
|
616
|
-
});
|
|
617
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
618
|
-
const doc = take(data, {
|
|
619
|
-
GraphArn: __expectString,
|
|
620
|
-
Indicators: _json,
|
|
621
|
-
InvestigationId: __expectString,
|
|
622
|
-
NextToken: __expectString,
|
|
623
|
-
});
|
|
624
|
-
Object.assign(contents, doc);
|
|
625
|
-
return contents;
|
|
626
|
-
};
|
|
627
|
-
export const de_ListInvestigationsCommand = async (output, context) => {
|
|
628
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
629
|
-
return de_CommandError(output, context);
|
|
630
|
-
}
|
|
631
|
-
const contents = map({
|
|
632
|
-
$metadata: deserializeMetadata(output),
|
|
633
|
-
});
|
|
634
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
635
|
-
const doc = take(data, {
|
|
636
|
-
InvestigationDetails: (_) => de_InvestigationDetails(_, context),
|
|
637
|
-
NextToken: __expectString,
|
|
638
|
-
});
|
|
639
|
-
Object.assign(contents, doc);
|
|
640
|
-
return contents;
|
|
641
|
-
};
|
|
642
|
-
export const de_ListInvitationsCommand = async (output, context) => {
|
|
643
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
644
|
-
return de_CommandError(output, context);
|
|
645
|
-
}
|
|
646
|
-
const contents = map({
|
|
647
|
-
$metadata: deserializeMetadata(output),
|
|
648
|
-
});
|
|
649
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
650
|
-
const doc = take(data, {
|
|
651
|
-
Invitations: (_) => de_MemberDetailList(_, context),
|
|
652
|
-
NextToken: __expectString,
|
|
653
|
-
});
|
|
654
|
-
Object.assign(contents, doc);
|
|
655
|
-
return contents;
|
|
656
|
-
};
|
|
657
|
-
export const de_ListMembersCommand = async (output, context) => {
|
|
658
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
659
|
-
return de_CommandError(output, context);
|
|
660
|
-
}
|
|
661
|
-
const contents = map({
|
|
662
|
-
$metadata: deserializeMetadata(output),
|
|
663
|
-
});
|
|
664
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
665
|
-
const doc = take(data, {
|
|
666
|
-
MemberDetails: (_) => de_MemberDetailList(_, context),
|
|
667
|
-
NextToken: __expectString,
|
|
668
|
-
});
|
|
669
|
-
Object.assign(contents, doc);
|
|
670
|
-
return contents;
|
|
671
|
-
};
|
|
672
|
-
export const de_ListOrganizationAdminAccountsCommand = async (output, context) => {
|
|
673
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
674
|
-
return de_CommandError(output, context);
|
|
675
|
-
}
|
|
676
|
-
const contents = map({
|
|
677
|
-
$metadata: deserializeMetadata(output),
|
|
678
|
-
});
|
|
679
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
680
|
-
const doc = take(data, {
|
|
681
|
-
Administrators: (_) => de_AdministratorList(_, context),
|
|
682
|
-
NextToken: __expectString,
|
|
683
|
-
});
|
|
684
|
-
Object.assign(contents, doc);
|
|
685
|
-
return contents;
|
|
686
|
-
};
|
|
687
|
-
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
688
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
689
|
-
return de_CommandError(output, context);
|
|
690
|
-
}
|
|
691
|
-
const contents = map({
|
|
692
|
-
$metadata: deserializeMetadata(output),
|
|
693
|
-
});
|
|
694
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
695
|
-
const doc = take(data, {
|
|
696
|
-
Tags: _json,
|
|
697
|
-
});
|
|
698
|
-
Object.assign(contents, doc);
|
|
699
|
-
return contents;
|
|
700
|
-
};
|
|
701
|
-
export const de_RejectInvitationCommand = async (output, context) => {
|
|
702
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
703
|
-
return de_CommandError(output, context);
|
|
704
|
-
}
|
|
705
|
-
const contents = map({
|
|
706
|
-
$metadata: deserializeMetadata(output),
|
|
707
|
-
});
|
|
708
|
-
await collectBody(output.body, context);
|
|
709
|
-
return contents;
|
|
710
|
-
};
|
|
711
|
-
export const de_StartInvestigationCommand = async (output, context) => {
|
|
712
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
713
|
-
return de_CommandError(output, context);
|
|
714
|
-
}
|
|
715
|
-
const contents = map({
|
|
716
|
-
$metadata: deserializeMetadata(output),
|
|
717
|
-
});
|
|
718
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
719
|
-
const doc = take(data, {
|
|
720
|
-
InvestigationId: __expectString,
|
|
721
|
-
});
|
|
722
|
-
Object.assign(contents, doc);
|
|
723
|
-
return contents;
|
|
724
|
-
};
|
|
725
|
-
export const de_StartMonitoringMemberCommand = async (output, context) => {
|
|
726
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
727
|
-
return de_CommandError(output, context);
|
|
728
|
-
}
|
|
729
|
-
const contents = map({
|
|
730
|
-
$metadata: deserializeMetadata(output),
|
|
731
|
-
});
|
|
732
|
-
await collectBody(output.body, context);
|
|
733
|
-
return contents;
|
|
734
|
-
};
|
|
735
|
-
export const de_TagResourceCommand = async (output, context) => {
|
|
736
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
737
|
-
return de_CommandError(output, context);
|
|
738
|
-
}
|
|
739
|
-
const contents = map({
|
|
740
|
-
$metadata: deserializeMetadata(output),
|
|
741
|
-
});
|
|
742
|
-
await collectBody(output.body, context);
|
|
743
|
-
return contents;
|
|
744
|
-
};
|
|
745
|
-
export const de_UntagResourceCommand = async (output, context) => {
|
|
746
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
747
|
-
return de_CommandError(output, context);
|
|
748
|
-
}
|
|
749
|
-
const contents = map({
|
|
750
|
-
$metadata: deserializeMetadata(output),
|
|
751
|
-
});
|
|
752
|
-
await collectBody(output.body, context);
|
|
753
|
-
return contents;
|
|
754
|
-
};
|
|
755
|
-
export const de_UpdateDatasourcePackagesCommand = async (output, context) => {
|
|
756
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
757
|
-
return de_CommandError(output, context);
|
|
758
|
-
}
|
|
759
|
-
const contents = map({
|
|
760
|
-
$metadata: deserializeMetadata(output),
|
|
761
|
-
});
|
|
762
|
-
await collectBody(output.body, context);
|
|
763
|
-
return contents;
|
|
764
|
-
};
|
|
765
|
-
export const de_UpdateInvestigationStateCommand = async (output, context) => {
|
|
766
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
767
|
-
return de_CommandError(output, context);
|
|
768
|
-
}
|
|
769
|
-
const contents = map({
|
|
770
|
-
$metadata: deserializeMetadata(output),
|
|
771
|
-
});
|
|
772
|
-
await collectBody(output.body, context);
|
|
773
|
-
return contents;
|
|
774
|
-
};
|
|
775
|
-
export const de_UpdateOrganizationConfigurationCommand = async (output, context) => {
|
|
776
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
777
|
-
return de_CommandError(output, context);
|
|
778
|
-
}
|
|
779
|
-
const contents = map({
|
|
780
|
-
$metadata: deserializeMetadata(output),
|
|
781
|
-
});
|
|
782
|
-
await collectBody(output.body, context);
|
|
783
|
-
return contents;
|
|
784
|
-
};
|
|
785
|
-
const de_CommandError = async (output, context) => {
|
|
786
|
-
const parsedOutput = {
|
|
787
|
-
...output,
|
|
788
|
-
body: await parseErrorBody(output.body, context),
|
|
789
|
-
};
|
|
790
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
791
|
-
switch (errorCode) {
|
|
792
|
-
case "AccessDeniedException":
|
|
793
|
-
case "com.amazonaws.detective#AccessDeniedException":
|
|
794
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
795
|
-
case "ConflictException":
|
|
796
|
-
case "com.amazonaws.detective#ConflictException":
|
|
797
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
798
|
-
case "InternalServerException":
|
|
799
|
-
case "com.amazonaws.detective#InternalServerException":
|
|
800
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
801
|
-
case "ResourceNotFoundException":
|
|
802
|
-
case "com.amazonaws.detective#ResourceNotFoundException":
|
|
803
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
804
|
-
case "ValidationException":
|
|
805
|
-
case "com.amazonaws.detective#ValidationException":
|
|
806
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
807
|
-
case "ServiceQuotaExceededException":
|
|
808
|
-
case "com.amazonaws.detective#ServiceQuotaExceededException":
|
|
809
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
810
|
-
case "TooManyRequestsException":
|
|
811
|
-
case "com.amazonaws.detective#TooManyRequestsException":
|
|
812
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
813
|
-
default:
|
|
814
|
-
const parsedBody = parsedOutput.body;
|
|
815
|
-
return throwDefaultError({
|
|
816
|
-
output,
|
|
817
|
-
parsedBody,
|
|
818
|
-
errorCode,
|
|
819
|
-
});
|
|
820
|
-
}
|
|
821
|
-
};
|
|
822
|
-
const throwDefaultError = withBaseException(__BaseException);
|
|
823
|
-
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
824
|
-
const contents = map({});
|
|
825
|
-
const data = parsedOutput.body;
|
|
826
|
-
const doc = take(data, {
|
|
827
|
-
ErrorCode: __expectString,
|
|
828
|
-
ErrorCodeReason: __expectString,
|
|
829
|
-
Message: __expectString,
|
|
830
|
-
SubErrorCode: __expectString,
|
|
831
|
-
SubErrorCodeReason: __expectString,
|
|
832
|
-
});
|
|
833
|
-
Object.assign(contents, doc);
|
|
834
|
-
const exception = new AccessDeniedException({
|
|
835
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
836
|
-
...contents,
|
|
837
|
-
});
|
|
838
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
839
|
-
};
|
|
840
|
-
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
841
|
-
const contents = map({});
|
|
842
|
-
const data = parsedOutput.body;
|
|
843
|
-
const doc = take(data, {
|
|
844
|
-
Message: __expectString,
|
|
845
|
-
});
|
|
846
|
-
Object.assign(contents, doc);
|
|
847
|
-
const exception = new ConflictException({
|
|
848
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
849
|
-
...contents,
|
|
850
|
-
});
|
|
851
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
852
|
-
};
|
|
853
|
-
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
854
|
-
const contents = map({});
|
|
855
|
-
const data = parsedOutput.body;
|
|
856
|
-
const doc = take(data, {
|
|
857
|
-
Message: __expectString,
|
|
858
|
-
});
|
|
859
|
-
Object.assign(contents, doc);
|
|
860
|
-
const exception = new InternalServerException({
|
|
861
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
862
|
-
...contents,
|
|
863
|
-
});
|
|
864
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
865
|
-
};
|
|
866
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
867
|
-
const contents = map({});
|
|
868
|
-
const data = parsedOutput.body;
|
|
869
|
-
const doc = take(data, {
|
|
870
|
-
Message: __expectString,
|
|
871
|
-
});
|
|
872
|
-
Object.assign(contents, doc);
|
|
873
|
-
const exception = new ResourceNotFoundException({
|
|
874
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
875
|
-
...contents,
|
|
876
|
-
});
|
|
877
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
878
|
-
};
|
|
879
|
-
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
880
|
-
const contents = map({});
|
|
881
|
-
const data = parsedOutput.body;
|
|
882
|
-
const doc = take(data, {
|
|
883
|
-
Message: __expectString,
|
|
884
|
-
Resources: _json,
|
|
885
|
-
});
|
|
886
|
-
Object.assign(contents, doc);
|
|
887
|
-
const exception = new ServiceQuotaExceededException({
|
|
888
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
889
|
-
...contents,
|
|
890
|
-
});
|
|
891
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
892
|
-
};
|
|
893
|
-
const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
|
|
894
|
-
const contents = map({});
|
|
895
|
-
const data = parsedOutput.body;
|
|
896
|
-
const doc = take(data, {
|
|
897
|
-
Message: __expectString,
|
|
898
|
-
});
|
|
899
|
-
Object.assign(contents, doc);
|
|
900
|
-
const exception = new TooManyRequestsException({
|
|
901
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
902
|
-
...contents,
|
|
903
|
-
});
|
|
904
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
905
|
-
};
|
|
906
|
-
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
907
|
-
const contents = map({});
|
|
908
|
-
const data = parsedOutput.body;
|
|
909
|
-
const doc = take(data, {
|
|
910
|
-
ErrorCode: __expectString,
|
|
911
|
-
ErrorCodeReason: __expectString,
|
|
912
|
-
Message: __expectString,
|
|
913
|
-
});
|
|
914
|
-
Object.assign(contents, doc);
|
|
915
|
-
const exception = new ValidationException({
|
|
916
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
917
|
-
...contents,
|
|
918
|
-
});
|
|
919
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
920
|
-
};
|
|
921
|
-
const se_DateFilter = (input, context) => {
|
|
922
|
-
return take(input, {
|
|
923
|
-
EndInclusive: __serializeDateTime,
|
|
924
|
-
StartInclusive: __serializeDateTime,
|
|
925
|
-
});
|
|
926
|
-
};
|
|
927
|
-
const se_FilterCriteria = (input, context) => {
|
|
928
|
-
return take(input, {
|
|
929
|
-
CreatedTime: (_) => se_DateFilter(_, context),
|
|
930
|
-
EntityArn: _json,
|
|
931
|
-
Severity: _json,
|
|
932
|
-
State: _json,
|
|
933
|
-
Status: _json,
|
|
934
|
-
});
|
|
935
|
-
};
|
|
936
|
-
const de_Administrator = (output, context) => {
|
|
937
|
-
return take(output, {
|
|
938
|
-
AccountId: __expectString,
|
|
939
|
-
DelegationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
940
|
-
GraphArn: __expectString,
|
|
941
|
-
});
|
|
942
|
-
};
|
|
943
|
-
const de_AdministratorList = (output, context) => {
|
|
944
|
-
const retVal = (output || [])
|
|
945
|
-
.filter((e) => e != null)
|
|
946
|
-
.map((entry) => {
|
|
947
|
-
return de_Administrator(entry, context);
|
|
948
|
-
});
|
|
949
|
-
return retVal;
|
|
950
|
-
};
|
|
951
|
-
const de_DatasourcePackageIngestDetail = (output, context) => {
|
|
952
|
-
return take(output, {
|
|
953
|
-
DatasourcePackageIngestState: __expectString,
|
|
954
|
-
LastIngestStateChange: (_) => de_LastIngestStateChangeDates(_, context),
|
|
955
|
-
});
|
|
956
|
-
};
|
|
957
|
-
const de_DatasourcePackageIngestDetails = (output, context) => {
|
|
958
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
959
|
-
if (value === null) {
|
|
960
|
-
return acc;
|
|
961
|
-
}
|
|
962
|
-
acc[key] = de_DatasourcePackageIngestDetail(value, context);
|
|
963
|
-
return acc;
|
|
964
|
-
}, {});
|
|
965
|
-
};
|
|
966
|
-
const de_DatasourcePackageIngestHistory = (output, context) => {
|
|
967
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
968
|
-
if (value === null) {
|
|
969
|
-
return acc;
|
|
970
|
-
}
|
|
971
|
-
acc[key] = de_LastIngestStateChangeDates(value, context);
|
|
972
|
-
return acc;
|
|
973
|
-
}, {});
|
|
974
|
-
};
|
|
975
|
-
const de_DatasourcePackageUsageInfo = (output, context) => {
|
|
976
|
-
return take(output, {
|
|
977
|
-
VolumeUsageInBytes: __expectLong,
|
|
978
|
-
VolumeUsageUpdateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
979
|
-
});
|
|
980
|
-
};
|
|
981
|
-
const de_Graph = (output, context) => {
|
|
982
|
-
return take(output, {
|
|
983
|
-
Arn: __expectString,
|
|
984
|
-
CreatedTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
985
|
-
});
|
|
986
|
-
};
|
|
987
|
-
const de_GraphList = (output, context) => {
|
|
988
|
-
const retVal = (output || [])
|
|
989
|
-
.filter((e) => e != null)
|
|
990
|
-
.map((entry) => {
|
|
991
|
-
return de_Graph(entry, context);
|
|
992
|
-
});
|
|
993
|
-
return retVal;
|
|
994
|
-
};
|
|
995
|
-
const de_InvestigationDetail = (output, context) => {
|
|
996
|
-
return take(output, {
|
|
997
|
-
CreatedTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
998
|
-
EntityArn: __expectString,
|
|
999
|
-
EntityType: __expectString,
|
|
1000
|
-
InvestigationId: __expectString,
|
|
1001
|
-
Severity: __expectString,
|
|
1002
|
-
State: __expectString,
|
|
1003
|
-
Status: __expectString,
|
|
1004
|
-
});
|
|
1005
|
-
};
|
|
1006
|
-
const de_InvestigationDetails = (output, context) => {
|
|
1007
|
-
const retVal = (output || [])
|
|
1008
|
-
.filter((e) => e != null)
|
|
1009
|
-
.map((entry) => {
|
|
1010
|
-
return de_InvestigationDetail(entry, context);
|
|
1011
|
-
});
|
|
1012
|
-
return retVal;
|
|
1013
|
-
};
|
|
1014
|
-
const de_LastIngestStateChangeDates = (output, context) => {
|
|
1015
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1016
|
-
if (value === null) {
|
|
1017
|
-
return acc;
|
|
1018
|
-
}
|
|
1019
|
-
acc[key] = de_TimestampForCollection(value, context);
|
|
1020
|
-
return acc;
|
|
1021
|
-
}, {});
|
|
1022
|
-
};
|
|
1023
|
-
const de_MemberDetail = (output, context) => {
|
|
1024
|
-
return take(output, {
|
|
1025
|
-
AccountId: __expectString,
|
|
1026
|
-
AdministratorId: __expectString,
|
|
1027
|
-
DatasourcePackageIngestStates: _json,
|
|
1028
|
-
DisabledReason: __expectString,
|
|
1029
|
-
EmailAddress: __expectString,
|
|
1030
|
-
GraphArn: __expectString,
|
|
1031
|
-
InvitationType: __expectString,
|
|
1032
|
-
InvitedTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1033
|
-
MasterId: __expectString,
|
|
1034
|
-
PercentOfGraphUtilization: __limitedParseDouble,
|
|
1035
|
-
PercentOfGraphUtilizationUpdatedTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1036
|
-
Status: __expectString,
|
|
1037
|
-
UpdatedTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1038
|
-
VolumeUsageByDatasourcePackage: (_) => de_VolumeUsageByDatasourcePackage(_, context),
|
|
1039
|
-
VolumeUsageInBytes: __expectLong,
|
|
1040
|
-
VolumeUsageUpdatedTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1041
|
-
});
|
|
1042
|
-
};
|
|
1043
|
-
const de_MemberDetailList = (output, context) => {
|
|
1044
|
-
const retVal = (output || [])
|
|
1045
|
-
.filter((e) => e != null)
|
|
1046
|
-
.map((entry) => {
|
|
1047
|
-
return de_MemberDetail(entry, context);
|
|
1048
|
-
});
|
|
1049
|
-
return retVal;
|
|
1050
|
-
};
|
|
1051
|
-
const de_MembershipDatasources = (output, context) => {
|
|
1052
|
-
return take(output, {
|
|
1053
|
-
AccountId: __expectString,
|
|
1054
|
-
DatasourcePackageIngestHistory: (_) => de_DatasourcePackageIngestHistory(_, context),
|
|
1055
|
-
GraphArn: __expectString,
|
|
1056
|
-
});
|
|
1057
|
-
};
|
|
1058
|
-
const de_MembershipDatasourcesList = (output, context) => {
|
|
1059
|
-
const retVal = (output || [])
|
|
1060
|
-
.filter((e) => e != null)
|
|
1061
|
-
.map((entry) => {
|
|
1062
|
-
return de_MembershipDatasources(entry, context);
|
|
1063
|
-
});
|
|
1064
|
-
return retVal;
|
|
1065
|
-
};
|
|
1066
|
-
const de_TimestampForCollection = (output, context) => {
|
|
1067
|
-
return take(output, {
|
|
1068
|
-
Timestamp: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1069
|
-
});
|
|
1070
|
-
};
|
|
1071
|
-
const de_VolumeUsageByDatasourcePackage = (output, context) => {
|
|
1072
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1073
|
-
if (value === null) {
|
|
1074
|
-
return acc;
|
|
1075
|
-
}
|
|
1076
|
-
acc[key] = de_DatasourcePackageUsageInfo(value, context);
|
|
1077
|
-
return acc;
|
|
1078
|
-
}, {});
|
|
1079
|
-
};
|
|
1080
|
-
const deserializeMetadata = (output) => ({
|
|
1081
|
-
httpStatusCode: output.statusCode,
|
|
1082
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1083
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1084
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
1085
|
-
});
|
|
1086
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
1087
|
-
const _TK = "TagKeys";
|
|
1088
|
-
const _tK = "tagKeys";
|