EMRServerless / Client / list_job_runs

list_job_runs#

EMRServerless.Client.list_job_runs(**kwargs)#

Lists job runs based on a set of parameters.

See also: AWS API Documentation

Request Syntax

response = client.list_job_runs(
    applicationId='string',
    nextToken='string',
    maxResults=123,
    createdAtAfter=datetime(2015, 1, 1),
    createdAtBefore=datetime(2015, 1, 1),
    states=[
        'SUBMITTED'|'PENDING'|'SCHEDULED'|'RUNNING'|'SUCCESS'|'FAILED'|'CANCELLING'|'CANCELLED',
    ]
)
Parameters:
  • applicationId (string) –

    [REQUIRED]

    The ID of the application for which to list the job run.

  • nextToken (string) – The token for the next set of job run results.

  • maxResults (integer) – The maximum number of job runs that can be listed.

  • createdAtAfter (datetime) – The lower bound of the option to filter by creation date and time.

  • createdAtBefore (datetime) – The upper bound of the option to filter by creation date and time.

  • states (list) –

    An optional filter for job run states. Note that if this filter contains multiple states, the resulting list will be grouped by the state.

    • (string) –

Return type:

dict

Returns:

Response Syntax

{
    'jobRuns': [
        {
            'applicationId': 'string',
            'id': 'string',
            'name': 'string',
            'arn': 'string',
            'createdBy': 'string',
            'createdAt': datetime(2015, 1, 1),
            'updatedAt': datetime(2015, 1, 1),
            'executionRole': 'string',
            'state': 'SUBMITTED'|'PENDING'|'SCHEDULED'|'RUNNING'|'SUCCESS'|'FAILED'|'CANCELLING'|'CANCELLED',
            'stateDetails': 'string',
            'releaseLabel': 'string',
            'type': 'string'
        },
    ],
    'nextToken': 'string'
}

Response Structure

  • (dict) –

    • jobRuns (list) –

      The output lists information about the specified job runs.

      • (dict) –

        The summary of attributes associated with a job run.

        • applicationId (string) –

          The ID of the application the job is running on.

        • id (string) –

          The ID of the job run.

        • name (string) –

          The optional job run name. This doesn’t have to be unique.

        • arn (string) –

          The ARN of the job run.

        • createdBy (string) –

          The user who created the job run.

        • createdAt (datetime) –

          The date and time when the job run was created.

        • updatedAt (datetime) –

          The date and time when the job run was last updated.

        • executionRole (string) –

          The execution role ARN of the job run.

        • state (string) –

          The state of the job run.

        • stateDetails (string) –

          The state details of the job run.

        • releaseLabel (string) –

          The Amazon EMR release associated with the application your job is running on.

        • type (string) –

          The type of job run, such as Spark or Hive.

    • nextToken (string) –

      The output displays the token for the next set of job run results. This is required for pagination and is available as a response of the previous request.

Exceptions

  • EMRServerless.Client.exceptions.ValidationException

  • EMRServerless.Client.exceptions.InternalServerException