AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

CreateGrokClassifierRequest

import "github.com/aws/aws-sdk-go/service/glue"

type CreateGrokClassifierRequest struct { Classification *string `type:"string" required:"true"` CustomPatterns *string `type:"string"` GrokPattern *string `min:"1" type:"string" required:"true"` Name *string `min:"1" type:"string" required:"true"` }

Specifies a grok classifier for CreateClassifier to create.

Classification

Type: *string

An identifier of the data format that the classifier matches, such as Twitter, JSON, Omniture logs, Amazon CloudWatch Logs, and so on.

Classification is a required field

CustomPatterns

Type: *string

Optional custom grok patterns used by this classifier.

GrokPattern

Type: *string

The grok pattern used by this classifier.

GrokPattern is a required field

Name

Type: *string

The name of the new classifier.

Name is a required field

Method

GoString

func (s CreateGrokClassifierRequest) GoString() string

GoString returns the string representation

SetClassification

func (s *CreateGrokClassifierRequest) SetClassification(v string) *CreateGrokClassifierRequest

SetClassification sets the Classification field's value.

SetCustomPatterns

func (s *CreateGrokClassifierRequest) SetCustomPatterns(v string) *CreateGrokClassifierRequest

SetCustomPatterns sets the CustomPatterns field's value.

SetGrokPattern

func (s *CreateGrokClassifierRequest) SetGrokPattern(v string) *CreateGrokClassifierRequest

SetGrokPattern sets the GrokPattern field's value.

SetName

func (s *CreateGrokClassifierRequest) SetName(v string) *CreateGrokClassifierRequest

SetName sets the Name field's value.

String

func (s CreateGrokClassifierRequest) String() string

String returns the string representation

Validate

func (s *CreateGrokClassifierRequest) Validate() error

Validate inspects the fields of the type to determine if they are valid.

On this page: