WebSocketMockIntegration

class aws_cdk.aws_apigatewayv2_integrations.WebSocketMockIntegration(id)

Bases: WebSocketRouteIntegration

(experimental) Mock WebSocket Integration.

Stability:

experimental

ExampleMetadata:

fixture=_generated

Example:

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

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

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

Stability:

experimental

Methods

bind(*, route, scope)

(experimental) Bind this integration to the route.

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

  • scope (Construct) – (experimental) 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.

Stability:

experimental

Return type:

WebSocketRouteIntegrationConfig