@aws-sdk/client-emr-serverless 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,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListApplications = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListApplicationsCommand_1 = require("../commands/ListApplicationsCommand");
5
6
  const EMRServerlessClient_1 = require("../EMRServerlessClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListApplicationsCommand_1.ListApplicationsCommand(input), ...args);
8
- };
9
- async function* paginateListApplications(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxResults"] = config.pageSize;
16
- if (config.client instanceof EMRServerlessClient_1.EMRServerlessClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected EMRServerless | EMRServerlessClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListApplications = paginateListApplications;
7
+ exports.paginateListApplications = (0, core_1.createPaginator)(EMRServerlessClient_1.EMRServerlessClient, ListApplicationsCommand_1.ListApplicationsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListJobRuns = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListJobRunsCommand_1 = require("../commands/ListJobRunsCommand");
5
6
  const EMRServerlessClient_1 = require("../EMRServerlessClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListJobRunsCommand_1.ListJobRunsCommand(input), ...args);
8
- };
9
- async function* paginateListJobRuns(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxResults"] = config.pageSize;
16
- if (config.client instanceof EMRServerlessClient_1.EMRServerlessClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected EMRServerless | EMRServerlessClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListJobRuns = paginateListJobRuns;
7
+ exports.paginateListJobRuns = (0, core_1.createPaginator)(EMRServerlessClient_1.EMRServerlessClient, ListJobRunsCommand_1.ListJobRunsCommand, "nextToken", "nextToken", "maxResults");
@@ -2,36 +2,28 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.de_UpdateApplicationCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StopApplicationCommand = exports.de_StartJobRunCommand = exports.de_StartApplicationCommand = exports.de_ListTagsForResourceCommand = exports.de_ListJobRunsCommand = exports.de_ListApplicationsCommand = exports.de_GetJobRunCommand = exports.de_GetDashboardForJobRunCommand = exports.de_GetApplicationCommand = exports.de_DeleteApplicationCommand = exports.de_CreateApplicationCommand = exports.de_CancelJobRunCommand = exports.se_UpdateApplicationCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StopApplicationCommand = exports.se_StartJobRunCommand = exports.se_StartApplicationCommand = exports.se_ListTagsForResourceCommand = exports.se_ListJobRunsCommand = exports.se_ListApplicationsCommand = exports.se_GetJobRunCommand = exports.se_GetDashboardForJobRunCommand = exports.se_GetApplicationCommand = exports.se_DeleteApplicationCommand = exports.se_CreateApplicationCommand = exports.se_CancelJobRunCommand = void 0;
4
4
  const core_1 = require("@aws-sdk/core");
5
- const protocol_http_1 = require("@smithy/protocol-http");
5
+ const core_2 = require("@smithy/core");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  const uuid_1 = require("uuid");
8
8
  const EMRServerlessServiceException_1 = require("../models/EMRServerlessServiceException");
9
9
  const models_0_1 = require("../models/models_0");
10
10
  const se_CancelJobRunCommand = async (input, context) => {
11
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
11
+ const b = (0, core_2.requestBuilder)(input, context);
12
12
  const headers = {};
13
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
14
- "/applications/{applicationId}/jobruns/{jobRunId}";
15
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "applicationId", () => input.applicationId, "{applicationId}", false);
16
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "jobRunId", () => input.jobRunId, "{jobRunId}", false);
13
+ b.bp("/applications/{applicationId}/jobruns/{jobRunId}");
14
+ b.p("applicationId", () => input.applicationId, "{applicationId}", false);
15
+ b.p("jobRunId", () => input.jobRunId, "{jobRunId}", false);
17
16
  let body;
18
- return new protocol_http_1.HttpRequest({
19
- protocol,
20
- hostname,
21
- port,
22
- method: "DELETE",
23
- headers,
24
- path: resolvedPath,
25
- body,
26
- });
17
+ b.m("DELETE").h(headers).b(body);
18
+ return b.build();
27
19
  };
28
20
  exports.se_CancelJobRunCommand = se_CancelJobRunCommand;
29
21
  const se_CreateApplicationCommand = async (input, context) => {
30
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
22
+ const b = (0, core_2.requestBuilder)(input, context);
31
23
  const headers = {
32
24
  "content-type": "application/json",
33
25
  };
34
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications";
26
+ b.bp("/applications");
35
27
  let body;
36
28
  body = JSON.stringify((0, smithy_client_1.take)(input, {
37
29
  architecture: [],
@@ -50,183 +42,110 @@ const se_CreateApplicationCommand = async (input, context) => {
50
42
  type: [],
51
43
  workerTypeSpecifications: (_) => (0, smithy_client_1._json)(_),
52
44
  }));
53
- return new protocol_http_1.HttpRequest({
54
- protocol,
55
- hostname,
56
- port,
57
- method: "POST",
58
- headers,
59
- path: resolvedPath,
60
- body,
61
- });
45
+ b.m("POST").h(headers).b(body);
46
+ return b.build();
62
47
  };
63
48
  exports.se_CreateApplicationCommand = se_CreateApplicationCommand;
64
49
  const se_DeleteApplicationCommand = async (input, context) => {
65
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
50
+ const b = (0, core_2.requestBuilder)(input, context);
66
51
  const headers = {};
67
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{applicationId}";
68
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "applicationId", () => input.applicationId, "{applicationId}", false);
52
+ b.bp("/applications/{applicationId}");
53
+ b.p("applicationId", () => input.applicationId, "{applicationId}", false);
69
54
  let body;
70
- return new protocol_http_1.HttpRequest({
71
- protocol,
72
- hostname,
73
- port,
74
- method: "DELETE",
75
- headers,
76
- path: resolvedPath,
77
- body,
78
- });
55
+ b.m("DELETE").h(headers).b(body);
56
+ return b.build();
79
57
  };
80
58
  exports.se_DeleteApplicationCommand = se_DeleteApplicationCommand;
81
59
  const se_GetApplicationCommand = async (input, context) => {
82
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
60
+ const b = (0, core_2.requestBuilder)(input, context);
83
61
  const headers = {};
84
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{applicationId}";
85
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "applicationId", () => input.applicationId, "{applicationId}", false);
62
+ b.bp("/applications/{applicationId}");
63
+ b.p("applicationId", () => input.applicationId, "{applicationId}", false);
86
64
  let body;
87
- return new protocol_http_1.HttpRequest({
88
- protocol,
89
- hostname,
90
- port,
91
- method: "GET",
92
- headers,
93
- path: resolvedPath,
94
- body,
95
- });
65
+ b.m("GET").h(headers).b(body);
66
+ return b.build();
96
67
  };
97
68
  exports.se_GetApplicationCommand = se_GetApplicationCommand;
98
69
  const se_GetDashboardForJobRunCommand = async (input, context) => {
99
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
70
+ const b = (0, core_2.requestBuilder)(input, context);
100
71
  const headers = {};
101
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
102
- "/applications/{applicationId}/jobruns/{jobRunId}/dashboard";
103
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "applicationId", () => input.applicationId, "{applicationId}", false);
104
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "jobRunId", () => input.jobRunId, "{jobRunId}", false);
72
+ b.bp("/applications/{applicationId}/jobruns/{jobRunId}/dashboard");
73
+ b.p("applicationId", () => input.applicationId, "{applicationId}", false);
74
+ b.p("jobRunId", () => input.jobRunId, "{jobRunId}", false);
105
75
  let body;
106
- return new protocol_http_1.HttpRequest({
107
- protocol,
108
- hostname,
109
- port,
110
- method: "GET",
111
- headers,
112
- path: resolvedPath,
113
- body,
114
- });
76
+ b.m("GET").h(headers).b(body);
77
+ return b.build();
115
78
  };
