| 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.Amplify.ListJobs
Description
Lists the jobs for a branch of an Amplify app.
This operation returns paginated results.
Synopsis
- data ListJobs = ListJobs' {
- maxResults :: Maybe Natural
- nextToken :: Maybe Text
- appId :: Text
- branchName :: Text
- newListJobs :: Text -> Text -> ListJobs
- listJobs_maxResults :: Lens' ListJobs (Maybe Natural)
- listJobs_nextToken :: Lens' ListJobs (Maybe Text)
- 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.
Constructors
| ListJobs' | |
Fields
| |
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:maxResults:ListJobs', listJobs_maxResults - The maximum number of records to list in a single response.
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.
ListJobs, listJobs_appId - The unique ID for an Amplify app.
ListJobs, listJobs_branchName - The name for a branch.
Request Lenses
listJobs_maxResults :: Lens' ListJobs (Maybe Natural) Source #
The maximum number of records to list in a single response.
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.
Destructuring the Response
data ListJobsResponse Source #
The maximum number of records to list in a single response.
See: newListJobsResponse smart constructor.
Constructors
| ListJobsResponse' | |
Fields
| |
Instances
Arguments
| :: Int | |
| -> ListJobsResponse |
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:
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.