# GrokClassifierProperty

A classifier that uses `grok` patterns.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_glue as glue } from 'aws-cdk-lib';
const grokClassifierProperty: glue.CfnClassifier.GrokClassifierProperty = {
  classification: 'classification',
  grokPattern: 'grokPattern',

  // the properties below are optional
  customPatterns: 'customPatterns',
  name: 'name',
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_glue as glue

grok_classifier_property = glue.CfnClassifier.GrokClassifierProperty(
    classification="classification",
    grok_pattern="grokPattern",

    # the properties below are optional
    custom_patterns="customPatterns",
    name="name"
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.glue.*;

GrokClassifierProperty grokClassifierProperty = GrokClassifierProperty.builder()
        .classification("classification")
        .grokPattern("grokPattern")

        // the properties below are optional
        .customPatterns("customPatterns")
        .name("name")
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Glue;

var grokClassifierProperty = new GrokClassifierProperty {
    Classification = "classification",
    GrokPattern = "grokPattern",

    // the properties below are optional
    CustomPatterns = "customPatterns",
    Name = "name"
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

grokClassifierProperty := &GrokClassifierProperty{
	Classification: jsii.String("classification"),
	GrokPattern: jsii.String("grokPattern"),

	// the properties below are optional
	CustomPatterns: jsii.String("customPatterns"),
	Name: jsii.String("name"),
}
```

## Properties

- `classification`: string (required) — An identifier of the data format that the classifier matches, such as Twitter, JSON, Omniture logs, and so on.

- `customPatterns`: string — Optional custom grok patterns defined by this classifier.

  For more information, see custom patterns in [Writing Custom Classifiers](https://docs.aws.amazon.com/glue/latest/dg/custom-classifier.html) .

- `grokPattern`: string (required) — The grok pattern applied to a data store by this classifier.

  For more information, see built-in patterns in [Writing Custom Classifiers](https://docs.aws.amazon.com/glue/latest/dg/custom-classifier.html) .

- `name`: string — The name of the classifier.
