aws_emr_instance_fleet

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 {
	// ClusterId: string, required
	ClusterId terra.StringValue `hcl:"cluster_id,attr" validate:"required"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Name: string, optional
	Name terra.StringValue `hcl:"name,attr"`
	// TargetOnDemandCapacity: number, optional
	TargetOnDemandCapacity terra.NumberValue `hcl:"target_on_demand_capacity,attr"`
	// TargetSpotCapacity: number, optional
	TargetSpotCapacity terra.NumberValue `hcl:"target_spot_capacity,attr"`
	// InstanceTypeConfigs: min=0
	InstanceTypeConfigs []InstanceTypeConfigs `hcl:"instance_type_configs,block" validate:"min=0"`
	// LaunchSpecifications: optional
	LaunchSpecifications *LaunchSpecifications `hcl:"launch_specifications,block"`
}

Args contains the configurations for aws_emr_instance_fleet.

type InstanceTypeConfigs

type InstanceTypeConfigs struct {
	// BidPrice: string, optional
	BidPrice terra.StringValue `hcl:"bid_price,attr"`
	// BidPriceAsPercentageOfOnDemandPrice: number, optional
	BidPriceAsPercentageOfOnDemandPrice terra.NumberValue `hcl:"bid_price_as_percentage_of_on_demand_price,attr"`
	// InstanceType: string, required
	InstanceType terra.StringValue `hcl:"instance_type,attr" validate:"required"`
	// WeightedCapacity: number, optional
	WeightedCapacity terra.NumberValue `hcl:"weighted_capacity,attr"`
	// InstanceTypeConfigsConfigurations: min=0
	Configurations []InstanceTypeConfigsConfigurations `hcl:"configurations,block" validate:"min=0"`
	// InstanceTypeConfigsEbsConfig: min=0
	EbsConfig []InstanceTypeConfigsEbsConfig `hcl:"ebs_config,block" validate:"min=0"`
}

type InstanceTypeConfigsAttributes

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

func (InstanceTypeConfigsAttributes) BidPrice

func (InstanceTypeConfigsAttributes) BidPriceAsPercentageOfOnDemandPrice

func (itc InstanceTypeConfigsAttributes) BidPriceAsPercentageOfOnDemandPrice() terra.NumberValue

func (InstanceTypeConfigsAttributes) Configurations

func (InstanceTypeConfigsAttributes) EbsConfig

func (InstanceTypeConfigsAttributes) InstanceType

func (itc InstanceTypeConfigsAttributes) InstanceType() terra.StringValue

func (InstanceTypeConfigsAttributes) InternalRef

func (itc InstanceTypeConfigsAttributes) InternalRef() (terra.Reference, error)

func (InstanceTypeConfigsAttributes) InternalTokens

func (itc InstanceTypeConfigsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (InstanceTypeConfigsAttributes) InternalWithRef

func (InstanceTypeConfigsAttributes) WeightedCapacity

func (itc InstanceTypeConfigsAttributes) WeightedCapacity() terra.NumberValue

type InstanceTypeConfigsConfigurations

type InstanceTypeConfigsConfigurations struct {
	// Classification: string, optional
	Classification terra.StringValue `hcl:"classification,attr"`
	// Properties: map of string, optional
	Properties terra.MapValue[terra.StringValue] `hcl:"properties,attr"`
}

type InstanceTypeConfigsConfigurationsAttributes

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

func (InstanceTypeConfigsConfigurationsAttributes) Classification

func (InstanceTypeConfigsConfigurationsAttributes) InternalRef

func (InstanceTypeConfigsConfigurationsAttributes) InternalTokens

func (InstanceTypeConfigsConfigurationsAttributes) InternalWithRef

func (InstanceTypeConfigsConfigurationsAttributes) Properties

type InstanceTypeConfigsConfigurationsState

type InstanceTypeConfigsConfigurationsState struct {
	Classification string            `json:"classification"`
	Properties     map[string]string `json:"properties"`
}

type InstanceTypeConfigsEbsConfig

type InstanceTypeConfigsEbsConfig struct {
	// Iops: number, optional
	Iops terra.NumberValue `hcl:"iops,attr"`
	// Size: number, required
	Size terra.NumberValue `hcl:"size,attr" validate:"required"`
	// Type: string, required
	Type terra.StringValue `hcl:"type,attr" validate:"required"`
	// VolumesPerInstance: number, optional
	VolumesPerInstance terra.NumberValue `hcl:"volumes_per_instance,attr"`
}

type InstanceTypeConfigsEbsConfigAttributes

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

func (InstanceTypeConfigsEbsConfigAttributes) InternalRef

func (InstanceTypeConfigsEbsConfigAttributes) InternalTokens

func (InstanceTypeConfigsEbsConfigAttributes) InternalWithRef

func (InstanceTypeConfigsEbsConfigAttributes) Iops

func (InstanceTypeConfigsEbsConfigAttributes) Size

func (InstanceTypeConfigsEbsConfigAttributes) Type

func (InstanceTypeConfigsEbsConfigAttributes) VolumesPerInstance

type InstanceTypeConfigsEbsConfigState

type InstanceTypeConfigsEbsConfigState struct {
	Iops               float64 `json:"iops"`
	Size               float64 `json:"size"`
	Type               string  `json:"type"`
	VolumesPerInstance float64 `json:"volumes_per_instance"`
}

type InstanceTypeConfigsState

type InstanceTypeConfigsState struct {
	BidPrice                            string                                   `json:"bid_price"`
	BidPriceAsPercentageOfOnDemandPrice float64                                  `json:"bid_price_as_percentage_of_on_demand_price"`
	InstanceType                        string                                   `json:"instance_type"`
	WeightedCapacity                    float64                                  `json:"weighted_capacity"`
	Configurations                      []InstanceTypeConfigsConfigurationsState `json:"configurations"`
	EbsConfig                           []InstanceTypeConfigsEbsConfigState      `json:"ebs_config"`
}

type LaunchSpecifications

type LaunchSpecifications struct {
	// LaunchSpecificationsOnDemandSpecification: min=0
	OnDemandSpecification []LaunchSpecificationsOnDemandSpecification `hcl:"on_demand_specification,block" validate:"min=0"`
	// LaunchSpecificationsSpotSpecification: min=0
	SpotSpecification []LaunchSpecificationsSpotSpecification `hcl:"spot_specification,block" validate:"min=0"`
}

type LaunchSpecificationsAttributes

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

func (LaunchSpecificationsAttributes) InternalRef

func (LaunchSpecificationsAttributes) InternalTokens

func (ls LaunchSpecificationsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (LaunchSpecificationsAttributes) InternalWithRef

func (LaunchSpecificationsAttributes) OnDemandSpecification

func (LaunchSpecificationsAttributes) SpotSpecification

type LaunchSpecificationsOnDemandSpecification

type LaunchSpecificationsOnDemandSpecification struct {
	// AllocationStrategy: string, required
	AllocationStrategy terra.StringValue `hcl:"allocation_strategy,attr" validate:"required"`
}

type LaunchSpecificationsOnDemandSpecificationAttributes

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

func (LaunchSpecificationsOnDemandSpecificationAttributes) AllocationStrategy

func (LaunchSpecificationsOnDemandSpecificationAttributes) InternalRef

func (LaunchSpecificationsOnDemandSpecificationAttributes) InternalTokens

func (LaunchSpecificationsOnDemandSpecificationAttributes) InternalWithRef

type LaunchSpecificationsOnDemandSpecificationState

type LaunchSpecificationsOnDemandSpecificationState struct {
	AllocationStrategy string `json:"allocation_strategy"`
}

type LaunchSpecificationsSpotSpecification

type LaunchSpecificationsSpotSpecification struct {
	// AllocationStrategy: string, required
	AllocationStrategy terra.StringValue `hcl:"allocation_strategy,attr" validate:"required"`
	// BlockDurationMinutes: number, optional
	BlockDurationMinutes terra.NumberValue `hcl:"block_duration_minutes,attr"`
	// TimeoutAction: string, required
	TimeoutAction terra.StringValue `hcl:"timeout_action,attr" validate:"required"`
	// TimeoutDurationMinutes: number, required
	TimeoutDurationMinutes terra.NumberValue `hcl:"timeout_duration_minutes,attr" validate:"required"`
}

type LaunchSpecificationsSpotSpecificationAttributes

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

func (LaunchSpecificationsSpotSpecificationAttributes) AllocationStrategy

func (LaunchSpecificationsSpotSpecificationAttributes) BlockDurationMinutes

func (LaunchSpecificationsSpotSpecificationAttributes) InternalRef

func (LaunchSpecificationsSpotSpecificationAttributes) InternalTokens

func (LaunchSpecificationsSpotSpecificationAttributes) InternalWithRef

func (LaunchSpecificationsSpotSpecificationAttributes) TimeoutAction

func (LaunchSpecificationsSpotSpecificationAttributes) TimeoutDurationMinutes

type LaunchSpecificationsSpotSpecificationState

type LaunchSpecificationsSpotSpecificationState struct {
	AllocationStrategy     string  `json:"allocation_strategy"`
	BlockDurationMinutes   float64 `json:"block_duration_minutes"`
	TimeoutAction          string  `json:"timeout_action"`
	TimeoutDurationMinutes float64 `json:"timeout_duration_minutes"`
}

type LaunchSpecificationsState

type LaunchSpecificationsState struct {
	OnDemandSpecification []LaunchSpecificationsOnDemandSpecificationState `json:"on_demand_specification"`
	SpotSpecification     []LaunchSpecificationsSpotSpecificationState     `json:"spot_specification"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (aeif *Resource) Attributes() awsEmrInstanceFleetAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (aeif *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (aeif *Resource) State() (*awsEmrInstanceFleetState, bool)

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

func (*Resource) StateMust

func (aeif *Resource) StateMust() *awsEmrInstanceFleetState

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

func (*Resource) Type

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