Enables deregistration protection for an AMI¶
Description¶
Enables deregistration protection for an AMI. When deregistration protection is enabled, the AMI can't be deregistered.
To allow the AMI to be deregistered, you must first disable deregistration protection.
For more information, see Protect an Amazon EC2 AMI from deregistration in the Amazon EC2 User Guide.
Usage¶
Arguments¶
-
ImageId[required] The ID of the AMI.
-
WithCooldownIf
true, enforces deregistration protection for 24 hours after deregistration protection is disabled. -
DryRunChecks 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.
Value¶
A list with the following syntax: