aws

package
v1.14.16-dcf8320c8c4e Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2024 License: Apache-2.0 Imports: 15 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Constraints

func Constraints(config *types.InstallConfig, controlPlanes []machineapi.Machine, computes []machineapi.MachineSet, instanceTypes map[string]InstanceTypeInfo) []quota.Constraint

Constraints returns a list of quota constraints based on the InstallConfig. These constraints can be used to check if there is enough quota for creating a cluster for the isntall config.

func InstanceTypes

func InstanceTypes(ctx context.Context, sess *session.Session, region string) (map[string]InstanceTypeInfo, error)

InstanceTypes returns information of the all the instance types available for a region. It returns a map of instance type name to it's information.

func IsUnauthorizedOperation

func IsUnauthorizedOperation(err error) bool

IsUnauthorizedOperation checks if the error is un authorized due to permission failure or lack of service availability.

Types

type InstanceTypeInfo

type InstanceTypeInfo struct {
	Name string
	// contains filtered or unexported fields
}

InstanceTypeInfo describes the instance type

Jump to

Keyboard shortcuts

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