aws_spot_fleet_request

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 {
	// AllocationStrategy: string, optional
	AllocationStrategy terra.StringValue `hcl:"allocation_strategy,attr"`
	// Context: string, optional
	Context terra.StringValue `hcl:"context,attr"`
	// ExcessCapacityTerminationPolicy: string, optional
	ExcessCapacityTerminationPolicy terra.StringValue `hcl:"excess_capacity_termination_policy,attr"`
	// FleetType: string, optional
	FleetType terra.StringValue `hcl:"fleet_type,attr"`
	// IamFleetRole: string, required
	IamFleetRole terra.StringValue `hcl:"iam_fleet_role,attr" validate:"required"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// InstanceInterruptionBehaviour: string, optional
	InstanceInterruptionBehaviour terra.StringValue `hcl:"instance_interruption_behaviour,attr"`
	// InstancePoolsToUseCount: number, optional
	InstancePoolsToUseCount terra.NumberValue `hcl:"instance_pools_to_use_count,attr"`
	// LoadBalancers: set of string, optional
	LoadBalancers terra.SetValue[terra.StringValue] `hcl:"load_balancers,attr"`
	// OnDemandAllocationStrategy: string, optional
	OnDemandAllocationStrategy terra.StringValue `hcl:"on_demand_allocation_strategy,attr"`
	// OnDemandMaxTotalPrice: string, optional
	OnDemandMaxTotalPrice terra.StringValue `hcl:"on_demand_max_total_price,attr"`
	// OnDemandTargetCapacity: number, optional
	OnDemandTargetCapacity terra.NumberValue `hcl:"on_demand_target_capacity,attr"`
	// ReplaceUnhealthyInstances: bool, optional
	ReplaceUnhealthyInstances terra.BoolValue `hcl:"replace_unhealthy_instances,attr"`
	// SpotPrice: string, optional
	SpotPrice terra.StringValue `hcl:"spot_price,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"`
	// TargetCapacity: number, required
	TargetCapacity terra.NumberValue `hcl:"target_capacity,attr" validate:"required"`
	// TargetCapacityUnitType: string, optional
	TargetCapacityUnitType terra.StringValue `hcl:"target_capacity_unit_type,attr"`
	// TargetGroupArns: set of string, optional
	TargetGroupArns terra.SetValue[terra.StringValue] `hcl:"target_group_arns,attr"`
	// TerminateInstancesOnDelete: string, optional
	TerminateInstancesOnDelete terra.StringValue `hcl:"terminate_instances_on_delete,attr"`
	// TerminateInstancesWithExpiration: bool, optional
	TerminateInstancesWithExpiration terra.BoolValue `hcl:"terminate_instances_with_expiration,attr"`
	// ValidFrom: string, optional
	ValidFrom terra.StringValue `hcl:"valid_from,attr"`
	// ValidUntil: string, optional
	ValidUntil terra.StringValue `hcl:"valid_until,attr"`
	// WaitForFulfillment: bool, optional
	WaitForFulfillment terra.BoolValue `hcl:"wait_for_fulfillment,attr"`
	// LaunchSpecification: min=0
	LaunchSpecification []LaunchSpecification `hcl:"launch_specification,block" validate:"min=0"`
	// LaunchTemplateConfig: min=0
	LaunchTemplateConfig []LaunchTemplateConfig `hcl:"launch_template_config,block" validate:"min=0"`
	// SpotMaintenanceStrategies: optional
	SpotMaintenanceStrategies *SpotMaintenanceStrategies `hcl:"spot_maintenance_strategies,block"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
}

Args contains the configurations for aws_spot_fleet_request.

type LaunchSpecification

