ResetImageAttribute

The ResetImageAttribute operation resets an attribute of an AMI to its default value.

The productCodes attribute cannot be reset.

The following table describes the request parameters for ResetImageAttribute. Parameter names are case sensitive.

Element NameDefinitionRequired?Type
imageId ID of the AMI on which the attribute will be reset. Yesxsd:string
launchPermissionResets the AMI's launch permissions. All public and explicit launch permissions for the AMI are revoked.Yesec2:EmptyElementType

The following table describes the default response tags included in ResetImageAttribute responses.

Element NameDefinitionType
return true if the operation succeeded, otherwise false. xsd:boolean
<ResetImageAttribute xmlns="http://ec2.amazonaws.com/doc/2007-03-01">
  <imageId>ami-61a54008</imageId>
  <launchPermission />
</ResetImageAttribute>
<ResetImageAttributeResponse xmlns="http://ec2.amazonaws.com/doc/2007-03-01">
  <return>true</return>
</ResetImageAttributeResponse>