Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | provisional |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Exception for errors involving AWS authentication.
Synopsis
- data AuthError
- class AsAuthError a where
Documentation
An error thrown when attempting to read AuthN/AuthZ information.
RetrievalError HttpException | |
MissingEnvError Text | |
MissingFileError FilePath | |
InvalidFileError Text | |
InvalidIAMError Text | |
CredentialChainExhausted |
Instances
class AsAuthError a where Source #
_AuthError :: Prism' a AuthError Source #
A general authentication error.
_RetrievalError :: Prism' a HttpException Source #
An error occured while communicating over HTTP with the local metadata endpoint.
_MissingEnvError :: Prism' a Text Source #
The named environment variable was not found.
_MissingFileError :: Prism' a FilePath Source #
The specified credentials file could not be found.
_InvalidFileError :: Prism' a Text Source #
An error occured parsing the credentials file.
_InvalidIAMError :: Prism' a Text Source #
The specified IAM profile could not be found or deserialised.
Instances
AsAuthError AuthError Source # | |
AsAuthError SomeException Source # | |
Defined in Amazonka.Auth.Exception |