type LaunchSpecification struct {
	// Ami: string, required
	Ami terra.StringValue `hcl:"ami,attr" validate:"required"`
	// AssociatePublicIpAddress: bool, optional
	AssociatePublicIpAddress terra.BoolValue `hcl:"associate_public_ip_address,attr"`
	// AvailabilityZone: string, optional
	AvailabilityZone terra.StringValue `hcl:"availability_zone,attr"`
	// EbsOptimized: bool, optional
	EbsOptimized terra.BoolValue `hcl:"ebs_optimized,attr"`
	// IamInstanceProfile: string, optional
	IamInstanceProfile terra.StringValue `hcl:"iam_instance_profile,attr"`
	// IamInstanceProfileArn: string, optional
	IamInstanceProfileArn terra.StringValue `hcl:"iam_instance_profile_arn,attr"`
	// InstanceType: string, required
	InstanceType terra.StringValue `hcl:"instance_type,attr" validate:"required"`
	// KeyName: string, optional
	KeyName terra.StringValue `hcl:"key_name,attr"`
	// Monitoring: bool, optional
	Monitoring terra.BoolValue `hcl:"monitoring,attr"`
	// PlacementGroup: string, optional
	PlacementGroup terra.StringValue `hcl:"placement_group,attr"`
	// PlacementTenancy: string, optional
	PlacementTenancy terra.StringValue `hcl:"placement_tenancy,attr"`
	// SpotPrice: string, optional
	SpotPrice terra.StringValue `hcl:"spot_price,attr"`
	// SubnetId: string, optional
	SubnetId terra.StringValue `hcl:"subnet_id,attr"`
	// Tags: map of string, optional
	Tags terra.MapValue[terra.StringValue] `hcl:"tags,attr"`
	// UserData: string, optional
	UserData terra.StringValue `hcl:"user_data,attr"`
	// VpcSecurityGroupIds: set of string, optional
	VpcSecurityGroupIds terra.SetValue[terra.StringValue] `hcl:"vpc_security_group_ids,attr"`
	// WeightedCapacity: string, optional
	WeightedCapacity terra.StringValue `hcl:"weighted_capacity,attr"`
	// LaunchSpecificationEbsBlockDevice: min=0
	EbsBlockDevice []LaunchSpecificationEbsBlockDevice `hcl:"ebs_block_device,block" validate:"min=0"`
	// LaunchSpecificationEphemeralBlockDevice: min=0
	EphemeralBlockDevice []LaunchSpecificationEphemeralBlockDevice `hcl:"ephemeral_block_device,block" validate:"min=0"`
	// LaunchSpecificationRootBlockDevice: min=0
	RootBlockDevice []LaunchSpecificationRootBlockDevice `hcl:"root_block_device,block" validate:"min=0"`
}

type LaunchSpecificationAttributes

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

func (LaunchSpecificationAttributes) Ami

func (LaunchSpecificationAttributes) AssociatePublicIpAddress

func (ls LaunchSpecificationAttributes) AssociatePublicIpAddress() terra.BoolValue

func (LaunchSpecificationAttributes) AvailabilityZone

func (ls LaunchSpecificationAttributes) AvailabilityZone() terra.StringValue

func (LaunchSpecificationAttributes) EbsBlockDevice

func (LaunchSpecificationAttributes) EbsOptimized

func (ls LaunchSpecificationAttributes) EbsOptimized() terra.BoolValue

func (LaunchSpecificationAttributes) EphemeralBlockDevice

func (LaunchSpecificationAttributes) IamInstanceProfile

func (ls LaunchSpecificationAttributes) IamInstanceProfile() terra.StringValue

func (LaunchSpecificationAttributes) IamInstanceProfileArn

func (ls LaunchSpecificationAttributes) IamInstanceProfileArn() terra.StringValue

func (LaunchSpecificationAttributes) InstanceType

func (LaunchSpecificationAttributes) InternalRef

func (ls LaunchSpecificationAttributes) InternalRef() (terra.Reference, error)

func (LaunchSpecificationAttributes) InternalTokens

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

func (LaunchSpecificationAttributes) InternalWithRef

func (LaunchSpecificationAttributes) KeyName

func (LaunchSpecificationAttributes) Monitoring

func (LaunchSpecificationAttributes) PlacementGroup

func (ls LaunchSpecificationAttributes) PlacementGroup() terra.StringValue

func (LaunchSpecificationAttributes) PlacementTenancy

func (ls LaunchSpecificationAttributes) PlacementTenancy() terra.StringValue

func (LaunchSpecificationAttributes) RootBlockDevice

func (LaunchSpecificationAttributes) SpotPrice

func (LaunchSpecificationAttributes) SubnetId

func (LaunchSpecificationAttributes) Tags

func (LaunchSpecificationAttributes) UserData

func (LaunchSpecificationAttributes) VpcSecurityGroupIds

func (ls LaunchSpecificationAttributes) VpcSecurityGroupIds() terra.SetValue[terra.StringValue]

func (LaunchSpecificationAttributes) WeightedCapacity

func (ls LaunchSpecificationAttributes) WeightedCapacity() terra.StringValue

type LaunchSpecificationEbsBlockDevice

