@aws-sdk/client-emr-containers 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,25 @@
1
1
  import { awsExpectUnion as __expectUnion } from "@aws-sdk/core";
2
- import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
3
- import { _json, collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, resolvedPath as __resolvedPath, take, withBaseException, } from "@smithy/smithy-client";
2
+ import { requestBuilder as rb } from "@smithy/core";
3
+ import { _json, collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, take, withBaseException, } from "@smithy/smithy-client";
4
4
  import { v4 as generateIdempotencyToken } from "uuid";
5
5
  import { EMRContainersServiceException as __BaseException } from "../models/EMRContainersServiceException";
6
6
  import { InternalServerException, RequestThrottledException, ResourceNotFoundException, ValidationException, } from "../models/models_0";
7
7
  export const se_CancelJobRunCommand = async (input, context) => {
8
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
8
+ const b = rb(input, context);
9
9
  const headers = {};
10
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
11
- "/virtualclusters/{virtualClusterId}/jobruns/{id}";
12
- resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id, "{id}", false);
13
- resolvedPath = __resolvedPath(resolvedPath, input, "virtualClusterId", () => input.virtualClusterId, "{virtualClusterId}", false);
10
+ b.bp("/virtualclusters/{virtualClusterId}/jobruns/{id}");
11
+ b.p("id", () => input.id, "{id}", false);
12
+ b.p("virtualClusterId", () => input.virtualClusterId, "{virtualClusterId}", false);
14
13
  let body;
15
- return new __HttpRequest({
16
- protocol,
17
- hostname,
18
- port,
19
- method: "DELETE",
20
- headers,
21
- path: resolvedPath,
22
- body,
23
- });
14
+ b.m("DELETE").h(headers).b(body);
15
+ return b.build();
24
16
  };
