# Amazon Data Lifecycle Manager Construct Library

This module is part of the [AWS Cloud Development Kit](https://github.com/aws/aws-cdk) project.

```ts
import * as dlm from 'aws-cdk-lib/aws-dlm';
```

There are no official hand-written ([L2](https://docs.aws.amazon.com/cdk/latest/guide/constructs.html#constructs_lib)) constructs for this service yet. Here are some suggestions on how to proceed:

- Search [Construct Hub for DLM construct libraries](https://constructs.dev/search?q=dlm)
- Use the automatically generated [L1](https://docs.aws.amazon.com/cdk/latest/guide/constructs.html#constructs_l1_using) constructs, in the same way you would use [the CloudFormation AWS::DLM resources](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/AWS_DLM.html) directly.

There are no hand-written ([L2](https://docs.aws.amazon.com/cdk/latest/guide/constructs.html#constructs_lib)) constructs for this service yet.
However, you can still use the automatically generated [L1](https://docs.aws.amazon.com/cdk/latest/guide/constructs.html#constructs_l1_using) constructs, and use this service exactly as you would using CloudFormation directly.

For more information on the resources and properties available for this service, see the [CloudFormation documentation for AWS::DLM](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/AWS_DLM.html).

(Read the [CDK Contributing Guide](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and submit an RFC if you are interested in contributing to this construct library.)

## Types

| Name | Kind | Summary |
| --- | --- | --- |
| [`CfnLifecyclePolicy`](/v2/docs/aws-cdk-lib.aws_dlm.CfnLifecyclePolicy) | Construct (L1) | Specifies a lifecycle policy, which is used to automate operations on Amazon EBS resources. |
| [`CfnLifecyclePolicy.ActionProperty`](/v2/docs/aws-cdk-lib.aws_dlm.CfnLifecyclePolicy.ActionProperty) | Struct | *[Event-based policies only]* Specifies an action for an event-based policy. |
| [`CfnLifecyclePolicy.ArchiveRetainRuleProperty`](/v2/docs/aws-cdk-lib.aws_dlm.CfnLifecyclePolicy.ArchiveRetainRuleProperty) | Struct | *[Custom snapshot policies only]* Specifies information about the archive storage tier retention period. |
| [`CfnLifecyclePolicy.ArchiveRuleProperty`](/v2/docs/aws-cdk-lib.aws_dlm.CfnLifecyclePolicy.ArchiveRuleProperty) | Struct | *[Custom snapshot policies only]* Specifies a snapshot archiving rule for a schedule. |
| [`CfnLifecyclePolicy.CreateRuleProperty`](/v2/docs/aws-cdk-lib.aws_dlm.CfnLifecyclePolicy.CreateRuleProperty) | Struct | *[Custom snapshot and AMI policies only]* Specifies when the policy should create snapshots or AMIs. |
| [`CfnLifecyclePolicy.CrossRegionCopyActionProperty`](/v2/docs/aws-cdk-lib.aws_dlm.CfnLifecyclePolicy.CrossRegionCopyActionProperty) | Struct | *[Event-based policies only]* Specifies a cross-Region copy action for event-based policies. |
| [`CfnLifecyclePolicy.CrossRegionCopyDeprecateRuleProperty`](/v2/docs/aws-cdk-lib.aws_dlm.CfnLifecyclePolicy.CrossRegionCopyDeprecateRuleProperty) | Struct | *[Custom AMI policies only]* Specifies an AMI deprecation rule for cross-Region AMI copies created by an AMI policy. |
| [`CfnLifecyclePolicy.CrossRegionCopyRetainRuleProperty`](/v2/docs/aws-cdk-lib.aws_dlm.CfnLifecyclePolicy.CrossRegionCopyRetainRuleProperty) | Struct | Specifies a retention rule for cross-Region snapshot copies created by snapshot or event-based policies, or cross-Region AMI copies created by AMI policies. |
| [`CfnLifecyclePolicy.CrossRegionCopyRuleProperty`](/v2/docs/aws-cdk-lib.aws_dlm.CfnLifecyclePolicy.CrossRegionCopyRuleProperty) | Struct | *[Custom snapshot and AMI policies only]* Specifies a cross-Region copy rule for a snapshot and AMI policies. |
| [`CfnLifecyclePolicy.CrossRegionCopyTargetProperty`](/v2/docs/aws-cdk-lib.aws_dlm.CfnLifecyclePolicy.CrossRegionCopyTargetProperty) | Struct |  |
| [`CfnLifecyclePolicy.DeprecateRuleProperty`](/v2/docs/aws-cdk-lib.aws_dlm.CfnLifecyclePolicy.DeprecateRuleProperty) | Struct | *[Custom AMI policies only]* Specifies an AMI deprecation rule for AMIs created by an AMI lifecycle policy. |
| [`CfnLifecyclePolicy.EncryptionConfigurationProperty`](/v2/docs/aws-cdk-lib.aws_dlm.CfnLifecyclePolicy.EncryptionConfigurationProperty) | Struct | *[Event-based policies only]* Specifies the encryption settings for cross-Region snapshot copies created by event-based policies. |
| [`CfnLifecyclePolicy.EventParametersProperty`](/v2/docs/aws-cdk-lib.aws_dlm.CfnLifecyclePolicy.EventParametersProperty) | Struct | *[Event-based policies only]* Specifies an event that activates an event-based policy. |
| [`CfnLifecyclePolicy.EventSourceProperty`](/v2/docs/aws-cdk-lib.aws_dlm.CfnLifecyclePolicy.EventSourceProperty) | Struct | *[Event-based policies only]* Specifies an event that activates an event-based policy. |
| [`CfnLifecyclePolicy.ExclusionsProperty`](/v2/docs/aws-cdk-lib.aws_dlm.CfnLifecyclePolicy.ExclusionsProperty) | Struct | *[Default policies only]* Specifies exclusion parameters for volumes or instances for which you do not want to create snapshots or AMIs. |
| [`CfnLifecyclePolicy.FastRestoreRuleProperty`](/v2/docs/aws-cdk-lib.aws_dlm.CfnLifecyclePolicy.FastRestoreRuleProperty) | Struct | *[Custom snapshot policies only]* Specifies a rule for enabling fast snapshot restore for snapshots created by snapshot policies. |
| [`CfnLifecyclePolicy.ParametersProperty`](/v2/docs/aws-cdk-lib.aws_dlm.CfnLifecyclePolicy.ParametersProperty) | Struct | *[Custom snapshot and AMI policies only]* Specifies optional parameters for snapshot and AMI policies. |
| [`CfnLifecyclePolicy.PolicyDetailsProperty`](/v2/docs/aws-cdk-lib.aws_dlm.CfnLifecyclePolicy.PolicyDetailsProperty) | Struct | Specifies the configuration of a lifecycle policy. |
| [`CfnLifecyclePolicy.RetainRuleProperty`](/v2/docs/aws-cdk-lib.aws_dlm.CfnLifecyclePolicy.RetainRuleProperty) | Struct | *[Custom snapshot and AMI policies only]* Specifies a retention rule for snapshots created by snapshot policies, or for AMIs created by AMI policies. |
| [`CfnLifecyclePolicy.RetentionArchiveTierProperty`](/v2/docs/aws-cdk-lib.aws_dlm.CfnLifecyclePolicy.RetentionArchiveTierProperty) | Struct | *[Custom snapshot policies only]* Describes the retention rule for archived snapshots. |
| [`CfnLifecyclePolicy.ScheduleProperty`](/v2/docs/aws-cdk-lib.aws_dlm.CfnLifecyclePolicy.ScheduleProperty) | Struct | *[Custom snapshot and AMI policies only]* Specifies a schedule for a snapshot or AMI lifecycle policy. |
| [`CfnLifecyclePolicy.ScriptProperty`](/v2/docs/aws-cdk-lib.aws_dlm.CfnLifecyclePolicy.ScriptProperty) | Struct | *[Custom snapshot policies that target instances only]* Information about pre and/or post scripts for a snapshot lifecycle policy that targets instances. |
| [`CfnLifecyclePolicy.ShareRuleProperty`](/v2/docs/aws-cdk-lib.aws_dlm.CfnLifecyclePolicy.ShareRuleProperty) | Struct | *[Custom snapshot policies only]* Specifies a rule for sharing snapshots across AWS accounts . |
| [`CfnLifecyclePolicyProps`](/v2/docs/aws-cdk-lib.aws_dlm.CfnLifecyclePolicyProps) | Struct | Properties for defining a `CfnLifecyclePolicy`. |
