Class ParserProcessor.Builder

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

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

    • create

      @Stability(Stable) public static ParserProcessor.Builder create()
      Returns:
      a new instance of ParserProcessor.Builder.
    • type

      @Stability(Stable) public ParserProcessor.Builder type(ParserProcessorType type)
      The type of parser processor.

      Parameters:
      type - The type of parser processor. This parameter is required.
      Returns:
      this
    • csvOptions

      @Stability(Stable) public ParserProcessor.Builder csvOptions(CsvProperty csvOptions)
      Options for CSV parser.

      Required when type is CSV.

      Default: - No CSV parser is created if props not set

      Parameters:
      csvOptions - Options for CSV parser. This parameter is required.
      Returns:
      this
    • grokOptions

      @Stability(Stable) public ParserProcessor.Builder grokOptions(GrokProperty grokOptions)
      Options for Grok parser.

      Required when type is GROK.

      Default: - No Grok parser is created if props not set

      Parameters:
      grokOptions - Options for Grok parser. This parameter is required.
      Returns:
      this
    • jsonOptions

      @Stability(Stable) public ParserProcessor.Builder jsonOptions(ParseJSONProperty jsonOptions)
      Options for JSON parser.

      Required when type is JSON.

      Default: - No JSON parser is created if props not set

      Parameters:
      jsonOptions - Options for JSON parser. This parameter is required.
      Returns:
      this
    • keyValueOptions

      @Stability(Stable) public ParserProcessor.Builder keyValueOptions(ParseKeyValueProperty keyValueOptions)
      Options for key-value parser.

      Required when type is KEY_VALUE.

      Default: - No key-value parser is created if props not set

      Parameters:
      keyValueOptions - Options for key-value parser. This parameter is required.
      Returns:
      this
    • parseToOcsfOptions

      @Stability(Stable) public ParserProcessor.Builder parseToOcsfOptions(ParseToOCSFProperty parseToOcsfOptions)
      Options for ParseToOCSF parser.

      Required when type is set to OCSF

      Default: - no OCSF parser is created.

      Parameters:
      parseToOcsfOptions - Options for ParseToOCSF parser. This parameter is required.
      Returns:
      this
    • build

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