| 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 |
Network.AWS.FMS.ListPolicies
Description
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 forMaxResultsand you have morePolicySummaryobjects than the number that you specify forMaxResults, AWS Firewall Manager returns aNextTokenvalue in the response that allows you to list another group ofPolicySummaryobjects. For the second and subsequentListPoliciesrequests, specify the value ofNextTokenfrom the previous response to get information about another batch ofPolicySummaryobjects.lpMaxResults- Specifies the number ofPolicySummaryobjects that you want AWS Firewall Manager to return for this request. If you have morePolicySummaryobjects than the number that you specify forMaxResults, the response includes aNextTokenvalue that you can use to get another batch ofPolicySummaryobjects.
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
Arguments
| :: Int | |
| -> ListPoliciesResponse |
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 morePolicySummaryobjects than the number that you specified forMaxResultsin the request, the response includes aNextTokenvalue. To list morePolicySummaryobjects, submit anotherListPoliciesrequest, and specify theNextTokenvalue from the response in theNextTokenvalue in the next request.lprsPolicyList- An array ofPolicySummaryobjects.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.