AmplifyGen3 / Client / create_source_upload

create_source_upload

AmplifyGen3.Client.create_source_upload(**kwargs)

Creates a source upload and returns a presigned URL for uploading application source artifacts from .zip files.

See also: AWS API Documentation

Request Syntax

response = client.create_source_upload(
    ZipUpload={
        'Digest': 'string'
    }
)
Parameters:

ZipUpload (dict) –

[REQUIRED]

The .zip file to upload as the source.

  • Digest (string) – [REQUIRED]

    The digest of the uploaded .zip file.

Return type:

dict

Returns:

Response Syntax

{
    'SourceUploadId': 'string',
    'ZipUpload': {
        'Digest': 'string',
        'UploadUrl': 'string',
        'UrlExpiresAt': datetime(2015, 1, 1)
    },
    'UploadExpiresAt': datetime(2015, 1, 1)
}

Response Structure

  • (dict) –

    • SourceUploadId (string) –

      The ID of the source upload.

    • ZipUpload (dict) –

      The upload details, including the presigned URL for uploading the .zip file.

      • Digest (string) –

        The digest of the uploaded .zip file.

      • UploadUrl (string) –

        The presigned URL to upload the .zip file to.

      • UrlExpiresAt (datetime) –

        The time at which the URL expires. The value is in ISO-8601 format.

    • UploadExpiresAt (datetime) –

      The time at which the upload expires. The value is in ISO-8601 format.

Exceptions

  • AmplifyGen3.Client.exceptions.ThrottlingException

  • AmplifyGen3.Client.exceptions.AccessDeniedException

  • AmplifyGen3.Client.exceptions.ValidationException

  • AmplifyGen3.Client.exceptions.InternalServerException