Struct aws_sdk_fsx::types::DurationSinceLastAccess
source · #[non_exhaustive]pub struct DurationSinceLastAccess {
pub unit: Option<Unit>,
pub value: Option<i64>,
}
Expand description
Defines the minimum amount of time since last access for a file to be eligible for release. Only files that have been exported to S3 and that were last accessed or modified before this point-in-time are eligible to be released from the Amazon FSx for Lustre file system.
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.unit: Option<Unit>
The unit of time used by the Value
parameter to determine if a file can be released, based on when it was last accessed. DAYS
is the only supported value. This is a required parameter.
value: Option<i64>
An integer that represents the minimum amount of time (in days) since a file was last accessed in the file system. Only exported files with a MAX(atime, ctime, mtime)
timestamp that is more than this amount of time in the past (relative to the task create time) will be released. The default of Value
is 0
. This is a required parameter.
If an exported file meets the last accessed time criteria, its file or directory path must also be specified in the Paths
parameter of the operation in order for the file to be released.
Implementations§
source§impl DurationSinceLastAccess
impl DurationSinceLastAccess
sourcepub fn unit(&self) -> Option<&Unit>
pub fn unit(&self) -> Option<&Unit>
The unit of time used by the Value
parameter to determine if a file can be released, based on when it was last accessed. DAYS
is the only supported value. This is a required parameter.
sourcepub fn value(&self) -> Option<i64>
pub fn value(&self) -> Option<i64>
An integer that represents the minimum amount of time (in days) since a file was last accessed in the file system. Only exported files with a MAX(atime, ctime, mtime)
timestamp that is more than this amount of time in the past (relative to the task create time) will be released. The default of Value
is 0
. This is a required parameter.
If an exported file meets the last accessed time criteria, its file or directory path must also be specified in the Paths
parameter of the operation in order for the file to be released.
source§impl DurationSinceLastAccess
impl DurationSinceLastAccess
sourcepub fn builder() -> DurationSinceLastAccessBuilder
pub fn builder() -> DurationSinceLastAccessBuilder
Creates a new builder-style object to manufacture DurationSinceLastAccess
.
Trait Implementations§
source§impl Clone for DurationSinceLastAccess
impl Clone for DurationSinceLastAccess
source§fn clone(&self) -> DurationSinceLastAccess
fn clone(&self) -> DurationSinceLastAccess
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DurationSinceLastAccess
impl Debug for DurationSinceLastAccess
source§impl PartialEq for DurationSinceLastAccess
impl PartialEq for DurationSinceLastAccess
source§fn eq(&self, other: &DurationSinceLastAccess) -> bool
fn eq(&self, other: &DurationSinceLastAccess) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DurationSinceLastAccess
Auto Trait Implementations§
impl Freeze for DurationSinceLastAccess
impl RefUnwindSafe for DurationSinceLastAccess
impl Send for DurationSinceLastAccess
impl Sync for DurationSinceLastAccess
impl Unpin for DurationSinceLastAccess
impl UnwindSafe for DurationSinceLastAccess
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> 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