Class LifecyclePolicyPolicyDetailsArgs


  • public final class LifecyclePolicyPolicyDetailsArgs
    extends com.pulumi.resources.ResourceArgs
    • Method Detail

      • action

        public java.util.Optional<com.pulumi.core.Output<LifecyclePolicyPolicyDetailsActionArgs>> 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.
      • eventSource

        public java.util.Optional<com.pulumi.core.Output<LifecyclePolicyPolicyDetailsEventSourceArgs>> 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 `event_source` configuration block.
      • policyType

        public java.util.Optional<com.pulumi.core.Output<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<com.pulumi.core.Output<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 you specify `OUTPOST`, Amazon Data Lifecycle Manager backs up all resources of the specified type with matching target tags across all of the Outposts in your account. Valid values are `CLOUD` and `OUTPOST`.
      • resourceTypes

        public java.util.Optional<com.pulumi.core.Output<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`.
      • targetTags

        public java.util.Optional<com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>>> targetTags()
        Returns:
        A map of tag keys and their values. Any resources that match the `resource_types` and are tagged with _any_ of these tags will be targeted. > Note: You cannot have overlapping lifecycle policies that share the same `target_tags`. Pulumi is unable to detect this at plan time but it will fail during apply.