Skip to main content

plans_in_regions

Creates, updates, deletes, gets or lists a plans_in_regions resource.

Overview​

Nameplans_in_regions
TypeResource
Idaws.arc_region_switch.plans_in_regions

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringThe name of a Region switch plan. (pattern: <code>[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,30}[a-zA-Z0-9])?</code>)
active_plan_executionstringSpecifies if this is the active plan execution at this time.
arnstringThe Amazon Resource Name (ARN) of the Region switch plan. (pattern: <code>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})</code>)
descriptionstringThe description of a Region switch plan.
execution_rolestringThe execution role is a way to categorize a Region switch plan.
ownerstringThe owner of a Region switch plan. (pattern: <code>\d{12}</code>)
primary_regionstringThe primary Region for a plan. (pattern: <code>[a-z]{2}-[a-z-]+-\d+</code>)
recovery_approachstringThe recovery approach for a Region switch plan, which can be active/active (activeActive) or active/passive (activePassive). (activeActive, activePassive)
recovery_time_objective_minutesintegerThe recovery time objective that you've specified.
regionsarrayThe Amazon Web Services Region specified for a Region switch plan.
updated_atstring (date-time)The timestamp when the plan execution was last updated.
versionstringThe version for the plan.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_plans_in_regionselectregionLists all Region switch plans in your Amazon Web Services account that are available in the current Amazon Web Services Region.

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples​

Lists all Region switch plans in your Amazon Web Services account that are available in the current Amazon Web Services Region.

SELECT
name,
active_plan_execution,
arn,
description,
execution_role,
owner,
primary_region,
recovery_approach,
recovery_time_objective_minutes,
regions,
updated_at,
version
FROM aws.arc_region_switch.plans_in_regions
WHERE region = '{{ region }}' -- required
;