search_jobs
async
¶
search_jobs(
*,
config_overrides: Optional[AsyncMediaConvertClientConfig] = None,
input_file: Optional[__string] = None,
max_results: Optional[__integerMin1Max20] = None,
next_token: Optional[__string] = None,
order: Optional[Order] = None,
queue: Optional[__string] = None,
status: Optional[JobStatus] = None,
) -> SearchJobsResponse
Retrieve a JSON array that includes job details for up to twenty of your most recent jobs. Optionally filter results further according to input file, queue, or status. To retrieve the twenty next most recent jobs, use the nextToken string returned with the array.
Parameters:
-
input_file(Optional[__string], default:None) –Optional. Provide your input file URL or your partial input file name. The maximum length for an input file is 300 characters.
-
max_results(Optional[__integerMin1Max20], default:None) –Optional. Number of jobs, up to twenty, that will be returned at one time.
-
next_token(Optional[__string], default:None) –Optional. Use this string, provided with the response to a previous request, to request the next batch of jobs.
-
order(Optional[Order], default:None) –Optional. When you request lists of resources, you can specify whether they are sorted in ASCENDING or DESCENDING order. Default varies by resource.
-
queue(Optional[__string], default:None) –Optional. Provide a queue name, or a queue ARN, to return only jobs from that queue.
-
status(Optional[JobStatus], default:None) –Optional. A job's status can be SUBMITTED, PROGRESSING, COMPLETE, CANCELED, or ERROR.
Raises:
-
BadRequestException–The service can't process your request because of a problem in the request. Please check your request form and syntax.
-
ConflictException–The service couldn't complete your request because there is a conflict with the current state of the resource.
-
ForbiddenException–You don't have permissions for this action with the credentials you sent.
-
InternalServerErrorException–The service encountered an unexpected condition and can't fulfill your request.
-
NotFoundException–The resource you requested doesn't exist.
-
ServiceQuotaExceededException–You attempted to create more resources than the service allows based on service quotas.
-
TooManyRequestsException–Too many requests have been sent in too short of a time. The service limits the rate at which it will accept requests.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_mediaconvert/_services/async_media_convert.py
2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 | |