Skip to main content

standards_controls

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

Overview

Namestandards_controls
TypeResource
Idaws.securityhub.standards_controls

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
control_idstringThe identifier of the security standard control. (pattern: <code>.\S.</code>)
control_statusstringThe current status of the security standard control. Indicates whether the control is enabled or disabled. Security Hub CSPM does not check against disabled controls. (ENABLED, DISABLED)
control_status_updated_atstring (date-time)The date and time that the status of the security standard control was most recently updated.
descriptionstringThe longer description of the security standard control. Provides information about what the control is checking for. (pattern: <code>.\S.</code>)
disabled_reasonstringThe reason provided for the most recent change in status for the control. (pattern: <code>.\S.</code>)
related_requirementsarrayThe list of requirements that are related to this control.
remediation_urlstringA link to remediation information for the control in the Security Hub CSPM user documentation. (pattern: <code>.\S.</code>)
severity_ratingstringThe severity of findings generated from this security standard control. The finding severity is based on an assessment of how easy it would be to compromise Amazon Web Services resources if the issue is detected. (LOW, MEDIUM, HIGH, CRITICAL)
standards_control_arnstringThe ARN of the security standard control. (pattern: <code>.\S.</code>)
titlestringThe title of the security standard control. (pattern: <code>.\S.</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_standards_controlsselectstandards_subscription_arn, regionNextToken, MaxResultsReturns a list of security standards controls. For each control, the results include information about whether it is currently enabled, the severity, and a link to remediation information. This operation returns an empty list for standard subscriptions where StandardsControlsUpdatable has value NOT_READY_FOR_UPDATES.
update_standards_controlupdatestandards_control_arn, regionUsed to control whether an individual security standard control is enabled or disabled. Calls to this operation return a RESOURCE_NOT_FOUND_EXCEPTION error when the standard subscription for the control has StandardsControlsUpdatable value NOT_READY_FOR_UPDATES.

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)
standards_control_arnstringThe ARN of the security standard control to enable or disable.
standards_subscription_arnstringThe ARN of a resource that represents your subscription to a supported standard. To get the subscription ARNs of the standards you have enabled, use the GetEnabledStandards operation.
MaxResultsintegerThe maximum number of security standard controls to return.
NextTokenstringThe token that is required for pagination. On your first call to the DescribeStandardsControls operation, set the value of this parameter to NULL. For subsequent calls to the operation, to continue listing data, set the value of this parameter to the value returned from the previous response.

SELECT examples

Returns a list of security standards controls. For each control, the results include information about whether it is currently enabled, the severity, and a link to remediation information. This operation returns an empty list for standard subscriptions where StandardsControlsUpdatable has value NOT_READY_FOR_UPDATES.

SELECT
control_id,
control_status,
control_status_updated_at,
description,
disabled_reason,
related_requirements,
remediation_url,
severity_rating,
standards_control_arn,
title
FROM aws.securityhub.standards_controls
WHERE standards_subscription_arn = '{{ standards_subscription_arn }}' -- required
AND region = '{{ region }}' -- required
AND NextToken = '{{ NextToken }}'
AND MaxResults = '{{ MaxResults }}'
;

UPDATE examples

Used to control whether an individual security standard control is enabled or disabled. Calls to this operation return a RESOURCE_NOT_FOUND_EXCEPTION error when the standard subscription for the control has StandardsControlsUpdatable value NOT_READY_FOR_UPDATES.

UPDATE aws.securityhub.standards_controls
SET
ControlStatus = '{{ ControlStatus }}',
DisabledReason = '{{ DisabledReason }}'
WHERE
standards_control_arn = '{{ standards_control_arn }}' --required
AND region = '{{ region }}' --required;