Struct aws_sdk_macie2::model::SimpleCriterionForJob
source · [−]#[non_exhaustive]pub struct SimpleCriterionForJob {
pub comparator: Option<JobComparator>,
pub key: Option<SimpleCriterionKeyForJob>,
pub values: Option<Vec<String>>,
}
Expand description
Specifies a property-based condition that determines whether an S3 bucket 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) and NE (not equals).
key: Option<SimpleCriterionKeyForJob>
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 bucket.
S3_BUCKET_EFFECTIVE_PERMISSION - A string that represents an enumerated value that Macie defines for the BucketPublicAccess.effectivePermission property of a bucket.
S3_BUCKET_NAME - A string that represents the name of a bucket.
S3_BUCKET_SHARED_ACCESS - A string that represents an enumerated value that Macie defines for the BucketMetadata.sharedAccess property of a bucket.
Values are case sensitive. Also, Macie doesn't support use of partial values or wildcard characters in these values.
Implementations
sourceimpl SimpleCriterionForJob
impl SimpleCriterionForJob
sourcepub fn comparator(&self) -> Option<&JobComparator>
pub fn comparator(&self) -> Option<&JobComparator>
The operator to use in the condition. Valid values are EQ (equals) and NE (not equals).
sourcepub fn key(&self) -> Option<&SimpleCriterionKeyForJob>
pub fn key(&self) -> Option<&SimpleCriterionKeyForJob>
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 bucket.
S3_BUCKET_EFFECTIVE_PERMISSION - A string that represents an enumerated value that Macie defines for the BucketPublicAccess.effectivePermission property of a bucket.
S3_BUCKET_NAME - A string that represents the name of a bucket.
S3_BUCKET_SHARED_ACCESS - A string that represents an enumerated value that Macie defines for the BucketMetadata.sharedAccess property of a bucket.
Values are case sensitive. Also, Macie doesn't support use of partial values or wildcard characters in these values.
sourceimpl SimpleCriterionForJob
impl SimpleCriterionForJob
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture SimpleCriterionForJob
Trait Implementations
sourceimpl Clone for SimpleCriterionForJob
impl Clone for SimpleCriterionForJob
sourcefn clone(&self) -> SimpleCriterionForJob
fn clone(&self) -> SimpleCriterionForJob
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 SimpleCriterionForJob
impl Debug for SimpleCriterionForJob
sourceimpl PartialEq<SimpleCriterionForJob> for SimpleCriterionForJob
impl PartialEq<SimpleCriterionForJob> for SimpleCriterionForJob
sourcefn eq(&self, other: &SimpleCriterionForJob) -> bool
fn eq(&self, other: &SimpleCriterionForJob) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &SimpleCriterionForJob) -> bool
fn ne(&self, other: &SimpleCriterionForJob) -> bool
This method tests for !=
.
impl StructuralPartialEq for SimpleCriterionForJob
Auto Trait Implementations
impl RefUnwindSafe for SimpleCriterionForJob
impl Send for SimpleCriterionForJob
impl Sync for SimpleCriterionForJob
impl Unpin for SimpleCriterionForJob
impl UnwindSafe for SimpleCriterionForJob
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