1. Packages
  2. AWS
  3. API Docs
  4. detective
  5. OrganizationConfiguration
AWS v6.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

aws.detective.OrganizationConfiguration

Explore with Pulumi AI

Example Usage

Coming soon!
Coming soon!
Coming soon!
Coming soon!
Coming soon!
resources:
  example:
    type: aws:detective:Graph
    properties:
      enable: true
  exampleOrganizationConfiguration:
    type: aws:detective:OrganizationConfiguration
    name: example
    properties:
      autoEnable: true
      graphArn: ${example.graphArn}
Copy

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,
                              graph_arn: 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:detective:OrganizationConfiguration
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. OrganizationConfigurationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. 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 This property is required. string
The unique name of the resource.
args This property is required. OrganizationConfigurationArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. OrganizationConfigurationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. 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 organizationConfigurationResource = new Aws.Detective.OrganizationConfiguration("organizationConfigurationResource", new()
{
    AutoEnable = false,
    GraphArn = "string",
});
Copy
example, err := detective.NewOrganizationConfiguration(ctx, "organizationConfigurationResource", &detective.OrganizationConfigurationArgs{
	AutoEnable: pulumi.Bool(false),
	GraphArn:   pulumi.String("string"),
})
Copy
var organizationConfigurationResource = new OrganizationConfiguration("organizationConfigurationResource", OrganizationConfigurationArgs.builder()
    .autoEnable(false)
    .graphArn("string")
    .build());
Copy
organization_configuration_resource = aws.detective.OrganizationConfiguration("organizationConfigurationResource",
    auto_enable=False,
    graph_arn="string")
Copy
const organizationConfigurationResource = new aws.detective.OrganizationConfiguration("organizationConfigurationResource", {
    autoEnable: false,
    graphArn: "string",
});
Copy
type: aws:detective:OrganizationConfiguration
properties:
    autoEnable: false
    graphArn: string
Copy

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:

AutoEnable This property is required. bool
When this setting is enabled, all new accounts that are created in, or added to, the organization are added as a member accounts of the organization’s Detective delegated administrator and Detective is enabled in that AWS Region.
GraphArn
This property is required.
Changes to this property will trigger replacement.
string
ARN of the behavior graph.
AutoEnable This property is required. bool
When this setting is enabled, all new accounts that are created in, or added to, the organization are added as a member accounts of the organization’s Detective delegated administrator and Detective is enabled in that AWS Region.
GraphArn
This property is required.
Changes to this property will trigger replacement.
string
ARN of the behavior graph.
autoEnable This property is required. Boolean
When this setting is enabled, all new accounts that are created in, or added to, the organization are added as a member accounts of the organization’s Detective delegated administrator and Detective is enabled in that AWS Region.
graphArn
This property is required.
Changes to this property will trigger replacement.
String
ARN of the behavior graph.
autoEnable This property is required. boolean
When this setting is enabled, all new accounts that are created in, or added to, the organization are added as a member accounts of the organization’s Detective delegated administrator and Detective is enabled in that AWS Region.
graphArn
This property is required.
Changes to this property will trigger replacement.
string
ARN of the behavior graph.
auto_enable This property is required. bool
When this setting is enabled, all new accounts that are created in, or added to, the organization are added as a member accounts of the organization’s Detective delegated administrator and Detective is enabled in that AWS Region.
graph_arn
This property is required.
Changes to this property will trigger replacement.
str
ARN of the behavior graph.
autoEnable This property is required. Boolean
When this setting is enabled, all new accounts that are created in, or added to, the organization are added as a member accounts of the organization’s Detective delegated administrator and Detective is enabled in that AWS Region.
graphArn
This property is required.
Changes to this property will trigger replacement.
String
ARN of the behavior graph.

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,
        graph_arn: Optional[str] = None) -> OrganizationConfiguration
func 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:detective:OrganizationConfiguration    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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.
The following state arguments are supported:
AutoEnable bool
When this setting is enabled, all new accounts that are created in, or added to, the organization are added as a member accounts of the organization’s Detective delegated administrator and Detective is enabled in that AWS Region.
GraphArn Changes to this property will trigger replacement. string
ARN of the behavior graph.
AutoEnable bool
When this setting is enabled, all new accounts that are created in, or added to, the organization are added as a member accounts of the organization’s Detective delegated administrator and Detective is enabled in that AWS Region.
GraphArn Changes to this property will trigger replacement. string
ARN of the behavior graph.
autoEnable Boolean
When this setting is enabled, all new accounts that are created in, or added to, the organization are added as a member accounts of the organization’s Detective delegated administrator and Detective is enabled in that AWS Region.
graphArn Changes to this property will trigger replacement. String
ARN of the behavior graph.
autoEnable boolean
When this setting is enabled, all new accounts that are created in, or added to, the organization are added as a member accounts of the organization’s Detective delegated administrator and Detective is enabled in that AWS Region.
graphArn Changes to this property will trigger replacement. string
ARN of the behavior graph.
auto_enable bool
When this setting is enabled, all new accounts that are created in, or added to, the organization are added as a member accounts of the organization’s Detective delegated administrator and Detective is enabled in that AWS Region.
graph_arn Changes to this property will trigger replacement. str
ARN of the behavior graph.
autoEnable Boolean
When this setting is enabled, all new accounts that are created in, or added to, the organization are added as a member accounts of the organization’s Detective delegated administrator and Detective is enabled in that AWS Region.
graphArn Changes to this property will trigger replacement. String
ARN of the behavior graph.

Import

Using pulumi import, import aws_detective_organization_admin_account using the behavior graph ARN. For example:

$ pulumi import aws:detective/organizationConfiguration:OrganizationConfiguration example arn:aws:detective:us-east-1:123456789012:graph:00b00fd5aecc0ab60a708659477e9617
Copy

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 aws Terraform Provider.