Skip to content

/AWS1/CL_EBS=>COMPLETESNAPSHOT()

About CompleteSnapshot

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.

You should always retry requests that receive server (5xx) error responses, and ThrottlingException and RequestThrottledException client error responses. For more information see Error retries in the Amazon Elastic Compute Cloud User Guide.

Method Signature

IMPORTING

Required arguments:

IV_SNAPSHOTID TYPE /AWS1/EBSSNAPSHOTID /AWS1/EBSSNAPSHOTID

The ID of the snapshot.

IV_CHANGEDBLOCKSCOUNT TYPE /AWS1/EBSCHANGEDBLOCKSCOUNT /AWS1/EBSCHANGEDBLOCKSCOUNT

The number of blocks that were written to the snapshot.

Optional arguments:

IV_CHECKSUM TYPE /AWS1/EBSCHECKSUM /AWS1/EBSCHECKSUM

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.

IV_CHECKSUMALGORITHM TYPE /AWS1/EBSCHECKSUMALGORITHM /AWS1/EBSCHECKSUMALGORITHM

The algorithm used to generate the checksum. Currently, the only supported algorithm is SHA256.

IV_CHECKSUMAGGREGATIONMETHOD TYPE /AWS1/EBSCHECKSUMAGGRMETHOD /AWS1/EBSCHECKSUMAGGRMETHOD

The aggregation method used to generate the checksum. Currently, the only supported aggregation method is LINEAR.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_EBSCOMPLSNAPRESPONSE /AWS1/CL_EBSCOMPLSNAPRESPONSE