Skip to main content

organization_configurations

Creates, updates, deletes, gets or lists an organization_configurations resource.

Overview

Nameorganization_configurations
TypeResource
Idaws.securityhub.organization_configurations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
auto_enablebooleanWhether to automatically enable Security Hub CSPM in new member accounts when they join the organization. If set to true, then Security Hub CSPM is automatically enabled in new accounts. If set to false, then Security Hub CSPM isn't enabled in new accounts automatically. The default value is false. If the ConfigurationType of your organization is set to CENTRAL, then this field is set to false and can't be changed in the home Region and linked Regions. However, in that case, the delegated administrator can create a configuration policy in which Security Hub CSPM is enabled and associate the policy with new organization accounts.
auto_enable_standardsstringWhether to automatically enable Security Hub CSPM default standards in new member accounts when they join the organization. If equal to DEFAULT, then Security Hub CSPM default standards are automatically enabled for new member accounts. If equal to NONE, then default standards are not automatically enabled for new member accounts. The default value of this parameter is equal to DEFAULT. If the ConfigurationType of your organization is set to CENTRAL, then this field is set to NONE and can't be changed in the home Region and linked Regions. However, in that case, the delegated administrator can create a configuration policy in which specific security standards are enabled and associate the policy with new organization accounts. (NONE, DEFAULT)
member_account_limit_reachedbooleanWhether the maximum number of allowed member accounts are already associated with the Security Hub CSPM administrator account.
organization_configurationobjectProvides information about the way an organization is configured in Security Hub CSPM.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_organization_configurationselectregionReturns information about the way your organization is configured in Security Hub CSPM. Only the Security Hub CSPM administrator account can invoke this operation.
update_organization_configurationupdateregion, AutoEnableUpdates the configuration of your organization in Security Hub CSPM. Only the Security Hub CSPM administrator account can invoke this operation.

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)

SELECT examples

Returns information about the way your organization is configured in Security Hub CSPM. Only the Security Hub CSPM administrator account can invoke this operation.

SELECT
auto_enable,
auto_enable_standards,
member_account_limit_reached,
organization_configuration
FROM aws.securityhub.organization_configurations
WHERE region = '{{ region }}' -- required
;

UPDATE examples

Updates the configuration of your organization in Security Hub CSPM. Only the Security Hub CSPM administrator account can invoke this operation.

UPDATE aws.securityhub.organization_configurations
SET
AutoEnable = {{ AutoEnable }},
AutoEnableStandards = '{{ AutoEnableStandards }}',
OrganizationConfiguration = '{{ OrganizationConfiguration }}'
WHERE
region = '{{ region }}' --required
AND AutoEnable = {{ AutoEnable }} --required;