25
17
  export const se_CreateJobTemplateCommand = async (input, context) => {
26
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
18
+ const b = rb(input, context);
27
19
  const headers = {
28
20
  "content-type": "application/json",
29
21
  };
30
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/jobtemplates";
22
+ b.bp("/jobtemplates");
31
23
  let body;
32
24
  body = JSON.stringify(take(input, {
33
25
  clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
@@ -36,24 +28,16 @@ export const se_CreateJobTemplateCommand = async (input, context) => {
36
28
  name: [],
37
29
  tags: (_) => _json(_),
38
30
  }));
39
- return new __HttpRequest({
40
- protocol,
41
- hostname,
42
- port,
43
- method: "POST",
44
- headers,
45
- path: resolvedPath,
46
- body,
47
- });
31
+ b.m("POST").h(headers).b(body);
32
+ return b.build();
48
33
  };
49
34
  export const se_CreateManagedEndpointCommand = async (input, context) => {
50
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
35
+ const b = rb(input, context);
51
36
  const headers = {
52
37
  "content-type": "application/json",
53
38
  };
54
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
55
- "/virtualclusters/{virtualClusterId}/endpoints";
56
- resolvedPath = __resolvedPath(resolvedPath, input, "virtualClusterId", () => input.virtualClusterId, "{virtualClusterId}", false);
39
+ b.bp("/virtualclusters/{virtualClusterId}/endpoints");
40
+ b.p("virtualClusterId", () => input.virtualClusterId, "{virtualClusterId}", false);
57
41
  let body;
58
42
  body = JSON.stringify(take(input, {
59
43
  certificateArn: [],
@@ -65,22 +49,15 @@ export const se_CreateManagedEndpointCommand = async (input, context) => {
65
49
  tags: (_) => _json(_),
66
50
  type: [],
67
51
  }));
68
- return new __HttpRequest({
69
- protocol,
70
- hostname,
71
- port,
72
- method: "POST",
73
- headers,
74
- path: resolvedPath,
75
- body,
76
- });
52
+ b.m("POST").h(headers).b(body);
53
+ return b.build();
77
54
  };
78
55
  export const se_CreateVirtualClusterCommand = async (input, context) => {
79
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
56
+ const b = rb(input, context);
80
57
  const headers = {
81
58
  "content-type": "application/json",
82
59
  };
83
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/virtualclusters";
60
+ b.bp("/virtualclusters");
84
61
  let body;
85
62
  body = JSON.stringify(take(input, {
86
63
  clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
@@ -88,143 +65,83 @@ export const se_CreateVirtualClusterCommand = async (input, context) => {
88
65
  name: [],
89
66
  tags: (_) => _json(_),
90
67
  }));
91
- return new __HttpRequest({
92
- protocol,
93
- hostname,
94
- port,
95
- method: "POST",
96
- headers,
97
- path: resolvedPath,
98
- body,
99
- });
68
+ b.m("POST").h(headers).b(body);
69
+ return b.build();
100
70
  };
101
71
  export const se_DeleteJobTemplateCommand = async (input, context) => {
102
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
72
+ const b = rb(input, context);
103
73
  const headers = {};
104
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/jobtemplates/{id}";
105
- resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id, "{id}", false);
74
+ b.bp("/jobtemplates/{id}");
75
+ b.p("id", () => input.id, "{id}", false);
106
76
  let body;
107
- return new __HttpRequest({
108
- protocol,
109
- hostname,
110
- port,
111
- method: "DELETE",
112
- headers,
113
- path: resolvedPath,
114
- body,
115
- });
77
+ b.m("DELETE").h(headers).b(body);
78
+ return b.build();
116
79
  };
117
80
  export const se_DeleteManagedEndpointCommand = async (input, context) => {
118
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
81
+ const b = rb(input, context);
119
82
  const headers = {};
120
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
121
- "/virtualclusters/{virtualClusterId}/endpoints/{id}";
122
- resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id, "{id}", false);
123
- resolvedPath = __resolvedPath(resolvedPath, input, "virtualClusterId", () => input.virtualClusterId, "{virtualClusterId}", false);
83
+ b.bp("/virtualclusters/{virtualClusterId}/endpoints/{id}");
84
+ b.p("id", () => input.id, "{id}", false);
85
+ b.p("virtualClusterId", () => input.virtualClusterId, "{virtualClusterId}", false);
124
86
  let body;
125
- return new __HttpRequest({
126
- protocol,
127
- hostname,
128
- port,
129
- method: "DELETE",
130
- headers,
131
- path: resolvedPath,
132
- body,
133
- });
87
+ b.m("DELETE").h(headers).b(body);
88
+ return b.build();
134
89
  };
135
90
  export const se_DeleteVirtualClusterCommand = async (input, context) => {
136
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
91
+ const b = rb(input, context);
137
92
  const headers = {};
138
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/virtualclusters/{id}";
139
- resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id, "{id}", false);
93
+ b.bp("/virtualclusters/{id}");
94
+ b.p("id", () => input.id, "{id}", false);
140
95
  let body;
141
- return new __HttpRequest({
142
- protocol,
143
- hostname,
144
- port,
145
- method: "DELETE",
146
- headers,
147
- path: resolvedPath,
148
- body,
149
- });
96
+ b.m("DELETE").h(headers).b(body);
97
+ return b.build();
150
98
  };
151
99
  export const se_DescribeJobRunCommand = async (input, context) => {
152
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
100
+ const b = rb(input, context);
153
101
  const headers = {};
154
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
155
- "/virtualclusters/{virtualClusterId}/jobruns/{id}";
156
- resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id, "{id}", false);
157
- resolvedPath = __resolvedPath(resolvedPath, input, "virtualClusterId", () => input.virtualClusterId, "{virtualClusterId}", false);
102
+ b.bp("/virtualclusters/{virtualClusterId}/jobruns/{id}");
103
+ b.p("id", () => input.id, "{id}", false);
104
+ b.p("virtualClusterId", () => input.virtualClusterId, "{virtualClusterId}", false);
158
105
  let body;
159
- return new __HttpRequest({
160
- protocol,
161
- hostname,
162
- port,
163
- method: "GET",
164
- headers,
165
- path: resolvedPath,
166
- body,
167
- });
106
+ b.m("GET").h(headers).b(body);
107
+ return b.build();
168
108
  };
169
109
  export const se_DescribeJobTemplateCommand = async (input, context) => {
170
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
110
+ const b = rb(input, context);
171
111
  const headers = {};
172
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/jobtemplates/{id}";
173
- resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id, "{id}", false);
112
+ b.bp("/jobtemplates/{id}");
113
+ b.p("id", () => input.id, "{id}", false);
174
114
  let body;
175
- return new __HttpRequest({
176
- protocol,
177
- hostname,
178
- port,
179
- method: "GET",
180
- headers,
181
- path: resolvedPath,
182
- body,
183
- });
115
+ b.m("GET").h(headers).b(body);
116
+ return b.build();
184
117
  };
