libZSservicesZSamazonka-frauddetectorZSamazonka-frauddetector
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.FraudDetector.CreateRule

Description

Creates a rule for use with the specified detector.

Synopsis

Creating a Request

data CreateRule Source #

See: newCreateRule smart constructor.

Constructors

CreateRule' 

Fields

Instances

Instances details
Eq CreateRule Source # 
Instance details

Defined in Amazonka.FraudDetector.CreateRule

Show CreateRule Source # 
Instance details

Defined in Amazonka.FraudDetector.CreateRule

Generic CreateRule Source # 
Instance details

Defined in Amazonka.FraudDetector.CreateRule

Associated Types

type Rep CreateRule :: Type -> Type #

NFData CreateRule Source # 
Instance details

Defined in Amazonka.FraudDetector.CreateRule

Methods

rnf :: CreateRule -> () #

Hashable CreateRule Source # 
Instance details

Defined in Amazonka.FraudDetector.CreateRule

ToJSON CreateRule Source # 
Instance details

Defined in Amazonka.FraudDetector.CreateRule

AWSRequest CreateRule Source # 
Instance details

Defined in Amazonka.FraudDetector.CreateRule

Associated Types

type AWSResponse CreateRule #

ToHeaders CreateRule Source # 
Instance details

Defined in Amazonka.FraudDetector.CreateRule

Methods

toHeaders :: CreateRule -> [Header] #

ToPath CreateRule Source # 
Instance details

Defined in Amazonka.FraudDetector.CreateRule

ToQuery CreateRule Source # 
Instance details

Defined in Amazonka.FraudDetector.CreateRule

type Rep CreateRule Source # 
Instance details

Defined in Amazonka.FraudDetector.CreateRule

type AWSResponse CreateRule Source # 
Instance details

Defined in Amazonka.FraudDetector.CreateRule

newCreateRule Source #

Create a value of CreateRule 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:description:CreateRule', createRule_description - The rule description.

$sel:tags:CreateRule', createRule_tags - A collection of key and value pairs.

$sel:ruleId:CreateRule', createRule_ruleId - The rule ID.

$sel:detectorId:CreateRule', createRule_detectorId - The detector ID for the rule's parent detector.

$sel:expression:CreateRule', createRule_expression - The rule expression.

$sel:language:CreateRule', createRule_language - The language of the rule.

$sel:outcomes:CreateRule', createRule_outcomes - The outcome or outcomes returned when the rule expression matches.

Request Lenses

createRule_tags :: Lens' CreateRule (Maybe [Tag]) Source #

A collection of key and value pairs.

createRule_detectorId :: Lens' CreateRule Text Source #

The detector ID for the rule's parent detector.

createRule_language :: Lens' CreateRule Language Source #

The language of the rule.

createRule_outcomes :: Lens' CreateRule (NonEmpty Text) Source #

The outcome or outcomes returned when the rule expression matches.

Destructuring the Response

data CreateRuleResponse Source #

See: newCreateRuleResponse smart constructor.

Constructors

CreateRuleResponse' 

Fields

Instances

Instances details
Eq CreateRuleResponse Source # 
Instance details

Defined in Amazonka.FraudDetector.CreateRule

Read CreateRuleResponse Source # 
Instance details

Defined in Amazonka.FraudDetector.CreateRule

Show CreateRuleResponse Source # 
Instance details

Defined in Amazonka.FraudDetector.CreateRule

Generic CreateRuleResponse Source # 
Instance details

Defined in Amazonka.FraudDetector.CreateRule

Associated Types

type Rep CreateRuleResponse :: Type -> Type #

NFData CreateRuleResponse Source # 
Instance details

Defined in Amazonka.FraudDetector.CreateRule

Methods

rnf :: CreateRuleResponse -> () #

type Rep CreateRuleResponse Source # 
Instance details

Defined in Amazonka.FraudDetector.CreateRule

type Rep CreateRuleResponse = D1 ('MetaData "CreateRuleResponse" "Amazonka.FraudDetector.CreateRule" "libZSservicesZSamazonka-frauddetectorZSamazonka-frauddetector" 'False) (C1 ('MetaCons "CreateRuleResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "rule") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Rule)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newCreateRuleResponse Source #

Create a value of CreateRuleResponse 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:rule:CreateRuleResponse', createRuleResponse_rule - The created rule.

$sel:httpStatus:CreateRuleResponse', createRuleResponse_httpStatus - The response's http status code.

Response Lenses