aws_sdk_redshift/client/
rotate_encryption_key.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 [`RotateEncryptionKey`](crate::operation::rotate_encryption_key::builders::RotateEncryptionKeyFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`cluster_identifier(impl Into<String>)`](crate::operation::rotate_encryption_key::builders::RotateEncryptionKeyFluentBuilder::cluster_identifier) / [`set_cluster_identifier(Option<String>)`](crate::operation::rotate_encryption_key::builders::RotateEncryptionKeyFluentBuilder::set_cluster_identifier):<br>required: **true**<br><p>The unique identifier of the cluster that you want to rotate the encryption keys for.</p> <p>Constraints: Must be the name of valid cluster that has encryption enabled.</p><br>
7    /// - On success, responds with [`RotateEncryptionKeyOutput`](crate::operation::rotate_encryption_key::RotateEncryptionKeyOutput) with field(s):
8    ///   - [`cluster(Option<Cluster>)`](crate::operation::rotate_encryption_key::RotateEncryptionKeyOutput::cluster): <p>Describes a cluster.</p>
9    /// - On failure, responds with [`SdkError<RotateEncryptionKeyError>`](crate::operation::rotate_encryption_key::RotateEncryptionKeyError)
10    pub fn rotate_encryption_key(&self) -> crate::operation::rotate_encryption_key::builders::RotateEncryptionKeyFluentBuilder {
11        crate::operation::rotate_encryption_key::builders::RotateEncryptionKeyFluentBuilder::new(self.handle.clone())
12    }
13}