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

aws.macie2.OrganizationConfiguration

Explore with Pulumi AI

Provides a resource to manage Amazon Macie configuration settings for an organization in AWS Organizations.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = new aws.macie2.OrganizationConfiguration("example", {autoEnable: true});
Copy
import pulumi
import pulumi_aws as aws

example = aws.macie2.OrganizationConfiguration("example", auto_enable=True)
Copy
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/macie2"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := macie2.NewOrganizationConfiguration(ctx, "example", &macie2.OrganizationConfigurationArgs{
			AutoEnable: pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;

return await Deployment.RunAsync(() => 
{
    var example = new Aws.Macie2.OrganizationConfiguration("example", new()
    {
        AutoEnable = true,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.macie2.OrganizationConfiguration;
import com.pulumi.aws.macie2.OrganizationConfigurationArgs;
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 example = new OrganizationConfiguration("example", OrganizationConfigurationArgs.builder()
            .autoEnable(true)
            .build());

    }
}
Copy
resources:
  example:
    type: aws:macie2:OrganizationConfiguration
    properties:
      autoEnable: true
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)
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:macie2: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 exampleorganizationConfigurationResourceResourceFromMacie2organizationConfiguration = new Aws.Macie2.OrganizationConfiguration("exampleorganizationConfigurationResourceResourceFromMacie2organizationConfiguration", new()
{
    AutoEnable = false,
});
Copy
example, err := macie2.NewOrganizationConfiguration(ctx, "exampleorganizationConfigurationResourceResourceFromMacie2organizationConfiguration", &macie2.OrganizationConfigurationArgs{
	AutoEnable: pulumi.Bool(false),
})
Copy
var exampleorganizationConfigurationResourceResourceFromMacie2organizationConfiguration = new OrganizationConfiguration("exampleorganizationConfigurationResourceResourceFromMacie2organizationConfiguration", OrganizationConfigurationArgs.builder()
    .autoEnable(false)
    .build());
Copy
exampleorganization_configuration_resource_resource_from_macie2organization_configuration = aws.macie2.OrganizationConfiguration("exampleorganizationConfigurationResourceResourceFromMacie2organizationConfiguration", auto_enable=False)
Copy
const exampleorganizationConfigurationResourceResourceFromMacie2organizationConfiguration = new aws.macie2.OrganizationConfiguration("exampleorganizationConfigurationResourceResourceFromMacie2organizationConfiguration", {autoEnable: false});
Copy
type: aws:macie2:OrganizationConfiguration
properties:
    autoEnable: false
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
Whether to enable Amazon Macie automatically for accounts that are added to the organization in AWS Organizations.
AutoEnable This property is required. bool
Whether to enable Amazon Macie automatically for accounts that are added to the organization in AWS Organizations.
autoEnable This property is required. Boolean
Whether to enable Amazon Macie automatically for accounts that are added to the organization in AWS Organizations.
autoEnable This property is required. boolean
Whether to enable Amazon Macie automatically for accounts that are added to the organization in AWS Organizations.
auto_enable This property is required. bool
Whether to enable Amazon Macie automatically for accounts that are added to the organization in AWS Organizations.
autoEnable This property is required. Boolean
Whether to enable Amazon Macie automatically for accounts that are added to the organization in AWS Organizations.

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) -> 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:macie2: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
Whether to enable Amazon Macie automatically for accounts that are added to the organization in AWS Organizations.
AutoEnable bool
Whether to enable Amazon Macie automatically for accounts that are added to the organization in AWS Organizations.
autoEnable Boolean
Whether to enable Amazon Macie automatically for accounts that are added to the organization in AWS Organizations.
autoEnable boolean
Whether to enable Amazon Macie automatically for accounts that are added to the organization in AWS Organizations.
auto_enable bool
Whether to enable Amazon Macie automatically for accounts that are added to the organization in AWS Organizations.
autoEnable Boolean
Whether to enable Amazon Macie automatically for accounts that are added to the organization in AWS Organizations.

Package Details

Repository
AWS Classic pulumi/pulumi-aws
License
Apache-2.0
Notes
This Pulumi package is based on the aws Terraform Provider.