EMRServerless / Client / list_job_run_attempts
list_job_run_attempts#
- EMRServerless.Client.list_job_run_attempts(**kwargs)#
- Lists all attempt of a job run. - See also: AWS API Documentation - Request Syntax- response = client.list_job_run_attempts( applicationId='string', jobRunId='string', nextToken='string', maxResults=123 ) - Parameters:
- applicationId (string) – - [REQUIRED] - The ID of the application for which to list job runs. 
- jobRunId (string) – - [REQUIRED] - The ID of the job run to list. 
- nextToken (string) – The token for the next set of job run attempt results. 
- maxResults (integer) – The maximum number of job run attempts to list. 
 
- Return type:
- dict 
- Returns:
- Response Syntax- { 'jobRunAttempts': [ { 'applicationId': 'string', 'id': 'string', 'name': 'string', 'mode': 'BATCH'|'STREAMING', 'arn': 'string', 'createdBy': 'string', 'jobCreatedAt': datetime(2015, 1, 1), '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', 'attempt': 123 }, ], 'nextToken': 'string' } - Response Structure- (dict) – - jobRunAttempts (list) – - The array of the listed job run attempt objects. - (dict) – - The summary of attributes associated with a job run attempt. - applicationId (string) – - The ID of the application the job is running on. 
- id (string) – - The ID of the job run attempt. 
- name (string) – - The name of the job run attempt. 
- mode (string) – - The mode of the job run attempt. 
- arn (string) – - The Amazon Resource Name (ARN) of the job run. 
- createdBy (string) – - The user who created the job run. 
- jobCreatedAt (datetime) – - The date and time of when the job run was created. 
- createdAt (datetime) – - The date and time when the job run attempt was created. 
- updatedAt (datetime) – - The date and time of when the job run attempt was last updated. 
- executionRole (string) – - The Amazon Resource Name (ARN) of the execution role of the job run.. 
- state (string) – - The state of the job run attempt. 
- stateDetails (string) – - The state details of the job run attempt. 
- releaseLabel (string) – - The Amazon EMR release label of the job run attempt. 
- type (string) – - The type of the job run, such as Spark or Hive. 
- attempt (integer) – - The attempt number of the job run execution. 
 
 
- nextToken (string) – - The output displays the token for the next set of application results. This is required for pagination and is available as a response of the previous request. 
 
 
 - Exceptions- EMRServerless.Client.exceptions.ValidationException
- EMRServerless.Client.exceptions.ResourceNotFoundException
- EMRServerless.Client.exceptions.InternalServerException