start_job
async
¶
start_job(
app_id: AppId,
branch_name: BranchName,
job_type: JobType,
*,
config_overrides: Optional[AsyncAmplifyClientConfig] = None,
job_id: Optional[JobId] = None,
job_reason: Optional[JobReason] = None,
commit_id: Optional[CommitId] = None,
commit_message: Optional[CommitMessage] = None,
commit_time: Optional[CommitTime] = None,
) -> StartJobResult
Starts a new job for a branch of an Amplify app.
Parameters:
-
app_id(AppId) –The unique ID for an Amplify app.
-
branch_name(BranchName) –The name of the branch to use for the job.
-
job_id(Optional[JobId], default:None) –The unique ID for an existing job. This is required if the value of
jobTypeisRETRY. -
job_type(JobType) –Describes the type for the job. The job type
RELEASEstarts a new job with the latest change from the specified branch. This value is available only for apps that are connected to a repository.The job type
RETRYretries an existing job. If the job type value isRETRY, thejobIdis also required. -
job_reason(Optional[JobReason], default:None) –A descriptive reason for starting the job.
-
commit_id(Optional[CommitId], default:None) –The commit ID from a third-party repository provider for the job.
-
commit_message(Optional[CommitMessage], default:None) –The commit message from a third-party repository provider for the job.
-
commit_time(Optional[CommitTime], default:None) –The commit date and time for the job.
Raises:
-
BadRequestException–A request contains unexpected data.
-
InternalFailureException–The service failed to perform an operation due to an internal issue.
-
LimitExceededException–A resource could not be created because service quotas were exceeded.
-
NotFoundException–An entity was not found during an operation.
-
UnauthorizedException–An operation failed due to a lack of access.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_amplify/_services/async_amplify.py
2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 | |