type LaunchSpecificationEbsBlockDevice struct {
	// DeleteOnTermination: bool, optional
	DeleteOnTermination terra.BoolValue `hcl:"delete_on_termination,attr"`
	// DeviceName: string, required
	DeviceName terra.StringValue `hcl:"device_name,attr" validate:"required"`
	// Encrypted: bool, optional
	Encrypted terra.BoolValue `hcl:"encrypted,attr"`
	// Iops: number, optional
	Iops terra.NumberValue `hcl:"iops,attr"`
	// KmsKeyId: string, optional
	KmsKeyId terra.StringValue `hcl:"kms_key_id,attr"`
	// SnapshotId: string, optional
	SnapshotId terra.StringValue `hcl:"snapshot_id,attr"`
	// Throughput: number, optional
	Throughput terra.NumberValue `hcl:"throughput,attr"`
	// VolumeSize: number, optional
	VolumeSize terra.NumberValue `hcl:"volume_size,attr"`
	// VolumeType: string, optional
	VolumeType terra.StringValue `hcl:"volume_type,attr"`
}

type LaunchSpecificationEbsBlockDeviceAttributes

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

func (LaunchSpecificationEbsBlockDeviceAttributes) DeleteOnTermination

func (LaunchSpecificationEbsBlockDeviceAttributes) DeviceName

func (LaunchSpecificationEbsBlockDeviceAttributes) Encrypted

func (LaunchSpecificationEbsBlockDeviceAttributes) InternalRef

func (LaunchSpecificationEbsBlockDeviceAttributes) InternalTokens

func (LaunchSpecificationEbsBlockDeviceAttributes) InternalWithRef

func (LaunchSpecificationEbsBlockDeviceAttributes) Iops

func (LaunchSpecificationEbsBlockDeviceAttributes) KmsKeyId

func (LaunchSpecificationEbsBlockDeviceAttributes) SnapshotId

func (LaunchSpecificationEbsBlockDeviceAttributes) Throughput

func (LaunchSpecificationEbsBlockDeviceAttributes) VolumeSize

func (LaunchSpecificationEbsBlockDeviceAttributes) VolumeType

type LaunchSpecificationEbsBlockDeviceState

type LaunchSpecificationEbsBlockDeviceState struct {
	DeleteOnTermination bool    `json:"delete_on_termination"`
	DeviceName          string  `json:"device_name"`
	Encrypted           bool    `json:"encrypted"`
	Iops                float64 `json:"iops"`
	KmsKeyId            string  `json:"kms_key_id"`
	SnapshotId          string  `json:"snapshot_id"`
	Throughput          float64 `json:"throughput"`
	VolumeSize          float64 `json:"volume_size"`
	VolumeType          string  `json:"volume_type"`
}

type LaunchSpecificationEphemeralBlockDevice

type LaunchSpecificationEphemeralBlockDevice struct {
	// DeviceName: string, required
	DeviceName terra.StringValue `hcl:"device_name,attr" validate:"required"`
	// VirtualName: string, required
	VirtualName terra.StringValue `hcl:"virtual_name,attr" validate:"required"`
}

type LaunchSpecificationEphemeralBlockDeviceAttributes

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

func (LaunchSpecificationEphemeralBlockDeviceAttributes) DeviceName

func (LaunchSpecificationEphemeralBlockDeviceAttributes) InternalRef

func (LaunchSpecificationEphemeralBlockDeviceAttributes) InternalTokens

func (LaunchSpecificationEphemeralBlockDeviceAttributes) InternalWithRef

func (LaunchSpecificationEphemeralBlockDeviceAttributes) VirtualName

type LaunchSpecificationEphemeralBlockDeviceState

type LaunchSpecificationEphemeralBlockDeviceState struct {
	DeviceName  string `json:"device_name"`
	VirtualName string `json:"virtual_name"`
}

type LaunchSpecificationRootBlockDevice

type LaunchSpecificationRootBlockDevice struct {
	// DeleteOnTermination: bool, optional
	DeleteOnTermination terra.BoolValue `hcl:"delete_on_termination,attr"`
	// Encrypted: bool, optional
	Encrypted terra.BoolValue `hcl:"encrypted,attr"`
	// Iops: number, optional
	Iops terra.NumberValue `hcl:"iops,attr"`
	// KmsKeyId: string, optional
	KmsKeyId terra.StringValue `hcl:"kms_key_id,attr"`
	// Throughput: number, optional
	Throughput terra.NumberValue `hcl:"throughput,attr"`
	// VolumeSize: number, optional
	VolumeSize terra.NumberValue `hcl:"volume_size,attr"`
	// VolumeType: string, optional
	VolumeType terra.StringValue `hcl:"volume_type,attr"`
}

