| 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 |
Amazonka.SnowDeviceManagement.DescribeDeviceEc2Instances
Description
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.
Constructors
| DescribeDeviceEc2Instances' | |
Fields
| |
Instances
newDescribeDeviceEc2Instances Source #
Arguments
| :: Text | |
| -> DescribeDeviceEc2Instances |
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.
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.
Constructors
| DescribeDeviceEc2InstancesResponse' | |
Fields
| |
Instances
newDescribeDeviceEc2InstancesResponse Source #
Arguments
| :: Int | |
| -> DescribeDeviceEc2InstancesResponse |
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.