@Stability(value=Stable)
public static interface CfnBucket.MetricsConfigurationProperty
extends software.amazon.jsii.JsiiSerializable
If you're updating an existing metrics configuration, note that this is a full replacement of the existing metrics configuration. If you don't include the elements you want to keep, they are erased. For examples, see AWS::S3::Bucket . For more information, see PUT Bucket metrics in the Amazon S3 API Reference .
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.*;
MetricsConfigurationProperty metricsConfigurationProperty = MetricsConfigurationProperty.builder()
.id("id")
// the properties below are optional
.accessPointArn("accessPointArn")
.prefix("prefix")
.tagFilters(List.of(TagFilterProperty.builder()
.key("key")
.value("value")
.build()))
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnBucket.MetricsConfigurationProperty.Builder
A builder for
CfnBucket.MetricsConfigurationProperty |
static class |
CfnBucket.MetricsConfigurationProperty.Jsii$Proxy
An implementation for
CfnBucket.MetricsConfigurationProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnBucket.MetricsConfigurationProperty.Builder |
builder() |
default String |
getAccessPointArn()
The access point that was used while performing operations on the object.
|
String |
getId()
The ID used to identify the metrics configuration.
|
default String |
getPrefix()
The prefix that an object must have to be included in the metrics results.
|
default Object |
getTagFilters()
Specifies a list of tag filters to use as a metrics configuration filter.
|
@Stability(value=Stable) @NotNull String getId()
This can be any value you choose that helps you identify your metrics configuration.
@Stability(value=Stable) @Nullable default String getAccessPointArn()
The metrics configuration only includes objects that meet the filter's criteria.
@Stability(value=Stable) @Nullable default String getPrefix()
@Stability(value=Stable) @Nullable default Object getTagFilters()
The metrics configuration includes only objects that meet the filter's criteria.
@Stability(value=Stable) static CfnBucket.MetricsConfigurationProperty.Builder builder()
Copyright © 2022. All rights reserved.