116
79
  exports.se_GetDashboardForJobRunCommand = se_GetDashboardForJobRunCommand;
117
80
  const se_GetJobRunCommand = async (input, context) => {
118
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
81
+ const b = (0, core_2.requestBuilder)(input, context);
119
82
  const headers = {};
120
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
121
- "/applications/{applicationId}/jobruns/{jobRunId}";
122
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "applicationId", () => input.applicationId, "{applicationId}", false);
123
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "jobRunId", () => input.jobRunId, "{jobRunId}", false);
83
+ b.bp("/applications/{applicationId}/jobruns/{jobRunId}");
84
+ b.p("applicationId", () => input.applicationId, "{applicationId}", false);
85
+ b.p("jobRunId", () => input.jobRunId, "{jobRunId}", false);
124
86
  let body;
125
- return new protocol_http_1.HttpRequest({
126
- protocol,
127
- hostname,
128
- port,
129
- method: "GET",
130
- headers,
131
- path: resolvedPath,
132
- body,
133
- });
87
+ b.m("GET").h(headers).b(body);
88
+ return b.build();
134
89
  };
135
90
  exports.se_GetJobRunCommand = se_GetJobRunCommand;
136
91
  const se_ListApplicationsCommand = async (input, context) => {
137
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
92
+ const b = (0, core_2.requestBuilder)(input, context);
138
93
  const headers = {};
139
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications";
94
+ b.bp("/applications");
140
95
  const query = (0, smithy_client_1.map)({
141
- nextToken: [, input.nextToken],
142
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
143
- states: [() => input.states !== void 0, () => (input.states || []).map((_entry) => _entry)],
96
+ [_nT]: [, input[_nT]],
97
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
98
+ [_s]: [() => input.states !== void 0, () => (input[_s] || []).map((_entry) => _entry)],
144
99
  });
145
100
  let body;
146
- return new protocol_http_1.HttpRequest({
147
- protocol,
148
- hostname,
149
- port,
150
- method: "GET",
151
- headers,
152
- path: resolvedPath,
153
- query,
154
- body,
155
- });
101
+ b.m("GET").h(headers).q(query).b(body);
102
+ return b.build();
156
103
  };
