create_rule
(**kwargs)¶Creates a rule for use with the specified detector.
See also: AWS API Documentation
Request Syntax
response = client.create_rule(
ruleId='string',
detectorId='string',
description='string',
expression='string',
language='DETECTORPL',
outcomes=[
'string',
],
tags=[
{
'key': 'string',
'value': 'string'
},
]
)
[REQUIRED]
The rule ID.
[REQUIRED]
The detector ID for the rule's parent detector.
[REQUIRED]
The rule expression.
[REQUIRED]
The language of the rule.
[REQUIRED]
The outcome or outcomes returned when the rule expression matches.
A collection of key and value pairs.
A key and value pair.
A tag key.
A value assigned to a tag key.
dict
Response Syntax
{
'rule': {
'detectorId': 'string',
'ruleId': 'string',
'ruleVersion': 'string'
}
}
Response Structure
(dict) --
rule (dict) --
The created rule.
detectorId (string) --
The detector for which the rule is associated.
ruleId (string) --
The rule ID.
ruleVersion (string) --
The rule version.
Exceptions
FraudDetector.Client.exceptions.ValidationException
FraudDetector.Client.exceptions.InternalServerException
FraudDetector.Client.exceptions.ThrottlingException
FraudDetector.Client.exceptions.AccessDeniedException