#[non_exhaustive]pub struct SearchResourcesSimpleCriterion {
pub comparator: Option<SearchResourcesComparator>,
pub key: Option<SearchResourcesSimpleCriterionKey>,
pub values: Option<Vec<String>>,
}
Expand description
Specifies a property-based filter condition that determines which Amazon Web Services resources are included or excluded from the query results.
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<SearchResourcesComparator>
The operator to use in the condition. Valid values are EQ (equals) and NE (not equals).
key: Option<SearchResourcesSimpleCriterionKey>
The property to use in the condition.
values: Option<Vec<String>>
An array that lists one or more values to use in the condition. If you specify multiple values, Amazon Macie uses OR logic to join the values. Valid values for each supported property (key) are:
ACCOUNT_ID - A string that represents the unique identifier for the Amazon Web Services account that owns the resource.
S3_BUCKET_EFFECTIVE_PERMISSION - A string that represents an enumerated value that Macie defines for the BucketPublicAccess.effectivePermission property of an S3 bucket.
S3_BUCKET_NAME - A string that represents the name of an S3 bucket.
S3_BUCKET_SHARED_ACCESS - A string that represents an enumerated value that Macie defines for the BucketMetadata.sharedAccess property of an S3 bucket.
Values are case sensitive. Also, Macie doesn't support use of partial values or wildcard characters in values.
Implementations
sourceimpl SearchResourcesSimpleCriterion
impl SearchResourcesSimpleCriterion
sourcepub fn comparator(&self) -> Option<&SearchResourcesComparator>
pub fn comparator(&self) -> Option<&SearchResourcesComparator>
The operator to use in the condition. Valid values are EQ (equals) and NE (not equals).
sourcepub fn key(&self) -> Option<&SearchResourcesSimpleCriterionKey>
pub fn key(&self) -> Option<&SearchResourcesSimpleCriterionKey>
The property to use in the condition.
sourcepub fn values(&self) -> Option<&[String]>
pub fn values(&self) -> Option<&[String]>
An array that lists one or more values to use in the condition. If you specify multiple values, Amazon Macie uses OR logic to join the values. Valid values for each supported property (key) are:
ACCOUNT_ID - A string that represents the unique identifier for the Amazon Web Services account that owns the resource.
S3_BUCKET_EFFECTIVE_PERMISSION - A string that represents an enumerated value that Macie defines for the BucketPublicAccess.effectivePermission property of an S3 bucket.
S3_BUCKET_NAME - A string that represents the name of an S3 bucket.
S3_BUCKET_SHARED_ACCESS - A string that represents an enumerated value that Macie defines for the BucketMetadata.sharedAccess property of an S3 bucket.
Values are case sensitive. Also, Macie doesn't support use of partial values or wildcard characters in values.
sourceimpl SearchResourcesSimpleCriterion
impl SearchResourcesSimpleCriterion
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture SearchResourcesSimpleCriterion
Trait Implementations
sourceimpl Clone for SearchResourcesSimpleCriterion
impl Clone for SearchResourcesSimpleCriterion
sourcefn clone(&self) -> SearchResourcesSimpleCriterion
fn clone(&self) -> SearchResourcesSimpleCriterion
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 PartialEq<SearchResourcesSimpleCriterion> for SearchResourcesSimpleCriterion
impl PartialEq<SearchResourcesSimpleCriterion> for SearchResourcesSimpleCriterion
sourcefn eq(&self, other: &SearchResourcesSimpleCriterion) -> bool
fn eq(&self, other: &SearchResourcesSimpleCriterion) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &SearchResourcesSimpleCriterion) -> bool
fn ne(&self, other: &SearchResourcesSimpleCriterion) -> bool
This method tests for !=
.
impl StructuralPartialEq for SearchResourcesSimpleCriterion
Auto Trait Implementations
impl RefUnwindSafe for SearchResourcesSimpleCriterion
impl Send for SearchResourcesSimpleCriterion
impl Sync for SearchResourcesSimpleCriterion
impl Unpin for SearchResourcesSimpleCriterion
impl UnwindSafe for SearchResourcesSimpleCriterion
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
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.
sourcefn clone_into(&self, target: &mut T)
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