| 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.IoT1ClickDevices.GetDeviceMethods
Description
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.
Constructors
| GetDeviceMethods' | |
Instances
Arguments
| :: Text | |
| -> GetDeviceMethods |
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:
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.
Constructors
| GetDeviceMethodsResponse' | |
Fields
| |
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.