get_rules
async
¶
get_rules(
detector_id: identifier,
*,
config_overrides: Optional[AsyncFraudDetectorClientConfig] = None,
rule_id: Optional[identifier] = None,
rule_version: Optional[wholeNumberVersionString] = None,
next_token: Optional[string] = None,
max_results: Optional[RulesMaxResults] = None,
) -> GetRulesResult
Get all rules for a detector (paginated) if ruleId and ruleVersion are not specified. Gets all rules for the detector and the ruleId if present (paginated). Gets a specific rule if both the ruleId and the ruleVersion are specified.
This is a paginated API. Providing null maxResults results in retrieving maximum of 100 records per page. If you provide maxResults the value must be between 50 and 100. To get the next page result, a provide a pagination token from GetRulesResult as part of your request. Null pagination token fetches the records from the beginning.
Parameters:
-
rule_id(Optional[identifier], default:None) –The rule ID.
-
detector_id(identifier) –The detector ID.
-
rule_version(Optional[wholeNumberVersionString], default:None) –The rule version.
-
next_token(Optional[string], default:None) –The next page token.
-
max_results(Optional[RulesMaxResults], default:None) –The maximum number of rules to return for the request.
Raises:
-
AccessDeniedException–An exception indicating Amazon Fraud Detector does not have the needed permissions. This can occur if you submit a request, such as
PutExternalModel, that specifies a role that is not in your account. -
InternalServerException–An exception indicating an internal server error.
-
ResourceNotFoundException–An exception indicating the specified resource was not found.
-
ThrottlingException–An exception indicating a throttling error.
-
ValidationException–An exception indicating a specified value is not allowed.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_frauddetector/_services/async_fraud_detector.py
3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 | |