start_job
¶
start_job(
app_id: AppId,
branch_name: BranchName,
job_type: JobType,
*,
config_overrides: Optional[AmplifyClientConfig] = 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/amplify.py
2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 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 | |