Struct aws_sdk_s3::model::MetricsConfiguration
source · #[non_exhaustive]pub struct MetricsConfiguration { /* private fields */ }
Expand description
Specifies a metrics configuration for the CloudWatch request metrics (specified by the metrics configuration ID) from an Amazon S3 bucket. If you're updating an existing metrics configuration, note that this is a full replacement of the existing metrics configuration. If you don't include the elements you want to keep, they are erased. For more information, see PutBucketMetricsConfiguration.
Implementations§
source§impl MetricsConfiguration
impl MetricsConfiguration
sourcepub fn filter(&self) -> Option<&MetricsFilter>
pub fn filter(&self) -> Option<&MetricsFilter>
Specifies a metrics configuration filter. The metrics configuration will only include objects that meet the filter's criteria. A filter must be a prefix, an object tag, an access point ARN, or a conjunction (MetricsAndOperator).
source§impl MetricsConfiguration
impl MetricsConfiguration
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture MetricsConfiguration
.
Examples found in repository?
src/xml_deser.rs (line 4117)
4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147
pub fn deser_structure_crate_model_metrics_configuration(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::MetricsConfiguration, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::MetricsConfiguration::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("Id") /* Id com.amazonaws.s3#MetricsConfiguration$Id */ => {
let var_229 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_id(var_229);
}
,
s if s.matches("Filter") /* Filter com.amazonaws.s3#MetricsConfiguration$Filter */ => {
let var_230 =
Some(
crate::xml_deser::deser_union_crate_model_metrics_filter(&mut tag)
?
)
;
builder = builder.set_filter(var_230);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for MetricsConfiguration
impl Clone for MetricsConfiguration
source§fn clone(&self) -> MetricsConfiguration
fn clone(&self) -> MetricsConfiguration
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