Class GrokProperty.Builder

java.lang.Object
software.amazon.awscdk.services.logs.GrokProperty.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<GrokProperty>
Enclosing interface:
GrokProperty

@Stability(Stable) public static final class GrokProperty.Builder extends Object implements software.amazon.jsii.Builder<GrokProperty>
A builder for GrokProperty
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • match

      @Stability(Stable) public GrokProperty.Builder match(String match)
      Sets the value of GrokProperty.getMatch()
      Parameters:
      match - The grok pattern to match against the log event. This parameter is required. For a list of supported grok patterns, see Supported grok patterns in the CloudWatch Logs User Guide.
      Returns:
      this
    • source

      @Stability(Stable) public GrokProperty.Builder source(String source)
      Sets the value of GrokProperty.getSource()
      Parameters:
      source - The path to the field in the log event that you want to parse.
      Returns:
      this
    • build

      @Stability(Stable) public GrokProperty build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<GrokProperty>
      Returns:
      a new instance of GrokProperty
      Throws:
      NullPointerException - if any required attribute was not provided