| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.NetworkFirewall.ListFirewallPolicies
Description
Retrieves the metadata for the firewall policies that you have defined. Depending on your setting for max results and the number of firewall policies, a single call might not return the full list.
This operation returns paginated results.
Synopsis
- data ListFirewallPolicies = ListFirewallPolicies' {}
- newListFirewallPolicies :: ListFirewallPolicies
- listFirewallPolicies_maxResults :: Lens' ListFirewallPolicies (Maybe Natural)
- listFirewallPolicies_nextToken :: Lens' ListFirewallPolicies (Maybe Text)
- data ListFirewallPoliciesResponse = ListFirewallPoliciesResponse' {}
- newListFirewallPoliciesResponse :: Int -> ListFirewallPoliciesResponse
- listFirewallPoliciesResponse_firewallPolicies :: Lens' ListFirewallPoliciesResponse (Maybe [FirewallPolicyMetadata])
- listFirewallPoliciesResponse_nextToken :: Lens' ListFirewallPoliciesResponse (Maybe Text)
- listFirewallPoliciesResponse_httpStatus :: Lens' ListFirewallPoliciesResponse Int
Creating a Request
data ListFirewallPolicies Source #
See: newListFirewallPolicies smart constructor.
Constructors
| ListFirewallPolicies' | |
Fields
| |
Instances
newListFirewallPolicies :: ListFirewallPolicies Source #
Create a value of ListFirewallPolicies 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:maxResults:ListFirewallPolicies', listFirewallPolicies_maxResults - The maximum number of objects that you want Network Firewall to return
for this request. If more objects are available, in the response,
Network Firewall provides a NextToken value that you can use in a
subsequent call to get the next batch of objects.
ListFirewallPolicies, listFirewallPolicies_nextToken - When you request a list of objects with a MaxResults setting, if the
number of objects that are still available for retrieval exceeds the
maximum you requested, Network Firewall returns a NextToken value in
the response. To retrieve the next batch of objects, use the token
returned from the prior request in your next request.
Request Lenses
listFirewallPolicies_maxResults :: Lens' ListFirewallPolicies (Maybe Natural) Source #
The maximum number of objects that you want Network Firewall to return
for this request. If more objects are available, in the response,
Network Firewall provides a NextToken value that you can use in a
subsequent call to get the next batch of objects.
listFirewallPolicies_nextToken :: Lens' ListFirewallPolicies (Maybe Text) Source #
When you request a list of objects with a MaxResults setting, if the
number of objects that are still available for retrieval exceeds the
maximum you requested, Network Firewall returns a NextToken value in
the response. To retrieve the next batch of objects, use the token
returned from the prior request in your next request.
Destructuring the Response
data ListFirewallPoliciesResponse Source #
See: newListFirewallPoliciesResponse smart constructor.
Constructors
| ListFirewallPoliciesResponse' | |
Fields
| |
Instances
newListFirewallPoliciesResponse Source #
Create a value of ListFirewallPoliciesResponse 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:firewallPolicies:ListFirewallPoliciesResponse', listFirewallPoliciesResponse_firewallPolicies - The metadata for the firewall policies. Depending on your setting for
max results and the number of firewall policies that you have, this
might not be the full list.
ListFirewallPolicies, listFirewallPoliciesResponse_nextToken - When you request a list of objects with a MaxResults setting, if the
number of objects that are still available for retrieval exceeds the
maximum you requested, Network Firewall returns a NextToken value in
the response. To retrieve the next batch of objects, use the token
returned from the prior request in your next request.
$sel:httpStatus:ListFirewallPoliciesResponse', listFirewallPoliciesResponse_httpStatus - The response's http status code.
Response Lenses
listFirewallPoliciesResponse_firewallPolicies :: Lens' ListFirewallPoliciesResponse (Maybe [FirewallPolicyMetadata]) Source #
The metadata for the firewall policies. Depending on your setting for max results and the number of firewall policies that you have, this might not be the full list.
listFirewallPoliciesResponse_nextToken :: Lens' ListFirewallPoliciesResponse (Maybe Text) Source #
When you request a list of objects with a MaxResults setting, if the
number of objects that are still available for retrieval exceeds the
maximum you requested, Network Firewall returns a NextToken value in
the response. To retrieve the next batch of objects, use the token
returned from the prior request in your next request.
listFirewallPoliciesResponse_httpStatus :: Lens' ListFirewallPoliciesResponse Int Source #
The response's http status code.