@aws-sdk/client-securitylake 3.928.0 → 3.930.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +1131 -1213
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-es/SecurityLakeClient.js +2 -0
- package/dist-es/commands/CreateAwsLogSourceCommand.js +3 -9
- package/dist-es/commands/CreateCustomLogSourceCommand.js +3 -9
- package/dist-es/commands/CreateDataLakeCommand.js +3 -9
- package/dist-es/commands/CreateDataLakeExceptionSubscriptionCommand.js +3 -9
- package/dist-es/commands/CreateDataLakeOrganizationConfigurationCommand.js +3 -9
- package/dist-es/commands/CreateSubscriberCommand.js +3 -9
- package/dist-es/commands/CreateSubscriberNotificationCommand.js +3 -9
- package/dist-es/commands/DeleteAwsLogSourceCommand.js +3 -9
- package/dist-es/commands/DeleteCustomLogSourceCommand.js +3 -9
- package/dist-es/commands/DeleteDataLakeCommand.js +3 -9
- package/dist-es/commands/DeleteDataLakeExceptionSubscriptionCommand.js +3 -9
- package/dist-es/commands/DeleteDataLakeOrganizationConfigurationCommand.js +3 -9
- package/dist-es/commands/DeleteSubscriberCommand.js +3 -9
- package/dist-es/commands/DeleteSubscriberNotificationCommand.js +3 -9
- package/dist-es/commands/DeregisterDataLakeDelegatedAdministratorCommand.js +3 -9
- package/dist-es/commands/GetDataLakeExceptionSubscriptionCommand.js +3 -9
- package/dist-es/commands/GetDataLakeOrganizationConfigurationCommand.js +3 -9
- package/dist-es/commands/GetDataLakeSourcesCommand.js +3 -9
- package/dist-es/commands/GetSubscriberCommand.js +3 -9
- package/dist-es/commands/ListDataLakeExceptionsCommand.js +3 -9
- package/dist-es/commands/ListDataLakesCommand.js +3 -9
- package/dist-es/commands/ListLogSourcesCommand.js +3 -9
- package/dist-es/commands/ListSubscribersCommand.js +3 -9
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
- package/dist-es/commands/RegisterDataLakeDelegatedAdministratorCommand.js +3 -9
- package/dist-es/commands/TagResourceCommand.js +3 -9
- package/dist-es/commands/UntagResourceCommand.js +3 -9
- package/dist-es/commands/UpdateDataLakeCommand.js +3 -9
- package/dist-es/commands/UpdateDataLakeExceptionSubscriptionCommand.js +3 -9
- package/dist-es/commands/UpdateSubscriberCommand.js +3 -9
- package/dist-es/commands/UpdateSubscriberNotificationCommand.js +3 -9
- package/dist-es/models/models_0.js +0 -20
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +1061 -0
- package/dist-types/SecurityLakeClient.d.ts +10 -1
- package/dist-types/models/models_0.d.ts +8 -2
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +148 -0
- package/dist-types/ts3.4/SecurityLakeClient.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +0 -2
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +153 -0
- package/package.json +33 -33
- package/dist-es/protocols/Aws_restJson1.js +0 -965
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -281
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -377
|
@@ -1,965 +0,0 @@
|
|
|
1
|
-
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
2
|
-
import { requestBuilder as rb } from "@smithy/core";
|
|
3
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, strictParseInt32 as __strictParseInt32, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
|
-
import { AccessDeniedException, BadRequestException, ConflictException, InternalServerException, ResourceNotFoundException, ThrottlingException, } from "../models/models_0";
|
|
5
|
-
import { SecurityLakeServiceException as __BaseException } from "../models/SecurityLakeServiceException";
|
|
6
|
-
export const se_CreateAwsLogSourceCommand = async (input, context) => {
|
|
7
|
-
const b = rb(input, context);
|
|
8
|
-
const headers = {
|
|
9
|
-
"content-type": "application/json",
|
|
10
|
-
};
|
|
11
|
-
b.bp("/v1/datalake/logsources/aws");
|
|
12
|
-
let body;
|
|
13
|
-
body = JSON.stringify(take(input, {
|
|
14
|
-
sources: (_) => _json(_),
|
|
15
|
-
}));
|
|
16
|
-
b.m("POST").h(headers).b(body);
|
|
17
|
-
return b.build();
|
|
18
|
-
};
|
|
19
|
-
export const se_CreateCustomLogSourceCommand = async (input, context) => {
|
|
20
|
-
const b = rb(input, context);
|
|
21
|
-
const headers = {
|
|
22
|
-
"content-type": "application/json",
|
|
23
|
-
};
|
|
24
|
-
b.bp("/v1/datalake/logsources/custom");
|
|
25
|
-
let body;
|
|
26
|
-
body = JSON.stringify(take(input, {
|
|
27
|
-
configuration: (_) => _json(_),
|
|
28
|
-
eventClasses: (_) => _json(_),
|
|
29
|
-
sourceName: [],
|
|
30
|
-
sourceVersion: [],
|
|
31
|
-
}));
|
|
32
|
-
b.m("POST").h(headers).b(body);
|
|
33
|
-
return b.build();
|
|
34
|
-
};
|
|
35
|
-
export const se_CreateDataLakeCommand = async (input, context) => {
|
|
36
|
-
const b = rb(input, context);
|
|
37
|
-
const headers = {
|
|
38
|
-
"content-type": "application/json",
|
|
39
|
-
};
|
|
40
|
-
b.bp("/v1/datalake");
|
|
41
|
-
let body;
|
|
42
|
-
body = JSON.stringify(take(input, {
|
|
43
|
-
configurations: (_) => _json(_),
|
|
44
|
-
metaStoreManagerRoleArn: [],
|
|
45
|
-
tags: (_) => _json(_),
|
|
46
|
-
}));
|
|
47
|
-
b.m("POST").h(headers).b(body);
|
|
48
|
-
return b.build();
|
|
49
|
-
};
|
|
50
|
-
export const se_CreateDataLakeExceptionSubscriptionCommand = async (input, context) => {
|
|
51
|
-
const b = rb(input, context);
|
|
52
|
-
const headers = {
|
|
53
|
-
"content-type": "application/json",
|
|
54
|
-
};
|
|
55
|
-
b.bp("/v1/datalake/exceptions/subscription");
|
|
56
|
-
let body;
|
|
57
|
-
body = JSON.stringify(take(input, {
|
|
58
|
-
exceptionTimeToLive: [],
|
|
59
|
-
notificationEndpoint: [],
|
|
60
|
-
subscriptionProtocol: [],
|
|
61
|
-
}));
|
|
62
|
-
b.m("POST").h(headers).b(body);
|
|
63
|
-
return b.build();
|
|
64
|
-
};
|
|
65
|
-
export const se_CreateDataLakeOrganizationConfigurationCommand = async (input, context) => {
|
|
66
|
-
const b = rb(input, context);
|
|
67
|
-
const headers = {
|
|
68
|
-
"content-type": "application/json",
|
|
69
|
-
};
|
|
70
|
-
b.bp("/v1/datalake/organization/configuration");
|
|
71
|
-
let body;
|
|
72
|
-
body = JSON.stringify(take(input, {
|
|
73
|
-
autoEnableNewAccount: (_) => _json(_),
|
|
74
|
-
}));
|
|
75
|
-
b.m("POST").h(headers).b(body);
|
|
76
|
-
return b.build();
|
|
77
|
-
};
|
|
78
|
-
export const se_CreateSubscriberCommand = async (input, context) => {
|
|
79
|
-
const b = rb(input, context);
|
|
80
|
-
const headers = {
|
|
81
|
-
"content-type": "application/json",
|
|
82
|
-
};
|
|
83
|
-
b.bp("/v1/subscribers");
|
|
84
|
-
let body;
|
|
85
|
-
body = JSON.stringify(take(input, {
|
|
86
|
-
accessTypes: (_) => _json(_),
|
|
87
|
-
sources: (_) => _json(_),
|
|
88
|
-
subscriberDescription: [],
|
|
89
|
-
subscriberIdentity: (_) => _json(_),
|
|
90
|
-
subscriberName: [],
|
|
91
|
-
tags: (_) => _json(_),
|
|
92
|
-
}));
|
|
93
|
-
b.m("POST").h(headers).b(body);
|
|
94
|
-
return b.build();
|
|
95
|
-
};
|
|
96
|
-
export const se_CreateSubscriberNotificationCommand = async (input, context) => {
|
|
97
|
-
const b = rb(input, context);
|
|
98
|
-
const headers = {
|
|
99
|
-
"content-type": "application/json",
|
|
100
|
-
};
|
|
101
|
-
b.bp("/v1/subscribers/{subscriberId}/notification");
|
|
102
|
-
b.p("subscriberId", () => input.subscriberId, "{subscriberId}", false);
|
|
103
|
-
let body;
|
|
104
|
-
body = JSON.stringify(take(input, {
|
|
105
|
-
configuration: (_) => _json(_),
|
|
106
|
-
}));
|
|
107
|
-
b.m("POST").h(headers).b(body);
|
|
108
|
-
return b.build();
|
|
109
|
-
};
|
|
110
|
-
export const se_DeleteAwsLogSourceCommand = async (input, context) => {
|
|
111
|
-
const b = rb(input, context);
|
|
112
|
-
const headers = {
|
|
113
|
-
"content-type": "application/json",
|
|
114
|
-
};
|
|
115
|
-
b.bp("/v1/datalake/logsources/aws/delete");
|
|
116
|
-
let body;
|
|
117
|
-
body = JSON.stringify(take(input, {
|
|
118
|
-
sources: (_) => _json(_),
|
|
119
|
-
}));
|
|
120
|
-
b.m("POST").h(headers).b(body);
|
|
121
|
-
return b.build();
|
|
122
|
-
};
|
|
123
|
-
export const se_DeleteCustomLogSourceCommand = async (input, context) => {
|
|
124
|
-
const b = rb(input, context);
|
|
125
|
-
const headers = {};
|
|
126
|
-
b.bp("/v1/datalake/logsources/custom/{sourceName}");
|
|
127
|
-
b.p("sourceName", () => input.sourceName, "{sourceName}", false);
|
|
128
|
-
const query = map({
|
|
129
|
-
[_sV]: [, input[_sV]],
|
|
130
|
-
});
|
|
131
|
-
let body;
|
|
132
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
133
|
-
return b.build();
|
|
134
|
-
};
|
|
135
|
-
export const se_DeleteDataLakeCommand = async (input, context) => {
|
|
136
|
-
const b = rb(input, context);
|
|
137
|
-
const headers = {
|
|
138
|
-
"content-type": "application/json",
|
|
139
|
-
};
|
|
140
|
-
b.bp("/v1/datalake/delete");
|
|
141
|
-
let body;
|
|
142
|
-
body = JSON.stringify(take(input, {
|
|
143
|
-
regions: (_) => _json(_),
|
|
144
|
-
}));
|
|
145
|
-
b.m("POST").h(headers).b(body);
|
|
146
|
-
return b.build();
|
|
147
|
-
};
|
|
148
|
-
export const se_DeleteDataLakeExceptionSubscriptionCommand = async (input, context) => {
|
|
149
|
-
const b = rb(input, context);
|
|
150
|
-
const headers = {};
|
|
151
|
-
b.bp("/v1/datalake/exceptions/subscription");
|
|
152
|
-
let body;
|
|
153
|
-
b.m("DELETE").h(headers).b(body);
|
|
154
|
-
return b.build();
|
|
155
|
-
};
|
|
156
|
-
export const se_DeleteDataLakeOrganizationConfigurationCommand = async (input, context) => {
|
|
157
|
-
const b = rb(input, context);
|
|
158
|
-
const headers = {
|
|
159
|
-
"content-type": "application/json",
|
|
160
|
-
};
|
|
161
|
-
b.bp("/v1/datalake/organization/configuration/delete");
|
|
162
|
-
let body;
|
|
163
|
-
body = JSON.stringify(take(input, {
|
|
164
|
-
autoEnableNewAccount: (_) => _json(_),
|
|
165
|
-
}));
|
|
166
|
-
b.m("POST").h(headers).b(body);
|
|
167
|
-
return b.build();
|
|
168
|
-
};
|
|
169
|
-
export const se_DeleteSubscriberCommand = async (input, context) => {
|
|
170
|
-
const b = rb(input, context);
|
|
171
|
-
const headers = {};
|
|
172
|
-
b.bp("/v1/subscribers/{subscriberId}");
|
|
173
|
-
b.p("subscriberId", () => input.subscriberId, "{subscriberId}", false);
|
|
174
|
-
let body;
|
|
175
|
-
b.m("DELETE").h(headers).b(body);
|
|
176
|
-
return b.build();
|
|
177
|
-
};
|
|
178
|
-
export const se_DeleteSubscriberNotificationCommand = async (input, context) => {
|
|
179
|
-
const b = rb(input, context);
|
|
180
|
-
const headers = {};
|
|
181
|
-
b.bp("/v1/subscribers/{subscriberId}/notification");
|
|
182
|
-
b.p("subscriberId", () => input.subscriberId, "{subscriberId}", false);
|
|
183
|
-
let body;
|
|
184
|
-
b.m("DELETE").h(headers).b(body);
|
|
185
|
-
return b.build();
|
|
186
|
-
};
|
|
187
|
-
export const se_DeregisterDataLakeDelegatedAdministratorCommand = async (input, context) => {
|
|
188
|
-
const b = rb(input, context);
|
|
189
|
-
const headers = {};
|
|
190
|
-
b.bp("/v1/datalake/delegate");
|
|
191
|
-
let body;
|
|
192
|
-
b.m("DELETE").h(headers).b(body);
|
|
193
|
-
return b.build();
|
|
194
|
-
};
|
|
195
|
-
export const se_GetDataLakeExceptionSubscriptionCommand = async (input, context) => {
|
|
196
|
-
const b = rb(input, context);
|
|
197
|
-
const headers = {};
|
|
198
|
-
b.bp("/v1/datalake/exceptions/subscription");
|
|
199
|
-
let body;
|
|
200
|
-
b.m("GET").h(headers).b(body);
|
|
201
|
-
return b.build();
|
|
202
|
-
};
|
|
203
|
-
export const se_GetDataLakeOrganizationConfigurationCommand = async (input, context) => {
|
|
204
|
-
const b = rb(input, context);
|
|
205
|
-
const headers = {};
|
|
206
|
-
b.bp("/v1/datalake/organization/configuration");
|
|
207
|
-
let body;
|
|
208
|
-
b.m("GET").h(headers).b(body);
|
|
209
|
-
return b.build();
|
|
210
|
-
};
|
|
211
|
-
export const se_GetDataLakeSourcesCommand = async (input, context) => {
|
|
212
|
-
const b = rb(input, context);
|
|
213
|
-
const headers = {
|
|
214
|
-
"content-type": "application/json",
|
|
215
|
-
};
|
|
216
|
-
b.bp("/v1/datalake/sources");
|
|
217
|
-
let body;
|
|
218
|
-
body = JSON.stringify(take(input, {
|
|
219
|
-
accounts: (_) => _json(_),
|
|
220
|
-
maxResults: [],
|
|
221
|
-
nextToken: [],
|
|
222
|
-
}));
|
|
223
|
-
b.m("POST").h(headers).b(body);
|
|
224
|
-
return b.build();
|
|
225
|
-
};
|
|
226
|
-
export const se_GetSubscriberCommand = async (input, context) => {
|
|
227
|
-
const b = rb(input, context);
|
|
228
|
-
const headers = {};
|
|
229
|
-
b.bp("/v1/subscribers/{subscriberId}");
|
|
230
|
-
b.p("subscriberId", () => input.subscriberId, "{subscriberId}", false);
|
|
231
|
-
let body;
|
|
232
|
-
b.m("GET").h(headers).b(body);
|
|
233
|
-
return b.build();
|
|
234
|
-
};
|
|
235
|
-
export const se_ListDataLakeExceptionsCommand = async (input, context) => {
|
|
236
|
-
const b = rb(input, context);
|
|
237
|
-
const headers = {
|
|
238
|
-
"content-type": "application/json",
|
|
239
|
-
};
|
|
240
|
-
b.bp("/v1/datalake/exceptions");
|
|
241
|
-
let body;
|
|
242
|
-
body = JSON.stringify(take(input, {
|
|
243
|
-
maxResults: [],
|
|
244
|
-
nextToken: [],
|
|
245
|
-
regions: (_) => _json(_),
|
|
246
|
-
}));
|
|
247
|
-
b.m("POST").h(headers).b(body);
|
|
248
|
-
return b.build();
|
|
249
|
-
};
|
|
250
|
-
export const se_ListDataLakesCommand = async (input, context) => {
|
|
251
|
-
const b = rb(input, context);
|
|
252
|
-
const headers = {};
|
|
253
|
-
b.bp("/v1/datalakes");
|
|
254
|
-
const query = map({
|
|
255
|
-
[_r]: [() => input.regions !== void 0, () => input[_r] || []],
|
|
256
|
-
});
|
|
257
|
-
let body;
|
|
258
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
259
|
-
return b.build();
|
|
260
|
-
};
|
|
261
|
-
export const se_ListLogSourcesCommand = async (input, context) => {
|
|
262
|
-
const b = rb(input, context);
|
|
263
|
-
const headers = {
|
|
264
|
-
"content-type": "application/json",
|
|
265
|
-
};
|
|
266
|
-
b.bp("/v1/datalake/logsources/list");
|
|
267
|
-
let body;
|
|
268
|
-
body = JSON.stringify(take(input, {
|
|
269
|
-
accounts: (_) => _json(_),
|
|
270
|
-
maxResults: [],
|
|
271
|
-
nextToken: [],
|
|
272
|
-
regions: (_) => _json(_),
|
|
273
|
-
sources: (_) => _json(_),
|
|
274
|
-
}));
|
|
275
|
-
b.m("POST").h(headers).b(body);
|
|
276
|
-
return b.build();
|
|
277
|
-
};
|
|
278
|
-
export const se_ListSubscribersCommand = async (input, context) => {
|
|
279
|
-
const b = rb(input, context);
|
|
280
|
-
const headers = {};
|
|
281
|
-
b.bp("/v1/subscribers");
|
|
282
|
-
const query = map({
|
|
283
|
-
[_nT]: [, input[_nT]],
|
|
284
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
285
|
-
});
|
|
286
|
-
let body;
|
|
287
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
288
|
-
return b.build();
|
|
289
|
-
};
|
|
290
|
-
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
291
|
-
const b = rb(input, context);
|
|
292
|
-
const headers = {};
|
|
293
|
-
b.bp("/v1/tags/{resourceArn}");
|
|
294
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
295
|
-
let body;
|
|
296
|
-
b.m("GET").h(headers).b(body);
|
|
297
|
-
return b.build();
|
|
298
|
-
};
|
|
299
|
-
export const se_RegisterDataLakeDelegatedAdministratorCommand = async (input, context) => {
|
|
300
|
-
const b = rb(input, context);
|
|
301
|
-
const headers = {
|
|
302
|
-
"content-type": "application/json",
|
|
303
|
-
};
|
|
304
|
-
b.bp("/v1/datalake/delegate");
|
|
305
|
-
let body;
|
|
306
|
-
body = JSON.stringify(take(input, {
|
|
307
|
-
accountId: [],
|
|
308
|
-
}));
|
|
309
|
-
b.m("POST").h(headers).b(body);
|
|
310
|
-
return b.build();
|
|
311
|
-
};
|
|
312
|
-
export const se_TagResourceCommand = async (input, context) => {
|
|
313
|
-
const b = rb(input, context);
|
|
314
|
-
const headers = {
|
|
315
|
-
"content-type": "application/json",
|
|
316
|
-
};
|
|
317
|
-
b.bp("/v1/tags/{resourceArn}");
|
|
318
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
319
|
-
let body;
|
|
320
|
-
body = JSON.stringify(take(input, {
|
|
321
|
-
tags: (_) => _json(_),
|
|
322
|
-
}));
|
|
323
|
-
b.m("POST").h(headers).b(body);
|
|
324
|
-
return b.build();
|
|
325
|
-
};
|
|
326
|
-
export const se_UntagResourceCommand = async (input, context) => {
|
|
327
|
-
const b = rb(input, context);
|
|
328
|
-
const headers = {};
|
|
329
|
-
b.bp("/v1/tags/{resourceArn}");
|
|
330
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
331
|
-
const query = map({
|
|
332
|
-
[_tK]: [__expectNonNull(input.tagKeys, `tagKeys`) != null, () => input[_tK] || []],
|
|
333
|
-
});
|
|
334
|
-
let body;
|
|
335
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
336
|
-
return b.build();
|
|
337
|
-
};
|
|
338
|
-
export const se_UpdateDataLakeCommand = async (input, context) => {
|
|
339
|
-
const b = rb(input, context);
|
|
340
|
-
const headers = {
|
|
341
|
-
"content-type": "application/json",
|
|
342
|
-
};
|
|
343
|
-
b.bp("/v1/datalake");
|
|
344
|
-
let body;
|
|
345
|
-
body = JSON.stringify(take(input, {
|
|
346
|
-
configurations: (_) => _json(_),
|
|
347
|
-
metaStoreManagerRoleArn: [],
|
|
348
|
-
}));
|
|
349
|
-
b.m("PUT").h(headers).b(body);
|
|
350
|
-
return b.build();
|
|
351
|
-
};
|
|
352
|
-
export const se_UpdateDataLakeExceptionSubscriptionCommand = async (input, context) => {
|
|
353
|
-
const b = rb(input, context);
|
|
354
|
-
const headers = {
|
|
355
|
-
"content-type": "application/json",
|
|
356
|
-
};
|
|
357
|
-
b.bp("/v1/datalake/exceptions/subscription");
|
|
358
|
-
let body;
|
|
359
|
-
body = JSON.stringify(take(input, {
|
|
360
|
-
exceptionTimeToLive: [],
|
|
361
|
-
notificationEndpoint: [],
|
|
362
|
-
subscriptionProtocol: [],
|
|
363
|
-
}));
|
|
364
|
-
b.m("PUT").h(headers).b(body);
|
|
365
|
-
return b.build();
|
|
366
|
-
};
|
|
367
|
-
export const se_UpdateSubscriberCommand = async (input, context) => {
|
|
368
|
-
const b = rb(input, context);
|
|
369
|
-
const headers = {
|
|
370
|
-
"content-type": "application/json",
|
|
371
|
-
};
|
|
372
|
-
b.bp("/v1/subscribers/{subscriberId}");
|
|
373
|
-
b.p("subscriberId", () => input.subscriberId, "{subscriberId}", false);
|
|
374
|
-
let body;
|
|
375
|
-
body = JSON.stringify(take(input, {
|
|
376
|
-
sources: (_) => _json(_),
|
|
377
|
-
subscriberDescription: [],
|
|
378
|
-
subscriberIdentity: (_) => _json(_),
|
|
379
|
-
subscriberName: [],
|
|
380
|
-
}));
|
|
381
|
-
b.m("PUT").h(headers).b(body);
|
|
382
|
-
return b.build();
|
|
383
|
-
};
|
|
384
|
-
export const se_UpdateSubscriberNotificationCommand = async (input, context) => {
|
|
385
|
-
const b = rb(input, context);
|
|
386
|
-
const headers = {
|
|
387
|
-
"content-type": "application/json",
|
|
388
|
-
};
|
|
389
|
-
b.bp("/v1/subscribers/{subscriberId}/notification");
|
|
390
|
-
b.p("subscriberId", () => input.subscriberId, "{subscriberId}", false);
|
|
391
|
-
let body;
|
|
392
|
-
body = JSON.stringify(take(input, {
|
|
393
|
-
configuration: (_) => _json(_),
|
|
394
|
-
}));
|
|
395
|
-
b.m("PUT").h(headers).b(body);
|
|
396
|
-
return b.build();
|
|
397
|
-
};
|
|
398
|
-
export const de_CreateAwsLogSourceCommand = async (output, context) => {
|
|
399
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
400
|
-
return de_CommandError(output, context);
|
|
401
|
-
}
|
|
402
|
-
const contents = map({
|
|
403
|
-
$metadata: deserializeMetadata(output),
|
|
404
|
-
});
|
|
405
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
406
|
-
const doc = take(data, {
|
|
407
|
-
failed: _json,
|
|
408
|
-
});
|
|
409
|
-
Object.assign(contents, doc);
|
|
410
|
-
return contents;
|
|
411
|
-
};
|
|
412
|
-
export const de_CreateCustomLogSourceCommand = async (output, context) => {
|
|
413
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
414
|
-
return de_CommandError(output, context);
|
|
415
|
-
}
|
|
416
|
-
const contents = map({
|
|
417
|
-
$metadata: deserializeMetadata(output),
|
|
418
|
-
});
|
|
419
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
420
|
-
const doc = take(data, {
|
|
421
|
-
source: _json,
|
|
422
|
-
});
|
|
423
|
-
Object.assign(contents, doc);
|
|
424
|
-
return contents;
|
|
425
|
-
};
|
|
426
|
-
export const de_CreateDataLakeCommand = async (output, context) => {
|
|
427
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
428
|
-
return de_CommandError(output, context);
|
|
429
|
-
}
|
|
430
|
-
const contents = map({
|
|
431
|
-
$metadata: deserializeMetadata(output),
|
|
432
|
-
});
|
|
433
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
434
|
-
const doc = take(data, {
|
|
435
|
-
dataLakes: _json,
|
|
436
|
-
});
|
|
437
|
-
Object.assign(contents, doc);
|
|
438
|
-
return contents;
|
|
439
|
-
};
|
|
440
|
-
export const de_CreateDataLakeExceptionSubscriptionCommand = async (output, context) => {
|
|
441
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
442
|
-
return de_CommandError(output, context);
|
|
443
|
-
}
|
|
444
|
-
const contents = map({
|
|
445
|
-
$metadata: deserializeMetadata(output),
|
|
446
|
-
});
|
|
447
|
-
await collectBody(output.body, context);
|
|
448
|
-
return contents;
|
|
449
|
-
};
|
|
450
|
-
export const de_CreateDataLakeOrganizationConfigurationCommand = async (output, context) => {
|
|
451
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
452
|
-
return de_CommandError(output, context);
|
|
453
|
-
}
|
|
454
|
-
const contents = map({
|
|
455
|
-
$metadata: deserializeMetadata(output),
|
|
456
|
-
});
|
|
457
|
-
await collectBody(output.body, context);
|
|
458
|
-
return contents;
|
|
459
|
-
};
|
|
460
|
-
export const de_CreateSubscriberCommand = async (output, context) => {
|
|
461
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
462
|
-
return de_CommandError(output, context);
|
|
463
|
-
}
|
|
464
|
-
const contents = map({
|
|
465
|
-
$metadata: deserializeMetadata(output),
|
|
466
|
-
});
|
|
467
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
468
|
-
const doc = take(data, {
|
|
469
|
-
subscriber: (_) => de_SubscriberResource(_, context),
|
|
470
|
-
});
|
|
471
|
-
Object.assign(contents, doc);
|
|
472
|
-
return contents;
|
|
473
|
-
};
|
|
474
|
-
export const de_CreateSubscriberNotificationCommand = async (output, context) => {
|
|
475
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
476
|
-
return de_CommandError(output, context);
|
|
477
|
-
}
|
|
478
|
-
const contents = map({
|
|
479
|
-
$metadata: deserializeMetadata(output),
|
|
480
|
-
});
|
|
481
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
482
|
-
const doc = take(data, {
|
|
483
|
-
subscriberEndpoint: __expectString,
|
|
484
|
-
});
|
|
485
|
-
Object.assign(contents, doc);
|
|
486
|
-
return contents;
|
|
487
|
-
};
|
|
488
|
-
export const de_DeleteAwsLogSourceCommand = async (output, context) => {
|
|
489
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
490
|
-
return de_CommandError(output, context);
|
|
491
|
-
}
|
|
492
|
-
const contents = map({
|
|
493
|
-
$metadata: deserializeMetadata(output),
|
|
494
|
-
});
|
|
495
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
496
|
-
const doc = take(data, {
|
|
497
|
-
failed: _json,
|
|
498
|
-
});
|
|
499
|
-
Object.assign(contents, doc);
|
|
500
|
-
return contents;
|
|
501
|
-
};
|
|
502
|
-
export const de_DeleteCustomLogSourceCommand = async (output, context) => {
|
|
503
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
504
|
-
return de_CommandError(output, context);
|
|
505
|
-
}
|
|
506
|
-
const contents = map({
|
|
507
|
-
$metadata: deserializeMetadata(output),
|
|
508
|
-
});
|
|
509
|
-
await collectBody(output.body, context);
|
|
510
|
-
return contents;
|
|
511
|
-
};
|
|
512
|
-
export const de_DeleteDataLakeCommand = async (output, context) => {
|
|
513
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
514
|
-
return de_CommandError(output, context);
|
|
515
|
-
}
|
|
516
|
-
const contents = map({
|
|
517
|
-
$metadata: deserializeMetadata(output),
|
|
518
|
-
});
|
|
519
|
-
await collectBody(output.body, context);
|
|
520
|
-
return contents;
|
|
521
|
-
};
|
|
522
|
-
export const de_DeleteDataLakeExceptionSubscriptionCommand = async (output, context) => {
|
|
523
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
524
|
-
return de_CommandError(output, context);
|
|
525
|
-
}
|
|
526
|
-
const contents = map({
|
|
527
|
-
$metadata: deserializeMetadata(output),
|
|
528
|
-
});
|
|
529
|
-
await collectBody(output.body, context);
|
|
530
|
-
return contents;
|
|
531
|
-
};
|
|
532
|
-
export const de_DeleteDataLakeOrganizationConfigurationCommand = async (output, context) => {
|
|
533
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
534
|
-
return de_CommandError(output, context);
|
|
535
|
-
}
|
|
536
|
-
const contents = map({
|
|
537
|
-
$metadata: deserializeMetadata(output),
|
|
538
|
-
});
|
|
539
|
-
await collectBody(output.body, context);
|
|
540
|
-
return contents;
|
|
541
|
-
};
|
|
542
|
-
export const de_DeleteSubscriberCommand = async (output, context) => {
|
|
543
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
544
|
-
return de_CommandError(output, context);
|
|
545
|
-
}
|
|
546
|
-
const contents = map({
|
|
547
|
-
$metadata: deserializeMetadata(output),
|
|
548
|
-
});
|
|
549
|
-
await collectBody(output.body, context);
|
|
550
|
-
return contents;
|
|
551
|
-
};
|
|
552
|
-
export const de_DeleteSubscriberNotificationCommand = async (output, context) => {
|
|
553
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
554
|
-
return de_CommandError(output, context);
|
|
555
|
-
}
|
|
556
|
-
const contents = map({
|
|
557
|
-
$metadata: deserializeMetadata(output),
|
|
558
|
-
});
|
|
559
|
-
await collectBody(output.body, context);
|
|
560
|
-
return contents;
|
|
561
|
-
};
|
|
562
|
-
export const de_DeregisterDataLakeDelegatedAdministratorCommand = async (output, context) => {
|
|
563
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
564
|
-
return de_CommandError(output, context);
|
|
565
|
-
}
|
|
566
|
-
const contents = map({
|
|
567
|
-
$metadata: deserializeMetadata(output),
|
|
568
|
-
});
|
|
569
|
-
await collectBody(output.body, context);
|
|
570
|
-
return contents;
|
|
571
|
-
};
|
|
572
|
-
export const de_GetDataLakeExceptionSubscriptionCommand = async (output, context) => {
|
|
573
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
574
|
-
return de_CommandError(output, context);
|
|
575
|
-
}
|
|
576
|
-
const contents = map({
|
|
577
|
-
$metadata: deserializeMetadata(output),
|
|
578
|
-
});
|
|
579
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
580
|
-
const doc = take(data, {
|
|
581
|
-
exceptionTimeToLive: __expectLong,
|
|
582
|
-
notificationEndpoint: __expectString,
|
|
583
|
-
subscriptionProtocol: __expectString,
|
|
584
|
-
});
|
|
585
|
-
Object.assign(contents, doc);
|
|
586
|
-
return contents;
|
|
587
|
-
};
|
|
588
|
-
export const de_GetDataLakeOrganizationConfigurationCommand = async (output, context) => {
|
|
589
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
590
|
-
return de_CommandError(output, context);
|
|
591
|
-
}
|
|
592
|
-
const contents = map({
|
|
593
|
-
$metadata: deserializeMetadata(output),
|
|
594
|
-
});
|
|
595
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
596
|
-
const doc = take(data, {
|
|
597
|
-
autoEnableNewAccount: _json,
|
|
598
|
-
});
|
|
599
|
-
Object.assign(contents, doc);
|
|
600
|
-
return contents;
|
|
601
|
-
};
|
|
602
|
-
export const de_GetDataLakeSourcesCommand = async (output, context) => {
|
|
603
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
604
|
-
return de_CommandError(output, context);
|
|
605
|
-
}
|
|
606
|
-
const contents = map({
|
|
607
|
-
$metadata: deserializeMetadata(output),
|
|
608
|
-
});
|
|
609
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
610
|
-
const doc = take(data, {
|
|
611
|
-
dataLakeArn: __expectString,
|
|
612
|
-
dataLakeSources: _json,
|
|
613
|
-
nextToken: __expectString,
|
|
614
|
-
});
|
|
615
|
-
Object.assign(contents, doc);
|
|
616
|
-
return contents;
|
|
617
|
-
};
|
|
618
|
-
export const de_GetSubscriberCommand = async (output, context) => {
|
|
619
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
620
|
-
return de_CommandError(output, context);
|
|
621
|
-
}
|
|
622
|
-
const contents = map({
|
|
623
|
-
$metadata: deserializeMetadata(output),
|
|
624
|
-
});
|
|
625
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
626
|
-
const doc = take(data, {
|
|
627
|
-
subscriber: (_) => de_SubscriberResource(_, context),
|
|
628
|
-
});
|
|
629
|
-
Object.assign(contents, doc);
|
|
630
|
-
return contents;
|
|
631
|
-
};
|
|
632
|
-
export const de_ListDataLakeExceptionsCommand = async (output, context) => {
|
|
633
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
634
|
-
return de_CommandError(output, context);
|
|
635
|
-
}
|
|
636
|
-
const contents = map({
|
|
637
|
-
$metadata: deserializeMetadata(output),
|
|
638
|
-
});
|
|
639
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
640
|
-
const doc = take(data, {
|
|
641
|
-
exceptions: (_) => de_DataLakeExceptionList(_, context),
|
|
642
|
-
nextToken: __expectString,
|
|
643
|
-
});
|
|
644
|
-
Object.assign(contents, doc);
|
|
645
|
-
return contents;
|
|
646
|
-
};
|
|
647
|
-
export const de_ListDataLakesCommand = async (output, context) => {
|
|
648
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
649
|
-
return de_CommandError(output, context);
|
|
650
|
-
}
|
|
651
|
-
const contents = map({
|
|
652
|
-
$metadata: deserializeMetadata(output),
|
|
653
|
-
});
|
|
654
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
655
|
-
const doc = take(data, {
|
|
656
|
-
dataLakes: _json,
|
|
657
|
-
});
|
|
658
|
-
Object.assign(contents, doc);
|
|
659
|
-
return contents;
|
|
660
|
-
};
|
|
661
|
-
export const de_ListLogSourcesCommand = async (output, context) => {
|
|
662
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
663
|
-
return de_CommandError(output, context);
|
|
664
|
-
}
|
|
665
|
-
const contents = map({
|
|
666
|
-
$metadata: deserializeMetadata(output),
|
|
667
|
-
});
|
|
668
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
669
|
-
const doc = take(data, {
|
|
670
|
-
nextToken: __expectString,
|
|
671
|
-
sources: _json,
|
|
672
|
-
});
|
|
673
|
-
Object.assign(contents, doc);
|
|
674
|
-
return contents;
|
|
675
|
-
};
|
|
676
|
-
export const de_ListSubscribersCommand = async (output, context) => {
|
|
677
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
678
|
-
return de_CommandError(output, context);
|
|
679
|
-
}
|
|
680
|
-
const contents = map({
|
|
681
|
-
$metadata: deserializeMetadata(output),
|
|
682
|
-
});
|
|
683
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
684
|
-
const doc = take(data, {
|
|
685
|
-
nextToken: __expectString,
|
|
686
|
-
subscribers: (_) => de_SubscriberResourceList(_, context),
|
|
687
|
-
});
|
|
688
|
-
Object.assign(contents, doc);
|
|
689
|
-
return contents;
|
|
690
|
-
};
|
|
691
|
-
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
692
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
693
|
-
return de_CommandError(output, context);
|
|
694
|
-
}
|
|
695
|
-
const contents = map({
|
|
696
|
-
$metadata: deserializeMetadata(output),
|
|
697
|
-
});
|
|
698
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
699
|
-
const doc = take(data, {
|
|
700
|
-
tags: _json,
|
|
701
|
-
});
|
|
702
|
-
Object.assign(contents, doc);
|
|
703
|
-
return contents;
|
|
704
|
-
};
|
|
705
|
-
export const de_RegisterDataLakeDelegatedAdministratorCommand = async (output, context) => {
|
|
706
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
707
|
-
return de_CommandError(output, context);
|
|
708
|
-
}
|
|
709
|
-
const contents = map({
|
|
710
|
-
$metadata: deserializeMetadata(output),
|
|
711
|
-
});
|
|
712
|
-
await collectBody(output.body, context);
|
|
713
|
-
return contents;
|
|
714
|
-
};
|
|
715
|
-
export const de_TagResourceCommand = async (output, context) => {
|
|
716
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
717
|
-
return de_CommandError(output, context);
|
|
718
|
-
}
|
|
719
|
-
const contents = map({
|
|
720
|
-
$metadata: deserializeMetadata(output),
|
|
721
|
-
});
|
|
722
|
-
await collectBody(output.body, context);
|
|
723
|
-
return contents;
|
|
724
|
-
};
|
|
725
|
-
export const de_UntagResourceCommand = async (output, context) => {
|
|
726
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
727
|
-
return de_CommandError(output, context);
|
|
728
|
-
}
|
|
729
|
-
const contents = map({
|
|
730
|
-
$metadata: deserializeMetadata(output),
|
|
731
|
-
});
|
|
732
|
-
await collectBody(output.body, context);
|
|
733
|
-
return contents;
|
|
734
|
-
};
|
|
735
|
-
export const de_UpdateDataLakeCommand = async (output, context) => {
|
|
736
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
737
|
-
return de_CommandError(output, context);
|
|
738
|
-
}
|
|
739
|
-
const contents = map({
|
|
740
|
-
$metadata: deserializeMetadata(output),
|
|
741
|
-
});
|
|
742
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
743
|
-
const doc = take(data, {
|
|
744
|
-
dataLakes: _json,
|
|
745
|
-
});
|
|
746
|
-
Object.assign(contents, doc);
|
|
747
|
-
return contents;
|
|
748
|
-
};
|
|
749
|
-
export const de_UpdateDataLakeExceptionSubscriptionCommand = async (output, context) => {
|
|
750
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
751
|
-
return de_CommandError(output, context);
|
|
752
|
-
}
|
|
753
|
-
const contents = map({
|
|
754
|
-
$metadata: deserializeMetadata(output),
|
|
755
|
-
});
|
|
756
|
-
await collectBody(output.body, context);
|
|
757
|
-
return contents;
|
|
758
|
-
};
|
|
759
|
-
export const de_UpdateSubscriberCommand = async (output, context) => {
|
|
760
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
761
|
-
return de_CommandError(output, context);
|
|
762
|
-
}
|
|
763
|
-
const contents = map({
|
|
764
|
-
$metadata: deserializeMetadata(output),
|
|
765
|
-
});
|
|
766
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
767
|
-
const doc = take(data, {
|
|
768
|
-
subscriber: (_) => de_SubscriberResource(_, context),
|
|
769
|
-
});
|
|
770
|
-
Object.assign(contents, doc);
|
|
771
|
-
return contents;
|
|
772
|
-
};
|
|
773
|
-
export const de_UpdateSubscriberNotificationCommand = async (output, context) => {
|
|
774
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
775
|
-
return de_CommandError(output, context);
|
|
776
|
-
}
|
|
777
|
-
const contents = map({
|
|
778
|
-
$metadata: deserializeMetadata(output),
|
|
779
|
-
});
|
|
780
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
781
|
-
const doc = take(data, {
|
|
782
|
-
subscriberEndpoint: __expectString,
|
|
783
|
-
});
|
|
784
|
-
Object.assign(contents, doc);
|
|
785
|
-
return contents;
|
|
786
|
-
};
|
|
787
|
-
const de_CommandError = async (output, context) => {
|
|
788
|
-
const parsedOutput = {
|
|
789
|
-
...output,
|
|
790
|
-
body: await parseErrorBody(output.body, context),
|
|
791
|
-
};
|
|
792
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
793
|
-
switch (errorCode) {
|
|
794
|
-
case "AccessDeniedException":
|
|
795
|
-
case "com.amazonaws.securitylake#AccessDeniedException":
|
|
796
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
797
|
-
case "BadRequestException":
|
|
798
|
-
case "com.amazonaws.securitylake#BadRequestException":
|
|
799
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
800
|
-
case "ConflictException":
|
|
801
|
-
case "com.amazonaws.securitylake#ConflictException":
|
|
802
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
803
|
-
case "InternalServerException":
|
|
804
|
-
case "com.amazonaws.securitylake#InternalServerException":
|
|
805
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
806
|
-
case "ResourceNotFoundException":
|
|
807
|
-
case "com.amazonaws.securitylake#ResourceNotFoundException":
|
|
808
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
809
|
-
case "ThrottlingException":
|
|
810
|
-
case "com.amazonaws.securitylake#ThrottlingException":
|
|
811
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
812
|
-
default:
|
|
813
|
-
const parsedBody = parsedOutput.body;
|
|
814
|
-
return throwDefaultError({
|
|
815
|
-
output,
|
|
816
|
-
parsedBody,
|
|
817
|
-
errorCode,
|
|
818
|
-
});
|
|
819
|
-
}
|
|
820
|
-
};
|
|
821
|
-
const throwDefaultError = withBaseException(__BaseException);
|
|
822
|
-
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
823
|
-
const contents = map({});
|
|
824
|
-
const data = parsedOutput.body;
|
|
825
|
-
const doc = take(data, {
|
|
826
|
-
errorCode: __expectString,
|
|
827
|
-
message: __expectString,
|
|
828
|
-
});
|
|
829
|
-
Object.assign(contents, doc);
|
|
830
|
-
const exception = new AccessDeniedException({
|
|
831
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
832
|
-
...contents,
|
|
833
|
-
});
|
|
834
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
835
|
-
};
|
|
836
|
-
const de_BadRequestExceptionRes = async (parsedOutput, context) => {
|
|
837
|
-
const contents = map({});
|
|
838
|
-
const data = parsedOutput.body;
|
|
839
|
-
const doc = take(data, {
|
|
840
|
-
message: __expectString,
|
|
841
|
-
});
|
|
842
|
-
Object.assign(contents, doc);
|
|
843
|
-
const exception = new BadRequestException({
|
|
844
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
845
|
-
...contents,
|
|
846
|
-
});
|
|
847
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
848
|
-
};
|
|
849
|
-
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
850
|
-
const contents = map({});
|
|
851
|
-
const data = parsedOutput.body;
|
|
852
|
-
const doc = take(data, {
|
|
853
|
-
message: __expectString,
|
|
854
|
-
resourceName: __expectString,
|
|
855
|
-
resourceType: __expectString,
|
|
856
|
-
});
|
|
857
|
-
Object.assign(contents, doc);
|
|
858
|
-
const exception = new ConflictException({
|
|
859
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
860
|
-
...contents,
|
|
861
|
-
});
|
|
862
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
863
|
-
};
|
|
864
|
-
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
865
|
-
const contents = map({});
|
|
866
|
-
const data = parsedOutput.body;
|
|
867
|
-
const doc = take(data, {
|
|
868
|
-
message: __expectString,
|
|
869
|
-
});
|
|
870
|
-
Object.assign(contents, doc);
|
|
871
|
-
const exception = new InternalServerException({
|
|
872
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
873
|
-
...contents,
|
|
874
|
-
});
|
|
875
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
876
|
-
};
|
|
877
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
878
|
-
const contents = map({});
|
|
879
|
-
const data = parsedOutput.body;
|
|
880
|
-
const doc = take(data, {
|
|
881
|
-
message: __expectString,
|
|
882
|
-
resourceName: __expectString,
|
|
883
|
-
resourceType: __expectString,
|
|
884
|
-
});
|
|
885
|
-
Object.assign(contents, doc);
|
|
886
|
-
const exception = new ResourceNotFoundException({
|
|
887
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
888
|
-
...contents,
|
|
889
|
-
});
|
|
890
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
891
|
-
};
|
|
892
|
-
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
893
|
-
const contents = map({
|
|
894
|
-
[_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => __strictParseInt32(parsedOutput.headers[_ra])],
|
|
895
|
-
});
|
|
896
|
-
const data = parsedOutput.body;
|
|
897
|
-
const doc = take(data, {
|
|
898
|
-
message: __expectString,
|
|
899
|
-
quotaCode: __expectString,
|
|
900
|
-
serviceCode: __expectString,
|
|
901
|
-
});
|
|
902
|
-
Object.assign(contents, doc);
|
|
903
|
-
const exception = new ThrottlingException({
|
|
904
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
905
|
-
...contents,
|
|
906
|
-
});
|
|
907
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
908
|
-
};
|
|
909
|
-
const de_DataLakeException = (output, context) => {
|
|
910
|
-
return take(output, {
|
|
911
|
-
exception: __expectString,
|
|
912
|
-
region: __expectString,
|
|
913
|
-
remediation: __expectString,
|
|
914
|
-
timestamp: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
915
|
-
});
|
|
916
|
-
};
|
|
917
|
-
const de_DataLakeExceptionList = (output, context) => {
|
|
918
|
-
const retVal = (output || [])
|
|
919
|
-
.filter((e) => e != null)
|
|
920
|
-
.map((entry) => {
|
|
921
|
-
return de_DataLakeException(entry, context);
|
|
922
|
-
});
|
|
923
|
-
return retVal;
|
|
924
|
-
};
|
|
925
|
-
const de_SubscriberResource = (output, context) => {
|
|
926
|
-
return take(output, {
|
|
927
|
-
accessTypes: _json,
|
|
928
|
-
createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
929
|
-
resourceShareArn: __expectString,
|
|
930
|
-
resourceShareName: __expectString,
|
|
931
|
-
roleArn: __expectString,
|
|
932
|
-
s3BucketArn: __expectString,
|
|
933
|
-
sources: _json,
|
|
934
|
-
subscriberArn: __expectString,
|
|
935
|
-
subscriberDescription: __expectString,
|
|
936
|
-
subscriberEndpoint: __expectString,
|
|
937
|
-
subscriberId: __expectString,
|
|
938
|
-
subscriberIdentity: _json,
|
|
939
|
-
subscriberName: __expectString,
|
|
940
|
-
subscriberStatus: __expectString,
|
|
941
|
-
updatedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
942
|
-
});
|
|
943
|
-
};
|
|
944
|
-
const de_SubscriberResourceList = (output, context) => {
|
|
945
|
-
const retVal = (output || [])
|
|
946
|
-
.filter((e) => e != null)
|
|
947
|
-
.map((entry) => {
|
|
948
|
-
return de_SubscriberResource(entry, context);
|
|
949
|
-
});
|
|
950
|
-
return retVal;
|
|
951
|
-
};
|
|
952
|
-
const deserializeMetadata = (output) => ({
|
|
953
|
-
httpStatusCode: output.statusCode,
|
|
954
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
955
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
956
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
957
|
-
});
|
|
958
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
959
|
-
const _mR = "maxResults";
|
|
960
|
-
const _nT = "nextToken";
|
|
961
|
-
const _r = "regions";
|
|
962
|
-
const _rAS = "retryAfterSeconds";
|
|
963
|
-
const _ra = "retry-after";
|
|
964
|
-
const _sV = "sourceVersion";
|
|
965
|
-
const _tK = "tagKeys";
|