Class: AWSCDK::APIGatewayv2Integrations::WebSocketMockIntegration
- Inherits:
-
AWSCDK::APIGatewayv2::WebSocketRouteIntegration
- Object
- AWSCDK::APIGatewayv2::WebSocketRouteIntegration
- AWSCDK::APIGatewayv2Integrations::WebSocketMockIntegration
- Defined in:
- api_gatewayv2_integrations/web_socket_mock_integration.rb
Overview
Mock WebSocket Integration.
Class Method Summary collapse
Instance Method Summary collapse
-
#bind(options) ⇒ AWSCDK::APIGatewayv2::WebSocketRouteIntegrationConfig
Bind this integration to the route.
-
#initialize(id, props = nil) ⇒ WebSocketMockIntegration
constructor
A new instance of WebSocketMockIntegration.
Constructor Details
#initialize(id, props = nil) ⇒ WebSocketMockIntegration
Returns a new instance of WebSocketMockIntegration.
10 11 12 13 14 15 |
# File 'api_gatewayv2_integrations/web_socket_mock_integration.rb', line 10 def initialize(id, props = nil) props = props.is_a?(Hash) ? ::AWSCDK::APIGatewayv2Integrations::WebSocketMockIntegrationProps.new(**props.transform_keys(&:to_sym)) : props Jsii::Type.check_type(id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "id") Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXBpZ2F0ZXdheXYyX2ludGVncmF0aW9ucy5XZWJTb2NrZXRNb2NrSW50ZWdyYXRpb25Qcm9wcyJ9")), "props") unless props.nil? Jsii::Object.instance_method(:initialize).bind(self).call(id, props) end |
Class Method Details
.jsii_overridable_methods ⇒ Object
17 18 19 20 21 |
# File 'api_gatewayv2_integrations/web_socket_mock_integration.rb', line 17 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.
27 28 29 30 31 |
# File 'api_gatewayv2_integrations/web_socket_mock_integration.rb', line 27 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 |