@aws-sdk/client-detective 3.489.0 → 3.495.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/Detective.js +1 -69
- package/dist-cjs/DetectiveClient.js +1 -43
- package/dist-cjs/commands/AcceptInvitationCommand.js +1 -28
- package/dist-cjs/commands/BatchGetGraphMemberDatasourcesCommand.js +1 -28
- package/dist-cjs/commands/BatchGetMembershipDatasourcesCommand.js +1 -28
- package/dist-cjs/commands/CreateGraphCommand.js +1 -28
- package/dist-cjs/commands/CreateMembersCommand.js +1 -29
- package/dist-cjs/commands/DeleteGraphCommand.js +1 -28
- package/dist-cjs/commands/DeleteMembersCommand.js +1 -28
- package/dist-cjs/commands/DescribeOrganizationConfigurationCommand.js +1 -28
- package/dist-cjs/commands/DisableOrganizationAdminAccountCommand.js +1 -28
- package/dist-cjs/commands/DisassociateMembershipCommand.js +1 -28
- package/dist-cjs/commands/EnableOrganizationAdminAccountCommand.js +1 -28
- package/dist-cjs/commands/GetInvestigationCommand.js +1 -28
- package/dist-cjs/commands/GetMembersCommand.js +1 -29
- package/dist-cjs/commands/ListDatasourcePackagesCommand.js +1 -28
- package/dist-cjs/commands/ListGraphsCommand.js +1 -28
- package/dist-cjs/commands/ListIndicatorsCommand.js +1 -28
- package/dist-cjs/commands/ListInvestigationsCommand.js +1 -28
- package/dist-cjs/commands/ListInvitationsCommand.js +1 -29
- package/dist-cjs/commands/ListMembersCommand.js +1 -29
- package/dist-cjs/commands/ListOrganizationAdminAccountsCommand.js +1 -28
- package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
- package/dist-cjs/commands/RejectInvitationCommand.js +1 -28
- package/dist-cjs/commands/StartInvestigationCommand.js +1 -28
- package/dist-cjs/commands/StartMonitoringMemberCommand.js +1 -28
- package/dist-cjs/commands/TagResourceCommand.js +1 -28
- package/dist-cjs/commands/UntagResourceCommand.js +1 -28
- package/dist-cjs/commands/UpdateDatasourcePackagesCommand.js +1 -28
- package/dist-cjs/commands/UpdateInvestigationStateCommand.js +1 -28
- package/dist-cjs/commands/UpdateOrganizationConfigurationCommand.js +1 -28
- package/dist-cjs/commands/index.js +1 -32
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +3051 -11
- package/dist-cjs/models/DetectiveServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -218
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/ListDatasourcePackagesPaginator.js +1 -7
- package/dist-cjs/pagination/ListGraphsPaginator.js +1 -7
- package/dist-cjs/pagination/ListInvitationsPaginator.js +1 -7
- package/dist-cjs/pagination/ListMembersPaginator.js +1 -7
- package/dist-cjs/pagination/ListOrganizationAdminAccountsPaginator.js +1 -7
- package/dist-cjs/pagination/index.js +1 -9
- package/dist-cjs/protocols/Aws_restJson1.js +1 -2008
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/package.json +40 -40
|
@@ -1,2008 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.de_ListTagsForResourceCommand = exports.de_ListOrganizationAdminAccountsCommand = exports.de_ListMembersCommand = exports.de_ListInvitationsCommand = exports.de_ListInvestigationsCommand = exports.de_ListIndicatorsCommand = exports.de_ListGraphsCommand = exports.de_ListDatasourcePackagesCommand = exports.de_GetMembersCommand = exports.de_GetInvestigationCommand = exports.de_EnableOrganizationAdminAccountCommand = exports.de_DisassociateMembershipCommand = exports.de_DisableOrganizationAdminAccountCommand = exports.de_DescribeOrganizationConfigurationCommand = exports.de_DeleteMembersCommand = exports.de_DeleteGraphCommand = exports.de_CreateMembersCommand = exports.de_CreateGraphCommand = exports.de_BatchGetMembershipDatasourcesCommand = exports.de_BatchGetGraphMemberDatasourcesCommand = exports.de_AcceptInvitationCommand = exports.se_UpdateOrganizationConfigurationCommand = exports.se_UpdateInvestigationStateCommand = exports.se_UpdateDatasourcePackagesCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StartMonitoringMemberCommand = exports.se_StartInvestigationCommand = exports.se_RejectInvitationCommand = exports.se_ListTagsForResourceCommand = exports.se_ListOrganizationAdminAccountsCommand = exports.se_ListMembersCommand = exports.se_ListInvitationsCommand = exports.se_ListInvestigationsCommand = exports.se_ListIndicatorsCommand = exports.se_ListGraphsCommand = exports.se_ListDatasourcePackagesCommand = exports.se_GetMembersCommand = exports.se_GetInvestigationCommand = exports.se_EnableOrganizationAdminAccountCommand = exports.se_DisassociateMembershipCommand = exports.se_DisableOrganizationAdminAccountCommand = exports.se_DescribeOrganizationConfigurationCommand = exports.se_DeleteMembersCommand = exports.se_DeleteGraphCommand = exports.se_CreateMembersCommand = exports.se_CreateGraphCommand = exports.se_BatchGetMembershipDatasourcesCommand = exports.se_BatchGetGraphMemberDatasourcesCommand = exports.se_AcceptInvitationCommand = void 0;
|
|
4
|
-
exports.de_UpdateOrganizationConfigurationCommand = exports.de_UpdateInvestigationStateCommand = exports.de_UpdateDatasourcePackagesCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StartMonitoringMemberCommand = exports.de_StartInvestigationCommand = exports.de_RejectInvitationCommand = void 0;
|
|
5
|
-
const core_1 = require("@smithy/core");
|
|
6
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
-
const DetectiveServiceException_1 = require("../models/DetectiveServiceException");
|
|
8
|
-
const models_0_1 = require("../models/models_0");
|
|
9
|
-
const se_AcceptInvitationCommand = async (input, context) => {
|
|
10
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
11
|
-
const headers = {
|
|
12
|
-
"content-type": "application/json",
|
|
13
|
-
};
|
|
14
|
-
b.bp("/invitation");
|
|
15
|
-
let body;
|
|
16
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
17
|
-
GraphArn: [],
|
|
18
|
-
}));
|
|
19
|
-
b.m("PUT").h(headers).b(body);
|
|
20
|
-
return b.build();
|
|
21
|
-
};
|
|
22
|
-
exports.se_AcceptInvitationCommand = se_AcceptInvitationCommand;
|
|
23
|
-
const se_BatchGetGraphMemberDatasourcesCommand = async (input, context) => {
|
|
24
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
25
|
-
const headers = {
|
|
26
|
-
"content-type": "application/json",
|
|
27
|
-
};
|
|
28
|
-
b.bp("/graph/datasources/get");
|
|
29
|
-
let body;
|
|
30
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
31
|
-
AccountIds: (_) => (0, smithy_client_1._json)(_),
|
|
32
|
-
GraphArn: [],
|
|
33
|
-
}));
|
|
34
|
-
b.m("POST").h(headers).b(body);
|
|
35
|
-
return b.build();
|
|
36
|
-
};
|
|
37
|
-
exports.se_BatchGetGraphMemberDatasourcesCommand = se_BatchGetGraphMemberDatasourcesCommand;
|
|
38
|
-
const se_BatchGetMembershipDatasourcesCommand = async (input, context) => {
|
|
39
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
40
|
-
const headers = {
|
|
41
|
-
"content-type": "application/json",
|
|
42
|
-
};
|
|
43
|
-
b.bp("/membership/datasources/get");
|
|
44
|
-
let body;
|
|
45
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
46
|
-
GraphArns: (_) => (0, smithy_client_1._json)(_),
|
|
47
|
-
}));
|
|
48
|
-
b.m("POST").h(headers).b(body);
|
|
49
|
-
return b.build();
|
|
50
|
-
};
|
|
51
|
-
exports.se_BatchGetMembershipDatasourcesCommand = se_BatchGetMembershipDatasourcesCommand;
|
|
52
|
-
const se_CreateGraphCommand = async (input, context) => {
|
|
53
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
54
|
-
const headers = {
|
|
55
|
-
"content-type": "application/json",
|
|
56
|
-
};
|
|
57
|
-
b.bp("/graph");
|
|
58
|
-
let body;
|
|
59
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
60
|
-
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
61
|
-
}));
|
|
62
|
-
b.m("POST").h(headers).b(body);
|
|
63
|
-
return b.build();
|
|
64
|
-
};
|
|
65
|
-
exports.se_CreateGraphCommand = se_CreateGraphCommand;
|
|
66
|
-
const se_CreateMembersCommand = async (input, context) => {
|
|
67
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
68
|
-
const headers = {
|
|
69
|
-
"content-type": "application/json",
|
|
70
|
-
};
|
|
71
|
-
b.bp("/graph/members");
|
|
72
|
-
let body;
|
|
73
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
74
|
-
Accounts: (_) => (0, smithy_client_1._json)(_),
|
|
75
|
-
DisableEmailNotification: [],
|
|
76
|
-
GraphArn: [],
|
|
77
|
-
Message: [],
|
|
78
|
-
}));
|
|
79
|
-
b.m("POST").h(headers).b(body);
|
|
80
|
-
return b.build();
|
|
81
|
-
};
|
|
82
|
-
exports.se_CreateMembersCommand = se_CreateMembersCommand;
|
|
83
|
-
const se_DeleteGraphCommand = async (input, context) => {
|
|
84
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
85
|
-
const headers = {
|
|
86
|
-
"content-type": "application/json",
|
|
87
|
-
};
|
|
88
|
-
b.bp("/graph/removal");
|
|
89
|
-
let body;
|
|
90
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
91
|
-
GraphArn: [],
|
|
92
|
-
}));
|
|
93
|
-
b.m("POST").h(headers).b(body);
|
|
94
|
-
return b.build();
|
|
95
|
-
};
|
|
96
|
-
exports.se_DeleteGraphCommand = se_DeleteGraphCommand;
|
|
97
|
-
const se_DeleteMembersCommand = async (input, context) => {
|
|
98
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
99
|
-
const headers = {
|
|
100
|
-
"content-type": "application/json",
|
|
101
|
-
};
|
|
102
|
-
b.bp("/graph/members/removal");
|
|
103
|
-
let body;
|
|
104
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
105
|
-
AccountIds: (_) => (0, smithy_client_1._json)(_),
|
|
106
|
-
GraphArn: [],
|
|
107
|
-
}));
|
|
108
|
-
b.m("POST").h(headers).b(body);
|
|
109
|
-
return b.build();
|
|
110
|
-
};
|
|
111
|
-
exports.se_DeleteMembersCommand = se_DeleteMembersCommand;
|
|
112
|
-
const se_DescribeOrganizationConfigurationCommand = async (input, context) => {
|
|
113
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
114
|
-
const headers = {
|
|
115
|
-
"content-type": "application/json",
|
|
116
|
-
};
|
|
117
|
-
b.bp("/orgs/describeOrganizationConfiguration");
|
|
118
|
-
let body;
|
|
119
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
120
|
-
GraphArn: [],
|
|
121
|
-
}));
|
|
122
|
-
b.m("POST").h(headers).b(body);
|
|
123
|
-
return b.build();
|
|
124
|
-
};
|
|
125
|
-
exports.se_DescribeOrganizationConfigurationCommand = se_DescribeOrganizationConfigurationCommand;
|
|
126
|
-
const se_DisableOrganizationAdminAccountCommand = async (input, context) => {
|
|
127
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
128
|
-
const headers = {
|
|
129
|
-
"content-type": "application/json",
|
|
130
|
-
};
|
|
131
|
-
b.bp("/orgs/disableAdminAccount");
|
|
132
|
-
let body;
|
|
133
|
-
body = "";
|
|
134
|
-
b.m("POST").h(headers).b(body);
|
|
135
|
-
return b.build();
|
|
136
|
-
};
|
|
137
|
-
exports.se_DisableOrganizationAdminAccountCommand = se_DisableOrganizationAdminAccountCommand;
|
|
138
|
-
const se_DisassociateMembershipCommand = async (input, context) => {
|
|
139
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
140
|
-
const headers = {
|
|
141
|
-
"content-type": "application/json",
|
|
142
|
-
};
|
|
143
|
-
b.bp("/membership/removal");
|
|
144
|
-
let body;
|
|
145
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
146
|
-
GraphArn: [],
|
|
147
|
-
}));
|
|
148
|
-
b.m("POST").h(headers).b(body);
|
|
149
|
-
return b.build();
|
|
150
|
-
};
|
|
151
|
-
exports.se_DisassociateMembershipCommand = se_DisassociateMembershipCommand;
|
|
152
|
-
const se_EnableOrganizationAdminAccountCommand = async (input, context) => {
|
|
153
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
154
|
-
const headers = {
|
|
155
|
-
"content-type": "application/json",
|
|
156
|
-
};
|
|
157
|
-
b.bp("/orgs/enableAdminAccount");
|
|
158
|
-
let body;
|
|
159
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
160
|
-
AccountId: [],
|
|
161
|
-
}));
|
|
162
|
-
b.m("POST").h(headers).b(body);
|
|
163
|
-
return b.build();
|
|
164
|
-
};
|
|
165
|
-
exports.se_EnableOrganizationAdminAccountCommand = se_EnableOrganizationAdminAccountCommand;
|
|
166
|
-
const se_GetInvestigationCommand = async (input, context) => {
|
|
167
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
168
|
-
const headers = {
|
|
169
|
-
"content-type": "application/json",
|
|
170
|
-
};
|
|
171
|
-
b.bp("/investigations/getInvestigation");
|
|
172
|
-
let body;
|
|
173
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
174
|
-
GraphArn: [],
|
|
175
|
-
InvestigationId: [],
|
|
176
|
-
}));
|
|
177
|
-
b.m("POST").h(headers).b(body);
|
|
178
|
-
return b.build();
|
|
179
|
-
};
|
|
180
|
-
exports.se_GetInvestigationCommand = se_GetInvestigationCommand;
|
|
181
|
-
const se_GetMembersCommand = async (input, context) => {
|
|
182
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
183
|
-
const headers = {
|
|
184
|
-
"content-type": "application/json",
|
|
185
|
-
};
|
|
186
|
-
b.bp("/graph/members/get");
|
|
187
|
-
let body;
|
|
188
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
189
|
-
AccountIds: (_) => (0, smithy_client_1._json)(_),
|
|
190
|
-
GraphArn: [],
|
|
191
|
-
}));
|
|
192
|
-
b.m("POST").h(headers).b(body);
|
|
193
|
-
return b.build();
|
|
194
|
-
};
|
|
195
|
-
exports.se_GetMembersCommand = se_GetMembersCommand;
|
|
196
|
-
const se_ListDatasourcePackagesCommand = async (input, context) => {
|
|
197
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
198
|
-
const headers = {
|
|
199
|
-
"content-type": "application/json",
|
|
200
|
-
};
|
|
201
|
-
b.bp("/graph/datasources/list");
|
|
202
|
-
let body;
|
|
203
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
204
|
-
GraphArn: [],
|
|
205
|
-
MaxResults: [],
|
|
206
|
-
NextToken: [],
|
|
207
|
-
}));
|
|
208
|
-
b.m("POST").h(headers).b(body);
|
|
209
|
-
return b.build();
|
|
210
|
-
};
|
|
211
|
-
exports.se_ListDatasourcePackagesCommand = se_ListDatasourcePackagesCommand;
|
|
212
|
-
const se_ListGraphsCommand = async (input, context) => {
|
|
213
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
214
|
-
const headers = {
|
|
215
|
-
"content-type": "application/json",
|
|
216
|
-
};
|
|
217
|
-
b.bp("/graphs/list");
|
|
218
|
-
let body;
|
|
219
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
220
|
-
MaxResults: [],
|
|
221
|
-
NextToken: [],
|
|
222
|
-
}));
|
|
223
|
-
b.m("POST").h(headers).b(body);
|
|
224
|
-
return b.build();
|
|
225
|
-
};
|
|
226
|
-
exports.se_ListGraphsCommand = se_ListGraphsCommand;
|
|
227
|
-
const se_ListIndicatorsCommand = async (input, context) => {
|
|
228
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
229
|
-
const headers = {
|
|
230
|
-
"content-type": "application/json",
|
|
231
|
-
};
|
|
232
|
-
b.bp("/investigations/listIndicators");
|
|
233
|
-
let body;
|
|
234
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
235
|
-
GraphArn: [],
|
|
236
|
-
IndicatorType: [],
|
|
237
|
-
InvestigationId: [],
|
|
238
|
-
MaxResults: [],
|
|
239
|
-
NextToken: [],
|
|
240
|
-
}));
|
|
241
|
-
b.m("POST").h(headers).b(body);
|
|
242
|
-
return b.build();
|
|
243
|
-
};
|
|
244
|
-
exports.se_ListIndicatorsCommand = se_ListIndicatorsCommand;
|
|
245
|
-
const se_ListInvestigationsCommand = async (input, context) => {
|
|
246
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
247
|
-
const headers = {
|
|
248
|
-
"content-type": "application/json",
|
|
249
|
-
};
|
|
250
|
-
b.bp("/investigations/listInvestigations");
|
|
251
|
-
let body;
|
|
252
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
253
|
-
FilterCriteria: (_) => se_FilterCriteria(_, context),
|
|
254
|
-
GraphArn: [],
|
|
255
|
-
MaxResults: [],
|
|
256
|
-
NextToken: [],
|
|
257
|
-
SortCriteria: (_) => (0, smithy_client_1._json)(_),
|
|
258
|
-
}));
|
|
259
|
-
b.m("POST").h(headers).b(body);
|
|
260
|
-
return b.build();
|
|
261
|
-
};
|
|
262
|
-
exports.se_ListInvestigationsCommand = se_ListInvestigationsCommand;
|
|
263
|
-
const se_ListInvitationsCommand = async (input, context) => {
|
|
264
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
265
|
-
const headers = {
|
|
266
|
-
"content-type": "application/json",
|
|
267
|
-
};
|
|
268
|
-
b.bp("/invitations/list");
|
|
269
|
-
let body;
|
|
270
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
271
|
-
MaxResults: [],
|
|
272
|
-
NextToken: [],
|
|
273
|
-
}));
|
|
274
|
-
b.m("POST").h(headers).b(body);
|
|
275
|
-
return b.build();
|
|
276
|
-
};
|
|
277
|
-
exports.se_ListInvitationsCommand = se_ListInvitationsCommand;
|
|
278
|
-
const se_ListMembersCommand = async (input, context) => {
|
|
279
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
280
|
-
const headers = {
|
|
281
|
-
"content-type": "application/json",
|
|
282
|
-
};
|
|
283
|
-
b.bp("/graph/members/list");
|
|
284
|
-
let body;
|
|
285
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
286
|
-
GraphArn: [],
|
|
287
|
-
MaxResults: [],
|
|
288
|
-
NextToken: [],
|
|
289
|
-
}));
|
|
290
|
-
b.m("POST").h(headers).b(body);
|
|
291
|
-
return b.build();
|
|
292
|
-
};
|
|
293
|
-
exports.se_ListMembersCommand = se_ListMembersCommand;
|
|
294
|
-
const se_ListOrganizationAdminAccountsCommand = async (input, context) => {
|
|
295
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
296
|
-
const headers = {
|
|
297
|
-
"content-type": "application/json",
|
|
298
|
-
};
|
|
299
|
-
b.bp("/orgs/adminAccountslist");
|
|
300
|
-
let body;
|
|
301
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
302
|
-
MaxResults: [],
|
|
303
|
-
NextToken: [],
|
|
304
|
-
}));
|
|
305
|
-
b.m("POST").h(headers).b(body);
|
|
306
|
-
return b.build();
|
|
307
|
-
};
|
|
308
|
-
exports.se_ListOrganizationAdminAccountsCommand = se_ListOrganizationAdminAccountsCommand;
|
|
309
|
-
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
310
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
311
|
-
const headers = {};
|
|
312
|
-
b.bp("/tags/{ResourceArn}");
|
|
313
|
-
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
314
|
-
let body;
|
|
315
|
-
b.m("GET").h(headers).b(body);
|
|
316
|
-
return b.build();
|
|
317
|
-
};
|
|
318
|
-
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
319
|
-
const se_RejectInvitationCommand = async (input, context) => {
|
|
320
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
321
|
-
const headers = {
|
|
322
|
-
"content-type": "application/json",
|
|
323
|
-
};
|
|
324
|
-
b.bp("/invitation/removal");
|
|
325
|
-
let body;
|
|
326
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
327
|
-
GraphArn: [],
|
|
328
|
-
}));
|
|
329
|
-
b.m("POST").h(headers).b(body);
|
|
330
|
-
return b.build();
|
|
331
|
-
};
|
|
332
|
-
exports.se_RejectInvitationCommand = se_RejectInvitationCommand;
|
|
333
|
-
const se_StartInvestigationCommand = async (input, context) => {
|
|
334
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
335
|
-
const headers = {
|
|
336
|
-
"content-type": "application/json",
|
|
337
|
-
};
|
|
338
|
-
b.bp("/investigations/startInvestigation");
|
|
339
|
-
let body;
|
|
340
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
341
|
-
EntityArn: [],
|
|
342
|
-
GraphArn: [],
|
|
343
|
-
ScopeEndTime: (_) => _.toISOString().split(".")[0] + "Z",
|
|
344
|
-
ScopeStartTime: (_) => _.toISOString().split(".")[0] + "Z",
|
|
345
|
-
}));
|
|
346
|
-
b.m("POST").h(headers).b(body);
|
|
347
|
-
return b.build();
|
|
348
|
-
};
|
|
349
|
-
exports.se_StartInvestigationCommand = se_StartInvestigationCommand;
|
|
350
|
-
const se_StartMonitoringMemberCommand = async (input, context) => {
|
|
351
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
352
|
-
const headers = {
|
|
353
|
-
"content-type": "application/json",
|
|
354
|
-
};
|
|
355
|
-
b.bp("/graph/member/monitoringstate");
|
|
356
|
-
let body;
|
|
357
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
358
|
-
AccountId: [],
|
|
359
|
-
GraphArn: [],
|
|
360
|
-
}));
|
|
361
|
-
b.m("POST").h(headers).b(body);
|
|
362
|
-
return b.build();
|
|
363
|
-
};
|
|
364
|
-
exports.se_StartMonitoringMemberCommand = se_StartMonitoringMemberCommand;
|
|
365
|
-
const se_TagResourceCommand = async (input, context) => {
|
|
366
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
367
|
-
const headers = {
|
|
368
|
-
"content-type": "application/json",
|
|
369
|
-
};
|
|
370
|
-
b.bp("/tags/{ResourceArn}");
|
|
371
|
-
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
372
|
-
let body;
|
|
373
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
374
|
-
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
375
|
-
}));
|
|
376
|
-
b.m("POST").h(headers).b(body);
|
|
377
|
-
return b.build();
|
|
378
|
-
};
|
|
379
|
-
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
380
|
-
const se_UntagResourceCommand = async (input, context) => {
|
|
381
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
382
|
-
const headers = {};
|
|
383
|
-
b.bp("/tags/{ResourceArn}");
|
|
384
|
-
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
385
|
-
const query = (0, smithy_client_1.map)({
|
|
386
|
-
[_tK]: [
|
|
387
|
-
(0, smithy_client_1.expectNonNull)(input.TagKeys, `TagKeys`) != null,
|
|
388
|
-
() => (input[_TK] || []).map((_entry) => _entry),
|
|
389
|
-
],
|
|
390
|
-
});
|
|
391
|
-
let body;
|
|
392
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
393
|
-
return b.build();
|
|
394
|
-
};
|
|
395
|
-
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
396
|
-
const se_UpdateDatasourcePackagesCommand = async (input, context) => {
|
|
397
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
398
|
-
const headers = {
|
|
399
|
-
"content-type": "application/json",
|
|
400
|
-
};
|
|
401
|
-
b.bp("/graph/datasources/update");
|
|
402
|
-
let body;
|
|
403
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
404
|
-
DatasourcePackages: (_) => (0, smithy_client_1._json)(_),
|
|
405
|
-
GraphArn: [],
|
|
406
|
-
}));
|
|
407
|
-
b.m("POST").h(headers).b(body);
|
|
408
|
-
return b.build();
|
|
409
|
-
};
|
|
410
|
-
exports.se_UpdateDatasourcePackagesCommand = se_UpdateDatasourcePackagesCommand;
|
|
411
|
-
const se_UpdateInvestigationStateCommand = async (input, context) => {
|
|
412
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
413
|
-
const headers = {
|
|
414
|
-
"content-type": "application/json",
|
|
415
|
-
};
|
|
416
|
-
b.bp("/investigations/updateInvestigationState");
|
|
417
|
-
let body;
|
|
418
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
419
|
-
GraphArn: [],
|
|
420
|
-
InvestigationId: [],
|
|
421
|
-
State: [],
|
|
422
|
-
}));
|
|
423
|
-
b.m("POST").h(headers).b(body);
|
|
424
|
-
return b.build();
|
|
425
|
-
};
|
|
426
|
-
exports.se_UpdateInvestigationStateCommand = se_UpdateInvestigationStateCommand;
|
|
427
|
-
const se_UpdateOrganizationConfigurationCommand = async (input, context) => {
|
|
428
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
429
|
-
const headers = {
|
|
430
|
-
"content-type": "application/json",
|
|
431
|
-
};
|
|
432
|
-
b.bp("/orgs/updateOrganizationConfiguration");
|
|
433
|
-
let body;
|
|
434
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
435
|
-
AutoEnable: [],
|
|
436
|
-
GraphArn: [],
|
|
437
|
-
}));
|
|
438
|
-
b.m("POST").h(headers).b(body);
|
|
439
|
-
return b.build();
|
|
440
|
-
};
|
|
441
|
-
exports.se_UpdateOrganizationConfigurationCommand = se_UpdateOrganizationConfigurationCommand;
|
|
442
|
-
const de_AcceptInvitationCommand = async (output, context) => {
|
|
443
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
444
|
-
return de_AcceptInvitationCommandError(output, context);
|
|
445
|
-
}
|
|
446
|
-
const contents = (0, smithy_client_1.map)({
|
|
447
|
-
$metadata: deserializeMetadata(output),
|
|
448
|
-
});
|
|
449
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
450
|
-
return contents;
|
|
451
|
-
};
|
|
452
|
-
exports.de_AcceptInvitationCommand = de_AcceptInvitationCommand;
|
|
453
|
-
const de_AcceptInvitationCommandError = async (output, context) => {
|
|
454
|
-
const parsedOutput = {
|
|
455
|
-
...output,
|
|
456
|
-
body: await parseErrorBody(output.body, context),
|
|
457
|
-
};
|
|
458
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
459
|
-
switch (errorCode) {
|
|
460
|
-
case "AccessDeniedException":
|
|
461
|
-
case "com.amazonaws.detective#AccessDeniedException":
|
|
462
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
463
|
-
case "ConflictException":
|
|
464
|
-
case "com.amazonaws.detective#ConflictException":
|
|
465
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
466
|
-
case "InternalServerException":
|
|
467
|
-
case "com.amazonaws.detective#InternalServerException":
|
|
468
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
469
|
-
case "ResourceNotFoundException":
|
|
470
|
-
case "com.amazonaws.detective#ResourceNotFoundException":
|
|
471
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
472
|
-
case "ValidationException":
|
|
473
|
-
case "com.amazonaws.detective#ValidationException":
|
|
474
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
475
|
-
default:
|
|
476
|
-
const parsedBody = parsedOutput.body;
|
|
477
|
-
return throwDefaultError({
|
|
478
|
-
output,
|
|
479
|
-
parsedBody,
|
|
480
|
-
errorCode,
|
|
481
|
-
});
|
|
482
|
-
}
|
|
483
|
-
};
|
|
484
|
-
const de_BatchGetGraphMemberDatasourcesCommand = async (output, context) => {
|
|
485
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
486
|
-
return de_BatchGetGraphMemberDatasourcesCommandError(output, context);
|
|
487
|
-
}
|
|
488
|
-
const contents = (0, smithy_client_1.map)({
|
|
489
|
-
$metadata: deserializeMetadata(output),
|
|
490
|
-
});
|
|
491
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
492
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
493
|
-
MemberDatasources: (_) => de_MembershipDatasourcesList(_, context),
|
|
494
|
-
UnprocessedAccounts: smithy_client_1._json,
|
|
495
|
-
});
|
|
496
|
-
Object.assign(contents, doc);
|
|
497
|
-
return contents;
|
|
498
|
-
};
|
|
499
|
-
exports.de_BatchGetGraphMemberDatasourcesCommand = de_BatchGetGraphMemberDatasourcesCommand;
|
|
500
|
-
const de_BatchGetGraphMemberDatasourcesCommandError = async (output, context) => {
|
|
501
|
-
const parsedOutput = {
|
|
502
|
-
...output,
|
|
503
|
-
body: await parseErrorBody(output.body, context),
|
|
504
|
-
};
|
|
505
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
506
|
-
switch (errorCode) {
|
|
507
|
-
case "AccessDeniedException":
|
|
508
|
-
case "com.amazonaws.detective#AccessDeniedException":
|
|
509
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
510
|
-
case "InternalServerException":
|
|
511
|
-
case "com.amazonaws.detective#InternalServerException":
|
|
512
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
513
|
-
case "ResourceNotFoundException":
|
|
514
|
-
case "com.amazonaws.detective#ResourceNotFoundException":
|
|
515
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
516
|
-
case "ValidationException":
|
|
517
|
-
case "com.amazonaws.detective#ValidationException":
|
|
518
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
519
|
-
default:
|
|
520
|
-
const parsedBody = parsedOutput.body;
|
|
521
|
-
return throwDefaultError({
|
|
522
|
-
output,
|
|
523
|
-
parsedBody,
|
|
524
|
-
errorCode,
|
|
525
|
-
});
|
|
526
|
-
}
|
|
527
|
-
};
|
|
528
|
-
const de_BatchGetMembershipDatasourcesCommand = async (output, context) => {
|
|
529
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
530
|
-
return de_BatchGetMembershipDatasourcesCommandError(output, context);
|
|
531
|
-
}
|
|
532
|
-
const contents = (0, smithy_client_1.map)({
|
|
533
|
-
$metadata: deserializeMetadata(output),
|
|
534
|
-
});
|
|
535
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
536
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
537
|
-
MembershipDatasources: (_) => de_MembershipDatasourcesList(_, context),
|
|
538
|
-
UnprocessedGraphs: smithy_client_1._json,
|
|
539
|
-
});
|
|
540
|
-
Object.assign(contents, doc);
|
|
541
|
-
return contents;
|
|
542
|
-
};
|
|
543
|
-
exports.de_BatchGetMembershipDatasourcesCommand = de_BatchGetMembershipDatasourcesCommand;
|
|
544
|
-
const de_BatchGetMembershipDatasourcesCommandError = async (output, context) => {
|
|
545
|
-
const parsedOutput = {
|
|
546
|
-
...output,
|
|
547
|
-
body: await parseErrorBody(output.body, context),
|
|
548
|
-
};
|
|
549
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
550
|
-
switch (errorCode) {
|
|
551
|
-
case "AccessDeniedException":
|
|
552
|
-
case "com.amazonaws.detective#AccessDeniedException":
|
|
553
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
554
|
-
case "InternalServerException":
|
|
555
|
-
case "com.amazonaws.detective#InternalServerException":
|
|
556
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
557
|
-
case "ResourceNotFoundException":
|
|
558
|
-
case "com.amazonaws.detective#ResourceNotFoundException":
|
|
559
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
560
|
-
case "ValidationException":
|
|
561
|
-
case "com.amazonaws.detective#ValidationException":
|
|
562
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
563
|
-
default:
|
|
564
|
-
const parsedBody = parsedOutput.body;
|
|
565
|
-
return throwDefaultError({
|
|
566
|
-
output,
|
|
567
|
-
parsedBody,
|
|
568
|
-
errorCode,
|
|
569
|
-
});
|
|
570
|
-
}
|
|
571
|
-
};
|
|
572
|
-
const de_CreateGraphCommand = async (output, context) => {
|
|
573
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
574
|
-
return de_CreateGraphCommandError(output, context);
|
|
575
|
-
}
|
|
576
|
-
const contents = (0, smithy_client_1.map)({
|
|
577
|
-
$metadata: deserializeMetadata(output),
|
|
578
|
-
});
|
|
579
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
580
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
581
|
-
GraphArn: smithy_client_1.expectString,
|
|
582
|
-
});
|
|
583
|
-
Object.assign(contents, doc);
|
|
584
|
-
return contents;
|
|
585
|
-
};
|
|
586
|
-
exports.de_CreateGraphCommand = de_CreateGraphCommand;
|
|
587
|
-
const de_CreateGraphCommandError = async (output, context) => {
|
|
588
|
-
const parsedOutput = {
|
|
589
|
-
...output,
|
|
590
|
-
body: await parseErrorBody(output.body, context),
|
|
591
|
-
};
|
|
592
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
593
|
-
switch (errorCode) {
|
|
594
|
-
case "AccessDeniedException":
|
|
595
|
-
case "com.amazonaws.detective#AccessDeniedException":
|
|
596
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
597
|
-
case "ConflictException":
|
|
598
|
-
case "com.amazonaws.detective#ConflictException":
|
|
599
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
600
|
-
case "InternalServerException":
|
|
601
|
-
case "com.amazonaws.detective#InternalServerException":
|
|
602
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
603
|
-
case "ServiceQuotaExceededException":
|
|
604
|
-
case "com.amazonaws.detective#ServiceQuotaExceededException":
|
|
605
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
606
|
-
default:
|
|
607
|
-
const parsedBody = parsedOutput.body;
|
|
608
|
-
return throwDefaultError({
|
|
609
|
-
output,
|
|
610
|
-
parsedBody,
|
|
611
|
-
errorCode,
|
|
612
|
-
});
|
|
613
|
-
}
|
|
614
|
-
};
|
|
615
|
-
const de_CreateMembersCommand = async (output, context) => {
|
|
616
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
617
|
-
return de_CreateMembersCommandError(output, context);
|
|
618
|
-
}
|
|
619
|
-
const contents = (0, smithy_client_1.map)({
|
|
620
|
-
$metadata: deserializeMetadata(output),
|
|
621
|
-
});
|
|
622
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
623
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
624
|
-
Members: (_) => de_MemberDetailList(_, context),
|
|
625
|
-
UnprocessedAccounts: smithy_client_1._json,
|
|
626
|
-
});
|
|
627
|
-
Object.assign(contents, doc);
|
|
628
|
-
return contents;
|
|
629
|
-
};
|
|
630
|
-
exports.de_CreateMembersCommand = de_CreateMembersCommand;
|
|
631
|
-
const de_CreateMembersCommandError = async (output, context) => {
|
|
632
|
-
const parsedOutput = {
|
|
633
|
-
...output,
|
|
634
|
-
body: await parseErrorBody(output.body, context),
|
|
635
|
-
};
|
|
636
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
637
|
-
switch (errorCode) {
|
|
638
|
-
case "AccessDeniedException":
|
|
639
|
-
case "com.amazonaws.detective#AccessDeniedException":
|
|
640
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
641
|
-
case "InternalServerException":
|
|
642
|
-
case "com.amazonaws.detective#InternalServerException":
|
|
643
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
644
|
-
case "ResourceNotFoundException":
|
|
645
|
-
case "com.amazonaws.detective#ResourceNotFoundException":
|
|
646
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
647
|
-
case "ServiceQuotaExceededException":
|
|
648
|
-
case "com.amazonaws.detective#ServiceQuotaExceededException":
|
|
649
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
650
|
-
case "ValidationException":
|
|
651
|
-
case "com.amazonaws.detective#ValidationException":
|
|
652
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
653
|
-
default:
|
|
654
|
-
const parsedBody = parsedOutput.body;
|
|
655
|
-
return throwDefaultError({
|
|
656
|
-
output,
|
|
657
|
-
parsedBody,
|
|
658
|
-
errorCode,
|
|
659
|
-
});
|
|
660
|
-
}
|
|
661
|
-
};
|
|
662
|
-
const de_DeleteGraphCommand = async (output, context) => {
|
|
663
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
664
|
-
return de_DeleteGraphCommandError(output, context);
|
|
665
|
-
}
|
|
666
|
-
const contents = (0, smithy_client_1.map)({
|
|
667
|
-
$metadata: deserializeMetadata(output),
|
|
668
|
-
});
|
|
669
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
670
|
-
return contents;
|
|
671
|
-
};
|
|
672
|
-
exports.de_DeleteGraphCommand = de_DeleteGraphCommand;
|
|
673
|
-
const de_DeleteGraphCommandError = async (output, context) => {
|
|
674
|
-
const parsedOutput = {
|
|
675
|
-
...output,
|
|
676
|
-
body: await parseErrorBody(output.body, context),
|
|
677
|
-
};
|
|
678
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
679
|
-
switch (errorCode) {
|
|
680
|
-
case "AccessDeniedException":
|
|
681
|
-
case "com.amazonaws.detective#AccessDeniedException":
|
|
682
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
683
|
-
case "InternalServerException":
|
|
684
|
-
case "com.amazonaws.detective#InternalServerException":
|
|
685
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
686
|
-
case "ResourceNotFoundException":
|
|
687
|
-
case "com.amazonaws.detective#ResourceNotFoundException":
|
|
688
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
689
|
-
case "ValidationException":
|
|
690
|
-
case "com.amazonaws.detective#ValidationException":
|
|
691
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
692
|
-
default:
|
|
693
|
-
const parsedBody = parsedOutput.body;
|
|
694
|
-
return throwDefaultError({
|
|
695
|
-
output,
|
|
696
|
-
parsedBody,
|
|
697
|
-
errorCode,
|
|
698
|
-
});
|
|
699
|
-
}
|
|
700
|
-
};
|
|
701
|
-
const de_DeleteMembersCommand = async (output, context) => {
|
|
702
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
703
|
-
return de_DeleteMembersCommandError(output, context);
|
|
704
|
-
}
|
|
705
|
-
const contents = (0, smithy_client_1.map)({
|
|
706
|
-
$metadata: deserializeMetadata(output),
|
|
707
|
-
});
|
|
708
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
709
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
710
|
-
AccountIds: smithy_client_1._json,
|
|
711
|
-
UnprocessedAccounts: smithy_client_1._json,
|
|
712
|
-
});
|
|
713
|
-
Object.assign(contents, doc);
|
|
714
|
-
return contents;
|
|
715
|
-
};
|
|
716
|
-
exports.de_DeleteMembersCommand = de_DeleteMembersCommand;
|
|
717
|
-
const de_DeleteMembersCommandError = async (output, context) => {
|
|
718
|
-
const parsedOutput = {
|
|
719
|
-
...output,
|
|
720
|
-
body: await parseErrorBody(output.body, context),
|
|
721
|
-
};
|
|
722
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
723
|
-
switch (errorCode) {
|
|
724
|
-
case "AccessDeniedException":
|
|
725
|
-
case "com.amazonaws.detective#AccessDeniedException":
|
|
726
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
727
|
-
case "ConflictException":
|
|
728
|
-
case "com.amazonaws.detective#ConflictException":
|
|
729
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
730
|
-
case "InternalServerException":
|
|
731
|
-
case "com.amazonaws.detective#InternalServerException":
|
|
732
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
733
|
-
case "ResourceNotFoundException":
|
|
734
|
-
case "com.amazonaws.detective#ResourceNotFoundException":
|
|
735
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
736
|
-
case "ValidationException":
|
|
737
|
-
case "com.amazonaws.detective#ValidationException":
|
|
738
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
739
|
-
default:
|
|
740
|
-
const parsedBody = parsedOutput.body;
|
|
741
|
-
return throwDefaultError({
|
|
742
|
-
output,
|
|
743
|
-
parsedBody,
|
|
744
|
-
errorCode,
|
|
745
|
-
});
|
|
746
|
-
}
|
|
747
|
-
};
|
|
748
|
-
const de_DescribeOrganizationConfigurationCommand = async (output, context) => {
|
|
749
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
750
|
-
return de_DescribeOrganizationConfigurationCommandError(output, context);
|
|
751
|
-
}
|
|
752
|
-
const contents = (0, smithy_client_1.map)({
|
|
753
|
-
$metadata: deserializeMetadata(output),
|
|
754
|
-
});
|
|
755
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
756
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
757
|
-
AutoEnable: smithy_client_1.expectBoolean,
|
|
758
|
-
});
|
|
759
|
-
Object.assign(contents, doc);
|
|
760
|
-
return contents;
|
|
761
|
-
};
|
|
762
|
-
exports.de_DescribeOrganizationConfigurationCommand = de_DescribeOrganizationConfigurationCommand;
|
|
763
|
-
const de_DescribeOrganizationConfigurationCommandError = async (output, context) => {
|
|
764
|
-
const parsedOutput = {
|
|
765
|
-
...output,
|
|
766
|
-
body: await parseErrorBody(output.body, context),
|
|
767
|
-
};
|
|
768
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
769
|
-
switch (errorCode) {
|
|
770
|
-
case "AccessDeniedException":
|
|
771
|
-
case "com.amazonaws.detective#AccessDeniedException":
|
|
772
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
773
|
-
case "InternalServerException":
|
|
774
|
-
case "com.amazonaws.detective#InternalServerException":
|
|
775
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
776
|
-
case "TooManyRequestsException":
|
|
777
|
-
case "com.amazonaws.detective#TooManyRequestsException":
|
|
778
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
779
|
-
case "ValidationException":
|
|
780
|
-
case "com.amazonaws.detective#ValidationException":
|
|
781
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
782
|
-
default:
|
|
783
|
-
const parsedBody = parsedOutput.body;
|
|
784
|
-
return throwDefaultError({
|
|
785
|
-
output,
|
|
786
|
-
parsedBody,
|
|
787
|
-
errorCode,
|
|
788
|
-
});
|
|
789
|
-
}
|
|
790
|
-
};
|
|
791
|
-
const de_DisableOrganizationAdminAccountCommand = async (output, context) => {
|
|
792
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
793
|
-
return de_DisableOrganizationAdminAccountCommandError(output, context);
|
|
794
|
-
}
|
|
795
|
-
const contents = (0, smithy_client_1.map)({
|
|
796
|
-
$metadata: deserializeMetadata(output),
|
|
797
|
-
});
|
|
798
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
799
|
-
return contents;
|
|
800
|
-
};
|
|
801
|
-
exports.de_DisableOrganizationAdminAccountCommand = de_DisableOrganizationAdminAccountCommand;
|
|
802
|
-
const de_DisableOrganizationAdminAccountCommandError = async (output, context) => {
|
|
803
|
-
const parsedOutput = {
|
|
804
|
-
...output,
|
|
805
|
-
body: await parseErrorBody(output.body, context),
|
|
806
|
-
};
|
|
807
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
808
|
-
switch (errorCode) {
|
|
809
|
-
case "AccessDeniedException":
|
|
810
|
-
case "com.amazonaws.detective#AccessDeniedException":
|
|
811
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
812
|
-
case "InternalServerException":
|
|
813
|
-
case "com.amazonaws.detective#InternalServerException":
|
|
814
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
815
|
-
case "TooManyRequestsException":
|
|
816
|
-
case "com.amazonaws.detective#TooManyRequestsException":
|
|
817
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
818
|
-
case "ValidationException":
|
|
819
|
-
case "com.amazonaws.detective#ValidationException":
|
|
820
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
821
|
-
default:
|
|
822
|
-
const parsedBody = parsedOutput.body;
|
|
823
|
-
return throwDefaultError({
|
|
824
|
-
output,
|
|
825
|
-
parsedBody,
|
|
826
|
-
errorCode,
|
|
827
|
-
});
|
|
828
|
-
}
|
|
829
|
-
};
|
|
830
|
-
const de_DisassociateMembershipCommand = async (output, context) => {
|
|
831
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
832
|
-
return de_DisassociateMembershipCommandError(output, context);
|
|
833
|
-
}
|
|
834
|
-
const contents = (0, smithy_client_1.map)({
|
|
835
|
-
$metadata: deserializeMetadata(output),
|
|
836
|
-
});
|
|
837
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
838
|
-
return contents;
|
|
839
|
-
};
|
|
840
|
-
exports.de_DisassociateMembershipCommand = de_DisassociateMembershipCommand;
|
|
841
|
-
const de_DisassociateMembershipCommandError = async (output, context) => {
|
|
842
|
-
const parsedOutput = {
|
|
843
|
-
...output,
|
|
844
|
-
body: await parseErrorBody(output.body, context),
|
|
845
|
-
};
|
|
846
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
847
|
-
switch (errorCode) {
|
|
848
|
-
case "AccessDeniedException":
|
|
849
|
-
case "com.amazonaws.detective#AccessDeniedException":
|
|
850
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
851
|
-
case "ConflictException":
|
|
852
|
-
case "com.amazonaws.detective#ConflictException":
|
|
853
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
854
|
-
case "InternalServerException":
|
|
855
|
-
case "com.amazonaws.detective#InternalServerException":
|
|
856
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
857
|
-
case "ResourceNotFoundException":
|
|
858
|
-
case "com.amazonaws.detective#ResourceNotFoundException":
|
|
859
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
860
|
-
case "ValidationException":
|
|
861
|
-
case "com.amazonaws.detective#ValidationException":
|
|
862
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
863
|
-
default:
|
|
864
|
-
const parsedBody = parsedOutput.body;
|
|
865
|
-
return throwDefaultError({
|
|
866
|
-
output,
|
|
867
|
-
parsedBody,
|
|
868
|
-
errorCode,
|
|
869
|
-
});
|
|
870
|
-
}
|
|
871
|
-
};
|
|
872
|
-
const de_EnableOrganizationAdminAccountCommand = async (output, context) => {
|
|
873
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
874
|
-
return de_EnableOrganizationAdminAccountCommandError(output, context);
|
|
875
|
-
}
|
|
876
|
-
const contents = (0, smithy_client_1.map)({
|
|
877
|
-
$metadata: deserializeMetadata(output),
|
|
878
|
-
});
|
|
879
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
880
|
-
return contents;
|
|
881
|
-
};
|
|
882
|
-
exports.de_EnableOrganizationAdminAccountCommand = de_EnableOrganizationAdminAccountCommand;
|
|
883
|
-
const de_EnableOrganizationAdminAccountCommandError = async (output, context) => {
|
|
884
|
-
const parsedOutput = {
|
|
885
|
-
...output,
|
|
886
|
-
body: await parseErrorBody(output.body, context),
|
|
887
|
-
};
|
|
888
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
889
|
-
switch (errorCode) {
|
|
890
|
-
case "AccessDeniedException":
|
|
891
|
-
case "com.amazonaws.detective#AccessDeniedException":
|
|
892
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
893
|
-
case "InternalServerException":
|
|
894
|
-
case "com.amazonaws.detective#InternalServerException":
|
|
895
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
896
|
-
case "TooManyRequestsException":
|
|
897
|
-
case "com.amazonaws.detective#TooManyRequestsException":
|
|
898
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
899
|
-
case "ValidationException":
|
|
900
|
-
case "com.amazonaws.detective#ValidationException":
|
|
901
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
902
|
-
default:
|
|
903
|
-
const parsedBody = parsedOutput.body;
|
|
904
|
-
return throwDefaultError({
|
|
905
|
-
output,
|
|
906
|
-
parsedBody,
|
|
907
|
-
errorCode,
|
|
908
|
-
});
|
|
909
|
-
}
|
|
910
|
-
};
|
|
911
|
-
const de_GetInvestigationCommand = async (output, context) => {
|
|
912
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
913
|
-
return de_GetInvestigationCommandError(output, context);
|
|
914
|
-
}
|
|
915
|
-
const contents = (0, smithy_client_1.map)({
|
|
916
|
-
$metadata: deserializeMetadata(output),
|
|
917
|
-
});
|
|
918
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
919
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
920
|
-
CreatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
921
|
-
EntityArn: smithy_client_1.expectString,
|
|
922
|
-
EntityType: smithy_client_1.expectString,
|
|
923
|
-
GraphArn: smithy_client_1.expectString,
|
|
924
|
-
InvestigationId: smithy_client_1.expectString,
|
|
925
|
-
ScopeEndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
926
|
-
ScopeStartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
927
|
-
Severity: smithy_client_1.expectString,
|
|
928
|
-
State: smithy_client_1.expectString,
|
|
929
|
-
Status: smithy_client_1.expectString,
|
|
930
|
-
});
|
|
931
|
-
Object.assign(contents, doc);
|
|
932
|
-
return contents;
|
|
933
|
-
};
|
|
934
|
-
exports.de_GetInvestigationCommand = de_GetInvestigationCommand;
|
|
935
|
-
const de_GetInvestigationCommandError = async (output, context) => {
|
|
936
|
-
const parsedOutput = {
|
|
937
|
-
...output,
|
|
938
|
-
body: await parseErrorBody(output.body, context),
|
|
939
|
-
};
|
|
940
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
941
|
-
switch (errorCode) {
|
|
942
|
-
case "AccessDeniedException":
|
|
943
|
-
case "com.amazonaws.detective#AccessDeniedException":
|
|
944
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
945
|
-
case "InternalServerException":
|
|
946
|
-
case "com.amazonaws.detective#InternalServerException":
|
|
947
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
948
|
-
case "ResourceNotFoundException":
|
|
949
|
-
case "com.amazonaws.detective#ResourceNotFoundException":
|
|
950
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
951
|
-
case "TooManyRequestsException":
|
|
952
|
-
case "com.amazonaws.detective#TooManyRequestsException":
|
|
953
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
954
|
-
case "ValidationException":
|
|
955
|
-
case "com.amazonaws.detective#ValidationException":
|
|
956
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
957
|
-
default:
|
|
958
|
-
const parsedBody = parsedOutput.body;
|
|
959
|
-
return throwDefaultError({
|
|
960
|
-
output,
|
|
961
|
-
parsedBody,
|
|
962
|
-
errorCode,
|
|
963
|
-
});
|
|
964
|
-
}
|
|
965
|
-
};
|
|
966
|
-
const de_GetMembersCommand = async (output, context) => {
|
|
967
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
968
|
-
return de_GetMembersCommandError(output, context);
|
|
969
|
-
}
|
|
970
|
-
const contents = (0, smithy_client_1.map)({
|
|
971
|
-
$metadata: deserializeMetadata(output),
|
|
972
|
-
});
|
|
973
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
974
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
975
|
-
MemberDetails: (_) => de_MemberDetailList(_, context),
|
|
976
|
-
UnprocessedAccounts: smithy_client_1._json,
|
|
977
|
-
});
|
|
978
|
-
Object.assign(contents, doc);
|
|
979
|
-
return contents;
|
|
980
|
-
};
|
|
981
|
-
exports.de_GetMembersCommand = de_GetMembersCommand;
|
|
982
|
-
const de_GetMembersCommandError = async (output, context) => {
|
|
983
|
-
const parsedOutput = {
|
|
984
|
-
...output,
|
|
985
|
-
body: await parseErrorBody(output.body, context),
|
|
986
|
-
};
|
|
987
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
988
|
-
switch (errorCode) {
|
|
989
|
-
case "AccessDeniedException":
|
|
990
|
-
case "com.amazonaws.detective#AccessDeniedException":
|
|
991
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
992
|
-
case "InternalServerException":
|
|
993
|
-
case "com.amazonaws.detective#InternalServerException":
|
|
994
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
995
|
-
case "ResourceNotFoundException":
|
|
996
|
-
case "com.amazonaws.detective#ResourceNotFoundException":
|
|
997
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
998
|
-
case "ValidationException":
|
|
999
|
-
case "com.amazonaws.detective#ValidationException":
|
|
1000
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1001
|
-
default:
|
|
1002
|
-
const parsedBody = parsedOutput.body;
|
|
1003
|
-
return throwDefaultError({
|
|
1004
|
-
output,
|
|
1005
|
-
parsedBody,
|
|
1006
|
-
errorCode,
|
|
1007
|
-
});
|
|
1008
|
-
}
|
|
1009
|
-
};
|
|
1010
|
-
const de_ListDatasourcePackagesCommand = async (output, context) => {
|
|
1011
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1012
|
-
return de_ListDatasourcePackagesCommandError(output, context);
|
|
1013
|
-
}
|
|
1014
|
-
const contents = (0, smithy_client_1.map)({
|
|
1015
|
-
$metadata: deserializeMetadata(output),
|
|
1016
|
-
});
|
|
1017
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1018
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1019
|
-
DatasourcePackages: (_) => de_DatasourcePackageIngestDetails(_, context),
|
|
1020
|
-
NextToken: smithy_client_1.expectString,
|
|
1021
|
-
});
|
|
1022
|
-
Object.assign(contents, doc);
|
|
1023
|
-
return contents;
|
|
1024
|
-
};
|
|
1025
|
-
exports.de_ListDatasourcePackagesCommand = de_ListDatasourcePackagesCommand;
|
|
1026
|
-
const de_ListDatasourcePackagesCommandError = async (output, context) => {
|
|
1027
|
-
const parsedOutput = {
|
|
1028
|
-
...output,
|
|
1029
|
-
body: await parseErrorBody(output.body, context),
|
|
1030
|
-
};
|
|
1031
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1032
|
-
switch (errorCode) {
|
|
1033
|
-
case "AccessDeniedException":
|
|
1034
|
-
case "com.amazonaws.detective#AccessDeniedException":
|
|
1035
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1036
|
-
case "InternalServerException":
|
|
1037
|
-
case "com.amazonaws.detective#InternalServerException":
|
|
1038
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1039
|
-
case "ResourceNotFoundException":
|
|
1040
|
-
case "com.amazonaws.detective#ResourceNotFoundException":
|
|
1041
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1042
|
-
case "ValidationException":
|
|
1043
|
-
case "com.amazonaws.detective#ValidationException":
|
|
1044
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1045
|
-
default:
|
|
1046
|
-
const parsedBody = parsedOutput.body;
|
|
1047
|
-
return throwDefaultError({
|
|
1048
|
-
output,
|
|
1049
|
-
parsedBody,
|
|
1050
|
-
errorCode,
|
|
1051
|
-
});
|
|
1052
|
-
}
|
|
1053
|
-
};
|
|
1054
|
-
const de_ListGraphsCommand = async (output, context) => {
|
|
1055
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1056
|
-
return de_ListGraphsCommandError(output, context);
|
|
1057
|
-
}
|
|
1058
|
-
const contents = (0, smithy_client_1.map)({
|
|
1059
|
-
$metadata: deserializeMetadata(output),
|
|
1060
|
-
});
|
|
1061
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1062
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1063
|
-
GraphList: (_) => de_GraphList(_, context),
|
|
1064
|
-
NextToken: smithy_client_1.expectString,
|
|
1065
|
-
});
|
|
1066
|
-
Object.assign(contents, doc);
|
|
1067
|
-
return contents;
|
|
1068
|
-
};
|
|
1069
|
-
exports.de_ListGraphsCommand = de_ListGraphsCommand;
|
|
1070
|
-
const de_ListGraphsCommandError = async (output, context) => {
|
|
1071
|
-
const parsedOutput = {
|
|
1072
|
-
...output,
|
|
1073
|
-
body: await parseErrorBody(output.body, context),
|
|
1074
|
-
};
|
|
1075
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1076
|
-
switch (errorCode) {
|
|
1077
|
-
case "AccessDeniedException":
|
|
1078
|
-
case "com.amazonaws.detective#AccessDeniedException":
|
|
1079
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1080
|
-
case "InternalServerException":
|
|
1081
|
-
case "com.amazonaws.detective#InternalServerException":
|
|
1082
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1083
|
-
case "ValidationException":
|
|
1084
|
-
case "com.amazonaws.detective#ValidationException":
|
|
1085
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1086
|
-
default:
|
|
1087
|
-
const parsedBody = parsedOutput.body;
|
|
1088
|
-
return throwDefaultError({
|
|
1089
|
-
output,
|
|
1090
|
-
parsedBody,
|
|
1091
|
-
errorCode,
|
|
1092
|
-
});
|
|
1093
|
-
}
|
|
1094
|
-
};
|
|
1095
|
-
const de_ListIndicatorsCommand = async (output, context) => {
|
|
1096
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1097
|
-
return de_ListIndicatorsCommandError(output, context);
|
|
1098
|
-
}
|
|
1099
|
-
const contents = (0, smithy_client_1.map)({
|
|
1100
|
-
$metadata: deserializeMetadata(output),
|
|
1101
|
-
});
|
|
1102
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1103
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1104
|
-
GraphArn: smithy_client_1.expectString,
|
|
1105
|
-
Indicators: smithy_client_1._json,
|
|
1106
|
-
InvestigationId: smithy_client_1.expectString,
|
|
1107
|
-
NextToken: smithy_client_1.expectString,
|
|
1108
|
-
});
|
|
1109
|
-
Object.assign(contents, doc);
|
|
1110
|
-
return contents;
|
|
1111
|
-
};
|
|
1112
|
-
exports.de_ListIndicatorsCommand = de_ListIndicatorsCommand;
|
|
1113
|
-
const de_ListIndicatorsCommandError = async (output, context) => {
|
|
1114
|
-
const parsedOutput = {
|
|
1115
|
-
...output,
|
|
1116
|
-
body: await parseErrorBody(output.body, context),
|
|
1117
|
-
};
|
|
1118
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1119
|
-
switch (errorCode) {
|
|
1120
|
-
case "AccessDeniedException":
|
|
1121
|
-
case "com.amazonaws.detective#AccessDeniedException":
|
|
1122
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1123
|
-
case "InternalServerException":
|
|
1124
|
-
case "com.amazonaws.detective#InternalServerException":
|
|
1125
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1126
|
-
case "ResourceNotFoundException":
|
|
1127
|
-
case "com.amazonaws.detective#ResourceNotFoundException":
|
|
1128
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1129
|
-
case "TooManyRequestsException":
|
|
1130
|
-
case "com.amazonaws.detective#TooManyRequestsException":
|
|
1131
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1132
|
-
case "ValidationException":
|
|
1133
|
-
case "com.amazonaws.detective#ValidationException":
|
|
1134
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1135
|
-
default:
|
|
1136
|
-
const parsedBody = parsedOutput.body;
|
|
1137
|
-
return throwDefaultError({
|
|
1138
|
-
output,
|
|
1139
|
-
parsedBody,
|
|
1140
|
-
errorCode,
|
|
1141
|
-
});
|
|
1142
|
-
}
|
|
1143
|
-
};
|
|
1144
|
-
const de_ListInvestigationsCommand = async (output, context) => {
|
|
1145
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1146
|
-
return de_ListInvestigationsCommandError(output, context);
|
|
1147
|
-
}
|
|
1148
|
-
const contents = (0, smithy_client_1.map)({
|
|
1149
|
-
$metadata: deserializeMetadata(output),
|
|
1150
|
-
});
|
|
1151
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1152
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1153
|
-
InvestigationDetails: (_) => de_InvestigationDetails(_, context),
|
|
1154
|
-
NextToken: smithy_client_1.expectString,
|
|
1155
|
-
});
|
|
1156
|
-
Object.assign(contents, doc);
|
|
1157
|
-
return contents;
|
|
1158
|
-
};
|
|
1159
|
-
exports.de_ListInvestigationsCommand = de_ListInvestigationsCommand;
|
|
1160
|
-
const de_ListInvestigationsCommandError = async (output, context) => {
|
|
1161
|
-
const parsedOutput = {
|
|
1162
|
-
...output,
|
|
1163
|
-
body: await parseErrorBody(output.body, context),
|
|
1164
|
-
};
|
|
1165
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1166
|
-
switch (errorCode) {
|
|
1167
|
-
case "AccessDeniedException":
|
|
1168
|
-
case "com.amazonaws.detective#AccessDeniedException":
|
|
1169
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1170
|
-
case "InternalServerException":
|
|
1171
|
-
case "com.amazonaws.detective#InternalServerException":
|
|
1172
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1173
|
-
case "ResourceNotFoundException":
|
|
1174
|
-
case "com.amazonaws.detective#ResourceNotFoundException":
|
|
1175
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1176
|
-
case "TooManyRequestsException":
|
|
1177
|
-
case "com.amazonaws.detective#TooManyRequestsException":
|
|
1178
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1179
|
-
case "ValidationException":
|
|
1180
|
-
case "com.amazonaws.detective#ValidationException":
|
|
1181
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1182
|
-
default:
|
|
1183
|
-
const parsedBody = parsedOutput.body;
|
|
1184
|
-
return throwDefaultError({
|
|
1185
|
-
output,
|
|
1186
|
-
parsedBody,
|
|
1187
|
-
errorCode,
|
|
1188
|
-
});
|
|
1189
|
-
}
|
|
1190
|
-
};
|
|
1191
|
-
const de_ListInvitationsCommand = async (output, context) => {
|
|
1192
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1193
|
-
return de_ListInvitationsCommandError(output, context);
|
|
1194
|
-
}
|
|
1195
|
-
const contents = (0, smithy_client_1.map)({
|
|
1196
|
-
$metadata: deserializeMetadata(output),
|
|
1197
|
-
});
|
|
1198
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1199
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1200
|
-
Invitations: (_) => de_MemberDetailList(_, context),
|
|
1201
|
-
NextToken: smithy_client_1.expectString,
|
|
1202
|
-
});
|
|
1203
|
-
Object.assign(contents, doc);
|
|
1204
|
-
return contents;
|
|
1205
|
-
};
|
|
1206
|
-
exports.de_ListInvitationsCommand = de_ListInvitationsCommand;
|
|
1207
|
-
const de_ListInvitationsCommandError = async (output, context) => {
|
|
1208
|
-
const parsedOutput = {
|
|
1209
|
-
...output,
|
|
1210
|
-
body: await parseErrorBody(output.body, context),
|
|
1211
|
-
};
|
|
1212
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1213
|
-
switch (errorCode) {
|
|
1214
|
-
case "AccessDeniedException":
|
|
1215
|
-
case "com.amazonaws.detective#AccessDeniedException":
|
|
1216
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1217
|
-
case "InternalServerException":
|
|
1218
|
-
case "com.amazonaws.detective#InternalServerException":
|
|
1219
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1220
|
-
case "ValidationException":
|
|
1221
|
-
case "com.amazonaws.detective#ValidationException":
|
|
1222
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1223
|
-
default:
|
|
1224
|
-
const parsedBody = parsedOutput.body;
|
|
1225
|
-
return throwDefaultError({
|
|
1226
|
-
output,
|
|
1227
|
-
parsedBody,
|
|
1228
|
-
errorCode,
|
|
1229
|
-
});
|
|
1230
|
-
}
|
|
1231
|
-
};
|
|
1232
|
-
const de_ListMembersCommand = async (output, context) => {
|
|
1233
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1234
|
-
return de_ListMembersCommandError(output, context);
|
|
1235
|
-
}
|
|
1236
|
-
const contents = (0, smithy_client_1.map)({
|
|
1237
|
-
$metadata: deserializeMetadata(output),
|
|
1238
|
-
});
|
|
1239
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1240
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1241
|
-
MemberDetails: (_) => de_MemberDetailList(_, context),
|
|
1242
|
-
NextToken: smithy_client_1.expectString,
|
|
1243
|
-
});
|
|
1244
|
-
Object.assign(contents, doc);
|
|
1245
|
-
return contents;
|
|
1246
|
-
};
|
|
1247
|
-
exports.de_ListMembersCommand = de_ListMembersCommand;
|
|
1248
|
-
const de_ListMembersCommandError = async (output, context) => {
|
|
1249
|
-
const parsedOutput = {
|
|
1250
|
-
...output,
|
|
1251
|
-
body: await parseErrorBody(output.body, context),
|
|
1252
|
-
};
|
|
1253
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1254
|
-
switch (errorCode) {
|
|
1255
|
-
case "AccessDeniedException":
|
|
1256
|
-
case "com.amazonaws.detective#AccessDeniedException":
|
|
1257
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1258
|
-
case "InternalServerException":
|
|
1259
|
-
case "com.amazonaws.detective#InternalServerException":
|
|
1260
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1261
|
-
case "ResourceNotFoundException":
|
|
1262
|
-
case "com.amazonaws.detective#ResourceNotFoundException":
|
|
1263
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1264
|
-
case "ValidationException":
|
|
1265
|
-
case "com.amazonaws.detective#ValidationException":
|
|
1266
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1267
|
-
default:
|
|
1268
|
-
const parsedBody = parsedOutput.body;
|
|
1269
|
-
return throwDefaultError({
|
|
1270
|
-
output,
|
|
1271
|
-
parsedBody,
|
|
1272
|
-
errorCode,
|
|
1273
|
-
});
|
|
1274
|
-
}
|
|
1275
|
-
};
|
|
1276
|
-
const de_ListOrganizationAdminAccountsCommand = async (output, context) => {
|
|
1277
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1278
|
-
return de_ListOrganizationAdminAccountsCommandError(output, context);
|
|
1279
|
-
}
|
|
1280
|
-
const contents = (0, smithy_client_1.map)({
|
|
1281
|
-
$metadata: deserializeMetadata(output),
|
|
1282
|
-
});
|
|
1283
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1284
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1285
|
-
Administrators: (_) => de_AdministratorList(_, context),
|
|
1286
|
-
NextToken: smithy_client_1.expectString,
|
|
1287
|
-
});
|
|
1288
|
-
Object.assign(contents, doc);
|
|
1289
|
-
return contents;
|
|
1290
|
-
};
|
|
1291
|
-
exports.de_ListOrganizationAdminAccountsCommand = de_ListOrganizationAdminAccountsCommand;
|
|
1292
|
-
const de_ListOrganizationAdminAccountsCommandError = async (output, context) => {
|
|
1293
|
-
const parsedOutput = {
|
|
1294
|
-
...output,
|
|
1295
|
-
body: await parseErrorBody(output.body, context),
|
|
1296
|
-
};
|
|
1297
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1298
|
-
switch (errorCode) {
|
|
1299
|
-
case "AccessDeniedException":
|
|
1300
|
-
case "com.amazonaws.detective#AccessDeniedException":
|
|
1301
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1302
|
-
case "InternalServerException":
|
|
1303
|
-
case "com.amazonaws.detective#InternalServerException":
|
|
1304
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1305
|
-
case "TooManyRequestsException":
|
|
1306
|
-
case "com.amazonaws.detective#TooManyRequestsException":
|
|
1307
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1308
|
-
case "ValidationException":
|
|
1309
|
-
case "com.amazonaws.detective#ValidationException":
|
|
1310
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1311
|
-
default:
|
|
1312
|
-
const parsedBody = parsedOutput.body;
|
|
1313
|
-
return throwDefaultError({
|
|
1314
|
-
output,
|
|
1315
|
-
parsedBody,
|
|
1316
|
-
errorCode,
|
|
1317
|
-
});
|
|
1318
|
-
}
|
|
1319
|
-
};
|
|
1320
|
-
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
1321
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1322
|
-
return de_ListTagsForResourceCommandError(output, context);
|
|
1323
|
-
}
|
|
1324
|
-
const contents = (0, smithy_client_1.map)({
|
|
1325
|
-
$metadata: deserializeMetadata(output),
|
|
1326
|
-
});
|
|
1327
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1328
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1329
|
-
Tags: smithy_client_1._json,
|
|
1330
|
-
});
|
|
1331
|
-
Object.assign(contents, doc);
|
|
1332
|
-
return contents;
|
|
1333
|
-
};
|
|
1334
|
-
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
1335
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
1336
|
-
const parsedOutput = {
|
|
1337
|
-
...output,
|
|
1338
|
-
body: await parseErrorBody(output.body, context),
|
|
1339
|
-
};
|
|
1340
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1341
|
-
switch (errorCode) {
|
|
1342
|
-
case "AccessDeniedException":
|
|
1343
|
-
case "com.amazonaws.detective#AccessDeniedException":
|
|
1344
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1345
|
-
case "InternalServerException":
|
|
1346
|
-
case "com.amazonaws.detective#InternalServerException":
|
|
1347
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1348
|
-
case "ResourceNotFoundException":
|
|
1349
|
-
case "com.amazonaws.detective#ResourceNotFoundException":
|
|
1350
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1351
|
-
case "ValidationException":
|
|
1352
|
-
case "com.amazonaws.detective#ValidationException":
|
|
1353
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1354
|
-
default:
|
|
1355
|
-
const parsedBody = parsedOutput.body;
|
|
1356
|
-
return throwDefaultError({
|
|
1357
|
-
output,
|
|
1358
|
-
parsedBody,
|
|
1359
|
-
errorCode,
|
|
1360
|
-
});
|
|
1361
|
-
}
|
|
1362
|
-
};
|
|
1363
|
-
const de_RejectInvitationCommand = async (output, context) => {
|
|
1364
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1365
|
-
return de_RejectInvitationCommandError(output, context);
|
|
1366
|
-
}
|
|
1367
|
-
const contents = (0, smithy_client_1.map)({
|
|
1368
|
-
$metadata: deserializeMetadata(output),
|
|
1369
|
-
});
|
|
1370
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1371
|
-
return contents;
|
|
1372
|
-
};
|
|
1373
|
-
exports.de_RejectInvitationCommand = de_RejectInvitationCommand;
|
|
1374
|
-
const de_RejectInvitationCommandError = async (output, context) => {
|
|
1375
|
-
const parsedOutput = {
|
|
1376
|
-
...output,
|
|
1377
|
-
body: await parseErrorBody(output.body, context),
|
|
1378
|
-
};
|
|
1379
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1380
|
-
switch (errorCode) {
|
|
1381
|
-
case "AccessDeniedException":
|
|
1382
|
-
case "com.amazonaws.detective#AccessDeniedException":
|
|
1383
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1384
|
-
case "ConflictException":
|
|
1385
|
-
case "com.amazonaws.detective#ConflictException":
|
|
1386
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1387
|
-
case "InternalServerException":
|
|
1388
|
-
case "com.amazonaws.detective#InternalServerException":
|
|
1389
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1390
|
-
case "ResourceNotFoundException":
|
|
1391
|
-
case "com.amazonaws.detective#ResourceNotFoundException":
|
|
1392
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1393
|
-
case "ValidationException":
|
|
1394
|
-
case "com.amazonaws.detective#ValidationException":
|
|
1395
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1396
|
-
default:
|
|
1397
|
-
const parsedBody = parsedOutput.body;
|
|
1398
|
-
return throwDefaultError({
|
|
1399
|
-
output,
|
|
1400
|
-
parsedBody,
|
|
1401
|
-
errorCode,
|
|
1402
|
-
});
|
|
1403
|
-
}
|
|
1404
|
-
};
|
|
1405
|
-
const de_StartInvestigationCommand = async (output, context) => {
|
|
1406
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1407
|
-
return de_StartInvestigationCommandError(output, context);
|
|
1408
|
-
}
|
|
1409
|
-
const contents = (0, smithy_client_1.map)({
|
|
1410
|
-
$metadata: deserializeMetadata(output),
|
|
1411
|
-
});
|
|
1412
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1413
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1414
|
-
InvestigationId: smithy_client_1.expectString,
|
|
1415
|
-
});
|
|
1416
|
-
Object.assign(contents, doc);
|
|
1417
|
-
return contents;
|
|
1418
|
-
};
|
|
1419
|
-
exports.de_StartInvestigationCommand = de_StartInvestigationCommand;
|
|
1420
|
-
const de_StartInvestigationCommandError = async (output, context) => {
|
|
1421
|
-
const parsedOutput = {
|
|
1422
|
-
...output,
|
|
1423
|
-
body: await parseErrorBody(output.body, context),
|
|
1424
|
-
};
|
|
1425
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1426
|
-
switch (errorCode) {
|
|
1427
|
-
case "AccessDeniedException":
|
|
1428
|
-
case "com.amazonaws.detective#AccessDeniedException":
|
|
1429
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1430
|
-
case "InternalServerException":
|
|
1431
|
-
case "com.amazonaws.detective#InternalServerException":
|
|
1432
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1433
|
-
case "ResourceNotFoundException":
|
|
1434
|
-
case "com.amazonaws.detective#ResourceNotFoundException":
|
|
1435
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1436
|
-
case "TooManyRequestsException":
|
|
1437
|
-
case "com.amazonaws.detective#TooManyRequestsException":
|
|
1438
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1439
|
-
case "ValidationException":
|
|
1440
|
-
case "com.amazonaws.detective#ValidationException":
|
|
1441
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1442
|
-
default:
|
|
1443
|
-
const parsedBody = parsedOutput.body;
|
|
1444
|
-
return throwDefaultError({
|
|
1445
|
-
output,
|
|
1446
|
-
parsedBody,
|
|
1447
|
-
errorCode,
|
|
1448
|
-
});
|
|
1449
|
-
}
|
|
1450
|
-
};
|
|
1451
|
-
const de_StartMonitoringMemberCommand = async (output, context) => {
|
|
1452
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1453
|
-
return de_StartMonitoringMemberCommandError(output, context);
|
|
1454
|
-
}
|
|
1455
|
-
const contents = (0, smithy_client_1.map)({
|
|
1456
|
-
$metadata: deserializeMetadata(output),
|
|
1457
|
-
});
|
|
1458
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1459
|
-
return contents;
|
|
1460
|
-
};
|
|
1461
|
-
exports.de_StartMonitoringMemberCommand = de_StartMonitoringMemberCommand;
|
|
1462
|
-
const de_StartMonitoringMemberCommandError = async (output, context) => {
|
|
1463
|
-
const parsedOutput = {
|
|
1464
|
-
...output,
|
|
1465
|
-
body: await parseErrorBody(output.body, context),
|
|
1466
|
-
};
|
|
1467
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1468
|
-
switch (errorCode) {
|
|
1469
|
-
case "AccessDeniedException":
|
|
1470
|
-
case "com.amazonaws.detective#AccessDeniedException":
|
|
1471
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1472
|
-
case "ConflictException":
|
|
1473
|
-
case "com.amazonaws.detective#ConflictException":
|
|
1474
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1475
|
-
case "InternalServerException":
|
|
1476
|
-
case "com.amazonaws.detective#InternalServerException":
|
|
1477
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1478
|
-
case "ResourceNotFoundException":
|
|
1479
|
-
case "com.amazonaws.detective#ResourceNotFoundException":
|
|
1480
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1481
|
-
case "ServiceQuotaExceededException":
|
|
1482
|
-
case "com.amazonaws.detective#ServiceQuotaExceededException":
|
|
1483
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1484
|
-
case "ValidationException":
|
|
1485
|
-
case "com.amazonaws.detective#ValidationException":
|
|
1486
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1487
|
-
default:
|
|
1488
|
-
const parsedBody = parsedOutput.body;
|
|
1489
|
-
return throwDefaultError({
|
|
1490
|
-
output,
|
|
1491
|
-
parsedBody,
|
|
1492
|
-
errorCode,
|
|
1493
|
-
});
|
|
1494
|
-
}
|
|
1495
|
-
};
|
|
1496
|
-
const de_TagResourceCommand = async (output, context) => {
|
|
1497
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1498
|
-
return de_TagResourceCommandError(output, context);
|
|
1499
|
-
}
|
|
1500
|
-
const contents = (0, smithy_client_1.map)({
|
|
1501
|
-
$metadata: deserializeMetadata(output),
|
|
1502
|
-
});
|
|
1503
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1504
|
-
return contents;
|
|
1505
|
-
};
|
|
1506
|
-
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
1507
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
1508
|
-
const parsedOutput = {
|
|
1509
|
-
...output,
|
|
1510
|
-
body: await parseErrorBody(output.body, context),
|
|
1511
|
-
};
|
|
1512
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1513
|
-
switch (errorCode) {
|
|
1514
|
-
case "AccessDeniedException":
|
|
1515
|
-
case "com.amazonaws.detective#AccessDeniedException":
|
|
1516
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1517
|
-
case "InternalServerException":
|
|
1518
|
-
case "com.amazonaws.detective#InternalServerException":
|
|
1519
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1520
|
-
case "ResourceNotFoundException":
|
|
1521
|
-
case "com.amazonaws.detective#ResourceNotFoundException":
|
|
1522
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1523
|
-
case "ValidationException":
|
|
1524
|
-
case "com.amazonaws.detective#ValidationException":
|
|
1525
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1526
|
-
default:
|
|
1527
|
-
const parsedBody = parsedOutput.body;
|
|
1528
|
-
return throwDefaultError({
|
|
1529
|
-
output,
|
|
1530
|
-
parsedBody,
|
|
1531
|
-
errorCode,
|
|
1532
|
-
});
|
|
1533
|
-
}
|
|
1534
|
-
};
|
|
1535
|
-
const de_UntagResourceCommand = async (output, context) => {
|
|
1536
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1537
|
-
return de_UntagResourceCommandError(output, context);
|
|
1538
|
-
}
|
|
1539
|
-
const contents = (0, smithy_client_1.map)({
|
|
1540
|
-
$metadata: deserializeMetadata(output),
|
|
1541
|
-
});
|
|
1542
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1543
|
-
return contents;
|
|
1544
|
-
};
|
|
1545
|
-
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
1546
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
1547
|
-
const parsedOutput = {
|
|
1548
|
-
...output,
|
|
1549
|
-
body: await parseErrorBody(output.body, context),
|
|
1550
|
-
};
|
|
1551
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1552
|
-
switch (errorCode) {
|
|
1553
|
-
case "AccessDeniedException":
|
|
1554
|
-
case "com.amazonaws.detective#AccessDeniedException":
|
|
1555
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1556
|
-
case "InternalServerException":
|
|
1557
|
-
case "com.amazonaws.detective#InternalServerException":
|
|
1558
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1559
|
-
case "ResourceNotFoundException":
|
|
1560
|
-
case "com.amazonaws.detective#ResourceNotFoundException":
|
|
1561
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1562
|
-
case "ValidationException":
|
|
1563
|
-
case "com.amazonaws.detective#ValidationException":
|
|
1564
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1565
|
-
default:
|
|
1566
|
-
const parsedBody = parsedOutput.body;
|
|
1567
|
-
return throwDefaultError({
|
|
1568
|
-
output,
|
|
1569
|
-
parsedBody,
|
|
1570
|
-
errorCode,
|
|
1571
|
-
});
|
|
1572
|
-
}
|
|
1573
|
-
};
|
|
1574
|
-
const de_UpdateDatasourcePackagesCommand = async (output, context) => {
|
|
1575
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1576
|
-
return de_UpdateDatasourcePackagesCommandError(output, context);
|
|
1577
|
-
}
|
|
1578
|
-
const contents = (0, smithy_client_1.map)({
|
|
1579
|
-
$metadata: deserializeMetadata(output),
|
|
1580
|
-
});
|
|
1581
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1582
|
-
return contents;
|
|
1583
|
-
};
|
|
1584
|
-
exports.de_UpdateDatasourcePackagesCommand = de_UpdateDatasourcePackagesCommand;
|
|
1585
|
-
const de_UpdateDatasourcePackagesCommandError = async (output, context) => {
|
|
1586
|
-
const parsedOutput = {
|
|
1587
|
-
...output,
|
|
1588
|
-
body: await parseErrorBody(output.body, context),
|
|
1589
|
-
};
|
|
1590
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1591
|
-
switch (errorCode) {
|
|
1592
|
-
case "AccessDeniedException":
|
|
1593
|
-
case "com.amazonaws.detective#AccessDeniedException":
|
|
1594
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1595
|
-
case "InternalServerException":
|
|
1596
|
-
case "com.amazonaws.detective#InternalServerException":
|
|
1597
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1598
|
-
case "ResourceNotFoundException":
|
|
1599
|
-
case "com.amazonaws.detective#ResourceNotFoundException":
|
|
1600
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1601
|
-
case "ServiceQuotaExceededException":
|
|
1602
|
-
case "com.amazonaws.detective#ServiceQuotaExceededException":
|
|
1603
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1604
|
-
case "ValidationException":
|
|
1605
|
-
case "com.amazonaws.detective#ValidationException":
|
|
1606
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1607
|
-
default:
|
|
1608
|
-
const parsedBody = parsedOutput.body;
|
|
1609
|
-
return throwDefaultError({
|
|
1610
|
-
output,
|
|
1611
|
-
parsedBody,
|
|
1612
|
-
errorCode,
|
|
1613
|
-
});
|
|
1614
|
-
}
|
|
1615
|
-
};
|
|
1616
|
-
const de_UpdateInvestigationStateCommand = async (output, context) => {
|
|
1617
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1618
|
-
return de_UpdateInvestigationStateCommandError(output, context);
|
|
1619
|
-
}
|
|
1620
|
-
const contents = (0, smithy_client_1.map)({
|
|
1621
|
-
$metadata: deserializeMetadata(output),
|
|
1622
|
-
});
|
|
1623
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1624
|
-
return contents;
|
|
1625
|
-
};
|
|
1626
|
-
exports.de_UpdateInvestigationStateCommand = de_UpdateInvestigationStateCommand;
|
|
1627
|
-
const de_UpdateInvestigationStateCommandError = async (output, context) => {
|
|
1628
|
-
const parsedOutput = {
|
|
1629
|
-
...output,
|
|
1630
|
-
body: await parseErrorBody(output.body, context),
|
|
1631
|
-
};
|
|
1632
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1633
|
-
switch (errorCode) {
|
|
1634
|
-
case "AccessDeniedException":
|
|
1635
|
-
case "com.amazonaws.detective#AccessDeniedException":
|
|
1636
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1637
|
-
case "InternalServerException":
|
|
1638
|
-
case "com.amazonaws.detective#InternalServerException":
|
|
1639
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1640
|
-
case "ResourceNotFoundException":
|
|
1641
|
-
case "com.amazonaws.detective#ResourceNotFoundException":
|
|
1642
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1643
|
-
case "TooManyRequestsException":
|
|
1644
|
-
case "com.amazonaws.detective#TooManyRequestsException":
|
|
1645
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1646
|
-
case "ValidationException":
|
|
1647
|
-
case "com.amazonaws.detective#ValidationException":
|
|
1648
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1649
|
-
default:
|
|
1650
|
-
const parsedBody = parsedOutput.body;
|
|
1651
|
-
return throwDefaultError({
|
|
1652
|
-
output,
|
|
1653
|
-
parsedBody,
|
|
1654
|
-
errorCode,
|
|
1655
|
-
});
|
|
1656
|
-
}
|
|
1657
|
-
};
|
|
1658
|
-
const de_UpdateOrganizationConfigurationCommand = async (output, context) => {
|
|
1659
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1660
|
-
return de_UpdateOrganizationConfigurationCommandError(output, context);
|
|
1661
|
-
}
|
|
1662
|
-
const contents = (0, smithy_client_1.map)({
|
|
1663
|
-
$metadata: deserializeMetadata(output),
|
|
1664
|
-
});
|
|
1665
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1666
|
-
return contents;
|
|
1667
|
-
};
|
|
1668
|
-
exports.de_UpdateOrganizationConfigurationCommand = de_UpdateOrganizationConfigurationCommand;
|
|
1669
|
-
const de_UpdateOrganizationConfigurationCommandError = async (output, context) => {
|
|
1670
|
-
const parsedOutput = {
|
|
1671
|
-
...output,
|
|
1672
|
-
body: await parseErrorBody(output.body, context),
|
|
1673
|
-
};
|
|
1674
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1675
|
-
switch (errorCode) {
|
|
1676
|
-
case "AccessDeniedException":
|
|
1677
|
-
case "com.amazonaws.detective#AccessDeniedException":
|
|
1678
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1679
|
-
case "InternalServerException":
|
|
1680
|
-
case "com.amazonaws.detective#InternalServerException":
|
|
1681
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1682
|
-
case "TooManyRequestsException":
|
|
1683
|
-
case "com.amazonaws.detective#TooManyRequestsException":
|
|
1684
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1685
|
-
case "ValidationException":
|
|
1686
|
-
case "com.amazonaws.detective#ValidationException":
|
|
1687
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1688
|
-
default:
|
|
1689
|
-
const parsedBody = parsedOutput.body;
|
|
1690
|
-
return throwDefaultError({
|
|
1691
|
-
output,
|
|
1692
|
-
parsedBody,
|
|
1693
|
-
errorCode,
|
|
1694
|
-
});
|
|
1695
|
-
}
|
|
1696
|
-
};
|
|
1697
|
-
const throwDefaultError = (0, smithy_client_1.withBaseException)(DetectiveServiceException_1.DetectiveServiceException);
|
|
1698
|
-
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
1699
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1700
|
-
const data = parsedOutput.body;
|
|
1701
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1702
|
-
ErrorCode: smithy_client_1.expectString,
|
|
1703
|
-
ErrorCodeReason: smithy_client_1.expectString,
|
|
1704
|
-
Message: smithy_client_1.expectString,
|
|
1705
|
-
SubErrorCode: smithy_client_1.expectString,
|
|
1706
|
-
SubErrorCodeReason: smithy_client_1.expectString,
|
|
1707
|
-
});
|
|
1708
|
-
Object.assign(contents, doc);
|
|
1709
|
-
const exception = new models_0_1.AccessDeniedException({
|
|
1710
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1711
|
-
...contents,
|
|
1712
|
-
});
|
|
1713
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1714
|
-
};
|
|
1715
|
-
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
1716
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1717
|
-
const data = parsedOutput.body;
|
|
1718
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1719
|
-
Message: smithy_client_1.expectString,
|
|
1720
|
-
});
|
|
1721
|
-
Object.assign(contents, doc);
|
|
1722
|
-
const exception = new models_0_1.ConflictException({
|
|
1723
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1724
|
-
...contents,
|
|
1725
|
-
});
|
|
1726
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1727
|
-
};
|
|
1728
|
-
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
1729
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1730
|
-
const data = parsedOutput.body;
|
|
1731
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1732
|
-
Message: smithy_client_1.expectString,
|
|
1733
|
-
});
|
|
1734
|
-
Object.assign(contents, doc);
|
|
1735
|
-
const exception = new models_0_1.InternalServerException({
|
|
1736
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1737
|
-
...contents,
|
|
1738
|
-
});
|
|
1739
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1740
|
-
};
|
|
1741
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1742
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1743
|
-
const data = parsedOutput.body;
|
|
1744
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1745
|
-
Message: smithy_client_1.expectString,
|
|
1746
|
-
});
|
|
1747
|
-
Object.assign(contents, doc);
|
|
1748
|
-
const exception = new models_0_1.ResourceNotFoundException({
|
|
1749
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1750
|
-
...contents,
|
|
1751
|
-
});
|
|
1752
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1753
|
-
};
|
|
1754
|
-
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
1755
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1756
|
-
const data = parsedOutput.body;
|
|
1757
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1758
|
-
Message: smithy_client_1.expectString,
|
|
1759
|
-
Resources: smithy_client_1._json,
|
|
1760
|
-
});
|
|
1761
|
-
Object.assign(contents, doc);
|
|
1762
|
-
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
1763
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1764
|
-
...contents,
|
|
1765
|
-
});
|
|
1766
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1767
|
-
};
|
|
1768
|
-
const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
|
|
1769
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1770
|
-
const data = parsedOutput.body;
|
|
1771
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1772
|
-
Message: smithy_client_1.expectString,
|
|
1773
|
-
});
|
|
1774
|
-
Object.assign(contents, doc);
|
|
1775
|
-
const exception = new models_0_1.TooManyRequestsException({
|
|
1776
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1777
|
-
...contents,
|
|
1778
|
-
});
|
|
1779
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1780
|
-
};
|
|
1781
|
-
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
1782
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1783
|
-
const data = parsedOutput.body;
|
|
1784
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1785
|
-
ErrorCode: smithy_client_1.expectString,
|
|
1786
|
-
ErrorCodeReason: smithy_client_1.expectString,
|
|
1787
|
-
Message: smithy_client_1.expectString,
|
|
1788
|
-
});
|
|
1789
|
-
Object.assign(contents, doc);
|
|
1790
|
-
const exception = new models_0_1.ValidationException({
|
|
1791
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1792
|
-
...contents,
|
|
1793
|
-
});
|
|
1794
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1795
|
-
};
|
|
1796
|
-
const se_DateFilter = (input, context) => {
|
|
1797
|
-
return (0, smithy_client_1.take)(input, {
|
|
1798
|
-
EndInclusive: (_) => _.toISOString().split(".")[0] + "Z",
|
|
1799
|
-
StartInclusive: (_) => _.toISOString().split(".")[0] + "Z",
|
|
1800
|
-
});
|
|
1801
|
-
};
|
|
1802
|
-
const se_FilterCriteria = (input, context) => {
|
|
1803
|
-
return (0, smithy_client_1.take)(input, {
|
|
1804
|
-
CreatedTime: (_) => se_DateFilter(_, context),
|
|
1805
|
-
EntityArn: smithy_client_1._json,
|
|
1806
|
-
Severity: smithy_client_1._json,
|
|
1807
|
-
State: smithy_client_1._json,
|
|
1808
|
-
Status: smithy_client_1._json,
|
|
1809
|
-
});
|
|
1810
|
-
};
|
|
1811
|
-
const de_Administrator = (output, context) => {
|
|
1812
|
-
return (0, smithy_client_1.take)(output, {
|
|
1813
|
-
AccountId: smithy_client_1.expectString,
|
|
1814
|
-
DelegationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1815
|
-
GraphArn: smithy_client_1.expectString,
|
|
1816
|
-
});
|
|
1817
|
-
};
|
|
1818
|
-
const de_AdministratorList = (output, context) => {
|
|
1819
|
-
const retVal = (output || [])
|
|
1820
|
-
.filter((e) => e != null)
|
|
1821
|
-
.map((entry) => {
|
|
1822
|
-
return de_Administrator(entry, context);
|
|
1823
|
-
});
|
|
1824
|
-
return retVal;
|
|
1825
|
-
};
|
|
1826
|
-
const de_DatasourcePackageIngestDetail = (output, context) => {
|
|
1827
|
-
return (0, smithy_client_1.take)(output, {
|
|
1828
|
-
DatasourcePackageIngestState: smithy_client_1.expectString,
|
|
1829
|
-
LastIngestStateChange: (_) => de_LastIngestStateChangeDates(_, context),
|
|
1830
|
-
});
|
|
1831
|
-
};
|
|
1832
|
-
const de_DatasourcePackageIngestDetails = (output, context) => {
|
|
1833
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1834
|
-
if (value === null) {
|
|
1835
|
-
return acc;
|
|
1836
|
-
}
|
|
1837
|
-
acc[key] = de_DatasourcePackageIngestDetail(value, context);
|
|
1838
|
-
return acc;
|
|
1839
|
-
}, {});
|
|
1840
|
-
};
|
|
1841
|
-
const de_DatasourcePackageIngestHistory = (output, context) => {
|
|
1842
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1843
|
-
if (value === null) {
|
|
1844
|
-
return acc;
|
|
1845
|
-
}
|
|
1846
|
-
acc[key] = de_LastIngestStateChangeDates(value, context);
|
|
1847
|
-
return acc;
|
|
1848
|
-
}, {});
|
|
1849
|
-
};
|
|
1850
|
-
const de_DatasourcePackageUsageInfo = (output, context) => {
|
|
1851
|
-
return (0, smithy_client_1.take)(output, {
|
|
1852
|
-
VolumeUsageInBytes: smithy_client_1.expectLong,
|
|
1853
|
-
VolumeUsageUpdateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1854
|
-
});
|
|
1855
|
-
};
|
|
1856
|
-
const de_Graph = (output, context) => {
|
|
1857
|
-
return (0, smithy_client_1.take)(output, {
|
|
1858
|
-
Arn: smithy_client_1.expectString,
|
|
1859
|
-
CreatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1860
|
-
});
|
|
1861
|
-
};
|
|
1862
|
-
const de_GraphList = (output, context) => {
|
|
1863
|
-
const retVal = (output || [])
|
|
1864
|
-
.filter((e) => e != null)
|
|
1865
|
-
.map((entry) => {
|
|
1866
|
-
return de_Graph(entry, context);
|
|
1867
|
-
});
|
|
1868
|
-
return retVal;
|
|
1869
|
-
};
|
|
1870
|
-
const de_InvestigationDetail = (output, context) => {
|
|
1871
|
-
return (0, smithy_client_1.take)(output, {
|
|
1872
|
-
CreatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1873
|
-
EntityArn: smithy_client_1.expectString,
|
|
1874
|
-
EntityType: smithy_client_1.expectString,
|
|
1875
|
-
InvestigationId: smithy_client_1.expectString,
|
|
1876
|
-
Severity: smithy_client_1.expectString,
|
|
1877
|
-
State: smithy_client_1.expectString,
|
|
1878
|
-
Status: smithy_client_1.expectString,
|
|
1879
|
-
});
|
|
1880
|
-
};
|
|
1881
|
-
const de_InvestigationDetails = (output, context) => {
|
|
1882
|
-
const retVal = (output || [])
|
|
1883
|
-
.filter((e) => e != null)
|
|
1884
|
-
.map((entry) => {
|
|
1885
|
-
return de_InvestigationDetail(entry, context);
|
|
1886
|
-
});
|
|
1887
|
-
return retVal;
|
|
1888
|
-
};
|
|
1889
|
-
const de_LastIngestStateChangeDates = (output, context) => {
|
|
1890
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1891
|
-
if (value === null) {
|
|
1892
|
-
return acc;
|
|
1893
|
-
}
|
|
1894
|
-
acc[key] = de_TimestampForCollection(value, context);
|
|
1895
|
-
return acc;
|
|
1896
|
-
}, {});
|
|
1897
|
-
};
|
|
1898
|
-
const de_MemberDetail = (output, context) => {
|
|
1899
|
-
return (0, smithy_client_1.take)(output, {
|
|
1900
|
-
AccountId: smithy_client_1.expectString,
|
|
1901
|
-
AdministratorId: smithy_client_1.expectString,
|
|
1902
|
-
DatasourcePackageIngestStates: smithy_client_1._json,
|
|
1903
|
-
DisabledReason: smithy_client_1.expectString,
|
|
1904
|
-
EmailAddress: smithy_client_1.expectString,
|
|
1905
|
-
GraphArn: smithy_client_1.expectString,
|
|
1906
|
-
InvitationType: smithy_client_1.expectString,
|
|
1907
|
-
InvitedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1908
|
-
MasterId: smithy_client_1.expectString,
|
|
1909
|
-
PercentOfGraphUtilization: smithy_client_1.limitedParseDouble,
|
|
1910
|
-
PercentOfGraphUtilizationUpdatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1911
|
-
Status: smithy_client_1.expectString,
|
|
1912
|
-
UpdatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1913
|
-
VolumeUsageByDatasourcePackage: (_) => de_VolumeUsageByDatasourcePackage(_, context),
|
|
1914
|
-
VolumeUsageInBytes: smithy_client_1.expectLong,
|
|
1915
|
-
VolumeUsageUpdatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1916
|
-
});
|
|
1917
|
-
};
|
|
1918
|
-
const de_MemberDetailList = (output, context) => {
|
|
1919
|
-
const retVal = (output || [])
|
|
1920
|
-
.filter((e) => e != null)
|
|
1921
|
-
.map((entry) => {
|
|
1922
|
-
return de_MemberDetail(entry, context);
|
|
1923
|
-
});
|
|
1924
|
-
return retVal;
|
|
1925
|
-
};
|
|
1926
|
-
const de_MembershipDatasources = (output, context) => {
|
|
1927
|
-
return (0, smithy_client_1.take)(output, {
|
|
1928
|
-
AccountId: smithy_client_1.expectString,
|
|
1929
|
-
DatasourcePackageIngestHistory: (_) => de_DatasourcePackageIngestHistory(_, context),
|
|
1930
|
-
GraphArn: smithy_client_1.expectString,
|
|
1931
|
-
});
|
|
1932
|
-
};
|
|
1933
|
-
const de_MembershipDatasourcesList = (output, context) => {
|
|
1934
|
-
const retVal = (output || [])
|
|
1935
|
-
.filter((e) => e != null)
|
|
1936
|
-
.map((entry) => {
|
|
1937
|
-
return de_MembershipDatasources(entry, context);
|
|
1938
|
-
});
|
|
1939
|
-
return retVal;
|
|
1940
|
-
};
|
|
1941
|
-
const de_TimestampForCollection = (output, context) => {
|
|
1942
|
-
return (0, smithy_client_1.take)(output, {
|
|
1943
|
-
Timestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1944
|
-
});
|
|
1945
|
-
};
|
|
1946
|
-
const de_VolumeUsageByDatasourcePackage = (output, context) => {
|
|
1947
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1948
|
-
if (value === null) {
|
|
1949
|
-
return acc;
|
|
1950
|
-
}
|
|
1951
|
-
acc[key] = de_DatasourcePackageUsageInfo(value, context);
|
|
1952
|
-
return acc;
|
|
1953
|
-
}, {});
|
|
1954
|
-
};
|
|
1955
|
-
const deserializeMetadata = (output) => ({
|
|
1956
|
-
httpStatusCode: output.statusCode,
|
|
1957
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1958
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1959
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
1960
|
-
});
|
|
1961
|
-
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
1962
|
-
const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
1963
|
-
value !== null &&
|
|
1964
|
-
value !== "" &&
|
|
1965
|
-
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
1966
|
-
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
1967
|
-
const _TK = "TagKeys";
|
|
1968
|
-
const _tK = "tagKeys";
|
|
1969
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1970
|
-
if (encoded.length) {
|
|
1971
|
-
return JSON.parse(encoded);
|
|
1972
|
-
}
|
|
1973
|
-
return {};
|
|
1974
|
-
});
|
|
1975
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
1976
|
-
const value = await parseBody(errorBody, context);
|
|
1977
|
-
value.message = value.message ?? value.Message;
|
|
1978
|
-
return value;
|
|
1979
|
-
};
|
|
1980
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
1981
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
1982
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
1983
|
-
let cleanValue = rawValue;
|
|
1984
|
-
if (typeof cleanValue === "number") {
|
|
1985
|
-
cleanValue = cleanValue.toString();
|
|
1986
|
-
}
|
|
1987
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
1988
|
-
cleanValue = cleanValue.split(",")[0];
|
|
1989
|
-
}
|
|
1990
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
1991
|
-
cleanValue = cleanValue.split(":")[0];
|
|
1992
|
-
}
|
|
1993
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
1994
|
-
cleanValue = cleanValue.split("#")[1];
|
|
1995
|
-
}
|
|
1996
|
-
return cleanValue;
|
|
1997
|
-
};
|
|
1998
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1999
|
-
if (headerKey !== undefined) {
|
|
2000
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
2001
|
-
}
|
|
2002
|
-
if (data.code !== undefined) {
|
|
2003
|
-
return sanitizeErrorCode(data.code);
|
|
2004
|
-
}
|
|
2005
|
-
if (data["__type"] !== undefined) {
|
|
2006
|
-
return sanitizeErrorCode(data["__type"]);
|
|
2007
|
-
}
|
|
2008
|
-
};
|
|
1
|
+
module.exports = require("../index.js");
|