amazonka-lex-models-2.0: Amazon Lex Model Building Service 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.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
FromJSON SlotDefaultValueSpec Source # 
Instance details

Defined in Amazonka.LexModels.Types.SlotDefaultValueSpec

ToJSON 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 #

Read SlotDefaultValueSpec Source # 
Instance details

Defined in Amazonka.LexModels.Types.SlotDefaultValueSpec

Show SlotDefaultValueSpec Source # 
Instance details

Defined in Amazonka.LexModels.Types.SlotDefaultValueSpec

NFData SlotDefaultValueSpec Source # 
Instance details

Defined in Amazonka.LexModels.Types.SlotDefaultValueSpec

Methods

rnf :: SlotDefaultValueSpec -> () #

Eq SlotDefaultValueSpec Source # 
Instance details

Defined in Amazonka.LexModels.Types.SlotDefaultValueSpec

Hashable 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" "amazonka-lex-models-2.0-8Q1WIjnrCCIAMPuyNOCiG7" '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.