@aws-sdk/client-arc-region-switch 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-es/waiters/waitForPlanExecutionCompleted.js +1 -1
- package/dist-types/ARCRegionSwitch.d.ts +2 -2
- package/dist-types/ts3.4/ARCRegionSwitch.d.ts +2 -2
- package/dist-types/ts3.4/waiters/waitForPlanEvaluationStatusPassed.d.ts +11 -3
- package/dist-types/ts3.4/waiters/waitForPlanExecutionCompleted.d.ts +9 -3
- package/dist-types/waiters/waitForPlanEvaluationStatusPassed.d.ts +4 -3
- package/dist-types/waiters/waitForPlanExecutionCompleted.d.ts +4 -3
- package/package.json +8 -8
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { checkExceptions, createWaiter, WaiterState, } from "@smithy/util-waiter";
|
|
2
|
-
import { GetPlanExecutionCommand } from "../commands/GetPlanExecutionCommand";
|
|
2
|
+
import { GetPlanExecutionCommand, } from "../commands/GetPlanExecutionCommand";
|
|
3
3
|
const checkState = async (client, input) => {
|
|
4
4
|
let reason;
|
|
5
5
|
try {
|
|
@@ -212,13 +212,13 @@ export interface ARCRegionSwitch {
|
|
|
212
212
|
* @param args - command input.
|
|
213
213
|
* @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
|
|
214
214
|
*/
|
|
215
|
-
waitUntilPlanEvaluationStatusPassed(args: GetPlanEvaluationStatusCommandInput, waiterConfig: number | Omit<WaiterConfiguration<ARCRegionSwitch>, "client">): Promise<WaiterResult
|
|
215
|
+
waitUntilPlanEvaluationStatusPassed(args: GetPlanEvaluationStatusCommandInput, waiterConfig: number | Omit<WaiterConfiguration<ARCRegionSwitch>, "client">): Promise<WaiterResult<GetPlanEvaluationStatusCommandOutput>>;
|
|
216
216
|
/**
|
|
217
217
|
* @see {@link GetPlanExecutionCommand}
|
|
218
218
|
* @param args - command input.
|
|
219
219
|
* @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
|
|
220
220
|
*/
|
|
221
|
-
waitUntilPlanExecutionCompleted(args: GetPlanExecutionCommandInput, waiterConfig: number | Omit<WaiterConfiguration<ARCRegionSwitch>, "client">): Promise<WaiterResult
|
|
221
|
+
waitUntilPlanExecutionCompleted(args: GetPlanExecutionCommandInput, waiterConfig: number | Omit<WaiterConfiguration<ARCRegionSwitch>, "client">): Promise<WaiterResult<GetPlanExecutionCommandOutput>>;
|
|
222
222
|
}
|
|
223
223
|
/**
|
|
224
224
|
* <p>Amazon Application Recovery Controller (ARC) Region switch helps you to quickly and reliably shift traffic away from an impaired Amazon Web Services Region to a healthy Region. With Region switch, you can create plans that define the steps to shift traffic for your application from one Amazon Web Services Region to another.</p> <p>Region switch provides a structured approach to multi-Region failover, helping you to meet your recovery time objectives (RTOs) and maintain business continuity during regional disruptions.</p> <p>For more information, see <a href="https://docs.aws.amazon.com/r53recovery/latest/dg/region-switch.html">Region switch in ARC</a> in the <i>Amazon Application Recovery Controller User Guide</i>.</p>
|
|
@@ -430,7 +430,7 @@ export interface ARCRegionSwitch {
|
|
|
430
430
|
WaiterConfiguration<ARCRegionSwitch>,
|
|
431
431
|
Exclude<keyof WaiterConfiguration<ARCRegionSwitch>, "client">
|
|
432
432
|
>
|
|
433
|
-
): Promise<WaiterResult
|
|
433
|
+
): Promise<WaiterResult<GetPlanEvaluationStatusCommandOutput>>;
|
|
434
434
|
waitUntilPlanExecutionCompleted(
|
|
435
435
|
args: GetPlanExecutionCommandInput,
|
|
436
436
|
waiterConfig:
|
|
@@ -439,7 +439,7 @@ export interface ARCRegionSwitch {
|
|
|
439
439
|
WaiterConfiguration<ARCRegionSwitch>,
|
|
440
440
|
Exclude<keyof WaiterConfiguration<ARCRegionSwitch>, "client">
|
|
441
441
|
>
|
|
442
|
-
): Promise<WaiterResult
|
|
442
|
+
): Promise<WaiterResult<GetPlanExecutionCommandOutput>>;
|
|
443
443
|
}
|
|
444
444
|
export declare class ARCRegionSwitch
|
|
445
445
|
extends ARCRegionSwitchClient
|
|
@@ -1,11 +1,19 @@
|
|
|
1
1
|
import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
|
|
2
2
|
import { ARCRegionSwitchClient } from "../ARCRegionSwitchClient";
|
|
3
|
-
import {
|
|
3
|
+
import {
|
|
4
|
+
GetPlanEvaluationStatusCommandInput,
|
|
5
|
+
GetPlanEvaluationStatusCommandOutput,
|
|
6
|
+
} from "../commands/GetPlanEvaluationStatusCommand";
|
|
7
|
+
import { ARCRegionSwitchServiceException } from "../models/ARCRegionSwitchServiceException";
|
|
4
8
|
export declare const waitForPlanEvaluationStatusPassed: (
|
|
5
9
|
params: WaiterConfiguration<ARCRegionSwitchClient>,
|
|
6
10
|
input: GetPlanEvaluationStatusCommandInput
|
|
7
|
-
) => Promise<
|
|
11
|
+
) => Promise<
|
|
12
|
+
WaiterResult<
|
|
13
|
+
GetPlanEvaluationStatusCommandOutput | ARCRegionSwitchServiceException
|
|
14
|
+
>
|
|
15
|
+
>;
|
|
8
16
|
export declare const waitUntilPlanEvaluationStatusPassed: (
|
|
9
17
|
params: WaiterConfiguration<ARCRegionSwitchClient>,
|
|
10
18
|
input: GetPlanEvaluationStatusCommandInput
|
|
11
|
-
) => Promise<WaiterResult
|
|
19
|
+
) => Promise<WaiterResult<GetPlanEvaluationStatusCommandOutput>>;
|
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
|
|
2
2
|
import { ARCRegionSwitchClient } from "../ARCRegionSwitchClient";
|
|
3
|
-
import {
|
|
3
|
+
import {
|
|
4
|
+
GetPlanExecutionCommandInput,
|
|
5
|
+
GetPlanExecutionCommandOutput,
|
|
6
|
+
} from "../commands/GetPlanExecutionCommand";
|
|
7
|
+
import { ARCRegionSwitchServiceException } from "../models/ARCRegionSwitchServiceException";
|
|
4
8
|
export declare const waitForPlanExecutionCompleted: (
|
|
5
9
|
params: WaiterConfiguration<ARCRegionSwitchClient>,
|
|
6
10
|
input: GetPlanExecutionCommandInput
|
|
7
|
-
) => Promise<
|
|
11
|
+
) => Promise<
|
|
12
|
+
WaiterResult<GetPlanExecutionCommandOutput | ARCRegionSwitchServiceException>
|
|
13
|
+
>;
|
|
8
14
|
export declare const waitUntilPlanExecutionCompleted: (
|
|
9
15
|
params: WaiterConfiguration<ARCRegionSwitchClient>,
|
|
10
16
|
input: GetPlanExecutionCommandInput
|
|
11
|
-
) => Promise<WaiterResult
|
|
17
|
+
) => Promise<WaiterResult<GetPlanExecutionCommandOutput>>;
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { type WaiterConfiguration, type WaiterResult } from "@smithy/util-waiter";
|
|
2
2
|
import type { ARCRegionSwitchClient } from "../ARCRegionSwitchClient";
|
|
3
|
-
import { type GetPlanEvaluationStatusCommandInput } from "../commands/GetPlanEvaluationStatusCommand";
|
|
3
|
+
import { type GetPlanEvaluationStatusCommandInput, type GetPlanEvaluationStatusCommandOutput } from "../commands/GetPlanEvaluationStatusCommand";
|
|
4
|
+
import type { ARCRegionSwitchServiceException } from "../models/ARCRegionSwitchServiceException";
|
|
4
5
|
/**
|
|
5
6
|
*
|
|
6
7
|
* @deprecated Use waitUntilPlanEvaluationStatusPassed instead. waitForPlanEvaluationStatusPassed does not throw error in non-success cases.
|
|
7
8
|
*/
|
|
8
|
-
export declare const waitForPlanEvaluationStatusPassed: (params: WaiterConfiguration<ARCRegionSwitchClient>, input: GetPlanEvaluationStatusCommandInput) => Promise<WaiterResult
|
|
9
|
+
export declare const waitForPlanEvaluationStatusPassed: (params: WaiterConfiguration<ARCRegionSwitchClient>, input: GetPlanEvaluationStatusCommandInput) => Promise<WaiterResult<GetPlanEvaluationStatusCommandOutput | ARCRegionSwitchServiceException>>;
|
|
9
10
|
/**
|
|
10
11
|
*
|
|
11
12
|
* @param params - Waiter configuration options.
|
|
12
13
|
* @param input - The input to GetPlanEvaluationStatusCommand for polling.
|
|
13
14
|
*/
|
|
14
|
-
export declare const waitUntilPlanEvaluationStatusPassed: (params: WaiterConfiguration<ARCRegionSwitchClient>, input: GetPlanEvaluationStatusCommandInput) => Promise<WaiterResult
|
|
15
|
+
export declare const waitUntilPlanEvaluationStatusPassed: (params: WaiterConfiguration<ARCRegionSwitchClient>, input: GetPlanEvaluationStatusCommandInput) => Promise<WaiterResult<GetPlanEvaluationStatusCommandOutput>>;
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { type WaiterConfiguration, type WaiterResult } from "@smithy/util-waiter";
|
|
2
2
|
import type { ARCRegionSwitchClient } from "../ARCRegionSwitchClient";
|
|
3
|
-
import { type GetPlanExecutionCommandInput } from "../commands/GetPlanExecutionCommand";
|
|
3
|
+
import { type GetPlanExecutionCommandInput, type GetPlanExecutionCommandOutput } from "../commands/GetPlanExecutionCommand";
|
|
4
|
+
import type { ARCRegionSwitchServiceException } from "../models/ARCRegionSwitchServiceException";
|
|
4
5
|
/**
|
|
5
6
|
*
|
|
6
7
|
* @deprecated Use waitUntilPlanExecutionCompleted instead. waitForPlanExecutionCompleted does not throw error in non-success cases.
|
|
7
8
|
*/
|
|
8
|
-
export declare const waitForPlanExecutionCompleted: (params: WaiterConfiguration<ARCRegionSwitchClient>, input: GetPlanExecutionCommandInput) => Promise<WaiterResult
|
|
9
|
+
export declare const waitForPlanExecutionCompleted: (params: WaiterConfiguration<ARCRegionSwitchClient>, input: GetPlanExecutionCommandInput) => Promise<WaiterResult<GetPlanExecutionCommandOutput | ARCRegionSwitchServiceException>>;
|
|
9
10
|
/**
|
|
10
11
|
*
|
|
11
12
|
* @param params - Waiter configuration options.
|
|
12
13
|
* @param input - The input to GetPlanExecutionCommand for polling.
|
|
13
14
|
*/
|
|
14
|
-
export declare const waitUntilPlanExecutionCompleted: (params: WaiterConfiguration<ARCRegionSwitchClient>, input: GetPlanExecutionCommandInput) => Promise<WaiterResult
|
|
15
|
+
export declare const waitUntilPlanExecutionCompleted: (params: WaiterConfiguration<ARCRegionSwitchClient>, input: GetPlanExecutionCommandInput) => Promise<WaiterResult<GetPlanExecutionCommandOutput>>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-arc-region-switch",
|
|
3
3
|
"description": "AWS SDK for JavaScript Arc Region Switch 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-arc-region-switch",
|
|
@@ -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": {
|