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 |
Retrieves metadata for all runs of a given job definition.
This operation returns paginated results.
Synopsis
- data GetJobRuns = GetJobRuns' {}
- newGetJobRuns :: Text -> GetJobRuns
- getJobRuns_nextToken :: Lens' GetJobRuns (Maybe Text)
- getJobRuns_maxResults :: Lens' GetJobRuns (Maybe Natural)
- getJobRuns_jobName :: Lens' GetJobRuns Text
- data GetJobRunsResponse = GetJobRunsResponse' {}
- newGetJobRunsResponse :: Int -> GetJobRunsResponse
- getJobRunsResponse_nextToken :: Lens' GetJobRunsResponse (Maybe Text)
- getJobRunsResponse_jobRuns :: Lens' GetJobRunsResponse (Maybe [JobRun])
- getJobRunsResponse_httpStatus :: Lens' GetJobRunsResponse Int
Creating a Request
data GetJobRuns Source #
See: newGetJobRuns
smart constructor.
Instances
Create a value of GetJobRuns
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:GetJobRuns'
, getJobRuns_nextToken
- A continuation token, if this is a continuation call.
$sel:maxResults:GetJobRuns'
, getJobRuns_maxResults
- The maximum size of the response.
$sel:jobName:GetJobRuns'
, getJobRuns_jobName
- The name of the job definition for which to retrieve all job runs.
Request Lenses
getJobRuns_nextToken :: Lens' GetJobRuns (Maybe Text) Source #
A continuation token, if this is a continuation call.
getJobRuns_maxResults :: Lens' GetJobRuns (Maybe Natural) Source #
The maximum size of the response.
getJobRuns_jobName :: Lens' GetJobRuns Text Source #
The name of the job definition for which to retrieve all job runs.
Destructuring the Response
data GetJobRunsResponse Source #
See: newGetJobRunsResponse
smart constructor.
Instances
newGetJobRunsResponse Source #
Create a value of GetJobRunsResponse
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:GetJobRuns'
, getJobRunsResponse_nextToken
- A continuation token, if not all requested job runs have been returned.
$sel:jobRuns:GetJobRunsResponse'
, getJobRunsResponse_jobRuns
- A list of job-run metadata objects.
$sel:httpStatus:GetJobRunsResponse'
, getJobRunsResponse_httpStatus
- The response's http status code.
Response Lenses
getJobRunsResponse_nextToken :: Lens' GetJobRunsResponse (Maybe Text) Source #
A continuation token, if not all requested job runs have been returned.
getJobRunsResponse_jobRuns :: Lens' GetJobRunsResponse (Maybe [JobRun]) Source #
A list of job-run metadata objects.
getJobRunsResponse_httpStatus :: Lens' GetJobRunsResponse Int Source #
The response's http status code.