aws_glue_classifier

package
v0.0.0-...-4deecce Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Args

type Args struct {
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// CsvClassifier: optional
	CsvClassifier *CsvClassifier `hcl:"csv_classifier,block"`
	// GrokClassifier: optional
	GrokClassifier *GrokClassifier `hcl:"grok_classifier,block"`
	// JsonClassifier: optional
	JsonClassifier *JsonClassifier `hcl:"json_classifier,block"`
	// XmlClassifier: optional
	XmlClassifier *XmlClassifier `hcl:"xml_classifier,block"`
}

Args contains the configurations for aws_glue_classifier.

type CsvClassifier

type CsvClassifier struct {
	// AllowSingleColumn: bool, optional
	AllowSingleColumn terra.BoolValue `hcl:"allow_single_column,attr"`
	// ContainsHeader: string, optional
	ContainsHeader terra.StringValue `hcl:"contains_header,attr"`
	// CustomDatatypeConfigured: bool, optional
	CustomDatatypeConfigured terra.BoolValue `hcl:"custom_datatype_configured,attr"`
	// CustomDatatypes: list of string, optional
	CustomDatatypes terra.ListValue[terra.StringValue] `hcl:"custom_datatypes,attr"`
	// Delimiter: string, optional
	Delimiter terra.StringValue `hcl:"delimiter,attr"`
	// DisableValueTrimming: bool, optional
	DisableValueTrimming terra.BoolValue `hcl:"disable_value_trimming,attr"`
	// Header: list of string, optional
	Header terra.ListValue[terra.StringValue] `hcl:"header,attr"`
	// QuoteSymbol: string, optional
	QuoteSymbol terra.StringValue `hcl:"quote_symbol,attr"`
	// Serde: string, optional
	Serde terra.StringValue `hcl:"serde,attr"`
}

type CsvClassifierAttributes

type CsvClassifierAttributes struct {
	// contains filtered or unexported fields
}

func (CsvClassifierAttributes) AllowSingleColumn

func (cc CsvClassifierAttributes) AllowSingleColumn() terra.BoolValue

func (CsvClassifierAttributes) ContainsHeader

func (cc CsvClassifierAttributes) ContainsHeader() terra.StringValue

func (CsvClassifierAttributes) CustomDatatypeConfigured

func (cc CsvClassifierAttributes) CustomDatatypeConfigured() terra.BoolValue

func (CsvClassifierAttributes) CustomDatatypes

func (CsvClassifierAttributes) Delimiter

func (cc CsvClassifierAttributes) Delimiter() terra.StringValue

func (CsvClassifierAttributes) DisableValueTrimming

func (cc CsvClassifierAttributes) DisableValueTrimming() terra.BoolValue

func (CsvClassifierAttributes) Header

func (CsvClassifierAttributes) InternalRef

func (cc CsvClassifierAttributes) InternalRef() (terra.Reference, error)

func (CsvClassifierAttributes) InternalTokens

func (cc CsvClassifierAttributes) InternalTokens() (hclwrite.Tokens, error)

func (CsvClassifierAttributes) InternalWithRef

func (CsvClassifierAttributes) QuoteSymbol

func (cc CsvClassifierAttributes) QuoteSymbol() terra.StringValue

func (CsvClassifierAttributes) Serde

type CsvClassifierState

type CsvClassifierState struct {
	AllowSingleColumn        bool     `json:"allow_single_column"`
	ContainsHeader           string   `json:"contains_header"`
	CustomDatatypeConfigured bool     `json:"custom_datatype_configured"`
	CustomDatatypes          []string `json:"custom_datatypes"`
	Delimiter                string   `json:"delimiter"`
	DisableValueTrimming     bool     `json:"disable_value_trimming"`
	Header                   []string `json:"header"`
	QuoteSymbol              string   `json:"quote_symbol"`
	Serde                    string   `json:"serde"`
}

type GrokClassifier

type GrokClassifier struct {
	// Classification: string, required
	Classification terra.StringValue `hcl:"classification,attr" validate:"required"`
	// CustomPatterns: string, optional
	CustomPatterns terra.StringValue `hcl:"custom_patterns,attr"`
	// GrokPattern: string, required
	GrokPattern terra.StringValue `hcl:"grok_pattern,attr" validate:"required"`
}

