libZSservicesZSamazonka-lex-modelsZSamazonka-lex-models
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.LexModels.Types.SlotDefaultValueSpec

Description

 
Synopsis

Documentation

data SlotDefaultValueSpec Source #

Contains the default values for a slot. Default values are used when Amazon Lex hasn't determined a value for a slot.

See: newSlotDefaultValueSpec smart constructor.

Constructors

SlotDefaultValueSpec' 

Fields

  • defaultValueList :: [SlotDefaultValue]

    The default values for a slot. You can specify more than one default. For example, you can specify a default value to use from a matching context variable, a session attribute, or a fixed value.

    The default value chosen is selected based on the order that you specify them in the list. For example, if you specify a context variable and a fixed value in that order, Amazon Lex uses the context variable if it is available, else it uses the fixed value.

Instances

Instances details
Eq SlotDefaultValueSpec Source # 
Instance details

Defined in Amazonka.LexModels.Types.SlotDefaultValueSpec

Read SlotDefaultValueSpec Source # 
Instance details

Defined in Amazonka.LexModels.Types.SlotDefaultValueSpec

Show SlotDefaultValueSpec Source # 
Instance details

Defined in Amazonka.LexModels.Types.SlotDefaultValueSpec

Generic SlotDefaultValueSpec Source # 
Instance details

Defined in Amazonka.LexModels.Types.SlotDefaultValueSpec

Associated Types

type Rep SlotDefaultValueSpec :: Type -> Type #

NFData SlotDefaultValueSpec Source # 
Instance details

Defined in Amazonka.LexModels.Types.SlotDefaultValueSpec

Methods

rnf :: SlotDefaultValueSpec -> () #

Hashable SlotDefaultValueSpec Source # 
Instance details

Defined in Amazonka.LexModels.Types.SlotDefaultValueSpec

ToJSON SlotDefaultValueSpec Source # 
Instance details

Defined in Amazonka.LexModels.Types.SlotDefaultValueSpec

FromJSON SlotDefaultValueSpec Source # 
Instance details

Defined in Amazonka.LexModels.Types.SlotDefaultValueSpec

type Rep SlotDefaultValueSpec Source # 
Instance details

Defined in Amazonka.LexModels.Types.SlotDefaultValueSpec

type Rep SlotDefaultValueSpec = D1 ('MetaData "SlotDefaultValueSpec" "Amazonka.LexModels.Types.SlotDefaultValueSpec" "libZSservicesZSamazonka-lex-modelsZSamazonka-lex-models" 'False) (C1 ('MetaCons "SlotDefaultValueSpec'" 'PrefixI 'True) (S1 ('MetaSel ('Just "defaultValueList") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [SlotDefaultValue])))

newSlotDefaultValueSpec :: SlotDefaultValueSpec Source #

Create a value of SlotDefaultValueSpec 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:defaultValueList:SlotDefaultValueSpec', slotDefaultValueSpec_defaultValueList - The default values for a slot. You can specify more than one default. For example, you can specify a default value to use from a matching context variable, a session attribute, or a fixed value.

The default value chosen is selected based on the order that you specify them in the list. For example, if you specify a context variable and a fixed value in that order, Amazon Lex uses the context variable if it is available, else it uses the fixed value.

slotDefaultValueSpec_defaultValueList :: Lens' SlotDefaultValueSpec [SlotDefaultValue] Source #

The default values for a slot. You can specify more than one default. For example, you can specify a default value to use from a matching context variable, a session attribute, or a fixed value.

The default value chosen is selected based on the order that you specify them in the list. For example, if you specify a context variable and a fixed value in that order, Amazon Lex uses the context variable if it is available, else it uses the fixed value.