@aws-sdk/client-emr-serverless 3.975.0 → 3.980.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist-cjs/index.js CHANGED
@@ -1045,6 +1045,12 @@ class UpdateApplicationCommand extends smithyClient.Command
1045
1045
  .build() {
1046
1046
  }
1047
1047
 
1048
+ const paginateListApplications = core.createPaginator(EMRServerlessClient, ListApplicationsCommand, "nextToken", "nextToken", "maxResults");
1049
+
1050
+ const paginateListJobRunAttempts = core.createPaginator(EMRServerlessClient, ListJobRunAttemptsCommand, "nextToken", "nextToken", "maxResults");
1051
+
1052
+ const paginateListJobRuns = core.createPaginator(EMRServerlessClient, ListJobRunsCommand, "nextToken", "nextToken", "maxResults");
1053
+
1048
1054
  const commands = {
1049
1055
  CancelJobRunCommand,
1050
1056
  CreateApplicationCommand,
@@ -1063,15 +1069,14 @@ const commands = {
1063
1069
  UntagResourceCommand,
1064
1070
  UpdateApplicationCommand,
1065
1071
  };
1072
+ const paginators = {
1073
+ paginateListApplications,
1074
+ paginateListJobRunAttempts,
1075
+ paginateListJobRuns,
1076
+ };
1066
1077
  class EMRServerless extends EMRServerlessClient {
1067
1078
  }
1068
- smithyClient.createAggregatedClient(commands, EMRServerless);
1069
-
1070
- const paginateListApplications = core.createPaginator(EMRServerlessClient, ListApplicationsCommand, "nextToken", "nextToken", "maxResults");
1071
-
1072
- const paginateListJobRunAttempts = core.createPaginator(EMRServerlessClient, ListJobRunAttemptsCommand, "nextToken", "nextToken", "maxResults");
1073
-
1074
- const paginateListJobRuns = core.createPaginator(EMRServerlessClient, ListJobRunsCommand, "nextToken", "nextToken", "maxResults");
1079
+ smithyClient.createAggregatedClient(commands, EMRServerless, { paginators });
1075
1080
 
1076
1081
  const Architecture = {
1077
1082
  ARM64: "ARM64",
@@ -16,6 +16,9 @@ import { TagResourceCommand } from "./commands/TagResourceCommand";
16
16
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
17
17
  import { UpdateApplicationCommand, } from "./commands/UpdateApplicationCommand";
18
18
  import { EMRServerlessClient } from "./EMRServerlessClient";
19
+ import { paginateListApplications } from "./pagination/ListApplicationsPaginator";
20
+ import { paginateListJobRunAttempts } from "./pagination/ListJobRunAttemptsPaginator";
21
+ import { paginateListJobRuns } from "./pagination/ListJobRunsPaginator";
19
22
  const commands = {
20
23
  CancelJobRunCommand,
21
24
  CreateApplicationCommand,
@@ -34,6 +37,11 @@ const commands = {
34
37
  UntagResourceCommand,
35
38
  UpdateApplicationCommand,
36
39
  };
40
+ const paginators = {
41
+ paginateListApplications,
42
+ paginateListJobRunAttempts,
43
+ paginateListJobRuns,
44
+ };
37
45
  export class EMRServerless extends EMRServerlessClient {
38
46
  }
39
- createAggregatedClient(commands, EMRServerless);
47
+ createAggregatedClient(commands, EMRServerless, { paginators });
@@ -1,4 +1,4 @@
1
- import type { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
1
+ import type { HttpHandlerOptions as __HttpHandlerOptions, PaginationConfiguration, Paginator } from "@smithy/types";
2
2
  import { CancelJobRunCommandInput, CancelJobRunCommandOutput } from "./commands/CancelJobRunCommand";
3
3
  import { CreateApplicationCommandInput, CreateApplicationCommandOutput } from "./commands/CreateApplicationCommand";
4
4
  import { DeleteApplicationCommandInput, DeleteApplicationCommandOutput } from "./commands/DeleteApplicationCommand";
@@ -114,6 +114,27 @@ export interface EMRServerless {
114
114
  updateApplication(args: UpdateApplicationCommandInput, options?: __HttpHandlerOptions): Promise<UpdateApplicationCommandOutput>;
115
115
  updateApplication(args: UpdateApplicationCommandInput, cb: (err: any, data?: UpdateApplicationCommandOutput) => void): void;
116
116
  updateApplication(args: UpdateApplicationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateApplicationCommandOutput) => void): void;
117
+ /**
118
+ * @see {@link ListApplicationsCommand}
119
+ * @param args - command input.
120
+ * @param paginationConfig - optional pagination config.
121
+ * @returns AsyncIterable of {@link ListApplicationsCommandOutput}.
122
+ */
123
+ paginateListApplications(args?: ListApplicationsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListApplicationsCommandOutput>;
124
+ /**
125
+ * @see {@link ListJobRunAttemptsCommand}
126
+ * @param args - command input.
127
+ * @param paginationConfig - optional pagination config.
128
+ * @returns AsyncIterable of {@link ListJobRunAttemptsCommandOutput}.
129
+ */
130
+ paginateListJobRunAttempts(args: ListJobRunAttemptsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListJobRunAttemptsCommandOutput>;
131
+ /**
132
+ * @see {@link ListJobRunsCommand}
133
+ * @param args - command input.
134
+ * @param paginationConfig - optional pagination config.
135
+ * @returns AsyncIterable of {@link ListJobRunsCommandOutput}.
136
+ */
137
+ paginateListJobRuns(args: ListJobRunsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListJobRunsCommandOutput>;
117
138
  }
118
139
  /**
119
140
  * <p>Amazon EMR Serverless is a new deployment option for Amazon EMR. Amazon EMR Serverless provides a serverless runtime environment that simplifies running analytics applications using the latest open source frameworks such as Apache Spark and Apache Hive. With Amazon EMR Serverless, you don’t have to configure, optimize, secure, or operate clusters to run applications with these frameworks.</p> <p>The API reference to Amazon EMR Serverless is <code>emr-serverless</code>. The <code>emr-serverless</code> prefix is used in the following scenarios: </p> <ul> <li> <p>It is the prefix in the CLI commands for Amazon EMR Serverless. For example, <code>aws emr-serverless start-job-run</code>.</p> </li> <li> <p>It is the prefix before IAM policy actions for Amazon EMR Serverless. For example, <code>"Action": ["emr-serverless:StartJobRun"]</code>. For more information, see <a href="https://docs.aws.amazon.com/emr/latest/EMR-Serverless-UserGuide/security_iam_service-with-iam.html#security_iam_service-with-iam-id-based-policies-actions">Policy actions for Amazon EMR Serverless</a>.</p> </li> <li> <p>It is the prefix used in Amazon EMR Serverless service endpoints. For example, <code>emr-serverless.us-east-2.amazonaws.com</code>.</p> </li> </ul>
@@ -1,4 +1,8 @@
1
- import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
1
+ import {
2
+ HttpHandlerOptions as __HttpHandlerOptions,
3
+ PaginationConfiguration,
4
+ Paginator,
5
+ } from "@smithy/types";
2
6
  import {
3
7
  CancelJobRunCommandInput,
4
8
  CancelJobRunCommandOutput,
@@ -274,6 +278,27 @@ export interface EMRServerless {
274
278
  options: __HttpHandlerOptions,
275
279
  cb: (err: any, data?: UpdateApplicationCommandOutput) => void
276
280
  ): void;
281
+ paginateListApplications(
282
+ args?: ListApplicationsCommandInput,
283
+ paginationConfig?: Pick<
284
+ PaginationConfiguration,
285
+ Exclude<keyof PaginationConfiguration, "client">
286
+ >
287
+ ): Paginator<ListApplicationsCommandOutput>;
288
+ paginateListJobRunAttempts(
289
+ args: ListJobRunAttemptsCommandInput,
290
+ paginationConfig?: Pick<
291
+ PaginationConfiguration,
292
+ Exclude<keyof PaginationConfiguration, "client">
293
+ >
294
+ ): Paginator<ListJobRunAttemptsCommandOutput>;
295
+ paginateListJobRuns(
296
+ args: ListJobRunsCommandInput,
297
+ paginationConfig?: Pick<
298
+ PaginationConfiguration,
299
+ Exclude<keyof PaginationConfiguration, "client">
300
+ >
301
+ ): Paginator<ListJobRunsCommandOutput>;
277
302
  }
278
303
  export declare class EMRServerless
279
304
  extends EMRServerlessClient
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.975.0",
4
+ "version": "3.980.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-emr-serverless",
@@ -21,38 +21,38 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "5.2.0",
23
23
  "@aws-crypto/sha256-js": "5.2.0",
24
- "@aws-sdk/core": "^3.973.1",
25
- "@aws-sdk/credential-provider-node": "^3.972.1",
26
- "@aws-sdk/middleware-host-header": "^3.972.1",
27
- "@aws-sdk/middleware-logger": "^3.972.1",
28
- "@aws-sdk/middleware-recursion-detection": "^3.972.1",
29
- "@aws-sdk/middleware-user-agent": "^3.972.2",
30
- "@aws-sdk/region-config-resolver": "^3.972.1",
31
- "@aws-sdk/types": "^3.973.0",
32
- "@aws-sdk/util-endpoints": "3.972.0",
33
- "@aws-sdk/util-user-agent-browser": "^3.972.1",
34
- "@aws-sdk/util-user-agent-node": "^3.972.1",
24
+ "@aws-sdk/core": "^3.973.5",
25
+ "@aws-sdk/credential-provider-node": "^3.972.4",
26
+ "@aws-sdk/middleware-host-header": "^3.972.3",
27
+ "@aws-sdk/middleware-logger": "^3.972.3",
28
+ "@aws-sdk/middleware-recursion-detection": "^3.972.3",
29
+ "@aws-sdk/middleware-user-agent": "^3.972.5",
30
+ "@aws-sdk/region-config-resolver": "^3.972.3",
31
+ "@aws-sdk/types": "^3.973.1",
32
+ "@aws-sdk/util-endpoints": "3.980.0",
33
+ "@aws-sdk/util-user-agent-browser": "^3.972.3",
34
+ "@aws-sdk/util-user-agent-node": "^3.972.3",
35
35
  "@smithy/config-resolver": "^4.4.6",
36
- "@smithy/core": "^3.21.1",
36
+ "@smithy/core": "^3.22.0",
37
37
  "@smithy/fetch-http-handler": "^5.3.9",
38
38
  "@smithy/hash-node": "^4.2.8",
39
39
  "@smithy/invalid-dependency": "^4.2.8",
40
40
  "@smithy/middleware-content-length": "^4.2.8",
41
- "@smithy/middleware-endpoint": "^4.4.11",
42
- "@smithy/middleware-retry": "^4.4.27",
41
+ "@smithy/middleware-endpoint": "^4.4.12",
42
+ "@smithy/middleware-retry": "^4.4.29",
43
43
  "@smithy/middleware-serde": "^4.2.9",
44
44
  "@smithy/middleware-stack": "^4.2.8",
45
45
  "@smithy/node-config-provider": "^4.3.8",
46
46
  "@smithy/node-http-handler": "^4.4.8",
47
47
  "@smithy/protocol-http": "^5.3.8",
48
- "@smithy/smithy-client": "^4.10.12",
48
+ "@smithy/smithy-client": "^4.11.1",
49
49
  "@smithy/types": "^4.12.0",
50
50
  "@smithy/url-parser": "^4.2.8",
51
51
  "@smithy/util-base64": "^4.3.0",
52
52
  "@smithy/util-body-length-browser": "^4.2.0",
53
53
  "@smithy/util-body-length-node": "^4.2.1",
54
- "@smithy/util-defaults-mode-browser": "^4.3.26",
55
- "@smithy/util-defaults-mode-node": "^4.2.29",
54
+ "@smithy/util-defaults-mode-browser": "^4.3.28",
55
+ "@smithy/util-defaults-mode-node": "^4.2.31",
56
56
  "@smithy/util-endpoints": "^3.2.8",
57
57
  "@smithy/util-middleware": "^4.2.8",
58
58
  "@smithy/util-retry": "^4.2.8",