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
, ResetImageAttributesGroup
imageId
ID of the AMI on which the attribute will be reset.
Type: xsd:string
Default: None
Ancestor: ResetImageAttributeType
Children: None
Yes
ResetImageAttributesGroup
The reset image attibute group.
Type: ResetImageAttributesGroup
Ancestor: ResetImageAttributeType
Children: launchPermission
launchPermission
Resets the launch permission attribute.
Type: EmptyElementType
Ancestor: ResetImageAttributesGroup
Children: none
none
These element contains no options.
Type: xsd:string
Default: None
Ancestor: launchPermission
Children: None
No
Response Elements
Name | Description |
---|---|
|
Type: ResetImageAttributeResponseType Ancestor: None Children: |
|
The ID of the request. Type: xsd:string Ancestor: Children: None |
|
Indicates whether the attribute successfully reset. Type: xsd:boolean Ancestor: Children: None |
Examples
Example Request
This example resets the launchPermission
attribute.
<ResetImageAttribute xmlns="http://ec2.amazonaws.com/doc/2009-08-15/"> <imageId>ami-6ba54002</imageId> <launchPermission/> </ResetImageAttribute>
Example Response
<ResetImageAttributeResponse xmlns="http://ec2.amazonaws.com/doc/2009-08-15/"> <return>true</return> </ResetImageAttributeResponse>