type LaunchSpecificationRootBlockDeviceAttributes

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

func (LaunchSpecificationRootBlockDeviceAttributes) DeleteOnTermination

func (LaunchSpecificationRootBlockDeviceAttributes) Encrypted

func (LaunchSpecificationRootBlockDeviceAttributes) InternalRef

func (LaunchSpecificationRootBlockDeviceAttributes) InternalTokens

func (LaunchSpecificationRootBlockDeviceAttributes) InternalWithRef

func (LaunchSpecificationRootBlockDeviceAttributes) Iops

func (LaunchSpecificationRootBlockDeviceAttributes) KmsKeyId

func (LaunchSpecificationRootBlockDeviceAttributes) Throughput

func (LaunchSpecificationRootBlockDeviceAttributes) VolumeSize

func (LaunchSpecificationRootBlockDeviceAttributes) VolumeType

type LaunchSpecificationRootBlockDeviceState

type LaunchSpecificationRootBlockDeviceState struct {
	DeleteOnTermination bool    `json:"delete_on_termination"`
	Encrypted           bool    `json:"encrypted"`
	Iops                float64 `json:"iops"`
	KmsKeyId            string  `json:"kms_key_id"`
	Throughput          float64 `json:"throughput"`
	VolumeSize          float64 `json:"volume_size"`
	VolumeType          string  `json:"volume_type"`
}

type LaunchSpecificationState

type LaunchSpecificationState struct {
	Ami                      string                                         `json:"ami"`
	AssociatePublicIpAddress bool                                           `json:"associate_public_ip_address"`
	AvailabilityZone         string                                         `json:"availability_zone"`
	EbsOptimized             bool                                           `json:"ebs_optimized"`
	IamInstanceProfile       string                                         `json:"iam_instance_profile"`
	IamInstanceProfileArn    string                                         `json:"iam_instance_profile_arn"`
	InstanceType             string                                         `json:"instance_type"`
	KeyName                  string                                         `json:"key_name"`
	Monitoring               bool                                           `json:"monitoring"`
	PlacementGroup           string                                         `json:"placement_group"`
	PlacementTenancy         string                                         `json:"placement_tenancy"`
	SpotPrice                string                                         `json:"spot_price"`
	SubnetId                 string                                         `json:"subnet_id"`
	Tags                     map[string]string                              `json:"tags"`
	UserData                 string                                         `json:"user_data"`
	VpcSecurityGroupIds      []string                                       `json:"vpc_security_group_ids"`
	WeightedCapacity         string                                         `json:"weighted_capacity"`
	EbsBlockDevice           []LaunchSpecificationEbsBlockDeviceState       `json:"ebs_block_device"`
	EphemeralBlockDevice     []LaunchSpecificationEphemeralBlockDeviceState `json:"ephemeral_block_device"`
	RootBlockDevice          []LaunchSpecificationRootBlockDeviceState      `json:"root_block_device"`
}

type LaunchTemplateConfig

type LaunchTemplateConfig struct {
	// LaunchTemplateConfigLaunchTemplateSpecification: required
	LaunchTemplateSpecification *LaunchTemplateConfigLaunchTemplateSpecification `hcl:"launch_template_specification,block" validate:"required"`
	// LaunchTemplateConfigOverrides: min=0
	Overrides []LaunchTemplateConfigOverrides `hcl:"overrides,block" validate:"min=0"`
}

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) Overrides

type LaunchTemplateConfigLaunchTemplateSpecification

type LaunchTemplateConfigLaunchTemplateSpecification struct {
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Name: string, optional
	Name terra.StringValue `hcl:"name,attr"`
	// Version: string, optional
	Version terra.StringValue `hcl:"version,attr"`
}

type LaunchTemplateConfigLaunchTemplateSpecificationAttributes

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

func (LaunchTemplateConfigLaunchTemplateSpecificationAttributes) Id

func (LaunchTemplateConfigLaunchTemplateSpecificationAttributes) InternalRef

func (LaunchTemplateConfigLaunchTemplateSpecificationAttributes) InternalTokens

func (LaunchTemplateConfigLaunchTemplateSpecificationAttributes) InternalWithRef

func (LaunchTemplateConfigLaunchTemplateSpecificationAttributes) Name

func (LaunchTemplateConfigLaunchTemplateSpecificationAttributes) Version

type LaunchTemplateConfigLaunchTemplateSpecificationState

