paws.storage (version 0.1.0)

dlm_update_lifecycle_policy: Updates the specified lifecycle policy

Description

Updates the specified lifecycle policy.

Usage

dlm_update_lifecycle_policy(PolicyId, ExecutionRoleArn, State,
  Description, PolicyDetails)

Arguments

PolicyId

[required] The identifier of the lifecycle policy.

ExecutionRoleArn

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

State

The desired activation state of the lifecycle policy after creation.

Description

A description of the lifecycle policy.

PolicyDetails

The configuration of the lifecycle policy.

Target tags cannot be re-used across policies.

Request syntax

svc$update_lifecycle_policy(
  PolicyId = "string",
  ExecutionRoleArn = "string",
  State = "ENABLED"|"DISABLED",
  Description = "string",
  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
        )
      )
    )
  )
)