Copyright | (c) 2013-2015 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
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.
- describeInstanceAttribute :: Text -> InstanceAttributeName -> DescribeInstanceAttribute
- data DescribeInstanceAttribute
- diaDryRun :: Lens' DescribeInstanceAttribute (Maybe Bool)
- diaInstanceId :: Lens' DescribeInstanceAttribute Text
- diaAttribute :: Lens' DescribeInstanceAttribute InstanceAttributeName
- describeInstanceAttributeResponse :: Int -> DescribeInstanceAttributeResponse
- data DescribeInstanceAttributeResponse
- drsInstanceId :: Lens' DescribeInstanceAttributeResponse (Maybe Text)
- drsGroups :: Lens' DescribeInstanceAttributeResponse [GroupIdentifier]
- drsSourceDestCheck :: Lens' DescribeInstanceAttributeResponse (Maybe AttributeBooleanValue)
- drsDisableAPITermination :: Lens' DescribeInstanceAttributeResponse (Maybe AttributeBooleanValue)
- drsRAMDiskId :: Lens' DescribeInstanceAttributeResponse (Maybe AttributeValue)
- drsKernelId :: Lens' DescribeInstanceAttributeResponse (Maybe AttributeValue)
- drsInstanceType :: Lens' DescribeInstanceAttributeResponse (Maybe AttributeValue)
- drsRootDeviceName :: Lens' DescribeInstanceAttributeResponse (Maybe AttributeValue)
- drsEBSOptimized :: Lens' DescribeInstanceAttributeResponse (Maybe AttributeBooleanValue)
- drsUserData :: Lens' DescribeInstanceAttributeResponse (Maybe AttributeValue)
- drsSRIOVNetSupport :: Lens' DescribeInstanceAttributeResponse (Maybe AttributeValue)
- drsInstanceInitiatedShutdownBehavior :: Lens' DescribeInstanceAttributeResponse (Maybe AttributeValue)
- drsProductCodes :: Lens' DescribeInstanceAttributeResponse [ProductCode]
- drsBlockDeviceMappings :: Lens' DescribeInstanceAttributeResponse [InstanceBlockDeviceMapping]
- drsStatus :: Lens' DescribeInstanceAttributeResponse Int
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:
data DescribeInstanceAttribute Source
See: describeInstanceAttribute
smart constructor.
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
.
diaInstanceId :: Lens' DescribeInstanceAttribute Text Source
The ID of the instance.
diaAttribute :: Lens' DescribeInstanceAttribute InstanceAttributeName Source
The instance attribute.
Destructuring the Response
describeInstanceAttributeResponse Source
Creates a value of DescribeInstanceAttributeResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data DescribeInstanceAttributeResponse Source
Describes an instance attribute.
See: describeInstanceAttributeResponse
smart constructor.
Response Lenses
drsInstanceId :: Lens' DescribeInstanceAttributeResponse (Maybe Text) Source
The ID of the instance.
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.
drsRAMDiskId :: Lens' DescribeInstanceAttributeResponse (Maybe AttributeValue) Source
The RAM disk ID.
drsKernelId :: Lens' DescribeInstanceAttributeResponse (Maybe AttributeValue) Source
The kernel ID.
drsInstanceType :: Lens' DescribeInstanceAttributeResponse (Maybe AttributeValue) Source
The instance type.
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.
drsUserData :: Lens' DescribeInstanceAttributeResponse (Maybe AttributeValue) Source
The Base64-encoded MIME user data.
drsSRIOVNetSupport :: Lens' DescribeInstanceAttributeResponse (Maybe AttributeValue) Source
Undocumented member.
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).
drsProductCodes :: Lens' DescribeInstanceAttributeResponse [ProductCode] Source
A list of product codes.
drsBlockDeviceMappings :: Lens' DescribeInstanceAttributeResponse [InstanceBlockDeviceMapping] Source
The block device mapping of the instance.
drsStatus :: Lens' DescribeInstanceAttributeResponse Int Source
The response status code.