Skip to content

Cancel Image Launch Permission

ec2_cancel_image_launch_permission R Documentation

Removes your Amazon Web Services account from the launch permissions for the specified AMI

Description

Removes your Amazon Web Services account from the launch permissions for the specified AMI. For more information, see Cancel having an AMI shared with your Amazon Web Services account in the Amazon EC2 User Guide.

Usage

ec2_cancel_image_launch_permission(ImageId, DryRun)

Arguments

ImageId

[required] The ID of the AMI that was shared with your Amazon Web Services account.

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$cancel_image_launch_permission(
  ImageId = "string",
  DryRun = TRUE|FALSE
)