ResetImageAttribute

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

[Note]Note

The productCodes attribute cannot be reset.

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

NameDescriptionRequired

ImageId

ID of the AMI for which an attribute will be described.

Type: String

Yes

Attribute

Specifies the attribute to reset. Currently, only launchPermission is supported. In the case of launchPermission, all public and explicit launch permissions for the AMI are revoked.

Type: String

Yes

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

NameDescription

return

true if the operation succeeded, otherwise false.

Type: xsd:boolean

https://ec2.amazonaws.com/
?Action=ResetImageAttribute
&ImageId=ami-61a54008
&Attribute=launchPermission
&...auth parameters...
<ResetImageAttributeResponse xmlns="http://ec2.amazonaws.com/doc/2008-02-01">
  <return>true</return>
</ResetImageAttributeResponse>