amazonka-lexv2-models-2.0: Amazon Lex Model Building V2 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.LexV2Models.Types.ConditionalSpecification

Description

 
Synopsis

Documentation

data ConditionalSpecification Source #

Provides a list of conditional branches. Branches are evaluated in the order that they are entered in the list. The first branch with a condition that evaluates to true is executed. The last branch in the list is the default branch. The default branch should not have any condition expression. The default branch is executed if no other branch has a matching condition.

See: newConditionalSpecification smart constructor.

Constructors

ConditionalSpecification' 

Fields

  • active :: Bool

    Determines whether a conditional branch is active. When active is false, the conditions are not evaluated.

  • conditionalBranches :: NonEmpty ConditionalBranch

    A list of conditional branches. A conditional branch is made up of a condition, a response and a next step. The response and next step are executed when the condition is true.

  • defaultBranch :: DefaultConditionalBranch

    The conditional branch that should be followed when the conditions for other branches are not satisfied. A conditional branch is made up of a condition, a response and a next step.

Instances

Instances details
FromJSON ConditionalSpecification Source # 
Instance details

Defined in Amazonka.LexV2Models.Types.ConditionalSpecification

ToJSON ConditionalSpecification Source # 
Instance details

Defined in Amazonka.LexV2Models.Types.ConditionalSpecification

Generic ConditionalSpecification Source # 
Instance details

Defined in Amazonka.LexV2Models.Types.ConditionalSpecification

Associated Types

type Rep ConditionalSpecification :: Type -> Type #

Read ConditionalSpecification Source # 
Instance details

Defined in Amazonka.LexV2Models.Types.ConditionalSpecification

Show ConditionalSpecification Source # 
Instance details

Defined in Amazonka.LexV2Models.Types.ConditionalSpecification

NFData ConditionalSpecification Source # 
Instance details

Defined in Amazonka.LexV2Models.Types.ConditionalSpecification

Eq ConditionalSpecification Source # 
Instance details

Defined in Amazonka.LexV2Models.Types.ConditionalSpecification

Hashable ConditionalSpecification Source # 
Instance details

Defined in Amazonka.LexV2Models.Types.ConditionalSpecification

type Rep ConditionalSpecification Source # 
Instance details

Defined in Amazonka.LexV2Models.Types.ConditionalSpecification

type Rep ConditionalSpecification = D1 ('MetaData "ConditionalSpecification" "Amazonka.LexV2Models.Types.ConditionalSpecification" "amazonka-lexv2-models-2.0-5mExjJXBfuO6j0ascNcayE" 'False) (C1 ('MetaCons "ConditionalSpecification'" 'PrefixI 'True) (S1 ('MetaSel ('Just "active") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool) :*: (S1 ('MetaSel ('Just "conditionalBranches") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (NonEmpty ConditionalBranch)) :*: S1 ('MetaSel ('Just "defaultBranch") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 DefaultConditionalBranch))))

newConditionalSpecification Source #

Create a value of ConditionalSpecification 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:active:ConditionalSpecification', conditionalSpecification_active - Determines whether a conditional branch is active. When active is false, the conditions are not evaluated.

$sel:conditionalBranches:ConditionalSpecification', conditionalSpecification_conditionalBranches - A list of conditional branches. A conditional branch is made up of a condition, a response and a next step. The response and next step are executed when the condition is true.

$sel:defaultBranch:ConditionalSpecification', conditionalSpecification_defaultBranch - The conditional branch that should be followed when the conditions for other branches are not satisfied. A conditional branch is made up of a condition, a response and a next step.

conditionalSpecification_active :: Lens' ConditionalSpecification Bool Source #

Determines whether a conditional branch is active. When active is false, the conditions are not evaluated.

conditionalSpecification_conditionalBranches :: Lens' ConditionalSpecification (NonEmpty ConditionalBranch) Source #

A list of conditional branches. A conditional branch is made up of a condition, a response and a next step. The response and next step are executed when the condition is true.

conditionalSpecification_defaultBranch :: Lens' ConditionalSpecification DefaultConditionalBranch Source #

The conditional branch that should be followed when the conditions for other branches are not satisfied. A conditional branch is made up of a condition, a response and a next step.