types

package
v1.60.0 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2024 License: Apache-2.0 Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CPUArchitecture added in v1.60.0

type CPUArchitecture string

CPUArchitecture defines processor architectures returned by the AWS API.

const (
	CPUArchitectureARM64  CPUArchitecture = "arm64"
	CPUArchitectureX86_64 CPUArchitecture = "x86_64"
	CPUArchitectureI386   CPUArchitecture = "i386"
)

type RawConfig

type RawConfig struct {
	AccessKeyID     providerconfigtypes.ConfigVarString `json:"accessKeyId,omitempty"`
	SecretAccessKey providerconfigtypes.ConfigVarString `json:"secretAccessKey,omitempty"`

	AssumeRoleARN        providerconfigtypes.ConfigVarString `json:"assumeRoleARN,omitempty"`
	AssumeRoleExternalID providerconfigtypes.ConfigVarString `json:"assumeRoleExternalID,omitempty"`

	Region             providerconfigtypes.ConfigVarString   `json:"region"`
	AvailabilityZone   providerconfigtypes.ConfigVarString   `json:"availabilityZone,omitempty"`
	VpcID              providerconfigtypes.ConfigVarString   `json:"vpcId"`
	SubnetID           providerconfigtypes.ConfigVarString   `json:"subnetId"`
	SecurityGroupIDs   []providerconfigtypes.ConfigVarString `json:"securityGroupIDs,omitempty"`
	InstanceProfile    providerconfigtypes.ConfigVarString   `json:"instanceProfile,omitempty"`
	InstanceType       providerconfigtypes.ConfigVarString   `json:"instanceType,omitempty"`
	AMI                providerconfigtypes.ConfigVarString   `json:"ami,omitempty"`
	DiskSize           int32                                 `json:"diskSize"`
	DiskType           providerconfigtypes.ConfigVarString   `json:"diskType,omitempty"`
	DiskIops           *int32                                `json:"diskIops,omitempty"`
	EBSVolumeEncrypted providerconfigtypes.ConfigVarBool     `json:"ebsVolumeEncrypted"`
	Tags               map[string]string                     `json:"tags,omitempty"`
	AssignPublicIP     *bool                                 `json:"assignPublicIP,omitempty"`

	IsSpotInstance     *bool               `json:"isSpotInstance,omitempty"`
	SpotInstanceConfig *SpotInstanceConfig `json:"spotInstanceConfig,omitempty"`
}

func GetConfig added in v1.60.0

func GetConfig(pconfig providerconfigtypes.Config) (*RawConfig, error)

type SpotInstanceConfig added in v1.60.0

type SpotInstanceConfig struct {
	MaxPrice             providerconfigtypes.ConfigVarString `json:"maxPrice,omitempty"`
	PersistentRequest    providerconfigtypes.ConfigVarBool   `json:"persistentRequest,omitempty"`
	InterruptionBehavior providerconfigtypes.ConfigVarString `json:"interruptionBehavior,omitempty"`
}

Jump to

Keyboard shortcuts

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