ConnectionsClient
TheConnectionsClient provides methods for managing streaming connections, including viewing connection history and terminating active connections.
get_connection_history
Returns active and historical streaming connections with disconnect reasons for the authenticated application.Filter by connection status. Use ‘active’ for current connections, ‘inactive’ for historical/disconnected connections, or ‘all’ for both.
Filter by streaming endpoint. Specify one or more endpoint names to filter results.
The maximum number of results to return per page.
Token for paginating through results. Use the value from ‘next_token’ in the previous response.
A comma separated list of Connection fields to display.
Iterator that yields pages of connection history. Automatically handles pagination.
delete_by_endpoint
Terminates all streaming connections for a specific endpoint ID for the authenticated application.The endpoint ID to terminate connections for.
Response confirming connections were terminated.
delete_by_uuids
Terminates multiple streaming connections by their UUIDs for the authenticated application.Request body containing the list of connection UUIDs to terminate.
Response confirming connections were terminated.
delete_all
Terminates all active streaming connections for the authenticated application.Response confirming all connections were terminated.