Learn R Programming

paws.compute (version 0.7.0)

ec2_enable_image_deregistration_protection: Enables deregistration protection for an AMI

Description

Enables deregistration protection for an AMI. When deregistration protection is enabled, the AMI can't be deregistered.

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

Usage

ec2_enable_image_deregistration_protection(
  ImageId,
  WithCooldown = NULL,
  DryRun = NULL
)

Arguments

ImageId

[required] The ID of the AMI.

WithCooldown

If true, enforces deregistration protection for 24 hours after deregistration protection is disabled.

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.