ResetImageAttribute
Description
Resets an attribute of an AMI to its default value.
Note | |
---|---|
The productCodes attribute cannot be reset. |
Request Parameters
Name | Description | Required |
---|---|---|
|
Type: |
Ancestor: None
Children: imageId
imageId
ID of the AMI on which the attribute will be reset.
Type: xsd:string
Default: None
Ancestor: ResetImageAttribute
Children: None
Yes
Response Elements
Name | Description |
---|---|
|
Type: ResetImageAttributeResponse Ancestor: None Children: |
|
The ID of the request. Type: xsd:string Ancestor: Children: None |
|
Unique ID of the newly registered machine image. Type: xsd:string Ancestor: Children: None |
Examples
Example Request
This example resets the launchPermission
attribute.
<ResetImageAttribute xmlns="http://ec2.amazonaws.com/doc/2009-04-04/"> <imageId>ami-6ba54002</imageId> <launchPermission/> </ResetImageAttribute>
Example Response
<ResetImageAttributeResponse xmlns="http://ec2.amazonaws.com/doc/2009-04-04/"> <return>true</return> </ResetImageAttributeResponse>