1. Packages
  2. AWS
  3. API Docs
  4. dlm
  5. LifecyclePolicy
Viewing docs for AWS v5.43.0 (Older version)
published on Tuesday, Mar 10, 2026 by Pulumi
aws logo
Viewing docs for AWS v5.43.0 (Older version)
published on Tuesday, Mar 10, 2026 by Pulumi

    Provides a Data Lifecycle Manager (DLM) lifecycle policy for managing snapshots.

    Example Usage

    Basic

    Example coming soon!

    Example coming soon!

    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.iam.IamFunctions;
    import com.pulumi.aws.iam.inputs.GetPolicyDocumentArgs;
    import com.pulumi.aws.iam.Role;
    import com.pulumi.aws.iam.RoleArgs;
    import com.pulumi.aws.iam.RolePolicy;
    import com.pulumi.aws.iam.RolePolicyArgs;
    import com.pulumi.aws.dlm.LifecyclePolicy;
    import com.pulumi.aws.dlm.LifecyclePolicyArgs;
    import com.pulumi.aws.dlm.inputs.LifecyclePolicyPolicyDetailsArgs;
    import java.util.List;
    import java.util.ArrayList;
    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) {
            final var assumeRole = IamFunctions.getPolicyDocument(GetPolicyDocumentArgs.builder()
                .statements(GetPolicyDocumentStatementArgs.builder()
                    .effect("Allow")
                    .principals(GetPolicyDocumentStatementPrincipalArgs.builder()
                        .type("Service")
                        .identifiers("dlm.amazonaws.com")
                        .build())
                    .actions("sts:AssumeRole")
                    .build())
                .build());
    
            var dlmLifecycleRole = new Role("dlmLifecycleRole", RoleArgs.builder()        
                .assumeRolePolicy(assumeRole.applyValue(getPolicyDocumentResult -> getPolicyDocumentResult.json()))
                .build());
    
            final var dlmLifecyclePolicyDocument = IamFunctions.getPolicyDocument(GetPolicyDocumentArgs.builder()
                .statements(            
                    GetPolicyDocumentStatementArgs.builder()
                        .effect("Allow")
                        .actions(                    
                            "ec2:CreateSnapshot",
                            "ec2:CreateSnapshots",
                            "ec2:DeleteSnapshot",
                            "ec2:DescribeInstances",
                            "ec2:DescribeVolumes",
                            "ec2:DescribeSnapshots")
                        .resources("*")
                        .build(),
                    GetPolicyDocumentStatementArgs.builder()
                        .effect("Allow")
                        .actions("ec2:CreateTags")
                        .resources("arn:aws:ec2:*::snapshot/*")
                        .build())
                .build());
    
            var dlmLifecycleRolePolicy = new RolePolicy("dlmLifecycleRolePolicy", RolePolicyArgs.builder()        
                .role(dlmLifecycleRole.id())
                .policy(dlmLifecyclePolicyDocument.applyValue(getPolicyDocumentResult -> getPolicyDocumentResult.json()))
                .build());
    
            var example = new LifecyclePolicy("example", LifecyclePolicyArgs.builder()        
                .description("example DLM lifecycle policy")
                .executionRoleArn(dlmLifecycleRole.arn())
                .state("ENABLED")
                .policyDetails(LifecyclePolicyPolicyDetailsArgs.builder()
                    .resourceTypes("VOLUME")
                    .schedules(LifecyclePolicyPolicyDetailsScheduleArgs.builder()
                        .name("2 weeks of daily snapshots")
                        .createRule(LifecyclePolicyPolicyDetailsScheduleCreateRuleArgs.builder()
                            .interval(24)
                            .intervalUnit("HOURS")
                            .times("23:45")
                            .build())
                        .retainRule(LifecyclePolicyPolicyDetailsScheduleRetainRuleArgs.builder()
                            .count(14)
                            .build())
                        .tagsToAdd(Map.of("SnapshotCreator", "DLM"))
                        .copyTags(false)
                        .build())
                    .targetTags(Map.of("Snapshot", "true"))
                    .build())
                .build());
    
        }
    }
    

    Example coming soon!

    Example coming soon!

    resources:
      dlmLifecycleRole:
        type: aws:iam:Role
        properties:
          assumeRolePolicy: ${assumeRole.json}
      dlmLifecycleRolePolicy:
        type: aws:iam:RolePolicy
        properties:
          role: ${dlmLifecycleRole.id}
          policy: ${dlmLifecyclePolicyDocument.json}
      example:
        type: aws:dlm:LifecyclePolicy
        properties:
          description: example DLM lifecycle policy
          executionRoleArn: ${dlmLifecycleRole.arn}
          state: ENABLED
          policyDetails:
            resourceTypes:
              - VOLUME
            schedules:
              - name: 2 weeks of daily snapshots
                createRule:
                  interval: 24
                  intervalUnit: HOURS
                  times:
                    - 23:45
                retainRule:
                  count: 14
                tagsToAdd:
                  SnapshotCreator: DLM
                copyTags: false
            targetTags:
              Snapshot: 'true'
    variables:
      assumeRole:
        fn::invoke:
          Function: aws:iam:getPolicyDocument
          Arguments:
            statements:
              - effect: Allow
                principals:
                  - type: Service
                    identifiers:
                      - dlm.amazonaws.com
                actions:
                  - sts:AssumeRole
      dlmLifecyclePolicyDocument:
        fn::invoke:
          Function: aws:iam:getPolicyDocument
          Arguments:
            statements:
              - effect: Allow
                actions:
                  - ec2:CreateSnapshot
                  - ec2:CreateSnapshots
                  - ec2:DeleteSnapshot
                  - ec2:DescribeInstances
                  - ec2:DescribeVolumes
                  - ec2:DescribeSnapshots
                resources:
                  - '*'
              - effect: Allow
                actions:
                  - ec2:CreateTags
                resources:
                  - arn:aws:ec2:*::snapshot/*
    

    Example Cross-Region Snapshot Copy Usage

    Example coming soon!

    Example coming soon!

    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.AwsFunctions;
    import com.pulumi.aws.iam.IamFunctions;
    import com.pulumi.aws.iam.inputs.GetPolicyDocumentArgs;
    import com.pulumi.aws.kms.Key;
    import com.pulumi.aws.kms.KeyArgs;
    import com.pulumi.aws.dlm.LifecyclePolicy;
    import com.pulumi.aws.dlm.LifecyclePolicyArgs;
    import com.pulumi.aws.dlm.inputs.LifecyclePolicyPolicyDetailsArgs;
    import com.pulumi.resources.CustomResourceOptions;
    import java.util.List;
    import java.util.ArrayList;
    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) {
            final var current = AwsFunctions.getCallerIdentity();
    
            final var key = IamFunctions.getPolicyDocument(GetPolicyDocumentArgs.builder()
                .statements(GetPolicyDocumentStatementArgs.builder()
                    .sid("Enable IAM User Permissions")
                    .effect("Allow")
                    .principals(GetPolicyDocumentStatementPrincipalArgs.builder()
                        .type("AWS")
                        .identifiers(String.format("arn:aws:iam::%s:root", current.applyValue(getCallerIdentityResult -> getCallerIdentityResult.accountId())))
                        .build())
                    .actions("kms:*")
                    .resources("*")
                    .build())
                .build());
    
            var dlmCrossRegionCopyCmk = new Key("dlmCrossRegionCopyCmk", KeyArgs.builder()        
                .description("Example Alternate Region KMS Key")
                .policy(key.applyValue(getPolicyDocumentResult -> getPolicyDocumentResult.json()))
                .build(), CustomResourceOptions.builder()
                    .provider(aws.alternate())
                    .build());
    
            var example = new LifecyclePolicy("example", LifecyclePolicyArgs.builder()        
                .description("example DLM lifecycle policy")
                .executionRoleArn(aws_iam_role.dlm_lifecycle_role().arn())
                .state("ENABLED")
                .policyDetails(LifecyclePolicyPolicyDetailsArgs.builder()
                    .resourceTypes("VOLUME")
                    .schedules(LifecyclePolicyPolicyDetailsScheduleArgs.builder()
                        .name("2 weeks of daily snapshots")
                        .createRule(LifecyclePolicyPolicyDetailsScheduleCreateRuleArgs.builder()
                            .interval(24)
                            .intervalUnit("HOURS")
                            .times("23:45")
                            .build())
                        .retainRule(LifecyclePolicyPolicyDetailsScheduleRetainRuleArgs.builder()
                            .count(14)
                            .build())
                        .tagsToAdd(Map.of("SnapshotCreator", "DLM"))
                        .copyTags(false)
                        .crossRegionCopyRules(LifecyclePolicyPolicyDetailsScheduleCrossRegionCopyRuleArgs.builder()
                            .target("us-west-2")
                            .encrypted(true)
                            .cmkArn(dlmCrossRegionCopyCmk.arn())
                            .copyTags(true)
                            .retainRule(LifecyclePolicyPolicyDetailsScheduleCrossRegionCopyRuleRetainRuleArgs.builder()
                                .interval(30)
                                .intervalUnit("DAYS")
                                .build())
                            .build())
                        .build())
                    .targetTags(Map.of("Snapshot", "true"))
                    .build())
                .build());
    
        }
    }
    

    Example coming soon!

    Example coming soon!

    resources:
      dlmCrossRegionCopyCmk:
        type: aws:kms:Key
        properties:
          description: Example Alternate Region KMS Key
          policy: ${key.json}
        options:
          provider: ${aws.alternate}
      example:
        type: aws:dlm:LifecyclePolicy
        properties:
          description: example DLM lifecycle policy
          executionRoleArn: ${aws_iam_role.dlm_lifecycle_role.arn}
          state: ENABLED
          policyDetails:
            resourceTypes:
              - VOLUME
            schedules:
              - name: 2 weeks of daily snapshots
                createRule:
                  interval: 24
                  intervalUnit: HOURS
                  times:
                    - 23:45
                retainRule:
                  count: 14
                tagsToAdd:
                  SnapshotCreator: DLM
                copyTags: false
                crossRegionCopyRules:
                  - target: us-west-2
                    encrypted: true
                    cmkArn: ${dlmCrossRegionCopyCmk.arn}
                    copyTags: true
                    retainRule:
                      interval: 30
                      intervalUnit: DAYS
            targetTags:
              Snapshot: 'true'
    variables:
      current:
        fn::invoke:
          Function: aws:getCallerIdentity
          Arguments: {}
      key:
        fn::invoke:
          Function: aws:iam:getPolicyDocument
          Arguments:
            statements:
              - sid: Enable IAM User Permissions
                effect: Allow
                principals:
                  - type: AWS
                    identifiers:
                      - arn:aws:iam::${current.accountId}:root
                actions:
                  - kms:*
                resources:
                  - '*'
    

    Create LifecyclePolicy Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new LifecyclePolicy(name: string, args: LifecyclePolicyArgs, opts?: CustomResourceOptions);
    @overload
    def LifecyclePolicy(resource_name: str,
                        args: LifecyclePolicyArgs,
                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def LifecyclePolicy(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        description: Optional[str] = None,
                        execution_role_arn: Optional[str] = None,
                        policy_details: Optional[LifecyclePolicyPolicyDetailsArgs] = None,
                        state: Optional[str] = None,
                        tags: Optional[Mapping[str, str]] = None)
    func NewLifecyclePolicy(ctx *Context, name string, args LifecyclePolicyArgs, opts ...ResourceOption) (*LifecyclePolicy, error)
    public LifecyclePolicy(string name, LifecyclePolicyArgs args, CustomResourceOptions? opts = null)
    public LifecyclePolicy(String name, LifecyclePolicyArgs args)
    public LifecyclePolicy(String name, LifecyclePolicyArgs args, CustomResourceOptions options)
    
    type: aws:dlm:LifecyclePolicy
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args LifecyclePolicyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args LifecyclePolicyArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args LifecyclePolicyArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args LifecyclePolicyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args LifecyclePolicyArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var lifecyclePolicyResource = new Aws.Dlm.LifecyclePolicy("lifecyclePolicyResource", new()
    {
        Description = "string",
        ExecutionRoleArn = "string",
        PolicyDetails = new Aws.Dlm.Inputs.LifecyclePolicyPolicyDetailsArgs
        {
            Action = new Aws.Dlm.Inputs.LifecyclePolicyPolicyDetailsActionArgs
            {
                CrossRegionCopies = new[]
                {
                    new Aws.Dlm.Inputs.LifecyclePolicyPolicyDetailsActionCrossRegionCopyArgs
                    {
                        EncryptionConfiguration = new Aws.Dlm.Inputs.LifecyclePolicyPolicyDetailsActionCrossRegionCopyEncryptionConfigurationArgs
                        {
                            CmkArn = "string",
                            Encrypted = false,
                        },
                        Target = "string",
                        RetainRule = new Aws.Dlm.Inputs.LifecyclePolicyPolicyDetailsActionCrossRegionCopyRetainRuleArgs
                        {
                            Interval = 0,
                            IntervalUnit = "string",
                        },
                    },
                },
                Name = "string",
            },
            EventSource = new Aws.Dlm.Inputs.LifecyclePolicyPolicyDetailsEventSourceArgs
            {
                Parameters = new Aws.Dlm.Inputs.LifecyclePolicyPolicyDetailsEventSourceParametersArgs
                {
                    DescriptionRegex = "string",
                    EventType = "string",
                    SnapshotOwners = new[]
                    {
                        "string",
                    },
                },
                Type = "string",
            },
            Parameters = new Aws.Dlm.Inputs.LifecyclePolicyPolicyDetailsParametersArgs
            {
                ExcludeBootVolume = false,
                NoReboot = false,
            },
            PolicyType = "string",
            ResourceLocations = "string",
            ResourceTypes = new[]
            {
                "string",
            },
            Schedules = new[]
            {
                new Aws.Dlm.Inputs.LifecyclePolicyPolicyDetailsScheduleArgs
                {
                    CreateRule = new Aws.Dlm.Inputs.LifecyclePolicyPolicyDetailsScheduleCreateRuleArgs
                    {
                        CronExpression = "string",
                        Interval = 0,
                        IntervalUnit = "string",
                        Location = "string",
                        Times = "string",
                    },
                    Name = "string",
                    RetainRule = new Aws.Dlm.Inputs.LifecyclePolicyPolicyDetailsScheduleRetainRuleArgs
                    {
                        Count = 0,
                        Interval = 0,
                        IntervalUnit = "string",
                    },
                    CopyTags = false,
                    CrossRegionCopyRules = new[]
                    {
                        new Aws.Dlm.Inputs.LifecyclePolicyPolicyDetailsScheduleCrossRegionCopyRuleArgs
                        {
                            Encrypted = false,
                            Target = "string",
                            CmkArn = "string",
                            CopyTags = false,
                            DeprecateRule = new Aws.Dlm.Inputs.LifecyclePolicyPolicyDetailsScheduleCrossRegionCopyRuleDeprecateRuleArgs
                            {
                                Interval = 0,
                                IntervalUnit = "string",
                            },
                            RetainRule = new Aws.Dlm.Inputs.LifecyclePolicyPolicyDetailsScheduleCrossRegionCopyRuleRetainRuleArgs
                            {
                                Interval = 0,
                                IntervalUnit = "string",
                            },
                        },
                    },
                    DeprecateRule = new Aws.Dlm.Inputs.LifecyclePolicyPolicyDetailsScheduleDeprecateRuleArgs
                    {
                        Count = 0,
                        Interval = 0,
                        IntervalUnit = "string",
                    },
                    FastRestoreRule = new Aws.Dlm.Inputs.LifecyclePolicyPolicyDetailsScheduleFastRestoreRuleArgs
                    {
                        AvailabilityZones = new[]
                        {
                            "string",
                        },
                        Count = 0,
                        Interval = 0,
                        IntervalUnit = "string",
                    },
                    ShareRule = new Aws.Dlm.Inputs.LifecyclePolicyPolicyDetailsScheduleShareRuleArgs
                    {
                        TargetAccounts = new[]
                        {
                            "string",
                        },
                        UnshareInterval = 0,
                        UnshareIntervalUnit = "string",
                    },
                    TagsToAdd = 
                    {
                        { "string", "string" },
                    },
                    VariableTags = 
                    {
                        { "string", "string" },
                    },
                },
            },
            TargetTags = 
            {
                { "string", "string" },
            },
        },
        State = "string",
        Tags = 
        {
            { "string", "string" },
        },
    });
    
    example, err := dlm.NewLifecyclePolicy(ctx, "lifecyclePolicyResource", &dlm.LifecyclePolicyArgs{
    	Description:      pulumi.String("string"),
    	ExecutionRoleArn: pulumi.String("string"),
    	PolicyDetails: &dlm.LifecyclePolicyPolicyDetailsArgs{
    		Action: &dlm.LifecyclePolicyPolicyDetailsActionArgs{
    			CrossRegionCopies: dlm.LifecyclePolicyPolicyDetailsActionCrossRegionCopyArray{
    				&dlm.LifecyclePolicyPolicyDetailsActionCrossRegionCopyArgs{
    					EncryptionConfiguration: &dlm.LifecyclePolicyPolicyDetailsActionCrossRegionCopyEncryptionConfigurationArgs{
    						CmkArn:    pulumi.String("string"),
    						Encrypted: pulumi.Bool(false),
    					},
    					Target: pulumi.String("string"),
    					RetainRule: &dlm.LifecyclePolicyPolicyDetailsActionCrossRegionCopyRetainRuleArgs{
    						Interval:     pulumi.Int(0),
    						IntervalUnit: pulumi.String("string"),
    					},
    				},
    			},
    			Name: pulumi.String("string"),
    		},
    		EventSource: &dlm.LifecyclePolicyPolicyDetailsEventSourceArgs{
    			Parameters: &dlm.LifecyclePolicyPolicyDetailsEventSourceParametersArgs{
    				DescriptionRegex: pulumi.String("string"),
    				EventType:        pulumi.String("string"),
    				SnapshotOwners: pulumi.StringArray{
    					pulumi.String("string"),
    				},
    			},
    			Type: pulumi.String("string"),
    		},
    		Parameters: &dlm.LifecyclePolicyPolicyDetailsParametersArgs{
    			ExcludeBootVolume: pulumi.Bool(false),
    			NoReboot:          pulumi.Bool(false),
    		},
    		PolicyType:        pulumi.String("string"),
    		ResourceLocations: pulumi.String("string"),
    		ResourceTypes: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    		Schedules: dlm.LifecyclePolicyPolicyDetailsScheduleArray{
    			&dlm.LifecyclePolicyPolicyDetailsScheduleArgs{
    				CreateRule: &dlm.LifecyclePolicyPolicyDetailsScheduleCreateRuleArgs{
    					CronExpression: pulumi.String("string"),
    					Interval:       pulumi.Int(0),
    					IntervalUnit:   pulumi.String("string"),
    					Location:       pulumi.String("string"),
    					Times:          pulumi.String("string"),
    				},
    				Name: pulumi.String("string"),
    				RetainRule: &dlm.LifecyclePolicyPolicyDetailsScheduleRetainRuleArgs{
    					Count:        pulumi.Int(0),
    					Interval:     pulumi.Int(0),
    					IntervalUnit: pulumi.String("string"),
    				},
    				CopyTags: pulumi.Bool(false),
    				CrossRegionCopyRules: dlm.LifecyclePolicyPolicyDetailsScheduleCrossRegionCopyRuleArray{
    					&dlm.LifecyclePolicyPolicyDetailsScheduleCrossRegionCopyRuleArgs{
    						Encrypted: pulumi.Bool(false),
    						Target:    pulumi.String("string"),
    						CmkArn:    pulumi.String("string"),
    						CopyTags:  pulumi.Bool(false),
    						DeprecateRule: &dlm.LifecyclePolicyPolicyDetailsScheduleCrossRegionCopyRuleDeprecateRuleArgs{
    							Interval:     pulumi.Int(0),
    							IntervalUnit: pulumi.String("string"),
    						},
    						RetainRule: &dlm.LifecyclePolicyPolicyDetailsScheduleCrossRegionCopyRuleRetainRuleArgs{
    							Interval:     pulumi.Int(0),
    							IntervalUnit: pulumi.String("string"),
    						},
    					},
    				},
    				DeprecateRule: &dlm.LifecyclePolicyPolicyDetailsScheduleDeprecateRuleArgs{
    					Count:        pulumi.Int(0),
    					Interval:     pulumi.Int(0),
    					IntervalUnit: pulumi.String("string"),
    				},
    				FastRestoreRule: &dlm.LifecyclePolicyPolicyDetailsScheduleFastRestoreRuleArgs{
    					AvailabilityZones: pulumi.StringArray{
    						pulumi.String("string"),
    					},
    					Count:        pulumi.Int(0),
    					Interval:     pulumi.Int(0),
    					IntervalUnit: pulumi.String("string"),
    				},
    				ShareRule: &dlm.LifecyclePolicyPolicyDetailsScheduleShareRuleArgs{
    					TargetAccounts: pulumi.StringArray{
    						pulumi.String("string"),
    					},
    					UnshareInterval:     pulumi.Int(0),
    					UnshareIntervalUnit: pulumi.String("string"),
    				},
    				TagsToAdd: pulumi.StringMap{
    					"string": pulumi.String("string"),
    				},
    				VariableTags: pulumi.StringMap{
    					"string": pulumi.String("string"),
    				},
    			},
    		},
    		TargetTags: pulumi.StringMap{
    			"string": pulumi.String("string"),
    		},
    	},
    	State: pulumi.String("string"),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    })
    
    var lifecyclePolicyResource = new com.pulumi.aws.dlm.LifecyclePolicy("lifecyclePolicyResource", com.pulumi.aws.dlm.LifecyclePolicyArgs.builder()
        .description("string")
        .executionRoleArn("string")
        .policyDetails(LifecyclePolicyPolicyDetailsArgs.builder()
            .action(LifecyclePolicyPolicyDetailsActionArgs.builder()
                .crossRegionCopies(LifecyclePolicyPolicyDetailsActionCrossRegionCopyArgs.builder()
                    .encryptionConfiguration(LifecyclePolicyPolicyDetailsActionCrossRegionCopyEncryptionConfigurationArgs.builder()
                        .cmkArn("string")
                        .encrypted(false)
                        .build())
                    .target("string")
                    .retainRule(LifecyclePolicyPolicyDetailsActionCrossRegionCopyRetainRuleArgs.builder()
                        .interval(0)
                        .intervalUnit("string")
                        .build())
                    .build())
                .name("string")
                .build())
            .eventSource(LifecyclePolicyPolicyDetailsEventSourceArgs.builder()
                .parameters(LifecyclePolicyPolicyDetailsEventSourceParametersArgs.builder()
                    .descriptionRegex("string")
                    .eventType("string")
                    .snapshotOwners("string")
                    .build())
                .type("string")
                .build())
            .parameters(LifecyclePolicyPolicyDetailsParametersArgs.builder()
                .excludeBootVolume(false)
                .noReboot(false)
                .build())
            .policyType("string")
            .resourceLocations("string")
            .resourceTypes("string")
            .schedules(LifecyclePolicyPolicyDetailsScheduleArgs.builder()
                .createRule(LifecyclePolicyPolicyDetailsScheduleCreateRuleArgs.builder()
                    .cronExpression("string")
                    .interval(0)
                    .intervalUnit("string")
                    .location("string")
                    .times("string")
                    .build())
                .name("string")
                .retainRule(LifecyclePolicyPolicyDetailsScheduleRetainRuleArgs.builder()
                    .count(0)
                    .interval(0)
                    .intervalUnit("string")
                    .build())
                .copyTags(false)
                .crossRegionCopyRules(LifecyclePolicyPolicyDetailsScheduleCrossRegionCopyRuleArgs.builder()
                    .encrypted(false)
                    .target("string")
                    .cmkArn("string")
                    .copyTags(false)
                    .deprecateRule(LifecyclePolicyPolicyDetailsScheduleCrossRegionCopyRuleDeprecateRuleArgs.builder()
                        .interval(0)
                        .intervalUnit("string")
                        .build())
                    .retainRule(LifecyclePolicyPolicyDetailsScheduleCrossRegionCopyRuleRetainRuleArgs.builder()
                        .interval(0)
                        .intervalUnit("string")
                        .build())
                    .build())
                .deprecateRule(LifecyclePolicyPolicyDetailsScheduleDeprecateRuleArgs.builder()
                    .count(0)
                    .interval(0)
                    .intervalUnit("string")
                    .build())
                .fastRestoreRule(LifecyclePolicyPolicyDetailsScheduleFastRestoreRuleArgs.builder()
                    .availabilityZones("string")
                    .count(0)
                    .interval(0)
                    .intervalUnit("string")
                    .build())
                .shareRule(LifecyclePolicyPolicyDetailsScheduleShareRuleArgs.builder()
                    .targetAccounts("string")
                    .unshareInterval(0)
                    .unshareIntervalUnit("string")
                    .build())
                .tagsToAdd(Map.of("string", "string"))
                .variableTags(Map.of("string", "string"))
                .build())
            .targetTags(Map.of("string", "string"))
            .build())
        .state("string")
        .tags(Map.of("string", "string"))
        .build());
    
    lifecycle_policy_resource = aws.dlm.LifecyclePolicy("lifecyclePolicyResource",
        description="string",
        execution_role_arn="string",
        policy_details={
            "action": {
                "cross_region_copies": [{
                    "encryption_configuration": {
                        "cmk_arn": "string",
                        "encrypted": False,
                    },
                    "target": "string",
                    "retain_rule": {
                        "interval": 0,
                        "interval_unit": "string",
                    },
                }],
                "name": "string",
            },
            "event_source": {
                "parameters": {
                    "description_regex": "string",
                    "event_type": "string",
                    "snapshot_owners": ["string"],
                },
                "type": "string",
            },
            "parameters": {
                "exclude_boot_volume": False,
                "no_reboot": False,
            },
            "policy_type": "string",
            "resource_locations": "string",
            "resource_types": ["string"],
            "schedules": [{
                "create_rule": {
                    "cron_expression": "string",
                    "interval": 0,
                    "interval_unit": "string",
                    "location": "string",
                    "times": "string",
                },
                "name": "string",
                "retain_rule": {
                    "count": 0,
                    "interval": 0,
                    "interval_unit": "string",
                },
                "copy_tags": False,
                "cross_region_copy_rules": [{
                    "encrypted": False,
                    "target": "string",
                    "cmk_arn": "string",
                    "copy_tags": False,
                    "deprecate_rule": {
                        "interval": 0,
                        "interval_unit": "string",
                    },
                    "retain_rule": {
                        "interval": 0,
                        "interval_unit": "string",
                    },
                }],
                "deprecate_rule": {
                    "count": 0,
                    "interval": 0,
                    "interval_unit": "string",
                },
                "fast_restore_rule": {
                    "availability_zones": ["string"],
                    "count": 0,
                    "interval": 0,
                    "interval_unit": "string",
                },
                "share_rule": {
                    "target_accounts": ["string"],
                    "unshare_interval": 0,
                    "unshare_interval_unit": "string",
                },
                "tags_to_add": {
                    "string": "string",
                },
                "variable_tags": {
                    "string": "string",
                },
            }],
            "target_tags": {
                "string": "string",
            },
        },
        state="string",
        tags={
            "string": "string",
        })
    
    const lifecyclePolicyResource = new aws.dlm.LifecyclePolicy("lifecyclePolicyResource", {
        description: "string",
        executionRoleArn: "string",
        policyDetails: {
            action: {
                crossRegionCopies: [{
                    encryptionConfiguration: {
                        cmkArn: "string",
                        encrypted: false,
                    },
                    target: "string",
                    retainRule: {
                        interval: 0,
                        intervalUnit: "string",
                    },
                }],
                name: "string",
            },
            eventSource: {
                parameters: {
                    descriptionRegex: "string",
                    eventType: "string",
                    snapshotOwners: ["string"],
                },
                type: "string",
            },
            parameters: {
                excludeBootVolume: false,
                noReboot: false,
            },
            policyType: "string",
            resourceLocations: "string",
            resourceTypes: ["string"],
            schedules: [{
                createRule: {
                    cronExpression: "string",
                    interval: 0,
                    intervalUnit: "string",
                    location: "string",
                    times: "string",
                },
                name: "string",
                retainRule: {
                    count: 0,
                    interval: 0,
                    intervalUnit: "string",
                },
                copyTags: false,
                crossRegionCopyRules: [{
                    encrypted: false,
                    target: "string",
                    cmkArn: "string",
                    copyTags: false,
                    deprecateRule: {
                        interval: 0,
                        intervalUnit: "string",
                    },
                    retainRule: {
                        interval: 0,
                        intervalUnit: "string",
                    },
                }],
                deprecateRule: {
                    count: 0,
                    interval: 0,
                    intervalUnit: "string",
                },
                fastRestoreRule: {
                    availabilityZones: ["string"],
                    count: 0,
                    interval: 0,
                    intervalUnit: "string",
                },
                shareRule: {
                    targetAccounts: ["string"],
                    unshareInterval: 0,
                    unshareIntervalUnit: "string",
                },
                tagsToAdd: {
                    string: "string",
                },
                variableTags: {
                    string: "string",
                },
            }],
            targetTags: {
                string: "string",
            },
        },
        state: "string",
        tags: {
            string: "string",
        },
    });
    
    type: aws:dlm:LifecyclePolicy
    properties:
        description: string
        executionRoleArn: string
        policyDetails:
            action:
                crossRegionCopies:
                    - encryptionConfiguration:
                        cmkArn: string
                        encrypted: false
                      retainRule:
                        interval: 0
                        intervalUnit: string
                      target: string
                name: string
            eventSource:
                parameters:
                    descriptionRegex: string
                    eventType: string
                    snapshotOwners:
                        - string
                type: string
            parameters:
                excludeBootVolume: false
                noReboot: false
            policyType: string
            resourceLocations: string
            resourceTypes:
                - string
            schedules:
                - copyTags: false
                  createRule:
                    cronExpression: string
                    interval: 0
                    intervalUnit: string
                    location: string
                    times: string
                  crossRegionCopyRules:
                    - cmkArn: string
                      copyTags: false
                      deprecateRule:
                        interval: 0
                        intervalUnit: string
                      encrypted: false
                      retainRule:
                        interval: 0
                        intervalUnit: string
                      target: string
                  deprecateRule:
                    count: 0
                    interval: 0
                    intervalUnit: string
                  fastRestoreRule:
                    availabilityZones:
                        - string
                    count: 0
                    interval: 0
                    intervalUnit: string
                  name: string
                  retainRule:
                    count: 0
                    interval: 0
                    intervalUnit: string
                  shareRule:
                    targetAccounts:
                        - string
                    unshareInterval: 0
                    unshareIntervalUnit: string
                  tagsToAdd:
                    string: string
                  variableTags:
                    string: string
            targetTags:
                string: string
        state: string
        tags:
            string: string
    

    LifecyclePolicy Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The LifecyclePolicy resource accepts the following input properties:

    Description string
    A description for the DLM lifecycle policy.
    ExecutionRoleArn string
    The ARN of an IAM role that is able to be assumed by the DLM service.
    PolicyDetails LifecyclePolicyPolicyDetails
    See the policy_details configuration block. Max of 1.
    State string
    Whether the lifecycle policy should be enabled or disabled. ENABLED or DISABLED are valid values. Defaults to ENABLED.
    Tags Dictionary<string, string>
    Key-value map of resource tags. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    Description string
    A description for the DLM lifecycle policy.
    ExecutionRoleArn string
    The ARN of an IAM role that is able to be assumed by the DLM service.
    PolicyDetails LifecyclePolicyPolicyDetailsArgs
    See the policy_details configuration block. Max of 1.
    State string
    Whether the lifecycle policy should be enabled or disabled. ENABLED or DISABLED are valid values. Defaults to ENABLED.
    Tags map[string]string
    Key-value map of resource tags. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    description String
    A description for the DLM lifecycle policy.
    executionRoleArn String
    The ARN of an IAM role that is able to be assumed by the DLM service.
    policyDetails LifecyclePolicyPolicyDetails
    See the policy_details configuration block. Max of 1.
    state String
    Whether the lifecycle policy should be enabled or disabled. ENABLED or DISABLED are valid values. Defaults to ENABLED.
    tags Map<String,String>
    Key-value map of resource tags. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    description string
    A description for the DLM lifecycle policy.
    executionRoleArn string
    The ARN of an IAM role that is able to be assumed by the DLM service.
    policyDetails LifecyclePolicyPolicyDetails
    See the policy_details configuration block. Max of 1.
    state string
    Whether the lifecycle policy should be enabled or disabled. ENABLED or DISABLED are valid values. Defaults to ENABLED.
    tags {[key: string]: string}
    Key-value map of resource tags. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    description str
    A description for the DLM lifecycle policy.
    execution_role_arn str
    The ARN of an IAM role that is able to be assumed by the DLM service.
    policy_details LifecyclePolicyPolicyDetailsArgs
    See the policy_details configuration block. Max of 1.
    state str
    Whether the lifecycle policy should be enabled or disabled. ENABLED or DISABLED are valid values. Defaults to ENABLED.
    tags Mapping[str, str]
    Key-value map of resource tags. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    description String
    A description for the DLM lifecycle policy.
    executionRoleArn String
    The ARN of an IAM role that is able to be assumed by the DLM service.
    policyDetails Property Map
    See the policy_details configuration block. Max of 1.
    state String
    Whether the lifecycle policy should be enabled or disabled. ENABLED or DISABLED are valid values. Defaults to ENABLED.
    tags Map<String>
    Key-value map of resource tags. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the LifecyclePolicy resource produces the following output properties:

    Arn string
    Amazon Resource Name (ARN) of the DLM Lifecycle Policy.
    Id string
    The provider-assigned unique ID for this managed resource.
    TagsAll Dictionary<string, string>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.
    Arn string
    Amazon Resource Name (ARN) of the DLM Lifecycle Policy.
    Id string
    The provider-assigned unique ID for this managed resource.
    TagsAll map[string]string
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.
    arn String
    Amazon Resource Name (ARN) of the DLM Lifecycle Policy.
    id String
    The provider-assigned unique ID for this managed resource.
    tagsAll Map<String,String>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.
    arn string
    Amazon Resource Name (ARN) of the DLM Lifecycle Policy.
    id string
    The provider-assigned unique ID for this managed resource.
    tagsAll {[key: string]: string}
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.
    arn str
    Amazon Resource Name (ARN) of the DLM Lifecycle Policy.
    id str
    The provider-assigned unique ID for this managed resource.
    tags_all Mapping[str, str]
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.
    arn String
    Amazon Resource Name (ARN) of the DLM Lifecycle Policy.
    id String
    The provider-assigned unique ID for this managed resource.
    tagsAll Map<String>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Look up Existing LifecyclePolicy Resource

    Get an existing LifecyclePolicy resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: LifecyclePolicyState, opts?: CustomResourceOptions): LifecyclePolicy
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            arn: Optional[str] = None,
            description: Optional[str] = None,
            execution_role_arn: Optional[str] = None,
            policy_details: Optional[LifecyclePolicyPolicyDetailsArgs] = None,
            state: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None,
            tags_all: Optional[Mapping[str, str]] = None) -> LifecyclePolicy
    func GetLifecyclePolicy(ctx *Context, name string, id IDInput, state *LifecyclePolicyState, opts ...ResourceOption) (*LifecyclePolicy, error)
    public static LifecyclePolicy Get(string name, Input<string> id, LifecyclePolicyState? state, CustomResourceOptions? opts = null)
    public static LifecyclePolicy get(String name, Output<String> id, LifecyclePolicyState state, CustomResourceOptions options)
    resources:  _:    type: aws:dlm:LifecyclePolicy    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Arn string
    Amazon Resource Name (ARN) of the DLM Lifecycle Policy.
    Description string
    A description for the DLM lifecycle policy.
    ExecutionRoleArn string
    The ARN of an IAM role that is able to be assumed by the DLM service.
    PolicyDetails LifecyclePolicyPolicyDetails
    See the policy_details configuration block. Max of 1.
    State string
    Whether the lifecycle policy should be enabled or disabled. ENABLED or DISABLED are valid values. Defaults to ENABLED.
    Tags Dictionary<string, string>
    Key-value map of resource tags. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    TagsAll Dictionary<string, string>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.
    Arn string
    Amazon Resource Name (ARN) of the DLM Lifecycle Policy.
    Description string
    A description for the DLM lifecycle policy.
    ExecutionRoleArn string
    The ARN of an IAM role that is able to be assumed by the DLM service.
    PolicyDetails LifecyclePolicyPolicyDetailsArgs
    See the policy_details configuration block. Max of 1.
    State string
    Whether the lifecycle policy should be enabled or disabled. ENABLED or DISABLED are valid values. Defaults to ENABLED.
    Tags map[string]string
    Key-value map of resource tags. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    TagsAll map[string]string
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.
    arn String
    Amazon Resource Name (ARN) of the DLM Lifecycle Policy.
    description String
    A description for the DLM lifecycle policy.
    executionRoleArn String
    The ARN of an IAM role that is able to be assumed by the DLM service.
    policyDetails LifecyclePolicyPolicyDetails
    See the policy_details configuration block. Max of 1.
    state String
    Whether the lifecycle policy should be enabled or disabled. ENABLED or DISABLED are valid values. Defaults to ENABLED.
    tags Map<String,String>
    Key-value map of resource tags. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tagsAll Map<String,String>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.
    arn string
    Amazon Resource Name (ARN) of the DLM Lifecycle Policy.
    description string
    A description for the DLM lifecycle policy.
    executionRoleArn string
    The ARN of an IAM role that is able to be assumed by the DLM service.
    policyDetails LifecyclePolicyPolicyDetails
    See the policy_details configuration block. Max of 1.
    state string
    Whether the lifecycle policy should be enabled or disabled. ENABLED or DISABLED are valid values. Defaults to ENABLED.
    tags {[key: string]: string}
    Key-value map of resource tags. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tagsAll {[key: string]: string}
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.
    arn str
    Amazon Resource Name (ARN) of the DLM Lifecycle Policy.
    description str
    A description for the DLM lifecycle policy.
    execution_role_arn str
    The ARN of an IAM role that is able to be assumed by the DLM service.
    policy_details LifecyclePolicyPolicyDetailsArgs
    See the policy_details configuration block. Max of 1.
    state str
    Whether the lifecycle policy should be enabled or disabled. ENABLED or DISABLED are valid values. Defaults to ENABLED.
    tags Mapping[str, str]
    Key-value map of resource tags. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tags_all Mapping[str, str]
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.
    arn String
    Amazon Resource Name (ARN) of the DLM Lifecycle Policy.
    description String
    A description for the DLM lifecycle policy.
    executionRoleArn String
    The ARN of an IAM role that is able to be assumed by the DLM service.
    policyDetails Property Map
    See the policy_details configuration block. Max of 1.
    state String
    Whether the lifecycle policy should be enabled or disabled. ENABLED or DISABLED are valid values. Defaults to ENABLED.
    tags Map<String>
    Key-value map of resource tags. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tagsAll Map<String>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Supporting Types

    LifecyclePolicyPolicyDetails, LifecyclePolicyPolicyDetailsArgs

    Action LifecyclePolicyPolicyDetailsAction
    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 LifecyclePolicyPolicyDetailsEventSource
    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.
    Parameters LifecyclePolicyPolicyDetailsParameters
    A set of optional parameters for snapshot and AMI lifecycle policies. See the parameters configuration block.
    PolicyType string
    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 string
    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 List<string>
    A list of resource types that should be targeted by the lifecycle policy. Valid values are VOLUME and INSTANCE.
    Schedules List<LifecyclePolicyPolicyDetailsSchedule>
    See the schedule configuration block.
    TargetTags Dictionary<string, string>

    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. This provider is unable to detect this at plan time but it will fail during apply.

    Action LifecyclePolicyPolicyDetailsAction
    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 LifecyclePolicyPolicyDetailsEventSource
    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.
    Parameters LifecyclePolicyPolicyDetailsParameters
    A set of optional parameters for snapshot and AMI lifecycle policies. See the parameters configuration block.
    PolicyType string
    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 string
    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 []string
    A list of resource types that should be targeted by the lifecycle policy. Valid values are VOLUME and INSTANCE.
    Schedules []LifecyclePolicyPolicyDetailsSchedule
    See the schedule configuration block.
    TargetTags map[string]string

    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. This provider is unable to detect this at plan time but it will fail during apply.

    action LifecyclePolicyPolicyDetailsAction
    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 LifecyclePolicyPolicyDetailsEventSource
    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.
    parameters LifecyclePolicyPolicyDetailsParameters
    A set of optional parameters for snapshot and AMI lifecycle policies. See the parameters configuration block.
    policyType String
    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 String
    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 List<String>
    A list of resource types that should be targeted by the lifecycle policy. Valid values are VOLUME and INSTANCE.
    schedules List<LifecyclePolicyPolicyDetailsSchedule>
    See the schedule configuration block.
    targetTags Map<String,String>

    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. This provider is unable to detect this at plan time but it will fail during apply.

    action LifecyclePolicyPolicyDetailsAction
    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 LifecyclePolicyPolicyDetailsEventSource
    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.
    parameters LifecyclePolicyPolicyDetailsParameters
    A set of optional parameters for snapshot and AMI lifecycle policies. See the parameters configuration block.
    policyType string
    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 string
    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 string[]
    A list of resource types that should be targeted by the lifecycle policy. Valid values are VOLUME and INSTANCE.
    schedules LifecyclePolicyPolicyDetailsSchedule[]
    See the schedule configuration block.
    targetTags {[key: string]: string}

    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. This provider is unable to detect this at plan time but it will fail during apply.

    action LifecyclePolicyPolicyDetailsAction
    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.
    event_source LifecyclePolicyPolicyDetailsEventSource
    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.
    parameters LifecyclePolicyPolicyDetailsParameters
    A set of optional parameters for snapshot and AMI lifecycle policies. See the parameters configuration block.
    policy_type str
    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.
    resource_locations str
    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.
    resource_types Sequence[str]
    A list of resource types that should be targeted by the lifecycle policy. Valid values are VOLUME and INSTANCE.
    schedules Sequence[LifecyclePolicyPolicyDetailsSchedule]
    See the schedule configuration block.
    target_tags Mapping[str, str]

    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. This provider is unable to detect this at plan time but it will fail during apply.

    action Property Map
    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 Property Map
    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.
    parameters Property Map
    A set of optional parameters for snapshot and AMI lifecycle policies. See the parameters configuration block.
    policyType String
    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 String
    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 List<String>
    A list of resource types that should be targeted by the lifecycle policy. Valid values are VOLUME and INSTANCE.
    schedules List<Property Map>
    See the schedule configuration block.
    targetTags Map<String>

    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. This provider is unable to detect this at plan time but it will fail during apply.

    LifecyclePolicyPolicyDetailsAction, LifecyclePolicyPolicyDetailsActionArgs

    CrossRegionCopies List<LifecyclePolicyPolicyDetailsActionCrossRegionCopy>
    The rule for copying shared snapshots across Regions. See the cross_region_copy configuration block.
    Name string
    A descriptive name for the action.
    CrossRegionCopies []LifecyclePolicyPolicyDetailsActionCrossRegionCopy
    The rule for copying shared snapshots across Regions. See the cross_region_copy configuration block.
    Name string
    A descriptive name for the action.
    crossRegionCopies List<LifecyclePolicyPolicyDetailsActionCrossRegionCopy>
    The rule for copying shared snapshots across Regions. See the cross_region_copy configuration block.
    name String
    A descriptive name for the action.
    crossRegionCopies LifecyclePolicyPolicyDetailsActionCrossRegionCopy[]
    The rule for copying shared snapshots across Regions. See the cross_region_copy configuration block.
    name string
    A descriptive name for the action.
    cross_region_copies Sequence[LifecyclePolicyPolicyDetailsActionCrossRegionCopy]
    The rule for copying shared snapshots across Regions. See the cross_region_copy configuration block.
    name str
    A descriptive name for the action.
    crossRegionCopies List<Property Map>
    The rule for copying shared snapshots across Regions. See the cross_region_copy configuration block.
    name String
    A descriptive name for the action.

    LifecyclePolicyPolicyDetailsActionCrossRegionCopy, LifecyclePolicyPolicyDetailsActionCrossRegionCopyArgs

    EncryptionConfiguration LifecyclePolicyPolicyDetailsActionCrossRegionCopyEncryptionConfiguration
    The encryption settings for the copied snapshot. See the encryption_configuration block. Max of 1 per action.
    Target string
    The target Region or the Amazon Resource Name (ARN) of the target Outpost for the snapshot copies.
    RetainRule LifecyclePolicyPolicyDetailsActionCrossRegionCopyRetainRule
    Specifies the retention rule for cross-Region snapshot copies. See the retain_rule block. Max of 1 per action.
    EncryptionConfiguration LifecyclePolicyPolicyDetailsActionCrossRegionCopyEncryptionConfiguration
    The encryption settings for the copied snapshot. See the encryption_configuration block. Max of 1 per action.
    Target string
    The target Region or the Amazon Resource Name (ARN) of the target Outpost for the snapshot copies.
    RetainRule LifecyclePolicyPolicyDetailsActionCrossRegionCopyRetainRule
    Specifies the retention rule for cross-Region snapshot copies. See the retain_rule block. Max of 1 per action.
    encryptionConfiguration LifecyclePolicyPolicyDetailsActionCrossRegionCopyEncryptionConfiguration
    The encryption settings for the copied snapshot. See the encryption_configuration block. Max of 1 per action.
    target String
    The target Region or the Amazon Resource Name (ARN) of the target Outpost for the snapshot copies.
    retainRule LifecyclePolicyPolicyDetailsActionCrossRegionCopyRetainRule
    Specifies the retention rule for cross-Region snapshot copies. See the retain_rule block. Max of 1 per action.
    encryptionConfiguration LifecyclePolicyPolicyDetailsActionCrossRegionCopyEncryptionConfiguration
    The encryption settings for the copied snapshot. See the encryption_configuration block. Max of 1 per action.
    target string
    The target Region or the Amazon Resource Name (ARN) of the target Outpost for the snapshot copies.
    retainRule LifecyclePolicyPolicyDetailsActionCrossRegionCopyRetainRule
    Specifies the retention rule for cross-Region snapshot copies. See the retain_rule block. Max of 1 per action.
    encryption_configuration LifecyclePolicyPolicyDetailsActionCrossRegionCopyEncryptionConfiguration
    The encryption settings for the copied snapshot. See the encryption_configuration block. Max of 1 per action.
    target str
    The target Region or the Amazon Resource Name (ARN) of the target Outpost for the snapshot copies.
    retain_rule LifecyclePolicyPolicyDetailsActionCrossRegionCopyRetainRule
    Specifies the retention rule for cross-Region snapshot copies. See the retain_rule block. Max of 1 per action.
    encryptionConfiguration Property Map
    The encryption settings for the copied snapshot. See the encryption_configuration block. Max of 1 per action.
    target String
    The target Region or the Amazon Resource Name (ARN) of the target Outpost for the snapshot copies.
    retainRule Property Map
    Specifies the retention rule for cross-Region snapshot copies. See the retain_rule block. Max of 1 per action.

    LifecyclePolicyPolicyDetailsActionCrossRegionCopyEncryptionConfiguration, LifecyclePolicyPolicyDetailsActionCrossRegionCopyEncryptionConfigurationArgs

    CmkArn string
    The Amazon Resource Name (ARN) of the AWS KMS key to use for EBS encryption. If this parameter is not specified, the default KMS key for the account is used.
    Encrypted bool
    To encrypt a copy of an unencrypted snapshot when encryption by default is not enabled, enable encryption using this parameter. Copies of encrypted snapshots are encrypted, even if this parameter is false or when encryption by default is not enabled.
    CmkArn string
    The Amazon Resource Name (ARN) of the AWS KMS key to use for EBS encryption. If this parameter is not specified, the default KMS key for the account is used.
    Encrypted bool
    To encrypt a copy of an unencrypted snapshot when encryption by default is not enabled, enable encryption using this parameter. Copies of encrypted snapshots are encrypted, even if this parameter is false or when encryption by default is not enabled.
    cmkArn String
    The Amazon Resource Name (ARN) of the AWS KMS key to use for EBS encryption. If this parameter is not specified, the default KMS key for the account is used.
    encrypted Boolean
    To encrypt a copy of an unencrypted snapshot when encryption by default is not enabled, enable encryption using this parameter. Copies of encrypted snapshots are encrypted, even if this parameter is false or when encryption by default is not enabled.
    cmkArn string
    The Amazon Resource Name (ARN) of the AWS KMS key to use for EBS encryption. If this parameter is not specified, the default KMS key for the account is used.
    encrypted boolean
    To encrypt a copy of an unencrypted snapshot when encryption by default is not enabled, enable encryption using this parameter. Copies of encrypted snapshots are encrypted, even if this parameter is false or when encryption by default is not enabled.
    cmk_arn str
    The Amazon Resource Name (ARN) of the AWS KMS key to use for EBS encryption. If this parameter is not specified, the default KMS key for the account is used.
    encrypted bool
    To encrypt a copy of an unencrypted snapshot when encryption by default is not enabled, enable encryption using this parameter. Copies of encrypted snapshots are encrypted, even if this parameter is false or when encryption by default is not enabled.
    cmkArn String
    The Amazon Resource Name (ARN) of the AWS KMS key to use for EBS encryption. If this parameter is not specified, the default KMS key for the account is used.
    encrypted Boolean
    To encrypt a copy of an unencrypted snapshot when encryption by default is not enabled, enable encryption using this parameter. Copies of encrypted snapshots are encrypted, even if this parameter is false or when encryption by default is not enabled.

    LifecyclePolicyPolicyDetailsActionCrossRegionCopyRetainRule, LifecyclePolicyPolicyDetailsActionCrossRegionCopyRetainRuleArgs

    Interval int
    How often this lifecycle policy should be evaluated. 1, 2,3,4,6,8,12 or 24 are valid values.
    IntervalUnit string
    The unit for how often the lifecycle policy should be evaluated. HOURS is currently the only allowed value and also the default value.
    Interval int
    How often this lifecycle policy should be evaluated. 1, 2,3,4,6,8,12 or 24 are valid values.
    IntervalUnit string
    The unit for how often the lifecycle policy should be evaluated. HOURS is currently the only allowed value and also the default value.
    interval Integer
    How often this lifecycle policy should be evaluated. 1, 2,3,4,6,8,12 or 24 are valid values.
    intervalUnit String
    The unit for how often the lifecycle policy should be evaluated. HOURS is currently the only allowed value and also the default value.
    interval number
    How often this lifecycle policy should be evaluated. 1, 2,3,4,6,8,12 or 24 are valid values.
    intervalUnit string
    The unit for how often the lifecycle policy should be evaluated. HOURS is currently the only allowed value and also the default value.
    interval int
    How often this lifecycle policy should be evaluated. 1, 2,3,4,6,8,12 or 24 are valid values.
    interval_unit str
    The unit for how often the lifecycle policy should be evaluated. HOURS is currently the only allowed value and also the default value.
    interval Number
    How often this lifecycle policy should be evaluated. 1, 2,3,4,6,8,12 or 24 are valid values.
    intervalUnit String
    The unit for how often the lifecycle policy should be evaluated. HOURS is currently the only allowed value and also the default value.

    LifecyclePolicyPolicyDetailsEventSource, LifecyclePolicyPolicyDetailsEventSourceArgs

    Parameters LifecyclePolicyPolicyDetailsEventSourceParameters
    A set of optional parameters for snapshot and AMI lifecycle policies. See the parameters configuration block.
    Type string
    The source of the event. Currently only managed CloudWatch Events rules are supported. Valid values are MANAGED_CWE.
    Parameters LifecyclePolicyPolicyDetailsEventSourceParameters
    A set of optional parameters for snapshot and AMI lifecycle policies. See the parameters configuration block.
    Type string
    The source of the event. Currently only managed CloudWatch Events rules are supported. Valid values are MANAGED_CWE.
    parameters LifecyclePolicyPolicyDetailsEventSourceParameters
    A set of optional parameters for snapshot and AMI lifecycle policies. See the parameters configuration block.
    type String
    The source of the event. Currently only managed CloudWatch Events rules are supported. Valid values are MANAGED_CWE.
    parameters LifecyclePolicyPolicyDetailsEventSourceParameters
    A set of optional parameters for snapshot and AMI lifecycle policies. See the parameters configuration block.
    type string
    The source of the event. Currently only managed CloudWatch Events rules are supported. Valid values are MANAGED_CWE.
    parameters LifecyclePolicyPolicyDetailsEventSourceParameters
    A set of optional parameters for snapshot and AMI lifecycle policies. See the parameters configuration block.
    type str
    The source of the event. Currently only managed CloudWatch Events rules are supported. Valid values are MANAGED_CWE.
    parameters Property Map
    A set of optional parameters for snapshot and AMI lifecycle policies. See the parameters configuration block.
    type String
    The source of the event. Currently only managed CloudWatch Events rules are supported. Valid values are MANAGED_CWE.

    LifecyclePolicyPolicyDetailsEventSourceParameters, LifecyclePolicyPolicyDetailsEventSourceParametersArgs

    DescriptionRegex string
    The snapshot description that can trigger the policy. The description pattern is specified using a regular expression. The policy runs only if a snapshot with a description that matches the specified pattern is shared with your account.
    EventType string
    The type of event. Currently, only shareSnapshot events are supported.
    SnapshotOwners List<string>
    The IDs of the AWS accounts that can trigger policy by sharing snapshots with your account. The policy only runs if one of the specified AWS accounts shares a snapshot with your account.
    DescriptionRegex string
    The snapshot description that can trigger the policy. The description pattern is specified using a regular expression. The policy runs only if a snapshot with a description that matches the specified pattern is shared with your account.
    EventType string
    The type of event. Currently, only shareSnapshot events are supported.
    SnapshotOwners []string
    The IDs of the AWS accounts that can trigger policy by sharing snapshots with your account. The policy only runs if one of the specified AWS accounts shares a snapshot with your account.
    descriptionRegex String
    The snapshot description that can trigger the policy. The description pattern is specified using a regular expression. The policy runs only if a snapshot with a description that matches the specified pattern is shared with your account.
    eventType String
    The type of event. Currently, only shareSnapshot events are supported.
    snapshotOwners List<String>
    The IDs of the AWS accounts that can trigger policy by sharing snapshots with your account. The policy only runs if one of the specified AWS accounts shares a snapshot with your account.
    descriptionRegex string
    The snapshot description that can trigger the policy. The description pattern is specified using a regular expression. The policy runs only if a snapshot with a description that matches the specified pattern is shared with your account.
    eventType string
    The type of event. Currently, only shareSnapshot events are supported.
    snapshotOwners string[]
    The IDs of the AWS accounts that can trigger policy by sharing snapshots with your account. The policy only runs if one of the specified AWS accounts shares a snapshot with your account.
    description_regex str
    The snapshot description that can trigger the policy. The description pattern is specified using a regular expression. The policy runs only if a snapshot with a description that matches the specified pattern is shared with your account.
    event_type str
    The type of event. Currently, only shareSnapshot events are supported.
    snapshot_owners Sequence[str]
    The IDs of the AWS accounts that can trigger policy by sharing snapshots with your account. The policy only runs if one of the specified AWS accounts shares a snapshot with your account.
    descriptionRegex String
    The snapshot description that can trigger the policy. The description pattern is specified using a regular expression. The policy runs only if a snapshot with a description that matches the specified pattern is shared with your account.
    eventType String
    The type of event. Currently, only shareSnapshot events are supported.
    snapshotOwners List<String>
    The IDs of the AWS accounts that can trigger policy by sharing snapshots with your account. The policy only runs if one of the specified AWS accounts shares a snapshot with your account.

    LifecyclePolicyPolicyDetailsParameters, LifecyclePolicyPolicyDetailsParametersArgs

    ExcludeBootVolume bool
    Indicates whether to exclude the root volume from snapshots created using CreateSnapshots. The default is false.
    NoReboot bool
    Applies to AMI lifecycle policies only. Indicates whether targeted instances are rebooted when the lifecycle policy runs. true indicates that targeted instances are not rebooted when the policy runs. false indicates that target instances are rebooted when the policy runs. The default is true (instances are not rebooted).
    ExcludeBootVolume bool
    Indicates whether to exclude the root volume from snapshots created using CreateSnapshots. The default is false.
    NoReboot bool
    Applies to AMI lifecycle policies only. Indicates whether targeted instances are rebooted when the lifecycle policy runs. true indicates that targeted instances are not rebooted when the policy runs. false indicates that target instances are rebooted when the policy runs. The default is true (instances are not rebooted).
    excludeBootVolume Boolean
    Indicates whether to exclude the root volume from snapshots created using CreateSnapshots. The default is false.
    noReboot Boolean
    Applies to AMI lifecycle policies only. Indicates whether targeted instances are rebooted when the lifecycle policy runs. true indicates that targeted instances are not rebooted when the policy runs. false indicates that target instances are rebooted when the policy runs. The default is true (instances are not rebooted).
    excludeBootVolume boolean
    Indicates whether to exclude the root volume from snapshots created using CreateSnapshots. The default is false.
    noReboot boolean
    Applies to AMI lifecycle policies only. Indicates whether targeted instances are rebooted when the lifecycle policy runs. true indicates that targeted instances are not rebooted when the policy runs. false indicates that target instances are rebooted when the policy runs. The default is true (instances are not rebooted).
    exclude_boot_volume bool
    Indicates whether to exclude the root volume from snapshots created using CreateSnapshots. The default is false.
    no_reboot bool
    Applies to AMI lifecycle policies only. Indicates whether targeted instances are rebooted when the lifecycle policy runs. true indicates that targeted instances are not rebooted when the policy runs. false indicates that target instances are rebooted when the policy runs. The default is true (instances are not rebooted).
    excludeBootVolume Boolean
    Indicates whether to exclude the root volume from snapshots created using CreateSnapshots. The default is false.
    noReboot Boolean
    Applies to AMI lifecycle policies only. Indicates whether targeted instances are rebooted when the lifecycle policy runs. true indicates that targeted instances are not rebooted when the policy runs. false indicates that target instances are rebooted when the policy runs. The default is true (instances are not rebooted).

    LifecyclePolicyPolicyDetailsSchedule, LifecyclePolicyPolicyDetailsScheduleArgs

    CreateRule LifecyclePolicyPolicyDetailsScheduleCreateRule
    See the create_rule block. Max of 1 per schedule.
    Name string
    A descriptive name for the action.
    RetainRule LifecyclePolicyPolicyDetailsScheduleRetainRule
    Specifies the retention rule for cross-Region snapshot copies. See the retain_rule block. Max of 1 per action.
    CopyTags bool
    Copy all user-defined tags on a source volume to snapshots of the volume created by this policy.
    CrossRegionCopyRules List<LifecyclePolicyPolicyDetailsScheduleCrossRegionCopyRule>
    See the cross_region_copy_rule block. Max of 3 per schedule.
    DeprecateRule LifecyclePolicyPolicyDetailsScheduleDeprecateRule
    See the deprecate_rule block. Max of 1 per schedule.
    FastRestoreRule LifecyclePolicyPolicyDetailsScheduleFastRestoreRule
    See the fast_restore_rule block. Max of 1 per schedule.
    ShareRule LifecyclePolicyPolicyDetailsScheduleShareRule
    See the share_rule block. Max of 1 per schedule.
    TagsToAdd Dictionary<string, string>
    A map of tag keys and their values. DLM lifecycle policies will already tag the snapshot with the tags on the volume. This configuration adds extra tags on top of these.
    VariableTags Dictionary<string, string>
    A map of tag keys and variable values, where the values are determined when the policy is executed. Only $(instance-id) or $(timestamp) are valid values. Can only be used when resource_types is INSTANCE.
    CreateRule LifecyclePolicyPolicyDetailsScheduleCreateRule
    See the create_rule block. Max of 1 per schedule.
    Name string
    A descriptive name for the action.
    RetainRule LifecyclePolicyPolicyDetailsScheduleRetainRule
    Specifies the retention rule for cross-Region snapshot copies. See the retain_rule block. Max of 1 per action.
    CopyTags bool
    Copy all user-defined tags on a source volume to snapshots of the volume created by this policy.
    CrossRegionCopyRules []LifecyclePolicyPolicyDetailsScheduleCrossRegionCopyRule
    See the cross_region_copy_rule block. Max of 3 per schedule.
    DeprecateRule LifecyclePolicyPolicyDetailsScheduleDeprecateRule
    See the deprecate_rule block. Max of 1 per schedule.
    FastRestoreRule LifecyclePolicyPolicyDetailsScheduleFastRestoreRule
    See the fast_restore_rule block. Max of 1 per schedule.
    ShareRule LifecyclePolicyPolicyDetailsScheduleShareRule
    See the share_rule block. Max of 1 per schedule.
    TagsToAdd map[string]string
    A map of tag keys and their values. DLM lifecycle policies will already tag the snapshot with the tags on the volume. This configuration adds extra tags on top of these.
    VariableTags map[string]string
    A map of tag keys and variable values, where the values are determined when the policy is executed. Only $(instance-id) or $(timestamp) are valid values. Can only be used when resource_types is INSTANCE.
    createRule LifecyclePolicyPolicyDetailsScheduleCreateRule
    See the create_rule block. Max of 1 per schedule.
    name String
    A descriptive name for the action.
    retainRule LifecyclePolicyPolicyDetailsScheduleRetainRule
    Specifies the retention rule for cross-Region snapshot copies. See the retain_rule block. Max of 1 per action.
    copyTags Boolean
    Copy all user-defined tags on a source volume to snapshots of the volume created by this policy.
    crossRegionCopyRules List<LifecyclePolicyPolicyDetailsScheduleCrossRegionCopyRule>
    See the cross_region_copy_rule block. Max of 3 per schedule.
    deprecateRule LifecyclePolicyPolicyDetailsScheduleDeprecateRule
    See the deprecate_rule block. Max of 1 per schedule.
    fastRestoreRule LifecyclePolicyPolicyDetailsScheduleFastRestoreRule
    See the fast_restore_rule block. Max of 1 per schedule.
    shareRule LifecyclePolicyPolicyDetailsScheduleShareRule
    See the share_rule block. Max of 1 per schedule.
    tagsToAdd Map<String,String>
    A map of tag keys and their values. DLM lifecycle policies will already tag the snapshot with the tags on the volume. This configuration adds extra tags on top of these.
    variableTags Map<String,String>
    A map of tag keys and variable values, where the values are determined when the policy is executed. Only $(instance-id) or $(timestamp) are valid values. Can only be used when resource_types is INSTANCE.
    createRule LifecyclePolicyPolicyDetailsScheduleCreateRule
    See the create_rule block. Max of 1 per schedule.
    name string
    A descriptive name for the action.
    retainRule LifecyclePolicyPolicyDetailsScheduleRetainRule
    Specifies the retention rule for cross-Region snapshot copies. See the retain_rule block. Max of 1 per action.
    copyTags boolean
    Copy all user-defined tags on a source volume to snapshots of the volume created by this policy.
    crossRegionCopyRules LifecyclePolicyPolicyDetailsScheduleCrossRegionCopyRule[]
    See the cross_region_copy_rule block. Max of 3 per schedule.
    deprecateRule LifecyclePolicyPolicyDetailsScheduleDeprecateRule
    See the deprecate_rule block. Max of 1 per schedule.
    fastRestoreRule LifecyclePolicyPolicyDetailsScheduleFastRestoreRule
    See the fast_restore_rule block. Max of 1 per schedule.
    shareRule LifecyclePolicyPolicyDetailsScheduleShareRule
    See the share_rule block. Max of 1 per schedule.
    tagsToAdd {[key: string]: string}
    A map of tag keys and their values. DLM lifecycle policies will already tag the snapshot with the tags on the volume. This configuration adds extra tags on top of these.
    variableTags {[key: string]: string}
    A map of tag keys and variable values, where the values are determined when the policy is executed. Only $(instance-id) or $(timestamp) are valid values. Can only be used when resource_types is INSTANCE.
    create_rule LifecyclePolicyPolicyDetailsScheduleCreateRule
    See the create_rule block. Max of 1 per schedule.
    name str
    A descriptive name for the action.
    retain_rule LifecyclePolicyPolicyDetailsScheduleRetainRule
    Specifies the retention rule for cross-Region snapshot copies. See the retain_rule block. Max of 1 per action.
    copy_tags bool
    Copy all user-defined tags on a source volume to snapshots of the volume created by this policy.
    cross_region_copy_rules Sequence[LifecyclePolicyPolicyDetailsScheduleCrossRegionCopyRule]
    See the cross_region_copy_rule block. Max of 3 per schedule.
    deprecate_rule LifecyclePolicyPolicyDetailsScheduleDeprecateRule
    See the deprecate_rule block. Max of 1 per schedule.
    fast_restore_rule LifecyclePolicyPolicyDetailsScheduleFastRestoreRule
    See the fast_restore_rule block. Max of 1 per schedule.
    share_rule LifecyclePolicyPolicyDetailsScheduleShareRule
    See the share_rule block. Max of 1 per schedule.
    tags_to_add Mapping[str, str]
    A map of tag keys and their values. DLM lifecycle policies will already tag the snapshot with the tags on the volume. This configuration adds extra tags on top of these.
    variable_tags Mapping[str, str]
    A map of tag keys and variable values, where the values are determined when the policy is executed. Only $(instance-id) or $(timestamp) are valid values. Can only be used when resource_types is INSTANCE.
    createRule Property Map
    See the create_rule block. Max of 1 per schedule.
    name String
    A descriptive name for the action.
    retainRule Property Map
    Specifies the retention rule for cross-Region snapshot copies. See the retain_rule block. Max of 1 per action.
    copyTags Boolean
    Copy all user-defined tags on a source volume to snapshots of the volume created by this policy.
    crossRegionCopyRules List<Property Map>
    See the cross_region_copy_rule block. Max of 3 per schedule.
    deprecateRule Property Map
    See the deprecate_rule block. Max of 1 per schedule.
    fastRestoreRule Property Map
    See the fast_restore_rule block. Max of 1 per schedule.
    shareRule Property Map
    See the share_rule block. Max of 1 per schedule.
    tagsToAdd Map<String>
    A map of tag keys and their values. DLM lifecycle policies will already tag the snapshot with the tags on the volume. This configuration adds extra tags on top of these.
    variableTags Map<String>
    A map of tag keys and variable values, where the values are determined when the policy is executed. Only $(instance-id) or $(timestamp) are valid values. Can only be used when resource_types is INSTANCE.

    LifecyclePolicyPolicyDetailsScheduleCreateRule, LifecyclePolicyPolicyDetailsScheduleCreateRuleArgs

    CronExpression string
    The schedule, as a Cron expression. The schedule interval must be between 1 hour and 1 year.
    Interval int
    How often this lifecycle policy should be evaluated. 1, 2,3,4,6,8,12 or 24 are valid values.
    IntervalUnit string
    The unit for how often the lifecycle policy should be evaluated. HOURS is currently the only allowed value and also the default value.
    Location string
    Specifies the destination for snapshots created by the policy. To create snapshots in the same Region as the source resource, specify CLOUD. To create snapshots on the same Outpost as the source resource, specify OUTPOST_LOCAL. If you omit this parameter, CLOUD is used by default. If the policy targets resources in an AWS Region, then you must create snapshots in the same Region as the source resource. If the policy targets resources on an Outpost, then you can create snapshots on the same Outpost as the source resource, or in the Region of that Outpost. Valid values are CLOUD and OUTPOST_LOCAL.
    Times string
    A list of times in 24 hour clock format that sets when the lifecycle policy should be evaluated. Max of 1.
    CronExpression string
    The schedule, as a Cron expression. The schedule interval must be between 1 hour and 1 year.
    Interval int
    How often this lifecycle policy should be evaluated. 1, 2,3,4,6,8,12 or 24 are valid values.
    IntervalUnit string
    The unit for how often the lifecycle policy should be evaluated. HOURS is currently the only allowed value and also the default value.
    Location string
    Specifies the destination for snapshots created by the policy. To create snapshots in the same Region as the source resource, specify CLOUD. To create snapshots on the same Outpost as the source resource, specify OUTPOST_LOCAL. If you omit this parameter, CLOUD is used by default. If the policy targets resources in an AWS Region, then you must create snapshots in the same Region as the source resource. If the policy targets resources on an Outpost, then you can create snapshots on the same Outpost as the source resource, or in the Region of that Outpost. Valid values are CLOUD and OUTPOST_LOCAL.
    Times string
    A list of times in 24 hour clock format that sets when the lifecycle policy should be evaluated. Max of 1.
    cronExpression String
    The schedule, as a Cron expression. The schedule interval must be between 1 hour and 1 year.
    interval Integer
    How often this lifecycle policy should be evaluated. 1, 2,3,4,6,8,12 or 24 are valid values.
    intervalUnit String
    The unit for how often the lifecycle policy should be evaluated. HOURS is currently the only allowed value and also the default value.
    location String
    Specifies the destination for snapshots created by the policy. To create snapshots in the same Region as the source resource, specify CLOUD. To create snapshots on the same Outpost as the source resource, specify OUTPOST_LOCAL. If you omit this parameter, CLOUD is used by default. If the policy targets resources in an AWS Region, then you must create snapshots in the same Region as the source resource. If the policy targets resources on an Outpost, then you can create snapshots on the same Outpost as the source resource, or in the Region of that Outpost. Valid values are CLOUD and OUTPOST_LOCAL.
    times String
    A list of times in 24 hour clock format that sets when the lifecycle policy should be evaluated. Max of 1.
    cronExpression string
    The schedule, as a Cron expression. The schedule interval must be between 1 hour and 1 year.
    interval number
    How often this lifecycle policy should be evaluated. 1, 2,3,4,6,8,12 or 24 are valid values.
    intervalUnit string
    The unit for how often the lifecycle policy should be evaluated. HOURS is currently the only allowed value and also the default value.
    location string
    Specifies the destination for snapshots created by the policy. To create snapshots in the same Region as the source resource, specify CLOUD. To create snapshots on the same Outpost as the source resource, specify OUTPOST_LOCAL. If you omit this parameter, CLOUD is used by default. If the policy targets resources in an AWS Region, then you must create snapshots in the same Region as the source resource. If the policy targets resources on an Outpost, then you can create snapshots on the same Outpost as the source resource, or in the Region of that Outpost. Valid values are CLOUD and OUTPOST_LOCAL.
    times string
    A list of times in 24 hour clock format that sets when the lifecycle policy should be evaluated. Max of 1.
    cron_expression str
    The schedule, as a Cron expression. The schedule interval must be between 1 hour and 1 year.
    interval int
    How often this lifecycle policy should be evaluated. 1, 2,3,4,6,8,12 or 24 are valid values.
    interval_unit str
    The unit for how often the lifecycle policy should be evaluated. HOURS is currently the only allowed value and also the default value.
    location str
    Specifies the destination for snapshots created by the policy. To create snapshots in the same Region as the source resource, specify CLOUD. To create snapshots on the same Outpost as the source resource, specify OUTPOST_LOCAL. If you omit this parameter, CLOUD is used by default. If the policy targets resources in an AWS Region, then you must create snapshots in the same Region as the source resource. If the policy targets resources on an Outpost, then you can create snapshots on the same Outpost as the source resource, or in the Region of that Outpost. Valid values are CLOUD and OUTPOST_LOCAL.
    times str
    A list of times in 24 hour clock format that sets when the lifecycle policy should be evaluated. Max of 1.
    cronExpression String
    The schedule, as a Cron expression. The schedule interval must be between 1 hour and 1 year.
    interval Number
    How often this lifecycle policy should be evaluated. 1, 2,3,4,6,8,12 or 24 are valid values.
    intervalUnit String
    The unit for how often the lifecycle policy should be evaluated. HOURS is currently the only allowed value and also the default value.
    location String
    Specifies the destination for snapshots created by the policy. To create snapshots in the same Region as the source resource, specify CLOUD. To create snapshots on the same Outpost as the source resource, specify OUTPOST_LOCAL. If you omit this parameter, CLOUD is used by default. If the policy targets resources in an AWS Region, then you must create snapshots in the same Region as the source resource. If the policy targets resources on an Outpost, then you can create snapshots on the same Outpost as the source resource, or in the Region of that Outpost. Valid values are CLOUD and OUTPOST_LOCAL.
    times String
    A list of times in 24 hour clock format that sets when the lifecycle policy should be evaluated. Max of 1.

    LifecyclePolicyPolicyDetailsScheduleCrossRegionCopyRule, LifecyclePolicyPolicyDetailsScheduleCrossRegionCopyRuleArgs

    Encrypted bool
    To encrypt a copy of an unencrypted snapshot when encryption by default is not enabled, enable encryption using this parameter. Copies of encrypted snapshots are encrypted, even if this parameter is false or when encryption by default is not enabled.
    Target string
    The target Region or the Amazon Resource Name (ARN) of the target Outpost for the snapshot copies.
    CmkArn string
    The Amazon Resource Name (ARN) of the AWS KMS key to use for EBS encryption. If this parameter is not specified, the default KMS key for the account is used.
    CopyTags bool
    Copy all user-defined tags on a source volume to snapshots of the volume created by this policy.
    DeprecateRule LifecyclePolicyPolicyDetailsScheduleCrossRegionCopyRuleDeprecateRule
    See the deprecate_rule block. Max of 1 per schedule.
    RetainRule LifecyclePolicyPolicyDetailsScheduleCrossRegionCopyRuleRetainRule
    Specifies the retention rule for cross-Region snapshot copies. See the retain_rule block. Max of 1 per action.
    Encrypted bool
    To encrypt a copy of an unencrypted snapshot when encryption by default is not enabled, enable encryption using this parameter. Copies of encrypted snapshots are encrypted, even if this parameter is false or when encryption by default is not enabled.
    Target string
    The target Region or the Amazon Resource Name (ARN) of the target Outpost for the snapshot copies.
    CmkArn string
    The Amazon Resource Name (ARN) of the AWS KMS key to use for EBS encryption. If this parameter is not specified, the default KMS key for the account is used.
    CopyTags bool
    Copy all user-defined tags on a source volume to snapshots of the volume created by this policy.
    DeprecateRule LifecyclePolicyPolicyDetailsScheduleCrossRegionCopyRuleDeprecateRule
    See the deprecate_rule block. Max of 1 per schedule.
    RetainRule LifecyclePolicyPolicyDetailsScheduleCrossRegionCopyRuleRetainRule
    Specifies the retention rule for cross-Region snapshot copies. See the retain_rule block. Max of 1 per action.
    encrypted Boolean
    To encrypt a copy of an unencrypted snapshot when encryption by default is not enabled, enable encryption using this parameter. Copies of encrypted snapshots are encrypted, even if this parameter is false or when encryption by default is not enabled.
    target String
    The target Region or the Amazon Resource Name (ARN) of the target Outpost for the snapshot copies.
    cmkArn String
    The Amazon Resource Name (ARN) of the AWS KMS key to use for EBS encryption. If this parameter is not specified, the default KMS key for the account is used.
    copyTags Boolean
    Copy all user-defined tags on a source volume to snapshots of the volume created by this policy.
    deprecateRule LifecyclePolicyPolicyDetailsScheduleCrossRegionCopyRuleDeprecateRule
    See the deprecate_rule block. Max of 1 per schedule.
    retainRule LifecyclePolicyPolicyDetailsScheduleCrossRegionCopyRuleRetainRule
    Specifies the retention rule for cross-Region snapshot copies. See the retain_rule block. Max of 1 per action.
    encrypted boolean
    To encrypt a copy of an unencrypted snapshot when encryption by default is not enabled, enable encryption using this parameter. Copies of encrypted snapshots are encrypted, even if this parameter is false or when encryption by default is not enabled.
    target string
    The target Region or the Amazon Resource Name (ARN) of the target Outpost for the snapshot copies.
    cmkArn string
    The Amazon Resource Name (ARN) of the AWS KMS key to use for EBS encryption. If this parameter is not specified, the default KMS key for the account is used.
    copyTags boolean
    Copy all user-defined tags on a source volume to snapshots of the volume created by this policy.
    deprecateRule LifecyclePolicyPolicyDetailsScheduleCrossRegionCopyRuleDeprecateRule
    See the deprecate_rule block. Max of 1 per schedule.
    retainRule LifecyclePolicyPolicyDetailsScheduleCrossRegionCopyRuleRetainRule
    Specifies the retention rule for cross-Region snapshot copies. See the retain_rule block. Max of 1 per action.
    encrypted bool
    To encrypt a copy of an unencrypted snapshot when encryption by default is not enabled, enable encryption using this parameter. Copies of encrypted snapshots are encrypted, even if this parameter is false or when encryption by default is not enabled.
    target str
    The target Region or the Amazon Resource Name (ARN) of the target Outpost for the snapshot copies.
    cmk_arn str
    The Amazon Resource Name (ARN) of the AWS KMS key to use for EBS encryption. If this parameter is not specified, the default KMS key for the account is used.
    copy_tags bool
    Copy all user-defined tags on a source volume to snapshots of the volume created by this policy.
    deprecate_rule LifecyclePolicyPolicyDetailsScheduleCrossRegionCopyRuleDeprecateRule
    See the deprecate_rule block. Max of 1 per schedule.
    retain_rule LifecyclePolicyPolicyDetailsScheduleCrossRegionCopyRuleRetainRule
    Specifies the retention rule for cross-Region snapshot copies. See the retain_rule block. Max of 1 per action.
    encrypted Boolean
    To encrypt a copy of an unencrypted snapshot when encryption by default is not enabled, enable encryption using this parameter. Copies of encrypted snapshots are encrypted, even if this parameter is false or when encryption by default is not enabled.
    target String
    The target Region or the Amazon Resource Name (ARN) of the target Outpost for the snapshot copies.
    cmkArn String
    The Amazon Resource Name (ARN) of the AWS KMS key to use for EBS encryption. If this parameter is not specified, the default KMS key for the account is used.
    copyTags Boolean
    Copy all user-defined tags on a source volume to snapshots of the volume created by this policy.
    deprecateRule Property Map
    See the deprecate_rule block. Max of 1 per schedule.
    retainRule Property Map
    Specifies the retention rule for cross-Region snapshot copies. See the retain_rule block. Max of 1 per action.

    LifecyclePolicyPolicyDetailsScheduleCrossRegionCopyRuleDeprecateRule, LifecyclePolicyPolicyDetailsScheduleCrossRegionCopyRuleDeprecateRuleArgs

    Interval int
    How often this lifecycle policy should be evaluated. 1, 2,3,4,6,8,12 or 24 are valid values.
    IntervalUnit string
    The unit for how often the lifecycle policy should be evaluated. HOURS is currently the only allowed value and also the default value.
    Interval int
    How often this lifecycle policy should be evaluated. 1, 2,3,4,6,8,12 or 24 are valid values.
    IntervalUnit string
    The unit for how often the lifecycle policy should be evaluated. HOURS is currently the only allowed value and also the default value.
    interval Integer
    How often this lifecycle policy should be evaluated. 1, 2,3,4,6,8,12 or 24 are valid values.
    intervalUnit String
    The unit for how often the lifecycle policy should be evaluated. HOURS is currently the only allowed value and also the default value.
    interval number
    How often this lifecycle policy should be evaluated. 1, 2,3,4,6,8,12 or 24 are valid values.
    intervalUnit string
    The unit for how often the lifecycle policy should be evaluated. HOURS is currently the only allowed value and also the default value.
    interval int
    How often this lifecycle policy should be evaluated. 1, 2,3,4,6,8,12 or 24 are valid values.
    interval_unit str
    The unit for how often the lifecycle policy should be evaluated. HOURS is currently the only allowed value and also the default value.
    interval Number
    How often this lifecycle policy should be evaluated. 1, 2,3,4,6,8,12 or 24 are valid values.
    intervalUnit String
    The unit for how often the lifecycle policy should be evaluated. HOURS is currently the only allowed value and also the default value.

    LifecyclePolicyPolicyDetailsScheduleCrossRegionCopyRuleRetainRule, LifecyclePolicyPolicyDetailsScheduleCrossRegionCopyRuleRetainRuleArgs

    Interval int
    How often this lifecycle policy should be evaluated. 1, 2,3,4,6,8,12 or 24 are valid values.
    IntervalUnit string
    The unit for how often the lifecycle policy should be evaluated. HOURS is currently the only allowed value and also the default value.
    Interval int
    How often this lifecycle policy should be evaluated. 1, 2,3,4,6,8,12 or 24 are valid values.
    IntervalUnit string
    The unit for how often the lifecycle policy should be evaluated. HOURS is currently the only allowed value and also the default value.
    interval Integer
    How often this lifecycle policy should be evaluated. 1, 2,3,4,6,8,12 or 24 are valid values.
    intervalUnit String
    The unit for how often the lifecycle policy should be evaluated. HOURS is currently the only allowed value and also the default value.
    interval number
    How often this lifecycle policy should be evaluated. 1, 2,3,4,6,8,12 or 24 are valid values.
    intervalUnit string
    The unit for how often the lifecycle policy should be evaluated. HOURS is currently the only allowed value and also the default value.
    interval int
    How often this lifecycle policy should be evaluated. 1, 2,3,4,6,8,12 or 24 are valid values.
    interval_unit str
    The unit for how often the lifecycle policy should be evaluated. HOURS is currently the only allowed value and also the default value.
    interval Number
    How often this lifecycle policy should be evaluated. 1, 2,3,4,6,8,12 or 24 are valid values.
    intervalUnit String
    The unit for how often the lifecycle policy should be evaluated. HOURS is currently the only allowed value and also the default value.

    LifecyclePolicyPolicyDetailsScheduleDeprecateRule, LifecyclePolicyPolicyDetailsScheduleDeprecateRuleArgs

    Count int
    Specifies the number of oldest AMIs to deprecate. Must be an integer between 1 and 1000.
    Interval int
    How often this lifecycle policy should be evaluated. 1, 2,3,4,6,8,12 or 24 are valid values.
    IntervalUnit string
    The unit for how often the lifecycle policy should be evaluated. HOURS is currently the only allowed value and also the default value.
    Count int
    Specifies the number of oldest AMIs to deprecate. Must be an integer between 1 and 1000.
    Interval int
    How often this lifecycle policy should be evaluated. 1, 2,3,4,6,8,12 or 24 are valid values.
    IntervalUnit string
    The unit for how often the lifecycle policy should be evaluated. HOURS is currently the only allowed value and also the default value.
    count Integer
    Specifies the number of oldest AMIs to deprecate. Must be an integer between 1 and 1000.
    interval Integer
    How often this lifecycle policy should be evaluated. 1, 2,3,4,6,8,12 or 24 are valid values.
    intervalUnit String
    The unit for how often the lifecycle policy should be evaluated. HOURS is currently the only allowed value and also the default value.
    count number
    Specifies the number of oldest AMIs to deprecate. Must be an integer between 1 and 1000.
    interval number
    How often this lifecycle policy should be evaluated. 1, 2,3,4,6,8,12 or 24 are valid values.
    intervalUnit string
    The unit for how often the lifecycle policy should be evaluated. HOURS is currently the only allowed value and also the default value.
    count int
    Specifies the number of oldest AMIs to deprecate. Must be an integer between 1 and 1000.
    interval int
    How often this lifecycle policy should be evaluated. 1, 2,3,4,6,8,12 or 24 are valid values.
    interval_unit str
    The unit for how often the lifecycle policy should be evaluated. HOURS is currently the only allowed value and also the default value.
    count Number
    Specifies the number of oldest AMIs to deprecate. Must be an integer between 1 and 1000.
    interval Number
    How often this lifecycle policy should be evaluated. 1, 2,3,4,6,8,12 or 24 are valid values.
    intervalUnit String
    The unit for how often the lifecycle policy should be evaluated. HOURS is currently the only allowed value and also the default value.

    LifecyclePolicyPolicyDetailsScheduleFastRestoreRule, LifecyclePolicyPolicyDetailsScheduleFastRestoreRuleArgs

    AvailabilityZones List<string>
    The Availability Zones in which to enable fast snapshot restore.
    Count int
    Specifies the number of oldest AMIs to deprecate. Must be an integer between 1 and 1000.
    Interval int
    How often this lifecycle policy should be evaluated. 1, 2,3,4,6,8,12 or 24 are valid values.
    IntervalUnit string
    The unit for how often the lifecycle policy should be evaluated. HOURS is currently the only allowed value and also the default value.
    AvailabilityZones []string
    The Availability Zones in which to enable fast snapshot restore.
    Count int
    Specifies the number of oldest AMIs to deprecate. Must be an integer between 1 and 1000.
    Interval int
    How often this lifecycle policy should be evaluated. 1, 2,3,4,6,8,12 or 24 are valid values.
    IntervalUnit string
    The unit for how often the lifecycle policy should be evaluated. HOURS is currently the only allowed value and also the default value.
    availabilityZones List<String>
    The Availability Zones in which to enable fast snapshot restore.
    count Integer
    Specifies the number of oldest AMIs to deprecate. Must be an integer between 1 and 1000.
    interval Integer
    How often this lifecycle policy should be evaluated. 1, 2,3,4,6,8,12 or 24 are valid values.
    intervalUnit String
    The unit for how often the lifecycle policy should be evaluated. HOURS is currently the only allowed value and also the default value.
    availabilityZones string[]
    The Availability Zones in which to enable fast snapshot restore.
    count number
    Specifies the number of oldest AMIs to deprecate. Must be an integer between 1 and 1000.
    interval number
    How often this lifecycle policy should be evaluated. 1, 2,3,4,6,8,12 or 24 are valid values.
    intervalUnit string
    The unit for how often the lifecycle policy should be evaluated. HOURS is currently the only allowed value and also the default value.
    availability_zones Sequence[str]
    The Availability Zones in which to enable fast snapshot restore.
    count int
    Specifies the number of oldest AMIs to deprecate. Must be an integer between 1 and 1000.
    interval int
    How often this lifecycle policy should be evaluated. 1, 2,3,4,6,8,12 or 24 are valid values.
    interval_unit str
    The unit for how often the lifecycle policy should be evaluated. HOURS is currently the only allowed value and also the default value.
    availabilityZones List<String>
    The Availability Zones in which to enable fast snapshot restore.
    count Number
    Specifies the number of oldest AMIs to deprecate. Must be an integer between 1 and 1000.
    interval Number
    How often this lifecycle policy should be evaluated. 1, 2,3,4,6,8,12 or 24 are valid values.
    intervalUnit String
    The unit for how often the lifecycle policy should be evaluated. HOURS is currently the only allowed value and also the default value.

    LifecyclePolicyPolicyDetailsScheduleRetainRule, LifecyclePolicyPolicyDetailsScheduleRetainRuleArgs

    Count int
    Specifies the number of oldest AMIs to deprecate. Must be an integer between 1 and 1000.
    Interval int
    How often this lifecycle policy should be evaluated. 1, 2,3,4,6,8,12 or 24 are valid values.
    IntervalUnit string
    The unit for how often the lifecycle policy should be evaluated. HOURS is currently the only allowed value and also the default value.
    Count int
    Specifies the number of oldest AMIs to deprecate. Must be an integer between 1 and 1000.
    Interval int
    How often this lifecycle policy should be evaluated. 1, 2,3,4,6,8,12 or 24 are valid values.
    IntervalUnit string
    The unit for how often the lifecycle policy should be evaluated. HOURS is currently the only allowed value and also the default value.
    count Integer
    Specifies the number of oldest AMIs to deprecate. Must be an integer between 1 and 1000.
    interval Integer
    How often this lifecycle policy should be evaluated. 1, 2,3,4,6,8,12 or 24 are valid values.
    intervalUnit String
    The unit for how often the lifecycle policy should be evaluated. HOURS is currently the only allowed value and also the default value.
    count number
    Specifies the number of oldest AMIs to deprecate. Must be an integer between 1 and 1000.
    interval number
    How often this lifecycle policy should be evaluated. 1, 2,3,4,6,8,12 or 24 are valid values.
    intervalUnit string
    The unit for how often the lifecycle policy should be evaluated. HOURS is currently the only allowed value and also the default value.
    count int
    Specifies the number of oldest AMIs to deprecate. Must be an integer between 1 and 1000.
    interval int
    How often this lifecycle policy should be evaluated. 1, 2,3,4,6,8,12 or 24 are valid values.
    interval_unit str
    The unit for how often the lifecycle policy should be evaluated. HOURS is currently the only allowed value and also the default value.
    count Number
    Specifies the number of oldest AMIs to deprecate. Must be an integer between 1 and 1000.
    interval Number
    How often this lifecycle policy should be evaluated. 1, 2,3,4,6,8,12 or 24 are valid values.
    intervalUnit String
    The unit for how often the lifecycle policy should be evaluated. HOURS is currently the only allowed value and also the default value.

    LifecyclePolicyPolicyDetailsScheduleShareRule, LifecyclePolicyPolicyDetailsScheduleShareRuleArgs

    TargetAccounts List<string>
    The IDs of the AWS accounts with which to share the snapshots.
    UnshareInterval int
    UnshareIntervalUnit string
    TargetAccounts []string
    The IDs of the AWS accounts with which to share the snapshots.
    UnshareInterval int
    UnshareIntervalUnit string
    targetAccounts List<String>
    The IDs of the AWS accounts with which to share the snapshots.
    unshareInterval Integer
    unshareIntervalUnit String
    targetAccounts string[]
    The IDs of the AWS accounts with which to share the snapshots.
    unshareInterval number
    unshareIntervalUnit string
    target_accounts Sequence[str]
    The IDs of the AWS accounts with which to share the snapshots.
    unshare_interval int
    unshare_interval_unit str
    targetAccounts List<String>
    The IDs of the AWS accounts with which to share the snapshots.
    unshareInterval Number
    unshareIntervalUnit String

    Import

    DLM lifecycle policies can be imported by their policy ID

     $ pulumi import aws:dlm/lifecyclePolicy:LifecyclePolicy example policy-abcdef12345678901
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    AWS Classic pulumi/pulumi-aws
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aws Terraform Provider.
    aws logo
    Viewing docs for AWS v5.43.0 (Older version)
    published on Tuesday, Mar 10, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.