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 |
Gets the details of a device by device ARN.
Synopsis
- data GetDevice = GetDevice' {}
- newGetDevice :: GetDevice
- getDevice_deviceArn :: Lens' GetDevice (Maybe Text)
- data GetDeviceResponse = GetDeviceResponse' {
- device :: Maybe Device
- httpStatus :: Int
- newGetDeviceResponse :: Int -> GetDeviceResponse
- getDeviceResponse_device :: Lens' GetDeviceResponse (Maybe Device)
- getDeviceResponse_httpStatus :: Lens' GetDeviceResponse Int
Creating a Request
See: newGetDevice
smart constructor.
Instances
newGetDevice :: GetDevice Source #
Create a value of GetDevice
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:GetDevice'
, getDevice_deviceArn
- The ARN of the device for which to request details. Required.
Request Lenses
getDevice_deviceArn :: Lens' GetDevice (Maybe Text) Source #
The ARN of the device for which to request details. Required.
Destructuring the Response
data GetDeviceResponse Source #
See: newGetDeviceResponse
smart constructor.
GetDeviceResponse' | |
|
Instances
Create a value of GetDeviceResponse
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:device:GetDeviceResponse'
, getDeviceResponse_device
- The details of the device requested. Required.
$sel:httpStatus:GetDeviceResponse'
, getDeviceResponse_httpStatus
- The response's http status code.
Response Lenses
getDeviceResponse_device :: Lens' GetDeviceResponse (Maybe Device) Source #
The details of the device requested. Required.
getDeviceResponse_httpStatus :: Lens' GetDeviceResponse Int Source #
The response's http status code.