aws_emrserverless_application

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 {
	// Architecture: string, optional
	Architecture terra.StringValue `hcl:"architecture,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// ReleaseLabel: string, required
	ReleaseLabel terra.StringValue `hcl:"release_label,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"`
	// Type: string, required
	Type terra.StringValue `hcl:"type,attr" validate:"required"`
	// AutoStartConfiguration: optional
	AutoStartConfiguration *AutoStartConfiguration `hcl:"auto_start_configuration,block"`
	// AutoStopConfiguration: optional
	AutoStopConfiguration *AutoStopConfiguration `hcl:"auto_stop_configuration,block"`
	// ImageConfiguration: optional
	ImageConfiguration *ImageConfiguration `hcl:"image_configuration,block"`
	// InitialCapacity: min=0
	InitialCapacity []InitialCapacity `hcl:"initial_capacity,block" validate:"min=0"`
	// MaximumCapacity: optional
	MaximumCapacity *MaximumCapacity `hcl:"maximum_capacity,block"`
	// NetworkConfiguration: optional
	NetworkConfiguration *NetworkConfiguration `hcl:"network_configuration,block"`
}

Args contains the configurations for aws_emrserverless_application.

type AutoStartConfiguration

type AutoStartConfiguration struct {
	// Enabled: bool, optional
	Enabled terra.BoolValue `hcl:"enabled,attr"`
}

type AutoStartConfigurationAttributes

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

func (AutoStartConfigurationAttributes) Enabled

func (AutoStartConfigurationAttributes) InternalRef

func (AutoStartConfigurationAttributes) InternalTokens

func (asc AutoStartConfigurationAttributes) InternalTokens() (hclwrite.Tokens, error)

func (AutoStartConfigurationAttributes) InternalWithRef

type AutoStartConfigurationState

type AutoStartConfigurationState struct {
	Enabled bool `json:"enabled"`
}

type AutoStopConfiguration

type AutoStopConfiguration struct {
	// Enabled: bool, optional
	Enabled terra.BoolValue `hcl:"enabled,attr"`
	// IdleTimeoutMinutes: number, optional
	IdleTimeoutMinutes terra.NumberValue `hcl:"idle_timeout_minutes,attr"`
}

type AutoStopConfigurationAttributes

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

func (AutoStopConfigurationAttributes) Enabled

func (AutoStopConfigurationAttributes) IdleTimeoutMinutes

func (asc AutoStopConfigurationAttributes) IdleTimeoutMinutes() terra.NumberValue

func (AutoStopConfigurationAttributes) InternalRef

func (AutoStopConfigurationAttributes) InternalTokens

func (asc AutoStopConfigurationAttributes) InternalTokens() (hclwrite.Tokens, error)

func (AutoStopConfigurationAttributes) InternalWithRef

type AutoStopConfigurationState

type AutoStopConfigurationState struct {
	Enabled            bool    `json:"enabled"`
	IdleTimeoutMinutes float64 `json:"idle_timeout_minutes"`
}

type ImageConfiguration

type ImageConfiguration struct {
	// ImageUri: string, required
	ImageUri terra.StringValue `hcl:"image_uri,attr" validate:"required"`
}

type ImageConfigurationAttributes

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

func (ImageConfigurationAttributes) ImageUri

func (ImageConfigurationAttributes) InternalRef

func (ic ImageConfigurationAttributes) InternalRef() (terra.Reference, error)

func (ImageConfigurationAttributes) InternalTokens

func (ic ImageConfigurationAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ImageConfigurationAttributes) InternalWithRef

type ImageConfigurationState

type ImageConfigurationState struct {
	ImageUri string `json:"image_uri"`
}

type InitialCapacity

type InitialCapacity struct {
	// InitialCapacityType: string, required
	InitialCapacityType terra.StringValue `hcl:"initial_capacity_type,attr" validate:"required"`
	// InitialCapacityInitialCapacityConfig: optional
	InitialCapacityConfig *InitialCapacityInitialCapacityConfig `hcl:"initial_capacity_config,block"`
}

type InitialCapacityAttributes

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

func (InitialCapacityAttributes) InitialCapacityConfig

func (InitialCapacityAttributes) InitialCapacityType

func (ic InitialCapacityAttributes) InitialCapacityType() terra.StringValue

func (InitialCapacityAttributes) InternalRef

func (ic InitialCapacityAttributes) InternalRef() (terra.Reference, error)

func (InitialCapacityAttributes) InternalTokens

func (ic InitialCapacityAttributes) InternalTokens() (hclwrite.Tokens, error)

func (InitialCapacityAttributes) InternalWithRef

type InitialCapacityInitialCapacityConfig

type InitialCapacityInitialCapacityConfig struct {
	// WorkerCount: number, required
	WorkerCount terra.NumberValue `hcl:"worker_count,attr" validate:"required"`
	// InitialCapacityInitialCapacityConfigWorkerConfiguration: optional
	WorkerConfiguration *InitialCapacityInitialCapacityConfigWorkerConfiguration `hcl:"worker_configuration,block"`
}

type InitialCapacityInitialCapacityConfigAttributes

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

func (InitialCapacityInitialCapacityConfigAttributes) InternalRef

func (InitialCapacityInitialCapacityConfigAttributes) InternalTokens

func (InitialCapacityInitialCapacityConfigAttributes) InternalWithRef

func (InitialCapacityInitialCapacityConfigAttributes) WorkerCount

type InitialCapacityInitialCapacityConfigState

type InitialCapacityInitialCapacityConfigState struct {
	WorkerCount         float64                                                        `json:"worker_count"`
	WorkerConfiguration []InitialCapacityInitialCapacityConfigWorkerConfigurationState `json:"worker_configuration"`
}

type InitialCapacityInitialCapacityConfigWorkerConfiguration

type InitialCapacityInitialCapacityConfigWorkerConfiguration struct {
	// Cpu: string, required
	Cpu terra.StringValue `hcl:"cpu,attr" validate:"required"`
	// Disk: string, optional
	Disk terra.StringValue `hcl:"disk,attr"`
	// Memory: string, required
	Memory terra.StringValue `hcl:"memory,attr" validate:"required"`
}

type InitialCapacityInitialCapacityConfigWorkerConfigurationAttributes

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

func (InitialCapacityInitialCapacityConfigWorkerConfigurationAttributes) Cpu

func (InitialCapacityInitialCapacityConfigWorkerConfigurationAttributes) Disk

func (InitialCapacityInitialCapacityConfigWorkerConfigurationAttributes) InternalRef

func (InitialCapacityInitialCapacityConfigWorkerConfigurationAttributes) InternalTokens

func (InitialCapacityInitialCapacityConfigWorkerConfigurationAttributes) InternalWithRef

func (InitialCapacityInitialCapacityConfigWorkerConfigurationAttributes) Memory

type InitialCapacityInitialCapacityConfigWorkerConfigurationState

type InitialCapacityInitialCapacityConfigWorkerConfigurationState struct {
	Cpu    string `json:"cpu"`
	Disk   string `json:"disk"`
	Memory string `json:"memory"`
}

type InitialCapacityState

type InitialCapacityState struct {
	InitialCapacityType   string                                      `json:"initial_capacity_type"`
	InitialCapacityConfig []InitialCapacityInitialCapacityConfigState `json:"initial_capacity_config"`
}

type MaximumCapacity

type MaximumCapacity struct {
	// Cpu: string, required
	Cpu terra.StringValue `hcl:"cpu,attr" validate:"required"`
	// Disk: string, optional
	Disk terra.StringValue `hcl:"disk,attr"`
	// Memory: string, required
	Memory terra.StringValue `hcl:"memory,attr" validate:"required"`
}

type MaximumCapacityAttributes

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

func (MaximumCapacityAttributes) Cpu

func (MaximumCapacityAttributes) Disk

func (MaximumCapacityAttributes) InternalRef

func (mc MaximumCapacityAttributes) InternalRef() (terra.Reference, error)

func (MaximumCapacityAttributes) InternalTokens

func (mc MaximumCapacityAttributes) InternalTokens() (hclwrite.Tokens, error)

func (MaximumCapacityAttributes) InternalWithRef

func (MaximumCapacityAttributes) Memory

type MaximumCapacityState

type MaximumCapacityState struct {
	Cpu    string `json:"cpu"`
	Disk   string `json:"disk"`
	Memory string `json:"memory"`
}

type NetworkConfiguration

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

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (aea *Resource) Attributes() awsEmrserverlessApplicationAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (aea *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (aea *Resource) State() (*awsEmrserverlessApplicationState, bool)

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

func (*Resource) StateMust

func (aea *Resource) StateMust() *awsEmrserverlessApplicationState

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

func (*Resource) Type

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