Class: AWSCDK::APIGatewayv2::WebSocketRouteIntegrationBindOptions

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
api_gatewayv2/web_socket_route_integration_bind_options.rb

Overview

Options to the WebSocketRouteIntegration during its bind operation.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(route:, scope:) ⇒ WebSocketRouteIntegrationBindOptions

Returns a new instance of WebSocketRouteIntegrationBindOptions.

Parameters:



9
10
11
12
13
14
# File 'api_gatewayv2/web_socket_route_integration_bind_options.rb', line 9

def initialize(route:, scope:)
  @route = route
  Jsii::Type.check_type(@route, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXBpZ2F0ZXdheXYyLklXZWJTb2NrZXRSb3V0ZSJ9")), "route")
  @scope = scope
  Jsii::Type.check_type(@scope, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJjb25zdHJ1Y3RzLkNvbnN0cnVjdCJ9")), "scope")
end

Instance Attribute Details

#routeAWSCDK::APIGatewayv2::IWebSocketRoute (readonly)

The route to which this is being bound.



19
20
21
# File 'api_gatewayv2/web_socket_route_integration_bind_options.rb', line 19

def route
  @route
end

#scopeConstructs::Construct (readonly)

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.

Returns:

  • (Constructs::Construct)


26
27
28
# File 'api_gatewayv2/web_socket_route_integration_bind_options.rb', line 26

def scope
  @scope
end

Class Method Details

.jsii_propertiesObject



28
29
30
31
32
33
# File 'api_gatewayv2/web_socket_route_integration_bind_options.rb', line 28

def self.jsii_properties
  {
    :route => "route",
    :scope => "scope",
  }
end

Instance Method Details

#to_jsiiObject



35
36
37
38
39
40
41
42
# File 'api_gatewayv2/web_socket_route_integration_bind_options.rb', line 35

def to_jsii
  result = {}
  result.merge!({
    "route" => @route,
    "scope" => @scope,
  })
  result.compact
end