Skip to main content

security_controls

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

Overview

Namesecurity_controls
TypeResource
Idaws.securityhub.security_controls

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
security_controlsarrayAn array that returns the identifier, Amazon Resource Name (ARN), and other details about a security control. The same information is returned whether the request includes SecurityControlId or SecurityControlArn.
unprocessed_idsarrayA security control (identified with SecurityControlId, SecurityControlArn, or a mix of both parameters) for which details cannot be returned.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
batch_get_security_controlsselectregionProvides details about a batch of security controls for the current Amazon Web Services account and Amazon Web Services Region.
update_security_controlupdateregion, SecurityControlId, ParametersUpdates the properties of a security control.

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

Provides details about a batch of security controls for the current Amazon Web Services account and Amazon Web Services Region.

SELECT
security_controls,
unprocessed_ids
FROM aws.securityhub.security_controls
WHERE region = '{{ region }}' -- required
;

UPDATE examples

Updates the properties of a security control.

UPDATE aws.securityhub.security_controls
SET
SecurityControlId = '{{ SecurityControlId }}',
Parameters = '{{ Parameters }}',
LastUpdateReason = '{{ LastUpdateReason }}'
WHERE
region = '{{ region }}' --required
AND SecurityControlId = '{{ SecurityControlId }}' --required
AND Parameters = '{{ Parameters }}' --required;