type GrokClassifierAttributes

type GrokClassifierAttributes struct {
	// contains filtered or unexported fields
}

func (GrokClassifierAttributes) Classification

func (gc GrokClassifierAttributes) Classification() terra.StringValue

func (GrokClassifierAttributes) CustomPatterns

func (gc GrokClassifierAttributes) CustomPatterns() terra.StringValue

func (GrokClassifierAttributes) GrokPattern

func (gc GrokClassifierAttributes) GrokPattern() terra.StringValue

func (GrokClassifierAttributes) InternalRef

func (gc GrokClassifierAttributes) InternalRef() (terra.Reference, error)

func (GrokClassifierAttributes) InternalTokens

func (gc GrokClassifierAttributes) InternalTokens() (hclwrite.Tokens, error)

func (GrokClassifierAttributes) InternalWithRef

type GrokClassifierState

type GrokClassifierState struct {
	Classification string `json:"classification"`
	CustomPatterns string `json:"custom_patterns"`
	GrokPattern    string `json:"grok_pattern"`
}

type JsonClassifier

type JsonClassifier struct {
	// JsonPath: string, required
	JsonPath terra.StringValue `hcl:"json_path,attr" validate:"required"`
}

type JsonClassifierAttributes

type JsonClassifierAttributes struct {
	// contains filtered or unexported fields
}

func (JsonClassifierAttributes) InternalRef

func (jc JsonClassifierAttributes) InternalRef() (terra.Reference, error)

func (JsonClassifierAttributes) InternalTokens

func (jc JsonClassifierAttributes) InternalTokens() (hclwrite.Tokens, error)

func (JsonClassifierAttributes) InternalWithRef

func (JsonClassifierAttributes) JsonPath

type JsonClassifierState

type JsonClassifierState struct {
	JsonPath string `json:"json_path"`
}

type Resource

type Resource struct {
	Name string
	Args Args

	DependsOn terra.Dependencies
	Lifecycle *terra.Lifecycle
	// contains filtered or unexported fields
}

Resource represents the Terraform resource aws_glue_classifier.

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (agc *Resource) Attributes() awsGlueClassifierAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

func (agc *Resource) Configuration() interface{}

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

func (agc *Resource) DependOn() terra.Reference

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

func (agc *Resource) Dependencies() terra.Dependencies

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

func (agc *Resource) ImportState(state io.Reader) error

ImportState imports the given attribute values into Resource's state.

func (*Resource) LifecycleManagement

func (agc *Resource) LifecycleManagement() *terra.Lifecycle

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (agc *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (agc *Resource) State() (*awsGlueClassifierState, bool)

State returns the state and a bool indicating if Resource has state.

func (*Resource) StateMust

func (agc *Resource) StateMust() *awsGlueClassifierState

StateMust returns the state for Resource. Panics if the state is nil.

func (*Resource) Type

func (agc *Resource) Type() string

Type returns the Terraform object type for Resource.

type XmlClassifier

type XmlClassifier struct {
	// Classification: string, required
	Classification terra.StringValue `hcl:"classification,attr" validate:"required"`
	// RowTag: string, required
	RowTag terra.StringValue `hcl:"row_tag,attr" validate:"required"`
}

type XmlClassifierAttributes

type XmlClassifierAttributes struct {
	// contains filtered or unexported fields
}

func (XmlClassifierAttributes) Classification

func (xc XmlClassifierAttributes) Classification() terra.StringValue

func (XmlClassifierAttributes) InternalRef

func (xc XmlClassifierAttributes) InternalRef() (terra.Reference, error)

func (XmlClassifierAttributes) InternalTokens

func (xc XmlClassifierAttributes) InternalTokens() (hclwrite.Tokens, error)

func (XmlClassifierAttributes) InternalWithRef

func (XmlClassifierAttributes) RowTag

type XmlClassifierState

type XmlClassifierState struct {
	Classification string `json:"classification"`
	RowTag         string `json:"row_tag"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL