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 |
Describes the device.
Synopsis
- data DescribeDevice = DescribeDevice' {
- nextToken :: Maybe Text
- deviceName :: Text
- deviceFleetName :: Text
- newDescribeDevice :: Text -> Text -> DescribeDevice
- describeDevice_nextToken :: Lens' DescribeDevice (Maybe Text)
- describeDevice_deviceName :: Lens' DescribeDevice Text
- describeDevice_deviceFleetName :: Lens' DescribeDevice Text
- data DescribeDeviceResponse = DescribeDeviceResponse' {
- deviceArn :: Maybe Text
- nextToken :: Maybe Text
- models :: Maybe [EdgeModel]
- maxModels :: Maybe Int
- latestHeartbeat :: Maybe POSIX
- description :: Maybe Text
- iotThingName :: Maybe Text
- httpStatus :: Int
- deviceName :: Text
- deviceFleetName :: Text
- registrationTime :: POSIX
- newDescribeDeviceResponse :: Int -> Text -> Text -> UTCTime -> DescribeDeviceResponse
- describeDeviceResponse_deviceArn :: Lens' DescribeDeviceResponse (Maybe Text)
- describeDeviceResponse_nextToken :: Lens' DescribeDeviceResponse (Maybe Text)
- describeDeviceResponse_models :: Lens' DescribeDeviceResponse (Maybe [EdgeModel])
- describeDeviceResponse_maxModels :: Lens' DescribeDeviceResponse (Maybe Int)
- describeDeviceResponse_latestHeartbeat :: Lens' DescribeDeviceResponse (Maybe UTCTime)
- describeDeviceResponse_description :: Lens' DescribeDeviceResponse (Maybe Text)
- describeDeviceResponse_iotThingName :: Lens' DescribeDeviceResponse (Maybe Text)
- describeDeviceResponse_httpStatus :: Lens' DescribeDeviceResponse Int
- describeDeviceResponse_deviceName :: Lens' DescribeDeviceResponse Text
- describeDeviceResponse_deviceFleetName :: Lens' DescribeDeviceResponse Text
- describeDeviceResponse_registrationTime :: Lens' DescribeDeviceResponse UTCTime
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:nextToken:DescribeDevice'
, describeDevice_nextToken
- Next token of device description.
$sel:deviceName:DescribeDevice'
, describeDevice_deviceName
- The unique ID of the device.
$sel:deviceFleetName:DescribeDevice'
, describeDevice_deviceFleetName
- The name of the fleet the devices belong to.
Request Lenses
describeDevice_nextToken :: Lens' DescribeDevice (Maybe Text) Source #
Next token of device description.
describeDevice_deviceName :: Lens' DescribeDevice Text Source #
The unique ID of the device.
describeDevice_deviceFleetName :: Lens' DescribeDevice Text Source #
The name of the fleet the devices belong to.
Destructuring the Response
data DescribeDeviceResponse Source #
See: newDescribeDeviceResponse
smart constructor.
DescribeDeviceResponse' | |
|
Instances
newDescribeDeviceResponse Source #
:: Int | |
-> Text | |
-> Text | |
-> UTCTime | |
-> DescribeDeviceResponse |
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:deviceArn:DescribeDeviceResponse'
, describeDeviceResponse_deviceArn
- The Amazon Resource Name (ARN) of the device.
$sel:nextToken:DescribeDevice'
, describeDeviceResponse_nextToken
- The response from the last list when returning a list large enough to
need tokening.
$sel:models:DescribeDeviceResponse'
, describeDeviceResponse_models
- Models on the device.
$sel:maxModels:DescribeDeviceResponse'
, describeDeviceResponse_maxModels
- The maximum number of models.
$sel:latestHeartbeat:DescribeDeviceResponse'
, describeDeviceResponse_latestHeartbeat
- The last heartbeat received from the device.
$sel:description:DescribeDeviceResponse'
, describeDeviceResponse_description
- A description of the device.
$sel:iotThingName:DescribeDeviceResponse'
, describeDeviceResponse_iotThingName
- The Amazon Web Services Internet of Things (IoT) object thing name
associated with the device.
$sel:httpStatus:DescribeDeviceResponse'
, describeDeviceResponse_httpStatus
- The response's http status code.
$sel:deviceName:DescribeDevice'
, describeDeviceResponse_deviceName
- The unique identifier of the device.
$sel:deviceFleetName:DescribeDevice'
, describeDeviceResponse_deviceFleetName
- The name of the fleet the device belongs to.
$sel:registrationTime:DescribeDeviceResponse'
, describeDeviceResponse_registrationTime
- The timestamp of the last registration or de-reregistration.
Response Lenses
describeDeviceResponse_deviceArn :: Lens' DescribeDeviceResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the device.
describeDeviceResponse_nextToken :: Lens' DescribeDeviceResponse (Maybe Text) Source #
The response from the last list when returning a list large enough to need tokening.
describeDeviceResponse_models :: Lens' DescribeDeviceResponse (Maybe [EdgeModel]) Source #
Models on the device.
describeDeviceResponse_maxModels :: Lens' DescribeDeviceResponse (Maybe Int) Source #
The maximum number of models.
describeDeviceResponse_latestHeartbeat :: Lens' DescribeDeviceResponse (Maybe UTCTime) Source #
The last heartbeat received from the device.
describeDeviceResponse_description :: Lens' DescribeDeviceResponse (Maybe Text) Source #
A description of the device.
describeDeviceResponse_iotThingName :: Lens' DescribeDeviceResponse (Maybe Text) Source #
The Amazon Web Services Internet of Things (IoT) object thing name associated with the device.
describeDeviceResponse_httpStatus :: Lens' DescribeDeviceResponse Int Source #
The response's http status code.
describeDeviceResponse_deviceName :: Lens' DescribeDeviceResponse Text Source #
The unique identifier of the device.
describeDeviceResponse_deviceFleetName :: Lens' DescribeDeviceResponse Text Source #
The name of the fleet the device belongs to.
describeDeviceResponse_registrationTime :: Lens' DescribeDeviceResponse UTCTime Source #
The timestamp of the last registration or de-reregistration.