Struct aws_sdk_dlm::types::LifecyclePolicy
source · #[non_exhaustive]pub struct LifecyclePolicy {
pub policy_id: Option<String>,
pub description: Option<String>,
pub state: Option<GettablePolicyStateValues>,
pub status_message: Option<String>,
pub execution_role_arn: Option<String>,
pub date_created: Option<DateTime>,
pub date_modified: Option<DateTime>,
pub policy_details: Option<PolicyDetails>,
pub tags: Option<HashMap<String, String>>,
pub policy_arn: Option<String>,
pub default_policy: Option<bool>,
}
Expand description
[Custom policies only] Detailed information about a snapshot, AMI, or event-based lifecycle policy.
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.policy_id: Option<String>
The identifier of the lifecycle policy.
description: Option<String>
The description of the lifecycle policy.
state: Option<GettablePolicyStateValues>
The activation state of the lifecycle policy.
status_message: Option<String>
The description of the status.
execution_role_arn: Option<String>
The Amazon Resource Name (ARN) of the IAM role used to run the operations specified by the lifecycle policy.
date_created: Option<DateTime>
The local date and time when the lifecycle policy was created.
date_modified: Option<DateTime>
The local date and time when the lifecycle policy was last modified.
policy_details: Option<PolicyDetails>
The configuration of the lifecycle policy
The tags.
policy_arn: Option<String>
The Amazon Resource Name (ARN) of the policy.
default_policy: Option<bool>
[Default policies only] The type of default policy. Values include:
-
VOLUME
- Default policy for EBS snapshots -
INSTANCE
- Default policy for EBS-backed AMIs
Implementations§
source§impl LifecyclePolicy
impl LifecyclePolicy
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
The description of the lifecycle policy.
sourcepub fn state(&self) -> Option<&GettablePolicyStateValues>
pub fn state(&self) -> Option<&GettablePolicyStateValues>
The activation state of the lifecycle policy.
sourcepub fn status_message(&self) -> Option<&str>
pub fn status_message(&self) -> Option<&str>
The description of the status.
sourcepub fn execution_role_arn(&self) -> Option<&str>
pub fn execution_role_arn(&self) -> Option<&str>
The Amazon Resource Name (ARN) of the IAM role used to run the operations specified by the lifecycle policy.
sourcepub fn date_created(&self) -> Option<&DateTime>
pub fn date_created(&self) -> Option<&DateTime>
The local date and time when the lifecycle policy was created.
sourcepub fn date_modified(&self) -> Option<&DateTime>
pub fn date_modified(&self) -> Option<&DateTime>
The local date and time when the lifecycle policy was last modified.
sourcepub fn policy_details(&self) -> Option<&PolicyDetails>
pub fn policy_details(&self) -> Option<&PolicyDetails>
The configuration of the lifecycle policy
The tags.
sourcepub fn policy_arn(&self) -> Option<&str>
pub fn policy_arn(&self) -> Option<&str>
The Amazon Resource Name (ARN) of the policy.
sourcepub fn default_policy(&self) -> Option<bool>
pub fn default_policy(&self) -> Option<bool>
[Default policies only] The type of default policy. Values include:
-
VOLUME
- Default policy for EBS snapshots -
INSTANCE
- Default policy for EBS-backed AMIs
source§impl LifecyclePolicy
impl LifecyclePolicy
sourcepub fn builder() -> LifecyclePolicyBuilder
pub fn builder() -> LifecyclePolicyBuilder
Creates a new builder-style object to manufacture LifecyclePolicy
.
Trait Implementations§
source§impl Clone for LifecyclePolicy
impl Clone for LifecyclePolicy
source§fn clone(&self) -> LifecyclePolicy
fn clone(&self) -> LifecyclePolicy
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for LifecyclePolicy
impl Debug for LifecyclePolicy
source§impl PartialEq for LifecyclePolicy
impl PartialEq for LifecyclePolicy
source§fn eq(&self, other: &LifecyclePolicy) -> bool
fn eq(&self, other: &LifecyclePolicy) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for LifecyclePolicy
Auto Trait Implementations§
impl Freeze for LifecyclePolicy
impl RefUnwindSafe for LifecyclePolicy
impl Send for LifecyclePolicy
impl Sync for LifecyclePolicy
impl Unpin for LifecyclePolicy
impl UnwindSafe for LifecyclePolicy
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