Package com.pulumi.aws.detective
Class OrganizationConfiguration
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.aws.detective.OrganizationConfiguration
-
public class OrganizationConfiguration extends com.pulumi.resources.CustomResourceManages the Detective Organization Configuration in the current AWS Region. The AWS account utilizing this resource must have been assigned as a delegated Organization administrator account, e.g., via the `aws.detective.OrganizationAdminAccount` resource. More information about Organizations support in Detective can be found in the [Detective User Guide](https://docs.aws.amazon.com/detective/latest/adminguide/accounts-orgs-transition.html). > **NOTE:** This is an advanced Terraform resource. Terraform will automatically assume management of the Detective Organization Configuration without import and perform no actions on removal from the Terraform configuration. ## Example Usage
## Import ### Identity Schema #### Required - `graphArn` (String) ARN of the Detective behavior graph. Using `pulumi import`, import Detective organization configurations using `graphArn`. For example: ```sh $ pulumi import aws:detective/organizationConfiguration:OrganizationConfiguration example arn:aws:detective:us-east-1:187416307283:graph:f0bfed23303d420e838158775713bcb2 ```package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.aws.detective.Graph; import com.pulumi.aws.detective.GraphArgs; import com.pulumi.aws.detective.OrganizationConfiguration; import com.pulumi.aws.detective.OrganizationConfigurationArgs; import java.util.ArrayList; import java.util.Arrays; 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 Graph("example", GraphArgs.builder() .enable(true) .build()); var exampleOrganizationConfiguration = new OrganizationConfiguration("exampleOrganizationConfiguration", OrganizationConfigurationArgs.builder() .autoEnable(true) .graphArn(example.graphArn()) .build()); } }
-
-
Constructor Summary
Constructors Constructor Description OrganizationConfiguration(java.lang.String name)OrganizationConfiguration(java.lang.String name, OrganizationConfigurationArgs args)OrganizationConfiguration(java.lang.String name, OrganizationConfigurationArgs args, com.pulumi.resources.CustomResourceOptions options)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.pulumi.core.Output<java.lang.Boolean>autoEnable()static OrganizationConfigurationget(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, OrganizationConfigurationState state, com.pulumi.resources.CustomResourceOptions options)Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.com.pulumi.core.Output<java.lang.String>graphArn()com.pulumi.core.Output<java.lang.String>region()
-
-
-
Constructor Detail
-
OrganizationConfiguration
public OrganizationConfiguration(java.lang.String name)
- Parameters:
name- The _unique_ name of the resulting resource.
-
OrganizationConfiguration
public OrganizationConfiguration(java.lang.String name, OrganizationConfigurationArgs args)- Parameters:
name- The _unique_ name of the resulting resource.args- The arguments to use to populate this resource's properties.
-
OrganizationConfiguration
public OrganizationConfiguration(java.lang.String name, OrganizationConfigurationArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options)- Parameters:
name- The _unique_ name of the resulting resource.args- The arguments to use to populate this resource's properties.options- A bag of options that control this resource's behavior.
-
-
Method Detail
-
autoEnable
public com.pulumi.core.Output<java.lang.Boolean> autoEnable()
- Returns:
- 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
public com.pulumi.core.Output<java.lang.String> graphArn()
- Returns:
- ARN of the Detective behavior graph.
-
region
public com.pulumi.core.Output<java.lang.String> region()
- Returns:
- Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
-
get
public static OrganizationConfiguration get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, @Nullable OrganizationConfigurationState state, @Nullable com.pulumi.resources.CustomResourceOptions options)
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.- Parameters:
name- The _unique_ name of the resulting resource.id- The _unique_ provider ID of the resource to lookup.state-options- Optional settings to control the behavior of the CustomResource.
-
-