published on Tuesday, Mar 10, 2026 by Pulumi
published on Tuesday, Mar 10, 2026 by Pulumi
Manages the Security Hub Organization Configuration.
NOTE: This resource requires an
aws.securityhub.OrganizationAdminAccountto be configured (not necessarily with this provider). More information about managing Security Hub in an organization can be found in the Managing administrator and member accounts documentation
NOTE: This is an advanced resource. This provider will automatically assume management of the Security Hub Organization Configuration without import and perform no actions on removal from the configuration.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var exampleOrganization = new Aws.Organizations.Organization("exampleOrganization", new()
{
AwsServiceAccessPrincipals = new[]
{
"securityhub.amazonaws.com",
},
FeatureSet = "ALL",
});
var exampleOrganizationAdminAccount = new Aws.SecurityHub.OrganizationAdminAccount("exampleOrganizationAdminAccount", new()
{
AdminAccountId = "123456789012",
}, new CustomResourceOptions
{
DependsOn = new[]
{
exampleOrganization,
},
});
var exampleOrganizationConfiguration = new Aws.SecurityHub.OrganizationConfiguration("exampleOrganizationConfiguration", new()
{
AutoEnable = true,
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/organizations"
"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/securityhub"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
exampleOrganization, err := organizations.NewOrganization(ctx, "exampleOrganization", &organizations.OrganizationArgs{
AwsServiceAccessPrincipals: pulumi.StringArray{
pulumi.String("securityhub.amazonaws.com"),
},
FeatureSet: pulumi.String("ALL"),
})
if err != nil {
return err
}
_, err = securityhub.NewOrganizationAdminAccount(ctx, "exampleOrganizationAdminAccount", &securityhub.OrganizationAdminAccountArgs{
AdminAccountId: pulumi.String("123456789012"),
}, pulumi.DependsOn([]pulumi.Resource{
exampleOrganization,
}))
if err != nil {
return err
}
_, err = securityhub.NewOrganizationConfiguration(ctx, "exampleOrganizationConfiguration", &securityhub.OrganizationConfigurationArgs{
AutoEnable: pulumi.Bool(true),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.organizations.Organization;
import com.pulumi.aws.organizations.OrganizationArgs;
import com.pulumi.aws.securityhub.OrganizationAdminAccount;
import com.pulumi.aws.securityhub.OrganizationAdminAccountArgs;
import com.pulumi.aws.securityhub.OrganizationConfiguration;
import com.pulumi.aws.securityhub.OrganizationConfigurationArgs;
import com.pulumi.resources.CustomResourceOptions;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var exampleOrganization = new Organization("exampleOrganization", OrganizationArgs.builder()
.awsServiceAccessPrincipals("securityhub.amazonaws.com")
.featureSet("ALL")
.build());
var exampleOrganizationAdminAccount = new OrganizationAdminAccount("exampleOrganizationAdminAccount", OrganizationAdminAccountArgs.builder()
.adminAccountId("123456789012")
.build(), CustomResourceOptions.builder()
.dependsOn(exampleOrganization)
.build());
var exampleOrganizationConfiguration = new OrganizationConfiguration("exampleOrganizationConfiguration", OrganizationConfigurationArgs.builder()
.autoEnable(true)
.build());
}
}
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const exampleOrganization = new aws.organizations.Organization("exampleOrganization", {
awsServiceAccessPrincipals: ["securityhub.amazonaws.com"],
featureSet: "ALL",
});
const exampleOrganizationAdminAccount = new aws.securityhub.OrganizationAdminAccount("exampleOrganizationAdminAccount", {adminAccountId: "123456789012"}, {
dependsOn: [exampleOrganization],
});
const exampleOrganizationConfiguration = new aws.securityhub.OrganizationConfiguration("exampleOrganizationConfiguration", {autoEnable: true});
import pulumi
import pulumi_aws as aws
example_organization = aws.organizations.Organization("exampleOrganization",
aws_service_access_principals=["securityhub.amazonaws.com"],
feature_set="ALL")
example_organization_admin_account = aws.securityhub.OrganizationAdminAccount("exampleOrganizationAdminAccount", admin_account_id="123456789012",
opts=pulumi.ResourceOptions(depends_on=[example_organization]))
example_organization_configuration = aws.securityhub.OrganizationConfiguration("exampleOrganizationConfiguration", auto_enable=True)
resources:
exampleOrganization:
type: aws:organizations:Organization
properties:
awsServiceAccessPrincipals:
- securityhub.amazonaws.com
featureSet: ALL
exampleOrganizationAdminAccount:
type: aws:securityhub:OrganizationAdminAccount
properties:
adminAccountId: '123456789012'
options:
dependson:
- ${exampleOrganization}
exampleOrganizationConfiguration:
type: aws:securityhub:OrganizationConfiguration
properties:
autoEnable: true
Create OrganizationConfiguration Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new OrganizationConfiguration(name: string, args: OrganizationConfigurationArgs, opts?: CustomResourceOptions);@overload
def OrganizationConfiguration(resource_name: str,
args: OrganizationConfigurationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def OrganizationConfiguration(resource_name: str,
opts: Optional[ResourceOptions] = None,
auto_enable: Optional[bool] = None,
auto_enable_standards: Optional[str] = None)func NewOrganizationConfiguration(ctx *Context, name string, args OrganizationConfigurationArgs, opts ...ResourceOption) (*OrganizationConfiguration, error)public OrganizationConfiguration(string name, OrganizationConfigurationArgs args, CustomResourceOptions? opts = null)
public OrganizationConfiguration(String name, OrganizationConfigurationArgs args)
public OrganizationConfiguration(String name, OrganizationConfigurationArgs args, CustomResourceOptions options)
type: aws:securityhub:OrganizationConfiguration
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args OrganizationConfigurationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args OrganizationConfigurationArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args OrganizationConfigurationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args OrganizationConfigurationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args OrganizationConfigurationArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var exampleorganizationConfigurationResourceResourceFromSecurityhuborganizationConfiguration = new Aws.SecurityHub.OrganizationConfiguration("exampleorganizationConfigurationResourceResourceFromSecurityhuborganizationConfiguration", new()
{
AutoEnable = false,
AutoEnableStandards = "string",
});
example, err := securityhub.NewOrganizationConfiguration(ctx, "exampleorganizationConfigurationResourceResourceFromSecurityhuborganizationConfiguration", &securityhub.OrganizationConfigurationArgs{
AutoEnable: pulumi.Bool(false),
AutoEnableStandards: pulumi.String("string"),
})
var exampleorganizationConfigurationResourceResourceFromSecurityhuborganizationConfiguration = new com.pulumi.aws.securityhub.OrganizationConfiguration("exampleorganizationConfigurationResourceResourceFromSecurityhuborganizationConfiguration", com.pulumi.aws.securityhub.OrganizationConfigurationArgs.builder()
.autoEnable(false)
.autoEnableStandards("string")
.build());
exampleorganization_configuration_resource_resource_from_securityhuborganization_configuration = aws.securityhub.OrganizationConfiguration("exampleorganizationConfigurationResourceResourceFromSecurityhuborganizationConfiguration",
auto_enable=False,
auto_enable_standards="string")
const exampleorganizationConfigurationResourceResourceFromSecurityhuborganizationConfiguration = new aws.securityhub.OrganizationConfiguration("exampleorganizationConfigurationResourceResourceFromSecurityhuborganizationConfiguration", {
autoEnable: false,
autoEnableStandards: "string",
});
type: aws:securityhub:OrganizationConfiguration
properties:
autoEnable: false
autoEnableStandards: string
OrganizationConfiguration Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The OrganizationConfiguration resource accepts the following input properties:
- Auto
Enable bool - Whether to automatically enable Security Hub for new accounts in the organization.
- Auto
Enable stringStandards - Whether to automatically enable Security Hub default standards for new member accounts in the organization. By default, this parameter is equal to
DEFAULT, and new member accounts are automatically enabled with default Security Hub standards. To opt out of enabling default standards for new member accounts, set this parameter equal toNONE.
- Auto
Enable bool - Whether to automatically enable Security Hub for new accounts in the organization.
- Auto
Enable stringStandards - Whether to automatically enable Security Hub default standards for new member accounts in the organization. By default, this parameter is equal to
DEFAULT, and new member accounts are automatically enabled with default Security Hub standards. To opt out of enabling default standards for new member accounts, set this parameter equal toNONE.
- auto
Enable Boolean - Whether to automatically enable Security Hub for new accounts in the organization.
- auto
Enable StringStandards - Whether to automatically enable Security Hub default standards for new member accounts in the organization. By default, this parameter is equal to
DEFAULT, and new member accounts are automatically enabled with default Security Hub standards. To opt out of enabling default standards for new member accounts, set this parameter equal toNONE.
- auto
Enable boolean - Whether to automatically enable Security Hub for new accounts in the organization.
- auto
Enable stringStandards - Whether to automatically enable Security Hub default standards for new member accounts in the organization. By default, this parameter is equal to
DEFAULT, and new member accounts are automatically enabled with default Security Hub standards. To opt out of enabling default standards for new member accounts, set this parameter equal toNONE.
- auto_
enable bool - Whether to automatically enable Security Hub for new accounts in the organization.
- auto_
enable_ strstandards - Whether to automatically enable Security Hub default standards for new member accounts in the organization. By default, this parameter is equal to
DEFAULT, and new member accounts are automatically enabled with default Security Hub standards. To opt out of enabling default standards for new member accounts, set this parameter equal toNONE.
- auto
Enable Boolean - Whether to automatically enable Security Hub for new accounts in the organization.
- auto
Enable StringStandards - Whether to automatically enable Security Hub default standards for new member accounts in the organization. By default, this parameter is equal to
DEFAULT, and new member accounts are automatically enabled with default Security Hub standards. To opt out of enabling default standards for new member accounts, set this parameter equal toNONE.
Outputs
All input properties are implicitly available as output properties. Additionally, the OrganizationConfiguration resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing OrganizationConfiguration Resource
Get an existing OrganizationConfiguration resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: OrganizationConfigurationState, opts?: CustomResourceOptions): OrganizationConfiguration@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
auto_enable: Optional[bool] = None,
auto_enable_standards: Optional[str] = None) -> OrganizationConfigurationfunc GetOrganizationConfiguration(ctx *Context, name string, id IDInput, state *OrganizationConfigurationState, opts ...ResourceOption) (*OrganizationConfiguration, error)public static OrganizationConfiguration Get(string name, Input<string> id, OrganizationConfigurationState? state, CustomResourceOptions? opts = null)public static OrganizationConfiguration get(String name, Output<String> id, OrganizationConfigurationState state, CustomResourceOptions options)resources: _: type: aws:securityhub:OrganizationConfiguration get: id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Auto
Enable bool - Whether to automatically enable Security Hub for new accounts in the organization.
- Auto
Enable stringStandards - Whether to automatically enable Security Hub default standards for new member accounts in the organization. By default, this parameter is equal to
DEFAULT, and new member accounts are automatically enabled with default Security Hub standards. To opt out of enabling default standards for new member accounts, set this parameter equal toNONE.
- Auto
Enable bool - Whether to automatically enable Security Hub for new accounts in the organization.
- Auto
Enable stringStandards - Whether to automatically enable Security Hub default standards for new member accounts in the organization. By default, this parameter is equal to
DEFAULT, and new member accounts are automatically enabled with default Security Hub standards. To opt out of enabling default standards for new member accounts, set this parameter equal toNONE.
- auto
Enable Boolean - Whether to automatically enable Security Hub for new accounts in the organization.
- auto
Enable StringStandards - Whether to automatically enable Security Hub default standards for new member accounts in the organization. By default, this parameter is equal to
DEFAULT, and new member accounts are automatically enabled with default Security Hub standards. To opt out of enabling default standards for new member accounts, set this parameter equal toNONE.
- auto
Enable boolean - Whether to automatically enable Security Hub for new accounts in the organization.
- auto
Enable stringStandards - Whether to automatically enable Security Hub default standards for new member accounts in the organization. By default, this parameter is equal to
DEFAULT, and new member accounts are automatically enabled with default Security Hub standards. To opt out of enabling default standards for new member accounts, set this parameter equal toNONE.
- auto_
enable bool - Whether to automatically enable Security Hub for new accounts in the organization.
- auto_
enable_ strstandards - Whether to automatically enable Security Hub default standards for new member accounts in the organization. By default, this parameter is equal to
DEFAULT, and new member accounts are automatically enabled with default Security Hub standards. To opt out of enabling default standards for new member accounts, set this parameter equal toNONE.
- auto
Enable Boolean - Whether to automatically enable Security Hub for new accounts in the organization.
- auto
Enable StringStandards - Whether to automatically enable Security Hub default standards for new member accounts in the organization. By default, this parameter is equal to
DEFAULT, and new member accounts are automatically enabled with default Security Hub standards. To opt out of enabling default standards for new member accounts, set this parameter equal toNONE.
Import
An existing Security Hub enabled account can be imported using the AWS account ID, e.g.,
$ pulumi import aws:securityhub/organizationConfiguration:OrganizationConfiguration example 123456789012
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.
published on Tuesday, Mar 10, 2026 by Pulumi
