amazonka-pinpoint-2.0: Amazon Pinpoint 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.Pinpoint.Types.Condition

Description

 
Synopsis

Documentation

data Condition Source #

Specifies the conditions to evaluate for an activity in a journey, and how to evaluate those conditions.

See: newCondition smart constructor.

Constructors

Condition' 

Fields

  • conditions :: Maybe [SimpleCondition]

    The conditions to evaluate for the activity.

  • operator :: Maybe Operator

    Specifies how to handle multiple conditions for the activity. For example, if you specify two conditions for an activity, whether both or only one of the conditions must be met for the activity to be performed.

Instances

Instances details
FromJSON Condition Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.Condition

ToJSON Condition Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.Condition

Generic Condition Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.Condition

Associated Types

type Rep Condition :: Type -> Type #

Read Condition Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.Condition

Show Condition Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.Condition

NFData Condition Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.Condition

Methods

rnf :: Condition -> () #

Eq Condition Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.Condition

Hashable Condition Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.Condition

type Rep Condition Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.Condition

type Rep Condition = D1 ('MetaData "Condition" "Amazonka.Pinpoint.Types.Condition" "amazonka-pinpoint-2.0-GBFs9S7wa7bFiDe66NqAzt" 'False) (C1 ('MetaCons "Condition'" 'PrefixI 'True) (S1 ('MetaSel ('Just "conditions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [SimpleCondition])) :*: S1 ('MetaSel ('Just "operator") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Operator))))

newCondition :: Condition Source #

Create a value of Condition 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:conditions:Condition', condition_conditions - The conditions to evaluate for the activity.

$sel:operator:Condition', condition_operator - Specifies how to handle multiple conditions for the activity. For example, if you specify two conditions for an activity, whether both or only one of the conditions must be met for the activity to be performed.

condition_conditions :: Lens' Condition (Maybe [SimpleCondition]) Source #

The conditions to evaluate for the activity.

condition_operator :: Lens' Condition (Maybe Operator) Source #

Specifies how to handle multiple conditions for the activity. For example, if you specify two conditions for an activity, whether both or only one of the conditions must be met for the activity to be performed.