aws_sdk_ebs/client/complete_snapshot.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3 /// Constructs a fluent builder for the [`CompleteSnapshot`](crate::operation::complete_snapshot::builders::CompleteSnapshotFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`snapshot_id(impl Into<String>)`](crate::operation::complete_snapshot::builders::CompleteSnapshotFluentBuilder::snapshot_id) / [`set_snapshot_id(Option<String>)`](crate::operation::complete_snapshot::builders::CompleteSnapshotFluentBuilder::set_snapshot_id):<br>required: **true**<br><p>The ID of the snapshot.</p><br>
7 /// - [`changed_blocks_count(i32)`](crate::operation::complete_snapshot::builders::CompleteSnapshotFluentBuilder::changed_blocks_count) / [`set_changed_blocks_count(Option<i32>)`](crate::operation::complete_snapshot::builders::CompleteSnapshotFluentBuilder::set_changed_blocks_count):<br>required: **true**<br><p>The number of blocks that were written to the snapshot.</p><br>
8 /// - [`checksum(impl Into<String>)`](crate::operation::complete_snapshot::builders::CompleteSnapshotFluentBuilder::checksum) / [`set_checksum(Option<String>)`](crate::operation::complete_snapshot::builders::CompleteSnapshotFluentBuilder::set_checksum):<br>required: **false**<br><p>An aggregated Base-64 SHA256 checksum based on the checksums of each written block.</p> <p>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.</p><br>
9 /// - [`checksum_algorithm(ChecksumAlgorithm)`](crate::operation::complete_snapshot::builders::CompleteSnapshotFluentBuilder::checksum_algorithm) / [`set_checksum_algorithm(Option<ChecksumAlgorithm>)`](crate::operation::complete_snapshot::builders::CompleteSnapshotFluentBuilder::set_checksum_algorithm):<br>required: **false**<br><p>The algorithm used to generate the checksum. Currently, the only supported algorithm is <code>SHA256</code>.</p><br>
10 /// - [`checksum_aggregation_method(ChecksumAggregationMethod)`](crate::operation::complete_snapshot::builders::CompleteSnapshotFluentBuilder::checksum_aggregation_method) / [`set_checksum_aggregation_method(Option<ChecksumAggregationMethod>)`](crate::operation::complete_snapshot::builders::CompleteSnapshotFluentBuilder::set_checksum_aggregation_method):<br>required: **false**<br><p>The aggregation method used to generate the checksum. Currently, the only supported aggregation method is <code>LINEAR</code>.</p><br>
11 /// - On success, responds with [`CompleteSnapshotOutput`](crate::operation::complete_snapshot::CompleteSnapshotOutput) with field(s):
12 /// - [`status(Option<Status>)`](crate::operation::complete_snapshot::CompleteSnapshotOutput::status): <p>The status of the snapshot.</p>
13 /// - On failure, responds with [`SdkError<CompleteSnapshotError>`](crate::operation::complete_snapshot::CompleteSnapshotError)
14 pub fn complete_snapshot(&self) -> crate::operation::complete_snapshot::builders::CompleteSnapshotFluentBuilder {
15 crate::operation::complete_snapshot::builders::CompleteSnapshotFluentBuilder::new(self.handle.clone())
16 }
17}