Struct aws_sdk_s3control::model::StorageLensDataExport
source · #[non_exhaustive]pub struct StorageLensDataExport { /* private fields */ }
Expand description
A container to specify the properties of your S3 Storage Lens metrics export, including the destination, schema, and format.
Implementations§
source§impl StorageLensDataExport
impl StorageLensDataExport
sourcepub fn s3_bucket_destination(&self) -> Option<&S3BucketDestination>
pub fn s3_bucket_destination(&self) -> Option<&S3BucketDestination>
A container for the bucket where the S3 Storage Lens metrics export will be located.
This bucket must be located in the same Region as the storage lens configuration.
sourcepub fn cloud_watch_metrics(&self) -> Option<&CloudWatchMetrics>
pub fn cloud_watch_metrics(&self) -> Option<&CloudWatchMetrics>
A container for enabling Amazon CloudWatch publishing for S3 Storage Lens metrics.
source§impl StorageLensDataExport
impl StorageLensDataExport
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture StorageLensDataExport
.
Examples found in repository?
src/xml_deser.rs (line 4301)
4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328
pub fn deser_structure_crate_model_storage_lens_data_export(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::StorageLensDataExport, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::StorageLensDataExport::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("S3BucketDestination") /* S3BucketDestination com.amazonaws.s3control#StorageLensDataExport$S3BucketDestination */ => {
let var_194 =
Some(
crate::xml_deser::deser_structure_crate_model_s3_bucket_destination(&mut tag)
?
)
;
builder = builder.set_s3_bucket_destination(var_194);
}
,
s if s.matches("CloudWatchMetrics") /* CloudWatchMetrics com.amazonaws.s3control#StorageLensDataExport$CloudWatchMetrics */ => {
let var_195 =
Some(
crate::xml_deser::deser_structure_crate_model_cloud_watch_metrics(&mut tag)
?
)
;
builder = builder.set_cloud_watch_metrics(var_195);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for StorageLensDataExport
impl Clone for StorageLensDataExport
source§fn clone(&self) -> StorageLensDataExport
fn clone(&self) -> StorageLensDataExport
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