Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
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
FromJSON Condition Source # | |
ToJSON Condition Source # | |
Defined in Amazonka.Pinpoint.Types.Condition | |
Generic Condition Source # | |
Read Condition Source # | |
Show Condition Source # | |
NFData Condition Source # | |
Defined in Amazonka.Pinpoint.Types.Condition | |
Eq Condition Source # | |
Hashable Condition Source # | |
Defined in Amazonka.Pinpoint.Types.Condition | |
type Rep Condition Source # | |
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.