Package com.pulumi.aws.dlm.outputs
Class LifecyclePolicyPolicyDetails
- java.lang.Object
-
- com.pulumi.aws.dlm.outputs.LifecyclePolicyPolicyDetails
-
public final class LifecyclePolicyPolicyDetails extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLifecyclePolicyPolicyDetails.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<LifecyclePolicyPolicyDetailsAction>action()static LifecyclePolicyPolicyDetails.Builderbuilder()static LifecyclePolicyPolicyDetails.Builderbuilder(LifecyclePolicyPolicyDetails defaults)java.util.Optional<java.lang.Boolean>copyTags()java.util.Optional<java.lang.Integer>createInterval()java.util.Optional<LifecyclePolicyPolicyDetailsEventSource>eventSource()java.util.Optional<LifecyclePolicyPolicyDetailsExclusions>exclusions()java.util.Optional<java.lang.Boolean>extendDeletion()java.util.Optional<LifecyclePolicyPolicyDetailsParameters>parameters()java.util.Optional<java.lang.String>policyLanguage()java.util.Optional<java.lang.String>policyType()java.util.Optional<java.lang.String>resourceLocations()java.util.Optional<java.lang.String>resourceType()java.util.List<java.lang.String>resourceTypes()java.util.Optional<java.lang.Integer>retainInterval()java.util.List<LifecyclePolicyPolicyDetailsSchedule>schedules()java.util.Map<java.lang.String,java.lang.String>targetTags()
-
-
-
Method Detail
-
action
public java.util.Optional<LifecyclePolicyPolicyDetailsAction> action()
- Returns:
- The actions to be performed when the event-based policy is triggered. You can specify only one action per policy. This parameter is required for event-based policies only. If you are creating a snapshot or AMI policy, omit this parameter. See the `action` configuration block.
-
copyTags
public java.util.Optional<java.lang.Boolean> copyTags()
-
createInterval
public java.util.Optional<java.lang.Integer> createInterval()
- Returns:
- How often the policy should run and create snapshots or AMIs. valid values range from `1` to `7`. Default value is `1`.
-
eventSource
public java.util.Optional<LifecyclePolicyPolicyDetailsEventSource> eventSource()
- Returns:
- The event that triggers the event-based policy. This parameter is required for event-based policies only. If you are creating a snapshot or AMI policy, omit this parameter. See the `eventSource` configuration block.
-
exclusions
public java.util.Optional<LifecyclePolicyPolicyDetailsExclusions> exclusions()
- Returns:
- Specifies exclusion parameters for volumes or instances for which you do not want to create snapshots or AMIs. See the `exclusions` configuration block.
-
extendDeletion
public java.util.Optional<java.lang.Boolean> extendDeletion()
- Returns:
- snapshot or AMI retention behavior for the policy if the source volume or instance is deleted, or if the policy enters the error, disabled, or deleted state. Default value is `false`.
-
parameters
public java.util.Optional<LifecyclePolicyPolicyDetailsParameters> parameters()
-
policyLanguage
public java.util.Optional<java.lang.String> policyLanguage()
- Returns:
- Type of policy to create. `SIMPLIFIED` To create a default policy. `STANDARD` To create a custom policy.
-
policyType
public java.util.Optional<java.lang.String> policyType()
- Returns:
- The valid target resource types and actions a policy can manage. Specify `EBS_SNAPSHOT_MANAGEMENT` to create a lifecycle policy that manages the lifecycle of Amazon EBS snapshots. Specify `IMAGE_MANAGEMENT` to create a lifecycle policy that manages the lifecycle of EBS-backed AMIs. Specify `EVENT_BASED_POLICY` to create an event-based policy that performs specific actions when a defined event occurs in your AWS account. Default value is `EBS_SNAPSHOT_MANAGEMENT`.
-
resourceLocations
public java.util.Optional<java.lang.String> resourceLocations()
- Returns:
- The location of the resources to backup. If the source resources are located in an AWS Region, specify `CLOUD`. If the source resources are located on an Outpost in your account, specify `OUTPOST`. If the source resources are located in a Local Zone, specify `LOCAL_ZONE`. Valid values are `CLOUD`, `LOCAL_ZONE`, and `OUTPOST`.
-
resourceType
public java.util.Optional<java.lang.String> resourceType()
- Returns:
- Type of default policy to create. Valid values are `VOLUME` and `INSTANCE`.
-
resourceTypes
public java.util.List<java.lang.String> resourceTypes()
- Returns:
- A list of resource types that should be targeted by the lifecycle policy. Valid values are `VOLUME` and `INSTANCE`.
-
retainInterval
public java.util.Optional<java.lang.Integer> retainInterval()
- Returns:
- Specifies how long the policy should retain snapshots or AMIs before deleting them. valid values range from `2` to `14`. Default value is `7`.
-
schedules
public java.util.List<LifecyclePolicyPolicyDetailsSchedule> schedules()
- Returns:
- See the `schedule` configuration block.
-
targetTags
public java.util.Map<java.lang.String,java.lang.String> targetTags()
- Returns:
- A map of tag keys and their values. Any resources that match the `resourceTypes` and are tagged with _any_ of these tags will be targeted. Required when `policyType` is `EBS_SNAPSHOT_MANAGEMENT` or `IMAGE_MANAGEMENT`. Must not be specified when `policyType` is `EVENT_BASED_POLICY`. > Note: You cannot have overlapping lifecycle policies that share the same `targetTags`. Pulumi is unable to detect this at plan time but it will fail during apply.
-
builder
public static LifecyclePolicyPolicyDetails.Builder builder()
-
builder
public static LifecyclePolicyPolicyDetails.Builder builder(LifecyclePolicyPolicyDetails defaults)
-
-