aws_glue_trigger

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 Actions

type Actions struct {
	// Arguments: map of string, optional
	Arguments terra.MapValue[terra.StringValue] `hcl:"arguments,attr"`
	// CrawlerName: string, optional
	CrawlerName terra.StringValue `hcl:"crawler_name,attr"`
	// JobName: string, optional
	JobName terra.StringValue `hcl:"job_name,attr"`
	// SecurityConfiguration: string, optional
	SecurityConfiguration terra.StringValue `hcl:"security_configuration,attr"`
	// Timeout: number, optional
	Timeout terra.NumberValue `hcl:"timeout,attr"`
	// ActionsNotificationProperty: optional
	NotificationProperty *ActionsNotificationProperty `hcl:"notification_property,block"`
}

type ActionsAttributes

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

func (ActionsAttributes) Arguments

func (ActionsAttributes) CrawlerName

func (a ActionsAttributes) CrawlerName() terra.StringValue

func (ActionsAttributes) InternalRef

func (a ActionsAttributes) InternalRef() (terra.Reference, error)

func (ActionsAttributes) InternalTokens

func (a ActionsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ActionsAttributes) InternalWithRef

func (a ActionsAttributes) InternalWithRef(ref terra.Reference) ActionsAttributes

func (ActionsAttributes) JobName

func (a ActionsAttributes) JobName() terra.StringValue

func (ActionsAttributes) NotificationProperty

func (ActionsAttributes) SecurityConfiguration

func (a ActionsAttributes) SecurityConfiguration() terra.StringValue

func (ActionsAttributes) Timeout

func (a ActionsAttributes) Timeout() terra.NumberValue

type ActionsNotificationProperty

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

type ActionsNotificationPropertyAttributes

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

func (ActionsNotificationPropertyAttributes) InternalRef

func (ActionsNotificationPropertyAttributes) InternalTokens

func (ActionsNotificationPropertyAttributes) InternalWithRef

func (ActionsNotificationPropertyAttributes) NotifyDelayAfter

type ActionsNotificationPropertyState

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

type ActionsState

type ActionsState struct {
	Arguments             map[string]string                  `json:"arguments"`
	CrawlerName           string                             `json:"crawler_name"`
	JobName               string                             `json:"job_name"`
	SecurityConfiguration string                             `json:"security_configuration"`
	Timeout               float64                            `json:"timeout"`
	NotificationProperty  []ActionsNotificationPropertyState `json:"notification_property"`
}

type Args

type Args struct {
	// Description: string, optional
	Description terra.StringValue `hcl:"description,attr"`
	// Enabled: bool, optional
	Enabled terra.BoolValue `hcl:"enabled,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// Schedule: string, optional
	Schedule terra.StringValue `hcl:"schedule,attr"`
	// StartOnCreation: bool, optional
	StartOnCreation terra.BoolValue `hcl:"start_on_creation,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"`
	// Type: string, required
	Type terra.StringValue `hcl:"type,attr" validate:"required"`
	// WorkflowName: string, optional
	WorkflowName terra.StringValue `hcl:"workflow_name,attr"`
	// Actions: min=1
	Actions []Actions `hcl:"actions,block" validate:"min=1"`
	// EventBatchingCondition: min=0
	EventBatchingCondition []EventBatchingCondition `hcl:"event_batching_condition,block" validate:"min=0"`
	// Predicate: optional
	Predicate *Predicate `hcl:"predicate,block"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
}

Args contains the configurations for aws_glue_trigger.

type EventBatchingCondition

type EventBatchingCondition struct {
	// BatchSize: number, required
	BatchSize terra.NumberValue `hcl:"batch_size,attr" validate:"required"`
	// BatchWindow: number, optional
	BatchWindow terra.NumberValue `hcl:"batch_window,attr"`
}

type EventBatchingConditionAttributes

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

func (EventBatchingConditionAttributes) BatchSize

func (EventBatchingConditionAttributes) BatchWindow

func (EventBatchingConditionAttributes) InternalRef

func (EventBatchingConditionAttributes) InternalTokens

