WebSocketMockIntegration

class aws_cdk.aws_apigatewayv2_integrations.WebSocketMockIntegration(id)

Bases: WebSocketRouteIntegration

Mock WebSocket Integration.

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_apigatewayv2_integrations as apigatewayv2_integrations

web_socket_mock_integration = apigatewayv2_integrations.WebSocketMockIntegration("id")
Parameters:

id (str) – id of the underlying integration construct.

Methods

bind(*, route, scope)

Bind this integration to the route.

Parameters:
  • route (IWebSocketRoute) – The route to which this is being bound.

  • scope (Construct) – The current scope in which the bind is occurring. If the WebSocketRouteIntegration being bound creates additional constructs, this will be used as their parent scope.

Return type:

WebSocketRouteIntegrationConfig