Skip to contents

Deregisters the specified AMI. A deregistered AMI can't be used to launch new instances.

See https://www.paws-r-sdk.com/docs/ec2_deregister_image/ for full documentation.

Usage

ec2_deregister_image(ImageId, DeleteAssociatedSnapshots = NULL, DryRun = NULL)

Arguments

ImageId

[required] The ID of the AMI.

DeleteAssociatedSnapshots

Specifies whether to delete the snapshots associated with the AMI during deregistration.

If a snapshot is associated with multiple AMIs, it is not deleted, regardless of this setting.

Default: The snapshots are not deleted.

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.