amazonka-2.0: Comprehensive Amazon Web Services SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityprovisional
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.Auth.Exception

Description

Exception for errors involving AWS authentication.

Synopsis

Documentation

data AuthError Source #

An error thrown when attempting to read AuthN/AuthZ information.

Instances

Instances details
AsAuthError AuthError Source # 
Instance details

Defined in Amazonka.Auth.Exception

ToLog AuthError Source # 
Instance details

Defined in Amazonka.Auth.Exception

Exception AuthError Source # 
Instance details

Defined in Amazonka.Auth.Exception

Generic AuthError Source # 
Instance details

Defined in Amazonka.Auth.Exception

Associated Types

type Rep AuthError :: Type -> Type #

Show AuthError Source # 
Instance details

Defined in Amazonka.Auth.Exception

type Rep AuthError Source # 
Instance details

Defined in Amazonka.Auth.Exception

type Rep AuthError = D1 ('MetaData "AuthError" "Amazonka.Auth.Exception" "amazonka-2.0-48plDWnPMAk3PGO79vdSa0" 'False) ((C1 ('MetaCons "RetrievalError" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 HttpException)) :+: (C1 ('MetaCons "MissingEnvError" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :+: C1 ('MetaCons "MissingFileError" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 FilePath)))) :+: (C1 ('MetaCons "InvalidFileError" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :+: (C1 ('MetaCons "InvalidIAMError" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :+: C1 ('MetaCons "CredentialChainExhausted" 'PrefixI 'False) (U1 :: Type -> Type))))

class AsAuthError a where Source #

Minimal complete definition

_AuthError

Methods

_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.