Documentation
¶
Index ¶
- Constants
- func IgnoreAlreadyExists(err error) error
- func IgnoreDryRunError(err error) error
- func IgnoreNotFound(err error) error
- func IgnoreRateLimitedError(err error) error
- func IgnoreServerError(err error) error
- func IgnoreUnauthorizedOperationError(err error) error
- func IsAlreadyExists(err error) bool
- func IsDryRunError(err error) bool
- func IsInstanceProfileNotFound(err error) bool
- func IsInsufficientFreeAddressesInSubnet(err ec2types.CreateFleetError) bool
- func IsLaunchTemplateNotFound(err error) bool
- func IsNotFound(err error) bool
- func IsRateLimitedError(err error) bool
- func IsReservationCapacityExceeded(err ec2types.CreateFleetError) bool
- func IsServerError(err error) bool
- func IsServiceLinkedRoleCreationNotPermitted(err ec2types.CreateFleetError) bool
- func IsUnauthorizedOperationError(err error) bool
- func IsUnfulfillableCapacity(err ec2types.CreateFleetError) bool
- func ToReasonMessage(err error) (string, string)
Constants ¶
const ( RunInstancesInvalidParameterValueCode = "InvalidParameterValue" DryRunOperationErrorCode = "DryRunOperation" RateLimitingErrorCode = "RequestLimitExceeded" ServiceLinkedRoleCreationNotPermittedErrorCode = "AuthFailure.ServiceLinkedRoleCreationNotPermitted" InsufficientFreeAddressesInSubnetErrorCode = "InsufficientFreeAddressesInSubnet" )
Variables ¶
This section is empty.
Functions ¶
func IgnoreAlreadyExists ¶
func IgnoreDryRunError ¶ added in v1.3.0
func IgnoreNotFound ¶
func IgnoreRateLimitedError ¶ added in v1.3.3
func IgnoreServerError ¶ added in v1.3.5
func IgnoreUnauthorizedOperationError ¶ added in v1.3.0
func IsAlreadyExists ¶
func IsDryRunError ¶ added in v1.3.0
func IsInstanceProfileNotFound ¶ added in v1.3.1
func IsInsufficientFreeAddressesInSubnet ¶ added in v1.6.0
func IsInsufficientFreeAddressesInSubnet(err ec2types.CreateFleetError) bool
func IsNotFound ¶
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 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 IsServiceLinkedRoleCreationNotPermitted ¶ added in v1.5.0
func IsServiceLinkedRoleCreationNotPermitted(err ec2types.CreateFleetError) bool
func IsUnauthorizedOperationError ¶ added in v1.3.0
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
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.