Skip to content

Restore Image from Recycle Bin

ec2_restore_image_from_recycle_bin R Documentation

Restores an AMI from the Recycle Bin

Description

Restores an AMI from the Recycle Bin. For more information, see Recycle Bin in the Amazon EC2 User Guide.

Usage

ec2_restore_image_from_recycle_bin(ImageId, DryRun)

Arguments

ImageId

[required] The ID of the AMI 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(
  Return = TRUE|FALSE
)

Request syntax

svc$restore_image_from_recycle_bin(
  ImageId = "string",
  DryRun = TRUE|FALSE
)