BucketMetrics

class aws_cdk.aws_s3.BucketMetrics(*, id, prefix=None, tag_filters=None)

Bases: object

Specifies a metrics configuration for the CloudWatch request metrics from an Amazon S3 bucket.

Parameters
  • id (str) – The ID used to identify the metrics configuration.

  • prefix (Optional[str]) – The prefix that an object must have to be included in the metrics results.

  • tag_filters (Optional[Mapping[str, Any]]) – Specifies a list of tag filters to use as a metrics configuration filter. The metrics configuration includes only objects that meet the filter’s criteria.

Attributes

id

The ID used to identify the metrics configuration.

Return type

str

prefix

The prefix that an object must have to be included in the metrics results.

Return type

Optional[str]

tag_filters

Specifies a list of tag filters to use as a metrics configuration filter.

The metrics configuration includes only objects that meet the filter’s criteria.

Return type

Optional[Mapping[str, Any]]