@aws-sdk/client-ssm 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.
package/dist-cjs/index.js CHANGED
@@ -2046,7 +2046,7 @@ const checkState = async (client, input) => {
2046
2046
  }
2047
2047
  catch (exception) {
2048
2048
  reason = exception;
2049
- if (exception.name && exception.name == "InvocationDoesNotExist") {
2049
+ if (exception.name === "InvocationDoesNotExist") {
2050
2050
  return { state: utilWaiter.WaiterState.RETRY, reason };
2051
2051
  }
2052
2052
  }
@@ -80,7 +80,7 @@ const checkState = async (client, input) => {
80
80
  }
81
81
  catch (exception) {
82
82
  reason = exception;
83
- if (exception.name && exception.name == "InvocationDoesNotExist") {
83
+ if (exception.name === "InvocationDoesNotExist") {
84
84
  return { state: WaiterState.RETRY, reason };
85
85
  }
86
86
  }
@@ -1409,7 +1409,7 @@ export interface SSM {
1409
1409
  * @param args - command input.
1410
1410
  * @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
1411
1411
  */
1412
- waitUntilCommandExecuted(args: GetCommandInvocationCommandInput, waiterConfig: number | Omit<WaiterConfiguration<SSM>, "client">): Promise<WaiterResult>;
1412
+ waitUntilCommandExecuted(args: GetCommandInvocationCommandInput, waiterConfig: number | Omit<WaiterConfiguration<SSM>, "client">): Promise<WaiterResult<GetCommandInvocationCommandOutput>>;
1413
1413
  }
1414
1414
  /**
1415
1415
  * <p>Amazon Web Services Systems Manager is the operations hub for your Amazon Web Services applications and resources and a secure
@@ -2991,6 +2991,6 @@ export interface SSM {
2991
2991
  WaiterConfiguration<SSM>,
2992
2992
  Exclude<keyof WaiterConfiguration<SSM>, "client">
2993
2993
  >
2994
- ): Promise<WaiterResult>;
2994
+ ): Promise<WaiterResult<GetCommandInvocationCommandOutput>>;
2995
2995
  }
2996
2996
  export declare class SSM extends SSMClient implements SSM {}
@@ -1,11 +1,17 @@
1
1
  import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
2
- import { GetCommandInvocationCommandInput } from "../commands/GetCommandInvocationCommand";
2
+ import {
3
+ GetCommandInvocationCommandInput,
4
+ GetCommandInvocationCommandOutput,
5
+ } from "../commands/GetCommandInvocationCommand";
6
+ import { SSMServiceException } from "../models/SSMServiceException";
3
7
  import { SSMClient } from "../SSMClient";
4
8
  export declare const waitForCommandExecuted: (
5
9
  params: WaiterConfiguration<SSMClient>,
6
10
  input: GetCommandInvocationCommandInput
7
- ) => Promise<WaiterResult>;
11
+ ) => Promise<
12
+ WaiterResult<GetCommandInvocationCommandOutput | SSMServiceException>
13
+ >;
8
14
  export declare const waitUntilCommandExecuted: (
9
15
  params: WaiterConfiguration<SSMClient>,
10
16
  input: GetCommandInvocationCommandInput
11
- ) => Promise<WaiterResult>;
17
+ ) => Promise<WaiterResult<GetCommandInvocationCommandOutput>>;
@@ -1,14 +1,15 @@
1
1
  import { type WaiterConfiguration, type WaiterResult } from "@smithy/util-waiter";
2
- import { type GetCommandInvocationCommandInput } from "../commands/GetCommandInvocationCommand";
2
+ import { type GetCommandInvocationCommandInput, type GetCommandInvocationCommandOutput } from "../commands/GetCommandInvocationCommand";
3
+ import type { SSMServiceException } from "../models/SSMServiceException";
3
4
  import type { SSMClient } from "../SSMClient";
4
5
  /**
5
6
  *
6
7
  * @deprecated Use waitUntilCommandExecuted instead. waitForCommandExecuted does not throw error in non-success cases.
7
8
  */
8
- export declare const waitForCommandExecuted: (params: WaiterConfiguration<SSMClient>, input: GetCommandInvocationCommandInput) => Promise<WaiterResult>;
9
+ export declare const waitForCommandExecuted: (params: WaiterConfiguration<SSMClient>, input: GetCommandInvocationCommandInput) => Promise<WaiterResult<GetCommandInvocationCommandOutput | SSMServiceException>>;
9
10
  /**
10
11
  *
11
12
  * @param params - Waiter configuration options.
12
13
  * @param input - The input to GetCommandInvocationCommand for polling.
13
14
  */
14
- export declare const waitUntilCommandExecuted: (params: WaiterConfiguration<SSMClient>, input: GetCommandInvocationCommandInput) => Promise<WaiterResult>;
15
+ export declare const waitUntilCommandExecuted: (params: WaiterConfiguration<SSMClient>, input: GetCommandInvocationCommandInput) => Promise<WaiterResult<GetCommandInvocationCommandOutput>>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-ssm",
3
3
  "description": "AWS SDK for JavaScript Ssm 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-ssm",
@@ -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": {