Package com.pulumi.aws.cfg
Class RetentionConfiguration
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.aws.cfg.RetentionConfiguration
-
public class RetentionConfiguration extends com.pulumi.resources.CustomResourceProvides a resource to manage the AWS Config retention configuration. The retention configuration defines the number of days that AWS Config stores historical information. ## Example Usage
## Import ### Identity Schema #### Required * `name` (String) Name of the rule. #### Optional * `accountId` (String) AWS Account where this resource is managed. * `region` (String) Region where this resource is managed. Using `pulumi import`, import Config Retention Configurations using the `name`. For example: ```sh $ pulumi import aws:cfg/retentionConfiguration:RetentionConfiguration example default ```package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.aws.cfg.RetentionConfiguration; import com.pulumi.aws.cfg.RetentionConfigurationArgs; 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 RetentionConfiguration("example", RetentionConfigurationArgs.builder() .retentionPeriodInDays(90) .build()); } }
-
-
Constructor Summary
Constructors Constructor Description RetentionConfiguration(java.lang.String name)RetentionConfiguration(java.lang.String name, RetentionConfigurationArgs args)RetentionConfiguration(java.lang.String name, RetentionConfigurationArgs args, com.pulumi.resources.CustomResourceOptions options)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RetentionConfigurationget(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, RetentionConfigurationState 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()com.pulumi.core.Output<java.lang.Integer>retentionPeriodInDays()
-
-
-
Constructor Detail
-
RetentionConfiguration
public RetentionConfiguration(java.lang.String name)
- Parameters:
name- The _unique_ name of the resulting resource.
-
RetentionConfiguration
public RetentionConfiguration(java.lang.String name, RetentionConfigurationArgs args)- Parameters:
name- The _unique_ name of the resulting resource.args- The arguments to use to populate this resource's properties.
-
RetentionConfiguration
public RetentionConfiguration(java.lang.String name, RetentionConfigurationArgs 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
-
name
public com.pulumi.core.Output<java.lang.String> name()
- Returns:
- The name of the retention configuration object. The object is always named **default**.
-
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.
-
retentionPeriodInDays
public com.pulumi.core.Output<java.lang.Integer> retentionPeriodInDays()
- Returns:
- The number of days AWS Config stores historical information.
-
get
public static RetentionConfiguration get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, @Nullable RetentionConfigurationState 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.
-
-