Struct aws_sdk_macie2::types::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§
source§impl 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.
source§impl SimpleCriterionForJob
impl SimpleCriterionForJob
sourcepub fn builder() -> SimpleCriterionForJobBuilder
pub fn builder() -> SimpleCriterionForJobBuilder
Creates a new builder-style object to manufacture SimpleCriterionForJob
.
Trait Implementations§
source§impl Clone for SimpleCriterionForJob
impl Clone for SimpleCriterionForJob
source§fn clone(&self) -> SimpleCriterionForJob
fn clone(&self) -> SimpleCriterionForJob
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SimpleCriterionForJob
impl Debug for SimpleCriterionForJob
source§impl PartialEq<SimpleCriterionForJob> for SimpleCriterionForJob
impl PartialEq<SimpleCriterionForJob> for SimpleCriterionForJob
source§fn eq(&self, other: &SimpleCriterionForJob) -> bool
fn eq(&self, other: &SimpleCriterionForJob) -> bool
self
and other
values to be equal, and is used
by ==
.