Skip to main content

plan_in_regions

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

Overview

Nameplan_in_regions
TypeResource
Idaws.arc_region_switch.plan_in_regions

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringThe name for a plan. (pattern: <code>[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,30}[a-zA-Z0-9])?</code>)
arnstringThe Amazon Resource Name (ARN) of the 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>)
associated_alarmsobjectThe associated application health alarms for a plan.
descriptionstringThe description for a plan.
execution_rolestringThe execution role for a plan. (pattern: <code>arn:aws[a-zA-Z0-9-]*:iam::[0-9]{12}:role/.+</code>)
ownerstringThe owner of a 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 for a plan.
regionsarrayThe Amazon Web Services Regions for a plan.
report_configurationobjectConfiguration for automatic report generation for plan executions. When configured, Region switch automatically generates a report after each plan execution that includes execution events, plan configuration, and CloudWatch alarm states.
triggersarrayThe triggers for a plan.
updated_atstring (date-time)The timestamp when the plan was last updated.
versionstringThe version for the plan.
workflowsarrayThe workflows for a plan.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_plan_in_regionselectregionRetrieves information about a Region switch plan in a specific Amazon Web Services Region. This operation is useful for getting Region-specific information about a plan.

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

Retrieves information about a Region switch plan in a specific Amazon Web Services Region. This operation is useful for getting Region-specific information about a plan.

SELECT
name,
arn,
associated_alarms,
description,
execution_role,
owner,
primary_region,
recovery_approach,
recovery_time_objective_minutes,
regions,
report_configuration,
triggers,
updated_at,
version,
workflows
FROM aws.arc_region_switch.plan_in_regions
WHERE region = '{{ region }}' -- required
;