Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
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
Synopsis
- data DescribeInstanceAttribute = DescribeInstanceAttribute' {}
- newDescribeInstanceAttribute :: InstanceAttributeName -> Text -> DescribeInstanceAttribute
- describeInstanceAttribute_dryRun :: Lens' DescribeInstanceAttribute (Maybe Bool)
- describeInstanceAttribute_attribute :: Lens' DescribeInstanceAttribute InstanceAttributeName
- describeInstanceAttribute_instanceId :: Lens' DescribeInstanceAttribute Text
- data DescribeInstanceAttributeResponse = DescribeInstanceAttributeResponse' {
- blockDeviceMappings :: Maybe [InstanceBlockDeviceMapping]
- disableApiStop :: Maybe AttributeBooleanValue
- disableApiTermination :: Maybe AttributeBooleanValue
- ebsOptimized :: Maybe AttributeBooleanValue
- enaSupport :: Maybe AttributeBooleanValue
- enclaveOptions :: Maybe EnclaveOptions
- groups :: Maybe [GroupIdentifier]
- instanceId :: Maybe Text
- instanceInitiatedShutdownBehavior :: Maybe AttributeValue
- instanceType :: Maybe AttributeValue
- kernelId :: Maybe AttributeValue
- productCodes :: Maybe [ProductCode]
- ramdiskId :: Maybe AttributeValue
- rootDeviceName :: Maybe AttributeValue
- sourceDestCheck :: Maybe AttributeBooleanValue
- sriovNetSupport :: Maybe AttributeValue
- userData :: Maybe AttributeValue
- httpStatus :: Int
- newDescribeInstanceAttributeResponse :: Int -> DescribeInstanceAttributeResponse
- describeInstanceAttributeResponse_blockDeviceMappings :: Lens' DescribeInstanceAttributeResponse (Maybe [InstanceBlockDeviceMapping])
- describeInstanceAttributeResponse_disableApiStop :: Lens' DescribeInstanceAttributeResponse (Maybe AttributeBooleanValue)
- describeInstanceAttributeResponse_disableApiTermination :: Lens' DescribeInstanceAttributeResponse (Maybe AttributeBooleanValue)
- describeInstanceAttributeResponse_ebsOptimized :: Lens' DescribeInstanceAttributeResponse (Maybe AttributeBooleanValue)
- describeInstanceAttributeResponse_enaSupport :: Lens' DescribeInstanceAttributeResponse (Maybe AttributeBooleanValue)
- describeInstanceAttributeResponse_enclaveOptions :: Lens' DescribeInstanceAttributeResponse (Maybe EnclaveOptions)
- describeInstanceAttributeResponse_groups :: Lens' DescribeInstanceAttributeResponse (Maybe [GroupIdentifier])
- describeInstanceAttributeResponse_instanceId :: Lens' DescribeInstanceAttributeResponse (Maybe Text)
- describeInstanceAttributeResponse_instanceInitiatedShutdownBehavior :: Lens' DescribeInstanceAttributeResponse (Maybe AttributeValue)
- describeInstanceAttributeResponse_instanceType :: Lens' DescribeInstanceAttributeResponse (Maybe AttributeValue)
- describeInstanceAttributeResponse_kernelId :: Lens' DescribeInstanceAttributeResponse (Maybe AttributeValue)
- describeInstanceAttributeResponse_productCodes :: Lens' DescribeInstanceAttributeResponse (Maybe [ProductCode])
- describeInstanceAttributeResponse_ramdiskId :: Lens' DescribeInstanceAttributeResponse (Maybe AttributeValue)
- describeInstanceAttributeResponse_rootDeviceName :: Lens' DescribeInstanceAttributeResponse (Maybe AttributeValue)
- describeInstanceAttributeResponse_sourceDestCheck :: Lens' DescribeInstanceAttributeResponse (Maybe AttributeBooleanValue)
- describeInstanceAttributeResponse_sriovNetSupport :: Lens' DescribeInstanceAttributeResponse (Maybe AttributeValue)
- describeInstanceAttributeResponse_userData :: Lens' DescribeInstanceAttributeResponse (Maybe AttributeValue)
- describeInstanceAttributeResponse_httpStatus :: Lens' DescribeInstanceAttributeResponse Int
Creating a Request
data DescribeInstanceAttribute Source #
See: newDescribeInstanceAttribute
smart constructor.
DescribeInstanceAttribute' | |
|
Instances
newDescribeInstanceAttribute Source #
Create a value of DescribeInstanceAttribute
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:dryRun:DescribeInstanceAttribute'
, describeInstanceAttribute_dryRun
- 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
.
$sel:attribute:DescribeInstanceAttribute'
, describeInstanceAttribute_attribute
- The instance attribute.
Note: The enaSupport
attribute is not supported at this time.
DescribeInstanceAttribute
, describeInstanceAttribute_instanceId
- The ID of the instance.
Request Lenses
describeInstanceAttribute_dryRun :: 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
.
describeInstanceAttribute_attribute :: Lens' DescribeInstanceAttribute InstanceAttributeName Source #
The instance attribute.
Note: The enaSupport
attribute is not supported at this time.
describeInstanceAttribute_instanceId :: Lens' DescribeInstanceAttribute Text Source #
The ID of the instance.
Destructuring the Response
data DescribeInstanceAttributeResponse Source #
Describes an instance attribute.
See: newDescribeInstanceAttributeResponse
smart constructor.
DescribeInstanceAttributeResponse' | |
|
Instances
newDescribeInstanceAttributeResponse Source #
Create a value of DescribeInstanceAttributeResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
DescribeInstanceAttributeResponse
, describeInstanceAttributeResponse_blockDeviceMappings
- The block device mapping of the instance.
DescribeInstanceAttributeResponse
, describeInstanceAttributeResponse_disableApiStop
- To enable the instance for Amazon Web Services Stop Protection, set this
parameter to true
; otherwise, set it to false
.
DescribeInstanceAttributeResponse
, describeInstanceAttributeResponse_disableApiTermination
- If the value is true
, you can't terminate the instance through the
Amazon EC2 console, CLI, or API; otherwise, you can.
DescribeInstanceAttributeResponse
, describeInstanceAttributeResponse_ebsOptimized
- Indicates whether the instance is optimized for Amazon EBS I/O.
DescribeInstanceAttributeResponse
, describeInstanceAttributeResponse_enaSupport
- Indicates whether enhanced networking with ENA is enabled.
DescribeInstanceAttributeResponse
, describeInstanceAttributeResponse_enclaveOptions
- To enable the instance for Amazon Web Services Nitro Enclaves, set this
parameter to true
; otherwise, set it to false
.
DescribeInstanceAttributeResponse
, describeInstanceAttributeResponse_groups
- The security groups associated with the instance.
DescribeInstanceAttribute
, describeInstanceAttributeResponse_instanceId
- The ID of the instance.
DescribeInstanceAttributeResponse
, describeInstanceAttributeResponse_instanceInitiatedShutdownBehavior
- Indicates whether an instance stops or terminates when you initiate
shutdown from the instance (using the operating system command for
system shutdown).
DescribeInstanceAttributeResponse
, describeInstanceAttributeResponse_instanceType
- The instance type.
DescribeInstanceAttributeResponse
, describeInstanceAttributeResponse_kernelId
- The kernel ID.
DescribeInstanceAttributeResponse
, describeInstanceAttributeResponse_productCodes
- A list of product codes.
DescribeInstanceAttributeResponse
, describeInstanceAttributeResponse_ramdiskId
- The RAM disk ID.
DescribeInstanceAttributeResponse
, describeInstanceAttributeResponse_rootDeviceName
- The device name of the root device volume (for example, /dev/sda1
).
DescribeInstanceAttributeResponse
, describeInstanceAttributeResponse_sourceDestCheck
- Enable or disable source/destination checks, which ensure that the
instance is either the source or the destination of any traffic that it
receives. If the value is true
, source/destination checks are
enabled; otherwise, they are disabled. The default value is true
. You
must disable source/destination checks if the instance runs services
such as network address translation, routing, or firewalls.
DescribeInstanceAttributeResponse
, describeInstanceAttributeResponse_sriovNetSupport
- Indicates whether enhanced networking with the Intel 82599 Virtual
Function interface is enabled.
DescribeInstanceAttributeResponse
, describeInstanceAttributeResponse_userData
- The user data.
$sel:httpStatus:DescribeInstanceAttributeResponse'
, describeInstanceAttributeResponse_httpStatus
- The response's http status code.
Response Lenses
describeInstanceAttributeResponse_blockDeviceMappings :: Lens' DescribeInstanceAttributeResponse (Maybe [InstanceBlockDeviceMapping]) Source #
The block device mapping of the instance.
describeInstanceAttributeResponse_disableApiStop :: Lens' DescribeInstanceAttributeResponse (Maybe AttributeBooleanValue) Source #
To enable the instance for Amazon Web Services Stop Protection, set this
parameter to true
; otherwise, set it to false
.
describeInstanceAttributeResponse_disableApiTermination :: 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.
describeInstanceAttributeResponse_ebsOptimized :: Lens' DescribeInstanceAttributeResponse (Maybe AttributeBooleanValue) Source #
Indicates whether the instance is optimized for Amazon EBS I/O.
describeInstanceAttributeResponse_enaSupport :: Lens' DescribeInstanceAttributeResponse (Maybe AttributeBooleanValue) Source #
Indicates whether enhanced networking with ENA is enabled.
describeInstanceAttributeResponse_enclaveOptions :: Lens' DescribeInstanceAttributeResponse (Maybe EnclaveOptions) Source #
To enable the instance for Amazon Web Services Nitro Enclaves, set this
parameter to true
; otherwise, set it to false
.
describeInstanceAttributeResponse_groups :: Lens' DescribeInstanceAttributeResponse (Maybe [GroupIdentifier]) Source #
The security groups associated with the instance.
describeInstanceAttributeResponse_instanceId :: Lens' DescribeInstanceAttributeResponse (Maybe Text) Source #
The ID of the instance.
describeInstanceAttributeResponse_instanceInitiatedShutdownBehavior :: 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).
describeInstanceAttributeResponse_instanceType :: Lens' DescribeInstanceAttributeResponse (Maybe AttributeValue) Source #
The instance type.
describeInstanceAttributeResponse_kernelId :: Lens' DescribeInstanceAttributeResponse (Maybe AttributeValue) Source #
The kernel ID.
describeInstanceAttributeResponse_productCodes :: Lens' DescribeInstanceAttributeResponse (Maybe [ProductCode]) Source #
A list of product codes.
describeInstanceAttributeResponse_ramdiskId :: Lens' DescribeInstanceAttributeResponse (Maybe AttributeValue) Source #
The RAM disk ID.
describeInstanceAttributeResponse_rootDeviceName :: Lens' DescribeInstanceAttributeResponse (Maybe AttributeValue) Source #
The device name of the root device volume (for example, /dev/sda1
).
describeInstanceAttributeResponse_sourceDestCheck :: Lens' DescribeInstanceAttributeResponse (Maybe AttributeBooleanValue) Source #
Enable or disable source/destination checks, which ensure that the
instance is either the source or the destination of any traffic that it
receives. If the value is true
, source/destination checks are
enabled; otherwise, they are disabled. The default value is true
. You
must disable source/destination checks if the instance runs services
such as network address translation, routing, or firewalls.
describeInstanceAttributeResponse_sriovNetSupport :: Lens' DescribeInstanceAttributeResponse (Maybe AttributeValue) Source #
Indicates whether enhanced networking with the Intel 82599 Virtual Function interface is enabled.
describeInstanceAttributeResponse_userData :: Lens' DescribeInstanceAttributeResponse (Maybe AttributeValue) Source #
The user data.
describeInstanceAttributeResponse_httpStatus :: Lens' DescribeInstanceAttributeResponse Int Source #
The response's http status code.