func (ebc EventBatchingConditionAttributes) InternalTokens() (hclwrite.Tokens, error)

func (EventBatchingConditionAttributes) InternalWithRef

type EventBatchingConditionState

type EventBatchingConditionState struct {
	BatchSize   float64 `json:"batch_size"`
	BatchWindow float64 `json:"batch_window"`
}

type Predicate

type Predicate struct {
	// Logical: string, optional
	Logical terra.StringValue `hcl:"logical,attr"`
	// PredicateConditions: min=1
	Conditions []PredicateConditions `hcl:"conditions,block" validate:"min=1"`
}

type PredicateAttributes

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

func (PredicateAttributes) Conditions

func (PredicateAttributes) InternalRef

func (p PredicateAttributes) InternalRef() (terra.Reference, error)

func (PredicateAttributes) InternalTokens

func (p PredicateAttributes) InternalTokens() (hclwrite.Tokens, error)

func (PredicateAttributes) InternalWithRef

func (p PredicateAttributes) InternalWithRef(ref terra.Reference) PredicateAttributes

func (PredicateAttributes) Logical

type PredicateConditions

type PredicateConditions struct {
	// CrawlState: string, optional
	CrawlState terra.StringValue `hcl:"crawl_state,attr"`
	// CrawlerName: string, optional
	CrawlerName terra.StringValue `hcl:"crawler_name,attr"`
	// JobName: string, optional
	JobName terra.StringValue `hcl:"job_name,attr"`
	// LogicalOperator: string, optional
	LogicalOperator terra.StringValue `hcl:"logical_operator,attr"`
	// State: string, optional
	State terra.StringValue `hcl:"state,attr"`
}

type PredicateConditionsAttributes

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

func (PredicateConditionsAttributes) CrawlState

func (PredicateConditionsAttributes) CrawlerName

func (PredicateConditionsAttributes) InternalRef

func (PredicateConditionsAttributes) InternalTokens

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

func (PredicateConditionsAttributes) InternalWithRef

func (PredicateConditionsAttributes) JobName

func (PredicateConditionsAttributes) LogicalOperator

func (c PredicateConditionsAttributes) LogicalOperator() terra.StringValue

func (PredicateConditionsAttributes) State

type PredicateConditionsState

type PredicateConditionsState struct {
	CrawlState      string `json:"crawl_state"`
	CrawlerName     string `json:"crawler_name"`
	JobName         string `json:"job_name"`
	LogicalOperator string `json:"logical_operator"`
	State           string `json:"state"`
}

type PredicateState

type PredicateState struct {
	Logical    string                     `json:"logical"`
	Conditions []PredicateConditionsState `json:"conditions"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (agt *Resource) Attributes() awsGlueTriggerAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (agt *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (agt *Resource) State() (*awsGlueTriggerState, bool)

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

func (*Resource) StateMust

func (agt *Resource) StateMust() *awsGlueTriggerState

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

func (*Resource) Type

func (agt *Resource) Type() string

Type returns the Terraform object type for Resource.

type Timeouts

type Timeouts struct {
	// Create: string, optional
	Create terra.StringValue `hcl:"create,attr"`
	// Delete: string, optional
	Delete terra.StringValue `hcl:"delete,attr"`
	// Update: string, optional
	Update terra.StringValue `hcl:"update,attr"`
}

type TimeoutsAttributes

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

func (TimeoutsAttributes) Create

func (TimeoutsAttributes) Delete

func (TimeoutsAttributes) InternalRef

func (t TimeoutsAttributes) InternalRef() (terra.Reference, error)

func (TimeoutsAttributes) InternalTokens

func (t TimeoutsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (TimeoutsAttributes) InternalWithRef

func (t TimeoutsAttributes) InternalWithRef(ref terra.Reference) TimeoutsAttributes

func (TimeoutsAttributes) Update

type TimeoutsState

type TimeoutsState struct {
	Create string `json:"create"`
	Delete string `json:"delete"`
	Update string `json:"update"`
}

Jump to

Keyboard shortcuts

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