Skip to main content

recovery_plan_executions

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

Overview

Namerecovery_plan_executions
TypeResource
Idaws.drs.recovery_plan_executions

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
completed_atstringThe timestamp when the execution completed. (pattern: <code>[1-9][0-9]*-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([0-1][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](.[0-9]+)?Z</code>)
error_detailobjectError details if the execution failed.
modestringThe execution mode. (DRILL, RECOVERY)
recovery_plan_arnstringStrict ARN type for Recovery Plan resources. Only allows safe characters in the resource portion — rejects HTML/script injection characters (<, >, ", ', etc.) per AWS API input validation standards. Resource portion allows: [A-Za-z0-9_/.-] which covers all DRS recovery plan resource identifiers (plan-xxx, st-xxx, exec-xxx, step-xxx). (pattern: <code>arn:aws(-[a-z0-9]+)*:drs:[a-z0-9-]+:[0-9]{12}:[a-zA-Z0-9_/.-]+</code>)
recovery_plan_execution_arnstringStrict ARN type for Recovery Plan resources. Only allows safe characters in the resource portion — rejects HTML/script injection characters (<, >, ", ', etc.) per AWS API input validation standards. Resource portion allows: [A-Za-z0-9_/.-] which covers all DRS recovery plan resource identifiers (plan-xxx, st-xxx, exec-xxx, step-xxx). (pattern: <code>arn:aws(-[a-z0-9]+)*:drs:[a-z0-9-]+:[0-9]{12}:[a-zA-Z0-9_/.-]+</code>)
started_atstringThe timestamp when the execution started. (pattern: <code>[1-9][0-9]*-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([0-1][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](.[0-9]+)?Z</code>)
statusstringThe execution status. (CREATED, IN_PROGRESS, COMPLETED, FAILED, CANCELLING, CANCELLED)
tagsobjectThe tags associated with the Recovery Plan execution.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_recovery_plan_executionselectregionGets the details of a Recovery Plan execution.
list_recovery_plan_executionsselectregionLists executions of Recovery Plans, optionally filtered by plan or status.
delete_recovery_plan_executiondeleteregionDeletes a Recovery Plan execution record. Must be in a terminal status.

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

Gets the details of a Recovery Plan execution.

SELECT
completed_at,
error_detail,
mode,
recovery_plan_arn,
recovery_plan_execution_arn,
started_at,
status,
tags
FROM aws.drs.recovery_plan_executions
WHERE region = '{{ region }}' -- required
;

DELETE examples

Deletes a Recovery Plan execution record. Must be in a terminal status.

DELETE FROM aws.drs.recovery_plan_executions
WHERE region = '{{ region }}' --required
;