put_chunk

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

  • BackupStorage.Client.exceptions.ServiceUnavailableException
  • BackupStorage.Client.exceptions.ServiceInternalException
  • BackupStorage.Client.exceptions.NotReadableInputStreamException
  • BackupStorage.Client.exceptions.RetryableException
  • BackupStorage.Client.exceptions.IllegalArgumentException
  • BackupStorage.Client.exceptions.ThrottlingException
  • BackupStorage.Client.exceptions.KMSInvalidKeyUsageException
  • BackupStorage.Client.exceptions.AccessDeniedException