Struct aws_sdk_cloudhsmv2::types::Backup
source · #[non_exhaustive]pub struct Backup {
pub backup_id: String,
pub backup_state: Option<BackupState>,
pub cluster_id: Option<String>,
pub create_timestamp: Option<DateTime>,
pub copy_timestamp: Option<DateTime>,
pub never_expires: Option<bool>,
pub source_region: Option<String>,
pub source_backup: Option<String>,
pub source_cluster: Option<String>,
pub delete_timestamp: Option<DateTime>,
pub tag_list: Option<Vec<Tag>>,
}Expand description
Contains information about a backup of an AWS CloudHSM cluster. All backup objects contain the BackupId, BackupState, ClusterId, and CreateTimestamp parameters. Backups that were copied into a destination region additionally contain the CopyTimestamp, SourceBackup, SourceCluster, and SourceRegion parameters. A backup that is pending deletion will include the DeleteTimestamp parameter.
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.backup_id: StringThe identifier (ID) of the backup.
backup_state: Option<BackupState>The state of the backup.
cluster_id: Option<String>The identifier (ID) of the cluster that was backed up.
create_timestamp: Option<DateTime>The date and time when the backup was created.
copy_timestamp: Option<DateTime>The date and time when the backup was copied from a source backup.
never_expires: Option<bool>Specifies whether the service should exempt a backup from the retention policy for the cluster. True exempts a backup from the retention policy. False means the service applies the backup retention policy defined at the cluster.
source_region: Option<String>The AWS Region that contains the source backup from which the new backup was copied.
source_backup: Option<String>The identifier (ID) of the source backup from which the new backup was copied.
source_cluster: Option<String>The identifier (ID) of the cluster containing the source backup from which the new backup was copied.
delete_timestamp: Option<DateTime>The date and time when the backup will be permanently deleted.
tag_list: Option<Vec<Tag>>The list of tags for the backup.
Implementations§
source§impl Backup
impl Backup
sourcepub fn backup_state(&self) -> Option<&BackupState>
pub fn backup_state(&self) -> Option<&BackupState>
The state of the backup.
sourcepub fn cluster_id(&self) -> Option<&str>
pub fn cluster_id(&self) -> Option<&str>
The identifier (ID) of the cluster that was backed up.
sourcepub fn create_timestamp(&self) -> Option<&DateTime>
pub fn create_timestamp(&self) -> Option<&DateTime>
The date and time when the backup was created.
sourcepub fn copy_timestamp(&self) -> Option<&DateTime>
pub fn copy_timestamp(&self) -> Option<&DateTime>
The date and time when the backup was copied from a source backup.
sourcepub fn never_expires(&self) -> Option<bool>
pub fn never_expires(&self) -> Option<bool>
Specifies whether the service should exempt a backup from the retention policy for the cluster. True exempts a backup from the retention policy. False means the service applies the backup retention policy defined at the cluster.
sourcepub fn source_region(&self) -> Option<&str>
pub fn source_region(&self) -> Option<&str>
The AWS Region that contains the source backup from which the new backup was copied.
sourcepub fn source_backup(&self) -> Option<&str>
pub fn source_backup(&self) -> Option<&str>
The identifier (ID) of the source backup from which the new backup was copied.
sourcepub fn source_cluster(&self) -> Option<&str>
pub fn source_cluster(&self) -> Option<&str>
The identifier (ID) of the cluster containing the source backup from which the new backup was copied.
sourcepub fn delete_timestamp(&self) -> Option<&DateTime>
pub fn delete_timestamp(&self) -> Option<&DateTime>
The date and time when the backup will be permanently deleted.