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 on which the attribute will be reset.

Type: xsd:string

Yes

launchPermission

Resets the AMI's launch permissions. All public and explicit launch permissions for the AMI are revoked.

Type: ec2:EmptyElementType

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

<ResetImageAttribute xmlns="http://ec2.amazonaws.com/doc/2007-08-29">
  <imageId>ami-61a54008</imageId>
  <launchPermission />
</ResetImageAttribute>
<ResetImageAttributeResponse xmlns="http://ec2.amazonaws.com/doc/2007-08-29">
  <return>true</return>
</ResetImageAttributeResponse>