Amplify / Client / start_deployment

start_deployment#

Amplify.Client.start_deployment(**kwargs)#

Starts a deployment for a manually deployed app. Manually deployed apps are not connected to a repository.

The maximum duration between the CreateDeployment call and the StartDeployment call cannot exceed 8 hours. If the duration exceeds 8 hours, the StartDeployment call and the associated Job will fail.

See also: AWS API Documentation

Request Syntax

response = client.start_deployment(
    appId='string',
    branchName='string',
    jobId='string',
    sourceUrl='string'
)
Parameters:
  • appId (string) –

    [REQUIRED]

    The unique ID for an Amplify app.

  • branchName (string) –

    [REQUIRED]

    The name of the branch to use for the job.

  • jobId (string) – The job ID for this deployment, generated by the create deployment request.

  • sourceUrl (string) – The source URL for this deployment, used when calling start deployment without create deployment. The source URL can be any HTTP GET URL that is publicly accessible and downloads a single .zip file.

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 start a deployment 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 the StartJob API. If the value is RETRY, the job was manually retried using the StartJob API. If the value is WEB_HOOK, the job was automatically triggered by webhooks.

Exceptions

  • Amplify.Client.exceptions.BadRequestException

  • Amplify.Client.exceptions.UnauthorizedException

  • Amplify.Client.exceptions.InternalFailureException

  • Amplify.Client.exceptions.NotFoundException

  • Amplify.Client.exceptions.LimitExceededException