Skip to main content

plans

Creates, updates, deletes or gets a plan resource or lists plans in a region

Overview

Nameplans
TypeResource
DescriptionRepresents a plan that specifies Regions, IAM roles, and workflows of logic required to perform the desired change to your multi-Region application
Idawscc.arcregionswitch.plans

Fields

NameDatatypeDescription
arnstring
associated_alarmsobject
descriptionstring
execution_rolestring
namestring
ownerstring
primary_regionstring
recovery_approachstring
recovery_time_objective_minutesnumber
regionsarray
tagsobject
triggersarray
versionstring
workflowsarray
health_checks_for_planobject
route53_health_checksobject
regionstringAWS region.

For more information, see AWS::ARCRegionSwitch::Plan.

Methods

NameAccessible byRequired Params
create_resourceINSERTExecutionRole, Name, RecoveryApproach, Regions, Workflows, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all properties from an individual plan.

SELECT
region,
arn,
associated_alarms,
description,
execution_role,
name,
owner,
primary_region,
recovery_approach,
recovery_time_objective_minutes,
regions,
tags,
triggers,
version,
workflows,
health_checks_for_plan,
route53_health_checks
FROM awscc.arcregionswitch.plans
WHERE region = 'us-east-1' AND data__Identifier = '<Arn>';

INSERT example

Use the following StackQL query and manifest file to create a new plan resource, using stack-deploy.

/*+ create */
INSERT INTO awscc.arcregionswitch.plans (
ExecutionRole,
Name,
RecoveryApproach,
Regions,
Workflows,
region
)
SELECT
'{{ ExecutionRole }}',
'{{ Name }}',
'{{ RecoveryApproach }}',
'{{ Regions }}',
'{{ Workflows }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM awscc.arcregionswitch.plans
WHERE data__Identifier = '<Arn>'
AND region = 'us-east-1';

Permissions

To operate on the plans resource, the following permissions are required:

Create

arc-region-switch:CreatePlan,
arc-region-switch:GetPlan,
arc-region-switch:ListRoute53HealthChecks,
arc-region-switch:ListTagsForResource,
arc-region-switch:TagResource,
iam:PassRole

Read

arc-region-switch:GetPlan,
arc-region-switch:ListRoute53HealthChecks,
arc-region-switch:ListTagsForResource

Update

arc-region-switch:GetPlan,
arc-region-switch:ListRoute53HealthChecks,
arc-region-switch:ListTagsForResource,
arc-region-switch:TagResource,
arc-region-switch:UntagResource,
arc-region-switch:UpdatePlan,
iam:PassRole

Delete

arc-region-switch:DeletePlan,
arc-region-switch:GetPlan

List

arc-region-switch:ListPlans