Learn R Programming

paws.storage (version 0.1.12)

dlm_get_lifecycle_policies: Gets summary information about all or the specified data lifecycle policies

Description

Gets summary information about all or the specified data lifecycle policies.

To get complete information about a policy, use get_lifecycle_policy.

Usage

dlm_get_lifecycle_policies(PolicyIds, State, ResourceTypes, TargetTags,
  TagsToAdd)

Value

A list with the following syntax:

list(
  Policies = list(
    list(
      PolicyId = "string",
      Description = "string",
      State = "ENABLED"|"DISABLED"|"ERROR",
      Tags = list(
        "string"
      ),
      PolicyType = "EBS_SNAPSHOT_MANAGEMENT"|"IMAGE_MANAGEMENT"|"EVENT_BASED_POLICY"
    )
  )
)

Arguments

PolicyIds

The identifiers of the data lifecycle policies.

State

The activation state.

ResourceTypes

The resource type.

TargetTags

The target tag for a policy.

Tags are strings in the format key=value.

TagsToAdd

The tags to add to objects created by the policy.

Tags are strings in the format key=value.

These user-defined tags are added in addition to the AWS-added lifecycle tags.

Request syntax

svc$get_lifecycle_policies(
  PolicyIds = list(
    "string"
  ),
  State = "ENABLED"|"DISABLED"|"ERROR",
  ResourceTypes = list(
    "VOLUME"|"INSTANCE"
  ),
  TargetTags = list(
    "string"
  ),
  TagsToAdd = list(
    "string"
  )
)