Struct aws_sdk_fsx::operation::copy_backup::CopyBackupInput
source · #[non_exhaustive]pub struct CopyBackupInput {
pub client_request_token: Option<String>,
pub source_backup_id: Option<String>,
pub source_region: Option<String>,
pub kms_key_id: Option<String>,
pub copy_tags: Option<bool>,
pub tags: Option<Vec<Tag>>,
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.client_request_token: Option<String>
(Optional) An idempotency token for resource creation, in a string of up to 63 ASCII characters. This token is automatically filled on your behalf when you use the Command Line Interface (CLI) or an Amazon Web Services SDK.
source_backup_id: Option<String>
The ID of the source backup. Specifies the ID of the backup that's being copied.
source_region: Option<String>
The source Amazon Web Services Region of the backup. Specifies the Amazon Web Services Region from which the backup is being copied. The source and destination Regions must be in the same Amazon Web Services partition. If you don't specify a Region, SourceRegion
defaults to the Region where the request is sent from (in-Region copy).
kms_key_id: Option<String>
Specifies the ID of the Key Management Service (KMS) key to use for encrypting data on Amazon FSx file systems, as follows:
-
Amazon FSx for Lustre
PERSISTENT_1
andPERSISTENT_2
deployment types only.SCRATCH_1
andSCRATCH_2
types are encrypted using the Amazon FSx service KMS key for your account. -
Amazon FSx for NetApp ONTAP
-
Amazon FSx for OpenZFS
-
Amazon FSx for Windows File Server
If a KmsKeyId
isn't specified, the Amazon FSx-managed KMS key for your account is used. For more information, see Encrypt in the Key Management Service API Reference.
A Boolean flag indicating whether tags from the source backup should be copied to the backup copy. This value defaults to false
.
If you set CopyTags
to true
and the source backup has existing tags, you can use the Tags
parameter to create new tags, provided that the sum of the source backup tags and the new tags doesn't exceed 50. Both sets of tags are merged. If there are tag conflicts (for example, two tags with the same key but different values), the tags created with the Tags
parameter take precedence.
A list of Tag
values, with a maximum of 50 elements.
Implementations§
source§impl CopyBackupInput
impl CopyBackupInput
sourcepub fn client_request_token(&self) -> Option<&str>
pub fn client_request_token(&self) -> Option<&str>
(Optional) An idempotency token for resource creation, in a string of up to 63 ASCII characters. This token is automatically filled on your behalf when you use the Command Line Interface (CLI) or an Amazon Web Services SDK.
sourcepub fn source_backup_id(&self) -> Option<&str>
pub fn source_backup_id(&self) -> Option<&str>
The ID of the source backup. Specifies the ID of the backup that's being copied.
sourcepub fn source_region(&self) -> Option<&str>
pub fn source_region(&self) -> Option<&str>
The source Amazon Web Services Region of the backup. Specifies the Amazon Web Services Region from which the backup is being copied. The source and destination Regions must be in the same Amazon Web Services partition. If you don't specify a Region, SourceRegion
defaults to the Region where the request is sent from (in-Region copy).
sourcepub fn kms_key_id(&self) -> Option<&str>
pub fn kms_key_id(&self) -> Option<&str>
Specifies the ID of the Key Management Service (KMS) key to use for encrypting data on Amazon FSx file systems, as follows:
-
Amazon FSx for Lustre
PERSISTENT_1
andPERSISTENT_2
deployment types only.SCRATCH_1
andSCRATCH_2
types are encrypted using the Amazon FSx service KMS key for your account. -
Amazon FSx for NetApp ONTAP
-
Amazon FSx for OpenZFS
-
Amazon FSx for Windows File Server
If a KmsKeyId
isn't specified, the Amazon FSx-managed KMS key for your account is used. For more information, see Encrypt in the Key Management Service API Reference.
A Boolean flag indicating whether tags from the source backup should be copied to the backup copy. This value defaults to false
.
If you set CopyTags
to true
and the source backup has existing tags, you can use the Tags
parameter to create new tags, provided that the sum of the source backup tags and the new tags doesn't exceed 50. Both sets of tags are merged. If there are tag conflicts (for example, two tags with the same key but different values), the tags created with the Tags
parameter take precedence.
A list of Tag
values, with a maximum of 50 elements.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .tags.is_none()
.
source§impl CopyBackupInput
impl CopyBackupInput
sourcepub fn builder() -> CopyBackupInputBuilder
pub fn builder() -> CopyBackupInputBuilder
Creates a new builder-style object to manufacture CopyBackupInput
.
Trait Implementations§
source§impl Clone for CopyBackupInput
impl Clone for CopyBackupInput
source§fn clone(&self) -> CopyBackupInput
fn clone(&self) -> CopyBackupInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CopyBackupInput
impl Debug for CopyBackupInput
source§impl PartialEq for CopyBackupInput
impl PartialEq for CopyBackupInput
source§fn eq(&self, other: &CopyBackupInput) -> bool
fn eq(&self, other: &CopyBackupInput) -> bool
self
and other
values to be equal, and is used
by ==
.