Interface IBucketMetrics
Specifies a metrics configuration for the CloudWatch request metrics from an Amazon S3 bucket.
Namespace: Amazon.CDK.AWS.S3
Assembly: Amazon.CDK.AWS.S3.dll
Syntax (csharp)
public interface IBucketMetrics
Syntax (vb)
Public Interface IBucketMetrics
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.S3;
var tagFilters;
var bucketMetrics = new BucketMetrics {
Id = "id",
// the properties below are optional
Prefix = "prefix",
TagFilters = new Dictionary<string, object> {
{ "tagFiltersKey", tagFilters }
}
};
Synopsis
Properties
Id | The ID used to identify the metrics configuration. |
Prefix | The prefix that an object must have to be included in the metrics results. |
TagFilters | Specifies a list of tag filters to use as a metrics configuration filter. |
Properties
Id
The ID used to identify the metrics configuration.
string Id { get; }
Property Value
System.String
Prefix
The prefix that an object must have to be included in the metrics results.
virtual string Prefix { get; }
Property Value
System.String
TagFilters
Specifies a list of tag filters to use as a metrics configuration filter.
virtual IDictionary<string, object> TagFilters { get; }
Property Value
System.Collections.Generic.IDictionary<System.String, System.Object>
Remarks
The metrics configuration includes only objects that meet the filter's criteria.