type LaunchTemplateConfigLaunchTemplateSpecificationState struct {
	Id      string `json:"id"`
	Name    string `json:"name"`
	Version string `json:"version"`
}

type LaunchTemplateConfigOverrides

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

type LaunchTemplateConfigOverridesAttributes

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

func (LaunchTemplateConfigOverridesAttributes) AvailabilityZone

func (LaunchTemplateConfigOverridesAttributes) InstanceType

func (LaunchTemplateConfigOverridesAttributes) InternalRef

func (LaunchTemplateConfigOverridesAttributes) InternalTokens

func (LaunchTemplateConfigOverridesAttributes) InternalWithRef

func (LaunchTemplateConfigOverridesAttributes) Priority

func (LaunchTemplateConfigOverridesAttributes) SpotPrice

func (LaunchTemplateConfigOverridesAttributes) SubnetId

func (LaunchTemplateConfigOverridesAttributes) WeightedCapacity

type LaunchTemplateConfigOverridesInstanceRequirements

type LaunchTemplateConfigOverridesInstanceRequirements 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"`
	// LaunchTemplateConfigOverridesInstanceRequirementsAcceleratorCount: optional
	AcceleratorCount *LaunchTemplateConfigOverridesInstanceRequirementsAcceleratorCount `hcl:"accelerator_count,block"`
	// LaunchTemplateConfigOverridesInstanceRequirementsAcceleratorTotalMemoryMib: optional
	AcceleratorTotalMemoryMib *LaunchTemplateConfigOverridesInstanceRequirementsAcceleratorTotalMemoryMib `hcl:"accelerator_total_memory_mib,block"`
	// LaunchTemplateConfigOverridesInstanceRequirementsBaselineEbsBandwidthMbps: optional
	BaselineEbsBandwidthMbps *LaunchTemplateConfigOverridesInstanceRequirementsBaselineEbsBandwidthMbps `hcl:"baseline_ebs_bandwidth_mbps,block"`
	// LaunchTemplateConfigOverridesInstanceRequirementsMemoryGibPerVcpu: optional
	MemoryGibPerVcpu *LaunchTemplateConfigOverridesInstanceRequirementsMemoryGibPerVcpu `hcl:"memory_gib_per_vcpu,block"`
	// LaunchTemplateConfigOverridesInstanceRequirementsMemoryMib: optional
	MemoryMib *LaunchTemplateConfigOverridesInstanceRequirementsMemoryMib `hcl:"memory_mib,block"`
	// LaunchTemplateConfigOverridesInstanceRequirementsNetworkBandwidthGbps: optional
	NetworkBandwidthGbps *LaunchTemplateConfigOverridesInstanceRequirementsNetworkBandwidthGbps `hcl:"network_bandwidth_gbps,block"`
	// LaunchTemplateConfigOverridesInstanceRequirementsNetworkInterfaceCount: optional
	NetworkInterfaceCount *LaunchTemplateConfigOverridesInstanceRequirementsNetworkInterfaceCount `hcl:"network_interface_count,block"`
	// LaunchTemplateConfigOverridesInstanceRequirementsTotalLocalStorageGb: optional
	TotalLocalStorageGb *LaunchTemplateConfigOverridesInstanceRequirementsTotalLocalStorageGb `hcl:"total_local_storage_gb,block"`
	// LaunchTemplateConfigOverridesInstanceRequirementsVcpuCount: optional
	VcpuCount *LaunchTemplateConfigOverridesInstanceRequirementsVcpuCount `hcl:"vcpu_count,block"`
}

type LaunchTemplateConfigOverridesInstanceRequirementsAcceleratorCount

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

type LaunchTemplateConfigOverridesInstanceRequirementsAcceleratorCountAttributes

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

func (LaunchTemplateConfigOverridesInstanceRequirementsAcceleratorCountAttributes) InternalRef

func (LaunchTemplateConfigOverridesInstanceRequirementsAcceleratorCountAttributes) InternalTokens

func (LaunchTemplateConfigOverridesInstanceRequirementsAcceleratorCountAttributes) InternalWithRef

func (LaunchTemplateConfigOverridesInstanceRequirementsAcceleratorCountAttributes) Max

func (LaunchTemplateConfigOverridesInstanceRequirementsAcceleratorCountAttributes) Min

type LaunchTemplateConfigOverridesInstanceRequirementsAcceleratorCountState

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

type LaunchTemplateConfigOverridesInstanceRequirementsAcceleratorTotalMemoryMib

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

