aws-cdk-lib.aws_s3.BucketMetrics

interface BucketMetrics

LanguageType name
.NETAmazon.CDK.AWS.S3.BucketMetrics
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awss3#BucketMetrics
Javasoftware.amazon.awscdk.services.s3.BucketMetrics
Pythonaws_cdk.aws_s3.BucketMetrics
TypeScript (source)aws-cdk-lib » aws_s3 » BucketMetrics

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

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_s3 as s3 } from 'aws-cdk-lib';

declare const tagFilters: any;
const bucketMetrics: s3.BucketMetrics = {
  id: 'id',

  // the properties below are optional
  prefix: 'prefix',
  tagFilters: {
    tagFiltersKey: tagFilters,
  },
};

Properties

NameTypeDescription
idstringThe ID used to identify the metrics configuration.
prefix?stringThe prefix that an object must have to be included in the metrics results.
tagFilters?{ [string]: any }Specifies a list of tag filters to use as a metrics configuration filter.

id

Type: string

The ID used to identify the metrics configuration.


prefix?

Type: string (optional)

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


tagFilters?

Type: { [string]: any } (optional)

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.