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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofGrokProperty.getMatch()
Sets the value ofGrokProperty.getSource()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
match
Sets the value ofGrokProperty.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
Sets the value ofGrokProperty.getSource()
- Parameters:
source
- The path to the field in the log event that you want to parse.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<GrokProperty>
- Returns:
- a new instance of
GrokProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-