BucketMetrics Struct
Specifies a metrics configuration for the CloudWatch request metrics from an Amazon S3 bucket.
Example
ts
// 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
The ID used to identify the metrics configuration.
The prefix that an object must have to be included in the metrics results.
tagFilters{ [key: string]: any }tag_filterstyping.Mapping[str, Any]tagFiltersMap<String, Object>TagFiltersIDictionary<string, object>TagFilters*map[string]interface{}#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.