libZSservicesZSamazonka-service-quotasZSamazonka-service-quotas
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.ServiceQuotas.Types.ErrorReason

Description

 
Synopsis

Documentation

data ErrorReason Source #

An error that explains why an action did not succeed.

See: newErrorReason smart constructor.

Constructors

ErrorReason' 

Fields

  • errorCode :: Maybe ErrorCode

    Service Quotas returns the following error values:

    • DEPENDENCY_ACCESS_DENIED_ERROR - The caller does not have the required permissions to complete the action. To resolve the error, you must have permission to access the service or quota.
    • DEPENDENCY_THROTTLING_ERROR - The service is throttling Service Quotas.
    • DEPENDENCY_SERVICE_ERROR - The service is not available.
    • SERVICE_QUOTA_NOT_AVAILABLE_ERROR - There was an error in Service Quotas.
  • errorMessage :: Maybe Text

    The error message.

Instances

Instances details
Eq ErrorReason Source # 
Instance details

Defined in Amazonka.ServiceQuotas.Types.ErrorReason

Read ErrorReason Source # 
Instance details

Defined in Amazonka.ServiceQuotas.Types.ErrorReason

Show ErrorReason Source # 
Instance details

Defined in Amazonka.ServiceQuotas.Types.ErrorReason

Generic ErrorReason Source # 
Instance details

Defined in Amazonka.ServiceQuotas.Types.ErrorReason

Associated Types

type Rep ErrorReason :: Type -> Type #

NFData ErrorReason Source # 
Instance details

Defined in Amazonka.ServiceQuotas.Types.ErrorReason

Methods

rnf :: ErrorReason -> () #

Hashable ErrorReason Source # 
Instance details

Defined in Amazonka.ServiceQuotas.Types.ErrorReason

FromJSON ErrorReason Source # 
Instance details

Defined in Amazonka.ServiceQuotas.Types.ErrorReason

type Rep ErrorReason Source # 
Instance details

Defined in Amazonka.ServiceQuotas.Types.ErrorReason

type Rep ErrorReason = D1 ('MetaData "ErrorReason" "Amazonka.ServiceQuotas.Types.ErrorReason" "libZSservicesZSamazonka-service-quotasZSamazonka-service-quotas" 'False) (C1 ('MetaCons "ErrorReason'" 'PrefixI 'True) (S1 ('MetaSel ('Just "errorCode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ErrorCode)) :*: S1 ('MetaSel ('Just "errorMessage") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))

newErrorReason :: ErrorReason Source #

Create a value of ErrorReason with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:errorCode:ErrorReason', errorReason_errorCode - Service Quotas returns the following error values:

  • DEPENDENCY_ACCESS_DENIED_ERROR - The caller does not have the required permissions to complete the action. To resolve the error, you must have permission to access the service or quota.
  • DEPENDENCY_THROTTLING_ERROR - The service is throttling Service Quotas.
  • DEPENDENCY_SERVICE_ERROR - The service is not available.
  • SERVICE_QUOTA_NOT_AVAILABLE_ERROR - There was an error in Service Quotas.

$sel:errorMessage:ErrorReason', errorReason_errorMessage - The error message.

errorReason_errorCode :: Lens' ErrorReason (Maybe ErrorCode) Source #

Service Quotas returns the following error values:

  • DEPENDENCY_ACCESS_DENIED_ERROR - The caller does not have the required permissions to complete the action. To resolve the error, you must have permission to access the service or quota.
  • DEPENDENCY_THROTTLING_ERROR - The service is throttling Service Quotas.
  • DEPENDENCY_SERVICE_ERROR - The service is not available.
  • SERVICE_QUOTA_NOT_AVAILABLE_ERROR - There was an error in Service Quotas.