Struct aws_sdk_backup::types::ProtectedResourceConditions
source · #[non_exhaustive]pub struct ProtectedResourceConditions {
pub string_equals: Option<Vec<KeyValue>>,
pub string_not_equals: Option<Vec<KeyValue>>,
}
Expand description
A list of conditions that you define for resources in your restore testing plan using tags.
For example, "StringEquals": { "Key": "aws:ResourceTag/CreatedByCryo", "Value": "true" },
. Condition operators 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<KeyValue>>
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<KeyValue>>
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."
Implementations§
source§impl ProtectedResourceConditions
impl ProtectedResourceConditions
sourcepub fn string_equals(&self) -> &[KeyValue]
pub fn string_equals(&self) -> &[KeyValue]
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) -> &[KeyValue]
pub fn string_not_equals(&self) -> &[KeyValue]
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()
.
source§impl ProtectedResourceConditions
impl ProtectedResourceConditions
sourcepub fn builder() -> ProtectedResourceConditionsBuilder
pub fn builder() -> ProtectedResourceConditionsBuilder
Creates a new builder-style object to manufacture ProtectedResourceConditions
.
Trait Implementations§
source§impl Clone for ProtectedResourceConditions
impl Clone for ProtectedResourceConditions
source§fn clone(&self) -> ProtectedResourceConditions
fn clone(&self) -> ProtectedResourceConditions
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ProtectedResourceConditions
impl Debug for ProtectedResourceConditions
impl StructuralPartialEq for ProtectedResourceConditions
Auto Trait Implementations§
impl Freeze for ProtectedResourceConditions
impl RefUnwindSafe for ProtectedResourceConditions
impl Send for ProtectedResourceConditions
impl Sync for ProtectedResourceConditions
impl Unpin for ProtectedResourceConditions
impl UnwindSafe for ProtectedResourceConditions
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