Struct aws_sdk_rbin::operation::unlock_rule::UnlockRuleOutput
source · #[non_exhaustive]pub struct UnlockRuleOutput {
pub identifier: Option<String>,
pub description: Option<String>,
pub resource_type: Option<ResourceType>,
pub retention_period: Option<RetentionPeriod>,
pub resource_tags: Option<Vec<ResourceTag>>,
pub status: Option<RuleStatus>,
pub lock_configuration: Option<LockConfiguration>,
pub lock_state: Option<LockState>,
pub lock_end_time: Option<DateTime>,
pub rule_arn: Option<String>,
/* private fields */
}
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.
resource_type: Option<ResourceType>
The resource type retained by the retention rule.
retention_period: 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.
status: Option<RuleStatus>
The state of the retention rule. Only retention rules that are in the available
state retain resources.
lock_configuration: Option<LockConfiguration>
Information about the retention rule lock configuration.
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
.
lock_end_time: 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.
rule_arn: Option<String>
The Amazon Resource Name (ARN) of the retention rule.
Implementations§
source§impl UnlockRuleOutput
impl UnlockRuleOutput
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.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .resource_tags.is_none()
.
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 UnlockRuleOutput
impl UnlockRuleOutput
sourcepub fn builder() -> UnlockRuleOutputBuilder
pub fn builder() -> UnlockRuleOutputBuilder
Creates a new builder-style object to manufacture UnlockRuleOutput
.
Trait Implementations§
source§impl Clone for UnlockRuleOutput
impl Clone for UnlockRuleOutput
source§fn clone(&self) -> UnlockRuleOutput
fn clone(&self) -> UnlockRuleOutput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for UnlockRuleOutput
impl Debug for UnlockRuleOutput
source§impl PartialEq for UnlockRuleOutput
impl PartialEq for UnlockRuleOutput
source§fn eq(&self, other: &UnlockRuleOutput) -> bool
fn eq(&self, other: &UnlockRuleOutput) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl RequestId for UnlockRuleOutput
impl RequestId for UnlockRuleOutput
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.