157
104
  exports.se_ListApplicationsCommand = se_ListApplicationsCommand;
158
105
  const se_ListJobRunsCommand = async (input, context) => {
159
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
106
+ const b = (0, core_2.requestBuilder)(input, context);
160
107
  const headers = {};
161
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{applicationId}/jobruns";
162
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "applicationId", () => input.applicationId, "{applicationId}", false);
108
+ b.bp("/applications/{applicationId}/jobruns");
109
+ b.p("applicationId", () => input.applicationId, "{applicationId}", false);
163
110
  const query = (0, smithy_client_1.map)({
164
- nextToken: [, input.nextToken],
165
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
166
- createdAtAfter: [
167
- () => input.createdAtAfter !== void 0,
168
- () => (input.createdAtAfter.toISOString().split(".")[0] + "Z").toString(),
169
- ],
170
- createdAtBefore: [
171
- () => input.createdAtBefore !== void 0,
172
- () => (input.createdAtBefore.toISOString().split(".")[0] + "Z").toString(),
173
- ],
174
- states: [() => input.states !== void 0, () => (input.states || []).map((_entry) => _entry)],
111
+ [_nT]: [, input[_nT]],
112
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
113
+ [_cAA]: [() => input.createdAtAfter !== void 0, () => (input[_cAA].toISOString().split(".")[0] + "Z").toString()],
114
+ [_cAB]: [() => input.createdAtBefore !== void 0, () => (input[_cAB].toISOString().split(".")[0] + "Z").toString()],
115
+ [_s]: [() => input.states !== void 0, () => (input[_s] || []).map((_entry) => _entry)],
175
116
  });
176
117
  let body;
177
- return new protocol_http_1.HttpRequest({
178
- protocol,
179
- hostname,
180
- port,
181
- method: "GET",
182
- headers,
183
- path: resolvedPath,
184
- query,
185
- body,
186
- });
118
+ b.m("GET").h(headers).q(query).b(body);
119
+ return b.build();
187
120
  };
188
121
  exports.se_ListJobRunsCommand = se_ListJobRunsCommand;
189
122
  const se_ListTagsForResourceCommand = async (input, context) => {
190
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
123
+ const b = (0, core_2.requestBuilder)(input, context);
191
124
  const headers = {};
192
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
193
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
125
+ b.bp("/tags/{resourceArn}");
126
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
194
127
  let body;
195
- return new protocol_http_1.HttpRequest({
196
- protocol,
197
- hostname,
198
- port,
199
- method: "GET",
200
- headers,
201
- path: resolvedPath,
202
- body,
203
- });
128
+ b.m("GET").h(headers).b(body);
129
+ return b.build();
204
130
  };
205
131
  exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
206
132
  const se_StartApplicationCommand = async (input, context) => {
207
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
133
+ const b = (0, core_2.requestBuilder)(input, context);
208
134
  const headers = {};
209
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{applicationId}/start";
210
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "applicationId", () => input.applicationId, "{applicationId}", false);
135
+ b.bp("/applications/{applicationId}/start");
136
+ b.p("applicationId", () => input.applicationId, "{applicationId}", false);
211
137
  let body;
212
- return new protocol_http_1.HttpRequest({
213
- protocol,
214
- hostname,
215
- port,
216
- method: "POST",
217
- headers,
218
- path: resolvedPath,
219
- body,
220
- });
138
+ b.m("POST").h(headers).b(body);
139
+ return b.build();
221
140
  };
222
141
  exports.se_StartApplicationCommand = se_StartApplicationCommand;
223
142
  const se_StartJobRunCommand = async (input, context) => {
224
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
143
+ const b = (0, core_2.requestBuilder)(input, context);
225
144
  const headers = {
226
145
  "content-type": "application/json",
227
146
  };
228
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{applicationId}/jobruns";
229
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "applicationId", () => input.applicationId, "{applicationId}", false);
147
+ b.bp("/applications/{applicationId}/jobruns");
148
+ b.p("applicationId", () => input.applicationId, "{applicationId}", false);
230
149
  let body;
231
150
  body = JSON.stringify((0, smithy_client_1.take)(input, {
232
151
  clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
@@ -237,87 +156,58 @@ const se_StartJobRunCommand = async (input, context) => {
237
156
  name: [],
238
157
  tags: (_) => (0, smithy_client_1._json)(_),
239
158
  }));
240
- return new protocol_http_1.HttpRequest({
241
- protocol,
242
- hostname,
243
- port,
244
- method: "POST",
245
- headers,
246
- path: resolvedPath,
247
- body,
248
- });
159
+ b.m("POST").h(headers).b(body);
160
+ return b.build();
249
161
  };
250
162
  exports.se_StartJobRunCommand = se_StartJobRunCommand;
