aws_glue_job

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 {
	// Connections: list of string, optional
	Connections terra.ListValue[terra.StringValue] `hcl:"connections,attr"`
	// DefaultArguments: map of string, optional
	DefaultArguments terra.MapValue[terra.StringValue] `hcl:"default_arguments,attr"`
	// Description: string, optional
	Description terra.StringValue `hcl:"description,attr"`
	// ExecutionClass: string, optional
	ExecutionClass terra.StringValue `hcl:"execution_class,attr"`
	// GlueVersion: string, optional
	GlueVersion terra.StringValue `hcl:"glue_version,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// MaxCapacity: number, optional
	MaxCapacity terra.NumberValue `hcl:"max_capacity,attr"`
	// MaxRetries: number, optional
	MaxRetries terra.NumberValue `hcl:"max_retries,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// NonOverridableArguments: map of string, optional
	NonOverridableArguments terra.MapValue[terra.StringValue] `hcl:"non_overridable_arguments,attr"`
	// NumberOfWorkers: number, optional
	NumberOfWorkers terra.NumberValue `hcl:"number_of_workers,attr"`
	// RoleArn: string, required
	RoleArn terra.StringValue `hcl:"role_arn,attr" validate:"required"`
	// SecurityConfiguration: string, optional
	SecurityConfiguration terra.StringValue `hcl:"security_configuration,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"`
	// Timeout: number, optional
	Timeout terra.NumberValue `hcl:"timeout,attr"`
	// WorkerType: string, optional
	WorkerType terra.StringValue `hcl:"worker_type,attr"`
	// Command: required
	Command *Command `hcl:"command,block" validate:"required"`
	// ExecutionProperty: optional
	ExecutionProperty *ExecutionProperty `hcl:"execution_property,block"`
	// NotificationProperty: optional
	NotificationProperty *NotificationProperty `hcl:"notification_property,block"`
}

Args contains the configurations for aws_glue_job.

type Command

type Command struct {
	// Name: string, optional
	Name terra.StringValue `hcl:"name,attr"`
	// PythonVersion: string, optional
	PythonVersion terra.StringValue `hcl:"python_version,attr"`
	// ScriptLocation: string, required
	ScriptLocation terra.StringValue `hcl:"script_location,attr" validate:"required"`
}

type CommandAttributes

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

func (CommandAttributes) InternalRef

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

func (CommandAttributes) InternalTokens

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

func (CommandAttributes) InternalWithRef

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

func (CommandAttributes) Name

func (CommandAttributes) PythonVersion

func (c CommandAttributes) PythonVersion() terra.StringValue

func (CommandAttributes) ScriptLocation

func (c CommandAttributes) ScriptLocation() terra.StringValue

type CommandState

type CommandState struct {
	Name           string `json:"name"`
	PythonVersion  string `json:"python_version"`
	ScriptLocation string `json:"script_location"`
}

type ExecutionProperty

type ExecutionProperty struct {
	// MaxConcurrentRuns: number, optional
	MaxConcurrentRuns terra.NumberValue `hcl:"max_concurrent_runs,attr"`
}

type ExecutionPropertyAttributes

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

func (ExecutionPropertyAttributes) InternalRef

func (ep ExecutionPropertyAttributes) InternalRef() (terra.Reference, error)

func (ExecutionPropertyAttributes) InternalTokens

func (ep ExecutionPropertyAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ExecutionPropertyAttributes) InternalWithRef

func (ExecutionPropertyAttributes) MaxConcurrentRuns

func (ep ExecutionPropertyAttributes) MaxConcurrentRuns() terra.NumberValue

type ExecutionPropertyState

type ExecutionPropertyState struct {
	MaxConcurrentRuns float64 `json:"max_concurrent_runs"`
}

type NotificationProperty

type NotificationProperty struct {
	// NotifyDelayAfter: number, optional
	NotifyDelayAfter terra.NumberValue `hcl:"notify_delay_after,attr"`
}

type NotificationPropertyAttributes

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

func (NotificationPropertyAttributes) InternalRef

func (NotificationPropertyAttributes) InternalTokens

func (np NotificationPropertyAttributes) InternalTokens() (hclwrite.Tokens, error)

func (NotificationPropertyAttributes) InternalWithRef

func (NotificationPropertyAttributes) NotifyDelayAfter

func (np NotificationPropertyAttributes) NotifyDelayAfter() terra.NumberValue

type NotificationPropertyState

type NotificationPropertyState struct {
	NotifyDelayAfter float64 `json:"notify_delay_after"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (agj *Resource) Attributes() awsGlueJobAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (agj *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (agj *Resource) State() (*awsGlueJobState, bool)

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

func (*Resource) StateMust

func (agj *Resource) StateMust() *awsGlueJobState

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

func (*Resource) Type

func (agj *Resource) Type() string

Type returns the Terraform object type for Resource.

Jump to

Keyboard shortcuts

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