Skip to content

Lists one or more AMIs that are currently in the Recycle Bin

Description

Lists one or more AMIs that are currently in the Recycle Bin. For more information, see Recycle Bin in the Amazon EC2 User Guide.

Usage

ec2_list_images_in_recycle_bin(ImageIds, NextToken, MaxResults, DryRun)

Arguments

  • ImageIds

    The IDs of the AMIs to list. Omit this parameter to list all of the AMIs that are in the Recycle Bin. You can specify up to 20 IDs in a single request.

  • NextToken

    The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request.

  • MaxResults

    The maximum number of items to return for this request. To get the next page of items, make another request with the token returned in the output. For more information, see Pagination.

  • 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(
  Images = list(
    list(
      ImageId = "string",
      Name = "string",
      Description = "string",
      RecycleBinEnterTime = as.POSIXct(
        "2015-01-01"
      ),
      RecycleBinExitTime = as.POSIXct(
        "2015-01-01"
      )
    )
  ),
  NextToken = "string"
)

Request syntax

svc$list_images_in_recycle_bin(
  ImageIds = list(
    "string"
  ),
  NextToken = "string",
  MaxResults = 123,
  DryRun = TRUE|FALSE
)