Struct aws_sdk_rbin::types::RuleSummary
source · #[non_exhaustive]pub struct RuleSummary {
pub identifier: Option<String>,
pub description: Option<String>,
pub retention_period: Option<RetentionPeriod>,
pub lock_state: Option<LockState>,
pub rule_arn: Option<String>,
}
Expand description
Information about a Recycle Bin retention rule.
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.identifier: Option<String>
The unique ID of the retention rule.
description: Option<String>
The retention rule description.
retention_period: Option<RetentionPeriod>
Information about the retention period for which the retention rule is to retain resources.
lock_state: Option<LockState>
The lock state for the retention rule.
-
locked
- The retention rule is locked and can't be modified or deleted. -
pending_unlock
- The retention rule has been unlocked but it is still within the unlock delay period. The retention rule can be modified or deleted only after the unlock delay period has expired. -
unlocked
- The retention rule is unlocked and it can be modified or deleted by any user with the required permissions. -
null
- The retention rule has never been locked. Once a retention rule has been locked, it can transition between thelocked
andunlocked
states only; it can never transition back tonull
.
rule_arn: Option<String>
The Amazon Resource Name (ARN) of the retention rule.
Implementations§
source§impl RuleSummary
impl RuleSummary
sourcepub fn identifier(&self) -> Option<&str>
pub fn identifier(&self) -> Option<&str>
The unique ID of the retention rule.
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
The retention rule description.
sourcepub fn retention_period(&self) -> Option<&RetentionPeriod>
pub fn retention_period(&self) -> Option<&RetentionPeriod>
Information about the retention period for which the retention rule is to retain resources.
sourcepub fn lock_state(&self) -> Option<&LockState>
pub fn lock_state(&self) -> Option<&LockState>
The lock state for the retention rule.
-
locked
- The retention rule is locked and can't be modified or deleted. -
pending_unlock
- The retention rule has been unlocked but it is still within the unlock delay period. The retention rule can be modified or deleted only after the unlock delay period has expired. -
unlocked
- The retention rule is unlocked and it can be modified or deleted by any user with the required permissions. -
null
- The retention rule has never been locked. Once a retention rule has been locked, it can transition between thelocked
andunlocked
states only; it can never transition back tonull
.
source§impl RuleSummary
impl RuleSummary
sourcepub fn builder() -> RuleSummaryBuilder
pub fn builder() -> RuleSummaryBuilder
Creates a new builder-style object to manufacture RuleSummary
.
Trait Implementations§
source§impl Clone for RuleSummary
impl Clone for RuleSummary
source§fn clone(&self) -> RuleSummary
fn clone(&self) -> RuleSummary
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RuleSummary
impl Debug for RuleSummary
source§impl PartialEq for RuleSummary
impl PartialEq for RuleSummary
source§fn eq(&self, other: &RuleSummary) -> bool
fn eq(&self, other: &RuleSummary) -> bool
self
and other
values to be equal, and is used
by ==
.