DescribeImageAttribute

The DescribeImageAttribute operation returns information about an attribute of an AMI. Only one attribute can be specified per call.

The following table describes the request parameters for DescribeImageAttribute. Parameter names are case sensitive.

NameDescriptionRequired

imageId

ID of the AMI for which an attribute will be described.

Type: xsd:string

Yes

launchPermission

Describes launch permissions of the AMI.

Type: EmptyElementType

Choice

productCodes

Describes the product code associated with the AMI.

Type: EmptyElementType

Choice

kernel

Describes the ID of the kernel associated with the AMI.

Type: xsd:string

No

ramdisk

Describes the ID of the RAM disk associated with the AMI.

Type: xsd:string

No

blockDeviceMapping

Describes the mapping that defines native device names to use when exposing virtual devices.

Type: xsd:string

No

The following table describes the default response tags included in DescribeImageAttribute responses.

NameDescription

imageId

ID of the AMI of which parameters are described.

Type: xsd:string

launchPermission

Launch permissions of the AMI. Returned if launchPermission is specified.

Type: LaunchPermissionItemType[]

productCodes

Product codes of the AMI. Returned if productCodes is specified.

Type: ProductCodeItemType[]

kernel

ID of the kernel associated with the AMI. Returned if kernel is specified.

Type: xsd:string

ramdisk

ID of the RAM disk associated with the AMI. Returned if ramdisk is specified.

Type: xsd:string

blockDeviceMapping

Mapping that defines native device names to use when exposing virtual devices. Returned if blockDeviceMapping is specified.

Type: BlockDeviceMappingItemType[]

<DescribeImageAttribute xmlns="http://ec2.amazonaws.com/doc/2008-02-01">
  <imageId>ami-61a54008</imageId>
  <launchPermission />
</DescribeImageAttribute>
<DescribeImageAttributeResponse 
xmlns="http://ec2.amazonaws.com/doc/2008-02-01">
  <imageId>ami-61a54008</imageId>
  <launchPermission>
    <item>
      <group>all</group>
    </item>
    <item>
      <userId>495219933132</userId>
    </item>
  </launchPermission>
</DescribeImageAttributeResponse>
<DescribeImageAttribute xmlns="http://ec2.amazonaws.com/doc/2008-02-01">
  <imageId>ami-61a54008</imageId>
  <productCodes />
</DescribeImageAttribute>
<DescribeImageAttributeResponse 
xmlns="http://ec2.amazonaws.com/doc/2008-02-01">
  <imageId>ami-61a54008</imageId>
  <productCodes>
    <item>
      <productCode>774F4FF8</productCode>
    </item>
  </productCodes>
</DescribeImageAttributeResponse>