AmazonApiGatewayManagementApi

2018/12/18 - AmazonApiGatewayManagementApi - 1 new api methods

Changes  This is the initial SDK release for the Amazon API Gateway Management API, which allows you to directly manage runtime aspects of your APIs. This release makes it easy to send data directly to clients connected to your WebSocket-based APIs.

PostToConnection (new) Link ΒΆ

Sends the provided data to the specified connection.

See also: AWS API Documentation

Request Syntax

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