:doc:`CloudFront <../../cloudfront>` / Client / get_connection_function

***********************
get_connection_function
***********************



.. py:method:: CloudFront.Client.get_connection_function(**kwargs)

  

  Gets a connection function.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetConnectionFunction>`_  


  **Request Syntax**
  ::

    response = client.get_connection_function(
        Identifier='string',
        Stage='DEVELOPMENT'|'LIVE'
    )
    
  :type Identifier: string
  :param Identifier: **[REQUIRED]** 

    The connection function's identifier.

    

  
  :type Stage: string
  :param Stage: 

    The connection function's stage.

    

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

    
    ::

      {
          'ConnectionFunctionCode': StreamingBody(),
          'ETag': 'string',
          'ContentType': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **ConnectionFunctionCode** (:class:`.StreamingBody`) -- 

        The connection function's code.

        
      

      - **ETag** *(string) --* 

        The version identifier for the current version of the connection function.

        
      

      - **ContentType** *(string) --* 

        The connection function's content type.

        
  
  **Exceptions**
  
  *   :py:class:`CloudFront.Client.exceptions.AccessDenied`

  
  *   :py:class:`CloudFront.Client.exceptions.EntityNotFound`

  
  *   :py:class:`CloudFront.Client.exceptions.UnsupportedOperation`

  