gluecatalogtable

package
v0.0.0-...-c2cc54e Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Columns

type Columns struct {
	// Comment: string, optional
	Comment terra.StringValue `hcl:"comment,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// Parameters: map of string, optional
	Parameters terra.MapValue[terra.StringValue] `hcl:"parameters,attr"`
	// Type: string, optional
	Type terra.StringValue `hcl:"type,attr"`
}

type ColumnsAttributes

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

func (ColumnsAttributes) Comment

func (c ColumnsAttributes) Comment() terra.StringValue

func (ColumnsAttributes) InternalRef

func (c ColumnsAttributes) InternalRef() (terra.Reference, error)

func (ColumnsAttributes) InternalTokens

func (c ColumnsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ColumnsAttributes) InternalWithRef

func (c ColumnsAttributes) InternalWithRef(ref terra.Reference) ColumnsAttributes

func (ColumnsAttributes) Name

func (ColumnsAttributes) Parameters

func (ColumnsAttributes) Type

type ColumnsState

type ColumnsState struct {
	Comment    string            `json:"comment"`
	Name       string            `json:"name"`
	Parameters map[string]string `json:"parameters"`
	Type       string            `json:"type"`
}

type PartitionIndex

type PartitionIndex struct {
	// IndexName: string, required
	IndexName terra.StringValue `hcl:"index_name,attr" validate:"required"`
	// Keys: list of string, required
	Keys terra.ListValue[terra.StringValue] `hcl:"keys,attr" validate:"required"`
}

type PartitionIndexAttributes

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

func (PartitionIndexAttributes) IndexName

func (PartitionIndexAttributes) IndexStatus

func (pi PartitionIndexAttributes) IndexStatus() terra.StringValue

func (PartitionIndexAttributes) InternalRef

func (pi PartitionIndexAttributes) InternalRef() (terra.Reference, error)

func (PartitionIndexAttributes) InternalTokens

func (pi PartitionIndexAttributes) InternalTokens() (hclwrite.Tokens, error)

func (PartitionIndexAttributes) InternalWithRef

func (PartitionIndexAttributes) Keys

type PartitionIndexState

type PartitionIndexState struct {
	IndexName   string   `json:"index_name"`
	IndexStatus string   `json:"index_status"`
	Keys        []string `json:"keys"`
}

type PartitionKeys

type PartitionKeys struct {
	// Comment: string, optional
	Comment terra.StringValue `hcl:"comment,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// Type: string, optional
	Type terra.StringValue `hcl:"type,attr"`
}

type PartitionKeysAttributes

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

func (PartitionKeysAttributes) Comment

func (PartitionKeysAttributes) InternalRef

func (pk PartitionKeysAttributes) InternalRef() (terra.Reference, error)

func (PartitionKeysAttributes) InternalTokens

func (pk PartitionKeysAttributes) InternalTokens() (hclwrite.Tokens, error)

func (PartitionKeysAttributes) InternalWithRef

func (PartitionKeysAttributes) Name

func (PartitionKeysAttributes) Type

type PartitionKeysState

type PartitionKeysState struct {
	Comment string `json:"comment"`
	Name    string `json:"name"`
	Type    string `json:"type"`
}

type SchemaId

type SchemaId struct {
	// RegistryName: string, optional
	RegistryName terra.StringValue `hcl:"registry_name,attr"`
	// SchemaArn: string, optional
	SchemaArn terra.StringValue `hcl:"schema_arn,attr"`
	// SchemaName: string, optional
	SchemaName terra.StringValue `hcl:"schema_name,attr"`
}

type SchemaIdAttributes

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

func (SchemaIdAttributes) InternalRef

func (si SchemaIdAttributes) InternalRef() (terra.Reference, error)

func (SchemaIdAttributes) InternalTokens

func (si SchemaIdAttributes) InternalTokens() (hclwrite.Tokens, error)

func (SchemaIdAttributes) InternalWithRef

func (si SchemaIdAttributes) InternalWithRef(ref terra.Reference) SchemaIdAttributes

func (SchemaIdAttributes) RegistryName

func (si SchemaIdAttributes) RegistryName() terra.StringValue

func (SchemaIdAttributes) SchemaArn

func (si SchemaIdAttributes) SchemaArn() terra.StringValue

func (SchemaIdAttributes) SchemaName

func (si SchemaIdAttributes) SchemaName() terra.StringValue

type SchemaIdState

type SchemaIdState struct {
	RegistryName string `json:"registry_name"`
	SchemaArn    string `json:"schema_arn"`
	SchemaName   string `json:"schema_name"`
}

type SchemaReference

type SchemaReference struct {
	// SchemaVersionId: string, optional
	SchemaVersionId terra.StringValue `hcl:"schema_version_id,attr"`
	// SchemaVersionNumber: number, required
	SchemaVersionNumber terra.NumberValue `hcl:"schema_version_number,attr" validate:"required"`
	// SchemaId: optional
	SchemaId *SchemaId `hcl:"schema_id,block"`
}

type SchemaReferenceAttributes

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

