aws_glue_partition

package
v5.45.0 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 {
	// CatalogId: string, optional
	CatalogId terra.StringValue `hcl:"catalog_id,attr"`
	// DatabaseName: string, required
	DatabaseName terra.StringValue `hcl:"database_name,attr" validate:"required"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Parameters: map of string, optional
	Parameters terra.MapValue[terra.StringValue] `hcl:"parameters,attr"`
	// PartitionValues: list of string, required
	PartitionValues terra.ListValue[terra.StringValue] `hcl:"partition_values,attr" validate:"required"`
	// TableName: string, required
	TableName terra.StringValue `hcl:"table_name,attr" validate:"required"`
	// StorageDescriptor: optional
	StorageDescriptor *StorageDescriptor `hcl:"storage_descriptor,block"`
}

Args contains the configurations for aws_glue_partition.

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_partition.

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (agp *Resource) Attributes() awsGluePartitionAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (agp *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (agp *Resource) State() (*awsGluePartitionState, bool)

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

func (*Resource) StateMust

func (agp *Resource) StateMust() *awsGluePartitionState

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

func (*Resource) Type

func (agp *Resource) Type() string

Type returns the Terraform object type for Resource.

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"`
	// StorageDescriptorColumns: min=0
	Columns []StorageDescriptorColumns `hcl:"columns,block" validate:"min=0"`
	// StorageDescriptorSerDeInfo: optional
	SerDeInfo *StorageDescriptorSerDeInfo `hcl:"ser_de_info,block"`
	// StorageDescriptorSkewedInfo: optional
	SkewedInfo *StorageDescriptorSkewedInfo `hcl:"skewed_info,block"`
	// StorageDescriptorSortColumns: min=0
	SortColumns []StorageDescriptorSortColumns `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) SerDeInfo

func (StorageDescriptorAttributes) SkewedInfo

func (StorageDescriptorAttributes) SortColumns

func (StorageDescriptorAttributes) StoredAsSubDirectories

func (sd StorageDescriptorAttributes) StoredAsSubDirectories() terra.BoolValue

type StorageDescriptorColumns

type StorageDescriptorColumns 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 StorageDescriptorColumnsAttributes

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

func (StorageDescriptorColumnsAttributes) Comment

func (StorageDescriptorColumnsAttributes) InternalRef

func (StorageDescriptorColumnsAttributes) InternalTokens

func (StorageDescriptorColumnsAttributes) InternalWithRef

func (StorageDescriptorColumnsAttributes) Name

func (StorageDescriptorColumnsAttributes) Type

type StorageDescriptorColumnsState

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

type StorageDescriptorSerDeInfo

type StorageDescriptorSerDeInfo 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 StorageDescriptorSerDeInfoAttributes

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

func (StorageDescriptorSerDeInfoAttributes) InternalRef

func (StorageDescriptorSerDeInfoAttributes) InternalTokens

func (StorageDescriptorSerDeInfoAttributes) InternalWithRef

func (StorageDescriptorSerDeInfoAttributes) Name

func (StorageDescriptorSerDeInfoAttributes) Parameters

func (StorageDescriptorSerDeInfoAttributes) SerializationLibrary

func (sdi StorageDescriptorSerDeInfoAttributes) SerializationLibrary() terra.StringValue

type StorageDescriptorSerDeInfoState

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

type StorageDescriptorSkewedInfo

type StorageDescriptorSkewedInfo 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 StorageDescriptorSkewedInfoAttributes

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

func (StorageDescriptorSkewedInfoAttributes) InternalRef

func (StorageDescriptorSkewedInfoAttributes) InternalTokens

func (StorageDescriptorSkewedInfoAttributes) InternalWithRef

func (StorageDescriptorSkewedInfoAttributes) SkewedColumnNames

func (StorageDescriptorSkewedInfoAttributes) SkewedColumnValueLocationMaps

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

func (StorageDescriptorSkewedInfoAttributes) SkewedColumnValues

type StorageDescriptorSkewedInfoState

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

type StorageDescriptorSortColumns

type StorageDescriptorSortColumns 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 StorageDescriptorSortColumnsAttributes

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

func (StorageDescriptorSortColumnsAttributes) Column

func (StorageDescriptorSortColumnsAttributes) InternalRef

func (StorageDescriptorSortColumnsAttributes) InternalTokens

func (StorageDescriptorSortColumnsAttributes) InternalWithRef

func (StorageDescriptorSortColumnsAttributes) SortOrder

type StorageDescriptorSortColumnsState

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

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                []StorageDescriptorColumnsState     `json:"columns"`
	SerDeInfo              []StorageDescriptorSerDeInfoState   `json:"ser_de_info"`
	SkewedInfo             []StorageDescriptorSkewedInfoState  `json:"skewed_info"`
	SortColumns            []StorageDescriptorSortColumnsState `json:"sort_columns"`
}

Jump to

Keyboard shortcuts

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