type LaunchTemplateConfigOverridesInstanceRequirementsAcceleratorTotalMemoryMibAttributes

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

func (LaunchTemplateConfigOverridesInstanceRequirementsAcceleratorTotalMemoryMibAttributes) InternalRef

func (LaunchTemplateConfigOverridesInstanceRequirementsAcceleratorTotalMemoryMibAttributes) InternalTokens

func (LaunchTemplateConfigOverridesInstanceRequirementsAcceleratorTotalMemoryMibAttributes) Max

func (LaunchTemplateConfigOverridesInstanceRequirementsAcceleratorTotalMemoryMibAttributes) Min

type LaunchTemplateConfigOverridesInstanceRequirementsAcceleratorTotalMemoryMibState

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

type LaunchTemplateConfigOverridesInstanceRequirementsAttributes

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

func (LaunchTemplateConfigOverridesInstanceRequirementsAttributes) AcceleratorManufacturers

func (LaunchTemplateConfigOverridesInstanceRequirementsAttributes) AcceleratorNames

func (LaunchTemplateConfigOverridesInstanceRequirementsAttributes) AcceleratorTypes

func (LaunchTemplateConfigOverridesInstanceRequirementsAttributes) AllowedInstanceTypes

func (LaunchTemplateConfigOverridesInstanceRequirementsAttributes) BareMetal

func (LaunchTemplateConfigOverridesInstanceRequirementsAttributes) BurstablePerformance

func (LaunchTemplateConfigOverridesInstanceRequirementsAttributes) CpuManufacturers

func (LaunchTemplateConfigOverridesInstanceRequirementsAttributes) ExcludedInstanceTypes

func (LaunchTemplateConfigOverridesInstanceRequirementsAttributes) InstanceGenerations

func (LaunchTemplateConfigOverridesInstanceRequirementsAttributes) InternalRef

func (LaunchTemplateConfigOverridesInstanceRequirementsAttributes) InternalTokens

func (LaunchTemplateConfigOverridesInstanceRequirementsAttributes) InternalWithRef

func (LaunchTemplateConfigOverridesInstanceRequirementsAttributes) LocalStorage

func (LaunchTemplateConfigOverridesInstanceRequirementsAttributes) LocalStorageTypes

func (LaunchTemplateConfigOverridesInstanceRequirementsAttributes) OnDemandMaxPricePercentageOverLowestPrice

func (ir LaunchTemplateConfigOverridesInstanceRequirementsAttributes) OnDemandMaxPricePercentageOverLowestPrice() terra.NumberValue

func (LaunchTemplateConfigOverridesInstanceRequirementsAttributes) RequireHibernateSupport

func (LaunchTemplateConfigOverridesInstanceRequirementsAttributes) SpotMaxPricePercentageOverLowestPrice

func (ir LaunchTemplateConfigOverridesInstanceRequirementsAttributes) SpotMaxPricePercentageOverLowestPrice() terra.NumberValue

type LaunchTemplateConfigOverridesInstanceRequirementsBaselineEbsBandwidthMbps

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

type LaunchTemplateConfigOverridesInstanceRequirementsBaselineEbsBandwidthMbpsAttributes

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

func (LaunchTemplateConfigOverridesInstanceRequirementsBaselineEbsBandwidthMbpsAttributes) InternalRef

func (LaunchTemplateConfigOverridesInstanceRequirementsBaselineEbsBandwidthMbpsAttributes) InternalTokens

func (LaunchTemplateConfigOverridesInstanceRequirementsBaselineEbsBandwidthMbpsAttributes) Max

func (LaunchTemplateConfigOverridesInstanceRequirementsBaselineEbsBandwidthMbpsAttributes) Min

type LaunchTemplateConfigOverridesInstanceRequirementsBaselineEbsBandwidthMbpsState

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

type LaunchTemplateConfigOverridesInstanceRequirementsMemoryGibPerVcpu

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

type LaunchTemplateConfigOverridesInstanceRequirementsMemoryGibPerVcpuAttributes

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

func (LaunchTemplateConfigOverridesInstanceRequirementsMemoryGibPerVcpuAttributes) InternalRef

func (LaunchTemplateConfigOverridesInstanceRequirementsMemoryGibPerVcpuAttributes) InternalTokens

func (LaunchTemplateConfigOverridesInstanceRequirementsMemoryGibPerVcpuAttributes) InternalWithRef

func (LaunchTemplateConfigOverridesInstanceRequirementsMemoryGibPerVcpuAttributes) Max

