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 Details

    • create

      @Stability(Stable) public static CfnMetricFilter.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnMetricFilter.Builder.
    • filterPattern

      @Stability(Stable) public CfnMetricFilter.Builder filterPattern(String 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

      @Stability(Stable) public CfnMetricFilter.Builder logGroupName(String 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

      @Stability(Stable) public CfnMetricFilter.Builder filterName(String filterName)
      The name of the metric filter.

      Parameters:
      filterName - The name of the metric filter. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public CfnMetricFilter build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnMetricFilter>
      Returns:
      a newly built instance of CfnMetricFilter.