amazonka-opensearchserverless-2.0: Amazon OpenSearch Service Serverless 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.OpenSearchServerless.Types.CollectionErrorDetail

Description

 
Synopsis

Documentation

data CollectionErrorDetail Source #

Error information for an OpenSearch Serverless request.

See: newCollectionErrorDetail smart constructor.

Constructors

CollectionErrorDetail' 

Fields

  • errorCode :: Maybe Text

    The error code for the request. For example, NOT_FOUND.

  • errorMessage :: Maybe Text

    A description of the error. For example, The specified Collection is not found.

  • id :: Maybe Text

    If the request contains collection IDs, the response includes the IDs provided in the request.

  • name :: Maybe Text

    If the request contains collection names, the response includes the names provided in the request.

Instances

Instances details
FromJSON CollectionErrorDetail Source # 
Instance details

Defined in Amazonka.OpenSearchServerless.Types.CollectionErrorDetail

Generic CollectionErrorDetail Source # 
Instance details

Defined in Amazonka.OpenSearchServerless.Types.CollectionErrorDetail

Associated Types

type Rep CollectionErrorDetail :: Type -> Type #

Read CollectionErrorDetail Source # 
Instance details

Defined in Amazonka.OpenSearchServerless.Types.CollectionErrorDetail

Show CollectionErrorDetail Source # 
Instance details

Defined in Amazonka.OpenSearchServerless.Types.CollectionErrorDetail

NFData CollectionErrorDetail Source # 
Instance details

Defined in Amazonka.OpenSearchServerless.Types.CollectionErrorDetail

Methods

rnf :: CollectionErrorDetail -> () #

Eq CollectionErrorDetail Source # 
Instance details

Defined in Amazonka.OpenSearchServerless.Types.CollectionErrorDetail

Hashable CollectionErrorDetail Source # 
Instance details

Defined in Amazonka.OpenSearchServerless.Types.CollectionErrorDetail

type Rep CollectionErrorDetail Source # 
Instance details

Defined in Amazonka.OpenSearchServerless.Types.CollectionErrorDetail

type Rep CollectionErrorDetail = D1 ('MetaData "CollectionErrorDetail" "Amazonka.OpenSearchServerless.Types.CollectionErrorDetail" "amazonka-opensearchserverless-2.0-HnbMYszmsxrAMKjbvSoFws" 'False) (C1 ('MetaCons "CollectionErrorDetail'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "errorCode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "errorMessage") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))

newCollectionErrorDetail :: CollectionErrorDetail Source #

Create a value of CollectionErrorDetail 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:CollectionErrorDetail', collectionErrorDetail_errorCode - The error code for the request. For example, NOT_FOUND.

$sel:errorMessage:CollectionErrorDetail', collectionErrorDetail_errorMessage - A description of the error. For example, The specified Collection is not found.

$sel:id:CollectionErrorDetail', collectionErrorDetail_id - If the request contains collection IDs, the response includes the IDs provided in the request.

$sel:name:CollectionErrorDetail', collectionErrorDetail_name - If the request contains collection names, the response includes the names provided in the request.

collectionErrorDetail_errorCode :: Lens' CollectionErrorDetail (Maybe Text) Source #

The error code for the request. For example, NOT_FOUND.

collectionErrorDetail_errorMessage :: Lens' CollectionErrorDetail (Maybe Text) Source #

A description of the error. For example, The specified Collection is not found.

collectionErrorDetail_id :: Lens' CollectionErrorDetail (Maybe Text) Source #

If the request contains collection IDs, the response includes the IDs provided in the request.

collectionErrorDetail_name :: Lens' CollectionErrorDetail (Maybe Text) Source #

If the request contains collection names, the response includes the names provided in the request.