Copyright | (c) 2013-2021 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 |
Checks the current state of the Amazon EC2 instances. The output is
similar to describeDevice
, but the results are sourced from the device
cache in the Amazon Web Services Cloud and include a subset of the
available fields.
Synopsis
- data DescribeDeviceEc2Instances = DescribeDeviceEc2Instances' {
- instanceIds :: [Text]
- managedDeviceId :: Text
- newDescribeDeviceEc2Instances :: Text -> DescribeDeviceEc2Instances
- describeDeviceEc2Instances_instanceIds :: Lens' DescribeDeviceEc2Instances [Text]
- describeDeviceEc2Instances_managedDeviceId :: Lens' DescribeDeviceEc2Instances Text
- data DescribeDeviceEc2InstancesResponse = DescribeDeviceEc2InstancesResponse' {
- instances :: Maybe [InstanceSummary]
- httpStatus :: Int
- newDescribeDeviceEc2InstancesResponse :: Int -> DescribeDeviceEc2InstancesResponse
- describeDeviceEc2InstancesResponse_instances :: Lens' DescribeDeviceEc2InstancesResponse (Maybe [InstanceSummary])
- describeDeviceEc2InstancesResponse_httpStatus :: Lens' DescribeDeviceEc2InstancesResponse Int
Creating a Request
data DescribeDeviceEc2Instances Source #
See: newDescribeDeviceEc2Instances
smart constructor.
DescribeDeviceEc2Instances' | |
|
Instances
newDescribeDeviceEc2Instances Source #
Create a value of DescribeDeviceEc2Instances
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:instanceIds:DescribeDeviceEc2Instances'
, describeDeviceEc2Instances_instanceIds
- A list of instance IDs associated with the managed device.
$sel:managedDeviceId:DescribeDeviceEc2Instances'
, describeDeviceEc2Instances_managedDeviceId
- The ID of the managed device.
Request Lenses
describeDeviceEc2Instances_instanceIds :: Lens' DescribeDeviceEc2Instances [Text] Source #
A list of instance IDs associated with the managed device.
describeDeviceEc2Instances_managedDeviceId :: Lens' DescribeDeviceEc2Instances Text Source #
The ID of the managed device.
Destructuring the Response
data DescribeDeviceEc2InstancesResponse Source #
See: newDescribeDeviceEc2InstancesResponse
smart constructor.
DescribeDeviceEc2InstancesResponse' | |
|
Instances
newDescribeDeviceEc2InstancesResponse Source #
Create a value of DescribeDeviceEc2InstancesResponse
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:instances:DescribeDeviceEc2InstancesResponse'
, describeDeviceEc2InstancesResponse_instances
- A list of structures containing information about each instance.
$sel:httpStatus:DescribeDeviceEc2InstancesResponse'
, describeDeviceEc2InstancesResponse_httpStatus
- The response's http status code.
Response Lenses
describeDeviceEc2InstancesResponse_instances :: Lens' DescribeDeviceEc2InstancesResponse (Maybe [InstanceSummary]) Source #
A list of structures containing information about each instance.
describeDeviceEc2InstancesResponse_httpStatus :: Lens' DescribeDeviceEc2InstancesResponse Int Source #
The response's http status code.