Skip to content

Restore Snapshot From Recycle Bin

ec2_restore_snapshot_from_recycle_bin R Documentation

Restores a snapshot from the Recycle Bin

Description

Restores a snapshot from the Recycle Bin. For more information, see Restore snapshots from the Recycle Bin in the Amazon EBS User Guide.

Usage

ec2_restore_snapshot_from_recycle_bin(SnapshotId, DryRun)

Arguments

SnapshotId

[required] The ID of the snapshot to restore.

DryRun

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

Value

A list with the following syntax:

list(
  SnapshotId = "string",
  OutpostArn = "string",
  Description = "string",
  Encrypted = TRUE|FALSE,
  OwnerId = "string",
  Progress = "string",
  StartTime = as.POSIXct(
    "2015-01-01"
  ),
  State = "pending"|"completed"|"error"|"recoverable"|"recovering",
  VolumeId = "string",
  VolumeSize = 123,
  SseType = "sse-ebs"|"sse-kms"|"none"
)

Request syntax

svc$restore_snapshot_from_recycle_bin(
  SnapshotId = "string",
  DryRun = TRUE|FALSE
)