libZSservicesZSamazonka-waf-regionalZSamazonka-waf-regional
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.WAFRegional.ListRules

Description

This is AWS WAF Classic documentation. For more information, see AWS WAF Classic in the developer guide.

For the latest version of AWS WAF, use the AWS WAFV2 API and see the AWS WAF Developer Guide. With the latest version, AWS WAF has a single set of endpoints for regional and global use.

Returns an array of RuleSummary objects.

Synopsis

Creating a Request

data ListRules Source #

See: newListRules smart constructor.

Constructors

ListRules' 

Fields

  • nextMarker :: Maybe Text

    If you specify a value for Limit and you have more Rules than the value of Limit, AWS WAF returns a NextMarker value in the response that allows you to list another group of Rules. For the second and subsequent ListRules requests, specify the value of NextMarker from the previous response to get information about another batch of Rules.

  • limit :: Maybe Natural

    Specifies the number of Rules that you want AWS WAF to return for this request. If you have more Rules than the number that you specify for Limit, the response includes a NextMarker value that you can use to get another batch of Rules.

Instances

Instances details
Eq ListRules Source # 
Instance details

Defined in Amazonka.WAFRegional.ListRules

Read ListRules Source # 
Instance details

Defined in Amazonka.WAFRegional.ListRules

Show ListRules Source # 
Instance details

Defined in Amazonka.WAFRegional.ListRules

Generic ListRules Source # 
Instance details

Defined in Amazonka.WAFRegional.ListRules

Associated Types

type Rep ListRules :: Type -> Type #

NFData ListRules Source # 
Instance details

Defined in Amazonka.WAFRegional.ListRules

Methods

rnf :: ListRules -> () #

Hashable ListRules Source # 
Instance details

Defined in Amazonka.WAFRegional.ListRules

ToJSON ListRules Source # 
Instance details

Defined in Amazonka.WAFRegional.ListRules

AWSRequest ListRules Source # 
Instance details

Defined in Amazonka.WAFRegional.ListRules

Associated Types

type AWSResponse ListRules #

ToHeaders ListRules Source # 
Instance details

Defined in Amazonka.WAFRegional.ListRules

Methods

toHeaders :: ListRules -> [Header] #

ToPath ListRules Source # 
Instance details

Defined in Amazonka.WAFRegional.ListRules

ToQuery ListRules Source # 
Instance details

Defined in Amazonka.WAFRegional.ListRules

type Rep ListRules Source # 
Instance details

Defined in Amazonka.WAFRegional.ListRules

type Rep ListRules = D1 ('MetaData "ListRules" "Amazonka.WAFRegional.ListRules" "libZSservicesZSamazonka-waf-regionalZSamazonka-waf-regional" 'False) (C1 ('MetaCons "ListRules'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextMarker") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "limit") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural))))
type AWSResponse ListRules Source # 
Instance details

Defined in Amazonka.WAFRegional.ListRules

newListRules :: ListRules Source #

Create a value of ListRules 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:nextMarker:ListRules', listRules_nextMarker - If you specify a value for Limit and you have more Rules than the value of Limit, AWS WAF returns a NextMarker value in the response that allows you to list another group of Rules. For the second and subsequent ListRules requests, specify the value of NextMarker from the previous response to get information about another batch of Rules.

$sel:limit:ListRules', listRules_limit - Specifies the number of Rules that you want AWS WAF to return for this request. If you have more Rules than the number that you specify for Limit, the response includes a NextMarker value that you can use to get another batch of Rules.

Request Lenses

listRules_nextMarker :: Lens' ListRules (Maybe Text) Source #

If you specify a value for Limit and you have more Rules than the value of Limit, AWS WAF returns a NextMarker value in the response that allows you to list another group of Rules. For the second and subsequent ListRules requests, specify the value of NextMarker from the previous response to get information about another batch of Rules.

listRules_limit :: Lens' ListRules (Maybe Natural) Source #

Specifies the number of Rules that you want AWS WAF to return for this request. If you have more Rules than the number that you specify for Limit, the response includes a NextMarker value that you can use to get another batch of Rules.

Destructuring the Response

data ListRulesResponse Source #

See: newListRulesResponse smart constructor.

Constructors

ListRulesResponse' 

Fields

  • rules :: Maybe [RuleSummary]

    An array of RuleSummary objects.

  • nextMarker :: Maybe Text

    If you have more Rules than the number that you specified for Limit in the request, the response includes a NextMarker value. To list more Rules, submit another ListRules request, and specify the NextMarker value from the response in the NextMarker value in the next request.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq ListRulesResponse Source # 
Instance details

Defined in Amazonka.WAFRegional.ListRules

Read ListRulesResponse Source # 
Instance details

Defined in Amazonka.WAFRegional.ListRules

Show ListRulesResponse Source # 
Instance details

Defined in Amazonka.WAFRegional.ListRules

Generic ListRulesResponse Source # 
Instance details

Defined in Amazonka.WAFRegional.ListRules

Associated Types

type Rep ListRulesResponse :: Type -> Type #

NFData ListRulesResponse Source # 
Instance details

Defined in Amazonka.WAFRegional.ListRules

Methods

rnf :: ListRulesResponse -> () #

type Rep ListRulesResponse Source # 
Instance details

Defined in Amazonka.WAFRegional.ListRules

type Rep ListRulesResponse = D1 ('MetaData "ListRulesResponse" "Amazonka.WAFRegional.ListRules" "libZSservicesZSamazonka-waf-regionalZSamazonka-waf-regional" 'False) (C1 ('MetaCons "ListRulesResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "rules") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [RuleSummary])) :*: (S1 ('MetaSel ('Just "nextMarker") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newListRulesResponse Source #

Create a value of ListRulesResponse 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:rules:ListRulesResponse', listRulesResponse_rules - An array of RuleSummary objects.

$sel:nextMarker:ListRules', listRulesResponse_nextMarker - If you have more Rules than the number that you specified for Limit in the request, the response includes a NextMarker value. To list more Rules, submit another ListRules request, and specify the NextMarker value from the response in the NextMarker value in the next request.

$sel:httpStatus:ListRulesResponse', listRulesResponse_httpStatus - The response's http status code.

Response Lenses

listRulesResponse_nextMarker :: Lens' ListRulesResponse (Maybe Text) Source #

If you have more Rules than the number that you specified for Limit in the request, the response includes a NextMarker value. To list more Rules, submit another ListRules request, and specify the NextMarker value from the response in the NextMarker value in the next request.

listRulesResponse_httpStatus :: Lens' ListRulesResponse Int Source #

The response's http status code.