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*.
Idawscc.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. <br />&#42;Maximum&#42;: &#96;&#96;100&#96;&#96;
regionstringAWS region.

For more information, see AWS::SecurityHub::Standard.

Methods

NameResourceAccessible byRequired Params
create_resourcestandardsINSERTStandardsArn, region
delete_resourcestandardsDELETEIdentifier, region
update_resourcestandardsUPDATEIdentifier, PatchDocument, region
list_resourcesstandards_list_onlySELECTregion
get_resourcestandardsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual standard.

SELECT
region,
standards_subscription_arn,
standards_arn,
disabled_standards_controls
FROM awscc.securityhub.standards
WHERE
region = 'us-east-1' AND
Identifier = '{{ standards_subscription_arn }}';

INSERT example

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

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

UPDATE example

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

/*+ update */
UPDATE awscc.securityhub.standards
SET PatchDocument = string('{{ {
"DisabledStandardsControls": disabled_standards_controls
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ standards_subscription_arn }}';

DELETE example

/*+ delete */
DELETE FROM awscc.securityhub.standards
WHERE
Identifier = '{{ standards_subscription_arn }}' AND
region = 'us-east-1';

Permissions

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

securityhub:GetEnabledStandards,
securityhub:BatchEnableStandards,
securityhub:UpdateStandardsControl