Struct aws_sdk_backup::types::LegalHold
source · #[non_exhaustive]pub struct LegalHold {
pub title: Option<String>,
pub status: Option<LegalHoldStatus>,
pub description: Option<String>,
pub legal_hold_id: Option<String>,
pub legal_hold_arn: Option<String>,
pub creation_date: Option<DateTime>,
pub cancellation_date: Option<DateTime>,
}
Expand description
A legal hold is an administrative tool that helps prevent backups from being deleted while under a hold. While the hold is in place, backups under a hold cannot be deleted and lifecycle policies that would alter the backup status (such as transition to cold storage) are delayed until the legal hold is removed. A backup can have more than one legal hold. Legal holds are applied to one or more backups (also known as recovery points). These backups can be filtered by resource types and by resource IDs.
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.title: Option<String>
This is the title of a legal hold.
status: Option<LegalHoldStatus>
This is the status of the legal hold. Statuses can be ACTIVE
, CREATING
, CANCELED
, and CANCELING
.
description: Option<String>
This is the description of a legal hold.
legal_hold_id: Option<String>
ID of specific legal hold on one or more recovery points.
legal_hold_arn: Option<String>
This is an Amazon Resource Number (ARN) that uniquely identifies the legal hold; for example, arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45
.
creation_date: Option<DateTime>
This is the time in number format when legal hold was created.
cancellation_date: Option<DateTime>
This is the time in number format when legal hold was cancelled.
Implementations§
source§impl LegalHold
impl LegalHold
sourcepub fn status(&self) -> Option<&LegalHoldStatus>
pub fn status(&self) -> Option<&LegalHoldStatus>
This is the status of the legal hold. Statuses can be ACTIVE
, CREATING
, CANCELED
, and CANCELING
.
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
This is the description of a legal hold.
sourcepub fn legal_hold_id(&self) -> Option<&str>
pub fn legal_hold_id(&self) -> Option<&str>
ID of specific legal hold on one or more recovery points.
sourcepub fn legal_hold_arn(&self) -> Option<&str>
pub fn legal_hold_arn(&self) -> Option<&str>
This is an Amazon Resource Number (ARN) that uniquely identifies the legal hold; for example, arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45
.
sourcepub fn creation_date(&self) -> Option<&DateTime>
pub fn creation_date(&self) -> Option<&DateTime>
This is the time in number format when legal hold was created.
sourcepub fn cancellation_date(&self) -> Option<&DateTime>
pub fn cancellation_date(&self) -> Option<&DateTime>
This is the time in number format when legal hold was cancelled.