BackupStorage / Client / put_chunk

put_chunk#

BackupStorage.Client.put_chunk(**kwargs)#

Upload chunk.

See also: AWS API Documentation

Request Syntax

response = client.put_chunk(
    BackupJobId='string',
    UploadId='string',
    ChunkIndex=123,
    Data=b'bytes'|file,
    Length=123,
    Checksum='string',
    ChecksumAlgorithm='SHA256'
)
Parameters:
  • BackupJobId (string) – [REQUIRED] Backup job Id for the in-progress backup.

  • UploadId (string) – [REQUIRED] Upload Id for the in-progress upload.

  • ChunkIndex (integer) – [REQUIRED] Describes this chunk’s position relative to the other chunks

  • Data (bytes or seekable file-like object) – [REQUIRED] Data to be uploaded

  • Length (integer) – [REQUIRED] Data length

  • Checksum (string) – [REQUIRED] Data checksum

  • ChecksumAlgorithm (string) – [REQUIRED] Checksum algorithm

Return type:

dict

Returns:

Response Syntax

{
    'ChunkChecksum': 'string',
    'ChunkChecksumAlgorithm': 'SHA256'
}

Response Structure

  • (dict) –

    • ChunkChecksum (string) – Chunk checksum

    • ChunkChecksumAlgorithm (string) – Checksum algorithm

Exceptions