251
163
  const se_StopApplicationCommand = async (input, context) => {
252
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
164
+ const b = (0, core_2.requestBuilder)(input, context);
253
165
  const headers = {};
254
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{applicationId}/stop";
255
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "applicationId", () => input.applicationId, "{applicationId}", false);
166
+ b.bp("/applications/{applicationId}/stop");
167
+ b.p("applicationId", () => input.applicationId, "{applicationId}", false);
256
168
  let body;
257
- return new protocol_http_1.HttpRequest({
258
- protocol,
259
- hostname,
260
- port,
261
- method: "POST",
262
- headers,
263
- path: resolvedPath,
264
- body,
265
- });
169
+ b.m("POST").h(headers).b(body);
170
+ return b.build();
266
171
  };
267
172
  exports.se_StopApplicationCommand = se_StopApplicationCommand;
268
173
  const se_TagResourceCommand = async (input, context) => {
269
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
174
+ const b = (0, core_2.requestBuilder)(input, context);
270
175
  const headers = {
271
176
  "content-type": "application/json",
272
177
  };
273
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
274
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
178
+ b.bp("/tags/{resourceArn}");
179
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
275
180
  let body;
276
181
  body = JSON.stringify((0, smithy_client_1.take)(input, {
277
182
  tags: (_) => (0, smithy_client_1._json)(_),
278
183
  }));
279
- return new protocol_http_1.HttpRequest({
280
- protocol,
281
- hostname,
282
- port,
283
- method: "POST",
284
- headers,
285
- path: resolvedPath,
286
- body,
287
- });
184
+ b.m("POST").h(headers).b(body);
185
+ return b.build();
288
186
  };
289
187
  exports.se_TagResourceCommand = se_TagResourceCommand;
