GrokClassifierProperty Struct
A classifier that uses grok patterns.
| Source | |
|---|---|
| Type last changed |
Example
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
# 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
// 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();
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"
};
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
classificationstringclassificationstrclassificationStringClassificationstringClassification*string required #An identifier of the data format that the classifier matches, such as Twitter, JSON, Omniture logs, and so on.
customPatternsoptionalstringcustom_patternsoptionalstrcustomPatternsoptionalStringCustomPatternsoptionalstringCustomPatternsoptional*string #Optional custom grok patterns defined by this classifier.
For more information, see custom patterns in Writing Custom Classifiers .
The grok pattern applied to a data store by this classifier.
For more information, see built-in patterns in Writing Custom Classifiers .
The name of the classifier.