Struct aws_sdk_dlm::types::LifecyclePolicySummary
source · #[non_exhaustive]pub struct LifecyclePolicySummary {
pub policy_id: Option<String>,
pub description: Option<String>,
pub state: Option<GettablePolicyStateValues>,
pub tags: Option<HashMap<String, String>>,
pub policy_type: Option<PolicyTypeValues>,
pub default_policy: Option<bool>,
}Expand description
Summary information about a 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.
The tags.
policy_type: Option<PolicyTypeValues>The type of policy. EBS_SNAPSHOT_MANAGEMENT indicates that the policy manages the lifecycle of Amazon EBS snapshots. IMAGE_MANAGEMENT indicates that the policy manages the lifecycle of EBS-backed AMIs. EVENT_BASED_POLICY indicates that the policy automates cross-account snapshot copies for snapshots that are shared with your account.
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 LifecyclePolicySummary
impl LifecyclePolicySummary
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.
The tags.
sourcepub fn policy_type(&self) -> Option<&PolicyTypeValues>
pub fn policy_type(&self) -> Option<&PolicyTypeValues>
The type of policy. EBS_SNAPSHOT_MANAGEMENT indicates that the policy manages the lifecycle of Amazon EBS snapshots. IMAGE_MANAGEMENT indicates that the policy manages the lifecycle of EBS-backed AMIs. EVENT_BASED_POLICY indicates that the policy automates cross-account snapshot copies for snapshots that are shared with your account.
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 LifecyclePolicySummary
impl LifecyclePolicySummary
sourcepub fn builder() -> LifecyclePolicySummaryBuilder
pub fn builder() -> LifecyclePolicySummaryBuilder
Creates a new builder-style object to manufacture LifecyclePolicySummary.
Trait Implementations§
source§impl Clone for LifecyclePolicySummary
impl Clone for LifecyclePolicySummary
source§fn clone(&self) -> LifecyclePolicySummary
fn clone(&self) -> LifecyclePolicySummary
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for LifecyclePolicySummary
impl Debug for LifecyclePolicySummary
source§impl PartialEq for LifecyclePolicySummary
impl PartialEq for LifecyclePolicySummary
source§fn eq(&self, other: &LifecyclePolicySummary) -> bool
fn eq(&self, other: &LifecyclePolicySummary) -> bool
self and other values to be equal, and is used
by ==.