aws ec2 disable-image-deregistration-protection
Disables deregistration protection for an AMI. AWS CLI reference
1 example 2 options Its page in the AWS CLI reference
Examples
To disable deregistration protection
The following disable-image-deregistration-protection example disables deregistration protection for the specified image.
aws ec2 disable-image-deregistration-protection --image-id ami-0b1a928a144a74ec9Identify--image-idThe ID of the AMI.Its output
{
"Return": "disabled"
}For more information, see Protect an AMI from deregistration in the Amazon EC2 User Guide.
Options
--dry-runChecks whether you have the required permissions for the action, without actually making the request, and provides an error response.--image-idThe ID of the AMI.