Skip to content

Get Rule

recyclebin_get_rule R Documentation

Gets information about a Recycle Bin retention rule

Description

Gets information about a Recycle Bin retention rule.

Usage

recyclebin_get_rule(Identifier)

Arguments

Identifier

[required] The unique ID of the retention rule.

Value

A list with the following syntax:

list(
  Identifier = "string",
  Description = "string",
  ResourceType = "EBS_SNAPSHOT"|"EC2_IMAGE",
  RetentionPeriod = list(
    RetentionPeriodValue = 123,
    RetentionPeriodUnit = "DAYS"
  ),
  ResourceTags = list(
    list(
      ResourceTagKey = "string",
      ResourceTagValue = "string"
    )
  ),
  Status = "pending"|"available",
  LockConfiguration = list(
    UnlockDelay = list(
      UnlockDelayValue = 123,
      UnlockDelayUnit = "DAYS"
    )
  ),
  LockState = "locked"|"pending_unlock"|"unlocked",
  LockEndTime = as.POSIXct(
    "2015-01-01"
  ),
  RuleArn = "string"
)

Request syntax

svc$get_rule(
  Identifier = "string"
)