Enables deregistration protection for an AMI
Source:R/ec2_operations.R
ec2_enable_image_deregistration_protection.RdEnables 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.
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 isUnauthorizedOperation.