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