Struct aws_sdk_rbin::output::GetRuleOutput
source · #[non_exhaustive]pub struct GetRuleOutput { /* private fields */ }
Implementations§
source§impl GetRuleOutput
impl GetRuleOutput
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 resource_type(&self) -> Option<&ResourceType>
pub fn resource_type(&self) -> Option<&ResourceType>
The resource type retained by the retention rule.
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.
Information about the resource tags used to identify resources that are retained by the retention rule.
sourcepub fn status(&self) -> Option<&RuleStatus>
pub fn status(&self) -> Option<&RuleStatus>
The state of the retention rule. Only retention rules that are in the available
state retain resources.
sourcepub fn lock_configuration(&self) -> Option<&LockConfiguration>
pub fn lock_configuration(&self) -> Option<&LockConfiguration>
Information about the retention rule lock configuration.
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
.
sourcepub fn lock_end_time(&self) -> Option<&DateTime>
pub fn lock_end_time(&self) -> Option<&DateTime>
The date and time at which the unlock delay is set to expire. Only returned for retention rules that have been unlocked and that are still within the unlock delay period.
source§impl GetRuleOutput
impl GetRuleOutput
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture GetRuleOutput
.
Trait Implementations§
source§impl Clone for GetRuleOutput
impl Clone for GetRuleOutput
source§fn clone(&self) -> GetRuleOutput
fn clone(&self) -> GetRuleOutput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for GetRuleOutput
impl Debug for GetRuleOutput
source§impl PartialEq<GetRuleOutput> for GetRuleOutput
impl PartialEq<GetRuleOutput> for GetRuleOutput
source§fn eq(&self, other: &GetRuleOutput) -> bool
fn eq(&self, other: &GetRuleOutput) -> bool
self
and other
values to be equal, and is used
by ==
.