EndUserMessaging / Client / list_jobs
list_jobs¶
- EndUserMessaging.Client.list_jobs(**kwargs)¶
Retrieves a paginated list of the asynchronous jobs in your account. You can filter the results by status, brand profile, or operation type.
See also: AWS API Documentation
Request Syntax
response = client.list_jobs( maxResults=123, nextToken='string', status='SUCCESS'|'PROCESSING'|'FAILED', brandProfileId='string', operationType='string' )
- Parameters:
maxResults (integer) – The maximum number of results to return per page.
nextToken (string) – The token to retrieve the next page of results. This value is returned when more results are available, and is null when there are no more results to return.
status (string) – Filters the results to jobs that have the specified status.
brandProfileId (string) – Filters the results to jobs for the specified brand profile.
operationType (string) – Filters the results to jobs of the specified operation type.
- Return type:
dict
- Returns:
Response Syntax
{ 'jobs': [ { 'jobId': 'string', 'status': 'SUCCESS'|'PROCESSING'|'FAILED', 'operationType': 'string', 'createdAt': datetime(2015, 1, 1), 'updatedAt': datetime(2015, 1, 1), 'brandProfileId': 'string', 'errorCode': 'string', 'errorMessage': 'string', 'resources': [ { 'resourceType': 'REGISTRATION'|'BRAND_PROFILE', 'resourceId': 'string', 'resourceArn': 'string' }, ] }, ], 'nextToken': 'string' }
Response Structure
(dict) –
jobs (list) –
The list of asynchronous jobs.
(dict) –
Contains summary information about an asynchronous job in a list response.
jobId (string) –
The unique identifier of the asynchronous job. Use the GetJob operation to check the status of the job and to retrieve its results.
status (string) –
The current lifecycle status of the job.
operationType (string) –
The type of mutating operation that created the job.
createdAt (datetime) –
The time when the resource was created, in Unix epoch time.
updatedAt (datetime) –
The time when the resource was last updated, in Unix epoch time.
brandProfileId (string) –
The brand profile that the job operates on. This value is absent for operations that create a brand profile.
errorCode (string) –
A machine-readable code that identifies why the job failed. This value is present only when the job status is FAILED.
errorMessage (string) –
A human-readable description of why the job failed. This value is present only when the job status is FAILED.
resources (list) –
The resources that were created or updated by the job.
(dict) –
Contains information about a resource that was created or updated by an asynchronous job.
resourceType (string) –
The type of the resource that the job created or updated.
resourceId (string) –
The identifier of the resource that the job created or updated.
resourceArn (string) –
The Amazon Resource Name (ARN) of the resource.
nextToken (string) –
The token to retrieve the next page of results. This value is returned when more results are available, and is null when there are no more results to return.
Exceptions
EndUserMessaging.Client.exceptions.ValidationExceptionEndUserMessaging.Client.exceptions.ThrottlingExceptionEndUserMessaging.Client.exceptions.AccessDeniedExceptionEndUserMessaging.Client.exceptions.InternalServerException