Struct aws_sdk_memorydb::client::fluent_builders::CopySnapshot
source · pub struct CopySnapshot { /* private fields */ }
Expand description
Fluent builder constructing a request to CopySnapshot
.
Makes a copy of an existing snapshot.
Implementations§
source§impl CopySnapshot
impl CopySnapshot
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<CopySnapshot, AwsResponseRetryClassifier>, SdkError<CopySnapshotError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<CopySnapshot, AwsResponseRetryClassifier>, SdkError<CopySnapshotError>>
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<CopySnapshotOutput, SdkError<CopySnapshotError>>
pub async fn send(
self
) -> Result<CopySnapshotOutput, SdkError<CopySnapshotError>>
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 source_snapshot_name(self, input: impl Into<String>) -> Self
pub fn source_snapshot_name(self, input: impl Into<String>) -> Self
The name of an existing snapshot from which to make a copy.
sourcepub fn set_source_snapshot_name(self, input: Option<String>) -> Self
pub fn set_source_snapshot_name(self, input: Option<String>) -> Self
The name of an existing snapshot from which to make a copy.
sourcepub fn target_snapshot_name(self, input: impl Into<String>) -> Self
pub fn target_snapshot_name(self, input: impl Into<String>) -> Self
A name for the snapshot copy. MemoryDB does not permit overwriting a snapshot, therefore this name must be unique within its context - MemoryDB or an Amazon S3 bucket if exporting.
sourcepub fn set_target_snapshot_name(self, input: Option<String>) -> Self
pub fn set_target_snapshot_name(self, input: Option<String>) -> Self
A name for the snapshot copy. MemoryDB does not permit overwriting a snapshot, therefore this name must be unique within its context - MemoryDB or an Amazon S3 bucket if exporting.
sourcepub fn target_bucket(self, input: impl Into<String>) -> Self
pub fn target_bucket(self, input: impl Into<String>) -> Self
The Amazon S3 bucket to which the snapshot is exported. This parameter is used only when exporting a snapshot for external access. When using this parameter to export a snapshot, be sure MemoryDB has the needed permissions to this S3 bucket. For more information, see Step 2: Grant MemoryDB Access to Your Amazon S3 Bucket.
sourcepub fn set_target_bucket(self, input: Option<String>) -> Self
pub fn set_target_bucket(self, input: Option<String>) -> Self
The Amazon S3 bucket to which the snapshot is exported. This parameter is used only when exporting a snapshot for external access. When using this parameter to export a snapshot, be sure MemoryDB has the needed permissions to this S3 bucket. For more information, see Step 2: Grant MemoryDB Access to Your Amazon S3 Bucket.
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 target 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 target 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 CopySnapshot
impl Clone for CopySnapshot
source§fn clone(&self) -> CopySnapshot
fn clone(&self) -> CopySnapshot
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more