complete_snapshot
(**kwargs)¶Seals and completes the snapshot after all of the required blocks of data have been written to it. Completing the snapshot changes the status to completed
. You cannot write new blocks to a snapshot after it has been completed.
See also: AWS API Documentation
Request Syntax
response = client.complete_snapshot(
SnapshotId='string',
ChangedBlocksCount=123,
Checksum='string',
ChecksumAlgorithm='SHA256',
ChecksumAggregationMethod='LINEAR'
)
[REQUIRED]
The ID of the snapshot.
[REQUIRED]
The number of blocks that were written to the snapshot.
An aggregated Base-64 SHA256 checksum based on the checksums of each written block.
To generate the aggregated checksum using the linear aggregation method, arrange the checksums for each written block in ascending order of their block index, concatenate them to form a single string, and then generate the checksum on the entire string using the SHA256 algorithm.
SHA256
.LINEAR
.dict
Response Syntax
{
'Status': 'completed'|'pending'|'error'
}
Response Structure
(dict) --
Status (string) --
The status of the snapshot.
Exceptions
EBS.Client.exceptions.AccessDeniedException
EBS.Client.exceptions.ValidationException
EBS.Client.exceptions.ResourceNotFoundException
EBS.Client.exceptions.RequestThrottledException
EBS.Client.exceptions.ServiceQuotaExceededException
EBS.Client.exceptions.InternalServerException