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
- data Rule = Rule' {
- detectorId :: Text
- ruleId :: Text
- ruleVersion :: Text
- newRule :: Text -> Text -> Text -> Rule
- rule_detectorId :: Lens' Rule Text
- rule_ruleId :: Lens' Rule Text
- rule_ruleVersion :: Lens' Rule Text
Documentation
A rule.
See: newRule
smart constructor.
Rule' | |
|
Instances
Eq Rule Source # | |
Read Rule Source # | |
Show Rule Source # | |
Generic Rule Source # | |
NFData Rule Source # | |
Defined in Amazonka.FraudDetector.Types.Rule | |
Hashable Rule Source # | |
Defined in Amazonka.FraudDetector.Types.Rule | |
ToJSON Rule Source # | |
Defined in Amazonka.FraudDetector.Types.Rule | |
FromJSON Rule Source # | |
type Rep Rule Source # | |
Defined in Amazonka.FraudDetector.Types.Rule type Rep Rule = D1 ('MetaData "Rule" "Amazonka.FraudDetector.Types.Rule" "libZSservicesZSamazonka-frauddetectorZSamazonka-frauddetector" 'False) (C1 ('MetaCons "Rule'" 'PrefixI 'True) (S1 ('MetaSel ('Just "detectorId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "ruleId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "ruleVersion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))) |
Create a value of Rule
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:detectorId:Rule'
, rule_detectorId
- The detector for which the rule is associated.
$sel:ruleId:Rule'
, rule_ruleId
- The rule ID.
$sel:ruleVersion:Rule'
, rule_ruleVersion
- The rule version.