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 |
Returns a list of jobs.
Synopsis
- data ListDevicesJobs = ListDevicesJobs' {}
- newListDevicesJobs :: ListDevicesJobs
- listDevicesJobs_nextToken :: Lens' ListDevicesJobs (Maybe Text)
- listDevicesJobs_deviceId :: Lens' ListDevicesJobs (Maybe Text)
- listDevicesJobs_maxResults :: Lens' ListDevicesJobs (Maybe Natural)
- data ListDevicesJobsResponse = ListDevicesJobsResponse' {
- nextToken :: Maybe Text
- deviceJobs :: Maybe [DeviceJob]
- httpStatus :: Int
- newListDevicesJobsResponse :: Int -> ListDevicesJobsResponse
- listDevicesJobsResponse_nextToken :: Lens' ListDevicesJobsResponse (Maybe Text)
- listDevicesJobsResponse_deviceJobs :: Lens' ListDevicesJobsResponse (Maybe [DeviceJob])
- listDevicesJobsResponse_httpStatus :: Lens' ListDevicesJobsResponse Int
Creating a Request
data ListDevicesJobs Source #
See: newListDevicesJobs
smart constructor.
Instances
newListDevicesJobs :: ListDevicesJobs Source #
Create a value of ListDevicesJobs
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:ListDevicesJobs'
, listDevicesJobs_nextToken
- Specify the pagination token from a previous request to retrieve the
next page of results.
$sel:deviceId:ListDevicesJobs'
, listDevicesJobs_deviceId
- Filter results by the job's target device ID.
$sel:maxResults:ListDevicesJobs'
, listDevicesJobs_maxResults
- The maximum number of device jobs to return in one page of results.
Request Lenses
listDevicesJobs_nextToken :: Lens' ListDevicesJobs (Maybe Text) Source #
Specify the pagination token from a previous request to retrieve the next page of results.
listDevicesJobs_deviceId :: Lens' ListDevicesJobs (Maybe Text) Source #
Filter results by the job's target device ID.
listDevicesJobs_maxResults :: Lens' ListDevicesJobs (Maybe Natural) Source #
The maximum number of device jobs to return in one page of results.
Destructuring the Response
data ListDevicesJobsResponse Source #
See: newListDevicesJobsResponse
smart constructor.
ListDevicesJobsResponse' | |
|
Instances
newListDevicesJobsResponse Source #
Create a value of ListDevicesJobsResponse
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:ListDevicesJobs'
, listDevicesJobsResponse_nextToken
- A pagination token that's included if more results are available.
$sel:deviceJobs:ListDevicesJobsResponse'
, listDevicesJobsResponse_deviceJobs
- A list of jobs.
$sel:httpStatus:ListDevicesJobsResponse'
, listDevicesJobsResponse_httpStatus
- The response's http status code.
Response Lenses
listDevicesJobsResponse_nextToken :: Lens' ListDevicesJobsResponse (Maybe Text) Source #
A pagination token that's included if more results are available.
listDevicesJobsResponse_deviceJobs :: Lens' ListDevicesJobsResponse (Maybe [DeviceJob]) Source #
A list of jobs.
listDevicesJobsResponse_httpStatus :: Lens' ListDevicesJobsResponse Int Source #
The response's http status code.