StartPlanExecution
Starts the execution of a Region switch plan. You can execute a plan in either graceful or ungraceful mode.
Specifing ungraceful mode either changes the behavior of the execution blocks in a workflow or skips specific execution blocks.
Request Parameters
- action
-
The action to perform. Valid values are
activate(to shift traffic to the target Region) ordeactivate(to shift traffic away from the target Region).Type: String
Valid Values:
activate | deactivateRequired: Yes
- comment
-
An optional comment explaining why the plan execution is being started.
Type: String
Length Constraints: Minimum length of 0. Maximum length of 1024.
Required: No
- latestVersion
-
A boolean value indicating whether to use the latest version of the plan. If set to false, you must specify a specific version.
Type: String
Required: No
- mode
-
The plan execution mode. Valid values are
graceful, for starting the execution in graceful mode, orungraceful, for starting the execution in ungraceful mode.Type: String
Valid Values:
graceful | ungracefulRequired: No
- planArn
-
The Amazon Resource Name (ARN) of the plan to execute.
Type: String
Pattern:
arn:aws[a-zA-Z-]*:arc-region-switch::[0-9]{12}:plan/([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,30}[a-zA-Z0-9])?):([a-z0-9]{6})Required: Yes
- targetRegion
-
The AWS Region to target with this execution. This is the Region that traffic will be shifted to or from, depending on the action.
Type: String
Required: Yes
Response Elements
The following elements are returned by the service.
- activateRegion
-
The AWS Region to activate.
Type: String
- deactivateRegion
-
The AWS Region to deactivate.
Type: String
- executionId
-
The execution identifier of a plan execution.
Type: String
- plan
-
The details of the Region switch plan.
Type: String
Pattern:
arn:aws[a-zA-Z-]*:arc-region-switch::[0-9]{12}:plan/([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,30}[a-zA-Z0-9])?):([a-z0-9]{6}) - planVersion
-
The version of the plan, a unique number generated by Region switch.
Type: String
Errors
For information about the errors that are common to all actions, see Common Errors.
- AccessDeniedException
-
You do not have sufficient access to perform this action.
HTTP Status Code: 403
HTTP Status Code: 403
- IllegalArgumentException
-
The request processing has an invalid argument.
HTTP Status Code: 400
- IllegalStateException
-
The operation failed because the current state of the resource doesn't allow the operation to proceed.
HTTP Status Code: 400
HTTP Status Code: 400
- ResourceNotFoundException
-
The specified resource was not found.
HTTP Status Code: 404
HTTP Status Code: 404
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: