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
impl StructuralPartialEq for Conditions
Auto Trait Implementations§
impl Freeze for Conditions
impl RefUnwindSafe for Conditions
impl Send for Conditions
impl Sync for Conditions
impl Unpin for Conditions
impl UnwindSafe for Conditions
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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