aws_sdk_redshift/client/
describe_resize.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 [`DescribeResize`](crate::operation::describe_resize::builders::DescribeResizeFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`cluster_identifier(impl Into<String>)`](crate::operation::describe_resize::builders::DescribeResizeFluentBuilder::cluster_identifier) / [`set_cluster_identifier(Option<String>)`](crate::operation::describe_resize::builders::DescribeResizeFluentBuilder::set_cluster_identifier):<br>required: **true**<br><p>The unique identifier of a cluster whose resize progress you are requesting. This parameter is case-sensitive.</p> <p>By default, resize operations for all clusters defined for an Amazon Web Services account are returned.</p><br>
7    /// - On success, responds with [`DescribeResizeOutput`](crate::operation::describe_resize::DescribeResizeOutput) with field(s):
8    ///   - [`target_node_type(Option<String>)`](crate::operation::describe_resize::DescribeResizeOutput::target_node_type): <p>The node type that the cluster will have after the resize operation is complete.</p>
9    ///   - [`target_number_of_nodes(Option<i32>)`](crate::operation::describe_resize::DescribeResizeOutput::target_number_of_nodes): <p>The number of nodes that the cluster will have after the resize operation is complete.</p>
10    ///   - [`target_cluster_type(Option<String>)`](crate::operation::describe_resize::DescribeResizeOutput::target_cluster_type): <p>The cluster type after the resize operation is complete.</p> <p>Valid Values: <code>multi-node</code> | <code>single-node</code></p>
11    ///   - [`status(Option<String>)`](crate::operation::describe_resize::DescribeResizeOutput::status): <p>The status of the resize operation.</p> <p>Valid Values: <code>NONE</code> | <code>IN_PROGRESS</code> | <code>FAILED</code> | <code>SUCCEEDED</code> | <code>CANCELLING</code></p>
12    ///   - [`import_tables_completed(Option<Vec::<String>>)`](crate::operation::describe_resize::DescribeResizeOutput::import_tables_completed): <p>The names of tables that have been completely imported .</p> <p>Valid Values: List of table names.</p>
13    ///   - [`import_tables_in_progress(Option<Vec::<String>>)`](crate::operation::describe_resize::DescribeResizeOutput::import_tables_in_progress): <p>The names of tables that are being currently imported.</p> <p>Valid Values: List of table names.</p>
14    ///   - [`import_tables_not_started(Option<Vec::<String>>)`](crate::operation::describe_resize::DescribeResizeOutput::import_tables_not_started): <p>The names of tables that have not been yet imported.</p> <p>Valid Values: List of table names</p>
15    ///   - [`avg_resize_rate_in_mega_bytes_per_second(Option<f64>)`](crate::operation::describe_resize::DescribeResizeOutput::avg_resize_rate_in_mega_bytes_per_second): <p>The average rate of the resize operation over the last few minutes, measured in megabytes per second. After the resize operation completes, this value shows the average rate of the entire resize operation.</p>
16    ///   - [`total_resize_data_in_mega_bytes(Option<i64>)`](crate::operation::describe_resize::DescribeResizeOutput::total_resize_data_in_mega_bytes): <p>The estimated total amount of data, in megabytes, on the cluster before the resize operation began.</p>
17    ///   - [`progress_in_mega_bytes(Option<i64>)`](crate::operation::describe_resize::DescribeResizeOutput::progress_in_mega_bytes): <p>While the resize operation is in progress, this value shows the current amount of data, in megabytes, that has been processed so far. When the resize operation is complete, this value shows the total amount of data, in megabytes, on the cluster, which may be more or less than TotalResizeDataInMegaBytes (the estimated total amount of data before resize).</p>
18    ///   - [`elapsed_time_in_seconds(Option<i64>)`](crate::operation::describe_resize::DescribeResizeOutput::elapsed_time_in_seconds): <p>The amount of seconds that have elapsed since the resize operation began. After the resize operation completes, this value shows the total actual time, in seconds, for the resize operation.</p>
19    ///   - [`estimated_time_to_completion_in_seconds(Option<i64>)`](crate::operation::describe_resize::DescribeResizeOutput::estimated_time_to_completion_in_seconds): <p>The estimated time remaining, in seconds, until the resize operation is complete. This value is calculated based on the average resize rate and the estimated amount of data remaining to be processed. Once the resize operation is complete, this value will be 0.</p>
20    ///   - [`resize_type(Option<String>)`](crate::operation::describe_resize::DescribeResizeOutput::resize_type): <p>An enum with possible values of <code>ClassicResize</code> and <code>ElasticResize</code>. These values describe the type of resize operation being performed.</p>
21    ///   - [`message(Option<String>)`](crate::operation::describe_resize::DescribeResizeOutput::message): <p>An optional string to provide additional details about the resize action.</p>
22    ///   - [`target_encryption_type(Option<String>)`](crate::operation::describe_resize::DescribeResizeOutput::target_encryption_type): <p>The type of encryption for the cluster after the resize is complete.</p> <p>Possible values are <code>KMS</code> and <code>None</code>.</p>
23    ///   - [`data_transfer_progress_percent(Option<f64>)`](crate::operation::describe_resize::DescribeResizeOutput::data_transfer_progress_percent): <p>The percent of data transferred from source cluster to target cluster.</p>
24    /// - On failure, responds with [`SdkError<DescribeResizeError>`](crate::operation::describe_resize::DescribeResizeError)
25    pub fn describe_resize(&self) -> crate::operation::describe_resize::builders::DescribeResizeFluentBuilder {
26        crate::operation::describe_resize::builders::DescribeResizeFluentBuilder::new(self.handle.clone())
27    }
28}