Copyright | (c) 2013-2016 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 |
Network.AWS.EC2.DescribeInstanceAttribute
Description
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
- 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]
- drsEnaSupport :: Lens' DescribeInstanceAttributeResponse (Maybe AttributeBooleanValue)
- drsSourceDestCheck :: Lens' DescribeInstanceAttributeResponse (Maybe AttributeBooleanValue)
- drsDisableAPITermination :: Lens' DescribeInstanceAttributeResponse (Maybe AttributeBooleanValue)
- drsRAMDiskId :: Lens' DescribeInstanceAttributeResponse (Maybe AttributeValue)
- drsKernelId :: Lens' DescribeInstanceAttributeResponse (Maybe AttributeValue)
- drsRootDeviceName :: Lens' DescribeInstanceAttributeResponse (Maybe AttributeValue)
- drsInstanceType :: Lens' DescribeInstanceAttributeResponse (Maybe AttributeValue)
- drsSRIOVNetSupport :: Lens' DescribeInstanceAttributeResponse (Maybe AttributeValue)
- drsEBSOptimized :: Lens' DescribeInstanceAttributeResponse (Maybe AttributeBooleanValue)
- drsUserData :: Lens' DescribeInstanceAttributeResponse (Maybe AttributeValue)
- drsInstanceInitiatedShutdownBehavior :: Lens' DescribeInstanceAttributeResponse (Maybe AttributeValue)
- drsProductCodes :: Lens' DescribeInstanceAttributeResponse [ProductCode]
- drsBlockDeviceMappings :: Lens' DescribeInstanceAttributeResponse [InstanceBlockDeviceMapping]
- drsResponseStatus :: Lens' DescribeInstanceAttributeResponse Int
Creating a Request
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:
diaDryRun
- 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 isDryRunOperation
. Otherwise, it isUnauthorizedOperation
.diaInstanceId
- The ID of the instance.diaAttribute
- The instance attribute. Note: TheenaSupport
attribute is not supported at this time.
data DescribeInstanceAttribute #
Contains the parameters for DescribeInstanceAttribute.
See: describeInstanceAttribute
smart constructor.
Instances
Request Lenses
diaDryRun :: Lens' DescribeInstanceAttribute (Maybe Bool) #
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 #
The ID of the instance.
diaAttribute :: Lens' DescribeInstanceAttribute InstanceAttributeName #
The instance attribute. Note: The enaSupport
attribute is not supported at this time.
Destructuring the Response
describeInstanceAttributeResponse #
Arguments
:: Int | |
-> DescribeInstanceAttributeResponse |
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:
drsInstanceId
- The ID of the instance.drsGroups
- The security groups associated with the instance.drsEnaSupport
- Indicates whether enhanced networking with ENA is enabled.drsSourceDestCheck
- Indicates whether source/destination checking is enabled. A value oftrue
means checking is enabled, andfalse
means checking is disabled. This value must befalse
for a NAT instance to perform NAT.drsDisableAPITermination
- If the value istrue
, you can't terminate the instance through the Amazon EC2 console, CLI, or API; otherwise, you can.drsRAMDiskId
- The RAM disk ID.drsKernelId
- The kernel ID.drsRootDeviceName
- The name of the root device (for example,devsda1
ordevxvda
).drsInstanceType
- The instance type.drsSRIOVNetSupport
- Indicates whether enhanced networking with the Intel 82599 Virtual Function interface is enabled.drsEBSOptimized
- Indicates whether the instance is optimized for EBS I/O.drsUserData
- The user data.drsInstanceInitiatedShutdownBehavior
- Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).drsProductCodes
- A list of product codes.drsBlockDeviceMappings
- The block device mapping of the instance.drsResponseStatus
- -- | The response status code.
data DescribeInstanceAttributeResponse #
Describes an instance attribute.
See: describeInstanceAttributeResponse
smart constructor.
Instances
Response Lenses
drsInstanceId :: Lens' DescribeInstanceAttributeResponse (Maybe Text) #
The ID of the instance.
drsGroups :: Lens' DescribeInstanceAttributeResponse [GroupIdentifier] #
The security groups associated with the instance.
drsEnaSupport :: Lens' DescribeInstanceAttributeResponse (Maybe AttributeBooleanValue) #
Indicates whether enhanced networking with ENA is enabled.
drsSourceDestCheck :: Lens' DescribeInstanceAttributeResponse (Maybe AttributeBooleanValue) #
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) #
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) #
The RAM disk ID.
drsKernelId :: Lens' DescribeInstanceAttributeResponse (Maybe AttributeValue) #
The kernel ID.
drsRootDeviceName :: Lens' DescribeInstanceAttributeResponse (Maybe AttributeValue) #
The name of the root device (for example, devsda1
or devxvda
).
drsInstanceType :: Lens' DescribeInstanceAttributeResponse (Maybe AttributeValue) #
The instance type.
drsSRIOVNetSupport :: Lens' DescribeInstanceAttributeResponse (Maybe AttributeValue) #
Indicates whether enhanced networking with the Intel 82599 Virtual Function interface is enabled.
drsEBSOptimized :: Lens' DescribeInstanceAttributeResponse (Maybe AttributeBooleanValue) #
Indicates whether the instance is optimized for EBS I/O.
drsUserData :: Lens' DescribeInstanceAttributeResponse (Maybe AttributeValue) #
The user data.
drsInstanceInitiatedShutdownBehavior :: Lens' DescribeInstanceAttributeResponse (Maybe AttributeValue) #
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] #
A list of product codes.
drsBlockDeviceMappings :: Lens' DescribeInstanceAttributeResponse [InstanceBlockDeviceMapping] #
The block device mapping of the instance.
drsResponseStatus :: Lens' DescribeInstanceAttributeResponse Int #
- - | The response status code.