amazonka-kendra-2.0: Amazon KendraFrontendService 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.Kendra.Types.Warning

Description

 
Synopsis

Documentation

data Warning Source #

The warning code and message that explains a problem with a query.

See: newWarning smart constructor.

Constructors

Warning' 

Fields

Instances

Instances details
FromJSON Warning Source # 
Instance details

Defined in Amazonka.Kendra.Types.Warning

Generic Warning Source # 
Instance details

Defined in Amazonka.Kendra.Types.Warning

Associated Types

type Rep Warning :: Type -> Type #

Methods

from :: Warning -> Rep Warning x #

to :: Rep Warning x -> Warning #

Read Warning Source # 
Instance details

Defined in Amazonka.Kendra.Types.Warning

Show Warning Source # 
Instance details

Defined in Amazonka.Kendra.Types.Warning

NFData Warning Source # 
Instance details

Defined in Amazonka.Kendra.Types.Warning

Methods

rnf :: Warning -> () #

Eq Warning Source # 
Instance details

Defined in Amazonka.Kendra.Types.Warning

Methods

(==) :: Warning -> Warning -> Bool #

(/=) :: Warning -> Warning -> Bool #

Hashable Warning Source # 
Instance details

Defined in Amazonka.Kendra.Types.Warning

Methods

hashWithSalt :: Int -> Warning -> Int #

hash :: Warning -> Int #

type Rep Warning Source # 
Instance details

Defined in Amazonka.Kendra.Types.Warning

type Rep Warning = D1 ('MetaData "Warning" "Amazonka.Kendra.Types.Warning" "amazonka-kendra-2.0-IHloXAWlYIS8YTp1gXe6J" 'False) (C1 ('MetaCons "Warning'" 'PrefixI 'True) (S1 ('MetaSel ('Just "code") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe WarningCode)) :*: S1 ('MetaSel ('Just "message") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))

newWarning :: Warning Source #

Create a value of Warning 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:Warning', warning_code - The code used to show the type of warning for the query.

$sel:message:Warning', warning_message - The message that explains the problem with the query.

warning_code :: Lens' Warning (Maybe WarningCode) Source #

The code used to show the type of warning for the query.

warning_message :: Lens' Warning (Maybe Text) Source #

The message that explains the problem with the query.