func (LaunchTemplateConfigOverridesInstanceRequirementsMemoryGibPerVcpuAttributes) Min

type LaunchTemplateConfigOverridesInstanceRequirementsMemoryGibPerVcpuState

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

type LaunchTemplateConfigOverridesInstanceRequirementsMemoryMib

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

type LaunchTemplateConfigOverridesInstanceRequirementsMemoryMibAttributes

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

func (LaunchTemplateConfigOverridesInstanceRequirementsMemoryMibAttributes) InternalRef

func (LaunchTemplateConfigOverridesInstanceRequirementsMemoryMibAttributes) InternalTokens

func (LaunchTemplateConfigOverridesInstanceRequirementsMemoryMibAttributes) InternalWithRef

func (LaunchTemplateConfigOverridesInstanceRequirementsMemoryMibAttributes) Max

func (LaunchTemplateConfigOverridesInstanceRequirementsMemoryMibAttributes) Min

type LaunchTemplateConfigOverridesInstanceRequirementsMemoryMibState

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

type LaunchTemplateConfigOverridesInstanceRequirementsNetworkBandwidthGbps

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

type LaunchTemplateConfigOverridesInstanceRequirementsNetworkBandwidthGbpsAttributes

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

func (LaunchTemplateConfigOverridesInstanceRequirementsNetworkBandwidthGbpsAttributes) InternalRef

func (LaunchTemplateConfigOverridesInstanceRequirementsNetworkBandwidthGbpsAttributes) InternalTokens

func (LaunchTemplateConfigOverridesInstanceRequirementsNetworkBandwidthGbpsAttributes) InternalWithRef

func (LaunchTemplateConfigOverridesInstanceRequirementsNetworkBandwidthGbpsAttributes) Max

func (LaunchTemplateConfigOverridesInstanceRequirementsNetworkBandwidthGbpsAttributes) Min

type LaunchTemplateConfigOverridesInstanceRequirementsNetworkBandwidthGbpsState

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

type LaunchTemplateConfigOverridesInstanceRequirementsNetworkInterfaceCount

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

type LaunchTemplateConfigOverridesInstanceRequirementsNetworkInterfaceCountAttributes

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

func (LaunchTemplateConfigOverridesInstanceRequirementsNetworkInterfaceCountAttributes) InternalRef

func (LaunchTemplateConfigOverridesInstanceRequirementsNetworkInterfaceCountAttributes) InternalTokens

func (LaunchTemplateConfigOverridesInstanceRequirementsNetworkInterfaceCountAttributes) Max

func (LaunchTemplateConfigOverridesInstanceRequirementsNetworkInterfaceCountAttributes) Min

type LaunchTemplateConfigOverridesInstanceRequirementsNetworkInterfaceCountState

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

type LaunchTemplateConfigOverridesInstanceRequirementsState

type LaunchTemplateConfigOverridesInstanceRequirementsState 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                          []LaunchTemplateConfigOverridesInstanceRequirementsAcceleratorCountState          `json:"accelerator_count"`
	AcceleratorTotalMemoryMib                 []LaunchTemplateConfigOverridesInstanceRequirementsAcceleratorTotalMemoryMibState `json:"accelerator_total_memory_mib"`
	BaselineEbsBandwidthMbps                  []LaunchTemplateConfigOverridesInstanceRequirementsBaselineEbsBandwidthMbpsState  `json:"baseline_ebs_bandwidth_mbps"`
	MemoryGibPerVcpu                          []LaunchTemplateConfigOverridesInstanceRequirementsMemoryGibPerVcpuState          `json:"memory_gib_per_vcpu"`
	MemoryMib                                 []LaunchTemplateConfigOverridesInstanceRequirementsMemoryMibState                 `json:"memory_mib"`
	NetworkBandwidthGbps                      []LaunchTemplateConfigOverridesInstanceRequirementsNetworkBandwidthGbpsState      `json:"network_bandwidth_gbps"`
	NetworkInterfaceCount                     []LaunchTemplateConfigOverridesInstanceRequirementsNetworkInterfaceCountState     `json:"network_interface_count"`
	TotalLocalStorageGb                       []LaunchTemplateConfigOverridesInstanceRequirementsTotalLocalStorageGbState       `json:"total_local_storage_gb"`
	VcpuCount                                 []LaunchTemplateConfigOverridesInstanceRequirementsVcpuCountState                 `json:"vcpu_count"`
}

type LaunchTemplateConfigOverridesInstanceRequirementsTotalLocalStorageGb

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

