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 one or more of your devices in a global network.
This operation returns paginated results.
Synopsis
- data GetDevices = GetDevices' {}
- newGetDevices :: Text -> GetDevices
- getDevices_deviceIds :: Lens' GetDevices (Maybe [Text])
- getDevices_nextToken :: Lens' GetDevices (Maybe Text)
- getDevices_siteId :: Lens' GetDevices (Maybe Text)
- getDevices_maxResults :: Lens' GetDevices (Maybe Natural)
- getDevices_globalNetworkId :: Lens' GetDevices Text
- data GetDevicesResponse = GetDevicesResponse' {}
- newGetDevicesResponse :: Int -> GetDevicesResponse
- getDevicesResponse_nextToken :: Lens' GetDevicesResponse (Maybe Text)
- getDevicesResponse_devices :: Lens' GetDevicesResponse (Maybe [Device])
- getDevicesResponse_httpStatus :: Lens' GetDevicesResponse Int
Creating a Request
data GetDevices Source #
See: newGetDevices
smart constructor.
Instances
Create a value of GetDevices
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:deviceIds:GetDevices'
, getDevices_deviceIds
- One or more device IDs. The maximum is 10.
$sel:nextToken:GetDevices'
, getDevices_nextToken
- The token for the next page of results.
$sel:siteId:GetDevices'
, getDevices_siteId
- The ID of the site.
$sel:maxResults:GetDevices'
, getDevices_maxResults
- The maximum number of results to return.
$sel:globalNetworkId:GetDevices'
, getDevices_globalNetworkId
- The ID of the global network.
Request Lenses
getDevices_deviceIds :: Lens' GetDevices (Maybe [Text]) Source #
One or more device IDs. The maximum is 10.
getDevices_nextToken :: Lens' GetDevices (Maybe Text) Source #
The token for the next page of results.
getDevices_siteId :: Lens' GetDevices (Maybe Text) Source #
The ID of the site.
getDevices_maxResults :: Lens' GetDevices (Maybe Natural) Source #
The maximum number of results to return.
getDevices_globalNetworkId :: Lens' GetDevices Text Source #
The ID of the global network.
Destructuring the Response
data GetDevicesResponse Source #
See: newGetDevicesResponse
smart constructor.
Instances
newGetDevicesResponse Source #
Create a value of GetDevicesResponse
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:nextToken:GetDevices'
, getDevicesResponse_nextToken
- The token for the next page of results.
$sel:devices:GetDevicesResponse'
, getDevicesResponse_devices
- The devices.
$sel:httpStatus:GetDevicesResponse'
, getDevicesResponse_httpStatus
- The response's http status code.
Response Lenses
getDevicesResponse_nextToken :: Lens' GetDevicesResponse (Maybe Text) Source #
The token for the next page of results.
getDevicesResponse_devices :: Lens' GetDevicesResponse (Maybe [Device]) Source #
The devices.
getDevicesResponse_httpStatus :: Lens' GetDevicesResponse Int Source #
The response's http status code.