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>,
}
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.
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.
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 ==
.