Struct aws_sdk_redshift::client::fluent_builders::ModifyClusterSnapshot [−][src]
pub struct ModifyClusterSnapshot<C = DynConnector, M = DefaultMiddleware, R = Standard> { /* fields omitted */ }
Expand description
Fluent builder constructing a request to ModifyClusterSnapshot
.
Modifies the settings for a snapshot.
This exanmple modifies the manual retention period setting for a cluster snapshot.
Implementations
impl<C, M, R> ModifyClusterSnapshot<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> ModifyClusterSnapshot<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<ModifyClusterSnapshotOutput, SdkError<ModifyClusterSnapshotError>> where
R::Policy: SmithyRetryPolicy<ModifyClusterSnapshotInputOperationOutputAlias, ModifyClusterSnapshotOutput, ModifyClusterSnapshotError, ModifyClusterSnapshotInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<ModifyClusterSnapshotOutput, SdkError<ModifyClusterSnapshotError>> where
R::Policy: SmithyRetryPolicy<ModifyClusterSnapshotInputOperationOutputAlias, ModifyClusterSnapshotOutput, ModifyClusterSnapshotError, ModifyClusterSnapshotInputOperationRetryAlias>,
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.
The identifier of the snapshot whose setting you want to modify.
The identifier of the snapshot whose setting you want to modify.
The number of days that a manual snapshot is retained. If the value is -1, the manual snapshot is retained indefinitely.
If the manual snapshot falls outside of the new retention period, you can specify the force option to immediately delete the snapshot.
The value must be either -1 or an integer between 1 and 3,653.
The number of days that a manual snapshot is retained. If the value is -1, the manual snapshot is retained indefinitely.
If the manual snapshot falls outside of the new retention period, you can specify the force option to immediately delete the snapshot.
The value must be either -1 or an integer between 1 and 3,653.
A Boolean option to override an exception if the retention period has already passed.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !RefUnwindSafe for ModifyClusterSnapshot<C, M, R>
impl<C, M, R> Send for ModifyClusterSnapshot<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for ModifyClusterSnapshot<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for ModifyClusterSnapshot<C, M, R>
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !UnwindSafe for ModifyClusterSnapshot<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