Struct aws_sdk_elasticache::input::copy_snapshot_input::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for CopySnapshotInput
.
Implementations§
source§impl Builder
impl Builder
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. 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 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 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 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.
sourcepub fn build(self) -> Result<CopySnapshotInput, BuildError>
pub fn build(self) -> Result<CopySnapshotInput, BuildError>
Consumes the builder and constructs a CopySnapshotInput
.