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 for which an attribute will be described. | Yes |
string
|
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.
|
Yes |
string
|
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
|
https://ec2.amazonaws.com/ ?Action=ResetImageAttribute &ImageId=ami-61a54008 &Attribute=launchPermission &...auth parameters...
<ResetImageAttributeResponse xmlns="http://ec2.amazonaws.com/doc/2007-01-03"> <return>true</return> </ResetImageAttributeResponse>