Struct aws_sdk_s3control::model::CloudWatchMetrics
source · #[non_exhaustive]pub struct CloudWatchMetrics { /* private fields */ }
Expand description
A container for enabling Amazon CloudWatch publishing for S3 Storage Lens metrics.
For more information about publishing S3 Storage Lens metrics to CloudWatch, see Monitor S3 Storage Lens metrics in CloudWatch in the Amazon S3 User Guide.
Implementations§
source§impl CloudWatchMetrics
impl CloudWatchMetrics
sourcepub fn is_enabled(&self) -> bool
pub fn is_enabled(&self) -> bool
A container that indicates whether CloudWatch publishing for S3 Storage Lens metrics is enabled. A value of true
indicates that CloudWatch publishing for S3 Storage Lens metrics is enabled.
source§impl CloudWatchMetrics
impl CloudWatchMetrics
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture CloudWatchMetrics
.
Examples found in repository?
src/xml_deser.rs (line 5712)
5708 5709 5710 5711 5712 5713 5714 5715 5716 5717 5718 5719 5720 5721 5722 5723 5724 5725 5726 5727 5728 5729 5730 5731 5732 5733 5734
pub fn deser_structure_crate_model_cloud_watch_metrics(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::CloudWatchMetrics, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::CloudWatchMetrics::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("IsEnabled") /* IsEnabled com.amazonaws.s3control#CloudWatchMetrics$IsEnabled */ => {
let var_268 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.s3control#IsEnabled`)"))
}
?
)
;
builder = builder.set_is_enabled(var_268);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for CloudWatchMetrics
impl Clone for CloudWatchMetrics
source§fn clone(&self) -> CloudWatchMetrics
fn clone(&self) -> CloudWatchMetrics
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more