290
188
  const se_UntagResourceCommand = async (input, context) => {
291
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
189
+ const b = (0, core_2.requestBuilder)(input, context);
292
190
  const headers = {};
293
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
294
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
191
+ b.bp("/tags/{resourceArn}");
192
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
295
193
  const query = (0, smithy_client_1.map)({
296
- tagKeys: [
194
+ [_tK]: [
297
195
  (0, smithy_client_1.expectNonNull)(input.tagKeys, `tagKeys`) != null,
298
- () => (input.tagKeys || []).map((_entry) => _entry),
196
+ () => (input[_tK] || []).map((_entry) => _entry),
299
197
  ],
300
198
  });
301
199
  let body;
302
- return new protocol_http_1.HttpRequest({
303
- protocol,
304
- hostname,
305
- port,
306
- method: "DELETE",
307
- headers,
308
- path: resolvedPath,
309
- query,
310
- body,
311
- });
200
+ b.m("DELETE").h(headers).q(query).b(body);
201
+ return b.build();
312
202
  };
313
203
  exports.se_UntagResourceCommand = se_UntagResourceCommand;
314
204
  const se_UpdateApplicationCommand = async (input, context) => {
315
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
205
+ const b = (0, core_2.requestBuilder)(input, context);
316
206
  const headers = {
317
207
  "content-type": "application/json",
318
208
  };
319
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{applicationId}";
320
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "applicationId", () => input.applicationId, "{applicationId}", false);
209
+ b.bp("/applications/{applicationId}");
210
+ b.p("applicationId", () => input.applicationId, "{applicationId}", false);
321
211
  let body;
322
212
  body = JSON.stringify((0, smithy_client_1.take)(input, {
323
213
  architecture: [],
@@ -333,15 +223,8 @@ const se_UpdateApplicationCommand = async (input, context) => {
333
223
  runtimeConfiguration: (_) => se_ConfigurationList(_, context),
334
224
  workerTypeSpecifications: (_) => (0, smithy_client_1._json)(_),
335
225
  }));
336
- return new protocol_http_1.HttpRequest({
337
- protocol,
338
- hostname,
339
- port,
340
- method: "PATCH",
341
- headers,
342
- path: resolvedPath,
343
- body,
344
- });
226
+ b.m("PATCH").h(headers).b(body);
227
+ return b.build();
345
228
  };
346
229
  exports.se_UpdateApplicationCommand = se_UpdateApplicationCommand;
347
230
  const de_CancelJobRunCommand = async (output, context) => {
@@ -1160,6 +1043,12 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
1160
1043
  value !== "" &&
1161
1044
  (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
1162
1045
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
1046
+ const _cAA = "createdAtAfter";
1047
+ const _cAB = "createdAtBefore";
1048
+ const _mR = "maxResults";
1049
+ const _nT = "nextToken";
1050
+ const _s = "states";
1051
+ const _tK = "tagKeys";
1163
1052
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
1164
1053
  if (encoded.length) {
1165
1054
  return JSON.parse(encoded);
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListApplicationsCommand, } from "../commands/ListApplicationsCommand";
2
3
  import { EMRServerlessClient } from "../EMRServerlessClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListApplicationsCommand(input), ...args);
5
- };
6
- export async function* paginateListApplications(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.nextToken = token;
12
- input["maxResults"] = config.pageSize;
13
- if (config.client instanceof EMRServerlessClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected EMRServerless | EMRServerlessClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.nextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateListApplications = createPaginator(EMRServerlessClient, ListApplicationsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListJobRunsCommand } from "../commands/ListJobRunsCommand";
2
3
  import { EMRServerlessClient } from "../EMRServerlessClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListJobRunsCommand(input), ...args);
5
- };
6
- export async function* paginateListJobRuns(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.nextToken = token;
12
- input["maxResults"] = config.pageSize;
13
- if (config.client instanceof EMRServerlessClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected EMRServerless | EMRServerlessClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.nextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateListJobRuns = createPaginator(EMRServerlessClient, ListJobRunsCommand, "nextToken", "nextToken", "maxResults");
@@ -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, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, take, withBaseException, } from "@smithy/smithy-client";
2
+ import { requestBuilder as rb } from "@smithy/core";
3
+ import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
4
4
  import { v4 as generateIdempotencyToken } from "uuid";
5
5
  import { EMRServerlessServiceException as __BaseException } from "../models/EMRServerlessServiceException";
6
6
  import { ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, 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
- "/applications/{applicationId}/jobruns/{jobRunId}";
12
- resolvedPath = __resolvedPath(resolvedPath, input, "applicationId", () => input.applicationId, "{applicationId}", false);
13
- resolvedPath = __resolvedPath(resolvedPath, input, "jobRunId", () => input.jobRunId, "{jobRunId}", false);
10
+ b.bp("/applications/{applicationId}/jobruns/{jobRunId}");
11
+ b.p("applicationId", () => input.applicationId, "{applicationId}", false);
12
+ b.p("jobRunId", () => input.jobRunId, "{jobRunId}", 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_CreateApplicationCommand = 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 || ""}` + "/applications";
22
+ b.bp("/applications");
31
23
  let body;
32
24
  body = JSON.stringify(take(input, {
33
25
  architecture: [],
@@ -46,174 +38,101 @@ export const se_CreateApplicationCommand = async (input, context) => {
46
38
  type: [],
47
39
  workerTypeSpecifications: (_) => _json(_),
48
40
  }));
49
- return new __HttpRequest({
50
- protocol,
51
- hostname,
52
- port,
53
- method: "POST",
54
- headers,
55
- path: resolvedPath,
56
- body,
57
- });
41
+ b.m("POST").h(headers).b(body);
42
+ return b.build();
58
43
  };
59
44
  export const se_DeleteApplicationCommand = async (input, context) => {
60
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
45
+ const b = rb(input, context);
61
46
  const headers = {};
62
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{applicationId}";
63
- resolvedPath = __resolvedPath(resolvedPath, input, "applicationId", () => input.applicationId, "{applicationId}", false);
47
+ b.bp("/applications/{applicationId}");
48
+ b.p("applicationId", () => input.applicationId, "{applicationId}", false);
64
49
  let body;
65
- return new __HttpRequest({
66
- protocol,
67
- hostname,
68
- port,
69
- method: "DELETE",
70
- headers,
71
- path: resolvedPath,
72
- body,
73
- });
50
+ b.m("DELETE").h(headers).b(body);
51
+ return b.build();
74
52
  };
75
53
  export const se_GetApplicationCommand = async (input, context) => {
76
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
54
+ const b = rb(input, context);
77
55
  const headers = {};
78
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{applicationId}";
79
- resolvedPath = __resolvedPath(resolvedPath, input, "applicationId", () => input.applicationId, "{applicationId}", false);
56
+ b.bp("/applications/{applicationId}");
57
+ b.p("applicationId", () => input.applicationId, "{applicationId}", false);
80
58
  let body;
81
- return new __HttpRequest({
82
- protocol,
83
- hostname,
84
- port,
85
- method: "GET",
86
- headers,
87
- path: resolvedPath,
88
- body,
89
- });
59
+ b.m("GET").h(headers).b(body);
60
+ return b.build();
90
61
  };
91
62
  export const se_GetDashboardForJobRunCommand = async (input, context) => {
92
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
63
+ const b = rb(input, context);
93
64
  const headers = {};
94
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
95
- "/applications/{applicationId}/jobruns/{jobRunId}/dashboard";
96
- resolvedPath = __resolvedPath(resolvedPath, input, "applicationId", () => input.applicationId, "{applicationId}", false);
97
- resolvedPath = __resolvedPath(resolvedPath, input, "jobRunId", () => input.jobRunId, "{jobRunId}", false);
65
+ b.bp("/applications/{applicationId}/jobruns/{jobRunId}/dashboard");
66
+ b.p("applicationId", () => input.applicationId, "{applicationId}", false);
67
+ b.p("jobRunId", () => input.jobRunId, "{jobRunId}", false);
98
68
  let body;
99
- return new __HttpRequest({
100
- protocol,
101
- hostname,
102
- port,
103
- method: "GET",
104
- headers,
105
- path: resolvedPath,
106
- body,
107
- });
69
+ b.m("GET").h(headers).b(body);
70
+ return b.build();
108
71
  };
109
72
  export const se_GetJobRunCommand = async (input, context) => {
110
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
73
+ const b = rb(input, context);
111
74
  const headers = {};
112
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
113
- "/applications/{applicationId}/jobruns/{jobRunId}";
114
- resolvedPath = __resolvedPath(resolvedPath, input, "applicationId", () => input.applicationId, "{applicationId}", false);
115
- resolvedPath = __resolvedPath(resolvedPath, input, "jobRunId", () => input.jobRunId, "{jobRunId}", false);
75
+ b.bp("/applications/{applicationId}/jobruns/{jobRunId}");
76
+ b.p("applicationId", () => input.applicationId, "{applicationId}", false);
77
+ b.p("jobRunId", () => input.jobRunId, "{jobRunId}", false);
116
78
  let body;
117
- return new __HttpRequest({
118
- protocol,
119
- hostname,
120
- port,
121
- method: "GET",
122
- headers,
123
- path: resolvedPath,
124
- body,
125
- });
79
+ b.m("GET").h(headers).b(body);
80
+ return b.build();
126
81
  };
127
82
  export const se_ListApplicationsCommand = async (input, context) => {
128
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
83
+ const b = rb(input, context);
129
84
  const headers = {};
130
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications";
85
+ b.bp("/applications");
131
86
  const query = map({
132
- nextToken: [, input.nextToken],
133
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
134
- states: [() => input.states !== void 0, () => (input.states || []).map((_entry) => _entry)],
87
+ [_nT]: [, input[_nT]],
88
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
89
+ [_s]: [() => input.states !== void 0, () => (input[_s] || []).map((_entry) => _entry)],
135
90
  });
136
91
  let body;
137
- return new __HttpRequest({
138
- protocol,
139
- hostname,
140
- port,
141
- method: "GET",
142
- headers,
143
- path: resolvedPath,
144
- query,
145
- body,
146
- });
92
+ b.m("GET").h(headers).q(query).b(body);
93
+ return b.build();
147
94
  };
148
95
  export const se_ListJobRunsCommand = async (input, context) => {
149
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
96
+ const b = rb(input, context);
150
97
  const headers = {};
151
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{applicationId}/jobruns";
152
- resolvedPath = __resolvedPath(resolvedPath, input, "applicationId", () => input.applicationId, "{applicationId}", false);
98
+ b.bp("/applications/{applicationId}/jobruns");
99
+ b.p("applicationId", () => input.applicationId, "{applicationId}", false);
153
100
  const query = map({
154
- nextToken: [, input.nextToken],
155
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
156
- createdAtAfter: [
157
- () => input.createdAtAfter !== void 0,
158
- () => (input.createdAtAfter.toISOString().split(".")[0] + "Z").toString(),
159
- ],
160
- createdAtBefore: [
161
- () => input.createdAtBefore !== void 0,
162
- () => (input.createdAtBefore.toISOString().split(".")[0] + "Z").toString(),
163
- ],
164
- states: [() => input.states !== void 0, () => (input.states || []).map((_entry) => _entry)],
101
+ [_nT]: [, input[_nT]],
102
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
103
+ [_cAA]: [() => input.createdAtAfter !== void 0, () => (input[_cAA].toISOString().split(".")[0] + "Z").toString()],
104
+ [_cAB]: [() => input.createdAtBefore !== void 0, () => (input[_cAB].toISOString().split(".")[0] + "Z").toString()],
105
+ [_s]: [() => input.states !== void 0, () => (input[_s] || []).map((_entry) => _entry)],
165
106
  });
166
107
  let body;
167
- return new __HttpRequest({
168
- protocol,
169
- hostname,
170
- port,
171
- method: "GET",
172
- headers,
173
- path: resolvedPath,
174
- query,
175
- body,
176
- });
108
+ b.m("GET").h(headers).q(query).b(body);
109
+ return b.build();
177
110
  };
178
111
  export const se_ListTagsForResourceCommand = async (input, context) => {
179
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
112
+ const b = rb(input, context);
180
113
  const headers = {};
181
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
182
- resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
114
+ b.bp("/tags/{resourceArn}");
115
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
183
116
  let body;
184
- return new __HttpRequest({
185
- protocol,
186
- hostname,
187
- port,
188
- method: "GET",
189
- headers,
190
- path: resolvedPath,
191
- body,
192
- });
117
+ b.m("GET").h(headers).b(body);
118
+ return b.build();
193
119
  };
194
120
  export const se_StartApplicationCommand = async (input, context) => {
195
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
121
+ const b = rb(input, context);
196
122
  const headers = {};
197
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{applicationId}/start";
198
- resolvedPath = __resolvedPath(resolvedPath, input, "applicationId", () => input.applicationId, "{applicationId}", false);
123
+ b.bp("/applications/{applicationId}/start");
124
+ b.p("applicationId", () => input.applicationId, "{applicationId}", false);
199
125
  let body;
200
- return new __HttpRequest({
201
- protocol,
202
- hostname,
203
- port,
204
- method: "POST",
205
- headers,
206
- path: resolvedPath,
207
- body,
208
- });
126
+ b.m("POST").h(headers).b(body);
127
+ return b.build();
209
128
  };
210
129
  export const se_StartJobRunCommand = async (input, context) => {
211
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
130
+ const b = rb(input, context);
212
131
  const headers = {
213
132
  "content-type": "application/json",
214
133
  };
215
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{applicationId}/jobruns";
216
- resolvedPath = __resolvedPath(resolvedPath, input, "applicationId", () => input.applicationId, "{applicationId}", false);
134
+ b.bp("/applications/{applicationId}/jobruns");
135
+ b.p("applicationId", () => input.applicationId, "{applicationId}", false);
217
136
  let body;
218
137
  body = JSON.stringify(take(input, {
219
138
  clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
@@ -224,83 +143,54 @@ export const se_StartJobRunCommand = async (input, context) => {
224
143
  name: [],
225
144
  tags: (_) => _json(_),
226
145
  }));
227
- return new __HttpRequest({
228
- protocol,
229
- hostname,
230
- port,
231
- method: "POST",
232
- headers,
233
- path: resolvedPath,
234
- body,
235
- });
146
+ b.m("POST").h(headers).b(body);
147
+ return b.build();
236
148
  };
237
149
  export const se_StopApplicationCommand = async (input, context) => {
238
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
150
+ const b = rb(input, context);
239
151
  const headers = {};
240
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{applicationId}/stop";
241
- resolvedPath = __resolvedPath(resolvedPath, input, "applicationId", () => input.applicationId, "{applicationId}", false);
152
+ b.bp("/applications/{applicationId}/stop");
153
+ b.p("applicationId", () => input.applicationId, "{applicationId}", false);
242
154
  let body;
243
- return new __HttpRequest({
244
- protocol,
245
- hostname,
246
- port,
247
- method: "POST",
248
- headers,
249
- path: resolvedPath,
250
- body,
251
- });
155
+ b.m("POST").h(headers).b(body);
156
+ return b.build();
252
157
  };
253
158
  export const se_TagResourceCommand = async (input, context) => {
254
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
159
+ const b = rb(input, context);
255
160
  const headers = {
256
161
  "content-type": "application/json",
257
162
  };
258
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
259
- resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
163
+ b.bp("/tags/{resourceArn}");
164
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
260
165
  let body;
261
166
  body = JSON.stringify(take(input, {
262
167
  tags: (_) => _json(_),
263
168
  }));
264
- return new __HttpRequest({
265
- protocol,
266
- hostname,
267
- port,
268
- method: "POST",
269
- headers,
270
- path: resolvedPath,
271
- body,
272
- });
169
+ b.m("POST").h(headers).b(body);
170
+ return b.build();
273
171
  };
274
172
  export const se_UntagResourceCommand = async (input, context) => {
275
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
173
+ const b = rb(input, context);
276
174
  const headers = {};
277
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
278
- resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
175
+ b.bp("/tags/{resourceArn}");
176
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
279
177
  const query = map({
280
- tagKeys: [
178
+ [_tK]: [
281
179
  __expectNonNull(input.tagKeys, `tagKeys`) != null,
282
- () => (input.tagKeys || []).map((_entry) => _entry),
180
+ () => (input[_tK] || []).map((_entry) => _entry),
283
181
  ],
284
182
  });
285
183
  let body;
286
- return new __HttpRequest({
287
- protocol,
288
- hostname,
289
- port,
290
- method: "DELETE",
291
- headers,
292
- path: resolvedPath,
293
- query,
294
- body,
295
- });
184
+ b.m("DELETE").h(headers).q(query).b(body);
185
+ return b.build();
296
186
  };
297
187
  export const se_UpdateApplicationCommand = async (input, context) => {
298
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
188
+ const b = rb(input, context);
299
189
  const headers = {
300
190
  "content-type": "application/json",
301
191
  };
302
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{applicationId}";
303
- resolvedPath = __resolvedPath(resolvedPath, input, "applicationId", () => input.applicationId, "{applicationId}", false);
192
+ b.bp("/applications/{applicationId}");
193
+ b.p("applicationId", () => input.applicationId, "{applicationId}", false);
304
194
  let body;
305
195
  body = JSON.stringify(take(input, {
306
196
  architecture: [],
@@ -316,15 +206,8 @@ export const se_UpdateApplicationCommand = async (input, context) => {
316
206
  runtimeConfiguration: (_) => se_ConfigurationList(_, context),
317
207
  workerTypeSpecifications: (_) => _json(_),
318
208
  }));
319
- return new __HttpRequest({
320
- protocol,
321
- hostname,
322
- port,
323
- method: "PATCH",
324
- headers,
325
- path: resolvedPath,
326
- body,
327
- });
209
+ b.m("PATCH").h(headers).b(body);
210
+ return b.build();
328
211
  };
329
212
  export const de_CancelJobRunCommand = async (output, context) => {
330
213
  if (output.statusCode !== 200 && output.statusCode >= 300) {
@@ -1127,6 +1010,12 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
1127
1010
  value !== "" &&
1128
1011
  (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
1129
1012
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
1013
+ const _cAA = "createdAtAfter";
1014
+ const _cAB = "createdAtBefore";
1015
+ const _mR = "maxResults";
1016
+ const _nT = "nextToken";
1017
+ const _s = "states";
1018
+ const _tK = "tagKeys";
1130
1019
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
1131
1020
  if (encoded.length) {
1132
1021
  return JSON.parse(encoded);
@@ -4,4 +4,4 @@ import { EMRServerlessPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListApplications(config: EMRServerlessPaginationConfiguration, input: ListApplicationsCommandInput, ...additionalArguments: any): Paginator<ListApplicationsCommandOutput>;
7
+ export declare const paginateListApplications: (config: EMRServerlessPaginationConfiguration, input: ListApplicationsCommandInput, ...rest: any[]) => Paginator<ListApplicationsCommandOutput>;
@@ -4,4 +4,4 @@ import { EMRServerlessPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListJobRuns(config: EMRServerlessPaginationConfiguration, input: ListJobRunsCommandInput, ...additionalArguments: any): Paginator<ListJobRunsCommandOutput>;
7
+ export declare const paginateListJobRuns: (config: EMRServerlessPaginationConfiguration, input: ListJobRunsCommandInput, ...rest: any[]) => Paginator<ListJobRunsCommandOutput>;
@@ -4,8 +4,8 @@ import {
4
4
  ListApplicationsCommandOutput,
5
5
  } from "../commands/ListApplicationsCommand";
6
6
  import { EMRServerlessPaginationConfiguration } from "./Interfaces";
7
- export declare function paginateListApplications(
7
+ export declare const paginateListApplications: (
8
8
  config: EMRServerlessPaginationConfiguration,
9
9
  input: ListApplicationsCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<ListApplicationsCommandOutput>;
10
+ ...rest: any[]
11
+ ) => Paginator<ListApplicationsCommandOutput>;
@@ -4,8 +4,8 @@ import {
4
4
  ListJobRunsCommandOutput,
5
5
  } from "../commands/ListJobRunsCommand";
6
6
  import { EMRServerlessPaginationConfiguration } from "./Interfaces";
7
- export declare function paginateListJobRuns(
7
+ export declare const paginateListJobRuns: (
8
8
  config: EMRServerlessPaginationConfiguration,
9
9
  input: ListJobRunsCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<ListJobRunsCommandOutput>;
10
+ ...rest: any[]
11
+ ) => Paginator<ListJobRunsCommandOutput>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-emr-serverless",
3
3
  "description": "AWS SDK for JavaScript Emr Serverless Client for Node.js, Browser and React Native",
4
- "version": "3.476.0",
4
+ "version": "3.478.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -20,20 +20,21 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "3.0.0",
22
22
  "@aws-crypto/sha256-js": "3.0.0",
23
- "@aws-sdk/client-sts": "3.476.0",
24
- "@aws-sdk/core": "3.476.0",
25
- "@aws-sdk/credential-provider-node": "3.476.0",
23
+ "@aws-sdk/client-sts": "3.478.0",
24
+ "@aws-sdk/core": "3.477.0",
25
+ "@aws-sdk/credential-provider-node": "3.478.0",
26
26
  "@aws-sdk/middleware-host-header": "3.468.0",
27
27
  "@aws-sdk/middleware-logger": "3.468.0",
28
28
  "@aws-sdk/middleware-recursion-detection": "3.468.0",
29
29
  "@aws-sdk/middleware-signing": "3.468.0",
30
- "@aws-sdk/middleware-user-agent": "3.470.0",
30
+ "@aws-sdk/middleware-user-agent": "3.478.0",
31
31
  "@aws-sdk/region-config-resolver": "3.470.0",
32
32
  "@aws-sdk/types": "3.468.0",
33
- "@aws-sdk/util-endpoints": "3.470.0",
33
+ "@aws-sdk/util-endpoints": "3.478.0",
34
34
  "@aws-sdk/util-user-agent-browser": "3.468.0",
35
35
  "@aws-sdk/util-user-agent-node": "3.470.0",
36
36
  "@smithy/config-resolver": "^2.0.21",
37
+ "@smithy/core": "^1.2.0",
37
38
  "@smithy/fetch-http-handler": "^2.3.1",
38
39
  "@smithy/hash-node": "^2.0.17",
39
40
  "@smithy/invalid-dependency": "^2.0.15",