# Amazon Data Lifecycle Manager Construct Library

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

TypeScript:

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

Python:

```python
import aws_cdk.aws_dlm as dlm
```

Java:

```java
import software.amazon.awscdk.services.dlm.*;
```

C#:

```csharp
using Amazon.CDK.AWS.DLM;
```

Go:

```go
import dlm "github.com/aws/aws-cdk-go/awscdk"
```

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

### Constructs (L1)

- [`CfnLifecyclePolicy`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_dlm.CfnLifecyclePolicy.html) Construct (L1) Specifies a lifecycle policy, which is used to automate operations on Amazon EBS resources.

### Structs

- [`CfnLifecyclePolicy.ActionProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_dlm.CfnLifecyclePolicy.ActionProperty.html) Struct *[Event-based policies only]* Specifies an action for an event-based policy.
- [`CfnLifecyclePolicy.ArchiveRetainRuleProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_dlm.CfnLifecyclePolicy.ArchiveRetainRuleProperty.html) Struct *[Custom snapshot policies only]* Specifies information about the archive storage tier retention period.
- [`CfnLifecyclePolicy.ArchiveRuleProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_dlm.CfnLifecyclePolicy.ArchiveRuleProperty.html) Struct *[Custom snapshot policies only]* Specifies a snapshot archiving rule for a schedule.
- [`CfnLifecyclePolicy.CreateRuleProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_dlm.CfnLifecyclePolicy.CreateRuleProperty.html) Struct *[Custom snapshot and AMI policies only]* Specifies when the policy should create snapshots or AMIs.
- [`CfnLifecyclePolicy.CrossRegionCopyActionProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_dlm.CfnLifecyclePolicy.CrossRegionCopyActionProperty.html) Struct *[Event-based policies only]* Specifies a cross-Region copy action for event-based policies.
- [`CfnLifecyclePolicy.CrossRegionCopyDeprecateRuleProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_dlm.CfnLifecyclePolicy.CrossRegionCopyDeprecateRuleProperty.html) Struct *[Custom AMI policies only]* Specifies an AMI deprecation rule for cross-Region AMI copies created by an AMI policy.
- [`CfnLifecyclePolicy.CrossRegionCopyRetainRuleProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_dlm.CfnLifecyclePolicy.CrossRegionCopyRetainRuleProperty.html) 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`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_dlm.CfnLifecyclePolicy.CrossRegionCopyRuleProperty.html) Struct *[Custom snapshot and AMI policies only]* Specifies a cross-Region copy rule for a snapshot and AMI policies.
- [`CfnLifecyclePolicy.CrossRegionCopyTargetProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_dlm.CfnLifecyclePolicy.CrossRegionCopyTargetProperty.html) Struct
- [`CfnLifecyclePolicy.DeprecateRuleProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_dlm.CfnLifecyclePolicy.DeprecateRuleProperty.html) Struct *[Custom AMI policies only]* Specifies an AMI deprecation rule for AMIs created by an AMI lifecycle policy.
- [`CfnLifecyclePolicy.EncryptionConfigurationProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_dlm.CfnLifecyclePolicy.EncryptionConfigurationProperty.html) Struct *[Event-based policies only]* Specifies the encryption settings for cross-Region snapshot copies created by event-based policies.
- [`CfnLifecyclePolicy.EventParametersProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_dlm.CfnLifecyclePolicy.EventParametersProperty.html) Struct *[Event-based policies only]* Specifies an event that activates an event-based policy.
- [`CfnLifecyclePolicy.EventSourceProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_dlm.CfnLifecyclePolicy.EventSourceProperty.html) Struct *[Event-based policies only]* Specifies an event that activates an event-based policy.
- [`CfnLifecyclePolicy.ExclusionsProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_dlm.CfnLifecyclePolicy.ExclusionsProperty.html) Struct *[Default policies only]* Specifies exclusion parameters for volumes or instances for which you do not want to create snapshots or AMIs.
- [`CfnLifecyclePolicy.FastRestoreRuleProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_dlm.CfnLifecyclePolicy.FastRestoreRuleProperty.html) Struct *[Custom snapshot policies only]* Specifies a rule for enabling fast snapshot restore for snapshots created by snapshot policies.
- [`CfnLifecyclePolicy.ParametersProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_dlm.CfnLifecyclePolicy.ParametersProperty.html) Struct *[Custom snapshot and AMI policies only]* Specifies optional parameters for snapshot and AMI policies.
- [`CfnLifecyclePolicy.PolicyDetailsProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_dlm.CfnLifecyclePolicy.PolicyDetailsProperty.html) Struct Specifies the configuration of a lifecycle policy.
- [`CfnLifecyclePolicy.RetainRuleProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_dlm.CfnLifecyclePolicy.RetainRuleProperty.html) 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`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_dlm.CfnLifecyclePolicy.RetentionArchiveTierProperty.html) Struct *[Custom snapshot policies only]* Describes the retention rule for archived snapshots.
- [`CfnLifecyclePolicy.ScheduleProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_dlm.CfnLifecyclePolicy.ScheduleProperty.html) Struct *[Custom snapshot and AMI policies only]* Specifies a schedule for a snapshot or AMI lifecycle policy.
- [`CfnLifecyclePolicy.ScriptProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_dlm.CfnLifecyclePolicy.ScriptProperty.html) 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`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_dlm.CfnLifecyclePolicy.ShareRuleProperty.html) Struct *[Custom snapshot policies only]* Specifies a rule for sharing snapshots across AWS accounts .
- [`CfnLifecyclePolicyProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_dlm.CfnLifecyclePolicyProps.html) Struct Properties for defining a `CfnLifecyclePolicy`.
