@aws-sdk/client-arc-region-switch 3.859.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/LICENSE +201 -0
- package/README.md +365 -0
- package/dist-cjs/ARCRegionSwitch.js +51 -0
- package/dist-cjs/ARCRegionSwitchClient.js +52 -0
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +43 -0
- package/dist-cjs/auth/httpAuthSchemeProvider.js +47 -0
- package/dist-cjs/commands/ApprovePlanExecutionStepCommand.js +26 -0
- package/dist-cjs/commands/CancelPlanExecutionCommand.js +26 -0
- package/dist-cjs/commands/CreatePlanCommand.js +29 -0
- package/dist-cjs/commands/DeletePlanCommand.js +29 -0
- package/dist-cjs/commands/GetPlanCommand.js +29 -0
- package/dist-cjs/commands/GetPlanEvaluationStatusCommand.js +26 -0
- package/dist-cjs/commands/GetPlanExecutionCommand.js +26 -0
- package/dist-cjs/commands/GetPlanInRegionCommand.js +26 -0
- package/dist-cjs/commands/ListPlanExecutionEventsCommand.js +26 -0
- package/dist-cjs/commands/ListPlanExecutionsCommand.js +26 -0
- package/dist-cjs/commands/ListPlansCommand.js +29 -0
- package/dist-cjs/commands/ListPlansInRegionCommand.js +26 -0
- package/dist-cjs/commands/ListRoute53HealthChecksCommand.js +29 -0
- package/dist-cjs/commands/ListTagsForResourceCommand.js +29 -0
- package/dist-cjs/commands/StartPlanExecutionCommand.js +26 -0
- package/dist-cjs/commands/TagResourceCommand.js +29 -0
- package/dist-cjs/commands/UntagResourceCommand.js +29 -0
- package/dist-cjs/commands/UpdatePlanCommand.js +29 -0
- package/dist-cjs/commands/UpdatePlanExecutionCommand.js +26 -0
- package/dist-cjs/commands/UpdatePlanExecutionStepCommand.js +26 -0
- package/dist-cjs/commands/index.js +23 -0
- package/dist-cjs/endpoint/EndpointParameters.js +15 -0
- package/dist-cjs/endpoint/endpointResolver.js +18 -0
- package/dist-cjs/endpoint/ruleset.js +7 -0
- package/dist-cjs/extensionConfiguration.js +2 -0
- package/dist-cjs/index.js +12 -0
- package/dist-cjs/models/ARCRegionSwitchServiceException.js +12 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +233 -0
- package/dist-cjs/pagination/GetPlanEvaluationStatusPaginator.js +7 -0
- package/dist-cjs/pagination/GetPlanExecutionPaginator.js +7 -0
- package/dist-cjs/pagination/Interfaces.js +2 -0
- package/dist-cjs/pagination/ListPlanExecutionEventsPaginator.js +7 -0
- package/dist-cjs/pagination/ListPlanExecutionsPaginator.js +7 -0
- package/dist-cjs/pagination/ListPlansInRegionPaginator.js +7 -0
- package/dist-cjs/pagination/ListPlansPaginator.js +7 -0
- package/dist-cjs/pagination/ListRoute53HealthChecksPaginator.js +7 -0
- package/dist-cjs/pagination/index.js +11 -0
- package/dist-cjs/protocols/Aws_json1_0.js +919 -0
- package/dist-cjs/runtimeConfig.browser.js +39 -0
- package/dist-cjs/runtimeConfig.js +56 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +34 -0
- package/dist-cjs/runtimeExtensions.js +13 -0
- package/dist-cjs/waiters/index.js +5 -0
- package/dist-cjs/waiters/waitForPlanEvaluationStatusPassed.js +54 -0
- package/dist-cjs/waiters/waitForPlanExecutionCompleted.js +72 -0
- package/dist-es/ARCRegionSwitch.js +47 -0
- package/dist-es/ARCRegionSwitchClient.js +48 -0
- package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +41 -0
- package/dist-es/commands/ApprovePlanExecutionStepCommand.js +22 -0
- package/dist-es/commands/CancelPlanExecutionCommand.js +22 -0
- package/dist-es/commands/CreatePlanCommand.js +25 -0
- package/dist-es/commands/DeletePlanCommand.js +25 -0
- package/dist-es/commands/GetPlanCommand.js +25 -0
- package/dist-es/commands/GetPlanEvaluationStatusCommand.js +22 -0
- package/dist-es/commands/GetPlanExecutionCommand.js +22 -0
- package/dist-es/commands/GetPlanInRegionCommand.js +22 -0
- package/dist-es/commands/ListPlanExecutionEventsCommand.js +22 -0
- package/dist-es/commands/ListPlanExecutionsCommand.js +22 -0
- package/dist-es/commands/ListPlansCommand.js +25 -0
- package/dist-es/commands/ListPlansInRegionCommand.js +22 -0
- package/dist-es/commands/ListRoute53HealthChecksCommand.js +25 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +25 -0
- package/dist-es/commands/StartPlanExecutionCommand.js +22 -0
- package/dist-es/commands/TagResourceCommand.js +25 -0
- package/dist-es/commands/UntagResourceCommand.js +25 -0
- package/dist-es/commands/UpdatePlanCommand.js +25 -0
- package/dist-es/commands/UpdatePlanExecutionCommand.js +22 -0
- package/dist-es/commands/UpdatePlanExecutionStepCommand.js +22 -0
- package/dist-es/commands/index.js +20 -0
- package/dist-es/endpoint/EndpointParameters.js +11 -0
- package/dist-es/endpoint/endpointResolver.js +14 -0
- package/dist-es/endpoint/ruleset.js +4 -0
- package/dist-es/extensionConfiguration.js +1 -0
- package/dist-es/index.js +7 -0
- package/dist-es/models/ARCRegionSwitchServiceException.js +8 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +225 -0
- package/dist-es/pagination/GetPlanEvaluationStatusPaginator.js +4 -0
- package/dist-es/pagination/GetPlanExecutionPaginator.js +4 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListPlanExecutionEventsPaginator.js +4 -0
- package/dist-es/pagination/ListPlanExecutionsPaginator.js +4 -0
- package/dist-es/pagination/ListPlansInRegionPaginator.js +4 -0
- package/dist-es/pagination/ListPlansPaginator.js +4 -0
- package/dist-es/pagination/ListRoute53HealthChecksPaginator.js +4 -0
- package/dist-es/pagination/index.js +8 -0
- package/dist-es/protocols/Aws_json1_0.js +876 -0
- package/dist-es/runtimeConfig.browser.js +34 -0
- package/dist-es/runtimeConfig.js +51 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +30 -0
- package/dist-es/runtimeExtensions.js +9 -0
- package/dist-es/waiters/index.js +2 -0
- package/dist-es/waiters/waitForPlanEvaluationStatusPassed.js +49 -0
- package/dist-es/waiters/waitForPlanExecutionCompleted.js +67 -0
- package/dist-types/ARCRegionSwitch.d.ts +152 -0
- package/dist-types/ARCRegionSwitchClient.d.ts +207 -0
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +75 -0
- package/dist-types/commands/ApprovePlanExecutionStepCommand.d.ts +80 -0
- package/dist-types/commands/CancelPlanExecutionCommand.d.ts +78 -0
- package/dist-types/commands/CreatePlanCommand.d.ts +697 -0
- package/dist-types/commands/DeletePlanCommand.d.ts +76 -0
- package/dist-types/commands/GetPlanCommand.d.ts +389 -0
- package/dist-types/commands/GetPlanEvaluationStatusCommand.d.ts +99 -0
- package/dist-types/commands/GetPlanExecutionCommand.d.ts +417 -0
- package/dist-types/commands/GetPlanInRegionCommand.d.ts +392 -0
- package/dist-types/commands/ListPlanExecutionEventsCommand.d.ts +97 -0
- package/dist-types/commands/ListPlanExecutionsCommand.d.ts +97 -0
- package/dist-types/commands/ListPlansCommand.d.ts +91 -0
- package/dist-types/commands/ListPlansInRegionCommand.d.ts +94 -0
- package/dist-types/commands/ListRoute53HealthChecksCommand.d.ts +93 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +80 -0
- package/dist-types/commands/StartPlanExecutionCommand.d.ts +93 -0
- package/dist-types/commands/TagResourceCommand.d.ts +79 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +79 -0
- package/dist-types/commands/UpdatePlanCommand.d.ts +692 -0
- package/dist-types/commands/UpdatePlanExecutionCommand.d.ts +82 -0
- package/dist-types/commands/UpdatePlanExecutionStepCommand.d.ts +80 -0
- package/dist-types/commands/index.d.ts +20 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +33 -0
- package/dist-types/endpoint/endpointResolver.d.ts +5 -0
- package/dist-types/endpoint/ruleset.d.ts +2 -0
- package/dist-types/extensionConfiguration.d.ts +9 -0
- package/dist-types/index.d.ts +15 -0
- package/dist-types/models/ARCRegionSwitchServiceException.d.ts +14 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +2370 -0
- package/dist-types/pagination/GetPlanEvaluationStatusPaginator.d.ts +7 -0
- package/dist-types/pagination/GetPlanExecutionPaginator.d.ts +7 -0
- package/dist-types/pagination/Interfaces.d.ts +8 -0
- package/dist-types/pagination/ListPlanExecutionEventsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListPlanExecutionsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListPlansInRegionPaginator.d.ts +7 -0
- package/dist-types/pagination/ListPlansPaginator.d.ts +7 -0
- package/dist-types/pagination/ListRoute53HealthChecksPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +8 -0
- package/dist-types/protocols/Aws_json1_0.d.ts +182 -0
- package/dist-types/runtimeConfig.browser.d.ts +50 -0
- package/dist-types/runtimeConfig.d.ts +50 -0
- package/dist-types/runtimeConfig.native.d.ts +49 -0
- package/dist-types/runtimeConfig.shared.d.ts +21 -0
- package/dist-types/runtimeExtensions.d.ts +17 -0
- package/dist-types/ts3.4/ARCRegionSwitch.d.ts +349 -0
- package/dist-types/ts3.4/ARCRegionSwitchClient.d.ts +240 -0
- package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
- package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +47 -0
- package/dist-types/ts3.4/commands/ApprovePlanExecutionStepCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/CancelPlanExecutionCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/CreatePlanCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/DeletePlanCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/GetPlanCommand.d.ts +43 -0
- package/dist-types/ts3.4/commands/GetPlanEvaluationStatusCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetPlanExecutionCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/GetPlanInRegionCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/ListPlanExecutionEventsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListPlanExecutionsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListPlansCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/ListPlansInRegionCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListRoute53HealthChecksCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/StartPlanExecutionCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/UpdatePlanCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/UpdatePlanExecutionCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/UpdatePlanExecutionStepCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/index.d.ts +20 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +46 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
- package/dist-types/ts3.4/extensionConfiguration.d.ts +9 -0
- package/dist-types/ts3.4/index.d.ts +10 -0
- package/dist-types/ts3.4/models/ARCRegionSwitchServiceException.d.ts +9 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +813 -0
- package/dist-types/ts3.4/pagination/GetPlanEvaluationStatusPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/GetPlanExecutionPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/dist-types/ts3.4/pagination/ListPlanExecutionEventsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListPlanExecutionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListPlansInRegionPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListPlansPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListRoute53HealthChecksPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +8 -0
- package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +245 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +93 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +91 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +97 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +23 -0
- package/dist-types/ts3.4/runtimeExtensions.d.ts +13 -0
- package/dist-types/ts3.4/waiters/index.d.ts +2 -0
- package/dist-types/ts3.4/waiters/waitForPlanEvaluationStatusPassed.d.ts +11 -0
- package/dist-types/ts3.4/waiters/waitForPlanExecutionCompleted.d.ts +11 -0
- package/dist-types/waiters/index.d.ts +2 -0
- package/dist-types/waiters/waitForPlanEvaluationStatusPassed.d.ts +14 -0
- package/dist-types/waiters/waitForPlanExecutionCompleted.d.ts +14 -0
- package/package.json +100 -0
|
@@ -0,0 +1,697 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { ARCRegionSwitchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ARCRegionSwitchClient";
|
|
4
|
+
import { CreatePlanRequest, CreatePlanResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link CreatePlanCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface CreatePlanCommandInput extends CreatePlanRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link CreatePlanCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface CreatePlanCommandOutput extends CreatePlanResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const CreatePlanCommand_base: {
|
|
25
|
+
new (input: CreatePlanCommandInput): import("@smithy/smithy-client").CommandImpl<CreatePlanCommandInput, CreatePlanCommandOutput, ARCRegionSwitchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: CreatePlanCommandInput): import("@smithy/smithy-client").CommandImpl<CreatePlanCommandInput, CreatePlanCommandOutput, ARCRegionSwitchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Creates a new Region switch plan. A plan defines the steps required to shift traffic from one Amazon Web Services Region to another.</p> <p>You must specify a name for the plan, the primary Region, and at least one additional Region. You can also provide a description, execution role, recovery time objective, associated alarms, triggers, and workflows that define the steps to execute during a Region switch.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { ARCRegionSwitchClient, CreatePlanCommand } from "@aws-sdk/client-arc-region-switch"; // ES Modules import
|
|
35
|
+
* // const { ARCRegionSwitchClient, CreatePlanCommand } = require("@aws-sdk/client-arc-region-switch"); // CommonJS import
|
|
36
|
+
* const client = new ARCRegionSwitchClient(config);
|
|
37
|
+
* const input = { // CreatePlanRequest
|
|
38
|
+
* description: "STRING_VALUE",
|
|
39
|
+
* workflows: [ // WorkflowList // required
|
|
40
|
+
* { // Workflow
|
|
41
|
+
* steps: [ // Steps
|
|
42
|
+
* { // Step
|
|
43
|
+
* name: "STRING_VALUE", // required
|
|
44
|
+
* description: "STRING_VALUE",
|
|
45
|
+
* executionBlockConfiguration: { // ExecutionBlockConfiguration Union: only one key present
|
|
46
|
+
* customActionLambdaConfig: { // CustomActionLambdaConfiguration
|
|
47
|
+
* timeoutMinutes: Number("int"),
|
|
48
|
+
* lambdas: [ // LambdaList // required
|
|
49
|
+
* { // Lambdas
|
|
50
|
+
* crossAccountRole: "STRING_VALUE",
|
|
51
|
+
* externalId: "STRING_VALUE",
|
|
52
|
+
* arn: "STRING_VALUE",
|
|
53
|
+
* },
|
|
54
|
+
* ],
|
|
55
|
+
* retryIntervalMinutes: Number("float"), // required
|
|
56
|
+
* regionToRun: "activatingRegion" || "deactivatingRegion", // required
|
|
57
|
+
* ungraceful: { // LambdaUngraceful
|
|
58
|
+
* behavior: "skip",
|
|
59
|
+
* },
|
|
60
|
+
* },
|
|
61
|
+
* ec2AsgCapacityIncreaseConfig: { // Ec2AsgCapacityIncreaseConfiguration
|
|
62
|
+
* timeoutMinutes: Number("int"),
|
|
63
|
+
* asgs: [ // AsgList // required
|
|
64
|
+
* { // Asg
|
|
65
|
+
* crossAccountRole: "STRING_VALUE",
|
|
66
|
+
* externalId: "STRING_VALUE",
|
|
67
|
+
* arn: "STRING_VALUE",
|
|
68
|
+
* },
|
|
69
|
+
* ],
|
|
70
|
+
* ungraceful: { // Ec2Ungraceful
|
|
71
|
+
* minimumSuccessPercentage: Number("int"), // required
|
|
72
|
+
* },
|
|
73
|
+
* targetPercent: Number("int"),
|
|
74
|
+
* capacityMonitoringApproach: "sampledMaxInLast24Hours" || "autoscalingMaxInLast24Hours",
|
|
75
|
+
* },
|
|
76
|
+
* executionApprovalConfig: { // ExecutionApprovalConfiguration
|
|
77
|
+
* timeoutMinutes: Number("int"),
|
|
78
|
+
* approvalRole: "STRING_VALUE", // required
|
|
79
|
+
* },
|
|
80
|
+
* arcRoutingControlConfig: { // ArcRoutingControlConfiguration
|
|
81
|
+
* timeoutMinutes: Number("int"),
|
|
82
|
+
* crossAccountRole: "STRING_VALUE",
|
|
83
|
+
* externalId: "STRING_VALUE",
|
|
84
|
+
* regionAndRoutingControls: { // RegionAndRoutingControls // required
|
|
85
|
+
* "<keys>": [ // ArcRoutingControlStates
|
|
86
|
+
* { // ArcRoutingControlState
|
|
87
|
+
* routingControlArn: "STRING_VALUE", // required
|
|
88
|
+
* state: "On" || "Off", // required
|
|
89
|
+
* },
|
|
90
|
+
* ],
|
|
91
|
+
* },
|
|
92
|
+
* },
|
|
93
|
+
* globalAuroraConfig: { // GlobalAuroraConfiguration
|
|
94
|
+
* timeoutMinutes: Number("int"),
|
|
95
|
+
* crossAccountRole: "STRING_VALUE",
|
|
96
|
+
* externalId: "STRING_VALUE",
|
|
97
|
+
* behavior: "switchoverOnly" || "failover", // required
|
|
98
|
+
* ungraceful: { // GlobalAuroraUngraceful
|
|
99
|
+
* ungraceful: "failover",
|
|
100
|
+
* },
|
|
101
|
+
* globalClusterIdentifier: "STRING_VALUE", // required
|
|
102
|
+
* databaseClusterArns: [ // AuroraClusterArns // required
|
|
103
|
+
* "STRING_VALUE",
|
|
104
|
+
* ],
|
|
105
|
+
* },
|
|
106
|
+
* parallelConfig: { // ParallelExecutionBlockConfiguration
|
|
107
|
+
* steps: [ // required
|
|
108
|
+
* {
|
|
109
|
+
* name: "STRING_VALUE", // required
|
|
110
|
+
* description: "STRING_VALUE",
|
|
111
|
+
* executionBlockConfiguration: {// Union: only one key present
|
|
112
|
+
* customActionLambdaConfig: {
|
|
113
|
+
* timeoutMinutes: Number("int"),
|
|
114
|
+
* lambdas: [ // required
|
|
115
|
+
* {
|
|
116
|
+
* crossAccountRole: "STRING_VALUE",
|
|
117
|
+
* externalId: "STRING_VALUE",
|
|
118
|
+
* arn: "STRING_VALUE",
|
|
119
|
+
* },
|
|
120
|
+
* ],
|
|
121
|
+
* retryIntervalMinutes: Number("float"), // required
|
|
122
|
+
* regionToRun: "activatingRegion" || "deactivatingRegion", // required
|
|
123
|
+
* ungraceful: {
|
|
124
|
+
* behavior: "skip",
|
|
125
|
+
* },
|
|
126
|
+
* },
|
|
127
|
+
* ec2AsgCapacityIncreaseConfig: {
|
|
128
|
+
* timeoutMinutes: Number("int"),
|
|
129
|
+
* asgs: [ // required
|
|
130
|
+
* {
|
|
131
|
+
* crossAccountRole: "STRING_VALUE",
|
|
132
|
+
* externalId: "STRING_VALUE",
|
|
133
|
+
* arn: "STRING_VALUE",
|
|
134
|
+
* },
|
|
135
|
+
* ],
|
|
136
|
+
* ungraceful: {
|
|
137
|
+
* minimumSuccessPercentage: Number("int"), // required
|
|
138
|
+
* },
|
|
139
|
+
* targetPercent: Number("int"),
|
|
140
|
+
* capacityMonitoringApproach: "sampledMaxInLast24Hours" || "autoscalingMaxInLast24Hours",
|
|
141
|
+
* },
|
|
142
|
+
* executionApprovalConfig: {
|
|
143
|
+
* timeoutMinutes: Number("int"),
|
|
144
|
+
* approvalRole: "STRING_VALUE", // required
|
|
145
|
+
* },
|
|
146
|
+
* arcRoutingControlConfig: {
|
|
147
|
+
* timeoutMinutes: Number("int"),
|
|
148
|
+
* crossAccountRole: "STRING_VALUE",
|
|
149
|
+
* externalId: "STRING_VALUE",
|
|
150
|
+
* regionAndRoutingControls: { // required
|
|
151
|
+
* "<keys>": [
|
|
152
|
+
* {
|
|
153
|
+
* routingControlArn: "STRING_VALUE", // required
|
|
154
|
+
* state: "On" || "Off", // required
|
|
155
|
+
* },
|
|
156
|
+
* ],
|
|
157
|
+
* },
|
|
158
|
+
* },
|
|
159
|
+
* globalAuroraConfig: {
|
|
160
|
+
* timeoutMinutes: Number("int"),
|
|
161
|
+
* crossAccountRole: "STRING_VALUE",
|
|
162
|
+
* externalId: "STRING_VALUE",
|
|
163
|
+
* behavior: "switchoverOnly" || "failover", // required
|
|
164
|
+
* ungraceful: {
|
|
165
|
+
* ungraceful: "failover",
|
|
166
|
+
* },
|
|
167
|
+
* globalClusterIdentifier: "STRING_VALUE", // required
|
|
168
|
+
* databaseClusterArns: [ // required
|
|
169
|
+
* "STRING_VALUE",
|
|
170
|
+
* ],
|
|
171
|
+
* },
|
|
172
|
+
* parallelConfig: {
|
|
173
|
+
* steps: "<Steps>", // required
|
|
174
|
+
* },
|
|
175
|
+
* regionSwitchPlanConfig: { // RegionSwitchPlanConfiguration
|
|
176
|
+
* crossAccountRole: "STRING_VALUE",
|
|
177
|
+
* externalId: "STRING_VALUE",
|
|
178
|
+
* arn: "STRING_VALUE", // required
|
|
179
|
+
* },
|
|
180
|
+
* ecsCapacityIncreaseConfig: { // EcsCapacityIncreaseConfiguration
|
|
181
|
+
* timeoutMinutes: Number("int"),
|
|
182
|
+
* services: [ // ServiceList // required
|
|
183
|
+
* { // Service
|
|
184
|
+
* crossAccountRole: "STRING_VALUE",
|
|
185
|
+
* externalId: "STRING_VALUE",
|
|
186
|
+
* clusterArn: "STRING_VALUE",
|
|
187
|
+
* serviceArn: "STRING_VALUE",
|
|
188
|
+
* },
|
|
189
|
+
* ],
|
|
190
|
+
* ungraceful: { // EcsUngraceful
|
|
191
|
+
* minimumSuccessPercentage: Number("int"), // required
|
|
192
|
+
* },
|
|
193
|
+
* targetPercent: Number("int"),
|
|
194
|
+
* capacityMonitoringApproach: "sampledMaxInLast24Hours" || "containerInsightsMaxInLast24Hours",
|
|
195
|
+
* },
|
|
196
|
+
* eksResourceScalingConfig: { // EksResourceScalingConfiguration
|
|
197
|
+
* timeoutMinutes: Number("int"),
|
|
198
|
+
* kubernetesResourceType: { // KubernetesResourceType
|
|
199
|
+
* apiVersion: "STRING_VALUE", // required
|
|
200
|
+
* kind: "STRING_VALUE", // required
|
|
201
|
+
* },
|
|
202
|
+
* scalingResources: [ // KubernetesScalingApps
|
|
203
|
+
* { // KubernetesScalingApplication
|
|
204
|
+
* "<keys>": { // RegionalScalingResource
|
|
205
|
+
* "<keys>": { // KubernetesScalingResource
|
|
206
|
+
* namespace: "STRING_VALUE", // required
|
|
207
|
+
* name: "STRING_VALUE", // required
|
|
208
|
+
* hpaName: "STRING_VALUE",
|
|
209
|
+
* },
|
|
210
|
+
* },
|
|
211
|
+
* },
|
|
212
|
+
* ],
|
|
213
|
+
* eksClusters: [ // EksClusters
|
|
214
|
+
* { // EksCluster
|
|
215
|
+
* crossAccountRole: "STRING_VALUE",
|
|
216
|
+
* externalId: "STRING_VALUE",
|
|
217
|
+
* clusterArn: "STRING_VALUE", // required
|
|
218
|
+
* },
|
|
219
|
+
* ],
|
|
220
|
+
* ungraceful: { // EksResourceScalingUngraceful
|
|
221
|
+
* minimumSuccessPercentage: Number("int"), // required
|
|
222
|
+
* },
|
|
223
|
+
* targetPercent: Number("int"),
|
|
224
|
+
* capacityMonitoringApproach: "sampledMaxInLast24Hours",
|
|
225
|
+
* },
|
|
226
|
+
* route53HealthCheckConfig: { // Route53HealthCheckConfiguration
|
|
227
|
+
* timeoutMinutes: Number("int"),
|
|
228
|
+
* crossAccountRole: "STRING_VALUE",
|
|
229
|
+
* externalId: "STRING_VALUE",
|
|
230
|
+
* hostedZoneId: "STRING_VALUE", // required
|
|
231
|
+
* recordName: "STRING_VALUE", // required
|
|
232
|
+
* recordSets: [ // Route53ResourceRecordSetList
|
|
233
|
+
* { // Route53ResourceRecordSet
|
|
234
|
+
* recordSetIdentifier: "STRING_VALUE",
|
|
235
|
+
* region: "STRING_VALUE",
|
|
236
|
+
* },
|
|
237
|
+
* ],
|
|
238
|
+
* },
|
|
239
|
+
* },
|
|
240
|
+
* executionBlockType: "CustomActionLambda" || "ManualApproval" || "AuroraGlobalDatabase" || "EC2AutoScaling" || "ARCRoutingControl" || "ARCRegionSwitchPlan" || "Parallel" || "ECSServiceScaling" || "EKSResourceScaling" || "Route53HealthCheck", // required
|
|
241
|
+
* },
|
|
242
|
+
* ],
|
|
243
|
+
* },
|
|
244
|
+
* regionSwitchPlanConfig: {
|
|
245
|
+
* crossAccountRole: "STRING_VALUE",
|
|
246
|
+
* externalId: "STRING_VALUE",
|
|
247
|
+
* arn: "STRING_VALUE", // required
|
|
248
|
+
* },
|
|
249
|
+
* ecsCapacityIncreaseConfig: {
|
|
250
|
+
* timeoutMinutes: Number("int"),
|
|
251
|
+
* services: [ // required
|
|
252
|
+
* {
|
|
253
|
+
* crossAccountRole: "STRING_VALUE",
|
|
254
|
+
* externalId: "STRING_VALUE",
|
|
255
|
+
* clusterArn: "STRING_VALUE",
|
|
256
|
+
* serviceArn: "STRING_VALUE",
|
|
257
|
+
* },
|
|
258
|
+
* ],
|
|
259
|
+
* ungraceful: {
|
|
260
|
+
* minimumSuccessPercentage: Number("int"), // required
|
|
261
|
+
* },
|
|
262
|
+
* targetPercent: Number("int"),
|
|
263
|
+
* capacityMonitoringApproach: "sampledMaxInLast24Hours" || "containerInsightsMaxInLast24Hours",
|
|
264
|
+
* },
|
|
265
|
+
* eksResourceScalingConfig: {
|
|
266
|
+
* timeoutMinutes: Number("int"),
|
|
267
|
+
* kubernetesResourceType: {
|
|
268
|
+
* apiVersion: "STRING_VALUE", // required
|
|
269
|
+
* kind: "STRING_VALUE", // required
|
|
270
|
+
* },
|
|
271
|
+
* scalingResources: [
|
|
272
|
+
* {
|
|
273
|
+
* "<keys>": {
|
|
274
|
+
* "<keys>": {
|
|
275
|
+
* namespace: "STRING_VALUE", // required
|
|
276
|
+
* name: "STRING_VALUE", // required
|
|
277
|
+
* hpaName: "STRING_VALUE",
|
|
278
|
+
* },
|
|
279
|
+
* },
|
|
280
|
+
* },
|
|
281
|
+
* ],
|
|
282
|
+
* eksClusters: [
|
|
283
|
+
* {
|
|
284
|
+
* crossAccountRole: "STRING_VALUE",
|
|
285
|
+
* externalId: "STRING_VALUE",
|
|
286
|
+
* clusterArn: "STRING_VALUE", // required
|
|
287
|
+
* },
|
|
288
|
+
* ],
|
|
289
|
+
* ungraceful: {
|
|
290
|
+
* minimumSuccessPercentage: Number("int"), // required
|
|
291
|
+
* },
|
|
292
|
+
* targetPercent: Number("int"),
|
|
293
|
+
* capacityMonitoringApproach: "sampledMaxInLast24Hours",
|
|
294
|
+
* },
|
|
295
|
+
* route53HealthCheckConfig: {
|
|
296
|
+
* timeoutMinutes: Number("int"),
|
|
297
|
+
* crossAccountRole: "STRING_VALUE",
|
|
298
|
+
* externalId: "STRING_VALUE",
|
|
299
|
+
* hostedZoneId: "STRING_VALUE", // required
|
|
300
|
+
* recordName: "STRING_VALUE", // required
|
|
301
|
+
* recordSets: [
|
|
302
|
+
* {
|
|
303
|
+
* recordSetIdentifier: "STRING_VALUE",
|
|
304
|
+
* region: "STRING_VALUE",
|
|
305
|
+
* },
|
|
306
|
+
* ],
|
|
307
|
+
* },
|
|
308
|
+
* },
|
|
309
|
+
* executionBlockType: "CustomActionLambda" || "ManualApproval" || "AuroraGlobalDatabase" || "EC2AutoScaling" || "ARCRoutingControl" || "ARCRegionSwitchPlan" || "Parallel" || "ECSServiceScaling" || "EKSResourceScaling" || "Route53HealthCheck", // required
|
|
310
|
+
* },
|
|
311
|
+
* ],
|
|
312
|
+
* workflowTargetAction: "activate" || "deactivate", // required
|
|
313
|
+
* workflowTargetRegion: "STRING_VALUE",
|
|
314
|
+
* workflowDescription: "STRING_VALUE",
|
|
315
|
+
* },
|
|
316
|
+
* ],
|
|
317
|
+
* executionRole: "STRING_VALUE", // required
|
|
318
|
+
* recoveryTimeObjectiveMinutes: Number("int"),
|
|
319
|
+
* associatedAlarms: { // AssociatedAlarmMap
|
|
320
|
+
* "<keys>": { // AssociatedAlarm
|
|
321
|
+
* crossAccountRole: "STRING_VALUE",
|
|
322
|
+
* externalId: "STRING_VALUE",
|
|
323
|
+
* resourceIdentifier: "STRING_VALUE", // required
|
|
324
|
+
* alarmType: "applicationHealth" || "trigger", // required
|
|
325
|
+
* },
|
|
326
|
+
* },
|
|
327
|
+
* triggers: [ // TriggerList
|
|
328
|
+
* { // Trigger
|
|
329
|
+
* description: "STRING_VALUE",
|
|
330
|
+
* targetRegion: "STRING_VALUE", // required
|
|
331
|
+
* action: "activate" || "deactivate", // required
|
|
332
|
+
* conditions: [ // TriggerConditionList // required
|
|
333
|
+
* { // TriggerCondition
|
|
334
|
+
* associatedAlarmName: "STRING_VALUE", // required
|
|
335
|
+
* condition: "red" || "green", // required
|
|
336
|
+
* },
|
|
337
|
+
* ],
|
|
338
|
+
* minDelayMinutesBetweenExecutions: Number("int"), // required
|
|
339
|
+
* },
|
|
340
|
+
* ],
|
|
341
|
+
* name: "STRING_VALUE", // required
|
|
342
|
+
* regions: [ // RegionList // required
|
|
343
|
+
* "STRING_VALUE",
|
|
344
|
+
* ],
|
|
345
|
+
* recoveryApproach: "activeActive" || "activePassive", // required
|
|
346
|
+
* primaryRegion: "STRING_VALUE",
|
|
347
|
+
* tags: { // Tags
|
|
348
|
+
* "<keys>": "STRING_VALUE",
|
|
349
|
+
* },
|
|
350
|
+
* };
|
|
351
|
+
* const command = new CreatePlanCommand(input);
|
|
352
|
+
* const response = await client.send(command);
|
|
353
|
+
* // { // CreatePlanResponse
|
|
354
|
+
* // plan: { // Plan
|
|
355
|
+
* // arn: "STRING_VALUE", // required
|
|
356
|
+
* // description: "STRING_VALUE",
|
|
357
|
+
* // workflows: [ // WorkflowList // required
|
|
358
|
+
* // { // Workflow
|
|
359
|
+
* // steps: [ // Steps
|
|
360
|
+
* // { // Step
|
|
361
|
+
* // name: "STRING_VALUE", // required
|
|
362
|
+
* // description: "STRING_VALUE",
|
|
363
|
+
* // executionBlockConfiguration: { // ExecutionBlockConfiguration Union: only one key present
|
|
364
|
+
* // customActionLambdaConfig: { // CustomActionLambdaConfiguration
|
|
365
|
+
* // timeoutMinutes: Number("int"),
|
|
366
|
+
* // lambdas: [ // LambdaList // required
|
|
367
|
+
* // { // Lambdas
|
|
368
|
+
* // crossAccountRole: "STRING_VALUE",
|
|
369
|
+
* // externalId: "STRING_VALUE",
|
|
370
|
+
* // arn: "STRING_VALUE",
|
|
371
|
+
* // },
|
|
372
|
+
* // ],
|
|
373
|
+
* // retryIntervalMinutes: Number("float"), // required
|
|
374
|
+
* // regionToRun: "activatingRegion" || "deactivatingRegion", // required
|
|
375
|
+
* // ungraceful: { // LambdaUngraceful
|
|
376
|
+
* // behavior: "skip",
|
|
377
|
+
* // },
|
|
378
|
+
* // },
|
|
379
|
+
* // ec2AsgCapacityIncreaseConfig: { // Ec2AsgCapacityIncreaseConfiguration
|
|
380
|
+
* // timeoutMinutes: Number("int"),
|
|
381
|
+
* // asgs: [ // AsgList // required
|
|
382
|
+
* // { // Asg
|
|
383
|
+
* // crossAccountRole: "STRING_VALUE",
|
|
384
|
+
* // externalId: "STRING_VALUE",
|
|
385
|
+
* // arn: "STRING_VALUE",
|
|
386
|
+
* // },
|
|
387
|
+
* // ],
|
|
388
|
+
* // ungraceful: { // Ec2Ungraceful
|
|
389
|
+
* // minimumSuccessPercentage: Number("int"), // required
|
|
390
|
+
* // },
|
|
391
|
+
* // targetPercent: Number("int"),
|
|
392
|
+
* // capacityMonitoringApproach: "sampledMaxInLast24Hours" || "autoscalingMaxInLast24Hours",
|
|
393
|
+
* // },
|
|
394
|
+
* // executionApprovalConfig: { // ExecutionApprovalConfiguration
|
|
395
|
+
* // timeoutMinutes: Number("int"),
|
|
396
|
+
* // approvalRole: "STRING_VALUE", // required
|
|
397
|
+
* // },
|
|
398
|
+
* // arcRoutingControlConfig: { // ArcRoutingControlConfiguration
|
|
399
|
+
* // timeoutMinutes: Number("int"),
|
|
400
|
+
* // crossAccountRole: "STRING_VALUE",
|
|
401
|
+
* // externalId: "STRING_VALUE",
|
|
402
|
+
* // regionAndRoutingControls: { // RegionAndRoutingControls // required
|
|
403
|
+
* // "<keys>": [ // ArcRoutingControlStates
|
|
404
|
+
* // { // ArcRoutingControlState
|
|
405
|
+
* // routingControlArn: "STRING_VALUE", // required
|
|
406
|
+
* // state: "On" || "Off", // required
|
|
407
|
+
* // },
|
|
408
|
+
* // ],
|
|
409
|
+
* // },
|
|
410
|
+
* // },
|
|
411
|
+
* // globalAuroraConfig: { // GlobalAuroraConfiguration
|
|
412
|
+
* // timeoutMinutes: Number("int"),
|
|
413
|
+
* // crossAccountRole: "STRING_VALUE",
|
|
414
|
+
* // externalId: "STRING_VALUE",
|
|
415
|
+
* // behavior: "switchoverOnly" || "failover", // required
|
|
416
|
+
* // ungraceful: { // GlobalAuroraUngraceful
|
|
417
|
+
* // ungraceful: "failover",
|
|
418
|
+
* // },
|
|
419
|
+
* // globalClusterIdentifier: "STRING_VALUE", // required
|
|
420
|
+
* // databaseClusterArns: [ // AuroraClusterArns // required
|
|
421
|
+
* // "STRING_VALUE",
|
|
422
|
+
* // ],
|
|
423
|
+
* // },
|
|
424
|
+
* // parallelConfig: { // ParallelExecutionBlockConfiguration
|
|
425
|
+
* // steps: [ // required
|
|
426
|
+
* // {
|
|
427
|
+
* // name: "STRING_VALUE", // required
|
|
428
|
+
* // description: "STRING_VALUE",
|
|
429
|
+
* // executionBlockConfiguration: {// Union: only one key present
|
|
430
|
+
* // customActionLambdaConfig: {
|
|
431
|
+
* // timeoutMinutes: Number("int"),
|
|
432
|
+
* // lambdas: [ // required
|
|
433
|
+
* // {
|
|
434
|
+
* // crossAccountRole: "STRING_VALUE",
|
|
435
|
+
* // externalId: "STRING_VALUE",
|
|
436
|
+
* // arn: "STRING_VALUE",
|
|
437
|
+
* // },
|
|
438
|
+
* // ],
|
|
439
|
+
* // retryIntervalMinutes: Number("float"), // required
|
|
440
|
+
* // regionToRun: "activatingRegion" || "deactivatingRegion", // required
|
|
441
|
+
* // ungraceful: {
|
|
442
|
+
* // behavior: "skip",
|
|
443
|
+
* // },
|
|
444
|
+
* // },
|
|
445
|
+
* // ec2AsgCapacityIncreaseConfig: {
|
|
446
|
+
* // timeoutMinutes: Number("int"),
|
|
447
|
+
* // asgs: [ // required
|
|
448
|
+
* // {
|
|
449
|
+
* // crossAccountRole: "STRING_VALUE",
|
|
450
|
+
* // externalId: "STRING_VALUE",
|
|
451
|
+
* // arn: "STRING_VALUE",
|
|
452
|
+
* // },
|
|
453
|
+
* // ],
|
|
454
|
+
* // ungraceful: {
|
|
455
|
+
* // minimumSuccessPercentage: Number("int"), // required
|
|
456
|
+
* // },
|
|
457
|
+
* // targetPercent: Number("int"),
|
|
458
|
+
* // capacityMonitoringApproach: "sampledMaxInLast24Hours" || "autoscalingMaxInLast24Hours",
|
|
459
|
+
* // },
|
|
460
|
+
* // executionApprovalConfig: {
|
|
461
|
+
* // timeoutMinutes: Number("int"),
|
|
462
|
+
* // approvalRole: "STRING_VALUE", // required
|
|
463
|
+
* // },
|
|
464
|
+
* // arcRoutingControlConfig: {
|
|
465
|
+
* // timeoutMinutes: Number("int"),
|
|
466
|
+
* // crossAccountRole: "STRING_VALUE",
|
|
467
|
+
* // externalId: "STRING_VALUE",
|
|
468
|
+
* // regionAndRoutingControls: { // required
|
|
469
|
+
* // "<keys>": [
|
|
470
|
+
* // {
|
|
471
|
+
* // routingControlArn: "STRING_VALUE", // required
|
|
472
|
+
* // state: "On" || "Off", // required
|
|
473
|
+
* // },
|
|
474
|
+
* // ],
|
|
475
|
+
* // },
|
|
476
|
+
* // },
|
|
477
|
+
* // globalAuroraConfig: {
|
|
478
|
+
* // timeoutMinutes: Number("int"),
|
|
479
|
+
* // crossAccountRole: "STRING_VALUE",
|
|
480
|
+
* // externalId: "STRING_VALUE",
|
|
481
|
+
* // behavior: "switchoverOnly" || "failover", // required
|
|
482
|
+
* // ungraceful: {
|
|
483
|
+
* // ungraceful: "failover",
|
|
484
|
+
* // },
|
|
485
|
+
* // globalClusterIdentifier: "STRING_VALUE", // required
|
|
486
|
+
* // databaseClusterArns: [ // required
|
|
487
|
+
* // "STRING_VALUE",
|
|
488
|
+
* // ],
|
|
489
|
+
* // },
|
|
490
|
+
* // parallelConfig: {
|
|
491
|
+
* // steps: "<Steps>", // required
|
|
492
|
+
* // },
|
|
493
|
+
* // regionSwitchPlanConfig: { // RegionSwitchPlanConfiguration
|
|
494
|
+
* // crossAccountRole: "STRING_VALUE",
|
|
495
|
+
* // externalId: "STRING_VALUE",
|
|
496
|
+
* // arn: "STRING_VALUE", // required
|
|
497
|
+
* // },
|
|
498
|
+
* // ecsCapacityIncreaseConfig: { // EcsCapacityIncreaseConfiguration
|
|
499
|
+
* // timeoutMinutes: Number("int"),
|
|
500
|
+
* // services: [ // ServiceList // required
|
|
501
|
+
* // { // Service
|
|
502
|
+
* // crossAccountRole: "STRING_VALUE",
|
|
503
|
+
* // externalId: "STRING_VALUE",
|
|
504
|
+
* // clusterArn: "STRING_VALUE",
|
|
505
|
+
* // serviceArn: "STRING_VALUE",
|
|
506
|
+
* // },
|
|
507
|
+
* // ],
|
|
508
|
+
* // ungraceful: { // EcsUngraceful
|
|
509
|
+
* // minimumSuccessPercentage: Number("int"), // required
|
|
510
|
+
* // },
|
|
511
|
+
* // targetPercent: Number("int"),
|
|
512
|
+
* // capacityMonitoringApproach: "sampledMaxInLast24Hours" || "containerInsightsMaxInLast24Hours",
|
|
513
|
+
* // },
|
|
514
|
+
* // eksResourceScalingConfig: { // EksResourceScalingConfiguration
|
|
515
|
+
* // timeoutMinutes: Number("int"),
|
|
516
|
+
* // kubernetesResourceType: { // KubernetesResourceType
|
|
517
|
+
* // apiVersion: "STRING_VALUE", // required
|
|
518
|
+
* // kind: "STRING_VALUE", // required
|
|
519
|
+
* // },
|
|
520
|
+
* // scalingResources: [ // KubernetesScalingApps
|
|
521
|
+
* // { // KubernetesScalingApplication
|
|
522
|
+
* // "<keys>": { // RegionalScalingResource
|
|
523
|
+
* // "<keys>": { // KubernetesScalingResource
|
|
524
|
+
* // namespace: "STRING_VALUE", // required
|
|
525
|
+
* // name: "STRING_VALUE", // required
|
|
526
|
+
* // hpaName: "STRING_VALUE",
|
|
527
|
+
* // },
|
|
528
|
+
* // },
|
|
529
|
+
* // },
|
|
530
|
+
* // ],
|
|
531
|
+
* // eksClusters: [ // EksClusters
|
|
532
|
+
* // { // EksCluster
|
|
533
|
+
* // crossAccountRole: "STRING_VALUE",
|
|
534
|
+
* // externalId: "STRING_VALUE",
|
|
535
|
+
* // clusterArn: "STRING_VALUE", // required
|
|
536
|
+
* // },
|
|
537
|
+
* // ],
|
|
538
|
+
* // ungraceful: { // EksResourceScalingUngraceful
|
|
539
|
+
* // minimumSuccessPercentage: Number("int"), // required
|
|
540
|
+
* // },
|
|
541
|
+
* // targetPercent: Number("int"),
|
|
542
|
+
* // capacityMonitoringApproach: "sampledMaxInLast24Hours",
|
|
543
|
+
* // },
|
|
544
|
+
* // route53HealthCheckConfig: { // Route53HealthCheckConfiguration
|
|
545
|
+
* // timeoutMinutes: Number("int"),
|
|
546
|
+
* // crossAccountRole: "STRING_VALUE",
|
|
547
|
+
* // externalId: "STRING_VALUE",
|
|
548
|
+
* // hostedZoneId: "STRING_VALUE", // required
|
|
549
|
+
* // recordName: "STRING_VALUE", // required
|
|
550
|
+
* // recordSets: [ // Route53ResourceRecordSetList
|
|
551
|
+
* // { // Route53ResourceRecordSet
|
|
552
|
+
* // recordSetIdentifier: "STRING_VALUE",
|
|
553
|
+
* // region: "STRING_VALUE",
|
|
554
|
+
* // },
|
|
555
|
+
* // ],
|
|
556
|
+
* // },
|
|
557
|
+
* // },
|
|
558
|
+
* // executionBlockType: "CustomActionLambda" || "ManualApproval" || "AuroraGlobalDatabase" || "EC2AutoScaling" || "ARCRoutingControl" || "ARCRegionSwitchPlan" || "Parallel" || "ECSServiceScaling" || "EKSResourceScaling" || "Route53HealthCheck", // required
|
|
559
|
+
* // },
|
|
560
|
+
* // ],
|
|
561
|
+
* // },
|
|
562
|
+
* // regionSwitchPlanConfig: {
|
|
563
|
+
* // crossAccountRole: "STRING_VALUE",
|
|
564
|
+
* // externalId: "STRING_VALUE",
|
|
565
|
+
* // arn: "STRING_VALUE", // required
|
|
566
|
+
* // },
|
|
567
|
+
* // ecsCapacityIncreaseConfig: {
|
|
568
|
+
* // timeoutMinutes: Number("int"),
|
|
569
|
+
* // services: [ // required
|
|
570
|
+
* // {
|
|
571
|
+
* // crossAccountRole: "STRING_VALUE",
|
|
572
|
+
* // externalId: "STRING_VALUE",
|
|
573
|
+
* // clusterArn: "STRING_VALUE",
|
|
574
|
+
* // serviceArn: "STRING_VALUE",
|
|
575
|
+
* // },
|
|
576
|
+
* // ],
|
|
577
|
+
* // ungraceful: {
|
|
578
|
+
* // minimumSuccessPercentage: Number("int"), // required
|
|
579
|
+
* // },
|
|
580
|
+
* // targetPercent: Number("int"),
|
|
581
|
+
* // capacityMonitoringApproach: "sampledMaxInLast24Hours" || "containerInsightsMaxInLast24Hours",
|
|
582
|
+
* // },
|
|
583
|
+
* // eksResourceScalingConfig: {
|
|
584
|
+
* // timeoutMinutes: Number("int"),
|
|
585
|
+
* // kubernetesResourceType: {
|
|
586
|
+
* // apiVersion: "STRING_VALUE", // required
|
|
587
|
+
* // kind: "STRING_VALUE", // required
|
|
588
|
+
* // },
|
|
589
|
+
* // scalingResources: [
|
|
590
|
+
* // {
|
|
591
|
+
* // "<keys>": {
|
|
592
|
+
* // "<keys>": {
|
|
593
|
+
* // namespace: "STRING_VALUE", // required
|
|
594
|
+
* // name: "STRING_VALUE", // required
|
|
595
|
+
* // hpaName: "STRING_VALUE",
|
|
596
|
+
* // },
|
|
597
|
+
* // },
|
|
598
|
+
* // },
|
|
599
|
+
* // ],
|
|
600
|
+
* // eksClusters: [
|
|
601
|
+
* // {
|
|
602
|
+
* // crossAccountRole: "STRING_VALUE",
|
|
603
|
+
* // externalId: "STRING_VALUE",
|
|
604
|
+
* // clusterArn: "STRING_VALUE", // required
|
|
605
|
+
* // },
|
|
606
|
+
* // ],
|
|
607
|
+
* // ungraceful: {
|
|
608
|
+
* // minimumSuccessPercentage: Number("int"), // required
|
|
609
|
+
* // },
|
|
610
|
+
* // targetPercent: Number("int"),
|
|
611
|
+
* // capacityMonitoringApproach: "sampledMaxInLast24Hours",
|
|
612
|
+
* // },
|
|
613
|
+
* // route53HealthCheckConfig: {
|
|
614
|
+
* // timeoutMinutes: Number("int"),
|
|
615
|
+
* // crossAccountRole: "STRING_VALUE",
|
|
616
|
+
* // externalId: "STRING_VALUE",
|
|
617
|
+
* // hostedZoneId: "STRING_VALUE", // required
|
|
618
|
+
* // recordName: "STRING_VALUE", // required
|
|
619
|
+
* // recordSets: [
|
|
620
|
+
* // {
|
|
621
|
+
* // recordSetIdentifier: "STRING_VALUE",
|
|
622
|
+
* // region: "STRING_VALUE",
|
|
623
|
+
* // },
|
|
624
|
+
* // ],
|
|
625
|
+
* // },
|
|
626
|
+
* // },
|
|
627
|
+
* // executionBlockType: "CustomActionLambda" || "ManualApproval" || "AuroraGlobalDatabase" || "EC2AutoScaling" || "ARCRoutingControl" || "ARCRegionSwitchPlan" || "Parallel" || "ECSServiceScaling" || "EKSResourceScaling" || "Route53HealthCheck", // required
|
|
628
|
+
* // },
|
|
629
|
+
* // ],
|
|
630
|
+
* // workflowTargetAction: "activate" || "deactivate", // required
|
|
631
|
+
* // workflowTargetRegion: "STRING_VALUE",
|
|
632
|
+
* // workflowDescription: "STRING_VALUE",
|
|
633
|
+
* // },
|
|
634
|
+
* // ],
|
|
635
|
+
* // executionRole: "STRING_VALUE", // required
|
|
636
|
+
* // recoveryTimeObjectiveMinutes: Number("int"),
|
|
637
|
+
* // associatedAlarms: { // AssociatedAlarmMap
|
|
638
|
+
* // "<keys>": { // AssociatedAlarm
|
|
639
|
+
* // crossAccountRole: "STRING_VALUE",
|
|
640
|
+
* // externalId: "STRING_VALUE",
|
|
641
|
+
* // resourceIdentifier: "STRING_VALUE", // required
|
|
642
|
+
* // alarmType: "applicationHealth" || "trigger", // required
|
|
643
|
+
* // },
|
|
644
|
+
* // },
|
|
645
|
+
* // triggers: [ // TriggerList
|
|
646
|
+
* // { // Trigger
|
|
647
|
+
* // description: "STRING_VALUE",
|
|
648
|
+
* // targetRegion: "STRING_VALUE", // required
|
|
649
|
+
* // action: "activate" || "deactivate", // required
|
|
650
|
+
* // conditions: [ // TriggerConditionList // required
|
|
651
|
+
* // { // TriggerCondition
|
|
652
|
+
* // associatedAlarmName: "STRING_VALUE", // required
|
|
653
|
+
* // condition: "red" || "green", // required
|
|
654
|
+
* // },
|
|
655
|
+
* // ],
|
|
656
|
+
* // minDelayMinutesBetweenExecutions: Number("int"), // required
|
|
657
|
+
* // },
|
|
658
|
+
* // ],
|
|
659
|
+
* // name: "STRING_VALUE", // required
|
|
660
|
+
* // regions: [ // RegionList // required
|
|
661
|
+
* // "STRING_VALUE",
|
|
662
|
+
* // ],
|
|
663
|
+
* // recoveryApproach: "activeActive" || "activePassive", // required
|
|
664
|
+
* // primaryRegion: "STRING_VALUE",
|
|
665
|
+
* // owner: "STRING_VALUE", // required
|
|
666
|
+
* // version: "STRING_VALUE",
|
|
667
|
+
* // updatedAt: new Date("TIMESTAMP"),
|
|
668
|
+
* // },
|
|
669
|
+
* // };
|
|
670
|
+
*
|
|
671
|
+
* ```
|
|
672
|
+
*
|
|
673
|
+
* @param CreatePlanCommandInput - {@link CreatePlanCommandInput}
|
|
674
|
+
* @returns {@link CreatePlanCommandOutput}
|
|
675
|
+
* @see {@link CreatePlanCommandInput} for command's `input` shape.
|
|
676
|
+
* @see {@link CreatePlanCommandOutput} for command's `response` shape.
|
|
677
|
+
* @see {@link ARCRegionSwitchClientResolvedConfig | config} for ARCRegionSwitchClient's `config` shape.
|
|
678
|
+
*
|
|
679
|
+
* @throws {@link ARCRegionSwitchServiceException}
|
|
680
|
+
* <p>Base exception class for all service exceptions from ARCRegionSwitch service.</p>
|
|
681
|
+
*
|
|
682
|
+
*
|
|
683
|
+
* @public
|
|
684
|
+
*/
|
|
685
|
+
export declare class CreatePlanCommand extends CreatePlanCommand_base {
|
|
686
|
+
/** @internal type navigation helper, not in runtime. */
|
|
687
|
+
protected static __types: {
|
|
688
|
+
api: {
|
|
689
|
+
input: CreatePlanRequest;
|
|
690
|
+
output: CreatePlanResponse;
|
|
691
|
+
};
|
|
692
|
+
sdk: {
|
|
693
|
+
input: CreatePlanCommandInput;
|
|
694
|
+
output: CreatePlanCommandOutput;
|
|
695
|
+
};
|
|
696
|
+
};
|
|
697
|
+
}
|