enableImageDeregistrationProtection
inline suspend fun Ec2Client.enableImageDeregistrationProtection(crossinline block: EnableImageDeregistrationProtectionRequest.Builder.() -> Unit): EnableImageDeregistrationProtectionResponse
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 Amazon EC2 AMI from deregistration in the Amazon EC2 User Guide.