Package com.pulumi.aws.guardduty
Class OrganizationConfigurationFeature
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.aws.guardduty.OrganizationConfigurationFeature
-
public class OrganizationConfigurationFeature extends com.pulumi.resources.CustomResourceProvides 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 Usagepackage 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()); } }
-
-
Constructor Summary
Constructors Constructor Description OrganizationConfigurationFeature(java.lang.String name)OrganizationConfigurationFeature(java.lang.String name, OrganizationConfigurationFeatureArgs args)OrganizationConfigurationFeature(java.lang.String name, OrganizationConfigurationFeatureArgs 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.util.List<OrganizationConfigurationFeatureAdditionalConfiguration>>additionalConfigurations()com.pulumi.core.Output<java.lang.String>autoEnable()com.pulumi.core.Output<java.lang.String>detectorId()static OrganizationConfigurationFeatureget(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()
-
-
-
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.
-
-