Skip to main content

practice_run_configurations

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

Overview

Namepractice_run_configurations
TypeResource
Idaws.arc_zonal_shift.practice_run_configurations

Fields

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
create_practice_run_configurationinsertregion, resourceIdentifier, outcomeAlarmsA practice run configuration for zonal autoshift is required when you enable zonal autoshift. A practice run configuration includes specifications for blocked dates and blocked time windows, and for Amazon CloudWatch alarms that you create to use with practice runs. The alarms that you specify are an outcome alarm, to monitor application health during practice runs and, optionally, a blocking alarm, to block practice runs from starting. When a resource has a practice run configuration, ARC starts zonal shifts for the resource weekly, to shift traffic for practice runs. Practice runs help you to ensure that shifting away traffic from an Availability Zone during an autoshift is safe for your application. For more information, see Considerations when you configure zonal autoshift in the Amazon Application Recovery Controller Developer Guide.
update_practice_run_configurationupdateresource_identifier, regionUpdate a practice run configuration to change one or more of the following: add, change, or remove the blocking alarm; change the outcome alarm; or add, change, or remove blocking dates or time windows.
delete_practice_run_configurationdeleteresource_identifier, regionDeletes the practice run configuration for a resource. Before you can delete a practice run configuration for a resource., you must disable zonal autoshift for the resource. Practice runs must be configured for zonal autoshift to be enabled.

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 you want to delete the practice run configuration for. The identifier is the Amazon Resource Name (ARN) for the resource.

INSERT examples

A practice run configuration for zonal autoshift is required when you enable zonal autoshift. A practice run configuration includes specifications for blocked dates and blocked time windows, and for Amazon CloudWatch alarms that you create to use with practice runs. The alarms that you specify are an outcome alarm, to monitor application health during practice runs and, optionally, a blocking alarm, to block practice runs from starting. When a resource has a practice run configuration, ARC starts zonal shifts for the resource weekly, to shift traffic for practice runs. Practice runs help you to ensure that shifting away traffic from an Availability Zone during an autoshift is safe for your application. For more information, see Considerations when you configure zonal autoshift in the Amazon Application Recovery Controller Developer Guide.

INSERT INTO aws.arc_zonal_shift.practice_run_configurations (
resourceIdentifier,
blockedWindows,
blockedDates,
blockingAlarms,
allowedWindows,
outcomeAlarms,
region
)
SELECT
'{{ resourceIdentifier }}' /* required */,
'{{ blockedWindows }}',
'{{ blockedDates }}',
'{{ blockingAlarms }}',
'{{ allowedWindows }}',
'{{ outcomeAlarms }}' /* required */,
'{{ region }}'
RETURNING
name,
arn,
practice_run_configuration,
zonal_autoshift_status
;

UPDATE examples

Update a practice run configuration to change one or more of the following: add, change, or remove the blocking alarm; change the outcome alarm; or add, change, or remove blocking dates or time windows.

UPDATE aws.arc_zonal_shift.practice_run_configurations
SET
blockedWindows = '{{ blockedWindows }}',
blockedDates = '{{ blockedDates }}',
blockingAlarms = '{{ blockingAlarms }}',
allowedWindows = '{{ allowedWindows }}',
outcomeAlarms = '{{ outcomeAlarms }}'
WHERE
resource_identifier = '{{ resource_identifier }}' --required
AND region = '{{ region }}' --required
RETURNING
name,
arn,
practice_run_configuration,
zonal_autoshift_status;

DELETE examples

Deletes the practice run configuration for a resource. Before you can delete a practice run configuration for a resource., you must disable zonal autoshift for the resource. Practice runs must be configured for zonal autoshift to be enabled.

DELETE FROM aws.arc_zonal_shift.practice_run_configurations
WHERE resource_identifier = '{{ resource_identifier }}' --required
AND region = '{{ region }}' --required
;