Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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
- data ListRules = ListRules' {}
- newListRules :: ListRules
- listRules_nextMarker :: Lens' ListRules (Maybe Text)
- listRules_limit :: Lens' ListRules (Maybe Natural)
- data ListRulesResponse = ListRulesResponse' {
- rules :: Maybe [RuleSummary]
- nextMarker :: Maybe Text
- httpStatus :: Int
- newListRulesResponse :: Int -> ListRulesResponse
- listRulesResponse_rules :: Lens' ListRulesResponse (Maybe [RuleSummary])
- listRulesResponse_nextMarker :: Lens' ListRulesResponse (Maybe Text)
- listRulesResponse_httpStatus :: Lens' ListRulesResponse Int
Creating a Request
See: newListRules
smart constructor.
ListRules' | |
|
Instances
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.
ListRulesResponse' | |
|
Instances
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_rules :: Lens' ListRulesResponse (Maybe [RuleSummary]) Source #
An array of RuleSummary objects.
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.