Skip to main content

security_control_definitions

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

Overview

Namesecurity_control_definitions
TypeResource
Idaws.securityhub.security_control_definitions

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
current_region_availabilitystringSpecifies whether a security control is available in the current Amazon Web Services Region. (AVAILABLE, UNAVAILABLE)
customizable_propertiesarraySecurity control properties that you can customize. Currently, only parameter customization is supported for select controls. An empty array is returned for controls that don’t support custom properties.
descriptionstringThe description of a security control across standards. This typically summarizes how Security Hub CSPM evaluates the control and the conditions under which it produces a failed finding. This parameter doesn't reference a specific standard. (pattern: <code>.\S.</code>)
parameter_definitionsobjectAn object that provides a security control parameter name, description, and the options for customizing it. This object is excluded for a control that doesn't support custom parameters.
providerstringThe cloud provider whose resources the security control evaluates. For example, AWS or Azure. (AWS, Azure)
remediation_urlstringA link to Security Hub CSPM documentation that explains how to remediate a failed finding for a security control. (pattern: <code>.\S.</code>)
security_control_idstringThe unique identifier of a security control across standards. Values for this field typically consist of an Amazon Web Services service name and a number (for example, APIGateway.3). This parameter differs from SecurityControlArn, which is a unique Amazon Resource Name (ARN) assigned to a control. The ARN references the security control ID (for example, arn:aws:securityhub:eu-central-1:123456789012:security-control/APIGateway.3). (pattern: <code>.\S.</code>)
severity_ratingstringThe severity of a security control. For more information about how Security Hub CSPM determines control severity, see Assigning severity to control findings in the Security Hub CSPM User Guide. (LOW, MEDIUM, HIGH, CRITICAL)
titlestringThe title of a security control. (pattern: <code>.\S.</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_security_control_definitionselectSecurityControlId, regionRetrieves the definition of a security control. The definition includes the control title, description, Region availability, parameter definitions, and other details.
list_security_control_definitionsselectregionStandardsArn, NextToken, MaxResults, ProvidersLists all of the security controls that apply to a specified 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 ID of the security control to retrieve the definition for. This field doesn’t accept an Amazon Resource Name (ARN).
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 security controls that apply to the specified standard. The results also include a NextToken parameter that you can use in a subsequent API call to get the next 25 controls. This repeats until all controls for the standard are returned.
NextTokenstringOptional pagination parameter.
ProvidersarrayA list of cloud providers to filter the security control definitions by. For example, specify Azure to return only controls that evaluate Azure resources.
StandardsArnstringThe Amazon Resource Name (ARN) of the standard that you want to view controls for.

SELECT examples

Retrieves the definition of a security control. The definition includes the control title, description, Region availability, parameter definitions, and other details.

SELECT
current_region_availability,
customizable_properties,
description,
parameter_definitions,
provider,
remediation_url,
security_control_id,
severity_rating,
title
FROM aws.securityhub.security_control_definitions
WHERE SecurityControlId = '{{ SecurityControlId }}' -- required
AND region = '{{ region }}' -- required
;