Struct aws_sdk_macie2::model::SimpleScopeTerm
source · #[non_exhaustive]pub struct SimpleScopeTerm { /* private fields */ }
Expand description
Specifies a property-based condition that determines whether an S3 object is included or excluded from a classification job.
Implementations§
source§impl SimpleScopeTerm
impl SimpleScopeTerm
sourcepub fn comparator(&self) -> Option<&JobComparator>
pub fn comparator(&self) -> Option<&JobComparator>
The operator to use in the condition. Valid values for each supported property (key) are:
OBJECT_EXTENSION - EQ (equals) or NE (not equals)
OBJECT_KEY - STARTS_WITH
OBJECT_LAST_MODIFIED_DATE - Any operator except CONTAINS
OBJECT_SIZE - Any operator except CONTAINS
sourcepub fn key(&self) -> Option<&ScopeFilterKey>
pub fn key(&self) -> Option<&ScopeFilterKey>
The object property to use in the condition.
sourcepub fn values(&self) -> Option<&[String]>
pub fn values(&self) -> Option<&[String]>
An array that lists the values to use in the condition. If the value for the key property is OBJECT_EXTENSION or OBJECT_KEY, this array can specify multiple values and Amazon Macie uses OR logic to join the values. Otherwise, this array can specify only one value.
Valid values for each supported property (key) are:
OBJECT_EXTENSION - A string that represents the file name extension of an object. For example: docx or pdf
OBJECT_KEY - A string that represents the key prefix (folder name or path) of an object. For example: logs or awslogs/eventlogs. This value applies a condition to objects whose keys (names) begin with the specified value.
OBJECT_LAST_MODIFIED_DATE - The date and time (in UTC and extended ISO 8601 format) when an object was created or last changed, whichever is latest. For example: 2020-09-28T14:31:13Z
OBJECT_SIZE - An integer that represents the storage size (in bytes) of an object.
Macie doesn't support use of wildcard characters in these values. Also, string values are case sensitive.
source§impl SimpleScopeTerm
impl SimpleScopeTerm
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture SimpleScopeTerm
.
Trait Implementations§
source§impl Clone for SimpleScopeTerm
impl Clone for SimpleScopeTerm
source§fn clone(&self) -> SimpleScopeTerm
fn clone(&self) -> SimpleScopeTerm
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SimpleScopeTerm
impl Debug for SimpleScopeTerm
source§impl PartialEq<SimpleScopeTerm> for SimpleScopeTerm
impl PartialEq<SimpleScopeTerm> for SimpleScopeTerm
source§fn eq(&self, other: &SimpleScopeTerm) -> bool
fn eq(&self, other: &SimpleScopeTerm) -> bool
self
and other
values to be equal, and is used
by ==
.