autherrors

package
v1.235.1 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2026 License: Apache-2.0 Imports: 8 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

func IsAccessFailure(err error) bool

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.

func Normalize

func Normalize(err error) error

Normalize preserves the original AWS error while marking unavailable credentials. Service, syntax, configuration, and unrelated transport errors stay unchanged.

Types

This section is empty.

Jump to

Keyboard shortcuts

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