1. Packages
  2. AWS Classic
  3. API Docs
  4. guardduty
  5. OrganizationConfigurationFeature

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.33.0 published on Wednesday, May 1, 2024 by Pulumi

aws.guardduty.OrganizationConfigurationFeature

Explore with Pulumi AI

aws logo

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.33.0 published on Wednesday, May 1, 2024 by Pulumi

    Provides a resource to manage a single Amazon GuardDuty organization configuration feature.

    NOTE: Deleting this resource does not disable the organization configuration feature, the resource in simply removed from state instead.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = new aws.guardduty.Detector("example", {enable: true});
    const eksRuntimeMonitoring = new aws.guardduty.OrganizationConfigurationFeature("eks_runtime_monitoring", {
        detectorId: example.id,
        name: "EKS_RUNTIME_MONITORING",
        autoEnable: "ALL",
        additionalConfigurations: [{
            name: "EKS_ADDON_MANAGEMENT",
            autoEnable: "NEW",
        }],
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.guardduty.Detector("example", enable=True)
    eks_runtime_monitoring = aws.guardduty.OrganizationConfigurationFeature("eks_runtime_monitoring",
        detector_id=example.id,
        name="EKS_RUNTIME_MONITORING",
        auto_enable="ALL",
        additional_configurations=[aws.guardduty.OrganizationConfigurationFeatureAdditionalConfigurationArgs(
            name="EKS_ADDON_MANAGEMENT",
            auto_enable="NEW",
        )])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/guardduty"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := guardduty.NewDetector(ctx, "example", &guardduty.DetectorArgs{
    			Enable: pulumi.Bool(true),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = guardduty.NewOrganizationConfigurationFeature(ctx, "eks_runtime_monitoring", &guardduty.OrganizationConfigurationFeatureArgs{
    			DetectorId: example.ID(),
    			Name:       pulumi.String("EKS_RUNTIME_MONITORING"),
    			AutoEnable: pulumi.String("ALL"),
    			AdditionalConfigurations: guardduty.OrganizationConfigurationFeatureAdditionalConfigurationArray{
    				&guardduty.OrganizationConfigurationFeatureAdditionalConfigurationArgs{
    					Name:       pulumi.String("EKS_ADDON_MANAGEMENT"),
    					AutoEnable: pulumi.String("NEW"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Aws.GuardDuty.Detector("example", new()
        {
            Enable = true,
        });
    
        var eksRuntimeMonitoring = new Aws.GuardDuty.OrganizationConfigurationFeature("eks_runtime_monitoring", new()
        {
            DetectorId = example.Id,
            Name = "EKS_RUNTIME_MONITORING",
            AutoEnable = "ALL",
            AdditionalConfigurations = new[]
            {
                new Aws.GuardDuty.Inputs.OrganizationConfigurationFeatureAdditionalConfigurationArgs
                {
                    Name = "EKS_ADDON_MANAGEMENT",
                    AutoEnable = "NEW",
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.guardduty.Detector;
    import com.pulumi.aws.guardduty.DetectorArgs;
    import com.pulumi.aws.guardduty.OrganizationConfigurationFeature;
    import com.pulumi.aws.guardduty.OrganizationConfigurationFeatureArgs;
    import com.pulumi.aws.guardduty.inputs.OrganizationConfigurationFeatureAdditionalConfigurationArgs;
    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 Detector("example", DetectorArgs.builder()        
                .enable(true)
                .build());
    
            var eksRuntimeMonitoring = new OrganizationConfigurationFeature("eksRuntimeMonitoring", OrganizationConfigurationFeatureArgs.builder()        
                .detectorId(example.id())
                .name("EKS_RUNTIME_MONITORING")
                .autoEnable("ALL")
                .additionalConfigurations(OrganizationConfigurationFeatureAdditionalConfigurationArgs.builder()
                    .name("EKS_ADDON_MANAGEMENT")
                    .autoEnable("NEW")
                    .build())
                .build());
    
        }
    }
    
    resources:
      example:
        type: aws:guardduty:Detector
        properties:
          enable: true
      eksRuntimeMonitoring:
        type: aws:guardduty:OrganizationConfigurationFeature
        name: eks_runtime_monitoring
        properties:
          detectorId: ${example.id}
          name: EKS_RUNTIME_MONITORING
          autoEnable: ALL
          additionalConfigurations:
            - name: EKS_ADDON_MANAGEMENT
              autoEnable: NEW
    

    Create OrganizationConfigurationFeature Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new OrganizationConfigurationFeature(name: string, args: OrganizationConfigurationFeatureArgs, opts?: CustomResourceOptions);
    @overload
    def OrganizationConfigurationFeature(resource_name: str,
                                         args: OrganizationConfigurationFeatureArgs,
                                         opts: Optional[ResourceOptions] = None)
    
    @overload
    def OrganizationConfigurationFeature(resource_name: str,
                                         opts: Optional[ResourceOptions] = None,
                                         auto_enable: Optional[str] = None,
                                         detector_id: Optional[str] = None,
                                         additional_configurations: Optional[Sequence[OrganizationConfigurationFeatureAdditionalConfigurationArgs]] = None,
                                         name: Optional[str] = None)
    func NewOrganizationConfigurationFeature(ctx *Context, name string, args OrganizationConfigurationFeatureArgs, opts ...ResourceOption) (*OrganizationConfigurationFeature, error)
    public OrganizationConfigurationFeature(string name, OrganizationConfigurationFeatureArgs args, CustomResourceOptions? opts = null)
    public OrganizationConfigurationFeature(String name, OrganizationConfigurationFeatureArgs args)
    public OrganizationConfigurationFeature(String name, OrganizationConfigurationFeatureArgs args, CustomResourceOptions options)
    
    type: aws:guardduty:OrganizationConfigurationFeature
    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 OrganizationConfigurationFeatureArgs
    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 OrganizationConfigurationFeatureArgs
    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 OrganizationConfigurationFeatureArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args OrganizationConfigurationFeatureArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args OrganizationConfigurationFeatureArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var organizationConfigurationFeatureResource = new Aws.GuardDuty.OrganizationConfigurationFeature("organizationConfigurationFeatureResource", new()
    {
        AutoEnable = "string",
        DetectorId = "string",
        AdditionalConfigurations = new[]
        {
            new Aws.GuardDuty.Inputs.OrganizationConfigurationFeatureAdditionalConfigurationArgs
            {
                AutoEnable = "string",
                Name = "string",
            },
        },
        Name = "string",
    });
    
    example, err := guardduty.NewOrganizationConfigurationFeature(ctx, "organizationConfigurationFeatureResource", &guardduty.OrganizationConfigurationFeatureArgs{
    	AutoEnable: pulumi.String("string"),
    	DetectorId: pulumi.String("string"),
    	AdditionalConfigurations: guardduty.OrganizationConfigurationFeatureAdditionalConfigurationArray{
    		&guardduty.OrganizationConfigurationFeatureAdditionalConfigurationArgs{
    			AutoEnable: pulumi.String("string"),
    			Name:       pulumi.String("string"),
    		},
    	},
    	Name: pulumi.String("string"),
    })
    
    var organizationConfigurationFeatureResource = new OrganizationConfigurationFeature("organizationConfigurationFeatureResource", OrganizationConfigurationFeatureArgs.builder()        
        .autoEnable("string")
        .detectorId("string")
        .additionalConfigurations(OrganizationConfigurationFeatureAdditionalConfigurationArgs.builder()
            .autoEnable("string")
            .name("string")
            .build())
        .name("string")
        .build());
    
    organization_configuration_feature_resource = aws.guardduty.OrganizationConfigurationFeature("organizationConfigurationFeatureResource",
        auto_enable="string",
        detector_id="string",
        additional_configurations=[aws.guardduty.OrganizationConfigurationFeatureAdditionalConfigurationArgs(
            auto_enable="string",
            name="string",
        )],
        name="string")
    
    const organizationConfigurationFeatureResource = new aws.guardduty.OrganizationConfigurationFeature("organizationConfigurationFeatureResource", {
        autoEnable: "string",
        detectorId: "string",
        additionalConfigurations: [{
            autoEnable: "string",
            name: "string",
        }],
        name: "string",
    });
    
    type: aws:guardduty:OrganizationConfigurationFeature
    properties:
        additionalConfigurations:
            - autoEnable: string
              name: string
        autoEnable: string
        detectorId: string
        name: string
    

    OrganizationConfigurationFeature Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The OrganizationConfigurationFeature resource accepts the following input properties:

    AutoEnable string
    The status of the feature that is configured for the member accounts within the organization. Valid values: NEW, ALL, NONE.
    DetectorId string
    The ID of the detector that configures the delegated administrator.
    AdditionalConfigurations List<OrganizationConfigurationFeatureAdditionalConfiguration>
    The additional information that will be configured for the organization See below.
    Name string
    The name of the feature that will be configured for the organization. Valid values: S3_DATA_EVENTS, EKS_AUDIT_LOGS, EBS_MALWARE_PROTECTION, RDS_LOGIN_EVENTS, EKS_RUNTIME_MONITORING, LAMBDA_NETWORK_LOGS, RUNTIME_MONITORING.
    AutoEnable string
    The status of the feature that is configured for the member accounts within the organization. Valid values: NEW, ALL, NONE.
    DetectorId string
    The ID of the detector that configures the delegated administrator.
    AdditionalConfigurations []OrganizationConfigurationFeatureAdditionalConfigurationArgs
    The additional information that will be configured for the organization See below.
    Name string
    The name of the feature that will be configured for the organization. Valid values: S3_DATA_EVENTS, EKS_AUDIT_LOGS, EBS_MALWARE_PROTECTION, RDS_LOGIN_EVENTS, EKS_RUNTIME_MONITORING, LAMBDA_NETWORK_LOGS, RUNTIME_MONITORING.
    autoEnable String
    The status of the feature that is configured for the member accounts within the organization. Valid values: NEW, ALL, NONE.
    detectorId String
    The ID of the detector that configures the delegated administrator.
    additionalConfigurations List<OrganizationConfigurationFeatureAdditionalConfiguration>
    The additional information that will be configured for the organization See below.
    name String
    The name of the feature that will be configured for the organization. Valid values: S3_DATA_EVENTS, EKS_AUDIT_LOGS, EBS_MALWARE_PROTECTION, RDS_LOGIN_EVENTS, EKS_RUNTIME_MONITORING, LAMBDA_NETWORK_LOGS, RUNTIME_MONITORING.
    autoEnable string
    The status of the feature that is configured for the member accounts within the organization. Valid values: NEW, ALL, NONE.
    detectorId string
    The ID of the detector that configures the delegated administrator.
    additionalConfigurations OrganizationConfigurationFeatureAdditionalConfiguration[]
    The additional information that will be configured for the organization See below.
    name string
    The name of the feature that will be configured for the organization. Valid values: S3_DATA_EVENTS, EKS_AUDIT_LOGS, EBS_MALWARE_PROTECTION, RDS_LOGIN_EVENTS, EKS_RUNTIME_MONITORING, LAMBDA_NETWORK_LOGS, RUNTIME_MONITORING.
    auto_enable str
    The status of the feature that is configured for the member accounts within the organization. Valid values: NEW, ALL, NONE.
    detector_id str
    The ID of the detector that configures the delegated administrator.
    additional_configurations Sequence[OrganizationConfigurationFeatureAdditionalConfigurationArgs]
    The additional information that will be configured for the organization See below.
    name str
    The name of the feature that will be configured for the organization. Valid values: S3_DATA_EVENTS, EKS_AUDIT_LOGS, EBS_MALWARE_PROTECTION, RDS_LOGIN_EVENTS, EKS_RUNTIME_MONITORING, LAMBDA_NETWORK_LOGS, RUNTIME_MONITORING.
    autoEnable String
    The status of the feature that is configured for the member accounts within the organization. Valid values: NEW, ALL, NONE.
    detectorId String
    The ID of the detector that configures the delegated administrator.
    additionalConfigurations List<Property Map>
    The additional information that will be configured for the organization See below.
    name String
    The name of the feature that will be configured for the organization. Valid values: S3_DATA_EVENTS, EKS_AUDIT_LOGS, EBS_MALWARE_PROTECTION, RDS_LOGIN_EVENTS, EKS_RUNTIME_MONITORING, LAMBDA_NETWORK_LOGS, RUNTIME_MONITORING.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the OrganizationConfigurationFeature 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 OrganizationConfigurationFeature Resource

    Get an existing OrganizationConfigurationFeature 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?: OrganizationConfigurationFeatureState, opts?: CustomResourceOptions): OrganizationConfigurationFeature
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            additional_configurations: Optional[Sequence[OrganizationConfigurationFeatureAdditionalConfigurationArgs]] = None,
            auto_enable: Optional[str] = None,
            detector_id: Optional[str] = None,
            name: Optional[str] = None) -> OrganizationConfigurationFeature
    func GetOrganizationConfigurationFeature(ctx *Context, name string, id IDInput, state *OrganizationConfigurationFeatureState, opts ...ResourceOption) (*OrganizationConfigurationFeature, error)
    public static OrganizationConfigurationFeature Get(string name, Input<string> id, OrganizationConfigurationFeatureState? state, CustomResourceOptions? opts = null)
    public static OrganizationConfigurationFeature get(String name, Output<String> id, OrganizationConfigurationFeatureState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    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.
    The following state arguments are supported:
    AdditionalConfigurations List<OrganizationConfigurationFeatureAdditionalConfiguration>
    The additional information that will be configured for the organization See below.
    AutoEnable string
    The status of the feature that is configured for the member accounts within the organization. Valid values: NEW, ALL, NONE.
    DetectorId string
    The ID of the detector that configures the delegated administrator.
    Name string
    The name of the feature that will be configured for the organization. Valid values: S3_DATA_EVENTS, EKS_AUDIT_LOGS, EBS_MALWARE_PROTECTION, RDS_LOGIN_EVENTS, EKS_RUNTIME_MONITORING, LAMBDA_NETWORK_LOGS, RUNTIME_MONITORING.
    AdditionalConfigurations []OrganizationConfigurationFeatureAdditionalConfigurationArgs
    The additional information that will be configured for the organization See below.
    AutoEnable string
    The status of the feature that is configured for the member accounts within the organization. Valid values: NEW, ALL, NONE.
    DetectorId string
    The ID of the detector that configures the delegated administrator.
    Name string
    The name of the feature that will be configured for the organization. Valid values: S3_DATA_EVENTS, EKS_AUDIT_LOGS, EBS_MALWARE_PROTECTION, RDS_LOGIN_EVENTS, EKS_RUNTIME_MONITORING, LAMBDA_NETWORK_LOGS, RUNTIME_MONITORING.
    additionalConfigurations List<OrganizationConfigurationFeatureAdditionalConfiguration>
    The additional information that will be configured for the organization See below.
    autoEnable String
    The status of the feature that is configured for the member accounts within the organization. Valid values: NEW, ALL, NONE.
    detectorId String
    The ID of the detector that configures the delegated administrator.
    name String
    The name of the feature that will be configured for the organization. Valid values: S3_DATA_EVENTS, EKS_AUDIT_LOGS, EBS_MALWARE_PROTECTION, RDS_LOGIN_EVENTS, EKS_RUNTIME_MONITORING, LAMBDA_NETWORK_LOGS, RUNTIME_MONITORING.
    additionalConfigurations OrganizationConfigurationFeatureAdditionalConfiguration[]
    The additional information that will be configured for the organization See below.
    autoEnable string
    The status of the feature that is configured for the member accounts within the organization. Valid values: NEW, ALL, NONE.
    detectorId string
    The ID of the detector that configures the delegated administrator.
    name string
    The name of the feature that will be configured for the organization. Valid values: S3_DATA_EVENTS, EKS_AUDIT_LOGS, EBS_MALWARE_PROTECTION, RDS_LOGIN_EVENTS, EKS_RUNTIME_MONITORING, LAMBDA_NETWORK_LOGS, RUNTIME_MONITORING.
    additional_configurations Sequence[OrganizationConfigurationFeatureAdditionalConfigurationArgs]
    The additional information that will be configured for the organization See below.
    auto_enable str
    The status of the feature that is configured for the member accounts within the organization. Valid values: NEW, ALL, NONE.
    detector_id str
    The ID of the detector that configures the delegated administrator.
    name str
    The name of the feature that will be configured for the organization. Valid values: S3_DATA_EVENTS, EKS_AUDIT_LOGS, EBS_MALWARE_PROTECTION, RDS_LOGIN_EVENTS, EKS_RUNTIME_MONITORING, LAMBDA_NETWORK_LOGS, RUNTIME_MONITORING.
    additionalConfigurations List<Property Map>
    The additional information that will be configured for the organization See below.
    autoEnable String
    The status of the feature that is configured for the member accounts within the organization. Valid values: NEW, ALL, NONE.
    detectorId String
    The ID of the detector that configures the delegated administrator.
    name String
    The name of the feature that will be configured for the organization. Valid values: S3_DATA_EVENTS, EKS_AUDIT_LOGS, EBS_MALWARE_PROTECTION, RDS_LOGIN_EVENTS, EKS_RUNTIME_MONITORING, LAMBDA_NETWORK_LOGS, RUNTIME_MONITORING.

    Supporting Types

    OrganizationConfigurationFeatureAdditionalConfiguration, OrganizationConfigurationFeatureAdditionalConfigurationArgs

    AutoEnable string
    The status of the additional configuration that will be configured for the organization. Valid values: NEW, ALL, NONE.
    Name string
    The name of the additional configuration that will be configured for the organization. Valid values: EKS_ADDON_MANAGEMENT, ECS_FARGATE_AGENT_MANAGEMENT, EC2_AGENT_MANAGEMENT.
    AutoEnable string
    The status of the additional configuration that will be configured for the organization. Valid values: NEW, ALL, NONE.
    Name string
    The name of the additional configuration that will be configured for the organization. Valid values: EKS_ADDON_MANAGEMENT, ECS_FARGATE_AGENT_MANAGEMENT, EC2_AGENT_MANAGEMENT.
    autoEnable String
    The status of the additional configuration that will be configured for the organization. Valid values: NEW, ALL, NONE.
    name String
    The name of the additional configuration that will be configured for the organization. Valid values: EKS_ADDON_MANAGEMENT, ECS_FARGATE_AGENT_MANAGEMENT, EC2_AGENT_MANAGEMENT.
    autoEnable string
    The status of the additional configuration that will be configured for the organization. Valid values: NEW, ALL, NONE.
    name string
    The name of the additional configuration that will be configured for the organization. Valid values: EKS_ADDON_MANAGEMENT, ECS_FARGATE_AGENT_MANAGEMENT, EC2_AGENT_MANAGEMENT.
    auto_enable str
    The status of the additional configuration that will be configured for the organization. Valid values: NEW, ALL, NONE.
    name str
    The name of the additional configuration that will be configured for the organization. Valid values: EKS_ADDON_MANAGEMENT, ECS_FARGATE_AGENT_MANAGEMENT, EC2_AGENT_MANAGEMENT.
    autoEnable String
    The status of the additional configuration that will be configured for the organization. Valid values: NEW, ALL, NONE.
    name String
    The name of the additional configuration that will be configured for the organization. Valid values: EKS_ADDON_MANAGEMENT, ECS_FARGATE_AGENT_MANAGEMENT, EC2_AGENT_MANAGEMENT.

    Package Details

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

    Try AWS Native preview for resources not in the classic version.

    AWS Classic v6.33.0 published on Wednesday, May 1, 2024 by Pulumi