185
118
  export const se_DescribeManagedEndpointCommand = async (input, context) => {
186
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
119
+ const b = rb(input, context);
187
120
  const headers = {};
188
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
189
- "/virtualclusters/{virtualClusterId}/endpoints/{id}";
190
- resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id, "{id}", false);
191
- resolvedPath = __resolvedPath(resolvedPath, input, "virtualClusterId", () => input.virtualClusterId, "{virtualClusterId}", false);
121
+ b.bp("/virtualclusters/{virtualClusterId}/endpoints/{id}");
122
+ b.p("id", () => input.id, "{id}", false);
123
+ b.p("virtualClusterId", () => input.virtualClusterId, "{virtualClusterId}", false);
192
124
  let body;
193
- return new __HttpRequest({
194
- protocol,
195
- hostname,
196
- port,
197
- method: "GET",
198
- headers,
199
- path: resolvedPath,
200
- body,
201
- });
125
+ b.m("GET").h(headers).b(body);
126
+ return b.build();
202
127
  };
203
128
  export const se_DescribeVirtualClusterCommand = async (input, context) => {
204
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
129
+ const b = rb(input, context);
205
130
  const headers = {};
206
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/virtualclusters/{id}";
207
- resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id, "{id}", false);
131
+ b.bp("/virtualclusters/{id}");
132
+ b.p("id", () => input.id, "{id}", false);
208
133
  let body;
209
- return new __HttpRequest({
210
- protocol,
211
- hostname,
212
- port,
213
- method: "GET",
214
- headers,
215
- path: resolvedPath,
216
- body,
217
- });
134
+ b.m("GET").h(headers).b(body);
135
+ return b.build();
218
136
  };
