Struct aws_sdk_macie2::model::TagScopeTerm
source · [−]#[non_exhaustive]pub struct TagScopeTerm {
pub comparator: Option<JobComparator>,
pub key: Option<String>,
pub tag_values: Option<Vec<TagValuePair>>,
pub target: Option<TagTarget>,
}
Expand description
Specifies a tag-based condition that determines whether an S3 object is included or excluded from a classification job.
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.comparator: Option<JobComparator>
The operator to use in the condition. Valid values are EQ (equals) or NE (not equals).
key: Option<String>
The object property to use in the condition. The only valid value is TAG.
tag_values: Option<Vec<TagValuePair>>
The tag keys or tag key and value pairs to use in the condition. To specify only tag keys in a condition, specify the keys in this array and set the value for each associated tag value to an empty string.
target: Option<TagTarget>
The type of object to apply the condition to.
Implementations
sourceimpl TagScopeTerm
impl TagScopeTerm
sourcepub fn comparator(&self) -> Option<&JobComparator>
pub fn comparator(&self) -> Option<&JobComparator>
The operator to use in the condition. Valid values are EQ (equals) or NE (not equals).
sourcepub fn key(&self) -> Option<&str>
pub fn key(&self) -> Option<&str>
The object property to use in the condition. The only valid value is TAG.
sourcepub fn tag_values(&self) -> Option<&[TagValuePair]>
pub fn tag_values(&self) -> Option<&[TagValuePair]>
The tag keys or tag key and value pairs to use in the condition. To specify only tag keys in a condition, specify the keys in this array and set the value for each associated tag value to an empty string.
sourceimpl TagScopeTerm
impl TagScopeTerm
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture TagScopeTerm
Trait Implementations
sourceimpl Clone for TagScopeTerm
impl Clone for TagScopeTerm
sourcefn clone(&self) -> TagScopeTerm
fn clone(&self) -> TagScopeTerm
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for TagScopeTerm
impl Debug for TagScopeTerm
sourceimpl PartialEq<TagScopeTerm> for TagScopeTerm
impl PartialEq<TagScopeTerm> for TagScopeTerm
sourcefn eq(&self, other: &TagScopeTerm) -> bool
fn eq(&self, other: &TagScopeTerm) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &TagScopeTerm) -> bool
fn ne(&self, other: &TagScopeTerm) -> bool
This method tests for !=
.
impl StructuralPartialEq for TagScopeTerm
Auto Trait Implementations
impl RefUnwindSafe for TagScopeTerm
impl Send for TagScopeTerm
impl Sync for TagScopeTerm
impl Unpin for TagScopeTerm
impl UnwindSafe for TagScopeTerm
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more