post_to_connection

post_to_connection(**kwargs)

Sends the provided data to the specified connection.

See also: AWS API Documentation

Request Syntax

response = client.post_to_connection(
    Data=b'bytes'|file,
    ConnectionId='string'
)
Parameters
  • Data (bytes or seekable file-like object) --

    [REQUIRED]

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

  • ConnectionId (string) --

    [REQUIRED]

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

Returns

None

Exceptions

  • ApiGatewayManagementApi.Client.exceptions.GoneException
  • ApiGatewayManagementApi.Client.exceptions.LimitExceededException
  • ApiGatewayManagementApi.Client.exceptions.PayloadTooLargeException
  • ApiGatewayManagementApi.Client.exceptions.ForbiddenException