Struct aws_sdk_backup::types::ProtectedResource
source · #[non_exhaustive]pub struct ProtectedResource {
pub resource_arn: Option<String>,
pub resource_type: Option<String>,
pub last_backup_time: Option<DateTime>,
pub resource_name: Option<String>,
pub last_backup_vault_arn: Option<String>,
pub last_recovery_point_arn: Option<String>,
}
Expand description
A structure that contains information about a backed-up resource.
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.resource_arn: Option<String>
An Amazon Resource Name (ARN) that uniquely identifies a resource. The format of the ARN depends on the resource type.
resource_type: Option<String>
The type of Amazon Web Services resource; for example, an Amazon Elastic Block Store (Amazon EBS) volume or an Amazon Relational Database Service (Amazon RDS) database. For Windows Volume Shadow Copy Service (VSS) backups, the only supported resource type is Amazon EC2.
last_backup_time: Option<DateTime>
The date and time a resource was last backed up, in Unix format and Coordinated Universal Time (UTC). The value of LastBackupTime
is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.
resource_name: Option<String>
This is the non-unique name of the resource that belongs to the specified backup.
last_backup_vault_arn: Option<String>
This is the ARN (Amazon Resource Name) of the backup vault that contains the most recent backup recovery point.
last_recovery_point_arn: Option<String>
This is the ARN (Amazon Resource Name) of the most recent recovery point.
Implementations§
source§impl ProtectedResource
impl ProtectedResource
sourcepub fn resource_arn(&self) -> Option<&str>
pub fn resource_arn(&self) -> Option<&str>
An Amazon Resource Name (ARN) that uniquely identifies a resource. The format of the ARN depends on the resource type.
sourcepub fn resource_type(&self) -> Option<&str>
pub fn resource_type(&self) -> Option<&str>
The type of Amazon Web Services resource; for example, an Amazon Elastic Block Store (Amazon EBS) volume or an Amazon Relational Database Service (Amazon RDS) database. For Windows Volume Shadow Copy Service (VSS) backups, the only supported resource type is Amazon EC2.
sourcepub fn last_backup_time(&self) -> Option<&DateTime>
pub fn last_backup_time(&self) -> Option<&DateTime>
The date and time a resource was last backed up, in Unix format and Coordinated Universal Time (UTC). The value of LastBackupTime
is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.
sourcepub fn resource_name(&self) -> Option<&str>
pub fn resource_name(&self) -> Option<&str>
This is the non-unique name of the resource that belongs to the specified backup.
sourcepub fn last_backup_vault_arn(&self) -> Option<&str>
pub fn last_backup_vault_arn(&self) -> Option<&str>
This is the ARN (Amazon Resource Name) of the backup vault that contains the most recent backup recovery point.
sourcepub fn last_recovery_point_arn(&self) -> Option<&str>
pub fn last_recovery_point_arn(&self) -> Option<&str>
This is the ARN (Amazon Resource Name) of the most recent recovery point.
source§impl ProtectedResource
impl ProtectedResource
sourcepub fn builder() -> ProtectedResourceBuilder
pub fn builder() -> ProtectedResourceBuilder
Creates a new builder-style object to manufacture ProtectedResource
.
Trait Implementations§
source§impl Clone for ProtectedResource
impl Clone for ProtectedResource
source§fn clone(&self) -> ProtectedResource
fn clone(&self) -> ProtectedResource
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ProtectedResource
impl Debug for ProtectedResource
source§impl PartialEq for ProtectedResource
impl PartialEq for ProtectedResource
source§fn eq(&self, other: &ProtectedResource) -> bool
fn eq(&self, other: &ProtectedResource) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ProtectedResource
Auto Trait Implementations§
impl Freeze for ProtectedResource
impl RefUnwindSafe for ProtectedResource
impl Send for ProtectedResource
impl Sync for ProtectedResource
impl Unpin for ProtectedResource
impl UnwindSafe for ProtectedResource
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default 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