@Stability(value=Stable) public static final class CfnMetricFilter.MetricTransformationProperty.Builder extends Object implements software.amazon.jsii.Builder<CfnMetricFilter.MetricTransformationProperty>
CfnMetricFilter.MetricTransformationProperty| Constructor and Description |
|---|
Builder() |
@Stability(value=Stable) public CfnMetricFilter.MetricTransformationProperty.Builder metricName(String metricName)
CfnMetricFilter.MetricTransformationProperty.getMetricName()metricName - The name of the CloudWatch metric. This parameter is required.this@Stability(value=Stable) public CfnMetricFilter.MetricTransformationProperty.Builder metricNamespace(String metricNamespace)
CfnMetricFilter.MetricTransformationProperty.getMetricNamespace()metricNamespace - A custom namespace to contain your metric in CloudWatch. This parameter is required.
Use namespaces to group together metrics that are similar. For more information, see Namespaces .this@Stability(value=Stable) public CfnMetricFilter.MetricTransformationProperty.Builder metricValue(String metricValue)
CfnMetricFilter.MetricTransformationProperty.getMetricValue()metricValue - The value that is published to the CloudWatch metric. This parameter is required.
For example, if you're counting the occurrences of a particular term like Error , specify 1 for the metric value. If you're counting the number of bytes transferred, reference the value that is in the log event by using $ followed by the name of the field that you specified in the filter pattern, such as $.size .this@Stability(value=Stable) public CfnMetricFilter.MetricTransformationProperty.Builder defaultValue(Number defaultValue)
CfnMetricFilter.MetricTransformationProperty.getDefaultValue()defaultValue - (Optional) The value to emit when a filter pattern does not match a log event.
This value can be null.this@Stability(value=Stable) public CfnMetricFilter.MetricTransformationProperty.Builder dimensions(IResolvable dimensions)
CfnMetricFilter.MetricTransformationProperty.getDimensions()dimensions - `CfnMetricFilter.MetricTransformationProperty.Dimensions`.this@Stability(value=Stable) public CfnMetricFilter.MetricTransformationProperty.Builder dimensions(List<? extends Object> dimensions)
CfnMetricFilter.MetricTransformationProperty.getDimensions()dimensions - `CfnMetricFilter.MetricTransformationProperty.Dimensions`.this@Stability(value=Stable) public CfnMetricFilter.MetricTransformationProperty.Builder unit(String unit)
CfnMetricFilter.MetricTransformationProperty.getUnit()unit - `CfnMetricFilter.MetricTransformationProperty.Unit`.this@Stability(value=Stable) public CfnMetricFilter.MetricTransformationProperty build()
build in interface software.amazon.jsii.Builder<CfnMetricFilter.MetricTransformationProperty>CfnMetricFilter.MetricTransformationPropertyNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.