aws_mwaa_environment

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 {
	// AirflowConfigurationOptions: map of string, optional
	AirflowConfigurationOptions terra.MapValue[terra.StringValue] `hcl:"airflow_configuration_options,attr"`
	// AirflowVersion: string, optional
	AirflowVersion terra.StringValue `hcl:"airflow_version,attr"`
	// DagS3Path: string, required
	DagS3Path terra.StringValue `hcl:"dag_s3_path,attr" validate:"required"`
	// EnvironmentClass: string, optional
	EnvironmentClass terra.StringValue `hcl:"environment_class,attr"`
	// ExecutionRoleArn: string, required
	ExecutionRoleArn terra.StringValue `hcl:"execution_role_arn,attr" validate:"required"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// KmsKey: string, optional
	KmsKey terra.StringValue `hcl:"kms_key,attr"`
	// MaxWorkers: number, optional
	MaxWorkers terra.NumberValue `hcl:"max_workers,attr"`
	// MinWorkers: number, optional
	MinWorkers terra.NumberValue `hcl:"min_workers,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// PluginsS3ObjectVersion: string, optional
	PluginsS3ObjectVersion terra.StringValue `hcl:"plugins_s3_object_version,attr"`
	// PluginsS3Path: string, optional
	PluginsS3Path terra.StringValue `hcl:"plugins_s3_path,attr"`
	// RequirementsS3ObjectVersion: string, optional
	RequirementsS3ObjectVersion terra.StringValue `hcl:"requirements_s3_object_version,attr"`
	// RequirementsS3Path: string, optional
	RequirementsS3Path terra.StringValue `hcl:"requirements_s3_path,attr"`
	// Schedulers: number, optional
	Schedulers terra.NumberValue `hcl:"schedulers,attr"`
	// SourceBucketArn: string, required
	SourceBucketArn terra.StringValue `hcl:"source_bucket_arn,attr" validate:"required"`
	// 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"`
	// WebserverAccessMode: string, optional
	WebserverAccessMode terra.StringValue `hcl:"webserver_access_mode,attr"`
	// WeeklyMaintenanceWindowStart: string, optional
	WeeklyMaintenanceWindowStart terra.StringValue `hcl:"weekly_maintenance_window_start,attr"`
	// LoggingConfiguration: optional
	LoggingConfiguration *LoggingConfiguration `hcl:"logging_configuration,block"`
	// NetworkConfiguration: required
	NetworkConfiguration *NetworkConfiguration `hcl:"network_configuration,block" validate:"required"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
}

Args contains the configurations for aws_mwaa_environment.

type LastUpdatedAttributes

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

func (LastUpdatedAttributes) CreatedAt

func (lu LastUpdatedAttributes) CreatedAt() terra.StringValue

func (LastUpdatedAttributes) Error

func (LastUpdatedAttributes) InternalRef

func (lu LastUpdatedAttributes) InternalRef() (terra.Reference, error)

func (LastUpdatedAttributes) InternalTokens

func (lu LastUpdatedAttributes) InternalTokens() (hclwrite.Tokens, error)

func (LastUpdatedAttributes) InternalWithRef

func (LastUpdatedAttributes) Status

type LastUpdatedErrorAttributes

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

func (LastUpdatedErrorAttributes) ErrorCode

func (LastUpdatedErrorAttributes) ErrorMessage

func (e LastUpdatedErrorAttributes) ErrorMessage() terra.StringValue

func (LastUpdatedErrorAttributes) InternalRef

func (e LastUpdatedErrorAttributes) InternalRef() (terra.Reference, error)

func (LastUpdatedErrorAttributes) InternalTokens

func (e LastUpdatedErrorAttributes) InternalTokens() (hclwrite.Tokens, error)

func (LastUpdatedErrorAttributes) InternalWithRef

type LastUpdatedErrorState

type LastUpdatedErrorState struct {
	ErrorCode    string `json:"error_code"`
	ErrorMessage string `json:"error_message"`
}

type LastUpdatedState

type LastUpdatedState struct {
	CreatedAt string                  `json:"created_at"`
	Status    string                  `json:"status"`
	Error     []LastUpdatedErrorState `json:"error"`
}

type LoggingConfiguration

type LoggingConfiguration struct {
	// LoggingConfigurationDagProcessingLogs: optional
	DagProcessingLogs *LoggingConfigurationDagProcessingLogs `hcl:"dag_processing_logs,block"`
	// LoggingConfigurationSchedulerLogs: optional
	SchedulerLogs *LoggingConfigurationSchedulerLogs `hcl:"scheduler_logs,block"`
	// LoggingConfigurationTaskLogs: optional
	TaskLogs *LoggingConfigurationTaskLogs `hcl:"task_logs,block"`
	// LoggingConfigurationWebserverLogs: optional
	WebserverLogs *LoggingConfigurationWebserverLogs `hcl:"webserver_logs,block"`
	// LoggingConfigurationWorkerLogs: optional
	WorkerLogs *LoggingConfigurationWorkerLogs `hcl:"worker_logs,block"`
}

type LoggingConfigurationAttributes

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

func (LoggingConfigurationAttributes) DagProcessingLogs

func (LoggingConfigurationAttributes) InternalRef

func (LoggingConfigurationAttributes) InternalTokens

func (lc LoggingConfigurationAttributes) InternalTokens() (hclwrite.Tokens, error)

func (LoggingConfigurationAttributes) InternalWithRef

func (LoggingConfigurationAttributes) SchedulerLogs

func (LoggingConfigurationAttributes) TaskLogs

func (LoggingConfigurationAttributes) WebserverLogs

func (LoggingConfigurationAttributes) WorkerLogs

type LoggingConfigurationDagProcessingLogs

type LoggingConfigurationDagProcessingLogs struct {
	// Enabled: bool, optional
	Enabled terra.BoolValue `hcl:"enabled,attr"`
	// LogLevel: string, optional
	LogLevel terra.StringValue `hcl:"log_level,attr"`
}

type LoggingConfigurationDagProcessingLogsAttributes

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

func (LoggingConfigurationDagProcessingLogsAttributes) CloudWatchLogGroupArn

func (LoggingConfigurationDagProcessingLogsAttributes) Enabled

func (LoggingConfigurationDagProcessingLogsAttributes) InternalRef

func (LoggingConfigurationDagProcessingLogsAttributes) InternalTokens

func (LoggingConfigurationDagProcessingLogsAttributes) InternalWithRef

func (LoggingConfigurationDagProcessingLogsAttributes) LogLevel

type LoggingConfigurationDagProcessingLogsState

type LoggingConfigurationDagProcessingLogsState struct {
	CloudWatchLogGroupArn string `json:"cloud_watch_log_group_arn"`
	Enabled               bool   `json:"enabled"`
	LogLevel              string `json:"log_level"`
}

type LoggingConfigurationSchedulerLogs

type LoggingConfigurationSchedulerLogs struct {
	// Enabled: bool, optional
	Enabled terra.BoolValue `hcl:"enabled,attr"`
	// LogLevel: string, optional
	LogLevel terra.StringValue `hcl:"log_level,attr"`
}

type LoggingConfigurationSchedulerLogsAttributes

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

func (LoggingConfigurationSchedulerLogsAttributes) CloudWatchLogGroupArn

func (LoggingConfigurationSchedulerLogsAttributes) Enabled

func (LoggingConfigurationSchedulerLogsAttributes) InternalRef

func (LoggingConfigurationSchedulerLogsAttributes) InternalTokens

func (LoggingConfigurationSchedulerLogsAttributes) InternalWithRef

func (LoggingConfigurationSchedulerLogsAttributes) LogLevel

type LoggingConfigurationSchedulerLogsState

type LoggingConfigurationSchedulerLogsState struct {
	CloudWatchLogGroupArn string `json:"cloud_watch_log_group_arn"`
	Enabled               bool   `json:"enabled"`
	LogLevel              string `json:"log_level"`
}

type LoggingConfigurationState

type LoggingConfigurationState struct {
	DagProcessingLogs []LoggingConfigurationDagProcessingLogsState `json:"dag_processing_logs"`
	SchedulerLogs     []LoggingConfigurationSchedulerLogsState     `json:"scheduler_logs"`
	TaskLogs          []LoggingConfigurationTaskLogsState          `json:"task_logs"`
	WebserverLogs     []LoggingConfigurationWebserverLogsState     `json:"webserver_logs"`
	WorkerLogs        []LoggingConfigurationWorkerLogsState        `json:"worker_logs"`
}

type LoggingConfigurationTaskLogs

type LoggingConfigurationTaskLogs struct {
	// Enabled: bool, optional
	Enabled terra.BoolValue `hcl:"enabled,attr"`
	// LogLevel: string, optional
	LogLevel terra.StringValue `hcl:"log_level,attr"`
}

type LoggingConfigurationTaskLogsAttributes

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

func (LoggingConfigurationTaskLogsAttributes) CloudWatchLogGroupArn

func (tl LoggingConfigurationTaskLogsAttributes) CloudWatchLogGroupArn() terra.StringValue

func (LoggingConfigurationTaskLogsAttributes) Enabled

func (LoggingConfigurationTaskLogsAttributes) InternalRef

func (LoggingConfigurationTaskLogsAttributes) InternalTokens

func (LoggingConfigurationTaskLogsAttributes) InternalWithRef

func (LoggingConfigurationTaskLogsAttributes) LogLevel

type LoggingConfigurationTaskLogsState

type LoggingConfigurationTaskLogsState struct {
	CloudWatchLogGroupArn string `json:"cloud_watch_log_group_arn"`
	Enabled               bool   `json:"enabled"`
	LogLevel              string `json:"log_level"`
}

type LoggingConfigurationWebserverLogs

type LoggingConfigurationWebserverLogs struct {
	// Enabled: bool, optional
	Enabled terra.BoolValue `hcl:"enabled,attr"`
	// LogLevel: string, optional
	LogLevel terra.StringValue `hcl:"log_level,attr"`
}

type LoggingConfigurationWebserverLogsAttributes

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

func (LoggingConfigurationWebserverLogsAttributes) CloudWatchLogGroupArn

func (LoggingConfigurationWebserverLogsAttributes) Enabled

func (LoggingConfigurationWebserverLogsAttributes) InternalRef

func (LoggingConfigurationWebserverLogsAttributes) InternalTokens

func (LoggingConfigurationWebserverLogsAttributes) InternalWithRef

func (LoggingConfigurationWebserverLogsAttributes) LogLevel

type LoggingConfigurationWebserverLogsState

type LoggingConfigurationWebserverLogsState struct {
	CloudWatchLogGroupArn string `json:"cloud_watch_log_group_arn"`
	Enabled               bool   `json:"enabled"`
	LogLevel              string `json:"log_level"`
}

type LoggingConfigurationWorkerLogs

type LoggingConfigurationWorkerLogs struct {
	// Enabled: bool, optional
	Enabled terra.BoolValue `hcl:"enabled,attr"`
	// LogLevel: string, optional
	LogLevel terra.StringValue `hcl:"log_level,attr"`
}

type LoggingConfigurationWorkerLogsAttributes

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

func (LoggingConfigurationWorkerLogsAttributes) CloudWatchLogGroupArn

func (wl LoggingConfigurationWorkerLogsAttributes) CloudWatchLogGroupArn() terra.StringValue

func (LoggingConfigurationWorkerLogsAttributes) Enabled

func (LoggingConfigurationWorkerLogsAttributes) InternalRef

func (LoggingConfigurationWorkerLogsAttributes) InternalTokens

func (LoggingConfigurationWorkerLogsAttributes) InternalWithRef

func (LoggingConfigurationWorkerLogsAttributes) LogLevel

type LoggingConfigurationWorkerLogsState

type LoggingConfigurationWorkerLogsState struct {
	CloudWatchLogGroupArn string `json:"cloud_watch_log_group_arn"`
	Enabled               bool   `json:"enabled"`
	LogLevel              string `json:"log_level"`
}

type NetworkConfiguration

type NetworkConfiguration struct {
	// SecurityGroupIds: set of string, required
	SecurityGroupIds terra.SetValue[terra.StringValue] `hcl:"security_group_ids,attr" validate:"required"`
	// SubnetIds: set of string, required
	SubnetIds terra.SetValue[terra.StringValue] `hcl:"subnet_ids,attr" validate:"required"`
}

type NetworkConfigurationAttributes

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

func (NetworkConfigurationAttributes) InternalRef

func (NetworkConfigurationAttributes) InternalTokens

func (nc NetworkConfigurationAttributes) InternalTokens() (hclwrite.Tokens, error)

func (NetworkConfigurationAttributes) InternalWithRef

func (NetworkConfigurationAttributes) SecurityGroupIds

func (NetworkConfigurationAttributes) SubnetIds

type NetworkConfigurationState

type NetworkConfigurationState struct {
	SecurityGroupIds []string `json:"security_group_ids"`
	SubnetIds        []string `json:"subnet_ids"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (ame *Resource) Attributes() awsMwaaEnvironmentAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (ame *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (ame *Resource) State() (*awsMwaaEnvironmentState, bool)

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

func (*Resource) StateMust

func (ame *Resource) StateMust() *awsMwaaEnvironmentState

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

func (*Resource) Type

func (ame *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