Interface CfnBucket.MetricsProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnBucket.MetricsProperty.Jsii$Proxy
- Enclosing class:
CfnBucket
@Stability(Stable)
public static interface CfnBucket.MetricsProperty
extends software.amazon.jsii.JsiiSerializable
A container specifying replication metrics-related settings enabling replication metrics and events.
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.*;
MetricsProperty metricsProperty = MetricsProperty.builder()
.status("status")
// the properties below are optional
.eventThreshold(ReplicationTimeValueProperty.builder()
.minutes(123)
.build())
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnBucket.MetricsPropertystatic final classAn implementation forCfnBucket.MetricsProperty -
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getStatus
Specifies whether the replication metrics are enabled.- See Also:
-
getEventThreshold
A container specifying the time threshold for emitting thes3:Replication:OperationMissedThresholdevent.Returns union: either
IResolvableorCfnBucket.ReplicationTimeValueProperty- See Also:
-
builder
- Returns:
- a
CfnBucket.MetricsProperty.BuilderofCfnBucket.MetricsProperty
-