FraudDetector / Client / update_rule_version

update_rule_version#

FraudDetector.Client.update_rule_version(**kwargs)#

Updates a rule version resulting in a new rule version. Updates a rule version resulting in a new rule version (version 1, 2, 3 …).

See also: AWS API Documentation

Request Syntax

response = client.update_rule_version(
    rule={
        'detectorId': 'string',
        'ruleId': 'string',
        'ruleVersion': 'string'
    },
    description='string',
    expression='string',
    language='DETECTORPL',
    outcomes=[
        'string',
    ],
    tags=[
        {
            'key': 'string',
            'value': 'string'
        },
    ]
)
Parameters:
  • rule (dict) –

    [REQUIRED]

    The rule to update.

    • detectorId (string) – [REQUIRED]

      The detector for which the rule is associated.

    • ruleId (string) – [REQUIRED]

      The rule ID.

    • ruleVersion (string) – [REQUIRED]

      The rule version.

  • description (string) – The description.

  • expression (string) –

    [REQUIRED]

    The rule expression.

  • language (string) –

    [REQUIRED]

    The language.

  • outcomes (list) –

    [REQUIRED]

    The outcomes.

    • (string) –

  • tags (list) –

    The tags to assign to the rule version.

    • (dict) –

      A key and value pair.

      • key (string) – [REQUIRED]

        A tag key.

      • value (string) – [REQUIRED]

        A value assigned to a tag key.

Return type:

dict

Returns:

Response Syntax

{
    'rule': {
        'detectorId': 'string',
        'ruleId': 'string',
        'ruleVersion': 'string'
    }
}

Response Structure

  • (dict) –

    • rule (dict) –

      The new rule version that was created.

      • 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.ResourceNotFoundException

  • FraudDetector.Client.exceptions.InternalServerException

  • FraudDetector.Client.exceptions.ThrottlingException

  • FraudDetector.Client.exceptions.AccessDeniedException

  • FraudDetector.Client.exceptions.ConflictException