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

******************************
update_subscriber_notification
******************************



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

  

  Updates an existing notification method for the subscription (SQS or HTTPs endpoint) or switches the notification subscription endpoint for a subscriber.

  

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


  **Request Syntax**
  ::

    response = client.update_subscriber_notification(
        configuration={
            'httpsNotificationConfiguration': {
                'authorizationApiKeyName': 'string',
                'authorizationApiKeyValue': 'string',
                'endpoint': 'string',
                'httpMethod': 'POST'|'PUT',
                'targetRoleArn': 'string'
            },
            'sqsNotificationConfiguration': {}
            
        },
        subscriberId='string'
    )
    
  :type configuration: dict
  :param configuration: **[REQUIRED]** 

    The configuration for subscriber notification.

    .. note::    This is a Tagged Union structure. Only one of the     following top level keys can be set: ``httpsNotificationConfiguration``, ``sqsNotificationConfiguration``. 

  
    - **httpsNotificationConfiguration** *(dict) --* 

      The configurations used for HTTPS subscriber notification.

      

    
      - **authorizationApiKeyName** *(string) --* 

        The key name for the notification subscription.

        

      
      - **authorizationApiKeyValue** *(string) --* 

        The key value for the notification subscription.

        

      
      - **endpoint** *(string) --* **[REQUIRED]** 

        The subscription endpoint in Security Lake. If you prefer notification with an HTTPs endpoint, populate this field.

        

      
      - **httpMethod** *(string) --* 

        The HTTPS method used for the notification subscription.

        

      
      - **targetRoleArn** *(string) --* **[REQUIRED]** 

        The Amazon Resource Name (ARN) of the EventBridge API destinations IAM role that you created. For more information about ARNs and how to use them in policies, see `Managing data access <https://docs.aws.amazon.com//security-lake/latest/userguide/subscriber-data-access.html>`__ and `Amazon Web Services Managed Policies <https://docs.aws.amazon.com/security-lake/latest/userguide/security-iam-awsmanpol.html>`__ in the *Amazon Security Lake User Guide*.

        

      
    
    - **sqsNotificationConfiguration** *(dict) --* 

      The configurations for SQS subscriber notification.

      

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

    The subscription ID for which the subscription notification is specified.

    

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

    
    ::

      {
          'subscriberEndpoint': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **subscriberEndpoint** *(string) --* 

        The subscriber endpoint to which exception messages are posted.

        
  
  **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`

  