amazonka-ec2-1.3.0: Amazon Elastic Compute Cloud SDK.

Copyright(c) 2013-2015 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <>
Portabilitynon-portable (GHC extensions)
Safe HaskellNone




Describes the specified attribute of the specified AMI. You can specify only one attribute at a time.

See: AWS API Reference for DescribeImageAttribute.


Creating a Request

describeImageAttribute Source

Creates a value of DescribeImageAttribute with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Request Lenses

diaiDryRun :: Lens' DescribeImageAttribute (Maybe Bool) Source

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

diaiAttribute :: Lens' DescribeImageAttribute ImageAttributeName Source

The AMI attribute.

Note: Depending on your account privileges, the blockDeviceMapping attribute may return a AuthFailure error. If this happens, use DescribeImages to get information about the block device mapping for the AMI.

Destructuring the Response

Response Lenses