list_compliance_status
¶
list_compliance_status(
policy_id: PolicyId,
*,
config_overrides: Optional[FMSClientConfig] = 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/fms.py
1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 | |