Skip to main content

control_operations

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

Overview

Namecontrol_operations
TypeResource
Idaws.controltower.control_operations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
control_identifierstringThe controlIdentifier of the control for the operation. (pattern: <code>arn:aws[0-9a-zA-Z_-:/]+</code>)
enabled_control_identifierstringThe controlIdentifier of the enabled control. (pattern: <code>arn:aws[0-9a-zA-Z_-:/]+</code>)
end_timestring (date-time)The time that the operation finished.
operation_identifierstringThe identifier of the specified operation. (pattern: <code>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}</code>)
operation_typestringOne of ENABLE_CONTROL or DISABLE_CONTROL. (ENABLE_CONTROL, DISABLE_CONTROL, UPDATE_ENABLED_CONTROL, RESET_ENABLED_CONTROL)
start_timestring (date-time)The time that the operation began.
statusstringOne of IN_PROGRESS, SUCEEDED, or FAILED. (SUCCEEDED, FAILED, IN_PROGRESS)
status_messagestringIf the operation result is FAILED, this string contains a message explaining why the operation failed.
target_identifierstringThe target upon which the control operation is working. (pattern: <code>arn:aws[0-9a-zA-Z_-:/]+</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_control_operationselectregionReturns the status of a particular EnableControl or DisableControl operation. Displays a message in case of error. Details for an operation are available for 90 days. For usage examples, see the Controls Reference Guide .
list_control_operationsselectregionProvides a list of operations in progress or queued. For usage examples, see ListControlOperation examples.

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

Returns the status of a particular EnableControl or DisableControl operation. Displays a message in case of error. Details for an operation are available for 90 days. For usage examples, see the Controls Reference Guide .

SELECT
control_identifier,
enabled_control_identifier,
end_time,
operation_identifier,
operation_type,
start_time,
status,
status_message,
target_identifier
FROM aws.controltower.control_operations
WHERE region = '{{ region }}' -- required
;