interface BucketMetrics
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.S3.BucketMetrics |
Java | software.amazon.awscdk.services.s3.BucketMetrics |
Python | aws_cdk.aws_s3.BucketMetrics |
TypeScript (source) | @aws-cdk/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 * as s3 from '@aws-cdk/aws-s3';
declare const tagFilters: any;
const bucketMetrics: s3.BucketMetrics = {
id: 'id',
// the properties below are optional
prefix: 'prefix',
tagFilters: {
tagFiltersKey: tagFilters,
},
};
Properties
Name | Type | Description |
---|---|---|
id | string | The ID used to identify the metrics configuration. |
prefix? | string | The prefix that an object must have to be included in the metrics results. |
tag | { [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.