ec2fleet

package
v0.0.0-...-c2cc54e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 27, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AcceleratorCount

type AcceleratorCount struct {
	// Max: number, optional
	Max terra.NumberValue `hcl:"max,attr"`
	// Min: number, optional
	Min terra.NumberValue `hcl:"min,attr"`
}

type AcceleratorCountAttributes

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

func (AcceleratorCountAttributes) InternalRef

func (ac AcceleratorCountAttributes) InternalRef() (terra.Reference, error)

func (AcceleratorCountAttributes) InternalTokens

func (ac AcceleratorCountAttributes) InternalTokens() (hclwrite.Tokens, error)

func (AcceleratorCountAttributes) InternalWithRef

func (AcceleratorCountAttributes) Max

func (AcceleratorCountAttributes) Min

type AcceleratorCountState

type AcceleratorCountState struct {
	Max float64 `json:"max"`
	Min float64 `json:"min"`
}

type AcceleratorTotalMemoryMib

type AcceleratorTotalMemoryMib struct {
	// Max: number, optional
	Max terra.NumberValue `hcl:"max,attr"`
	// Min: number, optional
	Min terra.NumberValue `hcl:"min,attr"`
}

type AcceleratorTotalMemoryMibAttributes

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

func (AcceleratorTotalMemoryMibAttributes) InternalRef

func (AcceleratorTotalMemoryMibAttributes) InternalTokens

func (atmm AcceleratorTotalMemoryMibAttributes) InternalTokens() (hclwrite.Tokens, error)

func (AcceleratorTotalMemoryMibAttributes) InternalWithRef

func (AcceleratorTotalMemoryMibAttributes) Max

func (AcceleratorTotalMemoryMibAttributes) Min

type AcceleratorTotalMemoryMibState

type AcceleratorTotalMemoryMibState struct {
	Max float64 `json:"max"`
	Min float64 `json:"min"`
}

type BaselineEbsBandwidthMbps

type BaselineEbsBandwidthMbps struct {
	// Max: number, optional
	Max terra.NumberValue `hcl:"max,attr"`
	// Min: number, optional
	Min terra.NumberValue `hcl:"min,attr"`
}

type BaselineEbsBandwidthMbpsAttributes

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

func (BaselineEbsBandwidthMbpsAttributes) InternalRef

func (BaselineEbsBandwidthMbpsAttributes) InternalTokens

func (bebm BaselineEbsBandwidthMbpsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (BaselineEbsBandwidthMbpsAttributes) InternalWithRef

func (BaselineEbsBandwidthMbpsAttributes) Max

func (BaselineEbsBandwidthMbpsAttributes) Min

type BaselineEbsBandwidthMbpsState

type BaselineEbsBandwidthMbpsState struct {
	Max float64 `json:"max"`
	Min float64 `json:"min"`
}

type CapacityRebalance

type CapacityRebalance struct {
	// ReplacementStrategy: string, optional
	ReplacementStrategy terra.StringValue `hcl:"replacement_strategy,attr"`
	// TerminationDelay: number, optional
	TerminationDelay terra.NumberValue `hcl:"termination_delay,attr"`
}

type CapacityRebalanceAttributes

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

func (CapacityRebalanceAttributes) InternalRef

func (cr CapacityRebalanceAttributes) InternalRef() (terra.Reference, error)

func (CapacityRebalanceAttributes) InternalTokens

func (cr CapacityRebalanceAttributes) InternalTokens() (hclwrite.Tokens, error)

func (CapacityRebalanceAttributes) InternalWithRef

func (CapacityRebalanceAttributes) ReplacementStrategy

func (cr CapacityRebalanceAttributes) ReplacementStrategy() terra.StringValue

func (CapacityRebalanceAttributes) TerminationDelay

func (cr CapacityRebalanceAttributes) TerminationDelay() terra.NumberValue

type CapacityRebalanceState

type CapacityRebalanceState struct {
	ReplacementStrategy string  `json:"replacement_strategy"`
	TerminationDelay    float64 `json:"termination_delay"`
}

type FleetInstanceSet

type FleetInstanceSet struct {
	// InstanceIds: list of string, optional
	InstanceIds terra.ListValue[terra.StringValue] `hcl:"instance_ids,attr"`
	// InstanceType: string, optional
	InstanceType terra.StringValue `hcl:"instance_type,attr"`
	// Lifecycle: string, optional
	Lifecycle terra.StringValue `hcl:"lifecycle,attr"`
	// Platform: string, optional
	Platform terra.StringValue `hcl:"platform,attr"`
}

type FleetInstanceSetAttributes

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

func (FleetInstanceSetAttributes) InstanceIds

func (FleetInstanceSetAttributes) InstanceType

func (fis FleetInstanceSetAttributes) InstanceType() terra.StringValue

func (FleetInstanceSetAttributes) InternalRef

func (fis FleetInstanceSetAttributes) InternalRef() (terra.Reference, error)

func (FleetInstanceSetAttributes) InternalTokens

func (fis FleetInstanceSetAttributes) InternalTokens() (hclwrite.Tokens, error)

func (FleetInstanceSetAttributes) InternalWithRef

func (FleetInstanceSetAttributes) Lifecycle

func (FleetInstanceSetAttributes) Platform

type FleetInstanceSetState

type FleetInstanceSetState struct {
	InstanceIds  []string `json:"instance_ids"`
	InstanceType string   `json:"instance_type"`
	Lifecycle    string   `json:"lifecycle"`
	Platform     string   `json:"platform"`
}

type InstanceRequirements

type InstanceRequirements struct {
	// AcceleratorManufacturers: set of string, optional
	AcceleratorManufacturers terra.SetValue[terra.StringValue] `hcl:"accelerator_manufacturers,attr"`
	// AcceleratorNames: set of string, optional
	AcceleratorNames terra.SetValue[terra.StringValue] `hcl:"accelerator_names,attr"`
	// AcceleratorTypes: set of string, optional
	AcceleratorTypes terra.SetValue[terra.StringValue] `hcl:"accelerator_types,attr"`
	// AllowedInstanceTypes: set of string, optional
	AllowedInstanceTypes terra.SetValue[terra.StringValue] `hcl:"allowed_instance_types,attr"`
	// BareMetal: string, optional
	BareMetal terra.StringValue `hcl:"bare_metal,attr"`
	// BurstablePerformance: string, optional
	BurstablePerformance terra.StringValue `hcl:"burstable_performance,attr"`
	// CpuManufacturers: set of string, optional
	CpuManufacturers terra.SetValue[terra.StringValue] `hcl:"cpu_manufacturers,attr"`
	// ExcludedInstanceTypes: set of string, optional
	ExcludedInstanceTypes terra.SetValue[terra.StringValue] `hcl:"excluded_instance_types,attr"`
	// InstanceGenerations: set of string, optional
	InstanceGenerations terra.SetValue[terra.StringValue] `hcl:"instance_generations,attr"`
	// LocalStorage: string, optional
	LocalStorage terra.StringValue `hcl:"local_storage,attr"`
	// LocalStorageTypes: set of string, optional
	LocalStorageTypes terra.SetValue[terra.StringValue] `hcl:"local_storage_types,attr"`
	// OnDemandMaxPricePercentageOverLowestPrice: number, optional
	OnDemandMaxPricePercentageOverLowestPrice terra.NumberValue `hcl:"on_demand_max_price_percentage_over_lowest_price,attr"`
	// RequireHibernateSupport: bool, optional
	RequireHibernateSupport terra.BoolValue `hcl:"require_hibernate_support,attr"`
	// SpotMaxPricePercentageOverLowestPrice: number, optional
	SpotMaxPricePercentageOverLowestPrice terra.NumberValue `hcl:"spot_max_price_percentage_over_lowest_price,attr"`
	// AcceleratorCount: optional
	AcceleratorCount *AcceleratorCount `hcl:"accelerator_count,block"`
	// AcceleratorTotalMemoryMib: optional
	AcceleratorTotalMemoryMib *AcceleratorTotalMemoryMib `hcl:"accelerator_total_memory_mib,block"`
	// BaselineEbsBandwidthMbps: optional
	BaselineEbsBandwidthMbps *BaselineEbsBandwidthMbps `hcl:"baseline_ebs_bandwidth_mbps,block"`
	// MemoryGibPerVcpu: optional
	MemoryGibPerVcpu *MemoryGibPerVcpu `hcl:"memory_gib_per_vcpu,block"`
	// MemoryMib: required
	MemoryMib *MemoryMib `hcl:"memory_mib,block" validate:"required"`
	// NetworkBandwidthGbps: optional
	NetworkBandwidthGbps *NetworkBandwidthGbps `hcl:"network_bandwidth_gbps,block"`
	// NetworkInterfaceCount: optional
	NetworkInterfaceCount *NetworkInterfaceCount `hcl:"network_interface_count,block"`
	// TotalLocalStorageGb: optional
	TotalLocalStorageGb *TotalLocalStorageGb `hcl:"total_local_storage_gb,block"`
	// VcpuCount: required
	VcpuCount *VcpuCount `hcl:"vcpu_count,block" validate:"required"`
}

type InstanceRequirementsAttributes

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

func (InstanceRequirementsAttributes) AcceleratorCount

func (InstanceRequirementsAttributes) AcceleratorManufacturers

func (ir InstanceRequirementsAttributes) AcceleratorManufacturers() terra.SetValue[terra.StringValue]

func (InstanceRequirementsAttributes) AcceleratorNames

func (InstanceRequirementsAttributes) AcceleratorTotalMemoryMib

func (InstanceRequirementsAttributes) AcceleratorTypes

func (InstanceRequirementsAttributes) AllowedInstanceTypes

func (ir InstanceRequirementsAttributes) AllowedInstanceTypes() terra.SetValue[terra.StringValue]

func (InstanceRequirementsAttributes) BareMetal

func (InstanceRequirementsAttributes) BaselineEbsBandwidthMbps

func (InstanceRequirementsAttributes) BurstablePerformance

func (ir InstanceRequirementsAttributes) BurstablePerformance() terra.StringValue

func (InstanceRequirementsAttributes) CpuManufacturers

func (InstanceRequirementsAttributes) ExcludedInstanceTypes

func (ir InstanceRequirementsAttributes) ExcludedInstanceTypes() terra.SetValue[terra.StringValue]

func (InstanceRequirementsAttributes) InstanceGenerations

func (InstanceRequirementsAttributes) InternalRef

func (InstanceRequirementsAttributes) InternalTokens

func (ir InstanceRequirementsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (InstanceRequirementsAttributes) InternalWithRef

func (InstanceRequirementsAttributes) LocalStorage

func (InstanceRequirementsAttributes) LocalStorageTypes

func (InstanceRequirementsAttributes) MemoryGibPerVcpu

func (InstanceRequirementsAttributes) MemoryMib

func (InstanceRequirementsAttributes) NetworkBandwidthGbps

func (InstanceRequirementsAttributes) NetworkInterfaceCount

func (InstanceRequirementsAttributes) OnDemandMaxPricePercentageOverLowestPrice

func (ir InstanceRequirementsAttributes) OnDemandMaxPricePercentageOverLowestPrice() terra.NumberValue

func (InstanceRequirementsAttributes) RequireHibernateSupport

func (ir InstanceRequirementsAttributes) RequireHibernateSupport() terra.BoolValue

func (InstanceRequirementsAttributes) SpotMaxPricePercentageOverLowestPrice

func (ir InstanceRequirementsAttributes) SpotMaxPricePercentageOverLowestPrice() terra.NumberValue

func (InstanceRequirementsAttributes) TotalLocalStorageGb

func (InstanceRequirementsAttributes) VcpuCount

type InstanceRequirementsState

type InstanceRequirementsState struct {
	AcceleratorManufacturers                  []string                         `json:"accelerator_manufacturers"`
	AcceleratorNames                          []string                         `json:"accelerator_names"`
	AcceleratorTypes                          []string                         `json:"accelerator_types"`
	AllowedInstanceTypes                      []string                         `json:"allowed_instance_types"`
	BareMetal                                 string                           `json:"bare_metal"`
	BurstablePerformance                      string                           `json:"burstable_performance"`
	CpuManufacturers                          []string                         `json:"cpu_manufacturers"`
	ExcludedInstanceTypes                     []string                         `json:"excluded_instance_types"`
	InstanceGenerations                       []string                         `json:"instance_generations"`
	LocalStorage                              string                           `json:"local_storage"`
	LocalStorageTypes                         []string                         `json:"local_storage_types"`
	OnDemandMaxPricePercentageOverLowestPrice float64                          `json:"on_demand_max_price_percentage_over_lowest_price"`
	RequireHibernateSupport                   bool                             `json:"require_hibernate_support"`
	SpotMaxPricePercentageOverLowestPrice     float64                          `json:"spot_max_price_percentage_over_lowest_price"`
	AcceleratorCount                          []AcceleratorCountState          `json:"accelerator_count"`
	AcceleratorTotalMemoryMib                 []AcceleratorTotalMemoryMibState `json:"accelerator_total_memory_mib"`
	BaselineEbsBandwidthMbps                  []BaselineEbsBandwidthMbpsState  `json:"baseline_ebs_bandwidth_mbps"`
	MemoryGibPerVcpu                          []MemoryGibPerVcpuState          `json:"memory_gib_per_vcpu"`
	MemoryMib                                 []MemoryMibState                 `json:"memory_mib"`
	NetworkBandwidthGbps                      []NetworkBandwidthGbpsState      `json:"network_bandwidth_gbps"`
	NetworkInterfaceCount                     []NetworkInterfaceCountState     `json:"network_interface_count"`
	TotalLocalStorageGb                       []TotalLocalStorageGbState       `json:"total_local_storage_gb"`
	VcpuCount                                 []VcpuCountState                 `json:"vcpu_count"`
}

type LaunchTemplateConfig

type LaunchTemplateConfig struct {
	// LaunchTemplateSpecification: optional
	LaunchTemplateSpecification *LaunchTemplateSpecification `hcl:"launch_template_specification,block"`
	// Override: min=0,max=300
	Override []Override `hcl:"override,block" validate:"min=0,max=300"`
}

type LaunchTemplateConfigAttributes

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

func (LaunchTemplateConfigAttributes) InternalRef

func (ltc LaunchTemplateConfigAttributes) InternalRef() (terra.Reference, error)

func (LaunchTemplateConfigAttributes) InternalTokens

func (ltc LaunchTemplateConfigAttributes) InternalTokens() (hclwrite.Tokens, error)

func (LaunchTemplateConfigAttributes) InternalWithRef

func (LaunchTemplateConfigAttributes) LaunchTemplateSpecification

func (LaunchTemplateConfigAttributes) Override

type LaunchTemplateConfigState

type LaunchTemplateConfigState struct {
	LaunchTemplateSpecification []LaunchTemplateSpecificationState `json:"launch_template_specification"`
	Override                    []OverrideState                    `json:"override"`
}

type LaunchTemplateSpecification

type LaunchTemplateSpecification struct {
	// LaunchTemplateId: string, optional
	LaunchTemplateId terra.StringValue `hcl:"launch_template_id,attr"`
	// LaunchTemplateName: string, optional
	LaunchTemplateName terra.StringValue `hcl:"launch_template_name,attr"`
	// Version: string, required
	Version terra.StringValue `hcl:"version,attr" validate:"required"`
}

type LaunchTemplateSpecificationAttributes

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

func (LaunchTemplateSpecificationAttributes) InternalRef

func (LaunchTemplateSpecificationAttributes) InternalTokens

func (LaunchTemplateSpecificationAttributes) InternalWithRef

func (LaunchTemplateSpecificationAttributes) LaunchTemplateId

func (LaunchTemplateSpecificationAttributes) LaunchTemplateName

func (lts LaunchTemplateSpecificationAttributes) LaunchTemplateName() terra.StringValue

func (LaunchTemplateSpecificationAttributes) Version

type LaunchTemplateSpecificationState

type LaunchTemplateSpecificationState struct {
	LaunchTemplateId   string `json:"launch_template_id"`
	LaunchTemplateName string `json:"launch_template_name"`
	Version            string `json:"version"`
}

type MaintenanceStrategies

type MaintenanceStrategies struct {
	// CapacityRebalance: optional
	CapacityRebalance *CapacityRebalance `hcl:"capacity_rebalance,block"`
}

type MaintenanceStrategiesAttributes

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

func (MaintenanceStrategiesAttributes) CapacityRebalance

func (MaintenanceStrategiesAttributes) InternalRef

func (MaintenanceStrategiesAttributes) InternalTokens

func (ms MaintenanceStrategiesAttributes) InternalTokens() (hclwrite.Tokens, error)

func (MaintenanceStrategiesAttributes) InternalWithRef

type MaintenanceStrategiesState

type MaintenanceStrategiesState struct {
	CapacityRebalance []CapacityRebalanceState `json:"capacity_rebalance"`
}

type MemoryGibPerVcpu

type MemoryGibPerVcpu struct {
	// Max: number, optional
	Max terra.NumberValue `hcl:"max,attr"`
	// Min: number, optional
	Min terra.NumberValue `hcl:"min,attr"`
}

type MemoryGibPerVcpuAttributes

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

func (MemoryGibPerVcpuAttributes) InternalRef

func (mgpv MemoryGibPerVcpuAttributes) InternalRef() (terra.Reference, error)

func (MemoryGibPerVcpuAttributes) InternalTokens

func (mgpv MemoryGibPerVcpuAttributes) InternalTokens() (hclwrite.Tokens, error)

func (MemoryGibPerVcpuAttributes) InternalWithRef

func (MemoryGibPerVcpuAttributes) Max

func (MemoryGibPerVcpuAttributes) Min

type MemoryGibPerVcpuState

type MemoryGibPerVcpuState struct {
	Max float64 `json:"max"`
	Min float64 `json:"min"`
}

type MemoryMib

type MemoryMib struct {
	// Max: number, optional
	Max terra.NumberValue `hcl:"max,attr"`
	// Min: number, required
	Min terra.NumberValue `hcl:"min,attr" validate:"required"`
}

type MemoryMibAttributes

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

func (MemoryMibAttributes) InternalRef

func (mm MemoryMibAttributes) InternalRef() (terra.Reference, error)

func (MemoryMibAttributes) InternalTokens

func (mm MemoryMibAttributes) InternalTokens() (hclwrite.Tokens, error)

func (MemoryMibAttributes) InternalWithRef

func (mm MemoryMibAttributes) InternalWithRef(ref terra.Reference) MemoryMibAttributes

func (MemoryMibAttributes) Max

func (MemoryMibAttributes) Min

type MemoryMibState

type MemoryMibState struct {
	Max float64 `json:"max"`
	Min float64 `json:"min"`
}

type NetworkBandwidthGbps

type NetworkBandwidthGbps struct {
	// Max: number, optional
	Max terra.NumberValue `hcl:"max,attr"`
	// Min: number, optional
	Min terra.NumberValue `hcl:"min,attr"`
}

type NetworkBandwidthGbpsAttributes

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

func (NetworkBandwidthGbpsAttributes) InternalRef

func (nbg NetworkBandwidthGbpsAttributes) InternalRef() (terra.Reference, error)

func (NetworkBandwidthGbpsAttributes) InternalTokens

func (nbg NetworkBandwidthGbpsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (NetworkBandwidthGbpsAttributes) InternalWithRef

func (NetworkBandwidthGbpsAttributes) Max

func (NetworkBandwidthGbpsAttributes) Min

type NetworkBandwidthGbpsState

type NetworkBandwidthGbpsState struct {
	Max float64 `json:"max"`
	Min float64 `json:"min"`
}

type NetworkInterfaceCount

type NetworkInterfaceCount struct {
	// Max: number, optional
	Max terra.NumberValue `hcl:"max,attr"`
	// Min: number, optional
	Min terra.NumberValue `hcl:"min,attr"`
}

type NetworkInterfaceCountAttributes

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

func (NetworkInterfaceCountAttributes) InternalRef

func (NetworkInterfaceCountAttributes) InternalTokens

func (nic NetworkInterfaceCountAttributes) InternalTokens() (hclwrite.Tokens, error)

func (NetworkInterfaceCountAttributes) InternalWithRef

func (NetworkInterfaceCountAttributes) Max

func (NetworkInterfaceCountAttributes) Min

type NetworkInterfaceCountState

type NetworkInterfaceCountState struct {
	Max float64 `json:"max"`
	Min float64 `json:"min"`
}

type OnDemandOptions

type OnDemandOptions struct {
	// AllocationStrategy: string, optional
	AllocationStrategy terra.StringValue `hcl:"allocation_strategy,attr"`
	// MaxTotalPrice: string, optional
	MaxTotalPrice terra.StringValue `hcl:"max_total_price,attr"`
	// MinTargetCapacity: number, optional
	MinTargetCapacity terra.NumberValue `hcl:"min_target_capacity,attr"`
	// SingleAvailabilityZone: bool, optional
	SingleAvailabilityZone terra.BoolValue `hcl:"single_availability_zone,attr"`
	// SingleInstanceType: bool, optional
	SingleInstanceType terra.BoolValue `hcl:"single_instance_type,attr"`
}

type OnDemandOptionsAttributes

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

func (OnDemandOptionsAttributes) AllocationStrategy

func (odo OnDemandOptionsAttributes) AllocationStrategy() terra.StringValue

func (OnDemandOptionsAttributes) InternalRef

func (odo OnDemandOptionsAttributes) InternalRef() (terra.Reference, error)

func (OnDemandOptionsAttributes) InternalTokens

func (odo OnDemandOptionsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (OnDemandOptionsAttributes) InternalWithRef

func (OnDemandOptionsAttributes) MaxTotalPrice

func (odo OnDemandOptionsAttributes) MaxTotalPrice() terra.StringValue

func (OnDemandOptionsAttributes) MinTargetCapacity

func (odo OnDemandOptionsAttributes) MinTargetCapacity() terra.NumberValue

func (OnDemandOptionsAttributes) SingleAvailabilityZone

func (odo OnDemandOptionsAttributes) SingleAvailabilityZone() terra.BoolValue

func (OnDemandOptionsAttributes) SingleInstanceType

func (odo OnDemandOptionsAttributes) SingleInstanceType() terra.BoolValue

type OnDemandOptionsState

type OnDemandOptionsState struct {
	AllocationStrategy     string  `json:"allocation_strategy"`
	MaxTotalPrice          string  `json:"max_total_price"`
	MinTargetCapacity      float64 `json:"min_target_capacity"`
	SingleAvailabilityZone bool    `json:"single_availability_zone"`
	SingleInstanceType     bool    `json:"single_instance_type"`
}

type Override

type Override struct {
	// AvailabilityZone: string, optional
	AvailabilityZone terra.StringValue `hcl:"availability_zone,attr"`
	// InstanceType: string, optional
	InstanceType terra.StringValue `hcl:"instance_type,attr"`
	// MaxPrice: string, optional
	MaxPrice terra.StringValue `hcl:"max_price,attr"`
	// Priority: number, optional
	Priority terra.NumberValue `hcl:"priority,attr"`
	// SubnetId: string, optional
	SubnetId terra.StringValue `hcl:"subnet_id,attr"`
	// WeightedCapacity: number, optional
	WeightedCapacity terra.NumberValue `hcl:"weighted_capacity,attr"`
	// InstanceRequirements: optional
	InstanceRequirements *InstanceRequirements `hcl:"instance_requirements,block"`
}

type OverrideAttributes

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

func (OverrideAttributes) AvailabilityZone

func (o OverrideAttributes) AvailabilityZone() terra.StringValue

func (OverrideAttributes) InstanceRequirements

func (OverrideAttributes) InstanceType

func (o OverrideAttributes) InstanceType() terra.StringValue

func (OverrideAttributes) InternalRef

func (o OverrideAttributes) InternalRef() (terra.Reference, error)

func (OverrideAttributes) InternalTokens

func (o OverrideAttributes) InternalTokens() (hclwrite.Tokens, error)

func (OverrideAttributes) InternalWithRef

func (o OverrideAttributes) InternalWithRef(ref terra.Reference) OverrideAttributes

func (OverrideAttributes) MaxPrice

func (o OverrideAttributes) MaxPrice() terra.StringValue

func (OverrideAttributes) Priority

func (o OverrideAttributes) Priority() terra.NumberValue

func (OverrideAttributes) SubnetId

func (o OverrideAttributes) SubnetId() terra.StringValue

func (OverrideAttributes) WeightedCapacity

func (o OverrideAttributes) WeightedCapacity() terra.NumberValue

type OverrideState

type OverrideState struct {
	AvailabilityZone     string                      `json:"availability_zone"`
	InstanceType         string                      `json:"instance_type"`
	MaxPrice             string                      `json:"max_price"`
	Priority             float64                     `json:"priority"`
	SubnetId             string                      `json:"subnet_id"`
	WeightedCapacity     float64                     `json:"weighted_capacity"`
	InstanceRequirements []InstanceRequirementsState `json:"instance_requirements"`
}

type SpotOptions

type SpotOptions struct {
	// AllocationStrategy: string, optional
	AllocationStrategy terra.StringValue `hcl:"allocation_strategy,attr"`
	// InstanceInterruptionBehavior: string, optional
	InstanceInterruptionBehavior terra.StringValue `hcl:"instance_interruption_behavior,attr"`
	// InstancePoolsToUseCount: number, optional
	InstancePoolsToUseCount terra.NumberValue `hcl:"instance_pools_to_use_count,attr"`
	// MaintenanceStrategies: optional
	MaintenanceStrategies *MaintenanceStrategies `hcl:"maintenance_strategies,block"`
}

type SpotOptionsAttributes

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

func (SpotOptionsAttributes) AllocationStrategy

func (so SpotOptionsAttributes) AllocationStrategy() terra.StringValue

func (SpotOptionsAttributes) InstanceInterruptionBehavior

func (so SpotOptionsAttributes) InstanceInterruptionBehavior() terra.StringValue

func (SpotOptionsAttributes) InstancePoolsToUseCount

func (so SpotOptionsAttributes) InstancePoolsToUseCount() terra.NumberValue

func (SpotOptionsAttributes) InternalRef

func (so SpotOptionsAttributes) InternalRef() (terra.Reference, error)

func (SpotOptionsAttributes) InternalTokens

func (so SpotOptionsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (SpotOptionsAttributes) InternalWithRef

func (SpotOptionsAttributes) MaintenanceStrategies

type SpotOptionsState

type SpotOptionsState struct {
	AllocationStrategy           string                       `json:"allocation_strategy"`
	InstanceInterruptionBehavior string                       `json:"instance_interruption_behavior"`
	InstancePoolsToUseCount      float64                      `json:"instance_pools_to_use_count"`
	MaintenanceStrategies        []MaintenanceStrategiesState `json:"maintenance_strategies"`
}

type TargetCapacitySpecification

type TargetCapacitySpecification struct {
	// DefaultTargetCapacityType: string, required
	DefaultTargetCapacityType terra.StringValue `hcl:"default_target_capacity_type,attr" validate:"required"`
	// OnDemandTargetCapacity: number, optional
	OnDemandTargetCapacity terra.NumberValue `hcl:"on_demand_target_capacity,attr"`
	// SpotTargetCapacity: number, optional
	SpotTargetCapacity terra.NumberValue `hcl:"spot_target_capacity,attr"`
	// TargetCapacityUnitType: string, optional
	TargetCapacityUnitType terra.StringValue `hcl:"target_capacity_unit_type,attr"`
	// TotalTargetCapacity: number, required
	TotalTargetCapacity terra.NumberValue `hcl:"total_target_capacity,attr" validate:"required"`
}

type TargetCapacitySpecificationAttributes

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

func (TargetCapacitySpecificationAttributes) DefaultTargetCapacityType

func (tcs TargetCapacitySpecificationAttributes) DefaultTargetCapacityType() terra.StringValue

func (TargetCapacitySpecificationAttributes) InternalRef

func (TargetCapacitySpecificationAttributes) InternalTokens

func (TargetCapacitySpecificationAttributes) InternalWithRef

func (TargetCapacitySpecificationAttributes) OnDemandTargetCapacity

func (tcs TargetCapacitySpecificationAttributes) OnDemandTargetCapacity() terra.NumberValue

func (TargetCapacitySpecificationAttributes) SpotTargetCapacity

func (tcs TargetCapacitySpecificationAttributes) SpotTargetCapacity() terra.NumberValue

func (TargetCapacitySpecificationAttributes) TargetCapacityUnitType

func (tcs TargetCapacitySpecificationAttributes) TargetCapacityUnitType() terra.StringValue

func (TargetCapacitySpecificationAttributes) TotalTargetCapacity

func (tcs TargetCapacitySpecificationAttributes) TotalTargetCapacity() terra.NumberValue

type TargetCapacitySpecificationState

type TargetCapacitySpecificationState struct {
	DefaultTargetCapacityType string  `json:"default_target_capacity_type"`
	OnDemandTargetCapacity    float64 `json:"on_demand_target_capacity"`
	SpotTargetCapacity        float64 `json:"spot_target_capacity"`
	TargetCapacityUnitType    string  `json:"target_capacity_unit_type"`
	TotalTargetCapacity       float64 `json:"total_target_capacity"`
}

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"`
}

type TotalLocalStorageGb

type TotalLocalStorageGb struct {
	// Max: number, optional
	Max terra.NumberValue `hcl:"max,attr"`
	// Min: number, optional
	Min terra.NumberValue `hcl:"min,attr"`
}

type TotalLocalStorageGbAttributes

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

func (TotalLocalStorageGbAttributes) InternalRef

func (tlsg TotalLocalStorageGbAttributes) InternalRef() (terra.Reference, error)

func (TotalLocalStorageGbAttributes) InternalTokens

func (tlsg TotalLocalStorageGbAttributes) InternalTokens() (hclwrite.Tokens, error)

func (TotalLocalStorageGbAttributes) InternalWithRef

func (TotalLocalStorageGbAttributes) Max

func (TotalLocalStorageGbAttributes) Min

type TotalLocalStorageGbState

type TotalLocalStorageGbState struct {
	Max float64 `json:"max"`
	Min float64 `json:"min"`
}

type VcpuCount

type VcpuCount struct {
	// Max: number, optional
	Max terra.NumberValue `hcl:"max,attr"`
	// Min: number, required
	Min terra.NumberValue `hcl:"min,attr" validate:"required"`
}

type VcpuCountAttributes

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

func (VcpuCountAttributes) InternalRef

func (vc VcpuCountAttributes) InternalRef() (terra.Reference, error)

func (VcpuCountAttributes) InternalTokens

func (vc VcpuCountAttributes) InternalTokens() (hclwrite.Tokens, error)

func (VcpuCountAttributes) InternalWithRef

func (vc VcpuCountAttributes) InternalWithRef(ref terra.Reference) VcpuCountAttributes

func (VcpuCountAttributes) Max

func (VcpuCountAttributes) Min

type VcpuCountState

type VcpuCountState struct {
	Max float64 `json:"max"`
	Min float64 `json:"min"`
}

Jump to

Keyboard shortcuts

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