/AWS1/CL_EC2=>ENABLEIMAGEDEREGPROTECTION()
¶
About EnableImageDeregistrationProtection¶
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 using DisableImageDeregistrationProtection.
For more information, see Protect an AMI from deregistration in the Amazon EC2 User Guide.
Method Signature¶
IMPORTING¶
Required arguments:¶
IV_IMAGEID
TYPE /AWS1/EC2IMAGEID
/AWS1/EC2IMAGEID
¶
The ID of the AMI.
Optional arguments:¶
IV_WITHCOOLDOWN
TYPE /AWS1/EC2BOOLEAN
/AWS1/EC2BOOLEAN
¶
If
true
, enforces deregistration protection for 24 hours after deregistration protection is disabled.
IV_DRYRUN
TYPE /AWS1/EC2BOOLEAN
/AWS1/EC2BOOLEAN
¶
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
.