Struct aws_sdk_backup::types::Conditions
source · #[non_exhaustive]pub struct Conditions {
pub string_equals: Option<Vec<ConditionParameter>>,
pub string_not_equals: Option<Vec<ConditionParameter>>,
pub string_like: Option<Vec<ConditionParameter>>,
pub string_not_like: Option<Vec<ConditionParameter>>,
}
Expand description
Contains information about which resources to include or exclude from a backup plan using their tags. Conditions are case sensitive.
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.string_equals: Option<Vec<ConditionParameter>>
Filters the values of your tagged resources for only those resources that you tagged with the same value. Also called "exact matching."
string_not_equals: Option<Vec<ConditionParameter>>
Filters the values of your tagged resources for only those resources that you tagged that do not have the same value. Also called "negated matching."
string_like: Option<Vec<ConditionParameter>>
Filters the values of your tagged resources for matching tag values with the use of a wildcard character (*) anywhere in the string. For example, "prod*" or "*rod*" matches the tag value "production".
string_not_like: Option<Vec<ConditionParameter>>
Filters the values of your tagged resources for non-matching tag values with the use of a wildcard character (*) anywhere in the string.
Implementations§
source§impl Conditions
impl Conditions
sourcepub fn string_equals(&self) -> &[ConditionParameter]
pub fn string_equals(&self) -> &[ConditionParameter]
Filters the values of your tagged resources for only those resources that you tagged with the same value. Also called "exact matching."
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .string_equals.is_none()
.
sourcepub fn string_not_equals(&self) -> &[ConditionParameter]
pub fn string_not_equals(&self) -> &[ConditionParameter]
Filters the values of your tagged resources for only those resources that you tagged that do not have the same value. Also called "negated matching."
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .string_not_equals.is_none()
.
sourcepub fn string_like(&self) -> &[ConditionParameter]
pub fn string_like(&self) -> &[ConditionParameter]
Filters the values of your tagged resources for matching tag values with the use of a wildcard character (*) anywhere in the string. For example, "prod*" or "*rod*" matches the tag value "production".
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .string_like.is_none()
.
sourcepub fn string_not_like(&self) -> &[ConditionParameter]
pub fn string_not_like(&self) -> &[ConditionParameter]
Filters the values of your tagged resources for non-matching tag values with the use of a wildcard character (*) anywhere in the string.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .string_not_like.is_none()
.
source§impl Conditions
impl Conditions
sourcepub fn builder() -> ConditionsBuilder
pub fn builder() -> ConditionsBuilder
Creates a new builder-style object to manufacture Conditions
.
Trait Implementations§
source§impl Clone for Conditions
impl Clone for Conditions
source§fn clone(&self) -> Conditions
fn clone(&self) -> Conditions
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for Conditions
impl Debug for Conditions
source§impl PartialEq for Conditions
impl PartialEq for Conditions
source§fn eq(&self, other: &Conditions) -> bool
fn eq(&self, other: &Conditions) -> bool
self
and other
values to be equal, and is used
by ==
.