#[non_exhaustive]pub struct LifecyclePolicyDetailExclusionRulesAmisLastLaunched {
pub value: i32,
pub unit: LifecyclePolicyTimeUnit,
}
Expand description
Defines criteria to exclude AMIs from lifecycle actions based on the last time they were used to launch an instance.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.value: i32
The integer number of units for the time period. For example 6
(months).
unit: LifecyclePolicyTimeUnit
Defines the unit of time that the lifecycle policy uses to calculate elapsed time since the last instance launched from the AMI. For example: days, weeks, months, or years.
Implementations§
source§impl LifecyclePolicyDetailExclusionRulesAmisLastLaunched
impl LifecyclePolicyDetailExclusionRulesAmisLastLaunched
sourcepub fn value(&self) -> i32
pub fn value(&self) -> i32
The integer number of units for the time period. For example 6
(months).
sourcepub fn unit(&self) -> &LifecyclePolicyTimeUnit
pub fn unit(&self) -> &LifecyclePolicyTimeUnit
Defines the unit of time that the lifecycle policy uses to calculate elapsed time since the last instance launched from the AMI. For example: days, weeks, months, or years.
source§impl LifecyclePolicyDetailExclusionRulesAmisLastLaunched
impl LifecyclePolicyDetailExclusionRulesAmisLastLaunched
sourcepub fn builder() -> LifecyclePolicyDetailExclusionRulesAmisLastLaunchedBuilder
pub fn builder() -> LifecyclePolicyDetailExclusionRulesAmisLastLaunchedBuilder
Creates a new builder-style object to manufacture LifecyclePolicyDetailExclusionRulesAmisLastLaunched
.
Trait Implementations§
source§impl Clone for LifecyclePolicyDetailExclusionRulesAmisLastLaunched
impl Clone for LifecyclePolicyDetailExclusionRulesAmisLastLaunched
source§fn clone(&self) -> LifecyclePolicyDetailExclusionRulesAmisLastLaunched
fn clone(&self) -> LifecyclePolicyDetailExclusionRulesAmisLastLaunched
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl PartialEq for LifecyclePolicyDetailExclusionRulesAmisLastLaunched
impl PartialEq for LifecyclePolicyDetailExclusionRulesAmisLastLaunched
source§fn eq(
&self,
other: &LifecyclePolicyDetailExclusionRulesAmisLastLaunched
) -> bool
fn eq( &self, other: &LifecyclePolicyDetailExclusionRulesAmisLastLaunched ) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for LifecyclePolicyDetailExclusionRulesAmisLastLaunched
Auto Trait Implementations§
impl RefUnwindSafe for LifecyclePolicyDetailExclusionRulesAmisLastLaunched
impl Send for LifecyclePolicyDetailExclusionRulesAmisLastLaunched
impl Sync for LifecyclePolicyDetailExclusionRulesAmisLastLaunched
impl Unpin for LifecyclePolicyDetailExclusionRulesAmisLastLaunched
impl UnwindSafe for LifecyclePolicyDetailExclusionRulesAmisLastLaunched
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
Mutably borrows from an owned value. Read more
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>
Creates a shared type from an unshared type.