libZSservicesZSamazonka-pinpointZSamazonka-pinpoint
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.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

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

  • conditions :: Maybe [SimpleCondition]

    The conditions to evaluate for the activity.

Instances

Instances details
Eq Condition Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.Condition

Read Condition Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.Condition

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

NFData Condition Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.Condition

Methods

rnf :: Condition -> () #

Hashable Condition Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.Condition

ToJSON Condition Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.Condition

FromJSON 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" "libZSservicesZSamazonka-pinpointZSamazonka-pinpoint" 'False) (C1 ('MetaCons "Condition'" 'PrefixI 'True) (S1 ('MetaSel ('Just "operator") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Operator)) :*: S1 ('MetaSel ('Just "conditions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [SimpleCondition]))))

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

$sel:conditions:Condition', condition_conditions - 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.

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

The conditions to evaluate for the activity.