| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.Kendra.Types.Warning
Description
Synopsis
- data Warning = Warning' {}
- newWarning :: Warning
- warning_code :: Lens' Warning (Maybe WarningCode)
- warning_message :: Lens' Warning (Maybe Text)
Documentation
The warning code and message that explains a problem with a query.
See: newWarning smart constructor.
Constructors
| Warning' | |
Instances
| FromJSON Warning Source # | |
| Generic Warning Source # | |
| Read Warning Source # | |
| Show Warning Source # | |
| NFData Warning Source # | |
Defined in Amazonka.Kendra.Types.Warning | |
| Eq Warning Source # | |
| Hashable Warning Source # | |
Defined in Amazonka.Kendra.Types.Warning | |
| type Rep Warning Source # | |
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.