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 TypeMethodDescriptionapplyOnTransformedLogs(Boolean applyOnTransformedLogs) This parameter is valid only for log groups that have an active log transformer.applyOnTransformedLogs(IResolvable applyOnTransformedLogs) This parameter is valid only for log groups that have an active log transformer.build()static CfnMetricFilter.BuilderfilterName(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
@Stability(Stable) public static CfnMetricFilter.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.- 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- See Also:
-
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- See Also:
-
metricTransformations
@Stability(Stable) public CfnMetricFilter.Builder metricTransformations(IResolvable metricTransformations) The metric transformations.- Parameters:
metricTransformations- The metric transformations. This parameter is required.- Returns:
this- See Also:
-
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- See Also:
-
applyOnTransformedLogs
@Stability(Stable) public CfnMetricFilter.Builder applyOnTransformedLogs(Boolean applyOnTransformedLogs) This parameter is valid only for log groups that have an active log transformer.For more information about log transformers, see PutTransformer .
If this value is
true, the metric filter is applied on the transformed version of the log events instead of the original ingested log events.- Parameters:
applyOnTransformedLogs- This parameter is valid only for log groups that have an active log transformer. This parameter is required.- Returns:
this- See Also:
-
applyOnTransformedLogs
@Stability(Stable) public CfnMetricFilter.Builder applyOnTransformedLogs(IResolvable applyOnTransformedLogs) This parameter is valid only for log groups that have an active log transformer.For more information about log transformers, see PutTransformer .
If this value is
true, the metric filter is applied on the transformed version of the log events instead of the original ingested log events.- Parameters:
applyOnTransformedLogs- This parameter is valid only for log groups that have an active log transformer. This parameter is required.- Returns:
this- See Also:
-
filterName
The name of the metric filter.- Parameters:
filterName- The name of the metric filter. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnMetricFilter>- Returns:
- a newly built instance of
CfnMetricFilter.
-