@aws-sdk/client-arc-region-switch 3.893.0 → 3.894.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 +1931 -11
- package/package.json +6 -6
- package/dist-cjs/ARCRegionSwitch.js +0 -51
- package/dist-cjs/ARCRegionSwitchClient.js +0 -52
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +0 -43
- package/dist-cjs/commands/ApprovePlanExecutionStepCommand.js +0 -26
- package/dist-cjs/commands/CancelPlanExecutionCommand.js +0 -26
- package/dist-cjs/commands/CreatePlanCommand.js +0 -29
- package/dist-cjs/commands/DeletePlanCommand.js +0 -29
- package/dist-cjs/commands/GetPlanCommand.js +0 -29
- package/dist-cjs/commands/GetPlanEvaluationStatusCommand.js +0 -26
- package/dist-cjs/commands/GetPlanExecutionCommand.js +0 -26
- package/dist-cjs/commands/GetPlanInRegionCommand.js +0 -26
- package/dist-cjs/commands/ListPlanExecutionEventsCommand.js +0 -26
- package/dist-cjs/commands/ListPlanExecutionsCommand.js +0 -26
- package/dist-cjs/commands/ListPlansCommand.js +0 -29
- package/dist-cjs/commands/ListPlansInRegionCommand.js +0 -26
- package/dist-cjs/commands/ListRoute53HealthChecksCommand.js +0 -29
- package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -29
- package/dist-cjs/commands/StartPlanExecutionCommand.js +0 -26
- package/dist-cjs/commands/TagResourceCommand.js +0 -29
- package/dist-cjs/commands/UntagResourceCommand.js +0 -29
- package/dist-cjs/commands/UpdatePlanCommand.js +0 -29
- package/dist-cjs/commands/UpdatePlanExecutionCommand.js +0 -26
- package/dist-cjs/commands/UpdatePlanExecutionStepCommand.js +0 -26
- package/dist-cjs/commands/index.js +0 -23
- package/dist-cjs/endpoint/EndpointParameters.js +0 -15
- package/dist-cjs/extensionConfiguration.js +0 -2
- package/dist-cjs/models/ARCRegionSwitchServiceException.js +0 -12
- package/dist-cjs/models/index.js +0 -4
- package/dist-cjs/models/models_0.js +0 -233
- package/dist-cjs/pagination/GetPlanEvaluationStatusPaginator.js +0 -7
- package/dist-cjs/pagination/GetPlanExecutionPaginator.js +0 -7
- package/dist-cjs/pagination/Interfaces.js +0 -2
- package/dist-cjs/pagination/ListPlanExecutionEventsPaginator.js +0 -7
- package/dist-cjs/pagination/ListPlanExecutionsPaginator.js +0 -7
- package/dist-cjs/pagination/ListPlansInRegionPaginator.js +0 -7
- package/dist-cjs/pagination/ListPlansPaginator.js +0 -7
- package/dist-cjs/pagination/ListRoute53HealthChecksPaginator.js +0 -7
- package/dist-cjs/pagination/index.js +0 -11
- package/dist-cjs/protocols/Aws_json1_0.js +0 -919
- package/dist-cjs/runtimeExtensions.js +0 -13
- package/dist-cjs/waiters/index.js +0 -5
- package/dist-cjs/waiters/waitForPlanEvaluationStatusPassed.js +0 -54
- package/dist-cjs/waiters/waitForPlanExecutionCompleted.js +0 -72
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.resolveRuntimeExtensions = void 0;
|
|
4
|
-
const region_config_resolver_1 = require("@aws-sdk/region-config-resolver");
|
|
5
|
-
const protocol_http_1 = require("@smithy/protocol-http");
|
|
6
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
-
const httpAuthExtensionConfiguration_1 = require("./auth/httpAuthExtensionConfiguration");
|
|
8
|
-
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
9
|
-
const extensionConfiguration = Object.assign((0, region_config_resolver_1.getAwsRegionExtensionConfiguration)(runtimeConfig), (0, smithy_client_1.getDefaultExtensionConfiguration)(runtimeConfig), (0, protocol_http_1.getHttpHandlerExtensionConfiguration)(runtimeConfig), (0, httpAuthExtensionConfiguration_1.getHttpAuthExtensionConfiguration)(runtimeConfig));
|
|
10
|
-
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
11
|
-
return Object.assign(runtimeConfig, (0, region_config_resolver_1.resolveAwsRegionExtensionConfiguration)(extensionConfiguration), (0, smithy_client_1.resolveDefaultRuntimeConfig)(extensionConfiguration), (0, protocol_http_1.resolveHttpHandlerRuntimeConfig)(extensionConfiguration), (0, httpAuthExtensionConfiguration_1.resolveHttpAuthRuntimeConfig)(extensionConfiguration));
|
|
12
|
-
};
|
|
13
|
-
exports.resolveRuntimeExtensions = resolveRuntimeExtensions;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
tslib_1.__exportStar(require("./waitForPlanEvaluationStatusPassed"), exports);
|
|
5
|
-
tslib_1.__exportStar(require("./waitForPlanExecutionCompleted"), exports);
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.waitUntilPlanEvaluationStatusPassed = exports.waitForPlanEvaluationStatusPassed = void 0;
|
|
4
|
-
const util_waiter_1 = require("@smithy/util-waiter");
|
|
5
|
-
const GetPlanEvaluationStatusCommand_1 = require("../commands/GetPlanEvaluationStatusCommand");
|
|
6
|
-
const checkState = async (client, input) => {
|
|
7
|
-
let reason;
|
|
8
|
-
try {
|
|
9
|
-
const result = await client.send(new GetPlanEvaluationStatusCommand_1.GetPlanEvaluationStatusCommand(input));
|
|
10
|
-
reason = result;
|
|
11
|
-
try {
|
|
12
|
-
const returnComparator = () => {
|
|
13
|
-
return result.evaluationState;
|
|
14
|
-
};
|
|
15
|
-
if (returnComparator() === "passed") {
|
|
16
|
-
return { state: util_waiter_1.WaiterState.SUCCESS, reason };
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
catch (e) { }
|
|
20
|
-
try {
|
|
21
|
-
const returnComparator = () => {
|
|
22
|
-
return result.evaluationState;
|
|
23
|
-
};
|
|
24
|
-
if (returnComparator() === "actionRequired") {
|
|
25
|
-
return { state: util_waiter_1.WaiterState.FAILURE, reason };
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
catch (e) { }
|
|
29
|
-
try {
|
|
30
|
-
const returnComparator = () => {
|
|
31
|
-
return result.evaluationState;
|
|
32
|
-
};
|
|
33
|
-
if (returnComparator() === "pendingEvaluation") {
|
|
34
|
-
return { state: util_waiter_1.WaiterState.RETRY, reason };
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
catch (e) { }
|
|
38
|
-
}
|
|
39
|
-
catch (exception) {
|
|
40
|
-
reason = exception;
|
|
41
|
-
}
|
|
42
|
-
return { state: util_waiter_1.WaiterState.RETRY, reason };
|
|
43
|
-
};
|
|
44
|
-
const waitForPlanEvaluationStatusPassed = async (params, input) => {
|
|
45
|
-
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
46
|
-
return (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
|
|
47
|
-
};
|
|
48
|
-
exports.waitForPlanEvaluationStatusPassed = waitForPlanEvaluationStatusPassed;
|
|
49
|
-
const waitUntilPlanEvaluationStatusPassed = async (params, input) => {
|
|
50
|
-
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
51
|
-
const result = await (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
|
|
52
|
-
return (0, util_waiter_1.checkExceptions)(result);
|
|
53
|
-
};
|
|
54
|
-
exports.waitUntilPlanEvaluationStatusPassed = waitUntilPlanEvaluationStatusPassed;
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.waitUntilPlanExecutionCompleted = exports.waitForPlanExecutionCompleted = void 0;
|
|
4
|
-
const util_waiter_1 = require("@smithy/util-waiter");
|
|
5
|
-
const GetPlanExecutionCommand_1 = require("../commands/GetPlanExecutionCommand");
|
|
6
|
-
const checkState = async (client, input) => {
|
|
7
|
-
let reason;
|
|
8
|
-
try {
|
|
9
|
-
const result = await client.send(new GetPlanExecutionCommand_1.GetPlanExecutionCommand(input));
|
|
10
|
-
reason = result;
|
|
11
|
-
try {
|
|
12
|
-
const returnComparator = () => {
|
|
13
|
-
return result.executionState;
|
|
14
|
-
};
|
|
15
|
-
if (returnComparator() === "completed") {
|
|
16
|
-
return { state: util_waiter_1.WaiterState.SUCCESS, reason };
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
catch (e) { }
|
|
20
|
-
try {
|
|
21
|
-
const returnComparator = () => {
|
|
22
|
-
return result.executionState;
|
|
23
|
-
};
|
|
24
|
-
if (returnComparator() === "completedWithExceptions") {
|
|
25
|
-
return { state: util_waiter_1.WaiterState.SUCCESS, reason };
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
catch (e) { }
|
|
29
|
-
try {
|
|
30
|
-
const returnComparator = () => {
|
|
31
|
-
return result.executionState;
|
|
32
|
-
};
|
|
33
|
-
if (returnComparator() === "failed") {
|
|
34
|
-
return { state: util_waiter_1.WaiterState.FAILURE, reason };
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
catch (e) { }
|
|
38
|
-
try {
|
|
39
|
-
const returnComparator = () => {
|
|
40
|
-
return result.executionState;
|
|
41
|
-
};
|
|
42
|
-
if (returnComparator() === "canceled") {
|
|
43
|
-
return { state: util_waiter_1.WaiterState.FAILURE, reason };
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
catch (e) { }
|
|
47
|
-
try {
|
|
48
|
-
const returnComparator = () => {
|
|
49
|
-
return result.executionState;
|
|
50
|
-
};
|
|
51
|
-
if (returnComparator() === "planExecutionTimedOut") {
|
|
52
|
-
return { state: util_waiter_1.WaiterState.FAILURE, reason };
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
catch (e) { }
|
|
56
|
-
}
|
|
57
|
-
catch (exception) {
|
|
58
|
-
reason = exception;
|
|
59
|
-
}
|
|
60
|
-
return { state: util_waiter_1.WaiterState.RETRY, reason };
|
|
61
|
-
};
|
|
62
|
-
const waitForPlanExecutionCompleted = async (params, input) => {
|
|
63
|
-
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
64
|
-
return (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
|
|
65
|
-
};
|
|
66
|
-
exports.waitForPlanExecutionCompleted = waitForPlanExecutionCompleted;
|
|
67
|
-
const waitUntilPlanExecutionCompleted = async (params, input) => {
|
|
68
|
-
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
69
|
-
const result = await (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
|
|
70
|
-
return (0, util_waiter_1.checkExceptions)(result);
|
|
71
|
-
};
|
|
72
|
-
exports.waitUntilPlanExecutionCompleted = waitUntilPlanExecutionCompleted;
|