aws dlm create-lifecycle-policy
Creates an Amazon Data Lifecycle Manager lifecycle policy. AWS CLI reference
12 options Its page in the AWS CLI reference
Options
--copy-tags[Default policies only] Indicates whether the policy should copy tags from the source resource to the snapshot or AMI.--create-interval[Default policies only] Specifies how often the policy should run and create snapshots or AMIs.--cross-region-copy-targets[Default policies only] Specifies destination Regions for snapshot or AMI copies.--default-policy[Default policies only] Specify the type of default policy to create.--descriptionA description of the lifecycle policy.--exclusions[Default policies only] Specifies exclusion parameters for volumes or instances for which you do not want to create snapshots or AMIs.--execution-role-arnThe Amazon Resource Name (ARN) of the IAM role used to run the operations specified by the lifecycle policy.--extend-deletion[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.--policy-detailsThe configuration details of the lifecycle policy.--retain-interval[Default policies only] Specifies how long the policy should retain snapshots or AMIs before deleting them.--stateThe activation state of the lifecycle policy after creation.--tagsThe tags to apply to the lifecycle policy during creation.