@aws-sdk/client-securitylake 3.490.0 → 3.496.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/SecurityLake.js +1 -73
- package/dist-cjs/SecurityLakeClient.js +1 -43
- package/dist-cjs/commands/CreateAwsLogSourceCommand.js +1 -28
- package/dist-cjs/commands/CreateCustomLogSourceCommand.js +1 -28
- package/dist-cjs/commands/CreateDataLakeCommand.js +1 -28
- package/dist-cjs/commands/CreateDataLakeExceptionSubscriptionCommand.js +1 -28
- package/dist-cjs/commands/CreateDataLakeOrganizationConfigurationCommand.js +1 -28
- package/dist-cjs/commands/CreateSubscriberCommand.js +1 -28
- package/dist-cjs/commands/CreateSubscriberNotificationCommand.js +1 -28
- package/dist-cjs/commands/DeleteAwsLogSourceCommand.js +1 -28
- package/dist-cjs/commands/DeleteCustomLogSourceCommand.js +1 -28
- package/dist-cjs/commands/DeleteDataLakeCommand.js +1 -28
- package/dist-cjs/commands/DeleteDataLakeExceptionSubscriptionCommand.js +1 -28
- package/dist-cjs/commands/DeleteDataLakeOrganizationConfigurationCommand.js +1 -28
- package/dist-cjs/commands/DeleteSubscriberCommand.js +1 -28
- package/dist-cjs/commands/DeleteSubscriberNotificationCommand.js +1 -28
- package/dist-cjs/commands/DeregisterDataLakeDelegatedAdministratorCommand.js +1 -28
- package/dist-cjs/commands/GetDataLakeExceptionSubscriptionCommand.js +1 -28
- package/dist-cjs/commands/GetDataLakeOrganizationConfigurationCommand.js +1 -28
- package/dist-cjs/commands/GetDataLakeSourcesCommand.js +1 -28
- package/dist-cjs/commands/GetSubscriberCommand.js +1 -28
- package/dist-cjs/commands/ListDataLakeExceptionsCommand.js +1 -28
- package/dist-cjs/commands/ListDataLakesCommand.js +1 -28
- package/dist-cjs/commands/ListLogSourcesCommand.js +1 -28
- package/dist-cjs/commands/ListSubscribersCommand.js +1 -28
- package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
- package/dist-cjs/commands/RegisterDataLakeDelegatedAdministratorCommand.js +1 -28
- package/dist-cjs/commands/TagResourceCommand.js +1 -28
- package/dist-cjs/commands/UntagResourceCommand.js +1 -28
- package/dist-cjs/commands/UpdateDataLakeCommand.js +1 -28
- package/dist-cjs/commands/UpdateDataLakeExceptionSubscriptionCommand.js +1 -28
- package/dist-cjs/commands/UpdateSubscriberCommand.js +1 -28
- package/dist-cjs/commands/UpdateSubscriberNotificationCommand.js +1 -28
- package/dist-cjs/commands/index.js +1 -34
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +3068 -11
- package/dist-cjs/models/SecurityLakeServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -147
- package/dist-cjs/pagination/GetDataLakeSourcesPaginator.js +1 -7
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/ListDataLakeExceptionsPaginator.js +1 -7
- package/dist-cjs/pagination/ListLogSourcesPaginator.js +1 -7
- package/dist-cjs/pagination/ListSubscribersPaginator.js +1 -7
- package/dist-cjs/pagination/index.js +1 -8
- package/dist-cjs/protocols/Aws_restJson1.js +1 -2109
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/package.json +40 -40
|
@@ -1,2109 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.de_GetSubscriberCommand = exports.de_GetDataLakeSourcesCommand = exports.de_GetDataLakeOrganizationConfigurationCommand = exports.de_GetDataLakeExceptionSubscriptionCommand = exports.de_DeregisterDataLakeDelegatedAdministratorCommand = exports.de_DeleteSubscriberNotificationCommand = exports.de_DeleteSubscriberCommand = exports.de_DeleteDataLakeOrganizationConfigurationCommand = exports.de_DeleteDataLakeExceptionSubscriptionCommand = exports.de_DeleteDataLakeCommand = exports.de_DeleteCustomLogSourceCommand = exports.de_DeleteAwsLogSourceCommand = exports.de_CreateSubscriberNotificationCommand = exports.de_CreateSubscriberCommand = exports.de_CreateDataLakeOrganizationConfigurationCommand = exports.de_CreateDataLakeExceptionSubscriptionCommand = exports.de_CreateDataLakeCommand = exports.de_CreateCustomLogSourceCommand = exports.de_CreateAwsLogSourceCommand = exports.se_UpdateSubscriberNotificationCommand = exports.se_UpdateSubscriberCommand = exports.se_UpdateDataLakeExceptionSubscriptionCommand = exports.se_UpdateDataLakeCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_RegisterDataLakeDelegatedAdministratorCommand = exports.se_ListTagsForResourceCommand = exports.se_ListSubscribersCommand = exports.se_ListLogSourcesCommand = exports.se_ListDataLakesCommand = exports.se_ListDataLakeExceptionsCommand = exports.se_GetSubscriberCommand = exports.se_GetDataLakeSourcesCommand = exports.se_GetDataLakeOrganizationConfigurationCommand = exports.se_GetDataLakeExceptionSubscriptionCommand = exports.se_DeregisterDataLakeDelegatedAdministratorCommand = exports.se_DeleteSubscriberNotificationCommand = exports.se_DeleteSubscriberCommand = exports.se_DeleteDataLakeOrganizationConfigurationCommand = exports.se_DeleteDataLakeExceptionSubscriptionCommand = exports.se_DeleteDataLakeCommand = exports.se_DeleteCustomLogSourceCommand = exports.se_DeleteAwsLogSourceCommand = exports.se_CreateSubscriberNotificationCommand = exports.se_CreateSubscriberCommand = exports.se_CreateDataLakeOrganizationConfigurationCommand = exports.se_CreateDataLakeExceptionSubscriptionCommand = exports.se_CreateDataLakeCommand = exports.se_CreateCustomLogSourceCommand = exports.se_CreateAwsLogSourceCommand = void 0;
|
|
4
|
-
exports.de_UpdateSubscriberNotificationCommand = exports.de_UpdateSubscriberCommand = exports.de_UpdateDataLakeExceptionSubscriptionCommand = exports.de_UpdateDataLakeCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_RegisterDataLakeDelegatedAdministratorCommand = exports.de_ListTagsForResourceCommand = exports.de_ListSubscribersCommand = exports.de_ListLogSourcesCommand = exports.de_ListDataLakesCommand = exports.de_ListDataLakeExceptionsCommand = void 0;
|
|
5
|
-
const core_1 = require("@smithy/core");
|
|
6
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
-
const models_0_1 = require("../models/models_0");
|
|
8
|
-
const SecurityLakeServiceException_1 = require("../models/SecurityLakeServiceException");
|
|
9
|
-
const se_CreateAwsLogSourceCommand = async (input, context) => {
|
|
10
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
11
|
-
const headers = {
|
|
12
|
-
"content-type": "application/json",
|
|
13
|
-
};
|
|
14
|
-
b.bp("/v1/datalake/logsources/aws");
|
|
15
|
-
let body;
|
|
16
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
17
|
-
sources: (_) => (0, smithy_client_1._json)(_),
|
|
18
|
-
}));
|
|
19
|
-
b.m("POST").h(headers).b(body);
|
|
20
|
-
return b.build();
|
|
21
|
-
};
|
|
22
|
-
exports.se_CreateAwsLogSourceCommand = se_CreateAwsLogSourceCommand;
|
|
23
|
-
const se_CreateCustomLogSourceCommand = async (input, context) => {
|
|
24
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
25
|
-
const headers = {
|
|
26
|
-
"content-type": "application/json",
|
|
27
|
-
};
|
|
28
|
-
b.bp("/v1/datalake/logsources/custom");
|
|
29
|
-
let body;
|
|
30
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
31
|
-
configuration: (_) => (0, smithy_client_1._json)(_),
|
|
32
|
-
eventClasses: (_) => (0, smithy_client_1._json)(_),
|
|
33
|
-
sourceName: [],
|
|
34
|
-
sourceVersion: [],
|
|
35
|
-
}));
|
|
36
|
-
b.m("POST").h(headers).b(body);
|
|
37
|
-
return b.build();
|
|
38
|
-
};
|
|
39
|
-
exports.se_CreateCustomLogSourceCommand = se_CreateCustomLogSourceCommand;
|
|
40
|
-
const se_CreateDataLakeCommand = async (input, context) => {
|
|
41
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
42
|
-
const headers = {
|
|
43
|
-
"content-type": "application/json",
|
|
44
|
-
};
|
|
45
|
-
b.bp("/v1/datalake");
|
|
46
|
-
let body;
|
|
47
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
48
|
-
configurations: (_) => (0, smithy_client_1._json)(_),
|
|
49
|
-
metaStoreManagerRoleArn: [],
|
|
50
|
-
tags: (_) => (0, smithy_client_1._json)(_),
|
|
51
|
-
}));
|
|
52
|
-
b.m("POST").h(headers).b(body);
|
|
53
|
-
return b.build();
|
|
54
|
-
};
|
|
55
|
-
exports.se_CreateDataLakeCommand = se_CreateDataLakeCommand;
|
|
56
|
-
const se_CreateDataLakeExceptionSubscriptionCommand = async (input, context) => {
|
|
57
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
58
|
-
const headers = {
|
|
59
|
-
"content-type": "application/json",
|
|
60
|
-
};
|
|
61
|
-
b.bp("/v1/datalake/exceptions/subscription");
|
|
62
|
-
let body;
|
|
63
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
64
|
-
exceptionTimeToLive: [],
|
|
65
|
-
notificationEndpoint: [],
|
|
66
|
-
subscriptionProtocol: [],
|
|
67
|
-
}));
|
|
68
|
-
b.m("POST").h(headers).b(body);
|
|
69
|
-
return b.build();
|
|
70
|
-
};
|
|
71
|
-
exports.se_CreateDataLakeExceptionSubscriptionCommand = se_CreateDataLakeExceptionSubscriptionCommand;
|
|
72
|
-
const se_CreateDataLakeOrganizationConfigurationCommand = async (input, context) => {
|
|
73
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
74
|
-
const headers = {
|
|
75
|
-
"content-type": "application/json",
|
|
76
|
-
};
|
|
77
|
-
b.bp("/v1/datalake/organization/configuration");
|
|
78
|
-
let body;
|
|
79
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
80
|
-
autoEnableNewAccount: (_) => (0, smithy_client_1._json)(_),
|
|
81
|
-
}));
|
|
82
|
-
b.m("POST").h(headers).b(body);
|
|
83
|
-
return b.build();
|
|
84
|
-
};
|
|
85
|
-
exports.se_CreateDataLakeOrganizationConfigurationCommand = se_CreateDataLakeOrganizationConfigurationCommand;
|
|
86
|
-
const se_CreateSubscriberCommand = async (input, context) => {
|
|
87
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
88
|
-
const headers = {
|
|
89
|
-
"content-type": "application/json",
|
|
90
|
-
};
|
|
91
|
-
b.bp("/v1/subscribers");
|
|
92
|
-
let body;
|
|
93
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
94
|
-
accessTypes: (_) => (0, smithy_client_1._json)(_),
|
|
95
|
-
sources: (_) => (0, smithy_client_1._json)(_),
|
|
96
|
-
subscriberDescription: [],
|
|
97
|
-
subscriberIdentity: (_) => (0, smithy_client_1._json)(_),
|
|
98
|
-
subscriberName: [],
|
|
99
|
-
tags: (_) => (0, smithy_client_1._json)(_),
|
|
100
|
-
}));
|
|
101
|
-
b.m("POST").h(headers).b(body);
|
|
102
|
-
return b.build();
|
|
103
|
-
};
|
|
104
|
-
exports.se_CreateSubscriberCommand = se_CreateSubscriberCommand;
|
|
105
|
-
const se_CreateSubscriberNotificationCommand = async (input, context) => {
|
|
106
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
107
|
-
const headers = {
|
|
108
|
-
"content-type": "application/json",
|
|
109
|
-
};
|
|
110
|
-
b.bp("/v1/subscribers/{subscriberId}/notification");
|
|
111
|
-
b.p("subscriberId", () => input.subscriberId, "{subscriberId}", false);
|
|
112
|
-
let body;
|
|
113
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
114
|
-
configuration: (_) => (0, smithy_client_1._json)(_),
|
|
115
|
-
}));
|
|
116
|
-
b.m("POST").h(headers).b(body);
|
|
117
|
-
return b.build();
|
|
118
|
-
};
|
|
119
|
-
exports.se_CreateSubscriberNotificationCommand = se_CreateSubscriberNotificationCommand;
|
|
120
|
-
const se_DeleteAwsLogSourceCommand = async (input, context) => {
|
|
121
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
122
|
-
const headers = {
|
|
123
|
-
"content-type": "application/json",
|
|
124
|
-
};
|
|
125
|
-
b.bp("/v1/datalake/logsources/aws/delete");
|
|
126
|
-
let body;
|
|
127
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
128
|
-
sources: (_) => (0, smithy_client_1._json)(_),
|
|
129
|
-
}));
|
|
130
|
-
b.m("POST").h(headers).b(body);
|
|
131
|
-
return b.build();
|
|
132
|
-
};
|
|
133
|
-
exports.se_DeleteAwsLogSourceCommand = se_DeleteAwsLogSourceCommand;
|
|
134
|
-
const se_DeleteCustomLogSourceCommand = async (input, context) => {
|
|
135
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
136
|
-
const headers = {};
|
|
137
|
-
b.bp("/v1/datalake/logsources/custom/{sourceName}");
|
|
138
|
-
b.p("sourceName", () => input.sourceName, "{sourceName}", false);
|
|
139
|
-
const query = (0, smithy_client_1.map)({
|
|
140
|
-
[_sV]: [, input[_sV]],
|
|
141
|
-
});
|
|
142
|
-
let body;
|
|
143
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
144
|
-
return b.build();
|
|
145
|
-
};
|
|
146
|
-
exports.se_DeleteCustomLogSourceCommand = se_DeleteCustomLogSourceCommand;
|
|
147
|
-
const se_DeleteDataLakeCommand = async (input, context) => {
|
|
148
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
149
|
-
const headers = {
|
|
150
|
-
"content-type": "application/json",
|
|
151
|
-
};
|
|
152
|
-
b.bp("/v1/datalake/delete");
|
|
153
|
-
let body;
|
|
154
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
155
|
-
regions: (_) => (0, smithy_client_1._json)(_),
|
|
156
|
-
}));
|
|
157
|
-
b.m("POST").h(headers).b(body);
|
|
158
|
-
return b.build();
|
|
159
|
-
};
|
|
160
|
-
exports.se_DeleteDataLakeCommand = se_DeleteDataLakeCommand;
|
|
161
|
-
const se_DeleteDataLakeExceptionSubscriptionCommand = async (input, context) => {
|
|
162
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
163
|
-
const headers = {
|
|
164
|
-
"content-type": "application/json",
|
|
165
|
-
};
|
|
166
|
-
b.bp("/v1/datalake/exceptions/subscription");
|
|
167
|
-
let body;
|
|
168
|
-
body = "";
|
|
169
|
-
b.m("DELETE").h(headers).b(body);
|
|
170
|
-
return b.build();
|
|
171
|
-
};
|
|
172
|
-
exports.se_DeleteDataLakeExceptionSubscriptionCommand = se_DeleteDataLakeExceptionSubscriptionCommand;
|
|
173
|
-
const se_DeleteDataLakeOrganizationConfigurationCommand = async (input, context) => {
|
|
174
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
175
|
-
const headers = {
|
|
176
|
-
"content-type": "application/json",
|
|
177
|
-
};
|
|
178
|
-
b.bp("/v1/datalake/organization/configuration/delete");
|
|
179
|
-
let body;
|
|
180
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
181
|
-
autoEnableNewAccount: (_) => (0, smithy_client_1._json)(_),
|
|
182
|
-
}));
|
|
183
|
-
b.m("POST").h(headers).b(body);
|
|
184
|
-
return b.build();
|
|
185
|
-
};
|
|
186
|
-
exports.se_DeleteDataLakeOrganizationConfigurationCommand = se_DeleteDataLakeOrganizationConfigurationCommand;
|
|
187
|
-
const se_DeleteSubscriberCommand = async (input, context) => {
|
|
188
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
189
|
-
const headers = {};
|
|
190
|
-
b.bp("/v1/subscribers/{subscriberId}");
|
|
191
|
-
b.p("subscriberId", () => input.subscriberId, "{subscriberId}", false);
|
|
192
|
-
let body;
|
|
193
|
-
b.m("DELETE").h(headers).b(body);
|
|
194
|
-
return b.build();
|
|
195
|
-
};
|
|
196
|
-
exports.se_DeleteSubscriberCommand = se_DeleteSubscriberCommand;
|
|
197
|
-
const se_DeleteSubscriberNotificationCommand = async (input, context) => {
|
|
198
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
199
|
-
const headers = {};
|
|
200
|
-
b.bp("/v1/subscribers/{subscriberId}/notification");
|
|
201
|
-
b.p("subscriberId", () => input.subscriberId, "{subscriberId}", false);
|
|
202
|
-
let body;
|
|
203
|
-
b.m("DELETE").h(headers).b(body);
|
|
204
|
-
return b.build();
|
|
205
|
-
};
|
|
206
|
-
exports.se_DeleteSubscriberNotificationCommand = se_DeleteSubscriberNotificationCommand;
|
|
207
|
-
const se_DeregisterDataLakeDelegatedAdministratorCommand = async (input, context) => {
|
|
208
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
209
|
-
const headers = {
|
|
210
|
-
"content-type": "application/json",
|
|
211
|
-
};
|
|
212
|
-
b.bp("/v1/datalake/delegate");
|
|
213
|
-
let body;
|
|
214
|
-
body = "";
|
|
215
|
-
b.m("DELETE").h(headers).b(body);
|
|
216
|
-
return b.build();
|
|
217
|
-
};
|
|
218
|
-
exports.se_DeregisterDataLakeDelegatedAdministratorCommand = se_DeregisterDataLakeDelegatedAdministratorCommand;
|
|
219
|
-
const se_GetDataLakeExceptionSubscriptionCommand = async (input, context) => {
|
|
220
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
221
|
-
const headers = {
|
|
222
|
-
"content-type": "application/json",
|
|
223
|
-
};
|
|
224
|
-
b.bp("/v1/datalake/exceptions/subscription");
|
|
225
|
-
let body;
|
|
226
|
-
body = "";
|
|
227
|
-
b.m("GET").h(headers).b(body);
|
|
228
|
-
return b.build();
|
|
229
|
-
};
|
|
230
|
-
exports.se_GetDataLakeExceptionSubscriptionCommand = se_GetDataLakeExceptionSubscriptionCommand;
|
|
231
|
-
const se_GetDataLakeOrganizationConfigurationCommand = async (input, context) => {
|
|
232
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
233
|
-
const headers = {
|
|
234
|
-
"content-type": "application/json",
|
|
235
|
-
};
|
|
236
|
-
b.bp("/v1/datalake/organization/configuration");
|
|
237
|
-
let body;
|
|
238
|
-
body = "";
|
|
239
|
-
b.m("GET").h(headers).b(body);
|
|
240
|
-
return b.build();
|
|
241
|
-
};
|
|
242
|
-
exports.se_GetDataLakeOrganizationConfigurationCommand = se_GetDataLakeOrganizationConfigurationCommand;
|
|
243
|
-
const se_GetDataLakeSourcesCommand = async (input, context) => {
|
|
244
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
245
|
-
const headers = {
|
|
246
|
-
"content-type": "application/json",
|
|
247
|
-
};
|
|
248
|
-
b.bp("/v1/datalake/sources");
|
|
249
|
-
let body;
|
|
250
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
251
|
-
accounts: (_) => (0, smithy_client_1._json)(_),
|
|
252
|
-
maxResults: [],
|
|
253
|
-
nextToken: [],
|
|
254
|
-
}));
|
|
255
|
-
b.m("POST").h(headers).b(body);
|
|
256
|
-
return b.build();
|
|
257
|
-
};
|
|
258
|
-
exports.se_GetDataLakeSourcesCommand = se_GetDataLakeSourcesCommand;
|
|
259
|
-
const se_GetSubscriberCommand = async (input, context) => {
|
|
260
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
261
|
-
const headers = {};
|
|
262
|
-
b.bp("/v1/subscribers/{subscriberId}");
|
|
263
|
-
b.p("subscriberId", () => input.subscriberId, "{subscriberId}", false);
|
|
264
|
-
let body;
|
|
265
|
-
b.m("GET").h(headers).b(body);
|
|
266
|
-
return b.build();
|
|
267
|
-
};
|
|
268
|
-
exports.se_GetSubscriberCommand = se_GetSubscriberCommand;
|
|
269
|
-
const se_ListDataLakeExceptionsCommand = async (input, context) => {
|
|
270
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
271
|
-
const headers = {
|
|
272
|
-
"content-type": "application/json",
|
|
273
|
-
};
|
|
274
|
-
b.bp("/v1/datalake/exceptions");
|
|
275
|
-
let body;
|
|
276
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
277
|
-
maxResults: [],
|
|
278
|
-
nextToken: [],
|
|
279
|
-
regions: (_) => (0, smithy_client_1._json)(_),
|
|
280
|
-
}));
|
|
281
|
-
b.m("POST").h(headers).b(body);
|
|
282
|
-
return b.build();
|
|
283
|
-
};
|
|
284
|
-
exports.se_ListDataLakeExceptionsCommand = se_ListDataLakeExceptionsCommand;
|
|
285
|
-
const se_ListDataLakesCommand = async (input, context) => {
|
|
286
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
287
|
-
const headers = {};
|
|
288
|
-
b.bp("/v1/datalakes");
|
|
289
|
-
const query = (0, smithy_client_1.map)({
|
|
290
|
-
[_r]: [() => input.regions !== void 0, () => (input[_r] || []).map((_entry) => _entry)],
|
|
291
|
-
});
|
|
292
|
-
let body;
|
|
293
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
294
|
-
return b.build();
|
|
295
|
-
};
|
|
296
|
-
exports.se_ListDataLakesCommand = se_ListDataLakesCommand;
|
|
297
|
-
const se_ListLogSourcesCommand = async (input, context) => {
|
|
298
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
299
|
-
const headers = {
|
|
300
|
-
"content-type": "application/json",
|
|
301
|
-
};
|
|
302
|
-
b.bp("/v1/datalake/logsources/list");
|
|
303
|
-
let body;
|
|
304
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
305
|
-
accounts: (_) => (0, smithy_client_1._json)(_),
|
|
306
|
-
maxResults: [],
|
|
307
|
-
nextToken: [],
|
|
308
|
-
regions: (_) => (0, smithy_client_1._json)(_),
|
|
309
|
-
sources: (_) => (0, smithy_client_1._json)(_),
|
|
310
|
-
}));
|
|
311
|
-
b.m("POST").h(headers).b(body);
|
|
312
|
-
return b.build();
|
|
313
|
-
};
|
|
314
|
-
exports.se_ListLogSourcesCommand = se_ListLogSourcesCommand;
|
|
315
|
-
const se_ListSubscribersCommand = async (input, context) => {
|
|
316
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
317
|
-
const headers = {};
|
|
318
|
-
b.bp("/v1/subscribers");
|
|
319
|
-
const query = (0, smithy_client_1.map)({
|
|
320
|
-
[_nT]: [, input[_nT]],
|
|
321
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
322
|
-
});
|
|
323
|
-
let body;
|
|
324
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
325
|
-
return b.build();
|
|
326
|
-
};
|
|
327
|
-
exports.se_ListSubscribersCommand = se_ListSubscribersCommand;
|
|
328
|
-
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
329
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
330
|
-
const headers = {};
|
|
331
|
-
b.bp("/v1/tags/{resourceArn}");
|
|
332
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
333
|
-
let body;
|
|
334
|
-
b.m("GET").h(headers).b(body);
|
|
335
|
-
return b.build();
|
|
336
|
-
};
|
|
337
|
-
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
338
|
-
const se_RegisterDataLakeDelegatedAdministratorCommand = async (input, context) => {
|
|
339
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
340
|
-
const headers = {
|
|
341
|
-
"content-type": "application/json",
|
|
342
|
-
};
|
|
343
|
-
b.bp("/v1/datalake/delegate");
|
|
344
|
-
let body;
|
|
345
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
346
|
-
accountId: [],
|
|
347
|
-
}));
|
|
348
|
-
b.m("POST").h(headers).b(body);
|
|
349
|
-
return b.build();
|
|
350
|
-
};
|
|
351
|
-
exports.se_RegisterDataLakeDelegatedAdministratorCommand = se_RegisterDataLakeDelegatedAdministratorCommand;
|
|
352
|
-
const se_TagResourceCommand = async (input, context) => {
|
|
353
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
354
|
-
const headers = {
|
|
355
|
-
"content-type": "application/json",
|
|
356
|
-
};
|
|
357
|
-
b.bp("/v1/tags/{resourceArn}");
|
|
358
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
359
|
-
let body;
|
|
360
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
361
|
-
tags: (_) => (0, smithy_client_1._json)(_),
|
|
362
|
-
}));
|
|
363
|
-
b.m("POST").h(headers).b(body);
|
|
364
|
-
return b.build();
|
|
365
|
-
};
|
|
366
|
-
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
367
|
-
const se_UntagResourceCommand = async (input, context) => {
|
|
368
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
369
|
-
const headers = {};
|
|
370
|
-
b.bp("/v1/tags/{resourceArn}");
|
|
371
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
372
|
-
const query = (0, smithy_client_1.map)({
|
|
373
|
-
[_tK]: [
|
|
374
|
-
(0, smithy_client_1.expectNonNull)(input.tagKeys, `tagKeys`) != null,
|
|
375
|
-
() => (input[_tK] || []).map((_entry) => _entry),
|
|
376
|
-
],
|
|
377
|
-
});
|
|
378
|
-
let body;
|
|
379
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
380
|
-
return b.build();
|
|
381
|
-
};
|
|
382
|
-
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
383
|
-
const se_UpdateDataLakeCommand = async (input, context) => {
|
|
384
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
385
|
-
const headers = {
|
|
386
|
-
"content-type": "application/json",
|
|
387
|
-
};
|
|
388
|
-
b.bp("/v1/datalake");
|
|
389
|
-
let body;
|
|
390
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
391
|
-
configurations: (_) => (0, smithy_client_1._json)(_),
|
|
392
|
-
}));
|
|
393
|
-
b.m("PUT").h(headers).b(body);
|
|
394
|
-
return b.build();
|
|
395
|
-
};
|
|
396
|
-
exports.se_UpdateDataLakeCommand = se_UpdateDataLakeCommand;
|
|
397
|
-
const se_UpdateDataLakeExceptionSubscriptionCommand = async (input, context) => {
|
|
398
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
399
|
-
const headers = {
|
|
400
|
-
"content-type": "application/json",
|
|
401
|
-
};
|
|
402
|
-
b.bp("/v1/datalake/exceptions/subscription");
|
|
403
|
-
let body;
|
|
404
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
405
|
-
exceptionTimeToLive: [],
|
|
406
|
-
notificationEndpoint: [],
|
|
407
|
-
subscriptionProtocol: [],
|
|
408
|
-
}));
|
|
409
|
-
b.m("PUT").h(headers).b(body);
|
|
410
|
-
return b.build();
|
|
411
|
-
};
|
|
412
|
-
exports.se_UpdateDataLakeExceptionSubscriptionCommand = se_UpdateDataLakeExceptionSubscriptionCommand;
|
|
413
|
-
const se_UpdateSubscriberCommand = async (input, context) => {
|
|
414
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
415
|
-
const headers = {
|
|
416
|
-
"content-type": "application/json",
|
|
417
|
-
};
|
|
418
|
-
b.bp("/v1/subscribers/{subscriberId}");
|
|
419
|
-
b.p("subscriberId", () => input.subscriberId, "{subscriberId}", false);
|
|
420
|
-
let body;
|
|
421
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
422
|
-
sources: (_) => (0, smithy_client_1._json)(_),
|
|
423
|
-
subscriberDescription: [],
|
|
424
|
-
subscriberIdentity: (_) => (0, smithy_client_1._json)(_),
|
|
425
|
-
subscriberName: [],
|
|
426
|
-
}));
|
|
427
|
-
b.m("PUT").h(headers).b(body);
|
|
428
|
-
return b.build();
|
|
429
|
-
};
|
|
430
|
-
exports.se_UpdateSubscriberCommand = se_UpdateSubscriberCommand;
|
|
431
|
-
const se_UpdateSubscriberNotificationCommand = async (input, context) => {
|
|
432
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
433
|
-
const headers = {
|
|
434
|
-
"content-type": "application/json",
|
|
435
|
-
};
|
|
436
|
-
b.bp("/v1/subscribers/{subscriberId}/notification");
|
|
437
|
-
b.p("subscriberId", () => input.subscriberId, "{subscriberId}", false);
|
|
438
|
-
let body;
|
|
439
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
440
|
-
configuration: (_) => (0, smithy_client_1._json)(_),
|
|
441
|
-
}));
|
|
442
|
-
b.m("PUT").h(headers).b(body);
|
|
443
|
-
return b.build();
|
|
444
|
-
};
|
|
445
|
-
exports.se_UpdateSubscriberNotificationCommand = se_UpdateSubscriberNotificationCommand;
|
|
446
|
-
const de_CreateAwsLogSourceCommand = async (output, context) => {
|
|
447
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
448
|
-
return de_CreateAwsLogSourceCommandError(output, context);
|
|
449
|
-
}
|
|
450
|
-
const contents = (0, smithy_client_1.map)({
|
|
451
|
-
$metadata: deserializeMetadata(output),
|
|
452
|
-
});
|
|
453
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
454
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
455
|
-
failed: smithy_client_1._json,
|
|
456
|
-
});
|
|
457
|
-
Object.assign(contents, doc);
|
|
458
|
-
return contents;
|
|
459
|
-
};
|
|
460
|
-
exports.de_CreateAwsLogSourceCommand = de_CreateAwsLogSourceCommand;
|
|
461
|
-
const de_CreateAwsLogSourceCommandError = async (output, context) => {
|
|
462
|
-
const parsedOutput = {
|
|
463
|
-
...output,
|
|
464
|
-
body: await parseErrorBody(output.body, context),
|
|
465
|
-
};
|
|
466
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
467
|
-
switch (errorCode) {
|
|
468
|
-
case "AccessDeniedException":
|
|
469
|
-
case "com.amazonaws.securitylake#AccessDeniedException":
|
|
470
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
471
|
-
case "BadRequestException":
|
|
472
|
-
case "com.amazonaws.securitylake#BadRequestException":
|
|
473
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
474
|
-
case "ConflictException":
|
|
475
|
-
case "com.amazonaws.securitylake#ConflictException":
|
|
476
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
477
|
-
case "InternalServerException":
|
|
478
|
-
case "com.amazonaws.securitylake#InternalServerException":
|
|
479
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
480
|
-
case "ResourceNotFoundException":
|
|
481
|
-
case "com.amazonaws.securitylake#ResourceNotFoundException":
|
|
482
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
483
|
-
case "ThrottlingException":
|
|
484
|
-
case "com.amazonaws.securitylake#ThrottlingException":
|
|
485
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
486
|
-
default:
|
|
487
|
-
const parsedBody = parsedOutput.body;
|
|
488
|
-
return throwDefaultError({
|
|
489
|
-
output,
|
|
490
|
-
parsedBody,
|
|
491
|
-
errorCode,
|
|
492
|
-
});
|
|
493
|
-
}
|
|
494
|
-
};
|
|
495
|
-
const de_CreateCustomLogSourceCommand = async (output, context) => {
|
|
496
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
497
|
-
return de_CreateCustomLogSourceCommandError(output, context);
|
|
498
|
-
}
|
|
499
|
-
const contents = (0, smithy_client_1.map)({
|
|
500
|
-
$metadata: deserializeMetadata(output),
|
|
501
|
-
});
|
|
502
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
503
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
504
|
-
source: smithy_client_1._json,
|
|
505
|
-
});
|
|
506
|
-
Object.assign(contents, doc);
|
|
507
|
-
return contents;
|
|
508
|
-
};
|
|
509
|
-
exports.de_CreateCustomLogSourceCommand = de_CreateCustomLogSourceCommand;
|
|
510
|
-
const de_CreateCustomLogSourceCommandError = async (output, context) => {
|
|
511
|
-
const parsedOutput = {
|
|
512
|
-
...output,
|
|
513
|
-
body: await parseErrorBody(output.body, context),
|
|
514
|
-
};
|
|
515
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
516
|
-
switch (errorCode) {
|
|
517
|
-
case "AccessDeniedException":
|
|
518
|
-
case "com.amazonaws.securitylake#AccessDeniedException":
|
|
519
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
520
|
-
case "BadRequestException":
|
|
521
|
-
case "com.amazonaws.securitylake#BadRequestException":
|
|
522
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
523
|
-
case "ConflictException":
|
|
524
|
-
case "com.amazonaws.securitylake#ConflictException":
|
|
525
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
526
|
-
case "InternalServerException":
|
|
527
|
-
case "com.amazonaws.securitylake#InternalServerException":
|
|
528
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
529
|
-
case "ResourceNotFoundException":
|
|
530
|
-
case "com.amazonaws.securitylake#ResourceNotFoundException":
|
|
531
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
532
|
-
case "ThrottlingException":
|
|
533
|
-
case "com.amazonaws.securitylake#ThrottlingException":
|
|
534
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
535
|
-
default:
|
|
536
|
-
const parsedBody = parsedOutput.body;
|
|
537
|
-
return throwDefaultError({
|
|
538
|
-
output,
|
|
539
|
-
parsedBody,
|
|
540
|
-
errorCode,
|
|
541
|
-
});
|
|
542
|
-
}
|
|
543
|
-
};
|
|
544
|
-
const de_CreateDataLakeCommand = async (output, context) => {
|
|
545
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
546
|
-
return de_CreateDataLakeCommandError(output, context);
|
|
547
|
-
}
|
|
548
|
-
const contents = (0, smithy_client_1.map)({
|
|
549
|
-
$metadata: deserializeMetadata(output),
|
|
550
|
-
});
|
|
551
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
552
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
553
|
-
dataLakes: smithy_client_1._json,
|
|
554
|
-
});
|
|
555
|
-
Object.assign(contents, doc);
|
|
556
|
-
return contents;
|
|
557
|
-
};
|
|
558
|
-
exports.de_CreateDataLakeCommand = de_CreateDataLakeCommand;
|
|
559
|
-
const de_CreateDataLakeCommandError = async (output, context) => {
|
|
560
|
-
const parsedOutput = {
|
|
561
|
-
...output,
|
|
562
|
-
body: await parseErrorBody(output.body, context),
|
|
563
|
-
};
|
|
564
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
565
|
-
switch (errorCode) {
|
|
566
|
-
case "AccessDeniedException":
|
|
567
|
-
case "com.amazonaws.securitylake#AccessDeniedException":
|
|
568
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
569
|
-
case "BadRequestException":
|
|
570
|
-
case "com.amazonaws.securitylake#BadRequestException":
|
|
571
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
572
|
-
case "ConflictException":
|
|
573
|
-
case "com.amazonaws.securitylake#ConflictException":
|
|
574
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
575
|
-
case "InternalServerException":
|
|
576
|
-
case "com.amazonaws.securitylake#InternalServerException":
|
|
577
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
578
|
-
case "ResourceNotFoundException":
|
|
579
|
-
case "com.amazonaws.securitylake#ResourceNotFoundException":
|
|
580
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
581
|
-
case "ThrottlingException":
|
|
582
|
-
case "com.amazonaws.securitylake#ThrottlingException":
|
|
583
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
584
|
-
default:
|
|
585
|
-
const parsedBody = parsedOutput.body;
|
|
586
|
-
return throwDefaultError({
|
|
587
|
-
output,
|
|
588
|
-
parsedBody,
|
|
589
|
-
errorCode,
|
|
590
|
-
});
|
|
591
|
-
}
|
|
592
|
-
};
|
|
593
|
-
const de_CreateDataLakeExceptionSubscriptionCommand = async (output, context) => {
|
|
594
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
595
|
-
return de_CreateDataLakeExceptionSubscriptionCommandError(output, context);
|
|
596
|
-
}
|
|
597
|
-
const contents = (0, smithy_client_1.map)({
|
|
598
|
-
$metadata: deserializeMetadata(output),
|
|
599
|
-
});
|
|
600
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
601
|
-
return contents;
|
|
602
|
-
};
|
|
603
|
-
exports.de_CreateDataLakeExceptionSubscriptionCommand = de_CreateDataLakeExceptionSubscriptionCommand;
|
|
604
|
-
const de_CreateDataLakeExceptionSubscriptionCommandError = async (output, context) => {
|
|
605
|
-
const parsedOutput = {
|
|
606
|
-
...output,
|
|
607
|
-
body: await parseErrorBody(output.body, context),
|
|
608
|
-
};
|
|
609
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
610
|
-
switch (errorCode) {
|
|
611
|
-
case "AccessDeniedException":
|
|
612
|
-
case "com.amazonaws.securitylake#AccessDeniedException":
|
|
613
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
614
|
-
case "BadRequestException":
|
|
615
|
-
case "com.amazonaws.securitylake#BadRequestException":
|
|
616
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
617
|
-
case "ConflictException":
|
|
618
|
-
case "com.amazonaws.securitylake#ConflictException":
|
|
619
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
620
|
-
case "InternalServerException":
|
|
621
|
-
case "com.amazonaws.securitylake#InternalServerException":
|
|
622
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
623
|
-
case "ResourceNotFoundException":
|
|
624
|
-
case "com.amazonaws.securitylake#ResourceNotFoundException":
|
|
625
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
626
|
-
case "ThrottlingException":
|
|
627
|
-
case "com.amazonaws.securitylake#ThrottlingException":
|
|
628
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
629
|
-
default:
|
|
630
|
-
const parsedBody = parsedOutput.body;
|
|
631
|
-
return throwDefaultError({
|
|
632
|
-
output,
|
|
633
|
-
parsedBody,
|
|
634
|
-
errorCode,
|
|
635
|
-
});
|
|
636
|
-
}
|
|
637
|
-
};
|
|
638
|
-
const de_CreateDataLakeOrganizationConfigurationCommand = async (output, context) => {
|
|
639
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
640
|
-
return de_CreateDataLakeOrganizationConfigurationCommandError(output, context);
|
|
641
|
-
}
|
|
642
|
-
const contents = (0, smithy_client_1.map)({
|
|
643
|
-
$metadata: deserializeMetadata(output),
|
|
644
|
-
});
|
|
645
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
646
|
-
return contents;
|
|
647
|
-
};
|
|
648
|
-
exports.de_CreateDataLakeOrganizationConfigurationCommand = de_CreateDataLakeOrganizationConfigurationCommand;
|
|
649
|
-
const de_CreateDataLakeOrganizationConfigurationCommandError = async (output, context) => {
|
|
650
|
-
const parsedOutput = {
|
|
651
|
-
...output,
|
|
652
|
-
body: await parseErrorBody(output.body, context),
|
|
653
|
-
};
|
|
654
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
655
|
-
switch (errorCode) {
|
|
656
|
-
case "AccessDeniedException":
|
|
657
|
-
case "com.amazonaws.securitylake#AccessDeniedException":
|
|
658
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
659
|
-
case "BadRequestException":
|
|
660
|
-
case "com.amazonaws.securitylake#BadRequestException":
|
|
661
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
662
|
-
case "ConflictException":
|
|
663
|
-
case "com.amazonaws.securitylake#ConflictException":
|
|
664
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
665
|
-
case "InternalServerException":
|
|
666
|
-
case "com.amazonaws.securitylake#InternalServerException":
|
|
667
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
668
|
-
case "ResourceNotFoundException":
|
|
669
|
-
case "com.amazonaws.securitylake#ResourceNotFoundException":
|
|
670
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
671
|
-
case "ThrottlingException":
|
|
672
|
-
case "com.amazonaws.securitylake#ThrottlingException":
|
|
673
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
674
|
-
default:
|
|
675
|
-
const parsedBody = parsedOutput.body;
|
|
676
|
-
return throwDefaultError({
|
|
677
|
-
output,
|
|
678
|
-
parsedBody,
|
|
679
|
-
errorCode,
|
|
680
|
-
});
|
|
681
|
-
}
|
|
682
|
-
};
|
|
683
|
-
const de_CreateSubscriberCommand = async (output, context) => {
|
|
684
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
685
|
-
return de_CreateSubscriberCommandError(output, context);
|
|
686
|
-
}
|
|
687
|
-
const contents = (0, smithy_client_1.map)({
|
|
688
|
-
$metadata: deserializeMetadata(output),
|
|
689
|
-
});
|
|
690
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
691
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
692
|
-
subscriber: (_) => de_SubscriberResource(_, context),
|
|
693
|
-
});
|
|
694
|
-
Object.assign(contents, doc);
|
|
695
|
-
return contents;
|
|
696
|
-
};
|
|
697
|
-
exports.de_CreateSubscriberCommand = de_CreateSubscriberCommand;
|
|
698
|
-
const de_CreateSubscriberCommandError = async (output, context) => {
|
|
699
|
-
const parsedOutput = {
|
|
700
|
-
...output,
|
|
701
|
-
body: await parseErrorBody(output.body, context),
|
|
702
|
-
};
|
|
703
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
704
|
-
switch (errorCode) {
|
|
705
|
-
case "AccessDeniedException":
|
|
706
|
-
case "com.amazonaws.securitylake#AccessDeniedException":
|
|
707
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
708
|
-
case "BadRequestException":
|
|
709
|
-
case "com.amazonaws.securitylake#BadRequestException":
|
|
710
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
711
|
-
case "ConflictException":
|
|
712
|
-
case "com.amazonaws.securitylake#ConflictException":
|
|
713
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
714
|
-
case "InternalServerException":
|
|
715
|
-
case "com.amazonaws.securitylake#InternalServerException":
|
|
716
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
717
|
-
case "ResourceNotFoundException":
|
|
718
|
-
case "com.amazonaws.securitylake#ResourceNotFoundException":
|
|
719
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
720
|
-
case "ThrottlingException":
|
|
721
|
-
case "com.amazonaws.securitylake#ThrottlingException":
|
|
722
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
723
|
-
default:
|
|
724
|
-
const parsedBody = parsedOutput.body;
|
|
725
|
-
return throwDefaultError({
|
|
726
|
-
output,
|
|
727
|
-
parsedBody,
|
|
728
|
-
errorCode,
|
|
729
|
-
});
|
|
730
|
-
}
|
|
731
|
-
};
|
|
732
|
-
const de_CreateSubscriberNotificationCommand = async (output, context) => {
|
|
733
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
734
|
-
return de_CreateSubscriberNotificationCommandError(output, context);
|
|
735
|
-
}
|
|
736
|
-
const contents = (0, smithy_client_1.map)({
|
|
737
|
-
$metadata: deserializeMetadata(output),
|
|
738
|
-
});
|
|
739
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
740
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
741
|
-
subscriberEndpoint: smithy_client_1.expectString,
|
|
742
|
-
});
|
|
743
|
-
Object.assign(contents, doc);
|
|
744
|
-
return contents;
|
|
745
|
-
};
|
|
746
|
-
exports.de_CreateSubscriberNotificationCommand = de_CreateSubscriberNotificationCommand;
|
|
747
|
-
const de_CreateSubscriberNotificationCommandError = async (output, context) => {
|
|
748
|
-
const parsedOutput = {
|
|
749
|
-
...output,
|
|
750
|
-
body: await parseErrorBody(output.body, context),
|
|
751
|
-
};
|
|
752
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
753
|
-
switch (errorCode) {
|
|
754
|
-
case "AccessDeniedException":
|
|
755
|
-
case "com.amazonaws.securitylake#AccessDeniedException":
|
|
756
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
757
|
-
case "BadRequestException":
|
|
758
|
-
case "com.amazonaws.securitylake#BadRequestException":
|
|
759
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
760
|
-
case "ConflictException":
|
|
761
|
-
case "com.amazonaws.securitylake#ConflictException":
|
|
762
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
763
|
-
case "InternalServerException":
|
|
764
|
-
case "com.amazonaws.securitylake#InternalServerException":
|
|
765
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
766
|
-
case "ResourceNotFoundException":
|
|
767
|
-
case "com.amazonaws.securitylake#ResourceNotFoundException":
|
|
768
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
769
|
-
case "ThrottlingException":
|
|
770
|
-
case "com.amazonaws.securitylake#ThrottlingException":
|
|
771
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
772
|
-
default:
|
|
773
|
-
const parsedBody = parsedOutput.body;
|
|
774
|
-
return throwDefaultError({
|
|
775
|
-
output,
|
|
776
|
-
parsedBody,
|
|
777
|
-
errorCode,
|
|
778
|
-
});
|
|
779
|
-
}
|
|
780
|
-
};
|
|
781
|
-
const de_DeleteAwsLogSourceCommand = async (output, context) => {
|
|
782
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
783
|
-
return de_DeleteAwsLogSourceCommandError(output, context);
|
|
784
|
-
}
|
|
785
|
-
const contents = (0, smithy_client_1.map)({
|
|
786
|
-
$metadata: deserializeMetadata(output),
|
|
787
|
-
});
|
|
788
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
789
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
790
|
-
failed: smithy_client_1._json,
|
|
791
|
-
});
|
|
792
|
-
Object.assign(contents, doc);
|
|
793
|
-
return contents;
|
|
794
|
-
};
|
|
795
|
-
exports.de_DeleteAwsLogSourceCommand = de_DeleteAwsLogSourceCommand;
|
|
796
|
-
const de_DeleteAwsLogSourceCommandError = async (output, context) => {
|
|
797
|
-
const parsedOutput = {
|
|
798
|
-
...output,
|
|
799
|
-
body: await parseErrorBody(output.body, context),
|
|
800
|
-
};
|
|
801
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
802
|
-
switch (errorCode) {
|
|
803
|
-
case "AccessDeniedException":
|
|
804
|
-
case "com.amazonaws.securitylake#AccessDeniedException":
|
|
805
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
806
|
-
case "BadRequestException":
|
|
807
|
-
case "com.amazonaws.securitylake#BadRequestException":
|
|
808
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
809
|
-
case "ConflictException":
|
|
810
|
-
case "com.amazonaws.securitylake#ConflictException":
|
|
811
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
812
|
-
case "InternalServerException":
|
|
813
|
-
case "com.amazonaws.securitylake#InternalServerException":
|
|
814
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
815
|
-
case "ResourceNotFoundException":
|
|
816
|
-
case "com.amazonaws.securitylake#ResourceNotFoundException":
|
|
817
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
818
|
-
case "ThrottlingException":
|
|
819
|
-
case "com.amazonaws.securitylake#ThrottlingException":
|
|
820
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
821
|
-
default:
|
|
822
|
-
const parsedBody = parsedOutput.body;
|
|
823
|
-
return throwDefaultError({
|
|
824
|
-
output,
|
|
825
|
-
parsedBody,
|
|
826
|
-
errorCode,
|
|
827
|
-
});
|
|
828
|
-
}
|
|
829
|
-
};
|
|
830
|
-
const de_DeleteCustomLogSourceCommand = async (output, context) => {
|
|
831
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
832
|
-
return de_DeleteCustomLogSourceCommandError(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_DeleteCustomLogSourceCommand = de_DeleteCustomLogSourceCommand;
|
|
841
|
-
const de_DeleteCustomLogSourceCommandError = 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.securitylake#AccessDeniedException":
|
|
850
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
851
|
-
case "BadRequestException":
|
|
852
|
-
case "com.amazonaws.securitylake#BadRequestException":
|
|
853
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
854
|
-
case "ConflictException":
|
|
855
|
-
case "com.amazonaws.securitylake#ConflictException":
|
|
856
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
857
|
-
case "InternalServerException":
|
|
858
|
-
case "com.amazonaws.securitylake#InternalServerException":
|
|
859
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
860
|
-
case "ResourceNotFoundException":
|
|
861
|
-
case "com.amazonaws.securitylake#ResourceNotFoundException":
|
|
862
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
863
|
-
case "ThrottlingException":
|
|
864
|
-
case "com.amazonaws.securitylake#ThrottlingException":
|
|
865
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
866
|
-
default:
|
|
867
|
-
const parsedBody = parsedOutput.body;
|
|
868
|
-
return throwDefaultError({
|
|
869
|
-
output,
|
|
870
|
-
parsedBody,
|
|
871
|
-
errorCode,
|
|
872
|
-
});
|
|
873
|
-
}
|
|
874
|
-
};
|
|
875
|
-
const de_DeleteDataLakeCommand = async (output, context) => {
|
|
876
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
877
|
-
return de_DeleteDataLakeCommandError(output, context);
|
|
878
|
-
}
|
|
879
|
-
const contents = (0, smithy_client_1.map)({
|
|
880
|
-
$metadata: deserializeMetadata(output),
|
|
881
|
-
});
|
|
882
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
883
|
-
return contents;
|
|
884
|
-
};
|
|
885
|
-
exports.de_DeleteDataLakeCommand = de_DeleteDataLakeCommand;
|
|
886
|
-
const de_DeleteDataLakeCommandError = async (output, context) => {
|
|
887
|
-
const parsedOutput = {
|
|
888
|
-
...output,
|
|
889
|
-
body: await parseErrorBody(output.body, context),
|
|
890
|
-
};
|
|
891
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
892
|
-
switch (errorCode) {
|
|
893
|
-
case "AccessDeniedException":
|
|
894
|
-
case "com.amazonaws.securitylake#AccessDeniedException":
|
|
895
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
896
|
-
case "BadRequestException":
|
|
897
|
-
case "com.amazonaws.securitylake#BadRequestException":
|
|
898
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
899
|
-
case "ConflictException":
|
|
900
|
-
case "com.amazonaws.securitylake#ConflictException":
|
|
901
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
902
|
-
case "InternalServerException":
|
|
903
|
-
case "com.amazonaws.securitylake#InternalServerException":
|
|
904
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
905
|
-
case "ResourceNotFoundException":
|
|
906
|
-
case "com.amazonaws.securitylake#ResourceNotFoundException":
|
|
907
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
908
|
-
case "ThrottlingException":
|
|
909
|
-
case "com.amazonaws.securitylake#ThrottlingException":
|
|
910
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
911
|
-
default:
|
|
912
|
-
const parsedBody = parsedOutput.body;
|
|
913
|
-
return throwDefaultError({
|
|
914
|
-
output,
|
|
915
|
-
parsedBody,
|
|
916
|
-
errorCode,
|
|
917
|
-
});
|
|
918
|
-
}
|
|
919
|
-
};
|
|
920
|
-
const de_DeleteDataLakeExceptionSubscriptionCommand = async (output, context) => {
|
|
921
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
922
|
-
return de_DeleteDataLakeExceptionSubscriptionCommandError(output, context);
|
|
923
|
-
}
|
|
924
|
-
const contents = (0, smithy_client_1.map)({
|
|
925
|
-
$metadata: deserializeMetadata(output),
|
|
926
|
-
});
|
|
927
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
928
|
-
return contents;
|
|
929
|
-
};
|
|
930
|
-
exports.de_DeleteDataLakeExceptionSubscriptionCommand = de_DeleteDataLakeExceptionSubscriptionCommand;
|
|
931
|
-
const de_DeleteDataLakeExceptionSubscriptionCommandError = async (output, context) => {
|
|
932
|
-
const parsedOutput = {
|
|
933
|
-
...output,
|
|
934
|
-
body: await parseErrorBody(output.body, context),
|
|
935
|
-
};
|
|
936
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
937
|
-
switch (errorCode) {
|
|
938
|
-
case "AccessDeniedException":
|
|
939
|
-
case "com.amazonaws.securitylake#AccessDeniedException":
|
|
940
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
941
|
-
case "BadRequestException":
|
|
942
|
-
case "com.amazonaws.securitylake#BadRequestException":
|
|
943
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
944
|
-
case "ConflictException":
|
|
945
|
-
case "com.amazonaws.securitylake#ConflictException":
|
|
946
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
947
|
-
case "InternalServerException":
|
|
948
|
-
case "com.amazonaws.securitylake#InternalServerException":
|
|
949
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
950
|
-
case "ResourceNotFoundException":
|
|
951
|
-
case "com.amazonaws.securitylake#ResourceNotFoundException":
|
|
952
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
953
|
-
case "ThrottlingException":
|
|
954
|
-
case "com.amazonaws.securitylake#ThrottlingException":
|
|
955
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
956
|
-
default:
|
|
957
|
-
const parsedBody = parsedOutput.body;
|
|
958
|
-
return throwDefaultError({
|
|
959
|
-
output,
|
|
960
|
-
parsedBody,
|
|
961
|
-
errorCode,
|
|
962
|
-
});
|
|
963
|
-
}
|
|
964
|
-
};
|
|
965
|
-
const de_DeleteDataLakeOrganizationConfigurationCommand = async (output, context) => {
|
|
966
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
967
|
-
return de_DeleteDataLakeOrganizationConfigurationCommandError(output, context);
|
|
968
|
-
}
|
|
969
|
-
const contents = (0, smithy_client_1.map)({
|
|
970
|
-
$metadata: deserializeMetadata(output),
|
|
971
|
-
});
|
|
972
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
973
|
-
return contents;
|
|
974
|
-
};
|
|
975
|
-
exports.de_DeleteDataLakeOrganizationConfigurationCommand = de_DeleteDataLakeOrganizationConfigurationCommand;
|
|
976
|
-
const de_DeleteDataLakeOrganizationConfigurationCommandError = async (output, context) => {
|
|
977
|
-
const parsedOutput = {
|
|
978
|
-
...output,
|
|
979
|
-
body: await parseErrorBody(output.body, context),
|
|
980
|
-
};
|
|
981
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
982
|
-
switch (errorCode) {
|
|
983
|
-
case "AccessDeniedException":
|
|
984
|
-
case "com.amazonaws.securitylake#AccessDeniedException":
|
|
985
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
986
|
-
case "BadRequestException":
|
|
987
|
-
case "com.amazonaws.securitylake#BadRequestException":
|
|
988
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
989
|
-
case "ConflictException":
|
|
990
|
-
case "com.amazonaws.securitylake#ConflictException":
|
|
991
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
992
|
-
case "InternalServerException":
|
|
993
|
-
case "com.amazonaws.securitylake#InternalServerException":
|
|
994
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
995
|
-
case "ResourceNotFoundException":
|
|
996
|
-
case "com.amazonaws.securitylake#ResourceNotFoundException":
|
|
997
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
998
|
-
case "ThrottlingException":
|
|
999
|
-
case "com.amazonaws.securitylake#ThrottlingException":
|
|
1000
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1001
|
-
default:
|
|
1002
|
-
const parsedBody = parsedOutput.body;
|
|
1003
|
-
return throwDefaultError({
|
|
1004
|
-
output,
|
|
1005
|
-
parsedBody,
|
|
1006
|
-
errorCode,
|
|
1007
|
-
});
|
|
1008
|
-
}
|
|
1009
|
-
};
|
|
1010
|
-
const de_DeleteSubscriberCommand = async (output, context) => {
|
|
1011
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1012
|
-
return de_DeleteSubscriberCommandError(output, context);
|
|
1013
|
-
}
|
|
1014
|
-
const contents = (0, smithy_client_1.map)({
|
|
1015
|
-
$metadata: deserializeMetadata(output),
|
|
1016
|
-
});
|
|
1017
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1018
|
-
return contents;
|
|
1019
|
-
};
|
|
1020
|
-
exports.de_DeleteSubscriberCommand = de_DeleteSubscriberCommand;
|
|
1021
|
-
const de_DeleteSubscriberCommandError = async (output, context) => {
|
|
1022
|
-
const parsedOutput = {
|
|
1023
|
-
...output,
|
|
1024
|
-
body: await parseErrorBody(output.body, context),
|
|
1025
|
-
};
|
|
1026
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1027
|
-
switch (errorCode) {
|
|
1028
|
-
case "AccessDeniedException":
|
|
1029
|
-
case "com.amazonaws.securitylake#AccessDeniedException":
|
|
1030
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1031
|
-
case "BadRequestException":
|
|
1032
|
-
case "com.amazonaws.securitylake#BadRequestException":
|
|
1033
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1034
|
-
case "ConflictException":
|
|
1035
|
-
case "com.amazonaws.securitylake#ConflictException":
|
|
1036
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1037
|
-
case "InternalServerException":
|
|
1038
|
-
case "com.amazonaws.securitylake#InternalServerException":
|
|
1039
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1040
|
-
case "ResourceNotFoundException":
|
|
1041
|
-
case "com.amazonaws.securitylake#ResourceNotFoundException":
|
|
1042
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1043
|
-
case "ThrottlingException":
|
|
1044
|
-
case "com.amazonaws.securitylake#ThrottlingException":
|
|
1045
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1046
|
-
default:
|
|
1047
|
-
const parsedBody = parsedOutput.body;
|
|
1048
|
-
return throwDefaultError({
|
|
1049
|
-
output,
|
|
1050
|
-
parsedBody,
|
|
1051
|
-
errorCode,
|
|
1052
|
-
});
|
|
1053
|
-
}
|
|
1054
|
-
};
|
|
1055
|
-
const de_DeleteSubscriberNotificationCommand = async (output, context) => {
|
|
1056
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1057
|
-
return de_DeleteSubscriberNotificationCommandError(output, context);
|
|
1058
|
-
}
|
|
1059
|
-
const contents = (0, smithy_client_1.map)({
|
|
1060
|
-
$metadata: deserializeMetadata(output),
|
|
1061
|
-
});
|
|
1062
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1063
|
-
return contents;
|
|
1064
|
-
};
|
|
1065
|
-
exports.de_DeleteSubscriberNotificationCommand = de_DeleteSubscriberNotificationCommand;
|
|
1066
|
-
const de_DeleteSubscriberNotificationCommandError = async (output, context) => {
|
|
1067
|
-
const parsedOutput = {
|
|
1068
|
-
...output,
|
|
1069
|
-
body: await parseErrorBody(output.body, context),
|
|
1070
|
-
};
|
|
1071
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1072
|
-
switch (errorCode) {
|
|
1073
|
-
case "AccessDeniedException":
|
|
1074
|
-
case "com.amazonaws.securitylake#AccessDeniedException":
|
|
1075
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1076
|
-
case "BadRequestException":
|
|
1077
|
-
case "com.amazonaws.securitylake#BadRequestException":
|
|
1078
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1079
|
-
case "ConflictException":
|
|
1080
|
-
case "com.amazonaws.securitylake#ConflictException":
|
|
1081
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1082
|
-
case "InternalServerException":
|
|
1083
|
-
case "com.amazonaws.securitylake#InternalServerException":
|
|
1084
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1085
|
-
case "ResourceNotFoundException":
|
|
1086
|
-
case "com.amazonaws.securitylake#ResourceNotFoundException":
|
|
1087
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1088
|
-
case "ThrottlingException":
|
|
1089
|
-
case "com.amazonaws.securitylake#ThrottlingException":
|
|
1090
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1091
|
-
default:
|
|
1092
|
-
const parsedBody = parsedOutput.body;
|
|
1093
|
-
return throwDefaultError({
|
|
1094
|
-
output,
|
|
1095
|
-
parsedBody,
|
|
1096
|
-
errorCode,
|
|
1097
|
-
});
|
|
1098
|
-
}
|
|
1099
|
-
};
|
|
1100
|
-
const de_DeregisterDataLakeDelegatedAdministratorCommand = async (output, context) => {
|
|
1101
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1102
|
-
return de_DeregisterDataLakeDelegatedAdministratorCommandError(output, context);
|
|
1103
|
-
}
|
|
1104
|
-
const contents = (0, smithy_client_1.map)({
|
|
1105
|
-
$metadata: deserializeMetadata(output),
|
|
1106
|
-
});
|
|
1107
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1108
|
-
return contents;
|
|
1109
|
-
};
|
|
1110
|
-
exports.de_DeregisterDataLakeDelegatedAdministratorCommand = de_DeregisterDataLakeDelegatedAdministratorCommand;
|
|
1111
|
-
const de_DeregisterDataLakeDelegatedAdministratorCommandError = async (output, context) => {
|
|
1112
|
-
const parsedOutput = {
|
|
1113
|
-
...output,
|
|
1114
|
-
body: await parseErrorBody(output.body, context),
|
|
1115
|
-
};
|
|
1116
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1117
|
-
switch (errorCode) {
|
|
1118
|
-
case "AccessDeniedException":
|
|
1119
|
-
case "com.amazonaws.securitylake#AccessDeniedException":
|
|
1120
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1121
|
-
case "BadRequestException":
|
|
1122
|
-
case "com.amazonaws.securitylake#BadRequestException":
|
|
1123
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1124
|
-
case "ConflictException":
|
|
1125
|
-
case "com.amazonaws.securitylake#ConflictException":
|
|
1126
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1127
|
-
case "InternalServerException":
|
|
1128
|
-
case "com.amazonaws.securitylake#InternalServerException":
|
|
1129
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1130
|
-
case "ResourceNotFoundException":
|
|
1131
|
-
case "com.amazonaws.securitylake#ResourceNotFoundException":
|
|
1132
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1133
|
-
case "ThrottlingException":
|
|
1134
|
-
case "com.amazonaws.securitylake#ThrottlingException":
|
|
1135
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1136
|
-
default:
|
|
1137
|
-
const parsedBody = parsedOutput.body;
|
|
1138
|
-
return throwDefaultError({
|
|
1139
|
-
output,
|
|
1140
|
-
parsedBody,
|
|
1141
|
-
errorCode,
|
|
1142
|
-
});
|
|
1143
|
-
}
|
|
1144
|
-
};
|
|
1145
|
-
const de_GetDataLakeExceptionSubscriptionCommand = async (output, context) => {
|
|
1146
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1147
|
-
return de_GetDataLakeExceptionSubscriptionCommandError(output, context);
|
|
1148
|
-
}
|
|
1149
|
-
const contents = (0, smithy_client_1.map)({
|
|
1150
|
-
$metadata: deserializeMetadata(output),
|
|
1151
|
-
});
|
|
1152
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1153
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1154
|
-
exceptionTimeToLive: smithy_client_1.expectLong,
|
|
1155
|
-
notificationEndpoint: smithy_client_1.expectString,
|
|
1156
|
-
subscriptionProtocol: smithy_client_1.expectString,
|
|
1157
|
-
});
|
|
1158
|
-
Object.assign(contents, doc);
|
|
1159
|
-
return contents;
|
|
1160
|
-
};
|
|
1161
|
-
exports.de_GetDataLakeExceptionSubscriptionCommand = de_GetDataLakeExceptionSubscriptionCommand;
|
|
1162
|
-
const de_GetDataLakeExceptionSubscriptionCommandError = async (output, context) => {
|
|
1163
|
-
const parsedOutput = {
|
|
1164
|
-
...output,
|
|
1165
|
-
body: await parseErrorBody(output.body, context),
|
|
1166
|
-
};
|
|
1167
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1168
|
-
switch (errorCode) {
|
|
1169
|
-
case "AccessDeniedException":
|
|
1170
|
-
case "com.amazonaws.securitylake#AccessDeniedException":
|
|
1171
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1172
|
-
case "BadRequestException":
|
|
1173
|
-
case "com.amazonaws.securitylake#BadRequestException":
|
|
1174
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1175
|
-
case "ConflictException":
|
|
1176
|
-
case "com.amazonaws.securitylake#ConflictException":
|
|
1177
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1178
|
-
case "InternalServerException":
|
|
1179
|
-
case "com.amazonaws.securitylake#InternalServerException":
|
|
1180
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1181
|
-
case "ResourceNotFoundException":
|
|
1182
|
-
case "com.amazonaws.securitylake#ResourceNotFoundException":
|
|
1183
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1184
|
-
case "ThrottlingException":
|
|
1185
|
-
case "com.amazonaws.securitylake#ThrottlingException":
|
|
1186
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1187
|
-
default:
|
|
1188
|
-
const parsedBody = parsedOutput.body;
|
|
1189
|
-
return throwDefaultError({
|
|
1190
|
-
output,
|
|
1191
|
-
parsedBody,
|
|
1192
|
-
errorCode,
|
|
1193
|
-
});
|
|
1194
|
-
}
|
|
1195
|
-
};
|
|
1196
|
-
const de_GetDataLakeOrganizationConfigurationCommand = async (output, context) => {
|
|
1197
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1198
|
-
return de_GetDataLakeOrganizationConfigurationCommandError(output, context);
|
|
1199
|
-
}
|
|
1200
|
-
const contents = (0, smithy_client_1.map)({
|
|
1201
|
-
$metadata: deserializeMetadata(output),
|
|
1202
|
-
});
|
|
1203
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1204
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1205
|
-
autoEnableNewAccount: smithy_client_1._json,
|
|
1206
|
-
});
|
|
1207
|
-
Object.assign(contents, doc);
|
|
1208
|
-
return contents;
|
|
1209
|
-
};
|
|
1210
|
-
exports.de_GetDataLakeOrganizationConfigurationCommand = de_GetDataLakeOrganizationConfigurationCommand;
|
|
1211
|
-
const de_GetDataLakeOrganizationConfigurationCommandError = async (output, context) => {
|
|
1212
|
-
const parsedOutput = {
|
|
1213
|
-
...output,
|
|
1214
|
-
body: await parseErrorBody(output.body, context),
|
|
1215
|
-
};
|
|
1216
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1217
|
-
switch (errorCode) {
|
|
1218
|
-
case "AccessDeniedException":
|
|
1219
|
-
case "com.amazonaws.securitylake#AccessDeniedException":
|
|
1220
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1221
|
-
case "BadRequestException":
|
|
1222
|
-
case "com.amazonaws.securitylake#BadRequestException":
|
|
1223
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1224
|
-
case "ConflictException":
|
|
1225
|
-
case "com.amazonaws.securitylake#ConflictException":
|
|
1226
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1227
|
-
case "InternalServerException":
|
|
1228
|
-
case "com.amazonaws.securitylake#InternalServerException":
|
|
1229
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1230
|
-
case "ResourceNotFoundException":
|
|
1231
|
-
case "com.amazonaws.securitylake#ResourceNotFoundException":
|
|
1232
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1233
|
-
case "ThrottlingException":
|
|
1234
|
-
case "com.amazonaws.securitylake#ThrottlingException":
|
|
1235
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1236
|
-
default:
|
|
1237
|
-
const parsedBody = parsedOutput.body;
|
|
1238
|
-
return throwDefaultError({
|
|
1239
|
-
output,
|
|
1240
|
-
parsedBody,
|
|
1241
|
-
errorCode,
|
|
1242
|
-
});
|
|
1243
|
-
}
|
|
1244
|
-
};
|
|
1245
|
-
const de_GetDataLakeSourcesCommand = async (output, context) => {
|
|
1246
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1247
|
-
return de_GetDataLakeSourcesCommandError(output, context);
|
|
1248
|
-
}
|
|
1249
|
-
const contents = (0, smithy_client_1.map)({
|
|
1250
|
-
$metadata: deserializeMetadata(output),
|
|
1251
|
-
});
|
|
1252
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1253
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1254
|
-
dataLakeArn: smithy_client_1.expectString,
|
|
1255
|
-
dataLakeSources: smithy_client_1._json,
|
|
1256
|
-
nextToken: smithy_client_1.expectString,
|
|
1257
|
-
});
|
|
1258
|
-
Object.assign(contents, doc);
|
|
1259
|
-
return contents;
|
|
1260
|
-
};
|
|
1261
|
-
exports.de_GetDataLakeSourcesCommand = de_GetDataLakeSourcesCommand;
|
|
1262
|
-
const de_GetDataLakeSourcesCommandError = async (output, context) => {
|
|
1263
|
-
const parsedOutput = {
|
|
1264
|
-
...output,
|
|
1265
|
-
body: await parseErrorBody(output.body, context),
|
|
1266
|
-
};
|
|
1267
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1268
|
-
switch (errorCode) {
|
|
1269
|
-
case "AccessDeniedException":
|
|
1270
|
-
case "com.amazonaws.securitylake#AccessDeniedException":
|
|
1271
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1272
|
-
case "BadRequestException":
|
|
1273
|
-
case "com.amazonaws.securitylake#BadRequestException":
|
|
1274
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1275
|
-
case "ConflictException":
|
|
1276
|
-
case "com.amazonaws.securitylake#ConflictException":
|
|
1277
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1278
|
-
case "InternalServerException":
|
|
1279
|
-
case "com.amazonaws.securitylake#InternalServerException":
|
|
1280
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1281
|
-
case "ResourceNotFoundException":
|
|
1282
|
-
case "com.amazonaws.securitylake#ResourceNotFoundException":
|
|
1283
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1284
|
-
case "ThrottlingException":
|
|
1285
|
-
case "com.amazonaws.securitylake#ThrottlingException":
|
|
1286
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1287
|
-
default:
|
|
1288
|
-
const parsedBody = parsedOutput.body;
|
|
1289
|
-
return throwDefaultError({
|
|
1290
|
-
output,
|
|
1291
|
-
parsedBody,
|
|
1292
|
-
errorCode,
|
|
1293
|
-
});
|
|
1294
|
-
}
|
|
1295
|
-
};
|
|
1296
|
-
const de_GetSubscriberCommand = async (output, context) => {
|
|
1297
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1298
|
-
return de_GetSubscriberCommandError(output, context);
|
|
1299
|
-
}
|
|
1300
|
-
const contents = (0, smithy_client_1.map)({
|
|
1301
|
-
$metadata: deserializeMetadata(output),
|
|
1302
|
-
});
|
|
1303
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1304
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1305
|
-
subscriber: (_) => de_SubscriberResource(_, context),
|
|
1306
|
-
});
|
|
1307
|
-
Object.assign(contents, doc);
|
|
1308
|
-
return contents;
|
|
1309
|
-
};
|
|
1310
|
-
exports.de_GetSubscriberCommand = de_GetSubscriberCommand;
|
|
1311
|
-
const de_GetSubscriberCommandError = async (output, context) => {
|
|
1312
|
-
const parsedOutput = {
|
|
1313
|
-
...output,
|
|
1314
|
-
body: await parseErrorBody(output.body, context),
|
|
1315
|
-
};
|
|
1316
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1317
|
-
switch (errorCode) {
|
|
1318
|
-
case "AccessDeniedException":
|
|
1319
|
-
case "com.amazonaws.securitylake#AccessDeniedException":
|
|
1320
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1321
|
-
case "BadRequestException":
|
|
1322
|
-
case "com.amazonaws.securitylake#BadRequestException":
|
|
1323
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1324
|
-
case "ConflictException":
|
|
1325
|
-
case "com.amazonaws.securitylake#ConflictException":
|
|
1326
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1327
|
-
case "InternalServerException":
|
|
1328
|
-
case "com.amazonaws.securitylake#InternalServerException":
|
|
1329
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1330
|
-
case "ResourceNotFoundException":
|
|
1331
|
-
case "com.amazonaws.securitylake#ResourceNotFoundException":
|
|
1332
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1333
|
-
case "ThrottlingException":
|
|
1334
|
-
case "com.amazonaws.securitylake#ThrottlingException":
|
|
1335
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1336
|
-
default:
|
|
1337
|
-
const parsedBody = parsedOutput.body;
|
|
1338
|
-
return throwDefaultError({
|
|
1339
|
-
output,
|
|
1340
|
-
parsedBody,
|
|
1341
|
-
errorCode,
|
|
1342
|
-
});
|
|
1343
|
-
}
|
|
1344
|
-
};
|
|
1345
|
-
const de_ListDataLakeExceptionsCommand = async (output, context) => {
|
|
1346
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1347
|
-
return de_ListDataLakeExceptionsCommandError(output, context);
|
|
1348
|
-
}
|
|
1349
|
-
const contents = (0, smithy_client_1.map)({
|
|
1350
|
-
$metadata: deserializeMetadata(output),
|
|
1351
|
-
});
|
|
1352
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1353
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1354
|
-
exceptions: (_) => de_DataLakeExceptionList(_, context),
|
|
1355
|
-
nextToken: smithy_client_1.expectString,
|
|
1356
|
-
});
|
|
1357
|
-
Object.assign(contents, doc);
|
|
1358
|
-
return contents;
|
|
1359
|
-
};
|
|
1360
|
-
exports.de_ListDataLakeExceptionsCommand = de_ListDataLakeExceptionsCommand;
|
|
1361
|
-
const de_ListDataLakeExceptionsCommandError = async (output, context) => {
|
|
1362
|
-
const parsedOutput = {
|
|
1363
|
-
...output,
|
|
1364
|
-
body: await parseErrorBody(output.body, context),
|
|
1365
|
-
};
|
|
1366
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1367
|
-
switch (errorCode) {
|
|
1368
|
-
case "AccessDeniedException":
|
|
1369
|
-
case "com.amazonaws.securitylake#AccessDeniedException":
|
|
1370
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1371
|
-
case "BadRequestException":
|
|
1372
|
-
case "com.amazonaws.securitylake#BadRequestException":
|
|
1373
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1374
|
-
case "ConflictException":
|
|
1375
|
-
case "com.amazonaws.securitylake#ConflictException":
|
|
1376
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1377
|
-
case "InternalServerException":
|
|
1378
|
-
case "com.amazonaws.securitylake#InternalServerException":
|
|
1379
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1380
|
-
case "ResourceNotFoundException":
|
|
1381
|
-
case "com.amazonaws.securitylake#ResourceNotFoundException":
|
|
1382
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1383
|
-
case "ThrottlingException":
|
|
1384
|
-
case "com.amazonaws.securitylake#ThrottlingException":
|
|
1385
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1386
|
-
default:
|
|
1387
|
-
const parsedBody = parsedOutput.body;
|
|
1388
|
-
return throwDefaultError({
|
|
1389
|
-
output,
|
|
1390
|
-
parsedBody,
|
|
1391
|
-
errorCode,
|
|
1392
|
-
});
|
|
1393
|
-
}
|
|
1394
|
-
};
|
|
1395
|
-
const de_ListDataLakesCommand = async (output, context) => {
|
|
1396
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1397
|
-
return de_ListDataLakesCommandError(output, context);
|
|
1398
|
-
}
|
|
1399
|
-
const contents = (0, smithy_client_1.map)({
|
|
1400
|
-
$metadata: deserializeMetadata(output),
|
|
1401
|
-
});
|
|
1402
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1403
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1404
|
-
dataLakes: smithy_client_1._json,
|
|
1405
|
-
});
|
|
1406
|
-
Object.assign(contents, doc);
|
|
1407
|
-
return contents;
|
|
1408
|
-
};
|
|
1409
|
-
exports.de_ListDataLakesCommand = de_ListDataLakesCommand;
|
|
1410
|
-
const de_ListDataLakesCommandError = async (output, context) => {
|
|
1411
|
-
const parsedOutput = {
|
|
1412
|
-
...output,
|
|
1413
|
-
body: await parseErrorBody(output.body, context),
|
|
1414
|
-
};
|
|
1415
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1416
|
-
switch (errorCode) {
|
|
1417
|
-
case "AccessDeniedException":
|
|
1418
|
-
case "com.amazonaws.securitylake#AccessDeniedException":
|
|
1419
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1420
|
-
case "BadRequestException":
|
|
1421
|
-
case "com.amazonaws.securitylake#BadRequestException":
|
|
1422
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1423
|
-
case "ConflictException":
|
|
1424
|
-
case "com.amazonaws.securitylake#ConflictException":
|
|
1425
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1426
|
-
case "InternalServerException":
|
|
1427
|
-
case "com.amazonaws.securitylake#InternalServerException":
|
|
1428
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1429
|
-
case "ResourceNotFoundException":
|
|
1430
|
-
case "com.amazonaws.securitylake#ResourceNotFoundException":
|
|
1431
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1432
|
-
case "ThrottlingException":
|
|
1433
|
-
case "com.amazonaws.securitylake#ThrottlingException":
|
|
1434
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1435
|
-
default:
|
|
1436
|
-
const parsedBody = parsedOutput.body;
|
|
1437
|
-
return throwDefaultError({
|
|
1438
|
-
output,
|
|
1439
|
-
parsedBody,
|
|
1440
|
-
errorCode,
|
|
1441
|
-
});
|
|
1442
|
-
}
|
|
1443
|
-
};
|
|
1444
|
-
const de_ListLogSourcesCommand = async (output, context) => {
|
|
1445
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1446
|
-
return de_ListLogSourcesCommandError(output, context);
|
|
1447
|
-
}
|
|
1448
|
-
const contents = (0, smithy_client_1.map)({
|
|
1449
|
-
$metadata: deserializeMetadata(output),
|
|
1450
|
-
});
|
|
1451
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1452
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1453
|
-
nextToken: smithy_client_1.expectString,
|
|
1454
|
-
sources: smithy_client_1._json,
|
|
1455
|
-
});
|
|
1456
|
-
Object.assign(contents, doc);
|
|
1457
|
-
return contents;
|
|
1458
|
-
};
|
|
1459
|
-
exports.de_ListLogSourcesCommand = de_ListLogSourcesCommand;
|
|
1460
|
-
const de_ListLogSourcesCommandError = async (output, context) => {
|
|
1461
|
-
const parsedOutput = {
|
|
1462
|
-
...output,
|
|
1463
|
-
body: await parseErrorBody(output.body, context),
|
|
1464
|
-
};
|
|
1465
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1466
|
-
switch (errorCode) {
|
|
1467
|
-
case "AccessDeniedException":
|
|
1468
|
-
case "com.amazonaws.securitylake#AccessDeniedException":
|
|
1469
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1470
|
-
case "BadRequestException":
|
|
1471
|
-
case "com.amazonaws.securitylake#BadRequestException":
|
|
1472
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1473
|
-
case "ConflictException":
|
|
1474
|
-
case "com.amazonaws.securitylake#ConflictException":
|
|
1475
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1476
|
-
case "InternalServerException":
|
|
1477
|
-
case "com.amazonaws.securitylake#InternalServerException":
|
|
1478
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1479
|
-
case "ResourceNotFoundException":
|
|
1480
|
-
case "com.amazonaws.securitylake#ResourceNotFoundException":
|
|
1481
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1482
|
-
case "ThrottlingException":
|
|
1483
|
-
case "com.amazonaws.securitylake#ThrottlingException":
|
|
1484
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1485
|
-
default:
|
|
1486
|
-
const parsedBody = parsedOutput.body;
|
|
1487
|
-
return throwDefaultError({
|
|
1488
|
-
output,
|
|
1489
|
-
parsedBody,
|
|
1490
|
-
errorCode,
|
|
1491
|
-
});
|
|
1492
|
-
}
|
|
1493
|
-
};
|
|
1494
|
-
const de_ListSubscribersCommand = async (output, context) => {
|
|
1495
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1496
|
-
return de_ListSubscribersCommandError(output, context);
|
|
1497
|
-
}
|
|
1498
|
-
const contents = (0, smithy_client_1.map)({
|
|
1499
|
-
$metadata: deserializeMetadata(output),
|
|
1500
|
-
});
|
|
1501
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1502
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1503
|
-
nextToken: smithy_client_1.expectString,
|
|
1504
|
-
subscribers: (_) => de_SubscriberResourceList(_, context),
|
|
1505
|
-
});
|
|
1506
|
-
Object.assign(contents, doc);
|
|
1507
|
-
return contents;
|
|
1508
|
-
};
|
|
1509
|
-
exports.de_ListSubscribersCommand = de_ListSubscribersCommand;
|
|
1510
|
-
const de_ListSubscribersCommandError = async (output, context) => {
|
|
1511
|
-
const parsedOutput = {
|
|
1512
|
-
...output,
|
|
1513
|
-
body: await parseErrorBody(output.body, context),
|
|
1514
|
-
};
|
|
1515
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1516
|
-
switch (errorCode) {
|
|
1517
|
-
case "AccessDeniedException":
|
|
1518
|
-
case "com.amazonaws.securitylake#AccessDeniedException":
|
|
1519
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1520
|
-
case "BadRequestException":
|
|
1521
|
-
case "com.amazonaws.securitylake#BadRequestException":
|
|
1522
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1523
|
-
case "ConflictException":
|
|
1524
|
-
case "com.amazonaws.securitylake#ConflictException":
|
|
1525
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1526
|
-
case "InternalServerException":
|
|
1527
|
-
case "com.amazonaws.securitylake#InternalServerException":
|
|
1528
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1529
|
-
case "ResourceNotFoundException":
|
|
1530
|
-
case "com.amazonaws.securitylake#ResourceNotFoundException":
|
|
1531
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1532
|
-
case "ThrottlingException":
|
|
1533
|
-
case "com.amazonaws.securitylake#ThrottlingException":
|
|
1534
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1535
|
-
default:
|
|
1536
|
-
const parsedBody = parsedOutput.body;
|
|
1537
|
-
return throwDefaultError({
|
|
1538
|
-
output,
|
|
1539
|
-
parsedBody,
|
|
1540
|
-
errorCode,
|
|
1541
|
-
});
|
|
1542
|
-
}
|
|
1543
|
-
};
|
|
1544
|
-
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
1545
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1546
|
-
return de_ListTagsForResourceCommandError(output, context);
|
|
1547
|
-
}
|
|
1548
|
-
const contents = (0, smithy_client_1.map)({
|
|
1549
|
-
$metadata: deserializeMetadata(output),
|
|
1550
|
-
});
|
|
1551
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1552
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1553
|
-
tags: smithy_client_1._json,
|
|
1554
|
-
});
|
|
1555
|
-
Object.assign(contents, doc);
|
|
1556
|
-
return contents;
|
|
1557
|
-
};
|
|
1558
|
-
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
1559
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
1560
|
-
const parsedOutput = {
|
|
1561
|
-
...output,
|
|
1562
|
-
body: await parseErrorBody(output.body, context),
|
|
1563
|
-
};
|
|
1564
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1565
|
-
switch (errorCode) {
|
|
1566
|
-
case "AccessDeniedException":
|
|
1567
|
-
case "com.amazonaws.securitylake#AccessDeniedException":
|
|
1568
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1569
|
-
case "BadRequestException":
|
|
1570
|
-
case "com.amazonaws.securitylake#BadRequestException":
|
|
1571
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1572
|
-
case "ConflictException":
|
|
1573
|
-
case "com.amazonaws.securitylake#ConflictException":
|
|
1574
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1575
|
-
case "InternalServerException":
|
|
1576
|
-
case "com.amazonaws.securitylake#InternalServerException":
|
|
1577
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1578
|
-
case "ResourceNotFoundException":
|
|
1579
|
-
case "com.amazonaws.securitylake#ResourceNotFoundException":
|
|
1580
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1581
|
-
case "ThrottlingException":
|
|
1582
|
-
case "com.amazonaws.securitylake#ThrottlingException":
|
|
1583
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1584
|
-
default:
|
|
1585
|
-
const parsedBody = parsedOutput.body;
|
|
1586
|
-
return throwDefaultError({
|
|
1587
|
-
output,
|
|
1588
|
-
parsedBody,
|
|
1589
|
-
errorCode,
|
|
1590
|
-
});
|
|
1591
|
-
}
|
|
1592
|
-
};
|
|
1593
|
-
const de_RegisterDataLakeDelegatedAdministratorCommand = async (output, context) => {
|
|
1594
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1595
|
-
return de_RegisterDataLakeDelegatedAdministratorCommandError(output, context);
|
|
1596
|
-
}
|
|
1597
|
-
const contents = (0, smithy_client_1.map)({
|
|
1598
|
-
$metadata: deserializeMetadata(output),
|
|
1599
|
-
});
|
|
1600
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1601
|
-
return contents;
|
|
1602
|
-
};
|
|
1603
|
-
exports.de_RegisterDataLakeDelegatedAdministratorCommand = de_RegisterDataLakeDelegatedAdministratorCommand;
|
|
1604
|
-
const de_RegisterDataLakeDelegatedAdministratorCommandError = async (output, context) => {
|
|
1605
|
-
const parsedOutput = {
|
|
1606
|
-
...output,
|
|
1607
|
-
body: await parseErrorBody(output.body, context),
|
|
1608
|
-
};
|
|
1609
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1610
|
-
switch (errorCode) {
|
|
1611
|
-
case "AccessDeniedException":
|
|
1612
|
-
case "com.amazonaws.securitylake#AccessDeniedException":
|
|
1613
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1614
|
-
case "BadRequestException":
|
|
1615
|
-
case "com.amazonaws.securitylake#BadRequestException":
|
|
1616
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1617
|
-
case "ConflictException":
|
|
1618
|
-
case "com.amazonaws.securitylake#ConflictException":
|
|
1619
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1620
|
-
case "InternalServerException":
|
|
1621
|
-
case "com.amazonaws.securitylake#InternalServerException":
|
|
1622
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1623
|
-
case "ResourceNotFoundException":
|
|
1624
|
-
case "com.amazonaws.securitylake#ResourceNotFoundException":
|
|
1625
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1626
|
-
case "ThrottlingException":
|
|
1627
|
-
case "com.amazonaws.securitylake#ThrottlingException":
|
|
1628
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1629
|
-
default:
|
|
1630
|
-
const parsedBody = parsedOutput.body;
|
|
1631
|
-
return throwDefaultError({
|
|
1632
|
-
output,
|
|
1633
|
-
parsedBody,
|
|
1634
|
-
errorCode,
|
|
1635
|
-
});
|
|
1636
|
-
}
|
|
1637
|
-
};
|
|
1638
|
-
const de_TagResourceCommand = async (output, context) => {
|
|
1639
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1640
|
-
return de_TagResourceCommandError(output, context);
|
|
1641
|
-
}
|
|
1642
|
-
const contents = (0, smithy_client_1.map)({
|
|
1643
|
-
$metadata: deserializeMetadata(output),
|
|
1644
|
-
});
|
|
1645
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1646
|
-
return contents;
|
|
1647
|
-
};
|
|
1648
|
-
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
1649
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
1650
|
-
const parsedOutput = {
|
|
1651
|
-
...output,
|
|
1652
|
-
body: await parseErrorBody(output.body, context),
|
|
1653
|
-
};
|
|
1654
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1655
|
-
switch (errorCode) {
|
|
1656
|
-
case "AccessDeniedException":
|
|
1657
|
-
case "com.amazonaws.securitylake#AccessDeniedException":
|
|
1658
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1659
|
-
case "BadRequestException":
|
|
1660
|
-
case "com.amazonaws.securitylake#BadRequestException":
|
|
1661
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1662
|
-
case "ConflictException":
|
|
1663
|
-
case "com.amazonaws.securitylake#ConflictException":
|
|
1664
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1665
|
-
case "InternalServerException":
|
|
1666
|
-
case "com.amazonaws.securitylake#InternalServerException":
|
|
1667
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1668
|
-
case "ResourceNotFoundException":
|
|
1669
|
-
case "com.amazonaws.securitylake#ResourceNotFoundException":
|
|
1670
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1671
|
-
case "ThrottlingException":
|
|
1672
|
-
case "com.amazonaws.securitylake#ThrottlingException":
|
|
1673
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1674
|
-
default:
|
|
1675
|
-
const parsedBody = parsedOutput.body;
|
|
1676
|
-
return throwDefaultError({
|
|
1677
|
-
output,
|
|
1678
|
-
parsedBody,
|
|
1679
|
-
errorCode,
|
|
1680
|
-
});
|
|
1681
|
-
}
|
|
1682
|
-
};
|
|
1683
|
-
const de_UntagResourceCommand = async (output, context) => {
|
|
1684
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1685
|
-
return de_UntagResourceCommandError(output, context);
|
|
1686
|
-
}
|
|
1687
|
-
const contents = (0, smithy_client_1.map)({
|
|
1688
|
-
$metadata: deserializeMetadata(output),
|
|
1689
|
-
});
|
|
1690
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1691
|
-
return contents;
|
|
1692
|
-
};
|
|
1693
|
-
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
1694
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
1695
|
-
const parsedOutput = {
|
|
1696
|
-
...output,
|
|
1697
|
-
body: await parseErrorBody(output.body, context),
|
|
1698
|
-
};
|
|
1699
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1700
|
-
switch (errorCode) {
|
|
1701
|
-
case "AccessDeniedException":
|
|
1702
|
-
case "com.amazonaws.securitylake#AccessDeniedException":
|
|
1703
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1704
|
-
case "BadRequestException":
|
|
1705
|
-
case "com.amazonaws.securitylake#BadRequestException":
|
|
1706
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1707
|
-
case "ConflictException":
|
|
1708
|
-
case "com.amazonaws.securitylake#ConflictException":
|
|
1709
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1710
|
-
case "InternalServerException":
|
|
1711
|
-
case "com.amazonaws.securitylake#InternalServerException":
|
|
1712
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1713
|
-
case "ResourceNotFoundException":
|
|
1714
|
-
case "com.amazonaws.securitylake#ResourceNotFoundException":
|
|
1715
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1716
|
-
case "ThrottlingException":
|
|
1717
|
-
case "com.amazonaws.securitylake#ThrottlingException":
|
|
1718
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1719
|
-
default:
|
|
1720
|
-
const parsedBody = parsedOutput.body;
|
|
1721
|
-
return throwDefaultError({
|
|
1722
|
-
output,
|
|
1723
|
-
parsedBody,
|
|
1724
|
-
errorCode,
|
|
1725
|
-
});
|
|
1726
|
-
}
|
|
1727
|
-
};
|
|
1728
|
-
const de_UpdateDataLakeCommand = async (output, context) => {
|
|
1729
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1730
|
-
return de_UpdateDataLakeCommandError(output, context);
|
|
1731
|
-
}
|
|
1732
|
-
const contents = (0, smithy_client_1.map)({
|
|
1733
|
-
$metadata: deserializeMetadata(output),
|
|
1734
|
-
});
|
|
1735
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1736
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1737
|
-
dataLakes: smithy_client_1._json,
|
|
1738
|
-
});
|
|
1739
|
-
Object.assign(contents, doc);
|
|
1740
|
-
return contents;
|
|
1741
|
-
};
|
|
1742
|
-
exports.de_UpdateDataLakeCommand = de_UpdateDataLakeCommand;
|
|
1743
|
-
const de_UpdateDataLakeCommandError = async (output, context) => {
|
|
1744
|
-
const parsedOutput = {
|
|
1745
|
-
...output,
|
|
1746
|
-
body: await parseErrorBody(output.body, context),
|
|
1747
|
-
};
|
|
1748
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1749
|
-
switch (errorCode) {
|
|
1750
|
-
case "AccessDeniedException":
|
|
1751
|
-
case "com.amazonaws.securitylake#AccessDeniedException":
|
|
1752
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1753
|
-
case "BadRequestException":
|
|
1754
|
-
case "com.amazonaws.securitylake#BadRequestException":
|
|
1755
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1756
|
-
case "ConflictException":
|
|
1757
|
-
case "com.amazonaws.securitylake#ConflictException":
|
|
1758
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1759
|
-
case "InternalServerException":
|
|
1760
|
-
case "com.amazonaws.securitylake#InternalServerException":
|
|
1761
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1762
|
-
case "ResourceNotFoundException":
|
|
1763
|
-
case "com.amazonaws.securitylake#ResourceNotFoundException":
|
|
1764
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1765
|
-
case "ThrottlingException":
|
|
1766
|
-
case "com.amazonaws.securitylake#ThrottlingException":
|
|
1767
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1768
|
-
default:
|
|
1769
|
-
const parsedBody = parsedOutput.body;
|
|
1770
|
-
return throwDefaultError({
|
|
1771
|
-
output,
|
|
1772
|
-
parsedBody,
|
|
1773
|
-
errorCode,
|
|
1774
|
-
});
|
|
1775
|
-
}
|
|
1776
|
-
};
|
|
1777
|
-
const de_UpdateDataLakeExceptionSubscriptionCommand = async (output, context) => {
|
|
1778
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1779
|
-
return de_UpdateDataLakeExceptionSubscriptionCommandError(output, context);
|
|
1780
|
-
}
|
|
1781
|
-
const contents = (0, smithy_client_1.map)({
|
|
1782
|
-
$metadata: deserializeMetadata(output),
|
|
1783
|
-
});
|
|
1784
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1785
|
-
return contents;
|
|
1786
|
-
};
|
|
1787
|
-
exports.de_UpdateDataLakeExceptionSubscriptionCommand = de_UpdateDataLakeExceptionSubscriptionCommand;
|
|
1788
|
-
const de_UpdateDataLakeExceptionSubscriptionCommandError = async (output, context) => {
|
|
1789
|
-
const parsedOutput = {
|
|
1790
|
-
...output,
|
|
1791
|
-
body: await parseErrorBody(output.body, context),
|
|
1792
|
-
};
|
|
1793
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1794
|
-
switch (errorCode) {
|
|
1795
|
-
case "AccessDeniedException":
|
|
1796
|
-
case "com.amazonaws.securitylake#AccessDeniedException":
|
|
1797
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1798
|
-
case "BadRequestException":
|
|
1799
|
-
case "com.amazonaws.securitylake#BadRequestException":
|
|
1800
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1801
|
-
case "ConflictException":
|
|
1802
|
-
case "com.amazonaws.securitylake#ConflictException":
|
|
1803
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1804
|
-
case "InternalServerException":
|
|
1805
|
-
case "com.amazonaws.securitylake#InternalServerException":
|
|
1806
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1807
|
-
case "ResourceNotFoundException":
|
|
1808
|
-
case "com.amazonaws.securitylake#ResourceNotFoundException":
|
|
1809
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1810
|
-
case "ThrottlingException":
|
|
1811
|
-
case "com.amazonaws.securitylake#ThrottlingException":
|
|
1812
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1813
|
-
default:
|
|
1814
|
-
const parsedBody = parsedOutput.body;
|
|
1815
|
-
return throwDefaultError({
|
|
1816
|
-
output,
|
|
1817
|
-
parsedBody,
|
|
1818
|
-
errorCode,
|
|
1819
|
-
});
|
|
1820
|
-
}
|
|
1821
|
-
};
|
|
1822
|
-
const de_UpdateSubscriberCommand = async (output, context) => {
|
|
1823
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1824
|
-
return de_UpdateSubscriberCommandError(output, context);
|
|
1825
|
-
}
|
|
1826
|
-
const contents = (0, smithy_client_1.map)({
|
|
1827
|
-
$metadata: deserializeMetadata(output),
|
|
1828
|
-
});
|
|
1829
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1830
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1831
|
-
subscriber: (_) => de_SubscriberResource(_, context),
|
|
1832
|
-
});
|
|
1833
|
-
Object.assign(contents, doc);
|
|
1834
|
-
return contents;
|
|
1835
|
-
};
|
|
1836
|
-
exports.de_UpdateSubscriberCommand = de_UpdateSubscriberCommand;
|
|
1837
|
-
const de_UpdateSubscriberCommandError = async (output, context) => {
|
|
1838
|
-
const parsedOutput = {
|
|
1839
|
-
...output,
|
|
1840
|
-
body: await parseErrorBody(output.body, context),
|
|
1841
|
-
};
|
|
1842
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1843
|
-
switch (errorCode) {
|
|
1844
|
-
case "AccessDeniedException":
|
|
1845
|
-
case "com.amazonaws.securitylake#AccessDeniedException":
|
|
1846
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1847
|
-
case "BadRequestException":
|
|
1848
|
-
case "com.amazonaws.securitylake#BadRequestException":
|
|
1849
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1850
|
-
case "ConflictException":
|
|
1851
|
-
case "com.amazonaws.securitylake#ConflictException":
|
|
1852
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1853
|
-
case "InternalServerException":
|
|
1854
|
-
case "com.amazonaws.securitylake#InternalServerException":
|
|
1855
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1856
|
-
case "ResourceNotFoundException":
|
|
1857
|
-
case "com.amazonaws.securitylake#ResourceNotFoundException":
|
|
1858
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1859
|
-
case "ThrottlingException":
|
|
1860
|
-
case "com.amazonaws.securitylake#ThrottlingException":
|
|
1861
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1862
|
-
default:
|
|
1863
|
-
const parsedBody = parsedOutput.body;
|
|
1864
|
-
return throwDefaultError({
|
|
1865
|
-
output,
|
|
1866
|
-
parsedBody,
|
|
1867
|
-
errorCode,
|
|
1868
|
-
});
|
|
1869
|
-
}
|
|
1870
|
-
};
|
|
1871
|
-
const de_UpdateSubscriberNotificationCommand = async (output, context) => {
|
|
1872
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1873
|
-
return de_UpdateSubscriberNotificationCommandError(output, context);
|
|
1874
|
-
}
|
|
1875
|
-
const contents = (0, smithy_client_1.map)({
|
|
1876
|
-
$metadata: deserializeMetadata(output),
|
|
1877
|
-
});
|
|
1878
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1879
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1880
|
-
subscriberEndpoint: smithy_client_1.expectString,
|
|
1881
|
-
});
|
|
1882
|
-
Object.assign(contents, doc);
|
|
1883
|
-
return contents;
|
|
1884
|
-
};
|
|
1885
|
-
exports.de_UpdateSubscriberNotificationCommand = de_UpdateSubscriberNotificationCommand;
|
|
1886
|
-
const de_UpdateSubscriberNotificationCommandError = async (output, context) => {
|
|
1887
|
-
const parsedOutput = {
|
|
1888
|
-
...output,
|
|
1889
|
-
body: await parseErrorBody(output.body, context),
|
|
1890
|
-
};
|
|
1891
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1892
|
-
switch (errorCode) {
|
|
1893
|
-
case "AccessDeniedException":
|
|
1894
|
-
case "com.amazonaws.securitylake#AccessDeniedException":
|
|
1895
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1896
|
-
case "BadRequestException":
|
|
1897
|
-
case "com.amazonaws.securitylake#BadRequestException":
|
|
1898
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1899
|
-
case "ConflictException":
|
|
1900
|
-
case "com.amazonaws.securitylake#ConflictException":
|
|
1901
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1902
|
-
case "InternalServerException":
|
|
1903
|
-
case "com.amazonaws.securitylake#InternalServerException":
|
|
1904
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1905
|
-
case "ResourceNotFoundException":
|
|
1906
|
-
case "com.amazonaws.securitylake#ResourceNotFoundException":
|
|
1907
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1908
|
-
case "ThrottlingException":
|
|
1909
|
-
case "com.amazonaws.securitylake#ThrottlingException":
|
|
1910
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1911
|
-
default:
|
|
1912
|
-
const parsedBody = parsedOutput.body;
|
|
1913
|
-
return throwDefaultError({
|
|
1914
|
-
output,
|
|
1915
|
-
parsedBody,
|
|
1916
|
-
errorCode,
|
|
1917
|
-
});
|
|
1918
|
-
}
|
|
1919
|
-
};
|
|
1920
|
-
const throwDefaultError = (0, smithy_client_1.withBaseException)(SecurityLakeServiceException_1.SecurityLakeServiceException);
|
|
1921
|
-
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
1922
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1923
|
-
const data = parsedOutput.body;
|
|
1924
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1925
|
-
errorCode: smithy_client_1.expectString,
|
|
1926
|
-
message: smithy_client_1.expectString,
|
|
1927
|
-
});
|
|
1928
|
-
Object.assign(contents, doc);
|
|
1929
|
-
const exception = new models_0_1.AccessDeniedException({
|
|
1930
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1931
|
-
...contents,
|
|
1932
|
-
});
|
|
1933
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1934
|
-
};
|
|
1935
|
-
const de_BadRequestExceptionRes = async (parsedOutput, context) => {
|
|
1936
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1937
|
-
const data = parsedOutput.body;
|
|
1938
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1939
|
-
message: smithy_client_1.expectString,
|
|
1940
|
-
});
|
|
1941
|
-
Object.assign(contents, doc);
|
|
1942
|
-
const exception = new models_0_1.BadRequestException({
|
|
1943
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1944
|
-
...contents,
|
|
1945
|
-
});
|
|
1946
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1947
|
-
};
|
|
1948
|
-
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
1949
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1950
|
-
const data = parsedOutput.body;
|
|
1951
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1952
|
-
message: smithy_client_1.expectString,
|
|
1953
|
-
resourceName: smithy_client_1.expectString,
|
|
1954
|
-
resourceType: smithy_client_1.expectString,
|
|
1955
|
-
});
|
|
1956
|
-
Object.assign(contents, doc);
|
|
1957
|
-
const exception = new models_0_1.ConflictException({
|
|
1958
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1959
|
-
...contents,
|
|
1960
|
-
});
|
|
1961
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1962
|
-
};
|
|
1963
|
-
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
1964
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1965
|
-
const data = parsedOutput.body;
|
|
1966
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1967
|
-
message: smithy_client_1.expectString,
|
|
1968
|
-
});
|
|
1969
|
-
Object.assign(contents, doc);
|
|
1970
|
-
const exception = new models_0_1.InternalServerException({
|
|
1971
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1972
|
-
...contents,
|
|
1973
|
-
});
|
|
1974
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1975
|
-
};
|
|
1976
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1977
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1978
|
-
const data = parsedOutput.body;
|
|
1979
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1980
|
-
message: smithy_client_1.expectString,
|
|
1981
|
-
resourceName: smithy_client_1.expectString,
|
|
1982
|
-
resourceType: smithy_client_1.expectString,
|
|
1983
|
-
});
|
|
1984
|
-
Object.assign(contents, doc);
|
|
1985
|
-
const exception = new models_0_1.ResourceNotFoundException({
|
|
1986
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1987
|
-
...contents,
|
|
1988
|
-
});
|
|
1989
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1990
|
-
};
|
|
1991
|
-
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
1992
|
-
const contents = (0, smithy_client_1.map)({
|
|
1993
|
-
[_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers[_ra])],
|
|
1994
|
-
});
|
|
1995
|
-
const data = parsedOutput.body;
|
|
1996
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1997
|
-
message: smithy_client_1.expectString,
|
|
1998
|
-
quotaCode: smithy_client_1.expectString,
|
|
1999
|
-
serviceCode: smithy_client_1.expectString,
|
|
2000
|
-
});
|
|
2001
|
-
Object.assign(contents, doc);
|
|
2002
|
-
const exception = new models_0_1.ThrottlingException({
|
|
2003
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2004
|
-
...contents,
|
|
2005
|
-
});
|
|
2006
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2007
|
-
};
|
|
2008
|
-
const de_DataLakeException = (output, context) => {
|
|
2009
|
-
return (0, smithy_client_1.take)(output, {
|
|
2010
|
-
exception: smithy_client_1.expectString,
|
|
2011
|
-
region: smithy_client_1.expectString,
|
|
2012
|
-
remediation: smithy_client_1.expectString,
|
|
2013
|
-
timestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
2014
|
-
});
|
|
2015
|
-
};
|
|
2016
|
-
const de_DataLakeExceptionList = (output, context) => {
|
|
2017
|
-
const retVal = (output || [])
|
|
2018
|
-
.filter((e) => e != null)
|
|
2019
|
-
.map((entry) => {
|
|
2020
|
-
return de_DataLakeException(entry, context);
|
|
2021
|
-
});
|
|
2022
|
-
return retVal;
|
|
2023
|
-
};
|
|
2024
|
-
const de_SubscriberResource = (output, context) => {
|
|
2025
|
-
return (0, smithy_client_1.take)(output, {
|
|
2026
|
-
accessTypes: smithy_client_1._json,
|
|
2027
|
-
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
2028
|
-
resourceShareArn: smithy_client_1.expectString,
|
|
2029
|
-
resourceShareName: smithy_client_1.expectString,
|
|
2030
|
-
roleArn: smithy_client_1.expectString,
|
|
2031
|
-
s3BucketArn: smithy_client_1.expectString,
|
|
2032
|
-
sources: smithy_client_1._json,
|
|
2033
|
-
subscriberArn: smithy_client_1.expectString,
|
|
2034
|
-
subscriberDescription: smithy_client_1.expectString,
|
|
2035
|
-
subscriberEndpoint: smithy_client_1.expectString,
|
|
2036
|
-
subscriberId: smithy_client_1.expectString,
|
|
2037
|
-
subscriberIdentity: smithy_client_1._json,
|
|
2038
|
-
subscriberName: smithy_client_1.expectString,
|
|
2039
|
-
subscriberStatus: smithy_client_1.expectString,
|
|
2040
|
-
updatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
2041
|
-
});
|
|
2042
|
-
};
|
|
2043
|
-
const de_SubscriberResourceList = (output, context) => {
|
|
2044
|
-
const retVal = (output || [])
|
|
2045
|
-
.filter((e) => e != null)
|
|
2046
|
-
.map((entry) => {
|
|
2047
|
-
return de_SubscriberResource(entry, context);
|
|
2048
|
-
});
|
|
2049
|
-
return retVal;
|
|
2050
|
-
};
|
|
2051
|
-
const deserializeMetadata = (output) => ({
|
|
2052
|
-
httpStatusCode: output.statusCode,
|
|
2053
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
2054
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
2055
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
2056
|
-
});
|
|
2057
|
-
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
2058
|
-
const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
2059
|
-
value !== null &&
|
|
2060
|
-
value !== "" &&
|
|
2061
|
-
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
2062
|
-
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
2063
|
-
const _mR = "maxResults";
|
|
2064
|
-
const _nT = "nextToken";
|
|
2065
|
-
const _r = "regions";
|
|
2066
|
-
const _rAS = "retryAfterSeconds";
|
|
2067
|
-
const _ra = "retry-after";
|
|
2068
|
-
const _sV = "sourceVersion";
|
|
2069
|
-
const _tK = "tagKeys";
|
|
2070
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
2071
|
-
if (encoded.length) {
|
|
2072
|
-
return JSON.parse(encoded);
|
|
2073
|
-
}
|
|
2074
|
-
return {};
|
|
2075
|
-
});
|
|
2076
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
2077
|
-
const value = await parseBody(errorBody, context);
|
|
2078
|
-
value.message = value.message ?? value.Message;
|
|
2079
|
-
return value;
|
|
2080
|
-
};
|
|
2081
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
2082
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
2083
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
2084
|
-
let cleanValue = rawValue;
|
|
2085
|
-
if (typeof cleanValue === "number") {
|
|
2086
|
-
cleanValue = cleanValue.toString();
|
|
2087
|
-
}
|
|
2088
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
2089
|
-
cleanValue = cleanValue.split(",")[0];
|
|
2090
|
-
}
|
|
2091
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
2092
|
-
cleanValue = cleanValue.split(":")[0];
|
|
2093
|
-
}
|
|
2094
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
2095
|
-
cleanValue = cleanValue.split("#")[1];
|
|
2096
|
-
}
|
|
2097
|
-
return cleanValue;
|
|
2098
|
-
};
|
|
2099
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
2100
|
-
if (headerKey !== undefined) {
|
|
2101
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
2102
|
-
}
|
|
2103
|
-
if (data.code !== undefined) {
|
|
2104
|
-
return sanitizeErrorCode(data.code);
|
|
2105
|
-
}
|
|
2106
|
-
if (data["__type"] !== undefined) {
|
|
2107
|
-
return sanitizeErrorCode(data["__type"]);
|
|
2108
|
-
}
|
|
2109
|
-
};
|
|
1
|
+
module.exports = require("../index.js");
|