#[non_exhaustive]pub struct CopySnapshotInputBuilder { /* private fields */ }
Expand description
A builder for CopySnapshotInput
.
Implementations§
source§impl CopySnapshotInputBuilder
impl CopySnapshotInputBuilder
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.
This field is required.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 get_source_snapshot_name(&self) -> &Option<String>
pub fn get_source_snapshot_name(&self) -> &Option<String>
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. ElastiCache does not permit overwriting a snapshot, therefore this name must be unique within its context - ElastiCache or an Amazon S3 bucket if exporting.
This field is required.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. ElastiCache does not permit overwriting a snapshot, therefore this name must be unique within its context - ElastiCache or an Amazon S3 bucket if exporting.
sourcepub fn get_target_snapshot_name(&self) -> &Option<String>
pub fn get_target_snapshot_name(&self) -> &Option<String>
A name for the snapshot copy. ElastiCache does not permit overwriting a snapshot, therefore this name must be unique within its context - ElastiCache 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 Amazon ElastiCache has the needed permissions to this S3 bucket. For more information, see Step 2: Grant ElastiCache Access to Your Amazon S3 Bucket in the Amazon ElastiCache User Guide.
For more information, see Exporting a Snapshot in the Amazon ElastiCache User Guide.
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 Amazon ElastiCache has the needed permissions to this S3 bucket. For more information, see Step 2: Grant ElastiCache Access to Your Amazon S3 Bucket in the Amazon ElastiCache User Guide.
For more information, see Exporting a Snapshot in the Amazon ElastiCache User Guide.
sourcepub fn get_target_bucket(&self) -> &Option<String>
pub fn get_target_bucket(&self) -> &Option<String>
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 Amazon ElastiCache has the needed permissions to this S3 bucket. For more information, see Step 2: Grant ElastiCache Access to Your Amazon S3 Bucket in the Amazon ElastiCache User Guide.
For more information, see Exporting a Snapshot in the Amazon ElastiCache User Guide.
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.
sourcepub fn get_kms_key_id(&self) -> &Option<String>
pub fn get_kms_key_id(&self) -> &Option<String>
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.
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.
sourcepub fn build(self) -> Result<CopySnapshotInput, BuildError>
pub fn build(self) -> Result<CopySnapshotInput, BuildError>
Consumes the builder and constructs a CopySnapshotInput
.
source§impl CopySnapshotInputBuilder
impl CopySnapshotInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<CopySnapshotOutput, SdkError<CopySnapshotError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<CopySnapshotOutput, SdkError<CopySnapshotError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CopySnapshotInputBuilder
impl Clone for CopySnapshotInputBuilder
source§fn clone(&self) -> CopySnapshotInputBuilder
fn clone(&self) -> CopySnapshotInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CopySnapshotInputBuilder
impl Debug for CopySnapshotInputBuilder
source§impl Default for CopySnapshotInputBuilder
impl Default for CopySnapshotInputBuilder
source§fn default() -> CopySnapshotInputBuilder
fn default() -> CopySnapshotInputBuilder
source§impl PartialEq for CopySnapshotInputBuilder
impl PartialEq for CopySnapshotInputBuilder
source§fn eq(&self, other: &CopySnapshotInputBuilder) -> bool
fn eq(&self, other: &CopySnapshotInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.