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.TextWithHighlights

Description

 
Synopsis

Documentation

data TextWithHighlights Source #

Provides text and information about where to highlight the text.

See: newTextWithHighlights smart constructor.

Constructors

TextWithHighlights' 

Fields

Instances

Instances details
FromJSON TextWithHighlights Source # 
Instance details

Defined in Amazonka.Kendra.Types.TextWithHighlights

Generic TextWithHighlights Source # 
Instance details

Defined in Amazonka.Kendra.Types.TextWithHighlights

Associated Types

type Rep TextWithHighlights :: Type -> Type #

Read TextWithHighlights Source # 
Instance details

Defined in Amazonka.Kendra.Types.TextWithHighlights

Show TextWithHighlights Source # 
Instance details

Defined in Amazonka.Kendra.Types.TextWithHighlights

NFData TextWithHighlights Source # 
Instance details

Defined in Amazonka.Kendra.Types.TextWithHighlights

Methods

rnf :: TextWithHighlights -> () #

Eq TextWithHighlights Source # 
Instance details

Defined in Amazonka.Kendra.Types.TextWithHighlights

Hashable TextWithHighlights Source # 
Instance details

Defined in Amazonka.Kendra.Types.TextWithHighlights

type Rep TextWithHighlights Source # 
Instance details

Defined in Amazonka.Kendra.Types.TextWithHighlights

type Rep TextWithHighlights = D1 ('MetaData "TextWithHighlights" "Amazonka.Kendra.Types.TextWithHighlights" "amazonka-kendra-2.0-IHloXAWlYIS8YTp1gXe6J" 'False) (C1 ('MetaCons "TextWithHighlights'" 'PrefixI 'True) (S1 ('MetaSel ('Just "highlights") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Highlight])) :*: S1 ('MetaSel ('Just "text") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))

newTextWithHighlights :: TextWithHighlights Source #

Create a value of TextWithHighlights 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:highlights:TextWithHighlights', textWithHighlights_highlights - The beginning and end of the text that should be highlighted.

$sel:text:TextWithHighlights', textWithHighlights_text - The text to display to the user.

textWithHighlights_highlights :: Lens' TextWithHighlights (Maybe [Highlight]) Source #

The beginning and end of the text that should be highlighted.

textWithHighlights_text :: Lens' TextWithHighlights (Maybe Text) Source #

The text to display to the user.