Copyright | (c) 2013-2018 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 |
Language | Haskell2010 |
Returns an array of RuleSummary
objects.
This operation returns paginated results.
Synopsis
- listRules :: ListRules
- data ListRules
- lrNextMarker :: Lens' ListRules (Maybe Text)
- lrLimit :: Lens' ListRules (Maybe Natural)
- listRulesResponse :: Int -> ListRulesResponse
- data ListRulesResponse
- lrrsRules :: Lens' ListRulesResponse [RuleSummary]
- lrrsNextMarker :: Lens' ListRulesResponse (Maybe Text)
- lrrsResponseStatus :: Lens' ListRulesResponse Int
Creating a Request
listRules :: ListRules Source #
Creates a value of ListRules
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
lrNextMarker
- If you specify a value forLimit
and you have moreRules
than the value ofLimit
, AWS WAF returns aNextMarker
value in the response that allows you to list another group ofRules
. For the second and subsequentListRules
requests, specify the value ofNextMarker
from the previous response to get information about another batch ofRules
.lrLimit
- Specifies the number ofRules
that you want AWS WAF to return for this request. If you have moreRules
than the number that you specify forLimit
, the response includes aNextMarker
value that you can use to get another batch ofRules
.
See: listRules
smart constructor.
Instances
Request Lenses
lrNextMarker :: 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
.
lrLimit :: 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
Creates a value of ListRulesResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
lrrsRules
- An array ofRuleSummary
objects.lrrsNextMarker
- If you have moreRules
than the number that you specified forLimit
in the request, the response includes aNextMarker
value. To list moreRules
, submit anotherListRules
request, and specify theNextMarker
value from the response in theNextMarker
value in the next request.lrrsResponseStatus
- -- | The response status code.
data ListRulesResponse Source #
See: listRulesResponse
smart constructor.
Instances
Response Lenses
lrrsRules :: Lens' ListRulesResponse [RuleSummary] Source #
An array of RuleSummary
objects.
lrrsNextMarker :: 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.
lrrsResponseStatus :: Lens' ListRulesResponse Int Source #
- - | The response status code.