Learn R Programming

paws.storage (version 0.1.7)

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, Tags)

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.

Tags

The tags to apply to the lifecycle policy during creation.

Request syntax

svc$create_lifecycle_policy(
  ExecutionRoleArn = "string",
  Description = "string",
  State = "ENABLED"|"DISABLED",
  PolicyDetails = list(
    PolicyType = "EBS_SNAPSHOT_MANAGEMENT",
    ResourceTypes = list(
      "VOLUME"|"INSTANCE"
    ),
    TargetTags = list(
      list(
        Key = "string",
        Value = "string"
      )
    ),
    Schedules = list(
      list(
        Name = "string",
        CopyTags = TRUE|FALSE,
        TagsToAdd = list(
          list(
            Key = "string",
            Value = "string"
          )
        ),
        VariableTags = list(
          list(
            Key = "string",
            Value = "string"
          )
        ),
        CreateRule = list(
          Interval = 123,
          IntervalUnit = "HOURS",
          Times = list(
            "string"
          )
        ),
        RetainRule = list(
          Count = 123,
          Interval = 123,
          IntervalUnit = "DAYS"|"WEEKS"|"MONTHS"|"YEARS"
        ),
        FastRestoreRule = list(
          Count = 123,
          Interval = 123,
          IntervalUnit = "DAYS"|"WEEKS"|"MONTHS"|"YEARS",
          AvailabilityZones = list(
            "string"
          )
        ),
        CrossRegionCopyRules = list(
          list(
            TargetRegion = "string",
            Encrypted = TRUE|FALSE,
            CmkArn = "string",
            CopyTags = TRUE|FALSE,
            RetainRule = list(
              Interval = 123,
              IntervalUnit = "DAYS"|"WEEKS"|"MONTHS"|"YEARS"
            )
          )
        )
      )
    ),
    Parameters = list(
      ExcludeBootVolume = TRUE|FALSE
    )
  ),
  Tags = list(
    "string"
  )
)