func (SchemaReferenceAttributes) InternalRef

func (sr SchemaReferenceAttributes) InternalRef() (terra.Reference, error)

func (SchemaReferenceAttributes) InternalTokens

func (sr SchemaReferenceAttributes) InternalTokens() (hclwrite.Tokens, error)

func (SchemaReferenceAttributes) InternalWithRef

func (SchemaReferenceAttributes) SchemaId

func (SchemaReferenceAttributes) SchemaVersionId

func (sr SchemaReferenceAttributes) SchemaVersionId() terra.StringValue

func (SchemaReferenceAttributes) SchemaVersionNumber

func (sr SchemaReferenceAttributes) SchemaVersionNumber() terra.NumberValue

type SchemaReferenceState

type SchemaReferenceState struct {
	SchemaVersionId     string          `json:"schema_version_id"`
	SchemaVersionNumber float64         `json:"schema_version_number"`
	SchemaId            []SchemaIdState `json:"schema_id"`
}

type SerDeInfo

type SerDeInfo struct {
	// Name: string, optional
	Name terra.StringValue `hcl:"name,attr"`
	// Parameters: map of string, optional
	Parameters terra.MapValue[terra.StringValue] `hcl:"parameters,attr"`
	// SerializationLibrary: string, optional
	SerializationLibrary terra.StringValue `hcl:"serialization_library,attr"`
}

type SerDeInfoAttributes

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

func (SerDeInfoAttributes) InternalRef

func (sdi SerDeInfoAttributes) InternalRef() (terra.Reference, error)

func (SerDeInfoAttributes) InternalTokens

func (sdi SerDeInfoAttributes) InternalTokens() (hclwrite.Tokens, error)

func (SerDeInfoAttributes) InternalWithRef

func (sdi SerDeInfoAttributes) InternalWithRef(ref terra.Reference) SerDeInfoAttributes

func (SerDeInfoAttributes) Name

func (SerDeInfoAttributes) Parameters

func (SerDeInfoAttributes) SerializationLibrary

func (sdi SerDeInfoAttributes) SerializationLibrary() terra.StringValue

type SerDeInfoState

type SerDeInfoState struct {
	Name                 string            `json:"name"`
	Parameters           map[string]string `json:"parameters"`
	SerializationLibrary string            `json:"serialization_library"`
}

type SkewedInfo

type SkewedInfo struct {
	// SkewedColumnNames: list of string, optional
	SkewedColumnNames terra.ListValue[terra.StringValue] `hcl:"skewed_column_names,attr"`
	// SkewedColumnValueLocationMaps: map of string, optional
	SkewedColumnValueLocationMaps terra.MapValue[terra.StringValue] `hcl:"skewed_column_value_location_maps,attr"`
	// SkewedColumnValues: list of string, optional
	SkewedColumnValues terra.ListValue[terra.StringValue] `hcl:"skewed_column_values,attr"`
}

type SkewedInfoAttributes

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

func (SkewedInfoAttributes) InternalRef

func (si SkewedInfoAttributes) InternalRef() (terra.Reference, error)

func (SkewedInfoAttributes) InternalTokens

func (si SkewedInfoAttributes) InternalTokens() (hclwrite.Tokens, error)

func (SkewedInfoAttributes) InternalWithRef

func (si SkewedInfoAttributes) InternalWithRef(ref terra.Reference) SkewedInfoAttributes

func (SkewedInfoAttributes) SkewedColumnNames

func (si SkewedInfoAttributes) SkewedColumnNames() terra.ListValue[terra.StringValue]

func (SkewedInfoAttributes) SkewedColumnValueLocationMaps

func (si SkewedInfoAttributes) SkewedColumnValueLocationMaps() terra.MapValue[terra.StringValue]

func (SkewedInfoAttributes) SkewedColumnValues

func (si SkewedInfoAttributes) SkewedColumnValues() terra.ListValue[terra.StringValue]

type SkewedInfoState

type SkewedInfoState struct {
	SkewedColumnNames             []string          `json:"skewed_column_names"`
	SkewedColumnValueLocationMaps map[string]string `json:"skewed_column_value_location_maps"`
	SkewedColumnValues            []string          `json:"skewed_column_values"`
}

type SortColumns

type SortColumns struct {
	// Column: string, required
	Column terra.StringValue `hcl:"column,attr" validate:"required"`
	// SortOrder: number, required
	SortOrder terra.NumberValue `hcl:"sort_order,attr" validate:"required"`
}

type SortColumnsAttributes

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

func (SortColumnsAttributes) Column

func (SortColumnsAttributes) InternalRef

func (sc SortColumnsAttributes) InternalRef() (terra.Reference, error)

func (SortColumnsAttributes) InternalTokens

