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 Name | Definition | Required? | Type |
|---|---|---|---|
imageId
|
ID of the AMI on which the attribute will be reset. | Yes |
xsd:string
|
launchPermission
|
Resets the AMI's launch permissions. All public and explicit launch permissions for the AMI are revoked. | Yes |
ec2:EmptyElementType
|
The following table describes the default response tags included
in ResetImageAttribute responses.
| Element Name | Definition | Type |
|---|---|---|
return
|
true if the operation succeeded,
otherwise false.
|
xsd:boolean
|
<ResetImageAttribute xmlns="http://ec2.amazonaws.com/doc/2007-01-03"> <imageId>ami-61a54008</imageId> <launchPermission /> </ResetImageAttribute>
<ResetImageAttributeResponse xmlns="http://ec2.amazonaws.com/doc/2007-01-03"> <return>true</return> </ResetImageAttributeResponse>