ResetImageAttribute
The ResetImageAttribute
operation resets an attribute
of an AMI to its default value.
Note | |
---|---|
The productCodes attribute cannot be reset. |
Request Parameters
The following table describes the request parameters for
ResetImageAttribute
. Parameter names are case
sensitive.
Name | Description | Required |
---|---|---|
|
ID of the AMI on which the attribute will be reset. Type: xsd:string |
Yes |
|
Resets the AMI's launch permissions. All public and explicit launch permissions for the AMI are revoked. Type: EmptyElementType |
Yes |
Response Elements
The following table describes the default response tags included
in ResetImageAttribute
responses.
Name | Description |
---|---|
|
Type: xsd:boolean |
Sample Request
<ResetImageAttribute xmlns="http://ec2.amazonaws.com/doc/2009-03-01/"> <imageId>ami-61a54008</imageId> <launchPermission /> </ResetImageAttribute>
Sample Response
<ResetImageAttributeResponse xmlns="http://ec2.amazonaws.com/doc/2009-03-01/"> <return>true</return> </ResetImageAttributeResponse>