Interface BucketMetrics
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
BucketMetrics.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:37.498Z")
@Stability(Stable)
public interface BucketMetrics
extends software.amazon.jsii.JsiiSerializable
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 software.amazon.awscdk.services.s3.*;
Object tagFilters;
BucketMetrics bucketMetrics = BucketMetrics.builder()
.id("id")
// the properties below are optional
.prefix("prefix")
.tagFilters(Map.of(
"tagFiltersKey", tagFilters))
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forBucketMetricsstatic final classAn implementation forBucketMetrics -
Method Summary
Modifier and TypeMethodDescriptionstatic BucketMetrics.Builderbuilder()getId()The ID used to identify the metrics configuration.default StringThe prefix that an object must have to be included in the metrics results.Specifies a list of tag filters to use as a metrics configuration filter.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getId
The ID used to identify the metrics configuration. -
getPrefix
The prefix that an object must have to be included in the metrics results. -
getTagFilters
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.
-
builder
- Returns:
- a
BucketMetrics.BuilderofBucketMetrics
-