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 information about a unique device type.
Synopsis
- data GetDevice = GetDevice' {}
- newGetDevice :: Text -> GetDevice
- getDevice_arn :: Lens' GetDevice 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
Represents a request to the get device request.
See: newGetDevice
smart constructor.
Instances
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:arn:GetDevice'
, getDevice_arn
- The device type's ARN.
Request Lenses
Destructuring the Response
data GetDeviceResponse Source #
Represents the result of a get device request.
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
- An object that contains information about the requested device.
$sel:httpStatus:GetDeviceResponse'
, getDeviceResponse_httpStatus
- The response's http status code.
Response Lenses
getDeviceResponse_device :: Lens' GetDeviceResponse (Maybe Device) Source #
An object that contains information about the requested device.
getDeviceResponse_httpStatus :: Lens' GetDeviceResponse Int Source #
The response's http status code.