Package com.pulumi.aws.rbin.inputs
Class RuleState.Builder
- java.lang.Object
-
- com.pulumi.aws.rbin.inputs.RuleState.Builder
-
- Enclosing class:
- RuleState
public static final class RuleState.Builder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RuleState.Builderarn(com.pulumi.core.Output<java.lang.String> arn)RuleState.Builderarn(java.lang.String arn)RuleStatebuild()RuleState.Builderdescription(com.pulumi.core.Output<java.lang.String> description)RuleState.Builderdescription(java.lang.String description)RuleState.BuilderexcludeResourceTags(RuleExcludeResourceTagArgs... excludeResourceTags)RuleState.BuilderexcludeResourceTags(com.pulumi.core.Output<java.util.List<RuleExcludeResourceTagArgs>> excludeResourceTags)RuleState.BuilderexcludeResourceTags(java.util.List<RuleExcludeResourceTagArgs> excludeResourceTags)RuleState.BuilderlockConfiguration(RuleLockConfigurationArgs lockConfiguration)RuleState.BuilderlockConfiguration(com.pulumi.core.Output<RuleLockConfigurationArgs> lockConfiguration)RuleState.BuilderlockEndTime(com.pulumi.core.Output<java.lang.String> lockEndTime)RuleState.BuilderlockEndTime(java.lang.String lockEndTime)RuleState.BuilderlockState(com.pulumi.core.Output<java.lang.String> lockState)RuleState.BuilderlockState(java.lang.String lockState)RuleState.Builderregion(com.pulumi.core.Output<java.lang.String> region)RuleState.Builderregion(java.lang.String region)RuleState.BuilderresourceTags(RuleResourceTagArgs... resourceTags)RuleState.BuilderresourceTags(com.pulumi.core.Output<java.util.List<RuleResourceTagArgs>> resourceTags)RuleState.BuilderresourceTags(java.util.List<RuleResourceTagArgs> resourceTags)RuleState.BuilderresourceType(com.pulumi.core.Output<java.lang.String> resourceType)RuleState.BuilderresourceType(java.lang.String resourceType)RuleState.BuilderretentionPeriod(RuleRetentionPeriodArgs retentionPeriod)RuleState.BuilderretentionPeriod(com.pulumi.core.Output<RuleRetentionPeriodArgs> retentionPeriod)RuleState.Builderstatus(com.pulumi.core.Output<java.lang.String> status)RuleState.Builderstatus(java.lang.String status)RuleState.Buildertags(com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>> tags)RuleState.Buildertags(java.util.Map<java.lang.String,java.lang.String> tags)RuleState.BuildertagsAll(com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>> tagsAll)RuleState.BuildertagsAll(java.util.Map<java.lang.String,java.lang.String> tagsAll)
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(RuleState defaults)
-
-
Method Detail
-
arn
public RuleState.Builder arn(@Nullable com.pulumi.core.Output<java.lang.String> arn)
-
arn
public RuleState.Builder arn(java.lang.String arn)
-
description
public RuleState.Builder description(@Nullable com.pulumi.core.Output<java.lang.String> description)
- Parameters:
description- Retention rule description.- Returns:
- builder
-
description
public RuleState.Builder description(java.lang.String description)
- Parameters:
description- Retention rule description.- Returns:
- builder
-
excludeResourceTags
public RuleState.Builder excludeResourceTags(@Nullable com.pulumi.core.Output<java.util.List<RuleExcludeResourceTagArgs>> excludeResourceTags)
- Parameters:
excludeResourceTags- Exclusion tags to use to identify resources that are to be excluded, or ignored, by a Region-level retention rule. See `excludeResourceTags` below.- Returns:
- builder
-
excludeResourceTags
public RuleState.Builder excludeResourceTags(java.util.List<RuleExcludeResourceTagArgs> excludeResourceTags)
- Parameters:
excludeResourceTags- Exclusion tags to use to identify resources that are to be excluded, or ignored, by a Region-level retention rule. See `excludeResourceTags` below.- Returns:
- builder
-
excludeResourceTags
public RuleState.Builder excludeResourceTags(RuleExcludeResourceTagArgs... excludeResourceTags)
- Parameters:
excludeResourceTags- Exclusion tags to use to identify resources that are to be excluded, or ignored, by a Region-level retention rule. See `excludeResourceTags` below.- Returns:
- builder
-
lockConfiguration
public RuleState.Builder lockConfiguration(@Nullable com.pulumi.core.Output<RuleLockConfigurationArgs> lockConfiguration)
- Parameters:
lockConfiguration- Information about the retention rule lock configuration. See `lockConfiguration` below.- Returns:
- builder
-
lockConfiguration
public RuleState.Builder lockConfiguration(RuleLockConfigurationArgs lockConfiguration)
- Parameters:
lockConfiguration- Information about the retention rule lock configuration. See `lockConfiguration` below.- Returns:
- builder
-
lockEndTime
public RuleState.Builder lockEndTime(@Nullable com.pulumi.core.Output<java.lang.String> lockEndTime)
- Parameters:
lockEndTime- (Timestamp) Date and time at which the unlock delay is set to expire. Only returned for retention rules that have been unlocked and that are still within the unlock delay period.- Returns:
- builder
-
lockEndTime
public RuleState.Builder lockEndTime(java.lang.String lockEndTime)
- Parameters:
lockEndTime- (Timestamp) Date and time at which the unlock delay is set to expire. Only returned for retention rules that have been unlocked and that are still within the unlock delay period.- Returns:
- builder
-
lockState
public RuleState.Builder lockState(@Nullable com.pulumi.core.Output<java.lang.String> lockState)
- Parameters:
lockState- (Optional) Lock state of the retention rules to list. Only retention rules with the specified lock state are returned. Valid values are `locked`, `pendingUnlock`, `unlocked`.- Returns:
- builder
-
lockState
public RuleState.Builder lockState(java.lang.String lockState)
- Parameters:
lockState- (Optional) Lock state of the retention rules to list. Only retention rules with the specified lock state are returned. Valid values are `locked`, `pendingUnlock`, `unlocked`.- Returns:
- builder
-
region
public RuleState.Builder region(@Nullable com.pulumi.core.Output<java.lang.String> region)
- Parameters:
region- 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.- Returns:
- builder
-
region
public RuleState.Builder region(java.lang.String region)
- Parameters:
region- 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.- Returns:
- builder
-
resourceTags
public RuleState.Builder resourceTags(@Nullable com.pulumi.core.Output<java.util.List<RuleResourceTagArgs>> resourceTags)
- Parameters:
resourceTags- Resource tags to use to identify resources that are to be retained by a tag-level retention rule. See `resourceTags` below.- Returns:
- builder
-
resourceTags
public RuleState.Builder resourceTags(java.util.List<RuleResourceTagArgs> resourceTags)
- Parameters:
resourceTags- Resource tags to use to identify resources that are to be retained by a tag-level retention rule. See `resourceTags` below.- Returns:
- builder
-
resourceTags
public RuleState.Builder resourceTags(RuleResourceTagArgs... resourceTags)
- Parameters:
resourceTags- Resource tags to use to identify resources that are to be retained by a tag-level retention rule. See `resourceTags` below.- Returns:
- builder
-
resourceType
public RuleState.Builder resourceType(@Nullable com.pulumi.core.Output<java.lang.String> resourceType)
- Parameters:
resourceType- Resource type to be retained by the retention rule. Valid values are `EBS_SNAPSHOT` and `EC2_IMAGE`.- Returns:
- builder
-
resourceType
public RuleState.Builder resourceType(java.lang.String resourceType)
- Parameters:
resourceType- Resource type to be retained by the retention rule. Valid values are `EBS_SNAPSHOT` and `EC2_IMAGE`.- Returns:
- builder
-
retentionPeriod
public RuleState.Builder retentionPeriod(@Nullable com.pulumi.core.Output<RuleRetentionPeriodArgs> retentionPeriod)
- Parameters:
retentionPeriod- Information about the retention period for which the retention rule is to retain resources. See `retentionPeriod` below. The following arguments are optional:- Returns:
- builder
-
retentionPeriod
public RuleState.Builder retentionPeriod(RuleRetentionPeriodArgs retentionPeriod)
- Parameters:
retentionPeriod- Information about the retention period for which the retention rule is to retain resources. See `retentionPeriod` below. The following arguments are optional:- Returns:
- builder
-
status
public RuleState.Builder status(@Nullable com.pulumi.core.Output<java.lang.String> status)
- Parameters:
status- (String) State of the retention rule. Only retention rules that are in the `available` state retain resources. Valid values include `pending` and `available`.- Returns:
- builder
-
status
public RuleState.Builder status(java.lang.String status)
- Parameters:
status- (String) State of the retention rule. Only retention rules that are in the `available` state retain resources. Valid values include `pending` and `available`.- Returns:
- builder
-
tags
public RuleState.Builder tags(@Nullable com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>> tags)
-
tags
public RuleState.Builder tags(java.util.Map<java.lang.String,java.lang.String> tags)
-
tagsAll
public RuleState.Builder tagsAll(@Nullable com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>> tagsAll)
-
tagsAll
public RuleState.Builder tagsAll(java.util.Map<java.lang.String,java.lang.String> tagsAll)
-
build
public RuleState build()
-
-