Class CfnMetricFilter.Builder
java.lang.Object
software.amazon.awscdk.services.logs.CfnMetricFilter.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnMetricFilter>
- Enclosing class:
CfnMetricFilter
@Stability(Stable)
public static final class CfnMetricFilter.Builder
extends Object
implements software.amazon.jsii.Builder<CfnMetricFilter>
A fluent builder for
CfnMetricFilter
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
static CfnMetricFilter.Builder
filterName
(String filterName) The name of the metric filter.filterPattern
(String filterPattern) A filter pattern for extracting metric data out of ingested log events.logGroupName
(String logGroupName) The name of an existing log group that you want to associate with this metric filter.metricTransformations
(List<? extends Object> metricTransformations) The metric transformations.metricTransformations
(IResolvable metricTransformations) The metric transformations.
-
Method Details
-
create
- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
- Returns:
- a new instance of
CfnMetricFilter.Builder
.
-
filterPattern
A filter pattern for extracting metric data out of ingested log events.For more information, see Filter and Pattern Syntax .
- Parameters:
filterPattern
- A filter pattern for extracting metric data out of ingested log events. This parameter is required.- Returns:
this
-
logGroupName
The name of an existing log group that you want to associate with this metric filter.- Parameters:
logGroupName
- The name of an existing log group that you want to associate with this metric filter. This parameter is required.- Returns:
this
-
metricTransformations
@Stability(Stable) public CfnMetricFilter.Builder metricTransformations(IResolvable metricTransformations) The metric transformations.- Parameters:
metricTransformations
- The metric transformations. This parameter is required.- Returns:
this
-
metricTransformations
@Stability(Stable) public CfnMetricFilter.Builder metricTransformations(List<? extends Object> metricTransformations) The metric transformations.- Parameters:
metricTransformations
- The metric transformations. This parameter is required.- Returns:
this
-
filterName
The name of the metric filter.- Parameters:
filterName
- The name of the metric filter. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnMetricFilter>
- Returns:
- a newly built instance of
CfnMetricFilter
.
-