NetworkFirewall / Client / list_firewall_policies
list_firewall_policies#
- NetworkFirewall.Client.list_firewall_policies(**kwargs)#
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.
See also: AWS API Documentation
Request Syntax
response = client.list_firewall_policies( NextToken='string', MaxResults=123 )
- Parameters:
NextToken (string) – 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 aNextToken
value in the response. To retrieve the next batch of objects, use the token returned from the prior request in your next request.MaxResults (integer) – 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.
- Return type:
dict
- Returns:
Response Syntax
{ 'NextToken': 'string', 'FirewallPolicies': [ { 'Name': 'string', 'Arn': 'string' }, ] }
Response Structure
(dict) –
NextToken (string) –
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 aNextToken
value in the response. To retrieve the next batch of objects, use the token returned from the prior request in your next request.FirewallPolicies (list) –
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.
(dict) –
High-level information about a firewall policy, returned by operations like create and describe. You can use the information provided in the metadata to retrieve and manage a firewall policy. You can retrieve all objects for a firewall policy by calling DescribeFirewallPolicy.
Name (string) –
The descriptive name of the firewall policy. You can’t change the name of a firewall policy after you create it.
Arn (string) –
The Amazon Resource Name (ARN) of the firewall policy.
Exceptions