| 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.AlexaBusiness.GetDevice
Description
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.
Constructors
| GetDevice' | |
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:
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.
Constructors
| GetDeviceResponse' | |
Fields
| |
Instances
Arguments
| :: Int | |
| -> GetDeviceResponse |
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.