:doc:`Macie2 <../../macie2>` / Client / enable_macie

************
enable_macie
************



.. py:method:: Macie2.Client.enable_macie(**kwargs)

  

  Enables Amazon Macie and specifies the configuration settings for a Macie account.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/EnableMacie>`_  


  **Request Syntax**
  ::

    response = client.enable_macie(
        clientToken='string',
        findingPublishingFrequency='FIFTEEN_MINUTES'|'ONE_HOUR'|'SIX_HOURS',
        status='PAUSED'|'ENABLED'
    )
    
  :type clientToken: string
  :param clientToken: 

    A unique, case-sensitive token that you provide to ensure the idempotency of the request.

    This field is autopopulated if not provided.

  
  :type findingPublishingFrequency: string
  :param findingPublishingFrequency: 

    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).

    

  
  :type status: string
  :param status: 

    Specifies the new status for the account. To enable Amazon Macie and start all Macie activities for the account, set this value to ENABLED.

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 

      The request succeeded and there isn't any content to include in the body of the response (No Content).

      
  
  **Exceptions**
  
  *   :py:class:`Macie2.Client.exceptions.ValidationException`

  
  *   :py:class:`Macie2.Client.exceptions.InternalServerException`

  
  *   :py:class:`Macie2.Client.exceptions.ServiceQuotaExceededException`

  
  *   :py:class:`Macie2.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`Macie2.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`Macie2.Client.exceptions.ThrottlingException`

  
  *   :py:class:`Macie2.Client.exceptions.ConflictException`

  