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>
The title of a legal hold.
status: Option<LegalHoldStatus>
The status of the legal hold.
description: Option<String>
The description of a legal hold.
legal_hold_id: Option<String>
The ID of the legal hold.
legal_hold_arn: Option<String>
The Amazon Resource Name (ARN) of the legal hold; for example, arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45
.
creation_date: Option<DateTime>
The time when the legal hold was created.
cancellation_date: Option<DateTime>
The time when the legal hold was cancelled.
Implementations§
source§impl LegalHold
impl LegalHold
sourcepub fn status(&self) -> Option<&LegalHoldStatus>
pub fn status(&self) -> Option<&LegalHoldStatus>
The status of the legal hold.
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
The description of a legal hold.
sourcepub fn legal_hold_id(&self) -> Option<&str>
pub fn legal_hold_id(&self) -> Option<&str>
The ID of the legal hold.
sourcepub fn legal_hold_arn(&self) -> Option<&str>
pub fn legal_hold_arn(&self) -> Option<&str>
The Amazon Resource Name (ARN) of 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>
The time when the legal hold was created.
sourcepub fn cancellation_date(&self) -> Option<&DateTime>
pub fn cancellation_date(&self) -> Option<&DateTime>
The time when the legal hold was cancelled.
Trait Implementations§
impl StructuralPartialEq for LegalHold
Auto Trait Implementations§
impl Freeze for LegalHold
impl RefUnwindSafe for LegalHold
impl Send for LegalHold
impl Sync for LegalHold
impl Unpin for LegalHold
impl UnwindSafe for LegalHold
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more