Struct aws_sdk_s3::types::MetricsConfiguration
source · #[non_exhaustive]pub struct MetricsConfiguration {
pub id: String,
pub filter: Option<MetricsFilter>,
}
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.
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.id: String
The ID used to identify the metrics configuration. The ID has a 64 character limit and can only contain letters, numbers, periods, dashes, and underscores.
filter: 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).
Implementations§
source§impl MetricsConfiguration
impl MetricsConfiguration
sourcepub fn id(&self) -> &str
pub fn id(&self) -> &str
The ID used to identify the metrics configuration. The ID has a 64 character limit and can only contain letters, numbers, periods, dashes, and underscores.
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() -> MetricsConfigurationBuilder
pub fn builder() -> MetricsConfigurationBuilder
Creates a new builder-style object to manufacture MetricsConfiguration
.
Trait Implementations§
source§impl Clone for MetricsConfiguration
impl Clone for MetricsConfiguration
source§fn clone(&self) -> MetricsConfiguration
fn clone(&self) -> MetricsConfiguration
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for MetricsConfiguration
impl Debug for MetricsConfiguration
source§impl PartialEq for MetricsConfiguration
impl PartialEq for MetricsConfiguration
impl StructuralPartialEq for MetricsConfiguration
Auto Trait Implementations§
impl Freeze for MetricsConfiguration
impl RefUnwindSafe for MetricsConfiguration
impl Send for MetricsConfiguration
impl Sync for MetricsConfiguration
impl Unpin for MetricsConfiguration
impl UnwindSafe for MetricsConfiguration
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)