Struct aws_sdk_macie2::types::UsageByAccount
source · #[non_exhaustive]pub struct UsageByAccount {
pub currency: Option<Currency>,
pub estimated_cost: Option<String>,
pub service_limit: Option<ServiceLimit>,
pub type: Option<UsageType>,
}
Expand description
Provides data for a specific usage metric and the corresponding quota for an Amazon Macie account.
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.currency: Option<Currency>
The type of currency that the value for the metric (estimatedCost) is reported in.
estimated_cost: Option<String>
The estimated value for the metric.
service_limit: Option<ServiceLimit>
The current value for the quota that corresponds to the metric specified by the type field.
type: Option<UsageType>
The name of the metric. Possible values are: AUTOMATED_OBJECT_MONITORING, to monitor S3 objects for automated sensitive data discovery; AUTOMATED_SENSITIVE_DATA_DISCOVERY, to analyze S3 objects for automated sensitive data discovery; DATA_INVENTORY_EVALUATION, to monitor S3 buckets; and, SENSITIVE_DATA_DISCOVERY, to run classification jobs.
Implementations§
source§impl UsageByAccount
impl UsageByAccount
sourcepub fn currency(&self) -> Option<&Currency>
pub fn currency(&self) -> Option<&Currency>
The type of currency that the value for the metric (estimatedCost) is reported in.
sourcepub fn estimated_cost(&self) -> Option<&str>
pub fn estimated_cost(&self) -> Option<&str>
The estimated value for the metric.
sourcepub fn service_limit(&self) -> Option<&ServiceLimit>
pub fn service_limit(&self) -> Option<&ServiceLimit>
The current value for the quota that corresponds to the metric specified by the type field.
sourcepub fn type(&self) -> Option<&UsageType>
pub fn type(&self) -> Option<&UsageType>
The name of the metric. Possible values are: AUTOMATED_OBJECT_MONITORING, to monitor S3 objects for automated sensitive data discovery; AUTOMATED_SENSITIVE_DATA_DISCOVERY, to analyze S3 objects for automated sensitive data discovery; DATA_INVENTORY_EVALUATION, to monitor S3 buckets; and, SENSITIVE_DATA_DISCOVERY, to run classification jobs.
source§impl UsageByAccount
impl UsageByAccount
sourcepub fn builder() -> UsageByAccountBuilder
pub fn builder() -> UsageByAccountBuilder
Creates a new builder-style object to manufacture UsageByAccount
.
Trait Implementations§
source§impl Clone for UsageByAccount
impl Clone for UsageByAccount
source§fn clone(&self) -> UsageByAccount
fn clone(&self) -> UsageByAccount
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for UsageByAccount
impl Debug for UsageByAccount
source§impl PartialEq for UsageByAccount
impl PartialEq for UsageByAccount
source§fn eq(&self, other: &UsageByAccount) -> bool
fn eq(&self, other: &UsageByAccount) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for UsageByAccount
Auto Trait Implementations§
impl Freeze for UsageByAccount
impl RefUnwindSafe for UsageByAccount
impl Send for UsageByAccount
impl Sync for UsageByAccount
impl Unpin for UsageByAccount
impl UnwindSafe for UsageByAccount
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