aws_sdk_redshiftserverless/client/
convert_recovery_point_to_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 [`ConvertRecoveryPointToSnapshot`](crate::operation::convert_recovery_point_to_snapshot::builders::ConvertRecoveryPointToSnapshotFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`recovery_point_id(impl Into<String>)`](crate::operation::convert_recovery_point_to_snapshot::builders::ConvertRecoveryPointToSnapshotFluentBuilder::recovery_point_id) / [`set_recovery_point_id(Option<String>)`](crate::operation::convert_recovery_point_to_snapshot::builders::ConvertRecoveryPointToSnapshotFluentBuilder::set_recovery_point_id):<br>required: **true**<br><p>The unique identifier of the recovery point.</p><br>
7    ///   - [`snapshot_name(impl Into<String>)`](crate::operation::convert_recovery_point_to_snapshot::builders::ConvertRecoveryPointToSnapshotFluentBuilder::snapshot_name) / [`set_snapshot_name(Option<String>)`](crate::operation::convert_recovery_point_to_snapshot::builders::ConvertRecoveryPointToSnapshotFluentBuilder::set_snapshot_name):<br>required: **true**<br><p>The name of the snapshot.</p><br>
8    ///   - [`retention_period(i32)`](crate::operation::convert_recovery_point_to_snapshot::builders::ConvertRecoveryPointToSnapshotFluentBuilder::retention_period) / [`set_retention_period(Option<i32>)`](crate::operation::convert_recovery_point_to_snapshot::builders::ConvertRecoveryPointToSnapshotFluentBuilder::set_retention_period):<br>required: **false**<br><p>How long to retain the snapshot.</p><br>
9    ///   - [`tags(Tag)`](crate::operation::convert_recovery_point_to_snapshot::builders::ConvertRecoveryPointToSnapshotFluentBuilder::tags) / [`set_tags(Option<Vec::<Tag>>)`](crate::operation::convert_recovery_point_to_snapshot::builders::ConvertRecoveryPointToSnapshotFluentBuilder::set_tags):<br>required: **false**<br><p>An array of <a href="https://docs.aws.amazon.com/redshift-serverless/latest/APIReference/API_Tag.html">Tag objects</a> to associate with the created snapshot.</p><br>
10    /// - On success, responds with [`ConvertRecoveryPointToSnapshotOutput`](crate::operation::convert_recovery_point_to_snapshot::ConvertRecoveryPointToSnapshotOutput) with field(s):
11    ///   - [`snapshot(Option<Snapshot>)`](crate::operation::convert_recovery_point_to_snapshot::ConvertRecoveryPointToSnapshotOutput::snapshot): <p>The snapshot converted from the recovery point.</p>
12    /// - On failure, responds with [`SdkError<ConvertRecoveryPointToSnapshotError>`](crate::operation::convert_recovery_point_to_snapshot::ConvertRecoveryPointToSnapshotError)
13    pub fn convert_recovery_point_to_snapshot(
14        &self,
15    ) -> crate::operation::convert_recovery_point_to_snapshot::builders::ConvertRecoveryPointToSnapshotFluentBuilder {
16        crate::operation::convert_recovery_point_to_snapshot::builders::ConvertRecoveryPointToSnapshotFluentBuilder::new(self.handle.clone())
17    }
18}