:doc:`CognitoSync <../../cognito-sync>` / Client / get_cognito_events

******************
get_cognito_events
******************



.. py:method:: CognitoSync.Client.get_cognito_events(**kwargs)

  

  Gets the events and the corresponding Lambda functions associated with an identity pool.

  

  This API can only be called with developer credentials. You cannot call this API with the temporary user credentials provided by Cognito Identity.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/cognito-sync-2014-06-30/GetCognitoEvents>`_  


  **Request Syntax**
  ::

    response = client.get_cognito_events(
        IdentityPoolId='string'
    )
    
  :type IdentityPoolId: string
  :param IdentityPoolId: **[REQUIRED]** 

    The Cognito Identity Pool ID for the request

    

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

    
    ::

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

    

    - *(dict) --* 

      The response from the GetCognitoEvents request

      
      

      - **Events** *(dict) --* 

        The Cognito Events returned from the GetCognitoEvents request

        
        

        - *(string) --* 
          

          - *(string) --* 
    
  
  
  **Exceptions**
  
  *   :py:class:`CognitoSync.Client.exceptions.InvalidParameterException`

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

  
  *   :py:class:`CognitoSync.Client.exceptions.NotAuthorizedException`

  
  *   :py:class:`CognitoSync.Client.exceptions.InternalErrorException`

  
  *   :py:class:`CognitoSync.Client.exceptions.TooManyRequestsException`

  