FraudDetector / Client / delete_rule

delete_rule#

FraudDetector.Client.delete_rule(**kwargs)#

Deletes the rule. You cannot delete a rule if it is used by an ACTIVE or INACTIVE detector version.

When you delete a rule, Amazon Fraud Detector permanently deletes that rule and the data is no longer stored in Amazon Fraud Detector.

See also: AWS API Documentation

Request Syntax

response = client.delete_rule(
    rule={
        'detectorId': 'string',
        'ruleId': 'string',
        'ruleVersion': 'string'
    }
)
Parameters:

rule (dict) –

[REQUIRED]

A rule.

  • detectorId (string) – [REQUIRED]

    The detector for which the rule is associated.

  • ruleId (string) – [REQUIRED]

    The rule ID.

  • ruleVersion (string) – [REQUIRED]

    The rule version.

Return type:

dict

Returns:

Response Syntax

{}

Response Structure

  • (dict) –

Exceptions

  • FraudDetector.Client.exceptions.ConflictException

  • FraudDetector.Client.exceptions.ValidationException

  • FraudDetector.Client.exceptions.InternalServerException

  • FraudDetector.Client.exceptions.ThrottlingException

  • FraudDetector.Client.exceptions.AccessDeniedException