Struct aws_sdk_macie2::types::UsageStatisticsFilter
source · #[non_exhaustive]pub struct UsageStatisticsFilter {
pub comparator: Option<UsageStatisticsFilterComparator>,
pub key: Option<UsageStatisticsFilterKey>,
pub values: Option<Vec<String>>,
}
Expand description
Specifies a condition for filtering the results of a query for quota and usage data for one or more Amazon Macie accounts.
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<UsageStatisticsFilterComparator>
The operator to use in the condition. If the value for the key property is accountId, this value must be CONTAINS. If the value for the key property is any other supported field, this value can be EQ, GT, GTE, LT, LTE, or NE.
key: Option<UsageStatisticsFilterKey>
The field to use in the condition.
values: Option<Vec<String>>
An array that lists values to use in the condition, based on the value for the field specified by the key property. If the value for the key property is accountId, this array can specify multiple values. Otherwise, this array can specify only one value.
Valid values for each supported field are:
-
accountId - The unique identifier for an Amazon Web Services account.
-
freeTrialStartDate - The date and time, in UTC and extended ISO 8601 format, when the Amazon Macie free trial started for an account.
-
serviceLimit - A Boolean (true or false) value that indicates whether an account has reached its monthly quota.
-
total - A string that represents the current estimated cost for an account.
Implementations§
source§impl UsageStatisticsFilter
impl UsageStatisticsFilter
sourcepub fn comparator(&self) -> Option<&UsageStatisticsFilterComparator>
pub fn comparator(&self) -> Option<&UsageStatisticsFilterComparator>
The operator to use in the condition. If the value for the key property is accountId, this value must be CONTAINS. If the value for the key property is any other supported field, this value can be EQ, GT, GTE, LT, LTE, or NE.
sourcepub fn key(&self) -> Option<&UsageStatisticsFilterKey>
pub fn key(&self) -> Option<&UsageStatisticsFilterKey>
The field to use in the condition.
sourcepub fn values(&self) -> &[String]
pub fn values(&self) -> &[String]
An array that lists values to use in the condition, based on the value for the field specified by the key property. If the value for the key property is accountId, this array can specify multiple values. Otherwise, this array can specify only one value.
Valid values for each supported field are:
-
accountId - The unique identifier for an Amazon Web Services account.
-
freeTrialStartDate - The date and time, in UTC and extended ISO 8601 format, when the Amazon Macie free trial started for an account.
-
serviceLimit - A Boolean (true or false) value that indicates whether an account has reached its monthly quota.
-
total - A string that represents the current estimated cost for an account.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .values.is_none()
.
source§impl UsageStatisticsFilter
impl UsageStatisticsFilter
sourcepub fn builder() -> UsageStatisticsFilterBuilder
pub fn builder() -> UsageStatisticsFilterBuilder
Creates a new builder-style object to manufacture UsageStatisticsFilter
.
Trait Implementations§
source§impl Clone for UsageStatisticsFilter
impl Clone for UsageStatisticsFilter
source§fn clone(&self) -> UsageStatisticsFilter
fn clone(&self) -> UsageStatisticsFilter
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for UsageStatisticsFilter
impl Debug for UsageStatisticsFilter
source§impl PartialEq for UsageStatisticsFilter
impl PartialEq for UsageStatisticsFilter
source§fn eq(&self, other: &UsageStatisticsFilter) -> bool
fn eq(&self, other: &UsageStatisticsFilter) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for UsageStatisticsFilter
Auto Trait Implementations§
impl Freeze for UsageStatisticsFilter
impl RefUnwindSafe for UsageStatisticsFilter
impl Send for UsageStatisticsFilter
impl Sync for UsageStatisticsFilter
impl Unpin for UsageStatisticsFilter
impl UnwindSafe for UsageStatisticsFilter
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more