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 device-specific information, such as the device type, software version, IP addresses, and lock status.
Synopsis
- data DescribeDevice = DescribeDevice' {}
- newDescribeDevice :: Text -> DescribeDevice
- describeDevice_managedDeviceId :: Lens' DescribeDevice Text
- data DescribeDeviceResponse = DescribeDeviceResponse' {
- deviceState :: Maybe UnlockState
- deviceCapacities :: Maybe [Capacity]
- lastUpdatedAt :: Maybe POSIX
- associatedWithJob :: Maybe Text
- lastReachedOutAt :: Maybe POSIX
- software :: Maybe SoftwareInformation
- physicalNetworkInterfaces :: Maybe [PhysicalNetworkInterface]
- managedDeviceId :: Maybe Text
- managedDeviceArn :: Maybe Text
- deviceType :: Maybe Text
- tags :: Maybe (HashMap Text Text)
- httpStatus :: Int
- newDescribeDeviceResponse :: Int -> DescribeDeviceResponse
- describeDeviceResponse_deviceState :: Lens' DescribeDeviceResponse (Maybe UnlockState)
- describeDeviceResponse_deviceCapacities :: Lens' DescribeDeviceResponse (Maybe [Capacity])
- describeDeviceResponse_lastUpdatedAt :: Lens' DescribeDeviceResponse (Maybe UTCTime)
- describeDeviceResponse_associatedWithJob :: Lens' DescribeDeviceResponse (Maybe Text)
- describeDeviceResponse_lastReachedOutAt :: Lens' DescribeDeviceResponse (Maybe UTCTime)
- describeDeviceResponse_software :: Lens' DescribeDeviceResponse (Maybe SoftwareInformation)
- describeDeviceResponse_physicalNetworkInterfaces :: Lens' DescribeDeviceResponse (Maybe [PhysicalNetworkInterface])
- describeDeviceResponse_managedDeviceId :: Lens' DescribeDeviceResponse (Maybe Text)
- describeDeviceResponse_managedDeviceArn :: Lens' DescribeDeviceResponse (Maybe Text)
- describeDeviceResponse_deviceType :: Lens' DescribeDeviceResponse (Maybe Text)
- describeDeviceResponse_tags :: Lens' DescribeDeviceResponse (Maybe (HashMap Text Text))
- describeDeviceResponse_httpStatus :: Lens' DescribeDeviceResponse Int
Creating a Request
data DescribeDevice Source #
See: newDescribeDevice
smart constructor.
DescribeDevice' | |
|
Instances
Create a value of DescribeDevice
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:managedDeviceId:DescribeDevice'
, describeDevice_managedDeviceId
- The ID of the device that you are checking the information of.
Request Lenses
describeDevice_managedDeviceId :: Lens' DescribeDevice Text Source #
The ID of the device that you are checking the information of.
Destructuring the Response
data DescribeDeviceResponse Source #
See: newDescribeDeviceResponse
smart constructor.
DescribeDeviceResponse' | |
|
Instances
newDescribeDeviceResponse Source #
Create a value of DescribeDeviceResponse
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:deviceState:DescribeDeviceResponse'
, describeDeviceResponse_deviceState
- The current state of the device.
$sel:deviceCapacities:DescribeDeviceResponse'
, describeDeviceResponse_deviceCapacities
- The hardware specifications of the device.
$sel:lastUpdatedAt:DescribeDeviceResponse'
, describeDeviceResponse_lastUpdatedAt
- When the device last pushed an update to the Amazon Web Services Cloud.
Indicates when the device cache was refreshed.
$sel:associatedWithJob:DescribeDeviceResponse'
, describeDeviceResponse_associatedWithJob
- The ID of the job used when ordering the device.
$sel:lastReachedOutAt:DescribeDeviceResponse'
, describeDeviceResponse_lastReachedOutAt
- When the device last contacted the Amazon Web Services Cloud. Indicates
that the device is online.
$sel:software:DescribeDeviceResponse'
, describeDeviceResponse_software
- The software installed on the device.
$sel:physicalNetworkInterfaces:DescribeDeviceResponse'
, describeDeviceResponse_physicalNetworkInterfaces
- The network interfaces available on the device.
$sel:managedDeviceId:DescribeDevice'
, describeDeviceResponse_managedDeviceId
- The ID of the device that you checked the information for.
$sel:managedDeviceArn:DescribeDeviceResponse'
, describeDeviceResponse_managedDeviceArn
- The Amazon Resource Name (ARN) of the device.
$sel:deviceType:DescribeDeviceResponse'
, describeDeviceResponse_deviceType
- The type of Amazon Web Services Snow Family device.
$sel:tags:DescribeDeviceResponse'
, describeDeviceResponse_tags
- Optional metadata that you assign to a resource. You can use tags to
categorize a resource in different ways, such as by purpose, owner, or
environment.
$sel:httpStatus:DescribeDeviceResponse'
, describeDeviceResponse_httpStatus
- The response's http status code.
Response Lenses
describeDeviceResponse_deviceState :: Lens' DescribeDeviceResponse (Maybe UnlockState) Source #
The current state of the device.
describeDeviceResponse_deviceCapacities :: Lens' DescribeDeviceResponse (Maybe [Capacity]) Source #
The hardware specifications of the device.
describeDeviceResponse_lastUpdatedAt :: Lens' DescribeDeviceResponse (Maybe UTCTime) Source #
When the device last pushed an update to the Amazon Web Services Cloud. Indicates when the device cache was refreshed.
describeDeviceResponse_associatedWithJob :: Lens' DescribeDeviceResponse (Maybe Text) Source #
The ID of the job used when ordering the device.
describeDeviceResponse_lastReachedOutAt :: Lens' DescribeDeviceResponse (Maybe UTCTime) Source #
When the device last contacted the Amazon Web Services Cloud. Indicates that the device is online.
describeDeviceResponse_software :: Lens' DescribeDeviceResponse (Maybe SoftwareInformation) Source #
The software installed on the device.
describeDeviceResponse_physicalNetworkInterfaces :: Lens' DescribeDeviceResponse (Maybe [PhysicalNetworkInterface]) Source #
The network interfaces available on the device.
describeDeviceResponse_managedDeviceId :: Lens' DescribeDeviceResponse (Maybe Text) Source #
The ID of the device that you checked the information for.
describeDeviceResponse_managedDeviceArn :: Lens' DescribeDeviceResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the device.
describeDeviceResponse_deviceType :: Lens' DescribeDeviceResponse (Maybe Text) Source #
The type of Amazon Web Services Snow Family device.
describeDeviceResponse_tags :: Lens' DescribeDeviceResponse (Maybe (HashMap Text Text)) Source #
Optional metadata that you assign to a resource. You can use tags to categorize a resource in different ways, such as by purpose, owner, or environment.
describeDeviceResponse_httpStatus :: Lens' DescribeDeviceResponse Int Source #
The response's http status code.