| 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.ListDevices
Description
Lists the 1-Click compatible devices associated with your AWS account.
This operation returns paginated results.
Synopsis
- data ListDevices = ListDevices' {
- deviceType :: Maybe Text
- maxResults :: Maybe Natural
- nextToken :: Maybe Text
- newListDevices :: ListDevices
- listDevices_deviceType :: Lens' ListDevices (Maybe Text)
- listDevices_maxResults :: Lens' ListDevices (Maybe Natural)
- listDevices_nextToken :: Lens' ListDevices (Maybe Text)
- data ListDevicesResponse = ListDevicesResponse' {
- devices :: Maybe [DeviceDescription]
- nextToken :: Maybe Text
- httpStatus :: Int
- newListDevicesResponse :: Int -> ListDevicesResponse
- listDevicesResponse_devices :: Lens' ListDevicesResponse (Maybe [DeviceDescription])
- listDevicesResponse_nextToken :: Lens' ListDevicesResponse (Maybe Text)
- listDevicesResponse_httpStatus :: Lens' ListDevicesResponse Int
Creating a Request
data ListDevices Source #
See: newListDevices smart constructor.
Constructors
| ListDevices' | |
Fields
| |
Instances
newListDevices :: ListDevices Source #
Create a value of ListDevices 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:
ListDevices, listDevices_deviceType - The type of the device, such as "button".
$sel:maxResults:ListDevices', listDevices_maxResults - The maximum number of results to return per request. If not set, a
default value of 100 is used.
ListDevices, listDevices_nextToken - The token to retrieve the next set of results.
Request Lenses
listDevices_deviceType :: Lens' ListDevices (Maybe Text) Source #
The type of the device, such as "button".
listDevices_maxResults :: Lens' ListDevices (Maybe Natural) Source #
The maximum number of results to return per request. If not set, a default value of 100 is used.
listDevices_nextToken :: Lens' ListDevices (Maybe Text) Source #
The token to retrieve the next set of results.
Destructuring the Response
data ListDevicesResponse Source #
See: newListDevicesResponse smart constructor.
Constructors
| ListDevicesResponse' | |
Fields
| |
Instances
newListDevicesResponse Source #
Arguments
| :: Int | |
| -> ListDevicesResponse |
Create a value of ListDevicesResponse 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:devices:ListDevicesResponse', listDevicesResponse_devices - A list of devices.
ListDevices, listDevicesResponse_nextToken - The token to retrieve the next set of results.
$sel:httpStatus:ListDevicesResponse', listDevicesResponse_httpStatus - The response's http status code.
Response Lenses
listDevicesResponse_devices :: Lens' ListDevicesResponse (Maybe [DeviceDescription]) Source #
A list of devices.
listDevicesResponse_nextToken :: Lens' ListDevicesResponse (Maybe Text) Source #
The token to retrieve the next set of results.
listDevicesResponse_httpStatus :: Lens' ListDevicesResponse Int Source #
The response's http status code.