Struct aws_sdk_rbin::input::UpdateRuleInput
source · [−]#[non_exhaustive]pub struct UpdateRuleInput {
pub identifier: Option<String>,
pub retention_period: Option<RetentionPeriod>,
pub description: Option<String>,
pub resource_type: Option<ResourceType>,
pub resource_tags: Option<Vec<ResourceTag>>,
}
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 to be retained by the retention rule. Currently, only Amazon EBS snapshots and EBS-backed AMIs are supported. To retain snapshots, specify EBS_SNAPSHOT
. To retain EBS-backed AMIs, specify EC2_IMAGE
.
Specifies the resource tags to use to identify resources that are to be retained by a tag-level retention rule. For tag-level retention rules, only deleted resources, of the specified resource type, that have one or more of the specified tag key and value pairs are retained. If a resource is deleted, but it does not have any of the specified tag key and value pairs, it is immediately deleted without being retained by the retention rule.
You can add the same tag key and value pair to a maximum or five retention rules.
To create a Region-level retention rule, omit this parameter. A Region-level retention rule does not have any resource tags specified. It retains all deleted resources of the specified resource type in the Region in which the rule is created, even if the resources are not tagged.
Implementations
sourceimpl UpdateRuleInput
impl UpdateRuleInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<UpdateRule, AwsErrorRetryPolicy>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<UpdateRule, AwsErrorRetryPolicy>, BuildError>
Consumes the builder and constructs an Operation<UpdateRule
>
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture UpdateRuleInput
sourceimpl UpdateRuleInput
impl UpdateRuleInput
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 to be retained by the retention rule. Currently, only Amazon EBS snapshots and EBS-backed AMIs are supported. To retain snapshots, specify EBS_SNAPSHOT
. To retain EBS-backed AMIs, specify EC2_IMAGE
.
Specifies the resource tags to use to identify resources that are to be retained by a tag-level retention rule. For tag-level retention rules, only deleted resources, of the specified resource type, that have one or more of the specified tag key and value pairs are retained. If a resource is deleted, but it does not have any of the specified tag key and value pairs, it is immediately deleted without being retained by the retention rule.
You can add the same tag key and value pair to a maximum or five retention rules.
To create a Region-level retention rule, omit this parameter. A Region-level retention rule does not have any resource tags specified. It retains all deleted resources of the specified resource type in the Region in which the rule is created, even if the resources are not tagged.
Trait Implementations
sourceimpl Clone for UpdateRuleInput
impl Clone for UpdateRuleInput
sourcefn clone(&self) -> UpdateRuleInput
fn clone(&self) -> UpdateRuleInput
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for UpdateRuleInput
impl Debug for UpdateRuleInput
sourceimpl PartialEq<UpdateRuleInput> for UpdateRuleInput
impl PartialEq<UpdateRuleInput> for UpdateRuleInput
sourcefn eq(&self, other: &UpdateRuleInput) -> bool
fn eq(&self, other: &UpdateRuleInput) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &UpdateRuleInput) -> bool
fn ne(&self, other: &UpdateRuleInput) -> bool
This method tests for !=
.
impl StructuralPartialEq for UpdateRuleInput
Auto Trait Implementations
impl RefUnwindSafe for UpdateRuleInput
impl Send for UpdateRuleInput
impl Sync for UpdateRuleInput
impl Unpin for UpdateRuleInput
impl UnwindSafe for UpdateRuleInput
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more