Documentation
¶
Overview ¶
Package autherrors translates AWS credential failures into provider-neutral errors.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsAccessFailure ¶
IsAccessFailure reports whether an AWS call failed because the current environment cannot use its credentials for the request, as opposed to a defect in the request itself. It is an allow-list:
- access denied: an access-denied API error code, including an `sts:AssumeRole` refused while resolving a role, or an HTTP 403 that carries no error code at all;
- credentials Normalize marks with ErrAuthenticationUnavailable (expired, invalid, empty);
- a named shared-config profile that is not configured on this machine.
A credential chain that finds nothing at all, throttling, network errors, and service or request errors are not access failures. Callers decide whether an access failure is fatal.
Types ¶
This section is empty.