@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.
@@ -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 protocol_http_1 = require("@smithy/protocol-http");
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
10
+ const b = (0, core_1.requestBuilder)(input, context);
11
11
  const headers = {
12
12
  "content-type": "application/json",
13
13
  };
14
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/datalake/logsources/aws";
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
- return new protocol_http_1.HttpRequest({
20
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
24
+ const b = (0, core_1.requestBuilder)(input, context);
32
25
  const headers = {
33
26
  "content-type": "application/json",
34
27
  };
35
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/datalake/logsources/custom";
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
- return new protocol_http_1.HttpRequest({
44
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
41
+ const b = (0, core_1.requestBuilder)(input, context);
56
42
  const headers = {
57
43
  "content-type": "application/json",
58
44
  };
59
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/datalake";
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
- return new protocol_http_1.HttpRequest({
67
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
57
+ const b = (0, core_1.requestBuilder)(input, context);
79
58
  const headers = {
80
59
  "content-type": "application/json",
81
60
  };
82
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/datalake/exceptions/subscription";
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
- return new protocol_http_1.HttpRequest({
90
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
73
+ const b = (0, core_1.requestBuilder)(input, context);
102
74
  const headers = {
103
75
  "content-type": "application/json",
104
76
  };
105
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/datalake/organization/configuration";
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
- return new protocol_http_1.HttpRequest({
111
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
87
+ const b = (0, core_1.requestBuilder)(input, context);
123
88
  const headers = {
124
89
  "content-type": "application/json",
125
90
  };
126
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/subscribers";
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
- return new protocol_http_1.HttpRequest({
137
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
106
+ const b = (0, core_1.requestBuilder)(input, context);
149
107
  const headers = {
150
108
  "content-type": "application/json",
151
109
  };
152
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
153
- "/v1/subscribers/{subscriberId}/notification";
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
- return new protocol_http_1.HttpRequest({
160
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
121
+ const b = (0, core_1.requestBuilder)(input, context);
172
122
  const headers = {
173
123
  "content-type": "application/json",
174
124
  };
175
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/datalake/logsources/aws/delete";
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
- return new protocol_http_1.HttpRequest({
181
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
135
+ const b = (0, core_1.requestBuilder)(input, context);
193
136
  const headers = {};
194
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
195
- "/v1/datalake/logsources/custom/{sourceName}";
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
- sourceVersion: [, input.sourceVersion],
140
+ [_sV]: [, input[_sV]],
199
141
  });
200
142
  let body;
201
- return new protocol_http_1.HttpRequest({
202
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
148
+ const b = (0, core_1.requestBuilder)(input, context);
215
149
  const headers = {
216
150
  "content-type": "application/json",
217
151
  };
218
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/datalake/delete";
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
- return new protocol_http_1.HttpRequest({
224
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
162
+ const b = (0, core_1.requestBuilder)(input, context);
236
163
  const headers = {
237
164
  "content-type": "application/json",
238
165
  };
239
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/datalake/exceptions/subscription";
166
+ b.bp("/v1/datalake/exceptions/subscription");
240
167
  let body;
241
168
  body = "";
242
- return new protocol_http_1.HttpRequest({
243
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
174
+ const b = (0, core_1.requestBuilder)(input, context);
255
175
  const headers = {
256
176
  "content-type": "application/json",
257
177
  };
258
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
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
- return new protocol_http_1.HttpRequest({
265
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
188
+ const b = (0, core_1.requestBuilder)(input, context);
277
189
  const headers = {};
278
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/subscribers/{subscriberId}";
279
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "subscriberId", () => input.subscriberId, "{subscriberId}", false);
190
+ b.bp("/v1/subscribers/{subscriberId}");
191
+ b.p("subscriberId", () => input.subscriberId, "{subscriberId}", false);
280
192
  let body;
281
- return new protocol_http_1.HttpRequest({
282
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
198
+ const b = (0, core_1.requestBuilder)(input, context);
294
199
  const headers = {};
295
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
296
- "/v1/subscribers/{subscriberId}/notification";
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
- return new protocol_http_1.HttpRequest({
300
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
208
+ const b = (0, core_1.requestBuilder)(input, context);
312
209
  const headers = {
313
210
  "content-type": "application/json",
314
211
  };
315
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/datalake/delegate";
212
+ b.bp("/v1/datalake/delegate");
316
213
  let body;
317
214
  body = "";
318
- return new protocol_http_1.HttpRequest({
319
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
220
+ const b = (0, core_1.requestBuilder)(input, context);
331
221
  const headers = {
332
222
  "content-type": "application/json",
333
223
  };
334
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/datalake/exceptions/subscription";
224
+ b.bp("/v1/datalake/exceptions/subscription");
335
225
  let body;
336
226
  body = "";
337
- return new protocol_http_1.HttpRequest({
338
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
232
+ const b = (0, core_1.requestBuilder)(input, context);
350
233
  const headers = {
351
234
  "content-type": "application/json",
352
235
  };
353
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/datalake/organization/configuration";
236
+ b.bp("/v1/datalake/organization/configuration");
354
237
  let body;
355
238
  body = "";
356
- return new protocol_http_1.HttpRequest({
357
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
244
+ const b = (0, core_1.requestBuilder)(input, context);
369
245
  const headers = {
370
246
  "content-type": "application/json",
371
247
  };
372
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/datalake/sources";
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
- return new protocol_http_1.HttpRequest({
380
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
260
+ const b = (0, core_1.requestBuilder)(input, context);
392
261
  const headers = {};
393
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/subscribers/{subscriberId}";
394
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "subscriberId", () => input.subscriberId, "{subscriberId}", false);
262
+ b.bp("/v1/subscribers/{subscriberId}");
263
+ b.p("subscriberId", () => input.subscriberId, "{subscriberId}", false);
395
264
  let body;
396
- return new protocol_http_1.HttpRequest({
397
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
270
+ const b = (0, core_1.requestBuilder)(input, context);
409
271
  const headers = {
410
272
  "content-type": "application/json",
411
273
  };
412
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/datalake/exceptions";
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
- return new protocol_http_1.HttpRequest({
420
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
286
+ const b = (0, core_1.requestBuilder)(input, context);
432
287
  const headers = {};
433
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/datalakes";
288
+ b.bp("/v1/datalakes");
434
289
  const query = (0, smithy_client_1.map)({
435
- regions: [() => input.regions !== void 0, () => (input.regions || []).map((_entry) => _entry)],
290
+ [_r]: [() => input.regions !== void 0, () => (input[_r] || []).map((_entry) => _entry)],
436
291
  });
437
292
  let body;
438
- return new protocol_http_1.HttpRequest({
439
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
298
+ const b = (0, core_1.requestBuilder)(input, context);
452
299
  const headers = {
453
300
  "content-type": "application/json",
454
301
  };
455
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/datalake/logsources/list";
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
- return new protocol_http_1.HttpRequest({
465
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
316
+ const b = (0, core_1.requestBuilder)(input, context);
477
317
  const headers = {};
478
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/subscribers";
318
+ b.bp("/v1/subscribers");
479
319
  const query = (0, smithy_client_1.map)({
480
- nextToken: [, input.nextToken],
481
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
320
+ [_nT]: [, input[_nT]],
321
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
482
322
  });
483
323
  let body;
484
- return new protocol_http_1.HttpRequest({
485
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
329
+ const b = (0, core_1.requestBuilder)(input, context);
498
330
  const headers = {};
499
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/tags/{resourceArn}";
500
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
331
+ b.bp("/v1/tags/{resourceArn}");
332
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
501
333
  let body;
502
- return new protocol_http_1.HttpRequest({
503
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
339
+ const b = (0, core_1.requestBuilder)(input, context);
515
340
  const headers = {
516
341
  "content-type": "application/json",
517
342
  };
518
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/datalake/delegate";
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
- return new protocol_http_1.HttpRequest({
524
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
353
+ const b = (0, core_1.requestBuilder)(input, context);
536
354
  const headers = {
537
355
  "content-type": "application/json",
538
356
  };
539
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/tags/{resourceArn}";
540
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
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
- return new protocol_http_1.HttpRequest({
546
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
368
+ const b = (0, core_1.requestBuilder)(input, context);
558
369
  const headers = {};
559
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/tags/{resourceArn}";
560
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
370
+ b.bp("/v1/tags/{resourceArn}");
371
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
561
372
  const query = (0, smithy_client_1.map)({
562
- tagKeys: [
373
+ [_tK]: [
563
374
  (0, smithy_client_1.expectNonNull)(input.tagKeys, `tagKeys`) != null,
564
- () => (input.tagKeys || []).map((_entry) => _entry),
375
+ () => (input[_tK] || []).map((_entry) => _entry),
565
376
  ],
566
377
  });
567
378
  let body;
568
- return new protocol_http_1.HttpRequest({
569
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
384
+ const b = (0, core_1.requestBuilder)(input, context);
582
385
  const headers = {
583
386
  "content-type": "application/json",
584
387
  };
585
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/datalake";
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
- return new protocol_http_1.HttpRequest({
591
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
398
+ const b = (0, core_1.requestBuilder)(input, context);
603
399
  const headers = {
604
400
  "content-type": "application/json",
605
401
  };
606
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/datalake/exceptions/subscription";
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
- return new protocol_http_1.HttpRequest({
614
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
414
+ const b = (0, core_1.requestBuilder)(input, context);
626
415
  const headers = {
627
416
  "content-type": "application/json",
628
417
  };
629
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/subscribers/{subscriberId}";
630
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "subscriberId", () => input.subscriberId, "{subscriberId}", false);
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
- return new protocol_http_1.HttpRequest({
639
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
432
+ const b = (0, core_1.requestBuilder)(input, context);
651
433
  const headers = {
652
434
  "content-type": "application/json",
653
435
  };
654
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
655
- "/v1/subscribers/{subscriberId}/notification";
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
- return new protocol_http_1.HttpRequest({
662
- protocol,
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
- retryAfterSeconds: [
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);