#[non_exhaustive]pub struct PutBucketMetricsConfigurationInput {
pub bucket: Option<String>,
pub id: Option<String>,
pub metrics_configuration: Option<MetricsConfiguration>,
pub expected_bucket_owner: Option<String>,
}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.bucket: Option<String>The name of the bucket for which the metrics configuration is set.
Directory buckets - When you use this operation with a directory bucket, you must use path-style requests in the format https://s3express-control.region-code.amazonaws.com/bucket-name . Virtual-hosted-style requests aren't supported. Directory bucket names must be unique in the chosen Zone (Availability Zone or Local Zone). Bucket names must also follow the format bucket-base-name--zone-id--x-s3 (for example, DOC-EXAMPLE-BUCKET--usw2-az1--x-s3). For information about bucket naming restrictions, see Directory bucket naming rules in the Amazon S3 User Guide
id: Option<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.
metrics_configuration: Option<MetricsConfiguration>Specifies the metrics configuration.
expected_bucket_owner: Option<String>The account ID of the expected bucket owner. If the account ID that you provide does not match the actual owner of the bucket, the request fails with the HTTP status code 403 Forbidden (access denied).
For directory buckets, this header is not supported in this API operation. If you specify this header, the request fails with the HTTP status code 501 Not Implemented.
Implementations§
Source§impl PutBucketMetricsConfigurationInput
impl PutBucketMetricsConfigurationInput
Sourcepub fn bucket(&self) -> Option<&str>
pub fn bucket(&self) -> Option<&str>
The name of the bucket for which the metrics configuration is set.
Directory buckets - When you use this operation with a directory bucket, you must use path-style requests in the format https://s3express-control.region-code.amazonaws.com/bucket-name . Virtual-hosted-style requests aren't supported. Directory bucket names must be unique in the chosen Zone (Availability Zone or Local Zone). Bucket names must also follow the format bucket-base-name--zone-id--x-s3 (for example, DOC-EXAMPLE-BUCKET--usw2-az1--x-s3). For information about bucket naming restrictions, see Directory bucket naming rules in the Amazon S3 User Guide
Sourcepub fn id(&self) -> Option<&str>
pub fn id(&self) -> Option<&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 metrics_configuration(&self) -> Option<&MetricsConfiguration>
pub fn metrics_configuration(&self) -> Option<&MetricsConfiguration>
Specifies the metrics configuration.
Sourcepub fn expected_bucket_owner(&self) -> Option<&str>
pub fn expected_bucket_owner(&self) -> Option<&str>
The account ID of the expected bucket owner. If the account ID that you provide does not match the actual owner of the bucket, the request fails with the HTTP status code 403 Forbidden (access denied).
For directory buckets, this header is not supported in this API operation. If you specify this header, the request fails with the HTTP status code 501 Not Implemented.
Source§impl PutBucketMetricsConfigurationInput
impl PutBucketMetricsConfigurationInput
Sourcepub fn builder() -> PutBucketMetricsConfigurationInputBuilder
pub fn builder() -> PutBucketMetricsConfigurationInputBuilder
Creates a new builder-style object to manufacture PutBucketMetricsConfigurationInput.
Trait Implementations§
Source§impl Clone for PutBucketMetricsConfigurationInput
impl Clone for PutBucketMetricsConfigurationInput
Source§fn clone(&self) -> PutBucketMetricsConfigurationInput
fn clone(&self) -> PutBucketMetricsConfigurationInput
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl PartialEq for PutBucketMetricsConfigurationInput
impl PartialEq for PutBucketMetricsConfigurationInput
Source§fn eq(&self, other: &PutBucketMetricsConfigurationInput) -> bool
fn eq(&self, other: &PutBucketMetricsConfigurationInput) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PutBucketMetricsConfigurationInput
Auto Trait Implementations§
impl Freeze for PutBucketMetricsConfigurationInput
impl RefUnwindSafe for PutBucketMetricsConfigurationInput
impl Send for PutBucketMetricsConfigurationInput
impl Sync for PutBucketMetricsConfigurationInput
impl Unpin for PutBucketMetricsConfigurationInput
impl UnsafeUnpin for PutBucketMetricsConfigurationInput
impl UnwindSafe for PutBucketMetricsConfigurationInput
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§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