Enable Image Deregistration Protection
ec2_enable_image_deregistration_protection | R Documentation |
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 using
disable_image_deregistration_protection
.
For more information, see Protect an AMI from deregistration in the Amazon EC2 User Guide.
Usage¶
ec2_enable_image_deregistration_protection(ImageId, WithCooldown,
DryRun)
Arguments¶
ImageId |
[required] The ID of the AMI. |
WithCooldown |
If |
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
|
Value¶
A list with the following syntax:
list(
Return = "string"
)
Request syntax¶
svc$enable_image_deregistration_protection(
ImageId = "string",
WithCooldown = TRUE|FALSE,
DryRun = TRUE|FALSE
)