func (sc SortColumnsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (SortColumnsAttributes) InternalWithRef

func (SortColumnsAttributes) SortOrder

func (sc SortColumnsAttributes) SortOrder() terra.NumberValue

type SortColumnsState

type SortColumnsState struct {
	Column    string  `json:"column"`
	SortOrder float64 `json:"sort_order"`
}

type StorageDescriptor

type StorageDescriptor struct {
	// BucketColumns: list of string, optional
	BucketColumns terra.ListValue[terra.StringValue] `hcl:"bucket_columns,attr"`
	// Compressed: bool, optional
	Compressed terra.BoolValue `hcl:"compressed,attr"`
	// InputFormat: string, optional
	InputFormat terra.StringValue `hcl:"input_format,attr"`
	// Location: string, optional
	Location terra.StringValue `hcl:"location,attr"`
	// NumberOfBuckets: number, optional
	NumberOfBuckets terra.NumberValue `hcl:"number_of_buckets,attr"`
	// OutputFormat: string, optional
	OutputFormat terra.StringValue `hcl:"output_format,attr"`
	// Parameters: map of string, optional
	Parameters terra.MapValue[terra.StringValue] `hcl:"parameters,attr"`
	// StoredAsSubDirectories: bool, optional
	StoredAsSubDirectories terra.BoolValue `hcl:"stored_as_sub_directories,attr"`
	// Columns: min=0
	Columns []Columns `hcl:"columns,block" validate:"min=0"`
	// SchemaReference: optional
	SchemaReference *SchemaReference `hcl:"schema_reference,block"`
	// SerDeInfo: optional
	SerDeInfo *SerDeInfo `hcl:"ser_de_info,block"`
	// SkewedInfo: optional
	SkewedInfo *SkewedInfo `hcl:"skewed_info,block"`
	// SortColumns: min=0
	SortColumns []SortColumns `hcl:"sort_columns,block" validate:"min=0"`
}

type StorageDescriptorAttributes

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

func (StorageDescriptorAttributes) BucketColumns

func (StorageDescriptorAttributes) Columns

func (StorageDescriptorAttributes) Compressed

func (StorageDescriptorAttributes) InputFormat

func (StorageDescriptorAttributes) InternalRef

func (sd StorageDescriptorAttributes) InternalRef() (terra.Reference, error)

func (StorageDescriptorAttributes) InternalTokens

func (sd StorageDescriptorAttributes) InternalTokens() (hclwrite.Tokens, error)

func (StorageDescriptorAttributes) InternalWithRef

func (StorageDescriptorAttributes) Location

func (StorageDescriptorAttributes) NumberOfBuckets

func (sd StorageDescriptorAttributes) NumberOfBuckets() terra.NumberValue

func (StorageDescriptorAttributes) OutputFormat

func (sd StorageDescriptorAttributes) OutputFormat() terra.StringValue

func (StorageDescriptorAttributes) Parameters

func (StorageDescriptorAttributes) SchemaReference

func (StorageDescriptorAttributes) SerDeInfo

func (StorageDescriptorAttributes) SkewedInfo

func (StorageDescriptorAttributes) SortColumns

func (StorageDescriptorAttributes) StoredAsSubDirectories

func (sd StorageDescriptorAttributes) StoredAsSubDirectories() terra.BoolValue

type StorageDescriptorState

type StorageDescriptorState struct {
	BucketColumns          []string               `json:"bucket_columns"`
	Compressed             bool                   `json:"compressed"`
	InputFormat            string                 `json:"input_format"`
	Location               string                 `json:"location"`
	NumberOfBuckets        float64                `json:"number_of_buckets"`
	OutputFormat           string                 `json:"output_format"`
	Parameters             map[string]string      `json:"parameters"`
	StoredAsSubDirectories bool                   `json:"stored_as_sub_directories"`
	Columns                []ColumnsState         `json:"columns"`
	SchemaReference        []SchemaReferenceState `json:"schema_reference"`
	SerDeInfo              []SerDeInfoState       `json:"ser_de_info"`
	SkewedInfo             []SkewedInfoState      `json:"skewed_info"`
	SortColumns            []SortColumnsState     `json:"sort_columns"`
}

type TargetTable

type TargetTable struct {
	// CatalogId: string, required
	CatalogId terra.StringValue `hcl:"catalog_id,attr" validate:"required"`
	// DatabaseName: string, required
	DatabaseName terra.StringValue `hcl:"database_name,attr" validate:"required"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
}

type TargetTableAttributes

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

func (TargetTableAttributes) CatalogId

func (tt TargetTableAttributes) CatalogId() terra.StringValue

func (TargetTableAttributes) DatabaseName

func (tt TargetTableAttributes) DatabaseName() terra.StringValue

func (TargetTableAttributes) InternalRef

func (tt TargetTableAttributes) InternalRef() (terra.Reference, error)

func (TargetTableAttributes) InternalTokens

func (tt TargetTableAttributes) InternalTokens() (hclwrite.Tokens, error)

func (TargetTableAttributes) InternalWithRef

func (TargetTableAttributes) Name

type TargetTableState

type TargetTableState struct {
	CatalogId    string `json:"catalog_id"`
	DatabaseName string `json:"database_name"`
	Name         string `json:"name"`
}

Jump to

Keyboard shortcuts

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