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.
ec2_enable_image_deregistration_protection(
ImageId,
WithCooldown = NULL,
DryRun = NULL
)
[required] The ID of the AMI.
If true
, enforces deregistration protection for 24 hours after
deregistration protection is disabled.
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
.