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 job runs based on a set of parameters. A job run is a unit of work, such as a Spark jar, PySpark script, or SparkSQL query, that you submit to Amazon EMR on EKS.
This operation returns paginated results.
Synopsis
- data ListJobRuns = ListJobRuns' {
- states :: Maybe [JobRunState]
- createdAfter :: Maybe POSIX
- nextToken :: Maybe Text
- name :: Maybe Text
- maxResults :: Maybe Int
- createdBefore :: Maybe POSIX
- virtualClusterId :: Text
- newListJobRuns :: Text -> ListJobRuns
- listJobRuns_states :: Lens' ListJobRuns (Maybe [JobRunState])
- listJobRuns_createdAfter :: Lens' ListJobRuns (Maybe UTCTime)
- listJobRuns_nextToken :: Lens' ListJobRuns (Maybe Text)
- listJobRuns_name :: Lens' ListJobRuns (Maybe Text)
- listJobRuns_maxResults :: Lens' ListJobRuns (Maybe Int)
- listJobRuns_createdBefore :: Lens' ListJobRuns (Maybe UTCTime)
- listJobRuns_virtualClusterId :: Lens' ListJobRuns Text
- data ListJobRunsResponse = ListJobRunsResponse' {}
- newListJobRunsResponse :: Int -> ListJobRunsResponse
- listJobRunsResponse_nextToken :: Lens' ListJobRunsResponse (Maybe Text)
- listJobRunsResponse_jobRuns :: Lens' ListJobRunsResponse (Maybe [JobRun])
- listJobRunsResponse_httpStatus :: Lens' ListJobRunsResponse Int
Creating a Request
data ListJobRuns Source #
See: newListJobRuns
smart constructor.
ListJobRuns' | |
|
Instances
Create a value of ListJobRuns
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:states:ListJobRuns'
, listJobRuns_states
- The states of the job run.
$sel:createdAfter:ListJobRuns'
, listJobRuns_createdAfter
- The date and time after which the job runs were submitted.
$sel:nextToken:ListJobRuns'
, listJobRuns_nextToken
- The token for the next set of job runs to return.
$sel:name:ListJobRuns'
, listJobRuns_name
- The name of the job run.
$sel:maxResults:ListJobRuns'
, listJobRuns_maxResults
- The maximum number of job runs that can be listed.
$sel:createdBefore:ListJobRuns'
, listJobRuns_createdBefore
- The date and time before which the job runs were submitted.
$sel:virtualClusterId:ListJobRuns'
, listJobRuns_virtualClusterId
- The ID of the virtual cluster for which to list the job run.
Request Lenses
listJobRuns_states :: Lens' ListJobRuns (Maybe [JobRunState]) Source #
The states of the job run.
listJobRuns_createdAfter :: Lens' ListJobRuns (Maybe UTCTime) Source #
The date and time after which the job runs were submitted.
listJobRuns_nextToken :: Lens' ListJobRuns (Maybe Text) Source #
The token for the next set of job runs to return.
listJobRuns_name :: Lens' ListJobRuns (Maybe Text) Source #
The name of the job run.
listJobRuns_maxResults :: Lens' ListJobRuns (Maybe Int) Source #
The maximum number of job runs that can be listed.
listJobRuns_createdBefore :: Lens' ListJobRuns (Maybe UTCTime) Source #
The date and time before which the job runs were submitted.
listJobRuns_virtualClusterId :: Lens' ListJobRuns Text Source #
The ID of the virtual cluster for which to list the job run.
Destructuring the Response
data ListJobRunsResponse Source #
See: newListJobRunsResponse
smart constructor.
Instances
newListJobRunsResponse Source #
Create a value of ListJobRunsResponse
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:ListJobRuns'
, listJobRunsResponse_nextToken
- This output displays the token for the next set of job runs.
$sel:jobRuns:ListJobRunsResponse'
, listJobRunsResponse_jobRuns
- This output lists information about the specified job runs.
$sel:httpStatus:ListJobRunsResponse'
, listJobRunsResponse_httpStatus
- The response's http status code.
Response Lenses
listJobRunsResponse_nextToken :: Lens' ListJobRunsResponse (Maybe Text) Source #
This output displays the token for the next set of job runs.
listJobRunsResponse_jobRuns :: Lens' ListJobRunsResponse (Maybe [JobRun]) Source #
This output lists information about the specified job runs.
listJobRunsResponse_httpStatus :: Lens' ListJobRunsResponse Int Source #
The response's http status code.