Copyright | (c) 2013-2018 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@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
- describeInstanceAttribute :: InstanceAttributeName -> Text -> DescribeInstanceAttribute
- data DescribeInstanceAttribute
- diaDryRun :: Lens' DescribeInstanceAttribute (Maybe Bool)
- diaAttribute :: Lens' DescribeInstanceAttribute InstanceAttributeName
- diaInstanceId :: Lens' DescribeInstanceAttribute Text
- describeInstanceAttributeResponse :: Int -> DescribeInstanceAttributeResponse
- data DescribeInstanceAttributeResponse
- desrsInstanceId :: Lens' DescribeInstanceAttributeResponse (Maybe Text)
- desrsGroups :: Lens' DescribeInstanceAttributeResponse [GroupIdentifier]
- desrsEnaSupport :: Lens' DescribeInstanceAttributeResponse (Maybe AttributeBooleanValue)
- desrsSourceDestCheck :: Lens' DescribeInstanceAttributeResponse (Maybe AttributeBooleanValue)
- desrsDisableAPITermination :: Lens' DescribeInstanceAttributeResponse (Maybe AttributeBooleanValue)
- desrsRAMDiskId :: Lens' DescribeInstanceAttributeResponse (Maybe AttributeValue)
- desrsKernelId :: Lens' DescribeInstanceAttributeResponse (Maybe AttributeValue)
- desrsRootDeviceName :: Lens' DescribeInstanceAttributeResponse (Maybe AttributeValue)
- desrsInstanceType :: Lens' DescribeInstanceAttributeResponse (Maybe AttributeValue)
- desrsSRIOVNetSupport :: Lens' DescribeInstanceAttributeResponse (Maybe AttributeValue)
- desrsEBSOptimized :: Lens' DescribeInstanceAttributeResponse (Maybe AttributeBooleanValue)
- desrsUserData :: Lens' DescribeInstanceAttributeResponse (Maybe AttributeValue)
- desrsInstanceInitiatedShutdownBehavior :: Lens' DescribeInstanceAttributeResponse (Maybe AttributeValue)
- desrsProductCodes :: Lens' DescribeInstanceAttributeResponse [ProductCode]
- desrsBlockDeviceMappings :: Lens' DescribeInstanceAttributeResponse [InstanceBlockDeviceMapping]
- desrsResponseStatus :: 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:
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
.diaAttribute
- The instance attribute. Note: TheenaSupport
attribute is not supported at this time.diaInstanceId
- The ID of the instance.
data DescribeInstanceAttribute Source #
Contains the parameters for DescribeInstanceAttribute.
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
.
diaAttribute :: Lens' DescribeInstanceAttribute InstanceAttributeName Source #
The instance attribute. Note: The enaSupport
attribute is not supported at this time.
diaInstanceId :: Lens' DescribeInstanceAttribute Text Source #
The ID of the instance.
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:
desrsInstanceId
- The ID of the instance.desrsGroups
- The security groups associated with the instance.desrsEnaSupport
- Indicates whether enhanced networking with ENA is enabled.desrsSourceDestCheck
- Indicates whether source/destination checking is enabled. A value oftrue
means that checking is enabled, andfalse
means that checking is disabled. This value must befalse
for a NAT instance to perform NAT.desrsDisableAPITermination
- If the value istrue
, you can't terminate the instance through the Amazon EC2 console, CLI, or API; otherwise, you can.desrsRAMDiskId
- The RAM disk ID.desrsKernelId
- The kernel ID.desrsRootDeviceName
- The device name of the root device volume (for example,devsda1
).desrsInstanceType
- The instance type.desrsSRIOVNetSupport
- Indicates whether enhanced networking with the Intel 82599 Virtual Function interface is enabled.desrsEBSOptimized
- Indicates whether the instance is optimized for Amazon EBS I/O.desrsUserData
- The user data.desrsInstanceInitiatedShutdownBehavior
- Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).desrsProductCodes
- A list of product codes.desrsBlockDeviceMappings
- The block device mapping of the instance.desrsResponseStatus
- -- | The response status code.
data DescribeInstanceAttributeResponse Source #
Describes an instance attribute.
See: describeInstanceAttributeResponse
smart constructor.
Response Lenses
desrsInstanceId :: Lens' DescribeInstanceAttributeResponse (Maybe Text) Source #
The ID of the instance.
desrsGroups :: Lens' DescribeInstanceAttributeResponse [GroupIdentifier] Source #
The security groups associated with the instance.
desrsEnaSupport :: Lens' DescribeInstanceAttributeResponse (Maybe AttributeBooleanValue) Source #
Indicates whether enhanced networking with ENA is enabled.
desrsSourceDestCheck :: Lens' DescribeInstanceAttributeResponse (Maybe AttributeBooleanValue) Source #
Indicates whether source/destination checking is enabled. A value of true
means that checking is enabled, and false
means that checking is disabled. This value must be false
for a NAT instance to perform NAT.
desrsDisableAPITermination :: 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.
desrsRAMDiskId :: Lens' DescribeInstanceAttributeResponse (Maybe AttributeValue) Source #
The RAM disk ID.
desrsKernelId :: Lens' DescribeInstanceAttributeResponse (Maybe AttributeValue) Source #
The kernel ID.
desrsRootDeviceName :: Lens' DescribeInstanceAttributeResponse (Maybe AttributeValue) Source #
The device name of the root device volume (for example, devsda1
).
desrsInstanceType :: Lens' DescribeInstanceAttributeResponse (Maybe AttributeValue) Source #
The instance type.
desrsSRIOVNetSupport :: Lens' DescribeInstanceAttributeResponse (Maybe AttributeValue) Source #
Indicates whether enhanced networking with the Intel 82599 Virtual Function interface is enabled.
desrsEBSOptimized :: Lens' DescribeInstanceAttributeResponse (Maybe AttributeBooleanValue) Source #
Indicates whether the instance is optimized for Amazon EBS I/O.
desrsUserData :: Lens' DescribeInstanceAttributeResponse (Maybe AttributeValue) Source #
The user data.
desrsInstanceInitiatedShutdownBehavior :: 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).
desrsProductCodes :: Lens' DescribeInstanceAttributeResponse [ProductCode] Source #
A list of product codes.
desrsBlockDeviceMappings :: Lens' DescribeInstanceAttributeResponse [InstanceBlockDeviceMapping] Source #
The block device mapping of the instance.
desrsResponseStatus :: Lens' DescribeInstanceAttributeResponse Int Source #
- - | The response status code.