Class BucketMetrics
Specifies a metrics configuration for the CloudWatch request metrics from an Amazon S3 bucket.
Inheritance
System.Object
BucketMetrics
Implements
Namespace: Amazon.CDK.AWS.S3
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class BucketMetrics : Object, IBucketMetrics
Syntax (vb)
Public Class BucketMetrics
Inherits Object
Implements 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
Constructors
BucketMetrics() |
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. |
Constructors
BucketMetrics()
public BucketMetrics()
Properties
Id
The ID used to identify the metrics configuration.
public string Id { get; set; }
Property Value
System.String
Prefix
The prefix that an object must have to be included in the metrics results.
public string Prefix { get; set; }
Property Value
System.String
TagFilters
Specifies a list of tag filters to use as a metrics configuration filter.
public IDictionary<string, object> TagFilters { get; set; }
Property Value
System.Collections.Generic.IDictionary<System.String, System.Object>
Remarks
The metrics configuration includes only objects that meet the filter's criteria.