Amplify / Client / start_job
start_job#
- Amplify.Client.start_job(**kwargs)#
Starts a new job for a branch of an Amplify app.
See also: AWS API Documentation
Request Syntax
response = client.start_job( appId='string', branchName='string', jobId='string', jobType='RELEASE'|'RETRY'|'MANUAL'|'WEB_HOOK', jobReason='string', commitId='string', commitMessage='string', commitTime=datetime(2015, 1, 1) )
- Parameters:
appId (string) –
[REQUIRED]
The unique ID for an Amplify app.
branchName (string) –
[REQUIRED]
The branch name for the job.
jobId (string) – The unique ID for an existing job. This is required if the value of
jobTypeisRETRY.jobType (string) –
[REQUIRED]
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 typeRETRYretries an existing job. If the job type value isRETRY, thejobIdis also required.jobReason (string) – A descriptive reason for starting this job.
commitId (string) – The commit ID from a third-party repository provider for the job.
commitMessage (string) – The commit message from a third-party repository provider for the job.
commitTime (datetime) – The commit date and time for the job.
- Return type:
dict
- Returns:
Response Syntax
{ 'jobSummary': { 'jobArn': 'string', 'jobId': 'string', 'commitId': 'string', 'commitMessage': 'string', 'commitTime': datetime(2015, 1, 1), 'startTime': datetime(2015, 1, 1), 'status': 'PENDING'|'PROVISIONING'|'RUNNING'|'FAILED'|'SUCCEED'|'CANCELLING'|'CANCELLED', 'endTime': datetime(2015, 1, 1), 'jobType': 'RELEASE'|'RETRY'|'MANUAL'|'WEB_HOOK' } }
Response Structure
(dict) –
The result structure for the run job request.
jobSummary (dict) –
The summary for the job.
jobArn (string) –
The Amazon Resource Name (ARN) for the job.
jobId (string) –
The unique ID for the job.
commitId (string) –
The commit ID from a third-party repository provider for the job.
commitMessage (string) –
The commit message from a third-party repository provider for the job.
commitTime (datetime) –
The commit date and time for the job.
startTime (datetime) –
The start date and time for the job.
status (string) –
The current status for the job.
endTime (datetime) –
The end date and time for the job.
jobType (string) –
The type for the job. If the value is
RELEASE, the job was manually released from its source by using theStartJobAPI. If the value isRETRY, the job was manually retried using theStartJobAPI. If the value isWEB_HOOK, the job was automatically triggered by webhooks.
Exceptions
Amplify.Client.exceptions.BadRequestExceptionAmplify.Client.exceptions.UnauthorizedExceptionAmplify.Client.exceptions.InternalFailureExceptionAmplify.Client.exceptions.NotFoundExceptionAmplify.Client.exceptions.LimitExceededException