LifecyclePolicyPolicyDetailsArgs

data class LifecyclePolicyPolicyDetailsArgs(val action: Output<LifecyclePolicyPolicyDetailsActionArgs>? = null, val eventSource: Output<LifecyclePolicyPolicyDetailsEventSourceArgs>? = null, val parameters: Output<LifecyclePolicyPolicyDetailsParametersArgs>? = null, val policyType: Output<String>? = null, val resourceLocations: Output<String>? = null, val resourceTypes: Output<List<String>>? = null, val schedules: Output<List<LifecyclePolicyPolicyDetailsScheduleArgs>>? = null, val targetTags: Output<Map<String, String>>? = null) : ConvertibleToJava<LifecyclePolicyPolicyDetailsArgs>

Constructors

Link copied to clipboard
constructor(action: Output<LifecyclePolicyPolicyDetailsActionArgs>? = null, eventSource: Output<LifecyclePolicyPolicyDetailsEventSourceArgs>? = null, parameters: Output<LifecyclePolicyPolicyDetailsParametersArgs>? = null, policyType: Output<String>? = null, resourceLocations: Output<String>? = null, resourceTypes: Output<List<String>>? = null, schedules: Output<List<LifecyclePolicyPolicyDetailsScheduleArgs>>? = null, targetTags: Output<Map<String, String>>? = null)

Properties

Link copied to clipboard

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.

Link copied to clipboard

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.

Link copied to clipboard

A set of optional parameters for snapshot and AMI lifecycle policies. See the parameters configuration block.

Link copied to clipboard
val policyType: Output<String>? = null

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.

Link copied to clipboard
val resourceLocations: Output<String>? = null

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.

Link copied to clipboard
val resourceTypes: Output<List<String>>? = null

A list of resource types that should be targeted by the lifecycle policy. Valid values are VOLUME and INSTANCE.

Link copied to clipboard

See the schedule configuration block.

Link copied to clipboard
val targetTags: Output<Map<String, String>>? = null

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.

Functions

Link copied to clipboard
open override fun toJava(): LifecyclePolicyPolicyDetailsArgs