@aws-sdk/client-emr 3.1036.0 → 3.1038.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,5 +1,5 @@
1
1
  import { checkExceptions, createWaiter, WaiterState, } from "@smithy/util-waiter";
2
- import { DescribeClusterCommand } from "../commands/DescribeClusterCommand";
2
+ import { DescribeClusterCommand, } from "../commands/DescribeClusterCommand";
3
3
  const checkState = async (client, input) => {
4
4
  let reason;
5
5
  try {
@@ -1,5 +1,5 @@
1
1
  import { checkExceptions, createWaiter, WaiterState, } from "@smithy/util-waiter";
2
- import { DescribeClusterCommand } from "../commands/DescribeClusterCommand";
2
+ import { DescribeClusterCommand, } from "../commands/DescribeClusterCommand";
3
3
  const checkState = async (client, input) => {
4
4
  let reason;
5
5
  try {
@@ -1,5 +1,5 @@
1
1
  import { checkExceptions, createWaiter, WaiterState, } from "@smithy/util-waiter";
2
- import { DescribeStepCommand } from "../commands/DescribeStepCommand";
2
+ import { DescribeStepCommand, } from "../commands/DescribeStepCommand";
3
3
  const checkState = async (client, input) => {
4
4
  let reason;
5
5
  try {
@@ -521,19 +521,19 @@ export interface EMR {
521
521
  * @param args - command input.
522
522
  * @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
523
523
  */
524
- waitUntilClusterRunning(args: DescribeClusterCommandInput, waiterConfig: number | Omit<WaiterConfiguration<EMR>, "client">): Promise<WaiterResult>;
524
+ waitUntilClusterRunning(args: DescribeClusterCommandInput, waiterConfig: number | Omit<WaiterConfiguration<EMR>, "client">): Promise<WaiterResult<DescribeClusterCommandOutput>>;
525
525
  /**
526
526
  * @see {@link DescribeClusterCommand}
527
527
  * @param args - command input.
528
528
  * @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
529
529
  */
530
- waitUntilClusterTerminated(args: DescribeClusterCommandInput, waiterConfig: number | Omit<WaiterConfiguration<EMR>, "client">): Promise<WaiterResult>;
530
+ waitUntilClusterTerminated(args: DescribeClusterCommandInput, waiterConfig: number | Omit<WaiterConfiguration<EMR>, "client">): Promise<WaiterResult<DescribeClusterCommandOutput>>;
531
531
  /**
532
532
  * @see {@link DescribeStepCommand}
533
533
  * @param args - command input.
534
534
  * @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
535
535
  */
536
- waitUntilStepComplete(args: DescribeStepCommandInput, waiterConfig: number | Omit<WaiterConfiguration<EMR>, "client">): Promise<WaiterResult>;
536
+ waitUntilStepComplete(args: DescribeStepCommandInput, waiterConfig: number | Omit<WaiterConfiguration<EMR>, "client">): Promise<WaiterResult<DescribeStepCommandOutput>>;
537
537
  }
538
538
  /**
539
539
  * <p>Amazon EMR is a web service that makes it easier to process large amounts of
@@ -1141,7 +1141,7 @@ export interface EMR {
1141
1141
  WaiterConfiguration<EMR>,
1142
1142
  Exclude<keyof WaiterConfiguration<EMR>, "client">
1143
1143
  >
1144
- ): Promise<WaiterResult>;
1144
+ ): Promise<WaiterResult<DescribeClusterCommandOutput>>;
1145
1145
  waitUntilClusterTerminated(
1146
1146
  args: DescribeClusterCommandInput,
1147
1147
  waiterConfig:
@@ -1150,7 +1150,7 @@ export interface EMR {
1150
1150
  WaiterConfiguration<EMR>,
1151
1151
  Exclude<keyof WaiterConfiguration<EMR>, "client">
1152
1152
  >
1153
- ): Promise<WaiterResult>;
1153
+ ): Promise<WaiterResult<DescribeClusterCommandOutput>>;
1154
1154
  waitUntilStepComplete(
1155
1155
  args: DescribeStepCommandInput,
1156
1156
  waiterConfig:
@@ -1159,6 +1159,6 @@ export interface EMR {
1159
1159
  WaiterConfiguration<EMR>,
1160
1160
  Exclude<keyof WaiterConfiguration<EMR>, "client">
1161
1161
  >
1162
- ): Promise<WaiterResult>;
1162
+ ): Promise<WaiterResult<DescribeStepCommandOutput>>;
1163
1163
  }
1164
1164
  export declare class EMR extends EMRClient implements EMR {}
@@ -1,11 +1,15 @@
1
1
  import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
2
- import { DescribeClusterCommandInput } from "../commands/DescribeClusterCommand";
2
+ import {
3
+ DescribeClusterCommandInput,
4
+ DescribeClusterCommandOutput,
5
+ } from "../commands/DescribeClusterCommand";
3
6
  import { EMRClient } from "../EMRClient";
7
+ import { EMRServiceException } from "../models/EMRServiceException";
4
8
  export declare const waitForClusterRunning: (
5
9
  params: WaiterConfiguration<EMRClient>,
6
10
  input: DescribeClusterCommandInput
7
- ) => Promise<WaiterResult>;
11
+ ) => Promise<WaiterResult<DescribeClusterCommandOutput | EMRServiceException>>;
8
12
  export declare const waitUntilClusterRunning: (
9
13
  params: WaiterConfiguration<EMRClient>,
10
14
  input: DescribeClusterCommandInput
11
- ) => Promise<WaiterResult>;
15
+ ) => Promise<WaiterResult<DescribeClusterCommandOutput>>;
@@ -1,11 +1,15 @@
1
1
  import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
2
- import { DescribeClusterCommandInput } from "../commands/DescribeClusterCommand";
2
+ import {
3
+ DescribeClusterCommandInput,
4
+ DescribeClusterCommandOutput,
5
+ } from "../commands/DescribeClusterCommand";
3
6
  import { EMRClient } from "../EMRClient";
7
+ import { EMRServiceException } from "../models/EMRServiceException";
4
8
  export declare const waitForClusterTerminated: (
5
9
  params: WaiterConfiguration<EMRClient>,
6
10
  input: DescribeClusterCommandInput
7
- ) => Promise<WaiterResult>;
11
+ ) => Promise<WaiterResult<DescribeClusterCommandOutput | EMRServiceException>>;
8
12
  export declare const waitUntilClusterTerminated: (
9
13
  params: WaiterConfiguration<EMRClient>,
10
14
  input: DescribeClusterCommandInput
11
- ) => Promise<WaiterResult>;
15
+ ) => Promise<WaiterResult<DescribeClusterCommandOutput>>;
@@ -1,11 +1,15 @@
1
1
  import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
2
- import { DescribeStepCommandInput } from "../commands/DescribeStepCommand";
2
+ import {
3
+ DescribeStepCommandInput,
4
+ DescribeStepCommandOutput,
5
+ } from "../commands/DescribeStepCommand";
3
6
  import { EMRClient } from "../EMRClient";
7
+ import { EMRServiceException } from "../models/EMRServiceException";
4
8
  export declare const waitForStepComplete: (
5
9
  params: WaiterConfiguration<EMRClient>,
6
10
  input: DescribeStepCommandInput
7
- ) => Promise<WaiterResult>;
11
+ ) => Promise<WaiterResult<DescribeStepCommandOutput | EMRServiceException>>;
8
12
  export declare const waitUntilStepComplete: (
9
13
  params: WaiterConfiguration<EMRClient>,
10
14
  input: DescribeStepCommandInput
11
- ) => Promise<WaiterResult>;
15
+ ) => Promise<WaiterResult<DescribeStepCommandOutput>>;
@@ -1,14 +1,15 @@
1
1
  import { type WaiterConfiguration, type WaiterResult } from "@smithy/util-waiter";
2
- import { type DescribeClusterCommandInput } from "../commands/DescribeClusterCommand";
2
+ import { type DescribeClusterCommandInput, type DescribeClusterCommandOutput } from "../commands/DescribeClusterCommand";
3
3
  import type { EMRClient } from "../EMRClient";
4
+ import type { EMRServiceException } from "../models/EMRServiceException";
4
5
  /**
5
6
  *
6
7
  * @deprecated Use waitUntilClusterRunning instead. waitForClusterRunning does not throw error in non-success cases.
7
8
  */
8
- export declare const waitForClusterRunning: (params: WaiterConfiguration<EMRClient>, input: DescribeClusterCommandInput) => Promise<WaiterResult>;
9
+ export declare const waitForClusterRunning: (params: WaiterConfiguration<EMRClient>, input: DescribeClusterCommandInput) => Promise<WaiterResult<DescribeClusterCommandOutput | EMRServiceException>>;
9
10
  /**
10
11
  *
11
12
  * @param params - Waiter configuration options.
12
13
  * @param input - The input to DescribeClusterCommand for polling.
13
14
  */
14
- export declare const waitUntilClusterRunning: (params: WaiterConfiguration<EMRClient>, input: DescribeClusterCommandInput) => Promise<WaiterResult>;
15
+ export declare const waitUntilClusterRunning: (params: WaiterConfiguration<EMRClient>, input: DescribeClusterCommandInput) => Promise<WaiterResult<DescribeClusterCommandOutput>>;
@@ -1,14 +1,15 @@
1
1
  import { type WaiterConfiguration, type WaiterResult } from "@smithy/util-waiter";
2
- import { type DescribeClusterCommandInput } from "../commands/DescribeClusterCommand";
2
+ import { type DescribeClusterCommandInput, type DescribeClusterCommandOutput } from "../commands/DescribeClusterCommand";
3
3
  import type { EMRClient } from "../EMRClient";
4
+ import type { EMRServiceException } from "../models/EMRServiceException";
4
5
  /**
5
6
  *
6
7
  * @deprecated Use waitUntilClusterTerminated instead. waitForClusterTerminated does not throw error in non-success cases.
7
8
  */
8
- export declare const waitForClusterTerminated: (params: WaiterConfiguration<EMRClient>, input: DescribeClusterCommandInput) => Promise<WaiterResult>;
9
+ export declare const waitForClusterTerminated: (params: WaiterConfiguration<EMRClient>, input: DescribeClusterCommandInput) => Promise<WaiterResult<DescribeClusterCommandOutput | EMRServiceException>>;
9
10
  /**
10
11
  *
11
12
  * @param params - Waiter configuration options.
12
13
  * @param input - The input to DescribeClusterCommand for polling.
13
14
  */
14
- export declare const waitUntilClusterTerminated: (params: WaiterConfiguration<EMRClient>, input: DescribeClusterCommandInput) => Promise<WaiterResult>;
15
+ export declare const waitUntilClusterTerminated: (params: WaiterConfiguration<EMRClient>, input: DescribeClusterCommandInput) => Promise<WaiterResult<DescribeClusterCommandOutput>>;
@@ -1,14 +1,15 @@
1
1
  import { type WaiterConfiguration, type WaiterResult } from "@smithy/util-waiter";
2
- import { type DescribeStepCommandInput } from "../commands/DescribeStepCommand";
2
+ import { type DescribeStepCommandInput, type DescribeStepCommandOutput } from "../commands/DescribeStepCommand";
3
3
  import type { EMRClient } from "../EMRClient";
4
+ import type { EMRServiceException } from "../models/EMRServiceException";
4
5
  /**
5
6
  *
6
7
  * @deprecated Use waitUntilStepComplete instead. waitForStepComplete does not throw error in non-success cases.
7
8
  */
8
- export declare const waitForStepComplete: (params: WaiterConfiguration<EMRClient>, input: DescribeStepCommandInput) => Promise<WaiterResult>;
9
+ export declare const waitForStepComplete: (params: WaiterConfiguration<EMRClient>, input: DescribeStepCommandInput) => Promise<WaiterResult<DescribeStepCommandOutput | EMRServiceException>>;
9
10
  /**
10
11
  *
11
12
  * @param params - Waiter configuration options.
12
13
  * @param input - The input to DescribeStepCommand for polling.
13
14
  */
14
- export declare const waitUntilStepComplete: (params: WaiterConfiguration<EMRClient>, input: DescribeStepCommandInput) => Promise<WaiterResult>;
15
+ export declare const waitUntilStepComplete: (params: WaiterConfiguration<EMRClient>, input: DescribeStepCommandInput) => Promise<WaiterResult<DescribeStepCommandOutput>>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-emr",
3
3
  "description": "AWS SDK for JavaScript Emr Client for Node.js, Browser and React Native",
4
- "version": "3.1036.0",
4
+ "version": "3.1038.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",
@@ -23,17 +23,17 @@
23
23
  "dependencies": {
24
24
  "@aws-crypto/sha256-browser": "5.2.0",
25
25
  "@aws-crypto/sha256-js": "5.2.0",
26
- "@aws-sdk/core": "^3.974.5",
27
- "@aws-sdk/credential-provider-node": "^3.972.36",
26
+ "@aws-sdk/core": "^3.974.6",
27
+ "@aws-sdk/credential-provider-node": "^3.972.37",
28
28
  "@aws-sdk/middleware-host-header": "^3.972.10",
29
29
  "@aws-sdk/middleware-logger": "^3.972.10",
30
30
  "@aws-sdk/middleware-recursion-detection": "^3.972.11",
31
- "@aws-sdk/middleware-user-agent": "^3.972.35",
31
+ "@aws-sdk/middleware-user-agent": "^3.972.36",
32
32
  "@aws-sdk/region-config-resolver": "^3.972.13",
33
33
  "@aws-sdk/types": "^3.973.8",
34
34
  "@aws-sdk/util-endpoints": "^3.996.8",
35
35
  "@aws-sdk/util-user-agent-browser": "^3.972.10",
36
- "@aws-sdk/util-user-agent-node": "^3.973.21",
36
+ "@aws-sdk/util-user-agent-node": "^3.973.22",
37
37
  "@smithy/config-resolver": "^4.4.17",
38
38
  "@smithy/core": "^3.23.17",
39
39
  "@smithy/fetch-http-handler": "^5.3.17",
@@ -41,7 +41,7 @@
41
41
  "@smithy/invalid-dependency": "^4.2.14",
42
42
  "@smithy/middleware-content-length": "^4.2.14",
43
43
  "@smithy/middleware-endpoint": "^4.4.32",
44
- "@smithy/middleware-retry": "^4.5.5",
44
+ "@smithy/middleware-retry": "^4.5.6",
45
45
  "@smithy/middleware-serde": "^4.2.20",
46
46
  "@smithy/middleware-stack": "^4.2.14",
47
47
  "@smithy/node-config-provider": "^4.3.14",
@@ -57,9 +57,9 @@
57
57
  "@smithy/util-defaults-mode-node": "^4.2.54",
58
58
  "@smithy/util-endpoints": "^3.4.2",
59
59
  "@smithy/util-middleware": "^4.2.14",
60
- "@smithy/util-retry": "^4.3.4",
60
+ "@smithy/util-retry": "^4.3.5",
61
61
  "@smithy/util-utf8": "^4.2.2",
62
- "@smithy/util-waiter": "^4.2.16",
62
+ "@smithy/util-waiter": "^4.3.0",
63
63
  "tslib": "^2.6.2"
64
64
  },
65
65
  "devDependencies": {