enable_macie
async
¶
enable_macie(
*,
config_overrides: Optional[AsyncMacie2ClientConfig] = None,
client_token: Optional[__string] = None,
finding_publishing_frequency: Optional[FindingPublishingFrequency] = None,
status: Optional[MacieStatus] = None,
) -> EnableMacieResponse
Enables Amazon Macie and specifies the configuration settings for a Macie account.
Parameters:
-
client_token(Optional[__string], default:None) –A unique, case-sensitive token that you provide to ensure the idempotency of the request.
-
finding_publishing_frequency(Optional[FindingPublishingFrequency], default:None) –Specifies how often to publish updates to policy findings for the account. This includes publishing updates to Security Hub and Amazon EventBridge (formerly Amazon CloudWatch Events).
-
status(Optional[MacieStatus], default:None) –Specifies the new status for the account. To enable Amazon Macie and start all Macie activities for the account, set this value to ENABLED.
Raises:
-
AccessDeniedException–Provides information about an error that occurred due to insufficient access to a specified resource.
-
ConflictException–Provides information about an error that occurred due to a versioning conflict for a specified resource.
-
InternalServerException–Provides information about an error that occurred due to an unknown internal server error, exception, or failure.
-
ResourceNotFoundException–Provides information about an error that occurred because a specified resource wasn't found.
-
ServiceQuotaExceededException–Provides information about an error that occurred due to one or more service quotas for an account.
-
ThrottlingException–Provides information about an error that occurred because too many requests were sent during a certain amount of time.
-
ValidationException–Provides information about an error that occurred due to a syntax error in a request.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_macie2/_services/async_macie2.py
1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 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 | |