@aws-sdk/client-securitylake 3.476.0 → 3.478.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/pagination/GetDataLakeSourcesPaginator.js +2 -24
- package/dist-cjs/pagination/ListDataLakeExceptionsPaginator.js +2 -24
- package/dist-cjs/pagination/ListLogSourcesPaginator.js +2 -24
- package/dist-cjs/pagination/ListSubscribersPaginator.js +2 -24
- package/dist-cjs/protocols/Aws_restJson1.js +149 -371
- package/dist-es/pagination/GetDataLakeSourcesPaginator.js +2 -23
- package/dist-es/pagination/ListDataLakeExceptionsPaginator.js +2 -23
- package/dist-es/pagination/ListLogSourcesPaginator.js +2 -23
- package/dist-es/pagination/ListSubscribersPaginator.js +2 -23
- package/dist-es/protocols/Aws_restJson1.js +150 -372
- package/dist-types/pagination/GetDataLakeSourcesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListDataLakeExceptionsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListLogSourcesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListSubscribersPaginator.d.ts +1 -1
- package/dist-types/ts3.4/pagination/GetDataLakeSourcesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListDataLakeExceptionsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListLogSourcesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListSubscribersPaginator.d.ts +3 -3
- package/package.json +7 -6
|
@@ -2,37 +2,30 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
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
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
|
|
5
|
+
const core_1 = require("@smithy/core");
|
|
6
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
7
|
const models_0_1 = require("../models/models_0");
|
|
8
8
|
const SecurityLakeServiceException_1 = require("../models/SecurityLakeServiceException");
|
|
9
9
|
const se_CreateAwsLogSourceCommand = async (input, context) => {
|
|
10
|
-
const
|
|
10
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
11
11
|
const headers = {
|
|
12
12
|
"content-type": "application/json",
|
|
13
13
|
};
|
|
14
|
-
|
|
14
|
+
b.bp("/v1/datalake/logsources/aws");
|
|
15
15
|
let body;
|
|
16
16
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
17
17
|
sources: (_) => (0, smithy_client_1._json)(_),
|
|
18
18
|
}));
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
hostname,
|
|
22
|
-
port,
|
|
23
|
-
method: "POST",
|
|
24
|
-
headers,
|
|
25
|
-
path: resolvedPath,
|
|
26
|
-
body,
|
|
27
|
-
});
|
|
19
|
+
b.m("POST").h(headers).b(body);
|
|
20
|
+
return b.build();
|
|
28
21
|
};
|
|
29
22
|
exports.se_CreateAwsLogSourceCommand = se_CreateAwsLogSourceCommand;
|
|
30
23
|
const se_CreateCustomLogSourceCommand = async (input, context) => {
|
|
31
|
-
const
|
|
24
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
32
25
|
const headers = {
|
|
33
26
|
"content-type": "application/json",
|
|
34
27
|
};
|
|
35
|
-
|
|
28
|
+
b.bp("/v1/datalake/logsources/custom");
|
|
36
29
|
let body;
|
|
37
30
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
38
31
|
configuration: (_) => (0, smithy_client_1._json)(_),
|
|
@@ -40,90 +33,62 @@ const se_CreateCustomLogSourceCommand = async (input, context) => {
|
|
|
40
33
|
sourceName: [],
|
|
41
34
|
sourceVersion: [],
|
|
42
35
|
}));
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
hostname,
|
|
46
|
-
port,
|
|
47
|
-
method: "POST",
|
|
48
|
-
headers,
|
|
49
|
-
path: resolvedPath,
|
|
50
|
-
body,
|
|
51
|
-
});
|
|
36
|
+
b.m("POST").h(headers).b(body);
|
|
37
|
+
return b.build();
|
|
52
38
|
};
|
|
53
39
|
exports.se_CreateCustomLogSourceCommand = se_CreateCustomLogSourceCommand;
|
|
54
40
|
const se_CreateDataLakeCommand = async (input, context) => {
|
|
55
|
-
const
|
|
41
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
56
42
|
const headers = {
|
|
57
43
|
"content-type": "application/json",
|
|
58
44
|
};
|
|
59
|
-
|
|
45
|
+
b.bp("/v1/datalake");
|
|
60
46
|
let body;
|
|
61
47
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
62
48
|
configurations: (_) => (0, smithy_client_1._json)(_),
|
|
63
49
|
metaStoreManagerRoleArn: [],
|
|
64
50
|
tags: (_) => (0, smithy_client_1._json)(_),
|
|
65
51
|
}));
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
hostname,
|
|
69
|
-
port,
|
|
70
|
-
method: "POST",
|
|
71
|
-
headers,
|
|
72
|
-
path: resolvedPath,
|
|
73
|
-
body,
|
|
74
|
-
});
|
|
52
|
+
b.m("POST").h(headers).b(body);
|
|
53
|
+
return b.build();
|
|
75
54
|
};
|
|
76
55
|
exports.se_CreateDataLakeCommand = se_CreateDataLakeCommand;
|
|
77
56
|
const se_CreateDataLakeExceptionSubscriptionCommand = async (input, context) => {
|
|
78
|
-
const
|
|
57
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
79
58
|
const headers = {
|
|
80
59
|
"content-type": "application/json",
|
|
81
60
|
};
|
|
82
|
-
|
|
61
|
+
b.bp("/v1/datalake/exceptions/subscription");
|
|
83
62
|
let body;
|
|
84
63
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
85
64
|
exceptionTimeToLive: [],
|
|
86
65
|
notificationEndpoint: [],
|
|
87
66
|
subscriptionProtocol: [],
|
|
88
67
|
}));
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
hostname,
|
|
92
|
-
port,
|
|
93
|
-
method: "POST",
|
|
94
|
-
headers,
|
|
95
|
-
path: resolvedPath,
|
|
96
|
-
body,
|
|
97
|
-
});
|
|
68
|
+
b.m("POST").h(headers).b(body);
|
|
69
|
+
return b.build();
|
|
98
70
|
};
|
|
99
71
|
exports.se_CreateDataLakeExceptionSubscriptionCommand = se_CreateDataLakeExceptionSubscriptionCommand;
|
|
100
72
|
const se_CreateDataLakeOrganizationConfigurationCommand = async (input, context) => {
|
|
101
|
-
const
|
|
73
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
102
74
|
const headers = {
|
|
103
75
|
"content-type": "application/json",
|
|
104
76
|
};
|
|
105
|
-
|
|
77
|
+
b.bp("/v1/datalake/organization/configuration");
|
|
106
78
|
let body;
|
|
107
79
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
108
80
|
autoEnableNewAccount: (_) => (0, smithy_client_1._json)(_),
|
|
109
81
|
}));
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
hostname,
|
|
113
|
-
port,
|
|
114
|
-
method: "POST",
|
|
115
|
-
headers,
|
|
116
|
-
path: resolvedPath,
|
|
117
|
-
body,
|
|
118
|
-
});
|
|
82
|
+
b.m("POST").h(headers).b(body);
|
|
83
|
+
return b.build();
|
|
119
84
|
};
|
|
120
85
|
exports.se_CreateDataLakeOrganizationConfigurationCommand = se_CreateDataLakeOrganizationConfigurationCommand;
|
|
121
86
|
const se_CreateSubscriberCommand = async (input, context) => {
|
|
122
|
-
const
|
|
87
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
123
88
|
const headers = {
|
|
124
89
|
"content-type": "application/json",
|
|
125
90
|
};
|
|
126
|
-
|
|
91
|
+
b.bp("/v1/subscribers");
|
|
127
92
|
let body;
|
|
128
93
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
129
94
|
accessTypes: (_) => (0, smithy_client_1._json)(_),
|
|
@@ -133,326 +98,208 @@ const se_CreateSubscriberCommand = async (input, context) => {
|
|
|
133
98
|
subscriberName: [],
|
|
134
99
|
tags: (_) => (0, smithy_client_1._json)(_),
|
|
135
100
|
}));
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
hostname,
|
|
139
|
-
port,
|
|
140
|
-
method: "POST",
|
|
141
|
-
headers,
|
|
142
|
-
path: resolvedPath,
|
|
143
|
-
body,
|
|
144
|
-
});
|
|
101
|
+
b.m("POST").h(headers).b(body);
|
|
102
|
+
return b.build();
|
|
145
103
|
};
|
|
146
104
|
exports.se_CreateSubscriberCommand = se_CreateSubscriberCommand;
|
|
147
105
|
const se_CreateSubscriberNotificationCommand = async (input, context) => {
|
|
148
|
-
const
|
|
106
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
149
107
|
const headers = {
|
|
150
108
|
"content-type": "application/json",
|
|
151
109
|
};
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "subscriberId", () => input.subscriberId, "{subscriberId}", false);
|
|
110
|
+
b.bp("/v1/subscribers/{subscriberId}/notification");
|
|
111
|
+
b.p("subscriberId", () => input.subscriberId, "{subscriberId}", false);
|
|
155
112
|
let body;
|
|
156
113
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
157
114
|
configuration: (_) => (0, smithy_client_1._json)(_),
|
|
158
115
|
}));
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
hostname,
|
|
162
|
-
port,
|
|
163
|
-
method: "POST",
|
|
164
|
-
headers,
|
|
165
|
-
path: resolvedPath,
|
|
166
|
-
body,
|
|
167
|
-
});
|
|
116
|
+
b.m("POST").h(headers).b(body);
|
|
117
|
+
return b.build();
|
|
168
118
|
};
|
|
169
119
|
exports.se_CreateSubscriberNotificationCommand = se_CreateSubscriberNotificationCommand;
|
|
170
120
|
const se_DeleteAwsLogSourceCommand = async (input, context) => {
|
|
171
|
-
const
|
|
121
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
172
122
|
const headers = {
|
|
173
123
|
"content-type": "application/json",
|
|
174
124
|
};
|
|
175
|
-
|
|
125
|
+
b.bp("/v1/datalake/logsources/aws/delete");
|
|
176
126
|
let body;
|
|
177
127
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
178
128
|
sources: (_) => (0, smithy_client_1._json)(_),
|
|
179
129
|
}));
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
hostname,
|
|
183
|
-
port,
|
|
184
|
-
method: "POST",
|
|
185
|
-
headers,
|
|
186
|
-
path: resolvedPath,
|
|
187
|
-
body,
|
|
188
|
-
});
|
|
130
|
+
b.m("POST").h(headers).b(body);
|
|
131
|
+
return b.build();
|
|
189
132
|
};
|
|
190
133
|
exports.se_DeleteAwsLogSourceCommand = se_DeleteAwsLogSourceCommand;
|
|
191
134
|
const se_DeleteCustomLogSourceCommand = async (input, context) => {
|
|
192
|
-
const
|
|
135
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
193
136
|
const headers = {};
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "sourceName", () => input.sourceName, "{sourceName}", false);
|
|
137
|
+
b.bp("/v1/datalake/logsources/custom/{sourceName}");
|
|
138
|
+
b.p("sourceName", () => input.sourceName, "{sourceName}", false);
|
|
197
139
|
const query = (0, smithy_client_1.map)({
|
|
198
|
-
|
|
140
|
+
[_sV]: [, input[_sV]],
|
|
199
141
|
});
|
|
200
142
|
let body;
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
hostname,
|
|
204
|
-
port,
|
|
205
|
-
method: "DELETE",
|
|
206
|
-
headers,
|
|
207
|
-
path: resolvedPath,
|
|
208
|
-
query,
|
|
209
|
-
body,
|
|
210
|
-
});
|
|
143
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
144
|
+
return b.build();
|
|
211
145
|
};
|
|
212
146
|
exports.se_DeleteCustomLogSourceCommand = se_DeleteCustomLogSourceCommand;
|
|
213
147
|
const se_DeleteDataLakeCommand = async (input, context) => {
|
|
214
|
-
const
|
|
148
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
215
149
|
const headers = {
|
|
216
150
|
"content-type": "application/json",
|
|
217
151
|
};
|
|
218
|
-
|
|
152
|
+
b.bp("/v1/datalake/delete");
|
|
219
153
|
let body;
|
|
220
154
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
221
155
|
regions: (_) => (0, smithy_client_1._json)(_),
|
|
222
156
|
}));
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
hostname,
|
|
226
|
-
port,
|
|
227
|
-
method: "POST",
|
|
228
|
-
headers,
|
|
229
|
-
path: resolvedPath,
|
|
230
|
-
body,
|
|
231
|
-
});
|
|
157
|
+
b.m("POST").h(headers).b(body);
|
|
158
|
+
return b.build();
|
|
232
159
|
};
|
|
233
160
|
exports.se_DeleteDataLakeCommand = se_DeleteDataLakeCommand;
|
|
234
161
|
const se_DeleteDataLakeExceptionSubscriptionCommand = async (input, context) => {
|
|
235
|
-
const
|
|
162
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
236
163
|
const headers = {
|
|
237
164
|
"content-type": "application/json",
|
|
238
165
|
};
|
|
239
|
-
|
|
166
|
+
b.bp("/v1/datalake/exceptions/subscription");
|
|
240
167
|
let body;
|
|
241
168
|
body = "";
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
hostname,
|
|
245
|
-
port,
|
|
246
|
-
method: "DELETE",
|
|
247
|
-
headers,
|
|
248
|
-
path: resolvedPath,
|
|
249
|
-
body,
|
|
250
|
-
});
|
|
169
|
+
b.m("DELETE").h(headers).b(body);
|
|
170
|
+
return b.build();
|
|
251
171
|
};
|
|
252
172
|
exports.se_DeleteDataLakeExceptionSubscriptionCommand = se_DeleteDataLakeExceptionSubscriptionCommand;
|
|
253
173
|
const se_DeleteDataLakeOrganizationConfigurationCommand = async (input, context) => {
|
|
254
|
-
const
|
|
174
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
255
175
|
const headers = {
|
|
256
176
|
"content-type": "application/json",
|
|
257
177
|
};
|
|
258
|
-
|
|
259
|
-
"/v1/datalake/organization/configuration/delete";
|
|
178
|
+
b.bp("/v1/datalake/organization/configuration/delete");
|
|
260
179
|
let body;
|
|
261
180
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
262
181
|
autoEnableNewAccount: (_) => (0, smithy_client_1._json)(_),
|
|
263
182
|
}));
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
hostname,
|
|
267
|
-
port,
|
|
268
|
-
method: "POST",
|
|
269
|
-
headers,
|
|
270
|
-
path: resolvedPath,
|
|
271
|
-
body,
|
|
272
|
-
});
|
|
183
|
+
b.m("POST").h(headers).b(body);
|
|
184
|
+
return b.build();
|
|
273
185
|
};
|
|
274
186
|
exports.se_DeleteDataLakeOrganizationConfigurationCommand = se_DeleteDataLakeOrganizationConfigurationCommand;
|
|
275
187
|
const se_DeleteSubscriberCommand = async (input, context) => {
|
|
276
|
-
const
|
|
188
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
277
189
|
const headers = {};
|
|
278
|
-
|
|
279
|
-
|
|
190
|
+
b.bp("/v1/subscribers/{subscriberId}");
|
|
191
|
+
b.p("subscriberId", () => input.subscriberId, "{subscriberId}", false);
|
|
280
192
|
let body;
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
hostname,
|
|
284
|
-
port,
|
|
285
|
-
method: "DELETE",
|
|
286
|
-
headers,
|
|
287
|
-
path: resolvedPath,
|
|
288
|
-
body,
|
|
289
|
-
});
|
|
193
|
+
b.m("DELETE").h(headers).b(body);
|
|
194
|
+
return b.build();
|
|
290
195
|
};
|
|
291
196
|
exports.se_DeleteSubscriberCommand = se_DeleteSubscriberCommand;
|
|
292
197
|
const se_DeleteSubscriberNotificationCommand = async (input, context) => {
|
|
293
|
-
const
|
|
198
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
294
199
|
const headers = {};
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "subscriberId", () => input.subscriberId, "{subscriberId}", false);
|
|
200
|
+
b.bp("/v1/subscribers/{subscriberId}/notification");
|
|
201
|
+
b.p("subscriberId", () => input.subscriberId, "{subscriberId}", false);
|
|
298
202
|
let body;
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
hostname,
|
|
302
|
-
port,
|
|
303
|
-
method: "DELETE",
|
|
304
|
-
headers,
|
|
305
|
-
path: resolvedPath,
|
|
306
|
-
body,
|
|
307
|
-
});
|
|
203
|
+
b.m("DELETE").h(headers).b(body);
|
|
204
|
+
return b.build();
|
|
308
205
|
};
|
|
309
206
|
exports.se_DeleteSubscriberNotificationCommand = se_DeleteSubscriberNotificationCommand;
|
|
310
207
|
const se_DeregisterDataLakeDelegatedAdministratorCommand = async (input, context) => {
|
|
311
|
-
const
|
|
208
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
312
209
|
const headers = {
|
|
313
210
|
"content-type": "application/json",
|
|
314
211
|
};
|
|
315
|
-
|
|
212
|
+
b.bp("/v1/datalake/delegate");
|
|
316
213
|
let body;
|
|
317
214
|
body = "";
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
hostname,
|
|
321
|
-
port,
|
|
322
|
-
method: "DELETE",
|
|
323
|
-
headers,
|
|
324
|
-
path: resolvedPath,
|
|
325
|
-
body,
|
|
326
|
-
});
|
|
215
|
+
b.m("DELETE").h(headers).b(body);
|
|
216
|
+
return b.build();
|
|
327
217
|
};
|
|
328
218
|
exports.se_DeregisterDataLakeDelegatedAdministratorCommand = se_DeregisterDataLakeDelegatedAdministratorCommand;
|
|
329
219
|
const se_GetDataLakeExceptionSubscriptionCommand = async (input, context) => {
|
|
330
|
-
const
|
|
220
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
331
221
|
const headers = {
|
|
332
222
|
"content-type": "application/json",
|
|
333
223
|
};
|
|
334
|
-
|
|
224
|
+
b.bp("/v1/datalake/exceptions/subscription");
|
|
335
225
|
let body;
|
|
336
226
|
body = "";
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
hostname,
|
|
340
|
-
port,
|
|
341
|
-
method: "GET",
|
|
342
|
-
headers,
|
|
343
|
-
path: resolvedPath,
|
|
344
|
-
body,
|
|
345
|
-
});
|
|
227
|
+
b.m("GET").h(headers).b(body);
|
|
228
|
+
return b.build();
|
|
346
229
|
};
|
|
347
230
|
exports.se_GetDataLakeExceptionSubscriptionCommand = se_GetDataLakeExceptionSubscriptionCommand;
|
|
348
231
|
const se_GetDataLakeOrganizationConfigurationCommand = async (input, context) => {
|
|
349
|
-
const
|
|
232
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
350
233
|
const headers = {
|
|
351
234
|
"content-type": "application/json",
|
|
352
235
|
};
|
|
353
|
-
|
|
236
|
+
b.bp("/v1/datalake/organization/configuration");
|
|
354
237
|
let body;
|
|
355
238
|
body = "";
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
hostname,
|
|
359
|
-
port,
|
|
360
|
-
method: "GET",
|
|
361
|
-
headers,
|
|
362
|
-
path: resolvedPath,
|
|
363
|
-
body,
|
|
364
|
-
});
|
|
239
|
+
b.m("GET").h(headers).b(body);
|
|
240
|
+
return b.build();
|
|
365
241
|
};
|
|
366
242
|
exports.se_GetDataLakeOrganizationConfigurationCommand = se_GetDataLakeOrganizationConfigurationCommand;
|
|
367
243
|
const se_GetDataLakeSourcesCommand = async (input, context) => {
|
|
368
|
-
const
|
|
244
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
369
245
|
const headers = {
|
|
370
246
|
"content-type": "application/json",
|
|
371
247
|
};
|
|
372
|
-
|
|
248
|
+
b.bp("/v1/datalake/sources");
|
|
373
249
|
let body;
|
|
374
250
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
375
251
|
accounts: (_) => (0, smithy_client_1._json)(_),
|
|
376
252
|
maxResults: [],
|
|
377
253
|
nextToken: [],
|
|
378
254
|
}));
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
hostname,
|
|
382
|
-
port,
|
|
383
|
-
method: "POST",
|
|
384
|
-
headers,
|
|
385
|
-
path: resolvedPath,
|
|
386
|
-
body,
|
|
387
|
-
});
|
|
255
|
+
b.m("POST").h(headers).b(body);
|
|
256
|
+
return b.build();
|
|
388
257
|
};
|
|
389
258
|
exports.se_GetDataLakeSourcesCommand = se_GetDataLakeSourcesCommand;
|
|
390
259
|
const se_GetSubscriberCommand = async (input, context) => {
|
|
391
|
-
const
|
|
260
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
392
261
|
const headers = {};
|
|
393
|
-
|
|
394
|
-
|
|
262
|
+
b.bp("/v1/subscribers/{subscriberId}");
|
|
263
|
+
b.p("subscriberId", () => input.subscriberId, "{subscriberId}", false);
|
|
395
264
|
let body;
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
hostname,
|
|
399
|
-
port,
|
|
400
|
-
method: "GET",
|
|
401
|
-
headers,
|
|
402
|
-
path: resolvedPath,
|
|
403
|
-
body,
|
|
404
|
-
});
|
|
265
|
+
b.m("GET").h(headers).b(body);
|
|
266
|
+
return b.build();
|
|
405
267
|
};
|
|
406
268
|
exports.se_GetSubscriberCommand = se_GetSubscriberCommand;
|
|
407
269
|
const se_ListDataLakeExceptionsCommand = async (input, context) => {
|
|
408
|
-
const
|
|
270
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
409
271
|
const headers = {
|
|
410
272
|
"content-type": "application/json",
|
|
411
273
|
};
|
|
412
|
-
|
|
274
|
+
b.bp("/v1/datalake/exceptions");
|
|
413
275
|
let body;
|
|
414
276
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
415
277
|
maxResults: [],
|
|
416
278
|
nextToken: [],
|
|
417
279
|
regions: (_) => (0, smithy_client_1._json)(_),
|
|
418
280
|
}));
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
hostname,
|
|
422
|
-
port,
|
|
423
|
-
method: "POST",
|
|
424
|
-
headers,
|
|
425
|
-
path: resolvedPath,
|
|
426
|
-
body,
|
|
427
|
-
});
|
|
281
|
+
b.m("POST").h(headers).b(body);
|
|
282
|
+
return b.build();
|
|
428
283
|
};
|
|
429
284
|
exports.se_ListDataLakeExceptionsCommand = se_ListDataLakeExceptionsCommand;
|
|
430
285
|
const se_ListDataLakesCommand = async (input, context) => {
|
|
431
|
-
const
|
|
286
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
432
287
|
const headers = {};
|
|
433
|
-
|
|
288
|
+
b.bp("/v1/datalakes");
|
|
434
289
|
const query = (0, smithy_client_1.map)({
|
|
435
|
-
|
|
290
|
+
[_r]: [() => input.regions !== void 0, () => (input[_r] || []).map((_entry) => _entry)],
|
|
436
291
|
});
|
|
437
292
|
let body;
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
hostname,
|
|
441
|
-
port,
|
|
442
|
-
method: "GET",
|
|
443
|
-
headers,
|
|
444
|
-
path: resolvedPath,
|
|
445
|
-
query,
|
|
446
|
-
body,
|
|
447
|
-
});
|
|
293
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
294
|
+
return b.build();
|
|
448
295
|
};
|
|
449
296
|
exports.se_ListDataLakesCommand = se_ListDataLakesCommand;
|
|
450
297
|
const se_ListLogSourcesCommand = async (input, context) => {
|
|
451
|
-
const
|
|
298
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
452
299
|
const headers = {
|
|
453
300
|
"content-type": "application/json",
|
|
454
301
|
};
|
|
455
|
-
|
|
302
|
+
b.bp("/v1/datalake/logsources/list");
|
|
456
303
|
let body;
|
|
457
304
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
458
305
|
accounts: (_) => (0, smithy_client_1._json)(_),
|
|
@@ -461,173 +308,115 @@ const se_ListLogSourcesCommand = async (input, context) => {
|
|
|
461
308
|
regions: (_) => (0, smithy_client_1._json)(_),
|
|
462
309
|
sources: (_) => (0, smithy_client_1._json)(_),
|
|
463
310
|
}));
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
hostname,
|
|
467
|
-
port,
|
|
468
|
-
method: "POST",
|
|
469
|
-
headers,
|
|
470
|
-
path: resolvedPath,
|
|
471
|
-
body,
|
|
472
|
-
});
|
|
311
|
+
b.m("POST").h(headers).b(body);
|
|
312
|
+
return b.build();
|
|
473
313
|
};
|
|
474
314
|
exports.se_ListLogSourcesCommand = se_ListLogSourcesCommand;
|
|
475
315
|
const se_ListSubscribersCommand = async (input, context) => {
|
|
476
|
-
const
|
|
316
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
477
317
|
const headers = {};
|
|
478
|
-
|
|
318
|
+
b.bp("/v1/subscribers");
|
|
479
319
|
const query = (0, smithy_client_1.map)({
|
|
480
|
-
|
|
481
|
-
|
|
320
|
+
[_nT]: [, input[_nT]],
|
|
321
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
482
322
|
});
|
|
483
323
|
let body;
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
hostname,
|
|
487
|
-
port,
|
|
488
|
-
method: "GET",
|
|
489
|
-
headers,
|
|
490
|
-
path: resolvedPath,
|
|
491
|
-
query,
|
|
492
|
-
body,
|
|
493
|
-
});
|
|
324
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
325
|
+
return b.build();
|
|
494
326
|
};
|
|
495
327
|
exports.se_ListSubscribersCommand = se_ListSubscribersCommand;
|
|
496
328
|
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
497
|
-
const
|
|
329
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
498
330
|
const headers = {};
|
|
499
|
-
|
|
500
|
-
|
|
331
|
+
b.bp("/v1/tags/{resourceArn}");
|
|
332
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
501
333
|
let body;
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
hostname,
|
|
505
|
-
port,
|
|
506
|
-
method: "GET",
|
|
507
|
-
headers,
|
|
508
|
-
path: resolvedPath,
|
|
509
|
-
body,
|
|
510
|
-
});
|
|
334
|
+
b.m("GET").h(headers).b(body);
|
|
335
|
+
return b.build();
|
|
511
336
|
};
|
|
512
337
|
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
513
338
|
const se_RegisterDataLakeDelegatedAdministratorCommand = async (input, context) => {
|
|
514
|
-
const
|
|
339
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
515
340
|
const headers = {
|
|
516
341
|
"content-type": "application/json",
|
|
517
342
|
};
|
|
518
|
-
|
|
343
|
+
b.bp("/v1/datalake/delegate");
|
|
519
344
|
let body;
|
|
520
345
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
521
346
|
accountId: [],
|
|
522
347
|
}));
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
hostname,
|
|
526
|
-
port,
|
|
527
|
-
method: "POST",
|
|
528
|
-
headers,
|
|
529
|
-
path: resolvedPath,
|
|
530
|
-
body,
|
|
531
|
-
});
|
|
348
|
+
b.m("POST").h(headers).b(body);
|
|
349
|
+
return b.build();
|
|
532
350
|
};
|
|
533
351
|
exports.se_RegisterDataLakeDelegatedAdministratorCommand = se_RegisterDataLakeDelegatedAdministratorCommand;
|
|
534
352
|
const se_TagResourceCommand = async (input, context) => {
|
|
535
|
-
const
|
|
353
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
536
354
|
const headers = {
|
|
537
355
|
"content-type": "application/json",
|
|
538
356
|
};
|
|
539
|
-
|
|
540
|
-
|
|
357
|
+
b.bp("/v1/tags/{resourceArn}");
|
|
358
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
541
359
|
let body;
|
|
542
360
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
543
361
|
tags: (_) => (0, smithy_client_1._json)(_),
|
|
544
362
|
}));
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
hostname,
|
|
548
|
-
port,
|
|
549
|
-
method: "POST",
|
|
550
|
-
headers,
|
|
551
|
-
path: resolvedPath,
|
|
552
|
-
body,
|
|
553
|
-
});
|
|
363
|
+
b.m("POST").h(headers).b(body);
|
|
364
|
+
return b.build();
|
|
554
365
|
};
|
|
555
366
|
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
556
367
|
const se_UntagResourceCommand = async (input, context) => {
|
|
557
|
-
const
|
|
368
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
558
369
|
const headers = {};
|
|
559
|
-
|
|
560
|
-
|
|
370
|
+
b.bp("/v1/tags/{resourceArn}");
|
|
371
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
561
372
|
const query = (0, smithy_client_1.map)({
|
|
562
|
-
|
|
373
|
+
[_tK]: [
|
|
563
374
|
(0, smithy_client_1.expectNonNull)(input.tagKeys, `tagKeys`) != null,
|
|
564
|
-
() => (input
|
|
375
|
+
() => (input[_tK] || []).map((_entry) => _entry),
|
|
565
376
|
],
|
|
566
377
|
});
|
|
567
378
|
let body;
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
hostname,
|
|
571
|
-
port,
|
|
572
|
-
method: "DELETE",
|
|
573
|
-
headers,
|
|
574
|
-
path: resolvedPath,
|
|
575
|
-
query,
|
|
576
|
-
body,
|
|
577
|
-
});
|
|
379
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
380
|
+
return b.build();
|
|
578
381
|
};
|
|
579
382
|
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
580
383
|
const se_UpdateDataLakeCommand = async (input, context) => {
|
|
581
|
-
const
|
|
384
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
582
385
|
const headers = {
|
|
583
386
|
"content-type": "application/json",
|
|
584
387
|
};
|
|
585
|
-
|
|
388
|
+
b.bp("/v1/datalake");
|
|
586
389
|
let body;
|
|
587
390
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
588
391
|
configurations: (_) => (0, smithy_client_1._json)(_),
|
|
589
392
|
}));
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
hostname,
|
|
593
|
-
port,
|
|
594
|
-
method: "PUT",
|
|
595
|
-
headers,
|
|
596
|
-
path: resolvedPath,
|
|
597
|
-
body,
|
|
598
|
-
});
|
|
393
|
+
b.m("PUT").h(headers).b(body);
|
|
394
|
+
return b.build();
|
|
599
395
|
};
|
|
600
396
|
exports.se_UpdateDataLakeCommand = se_UpdateDataLakeCommand;
|
|
601
397
|
const se_UpdateDataLakeExceptionSubscriptionCommand = async (input, context) => {
|
|
602
|
-
const
|
|
398
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
603
399
|
const headers = {
|
|
604
400
|
"content-type": "application/json",
|
|
605
401
|
};
|
|
606
|
-
|
|
402
|
+
b.bp("/v1/datalake/exceptions/subscription");
|
|
607
403
|
let body;
|
|
608
404
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
609
405
|
exceptionTimeToLive: [],
|
|
610
406
|
notificationEndpoint: [],
|
|
611
407
|
subscriptionProtocol: [],
|
|
612
408
|
}));
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
hostname,
|
|
616
|
-
port,
|
|
617
|
-
method: "PUT",
|
|
618
|
-
headers,
|
|
619
|
-
path: resolvedPath,
|
|
620
|
-
body,
|
|
621
|
-
});
|
|
409
|
+
b.m("PUT").h(headers).b(body);
|
|
410
|
+
return b.build();
|
|
622
411
|
};
|
|
623
412
|
exports.se_UpdateDataLakeExceptionSubscriptionCommand = se_UpdateDataLakeExceptionSubscriptionCommand;
|
|
624
413
|
const se_UpdateSubscriberCommand = async (input, context) => {
|
|
625
|
-
const
|
|
414
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
626
415
|
const headers = {
|
|
627
416
|
"content-type": "application/json",
|
|
628
417
|
};
|
|
629
|
-
|
|
630
|
-
|
|
418
|
+
b.bp("/v1/subscribers/{subscriberId}");
|
|
419
|
+
b.p("subscriberId", () => input.subscriberId, "{subscriberId}", false);
|
|
631
420
|
let body;
|
|
632
421
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
633
422
|
sources: (_) => (0, smithy_client_1._json)(_),
|
|
@@ -635,38 +424,23 @@ const se_UpdateSubscriberCommand = async (input, context) => {
|
|
|
635
424
|
subscriberIdentity: (_) => (0, smithy_client_1._json)(_),
|
|
636
425
|
subscriberName: [],
|
|
637
426
|
}));
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
hostname,
|
|
641
|
-
port,
|
|
642
|
-
method: "PUT",
|
|
643
|
-
headers,
|
|
644
|
-
path: resolvedPath,
|
|
645
|
-
body,
|
|
646
|
-
});
|
|
427
|
+
b.m("PUT").h(headers).b(body);
|
|
428
|
+
return b.build();
|
|
647
429
|
};
|
|
648
430
|
exports.se_UpdateSubscriberCommand = se_UpdateSubscriberCommand;
|
|
649
431
|
const se_UpdateSubscriberNotificationCommand = async (input, context) => {
|
|
650
|
-
const
|
|
432
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
651
433
|
const headers = {
|
|
652
434
|
"content-type": "application/json",
|
|
653
435
|
};
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "subscriberId", () => input.subscriberId, "{subscriberId}", false);
|
|
436
|
+
b.bp("/v1/subscribers/{subscriberId}/notification");
|
|
437
|
+
b.p("subscriberId", () => input.subscriberId, "{subscriberId}", false);
|
|
657
438
|
let body;
|
|
658
439
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
659
440
|
configuration: (_) => (0, smithy_client_1._json)(_),
|
|
660
441
|
}));
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
hostname,
|
|
664
|
-
port,
|
|
665
|
-
method: "PUT",
|
|
666
|
-
headers,
|
|
667
|
-
path: resolvedPath,
|
|
668
|
-
body,
|
|
669
|
-
});
|
|
442
|
+
b.m("PUT").h(headers).b(body);
|
|
443
|
+
return b.build();
|
|
670
444
|
};
|
|
671
445
|
exports.se_UpdateSubscriberNotificationCommand = se_UpdateSubscriberNotificationCommand;
|
|
672
446
|
const de_CreateAwsLogSourceCommand = async (output, context) => {
|
|
@@ -2216,10 +1990,7 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
2216
1990
|
};
|
|
2217
1991
|
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
2218
1992
|
const contents = (0, smithy_client_1.map)({
|
|
2219
|
-
|
|
2220
|
-
() => void 0 !== parsedOutput.headers["retry-after"],
|
|
2221
|
-
() => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers["retry-after"]),
|
|
2222
|
-
],
|
|
1993
|
+
[_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers[_ra])],
|
|
2223
1994
|
});
|
|
2224
1995
|
const data = parsedOutput.body;
|
|
2225
1996
|
const doc = (0, smithy_client_1.take)(data, {
|
|
@@ -2289,6 +2060,13 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
2289
2060
|
value !== "" &&
|
|
2290
2061
|
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
2291
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";
|
|
2292
2070
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
2293
2071
|
if (encoded.length) {
|
|
2294
2072
|
return JSON.parse(encoded);
|