WebSocketApiProps

class aws_cdk.aws_apigatewayv2.WebSocketApiProps(*, api_name=None, connect_route_options=None, default_route_options=None, description=None, disconnect_route_options=None, route_selection_expression=None)

Bases: object

(experimental) Props for WebSocket API.

Parameters
  • api_name (Optional[str]) – (experimental) Name for the WebSocket API resource. Default: - id of the WebSocketApi construct.

  • connect_route_options (Optional[WebSocketRouteOptions]) – (experimental) Options to configure a ‘$connect’ route. Default: - no ‘$connect’ route configured

  • default_route_options (Optional[WebSocketRouteOptions]) – (experimental) Options to configure a ‘$default’ route. Default: - no ‘$default’ route configured

  • description (Optional[str]) – (experimental) The description of the API. Default: - none

  • disconnect_route_options (Optional[WebSocketRouteOptions]) – (experimental) Options to configure a ‘$disconnect’ route. Default: - no ‘$disconnect’ route configured

  • route_selection_expression (Optional[str]) – (experimental) The route selection expression for the API. Default: ‘$request.body.action’

Stability

experimental

Attributes

api_name

(experimental) Name for the WebSocket API resource.

Default
  • id of the WebSocketApi construct.

Stability

experimental

Return type

Optional[str]

connect_route_options

(experimental) Options to configure a ‘$connect’ route.

Default
  • no ‘$connect’ route configured

Stability

experimental

Return type

Optional[WebSocketRouteOptions]

default_route_options

(experimental) Options to configure a ‘$default’ route.

Default
  • no ‘$default’ route configured

Stability

experimental

Return type

Optional[WebSocketRouteOptions]

description

(experimental) The description of the API.

Default
  • none

Stability

experimental

Return type

Optional[str]

disconnect_route_options

(experimental) Options to configure a ‘$disconnect’ route.

Default
  • no ‘$disconnect’ route configured

Stability

experimental

Return type

Optional[WebSocketRouteOptions]

route_selection_expression

(experimental) The route selection expression for the API.

Default

‘$request.body.action’

Stability

experimental

Return type

Optional[str]