list_policies
¶
list_policies(
*,
config_overrides: Optional[FMSClientConfig] = None,
next_token: Optional[PaginationToken] = None,
max_results: Optional[PaginationMaxResults] = None,
) -> ListPoliciesResponse
Returns an array of PolicySummary objects.
Parameters:
-
next_token(Optional[PaginationToken], default:None) –If you specify a value for
MaxResultsand you have morePolicySummaryobjects than the number that you specify forMaxResults, 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. -
max_results(Optional[PaginationMaxResults], default:None) –Specifies the number of
PolicySummaryobjects that you want 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.
Raises:
-
InternalErrorException–The operation failed because of a system problem, even though the request was valid. Retry your request.
-
InvalidOperationException–The operation failed because there was nothing to do or the operation wasn't possible. For example, you might have submitted an
AssociateAdminAccountrequest for an account ID that was already set as the Firewall Manager administrator. Or you might have tried to access a Region that's disabled by default, and that you need to enable for the Firewall Manager administrator account and for Organizations before you can access it. -
LimitExceededException–The operation exceeds a resource limit, for example, the maximum number of
policyobjects that you can create for an Amazon Web Services account. For more information, see Firewall Manager Limits in the WAF Developer Guide. -
ResourceNotFoundException–The specified resource was not found.
-
UnknownServiceError–The service returned an error code this client does not model.