Interface CfnMetricFilter.MetricTransformationProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnMetricFilter.MetricTransformationProperty.Jsii$Proxy
Enclosing class:
CfnMetricFilter

@Stability(Stable) public static interface CfnMetricFilter.MetricTransformationProperty extends software.amazon.jsii.JsiiSerializable
MetricTransformation is a property of the AWS::Logs::MetricFilter resource that describes how to transform log streams into a CloudWatch metric.

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.logs.*;
 MetricTransformationProperty metricTransformationProperty = MetricTransformationProperty.builder()
         .metricName("metricName")
         .metricNamespace("metricNamespace")
         .metricValue("metricValue")
         // the properties below are optional
         .defaultValue(123)
         .dimensions(List.of(DimensionProperty.builder()
                 .key("key")
                 .value("value")
                 .build()))
         .unit("unit")
         .build();
 

See Also: