pub struct CreateClusterSnapshot<C = DynConnector, M = DefaultMiddleware, R = Standard> { /* private fields */ }
Expand description
Fluent builder constructing a request to CreateClusterSnapshot
.
Creates a manual snapshot of the specified cluster. The cluster must be in the available
state.
For more information about working with snapshots, go to Amazon Redshift Snapshots in the Amazon Redshift Cluster Management Guide.
Implementations
impl<C, M, R> CreateClusterSnapshot<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> CreateClusterSnapshot<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<CreateClusterSnapshotOutput, SdkError<CreateClusterSnapshotError>> where
R::Policy: SmithyRetryPolicy<CreateClusterSnapshotInputOperationOutputAlias, CreateClusterSnapshotOutput, CreateClusterSnapshotError, CreateClusterSnapshotInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<CreateClusterSnapshotOutput, SdkError<CreateClusterSnapshotError>> where
R::Policy: SmithyRetryPolicy<CreateClusterSnapshotInputOperationOutputAlias, CreateClusterSnapshotOutput, CreateClusterSnapshotError, CreateClusterSnapshotInputOperationRetryAlias>,
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
A unique identifier for the snapshot that you are requesting. This identifier must be unique for all snapshots within the Amazon Web Services account.
Constraints:
-
Cannot be null, empty, or blank
-
Must contain from 1 to 255 alphanumeric characters or hyphens
-
First character must be a letter
-
Cannot end with a hyphen or contain two consecutive hyphens
Example: my-snapshot-id
A unique identifier for the snapshot that you are requesting. This identifier must be unique for all snapshots within the Amazon Web Services account.
Constraints:
-
Cannot be null, empty, or blank
-
Must contain from 1 to 255 alphanumeric characters or hyphens
-
First character must be a letter
-
Cannot end with a hyphen or contain two consecutive hyphens
Example: my-snapshot-id
The cluster identifier for which you want a snapshot.
The cluster identifier for which you want a snapshot.
The number of days that a manual snapshot is retained. If the value is -1, the manual snapshot is retained indefinitely.
The value must be either -1 or an integer between 1 and 3,653.
The default value is -1.
The number of days that a manual snapshot is retained. If the value is -1, the manual snapshot is retained indefinitely.
The value must be either -1 or an integer between 1 and 3,653.
The default value is -1.
Appends an item to Tags
.
To override the contents of this collection use set_tags
.
A list of tag instances.
A list of tag instances.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !RefUnwindSafe for CreateClusterSnapshot<C, M, R>
impl<C, M, R> Send for CreateClusterSnapshot<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for CreateClusterSnapshot<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for CreateClusterSnapshot<C, M, R>
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !UnwindSafe for CreateClusterSnapshot<C, M, R>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more