aws_sdk_ebs/client/
list_changed_blocks.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 [`ListChangedBlocks`](crate::operation::list_changed_blocks::builders::ListChangedBlocksFluentBuilder) operation.
4    /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_changed_blocks::builders::ListChangedBlocksFluentBuilder::into_paginator).
5    ///
6    /// - The fluent builder is configurable:
7    ///   - [`first_snapshot_id(impl Into<String>)`](crate::operation::list_changed_blocks::builders::ListChangedBlocksFluentBuilder::first_snapshot_id) / [`set_first_snapshot_id(Option<String>)`](crate::operation::list_changed_blocks::builders::ListChangedBlocksFluentBuilder::set_first_snapshot_id):<br>required: **false**<br><p>The ID of the first snapshot to use for the comparison.</p><important>  <p>The <code>FirstSnapshotID</code> parameter must be specified with a <code>SecondSnapshotId</code> parameter; otherwise, an error occurs.</p> </important><br>
8    ///   - [`second_snapshot_id(impl Into<String>)`](crate::operation::list_changed_blocks::builders::ListChangedBlocksFluentBuilder::second_snapshot_id) / [`set_second_snapshot_id(Option<String>)`](crate::operation::list_changed_blocks::builders::ListChangedBlocksFluentBuilder::set_second_snapshot_id):<br>required: **true**<br><p>The ID of the second snapshot to use for the comparison.</p><important>  <p>The <code>SecondSnapshotId</code> parameter must be specified with a <code>FirstSnapshotID</code> parameter; otherwise, an error occurs.</p> </important><br>
9    ///   - [`next_token(impl Into<String>)`](crate::operation::list_changed_blocks::builders::ListChangedBlocksFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_changed_blocks::builders::ListChangedBlocksFluentBuilder::set_next_token):<br>required: **false**<br><p>The token to request the next page of results.</p> <p>If you specify <b>NextToken</b>, then <b>StartingBlockIndex</b> is ignored.</p><br>
10    ///   - [`max_results(i32)`](crate::operation::list_changed_blocks::builders::ListChangedBlocksFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_changed_blocks::builders::ListChangedBlocksFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of blocks to be returned by the request.</p> <p>Even if additional blocks can be retrieved from the snapshot, the request can return less blocks than <b>MaxResults</b> or an empty array of blocks.</p> <p>To retrieve the next set of blocks from the snapshot, make another request with the returned <b>NextToken</b> value. The value of <b>NextToken</b> is <code>null</code> when there are no more blocks to return.</p><br>
11    ///   - [`starting_block_index(i32)`](crate::operation::list_changed_blocks::builders::ListChangedBlocksFluentBuilder::starting_block_index) / [`set_starting_block_index(Option<i32>)`](crate::operation::list_changed_blocks::builders::ListChangedBlocksFluentBuilder::set_starting_block_index):<br>required: **false**<br><p>The block index from which the comparison should start.</p> <p>The list in the response will start from this block index or the next valid block index in the snapshots.</p> <p>If you specify <b>NextToken</b>, then <b>StartingBlockIndex</b> is ignored.</p><br>
12    /// - On success, responds with [`ListChangedBlocksOutput`](crate::operation::list_changed_blocks::ListChangedBlocksOutput) with field(s):
13    ///   - [`changed_blocks(Option<Vec::<ChangedBlock>>)`](crate::operation::list_changed_blocks::ListChangedBlocksOutput::changed_blocks): <p>An array of objects containing information about the changed blocks.</p>
14    ///   - [`expiry_time(Option<DateTime>)`](crate::operation::list_changed_blocks::ListChangedBlocksOutput::expiry_time): <p>The time when the <code>BlockToken</code> expires.</p>
15    ///   - [`volume_size(Option<i64>)`](crate::operation::list_changed_blocks::ListChangedBlocksOutput::volume_size): <p>The size of the volume in GB.</p>
16    ///   - [`block_size(Option<i32>)`](crate::operation::list_changed_blocks::ListChangedBlocksOutput::block_size): <p>The size of the blocks in the snapshot, in bytes.</p>
17    ///   - [`next_token(Option<String>)`](crate::operation::list_changed_blocks::ListChangedBlocksOutput::next_token): <p>The token to use to retrieve the next page of results. This value is null when there are no more results to return.</p>
18    /// - On failure, responds with [`SdkError<ListChangedBlocksError>`](crate::operation::list_changed_blocks::ListChangedBlocksError)
19    pub fn list_changed_blocks(&self) -> crate::operation::list_changed_blocks::builders::ListChangedBlocksFluentBuilder {
20        crate::operation::list_changed_blocks::builders::ListChangedBlocksFluentBuilder::new(self.handle.clone())
21    }
22}