paws.storage (version 0.1.0)

dlm_create_lifecycle_policy: Creates a policy to manage the lifecycle of the specified AWS resources

Description

Creates a policy to manage the lifecycle of the specified AWS resources. You can create up to 100 lifecycle policies.

Usage

dlm_create_lifecycle_policy(ExecutionRoleArn, Description, State,
  PolicyDetails)

Arguments

ExecutionRoleArn

[required] The Amazon Resource Name (ARN) of the IAM role used to run the operations specified by the lifecycle policy.

Description

[required] A description of the lifecycle policy. The characters \^[0-9A-Za-z \_-]+\$ are supported.

State

[required] The desired activation state of the lifecycle policy after creation.

PolicyDetails

[required] The configuration details of the lifecycle policy.

Target tags cannot be re-used across lifecycle policies.

Request syntax

svc$create_lifecycle_policy(
  ExecutionRoleArn = "string",
  Description = "string",
  State = "ENABLED"|"DISABLED",
  PolicyDetails = list(
    ResourceTypes = list(
      "VOLUME"
    ),
    TargetTags = list(
      list(
        Key = "string",
        Value = "string"
      )
    ),
    Schedules = list(
      list(
        Name = "string",
        CopyTags = TRUE|FALSE,
        TagsToAdd = list(
          list(
            Key = "string",
            Value = "string"
          )
        ),
        CreateRule = list(
          Interval = 123,
          IntervalUnit = "HOURS",
          Times = list(
            "string"
          )
        ),
        RetainRule = list(
          Count = 123
        )
      )
    )
  )
)