type LaunchTemplateConfigOverridesInstanceRequirementsTotalLocalStorageGbAttributes

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

func (LaunchTemplateConfigOverridesInstanceRequirementsTotalLocalStorageGbAttributes) InternalRef

func (LaunchTemplateConfigOverridesInstanceRequirementsTotalLocalStorageGbAttributes) InternalTokens

func (LaunchTemplateConfigOverridesInstanceRequirementsTotalLocalStorageGbAttributes) InternalWithRef

func (LaunchTemplateConfigOverridesInstanceRequirementsTotalLocalStorageGbAttributes) Max

func (LaunchTemplateConfigOverridesInstanceRequirementsTotalLocalStorageGbAttributes) Min

type LaunchTemplateConfigOverridesInstanceRequirementsTotalLocalStorageGbState

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

type LaunchTemplateConfigOverridesInstanceRequirementsVcpuCount

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

type LaunchTemplateConfigOverridesInstanceRequirementsVcpuCountAttributes

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

func (LaunchTemplateConfigOverridesInstanceRequirementsVcpuCountAttributes) InternalRef

func (LaunchTemplateConfigOverridesInstanceRequirementsVcpuCountAttributes) InternalTokens

func (LaunchTemplateConfigOverridesInstanceRequirementsVcpuCountAttributes) InternalWithRef

func (LaunchTemplateConfigOverridesInstanceRequirementsVcpuCountAttributes) Max

func (LaunchTemplateConfigOverridesInstanceRequirementsVcpuCountAttributes) Min

type LaunchTemplateConfigOverridesInstanceRequirementsVcpuCountState

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

type LaunchTemplateConfigOverridesState

type LaunchTemplateConfigOverridesState struct {
	AvailabilityZone     string                                                   `json:"availability_zone"`
	InstanceType         string                                                   `json:"instance_type"`
	Priority             float64                                                  `json:"priority"`
	SpotPrice            string                                                   `json:"spot_price"`
	SubnetId             string                                                   `json:"subnet_id"`
	WeightedCapacity     float64                                                  `json:"weighted_capacity"`
	InstanceRequirements []LaunchTemplateConfigOverridesInstanceRequirementsState `json:"instance_requirements"`
}

type LaunchTemplateConfigState

type LaunchTemplateConfigState struct {
	LaunchTemplateSpecification []LaunchTemplateConfigLaunchTemplateSpecificationState `json:"launch_template_specification"`
	Overrides                   []LaunchTemplateConfigOverridesState                   `json:"overrides"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (asfr *Resource) Attributes() awsSpotFleetRequestAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (asfr *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (asfr *Resource) State() (*awsSpotFleetRequestState, bool)

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

func (*Resource) StateMust

func (asfr *Resource) StateMust() *awsSpotFleetRequestState

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

func (*Resource) Type

func (asfr *Resource) Type() string

Type returns the Terraform object type for Resource.

type SpotMaintenanceStrategies

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

type SpotMaintenanceStrategiesAttributes

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

func (SpotMaintenanceStrategiesAttributes) CapacityRebalance

func (SpotMaintenanceStrategiesAttributes) InternalRef

func (SpotMaintenanceStrategiesAttributes) InternalTokens

func (sms SpotMaintenanceStrategiesAttributes) InternalTokens() (hclwrite.Tokens, error)

func (SpotMaintenanceStrategiesAttributes) InternalWithRef

type SpotMaintenanceStrategiesCapacityRebalance

type SpotMaintenanceStrategiesCapacityRebalance struct {
	// ReplacementStrategy: string, optional
	ReplacementStrategy terra.StringValue `hcl:"replacement_strategy,attr"`
}

type SpotMaintenanceStrategiesCapacityRebalanceAttributes

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

func (SpotMaintenanceStrategiesCapacityRebalanceAttributes) InternalRef

func (SpotMaintenanceStrategiesCapacityRebalanceAttributes) InternalTokens

func (SpotMaintenanceStrategiesCapacityRebalanceAttributes) InternalWithRef

func (SpotMaintenanceStrategiesCapacityRebalanceAttributes) ReplacementStrategy

type SpotMaintenanceStrategiesCapacityRebalanceState

type SpotMaintenanceStrategiesCapacityRebalanceState struct {
	ReplacementStrategy string `json:"replacement_strategy"`
}

type SpotMaintenanceStrategiesState

type SpotMaintenanceStrategiesState struct {
	CapacityRebalance []SpotMaintenanceStrategiesCapacityRebalanceState `json:"capacity_rebalance"`
}

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