Class OrganizationConfiguration
Manages the GuardDuty 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.guardduty.OrganizationAdminAccount resource. More information about Organizations support in GuardDuty can be found in the GuardDuty User Guide.
NOTE: This is an advanced resource. The provider will automatically assume management of the GuardDuty Organization Configuration without import and perform no actions on removal from the resource configuration.
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var exampleDetector = new Aws.GuardDuty.Detector("exampleDetector", new Aws.GuardDuty.DetectorArgs
{
Enable = true,
});
var exampleOrganizationConfiguration = new Aws.GuardDuty.OrganizationConfiguration("exampleOrganizationConfiguration", new Aws.GuardDuty.OrganizationConfigurationArgs
{
AutoEnable = true,
DetectorId = exampleDetector.Id,
});
}
}
Inherited Members
Namespace: Pulumi.Aws.GuardDuty
Assembly: Pulumi.Aws.dll
Syntax
public class OrganizationConfiguration : CustomResource
Constructors
View SourceOrganizationConfiguration(String, OrganizationConfigurationArgs, CustomResourceOptions)
Create a OrganizationConfiguration resource with the given unique name, arguments, and options.
Declaration
public OrganizationConfiguration(string name, OrganizationConfigurationArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| OrganizationConfigurationArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceAutoEnable
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 GuardDuty delegated administrator and GuardDuty is enabled in that AWS Region.
Declaration
public Output<bool> AutoEnable { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Boolean> |
DetectorId
The detector ID of the GuardDuty account.
Declaration
public Output<string> DetectorId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, OrganizationConfigurationState, CustomResourceOptions)
Get an existing OrganizationConfiguration resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static OrganizationConfiguration Get(string name, Input<string> id, OrganizationConfigurationState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| OrganizationConfigurationState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| OrganizationConfiguration |