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 |
Lists the jobs for a branch of an Amplify app.
This operation returns paginated results.
Synopsis
- data ListJobs = ListJobs' {
- nextToken :: Maybe Text
- maxResults :: Maybe Natural
- appId :: Text
- branchName :: Text
- newListJobs :: Text -> Text -> ListJobs
- listJobs_nextToken :: Lens' ListJobs (Maybe Text)
- listJobs_maxResults :: Lens' ListJobs (Maybe Natural)
- listJobs_appId :: Lens' ListJobs Text
- listJobs_branchName :: Lens' ListJobs Text
- data ListJobsResponse = ListJobsResponse' {
- nextToken :: Maybe Text
- httpStatus :: Int
- jobSummaries :: [JobSummary]
- newListJobsResponse :: Int -> ListJobsResponse
- listJobsResponse_nextToken :: Lens' ListJobsResponse (Maybe Text)
- listJobsResponse_httpStatus :: Lens' ListJobsResponse Int
- listJobsResponse_jobSummaries :: Lens' ListJobsResponse [JobSummary]
Creating a Request
The request structure for the list jobs request.
See: newListJobs
smart constructor.
ListJobs' | |
|
Instances
Create a value of ListJobs
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:ListJobs'
, listJobs_nextToken
- A pagination token. Set to null to start listing steps from the start.
If a non-null pagination token is returned in a result, pass its value
in here to list more steps.
$sel:maxResults:ListJobs'
, listJobs_maxResults
- The maximum number of records to list in a single response.
$sel:appId:ListJobs'
, listJobs_appId
- The unique ID for an Amplify app.
$sel:branchName:ListJobs'
, listJobs_branchName
- The name for a branch.
Request Lenses
listJobs_nextToken :: Lens' ListJobs (Maybe Text) Source #
A pagination token. Set to null to start listing steps from the start. If a non-null pagination token is returned in a result, pass its value in here to list more steps.
listJobs_maxResults :: Lens' ListJobs (Maybe Natural) Source #
The maximum number of records to list in a single response.
Destructuring the Response
data ListJobsResponse Source #
The maximum number of records to list in a single response.
See: newListJobsResponse
smart constructor.
ListJobsResponse' | |
|
Instances
Create a value of ListJobsResponse
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:ListJobs'
, listJobsResponse_nextToken
- A pagination token. If non-null the pagination token is returned in a
result. Pass its value in another request to retrieve more entries.
$sel:httpStatus:ListJobsResponse'
, listJobsResponse_httpStatus
- The response's http status code.
$sel:jobSummaries:ListJobsResponse'
, listJobsResponse_jobSummaries
- The result structure for the list job result request.
Response Lenses
listJobsResponse_nextToken :: Lens' ListJobsResponse (Maybe Text) Source #
A pagination token. If non-null the pagination token is returned in a result. Pass its value in another request to retrieve more entries.
listJobsResponse_httpStatus :: Lens' ListJobsResponse Int Source #
The response's http status code.
listJobsResponse_jobSummaries :: Lens' ListJobsResponse [JobSummary] Source #
The result structure for the list job result request.