Struct aws_sdk_elasticache::client::fluent_builders::CreateSnapshot
source · pub struct CreateSnapshot { /* private fields */ }
Expand description
Fluent builder constructing a request to CreateSnapshot
.
Creates a copy of an entire cluster or replication group at a specific moment in time.
This operation is valid for Redis only.
Implementations§
source§impl CreateSnapshot
impl CreateSnapshot
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<CreateSnapshot, AwsResponseRetryClassifier>, SdkError<CreateSnapshotError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<CreateSnapshot, AwsResponseRetryClassifier>, SdkError<CreateSnapshotError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<CreateSnapshotOutput, SdkError<CreateSnapshotError>>
pub async fn send(
self
) -> Result<CreateSnapshotOutput, SdkError<CreateSnapshotError>>
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.
sourcepub fn replication_group_id(self, input: impl Into<String>) -> Self
pub fn replication_group_id(self, input: impl Into<String>) -> Self
The identifier of an existing replication group. The snapshot is created from this replication group.
sourcepub fn set_replication_group_id(self, input: Option<String>) -> Self
pub fn set_replication_group_id(self, input: Option<String>) -> Self
The identifier of an existing replication group. The snapshot is created from this replication group.
sourcepub fn cache_cluster_id(self, input: impl Into<String>) -> Self
pub fn cache_cluster_id(self, input: impl Into<String>) -> Self
The identifier of an existing cluster. The snapshot is created from this cluster.
sourcepub fn set_cache_cluster_id(self, input: Option<String>) -> Self
pub fn set_cache_cluster_id(self, input: Option<String>) -> Self
The identifier of an existing cluster. The snapshot is created from this cluster.
sourcepub fn snapshot_name(self, input: impl Into<String>) -> Self
pub fn snapshot_name(self, input: impl Into<String>) -> Self
A name for the snapshot being created.
sourcepub fn set_snapshot_name(self, input: Option<String>) -> Self
pub fn set_snapshot_name(self, input: Option<String>) -> Self
A name for the snapshot being created.
sourcepub fn kms_key_id(self, input: impl Into<String>) -> Self
pub fn kms_key_id(self, input: impl Into<String>) -> Self
The ID of the KMS key used to encrypt the snapshot.
sourcepub fn set_kms_key_id(self, input: Option<String>) -> Self
pub fn set_kms_key_id(self, input: Option<String>) -> Self
The ID of the KMS key used to encrypt the snapshot.
Appends an item to Tags
.
To override the contents of this collection use set_tags
.
A list of tags to be added to this resource. A tag is a key-value pair. A tag key must be accompanied by a tag value, although null is accepted.
A list of tags to be added to this resource. A tag is a key-value pair. A tag key must be accompanied by a tag value, although null is accepted.
Trait Implementations§
source§impl Clone for CreateSnapshot
impl Clone for CreateSnapshot
source§fn clone(&self) -> CreateSnapshot
fn clone(&self) -> CreateSnapshot
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more