:doc:`ApiGatewayManagementApi <../../apigatewaymanagementapi>` / Client / post_to_connection

******************
post_to_connection
******************



.. py:method:: ApiGatewayManagementApi.Client.post_to_connection(**kwargs)

  

  Sends the provided data to the specified connection.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/apigatewaymanagementapi-2018-11-29/PostToConnection>`_  


  **Request Syntax**
  ::

    response = client.post_to_connection(
        Data=b'bytes'|file,
        ConnectionId='string'
    )
    
  :type Data: bytes or seekable file-like object
  :param Data: **[REQUIRED]** 

    The data to be sent to the client specified by its connection id.

    

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

    The identifier of the connection that a specific client is using.

    

  
  
  :returns: None
  **Exceptions**
  
  *   :py:class:`ApiGatewayManagementApi.Client.exceptions.GoneException`

  
  *   :py:class:`ApiGatewayManagementApi.Client.exceptions.LimitExceededException`

  
  *   :py:class:`ApiGatewayManagementApi.Client.exceptions.PayloadTooLargeException`

  
  *   :py:class:`ApiGatewayManagementApi.Client.exceptions.ForbiddenException`

  