Struct aws_sdk_rbin::operation::update_rule::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>
This parameter is currently not supported. You can't update a retention rule's resource type after creation.
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§
source§impl 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>
This parameter is currently not supported. You can't update a retention rule's resource type after creation.
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.
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()
.
source§impl UpdateRuleInput
impl UpdateRuleInput
sourcepub fn builder() -> UpdateRuleInputBuilder
pub fn builder() -> UpdateRuleInputBuilder
Creates a new builder-style object to manufacture UpdateRuleInput
.
Trait Implementations§
source§impl Clone for UpdateRuleInput
impl Clone for UpdateRuleInput
source§fn clone(&self) -> UpdateRuleInput
fn clone(&self) -> UpdateRuleInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for UpdateRuleInput
impl Debug for UpdateRuleInput
source§impl PartialEq for UpdateRuleInput
impl PartialEq for UpdateRuleInput
source§fn eq(&self, other: &UpdateRuleInput) -> bool
fn eq(&self, other: &UpdateRuleInput) -> bool
self
and other
values to be equal, and is used
by ==
.