Class: AWSCDK::APIGatewayv2Integrations::WebSocketLambdaIntegration
- Inherits:
-
AWSCDK::APIGatewayv2::WebSocketRouteIntegration
- Object
- AWSCDK::APIGatewayv2::WebSocketRouteIntegration
- AWSCDK::APIGatewayv2Integrations::WebSocketLambdaIntegration
- Defined in:
- api_gatewayv2_integrations/web_socket_lambda_integration.rb
Overview
Lambda WebSocket Integration.
Class Method Summary collapse
Instance Method Summary collapse
-
#bind(options) ⇒ AWSCDK::APIGatewayv2::WebSocketRouteIntegrationConfig
Bind this integration to the route.
-
#initialize(id, handler, props = nil) ⇒ WebSocketLambdaIntegration
constructor
A new instance of WebSocketLambdaIntegration.
Constructor Details
#initialize(id, handler, props = nil) ⇒ WebSocketLambdaIntegration
Returns a new instance of WebSocketLambdaIntegration.
11 12 13 14 15 16 17 |
# File 'api_gatewayv2_integrations/web_socket_lambda_integration.rb', line 11 def initialize(id, handler, props = nil) props = props.is_a?(Hash) ? ::AWSCDK::APIGatewayv2Integrations::WebSocketLambdaIntegrationProps.new(**props.transform_keys(&:to_sym)) : props Jsii::Type.check_type(id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "id") Jsii::Type.check_type(handler, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfbGFtYmRhLklGdW5jdGlvbiJ9")), "handler") Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXBpZ2F0ZXdheXYyX2ludGVncmF0aW9ucy5XZWJTb2NrZXRMYW1iZGFJbnRlZ3JhdGlvblByb3BzIn0=")), "props") unless props.nil? Jsii::Object.instance_method(:initialize).bind(self).call(id, handler, props) end |
Class Method Details
.jsii_overridable_methods ⇒ Object
19 20 21 22 23 |
# File 'api_gatewayv2_integrations/web_socket_lambda_integration.rb', line 19 def self.jsii_overridable_methods { :bind => { kind: :method, name: "bind", is_optional: false }, } end |
Instance Method Details
#bind(options) ⇒ AWSCDK::APIGatewayv2::WebSocketRouteIntegrationConfig
Bind this integration to the route.
29 30 31 32 33 |
# File 'api_gatewayv2_integrations/web_socket_lambda_integration.rb', line 29 def bind() = .is_a?(Hash) ? ::AWSCDK::APIGatewayv2::WebSocketRouteIntegrationBindOptions.new(**.transform_keys(&:to_sym)) : Jsii::Type.check_type(, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXBpZ2F0ZXdheXYyLldlYlNvY2tldFJvdXRlSW50ZWdyYXRpb25CaW5kT3B0aW9ucyJ9")), "options") jsii_call_method("bind", []) end |