@aws-sdk/client-ssm-incidents 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 +1 -1
- package/dist-es/waiters/waitForWaitForReplicationSetActive.js +1 -1
- package/dist-es/waiters/waitForWaitForReplicationSetDeleted.js +2 -2
- package/dist-types/SSMIncidents.d.ts +3 -2
- package/dist-types/ts3.4/SSMIncidents.d.ts +3 -2
- package/dist-types/ts3.4/waiters/waitForWaitForReplicationSetActive.d.ts +9 -3
- package/dist-types/ts3.4/waiters/waitForWaitForReplicationSetDeleted.d.ts +10 -3
- package/dist-types/waiters/waitForWaitForReplicationSetActive.d.ts +4 -3
- package/dist-types/waiters/waitForWaitForReplicationSetDeleted.d.ts +5 -3
- package/package.json +8 -8
package/dist-cjs/index.js
CHANGED
|
@@ -583,7 +583,7 @@ const checkState = async (client, input) => {
|
|
|
583
583
|
}
|
|
584
584
|
catch (exception) {
|
|
585
585
|
reason = exception;
|
|
586
|
-
if (exception.name
|
|
586
|
+
if (exception.name === "ResourceNotFoundException") {
|
|
587
587
|
return { state: utilWaiter.WaiterState.SUCCESS, reason };
|
|
588
588
|
}
|
|
589
589
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { checkExceptions, createWaiter, WaiterState, } from "@smithy/util-waiter";
|
|
2
|
-
import { GetReplicationSetCommand } from "../commands/GetReplicationSetCommand";
|
|
2
|
+
import { GetReplicationSetCommand, } from "../commands/GetReplicationSetCommand";
|
|
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 { GetReplicationSetCommand } from "../commands/GetReplicationSetCommand";
|
|
2
|
+
import { GetReplicationSetCommand, } from "../commands/GetReplicationSetCommand";
|
|
3
3
|
const checkState = async (client, input) => {
|
|
4
4
|
let reason;
|
|
5
5
|
try {
|
|
@@ -26,7 +26,7 @@ const checkState = async (client, input) => {
|
|
|
26
26
|
}
|
|
27
27
|
catch (exception) {
|
|
28
28
|
reason = exception;
|
|
29
|
-
if (exception.name
|
|
29
|
+
if (exception.name === "ResourceNotFoundException") {
|
|
30
30
|
return { state: WaiterState.SUCCESS, reason };
|
|
31
31
|
}
|
|
32
32
|
}
|
|
@@ -31,6 +31,7 @@ import { type UpdateRelatedItemsCommandInput, type UpdateRelatedItemsCommandOutp
|
|
|
31
31
|
import { type UpdateReplicationSetCommandInput, type UpdateReplicationSetCommandOutput } from "./commands/UpdateReplicationSetCommand";
|
|
32
32
|
import { type UpdateResponsePlanCommandInput, type UpdateResponsePlanCommandOutput } from "./commands/UpdateResponsePlanCommand";
|
|
33
33
|
import { type UpdateTimelineEventCommandInput, type UpdateTimelineEventCommandOutput } from "./commands/UpdateTimelineEventCommand";
|
|
34
|
+
import type { ResourceNotFoundException } from "./models/errors";
|
|
34
35
|
import { SSMIncidentsClient } from "./SSMIncidentsClient";
|
|
35
36
|
export interface SSMIncidents {
|
|
36
37
|
/**
|
|
@@ -276,13 +277,13 @@ export interface SSMIncidents {
|
|
|
276
277
|
* @param args - command input.
|
|
277
278
|
* @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
|
|
278
279
|
*/
|
|
279
|
-
waitUntilWaitForReplicationSetActive(args: GetReplicationSetCommandInput, waiterConfig: number | Omit<WaiterConfiguration<SSMIncidents>, "client">): Promise<WaiterResult
|
|
280
|
+
waitUntilWaitForReplicationSetActive(args: GetReplicationSetCommandInput, waiterConfig: number | Omit<WaiterConfiguration<SSMIncidents>, "client">): Promise<WaiterResult<GetReplicationSetCommandOutput>>;
|
|
280
281
|
/**
|
|
281
282
|
* @see {@link GetReplicationSetCommand}
|
|
282
283
|
* @param args - command input.
|
|
283
284
|
* @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
|
|
284
285
|
*/
|
|
285
|
-
waitUntilWaitForReplicationSetDeleted(args: GetReplicationSetCommandInput, waiterConfig: number | Omit<WaiterConfiguration<SSMIncidents>, "client">): Promise<WaiterResult
|
|
286
|
+
waitUntilWaitForReplicationSetDeleted(args: GetReplicationSetCommandInput, waiterConfig: number | Omit<WaiterConfiguration<SSMIncidents>, "client">): Promise<WaiterResult<ResourceNotFoundException>>;
|
|
286
287
|
}
|
|
287
288
|
/**
|
|
288
289
|
* <p>Systems Manager Incident Manager is an incident management console designed to help users
|
|
@@ -129,6 +129,7 @@ import {
|
|
|
129
129
|
UpdateTimelineEventCommandInput,
|
|
130
130
|
UpdateTimelineEventCommandOutput,
|
|
131
131
|
} from "./commands/UpdateTimelineEventCommand";
|
|
132
|
+
import { ResourceNotFoundException } from "./models/errors";
|
|
132
133
|
import { SSMIncidentsClient } from "./SSMIncidentsClient";
|
|
133
134
|
export interface SSMIncidents {
|
|
134
135
|
batchGetIncidentFindings(
|
|
@@ -594,7 +595,7 @@ export interface SSMIncidents {
|
|
|
594
595
|
WaiterConfiguration<SSMIncidents>,
|
|
595
596
|
Exclude<keyof WaiterConfiguration<SSMIncidents>, "client">
|
|
596
597
|
>
|
|
597
|
-
): Promise<WaiterResult
|
|
598
|
+
): Promise<WaiterResult<GetReplicationSetCommandOutput>>;
|
|
598
599
|
waitUntilWaitForReplicationSetDeleted(
|
|
599
600
|
args: GetReplicationSetCommandInput,
|
|
600
601
|
waiterConfig:
|
|
@@ -603,7 +604,7 @@ export interface SSMIncidents {
|
|
|
603
604
|
WaiterConfiguration<SSMIncidents>,
|
|
604
605
|
Exclude<keyof WaiterConfiguration<SSMIncidents>, "client">
|
|
605
606
|
>
|
|
606
|
-
): Promise<WaiterResult
|
|
607
|
+
): Promise<WaiterResult<ResourceNotFoundException>>;
|
|
607
608
|
}
|
|
608
609
|
export declare class SSMIncidents
|
|
609
610
|
extends SSMIncidentsClient
|
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
|
|
2
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
GetReplicationSetCommandInput,
|
|
4
|
+
GetReplicationSetCommandOutput,
|
|
5
|
+
} from "../commands/GetReplicationSetCommand";
|
|
6
|
+
import { SSMIncidentsServiceException } from "../models/SSMIncidentsServiceException";
|
|
3
7
|
import { SSMIncidentsClient } from "../SSMIncidentsClient";
|
|
4
8
|
export declare const waitForWaitForReplicationSetActive: (
|
|
5
9
|
params: WaiterConfiguration<SSMIncidentsClient>,
|
|
6
10
|
input: GetReplicationSetCommandInput
|
|
7
|
-
) => Promise<
|
|
11
|
+
) => Promise<
|
|
12
|
+
WaiterResult<GetReplicationSetCommandOutput | SSMIncidentsServiceException>
|
|
13
|
+
>;
|
|
8
14
|
export declare const waitUntilWaitForReplicationSetActive: (
|
|
9
15
|
params: WaiterConfiguration<SSMIncidentsClient>,
|
|
10
16
|
input: GetReplicationSetCommandInput
|
|
11
|
-
) => Promise<WaiterResult
|
|
17
|
+
) => Promise<WaiterResult<GetReplicationSetCommandOutput>>;
|
|
@@ -1,11 +1,18 @@
|
|
|
1
1
|
import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
|
|
2
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
GetReplicationSetCommandInput,
|
|
4
|
+
GetReplicationSetCommandOutput,
|
|
5
|
+
} from "../commands/GetReplicationSetCommand";
|
|
6
|
+
import { ResourceNotFoundException } from "../models/errors";
|
|
7
|
+
import { SSMIncidentsServiceException } from "../models/SSMIncidentsServiceException";
|
|
3
8
|
import { SSMIncidentsClient } from "../SSMIncidentsClient";
|
|
4
9
|
export declare const waitForWaitForReplicationSetDeleted: (
|
|
5
10
|
params: WaiterConfiguration<SSMIncidentsClient>,
|
|
6
11
|
input: GetReplicationSetCommandInput
|
|
7
|
-
) => Promise<
|
|
12
|
+
) => Promise<
|
|
13
|
+
WaiterResult<GetReplicationSetCommandOutput | SSMIncidentsServiceException>
|
|
14
|
+
>;
|
|
8
15
|
export declare const waitUntilWaitForReplicationSetDeleted: (
|
|
9
16
|
params: WaiterConfiguration<SSMIncidentsClient>,
|
|
10
17
|
input: GetReplicationSetCommandInput
|
|
11
|
-
) => Promise<WaiterResult
|
|
18
|
+
) => Promise<WaiterResult<ResourceNotFoundException>>;
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { type WaiterConfiguration, type WaiterResult } from "@smithy/util-waiter";
|
|
2
|
-
import { type GetReplicationSetCommandInput } from "../commands/GetReplicationSetCommand";
|
|
2
|
+
import { type GetReplicationSetCommandInput, type GetReplicationSetCommandOutput } from "../commands/GetReplicationSetCommand";
|
|
3
|
+
import type { SSMIncidentsServiceException } from "../models/SSMIncidentsServiceException";
|
|
3
4
|
import type { SSMIncidentsClient } from "../SSMIncidentsClient";
|
|
4
5
|
/**
|
|
5
6
|
* Wait for a replication set to become ACTIVE
|
|
6
7
|
* @deprecated Use waitUntilWaitForReplicationSetActive instead. waitForWaitForReplicationSetActive does not throw error in non-success cases.
|
|
7
8
|
*/
|
|
8
|
-
export declare const waitForWaitForReplicationSetActive: (params: WaiterConfiguration<SSMIncidentsClient>, input: GetReplicationSetCommandInput) => Promise<WaiterResult
|
|
9
|
+
export declare const waitForWaitForReplicationSetActive: (params: WaiterConfiguration<SSMIncidentsClient>, input: GetReplicationSetCommandInput) => Promise<WaiterResult<GetReplicationSetCommandOutput | SSMIncidentsServiceException>>;
|
|
9
10
|
/**
|
|
10
11
|
* Wait for a replication set to become ACTIVE
|
|
11
12
|
* @param params - Waiter configuration options.
|
|
12
13
|
* @param input - The input to GetReplicationSetCommand for polling.
|
|
13
14
|
*/
|
|
14
|
-
export declare const waitUntilWaitForReplicationSetActive: (params: WaiterConfiguration<SSMIncidentsClient>, input: GetReplicationSetCommandInput) => Promise<WaiterResult
|
|
15
|
+
export declare const waitUntilWaitForReplicationSetActive: (params: WaiterConfiguration<SSMIncidentsClient>, input: GetReplicationSetCommandInput) => Promise<WaiterResult<GetReplicationSetCommandOutput>>;
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import { type WaiterConfiguration, type WaiterResult } from "@smithy/util-waiter";
|
|
2
|
-
import { type GetReplicationSetCommandInput } from "../commands/GetReplicationSetCommand";
|
|
2
|
+
import { type GetReplicationSetCommandInput, type GetReplicationSetCommandOutput } from "../commands/GetReplicationSetCommand";
|
|
3
|
+
import type { ResourceNotFoundException } from "../models/errors";
|
|
4
|
+
import type { SSMIncidentsServiceException } from "../models/SSMIncidentsServiceException";
|
|
3
5
|
import type { SSMIncidentsClient } from "../SSMIncidentsClient";
|
|
4
6
|
/**
|
|
5
7
|
* Wait for a replication set to be deleted
|
|
6
8
|
* @deprecated Use waitUntilWaitForReplicationSetDeleted instead. waitForWaitForReplicationSetDeleted does not throw error in non-success cases.
|
|
7
9
|
*/
|
|
8
|
-
export declare const waitForWaitForReplicationSetDeleted: (params: WaiterConfiguration<SSMIncidentsClient>, input: GetReplicationSetCommandInput) => Promise<WaiterResult
|
|
10
|
+
export declare const waitForWaitForReplicationSetDeleted: (params: WaiterConfiguration<SSMIncidentsClient>, input: GetReplicationSetCommandInput) => Promise<WaiterResult<GetReplicationSetCommandOutput | SSMIncidentsServiceException>>;
|
|
9
11
|
/**
|
|
10
12
|
* Wait for a replication set to be deleted
|
|
11
13
|
* @param params - Waiter configuration options.
|
|
12
14
|
* @param input - The input to GetReplicationSetCommand for polling.
|
|
13
15
|
*/
|
|
14
|
-
export declare const waitUntilWaitForReplicationSetDeleted: (params: WaiterConfiguration<SSMIncidentsClient>, input: GetReplicationSetCommandInput) => Promise<WaiterResult
|
|
16
|
+
export declare const waitUntilWaitForReplicationSetDeleted: (params: WaiterConfiguration<SSMIncidentsClient>, input: GetReplicationSetCommandInput) => Promise<WaiterResult<ResourceNotFoundException>>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-ssm-incidents",
|
|
3
3
|
"description": "AWS SDK for JavaScript Ssm Incidents Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
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-incidents",
|
|
@@ -21,17 +21,17 @@
|
|
|
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.974.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
24
|
+
"@aws-sdk/core": "^3.974.6",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "^3.972.37",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "^3.972.10",
|
|
27
27
|
"@aws-sdk/middleware-logger": "^3.972.10",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "^3.972.11",
|
|
29
|
-
"@aws-sdk/middleware-user-agent": "^3.972.
|
|
29
|
+
"@aws-sdk/middleware-user-agent": "^3.972.36",
|
|
30
30
|
"@aws-sdk/region-config-resolver": "^3.972.13",
|
|
31
31
|
"@aws-sdk/types": "^3.973.8",
|
|
32
32
|
"@aws-sdk/util-endpoints": "^3.996.8",
|
|
33
33
|
"@aws-sdk/util-user-agent-browser": "^3.972.10",
|
|
34
|
-
"@aws-sdk/util-user-agent-node": "^3.973.
|
|
34
|
+
"@aws-sdk/util-user-agent-node": "^3.973.22",
|
|
35
35
|
"@smithy/config-resolver": "^4.4.17",
|
|
36
36
|
"@smithy/core": "^3.23.17",
|
|
37
37
|
"@smithy/fetch-http-handler": "^5.3.17",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"@smithy/invalid-dependency": "^4.2.14",
|
|
40
40
|
"@smithy/middleware-content-length": "^4.2.14",
|
|
41
41
|
"@smithy/middleware-endpoint": "^4.4.32",
|
|
42
|
-
"@smithy/middleware-retry": "^4.5.
|
|
42
|
+
"@smithy/middleware-retry": "^4.5.6",
|
|
43
43
|
"@smithy/middleware-serde": "^4.2.20",
|
|
44
44
|
"@smithy/middleware-stack": "^4.2.14",
|
|
45
45
|
"@smithy/node-config-provider": "^4.3.14",
|
|
@@ -55,9 +55,9 @@
|
|
|
55
55
|
"@smithy/util-defaults-mode-node": "^4.2.54",
|
|
56
56
|
"@smithy/util-endpoints": "^3.4.2",
|
|
57
57
|
"@smithy/util-middleware": "^4.2.14",
|
|
58
|
-
"@smithy/util-retry": "^4.3.
|
|
58
|
+
"@smithy/util-retry": "^4.3.5",
|
|
59
59
|
"@smithy/util-utf8": "^4.2.2",
|
|
60
|
-
"@smithy/util-waiter": "^4.
|
|
60
|
+
"@smithy/util-waiter": "^4.3.0",
|
|
61
61
|
"tslib": "^2.6.2"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|