Struct aws_sdk_rbin::input::CreateRuleInput
source · [−]#[non_exhaustive]pub struct CreateRuleInput {
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>>,
}
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.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 to assign to the retention rule.
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 CreateRuleInput
impl CreateRuleInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateRule, AwsErrorRetryPolicy>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateRule, AwsErrorRetryPolicy>, BuildError>
Consumes the builder and constructs an Operation<CreateRule
>
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture CreateRuleInput
sourceimpl CreateRuleInput
impl CreateRuleInput
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 to assign to the retention rule.
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 CreateRuleInput
impl Clone for CreateRuleInput
sourcefn clone(&self) -> CreateRuleInput
fn clone(&self) -> CreateRuleInput
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 CreateRuleInput
impl Debug for CreateRuleInput
sourceimpl PartialEq<CreateRuleInput> for CreateRuleInput
impl PartialEq<CreateRuleInput> for CreateRuleInput
sourcefn eq(&self, other: &CreateRuleInput) -> bool
fn eq(&self, other: &CreateRuleInput) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &CreateRuleInput) -> bool
fn ne(&self, other: &CreateRuleInput) -> bool
This method tests for !=
.
impl StructuralPartialEq for CreateRuleInput
Auto Trait Implementations
impl RefUnwindSafe for CreateRuleInput
impl Send for CreateRuleInput
impl Sync for CreateRuleInput
impl Unpin for CreateRuleInput
impl UnwindSafe for CreateRuleInput
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