list_compliance_status
async
¶
list_compliance_status(
policy_id: PolicyId,
*,
config_overrides: Optional[AsyncFMSClientConfig] = None,
next_token: Optional[PaginationToken] = None,
max_results: Optional[PaginationMaxResults] = None,
) -> ListComplianceStatusResponse
Returns an array of PolicyComplianceStatus objects. Use PolicyComplianceStatus to get a summary of which member accounts are protected by the specified policy.
Parameters:
-
policy_id(PolicyId) –The ID of the Firewall Manager policy that you want the details for.
-
next_token(Optional[PaginationToken], default:None) –If you specify a value for
MaxResultsand you have morePolicyComplianceStatusobjects than the number that you specify forMaxResults, Firewall Manager returns aNextTokenvalue in the response that allows you to list another group ofPolicyComplianceStatusobjects. For the second and subsequentListComplianceStatusrequests, specify the value ofNextTokenfrom the previous response to get information about another batch ofPolicyComplianceStatusobjects. -
max_results(Optional[PaginationMaxResults], default:None) –Specifies the number of
PolicyComplianceStatusobjects that you want Firewall Manager to return for this request. If you have morePolicyComplianceStatusobjects than the number that you specify forMaxResults, the response includes aNextTokenvalue that you can use to get another batch ofPolicyComplianceStatusobjects.
Raises:
-
InternalErrorException–The operation failed because of a system problem, even though the request was valid. Retry your request.
-
ResourceNotFoundException–The specified resource was not found.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_fms/_services/async_fms.py
1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 | |