libZSservicesZSamazonka-frauddetectorZSamazonka-frauddetector
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

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

Creating a Request

data GetRules Source #

See: newGetRules smart constructor.

Constructors

GetRules' 

Fields

Instances

Instances details
Eq GetRules Source # 
Instance details

Defined in Amazonka.FraudDetector.GetRules

Read GetRules Source # 
Instance details

Defined in Amazonka.FraudDetector.GetRules

Show GetRules Source # 
Instance details

Defined in Amazonka.FraudDetector.GetRules

Generic GetRules Source # 
Instance details

Defined in Amazonka.FraudDetector.GetRules

Associated Types

type Rep GetRules :: Type -> Type #

Methods

from :: GetRules -> Rep GetRules x #

to :: Rep GetRules x -> GetRules #

NFData GetRules Source # 
Instance details

Defined in Amazonka.FraudDetector.GetRules

Methods

rnf :: GetRules -> () #

Hashable GetRules Source # 
Instance details

Defined in Amazonka.FraudDetector.GetRules

Methods

hashWithSalt :: Int -> GetRules -> Int #

hash :: GetRules -> Int #

ToJSON GetRules Source # 
Instance details

Defined in Amazonka.FraudDetector.GetRules

AWSRequest GetRules Source # 
Instance details

Defined in Amazonka.FraudDetector.GetRules

Associated Types

type AWSResponse GetRules #

ToHeaders GetRules Source # 
Instance details

Defined in Amazonka.FraudDetector.GetRules

Methods

toHeaders :: GetRules -> [Header] #

ToPath GetRules Source # 
Instance details

Defined in Amazonka.FraudDetector.GetRules

ToQuery GetRules Source # 
Instance details

Defined in Amazonka.FraudDetector.GetRules

type Rep GetRules Source # 
Instance details

Defined in Amazonka.FraudDetector.GetRules

type Rep GetRules = D1 ('MetaData "GetRules" "Amazonka.FraudDetector.GetRules" "libZSservicesZSamazonka-frauddetectorZSamazonka-frauddetector" 'False) (C1 ('MetaCons "GetRules'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "ruleVersion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "ruleId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "detectorId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))
type AWSResponse GetRules Source # 
Instance details

Defined in Amazonka.FraudDetector.GetRules

newGetRules Source #

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:ruleVersion:GetRules', getRules_ruleVersion - The rule version.

$sel:ruleId:GetRules', getRules_ruleId - The rule ID.

$sel:nextToken:GetRules', getRules_nextToken - The next page token.

$sel:maxResults:GetRules', getRules_maxResults - The maximum number of rules to return for the request.

$sel:detectorId: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

Instances details
Eq GetRulesResponse Source # 
Instance details

Defined in Amazonka.FraudDetector.GetRules

Show GetRulesResponse Source # 
Instance details

Defined in Amazonka.FraudDetector.GetRules

Generic GetRulesResponse Source # 
Instance details

Defined in Amazonka.FraudDetector.GetRules

Associated Types

type Rep GetRulesResponse :: Type -> Type #

NFData GetRulesResponse Source # 
Instance details

Defined in Amazonka.FraudDetector.GetRules

Methods

rnf :: GetRulesResponse -> () #

type Rep GetRulesResponse Source # 
Instance details

Defined in Amazonka.FraudDetector.GetRules

type Rep GetRulesResponse = D1 ('MetaData "GetRulesResponse" "Amazonka.FraudDetector.GetRules" "libZSservicesZSamazonka-frauddetectorZSamazonka-frauddetector" 'False) (C1 ('MetaCons "GetRulesResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "ruleDetails") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [RuleDetail])) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newGetRulesResponse Source #

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:

$sel:ruleDetails:GetRulesResponse', getRulesResponse_ruleDetails - The details of the requested rule.

$sel:nextToken:GetRules', getRulesResponse_nextToken - The next page token to be used in subsequent requests.

$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_httpStatus :: Lens' GetRulesResponse Int Source #

The response's http status code.