class Aws::S3::Types::PutBucketMetricsConfigurationRequest

@note When making an API call, you may pass PutBucketMetricsConfigurationRequest

data as a hash:

    {
      bucket: "BucketName", # required
      id: "MetricsId", # required
      metrics_configuration: { # required
        id: "MetricsId", # required
        filter: {
          prefix: "Prefix",
          tag: {
            key: "ObjectKey", # required
            value: "Value", # required
          },
          and: {
            prefix: "Prefix",
            tags: [
              {
                key: "ObjectKey", # required
                value: "Value", # required
              },
            ],
          },
        },
      },
      expected_bucket_owner: "AccountId",
    }

@!attribute [rw] bucket

The name of the bucket for which the metrics configuration is set.
@return [String]

@!attribute [rw] id

The ID used to identify the metrics configuration.
@return [String]

@!attribute [rw] metrics_configuration

Specifies the metrics configuration.
@return [Types::MetricsConfiguration]

@!attribute [rw] expected_bucket_owner

The account ID of the expected bucket owner. If the bucket is owned
by a different account, the request will fail with an HTTP `403
(Access Denied)` error.
@return [String]

@see docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketMetricsConfigurationRequest AWS API Documentation

Constants

SENSITIVE