Struct aws_sdk_rbin::operation::update_rule::UpdateRuleOutput
source · #[non_exhaustive]pub struct UpdateRuleOutput {
pub identifier: Option<String>,
pub retention_period: Option<RetentionPeriod>,
pub description: Option<String>,
pub resource_type: Option<ResourceType>,
pub resource_tags: Option<Vec<ResourceTag>>,
pub status: Option<RuleStatus>,
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.
retention_period: Option<RetentionPeriod>
Information about the retention period for which the retention rule is to retain resources.
description: Option<String>
The retention rule description.
resource_type: Option<ResourceType>
The resource type retained by the retention rule.
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_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 UpdateRuleOutput
impl UpdateRuleOutput
sourcepub fn identifier(&self) -> Option<&str>
pub fn identifier(&self) -> Option<&str>
The unique ID of 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.
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.
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_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 UpdateRuleOutput
impl UpdateRuleOutput
sourcepub fn builder() -> UpdateRuleOutputBuilder
pub fn builder() -> UpdateRuleOutputBuilder
Creates a new builder-style object to manufacture UpdateRuleOutput
.
Trait Implementations§
source§impl Clone for UpdateRuleOutput
impl Clone for UpdateRuleOutput
source§fn clone(&self) -> UpdateRuleOutput
fn clone(&self) -> UpdateRuleOutput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for UpdateRuleOutput
impl Debug for UpdateRuleOutput
source§impl PartialEq for UpdateRuleOutput
impl PartialEq for UpdateRuleOutput
source§fn eq(&self, other: &UpdateRuleOutput) -> bool
fn eq(&self, other: &UpdateRuleOutput) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl RequestId for UpdateRuleOutput
impl RequestId for UpdateRuleOutput
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.