Skip to main content

standards_control_associations

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

Overview

Namestandards_control_associations
TypeResource
Idaws.securityhub.standards_control_associations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
standards_control_association_detailsarrayProvides the enablement status of a security control in a specified standard and other details for the control in relation to the specified standard.
unprocessed_associationsarrayA security control (identified with SecurityControlId, SecurityControlArn, or a mix of both parameters) whose enablement status in a specified standard cannot be returned.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
batch_get_standards_control_associationsselectregionFor a batch of security controls and standards, identifies whether each control is currently enabled or disabled in a standard. Calls to this operation return a RESOURCE_NOT_FOUND_EXCEPTION error when the standard subscription for the association has a NOT_READY_FOR_UPDATES value for StandardsControlsUpdatable.
list_standards_control_associationsselectSecurityControlId, regionNextToken, MaxResultsSpecifies whether a control is currently enabled or disabled in each enabled standard in the calling account. This operation omits standards control associations for standard subscriptions where StandardsControlsUpdatable has value NOT_READY_FOR_UPDATES.
batch_update_standards_control_associationsexecregion, StandardsControlAssociationUpdatesFor a batch of security controls and standards, this operation updates the enablement status of a control in a standard.

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
SecurityControlIdstringThe identifier of the control (identified with SecurityControlId, SecurityControlArn, or a mix of both parameters) that you want to determine the enablement status of in each enabled standard.
regionstringAWS region (default: us-east-1)
MaxResultsintegerAn optional parameter that limits the total results of the API response to the specified number. If this parameter isn't provided in the request, the results include the first 25 standard and control associations. The results also include a NextToken parameter that you can use in a subsequent API call to get the next 25 associations. This repeats until all associations for the specified control are returned. The number of results is limited by the number of supported Security Hub CSPM standards that you've enabled in the calling account.
NextTokenstringOptional pagination parameter.

SELECT examples

For a batch of security controls and standards, identifies whether each control is currently enabled or disabled in a standard. Calls to this operation return a RESOURCE_NOT_FOUND_EXCEPTION error when the standard subscription for the association has a NOT_READY_FOR_UPDATES value for StandardsControlsUpdatable.

SELECT
standards_control_association_details,
unprocessed_associations
FROM aws.securityhub.standards_control_associations
WHERE region = '{{ region }}' -- required
;

Lifecycle Methods

For a batch of security controls and standards, this operation updates the enablement status of a control in a standard.

EXEC aws.securityhub.standards_control_associations.batch_update_standards_control_associations
@region='{{ region }}' --required
@@json=
'{
"StandardsControlAssociationUpdates": "{{ StandardsControlAssociationUpdates }}"
}'
;