Struct aws_sdk_rbin::operation::create_rule::CreateRuleOutput
source · #[non_exhaustive]pub struct CreateRuleOutput {
pub identifier: Option<String>,
pub retention_period: Option<RetentionPeriod>,
pub description: Option<String>,
pub tags: Option<Vec<Tag>>,
pub resource_type: Option<ResourceType>,
pub resource_tags: Option<Vec<ResourceTag>>,
pub status: Option<RuleStatus>,
pub lock_configuration: Option<LockConfiguration>,
pub lock_state: Option<LockState>,
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.
Information about the tags assigned to the retention rule.
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_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
.
rule_arn: Option<String>
The Amazon Resource Name (ARN) of the retention rule.
Implementations§
source§impl CreateRuleOutput
impl CreateRuleOutput
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.
Information about the tags assigned to 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 .tags.is_none()
.
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_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
.
source§impl CreateRuleOutput
impl CreateRuleOutput
sourcepub fn builder() -> CreateRuleOutputBuilder
pub fn builder() -> CreateRuleOutputBuilder
Creates a new builder-style object to manufacture CreateRuleOutput
.
Trait Implementations§
source§impl Clone for CreateRuleOutput
impl Clone for CreateRuleOutput
source§fn clone(&self) -> CreateRuleOutput
fn clone(&self) -> CreateRuleOutput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateRuleOutput
impl Debug for CreateRuleOutput
source§impl PartialEq for CreateRuleOutput
impl PartialEq for CreateRuleOutput
source§fn eq(&self, other: &CreateRuleOutput) -> bool
fn eq(&self, other: &CreateRuleOutput) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl RequestId for CreateRuleOutput
impl RequestId for CreateRuleOutput
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.impl StructuralPartialEq for CreateRuleOutput
Auto Trait Implementations§
impl Freeze for CreateRuleOutput
impl RefUnwindSafe for CreateRuleOutput
impl Send for CreateRuleOutput
impl Sync for CreateRuleOutput
impl Unpin for CreateRuleOutput
impl UnwindSafe for CreateRuleOutput
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more