219
137
  export const se_GetManagedEndpointSessionCredentialsCommand = async (input, context) => {
220
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
138
+ const b = rb(input, context);
221
139
  const headers = {
222
140
  "content-type": "application/json",
223
141
  };
224
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
225
- "/virtualclusters/{virtualClusterIdentifier}/endpoints/{endpointIdentifier}/credentials";
226
- resolvedPath = __resolvedPath(resolvedPath, input, "endpointIdentifier", () => input.endpointIdentifier, "{endpointIdentifier}", false);
227
- resolvedPath = __resolvedPath(resolvedPath, input, "virtualClusterIdentifier", () => input.virtualClusterIdentifier, "{virtualClusterIdentifier}", false);
142
+ b.bp("/virtualclusters/{virtualClusterIdentifier}/endpoints/{endpointIdentifier}/credentials");
143
+ b.p("endpointIdentifier", () => input.endpointIdentifier, "{endpointIdentifier}", false);
144
+ b.p("virtualClusterIdentifier", () => input.virtualClusterIdentifier, "{virtualClusterIdentifier}", false);
228
145
  let body;
229
146
  body = JSON.stringify(take(input, {
230
147
  clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
@@ -233,163 +150,90 @@ export const se_GetManagedEndpointSessionCredentialsCommand = async (input, cont
233
150
  executionRoleArn: [],
234
151
  logContext: [],
235
152
  }));
236
- return new __HttpRequest({
237
- protocol,
238
- hostname,
239
- port,
240
- method: "POST",
241
- headers,
242
- path: resolvedPath,
243
- body,
244
- });
153
+ b.m("POST").h(headers).b(body);
154
+ return b.build();
245
155
  };
246
156
  export const se_ListJobRunsCommand = async (input, context) => {
247
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
157
+ const b = rb(input, context);
248
158
  const headers = {};
249
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
250
- "/virtualclusters/{virtualClusterId}/jobruns";
251
- resolvedPath = __resolvedPath(resolvedPath, input, "virtualClusterId", () => input.virtualClusterId, "{virtualClusterId}", false);
159
+ b.bp("/virtualclusters/{virtualClusterId}/jobruns");
160
+ b.p("virtualClusterId", () => input.virtualClusterId, "{virtualClusterId}", false);
252
161
  const query = map({
253
- createdBefore: [
254
- () => input.createdBefore !== void 0,
255
- () => (input.createdBefore.toISOString().split(".")[0] + "Z").toString(),
256
- ],
257
- createdAfter: [
258
- () => input.createdAfter !== void 0,
259
- () => (input.createdAfter.toISOString().split(".")[0] + "Z").toString(),
260
- ],
261
- name: [, input.name],
262
- states: [() => input.states !== void 0, () => (input.states || []).map((_entry) => _entry)],
263
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
264
- nextToken: [, input.nextToken],
162
+ [_cB]: [() => input.createdBefore !== void 0, () => (input[_cB].toISOString().split(".")[0] + "Z").toString()],
163
+ [_cA]: [() => input.createdAfter !== void 0, () => (input[_cA].toISOString().split(".")[0] + "Z").toString()],
164
+ [_n]: [, input[_n]],
165
+ [_s]: [() => input.states !== void 0, () => (input[_s] || []).map((_entry) => _entry)],
166
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
167
+ [_nT]: [, input[_nT]],
265
168
  });
266
169
  let body;
267
- return new __HttpRequest({
268
- protocol,
269
- hostname,
270
- port,
271
- method: "GET",
272
- headers,
273
- path: resolvedPath,
274
- query,
275
- body,
276
- });
170
+ b.m("GET").h(headers).q(query).b(body);
171
+ return b.build();
277
172
  };
278
173
  export const se_ListJobTemplatesCommand = async (input, context) => {
279
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
174
+ const b = rb(input, context);
280
175
  const headers = {};
281
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/jobtemplates";
176
+ b.bp("/jobtemplates");
282
177
  const query = map({
283
- createdAfter: [
284
- () => input.createdAfter !== void 0,
285
- () => (input.createdAfter.toISOString().split(".")[0] + "Z").toString(),
286
- ],
287
- createdBefore: [
288
- () => input.createdBefore !== void 0,
289
- () => (input.createdBefore.toISOString().split(".")[0] + "Z").toString(),
290
- ],
291
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
292
- nextToken: [, input.nextToken],
178
+ [_cA]: [() => input.createdAfter !== void 0, () => (input[_cA].toISOString().split(".")[0] + "Z").toString()],
179
+ [_cB]: [() => input.createdBefore !== void 0, () => (input[_cB].toISOString().split(".")[0] + "Z").toString()],
180
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
181
+ [_nT]: [, input[_nT]],
293
182
  });
294
183
  let body;
295
- return new __HttpRequest({
296
- protocol,
297
- hostname,
298
- port,
299
- method: "GET",
300
- headers,
301
- path: resolvedPath,
302
- query,
303
- body,
304
- });
184
+ b.m("GET").h(headers).q(query).b(body);
185
+ return b.build();
305
186
  };
306
187
  export const se_ListManagedEndpointsCommand = async (input, context) => {
307
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
188
+ const b = rb(input, context);
308
189
  const headers = {};
309
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
310
- "/virtualclusters/{virtualClusterId}/endpoints";
311
- resolvedPath = __resolvedPath(resolvedPath, input, "virtualClusterId", () => input.virtualClusterId, "{virtualClusterId}", false);
190
+ b.bp("/virtualclusters/{virtualClusterId}/endpoints");
191
+ b.p("virtualClusterId", () => input.virtualClusterId, "{virtualClusterId}", false);
312
192
  const query = map({
313
- createdBefore: [
314
- () => input.createdBefore !== void 0,
315
- () => (input.createdBefore.toISOString().split(".")[0] + "Z").toString(),
316
- ],
317
- createdAfter: [
318
- () => input.createdAfter !== void 0,
319
- () => (input.createdAfter.toISOString().split(".")[0] + "Z").toString(),
320
- ],
321
- types: [() => input.types !== void 0, () => (input.types || []).map((_entry) => _entry)],
322
- states: [() => input.states !== void 0, () => (input.states || []).map((_entry) => _entry)],
323
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
324
- nextToken: [, input.nextToken],
193
+ [_cB]: [() => input.createdBefore !== void 0, () => (input[_cB].toISOString().split(".")[0] + "Z").toString()],
194
+ [_cA]: [() => input.createdAfter !== void 0, () => (input[_cA].toISOString().split(".")[0] + "Z").toString()],
195
+ [_t]: [() => input.types !== void 0, () => (input[_t] || []).map((_entry) => _entry)],
196
+ [_s]: [() => input.states !== void 0, () => (input[_s] || []).map((_entry) => _entry)],
197
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
198
+ [_nT]: [, input[_nT]],
325
199
  });
326
200
  let body;
327
- return new __HttpRequest({
328
- protocol,
329
- hostname,
330
- port,
331
- method: "GET",
332
- headers,
333
- path: resolvedPath,
334
- query,
335
- body,
336
- });
201
+ b.m("GET").h(headers).q(query).b(body);
202
+ return b.build();
337
203
  };
338
204
  export const se_ListTagsForResourceCommand = async (input, context) => {
339
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
205
+ const b = rb(input, context);
340
206
  const headers = {};
341
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
342
- resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
207
+ b.bp("/tags/{resourceArn}");
208
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
343
209
  let body;
344
- return new __HttpRequest({
345
- protocol,
346
- hostname,
347
- port,
348
- method: "GET",
349
- headers,
350
- path: resolvedPath,
351
- body,
352
- });
210
+ b.m("GET").h(headers).b(body);
211
+ return b.build();
353
212
  };
354
213
  export const se_ListVirtualClustersCommand = async (input, context) => {
355
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
214
+ const b = rb(input, context);
356
215
  const headers = {};
357
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/virtualclusters";
216
+ b.bp("/virtualclusters");
358
217
  const query = map({
359
- containerProviderId: [, input.containerProviderId],
360
- containerProviderType: [, input.containerProviderType],
361
- createdAfter: [
362
- () => input.createdAfter !== void 0,
363
- () => (input.createdAfter.toISOString().split(".")[0] + "Z").toString(),
364
- ],
365
- createdBefore: [
366
- () => input.createdBefore !== void 0,
367
- () => (input.createdBefore.toISOString().split(".")[0] + "Z").toString(),
368
- ],
369
- states: [() => input.states !== void 0, () => (input.states || []).map((_entry) => _entry)],
370
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
371
- nextToken: [, input.nextToken],
218
+ [_cPI]: [, input[_cPI]],
219
+ [_cPT]: [, input[_cPT]],
220
+ [_cA]: [() => input.createdAfter !== void 0, () => (input[_cA].toISOString().split(".")[0] + "Z").toString()],
221
+ [_cB]: [() => input.createdBefore !== void 0, () => (input[_cB].toISOString().split(".")[0] + "Z").toString()],
222
+ [_s]: [() => input.states !== void 0, () => (input[_s] || []).map((_entry) => _entry)],
223
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
224
+ [_nT]: [, input[_nT]],
372
225
  });
373
226
  let body;
374
- return new __HttpRequest({
375
- protocol,
376
- hostname,
377
- port,
378
- method: "GET",
379
- headers,
380
- path: resolvedPath,
381
- query,
382
- body,
383
- });
227
+ b.m("GET").h(headers).q(query).b(body);
228
+ return b.build();
384
229
  };
385
230
  export const se_StartJobRunCommand = async (input, context) => {
386
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
231
+ const b = rb(input, context);
387
232
  const headers = {
388
233
  "content-type": "application/json",
389
234
  };
390
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
391
- "/virtualclusters/{virtualClusterId}/jobruns";
392
- resolvedPath = __resolvedPath(resolvedPath, input, "virtualClusterId", () => input.virtualClusterId, "{virtualClusterId}", false);
235
+ b.bp("/virtualclusters/{virtualClusterId}/jobruns");
236
+ b.p("virtualClusterId", () => input.virtualClusterId, "{virtualClusterId}", false);
393
237
  let body;
394
238
  body = JSON.stringify(take(input, {
395
239
  clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
@@ -403,59 +247,37 @@ export const se_StartJobRunCommand = async (input, context) => {
403
247
  retryPolicyConfiguration: (_) => _json(_),
404
248
  tags: (_) => _json(_),
405
249
  }));
406
- return new __HttpRequest({
407
- protocol,
408
- hostname,
409
- port,
410
- method: "POST",
411
- headers,
412
- path: resolvedPath,
413
- body,
414
- });
250
+ b.m("POST").h(headers).b(body);
251
+ return b.build();
415
252
  };
416
253
  export const se_TagResourceCommand = async (input, context) => {
417
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
254
+ const b = rb(input, context);
418
255
  const headers = {
419
256
  "content-type": "application/json",
420
257
  };
421
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
422
- resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
258
+ b.bp("/tags/{resourceArn}");
259
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
423
260
  let body;
424
261
  body = JSON.stringify(take(input, {
425
262
  tags: (_) => _json(_),
426
263
  }));
427
- return new __HttpRequest({
428
- protocol,
429
- hostname,
430
- port,
431
- method: "POST",
432
- headers,
433
- path: resolvedPath,
434
- body,
435
- });
264
+ b.m("POST").h(headers).b(body);
265
+ return b.build();
436
266
  };
437
267
  export const se_UntagResourceCommand = async (input, context) => {
438
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
268
+ const b = rb(input, context);
439
269
  const headers = {};
440
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
441
- resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
270
+ b.bp("/tags/{resourceArn}");
271
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
442
272
  const query = map({
443
- tagKeys: [
273
+ [_tK]: [
444
274
  __expectNonNull(input.tagKeys, `tagKeys`) != null,
445
- () => (input.tagKeys || []).map((_entry) => _entry),
275
+ () => (input[_tK] || []).map((_entry) => _entry),
446
276
  ],
447
277
  });
448
278
  let body;
449
- return new __HttpRequest({
450
- protocol,
451
- hostname,
452
- port,
453
- method: "DELETE",
454
- headers,
455
- path: resolvedPath,
456
- query,
457
- body,
458
- });
279
+ b.m("DELETE").h(headers).q(query).b(body);
280
+ return b.build();
459
281
  };
460
282
  export const de_CancelJobRunCommand = async (output, context) => {
461
283
  if (output.statusCode !== 200 && output.statusCode >= 300) {
@@ -1465,6 +1287,16 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
1465
1287
  value !== "" &&
1466
1288
  (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
1467
1289
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
1290
+ const _cA = "createdAfter";
1291
+ const _cB = "createdBefore";
1292
+ const _cPI = "containerProviderId";
1293
+ const _cPT = "containerProviderType";
1294
+ const _mR = "maxResults";
1295
+ const _n = "name";
1296
+ const _nT = "nextToken";
1297
+ const _s = "states";
1298
+ const _t = "types";
1299
+ const _tK = "tagKeys";
1468
1300
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
1469
1301
  if (encoded.length) {
1470
1302
  return JSON.parse(encoded);
@@ -4,4 +4,4 @@ import { EMRContainersPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListJobRuns(config: EMRContainersPaginationConfiguration, input: ListJobRunsCommandInput, ...additionalArguments: any): Paginator<ListJobRunsCommandOutput>;
7
+ export declare const paginateListJobRuns: (config: EMRContainersPaginationConfiguration, input: ListJobRunsCommandInput, ...rest: any[]) => Paginator<ListJobRunsCommandOutput>;
@@ -4,4 +4,4 @@ import { EMRContainersPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListJobTemplates(config: EMRContainersPaginationConfiguration, input: ListJobTemplatesCommandInput, ...additionalArguments: any): Paginator<ListJobTemplatesCommandOutput>;
7
+ export declare const paginateListJobTemplates: (config: EMRContainersPaginationConfiguration, input: ListJobTemplatesCommandInput, ...rest: any[]) => Paginator<ListJobTemplatesCommandOutput>;
@@ -4,4 +4,4 @@ import { EMRContainersPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListManagedEndpoints(config: EMRContainersPaginationConfiguration, input: ListManagedEndpointsCommandInput, ...additionalArguments: any): Paginator<ListManagedEndpointsCommandOutput>;
7
+ export declare const paginateListManagedEndpoints: (config: EMRContainersPaginationConfiguration, input: ListManagedEndpointsCommandInput, ...rest: any[]) => Paginator<ListManagedEndpointsCommandOutput>;
@@ -4,4 +4,4 @@ import { EMRContainersPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListVirtualClusters(config: EMRContainersPaginationConfiguration, input: ListVirtualClustersCommandInput, ...additionalArguments: any): Paginator<ListVirtualClustersCommandOutput>;
7
+ export declare const paginateListVirtualClusters: (config: EMRContainersPaginationConfiguration, input: ListVirtualClustersCommandInput, ...rest: any[]) => Paginator<ListVirtualClustersCommandOutput>;
@@ -4,8 +4,8 @@ import {
4
4
  ListJobRunsCommandOutput,
5
5
  } from "../commands/ListJobRunsCommand";
6
6
  import { EMRContainersPaginationConfiguration } from "./Interfaces";
7
- export declare function paginateListJobRuns(
7
+ export declare const paginateListJobRuns: (
8
8
  config: EMRContainersPaginationConfiguration,
9
9
  input: ListJobRunsCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<ListJobRunsCommandOutput>;
10
+ ...rest: any[]
11
+ ) => Paginator<ListJobRunsCommandOutput>;