Class OrganizationConfigurationFeature


  • public class OrganizationConfigurationFeature
    extends com.pulumi.resources.CustomResource
    Provides a resource to manage a single Amazon GuardDuty [organization configuration feature](https://docs.aws.amazon.com/guardduty/latest/ug/guardduty-features-activation-model.html#guardduty-features). > **NOTE:** Deleting this resource does not disable the organization configuration feature, the resource is simply removed from state instead. ## Example Usage
     
     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.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 Detector("example", DetectorArgs.builder()
                 .enable(true)
                 .build());
     
             var eksRuntimeMonitoring = new OrganizationConfigurationFeature("eksRuntimeMonitoring", OrganizationConfigurationFeatureArgs.builder()
                 .additionalConfigurations(OrganizationConfigurationFeatureAdditionalConfigurationArgs.builder()
                     .name("EKS_ADDON_MANAGEMENT")
                     .autoEnable("NEW")
                     .build())
                 .detectorId(example.id())
                 .name("EKS_RUNTIME_MONITORING")
                 .autoEnable("ALL")
                 .build());
     
         }
     }
     
     
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.pulumi.resources.CustomResource

        com.pulumi.resources.CustomResource.CustomResourceInternal
      • Nested classes/interfaces inherited from class com.pulumi.resources.Resource

        com.pulumi.resources.Resource.LazyField<T extends java.lang.Object>, com.pulumi.resources.Resource.LazyFields, com.pulumi.resources.Resource.ResourceInternal
    • Field Summary

      • Fields inherited from class com.pulumi.resources.Resource

        childResources, remote
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.pulumi.core.Output<java.util.List<OrganizationConfigurationFeatureAdditionalConfiguration>> additionalConfigurations()  
      com.pulumi.core.Output<java.lang.String> autoEnable()  
      com.pulumi.core.Output<java.lang.String> detectorId()  
      static OrganizationConfigurationFeature get​(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, OrganizationConfigurationFeatureState 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> name()  
      com.pulumi.core.Output<java.lang.String> region()  
      • Methods inherited from class com.pulumi.resources.CustomResource

        getId, id, idFuture
      • Methods inherited from class com.pulumi.resources.Resource

        getChildResources, getResourceName, getResourceType, getUrn, pulumiChildResources, pulumiResourceName, pulumiResourceType, urn
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • OrganizationConfigurationFeature

        public OrganizationConfigurationFeature​(java.lang.String name)
        Parameters:
        name - The _unique_ name of the resulting resource.
      • OrganizationConfigurationFeature

        public OrganizationConfigurationFeature​(java.lang.String name,
                                                OrganizationConfigurationFeatureArgs args)
        Parameters:
        name - The _unique_ name of the resulting resource.
        args - The arguments to use to populate this resource's properties.
      • OrganizationConfigurationFeature

        public OrganizationConfigurationFeature​(java.lang.String name,
                                                OrganizationConfigurationFeatureArgs 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

      • additionalConfigurations

        public com.pulumi.core.Output<java.util.List<OrganizationConfigurationFeatureAdditionalConfiguration>> additionalConfigurations()
        Returns:
        Additional feature configuration block for features `EKS_RUNTIME_MONITORING` or `RUNTIME_MONITORING`, or `RDS_LOGIN_EVENTS`. If omitted, Terraform does not track changes to additional configurations that AWS manages for the feature. Removing a previously declared `additionalConfiguration` block leaves the setting unchanged in AWS; to change a setting, update its `autoEnable` instead. See below.
      • autoEnable

        public com.pulumi.core.Output<java.lang.String> autoEnable()
        Returns:
        Status of the feature that is configured for the member accounts within the organization. Valid values: `NEW`, `ALL`, `NONE`.
      • detectorId

        public com.pulumi.core.Output<java.lang.String> detectorId()
        Returns:
        ID of the detector that configures the delegated administrator.
      • name

        public com.pulumi.core.Output<java.lang.String> name()
        Returns:
        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`, `AI_PROTECTION`, `AI_ANALYST`. Only one of two features `EKS_RUNTIME_MONITORING` or `RUNTIME_MONITORING` can be added, adding both features will cause an error. Refer to the [AWS Documentation](https://docs.aws.amazon.com/guardduty/latest/APIReference/API_DetectorFeatureConfiguration.html) for the current list of supported values.
      • 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 OrganizationConfigurationFeature get​(java.lang.String name,
                                                           com.pulumi.core.Output<java.lang.String> id,
                                                           @Nullable
                                                           OrganizationConfigurationFeatureState 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.