@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.
@@ -1,33 +1,26 @@
1
- import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
2
- import { _json, collectBody, decorateServiceException as __decorateServiceException, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, resolvedPath as __resolvedPath, strictParseInt32 as __strictParseInt32, take, withBaseException, } from "@smithy/smithy-client";
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
6
+ const b = rb(input, context);
7
7
  const headers = {
8
8
  "content-type": "application/json",
9
9
  };
10
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/datalake/logsources/aws";
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
- return new __HttpRequest({
16
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
19
+ const b = rb(input, context);
27
20
  const headers = {
28
21
  "content-type": "application/json",
29
22
  };
30
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/datalake/logsources/custom";
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
- return new __HttpRequest({
39
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
35
+ const b = rb(input, context);
50
36
  const headers = {
51
37
  "content-type": "application/json",
52
38
  };
53
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/datalake";
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
- return new __HttpRequest({
61
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
50
+ const b = rb(input, context);
72
51
  const headers = {
73
52
  "content-type": "application/json",
74
53
  };
75
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/datalake/exceptions/subscription";
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
- return new __HttpRequest({
83
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
65
+ const b = rb(input, context);
94
66
  const headers = {
95
67
  "content-type": "application/json",
96
68
  };
97
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/datalake/organization/configuration";
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
- return new __HttpRequest({
103
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
78
+ const b = rb(input, context);
114
79
  const headers = {
115
80
  "content-type": "application/json",
116
81
  };
117
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/subscribers";
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
- return new __HttpRequest({
128
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
96
+ const b = rb(input, context);
139
97
  const headers = {
140
98
  "content-type": "application/json",
141
99
  };
142
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
143
- "/v1/subscribers/{subscriberId}/notification";
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
- return new __HttpRequest({
150
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
110
+ const b = rb(input, context);
161
111
  const headers = {
162
112
  "content-type": "application/json",
163
113
  };
164
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/datalake/logsources/aws/delete";
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
- return new __HttpRequest({
170
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
123
+ const b = rb(input, context);
181
124
  const headers = {};
182
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
183
- "/v1/datalake/logsources/custom/{sourceName}";
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
- sourceVersion: [, input.sourceVersion],
128
+ [_sV]: [, input[_sV]],
187
129
  });
188
130
  let body;
189
- return new __HttpRequest({
190
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
135
+ const b = rb(input, context);
202
136
  const headers = {
203
137
  "content-type": "application/json",
204
138
  };
205
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/datalake/delete";
139
+ b.bp("/v1/datalake/delete");
206
140
  let body;
207
141
  body = JSON.stringify(take(input, {
208
142
  regions: (_) => _json(_),
209
143
  }));
210
- return new __HttpRequest({
211
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
148
+ const b = rb(input, context);
222
149
  const headers = {
223
150
  "content-type": "application/json",
224
151
  };
225
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/datalake/exceptions/subscription";
152
+ b.bp("/v1/datalake/exceptions/subscription");
226
153
  let body;
227
154
  body = "";
228
- return new __HttpRequest({
229
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
159
+ const b = rb(input, context);
240
160
  const headers = {
241
161
  "content-type": "application/json",
242
162
  };
243
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
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
- return new __HttpRequest({
250
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
172
+ const b = rb(input, context);
261
173
  const headers = {};
262
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/subscribers/{subscriberId}";
263
- resolvedPath = __resolvedPath(resolvedPath, input, "subscriberId", () => input.subscriberId, "{subscriberId}", false);
174
+ b.bp("/v1/subscribers/{subscriberId}");
175
+ b.p("subscriberId", () => input.subscriberId, "{subscriberId}", false);
264
176
  let body;
265
- return new __HttpRequest({
266
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
181
+ const b = rb(input, context);
277
182
  const headers = {};
278
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
279
- "/v1/subscribers/{subscriberId}/notification";
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
- return new __HttpRequest({
283
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
190
+ const b = rb(input, context);
294
191
  const headers = {
295
192
  "content-type": "application/json",
296
193
  };
297
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/datalake/delegate";
194
+ b.bp("/v1/datalake/delegate");
298
195
  let body;
299
196
  body = "";
300
- return new __HttpRequest({
301
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
201
+ const b = rb(input, context);
312
202
  const headers = {
313
203
  "content-type": "application/json",
314
204
  };
315
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/datalake/exceptions/subscription";
205
+ b.bp("/v1/datalake/exceptions/subscription");
316
206
  let body;
317
207
  body = "";
318
- return new __HttpRequest({
319
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
212
+ const b = rb(input, context);
330
213
  const headers = {
331
214
  "content-type": "application/json",
332
215
  };
333
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/datalake/organization/configuration";
216
+ b.bp("/v1/datalake/organization/configuration");
334
217
  let body;
335
218
  body = "";
336
- return new __HttpRequest({
337
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
223
+ const b = rb(input, context);
348
224
  const headers = {
349
225
  "content-type": "application/json",
350
226
  };
351
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/datalake/sources";
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
- return new __HttpRequest({
359
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
238
+ const b = rb(input, context);
370
239
  const headers = {};
371
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/subscribers/{subscriberId}";
372
- resolvedPath = __resolvedPath(resolvedPath, input, "subscriberId", () => input.subscriberId, "{subscriberId}", false);
240
+ b.bp("/v1/subscribers/{subscriberId}");
241
+ b.p("subscriberId", () => input.subscriberId, "{subscriberId}", false);
373
242
  let body;
374
- return new __HttpRequest({
375
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
247
+ const b = rb(input, context);
386
248
  const headers = {
387
249
  "content-type": "application/json",
388
250
  };
389
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/datalake/exceptions";
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
- return new __HttpRequest({
397
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
262
+ const b = rb(input, context);
408
263
  const headers = {};
409
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/datalakes";
264
+ b.bp("/v1/datalakes");
410
265
  const query = map({
411
- regions: [() => input.regions !== void 0, () => (input.regions || []).map((_entry) => _entry)],
266
+ [_r]: [() => input.regions !== void 0, () => (input[_r] || []).map((_entry) => _entry)],
412
267
  });
413
268
  let body;
414
- return new __HttpRequest({
415
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
273
+ const b = rb(input, context);
427
274
  const headers = {
428
275
  "content-type": "application/json",
429
276
  };
430
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/datalake/logsources/list";
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
- return new __HttpRequest({
440
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
290
+ const b = rb(input, context);
451
291
  const headers = {};
452
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/subscribers";
292
+ b.bp("/v1/subscribers");
453
293
  const query = map({
454
- nextToken: [, input.nextToken],
455
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
294
+ [_nT]: [, input[_nT]],
295
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
456
296
  });
457
297
  let body;
458
- return new __HttpRequest({
459
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
302
+ const b = rb(input, context);
471
303
  const headers = {};
472
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/tags/{resourceArn}";
473
- resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
304
+ b.bp("/v1/tags/{resourceArn}");
305
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
474
306
  let body;
475
- return new __HttpRequest({
476
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
311
+ const b = rb(input, context);
487
312
  const headers = {
488
313
  "content-type": "application/json",
489
314
  };
490
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/datalake/delegate";
315
+ b.bp("/v1/datalake/delegate");
491
316
  let body;
492
317
  body = JSON.stringify(take(input, {
493
318
  accountId: [],
494
319
  }));
495
- return new __HttpRequest({
496
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
324
+ const b = rb(input, context);
507
325
  const headers = {
508
326
  "content-type": "application/json",
509
327
  };
510
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/tags/{resourceArn}";
511
- resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
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
- return new __HttpRequest({
517
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
338
+ const b = rb(input, context);
528
339
  const headers = {};
529
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/tags/{resourceArn}";
530
- resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
340
+ b.bp("/v1/tags/{resourceArn}");
341
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
531
342
  const query = map({
532
- tagKeys: [
343
+ [_tK]: [
533
344
  __expectNonNull(input.tagKeys, `tagKeys`) != null,
534
- () => (input.tagKeys || []).map((_entry) => _entry),
345
+ () => (input[_tK] || []).map((_entry) => _entry),
535
346
  ],
536
347
  });
537
348
  let body;
538
- return new __HttpRequest({
539
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
353
+ const b = rb(input, context);
551
354
  const headers = {
552
355
  "content-type": "application/json",
553
356
  };
554
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/datalake";
357
+ b.bp("/v1/datalake");
555
358
  let body;
556
359
  body = JSON.stringify(take(input, {
557
360
  configurations: (_) => _json(_),
558
361
  }));
559
- return new __HttpRequest({
560
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
366
+ const b = rb(input, context);
571
367
  const headers = {
572
368
  "content-type": "application/json",
573
369
  };
574
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/datalake/exceptions/subscription";
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
- return new __HttpRequest({
582
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
381
+ const b = rb(input, context);
593
382
  const headers = {
594
383
  "content-type": "application/json",
595
384
  };
596
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/subscribers/{subscriberId}";
597
- resolvedPath = __resolvedPath(resolvedPath, input, "subscriberId", () => input.subscriberId, "{subscriberId}", false);
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
- return new __HttpRequest({
606
- protocol,
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 { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
398
+ const b = rb(input, context);
617
399
  const headers = {
618
400
  "content-type": "application/json",
619
401
  };
620
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
621
- "/v1/subscribers/{subscriberId}/notification";
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
- return new __HttpRequest({
628
- protocol,
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
- retryAfterSeconds: [
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);