aws_glue_catalog_database

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 {
	// CatalogId: string, optional
	CatalogId terra.StringValue `hcl:"catalog_id,attr"`
	// Description: string, optional
	Description terra.StringValue `hcl:"description,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// LocationUri: string, optional
	LocationUri terra.StringValue `hcl:"location_uri,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"`
	// Tags: map of string, optional
	Tags terra.MapValue[terra.StringValue] `hcl:"tags,attr"`
	// TagsAll: map of string, optional
	TagsAll terra.MapValue[terra.StringValue] `hcl:"tags_all,attr"`
	// CreateTableDefaultPermission: min=0
	CreateTableDefaultPermission []CreateTableDefaultPermission `hcl:"create_table_default_permission,block" validate:"min=0"`
	// FederatedDatabase: optional
	FederatedDatabase *FederatedDatabase `hcl:"federated_database,block"`
	// TargetDatabase: optional
	TargetDatabase *TargetDatabase `hcl:"target_database,block"`
}

Args contains the configurations for aws_glue_catalog_database.

type CreateTableDefaultPermission

type CreateTableDefaultPermission struct {
	// Permissions: set of string, optional
	Permissions terra.SetValue[terra.StringValue] `hcl:"permissions,attr"`
	// CreateTableDefaultPermissionPrincipal: optional
	Principal *CreateTableDefaultPermissionPrincipal `hcl:"principal,block"`
}

type CreateTableDefaultPermissionAttributes

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

func (CreateTableDefaultPermissionAttributes) InternalRef

func (CreateTableDefaultPermissionAttributes) InternalTokens

func (CreateTableDefaultPermissionAttributes) InternalWithRef

func (CreateTableDefaultPermissionAttributes) Permissions

func (CreateTableDefaultPermissionAttributes) Principal

type CreateTableDefaultPermissionPrincipal

type CreateTableDefaultPermissionPrincipal struct {
	// DataLakePrincipalIdentifier: string, optional
	DataLakePrincipalIdentifier terra.StringValue `hcl:"data_lake_principal_identifier,attr"`
}

type CreateTableDefaultPermissionPrincipalAttributes

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

func (CreateTableDefaultPermissionPrincipalAttributes) DataLakePrincipalIdentifier

func (p CreateTableDefaultPermissionPrincipalAttributes) DataLakePrincipalIdentifier() terra.StringValue

func (CreateTableDefaultPermissionPrincipalAttributes) InternalRef

func (CreateTableDefaultPermissionPrincipalAttributes) InternalTokens

func (CreateTableDefaultPermissionPrincipalAttributes) InternalWithRef

type CreateTableDefaultPermissionPrincipalState

type CreateTableDefaultPermissionPrincipalState struct {
	DataLakePrincipalIdentifier string `json:"data_lake_principal_identifier"`
}

type CreateTableDefaultPermissionState

type CreateTableDefaultPermissionState struct {
	Permissions []string                                     `json:"permissions"`
	Principal   []CreateTableDefaultPermissionPrincipalState `json:"principal"`
}

type FederatedDatabase

type FederatedDatabase struct {
	// ConnectionName: string, optional
	ConnectionName terra.StringValue `hcl:"connection_name,attr"`
	// Identifier: string, optional
	Identifier terra.StringValue `hcl:"identifier,attr"`
}

type FederatedDatabaseAttributes

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

func (FederatedDatabaseAttributes) ConnectionName

func (fd FederatedDatabaseAttributes) ConnectionName() terra.StringValue

func (FederatedDatabaseAttributes) Identifier

func (FederatedDatabaseAttributes) InternalRef

func (fd FederatedDatabaseAttributes) InternalRef() (terra.Reference, error)

func (FederatedDatabaseAttributes) InternalTokens

func (fd FederatedDatabaseAttributes) InternalTokens() (hclwrite.Tokens, error)

func (FederatedDatabaseAttributes) InternalWithRef

type FederatedDatabaseState

type FederatedDatabaseState struct {
	ConnectionName string `json:"connection_name"`
	Identifier     string `json:"identifier"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (agcd *Resource) Attributes() awsGlueCatalogDatabaseAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (agcd *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (agcd *Resource) State() (*awsGlueCatalogDatabaseState, bool)

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

func (*Resource) StateMust

func (agcd *Resource) StateMust() *awsGlueCatalogDatabaseState

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

func (*Resource) Type

func (agcd *Resource) Type() string

Type returns the Terraform object type for Resource.

type TargetDatabase

type TargetDatabase 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"`
	// Region: string, optional
	Region terra.StringValue `hcl:"region,attr"`
}

type TargetDatabaseAttributes

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

func (TargetDatabaseAttributes) CatalogId

func (TargetDatabaseAttributes) DatabaseName

func (td TargetDatabaseAttributes) DatabaseName() terra.StringValue

func (TargetDatabaseAttributes) InternalRef

func (td TargetDatabaseAttributes) InternalRef() (terra.Reference, error)

func (TargetDatabaseAttributes) InternalTokens

func (td TargetDatabaseAttributes) InternalTokens() (hclwrite.Tokens, error)

func (TargetDatabaseAttributes) InternalWithRef

func (TargetDatabaseAttributes) Region

type TargetDatabaseState

type TargetDatabaseState struct {
	CatalogId    string `json:"catalog_id"`
	DatabaseName string `json:"database_name"`
	Region       string `json:"region"`
}

Jump to

Keyboard shortcuts

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