ModifyImageAttribute
The ModifyImageAttribute
operation modifies an
attribute of an AMI.
The following table describes the request parameters for
ModifyImageAttribute
. Parameter names are case
sensitive.
Name | Description | Required |
---|---|---|
|
AMI ID to modify. Type: xsd:string |
Yes |
|
Adds or removes launch permissions for the AMI. Type: LaunchPermissionOperationType[] |
Choice |
|
Attaches a product code to the AMI, allowing developers to charge for the use of their AMIs. Currently only one product code can be associated with an AMI. Once set, the product code cannot be changed or reset. Type: ProductCodeItemType[] |
Choice |
The following table describes the default response tags included
in ModifyImageAttribute
responses.
Name | Description |
---|---|
|
Type: xsd:boolean |
<ModifyImageAttribute xmlns="http://ec2.amazonaws.com/doc/2008-02-01"> <imageId>ami-61a54008</imageId> <launchPermission> <add> <item> <group>all</group> </item> <item> <userId>495219933132</userId> </item> </add> <launchPermission> </ModifyImageAttribute>
<ModifyImageAttribute xmlns="http://ec2.amazonaws.com/doc/2008-02-01"> <imageId>ami-61a54008</imageId> <productCodes> <item> <productCode>774F4FF8</productCode> </item> <productCodes> </ModifyImageAttribute>
<ModifyImageAttributeResponse xmlns="http://ec2.amazonaws.com/doc/2008-02-01"> <return>true</return> </ModifyImageAttributeResponse>