Aws/dlm
@swamp/aws/dlmv2026.10.13.1
01README
AWS DLM infrastructure models
02Release Notes
- Updated: lifecycle_policy
03Behaviors
@swamp/aws/dlm/lifecycle-policyv2026.10.13.1lifecycle_policy.ts
Global Arguments
| Argument | Type | Description |
|---|---|---|
| name | string | Instance name for this resource (used as the unique identifier in the factory pattern) |
| accessKeyId? | string | AWS access key ID; overrides AWS_ACCESS_KEY_ID environment variable. Wire with a vault.get(...) expression to source it from a vault. |
| secretAccessKey? | string | AWS secret access key; overrides AWS_SECRET_ACCESS_KEY environment variable. Wire with a vault.get(...) expression to source it from a vault. |
| sessionToken? | string | AWS session token for temporary credentials; overrides AWS_SESSION_TOKEN environment variable. Wire with a vault.get(...) expression to source it from a vault. |
| region? | string | AWS region; overrides AWS_REGION / AWS_DEFAULT_REGION environment variables and ~/.aws/config profile region. Defaults to us-east-1. |
| CreateInterval? | number | **[Default policies only]** Specifies how often the policy should run and create snapshots or AMIs. The creation frequency can range from 1 to 7 days. |
| Description? | string | A description of the lifecycle policy. The characters ^[0-9A-Za-z _-]+$ are supported. |
| ExtendDeletion? | boolean | **[Default policies only]** Defines the snapshot or AMI retention behavior for the policy if the source volume or instance is deleted, or if the policy enters the error, disabled, or deleted state. |
| Exclusions? | object | **[Default policies only]** Specifies exclusion parameters for volumes or instances for which you do not want to create snapshots or AMIs. The policy will not create snapshots or AMIs for target resources that match any of the specified exclusion parameters. |
| RetainInterval? | number | **[Default policies only]** Specifies how long the policy should retain snapshots or AMIs before deleting them. The retention period can range from 2 to 14 days, but it must be greater than the creation frequency to ensure that the policy retains at least 1 snapshot or AMI at any given time. |
| ExecutionRoleArn? | string | The Amazon Resource Name (ARN) of the IAM role used to run the operations specified by the lifecycle policy. |
| DefaultPolicy? | string | **[Default policies only]** Specify the type of default policy to create. |
| State? | string | The activation state of the lifecycle policy. |
| CrossRegionCopyTargets? | array | **[Default policies only]** Specifies destination Regions for snapshot or AMI copies. You can specify up to 3 destination Regions. If you do not want to create cross-Region copies, omit this parameter. |
| PolicyDetails? | object | The configuration details of the lifecycle policy. |
| Tags? | array | The tags to apply to the lifecycle policy during creation. |
| CopyTags? | boolean | **[Default policies only]** Indicates whether the policy should copy tags from the source resource to the snapshot or AMI. If you do not specify a value, the default is false. |
fn create()
Create a DLM LifecyclePolicy
fn get(identifier: string)
Get a DLM LifecyclePolicy
| Argument | Type | Description |
|---|---|---|
| identifier | string | The primary identifier of the DLM LifecyclePolicy |
fn update()
Update a DLM LifecyclePolicy
fn delete(identifier: string)
Delete a DLM LifecyclePolicy
| Argument | Type | Description |
|---|---|---|
| identifier | string | The primary identifier of the DLM LifecyclePolicy |
fn sync()
Sync DLM LifecyclePolicy state from AWS
fn list(maxPages?: number, resourceModel?: string)
List DLM LifecyclePolicy resources
| Argument | Type | Description |
|---|---|---|
| maxPages? | number | Maximum number of pages to fetch (default: 10) |
| resourceModel? | string | JSON resource model for parent-scoped listing (e.g. parent identifier) |
Resources
state(infinite)— DLM LifecyclePolicy resource state
04Previous Versions
2026.10.08.1
2026.10.06.1
2026.10.04.1
2026.10.03.1
2026.10.02.1
2026.10.01.1
2026.09.30.1
2026.09.29.1
2026.09.28.1
2026.09.27.1
2026.09.26.1
2026.09.25.1
2026.09.24.1
2026.09.23.1
2026.09.22.1
2026.09.21.1
2026.09.20.1
2026.09.19.1
2026.09.18.1
05Stats
A
93 / 100
Downloads
23
Archive size
219.9 KB
Verified by Swamp
- Has README or module doc2/2earned
- README has a code example1/1earned
- README is substantive1/1earned
- Most symbols documented1/1earned
- No slow types (deprecated)1/1earned
- Dependencies pass trust audit2/2earned
- Has description1/1earned
- Platform support declared (or universal)2/2earned
- License1/2partial
no SPDX license declared
- Verified public repository2/2earned
06Platforms
07Labels