amazonka-sesv2-2.0: Amazon Simple Email Service SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.SESV2.Types.MetricDataError

Description

 
Synopsis

Documentation

data MetricDataError Source #

An error corresponding to the unsuccessful processing of a single metric data query.

See: newMetricDataError smart constructor.

Constructors

MetricDataError' 

Fields

  • code :: Maybe QueryErrorCode

    The query error code. Can be one of:

    • INTERNAL_FAILURE – Amazon SES has failed to process one of the queries.
    • ACCESS_DENIED – You have insufficient access to retrieve metrics based on the given query.
  • id :: Maybe Text

    The query identifier.

  • message :: Maybe Text

    The error message associated with the current query error.

Instances

Instances details
FromJSON MetricDataError Source # 
Instance details

Defined in Amazonka.SESV2.Types.MetricDataError

Generic MetricDataError Source # 
Instance details

Defined in Amazonka.SESV2.Types.MetricDataError

Associated Types

type Rep MetricDataError :: Type -> Type #

Read MetricDataError Source # 
Instance details

Defined in Amazonka.SESV2.Types.MetricDataError

Show MetricDataError Source # 
Instance details

Defined in Amazonka.SESV2.Types.MetricDataError

NFData MetricDataError Source # 
Instance details

Defined in Amazonka.SESV2.Types.MetricDataError

Methods

rnf :: MetricDataError -> () #

Eq MetricDataError Source # 
Instance details

Defined in Amazonka.SESV2.Types.MetricDataError

Hashable MetricDataError Source # 
Instance details

Defined in Amazonka.SESV2.Types.MetricDataError

type Rep MetricDataError Source # 
Instance details

Defined in Amazonka.SESV2.Types.MetricDataError

type Rep MetricDataError = D1 ('MetaData "MetricDataError" "Amazonka.SESV2.Types.MetricDataError" "amazonka-sesv2-2.0-KPRo1S1CRfP4bs5VKSgHvB" 'False) (C1 ('MetaCons "MetricDataError'" 'PrefixI 'True) (S1 ('MetaSel ('Just "code") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe QueryErrorCode)) :*: (S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "message") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))

newMetricDataError :: MetricDataError Source #

Create a value of MetricDataError 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:code:MetricDataError', metricDataError_code - The query error code. Can be one of:

  • INTERNAL_FAILURE – Amazon SES has failed to process one of the queries.
  • ACCESS_DENIED – You have insufficient access to retrieve metrics based on the given query.

$sel:id:MetricDataError', metricDataError_id - The query identifier.

$sel:message:MetricDataError', metricDataError_message - The error message associated with the current query error.

metricDataError_code :: Lens' MetricDataError (Maybe QueryErrorCode) Source #

The query error code. Can be one of:

  • INTERNAL_FAILURE – Amazon SES has failed to process one of the queries.
  • ACCESS_DENIED – You have insufficient access to retrieve metrics based on the given query.

metricDataError_message :: Lens' MetricDataError (Maybe Text) Source #

The error message associated with the current query error.