| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.FraudDetector.GetRules
Description
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.
Synopsis
- data GetRules = GetRules' {
- maxResults :: Maybe Natural
- nextToken :: Maybe Text
- ruleId :: Maybe Text
- ruleVersion :: Maybe Text
- detectorId :: Text
- newGetRules :: Text -> GetRules
- getRules_maxResults :: Lens' GetRules (Maybe Natural)
- getRules_nextToken :: Lens' GetRules (Maybe Text)
- getRules_ruleId :: Lens' GetRules (Maybe Text)
- getRules_ruleVersion :: Lens' GetRules (Maybe Text)
- getRules_detectorId :: Lens' GetRules Text
- data GetRulesResponse = GetRulesResponse' {
- nextToken :: Maybe Text
- ruleDetails :: Maybe [RuleDetail]
- httpStatus :: Int
- newGetRulesResponse :: Int -> GetRulesResponse
- getRulesResponse_nextToken :: Lens' GetRulesResponse (Maybe Text)
- getRulesResponse_ruleDetails :: Lens' GetRulesResponse (Maybe [RuleDetail])
- getRulesResponse_httpStatus :: Lens' GetRulesResponse Int
Creating a Request
See: newGetRules smart constructor.
Constructors
| GetRules' | |
Fields
| |
Instances
Create a value of GetRules 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:maxResults:GetRules', getRules_maxResults - The maximum number of rules to return for the request.
GetRules, getRules_nextToken - The next page token.
GetRules, getRules_ruleId - The rule ID.
GetRules, getRules_ruleVersion - The rule version.
GetRules, getRules_detectorId - The detector ID.
Request Lenses
getRules_maxResults :: Lens' GetRules (Maybe Natural) Source #
The maximum number of rules to return for the request.
Destructuring the Response
data GetRulesResponse Source #
See: newGetRulesResponse smart constructor.
Constructors
| GetRulesResponse' | |
Fields
| |
Instances
Arguments
| :: Int | |
| -> GetRulesResponse |
Create a value of GetRulesResponse 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:
GetRules, getRulesResponse_nextToken - The next page token to be used in subsequent requests.
$sel:ruleDetails:GetRulesResponse', getRulesResponse_ruleDetails - The details of the requested rule.
$sel:httpStatus:GetRulesResponse', getRulesResponse_httpStatus - The response's http status code.
Response Lenses
getRulesResponse_nextToken :: Lens' GetRulesResponse (Maybe Text) Source #
The next page token to be used in subsequent requests.
getRulesResponse_ruleDetails :: Lens' GetRulesResponse (Maybe [RuleDetail]) Source #
The details of the requested rule.
getRulesResponse_httpStatus :: Lens' GetRulesResponse Int Source #
The response's http status code.