Skip to main content

standards

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

Overview

Namestandards
TypeResource
Idaws.securityhub.standards

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
descriptionstringA description of the standard. (pattern: <code>.\S.</code>)
enabled_by_defaultbooleanWhether the standard is enabled by default. When Security Hub CSPM is enabled from the console, if a standard is enabled by default, the check box for that standard is selected by default. When Security Hub CSPM is enabled using the EnableSecurityHub API operation, the standard is enabled by default unless EnableDefaultStandards is set to false.
namestringThe name of the standard. (pattern: <code>.\S.</code>)
providerstringThe cloud provider whose resources the standard evaluates. For example, AWS or Azure. (AWS, Azure)
standards_arnstringThe ARN of the standard. (pattern: <code>.\S.</code>)
standards_managed_byobjectProvides details about the management of a standard.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_standardsselectregionNextToken, MaxResults, ProvidersReturns a list of the available standards in Security Hub CSPM. For each standard, the results include the standard ARN, the name, and a description.
batch_disable_standardsexecregion, StandardsSubscriptionArnsDisables the standards specified by the provided StandardsSubscriptionArns. For more information, see Security Standards section of the Security Hub CSPM User Guide.
batch_enable_standardsexecregion, StandardsSubscriptionRequestsEnables the standards specified by the provided StandardsArn. To obtain the ARN for a standard, use the DescribeStandards operation. For more information, see the Security Standards section of the Security Hub CSPM User Guide.

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)
MaxResultsintegerThe maximum number of standards to return.
NextTokenstringThe token that is required for pagination. On your first call to the DescribeStandards 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.
ProvidersarrayA list of cloud providers to filter the standards by. For example, specify Azure to return only standards that evaluate Azure resources.

SELECT examples

Returns a list of the available standards in Security Hub CSPM. For each standard, the results include the standard ARN, the name, and a description.

SELECT
description,
enabled_by_default,
name,
provider,
standards_arn,
standards_managed_by
FROM aws.securityhub.standards
WHERE region = '{{ region }}' -- required
AND NextToken = '{{ NextToken }}'
AND MaxResults = '{{ MaxResults }}'
AND Providers = '{{ Providers }}'
;

Lifecycle Methods

Disables the standards specified by the provided StandardsSubscriptionArns. For more information, see Security Standards section of the Security Hub CSPM User Guide.

EXEC aws.securityhub.standards.batch_disable_standards
@region='{{ region }}' --required
@@json=
'{
"StandardsSubscriptionArns": "{{ StandardsSubscriptionArns }}"
}'
;