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
source§impl PartialEq for ProtectedResourceConditions
impl PartialEq for ProtectedResourceConditions
source§fn eq(&self, other: &ProtectedResourceConditions) -> bool
fn eq(&self, other: &ProtectedResourceConditions) -> bool
self
and other
values to be equal, and is used
by ==
.