Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Synopsis
Documentation
Specifies the conditions to evaluate for an activity in a journey, and how to evaluate those conditions.
See: newCondition
smart constructor.
Condition' | |
|
Instances
Eq Condition Source # | |
Read Condition Source # | |
Show Condition Source # | |
Generic Condition Source # | |
NFData Condition Source # | |
Defined in Amazonka.Pinpoint.Types.Condition | |
Hashable Condition Source # | |
Defined in Amazonka.Pinpoint.Types.Condition | |
ToJSON Condition Source # | |
Defined in Amazonka.Pinpoint.Types.Condition | |
FromJSON Condition Source # | |
type Rep Condition Source # | |
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.