errors

package
v1.7.3-hash-fix-backport Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2025 License: Apache-2.0 Imports: 5 Imported by: 7

Documentation

Index

Constants

View Source
const (
	RunInstancesInvalidParameterValueCode          = "InvalidParameterValue"
	DryRunOperationErrorCode                       = "DryRunOperation"
	UnauthorizedOperationErrorCode                 = "UnauthorizedOperation"
	RateLimitingErrorCode                          = "RequestLimitExceeded"
	ServiceLinkedRoleCreationNotPermittedErrorCode = "AuthFailure.ServiceLinkedRoleCreationNotPermitted"
	InsufficientFreeAddressesInSubnetErrorCode     = "InsufficientFreeAddressesInSubnet"
)

Variables

This section is empty.

Functions

func IgnoreAlreadyExists

func IgnoreAlreadyExists(err error) error

func IgnoreDryRunError added in v1.3.0

func IgnoreDryRunError(err error) error

func IgnoreNotFound

func IgnoreNotFound(err error) error

func IgnoreRateLimitedError added in v1.3.3

func IgnoreRateLimitedError(err error) error

func IgnoreServerError added in v1.3.5

func IgnoreServerError(err error) error

func IgnoreUnauthorizedOperationError added in v1.3.0

func IgnoreUnauthorizedOperationError(err error) error

func IsAlreadyExists

func IsAlreadyExists(err error) bool

func IsDryRunError added in v1.3.0

func IsDryRunError(err error) bool

func IsInstanceProfileNotFound added in v1.3.1

func IsInstanceProfileNotFound(err error) bool

func IsInsufficientFreeAddressesInSubnet added in v1.6.0

func IsInsufficientFreeAddressesInSubnet(err ec2types.CreateFleetError) bool

func IsLaunchTemplateNotFound

func IsLaunchTemplateNotFound(err error) bool

func IsNotFound

func IsNotFound(err error) bool

IsNotFound returns true if the err is an AWS error (even if it's wrapped) and is a known to mean "not found" (as opposed to a more serious or unexpected error)

func IsRateLimitedError added in v1.3.3

func IsRateLimitedError(err error) bool

func IsReservationCapacityExceeded added in v1.3.0

func IsReservationCapacityExceeded(err ec2types.CreateFleetError) bool

IsReservationCapacityExceeded returns true if the fleet error means there is no remaining capacity for the provided capacity reservation.

func IsServerError added in v1.3.5

func IsServerError(err error) bool

func IsServiceLinkedRoleCreationNotPermitted added in v1.5.0

func IsServiceLinkedRoleCreationNotPermitted(err ec2types.CreateFleetError) bool

func IsUnauthorizedOperationError added in v1.3.0

func IsUnauthorizedOperationError(err error) bool

func IsUnfulfillableCapacity

func IsUnfulfillableCapacity(err ec2types.CreateFleetError) bool

IsUnfulfillableCapacity returns true if the Fleet err means capacity is temporarily unavailable for launching. This could be due to account limits, insufficient ec2 capacity, etc.

func ToReasonMessage added in v1.2.0

func ToReasonMessage(err error) (string, string)

ToReasonMessage converts an error message from AWS into a well-known condition reason and well-known condition message that can be used for Launch failure classification nolint:gocyclo

Types

This section is empty.

Jump to

Keyboard shortcuts

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