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 PolicySummary
objects in the response.
Synopsis
- listPolicies :: ListPolicies
- data ListPolicies
- lpNextToken :: Lens' ListPolicies (Maybe Text)
- lpMaxResults :: Lens' ListPolicies (Maybe Natural)
- listPoliciesResponse :: Int -> ListPoliciesResponse
- data ListPoliciesResponse
- lprsNextToken :: Lens' ListPoliciesResponse (Maybe Text)
- lprsPolicyList :: Lens' ListPoliciesResponse [PolicySummary]
- lprsResponseStatus :: Lens' ListPoliciesResponse Int
Creating a Request
listPolicies :: ListPolicies Source #
Creates a value of ListPolicies
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
lpNextToken
- If you specify a value forMaxResults
and you have morePolicySummary
objects than the number that you specify forMaxResults
, AWS Firewall Manager returns aNextToken
value in the response that allows you to list another group ofPolicySummary
objects. For the second and subsequentListPolicies
requests, specify the value ofNextToken
from the previous response to get information about another batch ofPolicySummary
objects.lpMaxResults
- Specifies the number ofPolicySummary
objects that you want AWS Firewall Manager to return for this request. If you have morePolicySummary
objects than the number that you specify forMaxResults
, the response includes aNextToken
value that you can use to get another batch ofPolicySummary
objects.
data ListPolicies Source #
See: listPolicies
smart constructor.
Instances
Request Lenses
lpNextToken :: Lens' ListPolicies (Maybe Text) Source #
If you specify a value for MaxResults
and you have more PolicySummary
objects than the number that you specify for MaxResults
, AWS Firewall Manager returns a NextToken
value in the response that allows you to list another group of PolicySummary
objects. For the second and subsequent ListPolicies
requests, specify the value of NextToken
from the previous response to get information about another batch of PolicySummary
objects.
lpMaxResults :: Lens' ListPolicies (Maybe Natural) Source #
Specifies the number of PolicySummary
objects that you want AWS Firewall Manager to return for this request. If you have more PolicySummary
objects than the number that you specify for MaxResults
, the response includes a NextToken
value that you can use to get another batch of PolicySummary
objects.
Destructuring the Response
Creates a value of ListPoliciesResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
lprsNextToken
- If you have morePolicySummary
objects than the number that you specified forMaxResults
in the request, the response includes aNextToken
value. To list morePolicySummary
objects, submit anotherListPolicies
request, and specify theNextToken
value from the response in theNextToken
value in the next request.lprsPolicyList
- An array ofPolicySummary
objects.lprsResponseStatus
- -- | The response status code.
data ListPoliciesResponse Source #
See: listPoliciesResponse
smart constructor.
Instances
Response Lenses
lprsNextToken :: Lens' ListPoliciesResponse (Maybe Text) Source #
If you have more PolicySummary
objects than the number that you specified for MaxResults
in the request, the response includes a NextToken
value. To list more PolicySummary
objects, submit another ListPolicies
request, and specify the NextToken
value from the response in the NextToken
value in the next request.
lprsPolicyList :: Lens' ListPoliciesResponse [PolicySummary] Source #
An array of PolicySummary
objects.
lprsResponseStatus :: Lens' ListPoliciesResponse Int Source #
- - | The response status code.