Skip to main content

standards

Creates, updates, deletes or gets a standard resource or lists standards in a region

Overview

Namestandards
TypeResource
DescriptionThe AWS::SecurityHub::Standard resource specifies the enablement of a security standard. The standard is identified by the StandardsArn property. To view a list of ASH standards and their Amazon Resource Names (ARNs), use the [DescribeStandards](https://docs.aws.amazon.com/securityhub/1.0/APIReference/API_DescribeStandards.html) API operation.
You must create a separate AWS::SecurityHub::Standard resource for each standard that you want to enable.
For more information about ASH standards, see [standards reference](https://docs.aws.amazon.com/securityhub/latest/userguide/standards-reference.html) in the *User Guide*.
Idaws.securityhub.standards

Fields

NameDatatypeDescription
standards_subscription_arnstring
standards_arnstringThe ARN of the standard that you want to enable. To view a list of available ASH standards and their ARNs, use the [DescribeStandards](https://docs.aws.amazon.com/securityhub/1.0/APIReference/API_DescribeStandards.html) API operation.
disabled_standards_controlsarraySpecifies which controls are to be disabled in a standard.
*Maximum*: 100
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTStandardsArn, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all standards in a region.

SELECT
region,
standards_subscription_arn,
standards_arn,
disabled_standards_controls
FROM aws.securityhub.standards
WHERE region = 'us-east-1';

Gets all properties from an individual standard.

SELECT
region,
standards_subscription_arn,
standards_arn,
disabled_standards_controls
FROM aws.securityhub.standards
WHERE region = 'us-east-1' AND data__Identifier = '<StandardsSubscriptionArn>';

INSERT example

Use the following StackQL query and manifest file to create a new standard resource, using stack-deploy.

/*+ create */
INSERT INTO aws.securityhub.standards (
StandardsArn,
region
)
SELECT
'{{ StandardsArn }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.securityhub.standards
WHERE data__Identifier = '<StandardsSubscriptionArn>'
AND region = 'us-east-1';

Permissions

To operate on the standards resource, the following permissions are required:

Create

securityhub:GetEnabledStandards,
securityhub:BatchEnableStandards,
securityhub:UpdateStandardsControl

Read

securityhub:GetEnabledStandards,
securityhub:DescribeStandardsControls

Update

securityhub:GetEnabledStandards,
securityhub:UpdateStandardsControl

Delete

securityhub:GetEnabledStandards,
securityhub:BatchDisableStandards

List

securityhub:GetEnabledStandards