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 instance. You can specify only one attribute at a time. Valid attribute values are: instanceType | kernel | ramdisk | userData | disableApiTermination | instanceInitiatedShutdownBehavior | rootDeviceName | blockDeviceMapping | productCodes | sourceDestCheck | groupSet | ebsOptimized | sriovNetSupport

See: AWS API Reference for DescribeInstanceAttribute.


Creating a Request

describeInstanceAttribute Source

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

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

Request Lenses

diaDryRun :: Lens' DescribeInstanceAttribute (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.

Destructuring the Response

Response Lenses

drsGroups :: Lens' DescribeInstanceAttributeResponse [GroupIdentifier] Source

The security groups associated with the instance.

drsSourceDestCheck :: Lens' DescribeInstanceAttributeResponse (Maybe AttributeBooleanValue) Source

Indicates whether source/destination checking is enabled. A value of true means checking is enabled, and false means checking is disabled. This value must be false for a NAT instance to perform NAT.

drsDisableAPITermination :: Lens' DescribeInstanceAttributeResponse (Maybe AttributeBooleanValue) Source

If the value is true, you can't terminate the instance through the Amazon EC2 console, CLI, or API; otherwise, you can.

drsRootDeviceName :: Lens' DescribeInstanceAttributeResponse (Maybe AttributeValue) Source

The name of the root device (for example, '\/dev\/sda1' or '\/dev\/xvda').

drsEBSOptimized :: Lens' DescribeInstanceAttributeResponse (Maybe AttributeBooleanValue) Source

Indicates whether the instance is optimized for EBS I/O.

drsInstanceInitiatedShutdownBehavior :: Lens' DescribeInstanceAttributeResponse (Maybe AttributeValue) Source

Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).