ApiGatewayManagementApi.Client.
get_connection
(**kwargs)¶Get information about the connection with the provided id.
See also: AWS API Documentation
Request Syntax
response = client.get_connection(
ConnectionId='string'
)
{
'ConnectedAt': datetime(2015, 1, 1),
'Identity': {
'SourceIp': 'string',
'UserAgent': 'string'
},
'LastActiveAt': datetime(2015, 1, 1)
}
Response Structure
The time in ISO 8601 format for when the connection was established.
The source IP address of the TCP connection making the request to API Gateway.
The User Agent of the API caller.
The time in ISO 8601 format for when the connection was last active.
Exceptions
ApiGatewayManagementApi.Client.exceptions.GoneException
ApiGatewayManagementApi.Client.exceptions.LimitExceededException
ApiGatewayManagementApi.Client.exceptions.ForbiddenException