Skip to main content

organization_configurations

Creates, updates, deletes or gets an organization_configuration resource or lists organization_configurations in a region

Overview

Nameorganization_configurations
TypeResource
DescriptionThe AWS::SecurityHub::OrganizationConfiguration resource represents the configuration of your organization in Security Hub. Only the Security Hub administrator account can create Organization Configuration resource in each region and can opt-in to Central Configuration only in the aggregation region of FindingAggregator.
Idawscc.securityhub.organization_configurations

Fields

NameDatatypeDescription
auto_enablebooleanWhether to automatically enable Security Hub in new member accounts when they join the organization.
auto_enable_standardsstringWhether to automatically enable Security Hub default standards in new member accounts when they join the organization.
configuration_typestringIndicates whether the organization uses local or central configuration.
statusstringDescribes whether central configuration could be enabled as the ConfigurationType for the organization.
status_messagestringProvides an explanation if the value of Status is equal to FAILED when ConfigurationType is equal to CENTRAL.
member_account_limit_reachedbooleanWhether the maximum number of allowed member accounts are already associated with the Security Hub administrator account.
organization_configuration_identifierstringThe identifier of the OrganizationConfiguration being created and assigned as the unique identifier.
regionstringAWS region.

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

Methods

NameResourceAccessible byRequired Params
create_resourceorganization_configurationsINSERTAutoEnable, region
delete_resourceorganization_configurationsDELETEIdentifier, region
update_resourceorganization_configurationsUPDATEIdentifier, PatchDocument, region
list_resourcesorganization_configurations_list_onlySELECTregion
get_resourceorganization_configurationsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual organization_configuration.

SELECT
region,
auto_enable,
auto_enable_standards,
configuration_type,
status,
status_message,
member_account_limit_reached,
organization_configuration_identifier
FROM awscc.securityhub.organization_configurations
WHERE
region = 'us-east-1' AND
Identifier = '{{ organization_configuration_identifier }}';

INSERT example

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

/*+ create */
INSERT INTO awscc.securityhub.organization_configurations (
AutoEnable,
region
)
SELECT
'{{ auto_enable }}',
'{{ region }}';

UPDATE example

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

/*+ update */
UPDATE awscc.securityhub.organization_configurations
SET PatchDocument = string('{{ {
"AutoEnable": auto_enable,
"AutoEnableStandards": auto_enable_standards,
"ConfigurationType": configuration_type
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ organization_configuration_identifier }}';

DELETE example

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

Permissions

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

securityhub:UpdateOrganizationConfiguration,
securityhub:DescribeOrganizationConfiguration,
organizations:DescribeOrganization