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 |
Given a device ID, returns the invokable methods associated with the device.
Synopsis
- data GetDeviceMethods = GetDeviceMethods' {}
- newGetDeviceMethods :: Text -> GetDeviceMethods
- getDeviceMethods_deviceId :: Lens' GetDeviceMethods Text
- data GetDeviceMethodsResponse = GetDeviceMethodsResponse' {
- deviceMethods :: Maybe [DeviceMethod]
- httpStatus :: Int
- newGetDeviceMethodsResponse :: Int -> GetDeviceMethodsResponse
- getDeviceMethodsResponse_deviceMethods :: Lens' GetDeviceMethodsResponse (Maybe [DeviceMethod])
- getDeviceMethodsResponse_httpStatus :: Lens' GetDeviceMethodsResponse Int
Creating a Request
data GetDeviceMethods Source #
See: newGetDeviceMethods
smart constructor.
Instances
Create a value of GetDeviceMethods
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:deviceId:GetDeviceMethods'
, getDeviceMethods_deviceId
- The unique identifier of the device.
Request Lenses
getDeviceMethods_deviceId :: Lens' GetDeviceMethods Text Source #
The unique identifier of the device.
Destructuring the Response
data GetDeviceMethodsResponse Source #
See: newGetDeviceMethodsResponse
smart constructor.
GetDeviceMethodsResponse' | |
|
Instances
newGetDeviceMethodsResponse Source #
Create a value of GetDeviceMethodsResponse
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:deviceMethods:GetDeviceMethodsResponse'
, getDeviceMethodsResponse_deviceMethods
- List of available device APIs.
$sel:httpStatus:GetDeviceMethodsResponse'
, getDeviceMethodsResponse_httpStatus
- The response's http status code.
Response Lenses
getDeviceMethodsResponse_deviceMethods :: Lens' GetDeviceMethodsResponse (Maybe [DeviceMethod]) Source #
List of available device APIs.
getDeviceMethodsResponse_httpStatus :: Lens' GetDeviceMethodsResponse Int Source #
The response's http status code.