Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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.
Synopsis
- data CompleteSnapshot = CompleteSnapshot' {}
- newCompleteSnapshot :: Text -> Natural -> CompleteSnapshot
- completeSnapshot_checksumAlgorithm :: Lens' CompleteSnapshot (Maybe ChecksumAlgorithm)
- completeSnapshot_checksum :: Lens' CompleteSnapshot (Maybe Text)
- completeSnapshot_checksumAggregationMethod :: Lens' CompleteSnapshot (Maybe ChecksumAggregationMethod)
- completeSnapshot_snapshotId :: Lens' CompleteSnapshot Text
- completeSnapshot_changedBlocksCount :: Lens' CompleteSnapshot Natural
- data CompleteSnapshotResponse = CompleteSnapshotResponse' {
- status :: Maybe Status
- httpStatus :: Int
- newCompleteSnapshotResponse :: Int -> CompleteSnapshotResponse
- completeSnapshotResponse_status :: Lens' CompleteSnapshotResponse (Maybe Status)
- completeSnapshotResponse_httpStatus :: Lens' CompleteSnapshotResponse Int
Creating a Request
data CompleteSnapshot Source #
See: newCompleteSnapshot
smart constructor.
CompleteSnapshot' | |
|
Instances
:: Text | |
-> Natural | |
-> CompleteSnapshot |
Create a value of CompleteSnapshot
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:checksumAlgorithm:CompleteSnapshot'
, completeSnapshot_checksumAlgorithm
- The algorithm used to generate the checksum. Currently, the only
supported algorithm is SHA256
.
$sel:checksum:CompleteSnapshot'
, completeSnapshot_checksum
- 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.
$sel:checksumAggregationMethod:CompleteSnapshot'
, completeSnapshot_checksumAggregationMethod
- The aggregation method used to generate the checksum. Currently, the
only supported aggregation method is LINEAR
.
$sel:snapshotId:CompleteSnapshot'
, completeSnapshot_snapshotId
- The ID of the snapshot.
$sel:changedBlocksCount:CompleteSnapshot'
, completeSnapshot_changedBlocksCount
- The number of blocks that were written to the snapshot.
Request Lenses
completeSnapshot_checksumAlgorithm :: Lens' CompleteSnapshot (Maybe ChecksumAlgorithm) Source #
The algorithm used to generate the checksum. Currently, the only
supported algorithm is SHA256
.
completeSnapshot_checksum :: Lens' CompleteSnapshot (Maybe Text) Source #
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.
completeSnapshot_checksumAggregationMethod :: Lens' CompleteSnapshot (Maybe ChecksumAggregationMethod) Source #
The aggregation method used to generate the checksum. Currently, the
only supported aggregation method is LINEAR
.
completeSnapshot_snapshotId :: Lens' CompleteSnapshot Text Source #
The ID of the snapshot.
completeSnapshot_changedBlocksCount :: Lens' CompleteSnapshot Natural Source #
The number of blocks that were written to the snapshot.
Destructuring the Response
data CompleteSnapshotResponse Source #
See: newCompleteSnapshotResponse
smart constructor.
CompleteSnapshotResponse' | |
|
Instances
newCompleteSnapshotResponse Source #
Create a value of CompleteSnapshotResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:status:CompleteSnapshotResponse'
, completeSnapshotResponse_status
- The status of the snapshot.
$sel:httpStatus:CompleteSnapshotResponse'
, completeSnapshotResponse_httpStatus
- The response's http status code.
Response Lenses
completeSnapshotResponse_status :: Lens' CompleteSnapshotResponse (Maybe Status) Source #
The status of the snapshot.
completeSnapshotResponse_httpStatus :: Lens' CompleteSnapshotResponse Int Source #
The response's http status code.