Skip to main content

hubs

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

Overview

Namehubs
TypeResource
Idaws.securityhub.hubs

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
auto_enable_controlsbooleanWhether to automatically enable new controls when they are added to standards that are enabled. If set to true, then new controls for enabled standards are enabled automatically. If set to false, then new controls are not enabled. When you automatically enable new controls, you can interact with the controls in the console and programmatically immediately after release. However, automatically enabled controls have a temporary default status of DISABLED. It can take up to several days for Security Hub CSPM to process the control release and designate the control as ENABLED in your account. During the processing period, you can manually enable or disable a control, and Security Hub CSPM will maintain that designation regardless of whether you have AutoEnableControls set to true.
control_finding_generatorstringSpecifies whether the calling account has consolidated control findings turned on. If the value for this field is set to SECURITY_CONTROL, Security Hub CSPM generates a single finding for a control check even when the check applies to multiple enabled standards. If the value for this field is set to STANDARD_CONTROL, Security Hub CSPM generates separate findings for a control check when the check applies to multiple enabled standards. The value for this field in a member account matches the value in the administrator account. For accounts that aren't part of an organization, the default value of this field is SECURITY_CONTROL if you enabled Security Hub CSPM on or after February 23, 2023. (STANDARD_CONTROL, SECURITY_CONTROL)
hub_arnstringThe ARN of the Hub resource that was retrieved. (pattern: <code>.\S.</code>)
subscribed_atstringThe date and time when Security Hub CSPM was enabled in the account. (pattern: <code>.\S.</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_hubselectregionHubArnReturns details about the Hub resource in your account, including the HubArn and the time when you enabled Security Hub CSPM.

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)
HubArnstringThe ARN of the Hub resource to retrieve.

SELECT examples

Returns details about the Hub resource in your account, including the HubArn and the time when you enabled Security Hub CSPM.

SELECT
auto_enable_controls,
control_finding_generator,
hub_arn,
subscribed_at
FROM aws.securityhub.hubs
WHERE region = '{{ region }}' -- required
AND HubArn = '{{ HubArn }}'
;