Skip to main content

managed_resources

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

Overview

Namemanaged_resources
TypeResource
Idaws.arc_zonal_shift.managed_resources

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringThe name of the resource.
applied_weightsobjectA collection of key-value pairs that indicate whether resources are active in Availability Zones or not. The key name is the Availability Zone where the resource is deployed. The value is 1 or 0.
arnstringThe Amazon Resource Name (ARN) for the resource. (pattern: <code>arn:.*</code>)
autoshiftsarrayAn array of the autoshifts that are active for the resource.
practice_run_configurationobjectThe practice run configuration for zonal autoshift that's associated with the resource.
zonal_autoshift_statusstringThe status for zonal autoshift for a resource. When the autoshift status is ENABLED, Amazon Web Services shifts traffic for a resource away from an Availability Zone, on your behalf, when Amazon Web Services determines that there's an issue in the Availability Zone that could potentially affect customers. (ENABLED, DISABLED)
zonal_shiftsarrayThe zonal shifts that are currently active for a resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_managed_resourceselectresource_identifier, regionGet information about a resource that's been registered for zonal shifts with Amazon Application Recovery Controller in this Amazon Web Services Region. Resources that are registered for zonal shifts are managed resources in ARC. You can start zonal shifts and configure zonal autoshift for managed resources.
list_managed_resourcesselectregionnextToken, maxResultsLists all the resources in your Amazon Web Services account in this Amazon Web Services Region that are managed for zonal shifts in Amazon Application Recovery Controller, and information about them. The information includes the zonal autoshift status for the resource, as well as the Amazon Resource Name (ARN), the Availability Zones that each resource is deployed in, and the resource name.

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)
resource_identifierstringThe identifier for the resource that Amazon Web Services shifts traffic for. The identifier is the Amazon Resource Name (ARN) for the resource. Amazon Application Recovery Controller currently supports enabling the following resources for zonal shift and zonal autoshift: Amazon EC2 Auto Scaling groups Amazon Elastic Kubernetes Service Application Load Balancer Network Load Balancer
maxResultsintegerThe number of objects that you want to return with this call.
nextTokenstringSpecifies that you want to receive the next page of results. Valid only if you received a nextToken response in the previous request. If you did, it indicates that more output is available. Set this parameter to the value provided by the previous call's nextToken response to request the next page of results.

SELECT examples

Get information about a resource that's been registered for zonal shifts with Amazon Application Recovery Controller in this Amazon Web Services Region. Resources that are registered for zonal shifts are managed resources in ARC. You can start zonal shifts and configure zonal autoshift for managed resources.

SELECT
name,
applied_weights,
arn,
autoshifts,
practice_run_configuration,
zonal_autoshift_status,
zonal_shifts
FROM aws.arc_zonal_shift.managed_resources
WHERE resource_identifier = '{{ resource_identifier }}' -- required
AND region = '{{ region }}' -- required
;