:doc:`SecurityLake <../../securitylake>` / Client / create_data_lake_exception_subscription

***************************************
create_data_lake_exception_subscription
***************************************



.. py:method:: SecurityLake.Client.create_data_lake_exception_subscription(**kwargs)

  

  Creates the specified notification subscription in Amazon Security Lake for the organization you specify. The notification subscription is created for exceptions that cannot be resolved by Security Lake automatically.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/securitylake-2018-05-10/CreateDataLakeExceptionSubscription>`_  


  **Request Syntax**
  ::

    response = client.create_data_lake_exception_subscription(
        exceptionTimeToLive=123,
        notificationEndpoint='string',
        subscriptionProtocol='string'
    )
    
  :type exceptionTimeToLive: integer
  :param exceptionTimeToLive: 

    The expiration period and time-to-live (TTL). It is the duration of time until which the exception message remains.

    

  
  :type notificationEndpoint: string
  :param notificationEndpoint: **[REQUIRED]** 

    The Amazon Web Services account where you want to receive exception notifications.

    

  
  :type subscriptionProtocol: string
  :param subscriptionProtocol: **[REQUIRED]** 

    The subscription protocol to which exception notifications are posted.

    

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`SecurityLake.Client.exceptions.BadRequestException`

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

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

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

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

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

  